/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId])
/******/ 			return installedModules[moduleId].exports;
/******/
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			exports: {},
/******/ 			id: moduleId,
/******/ 			loaded: false
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.loaded = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ((function(modules) {
	// Check all modules for deduplicated modules
	for(var i in modules) {
		if(Object.prototype.hasOwnProperty.call(modules, i)) {
			switch(typeof modules[i]) {
			case "function": break;
			case "object":
				// Module can be created from a template
				modules[i] = (function(_m) {
					var args = _m.slice(1), fn = modules[_m[0]];
					return function (a,b,c) {
						fn.apply(this, [a,b,c].concat(args));
					};
				}(modules[i]));
				break;
			default:
				// Module is a copy of another module
				modules[i] = modules[modules[i]];
				break;
			}
		}
	}
	return modules;
}([
/* 0 */
/***/ (function(module, exports, __webpack_require__) {

	window['$'] = window['jQuery'] = __webpack_require__(980);
	window['numeral'] = __webpack_require__(439);
	window['moment'] = __webpack_require__(2);
	__webpack_require__(2077);
	__webpack_require__(29);
	__webpack_require__(1088);
	__webpack_require__(981);
	__webpack_require__(921);
	__webpack_require__(65);
	__webpack_require__(27);
	__webpack_require__(922);
	__webpack_require__(923);
	__webpack_require__(924);
	__webpack_require__(926);
	__webpack_require__(927);
	__webpack_require__(928);
	__webpack_require__(930);
	__webpack_require__(929);
	__webpack_require__(39);
	__webpack_require__(449);
	__webpack_require__(449);
	__webpack_require__(1058);
	__webpack_require__(1060);
	__webpack_require__(1061);
	__webpack_require__(1059);
	__webpack_require__(1116);
	/* ANGULAR V1 AUTO-LOADED RESOURCES */
	__webpack_require__(62);
	__webpack_require__(269);
	__webpack_require__(857);
	__webpack_require__(2112);
	__webpack_require__(2118);
	__webpack_require__(982);
	__webpack_require__(48);
	__webpack_require__(994);
	__webpack_require__(440);
	__webpack_require__(66);
	__webpack_require__(441);
	__webpack_require__(111);
	__webpack_require__(442);
	__webpack_require__(112);
	__webpack_require__(67);
	__webpack_require__(113);
	__webpack_require__(1035);
	__webpack_require__(114);
	__webpack_require__(443);
	__webpack_require__(1044);
	__webpack_require__(444);
	__webpack_require__(445);
	__webpack_require__(446);
	__webpack_require__(1051);
	__webpack_require__(447);
	__webpack_require__(448);
	__webpack_require__(1057);
	__webpack_require__(116);
	__webpack_require__(874);
	__webpack_require__(2128);
	__webpack_require__(107);
	__webpack_require__(274);
	__webpack_require__(894);
	__webpack_require__(895);
	__webpack_require__(16);
	__webpack_require__(2171);
	__webpack_require__(276);
	__webpack_require__(901);
	__webpack_require__(2179);
	__webpack_require__(2181);
	__webpack_require__(2183);
	__webpack_require__(2185);
	__webpack_require__(2186);
	__webpack_require__(2191);
	__webpack_require__(277);
	__webpack_require__(903);
	__webpack_require__(50);
	__webpack_require__(51);
	__webpack_require__(1085);
	__webpack_require__(40);
	__webpack_require__(1087);
	__webpack_require__(108);
	__webpack_require__(34);
	__webpack_require__(22);
	__webpack_require__(21);
	__webpack_require__(5);
	__webpack_require__(906);
	__webpack_require__(46);
	__webpack_require__(1307);
	__webpack_require__(1535);
	__webpack_require__(1543);
	__webpack_require__(1557);
	__webpack_require__(1571);
	__webpack_require__(1577);
	__webpack_require__(1582);
	__webpack_require__(1592);
	__webpack_require__(1597);
	__webpack_require__(653);
	__webpack_require__(679);
	__webpack_require__(1642);
	__webpack_require__(1659);
	__webpack_require__(1674);
	__webpack_require__(1755);
	__webpack_require__(61);
	__webpack_require__(2008);
	__webpack_require__(2028);
	__webpack_require__(2042);
	__webpack_require__(2075);
	__webpack_require__(1151);
	__webpack_require__(1153);
	__webpack_require__(117);
	__webpack_require__(2120);
	angular.module('vendor', [
	    'data-ng-authentication',
	    'data-ng-custom-text',
	    'data-ng-path-item',
	    'data-ng-personal-reminders',
	    'data-ng-staff-todos',
	    'ui-ng-animation',
	    'ui-ng-ax',
	    'ui-ng-button',
	    'ui-ng-calendar-time',
	    'ui-ng-core-bootstrap',
	    'ui-ng-drag-drop',
	    'ui-ng-draggable',
	    'ui-ng-dropdown',
	    'ui-ng-feature',
	    'ui-ng-modal',
	    'ui-ng-notification',
	    'ui-ng-pie',
	    'ui-ng-popover',
	    'ui-ng-progress',
	    'ui-ng-session-timer',
	    'ui-ng-sibling',
	    'ui-ng-smooth-scroll',
	    'ui-ng-sticky',
	    'ui-ng-svg-icons',
	    'ui-ng-time-input',
	    'ui-ng-tooltip',
	    'ui-ng-validation',
	    'ui-ng-university-text',
	    'ui-ng-app-content',
	    'ui-ng-browser-detect',
	    'ui-ng-calendar',
	    'ui-ng-component-communicator',
	    'ui-ng-content-tabs',
	    'ui-ng-content-tile',
	    'ui-ng-delegate',
	    'ui-ng-mobile-date-picker',
	    'ui-ng-navbar',
	    'ui-ng-popup',
	    'ui-ng-refresh-button',
	    'ui-ng-resource-card',
	    'ui-ng-route-modal',
	    'ui-ng-schedule-appointment-card',
	    'ui-ng-search-box',
	    'ui-ng-sgd-components',
	    'ui-ng-university-branding',
	    'ui-ng-week-times',
	    'utility-ng-log',
	    'utility-ng-network-cache',
	    'utility-ng-pipeline',
	    'utility-ng-time',
	    'utility-ng-webcrypto',
	    'utility-ng-auth-token',
	    'utility-ng-configuration',
	    'utility-ng-enumeration',
	    'utility-ng-interface',
	    'utility-ng-kernel',
	    'utility-ng-progression',
	    'utility-ng-type',
	    'capability-ng-academic-planner',
	    'capability-ng-appointments',
	    'capability-ng-authentication',
	    'capability-ng-conversations',
	    'capability-ng-course-schedule',
	    'capability-ng-deeplink',
	    'capability-ng-favorites',
	    'capability-ng-holds',
	    'capability-ng-major-explorer',
	    'capability-ng-notification-settings',
	    'capability-ng-poll',
	    'capability-ng-priority-feed',
	    'capability-ng-reports',
	    'capability-ng-resources',
	    'capability-ng-scheduler',
	    'capability-ng-settings',
	    'capability-ng-student-scheduling',
	    'capability-ng-study-groups',
	    'capability-ng-survey',
	    'capability-ng-todos',
	    'biz-ng-career-details',
	    'biz-ng-path-placement',
	    'biz-ng-requisite-tree',
	    'hybrid-ng-personal-reminders'
	]);


/***/ }),
/* 1 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(global, module) {'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};/**
	 * @license
	 * Lodash <https://lodash.com/>
	 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
	 * Released under MIT license <https://lodash.com/license>
	 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
	 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
	 */;(function(){/** Used as a safe reference for `undefined` in pre-ES5 environments. */var undefined;/** Used as the semantic version number. */var VERSION='4.17.21';/** Used as the size to enable large array optimizations. */var LARGE_ARRAY_SIZE=200;/** Error message constants. */var CORE_ERROR_TEXT='Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',FUNC_ERROR_TEXT='Expected a function',INVALID_TEMPL_VAR_ERROR_TEXT='Invalid `variable` option passed into `_.template`';/** Used to stand-in for `undefined` hash values. */var HASH_UNDEFINED='__lodash_hash_undefined__';/** Used as the maximum memoize cache size. */var MAX_MEMOIZE_SIZE=500;/** Used as the internal argument placeholder. */var PLACEHOLDER='__lodash_placeholder__';/** Used to compose bitmasks for cloning. */var CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4;/** Used to compose bitmasks for value comparisons. */var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;/** Used to compose bitmasks for function metadata. */var WRAP_BIND_FLAG=1,WRAP_BIND_KEY_FLAG=2,WRAP_CURRY_BOUND_FLAG=4,WRAP_CURRY_FLAG=8,WRAP_CURRY_RIGHT_FLAG=16,WRAP_PARTIAL_FLAG=32,WRAP_PARTIAL_RIGHT_FLAG=64,WRAP_ARY_FLAG=128,WRAP_REARG_FLAG=256,WRAP_FLIP_FLAG=512;/** Used as default options for `_.truncate`. */var DEFAULT_TRUNC_LENGTH=30,DEFAULT_TRUNC_OMISSION='...';/** Used to detect hot functions by number of calls within a span of milliseconds. */var HOT_COUNT=800,HOT_SPAN=16;/** Used to indicate the type of lazy iteratees. */var LAZY_FILTER_FLAG=1,LAZY_MAP_FLAG=2,LAZY_WHILE_FLAG=3;/** Used as references for various `Number` constants. */var INFINITY=1/0,MAX_SAFE_INTEGER=9007199254740991,MAX_INTEGER=1.7976931348623157e+308,NAN=0/0;/** Used as references for the maximum length and index of an array. */var MAX_ARRAY_LENGTH=4294967295,MAX_ARRAY_INDEX=MAX_ARRAY_LENGTH-1,HALF_MAX_ARRAY_LENGTH=MAX_ARRAY_LENGTH>>>1;/** Used to associate wrap methods with their bit flags. */var wrapFlags=[['ary',WRAP_ARY_FLAG],['bind',WRAP_BIND_FLAG],['bindKey',WRAP_BIND_KEY_FLAG],['curry',WRAP_CURRY_FLAG],['curryRight',WRAP_CURRY_RIGHT_FLAG],['flip',WRAP_FLIP_FLAG],['partial',WRAP_PARTIAL_FLAG],['partialRight',WRAP_PARTIAL_RIGHT_FLAG],['rearg',WRAP_REARG_FLAG]];/** `Object#toString` result references. */var argsTag='[object Arguments]',arrayTag='[object Array]',asyncTag='[object AsyncFunction]',boolTag='[object Boolean]',dateTag='[object Date]',domExcTag='[object DOMException]',errorTag='[object Error]',funcTag='[object Function]',genTag='[object GeneratorFunction]',mapTag='[object Map]',numberTag='[object Number]',nullTag='[object Null]',objectTag='[object Object]',promiseTag='[object Promise]',proxyTag='[object Proxy]',regexpTag='[object RegExp]',setTag='[object Set]',stringTag='[object String]',symbolTag='[object Symbol]',undefinedTag='[object Undefined]',weakMapTag='[object WeakMap]',weakSetTag='[object WeakSet]';var arrayBufferTag='[object ArrayBuffer]',dataViewTag='[object DataView]',float32Tag='[object Float32Array]',float64Tag='[object Float64Array]',int8Tag='[object Int8Array]',int16Tag='[object Int16Array]',int32Tag='[object Int32Array]',uint8Tag='[object Uint8Array]',uint8ClampedTag='[object Uint8ClampedArray]',uint16Tag='[object Uint16Array]',uint32Tag='[object Uint32Array]';/** Used to match empty string literals in compiled template source. */var reEmptyStringLeading=/\b__p \+= '';/g,reEmptyStringMiddle=/\b(__p \+=) '' \+/g,reEmptyStringTrailing=/(__e\(.*?\)|\b__t\)) \+\n'';/g;/** Used to match HTML entities and HTML characters. */var reEscapedHtml=/&(?:amp|lt|gt|quot|#39);/g,reUnescapedHtml=/[&<>"']/g,reHasEscapedHtml=RegExp(reEscapedHtml.source),reHasUnescapedHtml=RegExp(reUnescapedHtml.source);/** Used to match template delimiters. */var reEscape=/<%-([\s\S]+?)%>/g,reEvaluate=/<%([\s\S]+?)%>/g,reInterpolate=/<%=([\s\S]+?)%>/g;/** Used to match property names within property paths. */var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;/**
	   * Used to match `RegExp`
	   * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
	   */var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reHasRegExpChar=RegExp(reRegExpChar.source);/** Used to match leading whitespace. */var reTrimStart=/^\s+/;/** Used to match a single whitespace character. */var reWhitespace=/\s/;/** Used to match wrap detail comments. */var reWrapComment=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,reWrapDetails=/\{\n\/\* \[wrapped with (.+)\] \*/,reSplitDetails=/,? & /;/** Used to match words composed of alphanumeric characters. */var reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;/**
	   * Used to validate the `validate` option in `_.template` variable.
	   *
	   * Forbids characters which could potentially change the meaning of the function argument definition:
	   * - "()," (modification of function parameters)
	   * - "=" (default value)
	   * - "[]{}" (destructuring of function parameters)
	   * - "/" (beginning of a comment)
	   * - whitespace
	   */var reForbiddenIdentifierChars=/[()=,{}\[\]\/\s]/;/** Used to match backslashes in property paths. */var reEscapeChar=/\\(\\)?/g;/**
	   * Used to match
	   * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).
	   */var reEsTemplate=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;/** Used to match `RegExp` flags from their coerced string values. */var reFlags=/\w*$/;/** Used to detect bad signed hexadecimal string values. */var reIsBadHex=/^[-+]0x[0-9a-f]+$/i;/** Used to detect binary string values. */var reIsBinary=/^0b[01]+$/i;/** Used to detect host constructors (Safari). */var reIsHostCtor=/^\[object .+?Constructor\]$/;/** Used to detect octal string values. */var reIsOctal=/^0o[0-7]+$/i;/** Used to detect unsigned integer values. */var reIsUint=/^(?:0|[1-9]\d*)$/;/** Used to match Latin Unicode letters (excluding mathematical operators). */var reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;/** Used to ensure capturing order of template delimiters. */var reNoMatch=/($^)/;/** Used to match unescaped characters in compiled string literals. */var reUnescapedString=/['\n\r\u2028\u2029\\]/g;/** Used to compose unicode character classes. */var rsAstralRange='\\ud800-\\udfff',rsComboMarksRange='\\u0300-\\u036f',reComboHalfMarksRange='\\ufe20-\\ufe2f',rsComboSymbolsRange='\\u20d0-\\u20ff',rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsDingbatRange='\\u2700-\\u27bf',rsLowerRange='a-z\\xdf-\\xf6\\xf8-\\xff',rsMathOpRange='\\xac\\xb1\\xd7\\xf7',rsNonCharRange='\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',rsPunctuationRange='\\u2000-\\u206f',rsSpaceRange=' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',rsUpperRange='A-Z\\xc0-\\xd6\\xd8-\\xde',rsVarRange='\\ufe0e\\ufe0f',rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange;/** Used to compose unicode capture groups. */var rsApos='[\'\u2019]',rsAstral='['+rsAstralRange+']',rsBreak='['+rsBreakRange+']',rsCombo='['+rsComboRange+']',rsDigits='\\d+',rsDingbat='['+rsDingbatRange+']',rsLower='['+rsLowerRange+']',rsMisc='[^'+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+']',rsFitz='\\ud83c[\\udffb-\\udfff]',rsModifier='(?:'+rsCombo+'|'+rsFitz+')',rsNonAstral='[^'+rsAstralRange+']',rsRegional='(?:\\ud83c[\\udde6-\\uddff]){2}',rsSurrPair='[\\ud800-\\udbff][\\udc00-\\udfff]',rsUpper='['+rsUpperRange+']',rsZWJ='\\u200d';/** Used to compose unicode regexes. */var rsMiscLower='(?:'+rsLower+'|'+rsMisc+')',rsMiscUpper='(?:'+rsUpper+'|'+rsMisc+')',rsOptContrLower='(?:'+rsApos+'(?:d|ll|m|re|s|t|ve))?',rsOptContrUpper='(?:'+rsApos+'(?:D|LL|M|RE|S|T|VE))?',reOptMod=rsModifier+'?',rsOptVar='['+rsVarRange+']?',rsOptJoin='(?:'+rsZWJ+'(?:'+[rsNonAstral,rsRegional,rsSurrPair].join('|')+')'+rsOptVar+reOptMod+')*',rsOrdLower='\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',rsOrdUpper='\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji='(?:'+[rsDingbat,rsRegional,rsSurrPair].join('|')+')'+rsSeq,rsSymbol='(?:'+[rsNonAstral+rsCombo+'?',rsCombo,rsRegional,rsSurrPair,rsAstral].join('|')+')';/** Used to match apostrophes. */var reApos=RegExp(rsApos,'g');/**
	   * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
	   * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
	   */var reComboMark=RegExp(rsCombo,'g');/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */var reUnicode=RegExp(rsFitz+'(?='+rsFitz+')|'+rsSymbol+rsSeq,'g');/** Used to match complex or compound words. */var reUnicodeWord=RegExp([rsUpper+'?'+rsLower+'+'+rsOptContrLower+'(?='+[rsBreak,rsUpper,'$'].join('|')+')',rsMiscUpper+'+'+rsOptContrUpper+'(?='+[rsBreak,rsUpper+rsMiscLower,'$'].join('|')+')',rsUpper+'?'+rsMiscLower+'+'+rsOptContrLower,rsUpper+'+'+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join('|'),'g');/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */var reHasUnicode=RegExp('['+rsZWJ+rsAstralRange+rsComboRange+rsVarRange+']');/** Used to detect strings that need a more robust regexp to match words. */var reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;/** Used to assign default `context` object properties. */var contextProps=['Array','Buffer','DataView','Date','Error','Float32Array','Float64Array','Function','Int8Array','Int16Array','Int32Array','Map','Math','Object','Promise','RegExp','Set','String','Symbol','TypeError','Uint8Array','Uint8ClampedArray','Uint16Array','Uint32Array','WeakMap','_','clearTimeout','isFinite','parseInt','setTimeout'];/** Used to make template sourceURLs easier to identify. */var templateCounter=-1;/** Used to identify `toStringTag` values of typed arrays. */var typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=true;typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=false;/** Used to identify `toStringTag` values supported by `_.clone`. */var cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[dataViewTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag]=cloneableTags[symbolTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=true;cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=false;/** Used to map Latin Unicode letters to basic Latin letters. */var deburredLetters={// Latin-1 Supplement block.
	'\xc0':'A','\xc1':'A','\xc2':'A','\xc3':'A','\xc4':'A','\xc5':'A','\xe0':'a','\xe1':'a','\xe2':'a','\xe3':'a','\xe4':'a','\xe5':'a','\xc7':'C','\xe7':'c','\xd0':'D','\xf0':'d','\xc8':'E','\xc9':'E','\xca':'E','\xcb':'E','\xe8':'e','\xe9':'e','\xea':'e','\xeb':'e','\xcc':'I','\xcd':'I','\xce':'I','\xcf':'I','\xec':'i','\xed':'i','\xee':'i','\xef':'i','\xd1':'N','\xf1':'n','\xd2':'O','\xd3':'O','\xd4':'O','\xd5':'O','\xd6':'O','\xd8':'O','\xf2':'o','\xf3':'o','\xf4':'o','\xf5':'o','\xf6':'o','\xf8':'o','\xd9':'U','\xda':'U','\xdb':'U','\xdc':'U','\xf9':'u','\xfa':'u','\xfb':'u','\xfc':'u','\xdd':'Y','\xfd':'y','\xff':'y','\xc6':'Ae','\xe6':'ae','\xde':'Th','\xfe':'th','\xdf':'ss',// Latin Extended-A block.
	'\u0100':'A','\u0102':'A','\u0104':'A','\u0101':'a','\u0103':'a','\u0105':'a','\u0106':'C','\u0108':'C','\u010A':'C','\u010C':'C','\u0107':'c','\u0109':'c','\u010B':'c','\u010D':'c','\u010E':'D','\u0110':'D','\u010F':'d','\u0111':'d','\u0112':'E','\u0114':'E','\u0116':'E','\u0118':'E','\u011A':'E','\u0113':'e','\u0115':'e','\u0117':'e','\u0119':'e','\u011B':'e','\u011C':'G','\u011E':'G','\u0120':'G','\u0122':'G','\u011D':'g','\u011F':'g','\u0121':'g','\u0123':'g','\u0124':'H','\u0126':'H','\u0125':'h','\u0127':'h','\u0128':'I','\u012A':'I','\u012C':'I','\u012E':'I','\u0130':'I','\u0129':'i','\u012B':'i','\u012D':'i','\u012F':'i','\u0131':'i','\u0134':'J','\u0135':'j','\u0136':'K','\u0137':'k','\u0138':'k','\u0139':'L','\u013B':'L','\u013D':'L','\u013F':'L','\u0141':'L','\u013A':'l','\u013C':'l','\u013E':'l','\u0140':'l','\u0142':'l','\u0143':'N','\u0145':'N','\u0147':'N','\u014A':'N','\u0144':'n','\u0146':'n','\u0148':'n','\u014B':'n','\u014C':'O','\u014E':'O','\u0150':'O','\u014D':'o','\u014F':'o','\u0151':'o','\u0154':'R','\u0156':'R','\u0158':'R','\u0155':'r','\u0157':'r','\u0159':'r','\u015A':'S','\u015C':'S','\u015E':'S','\u0160':'S','\u015B':'s','\u015D':'s','\u015F':'s','\u0161':'s','\u0162':'T','\u0164':'T','\u0166':'T','\u0163':'t','\u0165':'t','\u0167':'t','\u0168':'U','\u016A':'U','\u016C':'U','\u016E':'U','\u0170':'U','\u0172':'U','\u0169':'u','\u016B':'u','\u016D':'u','\u016F':'u','\u0171':'u','\u0173':'u','\u0174':'W','\u0175':'w','\u0176':'Y','\u0177':'y','\u0178':'Y','\u0179':'Z','\u017B':'Z','\u017D':'Z','\u017A':'z','\u017C':'z','\u017E':'z','\u0132':'IJ','\u0133':'ij','\u0152':'Oe','\u0153':'oe','\u0149':"'n",'\u017F':'s'};/** Used to map characters to HTML entities. */var htmlEscapes={'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#39;'};/** Used to map HTML entities to characters. */var htmlUnescapes={'&amp;':'&','&lt;':'<','&gt;':'>','&quot;':'"','&#39;':"'"};/** Used to escape characters for inclusion in compiled string literals. */var stringEscapes={'\\':'\\',"'":"'",'\n':'n','\r':'r','\u2028':'u2028','\u2029':'u2029'};/** Built-in method references without a dependency on `root`. */var freeParseFloat=parseFloat,freeParseInt=parseInt;/** Detect free variable `global` from Node.js. */var freeGlobal=(typeof global==='undefined'?'undefined':_typeof(global))=='object'&&global&&global.Object===Object&&global;/** Detect free variable `self`. */var freeSelf=(typeof self==='undefined'?'undefined':_typeof(self))=='object'&&self&&self.Object===Object&&self;/** Used as a reference to the global object. */var root=freeGlobal||freeSelf||Function('return this')();/** Detect free variable `exports`. */var freeExports=( false?'undefined':_typeof(exports))=='object'&&exports&&!exports.nodeType&&exports;/** Detect free variable `module`. */var freeModule=freeExports&&( false?'undefined':_typeof(module))=='object'&&module&&!module.nodeType&&module;/** Detect the popular CommonJS extension `module.exports`. */var moduleExports=freeModule&&freeModule.exports===freeExports;/** Detect free variable `process` from Node.js. */var freeProcess=moduleExports&&freeGlobal.process;/** Used to access faster Node.js helpers. */var nodeUtil=function(){try{// Use `util.types` for Node.js 10+.
	var types=freeModule&&freeModule.require&&freeModule.require('util').types;if(types){return types;}// Legacy `process.binding('util')` for Node.js < 10.
	return freeProcess&&freeProcess.binding&&freeProcess.binding('util');}catch(e){}}();/* Node.js helper references. */var nodeIsArrayBuffer=nodeUtil&&nodeUtil.isArrayBuffer,nodeIsDate=nodeUtil&&nodeUtil.isDate,nodeIsMap=nodeUtil&&nodeUtil.isMap,nodeIsRegExp=nodeUtil&&nodeUtil.isRegExp,nodeIsSet=nodeUtil&&nodeUtil.isSet,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;/*--------------------------------------------------------------------------*//**
	   * A faster alternative to `Function#apply`, this function invokes `func`
	   * with the `this` binding of `thisArg` and the arguments of `args`.
	   *
	   * @private
	   * @param {Function} func The function to invoke.
	   * @param {*} thisArg The `this` binding of `func`.
	   * @param {Array} args The arguments to invoke `func` with.
	   * @returns {*} Returns the result of `func`.
	   */function apply(func,thisArg,args){switch(args.length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);case 3:return func.call(thisArg,args[0],args[1],args[2]);}return func.apply(thisArg,args);}/**
	   * A specialized version of `baseAggregator` for arrays.
	   *
	   * @private
	   * @param {Array} [array] The array to iterate over.
	   * @param {Function} setter The function to set `accumulator` values.
	   * @param {Function} iteratee The iteratee to transform keys.
	   * @param {Object} accumulator The initial aggregated object.
	   * @returns {Function} Returns `accumulator`.
	   */function arrayAggregator(array,setter,iteratee,accumulator){var index=-1,length=array==null?0:array.length;while(++index<length){var value=array[index];setter(accumulator,value,iteratee(value),array);}return accumulator;}/**
	   * A specialized version of `_.forEach` for arrays without support for
	   * iteratee shorthands.
	   *
	   * @private
	   * @param {Array} [array] The array to iterate over.
	   * @param {Function} iteratee The function invoked per iteration.
	   * @returns {Array} Returns `array`.
	   */function arrayEach(array,iteratee){var index=-1,length=array==null?0:array.length;while(++index<length){if(iteratee(array[index],index,array)===false){break;}}return array;}/**
	   * A specialized version of `_.forEachRight` for arrays without support for
	   * iteratee shorthands.
	   *
	   * @private
	   * @param {Array} [array] The array to iterate over.
	   * @param {Function} iteratee The function invoked per iteration.
	   * @returns {Array} Returns `array`.
	   */function arrayEachRight(array,iteratee){var length=array==null?0:array.length;while(length--){if(iteratee(array[length],length,array)===false){break;}}return array;}/**
	   * A specialized version of `_.every` for arrays without support for
	   * iteratee shorthands.
	   *
	   * @private
	   * @param {Array} [array] The array to iterate over.
	   * @param {Function} predicate The function invoked per iteration.
	   * @returns {boolean} Returns `true` if all elements pass the predicate check,
	   *  else `false`.
	   */function arrayEvery(array,predicate){var index=-1,length=array==null?0:array.length;while(++index<length){if(!predicate(array[index],index,array)){return false;}}return true;}/**
	   * A specialized version of `_.filter` for arrays without support for
	   * iteratee shorthands.
	   *
	   * @private
	   * @param {Array} [array] The array to iterate over.
	   * @param {Function} predicate The function invoked per iteration.
	   * @returns {Array} Returns the new filtered array.
	   */function arrayFilter(array,predicate){var index=-1,length=array==null?0:array.length,resIndex=0,result=[];while(++index<length){var value=array[index];if(predicate(value,index,array)){result[resIndex++]=value;}}return result;}/**
	   * A specialized version of `_.includes` for arrays without support for
	   * specifying an index to search from.
	   *
	   * @private
	   * @param {Array} [array] The array to inspect.
	   * @param {*} target The value to search for.
	   * @returns {boolean} Returns `true` if `target` is found, else `false`.
	   */function arrayIncludes(array,value){var length=array==null?0:array.length;return!!length&&baseIndexOf(array,value,0)>-1;}/**
	   * This function is like `arrayIncludes` except that it accepts a comparator.
	   *
	   * @private
	   * @param {Array} [array] The array to inspect.
	   * @param {*} target The value to search for.
	   * @param {Function} comparator The comparator invoked per element.
	   * @returns {boolean} Returns `true` if `target` is found, else `false`.
	   */function arrayIncludesWith(array,value,comparator){var index=-1,length=array==null?0:array.length;while(++index<length){if(comparator(value,array[index])){return true;}}return false;}/**
	   * A specialized version of `_.map` for arrays without support for iteratee
	   * shorthands.
	   *
	   * @private
	   * @param {Array} [array] The array to iterate over.
	   * @param {Function} iteratee The function invoked per iteration.
	   * @returns {Array} Returns the new mapped array.
	   */function arrayMap(array,iteratee){var index=-1,length=array==null?0:array.length,result=Array(length);while(++index<length){result[index]=iteratee(array[index],index,array);}return result;}/**
	   * Appends the elements of `values` to `array`.
	   *
	   * @private
	   * @param {Array} array The array to modify.
	   * @param {Array} values The values to append.
	   * @returns {Array} Returns `array`.
	   */function arrayPush(array,values){var index=-1,length=values.length,offset=array.length;while(++index<length){array[offset+index]=values[index];}return array;}/**
	   * A specialized version of `_.reduce` for arrays without support for
	   * iteratee shorthands.
	   *
	   * @private
	   * @param {Array} [array] The array to iterate over.
	   * @param {Function} iteratee The function invoked per iteration.
	   * @param {*} [accumulator] The initial value.
	   * @param {boolean} [initAccum] Specify using the first element of `array` as
	   *  the initial value.
	   * @returns {*} Returns the accumulated value.
	   */function arrayReduce(array,iteratee,accumulator,initAccum){var index=-1,length=array==null?0:array.length;if(initAccum&&length){accumulator=array[++index];}while(++index<length){accumulator=iteratee(accumulator,array[index],index,array);}return accumulator;}/**
	   * A specialized version of `_.reduceRight` for arrays without support for
	   * iteratee shorthands.
	   *
	   * @private
	   * @param {Array} [array] The array to iterate over.
	   * @param {Function} iteratee The function invoked per iteration.
	   * @param {*} [accumulator] The initial value.
	   * @param {boolean} [initAccum] Specify using the last element of `array` as
	   *  the initial value.
	   * @returns {*} Returns the accumulated value.
	   */function arrayReduceRight(array,iteratee,accumulator,initAccum){var length=array==null?0:array.length;if(initAccum&&length){accumulator=array[--length];}while(length--){accumulator=iteratee(accumulator,array[length],length,array);}return accumulator;}/**
	   * A specialized version of `_.some` for arrays without support for iteratee
	   * shorthands.
	   *
	   * @private
	   * @param {Array} [array] The array to iterate over.
	   * @param {Function} predicate The function invoked per iteration.
	   * @returns {boolean} Returns `true` if any element passes the predicate check,
	   *  else `false`.
	   */function arraySome(array,predicate){var index=-1,length=array==null?0:array.length;while(++index<length){if(predicate(array[index],index,array)){return true;}}return false;}/**
	   * Gets the size of an ASCII `string`.
	   *
	   * @private
	   * @param {string} string The string inspect.
	   * @returns {number} Returns the string size.
	   */var asciiSize=baseProperty('length');/**
	   * Converts an ASCII `string` to an array.
	   *
	   * @private
	   * @param {string} string The string to convert.
	   * @returns {Array} Returns the converted array.
	   */function asciiToArray(string){return string.split('');}/**
	   * Splits an ASCII `string` into an array of its words.
	   *
	   * @private
	   * @param {string} The string to inspect.
	   * @returns {Array} Returns the words of `string`.
	   */function asciiWords(string){return string.match(reAsciiWord)||[];}/**
	   * The base implementation of methods like `_.findKey` and `_.findLastKey`,
	   * without support for iteratee shorthands, which iterates over `collection`
	   * using `eachFunc`.
	   *
	   * @private
	   * @param {Array|Object} collection The collection to inspect.
	   * @param {Function} predicate The function invoked per iteration.
	   * @param {Function} eachFunc The function to iterate over `collection`.
	   * @returns {*} Returns the found element or its key, else `undefined`.
	   */function baseFindKey(collection,predicate,eachFunc){var result;eachFunc(collection,function(value,key,collection){if(predicate(value,key,collection)){result=key;return false;}});return result;}/**
	   * The base implementation of `_.findIndex` and `_.findLastIndex` without
	   * support for iteratee shorthands.
	   *
	   * @private
	   * @param {Array} array The array to inspect.
	   * @param {Function} predicate The function invoked per iteration.
	   * @param {number} fromIndex The index to search from.
	   * @param {boolean} [fromRight] Specify iterating from right to left.
	   * @returns {number} Returns the index of the matched value, else `-1`.
	   */function baseFindIndex(array,predicate,fromIndex,fromRight){var length=array.length,index=fromIndex+(fromRight?1:-1);while(fromRight?index--:++index<length){if(predicate(array[index],index,array)){return index;}}return-1;}/**
	   * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
	   *
	   * @private
	   * @param {Array} array The array to inspect.
	   * @param {*} value The value to search for.
	   * @param {number} fromIndex The index to search from.
	   * @returns {number} Returns the index of the matched value, else `-1`.
	   */function baseIndexOf(array,value,fromIndex){return value===value?strictIndexOf(array,value,fromIndex):baseFindIndex(array,baseIsNaN,fromIndex);}/**
	   * This function is like `baseIndexOf` except that it accepts a comparator.
	   *
	   * @private
	   * @param {Array} array The array to inspect.
	   * @param {*} value The value to search for.
	   * @param {number} fromIndex The index to search from.
	   * @param {Function} comparator The comparator invoked per element.
	   * @returns {number} Returns the index of the matched value, else `-1`.
	   */function baseIndexOfWith(array,value,fromIndex,comparator){var index=fromIndex-1,length=array.length;while(++index<length){if(comparator(array[index],value)){return index;}}return-1;}/**
	   * The base implementation of `_.isNaN` without support for number objects.
	   *
	   * @private
	   * @param {*} value The value to check.
	   * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
	   */function baseIsNaN(value){return value!==value;}/**
	   * The base implementation of `_.mean` and `_.meanBy` without support for
	   * iteratee shorthands.
	   *
	   * @private
	   * @param {Array} array The array to iterate over.
	   * @param {Function} iteratee The function invoked per iteration.
	   * @returns {number} Returns the mean.
	   */function baseMean(array,iteratee){var length=array==null?0:array.length;return length?baseSum(array,iteratee)/length:NAN;}/**
	   * The base implementation of `_.property` without support for deep paths.
	   *
	   * @private
	   * @param {string} key The key of the property to get.
	   * @returns {Function} Returns the new accessor function.
	   */function baseProperty(key){return function(object){return object==null?undefined:object[key];};}/**
	   * The base implementation of `_.propertyOf` without support for deep paths.
	   *
	   * @private
	   * @param {Object} object The object to query.
	   * @returns {Function} Returns the new accessor function.
	   */function basePropertyOf(object){return function(key){return object==null?undefined:object[key];};}/**
	   * The base implementation of `_.reduce` and `_.reduceRight`, without support
	   * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
	   *
	   * @private
	   * @param {Array|Object} collection The collection to iterate over.
	   * @param {Function} iteratee The function invoked per iteration.
	   * @param {*} accumulator The initial value.
	   * @param {boolean} initAccum Specify using the first or last element of
	   *  `collection` as the initial value.
	   * @param {Function} eachFunc The function to iterate over `collection`.
	   * @returns {*} Returns the accumulated value.
	   */function baseReduce(collection,iteratee,accumulator,initAccum,eachFunc){eachFunc(collection,function(value,index,collection){accumulator=initAccum?(initAccum=false,value):iteratee(accumulator,value,index,collection);});return accumulator;}/**
	   * The base implementation of `_.sortBy` which uses `comparer` to define the
	   * sort order of `array` and replaces criteria objects with their corresponding
	   * values.
	   *
	   * @private
	   * @param {Array} array The array to sort.
	   * @param {Function} comparer The function to define sort order.
	   * @returns {Array} Returns `array`.
	   */function baseSortBy(array,comparer){var length=array.length;array.sort(comparer);while(length--){array[length]=array[length].value;}return array;}/**
	   * The base implementation of `_.sum` and `_.sumBy` without support for
	   * iteratee shorthands.
	   *
	   * @private
	   * @param {Array} array The array to iterate over.
	   * @param {Function} iteratee The function invoked per iteration.
	   * @returns {number} Returns the sum.
	   */function baseSum(array,iteratee){var result,index=-1,length=array.length;while(++index<length){var current=iteratee(array[index]);if(current!==undefined){result=result===undefined?current:result+current;}}return result;}/**
	   * The base implementation of `_.times` without support for iteratee shorthands
	   * or max array length checks.
	   *
	   * @private
	   * @param {number} n The number of times to invoke `iteratee`.
	   * @param {Function} iteratee The function invoked per iteration.
	   * @returns {Array} Returns the array of results.
	   */function baseTimes(n,iteratee){var index=-1,result=Array(n);while(++index<n){result[index]=iteratee(index);}return result;}/**
	   * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
	   * of key-value pairs for `object` corresponding to the property names of `props`.
	   *
	   * @private
	   * @param {Object} object The object to query.
	   * @param {Array} props The property names to get values for.
	   * @returns {Object} Returns the key-value pairs.
	   */function baseToPairs(object,props){return arrayMap(props,function(key){return[key,object[key]];});}/**
	   * The base implementation of `_.trim`.
	   *
	   * @private
	   * @param {string} string The string to trim.
	   * @returns {string} Returns the trimmed string.
	   */function baseTrim(string){return string?string.slice(0,trimmedEndIndex(string)+1).replace(reTrimStart,''):string;}/**
	   * The base implementation of `_.unary` without support for storing metadata.
	   *
	   * @private
	   * @param {Function} func The function to cap arguments for.
	   * @returns {Function} Returns the new capped function.
	   */function baseUnary(func){return function(value){return func(value);};}/**
	   * The base implementation of `_.values` and `_.valuesIn` which creates an
	   * array of `object` property values corresponding to the property names
	   * of `props`.
	   *
	   * @private
	   * @param {Object} object The object to query.
	   * @param {Array} props The property names to get values for.
	   * @returns {Object} Returns the array of property values.
	   */function baseValues(object,props){return arrayMap(props,function(key){return object[key];});}/**
	   * Checks if a `cache` value for `key` exists.
	   *
	   * @private
	   * @param {Object} cache The cache to query.
	   * @param {string} key The key of the entry to check.
	   * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
	   */function cacheHas(cache,key){return cache.has(key);}/**
	   * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
	   * that is not found in the character symbols.
	   *
	   * @private
	   * @param {Array} strSymbols The string symbols to inspect.
	   * @param {Array} chrSymbols The character symbols to find.
	   * @returns {number} Returns the index of the first unmatched string symbol.
	   */function charsStartIndex(strSymbols,chrSymbols){var index=-1,length=strSymbols.length;while(++index<length&&baseIndexOf(chrSymbols,strSymbols[index],0)>-1){}return index;}/**
	   * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
	   * that is not found in the character symbols.
	   *
	   * @private
	   * @param {Array} strSymbols The string symbols to inspect.
	   * @param {Array} chrSymbols The character symbols to find.
	   * @returns {number} Returns the index of the last unmatched string symbol.
	   */function charsEndIndex(strSymbols,chrSymbols){var index=strSymbols.length;while(index--&&baseIndexOf(chrSymbols,strSymbols[index],0)>-1){}return index;}/**
	   * Gets the number of `placeholder` occurrences in `array`.
	   *
	   * @private
	   * @param {Array} array The array to inspect.
	   * @param {*} placeholder The placeholder to search for.
	   * @returns {number} Returns the placeholder count.
	   */function countHolders(array,placeholder){var length=array.length,result=0;while(length--){if(array[length]===placeholder){++result;}}return result;}/**
	   * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
	   * letters to basic Latin letters.
	   *
	   * @private
	   * @param {string} letter The matched letter to deburr.
	   * @returns {string} Returns the deburred letter.
	   */var deburrLetter=basePropertyOf(deburredLetters);/**
	   * Used by `_.escape` to convert characters to HTML entities.
	   *
	   * @private
	   * @param {string} chr The matched character to escape.
	   * @returns {string} Returns the escaped character.
	   */var escapeHtmlChar=basePropertyOf(htmlEscapes);/**
	   * Used by `_.template` to escape characters for inclusion in compiled string literals.
	   *
	   * @private
	   * @param {string} chr The matched character to escape.
	   * @returns {string} Returns the escaped character.
	   */function escapeStringChar(chr){return'\\'+stringEscapes[chr];}/**
	   * Gets the value at `key` of `object`.
	   *
	   * @private
	   * @param {Object} [object] The object to query.
	   * @param {string} key The key of the property to get.
	   * @returns {*} Returns the property value.
	   */function getValue(object,key){return object==null?undefined:object[key];}/**
	   * Checks if `string` contains Unicode symbols.
	   *
	   * @private
	   * @param {string} string The string to inspect.
	   * @returns {boolean} Returns `true` if a symbol is found, else `false`.
	   */function hasUnicode(string){return reHasUnicode.test(string);}/**
	   * Checks if `string` contains a word composed of Unicode symbols.
	   *
	   * @private
	   * @param {string} string The string to inspect.
	   * @returns {boolean} Returns `true` if a word is found, else `false`.
	   */function hasUnicodeWord(string){return reHasUnicodeWord.test(string);}/**
	   * Converts `iterator` to an array.
	   *
	   * @private
	   * @param {Object} iterator The iterator to convert.
	   * @returns {Array} Returns the converted array.
	   */function iteratorToArray(iterator){var data,result=[];while(!(data=iterator.next()).done){result.push(data.value);}return result;}/**
	   * Converts `map` to its key-value pairs.
	   *
	   * @private
	   * @param {Object} map The map to convert.
	   * @returns {Array} Returns the key-value pairs.
	   */function mapToArray(map){var index=-1,result=Array(map.size);map.forEach(function(value,key){result[++index]=[key,value];});return result;}/**
	   * Creates a unary function that invokes `func` with its argument transformed.
	   *
	   * @private
	   * @param {Function} func The function to wrap.
	   * @param {Function} transform The argument transform.
	   * @returns {Function} Returns the new function.
	   */function overArg(func,transform){return function(arg){return func(transform(arg));};}/**
	   * Replaces all `placeholder` elements in `array` with an internal placeholder
	   * and returns an array of their indexes.
	   *
	   * @private
	   * @param {Array} array The array to modify.
	   * @param {*} placeholder The placeholder to replace.
	   * @returns {Array} Returns the new array of placeholder indexes.
	   */function replaceHolders(array,placeholder){var index=-1,length=array.length,resIndex=0,result=[];while(++index<length){var value=array[index];if(value===placeholder||value===PLACEHOLDER){array[index]=PLACEHOLDER;result[resIndex++]=index;}}return result;}/**
	   * Converts `set` to an array of its values.
	   *
	   * @private
	   * @param {Object} set The set to convert.
	   * @returns {Array} Returns the values.
	   */function setToArray(set){var index=-1,result=Array(set.size);set.forEach(function(value){result[++index]=value;});return result;}/**
	   * Converts `set` to its value-value pairs.
	   *
	   * @private
	   * @param {Object} set The set to convert.
	   * @returns {Array} Returns the value-value pairs.
	   */function setToPairs(set){var index=-1,result=Array(set.size);set.forEach(function(value){result[++index]=[value,value];});return result;}/**
	   * A specialized version of `_.indexOf` which performs strict equality
	   * comparisons of values, i.e. `===`.
	   *
	   * @private
	   * @param {Array} array The array to inspect.
	   * @param {*} value The value to search for.
	   * @param {number} fromIndex The index to search from.
	   * @returns {number} Returns the index of the matched value, else `-1`.
	   */function strictIndexOf(array,value,fromIndex){var index=fromIndex-1,length=array.length;while(++index<length){if(array[index]===value){return index;}}return-1;}/**
	   * A specialized version of `_.lastIndexOf` which performs strict equality
	   * comparisons of values, i.e. `===`.
	   *
	   * @private
	   * @param {Array} array The array to inspect.
	   * @param {*} value The value to search for.
	   * @param {number} fromIndex The index to search from.
	   * @returns {number} Returns the index of the matched value, else `-1`.
	   */function strictLastIndexOf(array,value,fromIndex){var index=fromIndex+1;while(index--){if(array[index]===value){return index;}}return index;}/**
	   * Gets the number of symbols in `string`.
	   *
	   * @private
	   * @param {string} string The string to inspect.
	   * @returns {number} Returns the string size.
	   */function stringSize(string){return hasUnicode(string)?unicodeSize(string):asciiSize(string);}/**
	   * Converts `string` to an array.
	   *
	   * @private
	   * @param {string} string The string to convert.
	   * @returns {Array} Returns the converted array.
	   */function stringToArray(string){return hasUnicode(string)?unicodeToArray(string):asciiToArray(string);}/**
	   * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
	   * character of `string`.
	   *
	   * @private
	   * @param {string} string The string to inspect.
	   * @returns {number} Returns the index of the last non-whitespace character.
	   */function trimmedEndIndex(string){var index=string.length;while(index--&&reWhitespace.test(string.charAt(index))){}return index;}/**
	   * Used by `_.unescape` to convert HTML entities to characters.
	   *
	   * @private
	   * @param {string} chr The matched character to unescape.
	   * @returns {string} Returns the unescaped character.
	   */var unescapeHtmlChar=basePropertyOf(htmlUnescapes);/**
	   * Gets the size of a Unicode `string`.
	   *
	   * @private
	   * @param {string} string The string inspect.
	   * @returns {number} Returns the string size.
	   */function unicodeSize(string){var result=reUnicode.lastIndex=0;while(reUnicode.test(string)){++result;}return result;}/**
	   * Converts a Unicode `string` to an array.
	   *
	   * @private
	   * @param {string} string The string to convert.
	   * @returns {Array} Returns the converted array.
	   */function unicodeToArray(string){return string.match(reUnicode)||[];}/**
	   * Splits a Unicode `string` into an array of its words.
	   *
	   * @private
	   * @param {string} The string to inspect.
	   * @returns {Array} Returns the words of `string`.
	   */function unicodeWords(string){return string.match(reUnicodeWord)||[];}/*--------------------------------------------------------------------------*//**
	   * Create a new pristine `lodash` function using the `context` object.
	   *
	   * @static
	   * @memberOf _
	   * @since 1.1.0
	   * @category Util
	   * @param {Object} [context=root] The context object.
	   * @returns {Function} Returns a new `lodash` function.
	   * @example
	   *
	   * _.mixin({ 'foo': _.constant('foo') });
	   *
	   * var lodash = _.runInContext();
	   * lodash.mixin({ 'bar': lodash.constant('bar') });
	   *
	   * _.isFunction(_.foo);
	   * // => true
	   * _.isFunction(_.bar);
	   * // => false
	   *
	   * lodash.isFunction(lodash.foo);
	   * // => false
	   * lodash.isFunction(lodash.bar);
	   * // => true
	   *
	   * // Create a suped-up `defer` in Node.js.
	   * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
	   */var runInContext=function runInContext(context){context=context==null?root:_.defaults(root.Object(),context,_.pick(root,contextProps));/** Built-in constructor references. */var Array=context.Array,Date=context.Date,Error=context.Error,Function=context.Function,Math=context.Math,Object=context.Object,RegExp=context.RegExp,String=context.String,TypeError=context.TypeError;/** Used for built-in method references. */var arrayProto=Array.prototype,funcProto=Function.prototype,objectProto=Object.prototype;/** Used to detect overreaching core-js shims. */var coreJsData=context['__core-js_shared__'];/** Used to resolve the decompiled source of functions. */var funcToString=funcProto.toString;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/** Used to generate unique IDs. */var idCounter=0;/** Used to detect methods masquerading as native. */var maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||'');return uid?'Symbol(src)_1.'+uid:'';}();/**
	     * Used to resolve the
	     * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
	     * of values.
	     */var nativeObjectToString=objectProto.toString;/** Used to infer the `Object` constructor. */var objectCtorString=funcToString.call(Object);/** Used to restore the original `_` reference in `_.noConflict`. */var oldDash=root._;/** Used to detect if a method is native. */var reIsNative=RegExp('^'+funcToString.call(hasOwnProperty).replace(reRegExpChar,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');/** Built-in value references. */var Buffer=moduleExports?context.Buffer:undefined,_Symbol=context.Symbol,Uint8Array=context.Uint8Array,allocUnsafe=Buffer?Buffer.allocUnsafe:undefined,getPrototype=overArg(Object.getPrototypeOf,Object),objectCreate=Object.create,propertyIsEnumerable=objectProto.propertyIsEnumerable,splice=arrayProto.splice,spreadableSymbol=_Symbol?_Symbol.isConcatSpreadable:undefined,symIterator=_Symbol?_Symbol.iterator:undefined,symToStringTag=_Symbol?_Symbol.toStringTag:undefined;var defineProperty=function(){try{var func=getNative(Object,'defineProperty');func({},'',{});return func;}catch(e){}}();/** Mocked built-ins. */var ctxClearTimeout=context.clearTimeout!==root.clearTimeout&&context.clearTimeout,ctxNow=Date&&Date.now!==root.Date.now&&Date.now,ctxSetTimeout=context.setTimeout!==root.setTimeout&&context.setTimeout;/* Built-in method references for those with the same name as other `lodash` methods. */var nativeCeil=Math.ceil,nativeFloor=Math.floor,nativeGetSymbols=Object.getOwnPropertySymbols,nativeIsBuffer=Buffer?Buffer.isBuffer:undefined,nativeIsFinite=context.isFinite,nativeJoin=arrayProto.join,nativeKeys=overArg(Object.keys,Object),nativeMax=Math.max,nativeMin=Math.min,nativeNow=Date.now,nativeParseInt=context.parseInt,nativeRandom=Math.random,nativeReverse=arrayProto.reverse;/* Built-in method references that are verified to be native. */var DataView=getNative(context,'DataView'),Map=getNative(context,'Map'),Promise=getNative(context,'Promise'),Set=getNative(context,'Set'),WeakMap=getNative(context,'WeakMap'),nativeCreate=getNative(Object,'create');/** Used to store function metadata. */var metaMap=WeakMap&&new WeakMap();/** Used to lookup unminified function names. */var realNames={};/** Used to detect maps, sets, and weakmaps. */var dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap);/** Used to convert symbols to primitives and strings. */var symbolProto=_Symbol?_Symbol.prototype:undefined,symbolValueOf=symbolProto?symbolProto.valueOf:undefined,symbolToString=symbolProto?symbolProto.toString:undefined;/*------------------------------------------------------------------------*//**
	     * Creates a `lodash` object which wraps `value` to enable implicit method
	     * chain sequences. Methods that operate on and return arrays, collections,
	     * and functions can be chained together. Methods that retrieve a single value
	     * or may return a primitive value will automatically end the chain sequence
	     * and return the unwrapped value. Otherwise, the value must be unwrapped
	     * with `_#value`.
	     *
	     * Explicit chain sequences, which must be unwrapped with `_#value`, may be
	     * enabled using `_.chain`.
	     *
	     * The execution of chained methods is lazy, that is, it's deferred until
	     * `_#value` is implicitly or explicitly called.
	     *
	     * Lazy evaluation allows several methods to support shortcut fusion.
	     * Shortcut fusion is an optimization to merge iteratee calls; this avoids
	     * the creation of intermediate arrays and can greatly reduce the number of
	     * iteratee executions. Sections of a chain sequence qualify for shortcut
	     * fusion if the section is applied to an array and iteratees accept only
	     * one argument. The heuristic for whether a section qualifies for shortcut
	     * fusion is subject to change.
	     *
	     * Chaining is supported in custom builds as long as the `_#value` method is
	     * directly or indirectly included in the build.
	     *
	     * In addition to lodash methods, wrappers have `Array` and `String` methods.
	     *
	     * The wrapper `Array` methods are:
	     * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
	     *
	     * The wrapper `String` methods are:
	     * `replace` and `split`
	     *
	     * The wrapper methods that support shortcut fusion are:
	     * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
	     * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
	     * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
	     *
	     * The chainable wrapper methods are:
	     * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
	     * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
	     * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
	     * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
	     * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
	     * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
	     * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
	     * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
	     * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
	     * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
	     * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
	     * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
	     * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
	     * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
	     * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
	     * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
	     * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
	     * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
	     * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
	     * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
	     * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
	     * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
	     * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
	     * `zipObject`, `zipObjectDeep`, and `zipWith`
	     *
	     * The wrapper methods that are **not** chainable by default are:
	     * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
	     * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
	     * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
	     * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
	     * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
	     * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
	     * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
	     * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
	     * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
	     * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
	     * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
	     * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
	     * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
	     * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
	     * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
	     * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
	     * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
	     * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
	     * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
	     * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
	     * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
	     * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
	     * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
	     * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
	     * `upperFirst`, `value`, and `words`
	     *
	     * @name _
	     * @constructor
	     * @category Seq
	     * @param {*} value The value to wrap in a `lodash` instance.
	     * @returns {Object} Returns the new `lodash` wrapper instance.
	     * @example
	     *
	     * function square(n) {
	     *   return n * n;
	     * }
	     *
	     * var wrapped = _([1, 2, 3]);
	     *
	     * // Returns an unwrapped value.
	     * wrapped.reduce(_.add);
	     * // => 6
	     *
	     * // Returns a wrapped value.
	     * var squares = wrapped.map(square);
	     *
	     * _.isArray(squares);
	     * // => false
	     *
	     * _.isArray(squares.value());
	     * // => true
	     */function lodash(value){if(isObjectLike(value)&&!isArray(value)&&!(value instanceof LazyWrapper)){if(value instanceof LodashWrapper){return value;}if(hasOwnProperty.call(value,'__wrapped__')){return wrapperClone(value);}}return new LodashWrapper(value);}/**
	     * The base implementation of `_.create` without support for assigning
	     * properties to the created object.
	     *
	     * @private
	     * @param {Object} proto The object to inherit from.
	     * @returns {Object} Returns the new object.
	     */var baseCreate=function(){function object(){}return function(proto){if(!isObject(proto)){return{};}if(objectCreate){return objectCreate(proto);}object.prototype=proto;var result=new object();object.prototype=undefined;return result;};}();/**
	     * The function whose prototype chain sequence wrappers inherit from.
	     *
	     * @private
	     */function baseLodash(){}// No operation performed.
	/**
	     * The base constructor for creating `lodash` wrapper objects.
	     *
	     * @private
	     * @param {*} value The value to wrap.
	     * @param {boolean} [chainAll] Enable explicit method chain sequences.
	     */function LodashWrapper(value,chainAll){this.__wrapped__=value;this.__actions__=[];this.__chain__=!!chainAll;this.__index__=0;this.__values__=undefined;}/**
	     * By default, the template delimiters used by lodash are like those in
	     * embedded Ruby (ERB) as well as ES2015 template strings. Change the
	     * following template settings to use alternative delimiters.
	     *
	     * @static
	     * @memberOf _
	     * @type {Object}
	     */lodash.templateSettings={/**
	       * Used to detect `data` property values to be HTML-escaped.
	       *
	       * @memberOf _.templateSettings
	       * @type {RegExp}
	       */'escape':reEscape,/**
	       * Used to detect code to be evaluated.
	       *
	       * @memberOf _.templateSettings
	       * @type {RegExp}
	       */'evaluate':reEvaluate,/**
	       * Used to detect `data` property values to inject.
	       *
	       * @memberOf _.templateSettings
	       * @type {RegExp}
	       */'interpolate':reInterpolate,/**
	       * Used to reference the data object in the template text.
	       *
	       * @memberOf _.templateSettings
	       * @type {string}
	       */'variable':'',/**
	       * Used to import variables into the compiled template.
	       *
	       * @memberOf _.templateSettings
	       * @type {Object}
	       */'imports':{/**
	         * A reference to the `lodash` function.
	         *
	         * @memberOf _.templateSettings.imports
	         * @type {Function}
	         */'_':lodash}};// Ensure wrappers are instances of `baseLodash`.
	lodash.prototype=baseLodash.prototype;lodash.prototype.constructor=lodash;LodashWrapper.prototype=baseCreate(baseLodash.prototype);LodashWrapper.prototype.constructor=LodashWrapper;/*------------------------------------------------------------------------*//**
	     * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
	     *
	     * @private
	     * @constructor
	     * @param {*} value The value to wrap.
	     */function LazyWrapper(value){this.__wrapped__=value;this.__actions__=[];this.__dir__=1;this.__filtered__=false;this.__iteratees__=[];this.__takeCount__=MAX_ARRAY_LENGTH;this.__views__=[];}/**
	     * Creates a clone of the lazy wrapper object.
	     *
	     * @private
	     * @name clone
	     * @memberOf LazyWrapper
	     * @returns {Object} Returns the cloned `LazyWrapper` object.
	     */function lazyClone(){var result=new LazyWrapper(this.__wrapped__);result.__actions__=copyArray(this.__actions__);result.__dir__=this.__dir__;result.__filtered__=this.__filtered__;result.__iteratees__=copyArray(this.__iteratees__);result.__takeCount__=this.__takeCount__;result.__views__=copyArray(this.__views__);return result;}/**
	     * Reverses the direction of lazy iteration.
	     *
	     * @private
	     * @name reverse
	     * @memberOf LazyWrapper
	     * @returns {Object} Returns the new reversed `LazyWrapper` object.
	     */function lazyReverse(){if(this.__filtered__){var result=new LazyWrapper(this);result.__dir__=-1;result.__filtered__=true;}else{result=this.clone();result.__dir__*=-1;}return result;}/**
	     * Extracts the unwrapped value from its lazy wrapper.
	     *
	     * @private
	     * @name value
	     * @memberOf LazyWrapper
	     * @returns {*} Returns the unwrapped value.
	     */function lazyValue(){var array=this.__wrapped__.value(),dir=this.__dir__,isArr=isArray(array),isRight=dir<0,arrLength=isArr?array.length:0,view=getView(0,arrLength,this.__views__),start=view.start,end=view.end,length=end-start,index=isRight?end:start-1,iteratees=this.__iteratees__,iterLength=iteratees.length,resIndex=0,takeCount=nativeMin(length,this.__takeCount__);if(!isArr||!isRight&&arrLength==length&&takeCount==length){return baseWrapperValue(array,this.__actions__);}var result=[];outer:while(length--&&resIndex<takeCount){index+=dir;var iterIndex=-1,value=array[index];while(++iterIndex<iterLength){var data=iteratees[iterIndex],iteratee=data.iteratee,type=data.type,computed=iteratee(value);if(type==LAZY_MAP_FLAG){value=computed;}else if(!computed){if(type==LAZY_FILTER_FLAG){continue outer;}else{break outer;}}}result[resIndex++]=value;}return result;}// Ensure `LazyWrapper` is an instance of `baseLodash`.
	LazyWrapper.prototype=baseCreate(baseLodash.prototype);LazyWrapper.prototype.constructor=LazyWrapper;/*------------------------------------------------------------------------*//**
	     * Creates a hash object.
	     *
	     * @private
	     * @constructor
	     * @param {Array} [entries] The key-value pairs to cache.
	     */function Hash(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}/**
	     * Removes all key-value entries from the hash.
	     *
	     * @private
	     * @name clear
	     * @memberOf Hash
	     */function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{};this.size=0;}/**
	     * Removes `key` and its value from the hash.
	     *
	     * @private
	     * @name delete
	     * @memberOf Hash
	     * @param {Object} hash The hash to modify.
	     * @param {string} key The key of the value to remove.
	     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
	     */function hashDelete(key){var result=this.has(key)&&delete this.__data__[key];this.size-=result?1:0;return result;}/**
	     * Gets the hash value for `key`.
	     *
	     * @private
	     * @name get
	     * @memberOf Hash
	     * @param {string} key The key of the value to get.
	     * @returns {*} Returns the entry value.
	     */function hashGet(key){var data=this.__data__;if(nativeCreate){var result=data[key];return result===HASH_UNDEFINED?undefined:result;}return hasOwnProperty.call(data,key)?data[key]:undefined;}/**
	     * Checks if a hash value for `key` exists.
	     *
	     * @private
	     * @name has
	     * @memberOf Hash
	     * @param {string} key The key of the entry to check.
	     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
	     */function hashHas(key){var data=this.__data__;return nativeCreate?data[key]!==undefined:hasOwnProperty.call(data,key);}/**
	     * Sets the hash `key` to `value`.
	     *
	     * @private
	     * @name set
	     * @memberOf Hash
	     * @param {string} key The key of the value to set.
	     * @param {*} value The value to set.
	     * @returns {Object} Returns the hash instance.
	     */function hashSet(key,value){var data=this.__data__;this.size+=this.has(key)?0:1;data[key]=nativeCreate&&value===undefined?HASH_UNDEFINED:value;return this;}// Add methods to `Hash`.
	Hash.prototype.clear=hashClear;Hash.prototype['delete']=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;/*------------------------------------------------------------------------*//**
	     * Creates an list cache object.
	     *
	     * @private
	     * @constructor
	     * @param {Array} [entries] The key-value pairs to cache.
	     */function ListCache(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}/**
	     * Removes all key-value entries from the list cache.
	     *
	     * @private
	     * @name clear
	     * @memberOf ListCache
	     */function listCacheClear(){this.__data__=[];this.size=0;}/**
	     * Removes `key` and its value from the list cache.
	     *
	     * @private
	     * @name delete
	     * @memberOf ListCache
	     * @param {string} key The key of the value to remove.
	     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
	     */function listCacheDelete(key){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){return false;}var lastIndex=data.length-1;if(index==lastIndex){data.pop();}else{splice.call(data,index,1);}--this.size;return true;}/**
	     * Gets the list cache value for `key`.
	     *
	     * @private
	     * @name get
	     * @memberOf ListCache
	     * @param {string} key The key of the value to get.
	     * @returns {*} Returns the entry value.
	     */function listCacheGet(key){var data=this.__data__,index=assocIndexOf(data,key);return index<0?undefined:data[index][1];}/**
	     * Checks if a list cache value for `key` exists.
	     *
	     * @private
	     * @name has
	     * @memberOf ListCache
	     * @param {string} key The key of the entry to check.
	     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
	     */function listCacheHas(key){return assocIndexOf(this.__data__,key)>-1;}/**
	     * Sets the list cache `key` to `value`.
	     *
	     * @private
	     * @name set
	     * @memberOf ListCache
	     * @param {string} key The key of the value to set.
	     * @param {*} value The value to set.
	     * @returns {Object} Returns the list cache instance.
	     */function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){++this.size;data.push([key,value]);}else{data[index][1]=value;}return this;}// Add methods to `ListCache`.
	ListCache.prototype.clear=listCacheClear;ListCache.prototype['delete']=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;/*------------------------------------------------------------------------*//**
	     * Creates a map cache object to store key-value pairs.
	     *
	     * @private
	     * @constructor
	     * @param {Array} [entries] The key-value pairs to cache.
	     */function MapCache(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}/**
	     * Removes all key-value entries from the map.
	     *
	     * @private
	     * @name clear
	     * @memberOf MapCache
	     */function mapCacheClear(){this.size=0;this.__data__={'hash':new Hash(),'map':new(Map||ListCache)(),'string':new Hash()};}/**
	     * Removes `key` and its value from the map.
	     *
	     * @private
	     * @name delete
	     * @memberOf MapCache
	     * @param {string} key The key of the value to remove.
	     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
	     */function mapCacheDelete(key){var result=getMapData(this,key)['delete'](key);this.size-=result?1:0;return result;}/**
	     * Gets the map value for `key`.
	     *
	     * @private
	     * @name get
	     * @memberOf MapCache
	     * @param {string} key The key of the value to get.
	     * @returns {*} Returns the entry value.
	     */function mapCacheGet(key){return getMapData(this,key).get(key);}/**
	     * Checks if a map value for `key` exists.
	     *
	     * @private
	     * @name has
	     * @memberOf MapCache
	     * @param {string} key The key of the entry to check.
	     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
	     */function mapCacheHas(key){return getMapData(this,key).has(key);}/**
	     * Sets the map `key` to `value`.
	     *
	     * @private
	     * @name set
	     * @memberOf MapCache
	     * @param {string} key The key of the value to set.
	     * @param {*} value The value to set.
	     * @returns {Object} Returns the map cache instance.
	     */function mapCacheSet(key,value){var data=getMapData(this,key),size=data.size;data.set(key,value);this.size+=data.size==size?0:1;return this;}// Add methods to `MapCache`.
	MapCache.prototype.clear=mapCacheClear;MapCache.prototype['delete']=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;/*------------------------------------------------------------------------*//**
	     *
	     * Creates an array cache object to store unique values.
	     *
	     * @private
	     * @constructor
	     * @param {Array} [values] The values to cache.
	     */function SetCache(values){var index=-1,length=values==null?0:values.length;this.__data__=new MapCache();while(++index<length){this.add(values[index]);}}/**
	     * Adds `value` to the array cache.
	     *
	     * @private
	     * @name add
	     * @memberOf SetCache
	     * @alias push
	     * @param {*} value The value to cache.
	     * @returns {Object} Returns the cache instance.
	     */function setCacheAdd(value){this.__data__.set(value,HASH_UNDEFINED);return this;}/**
	     * Checks if `value` is in the array cache.
	     *
	     * @private
	     * @name has
	     * @memberOf SetCache
	     * @param {*} value The value to search for.
	     * @returns {number} Returns `true` if `value` is found, else `false`.
	     */function setCacheHas(value){return this.__data__.has(value);}// Add methods to `SetCache`.
	SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;/*------------------------------------------------------------------------*//**
	     * Creates a stack cache object to store key-value pairs.
	     *
	     * @private
	     * @constructor
	     * @param {Array} [entries] The key-value pairs to cache.
	     */function Stack(entries){var data=this.__data__=new ListCache(entries);this.size=data.size;}/**
	     * Removes all key-value entries from the stack.
	     *
	     * @private
	     * @name clear
	     * @memberOf Stack
	     */function stackClear(){this.__data__=new ListCache();this.size=0;}/**
	     * Removes `key` and its value from the stack.
	     *
	     * @private
	     * @name delete
	     * @memberOf Stack
	     * @param {string} key The key of the value to remove.
	     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
	     */function stackDelete(key){var data=this.__data__,result=data['delete'](key);this.size=data.size;return result;}/**
	     * Gets the stack value for `key`.
	     *
	     * @private
	     * @name get
	     * @memberOf Stack
	     * @param {string} key The key of the value to get.
	     * @returns {*} Returns the entry value.
	     */function stackGet(key){return this.__data__.get(key);}/**
	     * Checks if a stack value for `key` exists.
	     *
	     * @private
	     * @name has
	     * @memberOf Stack
	     * @param {string} key The key of the entry to check.
	     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
	     */function stackHas(key){return this.__data__.has(key);}/**
	     * Sets the stack `key` to `value`.
	     *
	     * @private
	     * @name set
	     * @memberOf Stack
	     * @param {string} key The key of the value to set.
	     * @param {*} value The value to set.
	     * @returns {Object} Returns the stack cache instance.
	     */function stackSet(key,value){var data=this.__data__;if(data instanceof ListCache){var pairs=data.__data__;if(!Map||pairs.length<LARGE_ARRAY_SIZE-1){pairs.push([key,value]);this.size=++data.size;return this;}data=this.__data__=new MapCache(pairs);}data.set(key,value);this.size=data.size;return this;}// Add methods to `Stack`.
	Stack.prototype.clear=stackClear;Stack.prototype['delete']=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;/*------------------------------------------------------------------------*//**
	     * Creates an array of the enumerable property names of the array-like `value`.
	     *
	     * @private
	     * @param {*} value The value to query.
	     * @param {boolean} inherited Specify returning inherited property names.
	     * @returns {Array} Returns the array of property names.
	     */function arrayLikeKeys(value,inherited){var isArr=isArray(value),isArg=!isArr&&isArguments(value),isBuff=!isArr&&!isArg&&isBuffer(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length=result.length;for(var key in value){if((inherited||hasOwnProperty.call(value,key))&&!(skipIndexes&&(// Safari 9 has enumerable `arguments.length` in strict mode.
	key=='length'||// Node.js 0.10 has enumerable non-index properties on buffers.
	isBuff&&(key=='offset'||key=='parent')||// PhantomJS 2 has enumerable non-index properties on typed arrays.
	isType&&(key=='buffer'||key=='byteLength'||key=='byteOffset')||// Skip index properties.
	isIndex(key,length)))){result.push(key);}}return result;}/**
	     * A specialized version of `_.sample` for arrays.
	     *
	     * @private
	     * @param {Array} array The array to sample.
	     * @returns {*} Returns the random element.
	     */function arraySample(array){var length=array.length;return length?array[baseRandom(0,length-1)]:undefined;}/**
	     * A specialized version of `_.sampleSize` for arrays.
	     *
	     * @private
	     * @param {Array} array The array to sample.
	     * @param {number} n The number of elements to sample.
	     * @returns {Array} Returns the random elements.
	     */function arraySampleSize(array,n){return shuffleSelf(copyArray(array),baseClamp(n,0,array.length));}/**
	     * A specialized version of `_.shuffle` for arrays.
	     *
	     * @private
	     * @param {Array} array The array to shuffle.
	     * @returns {Array} Returns the new shuffled array.
	     */function arrayShuffle(array){return shuffleSelf(copyArray(array));}/**
	     * This function is like `assignValue` except that it doesn't assign
	     * `undefined` values.
	     *
	     * @private
	     * @param {Object} object The object to modify.
	     * @param {string} key The key of the property to assign.
	     * @param {*} value The value to assign.
	     */function assignMergeValue(object,key,value){if(value!==undefined&&!eq(object[key],value)||value===undefined&&!(key in object)){baseAssignValue(object,key,value);}}/**
	     * Assigns `value` to `key` of `object` if the existing value is not equivalent
	     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
	     * for equality comparisons.
	     *
	     * @private
	     * @param {Object} object The object to modify.
	     * @param {string} key The key of the property to assign.
	     * @param {*} value The value to assign.
	     */function assignValue(object,key,value){var objValue=object[key];if(!(hasOwnProperty.call(object,key)&&eq(objValue,value))||value===undefined&&!(key in object)){baseAssignValue(object,key,value);}}/**
	     * Gets the index at which the `key` is found in `array` of key-value pairs.
	     *
	     * @private
	     * @param {Array} array The array to inspect.
	     * @param {*} key The key to search for.
	     * @returns {number} Returns the index of the matched value, else `-1`.
	     */function assocIndexOf(array,key){var length=array.length;while(length--){if(eq(array[length][0],key)){return length;}}return-1;}/**
	     * Aggregates elements of `collection` on `accumulator` with keys transformed
	     * by `iteratee` and values set by `setter`.
	     *
	     * @private
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function} setter The function to set `accumulator` values.
	     * @param {Function} iteratee The iteratee to transform keys.
	     * @param {Object} accumulator The initial aggregated object.
	     * @returns {Function} Returns `accumulator`.
	     */function baseAggregator(collection,setter,iteratee,accumulator){baseEach(collection,function(value,key,collection){setter(accumulator,value,iteratee(value),collection);});return accumulator;}/**
	     * The base implementation of `_.assign` without support for multiple sources
	     * or `customizer` functions.
	     *
	     * @private
	     * @param {Object} object The destination object.
	     * @param {Object} source The source object.
	     * @returns {Object} Returns `object`.
	     */function baseAssign(object,source){return object&&copyObject(source,keys(source),object);}/**
	     * The base implementation of `_.assignIn` without support for multiple sources
	     * or `customizer` functions.
	     *
	     * @private
	     * @param {Object} object The destination object.
	     * @param {Object} source The source object.
	     * @returns {Object} Returns `object`.
	     */function baseAssignIn(object,source){return object&&copyObject(source,keysIn(source),object);}/**
	     * The base implementation of `assignValue` and `assignMergeValue` without
	     * value checks.
	     *
	     * @private
	     * @param {Object} object The object to modify.
	     * @param {string} key The key of the property to assign.
	     * @param {*} value The value to assign.
	     */function baseAssignValue(object,key,value){if(key=='__proto__'&&defineProperty){defineProperty(object,key,{'configurable':true,'enumerable':true,'value':value,'writable':true});}else{object[key]=value;}}/**
	     * The base implementation of `_.at` without support for individual paths.
	     *
	     * @private
	     * @param {Object} object The object to iterate over.
	     * @param {string[]} paths The property paths to pick.
	     * @returns {Array} Returns the picked elements.
	     */function baseAt(object,paths){var index=-1,length=paths.length,result=Array(length),skip=object==null;while(++index<length){result[index]=skip?undefined:get(object,paths[index]);}return result;}/**
	     * The base implementation of `_.clamp` which doesn't coerce arguments.
	     *
	     * @private
	     * @param {number} number The number to clamp.
	     * @param {number} [lower] The lower bound.
	     * @param {number} upper The upper bound.
	     * @returns {number} Returns the clamped number.
	     */function baseClamp(number,lower,upper){if(number===number){if(upper!==undefined){number=number<=upper?number:upper;}if(lower!==undefined){number=number>=lower?number:lower;}}return number;}/**
	     * The base implementation of `_.clone` and `_.cloneDeep` which tracks
	     * traversed objects.
	     *
	     * @private
	     * @param {*} value The value to clone.
	     * @param {boolean} bitmask The bitmask flags.
	     *  1 - Deep clone
	     *  2 - Flatten inherited properties
	     *  4 - Clone symbols
	     * @param {Function} [customizer] The function to customize cloning.
	     * @param {string} [key] The key of `value`.
	     * @param {Object} [object] The parent object of `value`.
	     * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
	     * @returns {*} Returns the cloned value.
	     */function baseClone(value,bitmask,customizer,key,object,stack){var result,isDeep=bitmask&CLONE_DEEP_FLAG,isFlat=bitmask&CLONE_FLAT_FLAG,isFull=bitmask&CLONE_SYMBOLS_FLAG;if(customizer){result=object?customizer(value,key,object,stack):customizer(value);}if(result!==undefined){return result;}if(!isObject(value)){return value;}var isArr=isArray(value);if(isArr){result=initCloneArray(value);if(!isDeep){return copyArray(value,result);}}else{var tag=getTag(value),isFunc=tag==funcTag||tag==genTag;if(isBuffer(value)){return cloneBuffer(value,isDeep);}if(tag==objectTag||tag==argsTag||isFunc&&!object){result=isFlat||isFunc?{}:initCloneObject(value);if(!isDeep){return isFlat?copySymbolsIn(value,baseAssignIn(result,value)):copySymbols(value,baseAssign(result,value));}}else{if(!cloneableTags[tag]){return object?value:{};}result=initCloneByTag(value,tag,isDeep);}}// Check for circular references and return its corresponding clone.
	stack||(stack=new Stack());var stacked=stack.get(value);if(stacked){return stacked;}stack.set(value,result);if(isSet(value)){value.forEach(function(subValue){result.add(baseClone(subValue,bitmask,customizer,subValue,value,stack));});}else if(isMap(value)){value.forEach(function(subValue,key){result.set(key,baseClone(subValue,bitmask,customizer,key,value,stack));});}var keysFunc=isFull?isFlat?getAllKeysIn:getAllKeys:isFlat?keysIn:keys;var props=isArr?undefined:keysFunc(value);arrayEach(props||value,function(subValue,key){if(props){key=subValue;subValue=value[key];}// Recursively populate clone (susceptible to call stack limits).
	assignValue(result,key,baseClone(subValue,bitmask,customizer,key,value,stack));});return result;}/**
	     * The base implementation of `_.conforms` which doesn't clone `source`.
	     *
	     * @private
	     * @param {Object} source The object of property predicates to conform to.
	     * @returns {Function} Returns the new spec function.
	     */function baseConforms(source){var props=keys(source);return function(object){return baseConformsTo(object,source,props);};}/**
	     * The base implementation of `_.conformsTo` which accepts `props` to check.
	     *
	     * @private
	     * @param {Object} object The object to inspect.
	     * @param {Object} source The object of property predicates to conform to.
	     * @returns {boolean} Returns `true` if `object` conforms, else `false`.
	     */function baseConformsTo(object,source,props){var length=props.length;if(object==null){return!length;}object=Object(object);while(length--){var key=props[length],predicate=source[key],value=object[key];if(value===undefined&&!(key in object)||!predicate(value)){return false;}}return true;}/**
	     * The base implementation of `_.delay` and `_.defer` which accepts `args`
	     * to provide to `func`.
	     *
	     * @private
	     * @param {Function} func The function to delay.
	     * @param {number} wait The number of milliseconds to delay invocation.
	     * @param {Array} args The arguments to provide to `func`.
	     * @returns {number|Object} Returns the timer id or timeout object.
	     */function baseDelay(func,wait,args){if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}return setTimeout(function(){func.apply(undefined,args);},wait);}/**
	     * The base implementation of methods like `_.difference` without support
	     * for excluding multiple arrays or iteratee shorthands.
	     *
	     * @private
	     * @param {Array} array The array to inspect.
	     * @param {Array} values The values to exclude.
	     * @param {Function} [iteratee] The iteratee invoked per element.
	     * @param {Function} [comparator] The comparator invoked per element.
	     * @returns {Array} Returns the new array of filtered values.
	     */function baseDifference(array,values,iteratee,comparator){var index=-1,includes=arrayIncludes,isCommon=true,length=array.length,result=[],valuesLength=values.length;if(!length){return result;}if(iteratee){values=arrayMap(values,baseUnary(iteratee));}if(comparator){includes=arrayIncludesWith;isCommon=false;}else if(values.length>=LARGE_ARRAY_SIZE){includes=cacheHas;isCommon=false;values=new SetCache(values);}outer:while(++index<length){var value=array[index],computed=iteratee==null?value:iteratee(value);value=comparator||value!==0?value:0;if(isCommon&&computed===computed){var valuesIndex=valuesLength;while(valuesIndex--){if(values[valuesIndex]===computed){continue outer;}}result.push(value);}else if(!includes(values,computed,comparator)){result.push(value);}}return result;}/**
	     * The base implementation of `_.forEach` without support for iteratee shorthands.
	     *
	     * @private
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @returns {Array|Object} Returns `collection`.
	     */var baseEach=createBaseEach(baseForOwn);/**
	     * The base implementation of `_.forEachRight` without support for iteratee shorthands.
	     *
	     * @private
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @returns {Array|Object} Returns `collection`.
	     */var baseEachRight=createBaseEach(baseForOwnRight,true);/**
	     * The base implementation of `_.every` without support for iteratee shorthands.
	     *
	     * @private
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function} predicate The function invoked per iteration.
	     * @returns {boolean} Returns `true` if all elements pass the predicate check,
	     *  else `false`
	     */function baseEvery(collection,predicate){var result=true;baseEach(collection,function(value,index,collection){result=!!predicate(value,index,collection);return result;});return result;}/**
	     * The base implementation of methods like `_.max` and `_.min` which accepts a
	     * `comparator` to determine the extremum value.
	     *
	     * @private
	     * @param {Array} array The array to iterate over.
	     * @param {Function} iteratee The iteratee invoked per iteration.
	     * @param {Function} comparator The comparator used to compare values.
	     * @returns {*} Returns the extremum value.
	     */function baseExtremum(array,iteratee,comparator){var index=-1,length=array.length;while(++index<length){var value=array[index],current=iteratee(value);if(current!=null&&(computed===undefined?current===current&&!isSymbol(current):comparator(current,computed))){var computed=current,result=value;}}return result;}/**
	     * The base implementation of `_.fill` without an iteratee call guard.
	     *
	     * @private
	     * @param {Array} array The array to fill.
	     * @param {*} value The value to fill `array` with.
	     * @param {number} [start=0] The start position.
	     * @param {number} [end=array.length] The end position.
	     * @returns {Array} Returns `array`.
	     */function baseFill(array,value,start,end){var length=array.length;start=toInteger(start);if(start<0){start=-start>length?0:length+start;}end=end===undefined||end>length?length:toInteger(end);if(end<0){end+=length;}end=start>end?0:toLength(end);while(start<end){array[start++]=value;}return array;}/**
	     * The base implementation of `_.filter` without support for iteratee shorthands.
	     *
	     * @private
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function} predicate The function invoked per iteration.
	     * @returns {Array} Returns the new filtered array.
	     */function baseFilter(collection,predicate){var result=[];baseEach(collection,function(value,index,collection){if(predicate(value,index,collection)){result.push(value);}});return result;}/**
	     * The base implementation of `_.flatten` with support for restricting flattening.
	     *
	     * @private
	     * @param {Array} array The array to flatten.
	     * @param {number} depth The maximum recursion depth.
	     * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
	     * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
	     * @param {Array} [result=[]] The initial result value.
	     * @returns {Array} Returns the new flattened array.
	     */function baseFlatten(array,depth,predicate,isStrict,result){var index=-1,length=array.length;predicate||(predicate=isFlattenable);result||(result=[]);while(++index<length){var value=array[index];if(depth>0&&predicate(value)){if(depth>1){// Recursively flatten arrays (susceptible to call stack limits).
	baseFlatten(value,depth-1,predicate,isStrict,result);}else{arrayPush(result,value);}}else if(!isStrict){result[result.length]=value;}}return result;}/**
	     * The base implementation of `baseForOwn` which iterates over `object`
	     * properties returned by `keysFunc` and invokes `iteratee` for each property.
	     * Iteratee functions may exit iteration early by explicitly returning `false`.
	     *
	     * @private
	     * @param {Object} object The object to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @param {Function} keysFunc The function to get the keys of `object`.
	     * @returns {Object} Returns `object`.
	     */var baseFor=createBaseFor();/**
	     * This function is like `baseFor` except that it iterates over properties
	     * in the opposite order.
	     *
	     * @private
	     * @param {Object} object The object to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @param {Function} keysFunc The function to get the keys of `object`.
	     * @returns {Object} Returns `object`.
	     */var baseForRight=createBaseFor(true);/**
	     * The base implementation of `_.forOwn` without support for iteratee shorthands.
	     *
	     * @private
	     * @param {Object} object The object to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @returns {Object} Returns `object`.
	     */function baseForOwn(object,iteratee){return object&&baseFor(object,iteratee,keys);}/**
	     * The base implementation of `_.forOwnRight` without support for iteratee shorthands.
	     *
	     * @private
	     * @param {Object} object The object to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @returns {Object} Returns `object`.
	     */function baseForOwnRight(object,iteratee){return object&&baseForRight(object,iteratee,keys);}/**
	     * The base implementation of `_.functions` which creates an array of
	     * `object` function property names filtered from `props`.
	     *
	     * @private
	     * @param {Object} object The object to inspect.
	     * @param {Array} props The property names to filter.
	     * @returns {Array} Returns the function names.
	     */function baseFunctions(object,props){return arrayFilter(props,function(key){return isFunction(object[key]);});}/**
	     * The base implementation of `_.get` without support for default values.
	     *
	     * @private
	     * @param {Object} object The object to query.
	     * @param {Array|string} path The path of the property to get.
	     * @returns {*} Returns the resolved value.
	     */function baseGet(object,path){path=castPath(path,object);var index=0,length=path.length;while(object!=null&&index<length){object=object[toKey(path[index++])];}return index&&index==length?object:undefined;}/**
	     * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
	     * `keysFunc` and `symbolsFunc` to get the enumerable property names and
	     * symbols of `object`.
	     *
	     * @private
	     * @param {Object} object The object to query.
	     * @param {Function} keysFunc The function to get the keys of `object`.
	     * @param {Function} symbolsFunc The function to get the symbols of `object`.
	     * @returns {Array} Returns the array of property names and symbols.
	     */function baseGetAllKeys(object,keysFunc,symbolsFunc){var result=keysFunc(object);return isArray(object)?result:arrayPush(result,symbolsFunc(object));}/**
	     * The base implementation of `getTag` without fallbacks for buggy environments.
	     *
	     * @private
	     * @param {*} value The value to query.
	     * @returns {string} Returns the `toStringTag`.
	     */function baseGetTag(value){if(value==null){return value===undefined?undefinedTag:nullTag;}return symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString(value);}/**
	     * The base implementation of `_.gt` which doesn't coerce arguments.
	     *
	     * @private
	     * @param {*} value The value to compare.
	     * @param {*} other The other value to compare.
	     * @returns {boolean} Returns `true` if `value` is greater than `other`,
	     *  else `false`.
	     */function baseGt(value,other){return value>other;}/**
	     * The base implementation of `_.has` without support for deep paths.
	     *
	     * @private
	     * @param {Object} [object] The object to query.
	     * @param {Array|string} key The key to check.
	     * @returns {boolean} Returns `true` if `key` exists, else `false`.
	     */function baseHas(object,key){return object!=null&&hasOwnProperty.call(object,key);}/**
	     * The base implementation of `_.hasIn` without support for deep paths.
	     *
	     * @private
	     * @param {Object} [object] The object to query.
	     * @param {Array|string} key The key to check.
	     * @returns {boolean} Returns `true` if `key` exists, else `false`.
	     */function baseHasIn(object,key){return object!=null&&key in Object(object);}/**
	     * The base implementation of `_.inRange` which doesn't coerce arguments.
	     *
	     * @private
	     * @param {number} number The number to check.
	     * @param {number} start The start of the range.
	     * @param {number} end The end of the range.
	     * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
	     */function baseInRange(number,start,end){return number>=nativeMin(start,end)&&number<nativeMax(start,end);}/**
	     * The base implementation of methods like `_.intersection`, without support
	     * for iteratee shorthands, that accepts an array of arrays to inspect.
	     *
	     * @private
	     * @param {Array} arrays The arrays to inspect.
	     * @param {Function} [iteratee] The iteratee invoked per element.
	     * @param {Function} [comparator] The comparator invoked per element.
	     * @returns {Array} Returns the new array of shared values.
	     */function baseIntersection(arrays,iteratee,comparator){var includes=comparator?arrayIncludesWith:arrayIncludes,length=arrays[0].length,othLength=arrays.length,othIndex=othLength,caches=Array(othLength),maxLength=Infinity,result=[];while(othIndex--){var array=arrays[othIndex];if(othIndex&&iteratee){array=arrayMap(array,baseUnary(iteratee));}maxLength=nativeMin(array.length,maxLength);caches[othIndex]=!comparator&&(iteratee||length>=120&&array.length>=120)?new SetCache(othIndex&&array):undefined;}array=arrays[0];var index=-1,seen=caches[0];outer:while(++index<length&&result.length<maxLength){var value=array[index],computed=iteratee?iteratee(value):value;value=comparator||value!==0?value:0;if(!(seen?cacheHas(seen,computed):includes(result,computed,comparator))){othIndex=othLength;while(--othIndex){var cache=caches[othIndex];if(!(cache?cacheHas(cache,computed):includes(arrays[othIndex],computed,comparator))){continue outer;}}if(seen){seen.push(computed);}result.push(value);}}return result;}/**
	     * The base implementation of `_.invert` and `_.invertBy` which inverts
	     * `object` with values transformed by `iteratee` and set by `setter`.
	     *
	     * @private
	     * @param {Object} object The object to iterate over.
	     * @param {Function} setter The function to set `accumulator` values.
	     * @param {Function} iteratee The iteratee to transform values.
	     * @param {Object} accumulator The initial inverted object.
	     * @returns {Function} Returns `accumulator`.
	     */function baseInverter(object,setter,iteratee,accumulator){baseForOwn(object,function(value,key,object){setter(accumulator,iteratee(value),key,object);});return accumulator;}/**
	     * The base implementation of `_.invoke` without support for individual
	     * method arguments.
	     *
	     * @private
	     * @param {Object} object The object to query.
	     * @param {Array|string} path The path of the method to invoke.
	     * @param {Array} args The arguments to invoke the method with.
	     * @returns {*} Returns the result of the invoked method.
	     */function baseInvoke(object,path,args){path=castPath(path,object);object=parent(object,path);var func=object==null?object:object[toKey(last(path))];return func==null?undefined:apply(func,object,args);}/**
	     * The base implementation of `_.isArguments`.
	     *
	     * @private
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is an `arguments` object,
	     */function baseIsArguments(value){return isObjectLike(value)&&baseGetTag(value)==argsTag;}/**
	     * The base implementation of `_.isArrayBuffer` without Node.js optimizations.
	     *
	     * @private
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
	     */function baseIsArrayBuffer(value){return isObjectLike(value)&&baseGetTag(value)==arrayBufferTag;}/**
	     * The base implementation of `_.isDate` without Node.js optimizations.
	     *
	     * @private
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
	     */function baseIsDate(value){return isObjectLike(value)&&baseGetTag(value)==dateTag;}/**
	     * The base implementation of `_.isEqual` which supports partial comparisons
	     * and tracks traversed objects.
	     *
	     * @private
	     * @param {*} value The value to compare.
	     * @param {*} other The other value to compare.
	     * @param {boolean} bitmask The bitmask flags.
	     *  1 - Unordered comparison
	     *  2 - Partial comparison
	     * @param {Function} [customizer] The function to customize comparisons.
	     * @param {Object} [stack] Tracks traversed `value` and `other` objects.
	     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
	     */function baseIsEqual(value,other,bitmask,customizer,stack){if(value===other){return true;}if(value==null||other==null||!isObjectLike(value)&&!isObjectLike(other)){return value!==value&&other!==other;}return baseIsEqualDeep(value,other,bitmask,customizer,baseIsEqual,stack);}/**
	     * A specialized version of `baseIsEqual` for arrays and objects which performs
	     * deep comparisons and tracks traversed objects enabling objects with circular
	     * references to be compared.
	     *
	     * @private
	     * @param {Object} object The object to compare.
	     * @param {Object} other The other object to compare.
	     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
	     * @param {Function} customizer The function to customize comparisons.
	     * @param {Function} equalFunc The function to determine equivalents of values.
	     * @param {Object} [stack] Tracks traversed `object` and `other` objects.
	     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
	     */function baseIsEqualDeep(object,other,bitmask,customizer,equalFunc,stack){var objIsArr=isArray(object),othIsArr=isArray(other),objTag=objIsArr?arrayTag:getTag(object),othTag=othIsArr?arrayTag:getTag(other);objTag=objTag==argsTag?objectTag:objTag;othTag=othTag==argsTag?objectTag:othTag;var objIsObj=objTag==objectTag,othIsObj=othTag==objectTag,isSameTag=objTag==othTag;if(isSameTag&&isBuffer(object)){if(!isBuffer(other)){return false;}objIsArr=true;objIsObj=false;}if(isSameTag&&!objIsObj){stack||(stack=new Stack());return objIsArr||isTypedArray(object)?equalArrays(object,other,bitmask,customizer,equalFunc,stack):equalByTag(object,other,objTag,bitmask,customizer,equalFunc,stack);}if(!(bitmask&COMPARE_PARTIAL_FLAG)){var objIsWrapped=objIsObj&&hasOwnProperty.call(object,'__wrapped__'),othIsWrapped=othIsObj&&hasOwnProperty.call(other,'__wrapped__');if(objIsWrapped||othIsWrapped){var objUnwrapped=objIsWrapped?object.value():object,othUnwrapped=othIsWrapped?other.value():other;stack||(stack=new Stack());return equalFunc(objUnwrapped,othUnwrapped,bitmask,customizer,stack);}}if(!isSameTag){return false;}stack||(stack=new Stack());return equalObjects(object,other,bitmask,customizer,equalFunc,stack);}/**
	     * The base implementation of `_.isMap` without Node.js optimizations.
	     *
	     * @private
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a map, else `false`.
	     */function baseIsMap(value){return isObjectLike(value)&&getTag(value)==mapTag;}/**
	     * The base implementation of `_.isMatch` without support for iteratee shorthands.
	     *
	     * @private
	     * @param {Object} object The object to inspect.
	     * @param {Object} source The object of property values to match.
	     * @param {Array} matchData The property names, values, and compare flags to match.
	     * @param {Function} [customizer] The function to customize comparisons.
	     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
	     */function baseIsMatch(object,source,matchData,customizer){var index=matchData.length,length=index,noCustomizer=!customizer;if(object==null){return!length;}object=Object(object);while(index--){var data=matchData[index];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object)){return false;}}while(++index<length){data=matchData[index];var key=data[0],objValue=object[key],srcValue=data[1];if(noCustomizer&&data[2]){if(objValue===undefined&&!(key in object)){return false;}}else{var stack=new Stack();if(customizer){var result=customizer(objValue,srcValue,key,object,source,stack);}if(!(result===undefined?baseIsEqual(srcValue,objValue,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG,customizer,stack):result)){return false;}}}return true;}/**
	     * The base implementation of `_.isNative` without bad shim checks.
	     *
	     * @private
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a native function,
	     *  else `false`.
	     */function baseIsNative(value){if(!isObject(value)||isMasked(value)){return false;}var pattern=isFunction(value)?reIsNative:reIsHostCtor;return pattern.test(toSource(value));}/**
	     * The base implementation of `_.isRegExp` without Node.js optimizations.
	     *
	     * @private
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
	     */function baseIsRegExp(value){return isObjectLike(value)&&baseGetTag(value)==regexpTag;}/**
	     * The base implementation of `_.isSet` without Node.js optimizations.
	     *
	     * @private
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a set, else `false`.
	     */function baseIsSet(value){return isObjectLike(value)&&getTag(value)==setTag;}/**
	     * The base implementation of `_.isTypedArray` without Node.js optimizations.
	     *
	     * @private
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
	     */function baseIsTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[baseGetTag(value)];}/**
	     * The base implementation of `_.iteratee`.
	     *
	     * @private
	     * @param {*} [value=_.identity] The value to convert to an iteratee.
	     * @returns {Function} Returns the iteratee.
	     */function baseIteratee(value){// Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
	// See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
	if(typeof value=='function'){return value;}if(value==null){return identity;}if((typeof value==='undefined'?'undefined':_typeof(value))=='object'){return isArray(value)?baseMatchesProperty(value[0],value[1]):baseMatches(value);}return property(value);}/**
	     * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
	     *
	     * @private
	     * @param {Object} object The object to query.
	     * @returns {Array} Returns the array of property names.
	     */function baseKeys(object){if(!isPrototype(object)){return nativeKeys(object);}var result=[];for(var key in Object(object)){if(hasOwnProperty.call(object,key)&&key!='constructor'){result.push(key);}}return result;}/**
	     * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
	     *
	     * @private
	     * @param {Object} object The object to query.
	     * @returns {Array} Returns the array of property names.
	     */function baseKeysIn(object){if(!isObject(object)){return nativeKeysIn(object);}var isProto=isPrototype(object),result=[];for(var key in object){if(!(key=='constructor'&&(isProto||!hasOwnProperty.call(object,key)))){result.push(key);}}return result;}/**
	     * The base implementation of `_.lt` which doesn't coerce arguments.
	     *
	     * @private
	     * @param {*} value The value to compare.
	     * @param {*} other The other value to compare.
	     * @returns {boolean} Returns `true` if `value` is less than `other`,
	     *  else `false`.
	     */function baseLt(value,other){return value<other;}/**
	     * The base implementation of `_.map` without support for iteratee shorthands.
	     *
	     * @private
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @returns {Array} Returns the new mapped array.
	     */function baseMap(collection,iteratee){var index=-1,result=isArrayLike(collection)?Array(collection.length):[];baseEach(collection,function(value,key,collection){result[++index]=iteratee(value,key,collection);});return result;}/**
	     * The base implementation of `_.matches` which doesn't clone `source`.
	     *
	     * @private
	     * @param {Object} source The object of property values to match.
	     * @returns {Function} Returns the new spec function.
	     */function baseMatches(source){var matchData=getMatchData(source);if(matchData.length==1&&matchData[0][2]){return matchesStrictComparable(matchData[0][0],matchData[0][1]);}return function(object){return object===source||baseIsMatch(object,source,matchData);};}/**
	     * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
	     *
	     * @private
	     * @param {string} path The path of the property to get.
	     * @param {*} srcValue The value to match.
	     * @returns {Function} Returns the new spec function.
	     */function baseMatchesProperty(path,srcValue){if(isKey(path)&&isStrictComparable(srcValue)){return matchesStrictComparable(toKey(path),srcValue);}return function(object){var objValue=get(object,path);return objValue===undefined&&objValue===srcValue?hasIn(object,path):baseIsEqual(srcValue,objValue,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG);};}/**
	     * The base implementation of `_.merge` without support for multiple sources.
	     *
	     * @private
	     * @param {Object} object The destination object.
	     * @param {Object} source The source object.
	     * @param {number} srcIndex The index of `source`.
	     * @param {Function} [customizer] The function to customize merged values.
	     * @param {Object} [stack] Tracks traversed source values and their merged
	     *  counterparts.
	     */function baseMerge(object,source,srcIndex,customizer,stack){if(object===source){return;}baseFor(source,function(srcValue,key){stack||(stack=new Stack());if(isObject(srcValue)){baseMergeDeep(object,source,key,srcIndex,baseMerge,customizer,stack);}else{var newValue=customizer?customizer(safeGet(object,key),srcValue,key+'',object,source,stack):undefined;if(newValue===undefined){newValue=srcValue;}assignMergeValue(object,key,newValue);}},keysIn);}/**
	     * A specialized version of `baseMerge` for arrays and objects which performs
	     * deep merges and tracks traversed objects enabling objects with circular
	     * references to be merged.
	     *
	     * @private
	     * @param {Object} object The destination object.
	     * @param {Object} source The source object.
	     * @param {string} key The key of the value to merge.
	     * @param {number} srcIndex The index of `source`.
	     * @param {Function} mergeFunc The function to merge values.
	     * @param {Function} [customizer] The function to customize assigned values.
	     * @param {Object} [stack] Tracks traversed source values and their merged
	     *  counterparts.
	     */function baseMergeDeep(object,source,key,srcIndex,mergeFunc,customizer,stack){var objValue=safeGet(object,key),srcValue=safeGet(source,key),stacked=stack.get(srcValue);if(stacked){assignMergeValue(object,key,stacked);return;}var newValue=customizer?customizer(objValue,srcValue,key+'',object,source,stack):undefined;var isCommon=newValue===undefined;if(isCommon){var isArr=isArray(srcValue),isBuff=!isArr&&isBuffer(srcValue),isTyped=!isArr&&!isBuff&&isTypedArray(srcValue);newValue=srcValue;if(isArr||isBuff||isTyped){if(isArray(objValue)){newValue=objValue;}else if(isArrayLikeObject(objValue)){newValue=copyArray(objValue);}else if(isBuff){isCommon=false;newValue=cloneBuffer(srcValue,true);}else if(isTyped){isCommon=false;newValue=cloneTypedArray(srcValue,true);}else{newValue=[];}}else if(isPlainObject(srcValue)||isArguments(srcValue)){newValue=objValue;if(isArguments(objValue)){newValue=toPlainObject(objValue);}else if(!isObject(objValue)||isFunction(objValue)){newValue=initCloneObject(srcValue);}}else{isCommon=false;}}if(isCommon){// Recursively merge objects and arrays (susceptible to call stack limits).
	stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,stack);stack['delete'](srcValue);}assignMergeValue(object,key,newValue);}/**
	     * The base implementation of `_.nth` which doesn't coerce arguments.
	     *
	     * @private
	     * @param {Array} array The array to query.
	     * @param {number} n The index of the element to return.
	     * @returns {*} Returns the nth element of `array`.
	     */function baseNth(array,n){var length=array.length;if(!length){return;}n+=n<0?length:0;return isIndex(n,length)?array[n]:undefined;}/**
	     * The base implementation of `_.orderBy` without param guards.
	     *
	     * @private
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
	     * @param {string[]} orders The sort orders of `iteratees`.
	     * @returns {Array} Returns the new sorted array.
	     */function baseOrderBy(collection,iteratees,orders){if(iteratees.length){iteratees=arrayMap(iteratees,function(iteratee){if(isArray(iteratee)){return function(value){return baseGet(value,iteratee.length===1?iteratee[0]:iteratee);};}return iteratee;});}else{iteratees=[identity];}var index=-1;iteratees=arrayMap(iteratees,baseUnary(getIteratee()));var result=baseMap(collection,function(value,key,collection){var criteria=arrayMap(iteratees,function(iteratee){return iteratee(value);});return{'criteria':criteria,'index':++index,'value':value};});return baseSortBy(result,function(object,other){return compareMultiple(object,other,orders);});}/**
	     * The base implementation of `_.pick` without support for individual
	     * property identifiers.
	     *
	     * @private
	     * @param {Object} object The source object.
	     * @param {string[]} paths The property paths to pick.
	     * @returns {Object} Returns the new object.
	     */function basePick(object,paths){return basePickBy(object,paths,function(value,path){return hasIn(object,path);});}/**
	     * The base implementation of  `_.pickBy` without support for iteratee shorthands.
	     *
	     * @private
	     * @param {Object} object The source object.
	     * @param {string[]} paths The property paths to pick.
	     * @param {Function} predicate The function invoked per property.
	     * @returns {Object} Returns the new object.
	     */function basePickBy(object,paths,predicate){var index=-1,length=paths.length,result={};while(++index<length){var path=paths[index],value=baseGet(object,path);if(predicate(value,path)){baseSet(result,castPath(path,object),value);}}return result;}/**
	     * A specialized version of `baseProperty` which supports deep paths.
	     *
	     * @private
	     * @param {Array|string} path The path of the property to get.
	     * @returns {Function} Returns the new accessor function.
	     */function basePropertyDeep(path){return function(object){return baseGet(object,path);};}/**
	     * The base implementation of `_.pullAllBy` without support for iteratee
	     * shorthands.
	     *
	     * @private
	     * @param {Array} array The array to modify.
	     * @param {Array} values The values to remove.
	     * @param {Function} [iteratee] The iteratee invoked per element.
	     * @param {Function} [comparator] The comparator invoked per element.
	     * @returns {Array} Returns `array`.
	     */function basePullAll(array,values,iteratee,comparator){var indexOf=comparator?baseIndexOfWith:baseIndexOf,index=-1,length=values.length,seen=array;if(array===values){values=copyArray(values);}if(iteratee){seen=arrayMap(array,baseUnary(iteratee));}while(++index<length){var fromIndex=0,value=values[index],computed=iteratee?iteratee(value):value;while((fromIndex=indexOf(seen,computed,fromIndex,comparator))>-1){if(seen!==array){splice.call(seen,fromIndex,1);}splice.call(array,fromIndex,1);}}return array;}/**
	     * The base implementation of `_.pullAt` without support for individual
	     * indexes or capturing the removed elements.
	     *
	     * @private
	     * @param {Array} array The array to modify.
	     * @param {number[]} indexes The indexes of elements to remove.
	     * @returns {Array} Returns `array`.
	     */function basePullAt(array,indexes){var length=array?indexes.length:0,lastIndex=length-1;while(length--){var index=indexes[length];if(length==lastIndex||index!==previous){var previous=index;if(isIndex(index)){splice.call(array,index,1);}else{baseUnset(array,index);}}}return array;}/**
	     * The base implementation of `_.random` without support for returning
	     * floating-point numbers.
	     *
	     * @private
	     * @param {number} lower The lower bound.
	     * @param {number} upper The upper bound.
	     * @returns {number} Returns the random number.
	     */function baseRandom(lower,upper){return lower+nativeFloor(nativeRandom()*(upper-lower+1));}/**
	     * The base implementation of `_.range` and `_.rangeRight` which doesn't
	     * coerce arguments.
	     *
	     * @private
	     * @param {number} start The start of the range.
	     * @param {number} end The end of the range.
	     * @param {number} step The value to increment or decrement by.
	     * @param {boolean} [fromRight] Specify iterating from right to left.
	     * @returns {Array} Returns the range of numbers.
	     */function baseRange(start,end,step,fromRight){var index=-1,length=nativeMax(nativeCeil((end-start)/(step||1)),0),result=Array(length);while(length--){result[fromRight?length:++index]=start;start+=step;}return result;}/**
	     * The base implementation of `_.repeat` which doesn't coerce arguments.
	     *
	     * @private
	     * @param {string} string The string to repeat.
	     * @param {number} n The number of times to repeat the string.
	     * @returns {string} Returns the repeated string.
	     */function baseRepeat(string,n){var result='';if(!string||n<1||n>MAX_SAFE_INTEGER){return result;}// Leverage the exponentiation by squaring algorithm for a faster repeat.
	// See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
	do{if(n%2){result+=string;}n=nativeFloor(n/2);if(n){string+=string;}}while(n);return result;}/**
	     * The base implementation of `_.rest` which doesn't validate or coerce arguments.
	     *
	     * @private
	     * @param {Function} func The function to apply a rest parameter to.
	     * @param {number} [start=func.length-1] The start position of the rest parameter.
	     * @returns {Function} Returns the new function.
	     */function baseRest(func,start){return setToString(overRest(func,start,identity),func+'');}/**
	     * The base implementation of `_.sample`.
	     *
	     * @private
	     * @param {Array|Object} collection The collection to sample.
	     * @returns {*} Returns the random element.
	     */function baseSample(collection){return arraySample(values(collection));}/**
	     * The base implementation of `_.sampleSize` without param guards.
	     *
	     * @private
	     * @param {Array|Object} collection The collection to sample.
	     * @param {number} n The number of elements to sample.
	     * @returns {Array} Returns the random elements.
	     */function baseSampleSize(collection,n){var array=values(collection);return shuffleSelf(array,baseClamp(n,0,array.length));}/**
	     * The base implementation of `_.set`.
	     *
	     * @private
	     * @param {Object} object The object to modify.
	     * @param {Array|string} path The path of the property to set.
	     * @param {*} value The value to set.
	     * @param {Function} [customizer] The function to customize path creation.
	     * @returns {Object} Returns `object`.
	     */function baseSet(object,path,value,customizer){if(!isObject(object)){return object;}path=castPath(path,object);var index=-1,length=path.length,lastIndex=length-1,nested=object;while(nested!=null&&++index<length){var key=toKey(path[index]),newValue=value;if(key==='__proto__'||key==='constructor'||key==='prototype'){return object;}if(index!=lastIndex){var objValue=nested[key];newValue=customizer?customizer(objValue,key,nested):undefined;if(newValue===undefined){newValue=isObject(objValue)?objValue:isIndex(path[index+1])?[]:{};}}assignValue(nested,key,newValue);nested=nested[key];}return object;}/**
	     * The base implementation of `setData` without support for hot loop shorting.
	     *
	     * @private
	     * @param {Function} func The function to associate metadata with.
	     * @param {*} data The metadata.
	     * @returns {Function} Returns `func`.
	     */var baseSetData=!metaMap?identity:function(func,data){metaMap.set(func,data);return func;};/**
	     * The base implementation of `setToString` without support for hot loop shorting.
	     *
	     * @private
	     * @param {Function} func The function to modify.
	     * @param {Function} string The `toString` result.
	     * @returns {Function} Returns `func`.
	     */var baseSetToString=!defineProperty?identity:function(func,string){return defineProperty(func,'toString',{'configurable':true,'enumerable':false,'value':constant(string),'writable':true});};/**
	     * The base implementation of `_.shuffle`.
	     *
	     * @private
	     * @param {Array|Object} collection The collection to shuffle.
	     * @returns {Array} Returns the new shuffled array.
	     */function baseShuffle(collection){return shuffleSelf(values(collection));}/**
	     * The base implementation of `_.slice` without an iteratee call guard.
	     *
	     * @private
	     * @param {Array} array The array to slice.
	     * @param {number} [start=0] The start position.
	     * @param {number} [end=array.length] The end position.
	     * @returns {Array} Returns the slice of `array`.
	     */function baseSlice(array,start,end){var index=-1,length=array.length;if(start<0){start=-start>length?0:length+start;}end=end>length?length:end;if(end<0){end+=length;}length=start>end?0:end-start>>>0;start>>>=0;var result=Array(length);while(++index<length){result[index]=array[index+start];}return result;}/**
	     * The base implementation of `_.some` without support for iteratee shorthands.
	     *
	     * @private
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function} predicate The function invoked per iteration.
	     * @returns {boolean} Returns `true` if any element passes the predicate check,
	     *  else `false`.
	     */function baseSome(collection,predicate){var result;baseEach(collection,function(value,index,collection){result=predicate(value,index,collection);return!result;});return!!result;}/**
	     * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
	     * performs a binary search of `array` to determine the index at which `value`
	     * should be inserted into `array` in order to maintain its sort order.
	     *
	     * @private
	     * @param {Array} array The sorted array to inspect.
	     * @param {*} value The value to evaluate.
	     * @param {boolean} [retHighest] Specify returning the highest qualified index.
	     * @returns {number} Returns the index at which `value` should be inserted
	     *  into `array`.
	     */function baseSortedIndex(array,value,retHighest){var low=0,high=array==null?low:array.length;if(typeof value=='number'&&value===value&&high<=HALF_MAX_ARRAY_LENGTH){while(low<high){var mid=low+high>>>1,computed=array[mid];if(computed!==null&&!isSymbol(computed)&&(retHighest?computed<=value:computed<value)){low=mid+1;}else{high=mid;}}return high;}return baseSortedIndexBy(array,value,identity,retHighest);}/**
	     * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
	     * which invokes `iteratee` for `value` and each element of `array` to compute
	     * their sort ranking. The iteratee is invoked with one argument; (value).
	     *
	     * @private
	     * @param {Array} array The sorted array to inspect.
	     * @param {*} value The value to evaluate.
	     * @param {Function} iteratee The iteratee invoked per element.
	     * @param {boolean} [retHighest] Specify returning the highest qualified index.
	     * @returns {number} Returns the index at which `value` should be inserted
	     *  into `array`.
	     */function baseSortedIndexBy(array,value,iteratee,retHighest){var low=0,high=array==null?0:array.length;if(high===0){return 0;}value=iteratee(value);var valIsNaN=value!==value,valIsNull=value===null,valIsSymbol=isSymbol(value),valIsUndefined=value===undefined;while(low<high){var mid=nativeFloor((low+high)/2),computed=iteratee(array[mid]),othIsDefined=computed!==undefined,othIsNull=computed===null,othIsReflexive=computed===computed,othIsSymbol=isSymbol(computed);if(valIsNaN){var setLow=retHighest||othIsReflexive;}else if(valIsUndefined){setLow=othIsReflexive&&(retHighest||othIsDefined);}else if(valIsNull){setLow=othIsReflexive&&othIsDefined&&(retHighest||!othIsNull);}else if(valIsSymbol){setLow=othIsReflexive&&othIsDefined&&!othIsNull&&(retHighest||!othIsSymbol);}else if(othIsNull||othIsSymbol){setLow=false;}else{setLow=retHighest?computed<=value:computed<value;}if(setLow){low=mid+1;}else{high=mid;}}return nativeMin(high,MAX_ARRAY_INDEX);}/**
	     * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
	     * support for iteratee shorthands.
	     *
	     * @private
	     * @param {Array} array The array to inspect.
	     * @param {Function} [iteratee] The iteratee invoked per element.
	     * @returns {Array} Returns the new duplicate free array.
	     */function baseSortedUniq(array,iteratee){var index=-1,length=array.length,resIndex=0,result=[];while(++index<length){var value=array[index],computed=iteratee?iteratee(value):value;if(!index||!eq(computed,seen)){var seen=computed;result[resIndex++]=value===0?0:value;}}return result;}/**
	     * The base implementation of `_.toNumber` which doesn't ensure correct
	     * conversions of binary, hexadecimal, or octal string values.
	     *
	     * @private
	     * @param {*} value The value to process.
	     * @returns {number} Returns the number.
	     */function baseToNumber(value){if(typeof value=='number'){return value;}if(isSymbol(value)){return NAN;}return+value;}/**
	     * The base implementation of `_.toString` which doesn't convert nullish
	     * values to empty strings.
	     *
	     * @private
	     * @param {*} value The value to process.
	     * @returns {string} Returns the string.
	     */function baseToString(value){// Exit early for strings to avoid a performance hit in some environments.
	if(typeof value=='string'){return value;}if(isArray(value)){// Recursively convert values (susceptible to call stack limits).
	return arrayMap(value,baseToString)+'';}if(isSymbol(value)){return symbolToString?symbolToString.call(value):'';}var result=value+'';return result=='0'&&1/value==-INFINITY?'-0':result;}/**
	     * The base implementation of `_.uniqBy` without support for iteratee shorthands.
	     *
	     * @private
	     * @param {Array} array The array to inspect.
	     * @param {Function} [iteratee] The iteratee invoked per element.
	     * @param {Function} [comparator] The comparator invoked per element.
	     * @returns {Array} Returns the new duplicate free array.
	     */function baseUniq(array,iteratee,comparator){var index=-1,includes=arrayIncludes,length=array.length,isCommon=true,result=[],seen=result;if(comparator){isCommon=false;includes=arrayIncludesWith;}else if(length>=LARGE_ARRAY_SIZE){var set=iteratee?null:createSet(array);if(set){return setToArray(set);}isCommon=false;includes=cacheHas;seen=new SetCache();}else{seen=iteratee?[]:result;}outer:while(++index<length){var value=array[index],computed=iteratee?iteratee(value):value;value=comparator||value!==0?value:0;if(isCommon&&computed===computed){var seenIndex=seen.length;while(seenIndex--){if(seen[seenIndex]===computed){continue outer;}}if(iteratee){seen.push(computed);}result.push(value);}else if(!includes(seen,computed,comparator)){if(seen!==result){seen.push(computed);}result.push(value);}}return result;}/**
	     * The base implementation of `_.unset`.
	     *
	     * @private
	     * @param {Object} object The object to modify.
	     * @param {Array|string} path The property path to unset.
	     * @returns {boolean} Returns `true` if the property is deleted, else `false`.
	     */function baseUnset(object,path){path=castPath(path,object);object=parent(object,path);return object==null||delete object[toKey(last(path))];}/**
	     * The base implementation of `_.update`.
	     *
	     * @private
	     * @param {Object} object The object to modify.
	     * @param {Array|string} path The path of the property to update.
	     * @param {Function} updater The function to produce the updated value.
	     * @param {Function} [customizer] The function to customize path creation.
	     * @returns {Object} Returns `object`.
	     */function baseUpdate(object,path,updater,customizer){return baseSet(object,path,updater(baseGet(object,path)),customizer);}/**
	     * The base implementation of methods like `_.dropWhile` and `_.takeWhile`
	     * without support for iteratee shorthands.
	     *
	     * @private
	     * @param {Array} array The array to query.
	     * @param {Function} predicate The function invoked per iteration.
	     * @param {boolean} [isDrop] Specify dropping elements instead of taking them.
	     * @param {boolean} [fromRight] Specify iterating from right to left.
	     * @returns {Array} Returns the slice of `array`.
	     */function baseWhile(array,predicate,isDrop,fromRight){var length=array.length,index=fromRight?length:-1;while((fromRight?index--:++index<length)&&predicate(array[index],index,array)){}return isDrop?baseSlice(array,fromRight?0:index,fromRight?index+1:length):baseSlice(array,fromRight?index+1:0,fromRight?length:index);}/**
	     * The base implementation of `wrapperValue` which returns the result of
	     * performing a sequence of actions on the unwrapped `value`, where each
	     * successive action is supplied the return value of the previous.
	     *
	     * @private
	     * @param {*} value The unwrapped value.
	     * @param {Array} actions Actions to perform to resolve the unwrapped value.
	     * @returns {*} Returns the resolved value.
	     */function baseWrapperValue(value,actions){var result=value;if(result instanceof LazyWrapper){result=result.value();}return arrayReduce(actions,function(result,action){return action.func.apply(action.thisArg,arrayPush([result],action.args));},result);}/**
	     * The base implementation of methods like `_.xor`, without support for
	     * iteratee shorthands, that accepts an array of arrays to inspect.
	     *
	     * @private
	     * @param {Array} arrays The arrays to inspect.
	     * @param {Function} [iteratee] The iteratee invoked per element.
	     * @param {Function} [comparator] The comparator invoked per element.
	     * @returns {Array} Returns the new array of values.
	     */function baseXor(arrays,iteratee,comparator){var length=arrays.length;if(length<2){return length?baseUniq(arrays[0]):[];}var index=-1,result=Array(length);while(++index<length){var array=arrays[index],othIndex=-1;while(++othIndex<length){if(othIndex!=index){result[index]=baseDifference(result[index]||array,arrays[othIndex],iteratee,comparator);}}}return baseUniq(baseFlatten(result,1),iteratee,comparator);}/**
	     * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
	     *
	     * @private
	     * @param {Array} props The property identifiers.
	     * @param {Array} values The property values.
	     * @param {Function} assignFunc The function to assign values.
	     * @returns {Object} Returns the new object.
	     */function baseZipObject(props,values,assignFunc){var index=-1,length=props.length,valsLength=values.length,result={};while(++index<length){var value=index<valsLength?values[index]:undefined;assignFunc(result,props[index],value);}return result;}/**
	     * Casts `value` to an empty array if it's not an array like object.
	     *
	     * @private
	     * @param {*} value The value to inspect.
	     * @returns {Array|Object} Returns the cast array-like object.
	     */function castArrayLikeObject(value){return isArrayLikeObject(value)?value:[];}/**
	     * Casts `value` to `identity` if it's not a function.
	     *
	     * @private
	     * @param {*} value The value to inspect.
	     * @returns {Function} Returns cast function.
	     */function castFunction(value){return typeof value=='function'?value:identity;}/**
	     * Casts `value` to a path array if it's not one.
	     *
	     * @private
	     * @param {*} value The value to inspect.
	     * @param {Object} [object] The object to query keys on.
	     * @returns {Array} Returns the cast property path array.
	     */function castPath(value,object){if(isArray(value)){return value;}return isKey(value,object)?[value]:stringToPath(toString(value));}/**
	     * A `baseRest` alias which can be replaced with `identity` by module
	     * replacement plugins.
	     *
	     * @private
	     * @type {Function}
	     * @param {Function} func The function to apply a rest parameter to.
	     * @returns {Function} Returns the new function.
	     */var castRest=baseRest;/**
	     * Casts `array` to a slice if it's needed.
	     *
	     * @private
	     * @param {Array} array The array to inspect.
	     * @param {number} start The start position.
	     * @param {number} [end=array.length] The end position.
	     * @returns {Array} Returns the cast slice.
	     */function castSlice(array,start,end){var length=array.length;end=end===undefined?length:end;return!start&&end>=length?array:baseSlice(array,start,end);}/**
	     * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).
	     *
	     * @private
	     * @param {number|Object} id The timer id or timeout object of the timer to clear.
	     */var clearTimeout=ctxClearTimeout||function(id){return root.clearTimeout(id);};/**
	     * Creates a clone of  `buffer`.
	     *
	     * @private
	     * @param {Buffer} buffer The buffer to clone.
	     * @param {boolean} [isDeep] Specify a deep clone.
	     * @returns {Buffer} Returns the cloned buffer.
	     */function cloneBuffer(buffer,isDeep){if(isDeep){return buffer.slice();}var length=buffer.length,result=allocUnsafe?allocUnsafe(length):new buffer.constructor(length);buffer.copy(result);return result;}/**
	     * Creates a clone of `arrayBuffer`.
	     *
	     * @private
	     * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
	     * @returns {ArrayBuffer} Returns the cloned array buffer.
	     */function cloneArrayBuffer(arrayBuffer){var result=new arrayBuffer.constructor(arrayBuffer.byteLength);new Uint8Array(result).set(new Uint8Array(arrayBuffer));return result;}/**
	     * Creates a clone of `dataView`.
	     *
	     * @private
	     * @param {Object} dataView The data view to clone.
	     * @param {boolean} [isDeep] Specify a deep clone.
	     * @returns {Object} Returns the cloned data view.
	     */function cloneDataView(dataView,isDeep){var buffer=isDeep?cloneArrayBuffer(dataView.buffer):dataView.buffer;return new dataView.constructor(buffer,dataView.byteOffset,dataView.byteLength);}/**
	     * Creates a clone of `regexp`.
	     *
	     * @private
	     * @param {Object} regexp The regexp to clone.
	     * @returns {Object} Returns the cloned regexp.
	     */function cloneRegExp(regexp){var result=new regexp.constructor(regexp.source,reFlags.exec(regexp));result.lastIndex=regexp.lastIndex;return result;}/**
	     * Creates a clone of the `symbol` object.
	     *
	     * @private
	     * @param {Object} symbol The symbol object to clone.
	     * @returns {Object} Returns the cloned symbol object.
	     */function cloneSymbol(symbol){return symbolValueOf?Object(symbolValueOf.call(symbol)):{};}/**
	     * Creates a clone of `typedArray`.
	     *
	     * @private
	     * @param {Object} typedArray The typed array to clone.
	     * @param {boolean} [isDeep] Specify a deep clone.
	     * @returns {Object} Returns the cloned typed array.
	     */function cloneTypedArray(typedArray,isDeep){var buffer=isDeep?cloneArrayBuffer(typedArray.buffer):typedArray.buffer;return new typedArray.constructor(buffer,typedArray.byteOffset,typedArray.length);}/**
	     * Compares values to sort them in ascending order.
	     *
	     * @private
	     * @param {*} value The value to compare.
	     * @param {*} other The other value to compare.
	     * @returns {number} Returns the sort order indicator for `value`.
	     */function compareAscending(value,other){if(value!==other){var valIsDefined=value!==undefined,valIsNull=value===null,valIsReflexive=value===value,valIsSymbol=isSymbol(value);var othIsDefined=other!==undefined,othIsNull=other===null,othIsReflexive=other===other,othIsSymbol=isSymbol(other);if(!othIsNull&&!othIsSymbol&&!valIsSymbol&&value>other||valIsSymbol&&othIsDefined&&othIsReflexive&&!othIsNull&&!othIsSymbol||valIsNull&&othIsDefined&&othIsReflexive||!valIsDefined&&othIsReflexive||!valIsReflexive){return 1;}if(!valIsNull&&!valIsSymbol&&!othIsSymbol&&value<other||othIsSymbol&&valIsDefined&&valIsReflexive&&!valIsNull&&!valIsSymbol||othIsNull&&valIsDefined&&valIsReflexive||!othIsDefined&&valIsReflexive||!othIsReflexive){return-1;}}return 0;}/**
	     * Used by `_.orderBy` to compare multiple properties of a value to another
	     * and stable sort them.
	     *
	     * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
	     * specify an order of "desc" for descending or "asc" for ascending sort order
	     * of corresponding values.
	     *
	     * @private
	     * @param {Object} object The object to compare.
	     * @param {Object} other The other object to compare.
	     * @param {boolean[]|string[]} orders The order to sort by for each property.
	     * @returns {number} Returns the sort order indicator for `object`.
	     */function compareMultiple(object,other,orders){var index=-1,objCriteria=object.criteria,othCriteria=other.criteria,length=objCriteria.length,ordersLength=orders.length;while(++index<length){var result=compareAscending(objCriteria[index],othCriteria[index]);if(result){if(index>=ordersLength){return result;}var order=orders[index];return result*(order=='desc'?-1:1);}}// Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
	// that causes it, under certain circumstances, to provide the same value for
	// `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
	// for more details.
	//
	// This also ensures a stable sort in V8 and other engines.
	// See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
	return object.index-other.index;}/**
	     * Creates an array that is the composition of partially applied arguments,
	     * placeholders, and provided arguments into a single array of arguments.
	     *
	     * @private
	     * @param {Array} args The provided arguments.
	     * @param {Array} partials The arguments to prepend to those provided.
	     * @param {Array} holders The `partials` placeholder indexes.
	     * @params {boolean} [isCurried] Specify composing for a curried function.
	     * @returns {Array} Returns the new array of composed arguments.
	     */function composeArgs(args,partials,holders,isCurried){var argsIndex=-1,argsLength=args.length,holdersLength=holders.length,leftIndex=-1,leftLength=partials.length,rangeLength=nativeMax(argsLength-holdersLength,0),result=Array(leftLength+rangeLength),isUncurried=!isCurried;while(++leftIndex<leftLength){result[leftIndex]=partials[leftIndex];}while(++argsIndex<holdersLength){if(isUncurried||argsIndex<argsLength){result[holders[argsIndex]]=args[argsIndex];}}while(rangeLength--){result[leftIndex++]=args[argsIndex++];}return result;}/**
	     * This function is like `composeArgs` except that the arguments composition
	     * is tailored for `_.partialRight`.
	     *
	     * @private
	     * @param {Array} args The provided arguments.
	     * @param {Array} partials The arguments to append to those provided.
	     * @param {Array} holders The `partials` placeholder indexes.
	     * @params {boolean} [isCurried] Specify composing for a curried function.
	     * @returns {Array} Returns the new array of composed arguments.
	     */function composeArgsRight(args,partials,holders,isCurried){var argsIndex=-1,argsLength=args.length,holdersIndex=-1,holdersLength=holders.length,rightIndex=-1,rightLength=partials.length,rangeLength=nativeMax(argsLength-holdersLength,0),result=Array(rangeLength+rightLength),isUncurried=!isCurried;while(++argsIndex<rangeLength){result[argsIndex]=args[argsIndex];}var offset=argsIndex;while(++rightIndex<rightLength){result[offset+rightIndex]=partials[rightIndex];}while(++holdersIndex<holdersLength){if(isUncurried||argsIndex<argsLength){result[offset+holders[holdersIndex]]=args[argsIndex++];}}return result;}/**
	     * Copies the values of `source` to `array`.
	     *
	     * @private
	     * @param {Array} source The array to copy values from.
	     * @param {Array} [array=[]] The array to copy values to.
	     * @returns {Array} Returns `array`.
	     */function copyArray(source,array){var index=-1,length=source.length;array||(array=Array(length));while(++index<length){array[index]=source[index];}return array;}/**
	     * Copies properties of `source` to `object`.
	     *
	     * @private
	     * @param {Object} source The object to copy properties from.
	     * @param {Array} props The property identifiers to copy.
	     * @param {Object} [object={}] The object to copy properties to.
	     * @param {Function} [customizer] The function to customize copied values.
	     * @returns {Object} Returns `object`.
	     */function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});var index=-1,length=props.length;while(++index<length){var key=props[index];var newValue=customizer?customizer(object[key],source[key],key,object,source):undefined;if(newValue===undefined){newValue=source[key];}if(isNew){baseAssignValue(object,key,newValue);}else{assignValue(object,key,newValue);}}return object;}/**
	     * Copies own symbols of `source` to `object`.
	     *
	     * @private
	     * @param {Object} source The object to copy symbols from.
	     * @param {Object} [object={}] The object to copy symbols to.
	     * @returns {Object} Returns `object`.
	     */function copySymbols(source,object){return copyObject(source,getSymbols(source),object);}/**
	     * Copies own and inherited symbols of `source` to `object`.
	     *
	     * @private
	     * @param {Object} source The object to copy symbols from.
	     * @param {Object} [object={}] The object to copy symbols to.
	     * @returns {Object} Returns `object`.
	     */function copySymbolsIn(source,object){return copyObject(source,getSymbolsIn(source),object);}/**
	     * Creates a function like `_.groupBy`.
	     *
	     * @private
	     * @param {Function} setter The function to set accumulator values.
	     * @param {Function} [initializer] The accumulator object initializer.
	     * @returns {Function} Returns the new aggregator function.
	     */function createAggregator(setter,initializer){return function(collection,iteratee){var func=isArray(collection)?arrayAggregator:baseAggregator,accumulator=initializer?initializer():{};return func(collection,setter,getIteratee(iteratee,2),accumulator);};}/**
	     * Creates a function like `_.assign`.
	     *
	     * @private
	     * @param {Function} assigner The function to assign values.
	     * @returns {Function} Returns the new assigner function.
	     */function createAssigner(assigner){return baseRest(function(object,sources){var index=-1,length=sources.length,customizer=length>1?sources[length-1]:undefined,guard=length>2?sources[2]:undefined;customizer=assigner.length>3&&typeof customizer=='function'?(length--,customizer):undefined;if(guard&&isIterateeCall(sources[0],sources[1],guard)){customizer=length<3?undefined:customizer;length=1;}object=Object(object);while(++index<length){var source=sources[index];if(source){assigner(object,source,index,customizer);}}return object;});}/**
	     * Creates a `baseEach` or `baseEachRight` function.
	     *
	     * @private
	     * @param {Function} eachFunc The function to iterate over a collection.
	     * @param {boolean} [fromRight] Specify iterating from right to left.
	     * @returns {Function} Returns the new base function.
	     */function createBaseEach(eachFunc,fromRight){return function(collection,iteratee){if(collection==null){return collection;}if(!isArrayLike(collection)){return eachFunc(collection,iteratee);}var length=collection.length,index=fromRight?length:-1,iterable=Object(collection);while(fromRight?index--:++index<length){if(iteratee(iterable[index],index,iterable)===false){break;}}return collection;};}/**
	     * Creates a base function for methods like `_.forIn` and `_.forOwn`.
	     *
	     * @private
	     * @param {boolean} [fromRight] Specify iterating from right to left.
	     * @returns {Function} Returns the new base function.
	     */function createBaseFor(fromRight){return function(object,iteratee,keysFunc){var index=-1,iterable=Object(object),props=keysFunc(object),length=props.length;while(length--){var key=props[fromRight?length:++index];if(iteratee(iterable[key],key,iterable)===false){break;}}return object;};}/**
	     * Creates a function that wraps `func` to invoke it with the optional `this`
	     * binding of `thisArg`.
	     *
	     * @private
	     * @param {Function} func The function to wrap.
	     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
	     * @param {*} [thisArg] The `this` binding of `func`.
	     * @returns {Function} Returns the new wrapped function.
	     */function createBind(func,bitmask,thisArg){var isBind=bitmask&WRAP_BIND_FLAG,Ctor=createCtor(func);function wrapper(){var fn=this&&this!==root&&this instanceof wrapper?Ctor:func;return fn.apply(isBind?thisArg:this,arguments);}return wrapper;}/**
	     * Creates a function like `_.lowerFirst`.
	     *
	     * @private
	     * @param {string} methodName The name of the `String` case method to use.
	     * @returns {Function} Returns the new case function.
	     */function createCaseFirst(methodName){return function(string){string=toString(string);var strSymbols=hasUnicode(string)?stringToArray(string):undefined;var chr=strSymbols?strSymbols[0]:string.charAt(0);var trailing=strSymbols?castSlice(strSymbols,1).join(''):string.slice(1);return chr[methodName]()+trailing;};}/**
	     * Creates a function like `_.camelCase`.
	     *
	     * @private
	     * @param {Function} callback The function to combine each word.
	     * @returns {Function} Returns the new compounder function.
	     */function createCompounder(callback){return function(string){return arrayReduce(words(deburr(string).replace(reApos,'')),callback,'');};}/**
	     * Creates a function that produces an instance of `Ctor` regardless of
	     * whether it was invoked as part of a `new` expression or by `call` or `apply`.
	     *
	     * @private
	     * @param {Function} Ctor The constructor to wrap.
	     * @returns {Function} Returns the new wrapped function.
	     */function createCtor(Ctor){return function(){// Use a `switch` statement to work with class constructors. See
	// http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
	// for more details.
	var args=arguments;switch(args.length){case 0:return new Ctor();case 1:return new Ctor(args[0]);case 2:return new Ctor(args[0],args[1]);case 3:return new Ctor(args[0],args[1],args[2]);case 4:return new Ctor(args[0],args[1],args[2],args[3]);case 5:return new Ctor(args[0],args[1],args[2],args[3],args[4]);case 6:return new Ctor(args[0],args[1],args[2],args[3],args[4],args[5]);case 7:return new Ctor(args[0],args[1],args[2],args[3],args[4],args[5],args[6]);}var thisBinding=baseCreate(Ctor.prototype),result=Ctor.apply(thisBinding,args);// Mimic the constructor's `return` behavior.
	// See https://es5.github.io/#x13.2.2 for more details.
	return isObject(result)?result:thisBinding;};}/**
	     * Creates a function that wraps `func` to enable currying.
	     *
	     * @private
	     * @param {Function} func The function to wrap.
	     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
	     * @param {number} arity The arity of `func`.
	     * @returns {Function} Returns the new wrapped function.
	     */function createCurry(func,bitmask,arity){var Ctor=createCtor(func);function wrapper(){var length=arguments.length,args=Array(length),index=length,placeholder=getHolder(wrapper);while(index--){args[index]=arguments[index];}var holders=length<3&&args[0]!==placeholder&&args[length-1]!==placeholder?[]:replaceHolders(args,placeholder);length-=holders.length;if(length<arity){return createRecurry(func,bitmask,createHybrid,wrapper.placeholder,undefined,args,holders,undefined,undefined,arity-length);}var fn=this&&this!==root&&this instanceof wrapper?Ctor:func;return apply(fn,this,args);}return wrapper;}/**
	     * Creates a `_.find` or `_.findLast` function.
	     *
	     * @private
	     * @param {Function} findIndexFunc The function to find the collection index.
	     * @returns {Function} Returns the new find function.
	     */function createFind(findIndexFunc){return function(collection,predicate,fromIndex){var iterable=Object(collection);if(!isArrayLike(collection)){var iteratee=getIteratee(predicate,3);collection=keys(collection);predicate=function predicate(key){return iteratee(iterable[key],key,iterable);};}var index=findIndexFunc(collection,predicate,fromIndex);return index>-1?iterable[iteratee?collection[index]:index]:undefined;};}/**
	     * Creates a `_.flow` or `_.flowRight` function.
	     *
	     * @private
	     * @param {boolean} [fromRight] Specify iterating from right to left.
	     * @returns {Function} Returns the new flow function.
	     */function createFlow(fromRight){return flatRest(function(funcs){var length=funcs.length,index=length,prereq=LodashWrapper.prototype.thru;if(fromRight){funcs.reverse();}while(index--){var func=funcs[index];if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}if(prereq&&!wrapper&&getFuncName(func)=='wrapper'){var wrapper=new LodashWrapper([],true);}}index=wrapper?index:length;while(++index<length){func=funcs[index];var funcName=getFuncName(func),data=funcName=='wrapper'?getData(func):undefined;if(data&&isLaziable(data[0])&&data[1]==(WRAP_ARY_FLAG|WRAP_CURRY_FLAG|WRAP_PARTIAL_FLAG|WRAP_REARG_FLAG)&&!data[4].length&&data[9]==1){wrapper=wrapper[getFuncName(data[0])].apply(wrapper,data[3]);}else{wrapper=func.length==1&&isLaziable(func)?wrapper[funcName]():wrapper.thru(func);}}return function(){var args=arguments,value=args[0];if(wrapper&&args.length==1&&isArray(value)){return wrapper.plant(value).value();}var index=0,result=length?funcs[index].apply(this,args):value;while(++index<length){result=funcs[index].call(this,result);}return result;};});}/**
	     * Creates a function that wraps `func` to invoke it with optional `this`
	     * binding of `thisArg`, partial application, and currying.
	     *
	     * @private
	     * @param {Function|string} func The function or method name to wrap.
	     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
	     * @param {*} [thisArg] The `this` binding of `func`.
	     * @param {Array} [partials] The arguments to prepend to those provided to
	     *  the new function.
	     * @param {Array} [holders] The `partials` placeholder indexes.
	     * @param {Array} [partialsRight] The arguments to append to those provided
	     *  to the new function.
	     * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
	     * @param {Array} [argPos] The argument positions of the new function.
	     * @param {number} [ary] The arity cap of `func`.
	     * @param {number} [arity] The arity of `func`.
	     * @returns {Function} Returns the new wrapped function.
	     */function createHybrid(func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary,arity){var isAry=bitmask&WRAP_ARY_FLAG,isBind=bitmask&WRAP_BIND_FLAG,isBindKey=bitmask&WRAP_BIND_KEY_FLAG,isCurried=bitmask&(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG),isFlip=bitmask&WRAP_FLIP_FLAG,Ctor=isBindKey?undefined:createCtor(func);function wrapper(){var length=arguments.length,args=Array(length),index=length;while(index--){args[index]=arguments[index];}if(isCurried){var placeholder=getHolder(wrapper),holdersCount=countHolders(args,placeholder);}if(partials){args=composeArgs(args,partials,holders,isCurried);}if(partialsRight){args=composeArgsRight(args,partialsRight,holdersRight,isCurried);}length-=holdersCount;if(isCurried&&length<arity){var newHolders=replaceHolders(args,placeholder);return createRecurry(func,bitmask,createHybrid,wrapper.placeholder,thisArg,args,newHolders,argPos,ary,arity-length);}var thisBinding=isBind?thisArg:this,fn=isBindKey?thisBinding[func]:func;length=args.length;if(argPos){args=reorder(args,argPos);}else if(isFlip&&length>1){args.reverse();}if(isAry&&ary<length){args.length=ary;}if(this&&this!==root&&this instanceof wrapper){fn=Ctor||createCtor(fn);}return fn.apply(thisBinding,args);}return wrapper;}/**
	     * Creates a function like `_.invertBy`.
	     *
	     * @private
	     * @param {Function} setter The function to set accumulator values.
	     * @param {Function} toIteratee The function to resolve iteratees.
	     * @returns {Function} Returns the new inverter function.
	     */function createInverter(setter,toIteratee){return function(object,iteratee){return baseInverter(object,setter,toIteratee(iteratee),{});};}/**
	     * Creates a function that performs a mathematical operation on two values.
	     *
	     * @private
	     * @param {Function} operator The function to perform the operation.
	     * @param {number} [defaultValue] The value used for `undefined` arguments.
	     * @returns {Function} Returns the new mathematical operation function.
	     */function createMathOperation(operator,defaultValue){return function(value,other){var result;if(value===undefined&&other===undefined){return defaultValue;}if(value!==undefined){result=value;}if(other!==undefined){if(result===undefined){return other;}if(typeof value=='string'||typeof other=='string'){value=baseToString(value);other=baseToString(other);}else{value=baseToNumber(value);other=baseToNumber(other);}result=operator(value,other);}return result;};}/**
	     * Creates a function like `_.over`.
	     *
	     * @private
	     * @param {Function} arrayFunc The function to iterate over iteratees.
	     * @returns {Function} Returns the new over function.
	     */function createOver(arrayFunc){return flatRest(function(iteratees){iteratees=arrayMap(iteratees,baseUnary(getIteratee()));return baseRest(function(args){var thisArg=this;return arrayFunc(iteratees,function(iteratee){return apply(iteratee,thisArg,args);});});});}/**
	     * Creates the padding for `string` based on `length`. The `chars` string
	     * is truncated if the number of characters exceeds `length`.
	     *
	     * @private
	     * @param {number} length The padding length.
	     * @param {string} [chars=' '] The string used as padding.
	     * @returns {string} Returns the padding for `string`.
	     */function createPadding(length,chars){chars=chars===undefined?' ':baseToString(chars);var charsLength=chars.length;if(charsLength<2){return charsLength?baseRepeat(chars,length):chars;}var result=baseRepeat(chars,nativeCeil(length/stringSize(chars)));return hasUnicode(chars)?castSlice(stringToArray(result),0,length).join(''):result.slice(0,length);}/**
	     * Creates a function that wraps `func` to invoke it with the `this` binding
	     * of `thisArg` and `partials` prepended to the arguments it receives.
	     *
	     * @private
	     * @param {Function} func The function to wrap.
	     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
	     * @param {*} thisArg The `this` binding of `func`.
	     * @param {Array} partials The arguments to prepend to those provided to
	     *  the new function.
	     * @returns {Function} Returns the new wrapped function.
	     */function createPartial(func,bitmask,thisArg,partials){var isBind=bitmask&WRAP_BIND_FLAG,Ctor=createCtor(func);function wrapper(){var argsIndex=-1,argsLength=arguments.length,leftIndex=-1,leftLength=partials.length,args=Array(leftLength+argsLength),fn=this&&this!==root&&this instanceof wrapper?Ctor:func;while(++leftIndex<leftLength){args[leftIndex]=partials[leftIndex];}while(argsLength--){args[leftIndex++]=arguments[++argsIndex];}return apply(fn,isBind?thisArg:this,args);}return wrapper;}/**
	     * Creates a `_.range` or `_.rangeRight` function.
	     *
	     * @private
	     * @param {boolean} [fromRight] Specify iterating from right to left.
	     * @returns {Function} Returns the new range function.
	     */function createRange(fromRight){return function(start,end,step){if(step&&typeof step!='number'&&isIterateeCall(start,end,step)){end=step=undefined;}// Ensure the sign of `-0` is preserved.
	start=toFinite(start);if(end===undefined){end=start;start=0;}else{end=toFinite(end);}step=step===undefined?start<end?1:-1:toFinite(step);return baseRange(start,end,step,fromRight);};}/**
	     * Creates a function that performs a relational operation on two values.
	     *
	     * @private
	     * @param {Function} operator The function to perform the operation.
	     * @returns {Function} Returns the new relational operation function.
	     */function createRelationalOperation(operator){return function(value,other){if(!(typeof value=='string'&&typeof other=='string')){value=toNumber(value);other=toNumber(other);}return operator(value,other);};}/**
	     * Creates a function that wraps `func` to continue currying.
	     *
	     * @private
	     * @param {Function} func The function to wrap.
	     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
	     * @param {Function} wrapFunc The function to create the `func` wrapper.
	     * @param {*} placeholder The placeholder value.
	     * @param {*} [thisArg] The `this` binding of `func`.
	     * @param {Array} [partials] The arguments to prepend to those provided to
	     *  the new function.
	     * @param {Array} [holders] The `partials` placeholder indexes.
	     * @param {Array} [argPos] The argument positions of the new function.
	     * @param {number} [ary] The arity cap of `func`.
	     * @param {number} [arity] The arity of `func`.
	     * @returns {Function} Returns the new wrapped function.
	     */function createRecurry(func,bitmask,wrapFunc,placeholder,thisArg,partials,holders,argPos,ary,arity){var isCurry=bitmask&WRAP_CURRY_FLAG,newHolders=isCurry?holders:undefined,newHoldersRight=isCurry?undefined:holders,newPartials=isCurry?partials:undefined,newPartialsRight=isCurry?undefined:partials;bitmask|=isCurry?WRAP_PARTIAL_FLAG:WRAP_PARTIAL_RIGHT_FLAG;bitmask&=~(isCurry?WRAP_PARTIAL_RIGHT_FLAG:WRAP_PARTIAL_FLAG);if(!(bitmask&WRAP_CURRY_BOUND_FLAG)){bitmask&=~(WRAP_BIND_FLAG|WRAP_BIND_KEY_FLAG);}var newData=[func,bitmask,thisArg,newPartials,newHolders,newPartialsRight,newHoldersRight,argPos,ary,arity];var result=wrapFunc.apply(undefined,newData);if(isLaziable(func)){setData(result,newData);}result.placeholder=placeholder;return setWrapToString(result,func,bitmask);}/**
	     * Creates a function like `_.round`.
	     *
	     * @private
	     * @param {string} methodName The name of the `Math` method to use when rounding.
	     * @returns {Function} Returns the new round function.
	     */function createRound(methodName){var func=Math[methodName];return function(number,precision){number=toNumber(number);precision=precision==null?0:nativeMin(toInteger(precision),292);if(precision&&nativeIsFinite(number)){// Shift with exponential notation to avoid floating-point issues.
	// See [MDN](https://mdn.io/round#Examples) for more details.
	var pair=(toString(number)+'e').split('e'),value=func(pair[0]+'e'+(+pair[1]+precision));pair=(toString(value)+'e').split('e');return+(pair[0]+'e'+(+pair[1]-precision));}return func(number);};}/**
	     * Creates a set object of `values`.
	     *
	     * @private
	     * @param {Array} values The values to add to the set.
	     * @returns {Object} Returns the new set.
	     */var createSet=!(Set&&1/setToArray(new Set([,-0]))[1]==INFINITY)?noop:function(values){return new Set(values);};/**
	     * Creates a `_.toPairs` or `_.toPairsIn` function.
	     *
	     * @private
	     * @param {Function} keysFunc The function to get the keys of a given object.
	     * @returns {Function} Returns the new pairs function.
	     */function createToPairs(keysFunc){return function(object){var tag=getTag(object);if(tag==mapTag){return mapToArray(object);}if(tag==setTag){return setToPairs(object);}return baseToPairs(object,keysFunc(object));};}/**
	     * Creates a function that either curries or invokes `func` with optional
	     * `this` binding and partially applied arguments.
	     *
	     * @private
	     * @param {Function|string} func The function or method name to wrap.
	     * @param {number} bitmask The bitmask flags.
	     *    1 - `_.bind`
	     *    2 - `_.bindKey`
	     *    4 - `_.curry` or `_.curryRight` of a bound function
	     *    8 - `_.curry`
	     *   16 - `_.curryRight`
	     *   32 - `_.partial`
	     *   64 - `_.partialRight`
	     *  128 - `_.rearg`
	     *  256 - `_.ary`
	     *  512 - `_.flip`
	     * @param {*} [thisArg] The `this` binding of `func`.
	     * @param {Array} [partials] The arguments to be partially applied.
	     * @param {Array} [holders] The `partials` placeholder indexes.
	     * @param {Array} [argPos] The argument positions of the new function.
	     * @param {number} [ary] The arity cap of `func`.
	     * @param {number} [arity] The arity of `func`.
	     * @returns {Function} Returns the new wrapped function.
	     */function createWrap(func,bitmask,thisArg,partials,holders,argPos,ary,arity){var isBindKey=bitmask&WRAP_BIND_KEY_FLAG;if(!isBindKey&&typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}var length=partials?partials.length:0;if(!length){bitmask&=~(WRAP_PARTIAL_FLAG|WRAP_PARTIAL_RIGHT_FLAG);partials=holders=undefined;}ary=ary===undefined?ary:nativeMax(toInteger(ary),0);arity=arity===undefined?arity:toInteger(arity);length-=holders?holders.length:0;if(bitmask&WRAP_PARTIAL_RIGHT_FLAG){var partialsRight=partials,holdersRight=holders;partials=holders=undefined;}var data=isBindKey?undefined:getData(func);var newData=[func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary,arity];if(data){mergeData(newData,data);}func=newData[0];bitmask=newData[1];thisArg=newData[2];partials=newData[3];holders=newData[4];arity=newData[9]=newData[9]===undefined?isBindKey?0:func.length:nativeMax(newData[9]-length,0);if(!arity&&bitmask&(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG)){bitmask&=~(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG);}if(!bitmask||bitmask==WRAP_BIND_FLAG){var result=createBind(func,bitmask,thisArg);}else if(bitmask==WRAP_CURRY_FLAG||bitmask==WRAP_CURRY_RIGHT_FLAG){result=createCurry(func,bitmask,arity);}else if((bitmask==WRAP_PARTIAL_FLAG||bitmask==(WRAP_BIND_FLAG|WRAP_PARTIAL_FLAG))&&!holders.length){result=createPartial(func,bitmask,thisArg,partials);}else{result=createHybrid.apply(undefined,newData);}var setter=data?baseSetData:setData;return setWrapToString(setter(result,newData),func,bitmask);}/**
	     * Used by `_.defaults` to customize its `_.assignIn` use to assign properties
	     * of source objects to the destination object for all destination properties
	     * that resolve to `undefined`.
	     *
	     * @private
	     * @param {*} objValue The destination value.
	     * @param {*} srcValue The source value.
	     * @param {string} key The key of the property to assign.
	     * @param {Object} object The parent object of `objValue`.
	     * @returns {*} Returns the value to assign.
	     */function customDefaultsAssignIn(objValue,srcValue,key,object){if(objValue===undefined||eq(objValue,objectProto[key])&&!hasOwnProperty.call(object,key)){return srcValue;}return objValue;}/**
	     * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
	     * objects into destination objects that are passed thru.
	     *
	     * @private
	     * @param {*} objValue The destination value.
	     * @param {*} srcValue The source value.
	     * @param {string} key The key of the property to merge.
	     * @param {Object} object The parent object of `objValue`.
	     * @param {Object} source The parent object of `srcValue`.
	     * @param {Object} [stack] Tracks traversed source values and their merged
	     *  counterparts.
	     * @returns {*} Returns the value to assign.
	     */function customDefaultsMerge(objValue,srcValue,key,object,source,stack){if(isObject(objValue)&&isObject(srcValue)){// Recursively merge objects and arrays (susceptible to call stack limits).
	stack.set(srcValue,objValue);baseMerge(objValue,srcValue,undefined,customDefaultsMerge,stack);stack['delete'](srcValue);}return objValue;}/**
	     * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
	     * objects.
	     *
	     * @private
	     * @param {*} value The value to inspect.
	     * @param {string} key The key of the property to inspect.
	     * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
	     */function customOmitClone(value){return isPlainObject(value)?undefined:value;}/**
	     * A specialized version of `baseIsEqualDeep` for arrays with support for
	     * partial deep comparisons.
	     *
	     * @private
	     * @param {Array} array The array to compare.
	     * @param {Array} other The other array to compare.
	     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
	     * @param {Function} customizer The function to customize comparisons.
	     * @param {Function} equalFunc The function to determine equivalents of values.
	     * @param {Object} stack Tracks traversed `array` and `other` objects.
	     * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
	     */function equalArrays(array,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength)){return false;}// Check that cyclic values are equal.
	var arrStacked=stack.get(array);var othStacked=stack.get(other);if(arrStacked&&othStacked){return arrStacked==other&&othStacked==array;}var index=-1,result=true,seen=bitmask&COMPARE_UNORDERED_FLAG?new SetCache():undefined;stack.set(array,other);stack.set(other,array);// Ignore non-index properties.
	while(++index<arrLength){var arrValue=array[index],othValue=other[index];if(customizer){var compared=isPartial?customizer(othValue,arrValue,index,other,array,stack):customizer(arrValue,othValue,index,array,other,stack);}if(compared!==undefined){if(compared){continue;}result=false;break;}// Recursively compare arrays (susceptible to call stack limits).
	if(seen){if(!arraySome(other,function(othValue,othIndex){if(!cacheHas(seen,othIndex)&&(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack))){return seen.push(othIndex);}})){result=false;break;}}else if(!(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack))){result=false;break;}}stack['delete'](array);stack['delete'](other);return result;}/**
	     * A specialized version of `baseIsEqualDeep` for comparing objects of
	     * the same `toStringTag`.
	     *
	     * **Note:** This function only supports comparing values with tags of
	     * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
	     *
	     * @private
	     * @param {Object} object The object to compare.
	     * @param {Object} other The other object to compare.
	     * @param {string} tag The `toStringTag` of the objects to compare.
	     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
	     * @param {Function} customizer The function to customize comparisons.
	     * @param {Function} equalFunc The function to determine equivalents of values.
	     * @param {Object} stack Tracks traversed `object` and `other` objects.
	     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
	     */function equalByTag(object,other,tag,bitmask,customizer,equalFunc,stack){switch(tag){case dataViewTag:if(object.byteLength!=other.byteLength||object.byteOffset!=other.byteOffset){return false;}object=object.buffer;other=other.buffer;case arrayBufferTag:if(object.byteLength!=other.byteLength||!equalFunc(new Uint8Array(object),new Uint8Array(other))){return false;}return true;case boolTag:case dateTag:case numberTag:// Coerce booleans to `1` or `0` and dates to milliseconds.
	// Invalid dates are coerced to `NaN`.
	return eq(+object,+other);case errorTag:return object.name==other.name&&object.message==other.message;case regexpTag:case stringTag:// Coerce regexes to strings and treat strings, primitives and objects,
	// as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
	// for more details.
	return object==other+'';case mapTag:var convert=mapToArray;case setTag:var isPartial=bitmask&COMPARE_PARTIAL_FLAG;convert||(convert=setToArray);if(object.size!=other.size&&!isPartial){return false;}// Assume cyclic values are equal.
	var stacked=stack.get(object);if(stacked){return stacked==other;}bitmask|=COMPARE_UNORDERED_FLAG;// Recursively compare objects (susceptible to call stack limits).
	stack.set(object,other);var result=equalArrays(convert(object),convert(other),bitmask,customizer,equalFunc,stack);stack['delete'](object);return result;case symbolTag:if(symbolValueOf){return symbolValueOf.call(object)==symbolValueOf.call(other);}}return false;}/**
	     * A specialized version of `baseIsEqualDeep` for objects with support for
	     * partial deep comparisons.
	     *
	     * @private
	     * @param {Object} object The object to compare.
	     * @param {Object} other The other object to compare.
	     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
	     * @param {Function} customizer The function to customize comparisons.
	     * @param {Function} equalFunc The function to determine equivalents of values.
	     * @param {Object} stack Tracks traversed `object` and `other` objects.
	     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
	     */function equalObjects(object,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG,objProps=getAllKeys(object),objLength=objProps.length,othProps=getAllKeys(other),othLength=othProps.length;if(objLength!=othLength&&!isPartial){return false;}var index=objLength;while(index--){var key=objProps[index];if(!(isPartial?key in other:hasOwnProperty.call(other,key))){return false;}}// Check that cyclic values are equal.
	var objStacked=stack.get(object);var othStacked=stack.get(other);if(objStacked&&othStacked){return objStacked==other&&othStacked==object;}var result=true;stack.set(object,other);stack.set(other,object);var skipCtor=isPartial;while(++index<objLength){key=objProps[index];var objValue=object[key],othValue=other[key];if(customizer){var compared=isPartial?customizer(othValue,objValue,key,other,object,stack):customizer(objValue,othValue,key,object,other,stack);}// Recursively compare objects (susceptible to call stack limits).
	if(!(compared===undefined?objValue===othValue||equalFunc(objValue,othValue,bitmask,customizer,stack):compared)){result=false;break;}skipCtor||(skipCtor=key=='constructor');}if(result&&!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;// Non `Object` object instances with different constructors are not equal.
	if(objCtor!=othCtor&&'constructor'in object&&'constructor'in other&&!(typeof objCtor=='function'&&objCtor instanceof objCtor&&typeof othCtor=='function'&&othCtor instanceof othCtor)){result=false;}}stack['delete'](object);stack['delete'](other);return result;}/**
	     * A specialized version of `baseRest` which flattens the rest array.
	     *
	     * @private
	     * @param {Function} func The function to apply a rest parameter to.
	     * @returns {Function} Returns the new function.
	     */function flatRest(func){return setToString(overRest(func,undefined,flatten),func+'');}/**
	     * Creates an array of own enumerable property names and symbols of `object`.
	     *
	     * @private
	     * @param {Object} object The object to query.
	     * @returns {Array} Returns the array of property names and symbols.
	     */function getAllKeys(object){return baseGetAllKeys(object,keys,getSymbols);}/**
	     * Creates an array of own and inherited enumerable property names and
	     * symbols of `object`.
	     *
	     * @private
	     * @param {Object} object The object to query.
	     * @returns {Array} Returns the array of property names and symbols.
	     */function getAllKeysIn(object){return baseGetAllKeys(object,keysIn,getSymbolsIn);}/**
	     * Gets metadata for `func`.
	     *
	     * @private
	     * @param {Function} func The function to query.
	     * @returns {*} Returns the metadata for `func`.
	     */var getData=!metaMap?noop:function(func){return metaMap.get(func);};/**
	     * Gets the name of `func`.
	     *
	     * @private
	     * @param {Function} func The function to query.
	     * @returns {string} Returns the function name.
	     */function getFuncName(func){var result=func.name+'',array=realNames[result],length=hasOwnProperty.call(realNames,result)?array.length:0;while(length--){var data=array[length],otherFunc=data.func;if(otherFunc==null||otherFunc==func){return data.name;}}return result;}/**
	     * Gets the argument placeholder value for `func`.
	     *
	     * @private
	     * @param {Function} func The function to inspect.
	     * @returns {*} Returns the placeholder value.
	     */function getHolder(func){var object=hasOwnProperty.call(lodash,'placeholder')?lodash:func;return object.placeholder;}/**
	     * Gets the appropriate "iteratee" function. If `_.iteratee` is customized,
	     * this function returns the custom method, otherwise it returns `baseIteratee`.
	     * If arguments are provided, the chosen function is invoked with them and
	     * its result is returned.
	     *
	     * @private
	     * @param {*} [value] The value to convert to an iteratee.
	     * @param {number} [arity] The arity of the created iteratee.
	     * @returns {Function} Returns the chosen function or its result.
	     */function getIteratee(){var result=lodash.iteratee||iteratee;result=result===iteratee?baseIteratee:result;return arguments.length?result(arguments[0],arguments[1]):result;}/**
	     * Gets the data for `map`.
	     *
	     * @private
	     * @param {Object} map The map to query.
	     * @param {string} key The reference key.
	     * @returns {*} Returns the map data.
	     */function getMapData(map,key){var data=map.__data__;return isKeyable(key)?data[typeof key=='string'?'string':'hash']:data.map;}/**
	     * Gets the property names, values, and compare flags of `object`.
	     *
	     * @private
	     * @param {Object} object The object to query.
	     * @returns {Array} Returns the match data of `object`.
	     */function getMatchData(object){var result=keys(object),length=result.length;while(length--){var key=result[length],value=object[key];result[length]=[key,value,isStrictComparable(value)];}return result;}/**
	     * Gets the native function at `key` of `object`.
	     *
	     * @private
	     * @param {Object} object The object to query.
	     * @param {string} key The key of the method to get.
	     * @returns {*} Returns the function if it's native, else `undefined`.
	     */function getNative(object,key){var value=getValue(object,key);return baseIsNative(value)?value:undefined;}/**
	     * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
	     *
	     * @private
	     * @param {*} value The value to query.
	     * @returns {string} Returns the raw `toStringTag`.
	     */function getRawTag(value){var isOwn=hasOwnProperty.call(value,symToStringTag),tag=value[symToStringTag];try{value[symToStringTag]=undefined;var unmasked=true;}catch(e){}var result=nativeObjectToString.call(value);if(unmasked){if(isOwn){value[symToStringTag]=tag;}else{delete value[symToStringTag];}}return result;}/**
	     * Creates an array of the own enumerable symbols of `object`.
	     *
	     * @private
	     * @param {Object} object The object to query.
	     * @returns {Array} Returns the array of symbols.
	     */var getSymbols=!nativeGetSymbols?stubArray:function(object){if(object==null){return[];}object=Object(object);return arrayFilter(nativeGetSymbols(object),function(symbol){return propertyIsEnumerable.call(object,symbol);});};/**
	     * Creates an array of the own and inherited enumerable symbols of `object`.
	     *
	     * @private
	     * @param {Object} object The object to query.
	     * @returns {Array} Returns the array of symbols.
	     */var getSymbolsIn=!nativeGetSymbols?stubArray:function(object){var result=[];while(object){arrayPush(result,getSymbols(object));object=getPrototype(object);}return result;};/**
	     * Gets the `toStringTag` of `value`.
	     *
	     * @private
	     * @param {*} value The value to query.
	     * @returns {string} Returns the `toStringTag`.
	     */var getTag=baseGetTag;// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
	if(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag(new Map())!=mapTag||Promise&&getTag(Promise.resolve())!=promiseTag||Set&&getTag(new Set())!=setTag||WeakMap&&getTag(new WeakMap())!=weakMapTag){getTag=function getTag(value){var result=baseGetTag(value),Ctor=result==objectTag?value.constructor:undefined,ctorString=Ctor?toSource(Ctor):'';if(ctorString){switch(ctorString){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag;}}return result;};}/**
	     * Gets the view, applying any `transforms` to the `start` and `end` positions.
	     *
	     * @private
	     * @param {number} start The start of the view.
	     * @param {number} end The end of the view.
	     * @param {Array} transforms The transformations to apply to the view.
	     * @returns {Object} Returns an object containing the `start` and `end`
	     *  positions of the view.
	     */function getView(start,end,transforms){var index=-1,length=transforms.length;while(++index<length){var data=transforms[index],size=data.size;switch(data.type){case'drop':start+=size;break;case'dropRight':end-=size;break;case'take':end=nativeMin(end,start+size);break;case'takeRight':start=nativeMax(start,end-size);break;}}return{'start':start,'end':end};}/**
	     * Extracts wrapper details from the `source` body comment.
	     *
	     * @private
	     * @param {string} source The source to inspect.
	     * @returns {Array} Returns the wrapper details.
	     */function getWrapDetails(source){var match=source.match(reWrapDetails);return match?match[1].split(reSplitDetails):[];}/**
	     * Checks if `path` exists on `object`.
	     *
	     * @private
	     * @param {Object} object The object to query.
	     * @param {Array|string} path The path to check.
	     * @param {Function} hasFunc The function to check properties.
	     * @returns {boolean} Returns `true` if `path` exists, else `false`.
	     */function hasPath(object,path,hasFunc){path=castPath(path,object);var index=-1,length=path.length,result=false;while(++index<length){var key=toKey(path[index]);if(!(result=object!=null&&hasFunc(object,key))){break;}object=object[key];}if(result||++index!=length){return result;}length=object==null?0:object.length;return!!length&&isLength(length)&&isIndex(key,length)&&(isArray(object)||isArguments(object));}/**
	     * Initializes an array clone.
	     *
	     * @private
	     * @param {Array} array The array to clone.
	     * @returns {Array} Returns the initialized clone.
	     */function initCloneArray(array){var length=array.length,result=new array.constructor(length);// Add properties assigned by `RegExp#exec`.
	if(length&&typeof array[0]=='string'&&hasOwnProperty.call(array,'index')){result.index=array.index;result.input=array.input;}return result;}/**
	     * Initializes an object clone.
	     *
	     * @private
	     * @param {Object} object The object to clone.
	     * @returns {Object} Returns the initialized clone.
	     */function initCloneObject(object){return typeof object.constructor=='function'&&!isPrototype(object)?baseCreate(getPrototype(object)):{};}/**
	     * Initializes an object clone based on its `toStringTag`.
	     *
	     * **Note:** This function only supports cloning values with tags of
	     * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
	     *
	     * @private
	     * @param {Object} object The object to clone.
	     * @param {string} tag The `toStringTag` of the object to clone.
	     * @param {boolean} [isDeep] Specify a deep clone.
	     * @returns {Object} Returns the initialized clone.
	     */function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag:return cloneArrayBuffer(object);case boolTag:case dateTag:return new Ctor(+object);case dataViewTag:return cloneDataView(object,isDeep);case float32Tag:case float64Tag:case int8Tag:case int16Tag:case int32Tag:case uint8Tag:case uint8ClampedTag:case uint16Tag:case uint32Tag:return cloneTypedArray(object,isDeep);case mapTag:return new Ctor();case numberTag:case stringTag:return new Ctor(object);case regexpTag:return cloneRegExp(object);case setTag:return new Ctor();case symbolTag:return cloneSymbol(object);}}/**
	     * Inserts wrapper `details` in a comment at the top of the `source` body.
	     *
	     * @private
	     * @param {string} source The source to modify.
	     * @returns {Array} details The details to insert.
	     * @returns {string} Returns the modified source.
	     */function insertWrapDetails(source,details){var length=details.length;if(!length){return source;}var lastIndex=length-1;details[lastIndex]=(length>1?'& ':'')+details[lastIndex];details=details.join(length>2?', ':' ');return source.replace(reWrapComment,'{\n/* [wrapped with '+details+'] */\n');}/**
	     * Checks if `value` is a flattenable `arguments` object or array.
	     *
	     * @private
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
	     */function isFlattenable(value){return isArray(value)||isArguments(value)||!!(spreadableSymbol&&value&&value[spreadableSymbol]);}/**
	     * Checks if `value` is a valid array-like index.
	     *
	     * @private
	     * @param {*} value The value to check.
	     * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
	     * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
	     */function isIndex(value,length){var type=typeof value==='undefined'?'undefined':_typeof(value);length=length==null?MAX_SAFE_INTEGER:length;return!!length&&(type=='number'||type!='symbol'&&reIsUint.test(value))&&value>-1&&value%1==0&&value<length;}/**
	     * Checks if the given arguments are from an iteratee call.
	     *
	     * @private
	     * @param {*} value The potential iteratee value argument.
	     * @param {*} index The potential iteratee index or key argument.
	     * @param {*} object The potential iteratee object argument.
	     * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
	     *  else `false`.
	     */function isIterateeCall(value,index,object){if(!isObject(object)){return false;}var type=typeof index==='undefined'?'undefined':_typeof(index);if(type=='number'?isArrayLike(object)&&isIndex(index,object.length):type=='string'&&index in object){return eq(object[index],value);}return false;}/**
	     * Checks if `value` is a property name and not a property path.
	     *
	     * @private
	     * @param {*} value The value to check.
	     * @param {Object} [object] The object to query keys on.
	     * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
	     */function isKey(value,object){if(isArray(value)){return false;}var type=typeof value==='undefined'?'undefined':_typeof(value);if(type=='number'||type=='symbol'||type=='boolean'||value==null||isSymbol(value)){return true;}return reIsPlainProp.test(value)||!reIsDeepProp.test(value)||object!=null&&value in Object(object);}/**
	     * Checks if `value` is suitable for use as unique object key.
	     *
	     * @private
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
	     */function isKeyable(value){var type=typeof value==='undefined'?'undefined':_typeof(value);return type=='string'||type=='number'||type=='symbol'||type=='boolean'?value!=='__proto__':value===null;}/**
	     * Checks if `func` has a lazy counterpart.
	     *
	     * @private
	     * @param {Function} func The function to check.
	     * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
	     *  else `false`.
	     */function isLaziable(func){var funcName=getFuncName(func),other=lodash[funcName];if(typeof other!='function'||!(funcName in LazyWrapper.prototype)){return false;}if(func===other){return true;}var data=getData(other);return!!data&&func===data[0];}/**
	     * Checks if `func` has its source masked.
	     *
	     * @private
	     * @param {Function} func The function to check.
	     * @returns {boolean} Returns `true` if `func` is masked, else `false`.
	     */function isMasked(func){return!!maskSrcKey&&maskSrcKey in func;}/**
	     * Checks if `func` is capable of being masked.
	     *
	     * @private
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `func` is maskable, else `false`.
	     */var isMaskable=coreJsData?isFunction:stubFalse;/**
	     * Checks if `value` is likely a prototype object.
	     *
	     * @private
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
	     */function isPrototype(value){var Ctor=value&&value.constructor,proto=typeof Ctor=='function'&&Ctor.prototype||objectProto;return value===proto;}/**
	     * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
	     *
	     * @private
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` if suitable for strict
	     *  equality comparisons, else `false`.
	     */function isStrictComparable(value){return value===value&&!isObject(value);}/**
	     * A specialized version of `matchesProperty` for source values suitable
	     * for strict equality comparisons, i.e. `===`.
	     *
	     * @private
	     * @param {string} key The key of the property to get.
	     * @param {*} srcValue The value to match.
	     * @returns {Function} Returns the new spec function.
	     */function matchesStrictComparable(key,srcValue){return function(object){if(object==null){return false;}return object[key]===srcValue&&(srcValue!==undefined||key in Object(object));};}/**
	     * A specialized version of `_.memoize` which clears the memoized function's
	     * cache when it exceeds `MAX_MEMOIZE_SIZE`.
	     *
	     * @private
	     * @param {Function} func The function to have its output memoized.
	     * @returns {Function} Returns the new memoized function.
	     */function memoizeCapped(func){var result=memoize(func,function(key){if(cache.size===MAX_MEMOIZE_SIZE){cache.clear();}return key;});var cache=result.cache;return result;}/**
	     * Merges the function metadata of `source` into `data`.
	     *
	     * Merging metadata reduces the number of wrappers used to invoke a function.
	     * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
	     * may be applied regardless of execution order. Methods like `_.ary` and
	     * `_.rearg` modify function arguments, making the order in which they are
	     * executed important, preventing the merging of metadata. However, we make
	     * an exception for a safe combined case where curried functions have `_.ary`
	     * and or `_.rearg` applied.
	     *
	     * @private
	     * @param {Array} data The destination metadata.
	     * @param {Array} source The source metadata.
	     * @returns {Array} Returns `data`.
	     */function mergeData(data,source){var bitmask=data[1],srcBitmask=source[1],newBitmask=bitmask|srcBitmask,isCommon=newBitmask<(WRAP_BIND_FLAG|WRAP_BIND_KEY_FLAG|WRAP_ARY_FLAG);var isCombo=srcBitmask==WRAP_ARY_FLAG&&bitmask==WRAP_CURRY_FLAG||srcBitmask==WRAP_ARY_FLAG&&bitmask==WRAP_REARG_FLAG&&data[7].length<=source[8]||srcBitmask==(WRAP_ARY_FLAG|WRAP_REARG_FLAG)&&source[7].length<=source[8]&&bitmask==WRAP_CURRY_FLAG;// Exit early if metadata can't be merged.
	if(!(isCommon||isCombo)){return data;}// Use source `thisArg` if available.
	if(srcBitmask&WRAP_BIND_FLAG){data[2]=source[2];// Set when currying a bound function.
	newBitmask|=bitmask&WRAP_BIND_FLAG?0:WRAP_CURRY_BOUND_FLAG;}// Compose partial arguments.
	var value=source[3];if(value){var partials=data[3];data[3]=partials?composeArgs(partials,value,source[4]):value;data[4]=partials?replaceHolders(data[3],PLACEHOLDER):source[4];}// Compose partial right arguments.
	value=source[5];if(value){partials=data[5];data[5]=partials?composeArgsRight(partials,value,source[6]):value;data[6]=partials?replaceHolders(data[5],PLACEHOLDER):source[6];}// Use source `argPos` if available.
	value=source[7];if(value){data[7]=value;}// Use source `ary` if it's smaller.
	if(srcBitmask&WRAP_ARY_FLAG){data[8]=data[8]==null?source[8]:nativeMin(data[8],source[8]);}// Use source `arity` if one is not provided.
	if(data[9]==null){data[9]=source[9];}// Use source `func` and merge bitmasks.
	data[0]=source[0];data[1]=newBitmask;return data;}/**
	     * This function is like
	     * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
	     * except that it includes inherited enumerable properties.
	     *
	     * @private
	     * @param {Object} object The object to query.
	     * @returns {Array} Returns the array of property names.
	     */function nativeKeysIn(object){var result=[];if(object!=null){for(var key in Object(object)){result.push(key);}}return result;}/**
	     * Converts `value` to a string using `Object.prototype.toString`.
	     *
	     * @private
	     * @param {*} value The value to convert.
	     * @returns {string} Returns the converted string.
	     */function objectToString(value){return nativeObjectToString.call(value);}/**
	     * A specialized version of `baseRest` which transforms the rest array.
	     *
	     * @private
	     * @param {Function} func The function to apply a rest parameter to.
	     * @param {number} [start=func.length-1] The start position of the rest parameter.
	     * @param {Function} transform The rest array transform.
	     * @returns {Function} Returns the new function.
	     */function overRest(func,start,transform){start=nativeMax(start===undefined?func.length-1:start,0);return function(){var args=arguments,index=-1,length=nativeMax(args.length-start,0),array=Array(length);while(++index<length){array[index]=args[start+index];}index=-1;var otherArgs=Array(start+1);while(++index<start){otherArgs[index]=args[index];}otherArgs[start]=transform(array);return apply(func,this,otherArgs);};}/**
	     * Gets the parent value at `path` of `object`.
	     *
	     * @private
	     * @param {Object} object The object to query.
	     * @param {Array} path The path to get the parent value of.
	     * @returns {*} Returns the parent value.
	     */function parent(object,path){return path.length<2?object:baseGet(object,baseSlice(path,0,-1));}/**
	     * Reorder `array` according to the specified indexes where the element at
	     * the first index is assigned as the first element, the element at
	     * the second index is assigned as the second element, and so on.
	     *
	     * @private
	     * @param {Array} array The array to reorder.
	     * @param {Array} indexes The arranged array indexes.
	     * @returns {Array} Returns `array`.
	     */function reorder(array,indexes){var arrLength=array.length,length=nativeMin(indexes.length,arrLength),oldArray=copyArray(array);while(length--){var index=indexes[length];array[length]=isIndex(index,arrLength)?oldArray[index]:undefined;}return array;}/**
	     * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
	     *
	     * @private
	     * @param {Object} object The object to query.
	     * @param {string} key The key of the property to get.
	     * @returns {*} Returns the property value.
	     */function safeGet(object,key){if(key==='constructor'&&typeof object[key]==='function'){return;}if(key=='__proto__'){return;}return object[key];}/**
	     * Sets metadata for `func`.
	     *
	     * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
	     * period of time, it will trip its breaker and transition to an identity
	     * function to avoid garbage collection pauses in V8. See
	     * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
	     * for more details.
	     *
	     * @private
	     * @param {Function} func The function to associate metadata with.
	     * @param {*} data The metadata.
	     * @returns {Function} Returns `func`.
	     */var setData=shortOut(baseSetData);/**
	     * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).
	     *
	     * @private
	     * @param {Function} func The function to delay.
	     * @param {number} wait The number of milliseconds to delay invocation.
	     * @returns {number|Object} Returns the timer id or timeout object.
	     */var setTimeout=ctxSetTimeout||function(func,wait){return root.setTimeout(func,wait);};/**
	     * Sets the `toString` method of `func` to return `string`.
	     *
	     * @private
	     * @param {Function} func The function to modify.
	     * @param {Function} string The `toString` result.
	     * @returns {Function} Returns `func`.
	     */var setToString=shortOut(baseSetToString);/**
	     * Sets the `toString` method of `wrapper` to mimic the source of `reference`
	     * with wrapper details in a comment at the top of the source body.
	     *
	     * @private
	     * @param {Function} wrapper The function to modify.
	     * @param {Function} reference The reference function.
	     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
	     * @returns {Function} Returns `wrapper`.
	     */function setWrapToString(wrapper,reference,bitmask){var source=reference+'';return setToString(wrapper,insertWrapDetails(source,updateWrapDetails(getWrapDetails(source),bitmask)));}/**
	     * Creates a function that'll short out and invoke `identity` instead
	     * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
	     * milliseconds.
	     *
	     * @private
	     * @param {Function} func The function to restrict.
	     * @returns {Function} Returns the new shortable function.
	     */function shortOut(func){var count=0,lastCalled=0;return function(){var stamp=nativeNow(),remaining=HOT_SPAN-(stamp-lastCalled);lastCalled=stamp;if(remaining>0){if(++count>=HOT_COUNT){return arguments[0];}}else{count=0;}return func.apply(undefined,arguments);};}/**
	     * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
	     *
	     * @private
	     * @param {Array} array The array to shuffle.
	     * @param {number} [size=array.length] The size of `array`.
	     * @returns {Array} Returns `array`.
	     */function shuffleSelf(array,size){var index=-1,length=array.length,lastIndex=length-1;size=size===undefined?length:size;while(++index<size){var rand=baseRandom(index,lastIndex),value=array[rand];array[rand]=array[index];array[index]=value;}array.length=size;return array;}/**
	     * Converts `string` to a property path array.
	     *
	     * @private
	     * @param {string} string The string to convert.
	     * @returns {Array} Returns the property path array.
	     */var stringToPath=memoizeCapped(function(string){var result=[];if(string.charCodeAt(0)===46/* . */){result.push('');}string.replace(rePropName,function(match,number,quote,subString){result.push(quote?subString.replace(reEscapeChar,'$1'):number||match);});return result;});/**
	     * Converts `value` to a string key if it's not a string or symbol.
	     *
	     * @private
	     * @param {*} value The value to inspect.
	     * @returns {string|symbol} Returns the key.
	     */function toKey(value){if(typeof value=='string'||isSymbol(value)){return value;}var result=value+'';return result=='0'&&1/value==-INFINITY?'-0':result;}/**
	     * Converts `func` to its source code.
	     *
	     * @private
	     * @param {Function} func The function to convert.
	     * @returns {string} Returns the source code.
	     */function toSource(func){if(func!=null){try{return funcToString.call(func);}catch(e){}try{return func+'';}catch(e){}}return'';}/**
	     * Updates wrapper `details` based on `bitmask` flags.
	     *
	     * @private
	     * @returns {Array} details The details to modify.
	     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
	     * @returns {Array} Returns `details`.
	     */function updateWrapDetails(details,bitmask){arrayEach(wrapFlags,function(pair){var value='_.'+pair[0];if(bitmask&pair[1]&&!arrayIncludes(details,value)){details.push(value);}});return details.sort();}/**
	     * Creates a clone of `wrapper`.
	     *
	     * @private
	     * @param {Object} wrapper The wrapper to clone.
	     * @returns {Object} Returns the cloned wrapper.
	     */function wrapperClone(wrapper){if(wrapper instanceof LazyWrapper){return wrapper.clone();}var result=new LodashWrapper(wrapper.__wrapped__,wrapper.__chain__);result.__actions__=copyArray(wrapper.__actions__);result.__index__=wrapper.__index__;result.__values__=wrapper.__values__;return result;}/*------------------------------------------------------------------------*//**
	     * Creates an array of elements split into groups the length of `size`.
	     * If `array` can't be split evenly, the final chunk will be the remaining
	     * elements.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Array
	     * @param {Array} array The array to process.
	     * @param {number} [size=1] The length of each chunk
	     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
	     * @returns {Array} Returns the new array of chunks.
	     * @example
	     *
	     * _.chunk(['a', 'b', 'c', 'd'], 2);
	     * // => [['a', 'b'], ['c', 'd']]
	     *
	     * _.chunk(['a', 'b', 'c', 'd'], 3);
	     * // => [['a', 'b', 'c'], ['d']]
	     */function chunk(array,size,guard){if(guard?isIterateeCall(array,size,guard):size===undefined){size=1;}else{size=nativeMax(toInteger(size),0);}var length=array==null?0:array.length;if(!length||size<1){return[];}var index=0,resIndex=0,result=Array(nativeCeil(length/size));while(index<length){result[resIndex++]=baseSlice(array,index,index+=size);}return result;}/**
	     * Creates an array with all falsey values removed. The values `false`, `null`,
	     * `0`, `""`, `undefined`, and `NaN` are falsey.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Array
	     * @param {Array} array The array to compact.
	     * @returns {Array} Returns the new array of filtered values.
	     * @example
	     *
	     * _.compact([0, 1, false, 2, '', 3]);
	     * // => [1, 2, 3]
	     */function compact(array){var index=-1,length=array==null?0:array.length,resIndex=0,result=[];while(++index<length){var value=array[index];if(value){result[resIndex++]=value;}}return result;}/**
	     * Creates a new array concatenating `array` with any additional arrays
	     * and/or values.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Array
	     * @param {Array} array The array to concatenate.
	     * @param {...*} [values] The values to concatenate.
	     * @returns {Array} Returns the new concatenated array.
	     * @example
	     *
	     * var array = [1];
	     * var other = _.concat(array, 2, [3], [[4]]);
	     *
	     * console.log(other);
	     * // => [1, 2, 3, [4]]
	     *
	     * console.log(array);
	     * // => [1]
	     */function concat(){var length=arguments.length;if(!length){return[];}var args=Array(length-1),array=arguments[0],index=length;while(index--){args[index-1]=arguments[index];}return arrayPush(isArray(array)?copyArray(array):[array],baseFlatten(args,1));}/**
	     * Creates an array of `array` values not included in the other given arrays
	     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
	     * for equality comparisons. The order and references of result values are
	     * determined by the first array.
	     *
	     * **Note:** Unlike `_.pullAll`, this method returns a new array.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Array
	     * @param {Array} array The array to inspect.
	     * @param {...Array} [values] The values to exclude.
	     * @returns {Array} Returns the new array of filtered values.
	     * @see _.without, _.xor
	     * @example
	     *
	     * _.difference([2, 1], [2, 3]);
	     * // => [1]
	     */var difference=baseRest(function(array,values){return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values,1,isArrayLikeObject,true)):[];});/**
	     * This method is like `_.difference` except that it accepts `iteratee` which
	     * is invoked for each element of `array` and `values` to generate the criterion
	     * by which they're compared. The order and references of result values are
	     * determined by the first array. The iteratee is invoked with one argument:
	     * (value).
	     *
	     * **Note:** Unlike `_.pullAllBy`, this method returns a new array.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Array
	     * @param {Array} array The array to inspect.
	     * @param {...Array} [values] The values to exclude.
	     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
	     * @returns {Array} Returns the new array of filtered values.
	     * @example
	     *
	     * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
	     * // => [1.2]
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
	     * // => [{ 'x': 2 }]
	     */var differenceBy=baseRest(function(array,values){var iteratee=last(values);if(isArrayLikeObject(iteratee)){iteratee=undefined;}return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values,1,isArrayLikeObject,true),getIteratee(iteratee,2)):[];});/**
	     * This method is like `_.difference` except that it accepts `comparator`
	     * which is invoked to compare elements of `array` to `values`. The order and
	     * references of result values are determined by the first array. The comparator
	     * is invoked with two arguments: (arrVal, othVal).
	     *
	     * **Note:** Unlike `_.pullAllWith`, this method returns a new array.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Array
	     * @param {Array} array The array to inspect.
	     * @param {...Array} [values] The values to exclude.
	     * @param {Function} [comparator] The comparator invoked per element.
	     * @returns {Array} Returns the new array of filtered values.
	     * @example
	     *
	     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
	     *
	     * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
	     * // => [{ 'x': 2, 'y': 1 }]
	     */var differenceWith=baseRest(function(array,values){var comparator=last(values);if(isArrayLikeObject(comparator)){comparator=undefined;}return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values,1,isArrayLikeObject,true),undefined,comparator):[];});/**
	     * Creates a slice of `array` with `n` elements dropped from the beginning.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.5.0
	     * @category Array
	     * @param {Array} array The array to query.
	     * @param {number} [n=1] The number of elements to drop.
	     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
	     * @returns {Array} Returns the slice of `array`.
	     * @example
	     *
	     * _.drop([1, 2, 3]);
	     * // => [2, 3]
	     *
	     * _.drop([1, 2, 3], 2);
	     * // => [3]
	     *
	     * _.drop([1, 2, 3], 5);
	     * // => []
	     *
	     * _.drop([1, 2, 3], 0);
	     * // => [1, 2, 3]
	     */function drop(array,n,guard){var length=array==null?0:array.length;if(!length){return[];}n=guard||n===undefined?1:toInteger(n);return baseSlice(array,n<0?0:n,length);}/**
	     * Creates a slice of `array` with `n` elements dropped from the end.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Array
	     * @param {Array} array The array to query.
	     * @param {number} [n=1] The number of elements to drop.
	     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
	     * @returns {Array} Returns the slice of `array`.
	     * @example
	     *
	     * _.dropRight([1, 2, 3]);
	     * // => [1, 2]
	     *
	     * _.dropRight([1, 2, 3], 2);
	     * // => [1]
	     *
	     * _.dropRight([1, 2, 3], 5);
	     * // => []
	     *
	     * _.dropRight([1, 2, 3], 0);
	     * // => [1, 2, 3]
	     */function dropRight(array,n,guard){var length=array==null?0:array.length;if(!length){return[];}n=guard||n===undefined?1:toInteger(n);n=length-n;return baseSlice(array,0,n<0?0:n);}/**
	     * Creates a slice of `array` excluding elements dropped from the end.
	     * Elements are dropped until `predicate` returns falsey. The predicate is
	     * invoked with three arguments: (value, index, array).
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Array
	     * @param {Array} array The array to query.
	     * @param {Function} [predicate=_.identity] The function invoked per iteration.
	     * @returns {Array} Returns the slice of `array`.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney',  'active': true },
	     *   { 'user': 'fred',    'active': false },
	     *   { 'user': 'pebbles', 'active': false }
	     * ];
	     *
	     * _.dropRightWhile(users, function(o) { return !o.active; });
	     * // => objects for ['barney']
	     *
	     * // The `_.matches` iteratee shorthand.
	     * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
	     * // => objects for ['barney', 'fred']
	     *
	     * // The `_.matchesProperty` iteratee shorthand.
	     * _.dropRightWhile(users, ['active', false]);
	     * // => objects for ['barney']
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.dropRightWhile(users, 'active');
	     * // => objects for ['barney', 'fred', 'pebbles']
	     */function dropRightWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),true,true):[];}/**
	     * Creates a slice of `array` excluding elements dropped from the beginning.
	     * Elements are dropped until `predicate` returns falsey. The predicate is
	     * invoked with three arguments: (value, index, array).
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Array
	     * @param {Array} array The array to query.
	     * @param {Function} [predicate=_.identity] The function invoked per iteration.
	     * @returns {Array} Returns the slice of `array`.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney',  'active': false },
	     *   { 'user': 'fred',    'active': false },
	     *   { 'user': 'pebbles', 'active': true }
	     * ];
	     *
	     * _.dropWhile(users, function(o) { return !o.active; });
	     * // => objects for ['pebbles']
	     *
	     * // The `_.matches` iteratee shorthand.
	     * _.dropWhile(users, { 'user': 'barney', 'active': false });
	     * // => objects for ['fred', 'pebbles']
	     *
	     * // The `_.matchesProperty` iteratee shorthand.
	     * _.dropWhile(users, ['active', false]);
	     * // => objects for ['pebbles']
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.dropWhile(users, 'active');
	     * // => objects for ['barney', 'fred', 'pebbles']
	     */function dropWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),true):[];}/**
	     * Fills elements of `array` with `value` from `start` up to, but not
	     * including, `end`.
	     *
	     * **Note:** This method mutates `array`.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.2.0
	     * @category Array
	     * @param {Array} array The array to fill.
	     * @param {*} value The value to fill `array` with.
	     * @param {number} [start=0] The start position.
	     * @param {number} [end=array.length] The end position.
	     * @returns {Array} Returns `array`.
	     * @example
	     *
	     * var array = [1, 2, 3];
	     *
	     * _.fill(array, 'a');
	     * console.log(array);
	     * // => ['a', 'a', 'a']
	     *
	     * _.fill(Array(3), 2);
	     * // => [2, 2, 2]
	     *
	     * _.fill([4, 6, 8, 10], '*', 1, 3);
	     * // => [4, '*', '*', 10]
	     */function fill(array,value,start,end){var length=array==null?0:array.length;if(!length){return[];}if(start&&typeof start!='number'&&isIterateeCall(array,value,start)){start=0;end=length;}return baseFill(array,value,start,end);}/**
	     * This method is like `_.find` except that it returns the index of the first
	     * element `predicate` returns truthy for instead of the element itself.
	     *
	     * @static
	     * @memberOf _
	     * @since 1.1.0
	     * @category Array
	     * @param {Array} array The array to inspect.
	     * @param {Function} [predicate=_.identity] The function invoked per iteration.
	     * @param {number} [fromIndex=0] The index to search from.
	     * @returns {number} Returns the index of the found element, else `-1`.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney',  'active': false },
	     *   { 'user': 'fred',    'active': false },
	     *   { 'user': 'pebbles', 'active': true }
	     * ];
	     *
	     * _.findIndex(users, function(o) { return o.user == 'barney'; });
	     * // => 0
	     *
	     * // The `_.matches` iteratee shorthand.
	     * _.findIndex(users, { 'user': 'fred', 'active': false });
	     * // => 1
	     *
	     * // The `_.matchesProperty` iteratee shorthand.
	     * _.findIndex(users, ['active', false]);
	     * // => 0
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.findIndex(users, 'active');
	     * // => 2
	     */function findIndex(array,predicate,fromIndex){var length=array==null?0:array.length;if(!length){return-1;}var index=fromIndex==null?0:toInteger(fromIndex);if(index<0){index=nativeMax(length+index,0);}return baseFindIndex(array,getIteratee(predicate,3),index);}/**
	     * This method is like `_.findIndex` except that it iterates over elements
	     * of `collection` from right to left.
	     *
	     * @static
	     * @memberOf _
	     * @since 2.0.0
	     * @category Array
	     * @param {Array} array The array to inspect.
	     * @param {Function} [predicate=_.identity] The function invoked per iteration.
	     * @param {number} [fromIndex=array.length-1] The index to search from.
	     * @returns {number} Returns the index of the found element, else `-1`.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney',  'active': true },
	     *   { 'user': 'fred',    'active': false },
	     *   { 'user': 'pebbles', 'active': false }
	     * ];
	     *
	     * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
	     * // => 2
	     *
	     * // The `_.matches` iteratee shorthand.
	     * _.findLastIndex(users, { 'user': 'barney', 'active': true });
	     * // => 0
	     *
	     * // The `_.matchesProperty` iteratee shorthand.
	     * _.findLastIndex(users, ['active', false]);
	     * // => 2
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.findLastIndex(users, 'active');
	     * // => 0
	     */function findLastIndex(array,predicate,fromIndex){var length=array==null?0:array.length;if(!length){return-1;}var index=length-1;if(fromIndex!==undefined){index=toInteger(fromIndex);index=fromIndex<0?nativeMax(length+index,0):nativeMin(index,length-1);}return baseFindIndex(array,getIteratee(predicate,3),index,true);}/**
	     * Flattens `array` a single level deep.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Array
	     * @param {Array} array The array to flatten.
	     * @returns {Array} Returns the new flattened array.
	     * @example
	     *
	     * _.flatten([1, [2, [3, [4]], 5]]);
	     * // => [1, 2, [3, [4]], 5]
	     */function flatten(array){var length=array==null?0:array.length;return length?baseFlatten(array,1):[];}/**
	     * Recursively flattens `array`.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Array
	     * @param {Array} array The array to flatten.
	     * @returns {Array} Returns the new flattened array.
	     * @example
	     *
	     * _.flattenDeep([1, [2, [3, [4]], 5]]);
	     * // => [1, 2, 3, 4, 5]
	     */function flattenDeep(array){var length=array==null?0:array.length;return length?baseFlatten(array,INFINITY):[];}/**
	     * Recursively flatten `array` up to `depth` times.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.4.0
	     * @category Array
	     * @param {Array} array The array to flatten.
	     * @param {number} [depth=1] The maximum recursion depth.
	     * @returns {Array} Returns the new flattened array.
	     * @example
	     *
	     * var array = [1, [2, [3, [4]], 5]];
	     *
	     * _.flattenDepth(array, 1);
	     * // => [1, 2, [3, [4]], 5]
	     *
	     * _.flattenDepth(array, 2);
	     * // => [1, 2, 3, [4], 5]
	     */function flattenDepth(array,depth){var length=array==null?0:array.length;if(!length){return[];}depth=depth===undefined?1:toInteger(depth);return baseFlatten(array,depth);}/**
	     * The inverse of `_.toPairs`; this method returns an object composed
	     * from key-value `pairs`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Array
	     * @param {Array} pairs The key-value pairs.
	     * @returns {Object} Returns the new object.
	     * @example
	     *
	     * _.fromPairs([['a', 1], ['b', 2]]);
	     * // => { 'a': 1, 'b': 2 }
	     */function fromPairs(pairs){var index=-1,length=pairs==null?0:pairs.length,result={};while(++index<length){var pair=pairs[index];result[pair[0]]=pair[1];}return result;}/**
	     * Gets the first element of `array`.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @alias first
	     * @category Array
	     * @param {Array} array The array to query.
	     * @returns {*} Returns the first element of `array`.
	     * @example
	     *
	     * _.head([1, 2, 3]);
	     * // => 1
	     *
	     * _.head([]);
	     * // => undefined
	     */function head(array){return array&&array.length?array[0]:undefined;}/**
	     * Gets the index at which the first occurrence of `value` is found in `array`
	     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
	     * for equality comparisons. If `fromIndex` is negative, it's used as the
	     * offset from the end of `array`.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Array
	     * @param {Array} array The array to inspect.
	     * @param {*} value The value to search for.
	     * @param {number} [fromIndex=0] The index to search from.
	     * @returns {number} Returns the index of the matched value, else `-1`.
	     * @example
	     *
	     * _.indexOf([1, 2, 1, 2], 2);
	     * // => 1
	     *
	     * // Search from the `fromIndex`.
	     * _.indexOf([1, 2, 1, 2], 2, 2);
	     * // => 3
	     */function indexOf(array,value,fromIndex){var length=array==null?0:array.length;if(!length){return-1;}var index=fromIndex==null?0:toInteger(fromIndex);if(index<0){index=nativeMax(length+index,0);}return baseIndexOf(array,value,index);}/**
	     * Gets all but the last element of `array`.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Array
	     * @param {Array} array The array to query.
	     * @returns {Array} Returns the slice of `array`.
	     * @example
	     *
	     * _.initial([1, 2, 3]);
	     * // => [1, 2]
	     */function initial(array){var length=array==null?0:array.length;return length?baseSlice(array,0,-1):[];}/**
	     * Creates an array of unique values that are included in all given arrays
	     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
	     * for equality comparisons. The order and references of result values are
	     * determined by the first array.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Array
	     * @param {...Array} [arrays] The arrays to inspect.
	     * @returns {Array} Returns the new array of intersecting values.
	     * @example
	     *
	     * _.intersection([2, 1], [2, 3]);
	     * // => [2]
	     */var intersection=baseRest(function(arrays){var mapped=arrayMap(arrays,castArrayLikeObject);return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped):[];});/**
	     * This method is like `_.intersection` except that it accepts `iteratee`
	     * which is invoked for each element of each `arrays` to generate the criterion
	     * by which they're compared. The order and references of result values are
	     * determined by the first array. The iteratee is invoked with one argument:
	     * (value).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Array
	     * @param {...Array} [arrays] The arrays to inspect.
	     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
	     * @returns {Array} Returns the new array of intersecting values.
	     * @example
	     *
	     * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
	     * // => [2.1]
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
	     * // => [{ 'x': 1 }]
	     */var intersectionBy=baseRest(function(arrays){var iteratee=last(arrays),mapped=arrayMap(arrays,castArrayLikeObject);if(iteratee===last(mapped)){iteratee=undefined;}else{mapped.pop();}return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,getIteratee(iteratee,2)):[];});/**
	     * This method is like `_.intersection` except that it accepts `comparator`
	     * which is invoked to compare elements of `arrays`. The order and references
	     * of result values are determined by the first array. The comparator is
	     * invoked with two arguments: (arrVal, othVal).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Array
	     * @param {...Array} [arrays] The arrays to inspect.
	     * @param {Function} [comparator] The comparator invoked per element.
	     * @returns {Array} Returns the new array of intersecting values.
	     * @example
	     *
	     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
	     * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
	     *
	     * _.intersectionWith(objects, others, _.isEqual);
	     * // => [{ 'x': 1, 'y': 2 }]
	     */var intersectionWith=baseRest(function(arrays){var comparator=last(arrays),mapped=arrayMap(arrays,castArrayLikeObject);comparator=typeof comparator=='function'?comparator:undefined;if(comparator){mapped.pop();}return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,undefined,comparator):[];});/**
	     * Converts all elements in `array` into a string separated by `separator`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Array
	     * @param {Array} array The array to convert.
	     * @param {string} [separator=','] The element separator.
	     * @returns {string} Returns the joined string.
	     * @example
	     *
	     * _.join(['a', 'b', 'c'], '~');
	     * // => 'a~b~c'
	     */function join(array,separator){return array==null?'':nativeJoin.call(array,separator);}/**
	     * Gets the last element of `array`.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Array
	     * @param {Array} array The array to query.
	     * @returns {*} Returns the last element of `array`.
	     * @example
	     *
	     * _.last([1, 2, 3]);
	     * // => 3
	     */function last(array){var length=array==null?0:array.length;return length?array[length-1]:undefined;}/**
	     * This method is like `_.indexOf` except that it iterates over elements of
	     * `array` from right to left.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Array
	     * @param {Array} array The array to inspect.
	     * @param {*} value The value to search for.
	     * @param {number} [fromIndex=array.length-1] The index to search from.
	     * @returns {number} Returns the index of the matched value, else `-1`.
	     * @example
	     *
	     * _.lastIndexOf([1, 2, 1, 2], 2);
	     * // => 3
	     *
	     * // Search from the `fromIndex`.
	     * _.lastIndexOf([1, 2, 1, 2], 2, 2);
	     * // => 1
	     */function lastIndexOf(array,value,fromIndex){var length=array==null?0:array.length;if(!length){return-1;}var index=length;if(fromIndex!==undefined){index=toInteger(fromIndex);index=index<0?nativeMax(length+index,0):nativeMin(index,length-1);}return value===value?strictLastIndexOf(array,value,index):baseFindIndex(array,baseIsNaN,index,true);}/**
	     * Gets the element at index `n` of `array`. If `n` is negative, the nth
	     * element from the end is returned.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.11.0
	     * @category Array
	     * @param {Array} array The array to query.
	     * @param {number} [n=0] The index of the element to return.
	     * @returns {*} Returns the nth element of `array`.
	     * @example
	     *
	     * var array = ['a', 'b', 'c', 'd'];
	     *
	     * _.nth(array, 1);
	     * // => 'b'
	     *
	     * _.nth(array, -2);
	     * // => 'c';
	     */function nth(array,n){return array&&array.length?baseNth(array,toInteger(n)):undefined;}/**
	     * Removes all given values from `array` using
	     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
	     * for equality comparisons.
	     *
	     * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
	     * to remove elements from an array by predicate.
	     *
	     * @static
	     * @memberOf _
	     * @since 2.0.0
	     * @category Array
	     * @param {Array} array The array to modify.
	     * @param {...*} [values] The values to remove.
	     * @returns {Array} Returns `array`.
	     * @example
	     *
	     * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
	     *
	     * _.pull(array, 'a', 'c');
	     * console.log(array);
	     * // => ['b', 'b']
	     */var pull=baseRest(pullAll);/**
	     * This method is like `_.pull` except that it accepts an array of values to remove.
	     *
	     * **Note:** Unlike `_.difference`, this method mutates `array`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Array
	     * @param {Array} array The array to modify.
	     * @param {Array} values The values to remove.
	     * @returns {Array} Returns `array`.
	     * @example
	     *
	     * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
	     *
	     * _.pullAll(array, ['a', 'c']);
	     * console.log(array);
	     * // => ['b', 'b']
	     */function pullAll(array,values){return array&&array.length&&values&&values.length?basePullAll(array,values):array;}/**
	     * This method is like `_.pullAll` except that it accepts `iteratee` which is
	     * invoked for each element of `array` and `values` to generate the criterion
	     * by which they're compared. The iteratee is invoked with one argument: (value).
	     *
	     * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Array
	     * @param {Array} array The array to modify.
	     * @param {Array} values The values to remove.
	     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
	     * @returns {Array} Returns `array`.
	     * @example
	     *
	     * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
	     *
	     * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
	     * console.log(array);
	     * // => [{ 'x': 2 }]
	     */function pullAllBy(array,values,iteratee){return array&&array.length&&values&&values.length?basePullAll(array,values,getIteratee(iteratee,2)):array;}/**
	     * This method is like `_.pullAll` except that it accepts `comparator` which
	     * is invoked to compare elements of `array` to `values`. The comparator is
	     * invoked with two arguments: (arrVal, othVal).
	     *
	     * **Note:** Unlike `_.differenceWith`, this method mutates `array`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.6.0
	     * @category Array
	     * @param {Array} array The array to modify.
	     * @param {Array} values The values to remove.
	     * @param {Function} [comparator] The comparator invoked per element.
	     * @returns {Array} Returns `array`.
	     * @example
	     *
	     * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
	     *
	     * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
	     * console.log(array);
	     * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
	     */function pullAllWith(array,values,comparator){return array&&array.length&&values&&values.length?basePullAll(array,values,undefined,comparator):array;}/**
	     * Removes elements from `array` corresponding to `indexes` and returns an
	     * array of removed elements.
	     *
	     * **Note:** Unlike `_.at`, this method mutates `array`.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Array
	     * @param {Array} array The array to modify.
	     * @param {...(number|number[])} [indexes] The indexes of elements to remove.
	     * @returns {Array} Returns the new array of removed elements.
	     * @example
	     *
	     * var array = ['a', 'b', 'c', 'd'];
	     * var pulled = _.pullAt(array, [1, 3]);
	     *
	     * console.log(array);
	     * // => ['a', 'c']
	     *
	     * console.log(pulled);
	     * // => ['b', 'd']
	     */var pullAt=flatRest(function(array,indexes){var length=array==null?0:array.length,result=baseAt(array,indexes);basePullAt(array,arrayMap(indexes,function(index){return isIndex(index,length)?+index:index;}).sort(compareAscending));return result;});/**
	     * Removes all elements from `array` that `predicate` returns truthy for
	     * and returns an array of the removed elements. The predicate is invoked
	     * with three arguments: (value, index, array).
	     *
	     * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
	     * to pull elements from an array by value.
	     *
	     * @static
	     * @memberOf _
	     * @since 2.0.0
	     * @category Array
	     * @param {Array} array The array to modify.
	     * @param {Function} [predicate=_.identity] The function invoked per iteration.
	     * @returns {Array} Returns the new array of removed elements.
	     * @example
	     *
	     * var array = [1, 2, 3, 4];
	     * var evens = _.remove(array, function(n) {
	     *   return n % 2 == 0;
	     * });
	     *
	     * console.log(array);
	     * // => [1, 3]
	     *
	     * console.log(evens);
	     * // => [2, 4]
	     */function remove(array,predicate){var result=[];if(!(array&&array.length)){return result;}var index=-1,indexes=[],length=array.length;predicate=getIteratee(predicate,3);while(++index<length){var value=array[index];if(predicate(value,index,array)){result.push(value);indexes.push(index);}}basePullAt(array,indexes);return result;}/**
	     * Reverses `array` so that the first element becomes the last, the second
	     * element becomes the second to last, and so on.
	     *
	     * **Note:** This method mutates `array` and is based on
	     * [`Array#reverse`](https://mdn.io/Array/reverse).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Array
	     * @param {Array} array The array to modify.
	     * @returns {Array} Returns `array`.
	     * @example
	     *
	     * var array = [1, 2, 3];
	     *
	     * _.reverse(array);
	     * // => [3, 2, 1]
	     *
	     * console.log(array);
	     * // => [3, 2, 1]
	     */function reverse(array){return array==null?array:nativeReverse.call(array);}/**
	     * Creates a slice of `array` from `start` up to, but not including, `end`.
	     *
	     * **Note:** This method is used instead of
	     * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
	     * returned.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Array
	     * @param {Array} array The array to slice.
	     * @param {number} [start=0] The start position.
	     * @param {number} [end=array.length] The end position.
	     * @returns {Array} Returns the slice of `array`.
	     */function slice(array,start,end){var length=array==null?0:array.length;if(!length){return[];}if(end&&typeof end!='number'&&isIterateeCall(array,start,end)){start=0;end=length;}else{start=start==null?0:toInteger(start);end=end===undefined?length:toInteger(end);}return baseSlice(array,start,end);}/**
	     * Uses a binary search to determine the lowest index at which `value`
	     * should be inserted into `array` in order to maintain its sort order.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Array
	     * @param {Array} array The sorted array to inspect.
	     * @param {*} value The value to evaluate.
	     * @returns {number} Returns the index at which `value` should be inserted
	     *  into `array`.
	     * @example
	     *
	     * _.sortedIndex([30, 50], 40);
	     * // => 1
	     */function sortedIndex(array,value){return baseSortedIndex(array,value);}/**
	     * This method is like `_.sortedIndex` except that it accepts `iteratee`
	     * which is invoked for `value` and each element of `array` to compute their
	     * sort ranking. The iteratee is invoked with one argument: (value).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Array
	     * @param {Array} array The sorted array to inspect.
	     * @param {*} value The value to evaluate.
	     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
	     * @returns {number} Returns the index at which `value` should be inserted
	     *  into `array`.
	     * @example
	     *
	     * var objects = [{ 'x': 4 }, { 'x': 5 }];
	     *
	     * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
	     * // => 0
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.sortedIndexBy(objects, { 'x': 4 }, 'x');
	     * // => 0
	     */function sortedIndexBy(array,value,iteratee){return baseSortedIndexBy(array,value,getIteratee(iteratee,2));}/**
	     * This method is like `_.indexOf` except that it performs a binary
	     * search on a sorted `array`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Array
	     * @param {Array} array The array to inspect.
	     * @param {*} value The value to search for.
	     * @returns {number} Returns the index of the matched value, else `-1`.
	     * @example
	     *
	     * _.sortedIndexOf([4, 5, 5, 5, 6], 5);
	     * // => 1
	     */function sortedIndexOf(array,value){var length=array==null?0:array.length;if(length){var index=baseSortedIndex(array,value);if(index<length&&eq(array[index],value)){return index;}}return-1;}/**
	     * This method is like `_.sortedIndex` except that it returns the highest
	     * index at which `value` should be inserted into `array` in order to
	     * maintain its sort order.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Array
	     * @param {Array} array The sorted array to inspect.
	     * @param {*} value The value to evaluate.
	     * @returns {number} Returns the index at which `value` should be inserted
	     *  into `array`.
	     * @example
	     *
	     * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
	     * // => 4
	     */function sortedLastIndex(array,value){return baseSortedIndex(array,value,true);}/**
	     * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
	     * which is invoked for `value` and each element of `array` to compute their
	     * sort ranking. The iteratee is invoked with one argument: (value).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Array
	     * @param {Array} array The sorted array to inspect.
	     * @param {*} value The value to evaluate.
	     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
	     * @returns {number} Returns the index at which `value` should be inserted
	     *  into `array`.
	     * @example
	     *
	     * var objects = [{ 'x': 4 }, { 'x': 5 }];
	     *
	     * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
	     * // => 1
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
	     * // => 1
	     */function sortedLastIndexBy(array,value,iteratee){return baseSortedIndexBy(array,value,getIteratee(iteratee,2),true);}/**
	     * This method is like `_.lastIndexOf` except that it performs a binary
	     * search on a sorted `array`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Array
	     * @param {Array} array The array to inspect.
	     * @param {*} value The value to search for.
	     * @returns {number} Returns the index of the matched value, else `-1`.
	     * @example
	     *
	     * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
	     * // => 3
	     */function sortedLastIndexOf(array,value){var length=array==null?0:array.length;if(length){var index=baseSortedIndex(array,value,true)-1;if(eq(array[index],value)){return index;}}return-1;}/**
	     * This method is like `_.uniq` except that it's designed and optimized
	     * for sorted arrays.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Array
	     * @param {Array} array The array to inspect.
	     * @returns {Array} Returns the new duplicate free array.
	     * @example
	     *
	     * _.sortedUniq([1, 1, 2]);
	     * // => [1, 2]
	     */function sortedUniq(array){return array&&array.length?baseSortedUniq(array):[];}/**
	     * This method is like `_.uniqBy` except that it's designed and optimized
	     * for sorted arrays.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Array
	     * @param {Array} array The array to inspect.
	     * @param {Function} [iteratee] The iteratee invoked per element.
	     * @returns {Array} Returns the new duplicate free array.
	     * @example
	     *
	     * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
	     * // => [1.1, 2.3]
	     */function sortedUniqBy(array,iteratee){return array&&array.length?baseSortedUniq(array,getIteratee(iteratee,2)):[];}/**
	     * Gets all but the first element of `array`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Array
	     * @param {Array} array The array to query.
	     * @returns {Array} Returns the slice of `array`.
	     * @example
	     *
	     * _.tail([1, 2, 3]);
	     * // => [2, 3]
	     */function tail(array){var length=array==null?0:array.length;return length?baseSlice(array,1,length):[];}/**
	     * Creates a slice of `array` with `n` elements taken from the beginning.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Array
	     * @param {Array} array The array to query.
	     * @param {number} [n=1] The number of elements to take.
	     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
	     * @returns {Array} Returns the slice of `array`.
	     * @example
	     *
	     * _.take([1, 2, 3]);
	     * // => [1]
	     *
	     * _.take([1, 2, 3], 2);
	     * // => [1, 2]
	     *
	     * _.take([1, 2, 3], 5);
	     * // => [1, 2, 3]
	     *
	     * _.take([1, 2, 3], 0);
	     * // => []
	     */function take(array,n,guard){if(!(array&&array.length)){return[];}n=guard||n===undefined?1:toInteger(n);return baseSlice(array,0,n<0?0:n);}/**
	     * Creates a slice of `array` with `n` elements taken from the end.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Array
	     * @param {Array} array The array to query.
	     * @param {number} [n=1] The number of elements to take.
	     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
	     * @returns {Array} Returns the slice of `array`.
	     * @example
	     *
	     * _.takeRight([1, 2, 3]);
	     * // => [3]
	     *
	     * _.takeRight([1, 2, 3], 2);
	     * // => [2, 3]
	     *
	     * _.takeRight([1, 2, 3], 5);
	     * // => [1, 2, 3]
	     *
	     * _.takeRight([1, 2, 3], 0);
	     * // => []
	     */function takeRight(array,n,guard){var length=array==null?0:array.length;if(!length){return[];}n=guard||n===undefined?1:toInteger(n);n=length-n;return baseSlice(array,n<0?0:n,length);}/**
	     * Creates a slice of `array` with elements taken from the end. Elements are
	     * taken until `predicate` returns falsey. The predicate is invoked with
	     * three arguments: (value, index, array).
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Array
	     * @param {Array} array The array to query.
	     * @param {Function} [predicate=_.identity] The function invoked per iteration.
	     * @returns {Array} Returns the slice of `array`.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney',  'active': true },
	     *   { 'user': 'fred',    'active': false },
	     *   { 'user': 'pebbles', 'active': false }
	     * ];
	     *
	     * _.takeRightWhile(users, function(o) { return !o.active; });
	     * // => objects for ['fred', 'pebbles']
	     *
	     * // The `_.matches` iteratee shorthand.
	     * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });
	     * // => objects for ['pebbles']
	     *
	     * // The `_.matchesProperty` iteratee shorthand.
	     * _.takeRightWhile(users, ['active', false]);
	     * // => objects for ['fred', 'pebbles']
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.takeRightWhile(users, 'active');
	     * // => []
	     */function takeRightWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),false,true):[];}/**
	     * Creates a slice of `array` with elements taken from the beginning. Elements
	     * are taken until `predicate` returns falsey. The predicate is invoked with
	     * three arguments: (value, index, array).
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Array
	     * @param {Array} array The array to query.
	     * @param {Function} [predicate=_.identity] The function invoked per iteration.
	     * @returns {Array} Returns the slice of `array`.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney',  'active': false },
	     *   { 'user': 'fred',    'active': false },
	     *   { 'user': 'pebbles', 'active': true }
	     * ];
	     *
	     * _.takeWhile(users, function(o) { return !o.active; });
	     * // => objects for ['barney', 'fred']
	     *
	     * // The `_.matches` iteratee shorthand.
	     * _.takeWhile(users, { 'user': 'barney', 'active': false });
	     * // => objects for ['barney']
	     *
	     * // The `_.matchesProperty` iteratee shorthand.
	     * _.takeWhile(users, ['active', false]);
	     * // => objects for ['barney', 'fred']
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.takeWhile(users, 'active');
	     * // => []
	     */function takeWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3)):[];}/**
	     * Creates an array of unique values, in order, from all given arrays using
	     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
	     * for equality comparisons.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Array
	     * @param {...Array} [arrays] The arrays to inspect.
	     * @returns {Array} Returns the new array of combined values.
	     * @example
	     *
	     * _.union([2], [1, 2]);
	     * // => [2, 1]
	     */var union=baseRest(function(arrays){return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,true));});/**
	     * This method is like `_.union` except that it accepts `iteratee` which is
	     * invoked for each element of each `arrays` to generate the criterion by
	     * which uniqueness is computed. Result values are chosen from the first
	     * array in which the value occurs. The iteratee is invoked with one argument:
	     * (value).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Array
	     * @param {...Array} [arrays] The arrays to inspect.
	     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
	     * @returns {Array} Returns the new array of combined values.
	     * @example
	     *
	     * _.unionBy([2.1], [1.2, 2.3], Math.floor);
	     * // => [2.1, 1.2]
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
	     * // => [{ 'x': 1 }, { 'x': 2 }]
	     */var unionBy=baseRest(function(arrays){var iteratee=last(arrays);if(isArrayLikeObject(iteratee)){iteratee=undefined;}return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,true),getIteratee(iteratee,2));});/**
	     * This method is like `_.union` except that it accepts `comparator` which
	     * is invoked to compare elements of `arrays`. Result values are chosen from
	     * the first array in which the value occurs. The comparator is invoked
	     * with two arguments: (arrVal, othVal).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Array
	     * @param {...Array} [arrays] The arrays to inspect.
	     * @param {Function} [comparator] The comparator invoked per element.
	     * @returns {Array} Returns the new array of combined values.
	     * @example
	     *
	     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
	     * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
	     *
	     * _.unionWith(objects, others, _.isEqual);
	     * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
	     */var unionWith=baseRest(function(arrays){var comparator=last(arrays);comparator=typeof comparator=='function'?comparator:undefined;return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,true),undefined,comparator);});/**
	     * Creates a duplicate-free version of an array, using
	     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
	     * for equality comparisons, in which only the first occurrence of each element
	     * is kept. The order of result values is determined by the order they occur
	     * in the array.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Array
	     * @param {Array} array The array to inspect.
	     * @returns {Array} Returns the new duplicate free array.
	     * @example
	     *
	     * _.uniq([2, 1, 2]);
	     * // => [2, 1]
	     */function uniq(array){return array&&array.length?baseUniq(array):[];}/**
	     * This method is like `_.uniq` except that it accepts `iteratee` which is
	     * invoked for each element in `array` to generate the criterion by which
	     * uniqueness is computed. The order of result values is determined by the
	     * order they occur in the array. The iteratee is invoked with one argument:
	     * (value).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Array
	     * @param {Array} array The array to inspect.
	     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
	     * @returns {Array} Returns the new duplicate free array.
	     * @example
	     *
	     * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
	     * // => [2.1, 1.2]
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
	     * // => [{ 'x': 1 }, { 'x': 2 }]
	     */function uniqBy(array,iteratee){return array&&array.length?baseUniq(array,getIteratee(iteratee,2)):[];}/**
	     * This method is like `_.uniq` except that it accepts `comparator` which
	     * is invoked to compare elements of `array`. The order of result values is
	     * determined by the order they occur in the array.The comparator is invoked
	     * with two arguments: (arrVal, othVal).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Array
	     * @param {Array} array The array to inspect.
	     * @param {Function} [comparator] The comparator invoked per element.
	     * @returns {Array} Returns the new duplicate free array.
	     * @example
	     *
	     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
	     *
	     * _.uniqWith(objects, _.isEqual);
	     * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
	     */function uniqWith(array,comparator){comparator=typeof comparator=='function'?comparator:undefined;return array&&array.length?baseUniq(array,undefined,comparator):[];}/**
	     * This method is like `_.zip` except that it accepts an array of grouped
	     * elements and creates an array regrouping the elements to their pre-zip
	     * configuration.
	     *
	     * @static
	     * @memberOf _
	     * @since 1.2.0
	     * @category Array
	     * @param {Array} array The array of grouped elements to process.
	     * @returns {Array} Returns the new array of regrouped elements.
	     * @example
	     *
	     * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);
	     * // => [['a', 1, true], ['b', 2, false]]
	     *
	     * _.unzip(zipped);
	     * // => [['a', 'b'], [1, 2], [true, false]]
	     */function unzip(array){if(!(array&&array.length)){return[];}var length=0;array=arrayFilter(array,function(group){if(isArrayLikeObject(group)){length=nativeMax(group.length,length);return true;}});return baseTimes(length,function(index){return arrayMap(array,baseProperty(index));});}/**
	     * This method is like `_.unzip` except that it accepts `iteratee` to specify
	     * how regrouped values should be combined. The iteratee is invoked with the
	     * elements of each group: (...group).
	     *
	     * @static
	     * @memberOf _
	     * @since 3.8.0
	     * @category Array
	     * @param {Array} array The array of grouped elements to process.
	     * @param {Function} [iteratee=_.identity] The function to combine
	     *  regrouped values.
	     * @returns {Array} Returns the new array of regrouped elements.
	     * @example
	     *
	     * var zipped = _.zip([1, 2], [10, 20], [100, 200]);
	     * // => [[1, 10, 100], [2, 20, 200]]
	     *
	     * _.unzipWith(zipped, _.add);
	     * // => [3, 30, 300]
	     */function unzipWith(array,iteratee){if(!(array&&array.length)){return[];}var result=unzip(array);if(iteratee==null){return result;}return arrayMap(result,function(group){return apply(iteratee,undefined,group);});}/**
	     * Creates an array excluding all given values using
	     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
	     * for equality comparisons.
	     *
	     * **Note:** Unlike `_.pull`, this method returns a new array.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Array
	     * @param {Array} array The array to inspect.
	     * @param {...*} [values] The values to exclude.
	     * @returns {Array} Returns the new array of filtered values.
	     * @see _.difference, _.xor
	     * @example
	     *
	     * _.without([2, 1, 2, 3], 1, 2);
	     * // => [3]
	     */var without=baseRest(function(array,values){return isArrayLikeObject(array)?baseDifference(array,values):[];});/**
	     * Creates an array of unique values that is the
	     * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
	     * of the given arrays. The order of result values is determined by the order
	     * they occur in the arrays.
	     *
	     * @static
	     * @memberOf _
	     * @since 2.4.0
	     * @category Array
	     * @param {...Array} [arrays] The arrays to inspect.
	     * @returns {Array} Returns the new array of filtered values.
	     * @see _.difference, _.without
	     * @example
	     *
	     * _.xor([2, 1], [2, 3]);
	     * // => [1, 3]
	     */var xor=baseRest(function(arrays){return baseXor(arrayFilter(arrays,isArrayLikeObject));});/**
	     * This method is like `_.xor` except that it accepts `iteratee` which is
	     * invoked for each element of each `arrays` to generate the criterion by
	     * which by which they're compared. The order of result values is determined
	     * by the order they occur in the arrays. The iteratee is invoked with one
	     * argument: (value).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Array
	     * @param {...Array} [arrays] The arrays to inspect.
	     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
	     * @returns {Array} Returns the new array of filtered values.
	     * @example
	     *
	     * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);
	     * // => [1.2, 3.4]
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
	     * // => [{ 'x': 2 }]
	     */var xorBy=baseRest(function(arrays){var iteratee=last(arrays);if(isArrayLikeObject(iteratee)){iteratee=undefined;}return baseXor(arrayFilter(arrays,isArrayLikeObject),getIteratee(iteratee,2));});/**
	     * This method is like `_.xor` except that it accepts `comparator` which is
	     * invoked to compare elements of `arrays`. The order of result values is
	     * determined by the order they occur in the arrays. The comparator is invoked
	     * with two arguments: (arrVal, othVal).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Array
	     * @param {...Array} [arrays] The arrays to inspect.
	     * @param {Function} [comparator] The comparator invoked per element.
	     * @returns {Array} Returns the new array of filtered values.
	     * @example
	     *
	     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
	     * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
	     *
	     * _.xorWith(objects, others, _.isEqual);
	     * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
	     */var xorWith=baseRest(function(arrays){var comparator=last(arrays);comparator=typeof comparator=='function'?comparator:undefined;return baseXor(arrayFilter(arrays,isArrayLikeObject),undefined,comparator);});/**
	     * Creates an array of grouped elements, the first of which contains the
	     * first elements of the given arrays, the second of which contains the
	     * second elements of the given arrays, and so on.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Array
	     * @param {...Array} [arrays] The arrays to process.
	     * @returns {Array} Returns the new array of grouped elements.
	     * @example
	     *
	     * _.zip(['a', 'b'], [1, 2], [true, false]);
	     * // => [['a', 1, true], ['b', 2, false]]
	     */var zip=baseRest(unzip);/**
	     * This method is like `_.fromPairs` except that it accepts two arrays,
	     * one of property identifiers and one of corresponding values.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.4.0
	     * @category Array
	     * @param {Array} [props=[]] The property identifiers.
	     * @param {Array} [values=[]] The property values.
	     * @returns {Object} Returns the new object.
	     * @example
	     *
	     * _.zipObject(['a', 'b'], [1, 2]);
	     * // => { 'a': 1, 'b': 2 }
	     */function zipObject(props,values){return baseZipObject(props||[],values||[],assignValue);}/**
	     * This method is like `_.zipObject` except that it supports property paths.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.1.0
	     * @category Array
	     * @param {Array} [props=[]] The property identifiers.
	     * @param {Array} [values=[]] The property values.
	     * @returns {Object} Returns the new object.
	     * @example
	     *
	     * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
	     * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
	     */function zipObjectDeep(props,values){return baseZipObject(props||[],values||[],baseSet);}/**
	     * This method is like `_.zip` except that it accepts `iteratee` to specify
	     * how grouped values should be combined. The iteratee is invoked with the
	     * elements of each group: (...group).
	     *
	     * @static
	     * @memberOf _
	     * @since 3.8.0
	     * @category Array
	     * @param {...Array} [arrays] The arrays to process.
	     * @param {Function} [iteratee=_.identity] The function to combine
	     *  grouped values.
	     * @returns {Array} Returns the new array of grouped elements.
	     * @example
	     *
	     * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
	     *   return a + b + c;
	     * });
	     * // => [111, 222]
	     */var zipWith=baseRest(function(arrays){var length=arrays.length,iteratee=length>1?arrays[length-1]:undefined;iteratee=typeof iteratee=='function'?(arrays.pop(),iteratee):undefined;return unzipWith(arrays,iteratee);});/*------------------------------------------------------------------------*//**
	     * Creates a `lodash` wrapper instance that wraps `value` with explicit method
	     * chain sequences enabled. The result of such sequences must be unwrapped
	     * with `_#value`.
	     *
	     * @static
	     * @memberOf _
	     * @since 1.3.0
	     * @category Seq
	     * @param {*} value The value to wrap.
	     * @returns {Object} Returns the new `lodash` wrapper instance.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney',  'age': 36 },
	     *   { 'user': 'fred',    'age': 40 },
	     *   { 'user': 'pebbles', 'age': 1 }
	     * ];
	     *
	     * var youngest = _
	     *   .chain(users)
	     *   .sortBy('age')
	     *   .map(function(o) {
	     *     return o.user + ' is ' + o.age;
	     *   })
	     *   .head()
	     *   .value();
	     * // => 'pebbles is 1'
	     */function chain(value){var result=lodash(value);result.__chain__=true;return result;}/**
	     * This method invokes `interceptor` and returns `value`. The interceptor
	     * is invoked with one argument; (value). The purpose of this method is to
	     * "tap into" a method chain sequence in order to modify intermediate results.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Seq
	     * @param {*} value The value to provide to `interceptor`.
	     * @param {Function} interceptor The function to invoke.
	     * @returns {*} Returns `value`.
	     * @example
	     *
	     * _([1, 2, 3])
	     *  .tap(function(array) {
	     *    // Mutate input array.
	     *    array.pop();
	     *  })
	     *  .reverse()
	     *  .value();
	     * // => [2, 1]
	     */function tap(value,interceptor){interceptor(value);return value;}/**
	     * This method is like `_.tap` except that it returns the result of `interceptor`.
	     * The purpose of this method is to "pass thru" values replacing intermediate
	     * results in a method chain sequence.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Seq
	     * @param {*} value The value to provide to `interceptor`.
	     * @param {Function} interceptor The function to invoke.
	     * @returns {*} Returns the result of `interceptor`.
	     * @example
	     *
	     * _('  abc  ')
	     *  .chain()
	     *  .trim()
	     *  .thru(function(value) {
	     *    return [value];
	     *  })
	     *  .value();
	     * // => ['abc']
	     */function thru(value,interceptor){return interceptor(value);}/**
	     * This method is the wrapper version of `_.at`.
	     *
	     * @name at
	     * @memberOf _
	     * @since 1.0.0
	     * @category Seq
	     * @param {...(string|string[])} [paths] The property paths to pick.
	     * @returns {Object} Returns the new `lodash` wrapper instance.
	     * @example
	     *
	     * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
	     *
	     * _(object).at(['a[0].b.c', 'a[1]']).value();
	     * // => [3, 4]
	     */var wrapperAt=flatRest(function(paths){var length=paths.length,start=length?paths[0]:0,value=this.__wrapped__,interceptor=function interceptor(object){return baseAt(object,paths);};if(length>1||this.__actions__.length||!(value instanceof LazyWrapper)||!isIndex(start)){return this.thru(interceptor);}value=value.slice(start,+start+(length?1:0));value.__actions__.push({'func':thru,'args':[interceptor],'thisArg':undefined});return new LodashWrapper(value,this.__chain__).thru(function(array){if(length&&!array.length){array.push(undefined);}return array;});});/**
	     * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
	     *
	     * @name chain
	     * @memberOf _
	     * @since 0.1.0
	     * @category Seq
	     * @returns {Object} Returns the new `lodash` wrapper instance.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney', 'age': 36 },
	     *   { 'user': 'fred',   'age': 40 }
	     * ];
	     *
	     * // A sequence without explicit chaining.
	     * _(users).head();
	     * // => { 'user': 'barney', 'age': 36 }
	     *
	     * // A sequence with explicit chaining.
	     * _(users)
	     *   .chain()
	     *   .head()
	     *   .pick('user')
	     *   .value();
	     * // => { 'user': 'barney' }
	     */function wrapperChain(){return chain(this);}/**
	     * Executes the chain sequence and returns the wrapped result.
	     *
	     * @name commit
	     * @memberOf _
	     * @since 3.2.0
	     * @category Seq
	     * @returns {Object} Returns the new `lodash` wrapper instance.
	     * @example
	     *
	     * var array = [1, 2];
	     * var wrapped = _(array).push(3);
	     *
	     * console.log(array);
	     * // => [1, 2]
	     *
	     * wrapped = wrapped.commit();
	     * console.log(array);
	     * // => [1, 2, 3]
	     *
	     * wrapped.last();
	     * // => 3
	     *
	     * console.log(array);
	     * // => [1, 2, 3]
	     */function wrapperCommit(){return new LodashWrapper(this.value(),this.__chain__);}/**
	     * Gets the next value on a wrapped object following the
	     * [iterator protocol](https://mdn.io/iteration_protocols#iterator).
	     *
	     * @name next
	     * @memberOf _
	     * @since 4.0.0
	     * @category Seq
	     * @returns {Object} Returns the next iterator value.
	     * @example
	     *
	     * var wrapped = _([1, 2]);
	     *
	     * wrapped.next();
	     * // => { 'done': false, 'value': 1 }
	     *
	     * wrapped.next();
	     * // => { 'done': false, 'value': 2 }
	     *
	     * wrapped.next();
	     * // => { 'done': true, 'value': undefined }
	     */function wrapperNext(){if(this.__values__===undefined){this.__values__=toArray(this.value());}var done=this.__index__>=this.__values__.length,value=done?undefined:this.__values__[this.__index__++];return{'done':done,'value':value};}/**
	     * Enables the wrapper to be iterable.
	     *
	     * @name Symbol.iterator
	     * @memberOf _
	     * @since 4.0.0
	     * @category Seq
	     * @returns {Object} Returns the wrapper object.
	     * @example
	     *
	     * var wrapped = _([1, 2]);
	     *
	     * wrapped[Symbol.iterator]() === wrapped;
	     * // => true
	     *
	     * Array.from(wrapped);
	     * // => [1, 2]
	     */function wrapperToIterator(){return this;}/**
	     * Creates a clone of the chain sequence planting `value` as the wrapped value.
	     *
	     * @name plant
	     * @memberOf _
	     * @since 3.2.0
	     * @category Seq
	     * @param {*} value The value to plant.
	     * @returns {Object} Returns the new `lodash` wrapper instance.
	     * @example
	     *
	     * function square(n) {
	     *   return n * n;
	     * }
	     *
	     * var wrapped = _([1, 2]).map(square);
	     * var other = wrapped.plant([3, 4]);
	     *
	     * other.value();
	     * // => [9, 16]
	     *
	     * wrapped.value();
	     * // => [1, 4]
	     */function wrapperPlant(value){var result,parent=this;while(parent instanceof baseLodash){var clone=wrapperClone(parent);clone.__index__=0;clone.__values__=undefined;if(result){previous.__wrapped__=clone;}else{result=clone;}var previous=clone;parent=parent.__wrapped__;}previous.__wrapped__=value;return result;}/**
	     * This method is the wrapper version of `_.reverse`.
	     *
	     * **Note:** This method mutates the wrapped array.
	     *
	     * @name reverse
	     * @memberOf _
	     * @since 0.1.0
	     * @category Seq
	     * @returns {Object} Returns the new `lodash` wrapper instance.
	     * @example
	     *
	     * var array = [1, 2, 3];
	     *
	     * _(array).reverse().value()
	     * // => [3, 2, 1]
	     *
	     * console.log(array);
	     * // => [3, 2, 1]
	     */function wrapperReverse(){var value=this.__wrapped__;if(value instanceof LazyWrapper){var wrapped=value;if(this.__actions__.length){wrapped=new LazyWrapper(this);}wrapped=wrapped.reverse();wrapped.__actions__.push({'func':thru,'args':[reverse],'thisArg':undefined});return new LodashWrapper(wrapped,this.__chain__);}return this.thru(reverse);}/**
	     * Executes the chain sequence to resolve the unwrapped value.
	     *
	     * @name value
	     * @memberOf _
	     * @since 0.1.0
	     * @alias toJSON, valueOf
	     * @category Seq
	     * @returns {*} Returns the resolved unwrapped value.
	     * @example
	     *
	     * _([1, 2, 3]).value();
	     * // => [1, 2, 3]
	     */function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__);}/*------------------------------------------------------------------------*//**
	     * Creates an object composed of keys generated from the results of running
	     * each element of `collection` thru `iteratee`. The corresponding value of
	     * each key is the number of times the key was returned by `iteratee`. The
	     * iteratee is invoked with one argument: (value).
	     *
	     * @static
	     * @memberOf _
	     * @since 0.5.0
	     * @category Collection
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
	     * @returns {Object} Returns the composed aggregate object.
	     * @example
	     *
	     * _.countBy([6.1, 4.2, 6.3], Math.floor);
	     * // => { '4': 1, '6': 2 }
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.countBy(['one', 'two', 'three'], 'length');
	     * // => { '3': 2, '5': 1 }
	     */var countBy=createAggregator(function(result,value,key){if(hasOwnProperty.call(result,key)){++result[key];}else{baseAssignValue(result,key,1);}});/**
	     * Checks if `predicate` returns truthy for **all** elements of `collection`.
	     * Iteration is stopped once `predicate` returns falsey. The predicate is
	     * invoked with three arguments: (value, index|key, collection).
	     *
	     * **Note:** This method returns `true` for
	     * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because
	     * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of
	     * elements of empty collections.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Collection
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function} [predicate=_.identity] The function invoked per iteration.
	     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
	     * @returns {boolean} Returns `true` if all elements pass the predicate check,
	     *  else `false`.
	     * @example
	     *
	     * _.every([true, 1, null, 'yes'], Boolean);
	     * // => false
	     *
	     * var users = [
	     *   { 'user': 'barney', 'age': 36, 'active': false },
	     *   { 'user': 'fred',   'age': 40, 'active': false }
	     * ];
	     *
	     * // The `_.matches` iteratee shorthand.
	     * _.every(users, { 'user': 'barney', 'active': false });
	     * // => false
	     *
	     * // The `_.matchesProperty` iteratee shorthand.
	     * _.every(users, ['active', false]);
	     * // => true
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.every(users, 'active');
	     * // => false
	     */function every(collection,predicate,guard){var func=isArray(collection)?arrayEvery:baseEvery;if(guard&&isIterateeCall(collection,predicate,guard)){predicate=undefined;}return func(collection,getIteratee(predicate,3));}/**
	     * Iterates over elements of `collection`, returning an array of all elements
	     * `predicate` returns truthy for. The predicate is invoked with three
	     * arguments: (value, index|key, collection).
	     *
	     * **Note:** Unlike `_.remove`, this method returns a new array.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Collection
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function} [predicate=_.identity] The function invoked per iteration.
	     * @returns {Array} Returns the new filtered array.
	     * @see _.reject
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney', 'age': 36, 'active': true },
	     *   { 'user': 'fred',   'age': 40, 'active': false }
	     * ];
	     *
	     * _.filter(users, function(o) { return !o.active; });
	     * // => objects for ['fred']
	     *
	     * // The `_.matches` iteratee shorthand.
	     * _.filter(users, { 'age': 36, 'active': true });
	     * // => objects for ['barney']
	     *
	     * // The `_.matchesProperty` iteratee shorthand.
	     * _.filter(users, ['active', false]);
	     * // => objects for ['fred']
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.filter(users, 'active');
	     * // => objects for ['barney']
	     *
	     * // Combining several predicates using `_.overEvery` or `_.overSome`.
	     * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
	     * // => objects for ['fred', 'barney']
	     */function filter(collection,predicate){var func=isArray(collection)?arrayFilter:baseFilter;return func(collection,getIteratee(predicate,3));}/**
	     * Iterates over elements of `collection`, returning the first element
	     * `predicate` returns truthy for. The predicate is invoked with three
	     * arguments: (value, index|key, collection).
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Collection
	     * @param {Array|Object} collection The collection to inspect.
	     * @param {Function} [predicate=_.identity] The function invoked per iteration.
	     * @param {number} [fromIndex=0] The index to search from.
	     * @returns {*} Returns the matched element, else `undefined`.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney',  'age': 36, 'active': true },
	     *   { 'user': 'fred',    'age': 40, 'active': false },
	     *   { 'user': 'pebbles', 'age': 1,  'active': true }
	     * ];
	     *
	     * _.find(users, function(o) { return o.age < 40; });
	     * // => object for 'barney'
	     *
	     * // The `_.matches` iteratee shorthand.
	     * _.find(users, { 'age': 1, 'active': true });
	     * // => object for 'pebbles'
	     *
	     * // The `_.matchesProperty` iteratee shorthand.
	     * _.find(users, ['active', false]);
	     * // => object for 'fred'
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.find(users, 'active');
	     * // => object for 'barney'
	     */var find=createFind(findIndex);/**
	     * This method is like `_.find` except that it iterates over elements of
	     * `collection` from right to left.
	     *
	     * @static
	     * @memberOf _
	     * @since 2.0.0
	     * @category Collection
	     * @param {Array|Object} collection The collection to inspect.
	     * @param {Function} [predicate=_.identity] The function invoked per iteration.
	     * @param {number} [fromIndex=collection.length-1] The index to search from.
	     * @returns {*} Returns the matched element, else `undefined`.
	     * @example
	     *
	     * _.findLast([1, 2, 3, 4], function(n) {
	     *   return n % 2 == 1;
	     * });
	     * // => 3
	     */var findLast=createFind(findLastIndex);/**
	     * Creates a flattened array of values by running each element in `collection`
	     * thru `iteratee` and flattening the mapped results. The iteratee is invoked
	     * with three arguments: (value, index|key, collection).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Collection
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @returns {Array} Returns the new flattened array.
	     * @example
	     *
	     * function duplicate(n) {
	     *   return [n, n];
	     * }
	     *
	     * _.flatMap([1, 2], duplicate);
	     * // => [1, 1, 2, 2]
	     */function flatMap(collection,iteratee){return baseFlatten(map(collection,iteratee),1);}/**
	     * This method is like `_.flatMap` except that it recursively flattens the
	     * mapped results.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.7.0
	     * @category Collection
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @returns {Array} Returns the new flattened array.
	     * @example
	     *
	     * function duplicate(n) {
	     *   return [[[n, n]]];
	     * }
	     *
	     * _.flatMapDeep([1, 2], duplicate);
	     * // => [1, 1, 2, 2]
	     */function flatMapDeep(collection,iteratee){return baseFlatten(map(collection,iteratee),INFINITY);}/**
	     * This method is like `_.flatMap` except that it recursively flattens the
	     * mapped results up to `depth` times.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.7.0
	     * @category Collection
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @param {number} [depth=1] The maximum recursion depth.
	     * @returns {Array} Returns the new flattened array.
	     * @example
	     *
	     * function duplicate(n) {
	     *   return [[[n, n]]];
	     * }
	     *
	     * _.flatMapDepth([1, 2], duplicate, 2);
	     * // => [[1, 1], [2, 2]]
	     */function flatMapDepth(collection,iteratee,depth){depth=depth===undefined?1:toInteger(depth);return baseFlatten(map(collection,iteratee),depth);}/**
	     * Iterates over elements of `collection` and invokes `iteratee` for each element.
	     * The iteratee is invoked with three arguments: (value, index|key, collection).
	     * Iteratee functions may exit iteration early by explicitly returning `false`.
	     *
	     * **Note:** As with other "Collections" methods, objects with a "length"
	     * property are iterated like arrays. To avoid this behavior use `_.forIn`
	     * or `_.forOwn` for object iteration.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @alias each
	     * @category Collection
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @returns {Array|Object} Returns `collection`.
	     * @see _.forEachRight
	     * @example
	     *
	     * _.forEach([1, 2], function(value) {
	     *   console.log(value);
	     * });
	     * // => Logs `1` then `2`.
	     *
	     * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
	     *   console.log(key);
	     * });
	     * // => Logs 'a' then 'b' (iteration order is not guaranteed).
	     */function forEach(collection,iteratee){var func=isArray(collection)?arrayEach:baseEach;return func(collection,getIteratee(iteratee,3));}/**
	     * This method is like `_.forEach` except that it iterates over elements of
	     * `collection` from right to left.
	     *
	     * @static
	     * @memberOf _
	     * @since 2.0.0
	     * @alias eachRight
	     * @category Collection
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @returns {Array|Object} Returns `collection`.
	     * @see _.forEach
	     * @example
	     *
	     * _.forEachRight([1, 2], function(value) {
	     *   console.log(value);
	     * });
	     * // => Logs `2` then `1`.
	     */function forEachRight(collection,iteratee){var func=isArray(collection)?arrayEachRight:baseEachRight;return func(collection,getIteratee(iteratee,3));}/**
	     * Creates an object composed of keys generated from the results of running
	     * each element of `collection` thru `iteratee`. The order of grouped values
	     * is determined by the order they occur in `collection`. The corresponding
	     * value of each key is an array of elements responsible for generating the
	     * key. The iteratee is invoked with one argument: (value).
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Collection
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
	     * @returns {Object} Returns the composed aggregate object.
	     * @example
	     *
	     * _.groupBy([6.1, 4.2, 6.3], Math.floor);
	     * // => { '4': [4.2], '6': [6.1, 6.3] }
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.groupBy(['one', 'two', 'three'], 'length');
	     * // => { '3': ['one', 'two'], '5': ['three'] }
	     */var groupBy=createAggregator(function(result,value,key){if(hasOwnProperty.call(result,key)){result[key].push(value);}else{baseAssignValue(result,key,[value]);}});/**
	     * Checks if `value` is in `collection`. If `collection` is a string, it's
	     * checked for a substring of `value`, otherwise
	     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
	     * is used for equality comparisons. If `fromIndex` is negative, it's used as
	     * the offset from the end of `collection`.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to inspect.
	     * @param {*} value The value to search for.
	     * @param {number} [fromIndex=0] The index to search from.
	     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
	     * @returns {boolean} Returns `true` if `value` is found, else `false`.
	     * @example
	     *
	     * _.includes([1, 2, 3], 1);
	     * // => true
	     *
	     * _.includes([1, 2, 3], 1, 2);
	     * // => false
	     *
	     * _.includes({ 'a': 1, 'b': 2 }, 1);
	     * // => true
	     *
	     * _.includes('abcd', 'bc');
	     * // => true
	     */function includes(collection,value,fromIndex,guard){collection=isArrayLike(collection)?collection:values(collection);fromIndex=fromIndex&&!guard?toInteger(fromIndex):0;var length=collection.length;if(fromIndex<0){fromIndex=nativeMax(length+fromIndex,0);}return isString(collection)?fromIndex<=length&&collection.indexOf(value,fromIndex)>-1:!!length&&baseIndexOf(collection,value,fromIndex)>-1;}/**
	     * Invokes the method at `path` of each element in `collection`, returning
	     * an array of the results of each invoked method. Any additional arguments
	     * are provided to each invoked method. If `path` is a function, it's invoked
	     * for, and `this` bound to, each element in `collection`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Collection
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Array|Function|string} path The path of the method to invoke or
	     *  the function invoked per iteration.
	     * @param {...*} [args] The arguments to invoke each method with.
	     * @returns {Array} Returns the array of results.
	     * @example
	     *
	     * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');
	     * // => [[1, 5, 7], [1, 2, 3]]
	     *
	     * _.invokeMap([123, 456], String.prototype.split, '');
	     * // => [['1', '2', '3'], ['4', '5', '6']]
	     */var invokeMap=baseRest(function(collection,path,args){var index=-1,isFunc=typeof path=='function',result=isArrayLike(collection)?Array(collection.length):[];baseEach(collection,function(value){result[++index]=isFunc?apply(path,value,args):baseInvoke(value,path,args);});return result;});/**
	     * Creates an object composed of keys generated from the results of running
	     * each element of `collection` thru `iteratee`. The corresponding value of
	     * each key is the last element responsible for generating the key. The
	     * iteratee is invoked with one argument: (value).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Collection
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
	     * @returns {Object} Returns the composed aggregate object.
	     * @example
	     *
	     * var array = [
	     *   { 'dir': 'left', 'code': 97 },
	     *   { 'dir': 'right', 'code': 100 }
	     * ];
	     *
	     * _.keyBy(array, function(o) {
	     *   return String.fromCharCode(o.code);
	     * });
	     * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
	     *
	     * _.keyBy(array, 'dir');
	     * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
	     */var keyBy=createAggregator(function(result,value,key){baseAssignValue(result,key,value);});/**
	     * Creates an array of values by running each element in `collection` thru
	     * `iteratee`. The iteratee is invoked with three arguments:
	     * (value, index|key, collection).
	     *
	     * Many lodash methods are guarded to work as iteratees for methods like
	     * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
	     *
	     * The guarded methods are:
	     * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
	     * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
	     * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
	     * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Collection
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @returns {Array} Returns the new mapped array.
	     * @example
	     *
	     * function square(n) {
	     *   return n * n;
	     * }
	     *
	     * _.map([4, 8], square);
	     * // => [16, 64]
	     *
	     * _.map({ 'a': 4, 'b': 8 }, square);
	     * // => [16, 64] (iteration order is not guaranteed)
	     *
	     * var users = [
	     *   { 'user': 'barney' },
	     *   { 'user': 'fred' }
	     * ];
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.map(users, 'user');
	     * // => ['barney', 'fred']
	     */function map(collection,iteratee){var func=isArray(collection)?arrayMap:baseMap;return func(collection,getIteratee(iteratee,3));}/**
	     * This method is like `_.sortBy` except that it allows specifying the sort
	     * orders of the iteratees to sort by. If `orders` is unspecified, all values
	     * are sorted in ascending order. Otherwise, specify an order of "desc" for
	     * descending or "asc" for ascending sort order of corresponding values.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Collection
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
	     *  The iteratees to sort by.
	     * @param {string[]} [orders] The sort orders of `iteratees`.
	     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
	     * @returns {Array} Returns the new sorted array.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'fred',   'age': 48 },
	     *   { 'user': 'barney', 'age': 34 },
	     *   { 'user': 'fred',   'age': 40 },
	     *   { 'user': 'barney', 'age': 36 }
	     * ];
	     *
	     * // Sort by `user` in ascending order and by `age` in descending order.
	     * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
	     * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
	     */function orderBy(collection,iteratees,orders,guard){if(collection==null){return[];}if(!isArray(iteratees)){iteratees=iteratees==null?[]:[iteratees];}orders=guard?undefined:orders;if(!isArray(orders)){orders=orders==null?[]:[orders];}return baseOrderBy(collection,iteratees,orders);}/**
	     * Creates an array of elements split into two groups, the first of which
	     * contains elements `predicate` returns truthy for, the second of which
	     * contains elements `predicate` returns falsey for. The predicate is
	     * invoked with one argument: (value).
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Collection
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function} [predicate=_.identity] The function invoked per iteration.
	     * @returns {Array} Returns the array of grouped elements.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney',  'age': 36, 'active': false },
	     *   { 'user': 'fred',    'age': 40, 'active': true },
	     *   { 'user': 'pebbles', 'age': 1,  'active': false }
	     * ];
	     *
	     * _.partition(users, function(o) { return o.active; });
	     * // => objects for [['fred'], ['barney', 'pebbles']]
	     *
	     * // The `_.matches` iteratee shorthand.
	     * _.partition(users, { 'age': 1, 'active': false });
	     * // => objects for [['pebbles'], ['barney', 'fred']]
	     *
	     * // The `_.matchesProperty` iteratee shorthand.
	     * _.partition(users, ['active', false]);
	     * // => objects for [['barney', 'pebbles'], ['fred']]
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.partition(users, 'active');
	     * // => objects for [['fred'], ['barney', 'pebbles']]
	     */var partition=createAggregator(function(result,value,key){result[key?0:1].push(value);},function(){return[[],[]];});/**
	     * Reduces `collection` to a value which is the accumulated result of running
	     * each element in `collection` thru `iteratee`, where each successive
	     * invocation is supplied the return value of the previous. If `accumulator`
	     * is not given, the first element of `collection` is used as the initial
	     * value. The iteratee is invoked with four arguments:
	     * (accumulator, value, index|key, collection).
	     *
	     * Many lodash methods are guarded to work as iteratees for methods like
	     * `_.reduce`, `_.reduceRight`, and `_.transform`.
	     *
	     * The guarded methods are:
	     * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
	     * and `sortBy`
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Collection
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @param {*} [accumulator] The initial value.
	     * @returns {*} Returns the accumulated value.
	     * @see _.reduceRight
	     * @example
	     *
	     * _.reduce([1, 2], function(sum, n) {
	     *   return sum + n;
	     * }, 0);
	     * // => 3
	     *
	     * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
	     *   (result[value] || (result[value] = [])).push(key);
	     *   return result;
	     * }, {});
	     * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
	     */function reduce(collection,iteratee,accumulator){var func=isArray(collection)?arrayReduce:baseReduce,initAccum=arguments.length<3;return func(collection,getIteratee(iteratee,4),accumulator,initAccum,baseEach);}/**
	     * This method is like `_.reduce` except that it iterates over elements of
	     * `collection` from right to left.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Collection
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @param {*} [accumulator] The initial value.
	     * @returns {*} Returns the accumulated value.
	     * @see _.reduce
	     * @example
	     *
	     * var array = [[0, 1], [2, 3], [4, 5]];
	     *
	     * _.reduceRight(array, function(flattened, other) {
	     *   return flattened.concat(other);
	     * }, []);
	     * // => [4, 5, 2, 3, 0, 1]
	     */function reduceRight(collection,iteratee,accumulator){var func=isArray(collection)?arrayReduceRight:baseReduce,initAccum=arguments.length<3;return func(collection,getIteratee(iteratee,4),accumulator,initAccum,baseEachRight);}/**
	     * The opposite of `_.filter`; this method returns the elements of `collection`
	     * that `predicate` does **not** return truthy for.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Collection
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function} [predicate=_.identity] The function invoked per iteration.
	     * @returns {Array} Returns the new filtered array.
	     * @see _.filter
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney', 'age': 36, 'active': false },
	     *   { 'user': 'fred',   'age': 40, 'active': true }
	     * ];
	     *
	     * _.reject(users, function(o) { return !o.active; });
	     * // => objects for ['fred']
	     *
	     * // The `_.matches` iteratee shorthand.
	     * _.reject(users, { 'age': 40, 'active': true });
	     * // => objects for ['barney']
	     *
	     * // The `_.matchesProperty` iteratee shorthand.
	     * _.reject(users, ['active', false]);
	     * // => objects for ['fred']
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.reject(users, 'active');
	     * // => objects for ['barney']
	     */function reject(collection,predicate){var func=isArray(collection)?arrayFilter:baseFilter;return func(collection,negate(getIteratee(predicate,3)));}/**
	     * Gets a random element from `collection`.
	     *
	     * @static
	     * @memberOf _
	     * @since 2.0.0
	     * @category Collection
	     * @param {Array|Object} collection The collection to sample.
	     * @returns {*} Returns the random element.
	     * @example
	     *
	     * _.sample([1, 2, 3, 4]);
	     * // => 2
	     */function sample(collection){var func=isArray(collection)?arraySample:baseSample;return func(collection);}/**
	     * Gets `n` random elements at unique keys from `collection` up to the
	     * size of `collection`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Collection
	     * @param {Array|Object} collection The collection to sample.
	     * @param {number} [n=1] The number of elements to sample.
	     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
	     * @returns {Array} Returns the random elements.
	     * @example
	     *
	     * _.sampleSize([1, 2, 3], 2);
	     * // => [3, 1]
	     *
	     * _.sampleSize([1, 2, 3], 4);
	     * // => [2, 3, 1]
	     */function sampleSize(collection,n,guard){if(guard?isIterateeCall(collection,n,guard):n===undefined){n=1;}else{n=toInteger(n);}var func=isArray(collection)?arraySampleSize:baseSampleSize;return func(collection,n);}/**
	     * Creates an array of shuffled values, using a version of the
	     * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Collection
	     * @param {Array|Object} collection The collection to shuffle.
	     * @returns {Array} Returns the new shuffled array.
	     * @example
	     *
	     * _.shuffle([1, 2, 3, 4]);
	     * // => [4, 1, 3, 2]
	     */function shuffle(collection){var func=isArray(collection)?arrayShuffle:baseShuffle;return func(collection);}/**
	     * Gets the size of `collection` by returning its length for array-like
	     * values or the number of own enumerable string keyed properties for objects.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to inspect.
	     * @returns {number} Returns the collection size.
	     * @example
	     *
	     * _.size([1, 2, 3]);
	     * // => 3
	     *
	     * _.size({ 'a': 1, 'b': 2 });
	     * // => 2
	     *
	     * _.size('pebbles');
	     * // => 7
	     */function size(collection){if(collection==null){return 0;}if(isArrayLike(collection)){return isString(collection)?stringSize(collection):collection.length;}var tag=getTag(collection);if(tag==mapTag||tag==setTag){return collection.size;}return baseKeys(collection).length;}/**
	     * Checks if `predicate` returns truthy for **any** element of `collection`.
	     * Iteration is stopped once `predicate` returns truthy. The predicate is
	     * invoked with three arguments: (value, index|key, collection).
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Collection
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {Function} [predicate=_.identity] The function invoked per iteration.
	     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
	     * @returns {boolean} Returns `true` if any element passes the predicate check,
	     *  else `false`.
	     * @example
	     *
	     * _.some([null, 0, 'yes', false], Boolean);
	     * // => true
	     *
	     * var users = [
	     *   { 'user': 'barney', 'active': true },
	     *   { 'user': 'fred',   'active': false }
	     * ];
	     *
	     * // The `_.matches` iteratee shorthand.
	     * _.some(users, { 'user': 'barney', 'active': false });
	     * // => false
	     *
	     * // The `_.matchesProperty` iteratee shorthand.
	     * _.some(users, ['active', false]);
	     * // => true
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.some(users, 'active');
	     * // => true
	     */function some(collection,predicate,guard){var func=isArray(collection)?arraySome:baseSome;if(guard&&isIterateeCall(collection,predicate,guard)){predicate=undefined;}return func(collection,getIteratee(predicate,3));}/**
	     * Creates an array of elements, sorted in ascending order by the results of
	     * running each element in a collection thru each iteratee. This method
	     * performs a stable sort, that is, it preserves the original sort order of
	     * equal elements. The iteratees are invoked with one argument: (value).
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Collection
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {...(Function|Function[])} [iteratees=[_.identity]]
	     *  The iteratees to sort by.
	     * @returns {Array} Returns the new sorted array.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'fred',   'age': 48 },
	     *   { 'user': 'barney', 'age': 36 },
	     *   { 'user': 'fred',   'age': 30 },
	     *   { 'user': 'barney', 'age': 34 }
	     * ];
	     *
	     * _.sortBy(users, [function(o) { return o.user; }]);
	     * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
	     *
	     * _.sortBy(users, ['user', 'age']);
	     * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
	     */var sortBy=baseRest(function(collection,iteratees){if(collection==null){return[];}var length=iteratees.length;if(length>1&&isIterateeCall(collection,iteratees[0],iteratees[1])){iteratees=[];}else if(length>2&&isIterateeCall(iteratees[0],iteratees[1],iteratees[2])){iteratees=[iteratees[0]];}return baseOrderBy(collection,baseFlatten(iteratees,1),[]);});/*------------------------------------------------------------------------*//**
	     * Gets the timestamp of the number of milliseconds that have elapsed since
	     * the Unix epoch (1 January 1970 00:00:00 UTC).
	     *
	     * @static
	     * @memberOf _
	     * @since 2.4.0
	     * @category Date
	     * @returns {number} Returns the timestamp.
	     * @example
	     *
	     * _.defer(function(stamp) {
	     *   console.log(_.now() - stamp);
	     * }, _.now());
	     * // => Logs the number of milliseconds it took for the deferred invocation.
	     */var now=ctxNow||function(){return root.Date.now();};/*------------------------------------------------------------------------*//**
	     * The opposite of `_.before`; this method creates a function that invokes
	     * `func` once it's called `n` or more times.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Function
	     * @param {number} n The number of calls before `func` is invoked.
	     * @param {Function} func The function to restrict.
	     * @returns {Function} Returns the new restricted function.
	     * @example
	     *
	     * var saves = ['profile', 'settings'];
	     *
	     * var done = _.after(saves.length, function() {
	     *   console.log('done saving!');
	     * });
	     *
	     * _.forEach(saves, function(type) {
	     *   asyncSave({ 'type': type, 'complete': done });
	     * });
	     * // => Logs 'done saving!' after the two async saves have completed.
	     */function after(n,func){if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}n=toInteger(n);return function(){if(--n<1){return func.apply(this,arguments);}};}/**
	     * Creates a function that invokes `func`, with up to `n` arguments,
	     * ignoring any additional arguments.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Function
	     * @param {Function} func The function to cap arguments for.
	     * @param {number} [n=func.length] The arity cap.
	     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
	     * @returns {Function} Returns the new capped function.
	     * @example
	     *
	     * _.map(['6', '8', '10'], _.ary(parseInt, 1));
	     * // => [6, 8, 10]
	     */function ary(func,n,guard){n=guard?undefined:n;n=func&&n==null?func.length:n;return createWrap(func,WRAP_ARY_FLAG,undefined,undefined,undefined,undefined,n);}/**
	     * Creates a function that invokes `func`, with the `this` binding and arguments
	     * of the created function, while it's called less than `n` times. Subsequent
	     * calls to the created function return the result of the last `func` invocation.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Function
	     * @param {number} n The number of calls at which `func` is no longer invoked.
	     * @param {Function} func The function to restrict.
	     * @returns {Function} Returns the new restricted function.
	     * @example
	     *
	     * jQuery(element).on('click', _.before(5, addContactToList));
	     * // => Allows adding up to 4 contacts to the list.
	     */function before(n,func){var result;if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}n=toInteger(n);return function(){if(--n>0){result=func.apply(this,arguments);}if(n<=1){func=undefined;}return result;};}/**
	     * Creates a function that invokes `func` with the `this` binding of `thisArg`
	     * and `partials` prepended to the arguments it receives.
	     *
	     * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
	     * may be used as a placeholder for partially applied arguments.
	     *
	     * **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
	     * property of bound functions.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Function
	     * @param {Function} func The function to bind.
	     * @param {*} thisArg The `this` binding of `func`.
	     * @param {...*} [partials] The arguments to be partially applied.
	     * @returns {Function} Returns the new bound function.
	     * @example
	     *
	     * function greet(greeting, punctuation) {
	     *   return greeting + ' ' + this.user + punctuation;
	     * }
	     *
	     * var object = { 'user': 'fred' };
	     *
	     * var bound = _.bind(greet, object, 'hi');
	     * bound('!');
	     * // => 'hi fred!'
	     *
	     * // Bound with placeholders.
	     * var bound = _.bind(greet, object, _, '!');
	     * bound('hi');
	     * // => 'hi fred!'
	     */var bind=baseRest(function(func,thisArg,partials){var bitmask=WRAP_BIND_FLAG;if(partials.length){var holders=replaceHolders(partials,getHolder(bind));bitmask|=WRAP_PARTIAL_FLAG;}return createWrap(func,bitmask,thisArg,partials,holders);});/**
	     * Creates a function that invokes the method at `object[key]` with `partials`
	     * prepended to the arguments it receives.
	     *
	     * This method differs from `_.bind` by allowing bound functions to reference
	     * methods that may be redefined or don't yet exist. See
	     * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
	     * for more details.
	     *
	     * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
	     * builds, may be used as a placeholder for partially applied arguments.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.10.0
	     * @category Function
	     * @param {Object} object The object to invoke the method on.
	     * @param {string} key The key of the method.
	     * @param {...*} [partials] The arguments to be partially applied.
	     * @returns {Function} Returns the new bound function.
	     * @example
	     *
	     * var object = {
	     *   'user': 'fred',
	     *   'greet': function(greeting, punctuation) {
	     *     return greeting + ' ' + this.user + punctuation;
	     *   }
	     * };
	     *
	     * var bound = _.bindKey(object, 'greet', 'hi');
	     * bound('!');
	     * // => 'hi fred!'
	     *
	     * object.greet = function(greeting, punctuation) {
	     *   return greeting + 'ya ' + this.user + punctuation;
	     * };
	     *
	     * bound('!');
	     * // => 'hiya fred!'
	     *
	     * // Bound with placeholders.
	     * var bound = _.bindKey(object, 'greet', _, '!');
	     * bound('hi');
	     * // => 'hiya fred!'
	     */var bindKey=baseRest(function(object,key,partials){var bitmask=WRAP_BIND_FLAG|WRAP_BIND_KEY_FLAG;if(partials.length){var holders=replaceHolders(partials,getHolder(bindKey));bitmask|=WRAP_PARTIAL_FLAG;}return createWrap(key,bitmask,object,partials,holders);});/**
	     * Creates a function that accepts arguments of `func` and either invokes
	     * `func` returning its result, if at least `arity` number of arguments have
	     * been provided, or returns a function that accepts the remaining `func`
	     * arguments, and so on. The arity of `func` may be specified if `func.length`
	     * is not sufficient.
	     *
	     * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
	     * may be used as a placeholder for provided arguments.
	     *
	     * **Note:** This method doesn't set the "length" property of curried functions.
	     *
	     * @static
	     * @memberOf _
	     * @since 2.0.0
	     * @category Function
	     * @param {Function} func The function to curry.
	     * @param {number} [arity=func.length] The arity of `func`.
	     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
	     * @returns {Function} Returns the new curried function.
	     * @example
	     *
	     * var abc = function(a, b, c) {
	     *   return [a, b, c];
	     * };
	     *
	     * var curried = _.curry(abc);
	     *
	     * curried(1)(2)(3);
	     * // => [1, 2, 3]
	     *
	     * curried(1, 2)(3);
	     * // => [1, 2, 3]
	     *
	     * curried(1, 2, 3);
	     * // => [1, 2, 3]
	     *
	     * // Curried with placeholders.
	     * curried(1)(_, 3)(2);
	     * // => [1, 2, 3]
	     */function curry(func,arity,guard){arity=guard?undefined:arity;var result=createWrap(func,WRAP_CURRY_FLAG,undefined,undefined,undefined,undefined,undefined,arity);result.placeholder=curry.placeholder;return result;}/**
	     * This method is like `_.curry` except that arguments are applied to `func`
	     * in the manner of `_.partialRight` instead of `_.partial`.
	     *
	     * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
	     * builds, may be used as a placeholder for provided arguments.
	     *
	     * **Note:** This method doesn't set the "length" property of curried functions.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Function
	     * @param {Function} func The function to curry.
	     * @param {number} [arity=func.length] The arity of `func`.
	     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
	     * @returns {Function} Returns the new curried function.
	     * @example
	     *
	     * var abc = function(a, b, c) {
	     *   return [a, b, c];
	     * };
	     *
	     * var curried = _.curryRight(abc);
	     *
	     * curried(3)(2)(1);
	     * // => [1, 2, 3]
	     *
	     * curried(2, 3)(1);
	     * // => [1, 2, 3]
	     *
	     * curried(1, 2, 3);
	     * // => [1, 2, 3]
	     *
	     * // Curried with placeholders.
	     * curried(3)(1, _)(2);
	     * // => [1, 2, 3]
	     */function curryRight(func,arity,guard){arity=guard?undefined:arity;var result=createWrap(func,WRAP_CURRY_RIGHT_FLAG,undefined,undefined,undefined,undefined,undefined,arity);result.placeholder=curryRight.placeholder;return result;}/**
	     * Creates a debounced function that delays invoking `func` until after `wait`
	     * milliseconds have elapsed since the last time the debounced function was
	     * invoked. The debounced function comes with a `cancel` method to cancel
	     * delayed `func` invocations and a `flush` method to immediately invoke them.
	     * Provide `options` to indicate whether `func` should be invoked on the
	     * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
	     * with the last arguments provided to the debounced function. Subsequent
	     * calls to the debounced function return the result of the last `func`
	     * invocation.
	     *
	     * **Note:** If `leading` and `trailing` options are `true`, `func` is
	     * invoked on the trailing edge of the timeout only if the debounced function
	     * is invoked more than once during the `wait` timeout.
	     *
	     * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
	     * until to the next tick, similar to `setTimeout` with a timeout of `0`.
	     *
	     * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
	     * for details over the differences between `_.debounce` and `_.throttle`.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Function
	     * @param {Function} func The function to debounce.
	     * @param {number} [wait=0] The number of milliseconds to delay.
	     * @param {Object} [options={}] The options object.
	     * @param {boolean} [options.leading=false]
	     *  Specify invoking on the leading edge of the timeout.
	     * @param {number} [options.maxWait]
	     *  The maximum time `func` is allowed to be delayed before it's invoked.
	     * @param {boolean} [options.trailing=true]
	     *  Specify invoking on the trailing edge of the timeout.
	     * @returns {Function} Returns the new debounced function.
	     * @example
	     *
	     * // Avoid costly calculations while the window size is in flux.
	     * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
	     *
	     * // Invoke `sendMail` when clicked, debouncing subsequent calls.
	     * jQuery(element).on('click', _.debounce(sendMail, 300, {
	     *   'leading': true,
	     *   'trailing': false
	     * }));
	     *
	     * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
	     * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
	     * var source = new EventSource('/stream');
	     * jQuery(source).on('message', debounced);
	     *
	     * // Cancel the trailing debounced invocation.
	     * jQuery(window).on('popstate', debounced.cancel);
	     */function debounce(func,wait,options){var lastArgs,lastThis,maxWait,result,timerId,lastCallTime,lastInvokeTime=0,leading=false,maxing=false,trailing=true;if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}wait=toNumber(wait)||0;if(isObject(options)){leading=!!options.leading;maxing='maxWait'in options;maxWait=maxing?nativeMax(toNumber(options.maxWait)||0,wait):maxWait;trailing='trailing'in options?!!options.trailing:trailing;}function invokeFunc(time){var args=lastArgs,thisArg=lastThis;lastArgs=lastThis=undefined;lastInvokeTime=time;result=func.apply(thisArg,args);return result;}function leadingEdge(time){// Reset any `maxWait` timer.
	lastInvokeTime=time;// Start the timer for the trailing edge.
	timerId=setTimeout(timerExpired,wait);// Invoke the leading edge.
	return leading?invokeFunc(time):result;}function remainingWait(time){var timeSinceLastCall=time-lastCallTime,timeSinceLastInvoke=time-lastInvokeTime,timeWaiting=wait-timeSinceLastCall;return maxing?nativeMin(timeWaiting,maxWait-timeSinceLastInvoke):timeWaiting;}function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime,timeSinceLastInvoke=time-lastInvokeTime;// Either this is the first call, activity has stopped and we're at the
	// trailing edge, the system time has gone backwards and we're treating
	// it as the trailing edge, or we've hit the `maxWait` limit.
	return lastCallTime===undefined||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&timeSinceLastInvoke>=maxWait;}function timerExpired(){var time=now();if(shouldInvoke(time)){return trailingEdge(time);}// Restart the timer.
	timerId=setTimeout(timerExpired,remainingWait(time));}function trailingEdge(time){timerId=undefined;// Only invoke if we have `lastArgs` which means `func` has been
	// debounced at least once.
	if(trailing&&lastArgs){return invokeFunc(time);}lastArgs=lastThis=undefined;return result;}function cancel(){if(timerId!==undefined){clearTimeout(timerId);}lastInvokeTime=0;lastArgs=lastCallTime=lastThis=timerId=undefined;}function flush(){return timerId===undefined?result:trailingEdge(now());}function debounced(){var time=now(),isInvoking=shouldInvoke(time);lastArgs=arguments;lastThis=this;lastCallTime=time;if(isInvoking){if(timerId===undefined){return leadingEdge(lastCallTime);}if(maxing){// Handle invocations in a tight loop.
	clearTimeout(timerId);timerId=setTimeout(timerExpired,wait);return invokeFunc(lastCallTime);}}if(timerId===undefined){timerId=setTimeout(timerExpired,wait);}return result;}debounced.cancel=cancel;debounced.flush=flush;return debounced;}/**
	     * Defers invoking the `func` until the current call stack has cleared. Any
	     * additional arguments are provided to `func` when it's invoked.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Function
	     * @param {Function} func The function to defer.
	     * @param {...*} [args] The arguments to invoke `func` with.
	     * @returns {number} Returns the timer id.
	     * @example
	     *
	     * _.defer(function(text) {
	     *   console.log(text);
	     * }, 'deferred');
	     * // => Logs 'deferred' after one millisecond.
	     */var defer=baseRest(function(func,args){return baseDelay(func,1,args);});/**
	     * Invokes `func` after `wait` milliseconds. Any additional arguments are
	     * provided to `func` when it's invoked.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Function
	     * @param {Function} func The function to delay.
	     * @param {number} wait The number of milliseconds to delay invocation.
	     * @param {...*} [args] The arguments to invoke `func` with.
	     * @returns {number} Returns the timer id.
	     * @example
	     *
	     * _.delay(function(text) {
	     *   console.log(text);
	     * }, 1000, 'later');
	     * // => Logs 'later' after one second.
	     */var delay=baseRest(function(func,wait,args){return baseDelay(func,toNumber(wait)||0,args);});/**
	     * Creates a function that invokes `func` with arguments reversed.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Function
	     * @param {Function} func The function to flip arguments for.
	     * @returns {Function} Returns the new flipped function.
	     * @example
	     *
	     * var flipped = _.flip(function() {
	     *   return _.toArray(arguments);
	     * });
	     *
	     * flipped('a', 'b', 'c', 'd');
	     * // => ['d', 'c', 'b', 'a']
	     */function flip(func){return createWrap(func,WRAP_FLIP_FLAG);}/**
	     * Creates a function that memoizes the result of `func`. If `resolver` is
	     * provided, it determines the cache key for storing the result based on the
	     * arguments provided to the memoized function. By default, the first argument
	     * provided to the memoized function is used as the map cache key. The `func`
	     * is invoked with the `this` binding of the memoized function.
	     *
	     * **Note:** The cache is exposed as the `cache` property on the memoized
	     * function. Its creation may be customized by replacing the `_.memoize.Cache`
	     * constructor with one whose instances implement the
	     * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
	     * method interface of `clear`, `delete`, `get`, `has`, and `set`.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Function
	     * @param {Function} func The function to have its output memoized.
	     * @param {Function} [resolver] The function to resolve the cache key.
	     * @returns {Function} Returns the new memoized function.
	     * @example
	     *
	     * var object = { 'a': 1, 'b': 2 };
	     * var other = { 'c': 3, 'd': 4 };
	     *
	     * var values = _.memoize(_.values);
	     * values(object);
	     * // => [1, 2]
	     *
	     * values(other);
	     * // => [3, 4]
	     *
	     * object.a = 2;
	     * values(object);
	     * // => [1, 2]
	     *
	     * // Modify the result cache.
	     * values.cache.set(object, ['a', 'b']);
	     * values(object);
	     * // => ['a', 'b']
	     *
	     * // Replace `_.memoize.Cache`.
	     * _.memoize.Cache = WeakMap;
	     */function memoize(func,resolver){if(typeof func!='function'||resolver!=null&&typeof resolver!='function'){throw new TypeError(FUNC_ERROR_TEXT);}var memoized=function memoized(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=memoized.cache;if(cache.has(key)){return cache.get(key);}var result=func.apply(this,args);memoized.cache=cache.set(key,result)||cache;return result;};memoized.cache=new(memoize.Cache||MapCache)();return memoized;}// Expose `MapCache`.
	memoize.Cache=MapCache;/**
	     * Creates a function that negates the result of the predicate `func`. The
	     * `func` predicate is invoked with the `this` binding and arguments of the
	     * created function.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Function
	     * @param {Function} predicate The predicate to negate.
	     * @returns {Function} Returns the new negated function.
	     * @example
	     *
	     * function isEven(n) {
	     *   return n % 2 == 0;
	     * }
	     *
	     * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
	     * // => [1, 3, 5]
	     */function negate(predicate){if(typeof predicate!='function'){throw new TypeError(FUNC_ERROR_TEXT);}return function(){var args=arguments;switch(args.length){case 0:return!predicate.call(this);case 1:return!predicate.call(this,args[0]);case 2:return!predicate.call(this,args[0],args[1]);case 3:return!predicate.call(this,args[0],args[1],args[2]);}return!predicate.apply(this,args);};}/**
	     * Creates a function that is restricted to invoking `func` once. Repeat calls
	     * to the function return the value of the first invocation. The `func` is
	     * invoked with the `this` binding and arguments of the created function.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Function
	     * @param {Function} func The function to restrict.
	     * @returns {Function} Returns the new restricted function.
	     * @example
	     *
	     * var initialize = _.once(createApplication);
	     * initialize();
	     * initialize();
	     * // => `createApplication` is invoked once
	     */function once(func){return before(2,func);}/**
	     * Creates a function that invokes `func` with its arguments transformed.
	     *
	     * @static
	     * @since 4.0.0
	     * @memberOf _
	     * @category Function
	     * @param {Function} func The function to wrap.
	     * @param {...(Function|Function[])} [transforms=[_.identity]]
	     *  The argument transforms.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * function doubled(n) {
	     *   return n * 2;
	     * }
	     *
	     * function square(n) {
	     *   return n * n;
	     * }
	     *
	     * var func = _.overArgs(function(x, y) {
	     *   return [x, y];
	     * }, [square, doubled]);
	     *
	     * func(9, 3);
	     * // => [81, 6]
	     *
	     * func(10, 5);
	     * // => [100, 10]
	     */var overArgs=castRest(function(func,transforms){transforms=transforms.length==1&&isArray(transforms[0])?arrayMap(transforms[0],baseUnary(getIteratee())):arrayMap(baseFlatten(transforms,1),baseUnary(getIteratee()));var funcsLength=transforms.length;return baseRest(function(args){var index=-1,length=nativeMin(args.length,funcsLength);while(++index<length){args[index]=transforms[index].call(this,args[index]);}return apply(func,this,args);});});/**
	     * Creates a function that invokes `func` with `partials` prepended to the
	     * arguments it receives. This method is like `_.bind` except it does **not**
	     * alter the `this` binding.
	     *
	     * The `_.partial.placeholder` value, which defaults to `_` in monolithic
	     * builds, may be used as a placeholder for partially applied arguments.
	     *
	     * **Note:** This method doesn't set the "length" property of partially
	     * applied functions.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.2.0
	     * @category Function
	     * @param {Function} func The function to partially apply arguments to.
	     * @param {...*} [partials] The arguments to be partially applied.
	     * @returns {Function} Returns the new partially applied function.
	     * @example
	     *
	     * function greet(greeting, name) {
	     *   return greeting + ' ' + name;
	     * }
	     *
	     * var sayHelloTo = _.partial(greet, 'hello');
	     * sayHelloTo('fred');
	     * // => 'hello fred'
	     *
	     * // Partially applied with placeholders.
	     * var greetFred = _.partial(greet, _, 'fred');
	     * greetFred('hi');
	     * // => 'hi fred'
	     */var partial=baseRest(function(func,partials){var holders=replaceHolders(partials,getHolder(partial));return createWrap(func,WRAP_PARTIAL_FLAG,undefined,partials,holders);});/**
	     * This method is like `_.partial` except that partially applied arguments
	     * are appended to the arguments it receives.
	     *
	     * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
	     * builds, may be used as a placeholder for partially applied arguments.
	     *
	     * **Note:** This method doesn't set the "length" property of partially
	     * applied functions.
	     *
	     * @static
	     * @memberOf _
	     * @since 1.0.0
	     * @category Function
	     * @param {Function} func The function to partially apply arguments to.
	     * @param {...*} [partials] The arguments to be partially applied.
	     * @returns {Function} Returns the new partially applied function.
	     * @example
	     *
	     * function greet(greeting, name) {
	     *   return greeting + ' ' + name;
	     * }
	     *
	     * var greetFred = _.partialRight(greet, 'fred');
	     * greetFred('hi');
	     * // => 'hi fred'
	     *
	     * // Partially applied with placeholders.
	     * var sayHelloTo = _.partialRight(greet, 'hello', _);
	     * sayHelloTo('fred');
	     * // => 'hello fred'
	     */var partialRight=baseRest(function(func,partials){var holders=replaceHolders(partials,getHolder(partialRight));return createWrap(func,WRAP_PARTIAL_RIGHT_FLAG,undefined,partials,holders);});/**
	     * Creates a function that invokes `func` with arguments arranged according
	     * to the specified `indexes` where the argument value at the first index is
	     * provided as the first argument, the argument value at the second index is
	     * provided as the second argument, and so on.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Function
	     * @param {Function} func The function to rearrange arguments for.
	     * @param {...(number|number[])} indexes The arranged argument indexes.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * var rearged = _.rearg(function(a, b, c) {
	     *   return [a, b, c];
	     * }, [2, 0, 1]);
	     *
	     * rearged('b', 'c', 'a')
	     * // => ['a', 'b', 'c']
	     */var rearg=flatRest(function(func,indexes){return createWrap(func,WRAP_REARG_FLAG,undefined,undefined,undefined,indexes);});/**
	     * Creates a function that invokes `func` with the `this` binding of the
	     * created function and arguments from `start` and beyond provided as
	     * an array.
	     *
	     * **Note:** This method is based on the
	     * [rest parameter](https://mdn.io/rest_parameters).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Function
	     * @param {Function} func The function to apply a rest parameter to.
	     * @param {number} [start=func.length-1] The start position of the rest parameter.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * var say = _.rest(function(what, names) {
	     *   return what + ' ' + _.initial(names).join(', ') +
	     *     (_.size(names) > 1 ? ', & ' : '') + _.last(names);
	     * });
	     *
	     * say('hello', 'fred', 'barney', 'pebbles');
	     * // => 'hello fred, barney, & pebbles'
	     */function rest(func,start){if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}start=start===undefined?start:toInteger(start);return baseRest(func,start);}/**
	     * Creates a function that invokes `func` with the `this` binding of the
	     * create function and an array of arguments much like
	     * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
	     *
	     * **Note:** This method is based on the
	     * [spread operator](https://mdn.io/spread_operator).
	     *
	     * @static
	     * @memberOf _
	     * @since 3.2.0
	     * @category Function
	     * @param {Function} func The function to spread arguments over.
	     * @param {number} [start=0] The start position of the spread.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * var say = _.spread(function(who, what) {
	     *   return who + ' says ' + what;
	     * });
	     *
	     * say(['fred', 'hello']);
	     * // => 'fred says hello'
	     *
	     * var numbers = Promise.all([
	     *   Promise.resolve(40),
	     *   Promise.resolve(36)
	     * ]);
	     *
	     * numbers.then(_.spread(function(x, y) {
	     *   return x + y;
	     * }));
	     * // => a Promise of 76
	     */function spread(func,start){if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}start=start==null?0:nativeMax(toInteger(start),0);return baseRest(function(args){var array=args[start],otherArgs=castSlice(args,0,start);if(array){arrayPush(otherArgs,array);}return apply(func,this,otherArgs);});}/**
	     * Creates a throttled function that only invokes `func` at most once per
	     * every `wait` milliseconds. The throttled function comes with a `cancel`
	     * method to cancel delayed `func` invocations and a `flush` method to
	     * immediately invoke them. Provide `options` to indicate whether `func`
	     * should be invoked on the leading and/or trailing edge of the `wait`
	     * timeout. The `func` is invoked with the last arguments provided to the
	     * throttled function. Subsequent calls to the throttled function return the
	     * result of the last `func` invocation.
	     *
	     * **Note:** If `leading` and `trailing` options are `true`, `func` is
	     * invoked on the trailing edge of the timeout only if the throttled function
	     * is invoked more than once during the `wait` timeout.
	     *
	     * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
	     * until to the next tick, similar to `setTimeout` with a timeout of `0`.
	     *
	     * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
	     * for details over the differences between `_.throttle` and `_.debounce`.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Function
	     * @param {Function} func The function to throttle.
	     * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
	     * @param {Object} [options={}] The options object.
	     * @param {boolean} [options.leading=true]
	     *  Specify invoking on the leading edge of the timeout.
	     * @param {boolean} [options.trailing=true]
	     *  Specify invoking on the trailing edge of the timeout.
	     * @returns {Function} Returns the new throttled function.
	     * @example
	     *
	     * // Avoid excessively updating the position while scrolling.
	     * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
	     *
	     * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
	     * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
	     * jQuery(element).on('click', throttled);
	     *
	     * // Cancel the trailing throttled invocation.
	     * jQuery(window).on('popstate', throttled.cancel);
	     */function throttle(func,wait,options){var leading=true,trailing=true;if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}if(isObject(options)){leading='leading'in options?!!options.leading:leading;trailing='trailing'in options?!!options.trailing:trailing;}return debounce(func,wait,{'leading':leading,'maxWait':wait,'trailing':trailing});}/**
	     * Creates a function that accepts up to one argument, ignoring any
	     * additional arguments.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Function
	     * @param {Function} func The function to cap arguments for.
	     * @returns {Function} Returns the new capped function.
	     * @example
	     *
	     * _.map(['6', '8', '10'], _.unary(parseInt));
	     * // => [6, 8, 10]
	     */function unary(func){return ary(func,1);}/**
	     * Creates a function that provides `value` to `wrapper` as its first
	     * argument. Any additional arguments provided to the function are appended
	     * to those provided to the `wrapper`. The wrapper is invoked with the `this`
	     * binding of the created function.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Function
	     * @param {*} value The value to wrap.
	     * @param {Function} [wrapper=identity] The wrapper function.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * var p = _.wrap(_.escape, function(func, text) {
	     *   return '<p>' + func(text) + '</p>';
	     * });
	     *
	     * p('fred, barney, & pebbles');
	     * // => '<p>fred, barney, &amp; pebbles</p>'
	     */function wrap(value,wrapper){return partial(castFunction(wrapper),value);}/*------------------------------------------------------------------------*//**
	     * Casts `value` as an array if it's not one.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.4.0
	     * @category Lang
	     * @param {*} value The value to inspect.
	     * @returns {Array} Returns the cast array.
	     * @example
	     *
	     * _.castArray(1);
	     * // => [1]
	     *
	     * _.castArray({ 'a': 1 });
	     * // => [{ 'a': 1 }]
	     *
	     * _.castArray('abc');
	     * // => ['abc']
	     *
	     * _.castArray(null);
	     * // => [null]
	     *
	     * _.castArray(undefined);
	     * // => [undefined]
	     *
	     * _.castArray();
	     * // => []
	     *
	     * var array = [1, 2, 3];
	     * console.log(_.castArray(array) === array);
	     * // => true
	     */function castArray(){if(!arguments.length){return[];}var value=arguments[0];return isArray(value)?value:[value];}/**
	     * Creates a shallow clone of `value`.
	     *
	     * **Note:** This method is loosely based on the
	     * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
	     * and supports cloning arrays, array buffers, booleans, date objects, maps,
	     * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
	     * arrays. The own enumerable properties of `arguments` objects are cloned
	     * as plain objects. An empty object is returned for uncloneable values such
	     * as error objects, functions, DOM nodes, and WeakMaps.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Lang
	     * @param {*} value The value to clone.
	     * @returns {*} Returns the cloned value.
	     * @see _.cloneDeep
	     * @example
	     *
	     * var objects = [{ 'a': 1 }, { 'b': 2 }];
	     *
	     * var shallow = _.clone(objects);
	     * console.log(shallow[0] === objects[0]);
	     * // => true
	     */function clone(value){return baseClone(value,CLONE_SYMBOLS_FLAG);}/**
	     * This method is like `_.clone` except that it accepts `customizer` which
	     * is invoked to produce the cloned value. If `customizer` returns `undefined`,
	     * cloning is handled by the method instead. The `customizer` is invoked with
	     * up to four arguments; (value [, index|key, object, stack]).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Lang
	     * @param {*} value The value to clone.
	     * @param {Function} [customizer] The function to customize cloning.
	     * @returns {*} Returns the cloned value.
	     * @see _.cloneDeepWith
	     * @example
	     *
	     * function customizer(value) {
	     *   if (_.isElement(value)) {
	     *     return value.cloneNode(false);
	     *   }
	     * }
	     *
	     * var el = _.cloneWith(document.body, customizer);
	     *
	     * console.log(el === document.body);
	     * // => false
	     * console.log(el.nodeName);
	     * // => 'BODY'
	     * console.log(el.childNodes.length);
	     * // => 0
	     */function cloneWith(value,customizer){customizer=typeof customizer=='function'?customizer:undefined;return baseClone(value,CLONE_SYMBOLS_FLAG,customizer);}/**
	     * This method is like `_.clone` except that it recursively clones `value`.
	     *
	     * @static
	     * @memberOf _
	     * @since 1.0.0
	     * @category Lang
	     * @param {*} value The value to recursively clone.
	     * @returns {*} Returns the deep cloned value.
	     * @see _.clone
	     * @example
	     *
	     * var objects = [{ 'a': 1 }, { 'b': 2 }];
	     *
	     * var deep = _.cloneDeep(objects);
	     * console.log(deep[0] === objects[0]);
	     * // => false
	     */function cloneDeep(value){return baseClone(value,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG);}/**
	     * This method is like `_.cloneWith` except that it recursively clones `value`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Lang
	     * @param {*} value The value to recursively clone.
	     * @param {Function} [customizer] The function to customize cloning.
	     * @returns {*} Returns the deep cloned value.
	     * @see _.cloneWith
	     * @example
	     *
	     * function customizer(value) {
	     *   if (_.isElement(value)) {
	     *     return value.cloneNode(true);
	     *   }
	     * }
	     *
	     * var el = _.cloneDeepWith(document.body, customizer);
	     *
	     * console.log(el === document.body);
	     * // => false
	     * console.log(el.nodeName);
	     * // => 'BODY'
	     * console.log(el.childNodes.length);
	     * // => 20
	     */function cloneDeepWith(value,customizer){customizer=typeof customizer=='function'?customizer:undefined;return baseClone(value,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG,customizer);}/**
	     * Checks if `object` conforms to `source` by invoking the predicate
	     * properties of `source` with the corresponding property values of `object`.
	     *
	     * **Note:** This method is equivalent to `_.conforms` when `source` is
	     * partially applied.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.14.0
	     * @category Lang
	     * @param {Object} object The object to inspect.
	     * @param {Object} source The object of property predicates to conform to.
	     * @returns {boolean} Returns `true` if `object` conforms, else `false`.
	     * @example
	     *
	     * var object = { 'a': 1, 'b': 2 };
	     *
	     * _.conformsTo(object, { 'b': function(n) { return n > 1; } });
	     * // => true
	     *
	     * _.conformsTo(object, { 'b': function(n) { return n > 2; } });
	     * // => false
	     */function conformsTo(object,source){return source==null||baseConformsTo(object,source,keys(source));}/**
	     * Performs a
	     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
	     * comparison between two values to determine if they are equivalent.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Lang
	     * @param {*} value The value to compare.
	     * @param {*} other The other value to compare.
	     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
	     * @example
	     *
	     * var object = { 'a': 1 };
	     * var other = { 'a': 1 };
	     *
	     * _.eq(object, object);
	     * // => true
	     *
	     * _.eq(object, other);
	     * // => false
	     *
	     * _.eq('a', 'a');
	     * // => true
	     *
	     * _.eq('a', Object('a'));
	     * // => false
	     *
	     * _.eq(NaN, NaN);
	     * // => true
	     */function eq(value,other){return value===other||value!==value&&other!==other;}/**
	     * Checks if `value` is greater than `other`.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.9.0
	     * @category Lang
	     * @param {*} value The value to compare.
	     * @param {*} other The other value to compare.
	     * @returns {boolean} Returns `true` if `value` is greater than `other`,
	     *  else `false`.
	     * @see _.lt
	     * @example
	     *
	     * _.gt(3, 1);
	     * // => true
	     *
	     * _.gt(3, 3);
	     * // => false
	     *
	     * _.gt(1, 3);
	     * // => false
	     */var gt=createRelationalOperation(baseGt);/**
	     * Checks if `value` is greater than or equal to `other`.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.9.0
	     * @category Lang
	     * @param {*} value The value to compare.
	     * @param {*} other The other value to compare.
	     * @returns {boolean} Returns `true` if `value` is greater than or equal to
	     *  `other`, else `false`.
	     * @see _.lte
	     * @example
	     *
	     * _.gte(3, 1);
	     * // => true
	     *
	     * _.gte(3, 3);
	     * // => true
	     *
	     * _.gte(1, 3);
	     * // => false
	     */var gte=createRelationalOperation(function(value,other){return value>=other;});/**
	     * Checks if `value` is likely an `arguments` object.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is an `arguments` object,
	     *  else `false`.
	     * @example
	     *
	     * _.isArguments(function() { return arguments; }());
	     * // => true
	     *
	     * _.isArguments([1, 2, 3]);
	     * // => false
	     */var isArguments=baseIsArguments(function(){return arguments;}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty.call(value,'callee')&&!propertyIsEnumerable.call(value,'callee');};/**
	     * Checks if `value` is classified as an `Array` object.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is an array, else `false`.
	     * @example
	     *
	     * _.isArray([1, 2, 3]);
	     * // => true
	     *
	     * _.isArray(document.body.children);
	     * // => false
	     *
	     * _.isArray('abc');
	     * // => false
	     *
	     * _.isArray(_.noop);
	     * // => false
	     */var isArray=Array.isArray;/**
	     * Checks if `value` is classified as an `ArrayBuffer` object.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.3.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
	     * @example
	     *
	     * _.isArrayBuffer(new ArrayBuffer(2));
	     * // => true
	     *
	     * _.isArrayBuffer(new Array(2));
	     * // => false
	     */var isArrayBuffer=nodeIsArrayBuffer?baseUnary(nodeIsArrayBuffer):baseIsArrayBuffer;/**
	     * Checks if `value` is array-like. A value is considered array-like if it's
	     * not a function and has a `value.length` that's an integer greater than or
	     * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
	     * @example
	     *
	     * _.isArrayLike([1, 2, 3]);
	     * // => true
	     *
	     * _.isArrayLike(document.body.children);
	     * // => true
	     *
	     * _.isArrayLike('abc');
	     * // => true
	     *
	     * _.isArrayLike(_.noop);
	     * // => false
	     */function isArrayLike(value){return value!=null&&isLength(value.length)&&!isFunction(value);}/**
	     * This method is like `_.isArrayLike` except that it also checks if `value`
	     * is an object.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is an array-like object,
	     *  else `false`.
	     * @example
	     *
	     * _.isArrayLikeObject([1, 2, 3]);
	     * // => true
	     *
	     * _.isArrayLikeObject(document.body.children);
	     * // => true
	     *
	     * _.isArrayLikeObject('abc');
	     * // => false
	     *
	     * _.isArrayLikeObject(_.noop);
	     * // => false
	     */function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value);}/**
	     * Checks if `value` is classified as a boolean primitive or object.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.
	     * @example
	     *
	     * _.isBoolean(false);
	     * // => true
	     *
	     * _.isBoolean(null);
	     * // => false
	     */function isBoolean(value){return value===true||value===false||isObjectLike(value)&&baseGetTag(value)==boolTag;}/**
	     * Checks if `value` is a buffer.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.3.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
	     * @example
	     *
	     * _.isBuffer(new Buffer(2));
	     * // => true
	     *
	     * _.isBuffer(new Uint8Array(2));
	     * // => false
	     */var isBuffer=nativeIsBuffer||stubFalse;/**
	     * Checks if `value` is classified as a `Date` object.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
	     * @example
	     *
	     * _.isDate(new Date);
	     * // => true
	     *
	     * _.isDate('Mon April 23 2012');
	     * // => false
	     */var isDate=nodeIsDate?baseUnary(nodeIsDate):baseIsDate;/**
	     * Checks if `value` is likely a DOM element.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
	     * @example
	     *
	     * _.isElement(document.body);
	     * // => true
	     *
	     * _.isElement('<body>');
	     * // => false
	     */function isElement(value){return isObjectLike(value)&&value.nodeType===1&&!isPlainObject(value);}/**
	     * Checks if `value` is an empty object, collection, map, or set.
	     *
	     * Objects are considered empty if they have no own enumerable string keyed
	     * properties.
	     *
	     * Array-like values such as `arguments` objects, arrays, buffers, strings, or
	     * jQuery-like collections are considered empty if they have a `length` of `0`.
	     * Similarly, maps and sets are considered empty if they have a `size` of `0`.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is empty, else `false`.
	     * @example
	     *
	     * _.isEmpty(null);
	     * // => true
	     *
	     * _.isEmpty(true);
	     * // => true
	     *
	     * _.isEmpty(1);
	     * // => true
	     *
	     * _.isEmpty([1, 2, 3]);
	     * // => false
	     *
	     * _.isEmpty({ 'a': 1 });
	     * // => false
	     */function isEmpty(value){if(value==null){return true;}if(isArrayLike(value)&&(isArray(value)||typeof value=='string'||typeof value.splice=='function'||isBuffer(value)||isTypedArray(value)||isArguments(value))){return!value.length;}var tag=getTag(value);if(tag==mapTag||tag==setTag){return!value.size;}if(isPrototype(value)){return!baseKeys(value).length;}for(var key in value){if(hasOwnProperty.call(value,key)){return false;}}return true;}/**
	     * Performs a deep comparison between two values to determine if they are
	     * equivalent.
	     *
	     * **Note:** This method supports comparing arrays, array buffers, booleans,
	     * date objects, error objects, maps, numbers, `Object` objects, regexes,
	     * sets, strings, symbols, and typed arrays. `Object` objects are compared
	     * by their own, not inherited, enumerable properties. Functions and DOM
	     * nodes are compared by strict equality, i.e. `===`.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Lang
	     * @param {*} value The value to compare.
	     * @param {*} other The other value to compare.
	     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
	     * @example
	     *
	     * var object = { 'a': 1 };
	     * var other = { 'a': 1 };
	     *
	     * _.isEqual(object, other);
	     * // => true
	     *
	     * object === other;
	     * // => false
	     */function isEqual(value,other){return baseIsEqual(value,other);}/**
	     * This method is like `_.isEqual` except that it accepts `customizer` which
	     * is invoked to compare values. If `customizer` returns `undefined`, comparisons
	     * are handled by the method instead. The `customizer` is invoked with up to
	     * six arguments: (objValue, othValue [, index|key, object, other, stack]).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Lang
	     * @param {*} value The value to compare.
	     * @param {*} other The other value to compare.
	     * @param {Function} [customizer] The function to customize comparisons.
	     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
	     * @example
	     *
	     * function isGreeting(value) {
	     *   return /^h(?:i|ello)$/.test(value);
	     * }
	     *
	     * function customizer(objValue, othValue) {
	     *   if (isGreeting(objValue) && isGreeting(othValue)) {
	     *     return true;
	     *   }
	     * }
	     *
	     * var array = ['hello', 'goodbye'];
	     * var other = ['hi', 'goodbye'];
	     *
	     * _.isEqualWith(array, other, customizer);
	     * // => true
	     */function isEqualWith(value,other,customizer){customizer=typeof customizer=='function'?customizer:undefined;var result=customizer?customizer(value,other):undefined;return result===undefined?baseIsEqual(value,other,undefined,customizer):!!result;}/**
	     * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
	     * `SyntaxError`, `TypeError`, or `URIError` object.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
	     * @example
	     *
	     * _.isError(new Error);
	     * // => true
	     *
	     * _.isError(Error);
	     * // => false
	     */function isError(value){if(!isObjectLike(value)){return false;}var tag=baseGetTag(value);return tag==errorTag||tag==domExcTag||typeof value.message=='string'&&typeof value.name=='string'&&!isPlainObject(value);}/**
	     * Checks if `value` is a finite primitive number.
	     *
	     * **Note:** This method is based on
	     * [`Number.isFinite`](https://mdn.io/Number/isFinite).
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
	     * @example
	     *
	     * _.isFinite(3);
	     * // => true
	     *
	     * _.isFinite(Number.MIN_VALUE);
	     * // => true
	     *
	     * _.isFinite(Infinity);
	     * // => false
	     *
	     * _.isFinite('3');
	     * // => false
	     */function isFinite(value){return typeof value=='number'&&nativeIsFinite(value);}/**
	     * Checks if `value` is classified as a `Function` object.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a function, else `false`.
	     * @example
	     *
	     * _.isFunction(_);
	     * // => true
	     *
	     * _.isFunction(/abc/);
	     * // => false
	     */function isFunction(value){if(!isObject(value)){return false;}// The use of `Object#toString` avoids issues with the `typeof` operator
	// in Safari 9 which returns 'object' for typed arrays and other constructors.
	var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==proxyTag;}/**
	     * Checks if `value` is an integer.
	     *
	     * **Note:** This method is based on
	     * [`Number.isInteger`](https://mdn.io/Number/isInteger).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
	     * @example
	     *
	     * _.isInteger(3);
	     * // => true
	     *
	     * _.isInteger(Number.MIN_VALUE);
	     * // => false
	     *
	     * _.isInteger(Infinity);
	     * // => false
	     *
	     * _.isInteger('3');
	     * // => false
	     */function isInteger(value){return typeof value=='number'&&value==toInteger(value);}/**
	     * Checks if `value` is a valid array-like length.
	     *
	     * **Note:** This method is loosely based on
	     * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
	     * @example
	     *
	     * _.isLength(3);
	     * // => true
	     *
	     * _.isLength(Number.MIN_VALUE);
	     * // => false
	     *
	     * _.isLength(Infinity);
	     * // => false
	     *
	     * _.isLength('3');
	     * // => false
	     */function isLength(value){return typeof value=='number'&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER;}/**
	     * Checks if `value` is the
	     * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
	     * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is an object, else `false`.
	     * @example
	     *
	     * _.isObject({});
	     * // => true
	     *
	     * _.isObject([1, 2, 3]);
	     * // => true
	     *
	     * _.isObject(_.noop);
	     * // => true
	     *
	     * _.isObject(null);
	     * // => false
	     */function isObject(value){var type=typeof value==='undefined'?'undefined':_typeof(value);return value!=null&&(type=='object'||type=='function');}/**
	     * Checks if `value` is object-like. A value is object-like if it's not `null`
	     * and has a `typeof` result of "object".
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
	     * @example
	     *
	     * _.isObjectLike({});
	     * // => true
	     *
	     * _.isObjectLike([1, 2, 3]);
	     * // => true
	     *
	     * _.isObjectLike(_.noop);
	     * // => false
	     *
	     * _.isObjectLike(null);
	     * // => false
	     */function isObjectLike(value){return value!=null&&(typeof value==='undefined'?'undefined':_typeof(value))=='object';}/**
	     * Checks if `value` is classified as a `Map` object.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.3.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a map, else `false`.
	     * @example
	     *
	     * _.isMap(new Map);
	     * // => true
	     *
	     * _.isMap(new WeakMap);
	     * // => false
	     */var isMap=nodeIsMap?baseUnary(nodeIsMap):baseIsMap;/**
	     * Performs a partial deep comparison between `object` and `source` to
	     * determine if `object` contains equivalent property values.
	     *
	     * **Note:** This method is equivalent to `_.matches` when `source` is
	     * partially applied.
	     *
	     * Partial comparisons will match empty array and empty object `source`
	     * values against any array or object value, respectively. See `_.isEqual`
	     * for a list of supported value comparisons.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Lang
	     * @param {Object} object The object to inspect.
	     * @param {Object} source The object of property values to match.
	     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
	     * @example
	     *
	     * var object = { 'a': 1, 'b': 2 };
	     *
	     * _.isMatch(object, { 'b': 2 });
	     * // => true
	     *
	     * _.isMatch(object, { 'b': 1 });
	     * // => false
	     */function isMatch(object,source){return object===source||baseIsMatch(object,source,getMatchData(source));}/**
	     * This method is like `_.isMatch` except that it accepts `customizer` which
	     * is invoked to compare values. If `customizer` returns `undefined`, comparisons
	     * are handled by the method instead. The `customizer` is invoked with five
	     * arguments: (objValue, srcValue, index|key, object, source).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Lang
	     * @param {Object} object The object to inspect.
	     * @param {Object} source The object of property values to match.
	     * @param {Function} [customizer] The function to customize comparisons.
	     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
	     * @example
	     *
	     * function isGreeting(value) {
	     *   return /^h(?:i|ello)$/.test(value);
	     * }
	     *
	     * function customizer(objValue, srcValue) {
	     *   if (isGreeting(objValue) && isGreeting(srcValue)) {
	     *     return true;
	     *   }
	     * }
	     *
	     * var object = { 'greeting': 'hello' };
	     * var source = { 'greeting': 'hi' };
	     *
	     * _.isMatchWith(object, source, customizer);
	     * // => true
	     */function isMatchWith(object,source,customizer){customizer=typeof customizer=='function'?customizer:undefined;return baseIsMatch(object,source,getMatchData(source),customizer);}/**
	     * Checks if `value` is `NaN`.
	     *
	     * **Note:** This method is based on
	     * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
	     * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
	     * `undefined` and other non-number values.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
	     * @example
	     *
	     * _.isNaN(NaN);
	     * // => true
	     *
	     * _.isNaN(new Number(NaN));
	     * // => true
	     *
	     * isNaN(undefined);
	     * // => true
	     *
	     * _.isNaN(undefined);
	     * // => false
	     */function isNaN(value){// An `NaN` primitive is the only value that is not equal to itself.
	// Perform the `toStringTag` check first to avoid errors with some
	// ActiveX objects in IE.
	return isNumber(value)&&value!=+value;}/**
	     * Checks if `value` is a pristine native function.
	     *
	     * **Note:** This method can't reliably detect native functions in the presence
	     * of the core-js package because core-js circumvents this kind of detection.
	     * Despite multiple requests, the core-js maintainer has made it clear: any
	     * attempt to fix the detection will be obstructed. As a result, we're left
	     * with little choice but to throw an error. Unfortunately, this also affects
	     * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),
	     * which rely on core-js.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a native function,
	     *  else `false`.
	     * @example
	     *
	     * _.isNative(Array.prototype.push);
	     * // => true
	     *
	     * _.isNative(_);
	     * // => false
	     */function isNative(value){if(isMaskable(value)){throw new Error(CORE_ERROR_TEXT);}return baseIsNative(value);}/**
	     * Checks if `value` is `null`.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
	     * @example
	     *
	     * _.isNull(null);
	     * // => true
	     *
	     * _.isNull(void 0);
	     * // => false
	     */function isNull(value){return value===null;}/**
	     * Checks if `value` is `null` or `undefined`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
	     * @example
	     *
	     * _.isNil(null);
	     * // => true
	     *
	     * _.isNil(void 0);
	     * // => true
	     *
	     * _.isNil(NaN);
	     * // => false
	     */function isNil(value){return value==null;}/**
	     * Checks if `value` is classified as a `Number` primitive or object.
	     *
	     * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
	     * classified as numbers, use the `_.isFinite` method.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a number, else `false`.
	     * @example
	     *
	     * _.isNumber(3);
	     * // => true
	     *
	     * _.isNumber(Number.MIN_VALUE);
	     * // => true
	     *
	     * _.isNumber(Infinity);
	     * // => true
	     *
	     * _.isNumber('3');
	     * // => false
	     */function isNumber(value){return typeof value=='number'||isObjectLike(value)&&baseGetTag(value)==numberTag;}/**
	     * Checks if `value` is a plain object, that is, an object created by the
	     * `Object` constructor or one with a `[[Prototype]]` of `null`.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.8.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
	     * @example
	     *
	     * function Foo() {
	     *   this.a = 1;
	     * }
	     *
	     * _.isPlainObject(new Foo);
	     * // => false
	     *
	     * _.isPlainObject([1, 2, 3]);
	     * // => false
	     *
	     * _.isPlainObject({ 'x': 0, 'y': 0 });
	     * // => true
	     *
	     * _.isPlainObject(Object.create(null));
	     * // => true
	     */function isPlainObject(value){if(!isObjectLike(value)||baseGetTag(value)!=objectTag){return false;}var proto=getPrototype(value);if(proto===null){return true;}var Ctor=hasOwnProperty.call(proto,'constructor')&&proto.constructor;return typeof Ctor=='function'&&Ctor instanceof Ctor&&funcToString.call(Ctor)==objectCtorString;}/**
	     * Checks if `value` is classified as a `RegExp` object.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.1.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
	     * @example
	     *
	     * _.isRegExp(/abc/);
	     * // => true
	     *
	     * _.isRegExp('/abc/');
	     * // => false
	     */var isRegExp=nodeIsRegExp?baseUnary(nodeIsRegExp):baseIsRegExp;/**
	     * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
	     * double precision number which isn't the result of a rounded unsafe integer.
	     *
	     * **Note:** This method is based on
	     * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
	     * @example
	     *
	     * _.isSafeInteger(3);
	     * // => true
	     *
	     * _.isSafeInteger(Number.MIN_VALUE);
	     * // => false
	     *
	     * _.isSafeInteger(Infinity);
	     * // => false
	     *
	     * _.isSafeInteger('3');
	     * // => false
	     */function isSafeInteger(value){return isInteger(value)&&value>=-MAX_SAFE_INTEGER&&value<=MAX_SAFE_INTEGER;}/**
	     * Checks if `value` is classified as a `Set` object.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.3.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a set, else `false`.
	     * @example
	     *
	     * _.isSet(new Set);
	     * // => true
	     *
	     * _.isSet(new WeakSet);
	     * // => false
	     */var isSet=nodeIsSet?baseUnary(nodeIsSet):baseIsSet;/**
	     * Checks if `value` is classified as a `String` primitive or object.
	     *
	     * @static
	     * @since 0.1.0
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a string, else `false`.
	     * @example
	     *
	     * _.isString('abc');
	     * // => true
	     *
	     * _.isString(1);
	     * // => false
	     */function isString(value){return typeof value=='string'||!isArray(value)&&isObjectLike(value)&&baseGetTag(value)==stringTag;}/**
	     * Checks if `value` is classified as a `Symbol` primitive or object.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
	     * @example
	     *
	     * _.isSymbol(Symbol.iterator);
	     * // => true
	     *
	     * _.isSymbol('abc');
	     * // => false
	     */function isSymbol(value){return(typeof value==='undefined'?'undefined':_typeof(value))=='symbol'||isObjectLike(value)&&baseGetTag(value)==symbolTag;}/**
	     * Checks if `value` is classified as a typed array.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
	     * @example
	     *
	     * _.isTypedArray(new Uint8Array);
	     * // => true
	     *
	     * _.isTypedArray([]);
	     * // => false
	     */var isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;/**
	     * Checks if `value` is `undefined`.
	     *
	     * @static
	     * @since 0.1.0
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
	     * @example
	     *
	     * _.isUndefined(void 0);
	     * // => true
	     *
	     * _.isUndefined(null);
	     * // => false
	     */function isUndefined(value){return value===undefined;}/**
	     * Checks if `value` is classified as a `WeakMap` object.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.3.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.
	     * @example
	     *
	     * _.isWeakMap(new WeakMap);
	     * // => true
	     *
	     * _.isWeakMap(new Map);
	     * // => false
	     */function isWeakMap(value){return isObjectLike(value)&&getTag(value)==weakMapTag;}/**
	     * Checks if `value` is classified as a `WeakSet` object.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.3.0
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.
	     * @example
	     *
	     * _.isWeakSet(new WeakSet);
	     * // => true
	     *
	     * _.isWeakSet(new Set);
	     * // => false
	     */function isWeakSet(value){return isObjectLike(value)&&baseGetTag(value)==weakSetTag;}/**
	     * Checks if `value` is less than `other`.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.9.0
	     * @category Lang
	     * @param {*} value The value to compare.
	     * @param {*} other The other value to compare.
	     * @returns {boolean} Returns `true` if `value` is less than `other`,
	     *  else `false`.
	     * @see _.gt
	     * @example
	     *
	     * _.lt(1, 3);
	     * // => true
	     *
	     * _.lt(3, 3);
	     * // => false
	     *
	     * _.lt(3, 1);
	     * // => false
	     */var lt=createRelationalOperation(baseLt);/**
	     * Checks if `value` is less than or equal to `other`.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.9.0
	     * @category Lang
	     * @param {*} value The value to compare.
	     * @param {*} other The other value to compare.
	     * @returns {boolean} Returns `true` if `value` is less than or equal to
	     *  `other`, else `false`.
	     * @see _.gte
	     * @example
	     *
	     * _.lte(1, 3);
	     * // => true
	     *
	     * _.lte(3, 3);
	     * // => true
	     *
	     * _.lte(3, 1);
	     * // => false
	     */var lte=createRelationalOperation(function(value,other){return value<=other;});/**
	     * Converts `value` to an array.
	     *
	     * @static
	     * @since 0.1.0
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to convert.
	     * @returns {Array} Returns the converted array.
	     * @example
	     *
	     * _.toArray({ 'a': 1, 'b': 2 });
	     * // => [1, 2]
	     *
	     * _.toArray('abc');
	     * // => ['a', 'b', 'c']
	     *
	     * _.toArray(1);
	     * // => []
	     *
	     * _.toArray(null);
	     * // => []
	     */function toArray(value){if(!value){return[];}if(isArrayLike(value)){return isString(value)?stringToArray(value):copyArray(value);}if(symIterator&&value[symIterator]){return iteratorToArray(value[symIterator]());}var tag=getTag(value),func=tag==mapTag?mapToArray:tag==setTag?setToArray:values;return func(value);}/**
	     * Converts `value` to a finite number.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.12.0
	     * @category Lang
	     * @param {*} value The value to convert.
	     * @returns {number} Returns the converted number.
	     * @example
	     *
	     * _.toFinite(3.2);
	     * // => 3.2
	     *
	     * _.toFinite(Number.MIN_VALUE);
	     * // => 5e-324
	     *
	     * _.toFinite(Infinity);
	     * // => 1.7976931348623157e+308
	     *
	     * _.toFinite('3.2');
	     * // => 3.2
	     */function toFinite(value){if(!value){return value===0?value:0;}value=toNumber(value);if(value===INFINITY||value===-INFINITY){var sign=value<0?-1:1;return sign*MAX_INTEGER;}return value===value?value:0;}/**
	     * Converts `value` to an integer.
	     *
	     * **Note:** This method is loosely based on
	     * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Lang
	     * @param {*} value The value to convert.
	     * @returns {number} Returns the converted integer.
	     * @example
	     *
	     * _.toInteger(3.2);
	     * // => 3
	     *
	     * _.toInteger(Number.MIN_VALUE);
	     * // => 0
	     *
	     * _.toInteger(Infinity);
	     * // => 1.7976931348623157e+308
	     *
	     * _.toInteger('3.2');
	     * // => 3
	     */function toInteger(value){var result=toFinite(value),remainder=result%1;return result===result?remainder?result-remainder:result:0;}/**
	     * Converts `value` to an integer suitable for use as the length of an
	     * array-like object.
	     *
	     * **Note:** This method is based on
	     * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Lang
	     * @param {*} value The value to convert.
	     * @returns {number} Returns the converted integer.
	     * @example
	     *
	     * _.toLength(3.2);
	     * // => 3
	     *
	     * _.toLength(Number.MIN_VALUE);
	     * // => 0
	     *
	     * _.toLength(Infinity);
	     * // => 4294967295
	     *
	     * _.toLength('3.2');
	     * // => 3
	     */function toLength(value){return value?baseClamp(toInteger(value),0,MAX_ARRAY_LENGTH):0;}/**
	     * Converts `value` to a number.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Lang
	     * @param {*} value The value to process.
	     * @returns {number} Returns the number.
	     * @example
	     *
	     * _.toNumber(3.2);
	     * // => 3.2
	     *
	     * _.toNumber(Number.MIN_VALUE);
	     * // => 5e-324
	     *
	     * _.toNumber(Infinity);
	     * // => Infinity
	     *
	     * _.toNumber('3.2');
	     * // => 3.2
	     */function toNumber(value){if(typeof value=='number'){return value;}if(isSymbol(value)){return NAN;}if(isObject(value)){var other=typeof value.valueOf=='function'?value.valueOf():value;value=isObject(other)?other+'':other;}if(typeof value!='string'){return value===0?value:+value;}value=baseTrim(value);var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NAN:+value;}/**
	     * Converts `value` to a plain object flattening inherited enumerable string
	     * keyed properties of `value` to own properties of the plain object.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Lang
	     * @param {*} value The value to convert.
	     * @returns {Object} Returns the converted plain object.
	     * @example
	     *
	     * function Foo() {
	     *   this.b = 2;
	     * }
	     *
	     * Foo.prototype.c = 3;
	     *
	     * _.assign({ 'a': 1 }, new Foo);
	     * // => { 'a': 1, 'b': 2 }
	     *
	     * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
	     * // => { 'a': 1, 'b': 2, 'c': 3 }
	     */function toPlainObject(value){return copyObject(value,keysIn(value));}/**
	     * Converts `value` to a safe integer. A safe integer can be compared and
	     * represented correctly.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Lang
	     * @param {*} value The value to convert.
	     * @returns {number} Returns the converted integer.
	     * @example
	     *
	     * _.toSafeInteger(3.2);
	     * // => 3
	     *
	     * _.toSafeInteger(Number.MIN_VALUE);
	     * // => 0
	     *
	     * _.toSafeInteger(Infinity);
	     * // => 9007199254740991
	     *
	     * _.toSafeInteger('3.2');
	     * // => 3
	     */function toSafeInteger(value){return value?baseClamp(toInteger(value),-MAX_SAFE_INTEGER,MAX_SAFE_INTEGER):value===0?value:0;}/**
	     * Converts `value` to a string. An empty string is returned for `null`
	     * and `undefined` values. The sign of `-0` is preserved.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Lang
	     * @param {*} value The value to convert.
	     * @returns {string} Returns the converted string.
	     * @example
	     *
	     * _.toString(null);
	     * // => ''
	     *
	     * _.toString(-0);
	     * // => '-0'
	     *
	     * _.toString([1, 2, 3]);
	     * // => '1,2,3'
	     */function toString(value){return value==null?'':baseToString(value);}/*------------------------------------------------------------------------*//**
	     * Assigns own enumerable string keyed properties of source objects to the
	     * destination object. Source objects are applied from left to right.
	     * Subsequent sources overwrite property assignments of previous sources.
	     *
	     * **Note:** This method mutates `object` and is loosely based on
	     * [`Object.assign`](https://mdn.io/Object/assign).
	     *
	     * @static
	     * @memberOf _
	     * @since 0.10.0
	     * @category Object
	     * @param {Object} object The destination object.
	     * @param {...Object} [sources] The source objects.
	     * @returns {Object} Returns `object`.
	     * @see _.assignIn
	     * @example
	     *
	     * function Foo() {
	     *   this.a = 1;
	     * }
	     *
	     * function Bar() {
	     *   this.c = 3;
	     * }
	     *
	     * Foo.prototype.b = 2;
	     * Bar.prototype.d = 4;
	     *
	     * _.assign({ 'a': 0 }, new Foo, new Bar);
	     * // => { 'a': 1, 'c': 3 }
	     */var assign=createAssigner(function(object,source){if(isPrototype(source)||isArrayLike(source)){copyObject(source,keys(source),object);return;}for(var key in source){if(hasOwnProperty.call(source,key)){assignValue(object,key,source[key]);}}});/**
	     * This method is like `_.assign` except that it iterates over own and
	     * inherited source properties.
	     *
	     * **Note:** This method mutates `object`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @alias extend
	     * @category Object
	     * @param {Object} object The destination object.
	     * @param {...Object} [sources] The source objects.
	     * @returns {Object} Returns `object`.
	     * @see _.assign
	     * @example
	     *
	     * function Foo() {
	     *   this.a = 1;
	     * }
	     *
	     * function Bar() {
	     *   this.c = 3;
	     * }
	     *
	     * Foo.prototype.b = 2;
	     * Bar.prototype.d = 4;
	     *
	     * _.assignIn({ 'a': 0 }, new Foo, new Bar);
	     * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }
	     */var assignIn=createAssigner(function(object,source){copyObject(source,keysIn(source),object);});/**
	     * This method is like `_.assignIn` except that it accepts `customizer`
	     * which is invoked to produce the assigned values. If `customizer` returns
	     * `undefined`, assignment is handled by the method instead. The `customizer`
	     * is invoked with five arguments: (objValue, srcValue, key, object, source).
	     *
	     * **Note:** This method mutates `object`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @alias extendWith
	     * @category Object
	     * @param {Object} object The destination object.
	     * @param {...Object} sources The source objects.
	     * @param {Function} [customizer] The function to customize assigned values.
	     * @returns {Object} Returns `object`.
	     * @see _.assignWith
	     * @example
	     *
	     * function customizer(objValue, srcValue) {
	     *   return _.isUndefined(objValue) ? srcValue : objValue;
	     * }
	     *
	     * var defaults = _.partialRight(_.assignInWith, customizer);
	     *
	     * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
	     * // => { 'a': 1, 'b': 2 }
	     */var assignInWith=createAssigner(function(object,source,srcIndex,customizer){copyObject(source,keysIn(source),object,customizer);});/**
	     * This method is like `_.assign` except that it accepts `customizer`
	     * which is invoked to produce the assigned values. If `customizer` returns
	     * `undefined`, assignment is handled by the method instead. The `customizer`
	     * is invoked with five arguments: (objValue, srcValue, key, object, source).
	     *
	     * **Note:** This method mutates `object`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Object
	     * @param {Object} object The destination object.
	     * @param {...Object} sources The source objects.
	     * @param {Function} [customizer] The function to customize assigned values.
	     * @returns {Object} Returns `object`.
	     * @see _.assignInWith
	     * @example
	     *
	     * function customizer(objValue, srcValue) {
	     *   return _.isUndefined(objValue) ? srcValue : objValue;
	     * }
	     *
	     * var defaults = _.partialRight(_.assignWith, customizer);
	     *
	     * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
	     * // => { 'a': 1, 'b': 2 }
	     */var assignWith=createAssigner(function(object,source,srcIndex,customizer){copyObject(source,keys(source),object,customizer);});/**
	     * Creates an array of values corresponding to `paths` of `object`.
	     *
	     * @static
	     * @memberOf _
	     * @since 1.0.0
	     * @category Object
	     * @param {Object} object The object to iterate over.
	     * @param {...(string|string[])} [paths] The property paths to pick.
	     * @returns {Array} Returns the picked values.
	     * @example
	     *
	     * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
	     *
	     * _.at(object, ['a[0].b.c', 'a[1]']);
	     * // => [3, 4]
	     */var at=flatRest(baseAt);/**
	     * Creates an object that inherits from the `prototype` object. If a
	     * `properties` object is given, its own enumerable string keyed properties
	     * are assigned to the created object.
	     *
	     * @static
	     * @memberOf _
	     * @since 2.3.0
	     * @category Object
	     * @param {Object} prototype The object to inherit from.
	     * @param {Object} [properties] The properties to assign to the object.
	     * @returns {Object} Returns the new object.
	     * @example
	     *
	     * function Shape() {
	     *   this.x = 0;
	     *   this.y = 0;
	     * }
	     *
	     * function Circle() {
	     *   Shape.call(this);
	     * }
	     *
	     * Circle.prototype = _.create(Shape.prototype, {
	     *   'constructor': Circle
	     * });
	     *
	     * var circle = new Circle;
	     * circle instanceof Circle;
	     * // => true
	     *
	     * circle instanceof Shape;
	     * // => true
	     */function create(prototype,properties){var result=baseCreate(prototype);return properties==null?result:baseAssign(result,properties);}/**
	     * Assigns own and inherited enumerable string keyed properties of source
	     * objects to the destination object for all destination properties that
	     * resolve to `undefined`. Source objects are applied from left to right.
	     * Once a property is set, additional values of the same property are ignored.
	     *
	     * **Note:** This method mutates `object`.
	     *
	     * @static
	     * @since 0.1.0
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The destination object.
	     * @param {...Object} [sources] The source objects.
	     * @returns {Object} Returns `object`.
	     * @see _.defaultsDeep
	     * @example
	     *
	     * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
	     * // => { 'a': 1, 'b': 2 }
	     */var defaults=baseRest(function(object,sources){object=Object(object);var index=-1;var length=sources.length;var guard=length>2?sources[2]:undefined;if(guard&&isIterateeCall(sources[0],sources[1],guard)){length=1;}while(++index<length){var source=sources[index];var props=keysIn(source);var propsIndex=-1;var propsLength=props.length;while(++propsIndex<propsLength){var key=props[propsIndex];var value=object[key];if(value===undefined||eq(value,objectProto[key])&&!hasOwnProperty.call(object,key)){object[key]=source[key];}}}return object;});/**
	     * This method is like `_.defaults` except that it recursively assigns
	     * default properties.
	     *
	     * **Note:** This method mutates `object`.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.10.0
	     * @category Object
	     * @param {Object} object The destination object.
	     * @param {...Object} [sources] The source objects.
	     * @returns {Object} Returns `object`.
	     * @see _.defaults
	     * @example
	     *
	     * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
	     * // => { 'a': { 'b': 2, 'c': 3 } }
	     */var defaultsDeep=baseRest(function(args){args.push(undefined,customDefaultsMerge);return apply(mergeWith,undefined,args);});/**
	     * This method is like `_.find` except that it returns the key of the first
	     * element `predicate` returns truthy for instead of the element itself.
	     *
	     * @static
	     * @memberOf _
	     * @since 1.1.0
	     * @category Object
	     * @param {Object} object The object to inspect.
	     * @param {Function} [predicate=_.identity] The function invoked per iteration.
	     * @returns {string|undefined} Returns the key of the matched element,
	     *  else `undefined`.
	     * @example
	     *
	     * var users = {
	     *   'barney':  { 'age': 36, 'active': true },
	     *   'fred':    { 'age': 40, 'active': false },
	     *   'pebbles': { 'age': 1,  'active': true }
	     * };
	     *
	     * _.findKey(users, function(o) { return o.age < 40; });
	     * // => 'barney' (iteration order is not guaranteed)
	     *
	     * // The `_.matches` iteratee shorthand.
	     * _.findKey(users, { 'age': 1, 'active': true });
	     * // => 'pebbles'
	     *
	     * // The `_.matchesProperty` iteratee shorthand.
	     * _.findKey(users, ['active', false]);
	     * // => 'fred'
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.findKey(users, 'active');
	     * // => 'barney'
	     */function findKey(object,predicate){return baseFindKey(object,getIteratee(predicate,3),baseForOwn);}/**
	     * This method is like `_.findKey` except that it iterates over elements of
	     * a collection in the opposite order.
	     *
	     * @static
	     * @memberOf _
	     * @since 2.0.0
	     * @category Object
	     * @param {Object} object The object to inspect.
	     * @param {Function} [predicate=_.identity] The function invoked per iteration.
	     * @returns {string|undefined} Returns the key of the matched element,
	     *  else `undefined`.
	     * @example
	     *
	     * var users = {
	     *   'barney':  { 'age': 36, 'active': true },
	     *   'fred':    { 'age': 40, 'active': false },
	     *   'pebbles': { 'age': 1,  'active': true }
	     * };
	     *
	     * _.findLastKey(users, function(o) { return o.age < 40; });
	     * // => returns 'pebbles' assuming `_.findKey` returns 'barney'
	     *
	     * // The `_.matches` iteratee shorthand.
	     * _.findLastKey(users, { 'age': 36, 'active': true });
	     * // => 'barney'
	     *
	     * // The `_.matchesProperty` iteratee shorthand.
	     * _.findLastKey(users, ['active', false]);
	     * // => 'fred'
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.findLastKey(users, 'active');
	     * // => 'pebbles'
	     */function findLastKey(object,predicate){return baseFindKey(object,getIteratee(predicate,3),baseForOwnRight);}/**
	     * Iterates over own and inherited enumerable string keyed properties of an
	     * object and invokes `iteratee` for each property. The iteratee is invoked
	     * with three arguments: (value, key, object). Iteratee functions may exit
	     * iteration early by explicitly returning `false`.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.3.0
	     * @category Object
	     * @param {Object} object The object to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @returns {Object} Returns `object`.
	     * @see _.forInRight
	     * @example
	     *
	     * function Foo() {
	     *   this.a = 1;
	     *   this.b = 2;
	     * }
	     *
	     * Foo.prototype.c = 3;
	     *
	     * _.forIn(new Foo, function(value, key) {
	     *   console.log(key);
	     * });
	     * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
	     */function forIn(object,iteratee){return object==null?object:baseFor(object,getIteratee(iteratee,3),keysIn);}/**
	     * This method is like `_.forIn` except that it iterates over properties of
	     * `object` in the opposite order.
	     *
	     * @static
	     * @memberOf _
	     * @since 2.0.0
	     * @category Object
	     * @param {Object} object The object to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @returns {Object} Returns `object`.
	     * @see _.forIn
	     * @example
	     *
	     * function Foo() {
	     *   this.a = 1;
	     *   this.b = 2;
	     * }
	     *
	     * Foo.prototype.c = 3;
	     *
	     * _.forInRight(new Foo, function(value, key) {
	     *   console.log(key);
	     * });
	     * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
	     */function forInRight(object,iteratee){return object==null?object:baseForRight(object,getIteratee(iteratee,3),keysIn);}/**
	     * Iterates over own enumerable string keyed properties of an object and
	     * invokes `iteratee` for each property. The iteratee is invoked with three
	     * arguments: (value, key, object). Iteratee functions may exit iteration
	     * early by explicitly returning `false`.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.3.0
	     * @category Object
	     * @param {Object} object The object to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @returns {Object} Returns `object`.
	     * @see _.forOwnRight
	     * @example
	     *
	     * function Foo() {
	     *   this.a = 1;
	     *   this.b = 2;
	     * }
	     *
	     * Foo.prototype.c = 3;
	     *
	     * _.forOwn(new Foo, function(value, key) {
	     *   console.log(key);
	     * });
	     * // => Logs 'a' then 'b' (iteration order is not guaranteed).
	     */function forOwn(object,iteratee){return object&&baseForOwn(object,getIteratee(iteratee,3));}/**
	     * This method is like `_.forOwn` except that it iterates over properties of
	     * `object` in the opposite order.
	     *
	     * @static
	     * @memberOf _
	     * @since 2.0.0
	     * @category Object
	     * @param {Object} object The object to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @returns {Object} Returns `object`.
	     * @see _.forOwn
	     * @example
	     *
	     * function Foo() {
	     *   this.a = 1;
	     *   this.b = 2;
	     * }
	     *
	     * Foo.prototype.c = 3;
	     *
	     * _.forOwnRight(new Foo, function(value, key) {
	     *   console.log(key);
	     * });
	     * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
	     */function forOwnRight(object,iteratee){return object&&baseForOwnRight(object,getIteratee(iteratee,3));}/**
	     * Creates an array of function property names from own enumerable properties
	     * of `object`.
	     *
	     * @static
	     * @since 0.1.0
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The object to inspect.
	     * @returns {Array} Returns the function names.
	     * @see _.functionsIn
	     * @example
	     *
	     * function Foo() {
	     *   this.a = _.constant('a');
	     *   this.b = _.constant('b');
	     * }
	     *
	     * Foo.prototype.c = _.constant('c');
	     *
	     * _.functions(new Foo);
	     * // => ['a', 'b']
	     */function functions(object){return object==null?[]:baseFunctions(object,keys(object));}/**
	     * Creates an array of function property names from own and inherited
	     * enumerable properties of `object`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Object
	     * @param {Object} object The object to inspect.
	     * @returns {Array} Returns the function names.
	     * @see _.functions
	     * @example
	     *
	     * function Foo() {
	     *   this.a = _.constant('a');
	     *   this.b = _.constant('b');
	     * }
	     *
	     * Foo.prototype.c = _.constant('c');
	     *
	     * _.functionsIn(new Foo);
	     * // => ['a', 'b', 'c']
	     */function functionsIn(object){return object==null?[]:baseFunctions(object,keysIn(object));}/**
	     * Gets the value at `path` of `object`. If the resolved value is
	     * `undefined`, the `defaultValue` is returned in its place.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.7.0
	     * @category Object
	     * @param {Object} object The object to query.
	     * @param {Array|string} path The path of the property to get.
	     * @param {*} [defaultValue] The value returned for `undefined` resolved values.
	     * @returns {*} Returns the resolved value.
	     * @example
	     *
	     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
	     *
	     * _.get(object, 'a[0].b.c');
	     * // => 3
	     *
	     * _.get(object, ['a', '0', 'b', 'c']);
	     * // => 3
	     *
	     * _.get(object, 'a.b.c', 'default');
	     * // => 'default'
	     */function get(object,path,defaultValue){var result=object==null?undefined:baseGet(object,path);return result===undefined?defaultValue:result;}/**
	     * Checks if `path` is a direct property of `object`.
	     *
	     * @static
	     * @since 0.1.0
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The object to query.
	     * @param {Array|string} path The path to check.
	     * @returns {boolean} Returns `true` if `path` exists, else `false`.
	     * @example
	     *
	     * var object = { 'a': { 'b': 2 } };
	     * var other = _.create({ 'a': _.create({ 'b': 2 }) });
	     *
	     * _.has(object, 'a');
	     * // => true
	     *
	     * _.has(object, 'a.b');
	     * // => true
	     *
	     * _.has(object, ['a', 'b']);
	     * // => true
	     *
	     * _.has(other, 'a');
	     * // => false
	     */function has(object,path){return object!=null&&hasPath(object,path,baseHas);}/**
	     * Checks if `path` is a direct or inherited property of `object`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Object
	     * @param {Object} object The object to query.
	     * @param {Array|string} path The path to check.
	     * @returns {boolean} Returns `true` if `path` exists, else `false`.
	     * @example
	     *
	     * var object = _.create({ 'a': _.create({ 'b': 2 }) });
	     *
	     * _.hasIn(object, 'a');
	     * // => true
	     *
	     * _.hasIn(object, 'a.b');
	     * // => true
	     *
	     * _.hasIn(object, ['a', 'b']);
	     * // => true
	     *
	     * _.hasIn(object, 'b');
	     * // => false
	     */function hasIn(object,path){return object!=null&&hasPath(object,path,baseHasIn);}/**
	     * Creates an object composed of the inverted keys and values of `object`.
	     * If `object` contains duplicate values, subsequent values overwrite
	     * property assignments of previous values.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.7.0
	     * @category Object
	     * @param {Object} object The object to invert.
	     * @returns {Object} Returns the new inverted object.
	     * @example
	     *
	     * var object = { 'a': 1, 'b': 2, 'c': 1 };
	     *
	     * _.invert(object);
	     * // => { '1': 'c', '2': 'b' }
	     */var invert=createInverter(function(result,value,key){if(value!=null&&typeof value.toString!='function'){value=nativeObjectToString.call(value);}result[value]=key;},constant(identity));/**
	     * This method is like `_.invert` except that the inverted object is generated
	     * from the results of running each element of `object` thru `iteratee`. The
	     * corresponding inverted value of each inverted key is an array of keys
	     * responsible for generating the inverted value. The iteratee is invoked
	     * with one argument: (value).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.1.0
	     * @category Object
	     * @param {Object} object The object to invert.
	     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
	     * @returns {Object} Returns the new inverted object.
	     * @example
	     *
	     * var object = { 'a': 1, 'b': 2, 'c': 1 };
	     *
	     * _.invertBy(object);
	     * // => { '1': ['a', 'c'], '2': ['b'] }
	     *
	     * _.invertBy(object, function(value) {
	     *   return 'group' + value;
	     * });
	     * // => { 'group1': ['a', 'c'], 'group2': ['b'] }
	     */var invertBy=createInverter(function(result,value,key){if(value!=null&&typeof value.toString!='function'){value=nativeObjectToString.call(value);}if(hasOwnProperty.call(result,value)){result[value].push(key);}else{result[value]=[key];}},getIteratee);/**
	     * Invokes the method at `path` of `object`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Object
	     * @param {Object} object The object to query.
	     * @param {Array|string} path The path of the method to invoke.
	     * @param {...*} [args] The arguments to invoke the method with.
	     * @returns {*} Returns the result of the invoked method.
	     * @example
	     *
	     * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
	     *
	     * _.invoke(object, 'a[0].b.c.slice', 1, 3);
	     * // => [2, 3]
	     */var invoke=baseRest(baseInvoke);/**
	     * Creates an array of the own enumerable property names of `object`.
	     *
	     * **Note:** Non-object values are coerced to objects. See the
	     * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
	     * for more details.
	     *
	     * @static
	     * @since 0.1.0
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The object to query.
	     * @returns {Array} Returns the array of property names.
	     * @example
	     *
	     * function Foo() {
	     *   this.a = 1;
	     *   this.b = 2;
	     * }
	     *
	     * Foo.prototype.c = 3;
	     *
	     * _.keys(new Foo);
	     * // => ['a', 'b'] (iteration order is not guaranteed)
	     *
	     * _.keys('hi');
	     * // => ['0', '1']
	     */function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object);}/**
	     * Creates an array of the own and inherited enumerable property names of `object`.
	     *
	     * **Note:** Non-object values are coerced to objects.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Object
	     * @param {Object} object The object to query.
	     * @returns {Array} Returns the array of property names.
	     * @example
	     *
	     * function Foo() {
	     *   this.a = 1;
	     *   this.b = 2;
	     * }
	     *
	     * Foo.prototype.c = 3;
	     *
	     * _.keysIn(new Foo);
	     * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
	     */function keysIn(object){return isArrayLike(object)?arrayLikeKeys(object,true):baseKeysIn(object);}/**
	     * The opposite of `_.mapValues`; this method creates an object with the
	     * same values as `object` and keys generated by running each own enumerable
	     * string keyed property of `object` thru `iteratee`. The iteratee is invoked
	     * with three arguments: (value, key, object).
	     *
	     * @static
	     * @memberOf _
	     * @since 3.8.0
	     * @category Object
	     * @param {Object} object The object to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @returns {Object} Returns the new mapped object.
	     * @see _.mapValues
	     * @example
	     *
	     * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
	     *   return key + value;
	     * });
	     * // => { 'a1': 1, 'b2': 2 }
	     */function mapKeys(object,iteratee){var result={};iteratee=getIteratee(iteratee,3);baseForOwn(object,function(value,key,object){baseAssignValue(result,iteratee(value,key,object),value);});return result;}/**
	     * Creates an object with the same keys as `object` and values generated
	     * by running each own enumerable string keyed property of `object` thru
	     * `iteratee`. The iteratee is invoked with three arguments:
	     * (value, key, object).
	     *
	     * @static
	     * @memberOf _
	     * @since 2.4.0
	     * @category Object
	     * @param {Object} object The object to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @returns {Object} Returns the new mapped object.
	     * @see _.mapKeys
	     * @example
	     *
	     * var users = {
	     *   'fred':    { 'user': 'fred',    'age': 40 },
	     *   'pebbles': { 'user': 'pebbles', 'age': 1 }
	     * };
	     *
	     * _.mapValues(users, function(o) { return o.age; });
	     * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.mapValues(users, 'age');
	     * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
	     */function mapValues(object,iteratee){var result={};iteratee=getIteratee(iteratee,3);baseForOwn(object,function(value,key,object){baseAssignValue(result,key,iteratee(value,key,object));});return result;}/**
	     * This method is like `_.assign` except that it recursively merges own and
	     * inherited enumerable string keyed properties of source objects into the
	     * destination object. Source properties that resolve to `undefined` are
	     * skipped if a destination value exists. Array and plain object properties
	     * are merged recursively. Other objects and value types are overridden by
	     * assignment. Source objects are applied from left to right. Subsequent
	     * sources overwrite property assignments of previous sources.
	     *
	     * **Note:** This method mutates `object`.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.5.0
	     * @category Object
	     * @param {Object} object The destination object.
	     * @param {...Object} [sources] The source objects.
	     * @returns {Object} Returns `object`.
	     * @example
	     *
	     * var object = {
	     *   'a': [{ 'b': 2 }, { 'd': 4 }]
	     * };
	     *
	     * var other = {
	     *   'a': [{ 'c': 3 }, { 'e': 5 }]
	     * };
	     *
	     * _.merge(object, other);
	     * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
	     */var merge=createAssigner(function(object,source,srcIndex){baseMerge(object,source,srcIndex);});/**
	     * This method is like `_.merge` except that it accepts `customizer` which
	     * is invoked to produce the merged values of the destination and source
	     * properties. If `customizer` returns `undefined`, merging is handled by the
	     * method instead. The `customizer` is invoked with six arguments:
	     * (objValue, srcValue, key, object, source, stack).
	     *
	     * **Note:** This method mutates `object`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Object
	     * @param {Object} object The destination object.
	     * @param {...Object} sources The source objects.
	     * @param {Function} customizer The function to customize assigned values.
	     * @returns {Object} Returns `object`.
	     * @example
	     *
	     * function customizer(objValue, srcValue) {
	     *   if (_.isArray(objValue)) {
	     *     return objValue.concat(srcValue);
	     *   }
	     * }
	     *
	     * var object = { 'a': [1], 'b': [2] };
	     * var other = { 'a': [3], 'b': [4] };
	     *
	     * _.mergeWith(object, other, customizer);
	     * // => { 'a': [1, 3], 'b': [2, 4] }
	     */var mergeWith=createAssigner(function(object,source,srcIndex,customizer){baseMerge(object,source,srcIndex,customizer);});/**
	     * The opposite of `_.pick`; this method creates an object composed of the
	     * own and inherited enumerable property paths of `object` that are not omitted.
	     *
	     * **Note:** This method is considerably slower than `_.pick`.
	     *
	     * @static
	     * @since 0.1.0
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The source object.
	     * @param {...(string|string[])} [paths] The property paths to omit.
	     * @returns {Object} Returns the new object.
	     * @example
	     *
	     * var object = { 'a': 1, 'b': '2', 'c': 3 };
	     *
	     * _.omit(object, ['a', 'c']);
	     * // => { 'b': '2' }
	     */var omit=flatRest(function(object,paths){var result={};if(object==null){return result;}var isDeep=false;paths=arrayMap(paths,function(path){path=castPath(path,object);isDeep||(isDeep=path.length>1);return path;});copyObject(object,getAllKeysIn(object),result);if(isDeep){result=baseClone(result,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone);}var length=paths.length;while(length--){baseUnset(result,paths[length]);}return result;});/**
	     * The opposite of `_.pickBy`; this method creates an object composed of
	     * the own and inherited enumerable string keyed properties of `object` that
	     * `predicate` doesn't return truthy for. The predicate is invoked with two
	     * arguments: (value, key).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Object
	     * @param {Object} object The source object.
	     * @param {Function} [predicate=_.identity] The function invoked per property.
	     * @returns {Object} Returns the new object.
	     * @example
	     *
	     * var object = { 'a': 1, 'b': '2', 'c': 3 };
	     *
	     * _.omitBy(object, _.isNumber);
	     * // => { 'b': '2' }
	     */function omitBy(object,predicate){return pickBy(object,negate(getIteratee(predicate)));}/**
	     * Creates an object composed of the picked `object` properties.
	     *
	     * @static
	     * @since 0.1.0
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The source object.
	     * @param {...(string|string[])} [paths] The property paths to pick.
	     * @returns {Object} Returns the new object.
	     * @example
	     *
	     * var object = { 'a': 1, 'b': '2', 'c': 3 };
	     *
	     * _.pick(object, ['a', 'c']);
	     * // => { 'a': 1, 'c': 3 }
	     */var pick=flatRest(function(object,paths){return object==null?{}:basePick(object,paths);});/**
	     * Creates an object composed of the `object` properties `predicate` returns
	     * truthy for. The predicate is invoked with two arguments: (value, key).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Object
	     * @param {Object} object The source object.
	     * @param {Function} [predicate=_.identity] The function invoked per property.
	     * @returns {Object} Returns the new object.
	     * @example
	     *
	     * var object = { 'a': 1, 'b': '2', 'c': 3 };
	     *
	     * _.pickBy(object, _.isNumber);
	     * // => { 'a': 1, 'c': 3 }
	     */function pickBy(object,predicate){if(object==null){return{};}var props=arrayMap(getAllKeysIn(object),function(prop){return[prop];});predicate=getIteratee(predicate);return basePickBy(object,props,function(value,path){return predicate(value,path[0]);});}/**
	     * This method is like `_.get` except that if the resolved value is a
	     * function it's invoked with the `this` binding of its parent object and
	     * its result is returned.
	     *
	     * @static
	     * @since 0.1.0
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The object to query.
	     * @param {Array|string} path The path of the property to resolve.
	     * @param {*} [defaultValue] The value returned for `undefined` resolved values.
	     * @returns {*} Returns the resolved value.
	     * @example
	     *
	     * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
	     *
	     * _.result(object, 'a[0].b.c1');
	     * // => 3
	     *
	     * _.result(object, 'a[0].b.c2');
	     * // => 4
	     *
	     * _.result(object, 'a[0].b.c3', 'default');
	     * // => 'default'
	     *
	     * _.result(object, 'a[0].b.c3', _.constant('default'));
	     * // => 'default'
	     */function result(object,path,defaultValue){path=castPath(path,object);var index=-1,length=path.length;// Ensure the loop is entered when path is empty.
	if(!length){length=1;object=undefined;}while(++index<length){var value=object==null?undefined:object[toKey(path[index])];if(value===undefined){index=length;value=defaultValue;}object=isFunction(value)?value.call(object):value;}return object;}/**
	     * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
	     * it's created. Arrays are created for missing index properties while objects
	     * are created for all other missing properties. Use `_.setWith` to customize
	     * `path` creation.
	     *
	     * **Note:** This method mutates `object`.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.7.0
	     * @category Object
	     * @param {Object} object The object to modify.
	     * @param {Array|string} path The path of the property to set.
	     * @param {*} value The value to set.
	     * @returns {Object} Returns `object`.
	     * @example
	     *
	     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
	     *
	     * _.set(object, 'a[0].b.c', 4);
	     * console.log(object.a[0].b.c);
	     * // => 4
	     *
	     * _.set(object, ['x', '0', 'y', 'z'], 5);
	     * console.log(object.x[0].y.z);
	     * // => 5
	     */function set(object,path,value){return object==null?object:baseSet(object,path,value);}/**
	     * This method is like `_.set` except that it accepts `customizer` which is
	     * invoked to produce the objects of `path`.  If `customizer` returns `undefined`
	     * path creation is handled by the method instead. The `customizer` is invoked
	     * with three arguments: (nsValue, key, nsObject).
	     *
	     * **Note:** This method mutates `object`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Object
	     * @param {Object} object The object to modify.
	     * @param {Array|string} path The path of the property to set.
	     * @param {*} value The value to set.
	     * @param {Function} [customizer] The function to customize assigned values.
	     * @returns {Object} Returns `object`.
	     * @example
	     *
	     * var object = {};
	     *
	     * _.setWith(object, '[0][1]', 'a', Object);
	     * // => { '0': { '1': 'a' } }
	     */function setWith(object,path,value,customizer){customizer=typeof customizer=='function'?customizer:undefined;return object==null?object:baseSet(object,path,value,customizer);}/**
	     * Creates an array of own enumerable string keyed-value pairs for `object`
	     * which can be consumed by `_.fromPairs`. If `object` is a map or set, its
	     * entries are returned.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @alias entries
	     * @category Object
	     * @param {Object} object The object to query.
	     * @returns {Array} Returns the key-value pairs.
	     * @example
	     *
	     * function Foo() {
	     *   this.a = 1;
	     *   this.b = 2;
	     * }
	     *
	     * Foo.prototype.c = 3;
	     *
	     * _.toPairs(new Foo);
	     * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
	     */var toPairs=createToPairs(keys);/**
	     * Creates an array of own and inherited enumerable string keyed-value pairs
	     * for `object` which can be consumed by `_.fromPairs`. If `object` is a map
	     * or set, its entries are returned.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @alias entriesIn
	     * @category Object
	     * @param {Object} object The object to query.
	     * @returns {Array} Returns the key-value pairs.
	     * @example
	     *
	     * function Foo() {
	     *   this.a = 1;
	     *   this.b = 2;
	     * }
	     *
	     * Foo.prototype.c = 3;
	     *
	     * _.toPairsIn(new Foo);
	     * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)
	     */var toPairsIn=createToPairs(keysIn);/**
	     * An alternative to `_.reduce`; this method transforms `object` to a new
	     * `accumulator` object which is the result of running each of its own
	     * enumerable string keyed properties thru `iteratee`, with each invocation
	     * potentially mutating the `accumulator` object. If `accumulator` is not
	     * provided, a new object with the same `[[Prototype]]` will be used. The
	     * iteratee is invoked with four arguments: (accumulator, value, key, object).
	     * Iteratee functions may exit iteration early by explicitly returning `false`.
	     *
	     * @static
	     * @memberOf _
	     * @since 1.3.0
	     * @category Object
	     * @param {Object} object The object to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @param {*} [accumulator] The custom accumulator value.
	     * @returns {*} Returns the accumulated value.
	     * @example
	     *
	     * _.transform([2, 3, 4], function(result, n) {
	     *   result.push(n *= n);
	     *   return n % 2 == 0;
	     * }, []);
	     * // => [4, 9]
	     *
	     * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
	     *   (result[value] || (result[value] = [])).push(key);
	     * }, {});
	     * // => { '1': ['a', 'c'], '2': ['b'] }
	     */function transform(object,iteratee,accumulator){var isArr=isArray(object),isArrLike=isArr||isBuffer(object)||isTypedArray(object);iteratee=getIteratee(iteratee,4);if(accumulator==null){var Ctor=object&&object.constructor;if(isArrLike){accumulator=isArr?new Ctor():[];}else if(isObject(object)){accumulator=isFunction(Ctor)?baseCreate(getPrototype(object)):{};}else{accumulator={};}}(isArrLike?arrayEach:baseForOwn)(object,function(value,index,object){return iteratee(accumulator,value,index,object);});return accumulator;}/**
	     * Removes the property at `path` of `object`.
	     *
	     * **Note:** This method mutates `object`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Object
	     * @param {Object} object The object to modify.
	     * @param {Array|string} path The path of the property to unset.
	     * @returns {boolean} Returns `true` if the property is deleted, else `false`.
	     * @example
	     *
	     * var object = { 'a': [{ 'b': { 'c': 7 } }] };
	     * _.unset(object, 'a[0].b.c');
	     * // => true
	     *
	     * console.log(object);
	     * // => { 'a': [{ 'b': {} }] };
	     *
	     * _.unset(object, ['a', '0', 'b', 'c']);
	     * // => true
	     *
	     * console.log(object);
	     * // => { 'a': [{ 'b': {} }] };
	     */function unset(object,path){return object==null?true:baseUnset(object,path);}/**
	     * This method is like `_.set` except that accepts `updater` to produce the
	     * value to set. Use `_.updateWith` to customize `path` creation. The `updater`
	     * is invoked with one argument: (value).
	     *
	     * **Note:** This method mutates `object`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.6.0
	     * @category Object
	     * @param {Object} object The object to modify.
	     * @param {Array|string} path The path of the property to set.
	     * @param {Function} updater The function to produce the updated value.
	     * @returns {Object} Returns `object`.
	     * @example
	     *
	     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
	     *
	     * _.update(object, 'a[0].b.c', function(n) { return n * n; });
	     * console.log(object.a[0].b.c);
	     * // => 9
	     *
	     * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
	     * console.log(object.x[0].y.z);
	     * // => 0
	     */function update(object,path,updater){return object==null?object:baseUpdate(object,path,castFunction(updater));}/**
	     * This method is like `_.update` except that it accepts `customizer` which is
	     * invoked to produce the objects of `path`.  If `customizer` returns `undefined`
	     * path creation is handled by the method instead. The `customizer` is invoked
	     * with three arguments: (nsValue, key, nsObject).
	     *
	     * **Note:** This method mutates `object`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.6.0
	     * @category Object
	     * @param {Object} object The object to modify.
	     * @param {Array|string} path The path of the property to set.
	     * @param {Function} updater The function to produce the updated value.
	     * @param {Function} [customizer] The function to customize assigned values.
	     * @returns {Object} Returns `object`.
	     * @example
	     *
	     * var object = {};
	     *
	     * _.updateWith(object, '[0][1]', _.constant('a'), Object);
	     * // => { '0': { '1': 'a' } }
	     */function updateWith(object,path,updater,customizer){customizer=typeof customizer=='function'?customizer:undefined;return object==null?object:baseUpdate(object,path,castFunction(updater),customizer);}/**
	     * Creates an array of the own enumerable string keyed property values of `object`.
	     *
	     * **Note:** Non-object values are coerced to objects.
	     *
	     * @static
	     * @since 0.1.0
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The object to query.
	     * @returns {Array} Returns the array of property values.
	     * @example
	     *
	     * function Foo() {
	     *   this.a = 1;
	     *   this.b = 2;
	     * }
	     *
	     * Foo.prototype.c = 3;
	     *
	     * _.values(new Foo);
	     * // => [1, 2] (iteration order is not guaranteed)
	     *
	     * _.values('hi');
	     * // => ['h', 'i']
	     */function values(object){return object==null?[]:baseValues(object,keys(object));}/**
	     * Creates an array of the own and inherited enumerable string keyed property
	     * values of `object`.
	     *
	     * **Note:** Non-object values are coerced to objects.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Object
	     * @param {Object} object The object to query.
	     * @returns {Array} Returns the array of property values.
	     * @example
	     *
	     * function Foo() {
	     *   this.a = 1;
	     *   this.b = 2;
	     * }
	     *
	     * Foo.prototype.c = 3;
	     *
	     * _.valuesIn(new Foo);
	     * // => [1, 2, 3] (iteration order is not guaranteed)
	     */function valuesIn(object){return object==null?[]:baseValues(object,keysIn(object));}/*------------------------------------------------------------------------*//**
	     * Clamps `number` within the inclusive `lower` and `upper` bounds.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Number
	     * @param {number} number The number to clamp.
	     * @param {number} [lower] The lower bound.
	     * @param {number} upper The upper bound.
	     * @returns {number} Returns the clamped number.
	     * @example
	     *
	     * _.clamp(-10, -5, 5);
	     * // => -5
	     *
	     * _.clamp(10, -5, 5);
	     * // => 5
	     */function clamp(number,lower,upper){if(upper===undefined){upper=lower;lower=undefined;}if(upper!==undefined){upper=toNumber(upper);upper=upper===upper?upper:0;}if(lower!==undefined){lower=toNumber(lower);lower=lower===lower?lower:0;}return baseClamp(toNumber(number),lower,upper);}/**
	     * Checks if `n` is between `start` and up to, but not including, `end`. If
	     * `end` is not specified, it's set to `start` with `start` then set to `0`.
	     * If `start` is greater than `end` the params are swapped to support
	     * negative ranges.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.3.0
	     * @category Number
	     * @param {number} number The number to check.
	     * @param {number} [start=0] The start of the range.
	     * @param {number} end The end of the range.
	     * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
	     * @see _.range, _.rangeRight
	     * @example
	     *
	     * _.inRange(3, 2, 4);
	     * // => true
	     *
	     * _.inRange(4, 8);
	     * // => true
	     *
	     * _.inRange(4, 2);
	     * // => false
	     *
	     * _.inRange(2, 2);
	     * // => false
	     *
	     * _.inRange(1.2, 2);
	     * // => true
	     *
	     * _.inRange(5.2, 4);
	     * // => false
	     *
	     * _.inRange(-3, -2, -6);
	     * // => true
	     */function inRange(number,start,end){start=toFinite(start);if(end===undefined){end=start;start=0;}else{end=toFinite(end);}number=toNumber(number);return baseInRange(number,start,end);}/**
	     * Produces a random number between the inclusive `lower` and `upper` bounds.
	     * If only one argument is provided a number between `0` and the given number
	     * is returned. If `floating` is `true`, or either `lower` or `upper` are
	     * floats, a floating-point number is returned instead of an integer.
	     *
	     * **Note:** JavaScript follows the IEEE-754 standard for resolving
	     * floating-point values which can produce unexpected results.
	     *
	     * @static
	     * @memberOf _
	     * @since 0.7.0
	     * @category Number
	     * @param {number} [lower=0] The lower bound.
	     * @param {number} [upper=1] The upper bound.
	     * @param {boolean} [floating] Specify returning a floating-point number.
	     * @returns {number} Returns the random number.
	     * @example
	     *
	     * _.random(0, 5);
	     * // => an integer between 0 and 5
	     *
	     * _.random(5);
	     * // => also an integer between 0 and 5
	     *
	     * _.random(5, true);
	     * // => a floating-point number between 0 and 5
	     *
	     * _.random(1.2, 5.2);
	     * // => a floating-point number between 1.2 and 5.2
	     */function random(lower,upper,floating){if(floating&&typeof floating!='boolean'&&isIterateeCall(lower,upper,floating)){upper=floating=undefined;}if(floating===undefined){if(typeof upper=='boolean'){floating=upper;upper=undefined;}else if(typeof lower=='boolean'){floating=lower;lower=undefined;}}if(lower===undefined&&upper===undefined){lower=0;upper=1;}else{lower=toFinite(lower);if(upper===undefined){upper=lower;lower=0;}else{upper=toFinite(upper);}}if(lower>upper){var temp=lower;lower=upper;upper=temp;}if(floating||lower%1||upper%1){var rand=nativeRandom();return nativeMin(lower+rand*(upper-lower+freeParseFloat('1e-'+((rand+'').length-1))),upper);}return baseRandom(lower,upper);}/*------------------------------------------------------------------------*//**
	     * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category String
	     * @param {string} [string=''] The string to convert.
	     * @returns {string} Returns the camel cased string.
	     * @example
	     *
	     * _.camelCase('Foo Bar');
	     * // => 'fooBar'
	     *
	     * _.camelCase('--foo-bar--');
	     * // => 'fooBar'
	     *
	     * _.camelCase('__FOO_BAR__');
	     * // => 'fooBar'
	     */var camelCase=createCompounder(function(result,word,index){word=word.toLowerCase();return result+(index?capitalize(word):word);});/**
	     * Converts the first character of `string` to upper case and the remaining
	     * to lower case.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category String
	     * @param {string} [string=''] The string to capitalize.
	     * @returns {string} Returns the capitalized string.
	     * @example
	     *
	     * _.capitalize('FRED');
	     * // => 'Fred'
	     */function capitalize(string){return upperFirst(toString(string).toLowerCase());}/**
	     * Deburrs `string` by converting
	     * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
	     * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
	     * letters to basic Latin letters and removing
	     * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category String
	     * @param {string} [string=''] The string to deburr.
	     * @returns {string} Returns the deburred string.
	     * @example
	     *
	     * _.deburr('déjà vu');
	     * // => 'deja vu'
	     */function deburr(string){string=toString(string);return string&&string.replace(reLatin,deburrLetter).replace(reComboMark,'');}/**
	     * Checks if `string` ends with the given target string.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category String
	     * @param {string} [string=''] The string to inspect.
	     * @param {string} [target] The string to search for.
	     * @param {number} [position=string.length] The position to search up to.
	     * @returns {boolean} Returns `true` if `string` ends with `target`,
	     *  else `false`.
	     * @example
	     *
	     * _.endsWith('abc', 'c');
	     * // => true
	     *
	     * _.endsWith('abc', 'b');
	     * // => false
	     *
	     * _.endsWith('abc', 'b', 2);
	     * // => true
	     */function endsWith(string,target,position){string=toString(string);target=baseToString(target);var length=string.length;position=position===undefined?length:baseClamp(toInteger(position),0,length);var end=position;position-=target.length;return position>=0&&string.slice(position,end)==target;}/**
	     * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
	     * corresponding HTML entities.
	     *
	     * **Note:** No other characters are escaped. To escape additional
	     * characters use a third-party library like [_he_](https://mths.be/he).
	     *
	     * Though the ">" character is escaped for symmetry, characters like
	     * ">" and "/" don't need escaping in HTML and have no special meaning
	     * unless they're part of a tag or unquoted attribute value. See
	     * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
	     * (under "semi-related fun fact") for more details.
	     *
	     * When working with HTML you should always
	     * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
	     * XSS vectors.
	     *
	     * @static
	     * @since 0.1.0
	     * @memberOf _
	     * @category String
	     * @param {string} [string=''] The string to escape.
	     * @returns {string} Returns the escaped string.
	     * @example
	     *
	     * _.escape('fred, barney, & pebbles');
	     * // => 'fred, barney, &amp; pebbles'
	     */function escape(string){string=toString(string);return string&&reHasUnescapedHtml.test(string)?string.replace(reUnescapedHtml,escapeHtmlChar):string;}/**
	     * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
	     * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category String
	     * @param {string} [string=''] The string to escape.
	     * @returns {string} Returns the escaped string.
	     * @example
	     *
	     * _.escapeRegExp('[lodash](https://lodash.com/)');
	     * // => '\[lodash\]\(https://lodash\.com/\)'
	     */function escapeRegExp(string){string=toString(string);return string&&reHasRegExpChar.test(string)?string.replace(reRegExpChar,'\\$&'):string;}/**
	     * Converts `string` to
	     * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category String
	     * @param {string} [string=''] The string to convert.
	     * @returns {string} Returns the kebab cased string.
	     * @example
	     *
	     * _.kebabCase('Foo Bar');
	     * // => 'foo-bar'
	     *
	     * _.kebabCase('fooBar');
	     * // => 'foo-bar'
	     *
	     * _.kebabCase('__FOO_BAR__');
	     * // => 'foo-bar'
	     */var kebabCase=createCompounder(function(result,word,index){return result+(index?'-':'')+word.toLowerCase();});/**
	     * Converts `string`, as space separated words, to lower case.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category String
	     * @param {string} [string=''] The string to convert.
	     * @returns {string} Returns the lower cased string.
	     * @example
	     *
	     * _.lowerCase('--Foo-Bar--');
	     * // => 'foo bar'
	     *
	     * _.lowerCase('fooBar');
	     * // => 'foo bar'
	     *
	     * _.lowerCase('__FOO_BAR__');
	     * // => 'foo bar'
	     */var lowerCase=createCompounder(function(result,word,index){return result+(index?' ':'')+word.toLowerCase();});/**
	     * Converts the first character of `string` to lower case.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category String
	     * @param {string} [string=''] The string to convert.
	     * @returns {string} Returns the converted string.
	     * @example
	     *
	     * _.lowerFirst('Fred');
	     * // => 'fred'
	     *
	     * _.lowerFirst('FRED');
	     * // => 'fRED'
	     */var lowerFirst=createCaseFirst('toLowerCase');/**
	     * Pads `string` on the left and right sides if it's shorter than `length`.
	     * Padding characters are truncated if they can't be evenly divided by `length`.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category String
	     * @param {string} [string=''] The string to pad.
	     * @param {number} [length=0] The padding length.
	     * @param {string} [chars=' '] The string used as padding.
	     * @returns {string} Returns the padded string.
	     * @example
	     *
	     * _.pad('abc', 8);
	     * // => '  abc   '
	     *
	     * _.pad('abc', 8, '_-');
	     * // => '_-abc_-_'
	     *
	     * _.pad('abc', 3);
	     * // => 'abc'
	     */function pad(string,length,chars){string=toString(string);length=toInteger(length);var strLength=length?stringSize(string):0;if(!length||strLength>=length){return string;}var mid=(length-strLength)/2;return createPadding(nativeFloor(mid),chars)+string+createPadding(nativeCeil(mid),chars);}/**
	     * Pads `string` on the right side if it's shorter than `length`. Padding
	     * characters are truncated if they exceed `length`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category String
	     * @param {string} [string=''] The string to pad.
	     * @param {number} [length=0] The padding length.
	     * @param {string} [chars=' '] The string used as padding.
	     * @returns {string} Returns the padded string.
	     * @example
	     *
	     * _.padEnd('abc', 6);
	     * // => 'abc   '
	     *
	     * _.padEnd('abc', 6, '_-');
	     * // => 'abc_-_'
	     *
	     * _.padEnd('abc', 3);
	     * // => 'abc'
	     */function padEnd(string,length,chars){string=toString(string);length=toInteger(length);var strLength=length?stringSize(string):0;return length&&strLength<length?string+createPadding(length-strLength,chars):string;}/**
	     * Pads `string` on the left side if it's shorter than `length`. Padding
	     * characters are truncated if they exceed `length`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category String
	     * @param {string} [string=''] The string to pad.
	     * @param {number} [length=0] The padding length.
	     * @param {string} [chars=' '] The string used as padding.
	     * @returns {string} Returns the padded string.
	     * @example
	     *
	     * _.padStart('abc', 6);
	     * // => '   abc'
	     *
	     * _.padStart('abc', 6, '_-');
	     * // => '_-_abc'
	     *
	     * _.padStart('abc', 3);
	     * // => 'abc'
	     */function padStart(string,length,chars){string=toString(string);length=toInteger(length);var strLength=length?stringSize(string):0;return length&&strLength<length?createPadding(length-strLength,chars)+string:string;}/**
	     * Converts `string` to an integer of the specified radix. If `radix` is
	     * `undefined` or `0`, a `radix` of `10` is used unless `value` is a
	     * hexadecimal, in which case a `radix` of `16` is used.
	     *
	     * **Note:** This method aligns with the
	     * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
	     *
	     * @static
	     * @memberOf _
	     * @since 1.1.0
	     * @category String
	     * @param {string} string The string to convert.
	     * @param {number} [radix=10] The radix to interpret `value` by.
	     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
	     * @returns {number} Returns the converted integer.
	     * @example
	     *
	     * _.parseInt('08');
	     * // => 8
	     *
	     * _.map(['6', '08', '10'], _.parseInt);
	     * // => [6, 8, 10]
	     */function parseInt(string,radix,guard){if(guard||radix==null){radix=0;}else if(radix){radix=+radix;}return nativeParseInt(toString(string).replace(reTrimStart,''),radix||0);}/**
	     * Repeats the given string `n` times.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category String
	     * @param {string} [string=''] The string to repeat.
	     * @param {number} [n=1] The number of times to repeat the string.
	     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
	     * @returns {string} Returns the repeated string.
	     * @example
	     *
	     * _.repeat('*', 3);
	     * // => '***'
	     *
	     * _.repeat('abc', 2);
	     * // => 'abcabc'
	     *
	     * _.repeat('abc', 0);
	     * // => ''
	     */function repeat(string,n,guard){if(guard?isIterateeCall(string,n,guard):n===undefined){n=1;}else{n=toInteger(n);}return baseRepeat(toString(string),n);}/**
	     * Replaces matches for `pattern` in `string` with `replacement`.
	     *
	     * **Note:** This method is based on
	     * [`String#replace`](https://mdn.io/String/replace).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category String
	     * @param {string} [string=''] The string to modify.
	     * @param {RegExp|string} pattern The pattern to replace.
	     * @param {Function|string} replacement The match replacement.
	     * @returns {string} Returns the modified string.
	     * @example
	     *
	     * _.replace('Hi Fred', 'Fred', 'Barney');
	     * // => 'Hi Barney'
	     */function replace(){var args=arguments,string=toString(args[0]);return args.length<3?string:string.replace(args[1],args[2]);}/**
	     * Converts `string` to
	     * [snake case](https://en.wikipedia.org/wiki/Snake_case).
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category String
	     * @param {string} [string=''] The string to convert.
	     * @returns {string} Returns the snake cased string.
	     * @example
	     *
	     * _.snakeCase('Foo Bar');
	     * // => 'foo_bar'
	     *
	     * _.snakeCase('fooBar');
	     * // => 'foo_bar'
	     *
	     * _.snakeCase('--FOO-BAR--');
	     * // => 'foo_bar'
	     */var snakeCase=createCompounder(function(result,word,index){return result+(index?'_':'')+word.toLowerCase();});/**
	     * Splits `string` by `separator`.
	     *
	     * **Note:** This method is based on
	     * [`String#split`](https://mdn.io/String/split).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category String
	     * @param {string} [string=''] The string to split.
	     * @param {RegExp|string} separator The separator pattern to split by.
	     * @param {number} [limit] The length to truncate results to.
	     * @returns {Array} Returns the string segments.
	     * @example
	     *
	     * _.split('a-b-c', '-', 2);
	     * // => ['a', 'b']
	     */function split(string,separator,limit){if(limit&&typeof limit!='number'&&isIterateeCall(string,separator,limit)){separator=limit=undefined;}limit=limit===undefined?MAX_ARRAY_LENGTH:limit>>>0;if(!limit){return[];}string=toString(string);if(string&&(typeof separator=='string'||separator!=null&&!isRegExp(separator))){separator=baseToString(separator);if(!separator&&hasUnicode(string)){return castSlice(stringToArray(string),0,limit);}}return string.split(separator,limit);}/**
	     * Converts `string` to
	     * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
	     *
	     * @static
	     * @memberOf _
	     * @since 3.1.0
	     * @category String
	     * @param {string} [string=''] The string to convert.
	     * @returns {string} Returns the start cased string.
	     * @example
	     *
	     * _.startCase('--foo-bar--');
	     * // => 'Foo Bar'
	     *
	     * _.startCase('fooBar');
	     * // => 'Foo Bar'
	     *
	     * _.startCase('__FOO_BAR__');
	     * // => 'FOO BAR'
	     */var startCase=createCompounder(function(result,word,index){return result+(index?' ':'')+upperFirst(word);});/**
	     * Checks if `string` starts with the given target string.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category String
	     * @param {string} [string=''] The string to inspect.
	     * @param {string} [target] The string to search for.
	     * @param {number} [position=0] The position to search from.
	     * @returns {boolean} Returns `true` if `string` starts with `target`,
	     *  else `false`.
	     * @example
	     *
	     * _.startsWith('abc', 'a');
	     * // => true
	     *
	     * _.startsWith('abc', 'b');
	     * // => false
	     *
	     * _.startsWith('abc', 'b', 1);
	     * // => true
	     */function startsWith(string,target,position){string=toString(string);position=position==null?0:baseClamp(toInteger(position),0,string.length);target=baseToString(target);return string.slice(position,position+target.length)==target;}/**
	     * Creates a compiled template function that can interpolate data properties
	     * in "interpolate" delimiters, HTML-escape interpolated data properties in
	     * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
	     * properties may be accessed as free variables in the template. If a setting
	     * object is given, it takes precedence over `_.templateSettings` values.
	     *
	     * **Note:** In the development build `_.template` utilizes
	     * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
	     * for easier debugging.
	     *
	     * For more information on precompiling templates see
	     * [lodash's custom builds documentation](https://lodash.com/custom-builds).
	     *
	     * For more information on Chrome extension sandboxes see
	     * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
	     *
	     * @static
	     * @since 0.1.0
	     * @memberOf _
	     * @category String
	     * @param {string} [string=''] The template string.
	     * @param {Object} [options={}] The options object.
	     * @param {RegExp} [options.escape=_.templateSettings.escape]
	     *  The HTML "escape" delimiter.
	     * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
	     *  The "evaluate" delimiter.
	     * @param {Object} [options.imports=_.templateSettings.imports]
	     *  An object to import into the template as free variables.
	     * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
	     *  The "interpolate" delimiter.
	     * @param {string} [options.sourceURL='lodash.templateSources[n]']
	     *  The sourceURL of the compiled template.
	     * @param {string} [options.variable='obj']
	     *  The data object variable name.
	     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
	     * @returns {Function} Returns the compiled template function.
	     * @example
	     *
	     * // Use the "interpolate" delimiter to create a compiled template.
	     * var compiled = _.template('hello <%= user %>!');
	     * compiled({ 'user': 'fred' });
	     * // => 'hello fred!'
	     *
	     * // Use the HTML "escape" delimiter to escape data property values.
	     * var compiled = _.template('<b><%- value %></b>');
	     * compiled({ 'value': '<script>' });
	     * // => '<b>&lt;script&gt;</b>'
	     *
	     * // Use the "evaluate" delimiter to execute JavaScript and generate HTML.
	     * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
	     * compiled({ 'users': ['fred', 'barney'] });
	     * // => '<li>fred</li><li>barney</li>'
	     *
	     * // Use the internal `print` function in "evaluate" delimiters.
	     * var compiled = _.template('<% print("hello " + user); %>!');
	     * compiled({ 'user': 'barney' });
	     * // => 'hello barney!'
	     *
	     * // Use the ES template literal delimiter as an "interpolate" delimiter.
	     * // Disable support by replacing the "interpolate" delimiter.
	     * var compiled = _.template('hello ${ user }!');
	     * compiled({ 'user': 'pebbles' });
	     * // => 'hello pebbles!'
	     *
	     * // Use backslashes to treat delimiters as plain text.
	     * var compiled = _.template('<%= "\\<%- value %\\>" %>');
	     * compiled({ 'value': 'ignored' });
	     * // => '<%- value %>'
	     *
	     * // Use the `imports` option to import `jQuery` as `jq`.
	     * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
	     * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
	     * compiled({ 'users': ['fred', 'barney'] });
	     * // => '<li>fred</li><li>barney</li>'
	     *
	     * // Use the `sourceURL` option to specify a custom sourceURL for the template.
	     * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
	     * compiled(data);
	     * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
	     *
	     * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
	     * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
	     * compiled.source;
	     * // => function(data) {
	     * //   var __t, __p = '';
	     * //   __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
	     * //   return __p;
	     * // }
	     *
	     * // Use custom template delimiters.
	     * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
	     * var compiled = _.template('hello {{ user }}!');
	     * compiled({ 'user': 'mustache' });
	     * // => 'hello mustache!'
	     *
	     * // Use the `source` property to inline compiled templates for meaningful
	     * // line numbers in error messages and stack traces.
	     * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
	     *   var JST = {\
	     *     "main": ' + _.template(mainText).source + '\
	     *   };\
	     * ');
	     */function template(string,options,guard){// Based on John Resig's `tmpl` implementation
	// (http://ejohn.org/blog/javascript-micro-templating/)
	// and Laura Doktorova's doT.js (https://github.com/olado/doT).
	var settings=lodash.templateSettings;if(guard&&isIterateeCall(string,options,guard)){options=undefined;}string=toString(string);options=assignInWith({},options,settings,customDefaultsAssignIn);var imports=assignInWith({},options.imports,settings.imports,customDefaultsAssignIn),importsKeys=keys(imports),importsValues=baseValues(imports,importsKeys);var isEscaping,isEvaluating,index=0,interpolate=options.interpolate||reNoMatch,source="__p += '";// Compile the regexp to match each delimiter.
	var reDelimiters=RegExp((options.escape||reNoMatch).source+'|'+interpolate.source+'|'+(interpolate===reInterpolate?reEsTemplate:reNoMatch).source+'|'+(options.evaluate||reNoMatch).source+'|$','g');// Use a sourceURL for easier debugging.
	// The sourceURL gets injected into the source that's eval-ed, so be careful
	// to normalize all kinds of whitespace, so e.g. newlines (and unicode versions of it) can't sneak in
	// and escape the comment, thus injecting code that gets evaled.
	var sourceURL='//# sourceURL='+(hasOwnProperty.call(options,'sourceURL')?(options.sourceURL+'').replace(/\s/g,' '):'lodash.templateSources['+ ++templateCounter+']')+'\n';string.replace(reDelimiters,function(match,escapeValue,interpolateValue,esTemplateValue,evaluateValue,offset){interpolateValue||(interpolateValue=esTemplateValue);// Escape characters that can't be included in string literals.
	source+=string.slice(index,offset).replace(reUnescapedString,escapeStringChar);// Replace delimiters with snippets.
	if(escapeValue){isEscaping=true;source+="' +\n__e("+escapeValue+") +\n'";}if(evaluateValue){isEvaluating=true;source+="';\n"+evaluateValue+";\n__p += '";}if(interpolateValue){source+="' +\n((__t = ("+interpolateValue+")) == null ? '' : __t) +\n'";}index=offset+match.length;// The JS engine embedded in Adobe products needs `match` returned in
	// order to produce the correct `offset` value.
	return match;});source+="';\n";// If `variable` is not specified wrap a with-statement around the generated
	// code to add the data object to the top of the scope chain.
	var variable=hasOwnProperty.call(options,'variable')&&options.variable;if(!variable){source='with (obj) {\n'+source+'\n}\n';}// Throw an error if a forbidden character was found in `variable`, to prevent
	// potential command injection attacks.
	else if(reForbiddenIdentifierChars.test(variable)){throw new Error(INVALID_TEMPL_VAR_ERROR_TEXT);}// Cleanup code by stripping empty strings.
	source=(isEvaluating?source.replace(reEmptyStringLeading,''):source).replace(reEmptyStringMiddle,'$1').replace(reEmptyStringTrailing,'$1;');// Frame code as the function body.
	source='function('+(variable||'obj')+') {\n'+(variable?'':'obj || (obj = {});\n')+"var __t, __p = ''"+(isEscaping?', __e = _.escape':'')+(isEvaluating?', __j = Array.prototype.join;\n'+"function print() { __p += __j.call(arguments, '') }\n":';\n')+source+'return __p\n}';var result=attempt(function(){return Function(importsKeys,sourceURL+'return '+source).apply(undefined,importsValues);});// Provide the compiled function's source by its `toString` method or
	// the `source` property as a convenience for inlining compiled templates.
	result.source=source;if(isError(result)){throw result;}return result;}/**
	     * Converts `string`, as a whole, to lower case just like
	     * [String#toLowerCase](https://mdn.io/toLowerCase).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category String
	     * @param {string} [string=''] The string to convert.
	     * @returns {string} Returns the lower cased string.
	     * @example
	     *
	     * _.toLower('--Foo-Bar--');
	     * // => '--foo-bar--'
	     *
	     * _.toLower('fooBar');
	     * // => 'foobar'
	     *
	     * _.toLower('__FOO_BAR__');
	     * // => '__foo_bar__'
	     */function toLower(value){return toString(value).toLowerCase();}/**
	     * Converts `string`, as a whole, to upper case just like
	     * [String#toUpperCase](https://mdn.io/toUpperCase).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category String
	     * @param {string} [string=''] The string to convert.
	     * @returns {string} Returns the upper cased string.
	     * @example
	     *
	     * _.toUpper('--foo-bar--');
	     * // => '--FOO-BAR--'
	     *
	     * _.toUpper('fooBar');
	     * // => 'FOOBAR'
	     *
	     * _.toUpper('__foo_bar__');
	     * // => '__FOO_BAR__'
	     */function toUpper(value){return toString(value).toUpperCase();}/**
	     * Removes leading and trailing whitespace or specified characters from `string`.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category String
	     * @param {string} [string=''] The string to trim.
	     * @param {string} [chars=whitespace] The characters to trim.
	     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
	     * @returns {string} Returns the trimmed string.
	     * @example
	     *
	     * _.trim('  abc  ');
	     * // => 'abc'
	     *
	     * _.trim('-_-abc-_-', '_-');
	     * // => 'abc'
	     *
	     * _.map(['  foo  ', '  bar  '], _.trim);
	     * // => ['foo', 'bar']
	     */function trim(string,chars,guard){string=toString(string);if(string&&(guard||chars===undefined)){return baseTrim(string);}if(!string||!(chars=baseToString(chars))){return string;}var strSymbols=stringToArray(string),chrSymbols=stringToArray(chars),start=charsStartIndex(strSymbols,chrSymbols),end=charsEndIndex(strSymbols,chrSymbols)+1;return castSlice(strSymbols,start,end).join('');}/**
	     * Removes trailing whitespace or specified characters from `string`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category String
	     * @param {string} [string=''] The string to trim.
	     * @param {string} [chars=whitespace] The characters to trim.
	     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
	     * @returns {string} Returns the trimmed string.
	     * @example
	     *
	     * _.trimEnd('  abc  ');
	     * // => '  abc'
	     *
	     * _.trimEnd('-_-abc-_-', '_-');
	     * // => '-_-abc'
	     */function trimEnd(string,chars,guard){string=toString(string);if(string&&(guard||chars===undefined)){return string.slice(0,trimmedEndIndex(string)+1);}if(!string||!(chars=baseToString(chars))){return string;}var strSymbols=stringToArray(string),end=charsEndIndex(strSymbols,stringToArray(chars))+1;return castSlice(strSymbols,0,end).join('');}/**
	     * Removes leading whitespace or specified characters from `string`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category String
	     * @param {string} [string=''] The string to trim.
	     * @param {string} [chars=whitespace] The characters to trim.
	     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
	     * @returns {string} Returns the trimmed string.
	     * @example
	     *
	     * _.trimStart('  abc  ');
	     * // => 'abc  '
	     *
	     * _.trimStart('-_-abc-_-', '_-');
	     * // => 'abc-_-'
	     */function trimStart(string,chars,guard){string=toString(string);if(string&&(guard||chars===undefined)){return string.replace(reTrimStart,'');}if(!string||!(chars=baseToString(chars))){return string;}var strSymbols=stringToArray(string),start=charsStartIndex(strSymbols,stringToArray(chars));return castSlice(strSymbols,start).join('');}/**
	     * Truncates `string` if it's longer than the given maximum string length.
	     * The last characters of the truncated string are replaced with the omission
	     * string which defaults to "...".
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category String
	     * @param {string} [string=''] The string to truncate.
	     * @param {Object} [options={}] The options object.
	     * @param {number} [options.length=30] The maximum string length.
	     * @param {string} [options.omission='...'] The string to indicate text is omitted.
	     * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
	     * @returns {string} Returns the truncated string.
	     * @example
	     *
	     * _.truncate('hi-diddly-ho there, neighborino');
	     * // => 'hi-diddly-ho there, neighbo...'
	     *
	     * _.truncate('hi-diddly-ho there, neighborino', {
	     *   'length': 24,
	     *   'separator': ' '
	     * });
	     * // => 'hi-diddly-ho there,...'
	     *
	     * _.truncate('hi-diddly-ho there, neighborino', {
	     *   'length': 24,
	     *   'separator': /,? +/
	     * });
	     * // => 'hi-diddly-ho there...'
	     *
	     * _.truncate('hi-diddly-ho there, neighborino', {
	     *   'omission': ' [...]'
	     * });
	     * // => 'hi-diddly-ho there, neig [...]'
	     */function truncate(string,options){var length=DEFAULT_TRUNC_LENGTH,omission=DEFAULT_TRUNC_OMISSION;if(isObject(options)){var separator='separator'in options?options.separator:separator;length='length'in options?toInteger(options.length):length;omission='omission'in options?baseToString(options.omission):omission;}string=toString(string);var strLength=string.length;if(hasUnicode(string)){var strSymbols=stringToArray(string);strLength=strSymbols.length;}if(length>=strLength){return string;}var end=length-stringSize(omission);if(end<1){return omission;}var result=strSymbols?castSlice(strSymbols,0,end).join(''):string.slice(0,end);if(separator===undefined){return result+omission;}if(strSymbols){end+=result.length-end;}if(isRegExp(separator)){if(string.slice(end).search(separator)){var match,substring=result;if(!separator.global){separator=RegExp(separator.source,toString(reFlags.exec(separator))+'g');}separator.lastIndex=0;while(match=separator.exec(substring)){var newEnd=match.index;}result=result.slice(0,newEnd===undefined?end:newEnd);}}else if(string.indexOf(baseToString(separator),end)!=end){var index=result.lastIndexOf(separator);if(index>-1){result=result.slice(0,index);}}return result+omission;}/**
	     * The inverse of `_.escape`; this method converts the HTML entities
	     * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to
	     * their corresponding characters.
	     *
	     * **Note:** No other HTML entities are unescaped. To unescape additional
	     * HTML entities use a third-party library like [_he_](https://mths.be/he).
	     *
	     * @static
	     * @memberOf _
	     * @since 0.6.0
	     * @category String
	     * @param {string} [string=''] The string to unescape.
	     * @returns {string} Returns the unescaped string.
	     * @example
	     *
	     * _.unescape('fred, barney, &amp; pebbles');
	     * // => 'fred, barney, & pebbles'
	     */function unescape(string){string=toString(string);return string&&reHasEscapedHtml.test(string)?string.replace(reEscapedHtml,unescapeHtmlChar):string;}/**
	     * Converts `string`, as space separated words, to upper case.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category String
	     * @param {string} [string=''] The string to convert.
	     * @returns {string} Returns the upper cased string.
	     * @example
	     *
	     * _.upperCase('--foo-bar');
	     * // => 'FOO BAR'
	     *
	     * _.upperCase('fooBar');
	     * // => 'FOO BAR'
	     *
	     * _.upperCase('__foo_bar__');
	     * // => 'FOO BAR'
	     */var upperCase=createCompounder(function(result,word,index){return result+(index?' ':'')+word.toUpperCase();});/**
	     * Converts the first character of `string` to upper case.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category String
	     * @param {string} [string=''] The string to convert.
	     * @returns {string} Returns the converted string.
	     * @example
	     *
	     * _.upperFirst('fred');
	     * // => 'Fred'
	     *
	     * _.upperFirst('FRED');
	     * // => 'FRED'
	     */var upperFirst=createCaseFirst('toUpperCase');/**
	     * Splits `string` into an array of its words.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category String
	     * @param {string} [string=''] The string to inspect.
	     * @param {RegExp|string} [pattern] The pattern to match words.
	     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
	     * @returns {Array} Returns the words of `string`.
	     * @example
	     *
	     * _.words('fred, barney, & pebbles');
	     * // => ['fred', 'barney', 'pebbles']
	     *
	     * _.words('fred, barney, & pebbles', /[^, ]+/g);
	     * // => ['fred', 'barney', '&', 'pebbles']
	     */function words(string,pattern,guard){string=toString(string);pattern=guard?undefined:pattern;if(pattern===undefined){return hasUnicodeWord(string)?unicodeWords(string):asciiWords(string);}return string.match(pattern)||[];}/*------------------------------------------------------------------------*//**
	     * Attempts to invoke `func`, returning either the result or the caught error
	     * object. Any additional arguments are provided to `func` when it's invoked.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Util
	     * @param {Function} func The function to attempt.
	     * @param {...*} [args] The arguments to invoke `func` with.
	     * @returns {*} Returns the `func` result or error object.
	     * @example
	     *
	     * // Avoid throwing errors for invalid selectors.
	     * var elements = _.attempt(function(selector) {
	     *   return document.querySelectorAll(selector);
	     * }, '>_>');
	     *
	     * if (_.isError(elements)) {
	     *   elements = [];
	     * }
	     */var attempt=baseRest(function(func,args){try{return apply(func,undefined,args);}catch(e){return isError(e)?e:new Error(e);}});/**
	     * Binds methods of an object to the object itself, overwriting the existing
	     * method.
	     *
	     * **Note:** This method doesn't set the "length" property of bound functions.
	     *
	     * @static
	     * @since 0.1.0
	     * @memberOf _
	     * @category Util
	     * @param {Object} object The object to bind and assign the bound methods to.
	     * @param {...(string|string[])} methodNames The object method names to bind.
	     * @returns {Object} Returns `object`.
	     * @example
	     *
	     * var view = {
	     *   'label': 'docs',
	     *   'click': function() {
	     *     console.log('clicked ' + this.label);
	     *   }
	     * };
	     *
	     * _.bindAll(view, ['click']);
	     * jQuery(element).on('click', view.click);
	     * // => Logs 'clicked docs' when clicked.
	     */var bindAll=flatRest(function(object,methodNames){arrayEach(methodNames,function(key){key=toKey(key);baseAssignValue(object,key,bind(object[key],object));});return object;});/**
	     * Creates a function that iterates over `pairs` and invokes the corresponding
	     * function of the first predicate to return truthy. The predicate-function
	     * pairs are invoked with the `this` binding and arguments of the created
	     * function.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Util
	     * @param {Array} pairs The predicate-function pairs.
	     * @returns {Function} Returns the new composite function.
	     * @example
	     *
	     * var func = _.cond([
	     *   [_.matches({ 'a': 1 }),           _.constant('matches A')],
	     *   [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
	     *   [_.stubTrue,                      _.constant('no match')]
	     * ]);
	     *
	     * func({ 'a': 1, 'b': 2 });
	     * // => 'matches A'
	     *
	     * func({ 'a': 0, 'b': 1 });
	     * // => 'matches B'
	     *
	     * func({ 'a': '1', 'b': '2' });
	     * // => 'no match'
	     */function cond(pairs){var length=pairs==null?0:pairs.length,toIteratee=getIteratee();pairs=!length?[]:arrayMap(pairs,function(pair){if(typeof pair[1]!='function'){throw new TypeError(FUNC_ERROR_TEXT);}return[toIteratee(pair[0]),pair[1]];});return baseRest(function(args){var index=-1;while(++index<length){var pair=pairs[index];if(apply(pair[0],this,args)){return apply(pair[1],this,args);}}});}/**
	     * Creates a function that invokes the predicate properties of `source` with
	     * the corresponding property values of a given object, returning `true` if
	     * all predicates return truthy, else `false`.
	     *
	     * **Note:** The created function is equivalent to `_.conformsTo` with
	     * `source` partially applied.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Util
	     * @param {Object} source The object of property predicates to conform to.
	     * @returns {Function} Returns the new spec function.
	     * @example
	     *
	     * var objects = [
	     *   { 'a': 2, 'b': 1 },
	     *   { 'a': 1, 'b': 2 }
	     * ];
	     *
	     * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
	     * // => [{ 'a': 1, 'b': 2 }]
	     */function conforms(source){return baseConforms(baseClone(source,CLONE_DEEP_FLAG));}/**
	     * Creates a function that returns `value`.
	     *
	     * @static
	     * @memberOf _
	     * @since 2.4.0
	     * @category Util
	     * @param {*} value The value to return from the new function.
	     * @returns {Function} Returns the new constant function.
	     * @example
	     *
	     * var objects = _.times(2, _.constant({ 'a': 1 }));
	     *
	     * console.log(objects);
	     * // => [{ 'a': 1 }, { 'a': 1 }]
	     *
	     * console.log(objects[0] === objects[1]);
	     * // => true
	     */function constant(value){return function(){return value;};}/**
	     * Checks `value` to determine whether a default value should be returned in
	     * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
	     * or `undefined`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.14.0
	     * @category Util
	     * @param {*} value The value to check.
	     * @param {*} defaultValue The default value.
	     * @returns {*} Returns the resolved value.
	     * @example
	     *
	     * _.defaultTo(1, 10);
	     * // => 1
	     *
	     * _.defaultTo(undefined, 10);
	     * // => 10
	     */function defaultTo(value,defaultValue){return value==null||value!==value?defaultValue:value;}/**
	     * Creates a function that returns the result of invoking the given functions
	     * with the `this` binding of the created function, where each successive
	     * invocation is supplied the return value of the previous.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Util
	     * @param {...(Function|Function[])} [funcs] The functions to invoke.
	     * @returns {Function} Returns the new composite function.
	     * @see _.flowRight
	     * @example
	     *
	     * function square(n) {
	     *   return n * n;
	     * }
	     *
	     * var addSquare = _.flow([_.add, square]);
	     * addSquare(1, 2);
	     * // => 9
	     */var flow=createFlow();/**
	     * This method is like `_.flow` except that it creates a function that
	     * invokes the given functions from right to left.
	     *
	     * @static
	     * @since 3.0.0
	     * @memberOf _
	     * @category Util
	     * @param {...(Function|Function[])} [funcs] The functions to invoke.
	     * @returns {Function} Returns the new composite function.
	     * @see _.flow
	     * @example
	     *
	     * function square(n) {
	     *   return n * n;
	     * }
	     *
	     * var addSquare = _.flowRight([square, _.add]);
	     * addSquare(1, 2);
	     * // => 9
	     */var flowRight=createFlow(true);/**
	     * This method returns the first argument it receives.
	     *
	     * @static
	     * @since 0.1.0
	     * @memberOf _
	     * @category Util
	     * @param {*} value Any value.
	     * @returns {*} Returns `value`.
	     * @example
	     *
	     * var object = { 'a': 1 };
	     *
	     * console.log(_.identity(object) === object);
	     * // => true
	     */function identity(value){return value;}/**
	     * Creates a function that invokes `func` with the arguments of the created
	     * function. If `func` is a property name, the created function returns the
	     * property value for a given element. If `func` is an array or object, the
	     * created function returns `true` for elements that contain the equivalent
	     * source properties, otherwise it returns `false`.
	     *
	     * @static
	     * @since 4.0.0
	     * @memberOf _
	     * @category Util
	     * @param {*} [func=_.identity] The value to convert to a callback.
	     * @returns {Function} Returns the callback.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney', 'age': 36, 'active': true },
	     *   { 'user': 'fred',   'age': 40, 'active': false }
	     * ];
	     *
	     * // The `_.matches` iteratee shorthand.
	     * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
	     * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
	     *
	     * // The `_.matchesProperty` iteratee shorthand.
	     * _.filter(users, _.iteratee(['user', 'fred']));
	     * // => [{ 'user': 'fred', 'age': 40 }]
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.map(users, _.iteratee('user'));
	     * // => ['barney', 'fred']
	     *
	     * // Create custom iteratee shorthands.
	     * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
	     *   return !_.isRegExp(func) ? iteratee(func) : function(string) {
	     *     return func.test(string);
	     *   };
	     * });
	     *
	     * _.filter(['abc', 'def'], /ef/);
	     * // => ['def']
	     */function iteratee(func){return baseIteratee(typeof func=='function'?func:baseClone(func,CLONE_DEEP_FLAG));}/**
	     * Creates a function that performs a partial deep comparison between a given
	     * object and `source`, returning `true` if the given object has equivalent
	     * property values, else `false`.
	     *
	     * **Note:** The created function is equivalent to `_.isMatch` with `source`
	     * partially applied.
	     *
	     * Partial comparisons will match empty array and empty object `source`
	     * values against any array or object value, respectively. See `_.isEqual`
	     * for a list of supported value comparisons.
	     *
	     * **Note:** Multiple values can be checked by combining several matchers
	     * using `_.overSome`
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Util
	     * @param {Object} source The object of property values to match.
	     * @returns {Function} Returns the new spec function.
	     * @example
	     *
	     * var objects = [
	     *   { 'a': 1, 'b': 2, 'c': 3 },
	     *   { 'a': 4, 'b': 5, 'c': 6 }
	     * ];
	     *
	     * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
	     * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
	     *
	     * // Checking for several possible values
	     * _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));
	     * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
	     */function matches(source){return baseMatches(baseClone(source,CLONE_DEEP_FLAG));}/**
	     * Creates a function that performs a partial deep comparison between the
	     * value at `path` of a given object to `srcValue`, returning `true` if the
	     * object value is equivalent, else `false`.
	     *
	     * **Note:** Partial comparisons will match empty array and empty object
	     * `srcValue` values against any array or object value, respectively. See
	     * `_.isEqual` for a list of supported value comparisons.
	     *
	     * **Note:** Multiple values can be checked by combining several matchers
	     * using `_.overSome`
	     *
	     * @static
	     * @memberOf _
	     * @since 3.2.0
	     * @category Util
	     * @param {Array|string} path The path of the property to get.
	     * @param {*} srcValue The value to match.
	     * @returns {Function} Returns the new spec function.
	     * @example
	     *
	     * var objects = [
	     *   { 'a': 1, 'b': 2, 'c': 3 },
	     *   { 'a': 4, 'b': 5, 'c': 6 }
	     * ];
	     *
	     * _.find(objects, _.matchesProperty('a', 4));
	     * // => { 'a': 4, 'b': 5, 'c': 6 }
	     *
	     * // Checking for several possible values
	     * _.filter(objects, _.overSome([_.matchesProperty('a', 1), _.matchesProperty('a', 4)]));
	     * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
	     */function matchesProperty(path,srcValue){return baseMatchesProperty(path,baseClone(srcValue,CLONE_DEEP_FLAG));}/**
	     * Creates a function that invokes the method at `path` of a given object.
	     * Any additional arguments are provided to the invoked method.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.7.0
	     * @category Util
	     * @param {Array|string} path The path of the method to invoke.
	     * @param {...*} [args] The arguments to invoke the method with.
	     * @returns {Function} Returns the new invoker function.
	     * @example
	     *
	     * var objects = [
	     *   { 'a': { 'b': _.constant(2) } },
	     *   { 'a': { 'b': _.constant(1) } }
	     * ];
	     *
	     * _.map(objects, _.method('a.b'));
	     * // => [2, 1]
	     *
	     * _.map(objects, _.method(['a', 'b']));
	     * // => [2, 1]
	     */var method=baseRest(function(path,args){return function(object){return baseInvoke(object,path,args);};});/**
	     * The opposite of `_.method`; this method creates a function that invokes
	     * the method at a given path of `object`. Any additional arguments are
	     * provided to the invoked method.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.7.0
	     * @category Util
	     * @param {Object} object The object to query.
	     * @param {...*} [args] The arguments to invoke the method with.
	     * @returns {Function} Returns the new invoker function.
	     * @example
	     *
	     * var array = _.times(3, _.constant),
	     *     object = { 'a': array, 'b': array, 'c': array };
	     *
	     * _.map(['a[2]', 'c[0]'], _.methodOf(object));
	     * // => [2, 0]
	     *
	     * _.map([['a', '2'], ['c', '0']], _.methodOf(object));
	     * // => [2, 0]
	     */var methodOf=baseRest(function(object,args){return function(path){return baseInvoke(object,path,args);};});/**
	     * Adds all own enumerable string keyed function properties of a source
	     * object to the destination object. If `object` is a function, then methods
	     * are added to its prototype as well.
	     *
	     * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
	     * avoid conflicts caused by modifying the original.
	     *
	     * @static
	     * @since 0.1.0
	     * @memberOf _
	     * @category Util
	     * @param {Function|Object} [object=lodash] The destination object.
	     * @param {Object} source The object of functions to add.
	     * @param {Object} [options={}] The options object.
	     * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
	     * @returns {Function|Object} Returns `object`.
	     * @example
	     *
	     * function vowels(string) {
	     *   return _.filter(string, function(v) {
	     *     return /[aeiou]/i.test(v);
	     *   });
	     * }
	     *
	     * _.mixin({ 'vowels': vowels });
	     * _.vowels('fred');
	     * // => ['e']
	     *
	     * _('fred').vowels().value();
	     * // => ['e']
	     *
	     * _.mixin({ 'vowels': vowels }, { 'chain': false });
	     * _('fred').vowels();
	     * // => ['e']
	     */function mixin(object,source,options){var props=keys(source),methodNames=baseFunctions(source,props);if(options==null&&!(isObject(source)&&(methodNames.length||!props.length))){options=source;source=object;object=this;methodNames=baseFunctions(source,keys(source));}var chain=!(isObject(options)&&'chain'in options)||!!options.chain,isFunc=isFunction(object);arrayEach(methodNames,function(methodName){var func=source[methodName];object[methodName]=func;if(isFunc){object.prototype[methodName]=function(){var chainAll=this.__chain__;if(chain||chainAll){var result=object(this.__wrapped__),actions=result.__actions__=copyArray(this.__actions__);actions.push({'func':func,'args':arguments,'thisArg':object});result.__chain__=chainAll;return result;}return func.apply(object,arrayPush([this.value()],arguments));};}});return object;}/**
	     * Reverts the `_` variable to its previous value and returns a reference to
	     * the `lodash` function.
	     *
	     * @static
	     * @since 0.1.0
	     * @memberOf _
	     * @category Util
	     * @returns {Function} Returns the `lodash` function.
	     * @example
	     *
	     * var lodash = _.noConflict();
	     */function noConflict(){if(root._===this){root._=oldDash;}return this;}/**
	     * This method returns `undefined`.
	     *
	     * @static
	     * @memberOf _
	     * @since 2.3.0
	     * @category Util
	     * @example
	     *
	     * _.times(2, _.noop);
	     * // => [undefined, undefined]
	     */function noop(){}// No operation performed.
	/**
	     * Creates a function that gets the argument at index `n`. If `n` is negative,
	     * the nth argument from the end is returned.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Util
	     * @param {number} [n=0] The index of the argument to return.
	     * @returns {Function} Returns the new pass-thru function.
	     * @example
	     *
	     * var func = _.nthArg(1);
	     * func('a', 'b', 'c', 'd');
	     * // => 'b'
	     *
	     * var func = _.nthArg(-2);
	     * func('a', 'b', 'c', 'd');
	     * // => 'c'
	     */function nthArg(n){n=toInteger(n);return baseRest(function(args){return baseNth(args,n);});}/**
	     * Creates a function that invokes `iteratees` with the arguments it receives
	     * and returns their results.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Util
	     * @param {...(Function|Function[])} [iteratees=[_.identity]]
	     *  The iteratees to invoke.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * var func = _.over([Math.max, Math.min]);
	     *
	     * func(1, 2, 3, 4);
	     * // => [4, 1]
	     */var over=createOver(arrayMap);/**
	     * Creates a function that checks if **all** of the `predicates` return
	     * truthy when invoked with the arguments it receives.
	     *
	     * Following shorthands are possible for providing predicates.
	     * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.
	     * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Util
	     * @param {...(Function|Function[])} [predicates=[_.identity]]
	     *  The predicates to check.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * var func = _.overEvery([Boolean, isFinite]);
	     *
	     * func('1');
	     * // => true
	     *
	     * func(null);
	     * // => false
	     *
	     * func(NaN);
	     * // => false
	     */var overEvery=createOver(arrayEvery);/**
	     * Creates a function that checks if **any** of the `predicates` return
	     * truthy when invoked with the arguments it receives.
	     *
	     * Following shorthands are possible for providing predicates.
	     * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.
	     * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Util
	     * @param {...(Function|Function[])} [predicates=[_.identity]]
	     *  The predicates to check.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * var func = _.overSome([Boolean, isFinite]);
	     *
	     * func('1');
	     * // => true
	     *
	     * func(null);
	     * // => true
	     *
	     * func(NaN);
	     * // => false
	     *
	     * var matchesFunc = _.overSome([{ 'a': 1 }, { 'a': 2 }])
	     * var matchesPropertyFunc = _.overSome([['a', 1], ['a', 2]])
	     */var overSome=createOver(arraySome);/**
	     * Creates a function that returns the value at `path` of a given object.
	     *
	     * @static
	     * @memberOf _
	     * @since 2.4.0
	     * @category Util
	     * @param {Array|string} path The path of the property to get.
	     * @returns {Function} Returns the new accessor function.
	     * @example
	     *
	     * var objects = [
	     *   { 'a': { 'b': 2 } },
	     *   { 'a': { 'b': 1 } }
	     * ];
	     *
	     * _.map(objects, _.property('a.b'));
	     * // => [2, 1]
	     *
	     * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
	     * // => [1, 2]
	     */function property(path){return isKey(path)?baseProperty(toKey(path)):basePropertyDeep(path);}/**
	     * The opposite of `_.property`; this method creates a function that returns
	     * the value at a given path of `object`.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.0.0
	     * @category Util
	     * @param {Object} object The object to query.
	     * @returns {Function} Returns the new accessor function.
	     * @example
	     *
	     * var array = [0, 1, 2],
	     *     object = { 'a': array, 'b': array, 'c': array };
	     *
	     * _.map(['a[2]', 'c[0]'], _.propertyOf(object));
	     * // => [2, 0]
	     *
	     * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
	     * // => [2, 0]
	     */function propertyOf(object){return function(path){return object==null?undefined:baseGet(object,path);};}/**
	     * Creates an array of numbers (positive and/or negative) progressing from
	     * `start` up to, but not including, `end`. A step of `-1` is used if a negative
	     * `start` is specified without an `end` or `step`. If `end` is not specified,
	     * it's set to `start` with `start` then set to `0`.
	     *
	     * **Note:** JavaScript follows the IEEE-754 standard for resolving
	     * floating-point values which can produce unexpected results.
	     *
	     * @static
	     * @since 0.1.0
	     * @memberOf _
	     * @category Util
	     * @param {number} [start=0] The start of the range.
	     * @param {number} end The end of the range.
	     * @param {number} [step=1] The value to increment or decrement by.
	     * @returns {Array} Returns the range of numbers.
	     * @see _.inRange, _.rangeRight
	     * @example
	     *
	     * _.range(4);
	     * // => [0, 1, 2, 3]
	     *
	     * _.range(-4);
	     * // => [0, -1, -2, -3]
	     *
	     * _.range(1, 5);
	     * // => [1, 2, 3, 4]
	     *
	     * _.range(0, 20, 5);
	     * // => [0, 5, 10, 15]
	     *
	     * _.range(0, -4, -1);
	     * // => [0, -1, -2, -3]
	     *
	     * _.range(1, 4, 0);
	     * // => [1, 1, 1]
	     *
	     * _.range(0);
	     * // => []
	     */var range=createRange();/**
	     * This method is like `_.range` except that it populates values in
	     * descending order.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Util
	     * @param {number} [start=0] The start of the range.
	     * @param {number} end The end of the range.
	     * @param {number} [step=1] The value to increment or decrement by.
	     * @returns {Array} Returns the range of numbers.
	     * @see _.inRange, _.range
	     * @example
	     *
	     * _.rangeRight(4);
	     * // => [3, 2, 1, 0]
	     *
	     * _.rangeRight(-4);
	     * // => [-3, -2, -1, 0]
	     *
	     * _.rangeRight(1, 5);
	     * // => [4, 3, 2, 1]
	     *
	     * _.rangeRight(0, 20, 5);
	     * // => [15, 10, 5, 0]
	     *
	     * _.rangeRight(0, -4, -1);
	     * // => [-3, -2, -1, 0]
	     *
	     * _.rangeRight(1, 4, 0);
	     * // => [1, 1, 1]
	     *
	     * _.rangeRight(0);
	     * // => []
	     */var rangeRight=createRange(true);/**
	     * This method returns a new empty array.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.13.0
	     * @category Util
	     * @returns {Array} Returns the new empty array.
	     * @example
	     *
	     * var arrays = _.times(2, _.stubArray);
	     *
	     * console.log(arrays);
	     * // => [[], []]
	     *
	     * console.log(arrays[0] === arrays[1]);
	     * // => false
	     */function stubArray(){return[];}/**
	     * This method returns `false`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.13.0
	     * @category Util
	     * @returns {boolean} Returns `false`.
	     * @example
	     *
	     * _.times(2, _.stubFalse);
	     * // => [false, false]
	     */function stubFalse(){return false;}/**
	     * This method returns a new empty object.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.13.0
	     * @category Util
	     * @returns {Object} Returns the new empty object.
	     * @example
	     *
	     * var objects = _.times(2, _.stubObject);
	     *
	     * console.log(objects);
	     * // => [{}, {}]
	     *
	     * console.log(objects[0] === objects[1]);
	     * // => false
	     */function stubObject(){return{};}/**
	     * This method returns an empty string.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.13.0
	     * @category Util
	     * @returns {string} Returns the empty string.
	     * @example
	     *
	     * _.times(2, _.stubString);
	     * // => ['', '']
	     */function stubString(){return'';}/**
	     * This method returns `true`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.13.0
	     * @category Util
	     * @returns {boolean} Returns `true`.
	     * @example
	     *
	     * _.times(2, _.stubTrue);
	     * // => [true, true]
	     */function stubTrue(){return true;}/**
	     * Invokes the iteratee `n` times, returning an array of the results of
	     * each invocation. The iteratee is invoked with one argument; (index).
	     *
	     * @static
	     * @since 0.1.0
	     * @memberOf _
	     * @category Util
	     * @param {number} n The number of times to invoke `iteratee`.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @returns {Array} Returns the array of results.
	     * @example
	     *
	     * _.times(3, String);
	     * // => ['0', '1', '2']
	     *
	     *  _.times(4, _.constant(0));
	     * // => [0, 0, 0, 0]
	     */function times(n,iteratee){n=toInteger(n);if(n<1||n>MAX_SAFE_INTEGER){return[];}var index=MAX_ARRAY_LENGTH,length=nativeMin(n,MAX_ARRAY_LENGTH);iteratee=getIteratee(iteratee);n-=MAX_ARRAY_LENGTH;var result=baseTimes(length,iteratee);while(++index<n){iteratee(index);}return result;}/**
	     * Converts `value` to a property path array.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Util
	     * @param {*} value The value to convert.
	     * @returns {Array} Returns the new property path array.
	     * @example
	     *
	     * _.toPath('a.b.c');
	     * // => ['a', 'b', 'c']
	     *
	     * _.toPath('a[0].b.c');
	     * // => ['a', '0', 'b', 'c']
	     */function toPath(value){if(isArray(value)){return arrayMap(value,toKey);}return isSymbol(value)?[value]:copyArray(stringToPath(toString(value)));}/**
	     * Generates a unique ID. If `prefix` is given, the ID is appended to it.
	     *
	     * @static
	     * @since 0.1.0
	     * @memberOf _
	     * @category Util
	     * @param {string} [prefix=''] The value to prefix the ID with.
	     * @returns {string} Returns the unique ID.
	     * @example
	     *
	     * _.uniqueId('contact_');
	     * // => 'contact_104'
	     *
	     * _.uniqueId();
	     * // => '105'
	     */function uniqueId(prefix){var id=++idCounter;return toString(prefix)+id;}/*------------------------------------------------------------------------*//**
	     * Adds two numbers.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.4.0
	     * @category Math
	     * @param {number} augend The first number in an addition.
	     * @param {number} addend The second number in an addition.
	     * @returns {number} Returns the total.
	     * @example
	     *
	     * _.add(6, 4);
	     * // => 10
	     */var add=createMathOperation(function(augend,addend){return augend+addend;},0);/**
	     * Computes `number` rounded up to `precision`.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.10.0
	     * @category Math
	     * @param {number} number The number to round up.
	     * @param {number} [precision=0] The precision to round up to.
	     * @returns {number} Returns the rounded up number.
	     * @example
	     *
	     * _.ceil(4.006);
	     * // => 5
	     *
	     * _.ceil(6.004, 2);
	     * // => 6.01
	     *
	     * _.ceil(6040, -2);
	     * // => 6100
	     */var ceil=createRound('ceil');/**
	     * Divide two numbers.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.7.0
	     * @category Math
	     * @param {number} dividend The first number in a division.
	     * @param {number} divisor The second number in a division.
	     * @returns {number} Returns the quotient.
	     * @example
	     *
	     * _.divide(6, 4);
	     * // => 1.5
	     */var divide=createMathOperation(function(dividend,divisor){return dividend/divisor;},1);/**
	     * Computes `number` rounded down to `precision`.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.10.0
	     * @category Math
	     * @param {number} number The number to round down.
	     * @param {number} [precision=0] The precision to round down to.
	     * @returns {number} Returns the rounded down number.
	     * @example
	     *
	     * _.floor(4.006);
	     * // => 4
	     *
	     * _.floor(0.046, 2);
	     * // => 0.04
	     *
	     * _.floor(4060, -2);
	     * // => 4000
	     */var floor=createRound('floor');/**
	     * Computes the maximum value of `array`. If `array` is empty or falsey,
	     * `undefined` is returned.
	     *
	     * @static
	     * @since 0.1.0
	     * @memberOf _
	     * @category Math
	     * @param {Array} array The array to iterate over.
	     * @returns {*} Returns the maximum value.
	     * @example
	     *
	     * _.max([4, 2, 8, 6]);
	     * // => 8
	     *
	     * _.max([]);
	     * // => undefined
	     */function max(array){return array&&array.length?baseExtremum(array,identity,baseGt):undefined;}/**
	     * This method is like `_.max` except that it accepts `iteratee` which is
	     * invoked for each element in `array` to generate the criterion by which
	     * the value is ranked. The iteratee is invoked with one argument: (value).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Math
	     * @param {Array} array The array to iterate over.
	     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
	     * @returns {*} Returns the maximum value.
	     * @example
	     *
	     * var objects = [{ 'n': 1 }, { 'n': 2 }];
	     *
	     * _.maxBy(objects, function(o) { return o.n; });
	     * // => { 'n': 2 }
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.maxBy(objects, 'n');
	     * // => { 'n': 2 }
	     */function maxBy(array,iteratee){return array&&array.length?baseExtremum(array,getIteratee(iteratee,2),baseGt):undefined;}/**
	     * Computes the mean of the values in `array`.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Math
	     * @param {Array} array The array to iterate over.
	     * @returns {number} Returns the mean.
	     * @example
	     *
	     * _.mean([4, 2, 8, 6]);
	     * // => 5
	     */function mean(array){return baseMean(array,identity);}/**
	     * This method is like `_.mean` except that it accepts `iteratee` which is
	     * invoked for each element in `array` to generate the value to be averaged.
	     * The iteratee is invoked with one argument: (value).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.7.0
	     * @category Math
	     * @param {Array} array The array to iterate over.
	     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
	     * @returns {number} Returns the mean.
	     * @example
	     *
	     * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
	     *
	     * _.meanBy(objects, function(o) { return o.n; });
	     * // => 5
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.meanBy(objects, 'n');
	     * // => 5
	     */function meanBy(array,iteratee){return baseMean(array,getIteratee(iteratee,2));}/**
	     * Computes the minimum value of `array`. If `array` is empty or falsey,
	     * `undefined` is returned.
	     *
	     * @static
	     * @since 0.1.0
	     * @memberOf _
	     * @category Math
	     * @param {Array} array The array to iterate over.
	     * @returns {*} Returns the minimum value.
	     * @example
	     *
	     * _.min([4, 2, 8, 6]);
	     * // => 2
	     *
	     * _.min([]);
	     * // => undefined
	     */function min(array){return array&&array.length?baseExtremum(array,identity,baseLt):undefined;}/**
	     * This method is like `_.min` except that it accepts `iteratee` which is
	     * invoked for each element in `array` to generate the criterion by which
	     * the value is ranked. The iteratee is invoked with one argument: (value).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Math
	     * @param {Array} array The array to iterate over.
	     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
	     * @returns {*} Returns the minimum value.
	     * @example
	     *
	     * var objects = [{ 'n': 1 }, { 'n': 2 }];
	     *
	     * _.minBy(objects, function(o) { return o.n; });
	     * // => { 'n': 1 }
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.minBy(objects, 'n');
	     * // => { 'n': 1 }
	     */function minBy(array,iteratee){return array&&array.length?baseExtremum(array,getIteratee(iteratee,2),baseLt):undefined;}/**
	     * Multiply two numbers.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.7.0
	     * @category Math
	     * @param {number} multiplier The first number in a multiplication.
	     * @param {number} multiplicand The second number in a multiplication.
	     * @returns {number} Returns the product.
	     * @example
	     *
	     * _.multiply(6, 4);
	     * // => 24
	     */var multiply=createMathOperation(function(multiplier,multiplicand){return multiplier*multiplicand;},1);/**
	     * Computes `number` rounded to `precision`.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.10.0
	     * @category Math
	     * @param {number} number The number to round.
	     * @param {number} [precision=0] The precision to round to.
	     * @returns {number} Returns the rounded number.
	     * @example
	     *
	     * _.round(4.006);
	     * // => 4
	     *
	     * _.round(4.006, 2);
	     * // => 4.01
	     *
	     * _.round(4060, -2);
	     * // => 4100
	     */var round=createRound('round');/**
	     * Subtract two numbers.
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Math
	     * @param {number} minuend The first number in a subtraction.
	     * @param {number} subtrahend The second number in a subtraction.
	     * @returns {number} Returns the difference.
	     * @example
	     *
	     * _.subtract(6, 4);
	     * // => 2
	     */var subtract=createMathOperation(function(minuend,subtrahend){return minuend-subtrahend;},0);/**
	     * Computes the sum of the values in `array`.
	     *
	     * @static
	     * @memberOf _
	     * @since 3.4.0
	     * @category Math
	     * @param {Array} array The array to iterate over.
	     * @returns {number} Returns the sum.
	     * @example
	     *
	     * _.sum([4, 2, 8, 6]);
	     * // => 20
	     */function sum(array){return array&&array.length?baseSum(array,identity):0;}/**
	     * This method is like `_.sum` except that it accepts `iteratee` which is
	     * invoked for each element in `array` to generate the value to be summed.
	     * The iteratee is invoked with one argument: (value).
	     *
	     * @static
	     * @memberOf _
	     * @since 4.0.0
	     * @category Math
	     * @param {Array} array The array to iterate over.
	     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
	     * @returns {number} Returns the sum.
	     * @example
	     *
	     * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
	     *
	     * _.sumBy(objects, function(o) { return o.n; });
	     * // => 20
	     *
	     * // The `_.property` iteratee shorthand.
	     * _.sumBy(objects, 'n');
	     * // => 20
	     */function sumBy(array,iteratee){return array&&array.length?baseSum(array,getIteratee(iteratee,2)):0;}/*------------------------------------------------------------------------*/// Add methods that return wrapped values in chain sequences.
	lodash.after=after;lodash.ary=ary;lodash.assign=assign;lodash.assignIn=assignIn;lodash.assignInWith=assignInWith;lodash.assignWith=assignWith;lodash.at=at;lodash.before=before;lodash.bind=bind;lodash.bindAll=bindAll;lodash.bindKey=bindKey;lodash.castArray=castArray;lodash.chain=chain;lodash.chunk=chunk;lodash.compact=compact;lodash.concat=concat;lodash.cond=cond;lodash.conforms=conforms;lodash.constant=constant;lodash.countBy=countBy;lodash.create=create;lodash.curry=curry;lodash.curryRight=curryRight;lodash.debounce=debounce;lodash.defaults=defaults;lodash.defaultsDeep=defaultsDeep;lodash.defer=defer;lodash.delay=delay;lodash.difference=difference;lodash.differenceBy=differenceBy;lodash.differenceWith=differenceWith;lodash.drop=drop;lodash.dropRight=dropRight;lodash.dropRightWhile=dropRightWhile;lodash.dropWhile=dropWhile;lodash.fill=fill;lodash.filter=filter;lodash.flatMap=flatMap;lodash.flatMapDeep=flatMapDeep;lodash.flatMapDepth=flatMapDepth;lodash.flatten=flatten;lodash.flattenDeep=flattenDeep;lodash.flattenDepth=flattenDepth;lodash.flip=flip;lodash.flow=flow;lodash.flowRight=flowRight;lodash.fromPairs=fromPairs;lodash.functions=functions;lodash.functionsIn=functionsIn;lodash.groupBy=groupBy;lodash.initial=initial;lodash.intersection=intersection;lodash.intersectionBy=intersectionBy;lodash.intersectionWith=intersectionWith;lodash.invert=invert;lodash.invertBy=invertBy;lodash.invokeMap=invokeMap;lodash.iteratee=iteratee;lodash.keyBy=keyBy;lodash.keys=keys;lodash.keysIn=keysIn;lodash.map=map;lodash.mapKeys=mapKeys;lodash.mapValues=mapValues;lodash.matches=matches;lodash.matchesProperty=matchesProperty;lodash.memoize=memoize;lodash.merge=merge;lodash.mergeWith=mergeWith;lodash.method=method;lodash.methodOf=methodOf;lodash.mixin=mixin;lodash.negate=negate;lodash.nthArg=nthArg;lodash.omit=omit;lodash.omitBy=omitBy;lodash.once=once;lodash.orderBy=orderBy;lodash.over=over;lodash.overArgs=overArgs;lodash.overEvery=overEvery;lodash.overSome=overSome;lodash.partial=partial;lodash.partialRight=partialRight;lodash.partition=partition;lodash.pick=pick;lodash.pickBy=pickBy;lodash.property=property;lodash.propertyOf=propertyOf;lodash.pull=pull;lodash.pullAll=pullAll;lodash.pullAllBy=pullAllBy;lodash.pullAllWith=pullAllWith;lodash.pullAt=pullAt;lodash.range=range;lodash.rangeRight=rangeRight;lodash.rearg=rearg;lodash.reject=reject;lodash.remove=remove;lodash.rest=rest;lodash.reverse=reverse;lodash.sampleSize=sampleSize;lodash.set=set;lodash.setWith=setWith;lodash.shuffle=shuffle;lodash.slice=slice;lodash.sortBy=sortBy;lodash.sortedUniq=sortedUniq;lodash.sortedUniqBy=sortedUniqBy;lodash.split=split;lodash.spread=spread;lodash.tail=tail;lodash.take=take;lodash.takeRight=takeRight;lodash.takeRightWhile=takeRightWhile;lodash.takeWhile=takeWhile;lodash.tap=tap;lodash.throttle=throttle;lodash.thru=thru;lodash.toArray=toArray;lodash.toPairs=toPairs;lodash.toPairsIn=toPairsIn;lodash.toPath=toPath;lodash.toPlainObject=toPlainObject;lodash.transform=transform;lodash.unary=unary;lodash.union=union;lodash.unionBy=unionBy;lodash.unionWith=unionWith;lodash.uniq=uniq;lodash.uniqBy=uniqBy;lodash.uniqWith=uniqWith;lodash.unset=unset;lodash.unzip=unzip;lodash.unzipWith=unzipWith;lodash.update=update;lodash.updateWith=updateWith;lodash.values=values;lodash.valuesIn=valuesIn;lodash.without=without;lodash.words=words;lodash.wrap=wrap;lodash.xor=xor;lodash.xorBy=xorBy;lodash.xorWith=xorWith;lodash.zip=zip;lodash.zipObject=zipObject;lodash.zipObjectDeep=zipObjectDeep;lodash.zipWith=zipWith;// Add aliases.
	lodash.entries=toPairs;lodash.entriesIn=toPairsIn;lodash.extend=assignIn;lodash.extendWith=assignInWith;// Add methods to `lodash.prototype`.
	mixin(lodash,lodash);/*------------------------------------------------------------------------*/// Add methods that return unwrapped values in chain sequences.
	lodash.add=add;lodash.attempt=attempt;lodash.camelCase=camelCase;lodash.capitalize=capitalize;lodash.ceil=ceil;lodash.clamp=clamp;lodash.clone=clone;lodash.cloneDeep=cloneDeep;lodash.cloneDeepWith=cloneDeepWith;lodash.cloneWith=cloneWith;lodash.conformsTo=conformsTo;lodash.deburr=deburr;lodash.defaultTo=defaultTo;lodash.divide=divide;lodash.endsWith=endsWith;lodash.eq=eq;lodash.escape=escape;lodash.escapeRegExp=escapeRegExp;lodash.every=every;lodash.find=find;lodash.findIndex=findIndex;lodash.findKey=findKey;lodash.findLast=findLast;lodash.findLastIndex=findLastIndex;lodash.findLastKey=findLastKey;lodash.floor=floor;lodash.forEach=forEach;lodash.forEachRight=forEachRight;lodash.forIn=forIn;lodash.forInRight=forInRight;lodash.forOwn=forOwn;lodash.forOwnRight=forOwnRight;lodash.get=get;lodash.gt=gt;lodash.gte=gte;lodash.has=has;lodash.hasIn=hasIn;lodash.head=head;lodash.identity=identity;lodash.includes=includes;lodash.indexOf=indexOf;lodash.inRange=inRange;lodash.invoke=invoke;lodash.isArguments=isArguments;lodash.isArray=isArray;lodash.isArrayBuffer=isArrayBuffer;lodash.isArrayLike=isArrayLike;lodash.isArrayLikeObject=isArrayLikeObject;lodash.isBoolean=isBoolean;lodash.isBuffer=isBuffer;lodash.isDate=isDate;lodash.isElement=isElement;lodash.isEmpty=isEmpty;lodash.isEqual=isEqual;lodash.isEqualWith=isEqualWith;lodash.isError=isError;lodash.isFinite=isFinite;lodash.isFunction=isFunction;lodash.isInteger=isInteger;lodash.isLength=isLength;lodash.isMap=isMap;lodash.isMatch=isMatch;lodash.isMatchWith=isMatchWith;lodash.isNaN=isNaN;lodash.isNative=isNative;lodash.isNil=isNil;lodash.isNull=isNull;lodash.isNumber=isNumber;lodash.isObject=isObject;lodash.isObjectLike=isObjectLike;lodash.isPlainObject=isPlainObject;lodash.isRegExp=isRegExp;lodash.isSafeInteger=isSafeInteger;lodash.isSet=isSet;lodash.isString=isString;lodash.isSymbol=isSymbol;lodash.isTypedArray=isTypedArray;lodash.isUndefined=isUndefined;lodash.isWeakMap=isWeakMap;lodash.isWeakSet=isWeakSet;lodash.join=join;lodash.kebabCase=kebabCase;lodash.last=last;lodash.lastIndexOf=lastIndexOf;lodash.lowerCase=lowerCase;lodash.lowerFirst=lowerFirst;lodash.lt=lt;lodash.lte=lte;lodash.max=max;lodash.maxBy=maxBy;lodash.mean=mean;lodash.meanBy=meanBy;lodash.min=min;lodash.minBy=minBy;lodash.stubArray=stubArray;lodash.stubFalse=stubFalse;lodash.stubObject=stubObject;lodash.stubString=stubString;lodash.stubTrue=stubTrue;lodash.multiply=multiply;lodash.nth=nth;lodash.noConflict=noConflict;lodash.noop=noop;lodash.now=now;lodash.pad=pad;lodash.padEnd=padEnd;lodash.padStart=padStart;lodash.parseInt=parseInt;lodash.random=random;lodash.reduce=reduce;lodash.reduceRight=reduceRight;lodash.repeat=repeat;lodash.replace=replace;lodash.result=result;lodash.round=round;lodash.runInContext=runInContext;lodash.sample=sample;lodash.size=size;lodash.snakeCase=snakeCase;lodash.some=some;lodash.sortedIndex=sortedIndex;lodash.sortedIndexBy=sortedIndexBy;lodash.sortedIndexOf=sortedIndexOf;lodash.sortedLastIndex=sortedLastIndex;lodash.sortedLastIndexBy=sortedLastIndexBy;lodash.sortedLastIndexOf=sortedLastIndexOf;lodash.startCase=startCase;lodash.startsWith=startsWith;lodash.subtract=subtract;lodash.sum=sum;lodash.sumBy=sumBy;lodash.template=template;lodash.times=times;lodash.toFinite=toFinite;lodash.toInteger=toInteger;lodash.toLength=toLength;lodash.toLower=toLower;lodash.toNumber=toNumber;lodash.toSafeInteger=toSafeInteger;lodash.toString=toString;lodash.toUpper=toUpper;lodash.trim=trim;lodash.trimEnd=trimEnd;lodash.trimStart=trimStart;lodash.truncate=truncate;lodash.unescape=unescape;lodash.uniqueId=uniqueId;lodash.upperCase=upperCase;lodash.upperFirst=upperFirst;// Add aliases.
	lodash.each=forEach;lodash.eachRight=forEachRight;lodash.first=head;mixin(lodash,function(){var source={};baseForOwn(lodash,function(func,methodName){if(!hasOwnProperty.call(lodash.prototype,methodName)){source[methodName]=func;}});return source;}(),{'chain':false});/*------------------------------------------------------------------------*//**
	     * The semantic version number.
	     *
	     * @static
	     * @memberOf _
	     * @type {string}
	     */lodash.VERSION=VERSION;// Assign default placeholders.
	arrayEach(['bind','bindKey','curry','curryRight','partial','partialRight'],function(methodName){lodash[methodName].placeholder=lodash;});// Add `LazyWrapper` methods for `_.drop` and `_.take` variants.
	arrayEach(['drop','take'],function(methodName,index){LazyWrapper.prototype[methodName]=function(n){n=n===undefined?1:nativeMax(toInteger(n),0);var result=this.__filtered__&&!index?new LazyWrapper(this):this.clone();if(result.__filtered__){result.__takeCount__=nativeMin(n,result.__takeCount__);}else{result.__views__.push({'size':nativeMin(n,MAX_ARRAY_LENGTH),'type':methodName+(result.__dir__<0?'Right':'')});}return result;};LazyWrapper.prototype[methodName+'Right']=function(n){return this.reverse()[methodName](n).reverse();};});// Add `LazyWrapper` methods that accept an `iteratee` value.
	arrayEach(['filter','map','takeWhile'],function(methodName,index){var type=index+1,isFilter=type==LAZY_FILTER_FLAG||type==LAZY_WHILE_FLAG;LazyWrapper.prototype[methodName]=function(iteratee){var result=this.clone();result.__iteratees__.push({'iteratee':getIteratee(iteratee,3),'type':type});result.__filtered__=result.__filtered__||isFilter;return result;};});// Add `LazyWrapper` methods for `_.head` and `_.last`.
	arrayEach(['head','last'],function(methodName,index){var takeName='take'+(index?'Right':'');LazyWrapper.prototype[methodName]=function(){return this[takeName](1).value()[0];};});// Add `LazyWrapper` methods for `_.initial` and `_.tail`.
	arrayEach(['initial','tail'],function(methodName,index){var dropName='drop'+(index?'':'Right');LazyWrapper.prototype[methodName]=function(){return this.__filtered__?new LazyWrapper(this):this[dropName](1);};});LazyWrapper.prototype.compact=function(){return this.filter(identity);};LazyWrapper.prototype.find=function(predicate){return this.filter(predicate).head();};LazyWrapper.prototype.findLast=function(predicate){return this.reverse().find(predicate);};LazyWrapper.prototype.invokeMap=baseRest(function(path,args){if(typeof path=='function'){return new LazyWrapper(this);}return this.map(function(value){return baseInvoke(value,path,args);});});LazyWrapper.prototype.reject=function(predicate){return this.filter(negate(getIteratee(predicate)));};LazyWrapper.prototype.slice=function(start,end){start=toInteger(start);var result=this;if(result.__filtered__&&(start>0||end<0)){return new LazyWrapper(result);}if(start<0){result=result.takeRight(-start);}else if(start){result=result.drop(start);}if(end!==undefined){end=toInteger(end);result=end<0?result.dropRight(-end):result.take(end-start);}return result;};LazyWrapper.prototype.takeRightWhile=function(predicate){return this.reverse().takeWhile(predicate).reverse();};LazyWrapper.prototype.toArray=function(){return this.take(MAX_ARRAY_LENGTH);};// Add `LazyWrapper` methods to `lodash.prototype`.
	baseForOwn(LazyWrapper.prototype,function(func,methodName){var checkIteratee=/^(?:filter|find|map|reject)|While$/.test(methodName),isTaker=/^(?:head|last)$/.test(methodName),lodashFunc=lodash[isTaker?'take'+(methodName=='last'?'Right':''):methodName],retUnwrapped=isTaker||/^find/.test(methodName);if(!lodashFunc){return;}lodash.prototype[methodName]=function(){var value=this.__wrapped__,args=isTaker?[1]:arguments,isLazy=value instanceof LazyWrapper,iteratee=args[0],useLazy=isLazy||isArray(value);var interceptor=function interceptor(value){var result=lodashFunc.apply(lodash,arrayPush([value],args));return isTaker&&chainAll?result[0]:result;};if(useLazy&&checkIteratee&&typeof iteratee=='function'&&iteratee.length!=1){// Avoid lazy use if the iteratee has a "length" value other than `1`.
	isLazy=useLazy=false;}var chainAll=this.__chain__,isHybrid=!!this.__actions__.length,isUnwrapped=retUnwrapped&&!chainAll,onlyLazy=isLazy&&!isHybrid;if(!retUnwrapped&&useLazy){value=onlyLazy?value:new LazyWrapper(this);var result=func.apply(value,args);result.__actions__.push({'func':thru,'args':[interceptor],'thisArg':undefined});return new LodashWrapper(result,chainAll);}if(isUnwrapped&&onlyLazy){return func.apply(this,args);}result=this.thru(interceptor);return isUnwrapped?isTaker?result.value()[0]:result.value():result;};});// Add `Array` methods to `lodash.prototype`.
	arrayEach(['pop','push','shift','sort','splice','unshift'],function(methodName){var func=arrayProto[methodName],chainName=/^(?:push|sort|unshift)$/.test(methodName)?'tap':'thru',retUnwrapped=/^(?:pop|shift)$/.test(methodName);lodash.prototype[methodName]=function(){var args=arguments;if(retUnwrapped&&!this.__chain__){var value=this.value();return func.apply(isArray(value)?value:[],args);}return this[chainName](function(value){return func.apply(isArray(value)?value:[],args);});};});// Map minified method names to their real names.
	baseForOwn(LazyWrapper.prototype,function(func,methodName){var lodashFunc=lodash[methodName];if(lodashFunc){var key=lodashFunc.name+'';if(!hasOwnProperty.call(realNames,key)){realNames[key]=[];}realNames[key].push({'name':methodName,'func':lodashFunc});}});realNames[createHybrid(undefined,WRAP_BIND_KEY_FLAG).name]=[{'name':'wrapper','func':undefined}];// Add methods to `LazyWrapper`.
	LazyWrapper.prototype.clone=lazyClone;LazyWrapper.prototype.reverse=lazyReverse;LazyWrapper.prototype.value=lazyValue;// Add chain sequence methods to the `lodash` wrapper.
	lodash.prototype.at=wrapperAt;lodash.prototype.chain=wrapperChain;lodash.prototype.commit=wrapperCommit;lodash.prototype.next=wrapperNext;lodash.prototype.plant=wrapperPlant;lodash.prototype.reverse=wrapperReverse;lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=wrapperValue;// Add lazy aliases.
	lodash.prototype.first=lodash.prototype.head;if(symIterator){lodash.prototype[symIterator]=wrapperToIterator;}return lodash;};/*--------------------------------------------------------------------------*/// Export lodash.
	var _=runInContext();// Some AMD build optimizers, like r.js, check for condition patterns like:
	if("function"=='function'&&_typeof(__webpack_require__(110))=='object'&&__webpack_require__(110)){// Expose Lodash on the global object to prevent errors when Lodash is
	// loaded by a script tag in the presence of an AMD loader.
	// See http://requirejs.org/docs/errors.html#mismatch for more details.
	// Use `_.noConflict` to remove Lodash from the global object.
	root._=_;// Define as an anonymous module so, through path mapping, it can be
	// referenced as the "underscore" module.
	!(__WEBPACK_AMD_DEFINE_RESULT__ = function(){return _;}.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}// Check for `exports` after `define` in case a build optimizer adds it.
	else if(freeModule){// Export for Node.js.
	(freeModule.exports=_)._=_;// Export for CommonJS support.
	freeExports._=_;}else{// Export to the global object.
	root._=_;}}).call(undefined);
	/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(38)(module)))

/***/ }),
/* 2 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;var require;/* WEBPACK VAR INJECTION */(function(module) {'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js
	//! version : 2.30.1
	//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
	//! license : MIT
	//! momentjs.com
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' ? module.exports = factory() :  true ? !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : global.moment = factory();
	})(undefined, function () {
	    'use strict';
	
	    var hookCallback;
	
	    function hooks() {
	        return hookCallback.apply(null, arguments);
	    }
	
	    // This is done to register the method called with moment()
	    // without creating circular dependencies.
	    function setHookCallback(callback) {
	        hookCallback = callback;
	    }
	
	    function isArray(input) {
	        return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]';
	    }
	
	    function isObject(input) {
	        // IE8 will treat undefined and null as object if it wasn't for
	        // input != null
	        return input != null && Object.prototype.toString.call(input) === '[object Object]';
	    }
	
	    function hasOwnProp(a, b) {
	        return Object.prototype.hasOwnProperty.call(a, b);
	    }
	
	    function isObjectEmpty(obj) {
	        if (Object.getOwnPropertyNames) {
	            return Object.getOwnPropertyNames(obj).length === 0;
	        } else {
	            var k;
	            for (k in obj) {
	                if (hasOwnProp(obj, k)) {
	                    return false;
	                }
	            }
	            return true;
	        }
	    }
	
	    function isUndefined(input) {
	        return input === void 0;
	    }
	
	    function isNumber(input) {
	        return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]';
	    }
	
	    function isDate(input) {
	        return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';
	    }
	
	    function map(arr, fn) {
	        var res = [],
	            i,
	            arrLen = arr.length;
	        for (i = 0; i < arrLen; ++i) {
	            res.push(fn(arr[i], i));
	        }
	        return res;
	    }
	
	    function extend(a, b) {
	        for (var i in b) {
	            if (hasOwnProp(b, i)) {
	                a[i] = b[i];
	            }
	        }
	
	        if (hasOwnProp(b, 'toString')) {
	            a.toString = b.toString;
	        }
	
	        if (hasOwnProp(b, 'valueOf')) {
	            a.valueOf = b.valueOf;
	        }
	
	        return a;
	    }
	
	    function createUTC(input, format, locale, strict) {
	        return createLocalOrUTC(input, format, locale, strict, true).utc();
	    }
	
	    function defaultParsingFlags() {
	        // We need to deep clone this object.
	        return {
	            empty: false,
	            unusedTokens: [],
	            unusedInput: [],
	            overflow: -2,
	            charsLeftOver: 0,
	            nullInput: false,
	            invalidEra: null,
	            invalidMonth: null,
	            invalidFormat: false,
	            userInvalidated: false,
	            iso: false,
	            parsedDateParts: [],
	            era: null,
	            meridiem: null,
	            rfc2822: false,
	            weekdayMismatch: false
	        };
	    }
	
	    function getParsingFlags(m) {
	        if (m._pf == null) {
	            m._pf = defaultParsingFlags();
	        }
	        return m._pf;
	    }
	
	    var some;
	    if (Array.prototype.some) {
	        some = Array.prototype.some;
	    } else {
	        some = function some(fun) {
	            var t = Object(this),
	                len = t.length >>> 0,
	                i;
	
	            for (i = 0; i < len; i++) {
	                if (i in t && fun.call(this, t[i], i, t)) {
	                    return true;
	                }
	            }
	
	            return false;
	        };
	    }
	
	    function isValid(m) {
	        var flags = null,
	            parsedParts = false,
	            isNowValid = m._d && !isNaN(m._d.getTime());
	        if (isNowValid) {
	            flags = getParsingFlags(m);
	            parsedParts = some.call(flags.parsedDateParts, function (i) {
	                return i != null;
	            });
	            isNowValid = flags.overflow < 0 && !flags.empty && !flags.invalidEra && !flags.invalidMonth && !flags.invalidWeekday && !flags.weekdayMismatch && !flags.nullInput && !flags.invalidFormat && !flags.userInvalidated && (!flags.meridiem || flags.meridiem && parsedParts);
	            if (m._strict) {
	                isNowValid = isNowValid && flags.charsLeftOver === 0 && flags.unusedTokens.length === 0 && flags.bigHour === undefined;
	            }
	        }
	        if (Object.isFrozen == null || !Object.isFrozen(m)) {
	            m._isValid = isNowValid;
	        } else {
	            return isNowValid;
	        }
	        return m._isValid;
	    }
	
	    function createInvalid(flags) {
	        var m = createUTC(NaN);
	        if (flags != null) {
	            extend(getParsingFlags(m), flags);
	        } else {
	            getParsingFlags(m).userInvalidated = true;
	        }
	
	        return m;
	    }
	
	    // Plugins that add properties should also add the key here (null value),
	    // so we can properly clone ourselves.
	    var momentProperties = hooks.momentProperties = [],
	        updateInProgress = false;
	
	    function copyConfig(to, from) {
	        var i,
	            prop,
	            val,
	            momentPropertiesLen = momentProperties.length;
	
	        if (!isUndefined(from._isAMomentObject)) {
	            to._isAMomentObject = from._isAMomentObject;
	        }
	        if (!isUndefined(from._i)) {
	            to._i = from._i;
	        }
	        if (!isUndefined(from._f)) {
	            to._f = from._f;
	        }
	        if (!isUndefined(from._l)) {
	            to._l = from._l;
	        }
	        if (!isUndefined(from._strict)) {
	            to._strict = from._strict;
	        }
	        if (!isUndefined(from._tzm)) {
	            to._tzm = from._tzm;
	        }
	        if (!isUndefined(from._isUTC)) {
	            to._isUTC = from._isUTC;
	        }
	        if (!isUndefined(from._offset)) {
	            to._offset = from._offset;
	        }
	        if (!isUndefined(from._pf)) {
	            to._pf = getParsingFlags(from);
	        }
	        if (!isUndefined(from._locale)) {
	            to._locale = from._locale;
	        }
	
	        if (momentPropertiesLen > 0) {
	            for (i = 0; i < momentPropertiesLen; i++) {
	                prop = momentProperties[i];
	                val = from[prop];
	                if (!isUndefined(val)) {
	                    to[prop] = val;
	                }
	            }
	        }
	
	        return to;
	    }
	
	    // Moment prototype object
	    function Moment(config) {
	        copyConfig(this, config);
	        this._d = new Date(config._d != null ? config._d.getTime() : NaN);
	        if (!this.isValid()) {
	            this._d = new Date(NaN);
	        }
	        // Prevent infinite loop in case updateOffset creates new moment
	        // objects.
	        if (updateInProgress === false) {
	            updateInProgress = true;
	            hooks.updateOffset(this);
	            updateInProgress = false;
	        }
	    }
	
	    function isMoment(obj) {
	        return obj instanceof Moment || obj != null && obj._isAMomentObject != null;
	    }
	
	    function warn(msg) {
	        if (hooks.suppressDeprecationWarnings === false && typeof console !== 'undefined' && console.warn) {
	            console.warn('Deprecation warning: ' + msg);
	        }
	    }
	
	    function deprecate(msg, fn) {
	        var firstTime = true;
	
	        return extend(function () {
	            if (hooks.deprecationHandler != null) {
	                hooks.deprecationHandler(null, msg);
	            }
	            if (firstTime) {
	                var args = [],
	                    arg,
	                    i,
	                    key,
	                    argLen = arguments.length;
	                for (i = 0; i < argLen; i++) {
	                    arg = '';
	                    if (_typeof(arguments[i]) === 'object') {
	                        arg += '\n[' + i + '] ';
	                        for (key in arguments[0]) {
	                            if (hasOwnProp(arguments[0], key)) {
	                                arg += key + ': ' + arguments[0][key] + ', ';
	                            }
	                        }
	                        arg = arg.slice(0, -2); // Remove trailing comma and space
	                    } else {
	                        arg = arguments[i];
	                    }
	                    args.push(arg);
	                }
	                warn(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + new Error().stack);
	                firstTime = false;
	            }
	            return fn.apply(this, arguments);
	        }, fn);
	    }
	
	    var deprecations = {};
	
	    function deprecateSimple(name, msg) {
	        if (hooks.deprecationHandler != null) {
	            hooks.deprecationHandler(name, msg);
	        }
	        if (!deprecations[name]) {
	            warn(msg);
	            deprecations[name] = true;
	        }
	    }
	
	    hooks.suppressDeprecationWarnings = false;
	    hooks.deprecationHandler = null;
	
	    function isFunction(input) {
	        return typeof Function !== 'undefined' && input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
	    }
	
	    function set(config) {
	        var prop, i;
	        for (i in config) {
	            if (hasOwnProp(config, i)) {
	                prop = config[i];
	                if (isFunction(prop)) {
	                    this[i] = prop;
	                } else {
	                    this['_' + i] = prop;
	                }
	            }
	        }
	        this._config = config;
	        // Lenient ordinal parsing accepts just a number in addition to
	        // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
	        // TODO: Remove "ordinalParse" fallback in next major release.
	        this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + '|' + /\d{1,2}/.source);
	    }
	
	    function mergeConfigs(parentConfig, childConfig) {
	        var res = extend({}, parentConfig),
	            prop;
	        for (prop in childConfig) {
	            if (hasOwnProp(childConfig, prop)) {
	                if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
	                    res[prop] = {};
	                    extend(res[prop], parentConfig[prop]);
	                    extend(res[prop], childConfig[prop]);
	                } else if (childConfig[prop] != null) {
	                    res[prop] = childConfig[prop];
	                } else {
	                    delete res[prop];
	                }
	            }
	        }
	        for (prop in parentConfig) {
	            if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject(parentConfig[prop])) {
	                // make sure changes to properties don't modify parent config
	                res[prop] = extend({}, res[prop]);
	            }
	        }
	        return res;
	    }
	
	    function Locale(config) {
	        if (config != null) {
	            this.set(config);
	        }
	    }
	
	    var keys;
	
	    if (Object.keys) {
	        keys = Object.keys;
	    } else {
	        keys = function keys(obj) {
	            var i,
	                res = [];
	            for (i in obj) {
	                if (hasOwnProp(obj, i)) {
	                    res.push(i);
	                }
	            }
	            return res;
	        };
	    }
	
	    var defaultCalendar = {
	        sameDay: '[Today at] LT',
	        nextDay: '[Tomorrow at] LT',
	        nextWeek: 'dddd [at] LT',
	        lastDay: '[Yesterday at] LT',
	        lastWeek: '[Last] dddd [at] LT',
	        sameElse: 'L'
	    };
	
	    function calendar(key, mom, now) {
	        var output = this._calendar[key] || this._calendar['sameElse'];
	        return isFunction(output) ? output.call(mom, now) : output;
	    }
	
	    function zeroFill(number, targetLength, forceSign) {
	        var absNumber = '' + Math.abs(number),
	            zerosToFill = targetLength - absNumber.length,
	            sign = number >= 0;
	        return (sign ? forceSign ? '+' : '' : '-') + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
	    }
	
	    var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
	        localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
	        formatFunctions = {},
	        formatTokenFunctions = {};
	
	    // token:    'M'
	    // padded:   ['MM', 2]
	    // ordinal:  'Mo'
	    // callback: function () { this.month() + 1 }
	    function addFormatToken(token, padded, ordinal, callback) {
	        var func = callback;
	        if (typeof callback === 'string') {
	            func = function func() {
	                return this[callback]();
	            };
	        }
	        if (token) {
	            formatTokenFunctions[token] = func;
	        }
	        if (padded) {
	            formatTokenFunctions[padded[0]] = function () {
	                return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
	            };
	        }
	        if (ordinal) {
	            formatTokenFunctions[ordinal] = function () {
	                return this.localeData().ordinal(func.apply(this, arguments), token);
	            };
	        }
	    }
	
	    function removeFormattingTokens(input) {
	        if (input.match(/\[[\s\S]/)) {
	            return input.replace(/^\[|\]$/g, '');
	        }
	        return input.replace(/\\/g, '');
	    }
	
	    function makeFormatFunction(format) {
	        var array = format.match(formattingTokens),
	            i,
	            length;
	
	        for (i = 0, length = array.length; i < length; i++) {
	            if (formatTokenFunctions[array[i]]) {
	                array[i] = formatTokenFunctions[array[i]];
	            } else {
	                array[i] = removeFormattingTokens(array[i]);
	            }
	        }
	
	        return function (mom) {
	            var output = '',
	                i;
	            for (i = 0; i < length; i++) {
	                output += isFunction(array[i]) ? array[i].call(mom, format) : array[i];
	            }
	            return output;
	        };
	    }
	
	    // format date using native date object
	    function formatMoment(m, format) {
	        if (!m.isValid()) {
	            return m.localeData().invalidDate();
	        }
	
	        format = expandFormat(format, m.localeData());
	        formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);
	
	        return formatFunctions[format](m);
	    }
	
	    function expandFormat(format, locale) {
	        var i = 5;
	
	        function replaceLongDateFormatTokens(input) {
	            return locale.longDateFormat(input) || input;
	        }
	
	        localFormattingTokens.lastIndex = 0;
	        while (i >= 0 && localFormattingTokens.test(format)) {
	            format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
	            localFormattingTokens.lastIndex = 0;
	            i -= 1;
	        }
	
	        return format;
	    }
	
	    var defaultLongDateFormat = {
	        LTS: 'h:mm:ss A',
	        LT: 'h:mm A',
	        L: 'MM/DD/YYYY',
	        LL: 'MMMM D, YYYY',
	        LLL: 'MMMM D, YYYY h:mm A',
	        LLLL: 'dddd, MMMM D, YYYY h:mm A'
	    };
	
	    function longDateFormat(key) {
	        var format = this._longDateFormat[key],
	            formatUpper = this._longDateFormat[key.toUpperCase()];
	
	        if (format || !formatUpper) {
	            return format;
	        }
	
	        this._longDateFormat[key] = formatUpper.match(formattingTokens).map(function (tok) {
	            if (tok === 'MMMM' || tok === 'MM' || tok === 'DD' || tok === 'dddd') {
	                return tok.slice(1);
	            }
	            return tok;
	        }).join('');
	
	        return this._longDateFormat[key];
	    }
	
	    var defaultInvalidDate = 'Invalid date';
	
	    function invalidDate() {
	        return this._invalidDate;
	    }
	
	    var defaultOrdinal = '%d',
	        defaultDayOfMonthOrdinalParse = /\d{1,2}/;
	
	    function ordinal(number) {
	        return this._ordinal.replace('%d', number);
	    }
	
	    var defaultRelativeTime = {
	        future: 'in %s',
	        past: '%s ago',
	        s: 'a few seconds',
	        ss: '%d seconds',
	        m: 'a minute',
	        mm: '%d minutes',
	        h: 'an hour',
	        hh: '%d hours',
	        d: 'a day',
	        dd: '%d days',
	        w: 'a week',
	        ww: '%d weeks',
	        M: 'a month',
	        MM: '%d months',
	        y: 'a year',
	        yy: '%d years'
	    };
	
	    function relativeTime(number, withoutSuffix, string, isFuture) {
	        var output = this._relativeTime[string];
	        return isFunction(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number);
	    }
	
	    function pastFuture(diff, output) {
	        var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
	        return isFunction(format) ? format(output) : format.replace(/%s/i, output);
	    }
	
	    var aliases = {
	        D: 'date',
	        dates: 'date',
	        date: 'date',
	        d: 'day',
	        days: 'day',
	        day: 'day',
	        e: 'weekday',
	        weekdays: 'weekday',
	        weekday: 'weekday',
	        E: 'isoWeekday',
	        isoweekdays: 'isoWeekday',
	        isoweekday: 'isoWeekday',
	        DDD: 'dayOfYear',
	        dayofyears: 'dayOfYear',
	        dayofyear: 'dayOfYear',
	        h: 'hour',
	        hours: 'hour',
	        hour: 'hour',
	        ms: 'millisecond',
	        milliseconds: 'millisecond',
	        millisecond: 'millisecond',
	        m: 'minute',
	        minutes: 'minute',
	        minute: 'minute',
	        M: 'month',
	        months: 'month',
	        month: 'month',
	        Q: 'quarter',
	        quarters: 'quarter',
	        quarter: 'quarter',
	        s: 'second',
	        seconds: 'second',
	        second: 'second',
	        gg: 'weekYear',
	        weekyears: 'weekYear',
	        weekyear: 'weekYear',
	        GG: 'isoWeekYear',
	        isoweekyears: 'isoWeekYear',
	        isoweekyear: 'isoWeekYear',
	        w: 'week',
	        weeks: 'week',
	        week: 'week',
	        W: 'isoWeek',
	        isoweeks: 'isoWeek',
	        isoweek: 'isoWeek',
	        y: 'year',
	        years: 'year',
	        year: 'year'
	    };
	
	    function normalizeUnits(units) {
	        return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;
	    }
	
	    function normalizeObjectUnits(inputObject) {
	        var normalizedInput = {},
	            normalizedProp,
	            prop;
	
	        for (prop in inputObject) {
	            if (hasOwnProp(inputObject, prop)) {
	                normalizedProp = normalizeUnits(prop);
	                if (normalizedProp) {
	                    normalizedInput[normalizedProp] = inputObject[prop];
	                }
	            }
	        }
	
	        return normalizedInput;
	    }
	
	    var priorities = {
	        date: 9,
	        day: 11,
	        weekday: 11,
	        isoWeekday: 11,
	        dayOfYear: 4,
	        hour: 13,
	        millisecond: 16,
	        minute: 14,
	        month: 8,
	        quarter: 7,
	        second: 15,
	        weekYear: 1,
	        isoWeekYear: 1,
	        week: 5,
	        isoWeek: 5,
	        year: 1
	    };
	
	    function getPrioritizedUnits(unitsObj) {
	        var units = [],
	            u;
	        for (u in unitsObj) {
	            if (hasOwnProp(unitsObj, u)) {
	                units.push({ unit: u, priority: priorities[u] });
	            }
	        }
	        units.sort(function (a, b) {
	            return a.priority - b.priority;
	        });
	        return units;
	    }
	
	    var match1 = /\d/,
	        //       0 - 9
	    match2 = /\d\d/,
	        //      00 - 99
	    match3 = /\d{3}/,
	        //     000 - 999
	    match4 = /\d{4}/,
	        //    0000 - 9999
	    match6 = /[+-]?\d{6}/,
	        // -999999 - 999999
	    match1to2 = /\d\d?/,
	        //       0 - 99
	    match3to4 = /\d\d\d\d?/,
	        //     999 - 9999
	    match5to6 = /\d\d\d\d\d\d?/,
	        //   99999 - 999999
	    match1to3 = /\d{1,3}/,
	        //       0 - 999
	    match1to4 = /\d{1,4}/,
	        //       0 - 9999
	    match1to6 = /[+-]?\d{1,6}/,
	        // -999999 - 999999
	    matchUnsigned = /\d+/,
	        //       0 - inf
	    matchSigned = /[+-]?\d+/,
	        //    -inf - inf
	    matchOffset = /Z|[+-]\d\d:?\d\d/gi,
	        // +00:00 -00:00 +0000 -0000 or Z
	    matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi,
	        // +00 -00 +00:00 -00:00 +0000 -0000 or Z
	    matchTimestamp = /[+-]?\d+(\.\d{1,3})?/,
	        // 123456789 123456789.123
	    // any word (or two) characters or numbers including two/three word month in arabic.
	    // includes scottish gaelic two word and hyphenated months
	    matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
	        match1to2NoLeadingZero = /^[1-9]\d?/,
	        //         1-99
	    match1to2HasZero = /^([1-9]\d|\d)/,
	        //           0-99
	    regexes;
	
	    regexes = {};
	
	    function addRegexToken(token, regex, strictRegex) {
	        regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {
	            return isStrict && strictRegex ? strictRegex : regex;
	        };
	    }
	
	    function getParseRegexForToken(token, config) {
	        if (!hasOwnProp(regexes, token)) {
	            return new RegExp(unescapeFormat(token));
	        }
	
	        return regexes[token](config._strict, config._locale);
	    }
	
	    // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
	    function unescapeFormat(s) {
	        return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
	            return p1 || p2 || p3 || p4;
	        }));
	    }
	
	    function regexEscape(s) {
	        return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
	    }
	
	    function absFloor(number) {
	        if (number < 0) {
	            // -0 -> 0
	            return Math.ceil(number) || 0;
	        } else {
	            return Math.floor(number);
	        }
	    }
	
	    function toInt(argumentForCoercion) {
	        var coercedNumber = +argumentForCoercion,
	            value = 0;
	
	        if (coercedNumber !== 0 && isFinite(coercedNumber)) {
	            value = absFloor(coercedNumber);
	        }
	
	        return value;
	    }
	
	    var tokens = {};
	
	    function addParseToken(token, callback) {
	        var i,
	            func = callback,
	            tokenLen;
	        if (typeof token === 'string') {
	            token = [token];
	        }
	        if (isNumber(callback)) {
	            func = function func(input, array) {
	                array[callback] = toInt(input);
	            };
	        }
	        tokenLen = token.length;
	        for (i = 0; i < tokenLen; i++) {
	            tokens[token[i]] = func;
	        }
	    }
	
	    function addWeekParseToken(token, callback) {
	        addParseToken(token, function (input, array, config, token) {
	            config._w = config._w || {};
	            callback(input, config._w, config, token);
	        });
	    }
	
	    function addTimeToArrayFromToken(token, input, config) {
	        if (input != null && hasOwnProp(tokens, token)) {
	            tokens[token](input, config._a, config, token);
	        }
	    }
	
	    function isLeapYear(year) {
	        return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
	    }
	
	    var YEAR = 0,
	        MONTH = 1,
	        DATE = 2,
	        HOUR = 3,
	        MINUTE = 4,
	        SECOND = 5,
	        MILLISECOND = 6,
	        WEEK = 7,
	        WEEKDAY = 8;
	
	    // FORMATTING
	
	    addFormatToken('Y', 0, 0, function () {
	        var y = this.year();
	        return y <= 9999 ? zeroFill(y, 4) : '+' + y;
	    });
	
	    addFormatToken(0, ['YY', 2], 0, function () {
	        return this.year() % 100;
	    });
	
	    addFormatToken(0, ['YYYY', 4], 0, 'year');
	    addFormatToken(0, ['YYYYY', 5], 0, 'year');
	    addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
	
	    // PARSING
	
	    addRegexToken('Y', matchSigned);
	    addRegexToken('YY', match1to2, match2);
	    addRegexToken('YYYY', match1to4, match4);
	    addRegexToken('YYYYY', match1to6, match6);
	    addRegexToken('YYYYYY', match1to6, match6);
	
	    addParseToken(['YYYYY', 'YYYYYY'], YEAR);
	    addParseToken('YYYY', function (input, array) {
	        array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
	    });
	    addParseToken('YY', function (input, array) {
	        array[YEAR] = hooks.parseTwoDigitYear(input);
	    });
	    addParseToken('Y', function (input, array) {
	        array[YEAR] = parseInt(input, 10);
	    });
	
	    // HELPERS
	
	    function daysInYear(year) {
	        return isLeapYear(year) ? 366 : 365;
	    }
	
	    // HOOKS
	
	    hooks.parseTwoDigitYear = function (input) {
	        return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
	    };
	
	    // MOMENTS
	
	    var getSetYear = makeGetSet('FullYear', true);
	
	    function getIsLeapYear() {
	        return isLeapYear(this.year());
	    }
	
	    function makeGetSet(unit, keepTime) {
	        return function (value) {
	            if (value != null) {
	                set$1(this, unit, value);
	                hooks.updateOffset(this, keepTime);
	                return this;
	            } else {
	                return get(this, unit);
	            }
	        };
	    }
	
	    function get(mom, unit) {
	        if (!mom.isValid()) {
	            return NaN;
	        }
	
	        var d = mom._d,
	            isUTC = mom._isUTC;
	
	        switch (unit) {
	            case 'Milliseconds':
	                return isUTC ? d.getUTCMilliseconds() : d.getMilliseconds();
	            case 'Seconds':
	                return isUTC ? d.getUTCSeconds() : d.getSeconds();
	            case 'Minutes':
	                return isUTC ? d.getUTCMinutes() : d.getMinutes();
	            case 'Hours':
	                return isUTC ? d.getUTCHours() : d.getHours();
	            case 'Date':
	                return isUTC ? d.getUTCDate() : d.getDate();
	            case 'Day':
	                return isUTC ? d.getUTCDay() : d.getDay();
	            case 'Month':
	                return isUTC ? d.getUTCMonth() : d.getMonth();
	            case 'FullYear':
	                return isUTC ? d.getUTCFullYear() : d.getFullYear();
	            default:
	                return NaN; // Just in case
	        }
	    }
	
	    function set$1(mom, unit, value) {
	        var d, isUTC, year, month, date;
	
	        if (!mom.isValid() || isNaN(value)) {
	            return;
	        }
	
	        d = mom._d;
	        isUTC = mom._isUTC;
	
	        switch (unit) {
	            case 'Milliseconds':
	                return void (isUTC ? d.setUTCMilliseconds(value) : d.setMilliseconds(value));
	            case 'Seconds':
	                return void (isUTC ? d.setUTCSeconds(value) : d.setSeconds(value));
	            case 'Minutes':
	                return void (isUTC ? d.setUTCMinutes(value) : d.setMinutes(value));
	            case 'Hours':
	                return void (isUTC ? d.setUTCHours(value) : d.setHours(value));
	            case 'Date':
	                return void (isUTC ? d.setUTCDate(value) : d.setDate(value));
	            // case 'Day': // Not real
	            //    return void (isUTC ? d.setUTCDay(value) : d.setDay(value));
	            // case 'Month': // Not used because we need to pass two variables
	            //     return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));
	            case 'FullYear':
	                break; // See below ...
	            default:
	                return; // Just in case
	        }
	
	        year = value;
	        month = mom.month();
	        date = mom.date();
	        date = date === 29 && month === 1 && !isLeapYear(year) ? 28 : date;
	        void (isUTC ? d.setUTCFullYear(year, month, date) : d.setFullYear(year, month, date));
	    }
	
	    // MOMENTS
	
	    function stringGet(units) {
	        units = normalizeUnits(units);
	        if (isFunction(this[units])) {
	            return this[units]();
	        }
	        return this;
	    }
	
	    function stringSet(units, value) {
	        if ((typeof units === 'undefined' ? 'undefined' : _typeof(units)) === 'object') {
	            units = normalizeObjectUnits(units);
	            var prioritized = getPrioritizedUnits(units),
	                i,
	                prioritizedLen = prioritized.length;
	            for (i = 0; i < prioritizedLen; i++) {
	                this[prioritized[i].unit](units[prioritized[i].unit]);
	            }
	        } else {
	            units = normalizeUnits(units);
	            if (isFunction(this[units])) {
	                return this[units](value);
	            }
	        }
	        return this;
	    }
	
	    function mod(n, x) {
	        return (n % x + x) % x;
	    }
	
	    var indexOf;
	
	    if (Array.prototype.indexOf) {
	        indexOf = Array.prototype.indexOf;
	    } else {
	        indexOf = function indexOf(o) {
	            // I know
	            var i;
	            for (i = 0; i < this.length; ++i) {
	                if (this[i] === o) {
	                    return i;
	                }
	            }
	            return -1;
	        };
	    }
	
	    function daysInMonth(year, month) {
	        if (isNaN(year) || isNaN(month)) {
	            return NaN;
	        }
	        var modMonth = mod(month, 12);
	        year += (month - modMonth) / 12;
	        return modMonth === 1 ? isLeapYear(year) ? 29 : 28 : 31 - modMonth % 7 % 2;
	    }
	
	    // FORMATTING
	
	    addFormatToken('M', ['MM', 2], 'Mo', function () {
	        return this.month() + 1;
	    });
	
	    addFormatToken('MMM', 0, 0, function (format) {
	        return this.localeData().monthsShort(this, format);
	    });
	
	    addFormatToken('MMMM', 0, 0, function (format) {
	        return this.localeData().months(this, format);
	    });
	
	    // PARSING
	
	    addRegexToken('M', match1to2, match1to2NoLeadingZero);
	    addRegexToken('MM', match1to2, match2);
	    addRegexToken('MMM', function (isStrict, locale) {
	        return locale.monthsShortRegex(isStrict);
	    });
	    addRegexToken('MMMM', function (isStrict, locale) {
	        return locale.monthsRegex(isStrict);
	    });
	
	    addParseToken(['M', 'MM'], function (input, array) {
	        array[MONTH] = toInt(input) - 1;
	    });
	
	    addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
	        var month = config._locale.monthsParse(input, token, config._strict);
	        // if we didn't find a month name, mark the date as invalid.
	        if (month != null) {
	            array[MONTH] = month;
	        } else {
	            getParsingFlags(config).invalidMonth = input;
	        }
	    });
	
	    // LOCALES
	
	    var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
	        defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
	        MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
	        defaultMonthsShortRegex = matchWord,
	        defaultMonthsRegex = matchWord;
	
	    function localeMonths(m, format) {
	        if (!m) {
	            return isArray(this._months) ? this._months : this._months['standalone'];
	        }
	        return isArray(this._months) ? this._months[m.month()] : this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()];
	    }
	
	    function localeMonthsShort(m, format) {
	        if (!m) {
	            return isArray(this._monthsShort) ? this._monthsShort : this._monthsShort['standalone'];
	        }
	        return isArray(this._monthsShort) ? this._monthsShort[m.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
	    }
	
	    function handleStrictParse(monthName, format, strict) {
	        var i,
	            ii,
	            mom,
	            llc = monthName.toLocaleLowerCase();
	        if (!this._monthsParse) {
	            // this is not used
	            this._monthsParse = [];
	            this._longMonthsParse = [];
	            this._shortMonthsParse = [];
	            for (i = 0; i < 12; ++i) {
	                mom = createUTC([2000, i]);
	                this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase();
	                this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
	            }
	        }
	
	        if (strict) {
	            if (format === 'MMM') {
	                ii = indexOf.call(this._shortMonthsParse, llc);
	                return ii !== -1 ? ii : null;
	            } else {
	                ii = indexOf.call(this._longMonthsParse, llc);
	                return ii !== -1 ? ii : null;
	            }
	        } else {
	            if (format === 'MMM') {
	                ii = indexOf.call(this._shortMonthsParse, llc);
	                if (ii !== -1) {
	                    return ii;
	                }
	                ii = indexOf.call(this._longMonthsParse, llc);
	                return ii !== -1 ? ii : null;
	            } else {
	                ii = indexOf.call(this._longMonthsParse, llc);
	                if (ii !== -1) {
	                    return ii;
	                }
	                ii = indexOf.call(this._shortMonthsParse, llc);
	                return ii !== -1 ? ii : null;
	            }
	        }
	    }
	
	    function localeMonthsParse(monthName, format, strict) {
	        var i, mom, regex;
	
	        if (this._monthsParseExact) {
	            return handleStrictParse.call(this, monthName, format, strict);
	        }
	
	        if (!this._monthsParse) {
	            this._monthsParse = [];
	            this._longMonthsParse = [];
	            this._shortMonthsParse = [];
	        }
	
	        // TODO: add sorting
	        // Sorting makes sure if one month (or abbr) is a prefix of another
	        // see sorting in computeMonthsParse
	        for (i = 0; i < 12; i++) {
	            // make the regex if we don't have it already
	            mom = createUTC([2000, i]);
	            if (strict && !this._longMonthsParse[i]) {
	                this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
	                this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');
	            }
	            if (!strict && !this._monthsParse[i]) {
	                regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
	                this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
	            }
	            // test the regex
	            if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {
	                return i;
	            } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {
	                return i;
	            } else if (!strict && this._monthsParse[i].test(monthName)) {
	                return i;
	            }
	        }
	    }
	
	    // MOMENTS
	
	    function setMonth(mom, value) {
	        if (!mom.isValid()) {
	            // No op
	            return mom;
	        }
	
	        if (typeof value === 'string') {
	            if (/^\d+$/.test(value)) {
	                value = toInt(value);
	            } else {
	                value = mom.localeData().monthsParse(value);
	                // TODO: Another silent failure?
	                if (!isNumber(value)) {
	                    return mom;
	                }
	            }
	        }
	
	        var month = value,
	            date = mom.date();
	
	        date = date < 29 ? date : Math.min(date, daysInMonth(mom.year(), month));
	        void (mom._isUTC ? mom._d.setUTCMonth(month, date) : mom._d.setMonth(month, date));
	        return mom;
	    }
	
	    function getSetMonth(value) {
	        if (value != null) {
	            setMonth(this, value);
	            hooks.updateOffset(this, true);
	            return this;
	        } else {
	            return get(this, 'Month');
	        }
	    }
	
	    function getDaysInMonth() {
	        return daysInMonth(this.year(), this.month());
	    }
	
	    function monthsShortRegex(isStrict) {
	        if (this._monthsParseExact) {
	            if (!hasOwnProp(this, '_monthsRegex')) {
	                computeMonthsParse.call(this);
	            }
	            if (isStrict) {
	                return this._monthsShortStrictRegex;
	            } else {
	                return this._monthsShortRegex;
	            }
	        } else {
	            if (!hasOwnProp(this, '_monthsShortRegex')) {
	                this._monthsShortRegex = defaultMonthsShortRegex;
	            }
	            return this._monthsShortStrictRegex && isStrict ? this._monthsShortStrictRegex : this._monthsShortRegex;
	        }
	    }
	
	    function monthsRegex(isStrict) {
	        if (this._monthsParseExact) {
	            if (!hasOwnProp(this, '_monthsRegex')) {
	                computeMonthsParse.call(this);
	            }
	            if (isStrict) {
	                return this._monthsStrictRegex;
	            } else {
	                return this._monthsRegex;
	            }
	        } else {
	            if (!hasOwnProp(this, '_monthsRegex')) {
	                this._monthsRegex = defaultMonthsRegex;
	            }
	            return this._monthsStrictRegex && isStrict ? this._monthsStrictRegex : this._monthsRegex;
	        }
	    }
	
	    function computeMonthsParse() {
	        function cmpLenRev(a, b) {
	            return b.length - a.length;
	        }
	
	        var shortPieces = [],
	            longPieces = [],
	            mixedPieces = [],
	            i,
	            mom,
	            shortP,
	            longP;
	        for (i = 0; i < 12; i++) {
	            // make the regex if we don't have it already
	            mom = createUTC([2000, i]);
	            shortP = regexEscape(this.monthsShort(mom, ''));
	            longP = regexEscape(this.months(mom, ''));
	            shortPieces.push(shortP);
	            longPieces.push(longP);
	            mixedPieces.push(longP);
	            mixedPieces.push(shortP);
	        }
	        // Sorting makes sure if one month (or abbr) is a prefix of another it
	        // will match the longer piece.
	        shortPieces.sort(cmpLenRev);
	        longPieces.sort(cmpLenRev);
	        mixedPieces.sort(cmpLenRev);
	
	        this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
	        this._monthsShortRegex = this._monthsRegex;
	        this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
	        this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
	    }
	
	    function createDate(y, m, d, h, M, s, ms) {
	        // can't just apply() to create a date:
	        // https://stackoverflow.com/q/181348
	        var date;
	        // the date constructor remaps years 0-99 to 1900-1999
	        if (y < 100 && y >= 0) {
	            // preserve leap years using a full 400 year cycle, then reset
	            date = new Date(y + 400, m, d, h, M, s, ms);
	            if (isFinite(date.getFullYear())) {
	                date.setFullYear(y);
	            }
	        } else {
	            date = new Date(y, m, d, h, M, s, ms);
	        }
	
	        return date;
	    }
	
	    function createUTCDate(y) {
	        var date, args;
	        // the Date.UTC function remaps years 0-99 to 1900-1999
	        if (y < 100 && y >= 0) {
	            args = Array.prototype.slice.call(arguments);
	            // preserve leap years using a full 400 year cycle, then reset
	            args[0] = y + 400;
	            date = new Date(Date.UTC.apply(null, args));
	            if (isFinite(date.getUTCFullYear())) {
	                date.setUTCFullYear(y);
	            }
	        } else {
	            date = new Date(Date.UTC.apply(null, arguments));
	        }
	
	        return date;
	    }
	
	    // start-of-first-week - start-of-year
	    function firstWeekOffset(year, dow, doy) {
	        var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
	        fwd = 7 + dow - doy,
	
	        // first-week day local weekday -- which local weekday is fwd
	        fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
	
	        return -fwdlw + fwd - 1;
	    }
	
	    // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
	    function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
	        var localWeekday = (7 + weekday - dow) % 7,
	            weekOffset = firstWeekOffset(year, dow, doy),
	            dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
	            resYear,
	            resDayOfYear;
	
	        if (dayOfYear <= 0) {
	            resYear = year - 1;
	            resDayOfYear = daysInYear(resYear) + dayOfYear;
	        } else if (dayOfYear > daysInYear(year)) {
	            resYear = year + 1;
	            resDayOfYear = dayOfYear - daysInYear(year);
	        } else {
	            resYear = year;
	            resDayOfYear = dayOfYear;
	        }
	
	        return {
	            year: resYear,
	            dayOfYear: resDayOfYear
	        };
	    }
	
	    function weekOfYear(mom, dow, doy) {
	        var weekOffset = firstWeekOffset(mom.year(), dow, doy),
	            week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
	            resWeek,
	            resYear;
	
	        if (week < 1) {
	            resYear = mom.year() - 1;
	            resWeek = week + weeksInYear(resYear, dow, doy);
	        } else if (week > weeksInYear(mom.year(), dow, doy)) {
	            resWeek = week - weeksInYear(mom.year(), dow, doy);
	            resYear = mom.year() + 1;
	        } else {
	            resYear = mom.year();
	            resWeek = week;
	        }
	
	        return {
	            week: resWeek,
	            year: resYear
	        };
	    }
	
	    function weeksInYear(year, dow, doy) {
	        var weekOffset = firstWeekOffset(year, dow, doy),
	            weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
	        return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
	    }
	
	    // FORMATTING
	
	    addFormatToken('w', ['ww', 2], 'wo', 'week');
	    addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
	
	    // PARSING
	
	    addRegexToken('w', match1to2, match1to2NoLeadingZero);
	    addRegexToken('ww', match1to2, match2);
	    addRegexToken('W', match1to2, match1to2NoLeadingZero);
	    addRegexToken('WW', match1to2, match2);
	
	    addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
	        week[token.substr(0, 1)] = toInt(input);
	    });
	
	    // HELPERS
	
	    // LOCALES
	
	    function localeWeek(mom) {
	        return weekOfYear(mom, this._week.dow, this._week.doy).week;
	    }
	
	    var defaultLocaleWeek = {
	        dow: 0, // Sunday is the first day of the week.
	        doy: 6 // The week that contains Jan 6th is the first week of the year.
	    };
	
	    function localeFirstDayOfWeek() {
	        return this._week.dow;
	    }
	
	    function localeFirstDayOfYear() {
	        return this._week.doy;
	    }
	
	    // MOMENTS
	
	    function getSetWeek(input) {
	        var week = this.localeData().week(this);
	        return input == null ? week : this.add((input - week) * 7, 'd');
	    }
	
	    function getSetISOWeek(input) {
	        var week = weekOfYear(this, 1, 4).week;
	        return input == null ? week : this.add((input - week) * 7, 'd');
	    }
	
	    // FORMATTING
	
	    addFormatToken('d', 0, 'do', 'day');
	
	    addFormatToken('dd', 0, 0, function (format) {
	        return this.localeData().weekdaysMin(this, format);
	    });
	
	    addFormatToken('ddd', 0, 0, function (format) {
	        return this.localeData().weekdaysShort(this, format);
	    });
	
	    addFormatToken('dddd', 0, 0, function (format) {
	        return this.localeData().weekdays(this, format);
	    });
	
	    addFormatToken('e', 0, 0, 'weekday');
	    addFormatToken('E', 0, 0, 'isoWeekday');
	
	    // PARSING
	
	    addRegexToken('d', match1to2);
	    addRegexToken('e', match1to2);
	    addRegexToken('E', match1to2);
	    addRegexToken('dd', function (isStrict, locale) {
	        return locale.weekdaysMinRegex(isStrict);
	    });
	    addRegexToken('ddd', function (isStrict, locale) {
	        return locale.weekdaysShortRegex(isStrict);
	    });
	    addRegexToken('dddd', function (isStrict, locale) {
	        return locale.weekdaysRegex(isStrict);
	    });
	
	    addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
	        var weekday = config._locale.weekdaysParse(input, token, config._strict);
	        // if we didn't get a weekday name, mark the date as invalid
	        if (weekday != null) {
	            week.d = weekday;
	        } else {
	            getParsingFlags(config).invalidWeekday = input;
	        }
	    });
	
	    addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
	        week[token] = toInt(input);
	    });
	
	    // HELPERS
	
	    function parseWeekday(input, locale) {
	        if (typeof input !== 'string') {
	            return input;
	        }
	
	        if (!isNaN(input)) {
	            return parseInt(input, 10);
	        }
	
	        input = locale.weekdaysParse(input);
	        if (typeof input === 'number') {
	            return input;
	        }
	
	        return null;
	    }
	
	    function parseIsoWeekday(input, locale) {
	        if (typeof input === 'string') {
	            return locale.weekdaysParse(input) % 7 || 7;
	        }
	        return isNaN(input) ? null : input;
	    }
	
	    // LOCALES
	    function shiftWeekdays(ws, n) {
	        return ws.slice(n, 7).concat(ws.slice(0, n));
	    }
	
	    var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
	        defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
	        defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
	        defaultWeekdaysRegex = matchWord,
	        defaultWeekdaysShortRegex = matchWord,
	        defaultWeekdaysMinRegex = matchWord;
	
	    function localeWeekdays(m, format) {
	        var weekdays = isArray(this._weekdays) ? this._weekdays : this._weekdays[m && m !== true && this._weekdays.isFormat.test(format) ? 'format' : 'standalone'];
	        return m === true ? shiftWeekdays(weekdays, this._week.dow) : m ? weekdays[m.day()] : weekdays;
	    }
	
	    function localeWeekdaysShort(m) {
	        return m === true ? shiftWeekdays(this._weekdaysShort, this._week.dow) : m ? this._weekdaysShort[m.day()] : this._weekdaysShort;
	    }
	
	    function localeWeekdaysMin(m) {
	        return m === true ? shiftWeekdays(this._weekdaysMin, this._week.dow) : m ? this._weekdaysMin[m.day()] : this._weekdaysMin;
	    }
	
	    function handleStrictParse$1(weekdayName, format, strict) {
	        var i,
	            ii,
	            mom,
	            llc = weekdayName.toLocaleLowerCase();
	        if (!this._weekdaysParse) {
	            this._weekdaysParse = [];
	            this._shortWeekdaysParse = [];
	            this._minWeekdaysParse = [];
	
	            for (i = 0; i < 7; ++i) {
	                mom = createUTC([2000, 1]).day(i);
	                this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase();
	                this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase();
	                this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
	            }
	        }
	
	        if (strict) {
	            if (format === 'dddd') {
	                ii = indexOf.call(this._weekdaysParse, llc);
	                return ii !== -1 ? ii : null;
	            } else if (format === 'ddd') {
	                ii = indexOf.call(this._shortWeekdaysParse, llc);
	                return ii !== -1 ? ii : null;
	            } else {
	                ii = indexOf.call(this._minWeekdaysParse, llc);
	                return ii !== -1 ? ii : null;
	            }
	        } else {
	            if (format === 'dddd') {
	                ii = indexOf.call(this._weekdaysParse, llc);
	                if (ii !== -1) {
	                    return ii;
	                }
	                ii = indexOf.call(this._shortWeekdaysParse, llc);
	                if (ii !== -1) {
	                    return ii;
	                }
	                ii = indexOf.call(this._minWeekdaysParse, llc);
	                return ii !== -1 ? ii : null;
	            } else if (format === 'ddd') {
	                ii = indexOf.call(this._shortWeekdaysParse, llc);
	                if (ii !== -1) {
	                    return ii;
	                }
	                ii = indexOf.call(this._weekdaysParse, llc);
	                if (ii !== -1) {
	                    return ii;
	                }
	                ii = indexOf.call(this._minWeekdaysParse, llc);
	                return ii !== -1 ? ii : null;
	            } else {
	                ii = indexOf.call(this._minWeekdaysParse, llc);
	                if (ii !== -1) {
	                    return ii;
	                }
	                ii = indexOf.call(this._weekdaysParse, llc);
	                if (ii !== -1) {
	                    return ii;
	                }
	                ii = indexOf.call(this._shortWeekdaysParse, llc);
	                return ii !== -1 ? ii : null;
	            }
	        }
	    }
	
	    function localeWeekdaysParse(weekdayName, format, strict) {
	        var i, mom, regex;
	
	        if (this._weekdaysParseExact) {
	            return handleStrictParse$1.call(this, weekdayName, format, strict);
	        }
	
	        if (!this._weekdaysParse) {
	            this._weekdaysParse = [];
	            this._minWeekdaysParse = [];
	            this._shortWeekdaysParse = [];
	            this._fullWeekdaysParse = [];
	        }
	
	        for (i = 0; i < 7; i++) {
	            // make the regex if we don't have it already
	
	            mom = createUTC([2000, 1]).day(i);
	            if (strict && !this._fullWeekdaysParse[i]) {
	                this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\\.?') + '$', 'i');
	                this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$', 'i');
	                this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$', 'i');
	            }
	            if (!this._weekdaysParse[i]) {
	                regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
	                this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
	            }
	            // test the regex
	            if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) {
	                return i;
	            } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) {
	                return i;
	            } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) {
	                return i;
	            } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
	                return i;
	            }
	        }
	    }
	
	    // MOMENTS
	
	    function getSetDayOfWeek(input) {
	        if (!this.isValid()) {
	            return input != null ? this : NaN;
	        }
	
	        var day = get(this, 'Day');
	        if (input != null) {
	            input = parseWeekday(input, this.localeData());
	            return this.add(input - day, 'd');
	        } else {
	            return day;
	        }
	    }
	
	    function getSetLocaleDayOfWeek(input) {
	        if (!this.isValid()) {
	            return input != null ? this : NaN;
	        }
	        var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
	        return input == null ? weekday : this.add(input - weekday, 'd');
	    }
	
	    function getSetISODayOfWeek(input) {
	        if (!this.isValid()) {
	            return input != null ? this : NaN;
	        }
	
	        // behaves the same as moment#day except
	        // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
	        // as a setter, sunday should belong to the previous week.
	
	        if (input != null) {
	            var weekday = parseIsoWeekday(input, this.localeData());
	            return this.day(this.day() % 7 ? weekday : weekday - 7);
	        } else {
	            return this.day() || 7;
	        }
	    }
	
	    function weekdaysRegex(isStrict) {
	        if (this._weekdaysParseExact) {
	            if (!hasOwnProp(this, '_weekdaysRegex')) {
	                computeWeekdaysParse.call(this);
	            }
	            if (isStrict) {
	                return this._weekdaysStrictRegex;
	            } else {
	                return this._weekdaysRegex;
	            }
	        } else {
	            if (!hasOwnProp(this, '_weekdaysRegex')) {
	                this._weekdaysRegex = defaultWeekdaysRegex;
	            }
	            return this._weekdaysStrictRegex && isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex;
	        }
	    }
	
	    function weekdaysShortRegex(isStrict) {
	        if (this._weekdaysParseExact) {
	            if (!hasOwnProp(this, '_weekdaysRegex')) {
	                computeWeekdaysParse.call(this);
	            }
	            if (isStrict) {
	                return this._weekdaysShortStrictRegex;
	            } else {
	                return this._weekdaysShortRegex;
	            }
	        } else {
	            if (!hasOwnProp(this, '_weekdaysShortRegex')) {
	                this._weekdaysShortRegex = defaultWeekdaysShortRegex;
	            }
	            return this._weekdaysShortStrictRegex && isStrict ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
	        }
	    }
	
	    function weekdaysMinRegex(isStrict) {
	        if (this._weekdaysParseExact) {
	            if (!hasOwnProp(this, '_weekdaysRegex')) {
	                computeWeekdaysParse.call(this);
	            }
	            if (isStrict) {
	                return this._weekdaysMinStrictRegex;
	            } else {
	                return this._weekdaysMinRegex;
	            }
	        } else {
	            if (!hasOwnProp(this, '_weekdaysMinRegex')) {
	                this._weekdaysMinRegex = defaultWeekdaysMinRegex;
	            }
	            return this._weekdaysMinStrictRegex && isStrict ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
	        }
	    }
	
	    function computeWeekdaysParse() {
	        function cmpLenRev(a, b) {
	            return b.length - a.length;
	        }
	
	        var minPieces = [],
	            shortPieces = [],
	            longPieces = [],
	            mixedPieces = [],
	            i,
	            mom,
	            minp,
	            shortp,
	            longp;
	        for (i = 0; i < 7; i++) {
	            // make the regex if we don't have it already
	            mom = createUTC([2000, 1]).day(i);
	            minp = regexEscape(this.weekdaysMin(mom, ''));
	            shortp = regexEscape(this.weekdaysShort(mom, ''));
	            longp = regexEscape(this.weekdays(mom, ''));
	            minPieces.push(minp);
	            shortPieces.push(shortp);
	            longPieces.push(longp);
	            mixedPieces.push(minp);
	            mixedPieces.push(shortp);
	            mixedPieces.push(longp);
	        }
	        // Sorting makes sure if one weekday (or abbr) is a prefix of another it
	        // will match the longer piece.
	        minPieces.sort(cmpLenRev);
	        shortPieces.sort(cmpLenRev);
	        longPieces.sort(cmpLenRev);
	        mixedPieces.sort(cmpLenRev);
	
	        this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
	        this._weekdaysShortRegex = this._weekdaysRegex;
	        this._weekdaysMinRegex = this._weekdaysRegex;
	
	        this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
	        this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
	        this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i');
	    }
	
	    // FORMATTING
	
	    function hFormat() {
	        return this.hours() % 12 || 12;
	    }
	
	    function kFormat() {
	        return this.hours() || 24;
	    }
	
	    addFormatToken('H', ['HH', 2], 0, 'hour');
	    addFormatToken('h', ['hh', 2], 0, hFormat);
	    addFormatToken('k', ['kk', 2], 0, kFormat);
	
	    addFormatToken('hmm', 0, 0, function () {
	        return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
	    });
	
	    addFormatToken('hmmss', 0, 0, function () {
	        return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2);
	    });
	
	    addFormatToken('Hmm', 0, 0, function () {
	        return '' + this.hours() + zeroFill(this.minutes(), 2);
	    });
	
	    addFormatToken('Hmmss', 0, 0, function () {
	        return '' + this.hours() + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2);
	    });
	
	    function meridiem(token, lowercase) {
	        addFormatToken(token, 0, 0, function () {
	            return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
	        });
	    }
	
	    meridiem('a', true);
	    meridiem('A', false);
	
	    // PARSING
	
	    function matchMeridiem(isStrict, locale) {
	        return locale._meridiemParse;
	    }
	
	    addRegexToken('a', matchMeridiem);
	    addRegexToken('A', matchMeridiem);
	    addRegexToken('H', match1to2, match1to2HasZero);
	    addRegexToken('h', match1to2, match1to2NoLeadingZero);
	    addRegexToken('k', match1to2, match1to2NoLeadingZero);
	    addRegexToken('HH', match1to2, match2);
	    addRegexToken('hh', match1to2, match2);
	    addRegexToken('kk', match1to2, match2);
	
	    addRegexToken('hmm', match3to4);
	    addRegexToken('hmmss', match5to6);
	    addRegexToken('Hmm', match3to4);
	    addRegexToken('Hmmss', match5to6);
	
	    addParseToken(['H', 'HH'], HOUR);
	    addParseToken(['k', 'kk'], function (input, array, config) {
	        var kInput = toInt(input);
	        array[HOUR] = kInput === 24 ? 0 : kInput;
	    });
	    addParseToken(['a', 'A'], function (input, array, config) {
	        config._isPm = config._locale.isPM(input);
	        config._meridiem = input;
	    });
	    addParseToken(['h', 'hh'], function (input, array, config) {
	        array[HOUR] = toInt(input);
	        getParsingFlags(config).bigHour = true;
	    });
	    addParseToken('hmm', function (input, array, config) {
	        var pos = input.length - 2;
	        array[HOUR] = toInt(input.substr(0, pos));
	        array[MINUTE] = toInt(input.substr(pos));
	        getParsingFlags(config).bigHour = true;
	    });
	    addParseToken('hmmss', function (input, array, config) {
	        var pos1 = input.length - 4,
	            pos2 = input.length - 2;
	        array[HOUR] = toInt(input.substr(0, pos1));
	        array[MINUTE] = toInt(input.substr(pos1, 2));
	        array[SECOND] = toInt(input.substr(pos2));
	        getParsingFlags(config).bigHour = true;
	    });
	    addParseToken('Hmm', function (input, array, config) {
	        var pos = input.length - 2;
	        array[HOUR] = toInt(input.substr(0, pos));
	        array[MINUTE] = toInt(input.substr(pos));
	    });
	    addParseToken('Hmmss', function (input, array, config) {
	        var pos1 = input.length - 4,
	            pos2 = input.length - 2;
	        array[HOUR] = toInt(input.substr(0, pos1));
	        array[MINUTE] = toInt(input.substr(pos1, 2));
	        array[SECOND] = toInt(input.substr(pos2));
	    });
	
	    // LOCALES
	
	    function localeIsPM(input) {
	        // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
	        // Using charAt should be more compatible.
	        return (input + '').toLowerCase().charAt(0) === 'p';
	    }
	
	    var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i,
	
	    // Setting the hour should keep the time, because the user explicitly
	    // specified which hour they want. So trying to maintain the same hour (in
	    // a new timezone) makes sense. Adding/subtracting hours does not follow
	    // this rule.
	    getSetHour = makeGetSet('Hours', true);
	
	    function localeMeridiem(hours, minutes, isLower) {
	        if (hours > 11) {
	            return isLower ? 'pm' : 'PM';
	        } else {
	            return isLower ? 'am' : 'AM';
	        }
	    }
	
	    var baseConfig = {
	        calendar: defaultCalendar,
	        longDateFormat: defaultLongDateFormat,
	        invalidDate: defaultInvalidDate,
	        ordinal: defaultOrdinal,
	        dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
	        relativeTime: defaultRelativeTime,
	
	        months: defaultLocaleMonths,
	        monthsShort: defaultLocaleMonthsShort,
	
	        week: defaultLocaleWeek,
	
	        weekdays: defaultLocaleWeekdays,
	        weekdaysMin: defaultLocaleWeekdaysMin,
	        weekdaysShort: defaultLocaleWeekdaysShort,
	
	        meridiemParse: defaultLocaleMeridiemParse
	    };
	
	    // internal storage for locale config files
	    var locales = {},
	        localeFamilies = {},
	        globalLocale;
	
	    function commonPrefix(arr1, arr2) {
	        var i,
	            minl = Math.min(arr1.length, arr2.length);
	        for (i = 0; i < minl; i += 1) {
	            if (arr1[i] !== arr2[i]) {
	                return i;
	            }
	        }
	        return minl;
	    }
	
	    function normalizeLocale(key) {
	        return key ? key.toLowerCase().replace('_', '-') : key;
	    }
	
	    // pick the locale from the array
	    // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
	    // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
	    function chooseLocale(names) {
	        var i = 0,
	            j,
	            next,
	            locale,
	            split;
	
	        while (i < names.length) {
	            split = normalizeLocale(names[i]).split('-');
	            j = split.length;
	            next = normalizeLocale(names[i + 1]);
	            next = next ? next.split('-') : null;
	            while (j > 0) {
	                locale = loadLocale(split.slice(0, j).join('-'));
	                if (locale) {
	                    return locale;
	                }
	                if (next && next.length >= j && commonPrefix(split, next) >= j - 1) {
	                    //the next array item is better than a shallower substring of this one
	                    break;
	                }
	                j--;
	            }
	            i++;
	        }
	        return globalLocale;
	    }
	
	    function isLocaleNameSane(name) {
	        // Prevent names that look like filesystem paths, i.e contain '/' or '\'
	        // Ensure name is available and function returns boolean
	        return !!(name && name.match('^[^/\\\\]*$'));
	    }
	
	    function loadLocale(name) {
	        var oldLocale = null,
	            aliasedRequire;
	        // TODO: Find a better way to register and load all the locales in Node
	        if (locales[name] === undefined && typeof module !== 'undefined' && module && module.exports && isLocaleNameSane(name)) {
	            try {
	                oldLocale = globalLocale._abbr;
	                aliasedRequire = require;
	                __webpack_require__(916)("./" + name);
	                getSetGlobalLocale(oldLocale);
	            } catch (e) {
	                // mark as not found to avoid repeating expensive file require call causing high CPU
	                // when trying to find en-US, en_US, en-us for every format call
	                locales[name] = null; // null means not found
	            }
	        }
	        return locales[name];
	    }
	
	    // This function will load locale and then set the global locale.  If
	    // no arguments are passed in, it will simply return the current global
	    // locale key.
	    function getSetGlobalLocale(key, values) {
	        var data;
	        if (key) {
	            if (isUndefined(values)) {
	                data = getLocale(key);
	            } else {
	                data = defineLocale(key, values);
	            }
	
	            if (data) {
	                // moment.duration._locale = moment._locale = data;
	                globalLocale = data;
	            } else {
	                if (typeof console !== 'undefined' && console.warn) {
	                    //warn user if arguments are passed but the locale could not be set
	                    console.warn('Locale ' + key + ' not found. Did you forget to load it?');
	                }
	            }
	        }
	
	        return globalLocale._abbr;
	    }
	
	    function defineLocale(name, config) {
	        if (config !== null) {
	            var locale,
	                parentConfig = baseConfig;
	            config.abbr = name;
	            if (locales[name] != null) {
	                deprecateSimple('defineLocaleOverride', 'use moment.updateLocale(localeName, config) to change ' + 'an existing locale. moment.defineLocale(localeName, ' + 'config) should only be used for creating a new locale ' + 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');
	                parentConfig = locales[name]._config;
	            } else if (config.parentLocale != null) {
	                if (locales[config.parentLocale] != null) {
	                    parentConfig = locales[config.parentLocale]._config;
	                } else {
	                    locale = loadLocale(config.parentLocale);
	                    if (locale != null) {
	                        parentConfig = locale._config;
	                    } else {
	                        if (!localeFamilies[config.parentLocale]) {
	                            localeFamilies[config.parentLocale] = [];
	                        }
	                        localeFamilies[config.parentLocale].push({
	                            name: name,
	                            config: config
	                        });
	                        return null;
	                    }
	                }
	            }
	            locales[name] = new Locale(mergeConfigs(parentConfig, config));
	
	            if (localeFamilies[name]) {
	                localeFamilies[name].forEach(function (x) {
	                    defineLocale(x.name, x.config);
	                });
	            }
	
	            // backwards compat for now: also set the locale
	            // make sure we set the locale AFTER all child locales have been
	            // created, so we won't end up with the child locale set.
	            getSetGlobalLocale(name);
	
	            return locales[name];
	        } else {
	            // useful for testing
	            delete locales[name];
	            return null;
	        }
	    }
	
	    function updateLocale(name, config) {
	        if (config != null) {
	            var locale,
	                tmpLocale,
	                parentConfig = baseConfig;
	
	            if (locales[name] != null && locales[name].parentLocale != null) {
	                // Update existing child locale in-place to avoid memory-leaks
	                locales[name].set(mergeConfigs(locales[name]._config, config));
	            } else {
	                // MERGE
	                tmpLocale = loadLocale(name);
	                if (tmpLocale != null) {
	                    parentConfig = tmpLocale._config;
	                }
	                config = mergeConfigs(parentConfig, config);
	                if (tmpLocale == null) {
	                    // updateLocale is called for creating a new locale
	                    // Set abbr so it will have a name (getters return
	                    // undefined otherwise).
	                    config.abbr = name;
	                }
	                locale = new Locale(config);
	                locale.parentLocale = locales[name];
	                locales[name] = locale;
	            }
	
	            // backwards compat for now: also set the locale
	            getSetGlobalLocale(name);
	        } else {
	            // pass null for config to unupdate, useful for tests
	            if (locales[name] != null) {
	                if (locales[name].parentLocale != null) {
	                    locales[name] = locales[name].parentLocale;
	                    if (name === getSetGlobalLocale()) {
	                        getSetGlobalLocale(name);
	                    }
	                } else if (locales[name] != null) {
	                    delete locales[name];
	                }
	            }
	        }
	        return locales[name];
	    }
	
	    // returns locale data
	    function getLocale(key) {
	        var locale;
	
	        if (key && key._locale && key._locale._abbr) {
	            key = key._locale._abbr;
	        }
	
	        if (!key) {
	            return globalLocale;
	        }
	
	        if (!isArray(key)) {
	            //short-circuit everything else
	            locale = loadLocale(key);
	            if (locale) {
	                return locale;
	            }
	            key = [key];
	        }
	
	        return chooseLocale(key);
	    }
	
	    function listLocales() {
	        return keys(locales);
	    }
	
	    function checkOverflow(m) {
	        var overflow,
	            a = m._a;
	
	        if (a && getParsingFlags(m).overflow === -2) {
	            overflow = a[MONTH] < 0 || a[MONTH] > 11 ? MONTH : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE : a[HOUR] < 0 || a[HOUR] > 24 || a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0) ? HOUR : a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE : a[SECOND] < 0 || a[SECOND] > 59 ? SECOND : a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND : -1;
	
	            if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
	                overflow = DATE;
	            }
	            if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
	                overflow = WEEK;
	            }
	            if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
	                overflow = WEEKDAY;
	            }
	
	            getParsingFlags(m).overflow = overflow;
	        }
	
	        return m;
	    }
	
	    // iso 8601 regex
	    // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
	    var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
	        basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
	        tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
	        isoDates = [['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/], ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/], ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/], ['GGGG-[W]WW', /\d{4}-W\d\d/, false], ['YYYY-DDD', /\d{4}-\d{3}/], ['YYYY-MM', /\d{4}-\d\d/, false], ['YYYYYYMMDD', /[+-]\d{10}/], ['YYYYMMDD', /\d{8}/], ['GGGG[W]WWE', /\d{4}W\d{3}/], ['GGGG[W]WW', /\d{4}W\d{2}/, false], ['YYYYDDD', /\d{7}/], ['YYYYMM', /\d{6}/, false], ['YYYY', /\d{4}/, false]],
	
	    // iso time formats and regexes
	    isoTimes = [['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/], ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/], ['HH:mm:ss', /\d\d:\d\d:\d\d/], ['HH:mm', /\d\d:\d\d/], ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/], ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/], ['HHmmss', /\d\d\d\d\d\d/], ['HHmm', /\d\d\d\d/], ['HH', /\d\d/]],
	        aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
	
	    // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
	    rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,
	        obsOffsets = {
	        UT: 0,
	        GMT: 0,
	        EDT: -4 * 60,
	        EST: -5 * 60,
	        CDT: -5 * 60,
	        CST: -6 * 60,
	        MDT: -6 * 60,
	        MST: -7 * 60,
	        PDT: -7 * 60,
	        PST: -8 * 60
	    };
	
	    // date from iso format
	    function configFromISO(config) {
	        var i,
	            l,
	            string = config._i,
	            match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
	            allowTime,
	            dateFormat,
	            timeFormat,
	            tzFormat,
	            isoDatesLen = isoDates.length,
	            isoTimesLen = isoTimes.length;
	
	        if (match) {
	            getParsingFlags(config).iso = true;
	            for (i = 0, l = isoDatesLen; i < l; i++) {
	                if (isoDates[i][1].exec(match[1])) {
	                    dateFormat = isoDates[i][0];
	                    allowTime = isoDates[i][2] !== false;
	                    break;
	                }
	            }
	            if (dateFormat == null) {
	                config._isValid = false;
	                return;
	            }
	            if (match[3]) {
	                for (i = 0, l = isoTimesLen; i < l; i++) {
	                    if (isoTimes[i][1].exec(match[3])) {
	                        // match[2] should be 'T' or space
	                        timeFormat = (match[2] || ' ') + isoTimes[i][0];
	                        break;
	                    }
	                }
	                if (timeFormat == null) {
	                    config._isValid = false;
	                    return;
	                }
	            }
	            if (!allowTime && timeFormat != null) {
	                config._isValid = false;
	                return;
	            }
	            if (match[4]) {
	                if (tzRegex.exec(match[4])) {
	                    tzFormat = 'Z';
	                } else {
	                    config._isValid = false;
	                    return;
	                }
	            }
	            config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
	            configFromStringAndFormat(config);
	        } else {
	            config._isValid = false;
	        }
	    }
	
	    function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {
	        var result = [untruncateYear(yearStr), defaultLocaleMonthsShort.indexOf(monthStr), parseInt(dayStr, 10), parseInt(hourStr, 10), parseInt(minuteStr, 10)];
	
	        if (secondStr) {
	            result.push(parseInt(secondStr, 10));
	        }
	
	        return result;
	    }
	
	    function untruncateYear(yearStr) {
	        var year = parseInt(yearStr, 10);
	        if (year <= 49) {
	            return 2000 + year;
	        } else if (year <= 999) {
	            return 1900 + year;
	        }
	        return year;
	    }
	
	    function preprocessRFC2822(s) {
	        // Remove comments and folding whitespace and replace multiple-spaces with a single space
	        return s.replace(/\([^()]*\)|[\n\t]/g, ' ').replace(/(\s\s+)/g, ' ').replace(/^\s\s*/, '').replace(/\s\s*$/, '');
	    }
	
	    function checkWeekday(weekdayStr, parsedInput, config) {
	        if (weekdayStr) {
	            // TODO: Replace the vanilla JS Date object with an independent day-of-week check.
	            var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
	                weekdayActual = new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay();
	            if (weekdayProvided !== weekdayActual) {
	                getParsingFlags(config).weekdayMismatch = true;
	                config._isValid = false;
	                return false;
	            }
	        }
	        return true;
	    }
	
	    function calculateOffset(obsOffset, militaryOffset, numOffset) {
	        if (obsOffset) {
	            return obsOffsets[obsOffset];
	        } else if (militaryOffset) {
	            // the only allowed military tz is Z
	            return 0;
	        } else {
	            var hm = parseInt(numOffset, 10),
	                m = hm % 100,
	                h = (hm - m) / 100;
	            return h * 60 + m;
	        }
	    }
	
	    // date and time from ref 2822 format
	    function configFromRFC2822(config) {
	        var match = rfc2822.exec(preprocessRFC2822(config._i)),
	            parsedArray;
	        if (match) {
	            parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]);
	            if (!checkWeekday(match[1], parsedArray, config)) {
	                return;
	            }
	
	            config._a = parsedArray;
	            config._tzm = calculateOffset(match[8], match[9], match[10]);
	
	            config._d = createUTCDate.apply(null, config._a);
	            config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
	
	            getParsingFlags(config).rfc2822 = true;
	        } else {
	            config._isValid = false;
	        }
	    }
	
	    // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
	    function configFromString(config) {
	        var matched = aspNetJsonRegex.exec(config._i);
	        if (matched !== null) {
	            config._d = new Date(+matched[1]);
	            return;
	        }
	
	        configFromISO(config);
	        if (config._isValid === false) {
	            delete config._isValid;
	        } else {
	            return;
	        }
	
	        configFromRFC2822(config);
	        if (config._isValid === false) {
	            delete config._isValid;
	        } else {
	            return;
	        }
	
	        if (config._strict) {
	            config._isValid = false;
	        } else {
	            // Final attempt, use Input Fallback
	            hooks.createFromInputFallback(config);
	        }
	    }
	
	    hooks.createFromInputFallback = deprecate('value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' + 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' + 'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.', function (config) {
	        config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
	    });
	
	    // Pick the first defined of two or three arguments.
	    function defaults(a, b, c) {
	        if (a != null) {
	            return a;
	        }
	        if (b != null) {
	            return b;
	        }
	        return c;
	    }
	
	    function currentDateArray(config) {
	        // hooks is actually the exported moment object
	        var nowValue = new Date(hooks.now());
	        if (config._useUTC) {
	            return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];
	        }
	        return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
	    }
	
	    // convert an array to a date.
	    // the array should mirror the parameters below
	    // note: all values past the year are optional and will default to the lowest possible value.
	    // [year, month, day , hour, minute, second, millisecond]
	    function configFromArray(config) {
	        var i,
	            date,
	            input = [],
	            currentDate,
	            expectedWeekday,
	            yearToUse;
	
	        if (config._d) {
	            return;
	        }
	
	        currentDate = currentDateArray(config);
	
	        //compute day of the year from weeks and weekdays
	        if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
	            dayOfYearFromWeekInfo(config);
	        }
	
	        //if the day of the year is set, figure out what it is
	        if (config._dayOfYear != null) {
	            yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
	
	            if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) {
	                getParsingFlags(config)._overflowDayOfYear = true;
	            }
	
	            date = createUTCDate(yearToUse, 0, config._dayOfYear);
	            config._a[MONTH] = date.getUTCMonth();
	            config._a[DATE] = date.getUTCDate();
	        }
	
	        // Default to current date.
	        // * if no year, month, day of month are given, default to today
	        // * if day of month is given, default month and year
	        // * if month is given, default only year
	        // * if year is given, don't default anything
	        for (i = 0; i < 3 && config._a[i] == null; ++i) {
	            config._a[i] = input[i] = currentDate[i];
	        }
	
	        // Zero out whatever was not defaulted, including time
	        for (; i < 7; i++) {
	            config._a[i] = input[i] = config._a[i] == null ? i === 2 ? 1 : 0 : config._a[i];
	        }
	
	        // Check for 24:00:00.000
	        if (config._a[HOUR] === 24 && config._a[MINUTE] === 0 && config._a[SECOND] === 0 && config._a[MILLISECOND] === 0) {
	            config._nextDay = true;
	            config._a[HOUR] = 0;
	        }
	
	        config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
	        expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay();
	
	        // Apply timezone offset from input. The actual utcOffset can be changed
	        // with parseZone.
	        if (config._tzm != null) {
	            config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
	        }
	
	        if (config._nextDay) {
	            config._a[HOUR] = 24;
	        }
	
	        // check for mismatching day of week
	        if (config._w && typeof config._w.d !== 'undefined' && config._w.d !== expectedWeekday) {
	            getParsingFlags(config).weekdayMismatch = true;
	        }
	    }
	
	    function dayOfYearFromWeekInfo(config) {
	        var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;
	
	        w = config._w;
	        if (w.GG != null || w.W != null || w.E != null) {
	            dow = 1;
	            doy = 4;
	
	            // TODO: We need to take the current isoWeekYear, but that depends on
	            // how we interpret now (local, utc, fixed offset). So create
	            // a now version of current config (take local/utc/offset flags, and
	            // create now).
	            weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year);
	            week = defaults(w.W, 1);
	            weekday = defaults(w.E, 1);
	            if (weekday < 1 || weekday > 7) {
	                weekdayOverflow = true;
	            }
	        } else {
	            dow = config._locale._week.dow;
	            doy = config._locale._week.doy;
	
	            curWeek = weekOfYear(createLocal(), dow, doy);
	
	            weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
	
	            // Default to current week.
	            week = defaults(w.w, curWeek.week);
	
	            if (w.d != null) {
	                // weekday -- low day numbers are considered next week
	                weekday = w.d;
	                if (weekday < 0 || weekday > 6) {
	                    weekdayOverflow = true;
	                }
	            } else if (w.e != null) {
	                // local weekday -- counting starts from beginning of week
	                weekday = w.e + dow;
	                if (w.e < 0 || w.e > 6) {
	                    weekdayOverflow = true;
	                }
	            } else {
	                // default to beginning of week
	                weekday = dow;
	            }
	        }
	        if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
	            getParsingFlags(config)._overflowWeeks = true;
	        } else if (weekdayOverflow != null) {
	            getParsingFlags(config)._overflowWeekday = true;
	        } else {
	            temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
	            config._a[YEAR] = temp.year;
	            config._dayOfYear = temp.dayOfYear;
	        }
	    }
	
	    // constant that refers to the ISO standard
	    hooks.ISO_8601 = function () {};
	
	    // constant that refers to the RFC 2822 form
	    hooks.RFC_2822 = function () {};
	
	    // date from string and format string
	    function configFromStringAndFormat(config) {
	        // TODO: Move this to another part of the creation flow to prevent circular deps
	        if (config._f === hooks.ISO_8601) {
	            configFromISO(config);
	            return;
	        }
	        if (config._f === hooks.RFC_2822) {
	            configFromRFC2822(config);
	            return;
	        }
	        config._a = [];
	        getParsingFlags(config).empty = true;
	
	        // This array is used to make a Date, either with `new Date` or `Date.UTC`
	        var string = '' + config._i,
	            i,
	            parsedInput,
	            tokens,
	            token,
	            skipped,
	            stringLength = string.length,
	            totalParsedInputLength = 0,
	            era,
	            tokenLen;
	
	        tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
	        tokenLen = tokens.length;
	        for (i = 0; i < tokenLen; i++) {
	            token = tokens[i];
	            parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
	            if (parsedInput) {
	                skipped = string.substr(0, string.indexOf(parsedInput));
	                if (skipped.length > 0) {
	                    getParsingFlags(config).unusedInput.push(skipped);
	                }
	                string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
	                totalParsedInputLength += parsedInput.length;
	            }
	            // don't parse if it's not a known token
	            if (formatTokenFunctions[token]) {
	                if (parsedInput) {
	                    getParsingFlags(config).empty = false;
	                } else {
	                    getParsingFlags(config).unusedTokens.push(token);
	                }
	                addTimeToArrayFromToken(token, parsedInput, config);
	            } else if (config._strict && !parsedInput) {
	                getParsingFlags(config).unusedTokens.push(token);
	            }
	        }
	
	        // add remaining unparsed input length to the string
	        getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;
	        if (string.length > 0) {
	            getParsingFlags(config).unusedInput.push(string);
	        }
	
	        // clear _12h flag if hour is <= 12
	        if (config._a[HOUR] <= 12 && getParsingFlags(config).bigHour === true && config._a[HOUR] > 0) {
	            getParsingFlags(config).bigHour = undefined;
	        }
	
	        getParsingFlags(config).parsedDateParts = config._a.slice(0);
	        getParsingFlags(config).meridiem = config._meridiem;
	        // handle meridiem
	        config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
	
	        // handle era
	        era = getParsingFlags(config).era;
	        if (era !== null) {
	            config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);
	        }
	
	        configFromArray(config);
	        checkOverflow(config);
	    }
	
	    function meridiemFixWrap(locale, hour, meridiem) {
	        var isPm;
	
	        if (meridiem == null) {
	            // nothing to do
	            return hour;
	        }
	        if (locale.meridiemHour != null) {
	            return locale.meridiemHour(hour, meridiem);
	        } else if (locale.isPM != null) {
	            // Fallback
	            isPm = locale.isPM(meridiem);
	            if (isPm && hour < 12) {
	                hour += 12;
	            }
	            if (!isPm && hour === 12) {
	                hour = 0;
	            }
	            return hour;
	        } else {
	            // this is not supposed to happen
	            return hour;
	        }
	    }
	
	    // date from string and array of format strings
	    function configFromStringAndArray(config) {
	        var tempConfig,
	            bestMoment,
	            scoreToBeat,
	            i,
	            currentScore,
	            validFormatFound,
	            bestFormatIsValid = false,
	            configfLen = config._f.length;
	
	        if (configfLen === 0) {
	            getParsingFlags(config).invalidFormat = true;
	            config._d = new Date(NaN);
	            return;
	        }
	
	        for (i = 0; i < configfLen; i++) {
	            currentScore = 0;
	            validFormatFound = false;
	            tempConfig = copyConfig({}, config);
	            if (config._useUTC != null) {
	                tempConfig._useUTC = config._useUTC;
	            }
	            tempConfig._f = config._f[i];
	            configFromStringAndFormat(tempConfig);
	
	            if (isValid(tempConfig)) {
	                validFormatFound = true;
	            }
	
	            // if there is any input that was not parsed add a penalty for that format
	            currentScore += getParsingFlags(tempConfig).charsLeftOver;
	
	            //or tokens
	            currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
	
	            getParsingFlags(tempConfig).score = currentScore;
	
	            if (!bestFormatIsValid) {
	                if (scoreToBeat == null || currentScore < scoreToBeat || validFormatFound) {
	                    scoreToBeat = currentScore;
	                    bestMoment = tempConfig;
	                    if (validFormatFound) {
	                        bestFormatIsValid = true;
	                    }
	                }
	            } else {
	                if (currentScore < scoreToBeat) {
	                    scoreToBeat = currentScore;
	                    bestMoment = tempConfig;
	                }
	            }
	        }
	
	        extend(config, bestMoment || tempConfig);
	    }
	
	    function configFromObject(config) {
	        if (config._d) {
	            return;
	        }
	
	        var i = normalizeObjectUnits(config._i),
	            dayOrDate = i.day === undefined ? i.date : i.day;
	        config._a = map([i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond], function (obj) {
	            return obj && parseInt(obj, 10);
	        });
	
	        configFromArray(config);
	    }
	
	    function createFromConfig(config) {
	        var res = new Moment(checkOverflow(prepareConfig(config)));
	        if (res._nextDay) {
	            // Adding is smart enough around DST
	            res.add(1, 'd');
	            res._nextDay = undefined;
	        }
	
	        return res;
	    }
	
	    function prepareConfig(config) {
	        var input = config._i,
	            format = config._f;
	
	        config._locale = config._locale || getLocale(config._l);
	
	        if (input === null || format === undefined && input === '') {
	            return createInvalid({ nullInput: true });
	        }
	
	        if (typeof input === 'string') {
	            config._i = input = config._locale.preparse(input);
	        }
	
	        if (isMoment(input)) {
	            return new Moment(checkOverflow(input));
	        } else if (isDate(input)) {
	            config._d = input;
	        } else if (isArray(format)) {
	            configFromStringAndArray(config);
	        } else if (format) {
	            configFromStringAndFormat(config);
	        } else {
	            configFromInput(config);
	        }
	
	        if (!isValid(config)) {
	            config._d = null;
	        }
	
	        return config;
	    }
	
	    function configFromInput(config) {
	        var input = config._i;
	        if (isUndefined(input)) {
	            config._d = new Date(hooks.now());
	        } else if (isDate(input)) {
	            config._d = new Date(input.valueOf());
	        } else if (typeof input === 'string') {
	            configFromString(config);
	        } else if (isArray(input)) {
	            config._a = map(input.slice(0), function (obj) {
	                return parseInt(obj, 10);
	            });
	            configFromArray(config);
	        } else if (isObject(input)) {
	            configFromObject(config);
	        } else if (isNumber(input)) {
	            // from milliseconds
	            config._d = new Date(input);
	        } else {
	            hooks.createFromInputFallback(config);
	        }
	    }
	
	    function createLocalOrUTC(input, format, locale, strict, isUTC) {
	        var c = {};
	
	        if (format === true || format === false) {
	            strict = format;
	            format = undefined;
	        }
	
	        if (locale === true || locale === false) {
	            strict = locale;
	            locale = undefined;
	        }
	
	        if (isObject(input) && isObjectEmpty(input) || isArray(input) && input.length === 0) {
	            input = undefined;
	        }
	        // object construction must be done this way.
	        // https://github.com/moment/moment/issues/1423
	        c._isAMomentObject = true;
	        c._useUTC = c._isUTC = isUTC;
	        c._l = locale;
	        c._i = input;
	        c._f = format;
	        c._strict = strict;
	
	        return createFromConfig(c);
	    }
	
	    function createLocal(input, format, locale, strict) {
	        return createLocalOrUTC(input, format, locale, strict, false);
	    }
	
	    var prototypeMin = deprecate('moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', function () {
	        var other = createLocal.apply(null, arguments);
	        if (this.isValid() && other.isValid()) {
	            return other < this ? this : other;
	        } else {
	            return createInvalid();
	        }
	    }),
	        prototypeMax = deprecate('moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', function () {
	        var other = createLocal.apply(null, arguments);
	        if (this.isValid() && other.isValid()) {
	            return other > this ? this : other;
	        } else {
	            return createInvalid();
	        }
	    });
	
	    // Pick a moment m from moments so that m[fn](other) is true for all
	    // other. This relies on the function fn to be transitive.
	    //
	    // moments should either be an array of moment objects or an array, whose
	    // first element is an array of moment objects.
	    function pickBy(fn, moments) {
	        var res, i;
	        if (moments.length === 1 && isArray(moments[0])) {
	            moments = moments[0];
	        }
	        if (!moments.length) {
	            return createLocal();
	        }
	        res = moments[0];
	        for (i = 1; i < moments.length; ++i) {
	            if (!moments[i].isValid() || moments[i][fn](res)) {
	                res = moments[i];
	            }
	        }
	        return res;
	    }
	
	    // TODO: Use [].sort instead?
	    function min() {
	        var args = [].slice.call(arguments, 0);
	
	        return pickBy('isBefore', args);
	    }
	
	    function max() {
	        var args = [].slice.call(arguments, 0);
	
	        return pickBy('isAfter', args);
	    }
	
	    var now = function now() {
	        return Date.now ? Date.now() : +new Date();
	    };
	
	    var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond'];
	
	    function isDurationValid(m) {
	        var key,
	            unitHasDecimal = false,
	            i,
	            orderLen = ordering.length;
	        for (key in m) {
	            if (hasOwnProp(m, key) && !(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) {
	                return false;
	            }
	        }
	
	        for (i = 0; i < orderLen; ++i) {
	            if (m[ordering[i]]) {
	                if (unitHasDecimal) {
	                    return false; // only allow non-integers for smallest unit
	                }
	                if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
	                    unitHasDecimal = true;
	                }
	            }
	        }
	
	        return true;
	    }
	
	    function isValid$1() {
	        return this._isValid;
	    }
	
	    function createInvalid$1() {
	        return createDuration(NaN);
	    }
	
	    function Duration(duration) {
	        var normalizedInput = normalizeObjectUnits(duration),
	            years = normalizedInput.year || 0,
	            quarters = normalizedInput.quarter || 0,
	            months = normalizedInput.month || 0,
	            weeks = normalizedInput.week || normalizedInput.isoWeek || 0,
	            days = normalizedInput.day || 0,
	            hours = normalizedInput.hour || 0,
	            minutes = normalizedInput.minute || 0,
	            seconds = normalizedInput.second || 0,
	            milliseconds = normalizedInput.millisecond || 0;
	
	        this._isValid = isDurationValid(normalizedInput);
	
	        // representation for dateAddRemove
	        this._milliseconds = +milliseconds + seconds * 1e3 + // 1000
	        minutes * 6e4 + // 1000 * 60
	        hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
	        // Because of dateAddRemove treats 24 hours as different from a
	        // day when working around DST, we need to store them separately
	        this._days = +days + weeks * 7;
	        // It is impossible to translate months into days without knowing
	        // which months you are are talking about, so we have to store
	        // it separately.
	        this._months = +months + quarters * 3 + years * 12;
	
	        this._data = {};
	
	        this._locale = getLocale();
	
	        this._bubble();
	    }
	
	    function isDuration(obj) {
	        return obj instanceof Duration;
	    }
	
	    function absRound(number) {
	        if (number < 0) {
	            return Math.round(-1 * number) * -1;
	        } else {
	            return Math.round(number);
	        }
	    }
	
	    // compare two arrays, return the number of differences
	    function compareArrays(array1, array2, dontConvert) {
	        var len = Math.min(array1.length, array2.length),
	            lengthDiff = Math.abs(array1.length - array2.length),
	            diffs = 0,
	            i;
	        for (i = 0; i < len; i++) {
	            if (dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) {
	                diffs++;
	            }
	        }
	        return diffs + lengthDiff;
	    }
	
	    // FORMATTING
	
	    function offset(token, separator) {
	        addFormatToken(token, 0, 0, function () {
	            var offset = this.utcOffset(),
	                sign = '+';
	            if (offset < 0) {
	                offset = -offset;
	                sign = '-';
	            }
	            return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~offset % 60, 2);
	        });
	    }
	
	    offset('Z', ':');
	    offset('ZZ', '');
	
	    // PARSING
	
	    addRegexToken('Z', matchShortOffset);
	    addRegexToken('ZZ', matchShortOffset);
	    addParseToken(['Z', 'ZZ'], function (input, array, config) {
	        config._useUTC = true;
	        config._tzm = offsetFromString(matchShortOffset, input);
	    });
	
	    // HELPERS
	
	    // timezone chunker
	    // '+10:00' > ['10',  '00']
	    // '-1530'  > ['-15', '30']
	    var chunkOffset = /([\+\-]|\d\d)/gi;
	
	    function offsetFromString(matcher, string) {
	        var matches = (string || '').match(matcher),
	            chunk,
	            parts,
	            minutes;
	
	        if (matches === null) {
	            return null;
	        }
	
	        chunk = matches[matches.length - 1] || [];
	        parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
	        minutes = +(parts[1] * 60) + toInt(parts[2]);
	
	        return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;
	    }
	
	    // Return a moment from input, that is local/utc/zone equivalent to model.
	    function cloneWithOffset(input, model) {
	        var res, diff;
	        if (model._isUTC) {
	            res = model.clone();
	            diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf();
	            // Use low-level api, because this fn is low-level api.
	            res._d.setTime(res._d.valueOf() + diff);
	            hooks.updateOffset(res, false);
	            return res;
	        } else {
	            return createLocal(input).local();
	        }
	    }
	
	    function getDateOffset(m) {
	        // On Firefox.24 Date#getTimezoneOffset returns a floating point.
	        // https://github.com/moment/moment/pull/1871
	        return -Math.round(m._d.getTimezoneOffset());
	    }
	
	    // HOOKS
	
	    // This function will be called whenever a moment is mutated.
	    // It is intended to keep the offset in sync with the timezone.
	    hooks.updateOffset = function () {};
	
	    // MOMENTS
	
	    // keepLocalTime = true means only change the timezone, without
	    // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
	    // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
	    // +0200, so we adjust the time as needed, to be valid.
	    //
	    // Keeping the time actually adds/subtracts (one hour)
	    // from the actual represented time. That is why we call updateOffset
	    // a second time. In case it wants us to change the offset again
	    // _changeInProgress == true case, then we have to adjust, because
	    // there is no such time in the given timezone.
	    function getSetOffset(input, keepLocalTime, keepMinutes) {
	        var offset = this._offset || 0,
	            localAdjust;
	        if (!this.isValid()) {
	            return input != null ? this : NaN;
	        }
	        if (input != null) {
	            if (typeof input === 'string') {
	                input = offsetFromString(matchShortOffset, input);
	                if (input === null) {
	                    return this;
	                }
	            } else if (Math.abs(input) < 16 && !keepMinutes) {
	                input = input * 60;
	            }
	            if (!this._isUTC && keepLocalTime) {
	                localAdjust = getDateOffset(this);
	            }
	            this._offset = input;
	            this._isUTC = true;
	            if (localAdjust != null) {
	                this.add(localAdjust, 'm');
	            }
	            if (offset !== input) {
	                if (!keepLocalTime || this._changeInProgress) {
	                    addSubtract(this, createDuration(input - offset, 'm'), 1, false);
	                } else if (!this._changeInProgress) {
	                    this._changeInProgress = true;
	                    hooks.updateOffset(this, true);
	                    this._changeInProgress = null;
	                }
	            }
	            return this;
	        } else {
	            return this._isUTC ? offset : getDateOffset(this);
	        }
	    }
	
	    function getSetZone(input, keepLocalTime) {
	        if (input != null) {
	            if (typeof input !== 'string') {
	                input = -input;
	            }
	
	            this.utcOffset(input, keepLocalTime);
	
	            return this;
	        } else {
	            return -this.utcOffset();
	        }
	    }
	
	    function setOffsetToUTC(keepLocalTime) {
	        return this.utcOffset(0, keepLocalTime);
	    }
	
	    function setOffsetToLocal(keepLocalTime) {
	        if (this._isUTC) {
	            this.utcOffset(0, keepLocalTime);
	            this._isUTC = false;
	
	            if (keepLocalTime) {
	                this.subtract(getDateOffset(this), 'm');
	            }
	        }
	        return this;
	    }
	
	    function setOffsetToParsedOffset() {
	        if (this._tzm != null) {
	            this.utcOffset(this._tzm, false, true);
	        } else if (typeof this._i === 'string') {
	            var tZone = offsetFromString(matchOffset, this._i);
	            if (tZone != null) {
	                this.utcOffset(tZone);
	            } else {
	                this.utcOffset(0, true);
	            }
	        }
	        return this;
	    }
	
	    function hasAlignedHourOffset(input) {
	        if (!this.isValid()) {
	            return false;
	        }
	        input = input ? createLocal(input).utcOffset() : 0;
	
	        return (this.utcOffset() - input) % 60 === 0;
	    }
	
	    function isDaylightSavingTime() {
	        return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
	    }
	
	    function isDaylightSavingTimeShifted() {
	        if (!isUndefined(this._isDSTShifted)) {
	            return this._isDSTShifted;
	        }
	
	        var c = {},
	            other;
	
	        copyConfig(c, this);
	        c = prepareConfig(c);
	
	        if (c._a) {
	            other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
	            this._isDSTShifted = this.isValid() && compareArrays(c._a, other.toArray()) > 0;
	        } else {
	            this._isDSTShifted = false;
	        }
	
	        return this._isDSTShifted;
	    }
	
	    function isLocal() {
	        return this.isValid() ? !this._isUTC : false;
	    }
	
	    function isUtcOffset() {
	        return this.isValid() ? this._isUTC : false;
	    }
	
	    function isUtc() {
	        return this.isValid() ? this._isUTC && this._offset === 0 : false;
	    }
	
	    // ASP.NET json date format regex
	    var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
	
	    // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
	    // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
	    // and further modified to allow for strings containing both week and day
	    isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
	
	    function createDuration(input, key) {
	        var duration = input,
	
	        // matching against regexp is expensive, do it on demand
	        match = null,
	            sign,
	            ret,
	            diffRes;
	
	        if (isDuration(input)) {
	            duration = {
	                ms: input._milliseconds,
	                d: input._days,
	                M: input._months
	            };
	        } else if (isNumber(input) || !isNaN(+input)) {
	            duration = {};
	            if (key) {
	                duration[key] = +input;
	            } else {
	                duration.milliseconds = +input;
	            }
	        } else if (match = aspNetRegex.exec(input)) {
	            sign = match[1] === '-' ? -1 : 1;
	            duration = {
	                y: 0,
	                d: toInt(match[DATE]) * sign,
	                h: toInt(match[HOUR]) * sign,
	                m: toInt(match[MINUTE]) * sign,
	                s: toInt(match[SECOND]) * sign,
	                ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match
	            };
	        } else if (match = isoRegex.exec(input)) {
	            sign = match[1] === '-' ? -1 : 1;
	            duration = {
	                y: parseIso(match[2], sign),
	                M: parseIso(match[3], sign),
	                w: parseIso(match[4], sign),
	                d: parseIso(match[5], sign),
	                h: parseIso(match[6], sign),
	                m: parseIso(match[7], sign),
	                s: parseIso(match[8], sign)
	            };
	        } else if (duration == null) {
	            // checks for null or undefined
	            duration = {};
	        } else if ((typeof duration === 'undefined' ? 'undefined' : _typeof(duration)) === 'object' && ('from' in duration || 'to' in duration)) {
	            diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to));
	
	            duration = {};
	            duration.ms = diffRes.milliseconds;
	            duration.M = diffRes.months;
	        }
	
	        ret = new Duration(duration);
	
	        if (isDuration(input) && hasOwnProp(input, '_locale')) {
	            ret._locale = input._locale;
	        }
	
	        if (isDuration(input) && hasOwnProp(input, '_isValid')) {
	            ret._isValid = input._isValid;
	        }
	
	        return ret;
	    }
	
	    createDuration.fn = Duration.prototype;
	    createDuration.invalid = createInvalid$1;
	
	    function parseIso(inp, sign) {
	        // We'd normally use ~~inp for this, but unfortunately it also
	        // converts floats to ints.
	        // inp may be undefined, so careful calling replace on it.
	        var res = inp && parseFloat(inp.replace(',', '.'));
	        // apply sign while we're at it
	        return (isNaN(res) ? 0 : res) * sign;
	    }
	
	    function positiveMomentsDifference(base, other) {
	        var res = {};
	
	        res.months = other.month() - base.month() + (other.year() - base.year()) * 12;
	        if (base.clone().add(res.months, 'M').isAfter(other)) {
	            --res.months;
	        }
	
	        res.milliseconds = +other - +base.clone().add(res.months, 'M');
	
	        return res;
	    }
	
	    function momentsDifference(base, other) {
	        var res;
	        if (!(base.isValid() && other.isValid())) {
	            return { milliseconds: 0, months: 0 };
	        }
	
	        other = cloneWithOffset(other, base);
	        if (base.isBefore(other)) {
	            res = positiveMomentsDifference(base, other);
	        } else {
	            res = positiveMomentsDifference(other, base);
	            res.milliseconds = -res.milliseconds;
	            res.months = -res.months;
	        }
	
	        return res;
	    }
	
	    // TODO: remove 'name' arg after deprecation is removed
	    function createAdder(direction, name) {
	        return function (val, period) {
	            var dur, tmp;
	            //invert the arguments, but complain about it
	            if (period !== null && !isNaN(+period)) {
	                deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' + 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');
	                tmp = val;
	                val = period;
	                period = tmp;
	            }
	
	            dur = createDuration(val, period);
	            addSubtract(this, dur, direction);
	            return this;
	        };
	    }
	
	    function addSubtract(mom, duration, isAdding, updateOffset) {
	        var milliseconds = duration._milliseconds,
	            days = absRound(duration._days),
	            months = absRound(duration._months);
	
	        if (!mom.isValid()) {
	            // No op
	            return;
	        }
	
	        updateOffset = updateOffset == null ? true : updateOffset;
	
	        if (months) {
	            setMonth(mom, get(mom, 'Month') + months * isAdding);
	        }
	        if (days) {
	            set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
	        }
	        if (milliseconds) {
	            mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
	        }
	        if (updateOffset) {
	            hooks.updateOffset(mom, days || months);
	        }
	    }
	
	    var add = createAdder(1, 'add'),
	        subtract = createAdder(-1, 'subtract');
	
	    function isString(input) {
	        return typeof input === 'string' || input instanceof String;
	    }
	
	    // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
	    function isMomentInput(input) {
	        return isMoment(input) || isDate(input) || isString(input) || isNumber(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === undefined;
	    }
	
	    function isMomentInputObject(input) {
	        var objectTest = isObject(input) && !isObjectEmpty(input),
	            propertyTest = false,
	            properties = ['years', 'year', 'y', 'months', 'month', 'M', 'days', 'day', 'd', 'dates', 'date', 'D', 'hours', 'hour', 'h', 'minutes', 'minute', 'm', 'seconds', 'second', 's', 'milliseconds', 'millisecond', 'ms'],
	            i,
	            property,
	            propertyLen = properties.length;
	
	        for (i = 0; i < propertyLen; i += 1) {
	            property = properties[i];
	            propertyTest = propertyTest || hasOwnProp(input, property);
	        }
	
	        return objectTest && propertyTest;
	    }
	
	    function isNumberOrStringArray(input) {
	        var arrayTest = isArray(input),
	            dataTypeTest = false;
	        if (arrayTest) {
	            dataTypeTest = input.filter(function (item) {
	                return !isNumber(item) && isString(input);
	            }).length === 0;
	        }
	        return arrayTest && dataTypeTest;
	    }
	
	    function isCalendarSpec(input) {
	        var objectTest = isObject(input) && !isObjectEmpty(input),
	            propertyTest = false,
	            properties = ['sameDay', 'nextDay', 'lastDay', 'nextWeek', 'lastWeek', 'sameElse'],
	            i,
	            property;
	
	        for (i = 0; i < properties.length; i += 1) {
	            property = properties[i];
	            propertyTest = propertyTest || hasOwnProp(input, property);
	        }
	
	        return objectTest && propertyTest;
	    }
	
	    function getCalendarFormat(myMoment, now) {
	        var diff = myMoment.diff(now, 'days', true);
	        return diff < -6 ? 'sameElse' : diff < -1 ? 'lastWeek' : diff < 0 ? 'lastDay' : diff < 1 ? 'sameDay' : diff < 2 ? 'nextDay' : diff < 7 ? 'nextWeek' : 'sameElse';
	    }
	
	    function calendar$1(time, formats) {
	        // Support for single parameter, formats only overload to the calendar function
	        if (arguments.length === 1) {
	            if (!arguments[0]) {
	                time = undefined;
	                formats = undefined;
	            } else if (isMomentInput(arguments[0])) {
	                time = arguments[0];
	                formats = undefined;
	            } else if (isCalendarSpec(arguments[0])) {
	                formats = arguments[0];
	                time = undefined;
	            }
	        }
	        // We want to compare the start of today, vs this.
	        // Getting start-of-today depends on whether we're local/utc/offset or not.
	        var now = time || createLocal(),
	            sod = cloneWithOffset(now, this).startOf('day'),
	            format = hooks.calendarFormat(this, sod) || 'sameElse',
	            output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);
	
	        return this.format(output || this.localeData().calendar(format, this, createLocal(now)));
	    }
	
	    function clone() {
	        return new Moment(this);
	    }
	
	    function isAfter(input, units) {
	        var localInput = isMoment(input) ? input : createLocal(input);
	        if (!(this.isValid() && localInput.isValid())) {
	            return false;
	        }
	        units = normalizeUnits(units) || 'millisecond';
	        if (units === 'millisecond') {
	            return this.valueOf() > localInput.valueOf();
	        } else {
	            return localInput.valueOf() < this.clone().startOf(units).valueOf();
	        }
	    }
	
	    function isBefore(input, units) {
	        var localInput = isMoment(input) ? input : createLocal(input);
	        if (!(this.isValid() && localInput.isValid())) {
	            return false;
	        }
	        units = normalizeUnits(units) || 'millisecond';
	        if (units === 'millisecond') {
	            return this.valueOf() < localInput.valueOf();
	        } else {
	            return this.clone().endOf(units).valueOf() < localInput.valueOf();
	        }
	    }
	
	    function isBetween(from, to, units, inclusivity) {
	        var localFrom = isMoment(from) ? from : createLocal(from),
	            localTo = isMoment(to) ? to : createLocal(to);
	        if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {
	            return false;
	        }
	        inclusivity = inclusivity || '()';
	        return (inclusivity[0] === '(' ? this.isAfter(localFrom, units) : !this.isBefore(localFrom, units)) && (inclusivity[1] === ')' ? this.isBefore(localTo, units) : !this.isAfter(localTo, units));
	    }
	
	    function isSame(input, units) {
	        var localInput = isMoment(input) ? input : createLocal(input),
	            inputMs;
	        if (!(this.isValid() && localInput.isValid())) {
	            return false;
	        }
	        units = normalizeUnits(units) || 'millisecond';
	        if (units === 'millisecond') {
	            return this.valueOf() === localInput.valueOf();
	        } else {
	            inputMs = localInput.valueOf();
	            return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();
	        }
	    }
	
	    function isSameOrAfter(input, units) {
	        return this.isSame(input, units) || this.isAfter(input, units);
	    }
	
	    function isSameOrBefore(input, units) {
	        return this.isSame(input, units) || this.isBefore(input, units);
	    }
	
	    function diff(input, units, asFloat) {
	        var that, zoneDelta, output;
	
	        if (!this.isValid()) {
	            return NaN;
	        }
	
	        that = cloneWithOffset(input, this);
	
	        if (!that.isValid()) {
	            return NaN;
	        }
	
	        zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
	
	        units = normalizeUnits(units);
	
	        switch (units) {
	            case 'year':
	                output = monthDiff(this, that) / 12;
	                break;
	            case 'month':
	                output = monthDiff(this, that);
	                break;
	            case 'quarter':
	                output = monthDiff(this, that) / 3;
	                break;
	            case 'second':
	                output = (this - that) / 1e3;
	                break; // 1000
	            case 'minute':
	                output = (this - that) / 6e4;
	                break; // 1000 * 60
	            case 'hour':
	                output = (this - that) / 36e5;
	                break; // 1000 * 60 * 60
	            case 'day':
	                output = (this - that - zoneDelta) / 864e5;
	                break; // 1000 * 60 * 60 * 24, negate dst
	            case 'week':
	                output = (this - that - zoneDelta) / 6048e5;
	                break; // 1000 * 60 * 60 * 24 * 7, negate dst
	            default:
	                output = this - that;
	        }
	
	        return asFloat ? output : absFloor(output);
	    }
	
	    function monthDiff(a, b) {
	        if (a.date() < b.date()) {
	            // end-of-month calculations work correct when the start month has more
	            // days than the end month.
	            return -monthDiff(b, a);
	        }
	        // difference in months
	        var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),
	
	        // b is in (anchor - 1 month, anchor + 1 month)
	        anchor = a.clone().add(wholeMonthDiff, 'months'),
	            anchor2,
	            adjust;
	
	        if (b - anchor < 0) {
	            anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
	            // linear across the month
	            adjust = (b - anchor) / (anchor - anchor2);
	        } else {
	            anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
	            // linear across the month
	            adjust = (b - anchor) / (anchor2 - anchor);
	        }
	
	        //check for negative zero, return zero if negative zero
	        return -(wholeMonthDiff + adjust) || 0;
	    }
	
	    hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
	    hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
	
	    function toString() {
	        return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
	    }
	
	    function toISOString(keepOffset) {
	        if (!this.isValid()) {
	            return null;
	        }
	        var utc = keepOffset !== true,
	            m = utc ? this.clone().utc() : this;
	        if (m.year() < 0 || m.year() > 9999) {
	            return formatMoment(m, utc ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ');
	        }
	        if (isFunction(Date.prototype.toISOString)) {
	            // native implementation is ~50x faster, use it when we can
	            if (utc) {
	                return this.toDate().toISOString();
	            } else {
	                return new Date(this.valueOf() + this.utcOffset() * 60 * 1000).toISOString().replace('Z', formatMoment(m, 'Z'));
	            }
	        }
	        return formatMoment(m, utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ');
	    }
	
	    /**
	     * Return a human readable representation of a moment that can
	     * also be evaluated to get a new moment which is the same
	     *
	     * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
	     */
	    function inspect() {
	        if (!this.isValid()) {
	            return 'moment.invalid(/* ' + this._i + ' */)';
	        }
	        var func = 'moment',
	            zone = '',
	            prefix,
	            year,
	            datetime,
	            suffix;
	        if (!this.isLocal()) {
	            func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
	            zone = 'Z';
	        }
	        prefix = '[' + func + '("]';
	        year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';
	        datetime = '-MM-DD[T]HH:mm:ss.SSS';
	        suffix = zone + '[")]';
	
	        return this.format(prefix + year + datetime + suffix);
	    }
	
	    function format(inputString) {
	        if (!inputString) {
	            inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;
	        }
	        var output = formatMoment(this, inputString);
	        return this.localeData().postformat(output);
	    }
	
	    function from(time, withoutSuffix) {
	        if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) {
	            return createDuration({ to: this, from: time }).locale(this.locale()).humanize(!withoutSuffix);
	        } else {
	            return this.localeData().invalidDate();
	        }
	    }
	
	    function fromNow(withoutSuffix) {
	        return this.from(createLocal(), withoutSuffix);
	    }
	
	    function to(time, withoutSuffix) {
	        if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) {
	            return createDuration({ from: this, to: time }).locale(this.locale()).humanize(!withoutSuffix);
	        } else {
	            return this.localeData().invalidDate();
	        }
	    }
	
	    function toNow(withoutSuffix) {
	        return this.to(createLocal(), withoutSuffix);
	    }
	
	    // If passed a locale key, it will set the locale for this
	    // instance.  Otherwise, it will return the locale configuration
	    // variables for this instance.
	    function locale(key) {
	        var newLocaleData;
	
	        if (key === undefined) {
	            return this._locale._abbr;
	        } else {
	            newLocaleData = getLocale(key);
	            if (newLocaleData != null) {
	                this._locale = newLocaleData;
	            }
	            return this;
	        }
	    }
	
	    var lang = deprecate('moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', function (key) {
	        if (key === undefined) {
	            return this.localeData();
	        } else {
	            return this.locale(key);
	        }
	    });
	
	    function localeData() {
	        return this._locale;
	    }
	
	    var MS_PER_SECOND = 1000,
	        MS_PER_MINUTE = 60 * MS_PER_SECOND,
	        MS_PER_HOUR = 60 * MS_PER_MINUTE,
	        MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
	
	    // actual modulo - handles negative numbers (for dates before 1970):
	    function mod$1(dividend, divisor) {
	        return (dividend % divisor + divisor) % divisor;
	    }
	
	    function localStartOfDate(y, m, d) {
	        // the date constructor remaps years 0-99 to 1900-1999
	        if (y < 100 && y >= 0) {
	            // preserve leap years using a full 400 year cycle, then reset
	            return new Date(y + 400, m, d) - MS_PER_400_YEARS;
	        } else {
	            return new Date(y, m, d).valueOf();
	        }
	    }
	
	    function utcStartOfDate(y, m, d) {
	        // Date.UTC remaps years 0-99 to 1900-1999
	        if (y < 100 && y >= 0) {
	            // preserve leap years using a full 400 year cycle, then reset
	            return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
	        } else {
	            return Date.UTC(y, m, d);
	        }
	    }
	
	    function startOf(units) {
	        var time, startOfDate;
	        units = normalizeUnits(units);
	        if (units === undefined || units === 'millisecond' || !this.isValid()) {
	            return this;
	        }
	
	        startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
	
	        switch (units) {
	            case 'year':
	                time = startOfDate(this.year(), 0, 1);
	                break;
	            case 'quarter':
	                time = startOfDate(this.year(), this.month() - this.month() % 3, 1);
	                break;
	            case 'month':
	                time = startOfDate(this.year(), this.month(), 1);
	                break;
	            case 'week':
	                time = startOfDate(this.year(), this.month(), this.date() - this.weekday());
	                break;
	            case 'isoWeek':
	                time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1));
	                break;
	            case 'day':
	            case 'date':
	                time = startOfDate(this.year(), this.month(), this.date());
	                break;
	            case 'hour':
	                time = this._d.valueOf();
	                time -= mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR);
	                break;
	            case 'minute':
	                time = this._d.valueOf();
	                time -= mod$1(time, MS_PER_MINUTE);
	                break;
	            case 'second':
	                time = this._d.valueOf();
	                time -= mod$1(time, MS_PER_SECOND);
	                break;
	        }
	
	        this._d.setTime(time);
	        hooks.updateOffset(this, true);
	        return this;
	    }
	
	    function endOf(units) {
	        var time, startOfDate;
	        units = normalizeUnits(units);
	        if (units === undefined || units === 'millisecond' || !this.isValid()) {
	            return this;
	        }
	
	        startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
	
	        switch (units) {
	            case 'year':
	                time = startOfDate(this.year() + 1, 0, 1) - 1;
	                break;
	            case 'quarter':
	                time = startOfDate(this.year(), this.month() - this.month() % 3 + 3, 1) - 1;
	                break;
	            case 'month':
	                time = startOfDate(this.year(), this.month() + 1, 1) - 1;
	                break;
	            case 'week':
	                time = startOfDate(this.year(), this.month(), this.date() - this.weekday() + 7) - 1;
	                break;
	            case 'isoWeek':
	                time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1;
	                break;
	            case 'day':
	            case 'date':
	                time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
	                break;
	            case 'hour':
	                time = this._d.valueOf();
	                time += MS_PER_HOUR - mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR) - 1;
	                break;
	            case 'minute':
	                time = this._d.valueOf();
	                time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
	                break;
	            case 'second':
	                time = this._d.valueOf();
	                time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
	                break;
	        }
	
	        this._d.setTime(time);
	        hooks.updateOffset(this, true);
	        return this;
	    }
	
	    function valueOf() {
	        return this._d.valueOf() - (this._offset || 0) * 60000;
	    }
	
	    function unix() {
	        return Math.floor(this.valueOf() / 1000);
	    }
	
	    function toDate() {
	        return new Date(this.valueOf());
	    }
	
	    function toArray() {
	        var m = this;
	        return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];
	    }
	
	    function toObject() {
	        var m = this;
	        return {
	            years: m.year(),
	            months: m.month(),
	            date: m.date(),
	            hours: m.hours(),
	            minutes: m.minutes(),
	            seconds: m.seconds(),
	            milliseconds: m.milliseconds()
	        };
	    }
	
	    function toJSON() {
	        // new Date(NaN).toJSON() === null
	        return this.isValid() ? this.toISOString() : null;
	    }
	
	    function isValid$2() {
	        return isValid(this);
	    }
	
	    function parsingFlags() {
	        return extend({}, getParsingFlags(this));
	    }
	
	    function invalidAt() {
	        return getParsingFlags(this).overflow;
	    }
	
	    function creationData() {
	        return {
	            input: this._i,
	            format: this._f,
	            locale: this._locale,
	            isUTC: this._isUTC,
	            strict: this._strict
	        };
	    }
	
	    addFormatToken('N', 0, 0, 'eraAbbr');
	    addFormatToken('NN', 0, 0, 'eraAbbr');
	    addFormatToken('NNN', 0, 0, 'eraAbbr');
	    addFormatToken('NNNN', 0, 0, 'eraName');
	    addFormatToken('NNNNN', 0, 0, 'eraNarrow');
	
	    addFormatToken('y', ['y', 1], 'yo', 'eraYear');
	    addFormatToken('y', ['yy', 2], 0, 'eraYear');
	    addFormatToken('y', ['yyy', 3], 0, 'eraYear');
	    addFormatToken('y', ['yyyy', 4], 0, 'eraYear');
	
	    addRegexToken('N', matchEraAbbr);
	    addRegexToken('NN', matchEraAbbr);
	    addRegexToken('NNN', matchEraAbbr);
	    addRegexToken('NNNN', matchEraName);
	    addRegexToken('NNNNN', matchEraNarrow);
	
	    addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function (input, array, config, token) {
	        var era = config._locale.erasParse(input, token, config._strict);
	        if (era) {
	            getParsingFlags(config).era = era;
	        } else {
	            getParsingFlags(config).invalidEra = input;
	        }
	    });
	
	    addRegexToken('y', matchUnsigned);
	    addRegexToken('yy', matchUnsigned);
	    addRegexToken('yyy', matchUnsigned);
	    addRegexToken('yyyy', matchUnsigned);
	    addRegexToken('yo', matchEraYearOrdinal);
	
	    addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);
	    addParseToken(['yo'], function (input, array, config, token) {
	        var match;
	        if (config._locale._eraYearOrdinalRegex) {
	            match = input.match(config._locale._eraYearOrdinalRegex);
	        }
	
	        if (config._locale.eraYearOrdinalParse) {
	            array[YEAR] = config._locale.eraYearOrdinalParse(input, match);
	        } else {
	            array[YEAR] = parseInt(input, 10);
	        }
	    });
	
	    function localeEras(m, format) {
	        var i,
	            l,
	            date,
	            eras = this._eras || getLocale('en')._eras;
	        for (i = 0, l = eras.length; i < l; ++i) {
	            switch (_typeof(eras[i].since)) {
	                case 'string':
	                    // truncate time
	                    date = hooks(eras[i].since).startOf('day');
	                    eras[i].since = date.valueOf();
	                    break;
	            }
	
	            switch (_typeof(eras[i].until)) {
	                case 'undefined':
	                    eras[i].until = +Infinity;
	                    break;
	                case 'string':
	                    // truncate time
	                    date = hooks(eras[i].until).startOf('day').valueOf();
	                    eras[i].until = date.valueOf();
	                    break;
	            }
	        }
	        return eras;
	    }
	
	    function localeErasParse(eraName, format, strict) {
	        var i,
	            l,
	            eras = this.eras(),
	            name,
	            abbr,
	            narrow;
	        eraName = eraName.toUpperCase();
	
	        for (i = 0, l = eras.length; i < l; ++i) {
	            name = eras[i].name.toUpperCase();
	            abbr = eras[i].abbr.toUpperCase();
	            narrow = eras[i].narrow.toUpperCase();
	
	            if (strict) {
	                switch (format) {
	                    case 'N':
	                    case 'NN':
	                    case 'NNN':
	                        if (abbr === eraName) {
	                            return eras[i];
	                        }
	                        break;
	
	                    case 'NNNN':
	                        if (name === eraName) {
	                            return eras[i];
	                        }
	                        break;
	
	                    case 'NNNNN':
	                        if (narrow === eraName) {
	                            return eras[i];
	                        }
	                        break;
	                }
	            } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {
	                return eras[i];
	            }
	        }
	    }
	
	    function localeErasConvertYear(era, year) {
	        var dir = era.since <= era.until ? +1 : -1;
	        if (year === undefined) {
	            return hooks(era.since).year();
	        } else {
	            return hooks(era.since).year() + (year - era.offset) * dir;
	        }
	    }
	
	    function getEraName() {
	        var i,
	            l,
	            val,
	            eras = this.localeData().eras();
	        for (i = 0, l = eras.length; i < l; ++i) {
	            // truncate time
	            val = this.clone().startOf('day').valueOf();
	
	            if (eras[i].since <= val && val <= eras[i].until) {
	                return eras[i].name;
	            }
	            if (eras[i].until <= val && val <= eras[i].since) {
	                return eras[i].name;
	            }
	        }
	
	        return '';
	    }
	
	    function getEraNarrow() {
	        var i,
	            l,
	            val,
	            eras = this.localeData().eras();
	        for (i = 0, l = eras.length; i < l; ++i) {
	            // truncate time
	            val = this.clone().startOf('day').valueOf();
	
	            if (eras[i].since <= val && val <= eras[i].until) {
	                return eras[i].narrow;
	            }
	            if (eras[i].until <= val && val <= eras[i].since) {
	                return eras[i].narrow;
	            }
	        }
	
	        return '';
	    }
	
	    function getEraAbbr() {
	        var i,
	            l,
	            val,
	            eras = this.localeData().eras();
	        for (i = 0, l = eras.length; i < l; ++i) {
	            // truncate time
	            val = this.clone().startOf('day').valueOf();
	
	            if (eras[i].since <= val && val <= eras[i].until) {
	                return eras[i].abbr;
	            }
	            if (eras[i].until <= val && val <= eras[i].since) {
	                return eras[i].abbr;
	            }
	        }
	
	        return '';
	    }
	
	    function getEraYear() {
	        var i,
	            l,
	            dir,
	            val,
	            eras = this.localeData().eras();
	        for (i = 0, l = eras.length; i < l; ++i) {
	            dir = eras[i].since <= eras[i].until ? +1 : -1;
	
	            // truncate time
	            val = this.clone().startOf('day').valueOf();
	
	            if (eras[i].since <= val && val <= eras[i].until || eras[i].until <= val && val <= eras[i].since) {
	                return (this.year() - hooks(eras[i].since).year()) * dir + eras[i].offset;
	            }
	        }
	
	        return this.year();
	    }
	
	    function erasNameRegex(isStrict) {
	        if (!hasOwnProp(this, '_erasNameRegex')) {
	            computeErasParse.call(this);
	        }
	        return isStrict ? this._erasNameRegex : this._erasRegex;
	    }
	
	    function erasAbbrRegex(isStrict) {
	        if (!hasOwnProp(this, '_erasAbbrRegex')) {
	            computeErasParse.call(this);
	        }
	        return isStrict ? this._erasAbbrRegex : this._erasRegex;
	    }
	
	    function erasNarrowRegex(isStrict) {
	        if (!hasOwnProp(this, '_erasNarrowRegex')) {
	            computeErasParse.call(this);
	        }
	        return isStrict ? this._erasNarrowRegex : this._erasRegex;
	    }
	
	    function matchEraAbbr(isStrict, locale) {
	        return locale.erasAbbrRegex(isStrict);
	    }
	
	    function matchEraName(isStrict, locale) {
	        return locale.erasNameRegex(isStrict);
	    }
	
	    function matchEraNarrow(isStrict, locale) {
	        return locale.erasNarrowRegex(isStrict);
	    }
	
	    function matchEraYearOrdinal(isStrict, locale) {
	        return locale._eraYearOrdinalRegex || matchUnsigned;
	    }
	
	    function computeErasParse() {
	        var abbrPieces = [],
	            namePieces = [],
	            narrowPieces = [],
	            mixedPieces = [],
	            i,
	            l,
	            erasName,
	            erasAbbr,
	            erasNarrow,
	            eras = this.eras();
	
	        for (i = 0, l = eras.length; i < l; ++i) {
	            erasName = regexEscape(eras[i].name);
	            erasAbbr = regexEscape(eras[i].abbr);
	            erasNarrow = regexEscape(eras[i].narrow);
	
	            namePieces.push(erasName);
	            abbrPieces.push(erasAbbr);
	            narrowPieces.push(erasNarrow);
	            mixedPieces.push(erasName);
	            mixedPieces.push(erasAbbr);
	            mixedPieces.push(erasNarrow);
	        }
	
	        this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
	        this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');
	        this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');
	        this._erasNarrowRegex = new RegExp('^(' + narrowPieces.join('|') + ')', 'i');
	    }
	
	    // FORMATTING
	
	    addFormatToken(0, ['gg', 2], 0, function () {
	        return this.weekYear() % 100;
	    });
	
	    addFormatToken(0, ['GG', 2], 0, function () {
	        return this.isoWeekYear() % 100;
	    });
	
	    function addWeekYearFormatToken(token, getter) {
	        addFormatToken(0, [token, token.length], 0, getter);
	    }
	
	    addWeekYearFormatToken('gggg', 'weekYear');
	    addWeekYearFormatToken('ggggg', 'weekYear');
	    addWeekYearFormatToken('GGGG', 'isoWeekYear');
	    addWeekYearFormatToken('GGGGG', 'isoWeekYear');
	
	    // ALIASES
	
	    // PARSING
	
	    addRegexToken('G', matchSigned);
	    addRegexToken('g', matchSigned);
	    addRegexToken('GG', match1to2, match2);
	    addRegexToken('gg', match1to2, match2);
	    addRegexToken('GGGG', match1to4, match4);
	    addRegexToken('gggg', match1to4, match4);
	    addRegexToken('GGGGG', match1to6, match6);
	    addRegexToken('ggggg', match1to6, match6);
	
	    addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
	        week[token.substr(0, 2)] = toInt(input);
	    });
	
	    addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
	        week[token] = hooks.parseTwoDigitYear(input);
	    });
	
	    // MOMENTS
	
	    function getSetWeekYear(input) {
	        return getSetWeekYearHelper.call(this, input, this.week(), this.weekday() + this.localeData()._week.dow, this.localeData()._week.dow, this.localeData()._week.doy);
	    }
	
	    function getSetISOWeekYear(input) {
	        return getSetWeekYearHelper.call(this, input, this.isoWeek(), this.isoWeekday(), 1, 4);
	    }
	
	    function getISOWeeksInYear() {
	        return weeksInYear(this.year(), 1, 4);
	    }
	
	    function getISOWeeksInISOWeekYear() {
	        return weeksInYear(this.isoWeekYear(), 1, 4);
	    }
	
	    function getWeeksInYear() {
	        var weekInfo = this.localeData()._week;
	        return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
	    }
	
	    function getWeeksInWeekYear() {
	        var weekInfo = this.localeData()._week;
	        return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);
	    }
	
	    function getSetWeekYearHelper(input, week, weekday, dow, doy) {
	        var weeksTarget;
	        if (input == null) {
	            return weekOfYear(this, dow, doy).year;
	        } else {
	            weeksTarget = weeksInYear(input, dow, doy);
	            if (week > weeksTarget) {
	                week = weeksTarget;
	            }
	            return setWeekAll.call(this, input, week, weekday, dow, doy);
	        }
	    }
	
	    function setWeekAll(weekYear, week, weekday, dow, doy) {
	        var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
	            date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
	
	        this.year(date.getUTCFullYear());
	        this.month(date.getUTCMonth());
	        this.date(date.getUTCDate());
	        return this;
	    }
	
	    // FORMATTING
	
	    addFormatToken('Q', 0, 'Qo', 'quarter');
	
	    // PARSING
	
	    addRegexToken('Q', match1);
	    addParseToken('Q', function (input, array) {
	        array[MONTH] = (toInt(input) - 1) * 3;
	    });
	
	    // MOMENTS
	
	    function getSetQuarter(input) {
	        return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
	    }
	
	    // FORMATTING
	
	    addFormatToken('D', ['DD', 2], 'Do', 'date');
	
	    // PARSING
	
	    addRegexToken('D', match1to2, match1to2NoLeadingZero);
	    addRegexToken('DD', match1to2, match2);
	    addRegexToken('Do', function (isStrict, locale) {
	        // TODO: Remove "ordinalParse" fallback in next major release.
	        return isStrict ? locale._dayOfMonthOrdinalParse || locale._ordinalParse : locale._dayOfMonthOrdinalParseLenient;
	    });
	
	    addParseToken(['D', 'DD'], DATE);
	    addParseToken('Do', function (input, array) {
	        array[DATE] = toInt(input.match(match1to2)[0]);
	    });
	
	    // MOMENTS
	
	    var getSetDayOfMonth = makeGetSet('Date', true);
	
	    // FORMATTING
	
	    addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
	
	    // PARSING
	
	    addRegexToken('DDD', match1to3);
	    addRegexToken('DDDD', match3);
	    addParseToken(['DDD', 'DDDD'], function (input, array, config) {
	        config._dayOfYear = toInt(input);
	    });
	
	    // HELPERS
	
	    // MOMENTS
	
	    function getSetDayOfYear(input) {
	        var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;
	        return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');
	    }
	
	    // FORMATTING
	
	    addFormatToken('m', ['mm', 2], 0, 'minute');
	
	    // PARSING
	
	    addRegexToken('m', match1to2, match1to2HasZero);
	    addRegexToken('mm', match1to2, match2);
	    addParseToken(['m', 'mm'], MINUTE);
	
	    // MOMENTS
	
	    var getSetMinute = makeGetSet('Minutes', false);
	
	    // FORMATTING
	
	    addFormatToken('s', ['ss', 2], 0, 'second');
	
	    // PARSING
	
	    addRegexToken('s', match1to2, match1to2HasZero);
	    addRegexToken('ss', match1to2, match2);
	    addParseToken(['s', 'ss'], SECOND);
	
	    // MOMENTS
	
	    var getSetSecond = makeGetSet('Seconds', false);
	
	    // FORMATTING
	
	    addFormatToken('S', 0, 0, function () {
	        return ~~(this.millisecond() / 100);
	    });
	
	    addFormatToken(0, ['SS', 2], 0, function () {
	        return ~~(this.millisecond() / 10);
	    });
	
	    addFormatToken(0, ['SSS', 3], 0, 'millisecond');
	    addFormatToken(0, ['SSSS', 4], 0, function () {
	        return this.millisecond() * 10;
	    });
	    addFormatToken(0, ['SSSSS', 5], 0, function () {
	        return this.millisecond() * 100;
	    });
	    addFormatToken(0, ['SSSSSS', 6], 0, function () {
	        return this.millisecond() * 1000;
	    });
	    addFormatToken(0, ['SSSSSSS', 7], 0, function () {
	        return this.millisecond() * 10000;
	    });
	    addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
	        return this.millisecond() * 100000;
	    });
	    addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
	        return this.millisecond() * 1000000;
	    });
	
	    // PARSING
	
	    addRegexToken('S', match1to3, match1);
	    addRegexToken('SS', match1to3, match2);
	    addRegexToken('SSS', match1to3, match3);
	
	    var token, getSetMillisecond;
	    for (token = 'SSSS'; token.length <= 9; token += 'S') {
	        addRegexToken(token, matchUnsigned);
	    }
	
	    function parseMs(input, array) {
	        array[MILLISECOND] = toInt(('0.' + input) * 1000);
	    }
	
	    for (token = 'S'; token.length <= 9; token += 'S') {
	        addParseToken(token, parseMs);
	    }
	
	    getSetMillisecond = makeGetSet('Milliseconds', false);
	
	    // FORMATTING
	
	    addFormatToken('z', 0, 0, 'zoneAbbr');
	    addFormatToken('zz', 0, 0, 'zoneName');
	
	    // MOMENTS
	
	    function getZoneAbbr() {
	        return this._isUTC ? 'UTC' : '';
	    }
	
	    function getZoneName() {
	        return this._isUTC ? 'Coordinated Universal Time' : '';
	    }
	
	    var proto = Moment.prototype;
	
	    proto.add = add;
	    proto.calendar = calendar$1;
	    proto.clone = clone;
	    proto.diff = diff;
	    proto.endOf = endOf;
	    proto.format = format;
	    proto.from = from;
	    proto.fromNow = fromNow;
	    proto.to = to;
	    proto.toNow = toNow;
	    proto.get = stringGet;
	    proto.invalidAt = invalidAt;
	    proto.isAfter = isAfter;
	    proto.isBefore = isBefore;
	    proto.isBetween = isBetween;
	    proto.isSame = isSame;
	    proto.isSameOrAfter = isSameOrAfter;
	    proto.isSameOrBefore = isSameOrBefore;
	    proto.isValid = isValid$2;
	    proto.lang = lang;
	    proto.locale = locale;
	    proto.localeData = localeData;
	    proto.max = prototypeMax;
	    proto.min = prototypeMin;
	    proto.parsingFlags = parsingFlags;
	    proto.set = stringSet;
	    proto.startOf = startOf;
	    proto.subtract = subtract;
	    proto.toArray = toArray;
	    proto.toObject = toObject;
	    proto.toDate = toDate;
	    proto.toISOString = toISOString;
	    proto.inspect = inspect;
	    if (typeof Symbol !== 'undefined' && Symbol.for != null) {
	        proto[Symbol.for('nodejs.util.inspect.custom')] = function () {
	            return 'Moment<' + this.format() + '>';
	        };
	    }
	    proto.toJSON = toJSON;
	    proto.toString = toString;
	    proto.unix = unix;
	    proto.valueOf = valueOf;
	    proto.creationData = creationData;
	    proto.eraName = getEraName;
	    proto.eraNarrow = getEraNarrow;
	    proto.eraAbbr = getEraAbbr;
	    proto.eraYear = getEraYear;
	    proto.year = getSetYear;
	    proto.isLeapYear = getIsLeapYear;
	    proto.weekYear = getSetWeekYear;
	    proto.isoWeekYear = getSetISOWeekYear;
	    proto.quarter = proto.quarters = getSetQuarter;
	    proto.month = getSetMonth;
	    proto.daysInMonth = getDaysInMonth;
	    proto.week = proto.weeks = getSetWeek;
	    proto.isoWeek = proto.isoWeeks = getSetISOWeek;
	    proto.weeksInYear = getWeeksInYear;
	    proto.weeksInWeekYear = getWeeksInWeekYear;
	    proto.isoWeeksInYear = getISOWeeksInYear;
	    proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
	    proto.date = getSetDayOfMonth;
	    proto.day = proto.days = getSetDayOfWeek;
	    proto.weekday = getSetLocaleDayOfWeek;
	    proto.isoWeekday = getSetISODayOfWeek;
	    proto.dayOfYear = getSetDayOfYear;
	    proto.hour = proto.hours = getSetHour;
	    proto.minute = proto.minutes = getSetMinute;
	    proto.second = proto.seconds = getSetSecond;
	    proto.millisecond = proto.milliseconds = getSetMillisecond;
	    proto.utcOffset = getSetOffset;
	    proto.utc = setOffsetToUTC;
	    proto.local = setOffsetToLocal;
	    proto.parseZone = setOffsetToParsedOffset;
	    proto.hasAlignedHourOffset = hasAlignedHourOffset;
	    proto.isDST = isDaylightSavingTime;
	    proto.isLocal = isLocal;
	    proto.isUtcOffset = isUtcOffset;
	    proto.isUtc = isUtc;
	    proto.isUTC = isUtc;
	    proto.zoneAbbr = getZoneAbbr;
	    proto.zoneName = getZoneName;
	    proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);
	    proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);
	    proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);
	    proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone);
	    proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted);
	
	    function createUnix(input) {
	        return createLocal(input * 1000);
	    }
	
	    function createInZone() {
	        return createLocal.apply(null, arguments).parseZone();
	    }
	
	    function preParsePostFormat(string) {
	        return string;
	    }
	
	    var proto$1 = Locale.prototype;
	
	    proto$1.calendar = calendar;
	    proto$1.longDateFormat = longDateFormat;
	    proto$1.invalidDate = invalidDate;
	    proto$1.ordinal = ordinal;
	    proto$1.preparse = preParsePostFormat;
	    proto$1.postformat = preParsePostFormat;
	    proto$1.relativeTime = relativeTime;
	    proto$1.pastFuture = pastFuture;
	    proto$1.set = set;
	    proto$1.eras = localeEras;
	    proto$1.erasParse = localeErasParse;
	    proto$1.erasConvertYear = localeErasConvertYear;
	    proto$1.erasAbbrRegex = erasAbbrRegex;
	    proto$1.erasNameRegex = erasNameRegex;
	    proto$1.erasNarrowRegex = erasNarrowRegex;
	
	    proto$1.months = localeMonths;
	    proto$1.monthsShort = localeMonthsShort;
	    proto$1.monthsParse = localeMonthsParse;
	    proto$1.monthsRegex = monthsRegex;
	    proto$1.monthsShortRegex = monthsShortRegex;
	    proto$1.week = localeWeek;
	    proto$1.firstDayOfYear = localeFirstDayOfYear;
	    proto$1.firstDayOfWeek = localeFirstDayOfWeek;
	
	    proto$1.weekdays = localeWeekdays;
	    proto$1.weekdaysMin = localeWeekdaysMin;
	    proto$1.weekdaysShort = localeWeekdaysShort;
	    proto$1.weekdaysParse = localeWeekdaysParse;
	
	    proto$1.weekdaysRegex = weekdaysRegex;
	    proto$1.weekdaysShortRegex = weekdaysShortRegex;
	    proto$1.weekdaysMinRegex = weekdaysMinRegex;
	
	    proto$1.isPM = localeIsPM;
	    proto$1.meridiem = localeMeridiem;
	
	    function get$1(format, index, field, setter) {
	        var locale = getLocale(),
	            utc = createUTC().set(setter, index);
	        return locale[field](utc, format);
	    }
	
	    function listMonthsImpl(format, index, field) {
	        if (isNumber(format)) {
	            index = format;
	            format = undefined;
	        }
	
	        format = format || '';
	
	        if (index != null) {
	            return get$1(format, index, field, 'month');
	        }
	
	        var i,
	            out = [];
	        for (i = 0; i < 12; i++) {
	            out[i] = get$1(format, i, field, 'month');
	        }
	        return out;
	    }
	
	    // ()
	    // (5)
	    // (fmt, 5)
	    // (fmt)
	    // (true)
	    // (true, 5)
	    // (true, fmt, 5)
	    // (true, fmt)
	    function listWeekdaysImpl(localeSorted, format, index, field) {
	        if (typeof localeSorted === 'boolean') {
	            if (isNumber(format)) {
	                index = format;
	                format = undefined;
	            }
	
	            format = format || '';
	        } else {
	            format = localeSorted;
	            index = format;
	            localeSorted = false;
	
	            if (isNumber(format)) {
	                index = format;
	                format = undefined;
	            }
	
	            format = format || '';
	        }
	
	        var locale = getLocale(),
	            shift = localeSorted ? locale._week.dow : 0,
	            i,
	            out = [];
	
	        if (index != null) {
	            return get$1(format, (index + shift) % 7, field, 'day');
	        }
	
	        for (i = 0; i < 7; i++) {
	            out[i] = get$1(format, (i + shift) % 7, field, 'day');
	        }
	        return out;
	    }
	
	    function listMonths(format, index) {
	        return listMonthsImpl(format, index, 'months');
	    }
	
	    function listMonthsShort(format, index) {
	        return listMonthsImpl(format, index, 'monthsShort');
	    }
	
	    function listWeekdays(localeSorted, format, index) {
	        return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
	    }
	
	    function listWeekdaysShort(localeSorted, format, index) {
	        return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
	    }
	
	    function listWeekdaysMin(localeSorted, format, index) {
	        return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
	    }
	
	    getSetGlobalLocale('en', {
	        eras: [{
	            since: '0001-01-01',
	            until: +Infinity,
	            offset: 1,
	            name: 'Anno Domini',
	            narrow: 'AD',
	            abbr: 'AD'
	        }, {
	            since: '0000-12-31',
	            until: -Infinity,
	            offset: 1,
	            name: 'Before Christ',
	            narrow: 'BC',
	            abbr: 'BC'
	        }],
	        dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
	        ordinal: function ordinal(number) {
	            var b = number % 10,
	                output = toInt(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
	            return number + output;
	        }
	    });
	
	    // Side effect imports
	
	    hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale);
	    hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale);
	
	    var mathAbs = Math.abs;
	
	    function abs() {
	        var data = this._data;
	
	        this._milliseconds = mathAbs(this._milliseconds);
	        this._days = mathAbs(this._days);
	        this._months = mathAbs(this._months);
	
	        data.milliseconds = mathAbs(data.milliseconds);
	        data.seconds = mathAbs(data.seconds);
	        data.minutes = mathAbs(data.minutes);
	        data.hours = mathAbs(data.hours);
	        data.months = mathAbs(data.months);
	        data.years = mathAbs(data.years);
	
	        return this;
	    }
	
	    function addSubtract$1(duration, input, value, direction) {
	        var other = createDuration(input, value);
	
	        duration._milliseconds += direction * other._milliseconds;
	        duration._days += direction * other._days;
	        duration._months += direction * other._months;
	
	        return duration._bubble();
	    }
	
	    // supports only 2.0-style add(1, 's') or add(duration)
	    function add$1(input, value) {
	        return addSubtract$1(this, input, value, 1);
	    }
	
	    // supports only 2.0-style subtract(1, 's') or subtract(duration)
	    function subtract$1(input, value) {
	        return addSubtract$1(this, input, value, -1);
	    }
	
	    function absCeil(number) {
	        if (number < 0) {
	            return Math.floor(number);
	        } else {
	            return Math.ceil(number);
	        }
	    }
	
	    function bubble() {
	        var milliseconds = this._milliseconds,
	            days = this._days,
	            months = this._months,
	            data = this._data,
	            seconds,
	            minutes,
	            hours,
	            years,
	            monthsFromDays;
	
	        // if we have a mix of positive and negative values, bubble down first
	        // check: https://github.com/moment/moment/issues/2166
	        if (!(milliseconds >= 0 && days >= 0 && months >= 0 || milliseconds <= 0 && days <= 0 && months <= 0)) {
	            milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
	            days = 0;
	            months = 0;
	        }
	
	        // The following code bubbles up values, see the tests for
	        // examples of what that means.
	        data.milliseconds = milliseconds % 1000;
	
	        seconds = absFloor(milliseconds / 1000);
	        data.seconds = seconds % 60;
	
	        minutes = absFloor(seconds / 60);
	        data.minutes = minutes % 60;
	
	        hours = absFloor(minutes / 60);
	        data.hours = hours % 24;
	
	        days += absFloor(hours / 24);
	
	        // convert days to months
	        monthsFromDays = absFloor(daysToMonths(days));
	        months += monthsFromDays;
	        days -= absCeil(monthsToDays(monthsFromDays));
	
	        // 12 months -> 1 year
	        years = absFloor(months / 12);
	        months %= 12;
	
	        data.days = days;
	        data.months = months;
	        data.years = years;
	
	        return this;
	    }
	
	    function daysToMonths(days) {
	        // 400 years have 146097 days (taking into account leap year rules)
	        // 400 years have 12 months === 4800
	        return days * 4800 / 146097;
	    }
	
	    function monthsToDays(months) {
	        // the reverse of daysToMonths
	        return months * 146097 / 4800;
	    }
	
	    function as(units) {
	        if (!this.isValid()) {
	            return NaN;
	        }
	        var days,
	            months,
	            milliseconds = this._milliseconds;
	
	        units = normalizeUnits(units);
	
	        if (units === 'month' || units === 'quarter' || units === 'year') {
	            days = this._days + milliseconds / 864e5;
	            months = this._months + daysToMonths(days);
	            switch (units) {
	                case 'month':
	                    return months;
	                case 'quarter':
	                    return months / 3;
	                case 'year':
	                    return months / 12;
	            }
	        } else {
	            // handle milliseconds separately because of floating point math errors (issue #1867)
	            days = this._days + Math.round(monthsToDays(this._months));
	            switch (units) {
	                case 'week':
	                    return days / 7 + milliseconds / 6048e5;
	                case 'day':
	                    return days + milliseconds / 864e5;
	                case 'hour':
	                    return days * 24 + milliseconds / 36e5;
	                case 'minute':
	                    return days * 1440 + milliseconds / 6e4;
	                case 'second':
	                    return days * 86400 + milliseconds / 1000;
	                // Math.floor prevents floating point math errors here
	                case 'millisecond':
	                    return Math.floor(days * 864e5) + milliseconds;
	                default:
	                    throw new Error('Unknown unit ' + units);
	            }
	        }
	    }
	
	    function makeAs(alias) {
	        return function () {
	            return this.as(alias);
	        };
	    }
	
	    var asMilliseconds = makeAs('ms'),
	        asSeconds = makeAs('s'),
	        asMinutes = makeAs('m'),
	        asHours = makeAs('h'),
	        asDays = makeAs('d'),
	        asWeeks = makeAs('w'),
	        asMonths = makeAs('M'),
	        asQuarters = makeAs('Q'),
	        asYears = makeAs('y'),
	        valueOf$1 = asMilliseconds;
	
	    function clone$1() {
	        return createDuration(this);
	    }
	
	    function get$2(units) {
	        units = normalizeUnits(units);
	        return this.isValid() ? this[units + 's']() : NaN;
	    }
	
	    function makeGetter(name) {
	        return function () {
	            return this.isValid() ? this._data[name] : NaN;
	        };
	    }
	
	    var milliseconds = makeGetter('milliseconds'),
	        seconds = makeGetter('seconds'),
	        minutes = makeGetter('minutes'),
	        hours = makeGetter('hours'),
	        days = makeGetter('days'),
	        months = makeGetter('months'),
	        years = makeGetter('years');
	
	    function weeks() {
	        return absFloor(this.days() / 7);
	    }
	
	    var round = Math.round,
	        thresholds = {
	        ss: 44, // a few seconds to seconds
	        s: 45, // seconds to minute
	        m: 45, // minutes to hour
	        h: 22, // hours to day
	        d: 26, // days to month/week
	        w: null, // weeks to month
	        M: 11 // months to year
	    };
	
	    // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
	    function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
	        return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
	    }
	
	    function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
	        var duration = createDuration(posNegDuration).abs(),
	            seconds = round(duration.as('s')),
	            minutes = round(duration.as('m')),
	            hours = round(duration.as('h')),
	            days = round(duration.as('d')),
	            months = round(duration.as('M')),
	            weeks = round(duration.as('w')),
	            years = round(duration.as('y')),
	            a = seconds <= thresholds.ss && ['s', seconds] || seconds < thresholds.s && ['ss', seconds] || minutes <= 1 && ['m'] || minutes < thresholds.m && ['mm', minutes] || hours <= 1 && ['h'] || hours < thresholds.h && ['hh', hours] || days <= 1 && ['d'] || days < thresholds.d && ['dd', days];
	
	        if (thresholds.w != null) {
	            a = a || weeks <= 1 && ['w'] || weeks < thresholds.w && ['ww', weeks];
	        }
	        a = a || months <= 1 && ['M'] || months < thresholds.M && ['MM', months] || years <= 1 && ['y'] || ['yy', years];
	
	        a[2] = withoutSuffix;
	        a[3] = +posNegDuration > 0;
	        a[4] = locale;
	        return substituteTimeAgo.apply(null, a);
	    }
	
	    // This function allows you to set the rounding function for relative time strings
	    function getSetRelativeTimeRounding(roundingFunction) {
	        if (roundingFunction === undefined) {
	            return round;
	        }
	        if (typeof roundingFunction === 'function') {
	            round = roundingFunction;
	            return true;
	        }
	        return false;
	    }
	
	    // This function allows you to set a threshold for relative time strings
	    function getSetRelativeTimeThreshold(threshold, limit) {
	        if (thresholds[threshold] === undefined) {
	            return false;
	        }
	        if (limit === undefined) {
	            return thresholds[threshold];
	        }
	        thresholds[threshold] = limit;
	        if (threshold === 's') {
	            thresholds.ss = limit - 1;
	        }
	        return true;
	    }
	
	    function humanize(argWithSuffix, argThresholds) {
	        if (!this.isValid()) {
	            return this.localeData().invalidDate();
	        }
	
	        var withSuffix = false,
	            th = thresholds,
	            locale,
	            output;
	
	        if ((typeof argWithSuffix === 'undefined' ? 'undefined' : _typeof(argWithSuffix)) === 'object') {
	            argThresholds = argWithSuffix;
	            argWithSuffix = false;
	        }
	        if (typeof argWithSuffix === 'boolean') {
	            withSuffix = argWithSuffix;
	        }
	        if ((typeof argThresholds === 'undefined' ? 'undefined' : _typeof(argThresholds)) === 'object') {
	            th = Object.assign({}, thresholds, argThresholds);
	            if (argThresholds.s != null && argThresholds.ss == null) {
	                th.ss = argThresholds.s - 1;
	            }
	        }
	
	        locale = this.localeData();
	        output = relativeTime$1(this, !withSuffix, th, locale);
	
	        if (withSuffix) {
	            output = locale.pastFuture(+this, output);
	        }
	
	        return locale.postformat(output);
	    }
	
	    var abs$1 = Math.abs;
	
	    function sign(x) {
	        return (x > 0) - (x < 0) || +x;
	    }
	
	    function toISOString$1() {
	        // for ISO strings we do not use the normal bubbling rules:
	        //  * milliseconds bubble up until they become hours
	        //  * days do not bubble at all
	        //  * months bubble up until they become years
	        // This is because there is no context-free conversion between hours and days
	        // (think of clock changes)
	        // and also not between days and months (28-31 days per month)
	        if (!this.isValid()) {
	            return this.localeData().invalidDate();
	        }
	
	        var seconds = abs$1(this._milliseconds) / 1000,
	            days = abs$1(this._days),
	            months = abs$1(this._months),
	            minutes,
	            hours,
	            years,
	            s,
	            total = this.asSeconds(),
	            totalSign,
	            ymSign,
	            daysSign,
	            hmsSign;
	
	        if (!total) {
	            // this is the same as C#'s (Noda) and python (isodate)...
	            // but not other JS (goog.date)
	            return 'P0D';
	        }
	
	        // 3600 seconds -> 60 minutes -> 1 hour
	        minutes = absFloor(seconds / 60);
	        hours = absFloor(minutes / 60);
	        seconds %= 60;
	        minutes %= 60;
	
	        // 12 months -> 1 year
	        years = absFloor(months / 12);
	        months %= 12;
	
	        // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
	        s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
	
	        totalSign = total < 0 ? '-' : '';
	        ymSign = sign(this._months) !== sign(total) ? '-' : '';
	        daysSign = sign(this._days) !== sign(total) ? '-' : '';
	        hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
	
	        return totalSign + 'P' + (years ? ymSign + years + 'Y' : '') + (months ? ymSign + months + 'M' : '') + (days ? daysSign + days + 'D' : '') + (hours || minutes || seconds ? 'T' : '') + (hours ? hmsSign + hours + 'H' : '') + (minutes ? hmsSign + minutes + 'M' : '') + (seconds ? hmsSign + s + 'S' : '');
	    }
	
	    var proto$2 = Duration.prototype;
	
	    proto$2.isValid = isValid$1;
	    proto$2.abs = abs;
	    proto$2.add = add$1;
	    proto$2.subtract = subtract$1;
	    proto$2.as = as;
	    proto$2.asMilliseconds = asMilliseconds;
	    proto$2.asSeconds = asSeconds;
	    proto$2.asMinutes = asMinutes;
	    proto$2.asHours = asHours;
	    proto$2.asDays = asDays;
	    proto$2.asWeeks = asWeeks;
	    proto$2.asMonths = asMonths;
	    proto$2.asQuarters = asQuarters;
	    proto$2.asYears = asYears;
	    proto$2.valueOf = valueOf$1;
	    proto$2._bubble = bubble;
	    proto$2.clone = clone$1;
	    proto$2.get = get$2;
	    proto$2.milliseconds = milliseconds;
	    proto$2.seconds = seconds;
	    proto$2.minutes = minutes;
	    proto$2.hours = hours;
	    proto$2.days = days;
	    proto$2.weeks = weeks;
	    proto$2.months = months;
	    proto$2.years = years;
	    proto$2.humanize = humanize;
	    proto$2.toISOString = toISOString$1;
	    proto$2.toString = toISOString$1;
	    proto$2.toJSON = toISOString$1;
	    proto$2.locale = locale;
	    proto$2.localeData = localeData;
	
	    proto$2.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1);
	    proto$2.lang = lang;
	
	    // FORMATTING
	
	    addFormatToken('X', 0, 0, 'unix');
	    addFormatToken('x', 0, 0, 'valueOf');
	
	    // PARSING
	
	    addRegexToken('x', matchSigned);
	    addRegexToken('X', matchTimestamp);
	    addParseToken('X', function (input, array, config) {
	        config._d = new Date(parseFloat(input) * 1000);
	    });
	    addParseToken('x', function (input, array, config) {
	        config._d = new Date(toInt(input));
	    });
	
	    //! moment.js
	
	    hooks.version = '2.30.1';
	
	    setHookCallback(createLocal);
	
	    hooks.fn = proto;
	    hooks.min = min;
	    hooks.max = max;
	    hooks.now = now;
	    hooks.utc = createUTC;
	    hooks.unix = createUnix;
	    hooks.months = listMonths;
	    hooks.isDate = isDate;
	    hooks.locale = getSetGlobalLocale;
	    hooks.invalid = createInvalid;
	    hooks.duration = createDuration;
	    hooks.isMoment = isMoment;
	    hooks.weekdays = listWeekdays;
	    hooks.parseZone = createInZone;
	    hooks.localeData = getLocale;
	    hooks.isDuration = isDuration;
	    hooks.monthsShort = listMonthsShort;
	    hooks.weekdaysMin = listWeekdaysMin;
	    hooks.defineLocale = defineLocale;
	    hooks.updateLocale = updateLocale;
	    hooks.locales = listLocales;
	    hooks.weekdaysShort = listWeekdaysShort;
	    hooks.normalizeUnits = normalizeUnits;
	    hooks.relativeTimeRounding = getSetRelativeTimeRounding;
	    hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
	    hooks.calendarFormat = getCalendarFormat;
	    hooks.prototype = proto;
	
	    // currently HTML5 input type only supports 24-hour formats
	    hooks.HTML5_FMT = {
	        DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" />
	        DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" />
	        DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" />
	        DATE: 'YYYY-MM-DD', // <input type="date" />
	        TIME: 'HH:mm', // <input type="time" />
	        TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
	        TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
	        WEEK: 'GGGG-[W]WW', // <input type="week" />
	        MONTH: 'YYYY-MM' // <input type="month" />
	    };
	
	    return hooks;
	});
	/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(38)(module)))

/***/ }),
/* 3 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	tslib_1.__exportStar(__webpack_require__(47), exports);
	tslib_1.__exportStar(__webpack_require__(2204), exports);
	tslib_1.__exportStar(__webpack_require__(2202), exports);
	tslib_1.__exportStar(__webpack_require__(908), exports);
	tslib_1.__exportStar(__webpack_require__(2205), exports);
	tslib_1.__exportStar(__webpack_require__(2201), exports);
	tslib_1.__exportStar(__webpack_require__(909), exports);
	tslib_1.__exportStar(__webpack_require__(2203), exports);
	var orm_1 = __webpack_require__(47);
	/**
	 * @deprecated used to support older code and transition away from QueryMediator
	 */
	exports.ORMMediator = orm_1.ORM;


/***/ }),
/* 4 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(global) {/*! *****************************************************************************
	Copyright (c) Microsoft Corporation.
	
	Permission to use, copy, modify, and/or distribute this software for any
	purpose with or without fee is hereby granted.
	
	THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
	REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
	AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
	INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
	LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
	OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
	PERFORMANCE OF THIS SOFTWARE.
	***************************************************************************** */
	
	/* global global, define, System, Reflect, Promise */
	var __extends;
	var __assign;
	var __rest;
	var __decorate;
	var __param;
	var __metadata;
	var __awaiter;
	var __generator;
	var __exportStar;
	var __values;
	var __read;
	var __spread;
	var __spreadArrays;
	var __await;
	var __asyncGenerator;
	var __asyncDelegator;
	var __asyncValues;
	var __makeTemplateObject;
	var __importStar;
	var __importDefault;
	var __classPrivateFieldGet;
	var __classPrivateFieldSet;
	var __createBinding;
	(function (factory) {
	    var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
	    if (true) {
	        !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports], __WEBPACK_AMD_DEFINE_RESULT__ = function (exports) { factory(createExporter(root, createExporter(exports))); }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
	    }
	    else if (typeof module === "object" && typeof module.exports === "object") {
	        factory(createExporter(root, createExporter(module.exports)));
	    }
	    else {
	        factory(createExporter(root));
	    }
	    function createExporter(exports, previous) {
	        if (exports !== root) {
	            if (typeof Object.create === "function") {
	                Object.defineProperty(exports, "__esModule", { value: true });
	            }
	            else {
	                exports.__esModule = true;
	            }
	        }
	        return function (id, v) { return exports[id] = previous ? previous(id, v) : v; };
	    }
	})
	(function (exporter) {
	    var extendStatics = Object.setPrototypeOf ||
	        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
	        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
	
	    __extends = function (d, b) {
	        extendStatics(d, b);
	        function __() { this.constructor = d; }
	        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
	    };
	
	    __assign = Object.assign || function (t) {
	        for (var s, i = 1, n = arguments.length; i < n; i++) {
	            s = arguments[i];
	            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
	        }
	        return t;
	    };
	
	    __rest = function (s, e) {
	        var t = {};
	        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
	            t[p] = s[p];
	        if (s != null && typeof Object.getOwnPropertySymbols === "function")
	            for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
	                if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
	                    t[p[i]] = s[p[i]];
	            }
	        return t;
	    };
	
	    __decorate = function (decorators, target, key, desc) {
	        var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
	        if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
	        else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
	        return c > 3 && r && Object.defineProperty(target, key, r), r;
	    };
	
	    __param = function (paramIndex, decorator) {
	        return function (target, key) { decorator(target, key, paramIndex); }
	    };
	
	    __metadata = function (metadataKey, metadataValue) {
	        if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
	    };
	
	    __awaiter = function (thisArg, _arguments, P, generator) {
	        function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
	        return new (P || (P = Promise))(function (resolve, reject) {
	            function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
	            function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
	            function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
	            step((generator = generator.apply(thisArg, _arguments || [])).next());
	        });
	    };
	
	    __generator = function (thisArg, body) {
	        var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
	        return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
	        function verb(n) { return function (v) { return step([n, v]); }; }
	        function step(op) {
	            if (f) throw new TypeError("Generator is already executing.");
	            while (_) try {
	                if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
	                if (y = 0, t) op = [op[0] & 2, t.value];
	                switch (op[0]) {
	                    case 0: case 1: t = op; break;
	                    case 4: _.label++; return { value: op[1], done: false };
	                    case 5: _.label++; y = op[1]; op = [0]; continue;
	                    case 7: op = _.ops.pop(); _.trys.pop(); continue;
	                    default:
	                        if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
	                        if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
	                        if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
	                        if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
	                        if (t[2]) _.ops.pop();
	                        _.trys.pop(); continue;
	                }
	                op = body.call(thisArg, _);
	            } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
	            if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
	        }
	    };
	
	    __createBinding = function(o, m, k, k2) {
	        if (k2 === undefined) k2 = k;
	        o[k2] = m[k];
	    };
	
	    __exportStar = function (m, exports) {
	        for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
	    };
	
	    __values = function (o) {
	        var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
	        if (m) return m.call(o);
	        if (o && typeof o.length === "number") return {
	            next: function () {
	                if (o && i >= o.length) o = void 0;
	                return { value: o && o[i++], done: !o };
	            }
	        };
	        throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
	    };
	
	    __read = function (o, n) {
	        var m = typeof Symbol === "function" && o[Symbol.iterator];
	        if (!m) return o;
	        var i = m.call(o), r, ar = [], e;
	        try {
	            while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
	        }
	        catch (error) { e = { error: error }; }
	        finally {
	            try {
	                if (r && !r.done && (m = i["return"])) m.call(i);
	            }
	            finally { if (e) throw e.error; }
	        }
	        return ar;
	    };
	
	    __spread = function () {
	        for (var ar = [], i = 0; i < arguments.length; i++)
	            ar = ar.concat(__read(arguments[i]));
	        return ar;
	    };
	
	    __spreadArrays = function () {
	        for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
	        for (var r = Array(s), k = 0, i = 0; i < il; i++)
	            for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
	                r[k] = a[j];
	        return r;
	    };
	
	    __await = function (v) {
	        return this instanceof __await ? (this.v = v, this) : new __await(v);
	    };
	
	    __asyncGenerator = function (thisArg, _arguments, generator) {
	        if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
	        var g = generator.apply(thisArg, _arguments || []), i, q = [];
	        return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
	        function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
	        function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
	        function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);  }
	        function fulfill(value) { resume("next", value); }
	        function reject(value) { resume("throw", value); }
	        function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
	    };
	
	    __asyncDelegator = function (o) {
	        var i, p;
	        return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
	        function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
	    };
	
	    __asyncValues = function (o) {
	        if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
	        var m = o[Symbol.asyncIterator], i;
	        return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
	        function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
	        function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
	    };
	
	    __makeTemplateObject = function (cooked, raw) {
	        if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
	        return cooked;
	    };
	
	    __importStar = function (mod) {
	        if (mod && mod.__esModule) return mod;
	        var result = {};
	        if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
	        result["default"] = mod;
	        return result;
	    };
	
	    __importDefault = function (mod) {
	        return (mod && mod.__esModule) ? mod : { "default": mod };
	    };
	
	    __classPrivateFieldGet = function (receiver, privateMap) {
	        if (!privateMap.has(receiver)) {
	            throw new TypeError("attempted to get private field on non-instance");
	        }
	        return privateMap.get(receiver);
	    };
	
	    __classPrivateFieldSet = function (receiver, privateMap, value) {
	        if (!privateMap.has(receiver)) {
	            throw new TypeError("attempted to set private field on non-instance");
	        }
	        privateMap.set(receiver, value);
	        return value;
	    };
	
	    exporter("__extends", __extends);
	    exporter("__assign", __assign);
	    exporter("__rest", __rest);
	    exporter("__decorate", __decorate);
	    exporter("__param", __param);
	    exporter("__metadata", __metadata);
	    exporter("__awaiter", __awaiter);
	    exporter("__generator", __generator);
	    exporter("__exportStar", __exportStar);
	    exporter("__createBinding", __createBinding);
	    exporter("__values", __values);
	    exporter("__read", __read);
	    exporter("__spread", __spread);
	    exporter("__spreadArrays", __spreadArrays);
	    exporter("__await", __await);
	    exporter("__asyncGenerator", __asyncGenerator);
	    exporter("__asyncDelegator", __asyncDelegator);
	    exporter("__asyncValues", __asyncValues);
	    exporter("__makeTemplateObject", __makeTemplateObject);
	    exporter("__importStar", __importStar);
	    exporter("__importDefault", __importDefault);
	    exporter("__classPrivateFieldGet", __classPrivateFieldGet);
	    exporter("__classPrivateFieldSet", __classPrivateFieldSet);
	});
	
	/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))

/***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	angular.module('utility-ng-kernel', []);
	tslib_1.__exportStar(__webpack_require__(2200), exports);
	tslib_1.__exportStar(__webpack_require__(905), exports);
	tslib_1.__exportStar(__webpack_require__(3), exports);
	var utility_ts_orm_1 = __webpack_require__(3);
	var query_mediator_1 = __webpack_require__(905);
	angular
	    .module('utility-ng-kernel')
	    /**
	     * @deprecated do not use the QueryMediator, just import the ORMMediator
	     */
	    .service('QueryMediator', query_mediator_1.QueryMediator)
	    .constant('Datasource', utility_ts_orm_1.Datasource);


/***/ }),
/* 6 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	tslib_1.__exportStar(__webpack_require__(2211), exports);
	tslib_1.__exportStar(__webpack_require__(2208), exports);
	tslib_1.__exportStar(__webpack_require__(2209), exports);
	tslib_1.__exportStar(__webpack_require__(2207), exports);
	tslib_1.__exportStar(__webpack_require__(2210), exports);


/***/ }),
/* 7 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(module, global) {'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	/**
	 * @license
	 * lodash 3.10.1 <https://lodash.com/>
	 * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
	 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
	 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
	 * Available under MIT license <https://lodash.com/license>
	 */
	;(function () {
	
	  /** Used as a safe reference for `undefined` in pre-ES5 environments. */
	  var undefined;
	
	  /** Used as the semantic version number. */
	  var VERSION = '3.10.1';
	
	  /** Used to compose bitmasks for wrapper metadata. */
	  var BIND_FLAG = 1,
	      BIND_KEY_FLAG = 2,
	      CURRY_BOUND_FLAG = 4,
	      CURRY_FLAG = 8,
	      CURRY_RIGHT_FLAG = 16,
	      PARTIAL_FLAG = 32,
	      PARTIAL_RIGHT_FLAG = 64,
	      ARY_FLAG = 128,
	      REARG_FLAG = 256;
	
	  /** Used as default options for `_.trunc`. */
	  var DEFAULT_TRUNC_LENGTH = 30,
	      DEFAULT_TRUNC_OMISSION = '...';
	
	  /** Used to detect when a function becomes hot. */
	  var HOT_COUNT = 150,
	      HOT_SPAN = 16;
	
	  /** Used as the size to enable large array optimizations. */
	  var LARGE_ARRAY_SIZE = 200;
	
	  /** Used to indicate the type of lazy iteratees. */
	  var LAZY_FILTER_FLAG = 1,
	      LAZY_MAP_FLAG = 2;
	
	  /** Used as the `TypeError` message for "Functions" methods. */
	  var FUNC_ERROR_TEXT = 'Expected a function';
	
	  /** Used as the internal argument placeholder. */
	  var PLACEHOLDER = '__lodash_placeholder__';
	
	  /** `Object#toString` result references. */
	  var argsTag = '[object Arguments]',
	      arrayTag = '[object Array]',
	      boolTag = '[object Boolean]',
	      dateTag = '[object Date]',
	      errorTag = '[object Error]',
	      funcTag = '[object Function]',
	      mapTag = '[object Map]',
	      numberTag = '[object Number]',
	      objectTag = '[object Object]',
	      regexpTag = '[object RegExp]',
	      setTag = '[object Set]',
	      stringTag = '[object String]',
	      weakMapTag = '[object WeakMap]';
	
	  var arrayBufferTag = '[object ArrayBuffer]',
	      float32Tag = '[object Float32Array]',
	      float64Tag = '[object Float64Array]',
	      int8Tag = '[object Int8Array]',
	      int16Tag = '[object Int16Array]',
	      int32Tag = '[object Int32Array]',
	      uint8Tag = '[object Uint8Array]',
	      uint8ClampedTag = '[object Uint8ClampedArray]',
	      uint16Tag = '[object Uint16Array]',
	      uint32Tag = '[object Uint32Array]';
	
	  /** Used to match empty string literals in compiled template source. */
	  var reEmptyStringLeading = /\b__p \+= '';/g,
	      reEmptyStringMiddle = /\b(__p \+=) '' \+/g,
	      reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;
	
	  /** Used to match HTML entities and HTML characters. */
	  var reEscapedHtml = /&(?:amp|lt|gt|quot|#39|#96);/g,
	      reUnescapedHtml = /[&<>"'`]/g,
	      reHasEscapedHtml = RegExp(reEscapedHtml.source),
	      reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
	
	  /** Used to match template delimiters. */
	  var reEscape = /<%-([\s\S]+?)%>/g,
	      reEvaluate = /<%([\s\S]+?)%>/g,
	      reInterpolate = /<%=([\s\S]+?)%>/g;
	
	  /** Used to match property names within property paths. */
	  var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,
	      reIsPlainProp = /^\w*$/,
	      rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g;
	
	  /**
	   * Used to match `RegExp` [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns)
	   * and those outlined by [`EscapeRegExpPattern`](http://ecma-international.org/ecma-262/6.0/#sec-escaperegexppattern).
	   */
	  var reRegExpChars = /^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,
	      reHasRegExpChars = RegExp(reRegExpChars.source);
	
	  /** Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks). */
	  var reComboMark = /[\u0300-\u036f\ufe20-\ufe23]/g;
	
	  /** Used to match backslashes in property paths. */
	  var reEscapeChar = /\\(\\)?/g;
	
	  /** Used to match [ES template delimiters](http://ecma-international.org/ecma-262/6.0/#sec-template-literal-lexical-components). */
	  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
	
	  /** Used to match `RegExp` flags from their coerced string values. */
	  var reFlags = /\w*$/;
	
	  /** Used to detect hexadecimal string values. */
	  var reHasHexPrefix = /^0[xX]/;
	
	  /** Used to detect host constructors (Safari > 5). */
	  var reIsHostCtor = /^\[object .+?Constructor\]$/;
	
	  /** Used to detect unsigned integer values. */
	  var reIsUint = /^\d+$/;
	
	  /** Used to match latin-1 supplementary letters (excluding mathematical operators). */
	  var reLatin1 = /[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g;
	
	  /** Used to ensure capturing order of template delimiters. */
	  var reNoMatch = /($^)/;
	
	  /** Used to match unescaped characters in compiled string literals. */
	  var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
	
	  /** Used to match words to create compound words. */
	  var reWords = function () {
	    var upper = '[A-Z\\xc0-\\xd6\\xd8-\\xde]',
	        lower = '[a-z\\xdf-\\xf6\\xf8-\\xff]+';
	
	    return RegExp(upper + '+(?=' + upper + lower + ')|' + upper + '?' + lower + '|' + upper + '+|[0-9]+', 'g');
	  }();
	
	  /** Used to assign default `context` object properties. */
	  var contextProps = ['Array', 'ArrayBuffer', 'Date', 'Error', 'Float32Array', 'Float64Array', 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Math', 'Number', 'Object', 'RegExp', 'Set', 'String', '_', 'clearTimeout', 'isFinite', 'parseFloat', 'parseInt', 'setTimeout', 'TypeError', 'Uint8Array', 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap'];
	
	  /** Used to fix the JScript `[[DontEnum]]` bug. */
	  var shadowProps = ['constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf'];
	
	  /** Used to make template sourceURLs easier to identify. */
	  var templateCounter = -1;
	
	  /** Used to identify `toStringTag` values of typed arrays. */
	  var typedArrayTags = {};
	  typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
	  typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
	
	  /** Used to identify `toStringTag` values supported by `_.clone`. */
	  var cloneableTags = {};
	  cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[stringTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
	  cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[mapTag] = cloneableTags[setTag] = cloneableTags[weakMapTag] = false;
	
	  /** Used to map latin-1 supplementary letters to basic latin letters. */
	  var deburredLetters = {
	    '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
	    '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
	    '\xc7': 'C', '\xe7': 'c',
	    '\xd0': 'D', '\xf0': 'd',
	    '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
	    '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
	    '\xcC': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
	    '\xeC': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
	    '\xd1': 'N', '\xf1': 'n',
	    '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
	    '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
	    '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
	    '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
	    '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
	    '\xc6': 'Ae', '\xe6': 'ae',
	    '\xde': 'Th', '\xfe': 'th',
	    '\xdf': 'ss'
	  };
	
	  /** Used to map characters to HTML entities. */
	  var htmlEscapes = {
	    '&': '&amp;',
	    '<': '&lt;',
	    '>': '&gt;',
	    '"': '&quot;',
	    "'": '&#39;',
	    '`': '&#96;'
	  };
	
	  /** Used to map HTML entities to characters. */
	  var htmlUnescapes = {
	    '&amp;': '&',
	    '&lt;': '<',
	    '&gt;': '>',
	    '&quot;': '"',
	    '&#39;': "'",
	    '&#96;': '`'
	  };
	
	  /** Used to determine if values are of the language type `Object`. */
	  var objectTypes = {
	    'function': true,
	    'object': true
	  };
	
	  /** Used to escape characters for inclusion in compiled regexes. */
	  var regexpEscapes = {
	    '0': 'x30', '1': 'x31', '2': 'x32', '3': 'x33', '4': 'x34',
	    '5': 'x35', '6': 'x36', '7': 'x37', '8': 'x38', '9': 'x39',
	    'A': 'x41', 'B': 'x42', 'C': 'x43', 'D': 'x44', 'E': 'x45', 'F': 'x46',
	    'a': 'x61', 'b': 'x62', 'c': 'x63', 'd': 'x64', 'e': 'x65', 'f': 'x66',
	    'n': 'x6e', 'r': 'x72', 't': 'x74', 'u': 'x75', 'v': 'x76', 'x': 'x78'
	  };
	
	  /** Used to escape characters for inclusion in compiled string literals. */
	  var stringEscapes = {
	    '\\': '\\',
	    "'": "'",
	    '\n': 'n',
	    '\r': 'r',
	    '\u2028': 'u2028',
	    '\u2029': 'u2029'
	  };
	
	  /** Detect free variable `exports`. */
	  var freeExports = objectTypes[ false ? 'undefined' : _typeof(exports)] && exports && !exports.nodeType && exports;
	
	  /** Detect free variable `module`. */
	  var freeModule = objectTypes[ false ? 'undefined' : _typeof(module)] && module && !module.nodeType && module;
	
	  /** Detect free variable `global` from Node.js. */
	  var freeGlobal = freeExports && freeModule && (typeof global === 'undefined' ? 'undefined' : _typeof(global)) == 'object' && global && global.Object && global;
	
	  /** Detect free variable `self`. */
	  var freeSelf = objectTypes[typeof self === 'undefined' ? 'undefined' : _typeof(self)] && self && self.Object && self;
	
	  /** Detect free variable `window`. */
	  var freeWindow = objectTypes[typeof window === 'undefined' ? 'undefined' : _typeof(window)] && window && window.Object && window;
	
	  /** Detect the popular CommonJS extension `module.exports`. */
	  var moduleExports = freeModule && freeModule.exports === freeExports && freeExports;
	
	  /**
	   * Used as a reference to the global object.
	   *
	   * The `this` value is used if it's the global object to avoid Greasemonkey's
	   * restricted `window` object, otherwise the `window` object is used.
	   */
	  var root = freeGlobal || freeWindow !== (this && this.window) && freeWindow || freeSelf || this;
	
	  /*--------------------------------------------------------------------------*/
	
	  /**
	   * The base implementation of `compareAscending` which compares values and
	   * sorts them in ascending order without guaranteeing a stable sort.
	   *
	   * @private
	   * @param {*} value The value to compare.
	   * @param {*} other The other value to compare.
	   * @returns {number} Returns the sort order indicator for `value`.
	   */
	  function baseCompareAscending(value, other) {
	    if (value !== other) {
	      var valIsNull = value === null,
	          valIsUndef = value === undefined,
	          valIsReflexive = value === value;
	
	      var othIsNull = other === null,
	          othIsUndef = other === undefined,
	          othIsReflexive = other === other;
	
	      if (value > other && !othIsNull || !valIsReflexive || valIsNull && !othIsUndef && othIsReflexive || valIsUndef && othIsReflexive) {
	        return 1;
	      }
	      if (value < other && !valIsNull || !othIsReflexive || othIsNull && !valIsUndef && valIsReflexive || othIsUndef && valIsReflexive) {
	        return -1;
	      }
	    }
	    return 0;
	  }
	
	  /**
	   * The base implementation of `_.findIndex` and `_.findLastIndex` without
	   * support for callback shorthands and `this` binding.
	   *
	   * @private
	   * @param {Array} array The array to search.
	   * @param {Function} predicate The function invoked per iteration.
	   * @param {boolean} [fromRight] Specify iterating from right to left.
	   * @returns {number} Returns the index of the matched value, else `-1`.
	   */
	  function baseFindIndex(array, predicate, fromRight) {
	    var length = array.length,
	        index = fromRight ? length : -1;
	
	    while (fromRight ? index-- : ++index < length) {
	      if (predicate(array[index], index, array)) {
	        return index;
	      }
	    }
	    return -1;
	  }
	
	  /**
	   * The base implementation of `_.indexOf` without support for binary searches.
	   *
	   * @private
	   * @param {Array} array The array to search.
	   * @param {*} value The value to search for.
	   * @param {number} fromIndex The index to search from.
	   * @returns {number} Returns the index of the matched value, else `-1`.
	   */
	  function baseIndexOf(array, value, fromIndex) {
	    if (value !== value) {
	      return indexOfNaN(array, fromIndex);
	    }
	    var index = fromIndex - 1,
	        length = array.length;
	
	    while (++index < length) {
	      if (array[index] === value) {
	        return index;
	      }
	    }
	    return -1;
	  }
	
	  /**
	   * The base implementation of `_.isFunction` without support for environments
	   * with incorrect `typeof` results.
	   *
	   * @private
	   * @param {*} value The value to check.
	   * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
	   */
	  function baseIsFunction(value) {
	    // Avoid a Chakra JIT bug in compatibility modes of IE 11.
	    // See https://github.com/jashkenas/underscore/issues/1621 for more details.
	    return typeof value == 'function' || false;
	  }
	
	  /**
	   * Converts `value` to a string if it's not one. An empty string is returned
	   * for `null` or `undefined` values.
	   *
	   * @private
	   * @param {*} value The value to process.
	   * @returns {string} Returns the string.
	   */
	  function baseToString(value) {
	    return value == null ? '' : value + '';
	  }
	
	  /**
	   * Used by `_.trim` and `_.trimLeft` to get the index of the first character
	   * of `string` that is not found in `chars`.
	   *
	   * @private
	   * @param {string} string The string to inspect.
	   * @param {string} chars The characters to find.
	   * @returns {number} Returns the index of the first character not found in `chars`.
	   */
	  function charsLeftIndex(string, chars) {
	    var index = -1,
	        length = string.length;
	
	    while (++index < length && chars.indexOf(string.charAt(index)) > -1) {}
	    return index;
	  }
	
	  /**
	   * Used by `_.trim` and `_.trimRight` to get the index of the last character
	   * of `string` that is not found in `chars`.
	   *
	   * @private
	   * @param {string} string The string to inspect.
	   * @param {string} chars The characters to find.
	   * @returns {number} Returns the index of the last character not found in `chars`.
	   */
	  function charsRightIndex(string, chars) {
	    var index = string.length;
	
	    while (index-- && chars.indexOf(string.charAt(index)) > -1) {}
	    return index;
	  }
	
	  /**
	   * Used by `_.sortBy` to compare transformed elements of a collection and stable
	   * sort them in ascending order.
	   *
	   * @private
	   * @param {Object} object The object to compare.
	   * @param {Object} other The other object to compare.
	   * @returns {number} Returns the sort order indicator for `object`.
	   */
	  function compareAscending(object, other) {
	    return baseCompareAscending(object.criteria, other.criteria) || object.index - other.index;
	  }
	
	  /**
	   * Used by `_.sortByOrder` to compare multiple properties of a value to another
	   * and stable sort them.
	   *
	   * If `orders` is unspecified, all valuess are sorted in ascending order. Otherwise,
	   * a value is sorted in ascending order if its corresponding order is "asc", and
	   * descending if "desc".
	   *
	   * @private
	   * @param {Object} object The object to compare.
	   * @param {Object} other The other object to compare.
	   * @param {boolean[]} orders The order to sort by for each property.
	   * @returns {number} Returns the sort order indicator for `object`.
	   */
	  function compareMultiple(object, other, orders) {
	    var index = -1,
	        objCriteria = object.criteria,
	        othCriteria = other.criteria,
	        length = objCriteria.length,
	        ordersLength = orders.length;
	
	    while (++index < length) {
	      var result = baseCompareAscending(objCriteria[index], othCriteria[index]);
	      if (result) {
	        if (index >= ordersLength) {
	          return result;
	        }
	        var order = orders[index];
	        return result * (order === 'asc' || order === true ? 1 : -1);
	      }
	    }
	    // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
	    // that causes it, under certain circumstances, to provide the same value for
	    // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
	    // for more details.
	    //
	    // This also ensures a stable sort in V8 and other engines.
	    // See https://code.google.com/p/v8/issues/detail?id=90 for more details.
	    return object.index - other.index;
	  }
	
	  /**
	   * Used by `_.deburr` to convert latin-1 supplementary letters to basic latin letters.
	   *
	   * @private
	   * @param {string} letter The matched letter to deburr.
	   * @returns {string} Returns the deburred letter.
	   */
	  function deburrLetter(letter) {
	    return deburredLetters[letter];
	  }
	
	  /**
	   * Used by `_.escape` to convert characters to HTML entities.
	   *
	   * @private
	   * @param {string} chr The matched character to escape.
	   * @returns {string} Returns the escaped character.
	   */
	  function escapeHtmlChar(chr) {
	    return htmlEscapes[chr];
	  }
	
	  /**
	   * Used by `_.escapeRegExp` to escape characters for inclusion in compiled regexes.
	   *
	   * @private
	   * @param {string} chr The matched character to escape.
	   * @param {string} leadingChar The capture group for a leading character.
	   * @param {string} whitespaceChar The capture group for a whitespace character.
	   * @returns {string} Returns the escaped character.
	   */
	  function escapeRegExpChar(chr, leadingChar, whitespaceChar) {
	    if (leadingChar) {
	      chr = regexpEscapes[chr];
	    } else if (whitespaceChar) {
	      chr = stringEscapes[chr];
	    }
	    return '\\' + chr;
	  }
	
	  /**
	   * Used by `_.template` to escape characters for inclusion in compiled string literals.
	   *
	   * @private
	   * @param {string} chr The matched character to escape.
	   * @returns {string} Returns the escaped character.
	   */
	  function escapeStringChar(chr) {
	    return '\\' + stringEscapes[chr];
	  }
	
	  /**
	   * Gets the index at which the first occurrence of `NaN` is found in `array`.
	   *
	   * @private
	   * @param {Array} array The array to search.
	   * @param {number} fromIndex The index to search from.
	   * @param {boolean} [fromRight] Specify iterating from right to left.
	   * @returns {number} Returns the index of the matched `NaN`, else `-1`.
	   */
	  function indexOfNaN(array, fromIndex, fromRight) {
	    var length = array.length,
	        index = fromIndex + (fromRight ? 0 : -1);
	
	    while (fromRight ? index-- : ++index < length) {
	      var other = array[index];
	      if (other !== other) {
	        return index;
	      }
	    }
	    return -1;
	  }
	
	  /**
	   * Checks if `value` is a host object in IE < 9.
	   *
	   * @private
	   * @param {*} value The value to check.
	   * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
	   */
	  var isHostObject = function () {
	    try {
	      Object({ 'toString': 0 } + '');
	    } catch (e) {
	      return function () {
	        return false;
	      };
	    }
	    return function (value) {
	      // IE < 9 presents many host objects as `Object` objects that can coerce
	      // to strings despite having improperly defined `toString` methods.
	      return typeof value.toString != 'function' && typeof (value + '') == 'string';
	    };
	  }();
	
	  /**
	   * Checks if `value` is object-like.
	   *
	   * @private
	   * @param {*} value The value to check.
	   * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
	   */
	  function isObjectLike(value) {
	    return !!value && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) == 'object';
	  }
	
	  /**
	   * Used by `trimmedLeftIndex` and `trimmedRightIndex` to determine if a
	   * character code is whitespace.
	   *
	   * @private
	   * @param {number} charCode The character code to inspect.
	   * @returns {boolean} Returns `true` if `charCode` is whitespace, else `false`.
	   */
	  function isSpace(charCode) {
	    return charCode <= 160 && charCode >= 9 && charCode <= 13 || charCode == 32 || charCode == 160 || charCode == 5760 || charCode == 6158 || charCode >= 8192 && (charCode <= 8202 || charCode == 8232 || charCode == 8233 || charCode == 8239 || charCode == 8287 || charCode == 12288 || charCode == 65279);
	  }
	
	  /**
	   * Replaces all `placeholder` elements in `array` with an internal placeholder
	   * and returns an array of their indexes.
	   *
	   * @private
	   * @param {Array} array The array to modify.
	   * @param {*} placeholder The placeholder to replace.
	   * @returns {Array} Returns the new array of placeholder indexes.
	   */
	  function replaceHolders(array, placeholder) {
	    var index = -1,
	        length = array.length,
	        resIndex = -1,
	        result = [];
	
	    while (++index < length) {
	      if (array[index] === placeholder) {
	        array[index] = PLACEHOLDER;
	        result[++resIndex] = index;
	      }
	    }
	    return result;
	  }
	
	  /**
	   * An implementation of `_.uniq` optimized for sorted arrays without support
	   * for callback shorthands and `this` binding.
	   *
	   * @private
	   * @param {Array} array The array to inspect.
	   * @param {Function} [iteratee] The function invoked per iteration.
	   * @returns {Array} Returns the new duplicate free array.
	   */
	  function sortedUniq(array, iteratee) {
	    var seen,
	        index = -1,
	        length = array.length,
	        resIndex = -1,
	        result = [];
	
	    while (++index < length) {
	      var value = array[index],
	          computed = iteratee ? iteratee(value, index, array) : value;
	
	      if (!index || seen !== computed) {
	        seen = computed;
	        result[++resIndex] = value;
	      }
	    }
	    return result;
	  }
	
	  /**
	   * Used by `_.trim` and `_.trimLeft` to get the index of the first non-whitespace
	   * character of `string`.
	   *
	   * @private
	   * @param {string} string The string to inspect.
	   * @returns {number} Returns the index of the first non-whitespace character.
	   */
	  function trimmedLeftIndex(string) {
	    var index = -1,
	        length = string.length;
	
	    while (++index < length && isSpace(string.charCodeAt(index))) {}
	    return index;
	  }
	
	  /**
	   * Used by `_.trim` and `_.trimRight` to get the index of the last non-whitespace
	   * character of `string`.
	   *
	   * @private
	   * @param {string} string The string to inspect.
	   * @returns {number} Returns the index of the last non-whitespace character.
	   */
	  function trimmedRightIndex(string) {
	    var index = string.length;
	
	    while (index-- && isSpace(string.charCodeAt(index))) {}
	    return index;
	  }
	
	  /**
	   * Used by `_.unescape` to convert HTML entities to characters.
	   *
	   * @private
	   * @param {string} chr The matched character to unescape.
	   * @returns {string} Returns the unescaped character.
	   */
	  function unescapeHtmlChar(chr) {
	    return htmlUnescapes[chr];
	  }
	
	  /*--------------------------------------------------------------------------*/
	
	  /**
	   * Create a new pristine `lodash` function using the given `context` object.
	   *
	   * @static
	   * @memberOf _
	   * @category Utility
	   * @param {Object} [context=root] The context object.
	   * @returns {Function} Returns a new `lodash` function.
	   * @example
	   *
	   * _.mixin({ 'foo': _.constant('foo') });
	   *
	   * var lodash = _.runInContext();
	   * lodash.mixin({ 'bar': lodash.constant('bar') });
	   *
	   * _.isFunction(_.foo);
	   * // => true
	   * _.isFunction(_.bar);
	   * // => false
	   *
	   * lodash.isFunction(lodash.foo);
	   * // => false
	   * lodash.isFunction(lodash.bar);
	   * // => true
	   *
	   * // using `context` to mock `Date#getTime` use in `_.now`
	   * var mock = _.runInContext({
	   *   'Date': function() {
	   *     return { 'getTime': getTimeMock };
	   *   }
	   * });
	   *
	   * // or creating a suped-up `defer` in Node.js
	   * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
	   */
	  function runInContext(context) {
	    // Avoid issues with some ES3 environments that attempt to use values, named
	    // after built-in constructors like `Object`, for the creation of literals.
	    // ES5 clears this up by stating that literals must use built-in constructors.
	    // See https://es5.github.io/#x11.1.5 for more details.
	    context = context ? _.defaults(root.Object(), context, _.pick(root, contextProps)) : root;
	
	    /** Native constructor references. */
	    var Array = context.Array,
	        Date = context.Date,
	        Error = context.Error,
	        Function = context.Function,
	        Math = context.Math,
	        Number = context.Number,
	        Object = context.Object,
	        RegExp = context.RegExp,
	        String = context.String,
	        TypeError = context.TypeError;
	
	    /** Used for native method references. */
	    var arrayProto = Array.prototype,
	        errorProto = Error.prototype,
	        objectProto = Object.prototype,
	        stringProto = String.prototype;
	
	    /** Used to resolve the decompiled source of functions. */
	    var fnToString = Function.prototype.toString;
	
	    /** Used to check objects for own properties. */
	    var hasOwnProperty = objectProto.hasOwnProperty;
	
	    /** Used to generate unique IDs. */
	    var idCounter = 0;
	
	    /**
	     * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
	     * of values.
	     */
	    var objToString = objectProto.toString;
	
	    /** Used to restore the original `_` reference in `_.noConflict`. */
	    var oldDash = root._;
	
	    /** Used to detect if a method is native. */
	    var reIsNative = RegExp('^' + fnToString.call(hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g, '\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$');
	
	    /** Native method references. */
	    var ArrayBuffer = context.ArrayBuffer,
	        clearTimeout = context.clearTimeout,
	        parseFloat = context.parseFloat,
	        pow = Math.pow,
	        propertyIsEnumerable = objectProto.propertyIsEnumerable,
	        Set = getNative(context, 'Set'),
	        setTimeout = context.setTimeout,
	        splice = arrayProto.splice,
	        Uint8Array = context.Uint8Array,
	        WeakMap = getNative(context, 'WeakMap');
	
	    /* Native method references for those with the same name as other `lodash` methods. */
	    var nativeCeil = Math.ceil,
	        nativeCreate = getNative(Object, 'create'),
	        nativeFloor = Math.floor,
	        nativeIsArray = getNative(Array, 'isArray'),
	        nativeIsFinite = context.isFinite,
	        nativeKeys = getNative(Object, 'keys'),
	        nativeMax = Math.max,
	        nativeMin = Math.min,
	        nativeNow = getNative(Date, 'now'),
	        nativeParseInt = context.parseInt,
	        nativeRandom = Math.random;
	
	    /** Used as references for `-Infinity` and `Infinity`. */
	    var NEGATIVE_INFINITY = Number.NEGATIVE_INFINITY,
	        POSITIVE_INFINITY = Number.POSITIVE_INFINITY;
	
	    /** Used as references for the maximum length and index of an array. */
	    var MAX_ARRAY_LENGTH = 4294967295,
	        MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,
	        HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
	
	    /**
	     * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)
	     * of an array-like value.
	     */
	    var MAX_SAFE_INTEGER = 9007199254740991;
	
	    /** Used to store function metadata. */
	    var metaMap = WeakMap && new WeakMap();
	
	    /** Used to lookup unminified function names. */
	    var realNames = {};
	
	    /** Used to lookup a type array constructors by `toStringTag`. */
	    var ctorByTag = {};
	    ctorByTag[float32Tag] = context.Float32Array;
	    ctorByTag[float64Tag] = context.Float64Array;
	    ctorByTag[int8Tag] = context.Int8Array;
	    ctorByTag[int16Tag] = context.Int16Array;
	    ctorByTag[int32Tag] = context.Int32Array;
	    ctorByTag[uint8Tag] = Uint8Array;
	    ctorByTag[uint8ClampedTag] = context.Uint8ClampedArray;
	    ctorByTag[uint16Tag] = context.Uint16Array;
	    ctorByTag[uint32Tag] = context.Uint32Array;
	
	    /** Used to avoid iterating over non-enumerable properties in IE < 9. */
	    var nonEnumProps = {};
	    nonEnumProps[arrayTag] = nonEnumProps[dateTag] = nonEnumProps[numberTag] = { 'constructor': true, 'toLocaleString': true, 'toString': true, 'valueOf': true };
	    nonEnumProps[boolTag] = nonEnumProps[stringTag] = { 'constructor': true, 'toString': true, 'valueOf': true };
	    nonEnumProps[errorTag] = nonEnumProps[funcTag] = nonEnumProps[regexpTag] = { 'constructor': true, 'toString': true };
	    nonEnumProps[objectTag] = { 'constructor': true };
	
	    arrayEach(shadowProps, function (key) {
	      for (var tag in nonEnumProps) {
	        if (hasOwnProperty.call(nonEnumProps, tag)) {
	          var props = nonEnumProps[tag];
	          props[key] = hasOwnProperty.call(props, key);
	        }
	      }
	    });
	
	    /*------------------------------------------------------------------------*/
	
	    /**
	     * Creates a `lodash` object which wraps `value` to enable implicit chaining.
	     * Methods that operate on and return arrays, collections, and functions can
	     * be chained together. Methods that retrieve a single value or may return a
	     * primitive value will automatically end the chain returning the unwrapped
	     * value. Explicit chaining may be enabled using `_.chain`. The execution of
	     * chained methods is lazy, that is, execution is deferred until `_#value`
	     * is implicitly or explicitly called.
	     *
	     * Lazy evaluation allows several methods to support shortcut fusion. Shortcut
	     * fusion is an optimization strategy which merge iteratee calls; this can help
	     * to avoid the creation of intermediate data structures and greatly reduce the
	     * number of iteratee executions.
	     *
	     * Chaining is supported in custom builds as long as the `_#value` method is
	     * directly or indirectly included in the build.
	     *
	     * In addition to lodash methods, wrappers have `Array` and `String` methods.
	     *
	     * The wrapper `Array` methods are:
	     * `concat`, `join`, `pop`, `push`, `reverse`, `shift`, `slice`, `sort`,
	     * `splice`, and `unshift`
	     *
	     * The wrapper `String` methods are:
	     * `replace` and `split`
	     *
	     * The wrapper methods that support shortcut fusion are:
	     * `compact`, `drop`, `dropRight`, `dropRightWhile`, `dropWhile`, `filter`,
	     * `first`, `initial`, `last`, `map`, `pluck`, `reject`, `rest`, `reverse`,
	     * `slice`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, `toArray`,
	     * and `where`
	     *
	     * The chainable wrapper methods are:
	     * `after`, `ary`, `assign`, `at`, `before`, `bind`, `bindAll`, `bindKey`,
	     * `callback`, `chain`, `chunk`, `commit`, `compact`, `concat`, `constant`,
	     * `countBy`, `create`, `curry`, `debounce`, `defaults`, `defaultsDeep`,
	     * `defer`, `delay`, `difference`, `drop`, `dropRight`, `dropRightWhile`,
	     * `dropWhile`, `fill`, `filter`, `flatten`, `flattenDeep`, `flow`, `flowRight`,
	     * `forEach`, `forEachRight`, `forIn`, `forInRight`, `forOwn`, `forOwnRight`,
	     * `functions`, `groupBy`, `indexBy`, `initial`, `intersection`, `invert`,
	     * `invoke`, `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`,
	     * `matchesProperty`, `memoize`, `merge`, `method`, `methodOf`, `mixin`,
	     * `modArgs`, `negate`, `omit`, `once`, `pairs`, `partial`, `partialRight`,
	     * `partition`, `pick`, `plant`, `pluck`, `property`, `propertyOf`, `pull`,
	     * `pullAt`, `push`, `range`, `rearg`, `reject`, `remove`, `rest`, `restParam`,
	     * `reverse`, `set`, `shuffle`, `slice`, `sort`, `sortBy`, `sortByAll`,
	     * `sortByOrder`, `splice`, `spread`, `take`, `takeRight`, `takeRightWhile`,
	     * `takeWhile`, `tap`, `throttle`, `thru`, `times`, `toArray`, `toPlainObject`,
	     * `transform`, `union`, `uniq`, `unshift`, `unzip`, `unzipWith`, `values`,
	     * `valuesIn`, `where`, `without`, `wrap`, `xor`, `zip`, `zipObject`, `zipWith`
	     *
	     * The wrapper methods that are **not** chainable by default are:
	     * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clone`, `cloneDeep`,
	     * `deburr`, `endsWith`, `escape`, `escapeRegExp`, `every`, `find`, `findIndex`,
	     * `findKey`, `findLast`, `findLastIndex`, `findLastKey`, `findWhere`, `first`,
	     * `floor`, `get`, `gt`, `gte`, `has`, `identity`, `includes`, `indexOf`,
	     * `inRange`, `isArguments`, `isArray`, `isBoolean`, `isDate`, `isElement`,
	     * `isEmpty`, `isEqual`, `isError`, `isFinite` `isFunction`, `isMatch`,
	     * `isNative`, `isNaN`, `isNull`, `isNumber`, `isObject`, `isPlainObject`,
	     * `isRegExp`, `isString`, `isUndefined`, `isTypedArray`, `join`, `kebabCase`,
	     * `last`, `lastIndexOf`, `lt`, `lte`, `max`, `min`, `noConflict`, `noop`,
	     * `now`, `pad`, `padLeft`, `padRight`, `parseInt`, `pop`, `random`, `reduce`,
	     * `reduceRight`, `repeat`, `result`, `round`, `runInContext`, `shift`, `size`,
	     * `snakeCase`, `some`, `sortedIndex`, `sortedLastIndex`, `startCase`,
	     * `startsWith`, `sum`, `template`, `trim`, `trimLeft`, `trimRight`, `trunc`,
	     * `unescape`, `uniqueId`, `value`, and `words`
	     *
	     * The wrapper method `sample` will return a wrapped value when `n` is provided,
	     * otherwise an unwrapped value is returned.
	     *
	     * @name _
	     * @constructor
	     * @category Chain
	     * @param {*} value The value to wrap in a `lodash` instance.
	     * @returns {Object} Returns the new `lodash` wrapper instance.
	     * @example
	     *
	     * var wrapped = _([1, 2, 3]);
	     *
	     * // returns an unwrapped value
	     * wrapped.reduce(function(total, n) {
	     *   return total + n;
	     * });
	     * // => 6
	     *
	     * // returns a wrapped value
	     * var squares = wrapped.map(function(n) {
	     *   return n * n;
	     * });
	     *
	     * _.isArray(squares);
	     * // => false
	     *
	     * _.isArray(squares.value());
	     * // => true
	     */
	    function lodash(value) {
	      if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
	        if (value instanceof LodashWrapper) {
	          return value;
	        }
	        if (hasOwnProperty.call(value, '__chain__') && hasOwnProperty.call(value, '__wrapped__')) {
	          return wrapperClone(value);
	        }
	      }
	      return new LodashWrapper(value);
	    }
	
	    /**
	     * The function whose prototype all chaining wrappers inherit from.
	     *
	     * @private
	     */
	    function baseLodash() {}
	    // No operation performed.
	
	
	    /**
	     * The base constructor for creating `lodash` wrapper objects.
	     *
	     * @private
	     * @param {*} value The value to wrap.
	     * @param {boolean} [chainAll] Enable chaining for all wrapper methods.
	     * @param {Array} [actions=[]] Actions to peform to resolve the unwrapped value.
	     */
	    function LodashWrapper(value, chainAll, actions) {
	      this.__wrapped__ = value;
	      this.__actions__ = actions || [];
	      this.__chain__ = !!chainAll;
	    }
	
	    /**
	     * An object environment feature flags.
	     *
	     * @static
	     * @memberOf _
	     * @type Object
	     */
	    var support = lodash.support = {};
	
	    (function (x) {
	      var Ctor = function Ctor() {
	        this.x = x;
	      },
	          object = { '0': x, 'length': x },
	          props = [];
	
	      Ctor.prototype = { 'valueOf': x, 'y': x };
	      for (var key in new Ctor()) {
	        props.push(key);
	      }
	
	      /**
	       * Detect if `name` or `message` properties of `Error.prototype` are
	       * enumerable by default (IE < 9, Safari < 5.1).
	       *
	       * @memberOf _.support
	       * @type boolean
	       */
	      support.enumErrorProps = propertyIsEnumerable.call(errorProto, 'message') || propertyIsEnumerable.call(errorProto, 'name');
	
	      /**
	       * Detect if `prototype` properties are enumerable by default.
	       *
	       * Firefox < 3.6, Opera > 9.50 - Opera < 11.60, and Safari < 5.1
	       * (if the prototype or a property on the prototype has been set)
	       * incorrectly set the `[[Enumerable]]` value of a function's `prototype`
	       * property to `true`.
	       *
	       * @memberOf _.support
	       * @type boolean
	       */
	      support.enumPrototypes = propertyIsEnumerable.call(Ctor, 'prototype');
	
	      /**
	       * Detect if properties shadowing those on `Object.prototype` are non-enumerable.
	       *
	       * In IE < 9 an object's own properties, shadowing non-enumerable ones,
	       * are made non-enumerable as well (a.k.a the JScript `[[DontEnum]]` bug).
	       *
	       * @memberOf _.support
	       * @type boolean
	       */
	      support.nonEnumShadows = !/valueOf/.test(props);
	
	      /**
	       * Detect if own properties are iterated after inherited properties (IE < 9).
	       *
	       * @memberOf _.support
	       * @type boolean
	       */
	      support.ownLast = props[0] != 'x';
	
	      /**
	       * Detect if `Array#shift` and `Array#splice` augment array-like objects
	       * correctly.
	       *
	       * Firefox < 10, compatibility modes of IE 8, and IE < 9 have buggy Array
	       * `shift()` and `splice()` functions that fail to remove the last element,
	       * `value[0]`, of array-like objects even though the "length" property is
	       * set to `0`. The `shift()` method is buggy in compatibility modes of IE 8,
	       * while `splice()` is buggy regardless of mode in IE < 9.
	       *
	       * @memberOf _.support
	       * @type boolean
	       */
	      support.spliceObjects = (splice.call(object, 0, 1), !object[0]);
	
	      /**
	       * Detect lack of support for accessing string characters by index.
	       *
	       * IE < 8 can't access characters by index. IE 8 can only access characters
	       * by index on string literals, not string objects.
	       *
	       * @memberOf _.support
	       * @type boolean
	       */
	      support.unindexedChars = 'x'[0] + Object('x')[0] != 'xx';
	    })(1, 0);
	
	    /**
	     * By default, the template delimiters used by lodash are like those in
	     * embedded Ruby (ERB). Change the following template settings to use
	     * alternative delimiters.
	     *
	     * @static
	     * @memberOf _
	     * @type Object
	     */
	    lodash.templateSettings = {
	
	      /**
	       * Used to detect `data` property values to be HTML-escaped.
	       *
	       * @memberOf _.templateSettings
	       * @type RegExp
	       */
	      'escape': reEscape,
	
	      /**
	       * Used to detect code to be evaluated.
	       *
	       * @memberOf _.templateSettings
	       * @type RegExp
	       */
	      'evaluate': reEvaluate,
	
	      /**
	       * Used to detect `data` property values to inject.
	       *
	       * @memberOf _.templateSettings
	       * @type RegExp
	       */
	      'interpolate': reInterpolate,
	
	      /**
	       * Used to reference the data object in the template text.
	       *
	       * @memberOf _.templateSettings
	       * @type string
	       */
	      'variable': '',
	
	      /**
	       * Used to import variables into the compiled template.
	       *
	       * @memberOf _.templateSettings
	       * @type Object
	       */
	      'imports': {
	
	        /**
	         * A reference to the `lodash` function.
	         *
	         * @memberOf _.templateSettings.imports
	         * @type Function
	         */
	        '_': lodash
	      }
	    };
	
	    /*------------------------------------------------------------------------*/
	
	    /**
	     * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
	     *
	     * @private
	     * @param {*} value The value to wrap.
	     */
	    function LazyWrapper(value) {
	      this.__wrapped__ = value;
	      this.__actions__ = [];
	      this.__dir__ = 1;
	      this.__filtered__ = false;
	      this.__iteratees__ = [];
	      this.__takeCount__ = POSITIVE_INFINITY;
	      this.__views__ = [];
	    }
	
	    /**
	     * Creates a clone of the lazy wrapper object.
	     *
	     * @private
	     * @name clone
	     * @memberOf LazyWrapper
	     * @returns {Object} Returns the cloned `LazyWrapper` object.
	     */
	    function lazyClone() {
	      var result = new LazyWrapper(this.__wrapped__);
	      result.__actions__ = arrayCopy(this.__actions__);
	      result.__dir__ = this.__dir__;
	      result.__filtered__ = this.__filtered__;
	      result.__iteratees__ = arrayCopy(this.__iteratees__);
	      result.__takeCount__ = this.__takeCount__;
	      result.__views__ = arrayCopy(this.__views__);
	      return result;
	    }
	
	    /**
	     * Reverses the direction of lazy iteration.
	     *
	     * @private
	     * @name reverse
	     * @memberOf LazyWrapper
	     * @returns {Object} Returns the new reversed `LazyWrapper` object.
	     */
	    function lazyReverse() {
	      if (this.__filtered__) {
	        var result = new LazyWrapper(this);
	        result.__dir__ = -1;
	        result.__filtered__ = true;
	      } else {
	        result = this.clone();
	        result.__dir__ *= -1;
	      }
	      return result;
	    }
	
	    /**
	     * Extracts the unwrapped value from its lazy wrapper.
	     *
	     * @private
	     * @name value
	     * @memberOf LazyWrapper
	     * @returns {*} Returns the unwrapped value.
	     */
	    function lazyValue() {
	      var array = this.__wrapped__.value(),
	          dir = this.__dir__,
	          isArr = isArray(array),
	          isRight = dir < 0,
	          arrLength = isArr ? array.length : 0,
	          view = getView(0, arrLength, this.__views__),
	          start = view.start,
	          end = view.end,
	          length = end - start,
	          index = isRight ? end : start - 1,
	          iteratees = this.__iteratees__,
	          iterLength = iteratees.length,
	          resIndex = 0,
	          takeCount = nativeMin(length, this.__takeCount__);
	
	      if (!isArr || arrLength < LARGE_ARRAY_SIZE || arrLength == length && takeCount == length) {
	        return baseWrapperValue(array, this.__actions__);
	      }
	      var result = [];
	
	      outer: while (length-- && resIndex < takeCount) {
	        index += dir;
	
	        var iterIndex = -1,
	            value = array[index];
	
	        while (++iterIndex < iterLength) {
	          var data = iteratees[iterIndex],
	              iteratee = data.iteratee,
	              type = data.type,
	              computed = iteratee(value);
	
	          if (type == LAZY_MAP_FLAG) {
	            value = computed;
	          } else if (!computed) {
	            if (type == LAZY_FILTER_FLAG) {
	              continue outer;
	            } else {
	              break outer;
	            }
	          }
	        }
	        result[resIndex++] = value;
	      }
	      return result;
	    }
	
	    /*------------------------------------------------------------------------*/
	
	    /**
	     * Creates a cache object to store key/value pairs.
	     *
	     * @private
	     * @static
	     * @name Cache
	     * @memberOf _.memoize
	     */
	    function MapCache() {
	      this.__data__ = {};
	    }
	
	    /**
	     * Removes `key` and its value from the cache.
	     *
	     * @private
	     * @name delete
	     * @memberOf _.memoize.Cache
	     * @param {string} key The key of the value to remove.
	     * @returns {boolean} Returns `true` if the entry was removed successfully, else `false`.
	     */
	    function mapDelete(key) {
	      return this.has(key) && delete this.__data__[key];
	    }
	
	    /**
	     * Gets the cached value for `key`.
	     *
	     * @private
	     * @name get
	     * @memberOf _.memoize.Cache
	     * @param {string} key The key of the value to get.
	     * @returns {*} Returns the cached value.
	     */
	    function mapGet(key) {
	      return key == '__proto__' ? undefined : this.__data__[key];
	    }
	
	    /**
	     * Checks if a cached value for `key` exists.
	     *
	     * @private
	     * @name has
	     * @memberOf _.memoize.Cache
	     * @param {string} key The key of the entry to check.
	     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
	     */
	    function mapHas(key) {
	      return key != '__proto__' && hasOwnProperty.call(this.__data__, key);
	    }
	
	    /**
	     * Sets `value` to `key` of the cache.
	     *
	     * @private
	     * @name set
	     * @memberOf _.memoize.Cache
	     * @param {string} key The key of the value to cache.
	     * @param {*} value The value to cache.
	     * @returns {Object} Returns the cache object.
	     */
	    function mapSet(key, value) {
	      if (key != '__proto__') {
	        this.__data__[key] = value;
	      }
	      return this;
	    }
	
	    /*------------------------------------------------------------------------*/
	
	    /**
	     *
	     * Creates a cache object to store unique values.
	     *
	     * @private
	     * @param {Array} [values] The values to cache.
	     */
	    function SetCache(values) {
	      var length = values ? values.length : 0;
	
	      this.data = { 'hash': nativeCreate(null), 'set': new Set() };
	      while (length--) {
	        this.push(values[length]);
	      }
	    }
	
	    /**
	     * Checks if `value` is in `cache` mimicking the return signature of
	     * `_.indexOf` by returning `0` if the value is found, else `-1`.
	     *
	     * @private
	     * @param {Object} cache The cache to search.
	     * @param {*} value The value to search for.
	     * @returns {number} Returns `0` if `value` is found, else `-1`.
	     */
	    function cacheIndexOf(cache, value) {
	      var data = cache.data,
	          result = typeof value == 'string' || isObject(value) ? data.set.has(value) : data.hash[value];
	
	      return result ? 0 : -1;
	    }
	
	    /**
	     * Adds `value` to the cache.
	     *
	     * @private
	     * @name push
	     * @memberOf SetCache
	     * @param {*} value The value to cache.
	     */
	    function cachePush(value) {
	      var data = this.data;
	      if (typeof value == 'string' || isObject(value)) {
	        data.set.add(value);
	      } else {
	        data.hash[value] = true;
	      }
	    }
	
	    /*------------------------------------------------------------------------*/
	
	    /**
	     * Creates a new array joining `array` with `other`.
	     *
	     * @private
	     * @param {Array} array The array to join.
	     * @param {Array} other The other array to join.
	     * @returns {Array} Returns the new concatenated array.
	     */
	    function arrayConcat(array, other) {
	      var index = -1,
	          length = array.length,
	          othIndex = -1,
	          othLength = other.length,
	          result = Array(length + othLength);
	
	      while (++index < length) {
	        result[index] = array[index];
	      }
	      while (++othIndex < othLength) {
	        result[index++] = other[othIndex];
	      }
	      return result;
	    }
	
	    /**
	     * Copies the values of `source` to `array`.
	     *
	     * @private
	     * @param {Array} source The array to copy values from.
	     * @param {Array} [array=[]] The array to copy values to.
	     * @returns {Array} Returns `array`.
	     */
	    function arrayCopy(source, array) {
	      var index = -1,
	          length = source.length;
	
	      array || (array = Array(length));
	      while (++index < length) {
	        array[index] = source[index];
	      }
	      return array;
	    }
	
	    /**
	     * A specialized version of `_.forEach` for arrays without support for callback
	     * shorthands and `this` binding.
	     *
	     * @private
	     * @param {Array} array The array to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @returns {Array} Returns `array`.
	     */
	    function arrayEach(array, iteratee) {
	      var index = -1,
	          length = array.length;
	
	      while (++index < length) {
	        if (iteratee(array[index], index, array) === false) {
	          break;
	        }
	      }
	      return array;
	    }
	
	    /**
	     * A specialized version of `_.forEachRight` for arrays without support for
	     * callback shorthands and `this` binding.
	     *
	     * @private
	     * @param {Array} array The array to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @returns {Array} Returns `array`.
	     */
	    function arrayEachRight(array, iteratee) {
	      var length = array.length;
	
	      while (length--) {
	        if (iteratee(array[length], length, array) === false) {
	          break;
	        }
	      }
	      return array;
	    }
	
	    /**
	     * A specialized version of `_.every` for arrays without support for callback
	     * shorthands and `this` binding.
	     *
	     * @private
	     * @param {Array} array The array to iterate over.
	     * @param {Function} predicate The function invoked per iteration.
	     * @returns {boolean} Returns `true` if all elements pass the predicate check,
	     *  else `false`.
	     */
	    function arrayEvery(array, predicate) {
	      var index = -1,
	          length = array.length;
	
	      while (++index < length) {
	        if (!predicate(array[index], index, array)) {
	          return false;
	        }
	      }
	      return true;
	    }
	
	    /**
	     * A specialized version of `baseExtremum` for arrays which invokes `iteratee`
	     * with one argument: (value).
	     *
	     * @private
	     * @param {Array} array The array to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @param {Function} comparator The function used to compare values.
	     * @param {*} exValue The initial extremum value.
	     * @returns {*} Returns the extremum value.
	     */
	    function arrayExtremum(array, iteratee, comparator, exValue) {
	      var index = -1,
	          length = array.length,
	          computed = exValue,
	          result = computed;
	
	      while (++index < length) {
	        var value = array[index],
	            current = +iteratee(value);
	
	        if (comparator(current, computed)) {
	          computed = current;
	          result = value;
	        }
	      }
	      return result;
	    }
	
	    /**
	     * A specialized version of `_.filter` for arrays without support for callback
	     * shorthands and `this` binding.
	     *
	     * @private
	     * @param {Array} array The array to iterate over.
	     * @param {Function} predicate The function invoked per iteration.
	     * @returns {Array} Returns the new filtered array.
	     */
	    function arrayFilter(array, predicate) {
	      var index = -1,
	          length = array.length,
	          resIndex = -1,
	          result = [];
	
	      while (++index < length) {
	        var value = array[index];
	        if (predicate(value, index, array)) {
	          result[++resIndex] = value;
	        }
	      }
	      return result;
	    }
	
	    /**
	     * A specialized version of `_.map` for arrays without support for callback
	     * shorthands and `this` binding.
	     *
	     * @private
	     * @param {Array} array The array to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @returns {Array} Returns the new mapped array.
	     */
	    function arrayMap(array, iteratee) {
	      var index = -1,
	          length = array.length,
	          result = Array(length);
	
	      while (++index < length) {
	        result[index] = iteratee(array[index], index, array);
	      }
	      return result;
	    }
	
	    /**
	     * Appends the elements of `values` to `array`.
	     *
	     * @private
	     * @param {Array} array The array to modify.
	     * @param {Array} values The values to append.
	     * @returns {Array} Returns `array`.
	     */
	    function arrayPush(array, values) {
	      var index = -1,
	          length = values.length,
	          offset = array.length;
	
	      while (++index < length) {
	        array[offset + index] = values[index];
	      }
	      return array;
	    }
	
	    /**
	     * A specialized version of `_.reduce` for arrays without support for callback
	     * shorthands and `this` binding.
	     *
	     * @private
	     * @param {Array} array The array to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @param {*} [accumulator] The initial value.
	     * @param {boolean} [initFromArray] Specify using the first element of `array`
	     *  as the initial value.
	     * @returns {*} Returns the accumulated value.
	     */
	    function arrayReduce(array, iteratee, accumulator, initFromArray) {
	      var index = -1,
	          length = array.length;
	
	      if (initFromArray && length) {
	        accumulator = array[++index];
	      }
	      while (++index < length) {
	        accumulator = iteratee(accumulator, array[index], index, array);
	      }
	      return accumulator;
	    }
	
	    /**
	     * A specialized version of `_.reduceRight` for arrays without support for
	     * callback shorthands and `this` binding.
	     *
	     * @private
	     * @param {Array} array The array to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @param {*} [accumulator] The initial value.
	     * @param {boolean} [initFromArray] Specify using the last element of `array`
	     *  as the initial value.
	     * @returns {*} Returns the accumulated value.
	     */
	    function arrayReduceRight(array, iteratee, accumulator, initFromArray) {
	      var length = array.length;
	      if (initFromArray && length) {
	        accumulator = array[--length];
	      }
	      while (length--) {
	        accumulator = iteratee(accumulator, array[length], length, array);
	      }
	      return accumulator;
	    }
	
	    /**
	     * A specialized version of `_.some` for arrays without support for callback
	     * shorthands and `this` binding.
	     *
	     * @private
	     * @param {Array} array The array to iterate over.
	     * @param {Function} predicate The function invoked per iteration.
	     * @returns {boolean} Returns `true` if any element passes the predicate check,
	     *  else `false`.
	     */
	    function arraySome(array, predicate) {
	      var index = -1,
	          length = array.length;
	
	      while (++index < length) {
	        if (predicate(array[index], index, array)) {
	          return true;
	        }
	      }
	      return false;
	    }
	
	    /**
	     * A specialized version of `_.sum` for arrays without support for callback
	     * shorthands and `this` binding..
	     *
	     * @private
	     * @param {Array} array The array to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @returns {number} Returns the sum.
	     */
	    function arraySum(array, iteratee) {
	      var length = array.length,
	          result = 0;
	
	      while (length--) {
	        result += +iteratee(array[length]) || 0;
	      }
	      return result;
	    }
	
	    /**
	     * Used by `_.defaults` to customize its `_.assign` use.
	     *
	     * @private
	     * @param {*} objectValue The destination object property value.
	     * @param {*} sourceValue The source object property value.
	     * @returns {*} Returns the value to assign to the destination object.
	     */
	    function assignDefaults(objectValue, sourceValue) {
	      return objectValue === undefined ? sourceValue : objectValue;
	    }
	
	    /**
	     * Used by `_.template` to customize its `_.assign` use.
	     *
	     * **Note:** This function is like `assignDefaults` except that it ignores
	     * inherited property values when checking if a property is `undefined`.
	     *
	     * @private
	     * @param {*} objectValue The destination object property value.
	     * @param {*} sourceValue The source object property value.
	     * @param {string} key The key associated with the object and source values.
	     * @param {Object} object The destination object.
	     * @returns {*} Returns the value to assign to the destination object.
	     */
	    function assignOwnDefaults(objectValue, sourceValue, key, object) {
	      return objectValue === undefined || !hasOwnProperty.call(object, key) ? sourceValue : objectValue;
	    }
	
	    /**
	     * A specialized version of `_.assign` for customizing assigned values without
	     * support for argument juggling, multiple sources, and `this` binding `customizer`
	     * functions.
	     *
	     * @private
	     * @param {Object} object The destination object.
	     * @param {Object} source The source object.
	     * @param {Function} customizer The function to customize assigned values.
	     * @returns {Object} Returns `object`.
	     */
	    function assignWith(object, source, customizer) {
	      var index = -1,
	          props = keys(source),
	          length = props.length;
	
	      while (++index < length) {
	        var key = props[index],
	            value = object[key],
	            result = customizer(value, source[key], key, object, source);
	
	        if ((result === result ? result !== value : value === value) || value === undefined && !(key in object)) {
	          object[key] = result;
	        }
	      }
	      return object;
	    }
	
	    /**
	     * The base implementation of `_.assign` without support for argument juggling,
	     * multiple sources, and `customizer` functions.
	     *
	     * @private
	     * @param {Object} object The destination object.
	     * @param {Object} source The source object.
	     * @returns {Object} Returns `object`.
	     */
	    function baseAssign(object, source) {
	      return source == null ? object : baseCopy(source, keys(source), object);
	    }
	
	    /**
	     * The base implementation of `_.at` without support for string collections
	     * and individual key arguments.
	     *
	     * @private
	     * @param {Array|Object} collection The collection to iterate over.
	     * @param {number[]|string[]} props The property names or indexes of elements to pick.
	     * @returns {Array} Returns the new array of picked elements.
	     */
	    function baseAt(collection, props) {
	      var index = -1,
	          isNil = collection == null,
	          isArr = !isNil && isArrayLike(collection),
	          length = isArr ? collection.length : 0,
	          propsLength = props.length,
	          result = Array(propsLength);
	
	      while (++index < propsLength) {
	        var key = props[index];
	        if (isArr) {
	          result[index] = isIndex(key, length) ? collection[key] : undefined;
	        } else {
	          result[index] = isNil ? undefined : collection[key];
	        }
	      }
	      return result;
	    }
	
	    /**
	     * Copies properties of `source` to `object`.
	     *
	     * @private
	     * @param {Object} source The object to copy properties from.
	     * @param {Array} props The property names to copy.
	     * @param {Object} [object={}] The object to copy properties to.
	     * @returns {Object} Returns `object`.
	     */
	    function baseCopy(source, props, object) {
	      object || (object = {});
	
	      var index = -1,
	          length = props.length;
	
	      while (++index < length) {
	        var key = props[index];
	        object[key] = source[key];
	      }
	      return object;
	    }
	
	    /**
	     * The base implementation of `_.callback` which supports specifying the
	     * number of arguments to provide to `func`.
	     *
	     * @private
	     * @param {*} [func=_.identity] The value to convert to a callback.
	     * @param {*} [thisArg] The `this` binding of `func`.
	     * @param {number} [argCount] The number of arguments to provide to `func`.
	     * @returns {Function} Returns the callback.
	     */
	    function baseCallback(func, thisArg, argCount) {
	      var type = typeof func === 'undefined' ? 'undefined' : _typeof(func);
	      if (type == 'function') {
	        return thisArg === undefined ? func : bindCallback(func, thisArg, argCount);
	      }
	      if (func == null) {
	        return identity;
	      }
	      if (type == 'object') {
	        return baseMatches(func);
	      }
	      return thisArg === undefined ? property(func) : baseMatchesProperty(func, thisArg);
	    }
	
	    /**
	     * The base implementation of `_.clone` without support for argument juggling
	     * and `this` binding `customizer` functions.
	     *
	     * @private
	     * @param {*} value The value to clone.
	     * @param {boolean} [isDeep] Specify a deep clone.
	     * @param {Function} [customizer] The function to customize cloning values.
	     * @param {string} [key] The key of `value`.
	     * @param {Object} [object] The object `value` belongs to.
	     * @param {Array} [stackA=[]] Tracks traversed source objects.
	     * @param {Array} [stackB=[]] Associates clones with source counterparts.
	     * @returns {*} Returns the cloned value.
	     */
	    function baseClone(value, isDeep, customizer, key, object, stackA, stackB) {
	      var result;
	      if (customizer) {
	        result = object ? customizer(value, key, object) : customizer(value);
	      }
	      if (result !== undefined) {
	        return result;
	      }
	      if (!isObject(value)) {
	        return value;
	      }
	      var isArr = isArray(value);
	      if (isArr) {
	        result = initCloneArray(value);
	        if (!isDeep) {
	          return arrayCopy(value, result);
	        }
	      } else {
	        var tag = objToString.call(value),
	            isFunc = tag == funcTag;
	
	        if (tag == objectTag || tag == argsTag || isFunc && !object) {
	          if (isHostObject(value)) {
	            return object ? value : {};
	          }
	          result = initCloneObject(isFunc ? {} : value);
	          if (!isDeep) {
	            return baseAssign(result, value);
	          }
	        } else {
	          return cloneableTags[tag] ? initCloneByTag(value, tag, isDeep) : object ? value : {};
	        }
	      }
	      // Check for circular references and return its corresponding clone.
	      stackA || (stackA = []);
	      stackB || (stackB = []);
	
	      var length = stackA.length;
	      while (length--) {
	        if (stackA[length] == value) {
	          return stackB[length];
	        }
	      }
	      // Add the source value to the stack of traversed objects and associate it with its clone.
	      stackA.push(value);
	      stackB.push(result);
	
	      // Recursively populate clone (susceptible to call stack limits).
	      (isArr ? arrayEach : baseForOwn)(value, function (subValue, key) {
	        result[key] = baseClone(subValue, isDeep, customizer, key, value, stackA, stackB);
	      });
	      return result;
	    }
	
	    /**
	     * The base implementation of `_.create` without support for assigning
	     * properties to the created object.
	     *
	     * @private
	     * @param {Object} prototype The object to inherit from.
	     * @returns {Object} Returns the new object.
	     */
	    var baseCreate = function () {
	      function object() {}
	      return function (prototype) {
	        if (isObject(prototype)) {
	          object.prototype = prototype;
	          var result = new object();
	          object.prototype = undefined;
	        }
	        return result || {};
	      };
	    }();
	
	    /**
	     * The base implementation of `_.delay` and `_.defer` which accepts an index
	     * of where to slice the arguments to provide to `func`.
	     *
	     * @private
	     * @param {Function} func The function to delay.
	     * @param {number} wait The number of milliseconds to delay invocation.
	     * @param {Object} args The arguments provide to `func`.
	     * @returns {number} Returns the timer id.
	     */
	    function baseDelay(func, wait, args) {
	      if (typeof func != 'function') {
	        throw new TypeError(FUNC_ERROR_TEXT);
	      }
	      return setTimeout(function () {
	        func.apply(undefined, args);
	      }, wait);
	    }
	
	    /**
	     * The base implementation of `_.difference` which accepts a single array
	     * of values to exclude.
	     *
	     * @private
	     * @param {Array} array The array to inspect.
	     * @param {Array} values The values to exclude.
	     * @returns {Array} Returns the new array of filtered values.
	     */
	    function baseDifference(array, values) {
	      var length = array ? array.length : 0,
	          result = [];
	
	      if (!length) {
	        return result;
	      }
	      var index = -1,
	          indexOf = getIndexOf(),
	          isCommon = indexOf === baseIndexOf,
	          cache = isCommon && values.length >= LARGE_ARRAY_SIZE ? createCache(values) : null,
	          valuesLength = values.length;
	
	      if (cache) {
	        indexOf = cacheIndexOf;
	        isCommon = false;
	        values = cache;
	      }
	      outer: while (++index < length) {
	        var value = array[index];
	
	        if (isCommon && value === value) {
	          var valuesIndex = valuesLength;
	          while (valuesIndex--) {
	            if (values[valuesIndex] === value) {
	              continue outer;
	            }
	          }
	          result.push(value);
	        } else if (indexOf(values, value, 0) < 0) {
	          result.push(value);
	        }
	      }
	      return result;
	    }
	
	    /**
	     * The base implementation of `_.forEach` without support for callback
	     * shorthands and `this` binding.
	     *
	     * @private
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @returns {Array|Object|string} Returns `collection`.
	     */
	    var baseEach = createBaseEach(baseForOwn);
	
	    /**
	     * The base implementation of `_.forEachRight` without support for callback
	     * shorthands and `this` binding.
	     *
	     * @private
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @returns {Array|Object|string} Returns `collection`.
	     */
	    var baseEachRight = createBaseEach(baseForOwnRight, true);
	
	    /**
	     * The base implementation of `_.every` without support for callback
	     * shorthands and `this` binding.
	     *
	     * @private
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function} predicate The function invoked per iteration.
	     * @returns {boolean} Returns `true` if all elements pass the predicate check,
	     *  else `false`
	     */
	    function baseEvery(collection, predicate) {
	      var result = true;
	      baseEach(collection, function (value, index, collection) {
	        result = !!predicate(value, index, collection);
	        return result;
	      });
	      return result;
	    }
	
	    /**
	     * Gets the extremum value of `collection` invoking `iteratee` for each value
	     * in `collection` to generate the criterion by which the value is ranked.
	     * The `iteratee` is invoked with three arguments: (value, index|key, collection).
	     *
	     * @private
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @param {Function} comparator The function used to compare values.
	     * @param {*} exValue The initial extremum value.
	     * @returns {*} Returns the extremum value.
	     */
	    function baseExtremum(collection, iteratee, comparator, exValue) {
	      var computed = exValue,
	          result = computed;
	
	      baseEach(collection, function (value, index, collection) {
	        var current = +iteratee(value, index, collection);
	        if (comparator(current, computed) || current === exValue && current === result) {
	          computed = current;
	          result = value;
	        }
	      });
	      return result;
	    }
	
	    /**
	     * The base implementation of `_.fill` without an iteratee call guard.
	     *
	     * @private
	     * @param {Array} array The array to fill.
	     * @param {*} value The value to fill `array` with.
	     * @param {number} [start=0] The start position.
	     * @param {number} [end=array.length] The end position.
	     * @returns {Array} Returns `array`.
	     */
	    function baseFill(array, value, start, end) {
	      var length = array.length;
	
	      start = start == null ? 0 : +start || 0;
	      if (start < 0) {
	        start = -start > length ? 0 : length + start;
	      }
	      end = end === undefined || end > length ? length : +end || 0;
	      if (end < 0) {
	        end += length;
	      }
	      length = start > end ? 0 : end >>> 0;
	      start >>>= 0;
	
	      while (start < length) {
	        array[start++] = value;
	      }
	      return array;
	    }
	
	    /**
	     * The base implementation of `_.filter` without support for callback
	     * shorthands and `this` binding.
	     *
	     * @private
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function} predicate The function invoked per iteration.
	     * @returns {Array} Returns the new filtered array.
	     */
	    function baseFilter(collection, predicate) {
	      var result = [];
	      baseEach(collection, function (value, index, collection) {
	        if (predicate(value, index, collection)) {
	          result.push(value);
	        }
	      });
	      return result;
	    }
	
	    /**
	     * The base implementation of `_.find`, `_.findLast`, `_.findKey`, and `_.findLastKey`,
	     * without support for callback shorthands and `this` binding, which iterates
	     * over `collection` using the provided `eachFunc`.
	     *
	     * @private
	     * @param {Array|Object|string} collection The collection to search.
	     * @param {Function} predicate The function invoked per iteration.
	     * @param {Function} eachFunc The function to iterate over `collection`.
	     * @param {boolean} [retKey] Specify returning the key of the found element
	     *  instead of the element itself.
	     * @returns {*} Returns the found element or its key, else `undefined`.
	     */
	    function baseFind(collection, predicate, eachFunc, retKey) {
	      var result;
	      eachFunc(collection, function (value, key, collection) {
	        if (predicate(value, key, collection)) {
	          result = retKey ? key : value;
	          return false;
	        }
	      });
	      return result;
	    }
	
	    /**
	     * The base implementation of `_.flatten` with added support for restricting
	     * flattening and specifying the start index.
	     *
	     * @private
	     * @param {Array} array The array to flatten.
	     * @param {boolean} [isDeep] Specify a deep flatten.
	     * @param {boolean} [isStrict] Restrict flattening to arrays-like objects.
	     * @param {Array} [result=[]] The initial result value.
	     * @returns {Array} Returns the new flattened array.
	     */
	    function baseFlatten(array, isDeep, isStrict, result) {
	      result || (result = []);
	
	      var index = -1,
	          length = array.length;
	
	      while (++index < length) {
	        var value = array[index];
	        if (isObjectLike(value) && isArrayLike(value) && (isStrict || isArray(value) || isArguments(value))) {
	          if (isDeep) {
	            // Recursively flatten arrays (susceptible to call stack limits).
	            baseFlatten(value, isDeep, isStrict, result);
	          } else {
	            arrayPush(result, value);
	          }
	        } else if (!isStrict) {
	          result[result.length] = value;
	        }
	      }
	      return result;
	    }
	
	    /**
	     * The base implementation of `baseForIn` and `baseForOwn` which iterates
	     * over `object` properties returned by `keysFunc` invoking `iteratee` for
	     * each property. Iteratee functions may exit iteration early by explicitly
	     * returning `false`.
	     *
	     * @private
	     * @param {Object} object The object to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @param {Function} keysFunc The function to get the keys of `object`.
	     * @returns {Object} Returns `object`.
	     */
	    var baseFor = createBaseFor();
	
	    /**
	     * This function is like `baseFor` except that it iterates over properties
	     * in the opposite order.
	     *
	     * @private
	     * @param {Object} object The object to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @param {Function} keysFunc The function to get the keys of `object`.
	     * @returns {Object} Returns `object`.
	     */
	    var baseForRight = createBaseFor(true);
	
	    /**
	     * The base implementation of `_.forIn` without support for callback
	     * shorthands and `this` binding.
	     *
	     * @private
	     * @param {Object} object The object to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @returns {Object} Returns `object`.
	     */
	    function baseForIn(object, iteratee) {
	      return baseFor(object, iteratee, keysIn);
	    }
	
	    /**
	     * The base implementation of `_.forOwn` without support for callback
	     * shorthands and `this` binding.
	     *
	     * @private
	     * @param {Object} object The object to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @returns {Object} Returns `object`.
	     */
	    function baseForOwn(object, iteratee) {
	      return baseFor(object, iteratee, keys);
	    }
	
	    /**
	     * The base implementation of `_.forOwnRight` without support for callback
	     * shorthands and `this` binding.
	     *
	     * @private
	     * @param {Object} object The object to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @returns {Object} Returns `object`.
	     */
	    function baseForOwnRight(object, iteratee) {
	      return baseForRight(object, iteratee, keys);
	    }
	
	    /**
	     * The base implementation of `_.functions` which creates an array of
	     * `object` function property names filtered from those provided.
	     *
	     * @private
	     * @param {Object} object The object to inspect.
	     * @param {Array} props The property names to filter.
	     * @returns {Array} Returns the new array of filtered property names.
	     */
	    function baseFunctions(object, props) {
	      var index = -1,
	          length = props.length,
	          resIndex = -1,
	          result = [];
	
	      while (++index < length) {
	        var key = props[index];
	        if (isFunction(object[key])) {
	          result[++resIndex] = key;
	        }
	      }
	      return result;
	    }
	
	    /**
	     * The base implementation of `get` without support for string paths
	     * and default values.
	     *
	     * @private
	     * @param {Object} object The object to query.
	     * @param {Array} path The path of the property to get.
	     * @param {string} [pathKey] The key representation of path.
	     * @returns {*} Returns the resolved value.
	     */
	    function baseGet(object, path, pathKey) {
	      if (object == null) {
	        return;
	      }
	      object = toObject(object);
	      if (pathKey !== undefined && pathKey in object) {
	        path = [pathKey];
	      }
	      var index = 0,
	          length = path.length;
	
	      while (object != null && index < length) {
	        object = toObject(object)[path[index++]];
	      }
	      return index && index == length ? object : undefined;
	    }
	
	    /**
	     * The base implementation of `_.isEqual` without support for `this` binding
	     * `customizer` functions.
	     *
	     * @private
	     * @param {*} value The value to compare.
	     * @param {*} other The other value to compare.
	     * @param {Function} [customizer] The function to customize comparing values.
	     * @param {boolean} [isLoose] Specify performing partial comparisons.
	     * @param {Array} [stackA] Tracks traversed `value` objects.
	     * @param {Array} [stackB] Tracks traversed `other` objects.
	     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
	     */
	    function baseIsEqual(value, other, customizer, isLoose, stackA, stackB) {
	      if (value === other) {
	        return true;
	      }
	      if (value == null || other == null || !isObject(value) && !isObjectLike(other)) {
	        return value !== value && other !== other;
	      }
	      return baseIsEqualDeep(value, other, baseIsEqual, customizer, isLoose, stackA, stackB);
	    }
	
	    /**
	     * A specialized version of `baseIsEqual` for arrays and objects which performs
	     * deep comparisons and tracks traversed objects enabling objects with circular
	     * references to be compared.
	     *
	     * @private
	     * @param {Object} object The object to compare.
	     * @param {Object} other The other object to compare.
	     * @param {Function} equalFunc The function to determine equivalents of values.
	     * @param {Function} [customizer] The function to customize comparing objects.
	     * @param {boolean} [isLoose] Specify performing partial comparisons.
	     * @param {Array} [stackA=[]] Tracks traversed `value` objects.
	     * @param {Array} [stackB=[]] Tracks traversed `other` objects.
	     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
	     */
	    function baseIsEqualDeep(object, other, equalFunc, customizer, isLoose, stackA, stackB) {
	      var objIsArr = isArray(object),
	          othIsArr = isArray(other),
	          objTag = arrayTag,
	          othTag = arrayTag;
	
	      if (!objIsArr) {
	        objTag = objToString.call(object);
	        if (objTag == argsTag) {
	          objTag = objectTag;
	        } else if (objTag != objectTag) {
	          objIsArr = isTypedArray(object);
	        }
	      }
	      if (!othIsArr) {
	        othTag = objToString.call(other);
	        if (othTag == argsTag) {
	          othTag = objectTag;
	        } else if (othTag != objectTag) {
	          othIsArr = isTypedArray(other);
	        }
	      }
	      var objIsObj = objTag == objectTag && !isHostObject(object),
	          othIsObj = othTag == objectTag && !isHostObject(other),
	          isSameTag = objTag == othTag;
	
	      if (isSameTag && !(objIsArr || objIsObj)) {
	        return equalByTag(object, other, objTag);
	      }
	      if (!isLoose) {
	        var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
	            othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
	
	        if (objIsWrapped || othIsWrapped) {
	          return equalFunc(objIsWrapped ? object.value() : object, othIsWrapped ? other.value() : other, customizer, isLoose, stackA, stackB);
	        }
	      }
	      if (!isSameTag) {
	        return false;
	      }
	      // Assume cyclic values are equal.
	      // For more information on detecting circular references see https://es5.github.io/#JO.
	      stackA || (stackA = []);
	      stackB || (stackB = []);
	
	      var length = stackA.length;
	      while (length--) {
	        if (stackA[length] == object) {
	          return stackB[length] == other;
	        }
	      }
	      // Add `object` and `other` to the stack of traversed objects.
	      stackA.push(object);
	      stackB.push(other);
	
	      var result = (objIsArr ? equalArrays : equalObjects)(object, other, equalFunc, customizer, isLoose, stackA, stackB);
	
	      stackA.pop();
	      stackB.pop();
	
	      return result;
	    }
	
	    /**
	     * The base implementation of `_.isMatch` without support for callback
	     * shorthands and `this` binding.
	     *
	     * @private
	     * @param {Object} object The object to inspect.
	     * @param {Array} matchData The propery names, values, and compare flags to match.
	     * @param {Function} [customizer] The function to customize comparing objects.
	     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
	     */
	    function baseIsMatch(object, matchData, customizer) {
	      var index = matchData.length,
	          length = index,
	          noCustomizer = !customizer;
	
	      if (object == null) {
	        return !length;
	      }
	      object = toObject(object);
	      while (index--) {
	        var data = matchData[index];
	        if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
	          return false;
	        }
	      }
	      while (++index < length) {
	        data = matchData[index];
	        var key = data[0],
	            objValue = object[key],
	            srcValue = data[1];
	
	        if (noCustomizer && data[2]) {
	          if (objValue === undefined && !(key in object)) {
	            return false;
	          }
	        } else {
	          var result = customizer ? customizer(objValue, srcValue, key) : undefined;
	          if (!(result === undefined ? baseIsEqual(srcValue, objValue, customizer, true) : result)) {
	            return false;
	          }
	        }
	      }
	      return true;
	    }
	
	    /**
	     * The base implementation of `_.map` without support for callback shorthands
	     * and `this` binding.
	     *
	     * @private
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @returns {Array} Returns the new mapped array.
	     */
	    function baseMap(collection, iteratee) {
	      var index = -1,
	          result = isArrayLike(collection) ? Array(collection.length) : [];
	
	      baseEach(collection, function (value, key, collection) {
	        result[++index] = iteratee(value, key, collection);
	      });
	      return result;
	    }
	
	    /**
	     * The base implementation of `_.matches` which does not clone `source`.
	     *
	     * @private
	     * @param {Object} source The object of property values to match.
	     * @returns {Function} Returns the new function.
	     */
	    function baseMatches(source) {
	      var matchData = getMatchData(source);
	      if (matchData.length == 1 && matchData[0][2]) {
	        var key = matchData[0][0],
	            value = matchData[0][1];
	
	        return function (object) {
	          if (object == null) {
	            return false;
	          }
	          object = toObject(object);
	          return object[key] === value && (value !== undefined || key in object);
	        };
	      }
	      return function (object) {
	        return baseIsMatch(object, matchData);
	      };
	    }
	
	    /**
	     * The base implementation of `_.matchesProperty` which does not clone `srcValue`.
	     *
	     * @private
	     * @param {string} path The path of the property to get.
	     * @param {*} srcValue The value to compare.
	     * @returns {Function} Returns the new function.
	     */
	    function baseMatchesProperty(path, srcValue) {
	      var isArr = isArray(path),
	          isCommon = isKey(path) && isStrictComparable(srcValue),
	          pathKey = path + '';
	
	      path = toPath(path);
	      return function (object) {
	        if (object == null) {
	          return false;
	        }
	        var key = pathKey;
	        object = toObject(object);
	        if ((isArr || !isCommon) && !(key in object)) {
	          object = path.length == 1 ? object : baseGet(object, baseSlice(path, 0, -1));
	          if (object == null) {
	            return false;
	          }
	          key = last(path);
	          object = toObject(object);
	        }
	        return object[key] === srcValue ? srcValue !== undefined || key in object : baseIsEqual(srcValue, object[key], undefined, true);
	      };
	    }
	
	    /**
	     * The base implementation of `_.merge` without support for argument juggling,
	     * multiple sources, and `this` binding `customizer` functions.
	     *
	     * @private
	     * @param {Object} object The destination object.
	     * @param {Object} source The source object.
	     * @param {Function} [customizer] The function to customize merged values.
	     * @param {Array} [stackA=[]] Tracks traversed source objects.
	     * @param {Array} [stackB=[]] Associates values with source counterparts.
	     * @returns {Object} Returns `object`.
	     */
	    function baseMerge(object, source, customizer, stackA, stackB) {
	      if (!isObject(object)) {
	        return object;
	      }
	      var isSrcArr = isArrayLike(source) && (isArray(source) || isTypedArray(source)),
	          props = isSrcArr ? undefined : keys(source);
	
	      arrayEach(props || source, function (srcValue, key) {
	        if (srcValue === '__proto__' || srcValue === 'constructor') {
	          return;
	        }
	
	        if (props) {
	          key = srcValue;
	          srcValue = source[key];
	        }
	        if (isObjectLike(srcValue)) {
	          stackA || (stackA = []);
	          stackB || (stackB = []);
	          baseMergeDeep(object, source, key, baseMerge, customizer, stackA, stackB);
	        } else {
	          var value = object[key],
	              result = customizer ? customizer(value, srcValue, key, object, source) : undefined,
	              isCommon = result === undefined;
	
	          if (isCommon) {
	            result = srcValue;
	          }
	          if ((result !== undefined || isSrcArr && !(key in object)) && (isCommon || (result === result ? result !== value : value === value))) {
	            object[key] = result;
	          }
	        }
	      });
	      return object;
	    }
	
	    /**
	     * A specialized version of `baseMerge` for arrays and objects which performs
	     * deep merges and tracks traversed objects enabling objects with circular
	     * references to be merged.
	     *
	     * @private
	     * @param {Object} object The destination object.
	     * @param {Object} source The source object.
	     * @param {string} key The key of the value to merge.
	     * @param {Function} mergeFunc The function to merge values.
	     * @param {Function} [customizer] The function to customize merged values.
	     * @param {Array} [stackA=[]] Tracks traversed source objects.
	     * @param {Array} [stackB=[]] Associates values with source counterparts.
	     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
	     */
	    function baseMergeDeep(object, source, key, mergeFunc, customizer, stackA, stackB) {
	      var length = stackA.length,
	          srcValue = source[key];
	
	      while (length--) {
	        if (stackA[length] == srcValue) {
	          object[key] = stackB[length];
	          return;
	        }
	      }
	      var value = object[key],
	          result = customizer ? customizer(value, srcValue, key, object, source) : undefined,
	          isCommon = result === undefined;
	
	      if (isCommon) {
	        result = srcValue;
	        if (isArrayLike(srcValue) && (isArray(srcValue) || isTypedArray(srcValue))) {
	          result = isArray(value) ? value : isArrayLike(value) ? arrayCopy(value) : [];
	        } else if (isPlainObject(srcValue) || isArguments(srcValue)) {
	          result = isArguments(value) ? toPlainObject(value) : isPlainObject(value) ? value : {};
	        } else {
	          isCommon = false;
	        }
	      }
	      // Add the source value to the stack of traversed objects and associate
	      // it with its merged value.
	      stackA.push(srcValue);
	      stackB.push(result);
	
	      if (isCommon) {
	        // Recursively merge objects and arrays (susceptible to call stack limits).
	        object[key] = mergeFunc(result, srcValue, customizer, stackA, stackB);
	      } else if (result === result ? result !== value : value === value) {
	        object[key] = result;
	      }
	    }
	
	    /**
	     * The base implementation of `_.property` without support for deep paths.
	     *
	     * @private
	     * @param {string} key The key of the property to get.
	     * @returns {Function} Returns the new function.
	     */
	    function baseProperty(key) {
	      return function (object) {
	        return object == null ? undefined : toObject(object)[key];
	      };
	    }
	
	    /**
	     * A specialized version of `baseProperty` which supports deep paths.
	     *
	     * @private
	     * @param {Array|string} path The path of the property to get.
	     * @returns {Function} Returns the new function.
	     */
	    function basePropertyDeep(path) {
	      var pathKey = path + '';
	      path = toPath(path);
	      return function (object) {
	        return baseGet(object, path, pathKey);
	      };
	    }
	
	    /**
	     * The base implementation of `_.pullAt` without support for individual
	     * index arguments and capturing the removed elements.
	     *
	     * @private
	     * @param {Array} array The array to modify.
	     * @param {number[]} indexes The indexes of elements to remove.
	     * @returns {Array} Returns `array`.
	     */
	    function basePullAt(array, indexes) {
	      var length = array ? indexes.length : 0;
	      while (length--) {
	        var index = indexes[length];
	        if (index != previous && isIndex(index)) {
	          var previous = index;
	          splice.call(array, index, 1);
	        }
	      }
	      return array;
	    }
	
	    /**
	     * The base implementation of `_.random` without support for argument juggling
	     * and returning floating-point numbers.
	     *
	     * @private
	     * @param {number} min The minimum possible value.
	     * @param {number} max The maximum possible value.
	     * @returns {number} Returns the random number.
	     */
	    function baseRandom(min, max) {
	      return min + nativeFloor(nativeRandom() * (max - min + 1));
	    }
	
	    /**
	     * The base implementation of `_.reduce` and `_.reduceRight` without support
	     * for callback shorthands and `this` binding, which iterates over `collection`
	     * using the provided `eachFunc`.
	     *
	     * @private
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @param {*} accumulator The initial value.
	     * @param {boolean} initFromCollection Specify using the first or last element
	     *  of `collection` as the initial value.
	     * @param {Function} eachFunc The function to iterate over `collection`.
	     * @returns {*} Returns the accumulated value.
	     */
	    function baseReduce(collection, iteratee, accumulator, initFromCollection, eachFunc) {
	      eachFunc(collection, function (value, index, collection) {
	        accumulator = initFromCollection ? (initFromCollection = false, value) : iteratee(accumulator, value, index, collection);
	      });
	      return accumulator;
	    }
	
	    /**
	     * The base implementation of `setData` without support for hot loop detection.
	     *
	     * @private
	     * @param {Function} func The function to associate metadata with.
	     * @param {*} data The metadata.
	     * @returns {Function} Returns `func`.
	     */
	    var baseSetData = !metaMap ? identity : function (func, data) {
	      metaMap.set(func, data);
	      return func;
	    };
	
	    /**
	     * The base implementation of `_.slice` without an iteratee call guard.
	     *
	     * @private
	     * @param {Array} array The array to slice.
	     * @param {number} [start=0] The start position.
	     * @param {number} [end=array.length] The end position.
	     * @returns {Array} Returns the slice of `array`.
	     */
	    function baseSlice(array, start, end) {
	      var index = -1,
	          length = array.length;
	
	      start = start == null ? 0 : +start || 0;
	      if (start < 0) {
	        start = -start > length ? 0 : length + start;
	      }
	      end = end === undefined || end > length ? length : +end || 0;
	      if (end < 0) {
	        end += length;
	      }
	      length = start > end ? 0 : end - start >>> 0;
	      start >>>= 0;
	
	      var result = Array(length);
	      while (++index < length) {
	        result[index] = array[index + start];
	      }
	      return result;
	    }
	
	    /**
	     * The base implementation of `_.some` without support for callback shorthands
	     * and `this` binding.
	     *
	     * @private
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function} predicate The function invoked per iteration.
	     * @returns {boolean} Returns `true` if any element passes the predicate check,
	     *  else `false`.
	     */
	    function baseSome(collection, predicate) {
	      var result;
	
	      baseEach(collection, function (value, index, collection) {
	        result = predicate(value, index, collection);
	        return !result;
	      });
	      return !!result;
	    }
	
	    /**
	     * The base implementation of `_.sortBy` which uses `comparer` to define
	     * the sort order of `array` and replaces criteria objects with their
	     * corresponding values.
	     *
	     * @private
	     * @param {Array} array The array to sort.
	     * @param {Function} comparer The function to define sort order.
	     * @returns {Array} Returns `array`.
	     */
	    function baseSortBy(array, comparer) {
	      var length = array.length;
	
	      array.sort(comparer);
	      while (length--) {
	        array[length] = array[length].value;
	      }
	      return array;
	    }
	
	    /**
	     * The base implementation of `_.sortByOrder` without param guards.
	     *
	     * @private
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
	     * @param {boolean[]} orders The sort orders of `iteratees`.
	     * @returns {Array} Returns the new sorted array.
	     */
	    function baseSortByOrder(collection, iteratees, orders) {
	      var callback = getCallback(),
	          index = -1;
	
	      iteratees = arrayMap(iteratees, function (iteratee) {
	        return callback(iteratee);
	      });
	
	      var result = baseMap(collection, function (value) {
	        var criteria = arrayMap(iteratees, function (iteratee) {
	          return iteratee(value);
	        });
	        return { 'criteria': criteria, 'index': ++index, 'value': value };
	      });
	
	      return baseSortBy(result, function (object, other) {
	        return compareMultiple(object, other, orders);
	      });
	    }
	
	    /**
	     * The base implementation of `_.sum` without support for callback shorthands
	     * and `this` binding.
	     *
	     * @private
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @returns {number} Returns the sum.
	     */
	    function baseSum(collection, iteratee) {
	      var result = 0;
	      baseEach(collection, function (value, index, collection) {
	        result += +iteratee(value, index, collection) || 0;
	      });
	      return result;
	    }
	
	    /**
	     * The base implementation of `_.uniq` without support for callback shorthands
	     * and `this` binding.
	     *
	     * @private
	     * @param {Array} array The array to inspect.
	     * @param {Function} [iteratee] The function invoked per iteration.
	     * @returns {Array} Returns the new duplicate free array.
	     */
	    function baseUniq(array, iteratee) {
	      var index = -1,
	          indexOf = getIndexOf(),
	          length = array.length,
	          isCommon = indexOf === baseIndexOf,
	          isLarge = isCommon && length >= LARGE_ARRAY_SIZE,
	          seen = isLarge ? createCache() : null,
	          result = [];
	
	      if (seen) {
	        indexOf = cacheIndexOf;
	        isCommon = false;
	      } else {
	        isLarge = false;
	        seen = iteratee ? [] : result;
	      }
	      outer: while (++index < length) {
	        var value = array[index],
	            computed = iteratee ? iteratee(value, index, array) : value;
	
	        if (isCommon && value === value) {
	          var seenIndex = seen.length;
	          while (seenIndex--) {
	            if (seen[seenIndex] === computed) {
	              continue outer;
	            }
	          }
	          if (iteratee) {
	            seen.push(computed);
	          }
	          result.push(value);
	        } else if (indexOf(seen, computed, 0) < 0) {
	          if (iteratee || isLarge) {
	            seen.push(computed);
	          }
	          result.push(value);
	        }
	      }
	      return result;
	    }
	
	    /**
	     * The base implementation of `_.values` and `_.valuesIn` which creates an
	     * array of `object` property values corresponding to the property names
	     * of `props`.
	     *
	     * @private
	     * @param {Object} object The object to query.
	     * @param {Array} props The property names to get values for.
	     * @returns {Object} Returns the array of property values.
	     */
	    function baseValues(object, props) {
	      var index = -1,
	          length = props.length,
	          result = Array(length);
	
	      while (++index < length) {
	        result[index] = object[props[index]];
	      }
	      return result;
	    }
	
	    /**
	     * The base implementation of `_.dropRightWhile`, `_.dropWhile`, `_.takeRightWhile`,
	     * and `_.takeWhile` without support for callback shorthands and `this` binding.
	     *
	     * @private
	     * @param {Array} array The array to query.
	     * @param {Function} predicate The function invoked per iteration.
	     * @param {boolean} [isDrop] Specify dropping elements instead of taking them.
	     * @param {boolean} [fromRight] Specify iterating from right to left.
	     * @returns {Array} Returns the slice of `array`.
	     */
	    function baseWhile(array, predicate, isDrop, fromRight) {
	      var length = array.length,
	          index = fromRight ? length : -1;
	
	      while ((fromRight ? index-- : ++index < length) && predicate(array[index], index, array)) {}
	      return isDrop ? baseSlice(array, fromRight ? 0 : index, fromRight ? index + 1 : length) : baseSlice(array, fromRight ? index + 1 : 0, fromRight ? length : index);
	    }
	
	    /**
	     * The base implementation of `wrapperValue` which returns the result of
	     * performing a sequence of actions on the unwrapped `value`, where each
	     * successive action is supplied the return value of the previous.
	     *
	     * @private
	     * @param {*} value The unwrapped value.
	     * @param {Array} actions Actions to peform to resolve the unwrapped value.
	     * @returns {*} Returns the resolved value.
	     */
	    function baseWrapperValue(value, actions) {
	      var result = value;
	      if (result instanceof LazyWrapper) {
	        result = result.value();
	      }
	      var index = -1,
	          length = actions.length;
	
	      while (++index < length) {
	        var action = actions[index];
	        result = action.func.apply(action.thisArg, arrayPush([result], action.args));
	      }
	      return result;
	    }
	
	    /**
	     * Performs a binary search of `array` to determine the index at which `value`
	     * should be inserted into `array` in order to maintain its sort order.
	     *
	     * @private
	     * @param {Array} array The sorted array to inspect.
	     * @param {*} value The value to evaluate.
	     * @param {boolean} [retHighest] Specify returning the highest qualified index.
	     * @returns {number} Returns the index at which `value` should be inserted
	     *  into `array`.
	     */
	    function binaryIndex(array, value, retHighest) {
	      var low = 0,
	          high = array ? array.length : low;
	
	      if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
	        while (low < high) {
	          var mid = low + high >>> 1,
	              computed = array[mid];
	
	          if ((retHighest ? computed <= value : computed < value) && computed !== null) {
	            low = mid + 1;
	          } else {
	            high = mid;
	          }
	        }
	        return high;
	      }
	      return binaryIndexBy(array, value, identity, retHighest);
	    }
	
	    /**
	     * This function is like `binaryIndex` except that it invokes `iteratee` for
	     * `value` and each element of `array` to compute their sort ranking. The
	     * iteratee is invoked with one argument; (value).
	     *
	     * @private
	     * @param {Array} array The sorted array to inspect.
	     * @param {*} value The value to evaluate.
	     * @param {Function} iteratee The function invoked per iteration.
	     * @param {boolean} [retHighest] Specify returning the highest qualified index.
	     * @returns {number} Returns the index at which `value` should be inserted
	     *  into `array`.
	     */
	    function binaryIndexBy(array, value, iteratee, retHighest) {
	      value = iteratee(value);
	
	      var low = 0,
	          high = array ? array.length : 0,
	          valIsNaN = value !== value,
	          valIsNull = value === null,
	          valIsUndef = value === undefined;
	
	      while (low < high) {
	        var mid = nativeFloor((low + high) / 2),
	            computed = iteratee(array[mid]),
	            isDef = computed !== undefined,
	            isReflexive = computed === computed;
	
	        if (valIsNaN) {
	          var setLow = isReflexive || retHighest;
	        } else if (valIsNull) {
	          setLow = isReflexive && isDef && (retHighest || computed != null);
	        } else if (valIsUndef) {
	          setLow = isReflexive && (retHighest || isDef);
	        } else if (computed == null) {
	          setLow = false;
	        } else {
	          setLow = retHighest ? computed <= value : computed < value;
	        }
	        if (setLow) {
	          low = mid + 1;
	        } else {
	          high = mid;
	        }
	      }
	      return nativeMin(high, MAX_ARRAY_INDEX);
	    }
	
	    /**
	     * A specialized version of `baseCallback` which only supports `this` binding
	     * and specifying the number of arguments to provide to `func`.
	     *
	     * @private
	     * @param {Function} func The function to bind.
	     * @param {*} thisArg The `this` binding of `func`.
	     * @param {number} [argCount] The number of arguments to provide to `func`.
	     * @returns {Function} Returns the callback.
	     */
	    function bindCallback(func, thisArg, argCount) {
	      if (typeof func != 'function') {
	        return identity;
	      }
	      if (thisArg === undefined) {
	        return func;
	      }
	      switch (argCount) {
	        case 1:
	          return function (value) {
	            return func.call(thisArg, value);
	          };
	        case 3:
	          return function (value, index, collection) {
	            return func.call(thisArg, value, index, collection);
	          };
	        case 4:
	          return function (accumulator, value, index, collection) {
	            return func.call(thisArg, accumulator, value, index, collection);
	          };
	        case 5:
	          return function (value, other, key, object, source) {
	            return func.call(thisArg, value, other, key, object, source);
	          };
	      }
	      return function () {
	        return func.apply(thisArg, arguments);
	      };
	    }
	
	    /**
	     * Creates a clone of the given array buffer.
	     *
	     * @private
	     * @param {ArrayBuffer} buffer The array buffer to clone.
	     * @returns {ArrayBuffer} Returns the cloned array buffer.
	     */
	    function bufferClone(buffer) {
	      var result = new ArrayBuffer(buffer.byteLength),
	          view = new Uint8Array(result);
	
	      view.set(new Uint8Array(buffer));
	      return result;
	    }
	
	    /**
	     * Creates an array that is the composition of partially applied arguments,
	     * placeholders, and provided arguments into a single array of arguments.
	     *
	     * @private
	     * @param {Array|Object} args The provided arguments.
	     * @param {Array} partials The arguments to prepend to those provided.
	     * @param {Array} holders The `partials` placeholder indexes.
	     * @returns {Array} Returns the new array of composed arguments.
	     */
	    function composeArgs(args, partials, holders) {
	      var holdersLength = holders.length,
	          argsIndex = -1,
	          argsLength = nativeMax(args.length - holdersLength, 0),
	          leftIndex = -1,
	          leftLength = partials.length,
	          result = Array(leftLength + argsLength);
	
	      while (++leftIndex < leftLength) {
	        result[leftIndex] = partials[leftIndex];
	      }
	      while (++argsIndex < holdersLength) {
	        result[holders[argsIndex]] = args[argsIndex];
	      }
	      while (argsLength--) {
	        result[leftIndex++] = args[argsIndex++];
	      }
	      return result;
	    }
	
	    /**
	     * This function is like `composeArgs` except that the arguments composition
	     * is tailored for `_.partialRight`.
	     *
	     * @private
	     * @param {Array|Object} args The provided arguments.
	     * @param {Array} partials The arguments to append to those provided.
	     * @param {Array} holders The `partials` placeholder indexes.
	     * @returns {Array} Returns the new array of composed arguments.
	     */
	    function composeArgsRight(args, partials, holders) {
	      var holdersIndex = -1,
	          holdersLength = holders.length,
	          argsIndex = -1,
	          argsLength = nativeMax(args.length - holdersLength, 0),
	          rightIndex = -1,
	          rightLength = partials.length,
	          result = Array(argsLength + rightLength);
	
	      while (++argsIndex < argsLength) {
	        result[argsIndex] = args[argsIndex];
	      }
	      var offset = argsIndex;
	      while (++rightIndex < rightLength) {
	        result[offset + rightIndex] = partials[rightIndex];
	      }
	      while (++holdersIndex < holdersLength) {
	        result[offset + holders[holdersIndex]] = args[argsIndex++];
	      }
	      return result;
	    }
	
	    /**
	     * Creates a `_.countBy`, `_.groupBy`, `_.indexBy`, or `_.partition` function.
	     *
	     * @private
	     * @param {Function} setter The function to set keys and values of the accumulator object.
	     * @param {Function} [initializer] The function to initialize the accumulator object.
	     * @returns {Function} Returns the new aggregator function.
	     */
	    function createAggregator(setter, initializer) {
	      return function (collection, iteratee, thisArg) {
	        var result = initializer ? initializer() : {};
	        iteratee = getCallback(iteratee, thisArg, 3);
	
	        if (isArray(collection)) {
	          var index = -1,
	              length = collection.length;
	
	          while (++index < length) {
	            var value = collection[index];
	            setter(result, value, iteratee(value, index, collection), collection);
	          }
	        } else {
	          baseEach(collection, function (value, key, collection) {
	            setter(result, value, iteratee(value, key, collection), collection);
	          });
	        }
	        return result;
	      };
	    }
	
	    /**
	     * Creates a `_.assign`, `_.defaults`, or `_.merge` function.
	     *
	     * @private
	     * @param {Function} assigner The function to assign values.
	     * @returns {Function} Returns the new assigner function.
	     */
	    function createAssigner(assigner) {
	      return restParam(function (object, sources) {
	        var index = -1,
	            length = object == null ? 0 : sources.length,
	            customizer = length > 2 ? sources[length - 2] : undefined,
	            guard = length > 2 ? sources[2] : undefined,
	            thisArg = length > 1 ? sources[length - 1] : undefined;
	
	        if (typeof customizer == 'function') {
	          customizer = bindCallback(customizer, thisArg, 5);
	          length -= 2;
	        } else {
	          customizer = typeof thisArg == 'function' ? thisArg : undefined;
	          length -= customizer ? 1 : 0;
	        }
	        if (guard && isIterateeCall(sources[0], sources[1], guard)) {
	          customizer = length < 3 ? undefined : customizer;
	          length = 1;
	        }
	        while (++index < length) {
	          var source = sources[index];
	          if (source) {
	            assigner(object, source, customizer);
	          }
	        }
	        return object;
	      });
	    }
	
	    /**
	     * Creates a `baseEach` or `baseEachRight` function.
	     *
	     * @private
	     * @param {Function} eachFunc The function to iterate over a collection.
	     * @param {boolean} [fromRight] Specify iterating from right to left.
	     * @returns {Function} Returns the new base function.
	     */
	    function createBaseEach(eachFunc, fromRight) {
	      return function (collection, iteratee) {
	        var length = collection ? getLength(collection) : 0;
	        if (!isLength(length)) {
	          return eachFunc(collection, iteratee);
	        }
	        var index = fromRight ? length : -1,
	            iterable = toObject(collection);
	
	        while (fromRight ? index-- : ++index < length) {
	          if (iteratee(iterable[index], index, iterable) === false) {
	            break;
	          }
	        }
	        return collection;
	      };
	    }
	
	    /**
	     * Creates a base function for `_.forIn` or `_.forInRight`.
	     *
	     * @private
	     * @param {boolean} [fromRight] Specify iterating from right to left.
	     * @returns {Function} Returns the new base function.
	     */
	    function createBaseFor(fromRight) {
	      return function (object, iteratee, keysFunc) {
	        var iterable = toObject(object),
	            props = keysFunc(object),
	            length = props.length,
	            index = fromRight ? length : -1;
	
	        while (fromRight ? index-- : ++index < length) {
	          var key = props[index];
	          if (iteratee(iterable[key], key, iterable) === false) {
	            break;
	          }
	        }
	        return object;
	      };
	    }
	
	    /**
	     * Creates a function that wraps `func` and invokes it with the `this`
	     * binding of `thisArg`.
	     *
	     * @private
	     * @param {Function} func The function to bind.
	     * @param {*} [thisArg] The `this` binding of `func`.
	     * @returns {Function} Returns the new bound function.
	     */
	    function createBindWrapper(func, thisArg) {
	      var Ctor = createCtorWrapper(func);
	
	      function wrapper() {
	        var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
	        return fn.apply(thisArg, arguments);
	      }
	      return wrapper;
	    }
	
	    /**
	     * Creates a `Set` cache object to optimize linear searches of large arrays.
	     *
	     * @private
	     * @param {Array} [values] The values to cache.
	     * @returns {null|Object} Returns the new cache object if `Set` is supported, else `null`.
	     */
	    function createCache(values) {
	      return nativeCreate && Set ? new SetCache(values) : null;
	    }
	
	    /**
	     * Creates a function that produces compound words out of the words in a
	     * given string.
	     *
	     * @private
	     * @param {Function} callback The function to combine each word.
	     * @returns {Function} Returns the new compounder function.
	     */
	    function createCompounder(callback) {
	      return function (string) {
	        var index = -1,
	            array = words(deburr(string)),
	            length = array.length,
	            result = '';
	
	        while (++index < length) {
	          result = callback(result, array[index], index);
	        }
	        return result;
	      };
	    }
	
	    /**
	     * Creates a function that produces an instance of `Ctor` regardless of
	     * whether it was invoked as part of a `new` expression or by `call` or `apply`.
	     *
	     * @private
	     * @param {Function} Ctor The constructor to wrap.
	     * @returns {Function} Returns the new wrapped function.
	     */
	    function createCtorWrapper(Ctor) {
	      return function () {
	        // Use a `switch` statement to work with class constructors.
	        // See http://ecma-international.org/ecma-262/6.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
	        // for more details.
	        var args = arguments;
	        switch (args.length) {
	          case 0:
	            return new Ctor();
	          case 1:
	            return new Ctor(args[0]);
	          case 2:
	            return new Ctor(args[0], args[1]);
	          case 3:
	            return new Ctor(args[0], args[1], args[2]);
	          case 4:
	            return new Ctor(args[0], args[1], args[2], args[3]);
	          case 5:
	            return new Ctor(args[0], args[1], args[2], args[3], args[4]);
	          case 6:
	            return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
	          case 7:
	            return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
	        }
	        var thisBinding = baseCreate(Ctor.prototype),
	            result = Ctor.apply(thisBinding, args);
	
	        // Mimic the constructor's `return` behavior.
	        // See https://es5.github.io/#x13.2.2 for more details.
	        return isObject(result) ? result : thisBinding;
	      };
	    }
	
	    /**
	     * Creates a `_.curry` or `_.curryRight` function.
	     *
	     * @private
	     * @param {boolean} flag The curry bit flag.
	     * @returns {Function} Returns the new curry function.
	     */
	    function createCurry(flag) {
	      function curryFunc(func, arity, guard) {
	        if (guard && isIterateeCall(func, arity, guard)) {
	          arity = undefined;
	        }
	        var result = createWrapper(func, flag, undefined, undefined, undefined, undefined, undefined, arity);
	        result.placeholder = curryFunc.placeholder;
	        return result;
	      }
	      return curryFunc;
	    }
	
	    /**
	     * Creates a `_.defaults` or `_.defaultsDeep` function.
	     *
	     * @private
	     * @param {Function} assigner The function to assign values.
	     * @param {Function} customizer The function to customize assigned values.
	     * @returns {Function} Returns the new defaults function.
	     */
	    function createDefaults(assigner, customizer) {
	      return restParam(function (args) {
	        var object = args[0];
	        if (object == null) {
	          return object;
	        }
	        args.push(customizer);
	        return assigner.apply(undefined, args);
	      });
	    }
	
	    /**
	     * Creates a `_.max` or `_.min` function.
	     *
	     * @private
	     * @param {Function} comparator The function used to compare values.
	     * @param {*} exValue The initial extremum value.
	     * @returns {Function} Returns the new extremum function.
	     */
	    function createExtremum(comparator, exValue) {
	      return function (collection, iteratee, thisArg) {
	        if (thisArg && isIterateeCall(collection, iteratee, thisArg)) {
	          iteratee = undefined;
	        }
	        iteratee = getCallback(iteratee, thisArg, 3);
	        if (iteratee.length == 1) {
	          collection = isArray(collection) ? collection : toIterable(collection);
	          var result = arrayExtremum(collection, iteratee, comparator, exValue);
	          if (!(collection.length && result === exValue)) {
	            return result;
	          }
	        }
	        return baseExtremum(collection, iteratee, comparator, exValue);
	      };
	    }
	
	    /**
	     * Creates a `_.find` or `_.findLast` function.
	     *
	     * @private
	     * @param {Function} eachFunc The function to iterate over a collection.
	     * @param {boolean} [fromRight] Specify iterating from right to left.
	     * @returns {Function} Returns the new find function.
	     */
	    function createFind(eachFunc, fromRight) {
	      return function (collection, predicate, thisArg) {
	        predicate = getCallback(predicate, thisArg, 3);
	        if (isArray(collection)) {
	          var index = baseFindIndex(collection, predicate, fromRight);
	          return index > -1 ? collection[index] : undefined;
	        }
	        return baseFind(collection, predicate, eachFunc);
	      };
	    }
	
	    /**
	     * Creates a `_.findIndex` or `_.findLastIndex` function.
	     *
	     * @private
	     * @param {boolean} [fromRight] Specify iterating from right to left.
	     * @returns {Function} Returns the new find function.
	     */
	    function createFindIndex(fromRight) {
	      return function (array, predicate, thisArg) {
	        if (!(array && array.length)) {
	          return -1;
	        }
	        predicate = getCallback(predicate, thisArg, 3);
	        return baseFindIndex(array, predicate, fromRight);
	      };
	    }
	
	    /**
	     * Creates a `_.findKey` or `_.findLastKey` function.
	     *
	     * @private
	     * @param {Function} objectFunc The function to iterate over an object.
	     * @returns {Function} Returns the new find function.
	     */
	    function createFindKey(objectFunc) {
	      return function (object, predicate, thisArg) {
	        predicate = getCallback(predicate, thisArg, 3);
	        return baseFind(object, predicate, objectFunc, true);
	      };
	    }
	
	    /**
	     * Creates a `_.flow` or `_.flowRight` function.
	     *
	     * @private
	     * @param {boolean} [fromRight] Specify iterating from right to left.
	     * @returns {Function} Returns the new flow function.
	     */
	    function createFlow(fromRight) {
	      return function () {
	        var wrapper,
	            length = arguments.length,
	            index = fromRight ? length : -1,
	            leftIndex = 0,
	            funcs = Array(length);
	
	        while (fromRight ? index-- : ++index < length) {
	          var func = funcs[leftIndex++] = arguments[index];
	          if (typeof func != 'function') {
	            throw new TypeError(FUNC_ERROR_TEXT);
	          }
	          if (!wrapper && LodashWrapper.prototype.thru && getFuncName(func) == 'wrapper') {
	            wrapper = new LodashWrapper([], true);
	          }
	        }
	        index = wrapper ? -1 : length;
	        while (++index < length) {
	          func = funcs[index];
	
	          var funcName = getFuncName(func),
	              data = funcName == 'wrapper' ? getData(func) : undefined;
	
	          if (data && isLaziable(data[0]) && data[1] == (ARY_FLAG | CURRY_FLAG | PARTIAL_FLAG | REARG_FLAG) && !data[4].length && data[9] == 1) {
	            wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
	          } else {
	            wrapper = func.length == 1 && isLaziable(func) ? wrapper[funcName]() : wrapper.thru(func);
	          }
	        }
	        return function () {
	          var args = arguments,
	              value = args[0];
	
	          if (wrapper && args.length == 1 && isArray(value) && value.length >= LARGE_ARRAY_SIZE) {
	            return wrapper.plant(value).value();
	          }
	          var index = 0,
	              result = length ? funcs[index].apply(this, args) : value;
	
	          while (++index < length) {
	            result = funcs[index].call(this, result);
	          }
	          return result;
	        };
	      };
	    }
	
	    /**
	     * Creates a function for `_.forEach` or `_.forEachRight`.
	     *
	     * @private
	     * @param {Function} arrayFunc The function to iterate over an array.
	     * @param {Function} eachFunc The function to iterate over a collection.
	     * @returns {Function} Returns the new each function.
	     */
	    function createForEach(arrayFunc, eachFunc) {
	      return function (collection, iteratee, thisArg) {
	        return typeof iteratee == 'function' && thisArg === undefined && isArray(collection) ? arrayFunc(collection, iteratee) : eachFunc(collection, bindCallback(iteratee, thisArg, 3));
	      };
	    }
	
	    /**
	     * Creates a function for `_.forIn` or `_.forInRight`.
	     *
	     * @private
	     * @param {Function} objectFunc The function to iterate over an object.
	     * @returns {Function} Returns the new each function.
	     */
	    function createForIn(objectFunc) {
	      return function (object, iteratee, thisArg) {
	        if (typeof iteratee != 'function' || thisArg !== undefined) {
	          iteratee = bindCallback(iteratee, thisArg, 3);
	        }
	        return objectFunc(object, iteratee, keysIn);
	      };
	    }
	
	    /**
	     * Creates a function for `_.forOwn` or `_.forOwnRight`.
	     *
	     * @private
	     * @param {Function} objectFunc The function to iterate over an object.
	     * @returns {Function} Returns the new each function.
	     */
	    function createForOwn(objectFunc) {
	      return function (object, iteratee, thisArg) {
	        if (typeof iteratee != 'function' || thisArg !== undefined) {
	          iteratee = bindCallback(iteratee, thisArg, 3);
	        }
	        return objectFunc(object, iteratee);
	      };
	    }
	
	    /**
	     * Creates a function for `_.mapKeys` or `_.mapValues`.
	     *
	     * @private
	     * @param {boolean} [isMapKeys] Specify mapping keys instead of values.
	     * @returns {Function} Returns the new map function.
	     */
	    function createObjectMapper(isMapKeys) {
	      return function (object, iteratee, thisArg) {
	        var result = {};
	        iteratee = getCallback(iteratee, thisArg, 3);
	
	        baseForOwn(object, function (value, key, object) {
	          var mapped = iteratee(value, key, object);
	          key = isMapKeys ? mapped : key;
	          value = isMapKeys ? value : mapped;
	          result[key] = value;
	        });
	        return result;
	      };
	    }
	
	    /**
	     * Creates a function for `_.padLeft` or `_.padRight`.
	     *
	     * @private
	     * @param {boolean} [fromRight] Specify padding from the right.
	     * @returns {Function} Returns the new pad function.
	     */
	    function createPadDir(fromRight) {
	      return function (string, length, chars) {
	        string = baseToString(string);
	        return (fromRight ? string : '') + createPadding(string, length, chars) + (fromRight ? '' : string);
	      };
	    }
	
	    /**
	     * Creates a `_.partial` or `_.partialRight` function.
	     *
	     * @private
	     * @param {boolean} flag The partial bit flag.
	     * @returns {Function} Returns the new partial function.
	     */
	    function createPartial(flag) {
	      var partialFunc = restParam(function (func, partials) {
	        var holders = replaceHolders(partials, partialFunc.placeholder);
	        return createWrapper(func, flag, undefined, partials, holders);
	      });
	      return partialFunc;
	    }
	
	    /**
	     * Creates a function for `_.reduce` or `_.reduceRight`.
	     *
	     * @private
	     * @param {Function} arrayFunc The function to iterate over an array.
	     * @param {Function} eachFunc The function to iterate over a collection.
	     * @returns {Function} Returns the new each function.
	     */
	    function createReduce(arrayFunc, eachFunc) {
	      return function (collection, iteratee, accumulator, thisArg) {
	        var initFromArray = arguments.length < 3;
	        return typeof iteratee == 'function' && thisArg === undefined && isArray(collection) ? arrayFunc(collection, iteratee, accumulator, initFromArray) : baseReduce(collection, getCallback(iteratee, thisArg, 4), accumulator, initFromArray, eachFunc);
	      };
	    }
	
	    /**
	     * Creates a function that wraps `func` and invokes it with optional `this`
	     * binding of, partial application, and currying.
	     *
	     * @private
	     * @param {Function|string} func The function or method name to reference.
	     * @param {number} bitmask The bitmask of flags. See `createWrapper` for more details.
	     * @param {*} [thisArg] The `this` binding of `func`.
	     * @param {Array} [partials] The arguments to prepend to those provided to the new function.
	     * @param {Array} [holders] The `partials` placeholder indexes.
	     * @param {Array} [partialsRight] The arguments to append to those provided to the new function.
	     * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
	     * @param {Array} [argPos] The argument positions of the new function.
	     * @param {number} [ary] The arity cap of `func`.
	     * @param {number} [arity] The arity of `func`.
	     * @returns {Function} Returns the new wrapped function.
	     */
	    function createHybridWrapper(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
	      var isAry = bitmask & ARY_FLAG,
	          isBind = bitmask & BIND_FLAG,
	          isBindKey = bitmask & BIND_KEY_FLAG,
	          isCurry = bitmask & CURRY_FLAG,
	          isCurryBound = bitmask & CURRY_BOUND_FLAG,
	          isCurryRight = bitmask & CURRY_RIGHT_FLAG,
	          Ctor = isBindKey ? undefined : createCtorWrapper(func);
	
	      function wrapper() {
	        // Avoid `arguments` object use disqualifying optimizations by
	        // converting it to an array before providing it to other functions.
	        var length = arguments.length,
	            index = length,
	            args = Array(length);
	
	        while (index--) {
	          args[index] = arguments[index];
	        }
	        if (partials) {
	          args = composeArgs(args, partials, holders);
	        }
	        if (partialsRight) {
	          args = composeArgsRight(args, partialsRight, holdersRight);
	        }
	        if (isCurry || isCurryRight) {
	          var placeholder = wrapper.placeholder,
	              argsHolders = replaceHolders(args, placeholder);
	
	          length -= argsHolders.length;
	          if (length < arity) {
	            var newArgPos = argPos ? arrayCopy(argPos) : undefined,
	                newArity = nativeMax(arity - length, 0),
	                newsHolders = isCurry ? argsHolders : undefined,
	                newHoldersRight = isCurry ? undefined : argsHolders,
	                newPartials = isCurry ? args : undefined,
	                newPartialsRight = isCurry ? undefined : args;
	
	            bitmask |= isCurry ? PARTIAL_FLAG : PARTIAL_RIGHT_FLAG;
	            bitmask &= ~(isCurry ? PARTIAL_RIGHT_FLAG : PARTIAL_FLAG);
	
	            if (!isCurryBound) {
	              bitmask &= ~(BIND_FLAG | BIND_KEY_FLAG);
	            }
	            var newData = [func, bitmask, thisArg, newPartials, newsHolders, newPartialsRight, newHoldersRight, newArgPos, ary, newArity],
	                result = createHybridWrapper.apply(undefined, newData);
	
	            if (isLaziable(func)) {
	              setData(result, newData);
	            }
	            result.placeholder = placeholder;
	            return result;
	          }
	        }
	        var thisBinding = isBind ? thisArg : this,
	            fn = isBindKey ? thisBinding[func] : func;
	
	        if (argPos) {
	          args = reorder(args, argPos);
	        }
	        if (isAry && ary < args.length) {
	          args.length = ary;
	        }
	        if (this && this !== root && this instanceof wrapper) {
	          fn = Ctor || createCtorWrapper(func);
	        }
	        return fn.apply(thisBinding, args);
	      }
	      return wrapper;
	    }
	
	    /**
	     * Creates the padding required for `string` based on the given `length`.
	     * The `chars` string is truncated if the number of characters exceeds `length`.
	     *
	     * @private
	     * @param {string} string The string to create padding for.
	     * @param {number} [length=0] The padding length.
	     * @param {string} [chars=' '] The string used as padding.
	     * @returns {string} Returns the pad for `string`.
	     */
	    function createPadding(string, length, chars) {
	      var strLength = string.length;
	      length = +length;
	
	      if (strLength >= length || !nativeIsFinite(length)) {
	        return '';
	      }
	      var padLength = length - strLength;
	      chars = chars == null ? ' ' : chars + '';
	      return repeat(chars, nativeCeil(padLength / chars.length)).slice(0, padLength);
	    }
	
	    /**
	     * Creates a function that wraps `func` and invokes it with the optional `this`
	     * binding of `thisArg` and the `partials` prepended to those provided to
	     * the wrapper.
	     *
	     * @private
	     * @param {Function} func The function to partially apply arguments to.
	     * @param {number} bitmask The bitmask of flags. See `createWrapper` for more details.
	     * @param {*} thisArg The `this` binding of `func`.
	     * @param {Array} partials The arguments to prepend to those provided to the new function.
	     * @returns {Function} Returns the new bound function.
	     */
	    function createPartialWrapper(func, bitmask, thisArg, partials) {
	      var isBind = bitmask & BIND_FLAG,
	          Ctor = createCtorWrapper(func);
	
	      function wrapper() {
	        // Avoid `arguments` object use disqualifying optimizations by
	        // converting it to an array before providing it `func`.
	        var argsIndex = -1,
	            argsLength = arguments.length,
	            leftIndex = -1,
	            leftLength = partials.length,
	            args = Array(leftLength + argsLength);
	
	        while (++leftIndex < leftLength) {
	          args[leftIndex] = partials[leftIndex];
	        }
	        while (argsLength--) {
	          args[leftIndex++] = arguments[++argsIndex];
	        }
	        var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
	        return fn.apply(isBind ? thisArg : this, args);
	      }
	      return wrapper;
	    }
	
	    /**
	     * Creates a `_.ceil`, `_.floor`, or `_.round` function.
	     *
	     * @private
	     * @param {string} methodName The name of the `Math` method to use when rounding.
	     * @returns {Function} Returns the new round function.
	     */
	    function createRound(methodName) {
	      var func = Math[methodName];
	      return function (number, precision) {
	        precision = precision === undefined ? 0 : +precision || 0;
	        if (precision) {
	          precision = pow(10, precision);
	          return func(number * precision) / precision;
	        }
	        return func(number);
	      };
	    }
	
	    /**
	     * Creates a `_.sortedIndex` or `_.sortedLastIndex` function.
	     *
	     * @private
	     * @param {boolean} [retHighest] Specify returning the highest qualified index.
	     * @returns {Function} Returns the new index function.
	     */
	    function createSortedIndex(retHighest) {
	      return function (array, value, iteratee, thisArg) {
	        var callback = getCallback(iteratee);
	        return iteratee == null && callback === baseCallback ? binaryIndex(array, value, retHighest) : binaryIndexBy(array, value, callback(iteratee, thisArg, 1), retHighest);
	      };
	    }
	
	    /**
	     * Creates a function that either curries or invokes `func` with optional
	     * `this` binding and partially applied arguments.
	     *
	     * @private
	     * @param {Function|string} func The function or method name to reference.
	     * @param {number} bitmask The bitmask of flags.
	     *  The bitmask may be composed of the following flags:
	     *     1 - `_.bind`
	     *     2 - `_.bindKey`
	     *     4 - `_.curry` or `_.curryRight` of a bound function
	     *     8 - `_.curry`
	     *    16 - `_.curryRight`
	     *    32 - `_.partial`
	     *    64 - `_.partialRight`
	     *   128 - `_.rearg`
	     *   256 - `_.ary`
	     * @param {*} [thisArg] The `this` binding of `func`.
	     * @param {Array} [partials] The arguments to be partially applied.
	     * @param {Array} [holders] The `partials` placeholder indexes.
	     * @param {Array} [argPos] The argument positions of the new function.
	     * @param {number} [ary] The arity cap of `func`.
	     * @param {number} [arity] The arity of `func`.
	     * @returns {Function} Returns the new wrapped function.
	     */
	    function createWrapper(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
	      var isBindKey = bitmask & BIND_KEY_FLAG;
	      if (!isBindKey && typeof func != 'function') {
	        throw new TypeError(FUNC_ERROR_TEXT);
	      }
	      var length = partials ? partials.length : 0;
	      if (!length) {
	        bitmask &= ~(PARTIAL_FLAG | PARTIAL_RIGHT_FLAG);
	        partials = holders = undefined;
	      }
	      length -= holders ? holders.length : 0;
	      if (bitmask & PARTIAL_RIGHT_FLAG) {
	        var partialsRight = partials,
	            holdersRight = holders;
	
	        partials = holders = undefined;
	      }
	      var data = isBindKey ? undefined : getData(func),
	          newData = [func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity];
	
	      if (data) {
	        mergeData(newData, data);
	        bitmask = newData[1];
	        arity = newData[9];
	      }
	      newData[9] = arity == null ? isBindKey ? 0 : func.length : nativeMax(arity - length, 0) || 0;
	
	      if (bitmask == BIND_FLAG) {
	        var result = createBindWrapper(newData[0], newData[2]);
	      } else if ((bitmask == PARTIAL_FLAG || bitmask == (BIND_FLAG | PARTIAL_FLAG)) && !newData[4].length) {
	        result = createPartialWrapper.apply(undefined, newData);
	      } else {
	        result = createHybridWrapper.apply(undefined, newData);
	      }
	      var setter = data ? baseSetData : setData;
	      return setter(result, newData);
	    }
	
	    /**
	     * A specialized version of `baseIsEqualDeep` for arrays with support for
	     * partial deep comparisons.
	     *
	     * @private
	     * @param {Array} array The array to compare.
	     * @param {Array} other The other array to compare.
	     * @param {Function} equalFunc The function to determine equivalents of values.
	     * @param {Function} [customizer] The function to customize comparing arrays.
	     * @param {boolean} [isLoose] Specify performing partial comparisons.
	     * @param {Array} [stackA] Tracks traversed `value` objects.
	     * @param {Array} [stackB] Tracks traversed `other` objects.
	     * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
	     */
	    function equalArrays(array, other, equalFunc, customizer, isLoose, stackA, stackB) {
	      var index = -1,
	          arrLength = array.length,
	          othLength = other.length;
	
	      if (arrLength != othLength && !(isLoose && othLength > arrLength)) {
	        return false;
	      }
	      // Ignore non-index properties.
	      while (++index < arrLength) {
	        var arrValue = array[index],
	            othValue = other[index],
	            result = customizer ? customizer(isLoose ? othValue : arrValue, isLoose ? arrValue : othValue, index) : undefined;
	
	        if (result !== undefined) {
	          if (result) {
	            continue;
	          }
	          return false;
	        }
	        // Recursively compare arrays (susceptible to call stack limits).
	        if (isLoose) {
	          if (!arraySome(other, function (othValue) {
	            return arrValue === othValue || equalFunc(arrValue, othValue, customizer, isLoose, stackA, stackB);
	          })) {
	            return false;
	          }
	        } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, customizer, isLoose, stackA, stackB))) {
	          return false;
	        }
	      }
	      return true;
	    }
	
	    /**
	     * A specialized version of `baseIsEqualDeep` for comparing objects of
	     * the same `toStringTag`.
	     *
	     * **Note:** This function only supports comparing values with tags of
	     * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
	     *
	     * @private
	     * @param {Object} object The object to compare.
	     * @param {Object} other The other object to compare.
	     * @param {string} tag The `toStringTag` of the objects to compare.
	     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
	     */
	    function equalByTag(object, other, tag) {
	      switch (tag) {
	        case boolTag:
	        case dateTag:
	          // Coerce dates and booleans to numbers, dates to milliseconds and booleans
	          // to `1` or `0` treating invalid dates coerced to `NaN` as not equal.
	          return +object == +other;
	
	        case errorTag:
	          return object.name == other.name && object.message == other.message;
	
	        case numberTag:
	          // Treat `NaN` vs. `NaN` as equal.
	          return object != +object ? other != +other : object == +other;
	
	        case regexpTag:
	        case stringTag:
	          // Coerce regexes to strings and treat strings primitives and string
	          // objects as equal. See https://es5.github.io/#x15.10.6.4 for more details.
	          return object == other + '';
	      }
	      return false;
	    }
	
	    /**
	     * A specialized version of `baseIsEqualDeep` for objects with support for
	     * partial deep comparisons.
	     *
	     * @private
	     * @param {Object} object The object to compare.
	     * @param {Object} other The other object to compare.
	     * @param {Function} equalFunc The function to determine equivalents of values.
	     * @param {Function} [customizer] The function to customize comparing values.
	     * @param {boolean} [isLoose] Specify performing partial comparisons.
	     * @param {Array} [stackA] Tracks traversed `value` objects.
	     * @param {Array} [stackB] Tracks traversed `other` objects.
	     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
	     */
	    function equalObjects(object, other, equalFunc, customizer, isLoose, stackA, stackB) {
	      var objProps = keys(object),
	          objLength = objProps.length,
	          othProps = keys(other),
	          othLength = othProps.length;
	
	      if (objLength != othLength && !isLoose) {
	        return false;
	      }
	      var index = objLength;
	      while (index--) {
	        var key = objProps[index];
	        if (!(isLoose ? key in other : hasOwnProperty.call(other, key))) {
	          return false;
	        }
	      }
	      var skipCtor = isLoose;
	      while (++index < objLength) {
	        key = objProps[index];
	        var objValue = object[key],
	            othValue = other[key],
	            result = customizer ? customizer(isLoose ? othValue : objValue, isLoose ? objValue : othValue, key) : undefined;
	
	        // Recursively compare objects (susceptible to call stack limits).
	        if (!(result === undefined ? equalFunc(objValue, othValue, customizer, isLoose, stackA, stackB) : result)) {
	          return false;
	        }
	        skipCtor || (skipCtor = key == 'constructor');
	      }
	      if (!skipCtor) {
	        var objCtor = object.constructor,
	            othCtor = other.constructor;
	
	        // Non `Object` object instances with different constructors are not equal.
	        if (objCtor != othCtor && 'constructor' in object && 'constructor' in other && !(typeof objCtor == 'function' && objCtor instanceof objCtor && typeof othCtor == 'function' && othCtor instanceof othCtor)) {
	          return false;
	        }
	      }
	      return true;
	    }
	
	    /**
	     * Gets the appropriate "callback" function. If the `_.callback` method is
	     * customized this function returns the custom method, otherwise it returns
	     * the `baseCallback` function. If arguments are provided the chosen function
	     * is invoked with them and its result is returned.
	     *
	     * @private
	     * @returns {Function} Returns the chosen function or its result.
	     */
	    function getCallback(func, thisArg, argCount) {
	      var result = lodash.callback || callback;
	      result = result === callback ? baseCallback : result;
	      return argCount ? result(func, thisArg, argCount) : result;
	    }
	
	    /**
	     * Gets metadata for `func`.
	     *
	     * @private
	     * @param {Function} func The function to query.
	     * @returns {*} Returns the metadata for `func`.
	     */
	    var getData = !metaMap ? noop : function (func) {
	      return metaMap.get(func);
	    };
	
	    /**
	     * Gets the name of `func`.
	     *
	     * @private
	     * @param {Function} func The function to query.
	     * @returns {string} Returns the function name.
	     */
	    function getFuncName(func) {
	      var result = func.name + '',
	          array = realNames[result],
	          length = array ? array.length : 0;
	
	      while (length--) {
	        var data = array[length],
	            otherFunc = data.func;
	        if (otherFunc == null || otherFunc == func) {
	          return data.name;
	        }
	      }
	      return result;
	    }
	
	    /**
	     * Gets the appropriate "indexOf" function. If the `_.indexOf` method is
	     * customized this function returns the custom method, otherwise it returns
	     * the `baseIndexOf` function. If arguments are provided the chosen function
	     * is invoked with them and its result is returned.
	     *
	     * @private
	     * @returns {Function|number} Returns the chosen function or its result.
	     */
	    function getIndexOf(collection, target, fromIndex) {
	      var result = lodash.indexOf || indexOf;
	      result = result === indexOf ? baseIndexOf : result;
	      return collection ? result(collection, target, fromIndex) : result;
	    }
	
	    /**
	     * Gets the "length" property value of `object`.
	     *
	     * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)
	     * that affects Safari on at least iOS 8.1-8.3 ARM64.
	     *
	     * @private
	     * @param {Object} object The object to query.
	     * @returns {*} Returns the "length" value.
	     */
	    var getLength = baseProperty('length');
	
	    /**
	     * Gets the propery names, values, and compare flags of `object`.
	     *
	     * @private
	     * @param {Object} object The object to query.
	     * @returns {Array} Returns the match data of `object`.
	     */
	    function getMatchData(object) {
	      var result = pairs(object),
	          length = result.length;
	
	      while (length--) {
	        result[length][2] = isStrictComparable(result[length][1]);
	      }
	      return result;
	    }
	
	    /**
	     * Gets the native function at `key` of `object`.
	     *
	     * @private
	     * @param {Object} object The object to query.
	     * @param {string} key The key of the method to get.
	     * @returns {*} Returns the function if it's native, else `undefined`.
	     */
	    function getNative(object, key) {
	      var value = object == null ? undefined : object[key];
	      return isNative(value) ? value : undefined;
	    }
	
	    /**
	     * Gets the view, applying any `transforms` to the `start` and `end` positions.
	     *
	     * @private
	     * @param {number} start The start of the view.
	     * @param {number} end The end of the view.
	     * @param {Array} transforms The transformations to apply to the view.
	     * @returns {Object} Returns an object containing the `start` and `end`
	     *  positions of the view.
	     */
	    function getView(start, end, transforms) {
	      var index = -1,
	          length = transforms.length;
	
	      while (++index < length) {
	        var data = transforms[index],
	            size = data.size;
	
	        switch (data.type) {
	          case 'drop':
	            start += size;break;
	          case 'dropRight':
	            end -= size;break;
	          case 'take':
	            end = nativeMin(end, start + size);break;
	          case 'takeRight':
	            start = nativeMax(start, end - size);break;
	        }
	      }
	      return { 'start': start, 'end': end };
	    }
	
	    /**
	     * Initializes an array clone.
	     *
	     * @private
	     * @param {Array} array The array to clone.
	     * @returns {Array} Returns the initialized clone.
	     */
	    function initCloneArray(array) {
	      var length = array.length,
	          result = new array.constructor(length);
	
	      // Add array properties assigned by `RegExp#exec`.
	      if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
	        result.index = array.index;
	        result.input = array.input;
	      }
	      return result;
	    }
	
	    /**
	     * Initializes an object clone.
	     *
	     * @private
	     * @param {Object} object The object to clone.
	     * @returns {Object} Returns the initialized clone.
	     */
	    function initCloneObject(object) {
	      var Ctor = object.constructor;
	      if (!(typeof Ctor == 'function' && Ctor instanceof Ctor)) {
	        Ctor = Object;
	      }
	      return new Ctor();
	    }
	
	    /**
	     * Initializes an object clone based on its `toStringTag`.
	     *
	     * **Note:** This function only supports cloning values with tags of
	     * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
	     *
	     * @private
	     * @param {Object} object The object to clone.
	     * @param {string} tag The `toStringTag` of the object to clone.
	     * @param {boolean} [isDeep] Specify a deep clone.
	     * @returns {Object} Returns the initialized clone.
	     */
	    function initCloneByTag(object, tag, isDeep) {
	      var Ctor = object.constructor;
	      switch (tag) {
	        case arrayBufferTag:
	          return bufferClone(object);
	
	        case boolTag:
	        case dateTag:
	          return new Ctor(+object);
	
	        case float32Tag:case float64Tag:
	        case int8Tag:case int16Tag:case int32Tag:
	        case uint8Tag:case uint8ClampedTag:case uint16Tag:case uint32Tag:
	          // Safari 5 mobile incorrectly has `Object` as the constructor of typed arrays.
	          if (Ctor instanceof Ctor) {
	            Ctor = ctorByTag[tag];
	          }
	          var buffer = object.buffer;
	          return new Ctor(isDeep ? bufferClone(buffer) : buffer, object.byteOffset, object.length);
	
	        case numberTag:
	        case stringTag:
	          return new Ctor(object);
	
	        case regexpTag:
	          var result = new Ctor(object.source, reFlags.exec(object));
	          result.lastIndex = object.lastIndex;
	      }
	      return result;
	    }
	
	    /**
	     * Invokes the method at `path` on `object`.
	     *
	     * @private
	     * @param {Object} object The object to query.
	     * @param {Array|string} path The path of the method to invoke.
	     * @param {Array} args The arguments to invoke the method with.
	     * @returns {*} Returns the result of the invoked method.
	     */
	    function invokePath(object, path, args) {
	      if (object != null && !isKey(path, object)) {
	        path = toPath(path);
	        object = path.length == 1 ? object : baseGet(object, baseSlice(path, 0, -1));
	        path = last(path);
	      }
	      var func = object == null ? object : object[path];
	      return func == null ? undefined : func.apply(object, args);
	    }
	
	    /**
	     * Checks if `value` is array-like.
	     *
	     * @private
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
	     */
	    function isArrayLike(value) {
	      return value != null && isLength(getLength(value));
	    }
	
	    /**
	     * Checks if `value` is a valid array-like index.
	     *
	     * @private
	     * @param {*} value The value to check.
	     * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
	     * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
	     */
	    function isIndex(value, length) {
	      value = typeof value == 'number' || reIsUint.test(value) ? +value : -1;
	      length = length == null ? MAX_SAFE_INTEGER : length;
	      return value > -1 && value % 1 == 0 && value < length;
	    }
	
	    /**
	     * Checks if the provided arguments are from an iteratee call.
	     *
	     * @private
	     * @param {*} value The potential iteratee value argument.
	     * @param {*} index The potential iteratee index or key argument.
	     * @param {*} object The potential iteratee object argument.
	     * @returns {boolean} Returns `true` if the arguments are from an iteratee call, else `false`.
	     */
	    function isIterateeCall(value, index, object) {
	      if (!isObject(object)) {
	        return false;
	      }
	      var type = typeof index === 'undefined' ? 'undefined' : _typeof(index);
	      if (type == 'number' ? isArrayLike(object) && isIndex(index, object.length) : type == 'string' && index in object) {
	        var other = object[index];
	        return value === value ? value === other : other !== other;
	      }
	      return false;
	    }
	
	    /**
	     * Checks if `value` is a property name and not a property path.
	     *
	     * @private
	     * @param {*} value The value to check.
	     * @param {Object} [object] The object to query keys on.
	     * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
	     */
	    function isKey(value, object) {
	      var type = typeof value === 'undefined' ? 'undefined' : _typeof(value);
	      if (type == 'string' && reIsPlainProp.test(value) || type == 'number') {
	        return true;
	      }
	      if (isArray(value)) {
	        return false;
	      }
	      var result = !reIsDeepProp.test(value);
	      return result || object != null && value in toObject(object);
	    }
	
	    /**
	     * Checks if `func` has a lazy counterpart.
	     *
	     * @private
	     * @param {Function} func The function to check.
	     * @returns {boolean} Returns `true` if `func` has a lazy counterpart, else `false`.
	     */
	    function isLaziable(func) {
	      var funcName = getFuncName(func),
	          other = lodash[funcName];
	
	      if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {
	        return false;
	      }
	      if (func === other) {
	        return true;
	      }
	      var data = getData(other);
	      return !!data && func === data[0];
	    }
	
	    /**
	     * Checks if `value` is a valid array-like length.
	     *
	     * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
	     *
	     * @private
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
	     */
	    function isLength(value) {
	      return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
	    }
	
	    /**
	     * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
	     *
	     * @private
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` if suitable for strict
	     *  equality comparisons, else `false`.
	     */
	    function isStrictComparable(value) {
	      return value === value && !isObject(value);
	    }
	
	    /**
	     * Merges the function metadata of `source` into `data`.
	     *
	     * Merging metadata reduces the number of wrappers required to invoke a function.
	     * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
	     * may be applied regardless of execution order. Methods like `_.ary` and `_.rearg`
	     * augment function arguments, making the order in which they are executed important,
	     * preventing the merging of metadata. However, we make an exception for a safe
	     * common case where curried functions have `_.ary` and or `_.rearg` applied.
	     *
	     * @private
	     * @param {Array} data The destination metadata.
	     * @param {Array} source The source metadata.
	     * @returns {Array} Returns `data`.
	     */
	    function mergeData(data, source) {
	      var bitmask = data[1],
	          srcBitmask = source[1],
	          newBitmask = bitmask | srcBitmask,
	          isCommon = newBitmask < ARY_FLAG;
	
	      var isCombo = srcBitmask == ARY_FLAG && bitmask == CURRY_FLAG || srcBitmask == ARY_FLAG && bitmask == REARG_FLAG && data[7].length <= source[8] || srcBitmask == (ARY_FLAG | REARG_FLAG) && bitmask == CURRY_FLAG;
	
	      // Exit early if metadata can't be merged.
	      if (!(isCommon || isCombo)) {
	        return data;
	      }
	      // Use source `thisArg` if available.
	      if (srcBitmask & BIND_FLAG) {
	        data[2] = source[2];
	        // Set when currying a bound function.
	        newBitmask |= bitmask & BIND_FLAG ? 0 : CURRY_BOUND_FLAG;
	      }
	      // Compose partial arguments.
	      var value = source[3];
	      if (value) {
	        var partials = data[3];
	        data[3] = partials ? composeArgs(partials, value, source[4]) : arrayCopy(value);
	        data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : arrayCopy(source[4]);
	      }
	      // Compose partial right arguments.
	      value = source[5];
	      if (value) {
	        partials = data[5];
	        data[5] = partials ? composeArgsRight(partials, value, source[6]) : arrayCopy(value);
	        data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : arrayCopy(source[6]);
	      }
	      // Use source `argPos` if available.
	      value = source[7];
	      if (value) {
	        data[7] = arrayCopy(value);
	      }
	      // Use source `ary` if it's smaller.
	      if (srcBitmask & ARY_FLAG) {
	        data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
	      }
	      // Use source `arity` if one is not provided.
	      if (data[9] == null) {
	        data[9] = source[9];
	      }
	      // Use source `func` and merge bitmasks.
	      data[0] = source[0];
	      data[1] = newBitmask;
	
	      return data;
	    }
	
	    /**
	     * Used by `_.defaultsDeep` to customize its `_.merge` use.
	     *
	     * @private
	     * @param {*} objectValue The destination object property value.
	     * @param {*} sourceValue The source object property value.
	     * @returns {*} Returns the value to assign to the destination object.
	     */
	    function mergeDefaults(objectValue, sourceValue) {
	      return objectValue === undefined ? sourceValue : merge(objectValue, sourceValue, mergeDefaults);
	    }
	
	    /**
	     * A specialized version of `_.pick` which picks `object` properties specified
	     * by `props`.
	     *
	     * @private
	     * @param {Object} object The source object.
	     * @param {string[]} props The property names to pick.
	     * @returns {Object} Returns the new object.
	     */
	    function pickByArray(object, props) {
	      object = toObject(object);
	
	      var index = -1,
	          length = props.length,
	          result = {};
	
	      while (++index < length) {
	        var key = props[index];
	        if (key in object) {
	          result[key] = object[key];
	        }
	      }
	      return result;
	    }
	
	    /**
	     * A specialized version of `_.pick` which picks `object` properties `predicate`
	     * returns truthy for.
	     *
	     * @private
	     * @param {Object} object The source object.
	     * @param {Function} predicate The function invoked per iteration.
	     * @returns {Object} Returns the new object.
	     */
	    function pickByCallback(object, predicate) {
	      var result = {};
	      baseForIn(object, function (value, key, object) {
	        if (predicate(value, key, object)) {
	          result[key] = value;
	        }
	      });
	      return result;
	    }
	
	    /**
	     * Reorder `array` according to the specified indexes where the element at
	     * the first index is assigned as the first element, the element at
	     * the second index is assigned as the second element, and so on.
	     *
	     * @private
	     * @param {Array} array The array to reorder.
	     * @param {Array} indexes The arranged array indexes.
	     * @returns {Array} Returns `array`.
	     */
	    function reorder(array, indexes) {
	      var arrLength = array.length,
	          length = nativeMin(indexes.length, arrLength),
	          oldArray = arrayCopy(array);
	
	      while (length--) {
	        var index = indexes[length];
	        array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;
	      }
	      return array;
	    }
	
	    /**
	     * Sets metadata for `func`.
	     *
	     * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
	     * period of time, it will trip its breaker and transition to an identity function
	     * to avoid garbage collection pauses in V8. See [V8 issue 2070](https://code.google.com/p/v8/issues/detail?id=2070)
	     * for more details.
	     *
	     * @private
	     * @param {Function} func The function to associate metadata with.
	     * @param {*} data The metadata.
	     * @returns {Function} Returns `func`.
	     */
	    var setData = function () {
	      var count = 0,
	          lastCalled = 0;
	
	      return function (key, value) {
	        var stamp = now(),
	            remaining = HOT_SPAN - (stamp - lastCalled);
	
	        lastCalled = stamp;
	        if (remaining > 0) {
	          if (++count >= HOT_COUNT) {
	            return key;
	          }
	        } else {
	          count = 0;
	        }
	        return baseSetData(key, value);
	      };
	    }();
	
	    /**
	     * A fallback implementation of `Object.keys` which creates an array of the
	     * own enumerable property names of `object`.
	     *
	     * @private
	     * @param {Object} object The object to query.
	     * @returns {Array} Returns the array of property names.
	     */
	    function shimKeys(object) {
	      var props = keysIn(object),
	          propsLength = props.length,
	          length = propsLength && object.length;
	
	      var allowIndexes = !!length && isLength(length) && (isArray(object) || isArguments(object) || isString(object));
	
	      var index = -1,
	          result = [];
	
	      while (++index < propsLength) {
	        var key = props[index];
	        if (allowIndexes && isIndex(key, length) || hasOwnProperty.call(object, key)) {
	          result.push(key);
	        }
	      }
	      return result;
	    }
	
	    /**
	     * Converts `value` to an array-like object if it's not one.
	     *
	     * @private
	     * @param {*} value The value to process.
	     * @returns {Array|Object} Returns the array-like object.
	     */
	    function toIterable(value) {
	      if (value == null) {
	        return [];
	      }
	      if (!isArrayLike(value)) {
	        return values(value);
	      }
	      if (lodash.support.unindexedChars && isString(value)) {
	        return value.split('');
	      }
	      return isObject(value) ? value : Object(value);
	    }
	
	    /**
	     * Converts `value` to an object if it's not one.
	     *
	     * @private
	     * @param {*} value The value to process.
	     * @returns {Object} Returns the object.
	     */
	    function toObject(value) {
	      if (lodash.support.unindexedChars && isString(value)) {
	        var index = -1,
	            length = value.length,
	            result = Object(value);
	
	        while (++index < length) {
	          result[index] = value.charAt(index);
	        }
	        return result;
	      }
	      return isObject(value) ? value : Object(value);
	    }
	
	    /**
	     * Converts `value` to property path array if it's not one.
	     *
	     * @private
	     * @param {*} value The value to process.
	     * @returns {Array} Returns the property path array.
	     */
	    function toPath(value) {
	      if (isArray(value)) {
	        return value;
	      }
	      var result = [];
	      baseToString(value).replace(rePropName, function (match, number, quote, string) {
	        result.push(quote ? string.replace(reEscapeChar, '$1') : number || match);
	      });
	      return result;
	    }
	
	    /**
	     * Creates a clone of `wrapper`.
	     *
	     * @private
	     * @param {Object} wrapper The wrapper to clone.
	     * @returns {Object} Returns the cloned wrapper.
	     */
	    function wrapperClone(wrapper) {
	      return wrapper instanceof LazyWrapper ? wrapper.clone() : new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__, arrayCopy(wrapper.__actions__));
	    }
	
	    /*------------------------------------------------------------------------*/
	
	    /**
	     * Creates an array of elements split into groups the length of `size`.
	     * If `collection` can't be split evenly, the final chunk will be the remaining
	     * elements.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to process.
	     * @param {number} [size=1] The length of each chunk.
	     * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
	     * @returns {Array} Returns the new array containing chunks.
	     * @example
	     *
	     * _.chunk(['a', 'b', 'c', 'd'], 2);
	     * // => [['a', 'b'], ['c', 'd']]
	     *
	     * _.chunk(['a', 'b', 'c', 'd'], 3);
	     * // => [['a', 'b', 'c'], ['d']]
	     */
	    function chunk(array, size, guard) {
	      if (guard ? isIterateeCall(array, size, guard) : size == null) {
	        size = 1;
	      } else {
	        size = nativeMax(nativeFloor(size) || 1, 1);
	      }
	      var index = 0,
	          length = array ? array.length : 0,
	          resIndex = -1,
	          result = Array(nativeCeil(length / size));
	
	      while (index < length) {
	        result[++resIndex] = baseSlice(array, index, index += size);
	      }
	      return result;
	    }
	
	    /**
	     * Creates an array with all falsey values removed. The values `false`, `null`,
	     * `0`, `""`, `undefined`, and `NaN` are falsey.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to compact.
	     * @returns {Array} Returns the new array of filtered values.
	     * @example
	     *
	     * _.compact([0, 1, false, 2, '', 3]);
	     * // => [1, 2, 3]
	     */
	    function compact(array) {
	      var index = -1,
	          length = array ? array.length : 0,
	          resIndex = -1,
	          result = [];
	
	      while (++index < length) {
	        var value = array[index];
	        if (value) {
	          result[++resIndex] = value;
	        }
	      }
	      return result;
	    }
	
	    /**
	     * Creates an array of unique `array` values not included in the other
	     * provided arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
	     * for equality comparisons.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to inspect.
	     * @param {...Array} [values] The arrays of values to exclude.
	     * @returns {Array} Returns the new array of filtered values.
	     * @example
	     *
	     * _.difference([1, 2, 3], [4, 2]);
	     * // => [1, 3]
	     */
	    var difference = restParam(function (array, values) {
	      return isObjectLike(array) && isArrayLike(array) ? baseDifference(array, baseFlatten(values, false, true)) : [];
	    });
	
	    /**
	     * Creates a slice of `array` with `n` elements dropped from the beginning.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to query.
	     * @param {number} [n=1] The number of elements to drop.
	     * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
	     * @returns {Array} Returns the slice of `array`.
	     * @example
	     *
	     * _.drop([1, 2, 3]);
	     * // => [2, 3]
	     *
	     * _.drop([1, 2, 3], 2);
	     * // => [3]
	     *
	     * _.drop([1, 2, 3], 5);
	     * // => []
	     *
	     * _.drop([1, 2, 3], 0);
	     * // => [1, 2, 3]
	     */
	    function drop(array, n, guard) {
	      var length = array ? array.length : 0;
	      if (!length) {
	        return [];
	      }
	      if (guard ? isIterateeCall(array, n, guard) : n == null) {
	        n = 1;
	      }
	      return baseSlice(array, n < 0 ? 0 : n);
	    }
	
	    /**
	     * Creates a slice of `array` with `n` elements dropped from the end.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to query.
	     * @param {number} [n=1] The number of elements to drop.
	     * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
	     * @returns {Array} Returns the slice of `array`.
	     * @example
	     *
	     * _.dropRight([1, 2, 3]);
	     * // => [1, 2]
	     *
	     * _.dropRight([1, 2, 3], 2);
	     * // => [1]
	     *
	     * _.dropRight([1, 2, 3], 5);
	     * // => []
	     *
	     * _.dropRight([1, 2, 3], 0);
	     * // => [1, 2, 3]
	     */
	    function dropRight(array, n, guard) {
	      var length = array ? array.length : 0;
	      if (!length) {
	        return [];
	      }
	      if (guard ? isIterateeCall(array, n, guard) : n == null) {
	        n = 1;
	      }
	      n = length - (+n || 0);
	      return baseSlice(array, 0, n < 0 ? 0 : n);
	    }
	
	    /**
	     * Creates a slice of `array` excluding elements dropped from the end.
	     * Elements are dropped until `predicate` returns falsey. The predicate is
	     * bound to `thisArg` and invoked with three arguments: (value, index, array).
	     *
	     * If a property name is provided for `predicate` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `predicate` the created `_.matches` style
	     * callback returns `true` for elements that match the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to query.
	     * @param {Function|Object|string} [predicate=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `predicate`.
	     * @returns {Array} Returns the slice of `array`.
	     * @example
	     *
	     * _.dropRightWhile([1, 2, 3], function(n) {
	     *   return n > 1;
	     * });
	     * // => [1]
	     *
	     * var users = [
	     *   { 'user': 'barney',  'active': true },
	     *   { 'user': 'fred',    'active': false },
	     *   { 'user': 'pebbles', 'active': false }
	     * ];
	     *
	     * // using the `_.matches` callback shorthand
	     * _.pluck(_.dropRightWhile(users, { 'user': 'pebbles', 'active': false }), 'user');
	     * // => ['barney', 'fred']
	     *
	     * // using the `_.matchesProperty` callback shorthand
	     * _.pluck(_.dropRightWhile(users, 'active', false), 'user');
	     * // => ['barney']
	     *
	     * // using the `_.property` callback shorthand
	     * _.pluck(_.dropRightWhile(users, 'active'), 'user');
	     * // => ['barney', 'fred', 'pebbles']
	     */
	    function dropRightWhile(array, predicate, thisArg) {
	      return array && array.length ? baseWhile(array, getCallback(predicate, thisArg, 3), true, true) : [];
	    }
	
	    /**
	     * Creates a slice of `array` excluding elements dropped from the beginning.
	     * Elements are dropped until `predicate` returns falsey. The predicate is
	     * bound to `thisArg` and invoked with three arguments: (value, index, array).
	     *
	     * If a property name is provided for `predicate` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `predicate` the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to query.
	     * @param {Function|Object|string} [predicate=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `predicate`.
	     * @returns {Array} Returns the slice of `array`.
	     * @example
	     *
	     * _.dropWhile([1, 2, 3], function(n) {
	     *   return n < 3;
	     * });
	     * // => [3]
	     *
	     * var users = [
	     *   { 'user': 'barney',  'active': false },
	     *   { 'user': 'fred',    'active': false },
	     *   { 'user': 'pebbles', 'active': true }
	     * ];
	     *
	     * // using the `_.matches` callback shorthand
	     * _.pluck(_.dropWhile(users, { 'user': 'barney', 'active': false }), 'user');
	     * // => ['fred', 'pebbles']
	     *
	     * // using the `_.matchesProperty` callback shorthand
	     * _.pluck(_.dropWhile(users, 'active', false), 'user');
	     * // => ['pebbles']
	     *
	     * // using the `_.property` callback shorthand
	     * _.pluck(_.dropWhile(users, 'active'), 'user');
	     * // => ['barney', 'fred', 'pebbles']
	     */
	    function dropWhile(array, predicate, thisArg) {
	      return array && array.length ? baseWhile(array, getCallback(predicate, thisArg, 3), true) : [];
	    }
	
	    /**
	     * Fills elements of `array` with `value` from `start` up to, but not
	     * including, `end`.
	     *
	     * **Note:** This method mutates `array`.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to fill.
	     * @param {*} value The value to fill `array` with.
	     * @param {number} [start=0] The start position.
	     * @param {number} [end=array.length] The end position.
	     * @returns {Array} Returns `array`.
	     * @example
	     *
	     * var array = [1, 2, 3];
	     *
	     * _.fill(array, 'a');
	     * console.log(array);
	     * // => ['a', 'a', 'a']
	     *
	     * _.fill(Array(3), 2);
	     * // => [2, 2, 2]
	     *
	     * _.fill([4, 6, 8], '*', 1, 2);
	     * // => [4, '*', 8]
	     */
	    function fill(array, value, start, end) {
	      var length = array ? array.length : 0;
	      if (!length) {
	        return [];
	      }
	      if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {
	        start = 0;
	        end = length;
	      }
	      return baseFill(array, value, start, end);
	    }
	
	    /**
	     * This method is like `_.find` except that it returns the index of the first
	     * element `predicate` returns truthy for instead of the element itself.
	     *
	     * If a property name is provided for `predicate` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `predicate` the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to search.
	     * @param {Function|Object|string} [predicate=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `predicate`.
	     * @returns {number} Returns the index of the found element, else `-1`.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney',  'active': false },
	     *   { 'user': 'fred',    'active': false },
	     *   { 'user': 'pebbles', 'active': true }
	     * ];
	     *
	     * _.findIndex(users, function(chr) {
	     *   return chr.user == 'barney';
	     * });
	     * // => 0
	     *
	     * // using the `_.matches` callback shorthand
	     * _.findIndex(users, { 'user': 'fred', 'active': false });
	     * // => 1
	     *
	     * // using the `_.matchesProperty` callback shorthand
	     * _.findIndex(users, 'active', false);
	     * // => 0
	     *
	     * // using the `_.property` callback shorthand
	     * _.findIndex(users, 'active');
	     * // => 2
	     */
	    var findIndex = createFindIndex();
	
	    /**
	     * This method is like `_.findIndex` except that it iterates over elements
	     * of `collection` from right to left.
	     *
	     * If a property name is provided for `predicate` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `predicate` the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to search.
	     * @param {Function|Object|string} [predicate=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `predicate`.
	     * @returns {number} Returns the index of the found element, else `-1`.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney',  'active': true },
	     *   { 'user': 'fred',    'active': false },
	     *   { 'user': 'pebbles', 'active': false }
	     * ];
	     *
	     * _.findLastIndex(users, function(chr) {
	     *   return chr.user == 'pebbles';
	     * });
	     * // => 2
	     *
	     * // using the `_.matches` callback shorthand
	     * _.findLastIndex(users, { 'user': 'barney', 'active': true });
	     * // => 0
	     *
	     * // using the `_.matchesProperty` callback shorthand
	     * _.findLastIndex(users, 'active', false);
	     * // => 2
	     *
	     * // using the `_.property` callback shorthand
	     * _.findLastIndex(users, 'active');
	     * // => 0
	     */
	    var findLastIndex = createFindIndex(true);
	
	    /**
	     * Gets the first element of `array`.
	     *
	     * @static
	     * @memberOf _
	     * @alias head
	     * @category Array
	     * @param {Array} array The array to query.
	     * @returns {*} Returns the first element of `array`.
	     * @example
	     *
	     * _.first([1, 2, 3]);
	     * // => 1
	     *
	     * _.first([]);
	     * // => undefined
	     */
	    function first(array) {
	      return array ? array[0] : undefined;
	    }
	
	    /**
	     * Flattens a nested array. If `isDeep` is `true` the array is recursively
	     * flattened, otherwise it's only flattened a single level.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to flatten.
	     * @param {boolean} [isDeep] Specify a deep flatten.
	     * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
	     * @returns {Array} Returns the new flattened array.
	     * @example
	     *
	     * _.flatten([1, [2, 3, [4]]]);
	     * // => [1, 2, 3, [4]]
	     *
	     * // using `isDeep`
	     * _.flatten([1, [2, 3, [4]]], true);
	     * // => [1, 2, 3, 4]
	     */
	    function flatten(array, isDeep, guard) {
	      var length = array ? array.length : 0;
	      if (guard && isIterateeCall(array, isDeep, guard)) {
	        isDeep = false;
	      }
	      return length ? baseFlatten(array, isDeep) : [];
	    }
	
	    /**
	     * Recursively flattens a nested array.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to recursively flatten.
	     * @returns {Array} Returns the new flattened array.
	     * @example
	     *
	     * _.flattenDeep([1, [2, 3, [4]]]);
	     * // => [1, 2, 3, 4]
	     */
	    function flattenDeep(array) {
	      var length = array ? array.length : 0;
	      return length ? baseFlatten(array, true) : [];
	    }
	
	    /**
	     * Gets the index at which the first occurrence of `value` is found in `array`
	     * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
	     * for equality comparisons. If `fromIndex` is negative, it's used as the offset
	     * from the end of `array`. If `array` is sorted providing `true` for `fromIndex`
	     * performs a faster binary search.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to search.
	     * @param {*} value The value to search for.
	     * @param {boolean|number} [fromIndex=0] The index to search from or `true`
	     *  to perform a binary search on a sorted array.
	     * @returns {number} Returns the index of the matched value, else `-1`.
	     * @example
	     *
	     * _.indexOf([1, 2, 1, 2], 2);
	     * // => 1
	     *
	     * // using `fromIndex`
	     * _.indexOf([1, 2, 1, 2], 2, 2);
	     * // => 3
	     *
	     * // performing a binary search
	     * _.indexOf([1, 1, 2, 2], 2, true);
	     * // => 2
	     */
	    function indexOf(array, value, fromIndex) {
	      var length = array ? array.length : 0;
	      if (!length) {
	        return -1;
	      }
	      if (typeof fromIndex == 'number') {
	        fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : fromIndex;
	      } else if (fromIndex) {
	        var index = binaryIndex(array, value);
	        if (index < length && (value === value ? value === array[index] : array[index] !== array[index])) {
	          return index;
	        }
	        return -1;
	      }
	      return baseIndexOf(array, value, fromIndex || 0);
	    }
	
	    /**
	     * Gets all but the last element of `array`.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to query.
	     * @returns {Array} Returns the slice of `array`.
	     * @example
	     *
	     * _.initial([1, 2, 3]);
	     * // => [1, 2]
	     */
	    function initial(array) {
	      return dropRight(array, 1);
	    }
	
	    /**
	     * Creates an array of unique values that are included in all of the provided
	     * arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
	     * for equality comparisons.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {...Array} [arrays] The arrays to inspect.
	     * @returns {Array} Returns the new array of shared values.
	     * @example
	     * _.intersection([1, 2], [4, 2], [2, 1]);
	     * // => [2]
	     */
	    var intersection = restParam(function (arrays) {
	      var othLength = arrays.length,
	          othIndex = othLength,
	          caches = Array(length),
	          indexOf = getIndexOf(),
	          isCommon = indexOf === baseIndexOf,
	          result = [];
	
	      while (othIndex--) {
	        var value = arrays[othIndex] = isArrayLike(value = arrays[othIndex]) ? value : [];
	        caches[othIndex] = isCommon && value.length >= 120 ? createCache(othIndex && value) : null;
	      }
	      var array = arrays[0],
	          index = -1,
	          length = array ? array.length : 0,
	          seen = caches[0];
	
	      outer: while (++index < length) {
	        value = array[index];
	        if ((seen ? cacheIndexOf(seen, value) : indexOf(result, value, 0)) < 0) {
	          var othIndex = othLength;
	          while (--othIndex) {
	            var cache = caches[othIndex];
	            if ((cache ? cacheIndexOf(cache, value) : indexOf(arrays[othIndex], value, 0)) < 0) {
	              continue outer;
	            }
	          }
	          if (seen) {
	            seen.push(value);
	          }
	          result.push(value);
	        }
	      }
	      return result;
	    });
	
	    /**
	     * Gets the last element of `array`.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to query.
	     * @returns {*} Returns the last element of `array`.
	     * @example
	     *
	     * _.last([1, 2, 3]);
	     * // => 3
	     */
	    function last(array) {
	      var length = array ? array.length : 0;
	      return length ? array[length - 1] : undefined;
	    }
	
	    /**
	     * This method is like `_.indexOf` except that it iterates over elements of
	     * `array` from right to left.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to search.
	     * @param {*} value The value to search for.
	     * @param {boolean|number} [fromIndex=array.length-1] The index to search from
	     *  or `true` to perform a binary search on a sorted array.
	     * @returns {number} Returns the index of the matched value, else `-1`.
	     * @example
	     *
	     * _.lastIndexOf([1, 2, 1, 2], 2);
	     * // => 3
	     *
	     * // using `fromIndex`
	     * _.lastIndexOf([1, 2, 1, 2], 2, 2);
	     * // => 1
	     *
	     * // performing a binary search
	     * _.lastIndexOf([1, 1, 2, 2], 2, true);
	     * // => 3
	     */
	    function lastIndexOf(array, value, fromIndex) {
	      var length = array ? array.length : 0;
	      if (!length) {
	        return -1;
	      }
	      var index = length;
	      if (typeof fromIndex == 'number') {
	        index = (fromIndex < 0 ? nativeMax(length + fromIndex, 0) : nativeMin(fromIndex || 0, length - 1)) + 1;
	      } else if (fromIndex) {
	        index = binaryIndex(array, value, true) - 1;
	        var other = array[index];
	        if (value === value ? value === other : other !== other) {
	          return index;
	        }
	        return -1;
	      }
	      if (value !== value) {
	        return indexOfNaN(array, index, true);
	      }
	      while (index--) {
	        if (array[index] === value) {
	          return index;
	        }
	      }
	      return -1;
	    }
	
	    /**
	     * Removes all provided values from `array` using
	     * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
	     * for equality comparisons.
	     *
	     * **Note:** Unlike `_.without`, this method mutates `array`.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to modify.
	     * @param {...*} [values] The values to remove.
	     * @returns {Array} Returns `array`.
	     * @example
	     *
	     * var array = [1, 2, 3, 1, 2, 3];
	     *
	     * _.pull(array, 2, 3);
	     * console.log(array);
	     * // => [1, 1]
	     */
	    function pull() {
	      var args = arguments,
	          array = args[0];
	
	      if (!(array && array.length)) {
	        return array;
	      }
	      var index = 0,
	          indexOf = getIndexOf(),
	          length = args.length;
	
	      while (++index < length) {
	        var fromIndex = 0,
	            value = args[index];
	
	        while ((fromIndex = indexOf(array, value, fromIndex)) > -1) {
	          splice.call(array, fromIndex, 1);
	        }
	      }
	      return array;
	    }
	
	    /**
	     * Removes elements from `array` corresponding to the given indexes and returns
	     * an array of the removed elements. Indexes may be specified as an array of
	     * indexes or as individual arguments.
	     *
	     * **Note:** Unlike `_.at`, this method mutates `array`.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to modify.
	     * @param {...(number|number[])} [indexes] The indexes of elements to remove,
	     *  specified as individual indexes or arrays of indexes.
	     * @returns {Array} Returns the new array of removed elements.
	     * @example
	     *
	     * var array = [5, 10, 15, 20];
	     * var evens = _.pullAt(array, 1, 3);
	     *
	     * console.log(array);
	     * // => [5, 15]
	     *
	     * console.log(evens);
	     * // => [10, 20]
	     */
	    var pullAt = restParam(function (array, indexes) {
	      indexes = baseFlatten(indexes);
	
	      var result = baseAt(array, indexes);
	      basePullAt(array, indexes.sort(baseCompareAscending));
	      return result;
	    });
	
	    /**
	     * Removes all elements from `array` that `predicate` returns truthy for
	     * and returns an array of the removed elements. The predicate is bound to
	     * `thisArg` and invoked with three arguments: (value, index, array).
	     *
	     * If a property name is provided for `predicate` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `predicate` the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * **Note:** Unlike `_.filter`, this method mutates `array`.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to modify.
	     * @param {Function|Object|string} [predicate=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `predicate`.
	     * @returns {Array} Returns the new array of removed elements.
	     * @example
	     *
	     * var array = [1, 2, 3, 4];
	     * var evens = _.remove(array, function(n) {
	     *   return n % 2 == 0;
	     * });
	     *
	     * console.log(array);
	     * // => [1, 3]
	     *
	     * console.log(evens);
	     * // => [2, 4]
	     */
	    function remove(array, predicate, thisArg) {
	      var result = [];
	      if (!(array && array.length)) {
	        return result;
	      }
	      var index = -1,
	          indexes = [],
	          length = array.length;
	
	      predicate = getCallback(predicate, thisArg, 3);
	      while (++index < length) {
	        var value = array[index];
	        if (predicate(value, index, array)) {
	          result.push(value);
	          indexes.push(index);
	        }
	      }
	      basePullAt(array, indexes);
	      return result;
	    }
	
	    /**
	     * Gets all but the first element of `array`.
	     *
	     * @static
	     * @memberOf _
	     * @alias tail
	     * @category Array
	     * @param {Array} array The array to query.
	     * @returns {Array} Returns the slice of `array`.
	     * @example
	     *
	     * _.rest([1, 2, 3]);
	     * // => [2, 3]
	     */
	    function rest(array) {
	      return drop(array, 1);
	    }
	
	    /**
	     * Creates a slice of `array` from `start` up to, but not including, `end`.
	     *
	     * **Note:** This method is used instead of `Array#slice` to support node
	     * lists in IE < 9 and to ensure dense arrays are returned.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to slice.
	     * @param {number} [start=0] The start position.
	     * @param {number} [end=array.length] The end position.
	     * @returns {Array} Returns the slice of `array`.
	     */
	    function slice(array, start, end) {
	      var length = array ? array.length : 0;
	      if (!length) {
	        return [];
	      }
	      if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
	        start = 0;
	        end = length;
	      }
	      return baseSlice(array, start, end);
	    }
	
	    /**
	     * Uses a binary search to determine the lowest index at which `value` should
	     * be inserted into `array` in order to maintain its sort order. If an iteratee
	     * function is provided it's invoked for `value` and each element of `array`
	     * to compute their sort ranking. The iteratee is bound to `thisArg` and
	     * invoked with one argument; (value).
	     *
	     * If a property name is provided for `iteratee` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `iteratee` the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The sorted array to inspect.
	     * @param {*} value The value to evaluate.
	     * @param {Function|Object|string} [iteratee=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {number} Returns the index at which `value` should be inserted
	     *  into `array`.
	     * @example
	     *
	     * _.sortedIndex([30, 50], 40);
	     * // => 1
	     *
	     * _.sortedIndex([4, 4, 5, 5], 5);
	     * // => 2
	     *
	     * var dict = { 'data': { 'thirty': 30, 'forty': 40, 'fifty': 50 } };
	     *
	     * // using an iteratee function
	     * _.sortedIndex(['thirty', 'fifty'], 'forty', function(word) {
	     *   return this.data[word];
	     * }, dict);
	     * // => 1
	     *
	     * // using the `_.property` callback shorthand
	     * _.sortedIndex([{ 'x': 30 }, { 'x': 50 }], { 'x': 40 }, 'x');
	     * // => 1
	     */
	    var sortedIndex = createSortedIndex();
	
	    /**
	     * This method is like `_.sortedIndex` except that it returns the highest
	     * index at which `value` should be inserted into `array` in order to
	     * maintain its sort order.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The sorted array to inspect.
	     * @param {*} value The value to evaluate.
	     * @param {Function|Object|string} [iteratee=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {number} Returns the index at which `value` should be inserted
	     *  into `array`.
	     * @example
	     *
	     * _.sortedLastIndex([4, 4, 5, 5], 5);
	     * // => 4
	     */
	    var sortedLastIndex = createSortedIndex(true);
	
	    /**
	     * Creates a slice of `array` with `n` elements taken from the beginning.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to query.
	     * @param {number} [n=1] The number of elements to take.
	     * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
	     * @returns {Array} Returns the slice of `array`.
	     * @example
	     *
	     * _.take([1, 2, 3]);
	     * // => [1]
	     *
	     * _.take([1, 2, 3], 2);
	     * // => [1, 2]
	     *
	     * _.take([1, 2, 3], 5);
	     * // => [1, 2, 3]
	     *
	     * _.take([1, 2, 3], 0);
	     * // => []
	     */
	    function take(array, n, guard) {
	      var length = array ? array.length : 0;
	      if (!length) {
	        return [];
	      }
	      if (guard ? isIterateeCall(array, n, guard) : n == null) {
	        n = 1;
	      }
	      return baseSlice(array, 0, n < 0 ? 0 : n);
	    }
	
	    /**
	     * Creates a slice of `array` with `n` elements taken from the end.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to query.
	     * @param {number} [n=1] The number of elements to take.
	     * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
	     * @returns {Array} Returns the slice of `array`.
	     * @example
	     *
	     * _.takeRight([1, 2, 3]);
	     * // => [3]
	     *
	     * _.takeRight([1, 2, 3], 2);
	     * // => [2, 3]
	     *
	     * _.takeRight([1, 2, 3], 5);
	     * // => [1, 2, 3]
	     *
	     * _.takeRight([1, 2, 3], 0);
	     * // => []
	     */
	    function takeRight(array, n, guard) {
	      var length = array ? array.length : 0;
	      if (!length) {
	        return [];
	      }
	      if (guard ? isIterateeCall(array, n, guard) : n == null) {
	        n = 1;
	      }
	      n = length - (+n || 0);
	      return baseSlice(array, n < 0 ? 0 : n);
	    }
	
	    /**
	     * Creates a slice of `array` with elements taken from the end. Elements are
	     * taken until `predicate` returns falsey. The predicate is bound to `thisArg`
	     * and invoked with three arguments: (value, index, array).
	     *
	     * If a property name is provided for `predicate` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `predicate` the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to query.
	     * @param {Function|Object|string} [predicate=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `predicate`.
	     * @returns {Array} Returns the slice of `array`.
	     * @example
	     *
	     * _.takeRightWhile([1, 2, 3], function(n) {
	     *   return n > 1;
	     * });
	     * // => [2, 3]
	     *
	     * var users = [
	     *   { 'user': 'barney',  'active': true },
	     *   { 'user': 'fred',    'active': false },
	     *   { 'user': 'pebbles', 'active': false }
	     * ];
	     *
	     * // using the `_.matches` callback shorthand
	     * _.pluck(_.takeRightWhile(users, { 'user': 'pebbles', 'active': false }), 'user');
	     * // => ['pebbles']
	     *
	     * // using the `_.matchesProperty` callback shorthand
	     * _.pluck(_.takeRightWhile(users, 'active', false), 'user');
	     * // => ['fred', 'pebbles']
	     *
	     * // using the `_.property` callback shorthand
	     * _.pluck(_.takeRightWhile(users, 'active'), 'user');
	     * // => []
	     */
	    function takeRightWhile(array, predicate, thisArg) {
	      return array && array.length ? baseWhile(array, getCallback(predicate, thisArg, 3), false, true) : [];
	    }
	
	    /**
	     * Creates a slice of `array` with elements taken from the beginning. Elements
	     * are taken until `predicate` returns falsey. The predicate is bound to
	     * `thisArg` and invoked with three arguments: (value, index, array).
	     *
	     * If a property name is provided for `predicate` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `predicate` the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to query.
	     * @param {Function|Object|string} [predicate=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `predicate`.
	     * @returns {Array} Returns the slice of `array`.
	     * @example
	     *
	     * _.takeWhile([1, 2, 3], function(n) {
	     *   return n < 3;
	     * });
	     * // => [1, 2]
	     *
	     * var users = [
	     *   { 'user': 'barney',  'active': false },
	     *   { 'user': 'fred',    'active': false},
	     *   { 'user': 'pebbles', 'active': true }
	     * ];
	     *
	     * // using the `_.matches` callback shorthand
	     * _.pluck(_.takeWhile(users, { 'user': 'barney', 'active': false }), 'user');
	     * // => ['barney']
	     *
	     * // using the `_.matchesProperty` callback shorthand
	     * _.pluck(_.takeWhile(users, 'active', false), 'user');
	     * // => ['barney', 'fred']
	     *
	     * // using the `_.property` callback shorthand
	     * _.pluck(_.takeWhile(users, 'active'), 'user');
	     * // => []
	     */
	    function takeWhile(array, predicate, thisArg) {
	      return array && array.length ? baseWhile(array, getCallback(predicate, thisArg, 3)) : [];
	    }
	
	    /**
	     * Creates an array of unique values, in order, from all of the provided arrays
	     * using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
	     * for equality comparisons.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {...Array} [arrays] The arrays to inspect.
	     * @returns {Array} Returns the new array of combined values.
	     * @example
	     *
	     * _.union([1, 2], [4, 2], [2, 1]);
	     * // => [1, 2, 4]
	     */
	    var union = restParam(function (arrays) {
	      return baseUniq(baseFlatten(arrays, false, true));
	    });
	
	    /**
	     * Creates a duplicate-free version of an array, using
	     * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
	     * for equality comparisons, in which only the first occurence of each element
	     * is kept. Providing `true` for `isSorted` performs a faster search algorithm
	     * for sorted arrays. If an iteratee function is provided it's invoked for
	     * each element in the array to generate the criterion by which uniqueness
	     * is computed. The `iteratee` is bound to `thisArg` and invoked with three
	     * arguments: (value, index, array).
	     *
	     * If a property name is provided for `iteratee` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `iteratee` the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @alias unique
	     * @category Array
	     * @param {Array} array The array to inspect.
	     * @param {boolean} [isSorted] Specify the array is sorted.
	     * @param {Function|Object|string} [iteratee] The function invoked per iteration.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {Array} Returns the new duplicate-value-free array.
	     * @example
	     *
	     * _.uniq([2, 1, 2]);
	     * // => [2, 1]
	     *
	     * // using `isSorted`
	     * _.uniq([1, 1, 2], true);
	     * // => [1, 2]
	     *
	     * // using an iteratee function
	     * _.uniq([1, 2.5, 1.5, 2], function(n) {
	     *   return this.floor(n);
	     * }, Math);
	     * // => [1, 2.5]
	     *
	     * // using the `_.property` callback shorthand
	     * _.uniq([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
	     * // => [{ 'x': 1 }, { 'x': 2 }]
	     */
	    function uniq(array, isSorted, iteratee, thisArg) {
	      var length = array ? array.length : 0;
	      if (!length) {
	        return [];
	      }
	      if (isSorted != null && typeof isSorted != 'boolean') {
	        thisArg = iteratee;
	        iteratee = isIterateeCall(array, isSorted, thisArg) ? undefined : isSorted;
	        isSorted = false;
	      }
	      var callback = getCallback();
	      if (!(iteratee == null && callback === baseCallback)) {
	        iteratee = callback(iteratee, thisArg, 3);
	      }
	      return isSorted && getIndexOf() === baseIndexOf ? sortedUniq(array, iteratee) : baseUniq(array, iteratee);
	    }
	
	    /**
	     * This method is like `_.zip` except that it accepts an array of grouped
	     * elements and creates an array regrouping the elements to their pre-zip
	     * configuration.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array of grouped elements to process.
	     * @returns {Array} Returns the new array of regrouped elements.
	     * @example
	     *
	     * var zipped = _.zip(['fred', 'barney'], [30, 40], [true, false]);
	     * // => [['fred', 30, true], ['barney', 40, false]]
	     *
	     * _.unzip(zipped);
	     * // => [['fred', 'barney'], [30, 40], [true, false]]
	     */
	    function unzip(array) {
	      if (!(array && array.length)) {
	        return [];
	      }
	      var index = -1,
	          length = 0;
	
	      array = arrayFilter(array, function (group) {
	        if (isArrayLike(group)) {
	          length = nativeMax(group.length, length);
	          return true;
	        }
	      });
	      var result = Array(length);
	      while (++index < length) {
	        result[index] = arrayMap(array, baseProperty(index));
	      }
	      return result;
	    }
	
	    /**
	     * This method is like `_.unzip` except that it accepts an iteratee to specify
	     * how regrouped values should be combined. The `iteratee` is bound to `thisArg`
	     * and invoked with four arguments: (accumulator, value, index, group).
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array of grouped elements to process.
	     * @param {Function} [iteratee] The function to combine regrouped values.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {Array} Returns the new array of regrouped elements.
	     * @example
	     *
	     * var zipped = _.zip([1, 2], [10, 20], [100, 200]);
	     * // => [[1, 10, 100], [2, 20, 200]]
	     *
	     * _.unzipWith(zipped, _.add);
	     * // => [3, 30, 300]
	     */
	    function unzipWith(array, iteratee, thisArg) {
	      var length = array ? array.length : 0;
	      if (!length) {
	        return [];
	      }
	      var result = unzip(array);
	      if (iteratee == null) {
	        return result;
	      }
	      iteratee = bindCallback(iteratee, thisArg, 4);
	      return arrayMap(result, function (group) {
	        return arrayReduce(group, iteratee, undefined, true);
	      });
	    }
	
	    /**
	     * Creates an array excluding all provided values using
	     * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
	     * for equality comparisons.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {Array} array The array to filter.
	     * @param {...*} [values] The values to exclude.
	     * @returns {Array} Returns the new array of filtered values.
	     * @example
	     *
	     * _.without([1, 2, 1, 3], 1, 2);
	     * // => [3]
	     */
	    var without = restParam(function (array, values) {
	      return isArrayLike(array) ? baseDifference(array, values) : [];
	    });
	
	    /**
	     * Creates an array of unique values that is the [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
	     * of the provided arrays.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {...Array} [arrays] The arrays to inspect.
	     * @returns {Array} Returns the new array of values.
	     * @example
	     *
	     * _.xor([1, 2], [4, 2]);
	     * // => [1, 4]
	     */
	    function xor() {
	      var index = -1,
	          length = arguments.length;
	
	      while (++index < length) {
	        var array = arguments[index];
	        if (isArrayLike(array)) {
	          var result = result ? arrayPush(baseDifference(result, array), baseDifference(array, result)) : array;
	        }
	      }
	      return result ? baseUniq(result) : [];
	    }
	
	    /**
	     * Creates an array of grouped elements, the first of which contains the first
	     * elements of the given arrays, the second of which contains the second elements
	     * of the given arrays, and so on.
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {...Array} [arrays] The arrays to process.
	     * @returns {Array} Returns the new array of grouped elements.
	     * @example
	     *
	     * _.zip(['fred', 'barney'], [30, 40], [true, false]);
	     * // => [['fred', 30, true], ['barney', 40, false]]
	     */
	    var zip = restParam(unzip);
	
	    /**
	     * The inverse of `_.pairs`; this method returns an object composed from arrays
	     * of property names and values. Provide either a single two dimensional array,
	     * e.g. `[[key1, value1], [key2, value2]]` or two arrays, one of property names
	     * and one of corresponding values.
	     *
	     * @static
	     * @memberOf _
	     * @alias object
	     * @category Array
	     * @param {Array} props The property names.
	     * @param {Array} [values=[]] The property values.
	     * @returns {Object} Returns the new object.
	     * @example
	     *
	     * _.zipObject([['fred', 30], ['barney', 40]]);
	     * // => { 'fred': 30, 'barney': 40 }
	     *
	     * _.zipObject(['fred', 'barney'], [30, 40]);
	     * // => { 'fred': 30, 'barney': 40 }
	     */
	    function zipObject(props, values) {
	      var index = -1,
	          length = props ? props.length : 0,
	          result = {};
	
	      if (length && !values && !isArray(props[0])) {
	        values = [];
	      }
	      while (++index < length) {
	        var key = props[index];
	        if (values) {
	          result[key] = values[index];
	        } else if (key) {
	          result[key[0]] = key[1];
	        }
	      }
	      return result;
	    }
	
	    /**
	     * This method is like `_.zip` except that it accepts an iteratee to specify
	     * how grouped values should be combined. The `iteratee` is bound to `thisArg`
	     * and invoked with four arguments: (accumulator, value, index, group).
	     *
	     * @static
	     * @memberOf _
	     * @category Array
	     * @param {...Array} [arrays] The arrays to process.
	     * @param {Function} [iteratee] The function to combine grouped values.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {Array} Returns the new array of grouped elements.
	     * @example
	     *
	     * _.zipWith([1, 2], [10, 20], [100, 200], _.add);
	     * // => [111, 222]
	     */
	    var zipWith = restParam(function (arrays) {
	      var length = arrays.length,
	          iteratee = length > 2 ? arrays[length - 2] : undefined,
	          thisArg = length > 1 ? arrays[length - 1] : undefined;
	
	      if (length > 2 && typeof iteratee == 'function') {
	        length -= 2;
	      } else {
	        iteratee = length > 1 && typeof thisArg == 'function' ? (--length, thisArg) : undefined;
	        thisArg = undefined;
	      }
	      arrays.length = length;
	      return unzipWith(arrays, iteratee, thisArg);
	    });
	
	    /*------------------------------------------------------------------------*/
	
	    /**
	     * Creates a `lodash` object that wraps `value` with explicit method
	     * chaining enabled.
	     *
	     * @static
	     * @memberOf _
	     * @category Chain
	     * @param {*} value The value to wrap.
	     * @returns {Object} Returns the new `lodash` wrapper instance.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney',  'age': 36 },
	     *   { 'user': 'fred',    'age': 40 },
	     *   { 'user': 'pebbles', 'age': 1 }
	     * ];
	     *
	     * var youngest = _.chain(users)
	     *   .sortBy('age')
	     *   .map(function(chr) {
	     *     return chr.user + ' is ' + chr.age;
	     *   })
	     *   .first()
	     *   .value();
	     * // => 'pebbles is 1'
	     */
	    function chain(value) {
	      var result = lodash(value);
	      result.__chain__ = true;
	      return result;
	    }
	
	    /**
	     * This method invokes `interceptor` and returns `value`. The interceptor is
	     * bound to `thisArg` and invoked with one argument; (value). The purpose of
	     * this method is to "tap into" a method chain in order to perform operations
	     * on intermediate results within the chain.
	     *
	     * @static
	     * @memberOf _
	     * @category Chain
	     * @param {*} value The value to provide to `interceptor`.
	     * @param {Function} interceptor The function to invoke.
	     * @param {*} [thisArg] The `this` binding of `interceptor`.
	     * @returns {*} Returns `value`.
	     * @example
	     *
	     * _([1, 2, 3])
	     *  .tap(function(array) {
	     *    array.pop();
	     *  })
	     *  .reverse()
	     *  .value();
	     * // => [2, 1]
	     */
	    function tap(value, interceptor, thisArg) {
	      interceptor.call(thisArg, value);
	      return value;
	    }
	
	    /**
	     * This method is like `_.tap` except that it returns the result of `interceptor`.
	     *
	     * @static
	     * @memberOf _
	     * @category Chain
	     * @param {*} value The value to provide to `interceptor`.
	     * @param {Function} interceptor The function to invoke.
	     * @param {*} [thisArg] The `this` binding of `interceptor`.
	     * @returns {*} Returns the result of `interceptor`.
	     * @example
	     *
	     * _('  abc  ')
	     *  .chain()
	     *  .trim()
	     *  .thru(function(value) {
	     *    return [value];
	     *  })
	     *  .value();
	     * // => ['abc']
	     */
	    function thru(value, interceptor, thisArg) {
	      return interceptor.call(thisArg, value);
	    }
	
	    /**
	     * Enables explicit method chaining on the wrapper object.
	     *
	     * @name chain
	     * @memberOf _
	     * @category Chain
	     * @returns {Object} Returns the new `lodash` wrapper instance.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney', 'age': 36 },
	     *   { 'user': 'fred',   'age': 40 }
	     * ];
	     *
	     * // without explicit chaining
	     * _(users).first();
	     * // => { 'user': 'barney', 'age': 36 }
	     *
	     * // with explicit chaining
	     * _(users).chain()
	     *   .first()
	     *   .pick('user')
	     *   .value();
	     * // => { 'user': 'barney' }
	     */
	    function wrapperChain() {
	      return chain(this);
	    }
	
	    /**
	     * Executes the chained sequence and returns the wrapped result.
	     *
	     * @name commit
	     * @memberOf _
	     * @category Chain
	     * @returns {Object} Returns the new `lodash` wrapper instance.
	     * @example
	     *
	     * var array = [1, 2];
	     * var wrapped = _(array).push(3);
	     *
	     * console.log(array);
	     * // => [1, 2]
	     *
	     * wrapped = wrapped.commit();
	     * console.log(array);
	     * // => [1, 2, 3]
	     *
	     * wrapped.last();
	     * // => 3
	     *
	     * console.log(array);
	     * // => [1, 2, 3]
	     */
	    function wrapperCommit() {
	      return new LodashWrapper(this.value(), this.__chain__);
	    }
	
	    /**
	     * Creates a new array joining a wrapped array with any additional arrays
	     * and/or values.
	     *
	     * @name concat
	     * @memberOf _
	     * @category Chain
	     * @param {...*} [values] The values to concatenate.
	     * @returns {Array} Returns the new concatenated array.
	     * @example
	     *
	     * var array = [1];
	     * var wrapped = _(array).concat(2, [3], [[4]]);
	     *
	     * console.log(wrapped.value());
	     * // => [1, 2, 3, [4]]
	     *
	     * console.log(array);
	     * // => [1]
	     */
	    var wrapperConcat = restParam(function (values) {
	      values = baseFlatten(values);
	      return this.thru(function (array) {
	        return arrayConcat(isArray(array) ? array : [toObject(array)], values);
	      });
	    });
	
	    /**
	     * Creates a clone of the chained sequence planting `value` as the wrapped value.
	     *
	     * @name plant
	     * @memberOf _
	     * @category Chain
	     * @returns {Object} Returns the new `lodash` wrapper instance.
	     * @example
	     *
	     * var array = [1, 2];
	     * var wrapped = _(array).map(function(value) {
	     *   return Math.pow(value, 2);
	     * });
	     *
	     * var other = [3, 4];
	     * var otherWrapped = wrapped.plant(other);
	     *
	     * otherWrapped.value();
	     * // => [9, 16]
	     *
	     * wrapped.value();
	     * // => [1, 4]
	     */
	    function wrapperPlant(value) {
	      var result,
	          parent = this;
	
	      while (parent instanceof baseLodash) {
	        var clone = wrapperClone(parent);
	        if (result) {
	          previous.__wrapped__ = clone;
	        } else {
	          result = clone;
	        }
	        var previous = clone;
	        parent = parent.__wrapped__;
	      }
	      previous.__wrapped__ = value;
	      return result;
	    }
	
	    /**
	     * Reverses the wrapped array so the first element becomes the last, the
	     * second element becomes the second to last, and so on.
	     *
	     * **Note:** This method mutates the wrapped array.
	     *
	     * @name reverse
	     * @memberOf _
	     * @category Chain
	     * @returns {Object} Returns the new reversed `lodash` wrapper instance.
	     * @example
	     *
	     * var array = [1, 2, 3];
	     *
	     * _(array).reverse().value()
	     * // => [3, 2, 1]
	     *
	     * console.log(array);
	     * // => [3, 2, 1]
	     */
	    function wrapperReverse() {
	      var value = this.__wrapped__;
	
	      var interceptor = function interceptor(value) {
	        return value.reverse();
	      };
	      if (value instanceof LazyWrapper) {
	        var wrapped = value;
	        if (this.__actions__.length) {
	          wrapped = new LazyWrapper(this);
	        }
	        wrapped = wrapped.reverse();
	        wrapped.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });
	        return new LodashWrapper(wrapped, this.__chain__);
	      }
	      return this.thru(interceptor);
	    }
	
	    /**
	     * Produces the result of coercing the unwrapped value to a string.
	     *
	     * @name toString
	     * @memberOf _
	     * @category Chain
	     * @returns {string} Returns the coerced string value.
	     * @example
	     *
	     * _([1, 2, 3]).toString();
	     * // => '1,2,3'
	     */
	    function wrapperToString() {
	      return this.value() + '';
	    }
	
	    /**
	     * Executes the chained sequence to extract the unwrapped value.
	     *
	     * @name value
	     * @memberOf _
	     * @alias run, toJSON, valueOf
	     * @category Chain
	     * @returns {*} Returns the resolved unwrapped value.
	     * @example
	     *
	     * _([1, 2, 3]).value();
	     * // => [1, 2, 3]
	     */
	    function wrapperValue() {
	      return baseWrapperValue(this.__wrapped__, this.__actions__);
	    }
	
	    /*------------------------------------------------------------------------*/
	
	    /**
	     * Creates an array of elements corresponding to the given keys, or indexes,
	     * of `collection`. Keys may be specified as individual arguments or as arrays
	     * of keys.
	     *
	     * @static
	     * @memberOf _
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {...(number|number[]|string|string[])} [props] The property names
	     *  or indexes of elements to pick, specified individually or in arrays.
	     * @returns {Array} Returns the new array of picked elements.
	     * @example
	     *
	     * _.at(['a', 'b', 'c'], [0, 2]);
	     * // => ['a', 'c']
	     *
	     * _.at(['barney', 'fred', 'pebbles'], 0, 2);
	     * // => ['barney', 'pebbles']
	     */
	    var at = restParam(function (collection, props) {
	      if (isArrayLike(collection)) {
	        collection = toIterable(collection);
	      }
	      return baseAt(collection, baseFlatten(props));
	    });
	
	    /**
	     * Creates an object composed of keys generated from the results of running
	     * each element of `collection` through `iteratee`. The corresponding value
	     * of each key is the number of times the key was returned by `iteratee`.
	     * The `iteratee` is bound to `thisArg` and invoked with three arguments:
	     * (value, index|key, collection).
	     *
	     * If a property name is provided for `iteratee` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `iteratee` the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function|Object|string} [iteratee=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {Object} Returns the composed aggregate object.
	     * @example
	     *
	     * _.countBy([4.3, 6.1, 6.4], function(n) {
	     *   return Math.floor(n);
	     * });
	     * // => { '4': 1, '6': 2 }
	     *
	     * _.countBy([4.3, 6.1, 6.4], function(n) {
	     *   return this.floor(n);
	     * }, Math);
	     * // => { '4': 1, '6': 2 }
	     *
	     * _.countBy(['one', 'two', 'three'], 'length');
	     * // => { '3': 2, '5': 1 }
	     */
	    var countBy = createAggregator(function (result, value, key) {
	      hasOwnProperty.call(result, key) ? ++result[key] : result[key] = 1;
	    });
	
	    /**
	     * Checks if `predicate` returns truthy for **all** elements of `collection`.
	     * The predicate is bound to `thisArg` and invoked with three arguments:
	     * (value, index|key, collection).
	     *
	     * If a property name is provided for `predicate` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `predicate` the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @alias all
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function|Object|string} [predicate=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `predicate`.
	     * @returns {boolean} Returns `true` if all elements pass the predicate check,
	     *  else `false`.
	     * @example
	     *
	     * _.every([true, 1, null, 'yes'], Boolean);
	     * // => false
	     *
	     * var users = [
	     *   { 'user': 'barney', 'active': false },
	     *   { 'user': 'fred',   'active': false }
	     * ];
	     *
	     * // using the `_.matches` callback shorthand
	     * _.every(users, { 'user': 'barney', 'active': false });
	     * // => false
	     *
	     * // using the `_.matchesProperty` callback shorthand
	     * _.every(users, 'active', false);
	     * // => true
	     *
	     * // using the `_.property` callback shorthand
	     * _.every(users, 'active');
	     * // => false
	     */
	    function every(collection, predicate, thisArg) {
	      var func = isArray(collection) ? arrayEvery : baseEvery;
	      if (thisArg && isIterateeCall(collection, predicate, thisArg)) {
	        predicate = undefined;
	      }
	      if (typeof predicate != 'function' || thisArg !== undefined) {
	        predicate = getCallback(predicate, thisArg, 3);
	      }
	      return func(collection, predicate);
	    }
	
	    /**
	     * Iterates over elements of `collection`, returning an array of all elements
	     * `predicate` returns truthy for. The predicate is bound to `thisArg` and
	     * invoked with three arguments: (value, index|key, collection).
	     *
	     * If a property name is provided for `predicate` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `predicate` the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @alias select
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function|Object|string} [predicate=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `predicate`.
	     * @returns {Array} Returns the new filtered array.
	     * @example
	     *
	     * _.filter([4, 5, 6], function(n) {
	     *   return n % 2 == 0;
	     * });
	     * // => [4, 6]
	     *
	     * var users = [
	     *   { 'user': 'barney', 'age': 36, 'active': true },
	     *   { 'user': 'fred',   'age': 40, 'active': false }
	     * ];
	     *
	     * // using the `_.matches` callback shorthand
	     * _.pluck(_.filter(users, { 'age': 36, 'active': true }), 'user');
	     * // => ['barney']
	     *
	     * // using the `_.matchesProperty` callback shorthand
	     * _.pluck(_.filter(users, 'active', false), 'user');
	     * // => ['fred']
	     *
	     * // using the `_.property` callback shorthand
	     * _.pluck(_.filter(users, 'active'), 'user');
	     * // => ['barney']
	     */
	    function filter(collection, predicate, thisArg) {
	      var func = isArray(collection) ? arrayFilter : baseFilter;
	      predicate = getCallback(predicate, thisArg, 3);
	      return func(collection, predicate);
	    }
	
	    /**
	     * Iterates over elements of `collection`, returning the first element
	     * `predicate` returns truthy for. The predicate is bound to `thisArg` and
	     * invoked with three arguments: (value, index|key, collection).
	     *
	     * If a property name is provided for `predicate` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `predicate` the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @alias detect
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to search.
	     * @param {Function|Object|string} [predicate=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `predicate`.
	     * @returns {*} Returns the matched element, else `undefined`.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney',  'age': 36, 'active': true },
	     *   { 'user': 'fred',    'age': 40, 'active': false },
	     *   { 'user': 'pebbles', 'age': 1,  'active': true }
	     * ];
	     *
	     * _.result(_.find(users, function(chr) {
	     *   return chr.age < 40;
	     * }), 'user');
	     * // => 'barney'
	     *
	     * // using the `_.matches` callback shorthand
	     * _.result(_.find(users, { 'age': 1, 'active': true }), 'user');
	     * // => 'pebbles'
	     *
	     * // using the `_.matchesProperty` callback shorthand
	     * _.result(_.find(users, 'active', false), 'user');
	     * // => 'fred'
	     *
	     * // using the `_.property` callback shorthand
	     * _.result(_.find(users, 'active'), 'user');
	     * // => 'barney'
	     */
	    var find = createFind(baseEach);
	
	    /**
	     * This method is like `_.find` except that it iterates over elements of
	     * `collection` from right to left.
	     *
	     * @static
	     * @memberOf _
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to search.
	     * @param {Function|Object|string} [predicate=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `predicate`.
	     * @returns {*} Returns the matched element, else `undefined`.
	     * @example
	     *
	     * _.findLast([1, 2, 3, 4], function(n) {
	     *   return n % 2 == 1;
	     * });
	     * // => 3
	     */
	    var findLast = createFind(baseEachRight, true);
	
	    /**
	     * Performs a deep comparison between each element in `collection` and the
	     * source object, returning the first element that has equivalent property
	     * values.
	     *
	     * **Note:** This method supports comparing arrays, booleans, `Date` objects,
	     * numbers, `Object` objects, regexes, and strings. Objects are compared by
	     * their own, not inherited, enumerable properties. For comparing a single
	     * own or inherited property value see `_.matchesProperty`.
	     *
	     * @static
	     * @memberOf _
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to search.
	     * @param {Object} source The object of property values to match.
	     * @returns {*} Returns the matched element, else `undefined`.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney', 'age': 36, 'active': true },
	     *   { 'user': 'fred',   'age': 40, 'active': false }
	     * ];
	     *
	     * _.result(_.findWhere(users, { 'age': 36, 'active': true }), 'user');
	     * // => 'barney'
	     *
	     * _.result(_.findWhere(users, { 'age': 40, 'active': false }), 'user');
	     * // => 'fred'
	     */
	    function findWhere(collection, source) {
	      return find(collection, baseMatches(source));
	    }
	
	    /**
	     * Iterates over elements of `collection` invoking `iteratee` for each element.
	     * The `iteratee` is bound to `thisArg` and invoked with three arguments:
	     * (value, index|key, collection). Iteratee functions may exit iteration early
	     * by explicitly returning `false`.
	     *
	     * **Note:** As with other "Collections" methods, objects with a "length" property
	     * are iterated like arrays. To avoid this behavior `_.forIn` or `_.forOwn`
	     * may be used for object iteration.
	     *
	     * @static
	     * @memberOf _
	     * @alias each
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {Array|Object|string} Returns `collection`.
	     * @example
	     *
	     * _([1, 2]).forEach(function(n) {
	     *   console.log(n);
	     * }).value();
	     * // => logs each value from left to right and returns the array
	     *
	     * _.forEach({ 'a': 1, 'b': 2 }, function(n, key) {
	     *   console.log(n, key);
	     * });
	     * // => logs each value-key pair and returns the object (iteration order is not guaranteed)
	     */
	    var forEach = createForEach(arrayEach, baseEach);
	
	    /**
	     * This method is like `_.forEach` except that it iterates over elements of
	     * `collection` from right to left.
	     *
	     * @static
	     * @memberOf _
	     * @alias eachRight
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {Array|Object|string} Returns `collection`.
	     * @example
	     *
	     * _([1, 2]).forEachRight(function(n) {
	     *   console.log(n);
	     * }).value();
	     * // => logs each value from right to left and returns the array
	     */
	    var forEachRight = createForEach(arrayEachRight, baseEachRight);
	
	    /**
	     * Creates an object composed of keys generated from the results of running
	     * each element of `collection` through `iteratee`. The corresponding value
	     * of each key is an array of the elements responsible for generating the key.
	     * The `iteratee` is bound to `thisArg` and invoked with three arguments:
	     * (value, index|key, collection).
	     *
	     * If a property name is provided for `iteratee` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `iteratee` the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function|Object|string} [iteratee=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {Object} Returns the composed aggregate object.
	     * @example
	     *
	     * _.groupBy([4.2, 6.1, 6.4], function(n) {
	     *   return Math.floor(n);
	     * });
	     * // => { '4': [4.2], '6': [6.1, 6.4] }
	     *
	     * _.groupBy([4.2, 6.1, 6.4], function(n) {
	     *   return this.floor(n);
	     * }, Math);
	     * // => { '4': [4.2], '6': [6.1, 6.4] }
	     *
	     * // using the `_.property` callback shorthand
	     * _.groupBy(['one', 'two', 'three'], 'length');
	     * // => { '3': ['one', 'two'], '5': ['three'] }
	     */
	    var groupBy = createAggregator(function (result, value, key) {
	      if (hasOwnProperty.call(result, key)) {
	        result[key].push(value);
	      } else {
	        result[key] = [value];
	      }
	    });
	
	    /**
	     * Checks if `target` is in `collection` using
	     * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
	     * for equality comparisons. If `fromIndex` is negative, it's used as the offset
	     * from the end of `collection`.
	     *
	     * @static
	     * @memberOf _
	     * @alias contains, include
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to search.
	     * @param {*} target The value to search for.
	     * @param {number} [fromIndex=0] The index to search from.
	     * @param- {Object} [guard] Enables use as a callback for functions like `_.reduce`.
	     * @returns {boolean} Returns `true` if a matching element is found, else `false`.
	     * @example
	     *
	     * _.includes([1, 2, 3], 1);
	     * // => true
	     *
	     * _.includes([1, 2, 3], 1, 2);
	     * // => false
	     *
	     * _.includes({ 'user': 'fred', 'age': 40 }, 'fred');
	     * // => true
	     *
	     * _.includes('pebbles', 'eb');
	     * // => true
	     */
	    function includes(collection, target, fromIndex, guard) {
	      var length = collection ? getLength(collection) : 0;
	      if (!isLength(length)) {
	        collection = values(collection);
	        length = collection.length;
	      }
	      if (typeof fromIndex != 'number' || guard && isIterateeCall(target, fromIndex, guard)) {
	        fromIndex = 0;
	      } else {
	        fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : fromIndex || 0;
	      }
	      return typeof collection == 'string' || !isArray(collection) && isString(collection) ? fromIndex <= length && collection.indexOf(target, fromIndex) > -1 : !!length && getIndexOf(collection, target, fromIndex) > -1;
	    }
	
	    /**
	     * Creates an object composed of keys generated from the results of running
	     * each element of `collection` through `iteratee`. The corresponding value
	     * of each key is the last element responsible for generating the key. The
	     * iteratee function is bound to `thisArg` and invoked with three arguments:
	     * (value, index|key, collection).
	     *
	     * If a property name is provided for `iteratee` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `iteratee` the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function|Object|string} [iteratee=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {Object} Returns the composed aggregate object.
	     * @example
	     *
	     * var keyData = [
	     *   { 'dir': 'left', 'code': 97 },
	     *   { 'dir': 'right', 'code': 100 }
	     * ];
	     *
	     * _.indexBy(keyData, 'dir');
	     * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
	     *
	     * _.indexBy(keyData, function(object) {
	     *   return String.fromCharCode(object.code);
	     * });
	     * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
	     *
	     * _.indexBy(keyData, function(object) {
	     *   return this.fromCharCode(object.code);
	     * }, String);
	     * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
	     */
	    var indexBy = createAggregator(function (result, value, key) {
	      result[key] = value;
	    });
	
	    /**
	     * Invokes the method at `path` of each element in `collection`, returning
	     * an array of the results of each invoked method. Any additional arguments
	     * are provided to each invoked method. If `methodName` is a function it's
	     * invoked for, and `this` bound to, each element in `collection`.
	     *
	     * @static
	     * @memberOf _
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Array|Function|string} path The path of the method to invoke or
	     *  the function invoked per iteration.
	     * @param {...*} [args] The arguments to invoke the method with.
	     * @returns {Array} Returns the array of results.
	     * @example
	     *
	     * _.invoke([[5, 1, 7], [3, 2, 1]], 'sort');
	     * // => [[1, 5, 7], [1, 2, 3]]
	     *
	     * _.invoke([123, 456], String.prototype.split, '');
	     * // => [['1', '2', '3'], ['4', '5', '6']]
	     */
	    var invoke = restParam(function (collection, path, args) {
	      var index = -1,
	          isFunc = typeof path == 'function',
	          isProp = isKey(path),
	          result = isArrayLike(collection) ? Array(collection.length) : [];
	
	      baseEach(collection, function (value) {
	        var func = isFunc ? path : isProp && value != null ? value[path] : undefined;
	        result[++index] = func ? func.apply(value, args) : invokePath(value, path, args);
	      });
	      return result;
	    });
	
	    /**
	     * Creates an array of values by running each element in `collection` through
	     * `iteratee`. The `iteratee` is bound to `thisArg` and invoked with three
	     * arguments: (value, index|key, collection).
	     *
	     * If a property name is provided for `iteratee` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `iteratee` the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * Many lodash methods are guarded to work as iteratees for methods like
	     * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
	     *
	     * The guarded methods are:
	     * `ary`, `callback`, `chunk`, `clone`, `create`, `curry`, `curryRight`,
	     * `drop`, `dropRight`, `every`, `fill`, `flatten`, `invert`, `max`, `min`,
	     * `parseInt`, `slice`, `sortBy`, `take`, `takeRight`, `template`, `trim`,
	     * `trimLeft`, `trimRight`, `trunc`, `random`, `range`, `sample`, `some`,
	     * `sum`, `uniq`, and `words`
	     *
	     * @static
	     * @memberOf _
	     * @alias collect
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function|Object|string} [iteratee=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {Array} Returns the new mapped array.
	     * @example
	     *
	     * function timesThree(n) {
	     *   return n * 3;
	     * }
	     *
	     * _.map([1, 2], timesThree);
	     * // => [3, 6]
	     *
	     * _.map({ 'a': 1, 'b': 2 }, timesThree);
	     * // => [3, 6] (iteration order is not guaranteed)
	     *
	     * var users = [
	     *   { 'user': 'barney' },
	     *   { 'user': 'fred' }
	     * ];
	     *
	     * // using the `_.property` callback shorthand
	     * _.map(users, 'user');
	     * // => ['barney', 'fred']
	     */
	    function map(collection, iteratee, thisArg) {
	      var func = isArray(collection) ? arrayMap : baseMap;
	      iteratee = getCallback(iteratee, thisArg, 3);
	      return func(collection, iteratee);
	    }
	
	    /**
	     * Creates an array of elements split into two groups, the first of which
	     * contains elements `predicate` returns truthy for, while the second of which
	     * contains elements `predicate` returns falsey for. The predicate is bound
	     * to `thisArg` and invoked with three arguments: (value, index|key, collection).
	     *
	     * If a property name is provided for `predicate` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `predicate` the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function|Object|string} [predicate=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `predicate`.
	     * @returns {Array} Returns the array of grouped elements.
	     * @example
	     *
	     * _.partition([1, 2, 3], function(n) {
	     *   return n % 2;
	     * });
	     * // => [[1, 3], [2]]
	     *
	     * _.partition([1.2, 2.3, 3.4], function(n) {
	     *   return this.floor(n) % 2;
	     * }, Math);
	     * // => [[1.2, 3.4], [2.3]]
	     *
	     * var users = [
	     *   { 'user': 'barney',  'age': 36, 'active': false },
	     *   { 'user': 'fred',    'age': 40, 'active': true },
	     *   { 'user': 'pebbles', 'age': 1,  'active': false }
	     * ];
	     *
	     * var mapper = function(array) {
	     *   return _.pluck(array, 'user');
	     * };
	     *
	     * // using the `_.matches` callback shorthand
	     * _.map(_.partition(users, { 'age': 1, 'active': false }), mapper);
	     * // => [['pebbles'], ['barney', 'fred']]
	     *
	     * // using the `_.matchesProperty` callback shorthand
	     * _.map(_.partition(users, 'active', false), mapper);
	     * // => [['barney', 'pebbles'], ['fred']]
	     *
	     * // using the `_.property` callback shorthand
	     * _.map(_.partition(users, 'active'), mapper);
	     * // => [['fred'], ['barney', 'pebbles']]
	     */
	    var partition = createAggregator(function (result, value, key) {
	      result[key ? 0 : 1].push(value);
	    }, function () {
	      return [[], []];
	    });
	
	    /**
	     * Gets the property value of `path` from all elements in `collection`.
	     *
	     * @static
	     * @memberOf _
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Array|string} path The path of the property to pluck.
	     * @returns {Array} Returns the property values.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney', 'age': 36 },
	     *   { 'user': 'fred',   'age': 40 }
	     * ];
	     *
	     * _.pluck(users, 'user');
	     * // => ['barney', 'fred']
	     *
	     * var userIndex = _.indexBy(users, 'user');
	     * _.pluck(userIndex, 'age');
	     * // => [36, 40] (iteration order is not guaranteed)
	     */
	    function pluck(collection, path) {
	      return map(collection, property(path));
	    }
	
	    /**
	     * Reduces `collection` to a value which is the accumulated result of running
	     * each element in `collection` through `iteratee`, where each successive
	     * invocation is supplied the return value of the previous. If `accumulator`
	     * is not provided the first element of `collection` is used as the initial
	     * value. The `iteratee` is bound to `thisArg` and invoked with four arguments:
	     * (accumulator, value, index|key, collection).
	     *
	     * Many lodash methods are guarded to work as iteratees for methods like
	     * `_.reduce`, `_.reduceRight`, and `_.transform`.
	     *
	     * The guarded methods are:
	     * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `sortByAll`,
	     * and `sortByOrder`
	     *
	     * @static
	     * @memberOf _
	     * @alias foldl, inject
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @param {*} [accumulator] The initial value.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {*} Returns the accumulated value.
	     * @example
	     *
	     * _.reduce([1, 2], function(total, n) {
	     *   return total + n;
	     * });
	     * // => 3
	     *
	     * _.reduce({ 'a': 1, 'b': 2 }, function(result, n, key) {
	     *   result[key] = n * 3;
	     *   return result;
	     * }, {});
	     * // => { 'a': 3, 'b': 6 } (iteration order is not guaranteed)
	     */
	    var reduce = createReduce(arrayReduce, baseEach);
	
	    /**
	     * This method is like `_.reduce` except that it iterates over elements of
	     * `collection` from right to left.
	     *
	     * @static
	     * @memberOf _
	     * @alias foldr
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @param {*} [accumulator] The initial value.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {*} Returns the accumulated value.
	     * @example
	     *
	     * var array = [[0, 1], [2, 3], [4, 5]];
	     *
	     * _.reduceRight(array, function(flattened, other) {
	     *   return flattened.concat(other);
	     * }, []);
	     * // => [4, 5, 2, 3, 0, 1]
	     */
	    var reduceRight = createReduce(arrayReduceRight, baseEachRight);
	
	    /**
	     * The opposite of `_.filter`; this method returns the elements of `collection`
	     * that `predicate` does **not** return truthy for.
	     *
	     * @static
	     * @memberOf _
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function|Object|string} [predicate=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `predicate`.
	     * @returns {Array} Returns the new filtered array.
	     * @example
	     *
	     * _.reject([1, 2, 3, 4], function(n) {
	     *   return n % 2 == 0;
	     * });
	     * // => [1, 3]
	     *
	     * var users = [
	     *   { 'user': 'barney', 'age': 36, 'active': false },
	     *   { 'user': 'fred',   'age': 40, 'active': true }
	     * ];
	     *
	     * // using the `_.matches` callback shorthand
	     * _.pluck(_.reject(users, { 'age': 40, 'active': true }), 'user');
	     * // => ['barney']
	     *
	     * // using the `_.matchesProperty` callback shorthand
	     * _.pluck(_.reject(users, 'active', false), 'user');
	     * // => ['fred']
	     *
	     * // using the `_.property` callback shorthand
	     * _.pluck(_.reject(users, 'active'), 'user');
	     * // => ['barney']
	     */
	    function reject(collection, predicate, thisArg) {
	      var func = isArray(collection) ? arrayFilter : baseFilter;
	      predicate = getCallback(predicate, thisArg, 3);
	      return func(collection, function (value, index, collection) {
	        return !predicate(value, index, collection);
	      });
	    }
	
	    /**
	     * Gets a random element or `n` random elements from a collection.
	     *
	     * @static
	     * @memberOf _
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to sample.
	     * @param {number} [n] The number of elements to sample.
	     * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
	     * @returns {*} Returns the random sample(s).
	     * @example
	     *
	     * _.sample([1, 2, 3, 4]);
	     * // => 2
	     *
	     * _.sample([1, 2, 3, 4], 2);
	     * // => [3, 1]
	     */
	    function sample(collection, n, guard) {
	      if (guard ? isIterateeCall(collection, n, guard) : n == null) {
	        collection = toIterable(collection);
	        var length = collection.length;
	        return length > 0 ? collection[baseRandom(0, length - 1)] : undefined;
	      }
	      var index = -1,
	          result = toArray(collection),
	          length = result.length,
	          lastIndex = length - 1;
	
	      n = nativeMin(n < 0 ? 0 : +n || 0, length);
	      while (++index < n) {
	        var rand = baseRandom(index, lastIndex),
	            value = result[rand];
	
	        result[rand] = result[index];
	        result[index] = value;
	      }
	      result.length = n;
	      return result;
	    }
	
	    /**
	     * Creates an array of shuffled values, using a version of the
	     * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
	     *
	     * @static
	     * @memberOf _
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to shuffle.
	     * @returns {Array} Returns the new shuffled array.
	     * @example
	     *
	     * _.shuffle([1, 2, 3, 4]);
	     * // => [4, 1, 3, 2]
	     */
	    function shuffle(collection) {
	      return sample(collection, POSITIVE_INFINITY);
	    }
	
	    /**
	     * Gets the size of `collection` by returning its length for array-like
	     * values or the number of own enumerable properties for objects.
	     *
	     * @static
	     * @memberOf _
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to inspect.
	     * @returns {number} Returns the size of `collection`.
	     * @example
	     *
	     * _.size([1, 2, 3]);
	     * // => 3
	     *
	     * _.size({ 'a': 1, 'b': 2 });
	     * // => 2
	     *
	     * _.size('pebbles');
	     * // => 7
	     */
	    function size(collection) {
	      var length = collection ? getLength(collection) : 0;
	      return isLength(length) ? length : keys(collection).length;
	    }
	
	    /**
	     * Checks if `predicate` returns truthy for **any** element of `collection`.
	     * The function returns as soon as it finds a passing value and does not iterate
	     * over the entire collection. The predicate is bound to `thisArg` and invoked
	     * with three arguments: (value, index|key, collection).
	     *
	     * If a property name is provided for `predicate` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `predicate` the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @alias any
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function|Object|string} [predicate=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `predicate`.
	     * @returns {boolean} Returns `true` if any element passes the predicate check,
	     *  else `false`.
	     * @example
	     *
	     * _.some([null, 0, 'yes', false], Boolean);
	     * // => true
	     *
	     * var users = [
	     *   { 'user': 'barney', 'active': true },
	     *   { 'user': 'fred',   'active': false }
	     * ];
	     *
	     * // using the `_.matches` callback shorthand
	     * _.some(users, { 'user': 'barney', 'active': false });
	     * // => false
	     *
	     * // using the `_.matchesProperty` callback shorthand
	     * _.some(users, 'active', false);
	     * // => true
	     *
	     * // using the `_.property` callback shorthand
	     * _.some(users, 'active');
	     * // => true
	     */
	    function some(collection, predicate, thisArg) {
	      var func = isArray(collection) ? arraySome : baseSome;
	      if (thisArg && isIterateeCall(collection, predicate, thisArg)) {
	        predicate = undefined;
	      }
	      if (typeof predicate != 'function' || thisArg !== undefined) {
	        predicate = getCallback(predicate, thisArg, 3);
	      }
	      return func(collection, predicate);
	    }
	
	    /**
	     * Creates an array of elements, sorted in ascending order by the results of
	     * running each element in a collection through `iteratee`. This method performs
	     * a stable sort, that is, it preserves the original sort order of equal elements.
	     * The `iteratee` is bound to `thisArg` and invoked with three arguments:
	     * (value, index|key, collection).
	     *
	     * If a property name is provided for `iteratee` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `iteratee` the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function|Object|string} [iteratee=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {Array} Returns the new sorted array.
	     * @example
	     *
	     * _.sortBy([1, 2, 3], function(n) {
	     *   return Math.sin(n);
	     * });
	     * // => [3, 1, 2]
	     *
	     * _.sortBy([1, 2, 3], function(n) {
	     *   return this.sin(n);
	     * }, Math);
	     * // => [3, 1, 2]
	     *
	     * var users = [
	     *   { 'user': 'fred' },
	     *   { 'user': 'pebbles' },
	     *   { 'user': 'barney' }
	     * ];
	     *
	     * // using the `_.property` callback shorthand
	     * _.pluck(_.sortBy(users, 'user'), 'user');
	     * // => ['barney', 'fred', 'pebbles']
	     */
	    function sortBy(collection, iteratee, thisArg) {
	      if (collection == null) {
	        return [];
	      }
	      if (thisArg && isIterateeCall(collection, iteratee, thisArg)) {
	        iteratee = undefined;
	      }
	      var index = -1;
	      iteratee = getCallback(iteratee, thisArg, 3);
	
	      var result = baseMap(collection, function (value, key, collection) {
	        return { 'criteria': iteratee(value, key, collection), 'index': ++index, 'value': value };
	      });
	      return baseSortBy(result, compareAscending);
	    }
	
	    /**
	     * This method is like `_.sortBy` except that it can sort by multiple iteratees
	     * or property names.
	     *
	     * If a property name is provided for an iteratee the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If an object is provided for an iteratee the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {...(Function|Function[]|Object|Object[]|string|string[])} iteratees
	     *  The iteratees to sort by, specified as individual values or arrays of values.
	     * @returns {Array} Returns the new sorted array.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'fred',   'age': 48 },
	     *   { 'user': 'barney', 'age': 36 },
	     *   { 'user': 'fred',   'age': 42 },
	     *   { 'user': 'barney', 'age': 34 }
	     * ];
	     *
	     * _.map(_.sortByAll(users, ['user', 'age']), _.values);
	     * // => [['barney', 34], ['barney', 36], ['fred', 42], ['fred', 48]]
	     *
	     * _.map(_.sortByAll(users, 'user', function(chr) {
	     *   return Math.floor(chr.age / 10);
	     * }), _.values);
	     * // => [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 42]]
	     */
	    var sortByAll = restParam(function (collection, iteratees) {
	      if (collection == null) {
	        return [];
	      }
	      var guard = iteratees[2];
	      if (guard && isIterateeCall(iteratees[0], iteratees[1], guard)) {
	        iteratees.length = 1;
	      }
	      return baseSortByOrder(collection, baseFlatten(iteratees), []);
	    });
	
	    /**
	     * This method is like `_.sortByAll` except that it allows specifying the
	     * sort orders of the iteratees to sort by. If `orders` is unspecified, all
	     * values are sorted in ascending order. Otherwise, a value is sorted in
	     * ascending order if its corresponding order is "asc", and descending if "desc".
	     *
	     * If a property name is provided for an iteratee the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If an object is provided for an iteratee the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
	     * @param {boolean[]} [orders] The sort orders of `iteratees`.
	     * @param- {Object} [guard] Enables use as a callback for functions like `_.reduce`.
	     * @returns {Array} Returns the new sorted array.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'fred',   'age': 48 },
	     *   { 'user': 'barney', 'age': 34 },
	     *   { 'user': 'fred',   'age': 42 },
	     *   { 'user': 'barney', 'age': 36 }
	     * ];
	     *
	     * // sort by `user` in ascending order and by `age` in descending order
	     * _.map(_.sortByOrder(users, ['user', 'age'], ['asc', 'desc']), _.values);
	     * // => [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 42]]
	     */
	    function sortByOrder(collection, iteratees, orders, guard) {
	      if (collection == null) {
	        return [];
	      }
	      if (guard && isIterateeCall(iteratees, orders, guard)) {
	        orders = undefined;
	      }
	      if (!isArray(iteratees)) {
	        iteratees = iteratees == null ? [] : [iteratees];
	      }
	      if (!isArray(orders)) {
	        orders = orders == null ? [] : [orders];
	      }
	      return baseSortByOrder(collection, iteratees, orders);
	    }
	
	    /**
	     * Performs a deep comparison between each element in `collection` and the
	     * source object, returning an array of all elements that have equivalent
	     * property values.
	     *
	     * **Note:** This method supports comparing arrays, booleans, `Date` objects,
	     * numbers, `Object` objects, regexes, and strings. Objects are compared by
	     * their own, not inherited, enumerable properties. For comparing a single
	     * own or inherited property value see `_.matchesProperty`.
	     *
	     * @static
	     * @memberOf _
	     * @category Collection
	     * @param {Array|Object|string} collection The collection to search.
	     * @param {Object} source The object of property values to match.
	     * @returns {Array} Returns the new filtered array.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney', 'age': 36, 'active': false, 'pets': ['hoppy'] },
	     *   { 'user': 'fred',   'age': 40, 'active': true, 'pets': ['baby puss', 'dino'] }
	     * ];
	     *
	     * _.pluck(_.where(users, { 'age': 36, 'active': false }), 'user');
	     * // => ['barney']
	     *
	     * _.pluck(_.where(users, { 'pets': ['dino'] }), 'user');
	     * // => ['fred']
	     */
	    function where(collection, source) {
	      return filter(collection, baseMatches(source));
	    }
	
	    /*------------------------------------------------------------------------*/
	
	    /**
	     * Gets the number of milliseconds that have elapsed since the Unix epoch
	     * (1 January 1970 00:00:00 UTC).
	     *
	     * @static
	     * @memberOf _
	     * @category Date
	     * @example
	     *
	     * _.defer(function(stamp) {
	     *   console.log(_.now() - stamp);
	     * }, _.now());
	     * // => logs the number of milliseconds it took for the deferred function to be invoked
	     */
	    var now = nativeNow || function () {
	      return new Date().getTime();
	    };
	
	    /*------------------------------------------------------------------------*/
	
	    /**
	     * The opposite of `_.before`; this method creates a function that invokes
	     * `func` once it's called `n` or more times.
	     *
	     * @static
	     * @memberOf _
	     * @category Function
	     * @param {number} n The number of calls before `func` is invoked.
	     * @param {Function} func The function to restrict.
	     * @returns {Function} Returns the new restricted function.
	     * @example
	     *
	     * var saves = ['profile', 'settings'];
	     *
	     * var done = _.after(saves.length, function() {
	     *   console.log('done saving!');
	     * });
	     *
	     * _.forEach(saves, function(type) {
	     *   asyncSave({ 'type': type, 'complete': done });
	     * });
	     * // => logs 'done saving!' after the two async saves have completed
	     */
	    function after(n, func) {
	      if (typeof func != 'function') {
	        if (typeof n == 'function') {
	          var temp = n;
	          n = func;
	          func = temp;
	        } else {
	          throw new TypeError(FUNC_ERROR_TEXT);
	        }
	      }
	      n = nativeIsFinite(n = +n) ? n : 0;
	      return function () {
	        if (--n < 1) {
	          return func.apply(this, arguments);
	        }
	      };
	    }
	
	    /**
	     * Creates a function that accepts up to `n` arguments ignoring any
	     * additional arguments.
	     *
	     * @static
	     * @memberOf _
	     * @category Function
	     * @param {Function} func The function to cap arguments for.
	     * @param {number} [n=func.length] The arity cap.
	     * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * _.map(['6', '8', '10'], _.ary(parseInt, 1));
	     * // => [6, 8, 10]
	     */
	    function ary(func, n, guard) {
	      if (guard && isIterateeCall(func, n, guard)) {
	        n = undefined;
	      }
	      n = func && n == null ? func.length : nativeMax(+n || 0, 0);
	      return createWrapper(func, ARY_FLAG, undefined, undefined, undefined, undefined, n);
	    }
	
	    /**
	     * Creates a function that invokes `func`, with the `this` binding and arguments
	     * of the created function, while it's called less than `n` times. Subsequent
	     * calls to the created function return the result of the last `func` invocation.
	     *
	     * @static
	     * @memberOf _
	     * @category Function
	     * @param {number} n The number of calls at which `func` is no longer invoked.
	     * @param {Function} func The function to restrict.
	     * @returns {Function} Returns the new restricted function.
	     * @example
	     *
	     * jQuery('#add').on('click', _.before(5, addContactToList));
	     * // => allows adding up to 4 contacts to the list
	     */
	    function before(n, func) {
	      var result;
	      if (typeof func != 'function') {
	        if (typeof n == 'function') {
	          var temp = n;
	          n = func;
	          func = temp;
	        } else {
	          throw new TypeError(FUNC_ERROR_TEXT);
	        }
	      }
	      return function () {
	        if (--n > 0) {
	          result = func.apply(this, arguments);
	        }
	        if (n <= 1) {
	          func = undefined;
	        }
	        return result;
	      };
	    }
	
	    /**
	     * Creates a function that invokes `func` with the `this` binding of `thisArg`
	     * and prepends any additional `_.bind` arguments to those provided to the
	     * bound function.
	     *
	     * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
	     * may be used as a placeholder for partially applied arguments.
	     *
	     * **Note:** Unlike native `Function#bind` this method does not set the "length"
	     * property of bound functions.
	     *
	     * @static
	     * @memberOf _
	     * @category Function
	     * @param {Function} func The function to bind.
	     * @param {*} thisArg The `this` binding of `func`.
	     * @param {...*} [partials] The arguments to be partially applied.
	     * @returns {Function} Returns the new bound function.
	     * @example
	     *
	     * var greet = function(greeting, punctuation) {
	     *   return greeting + ' ' + this.user + punctuation;
	     * };
	     *
	     * var object = { 'user': 'fred' };
	     *
	     * var bound = _.bind(greet, object, 'hi');
	     * bound('!');
	     * // => 'hi fred!'
	     *
	     * // using placeholders
	     * var bound = _.bind(greet, object, _, '!');
	     * bound('hi');
	     * // => 'hi fred!'
	     */
	    var bind = restParam(function (func, thisArg, partials) {
	      var bitmask = BIND_FLAG;
	      if (partials.length) {
	        var holders = replaceHolders(partials, bind.placeholder);
	        bitmask |= PARTIAL_FLAG;
	      }
	      return createWrapper(func, bitmask, thisArg, partials, holders);
	    });
	
	    /**
	     * Binds methods of an object to the object itself, overwriting the existing
	     * method. Method names may be specified as individual arguments or as arrays
	     * of method names. If no method names are provided all enumerable function
	     * properties, own and inherited, of `object` are bound.
	     *
	     * **Note:** This method does not set the "length" property of bound functions.
	     *
	     * @static
	     * @memberOf _
	     * @category Function
	     * @param {Object} object The object to bind and assign the bound methods to.
	     * @param {...(string|string[])} [methodNames] The object method names to bind,
	     *  specified as individual method names or arrays of method names.
	     * @returns {Object} Returns `object`.
	     * @example
	     *
	     * var view = {
	     *   'label': 'docs',
	     *   'onClick': function() {
	     *     console.log('clicked ' + this.label);
	     *   }
	     * };
	     *
	     * _.bindAll(view);
	     * jQuery('#docs').on('click', view.onClick);
	     * // => logs 'clicked docs' when the element is clicked
	     */
	    var bindAll = restParam(function (object, methodNames) {
	      methodNames = methodNames.length ? baseFlatten(methodNames) : functions(object);
	
	      var index = -1,
	          length = methodNames.length;
	
	      while (++index < length) {
	        var key = methodNames[index];
	        object[key] = createWrapper(object[key], BIND_FLAG, object);
	      }
	      return object;
	    });
	
	    /**
	     * Creates a function that invokes the method at `object[key]` and prepends
	     * any additional `_.bindKey` arguments to those provided to the bound function.
	     *
	     * This method differs from `_.bind` by allowing bound functions to reference
	     * methods that may be redefined or don't yet exist.
	     * See [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
	     * for more details.
	     *
	     * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
	     * builds, may be used as a placeholder for partially applied arguments.
	     *
	     * @static
	     * @memberOf _
	     * @category Function
	     * @param {Object} object The object the method belongs to.
	     * @param {string} key The key of the method.
	     * @param {...*} [partials] The arguments to be partially applied.
	     * @returns {Function} Returns the new bound function.
	     * @example
	     *
	     * var object = {
	     *   'user': 'fred',
	     *   'greet': function(greeting, punctuation) {
	     *     return greeting + ' ' + this.user + punctuation;
	     *   }
	     * };
	     *
	     * var bound = _.bindKey(object, 'greet', 'hi');
	     * bound('!');
	     * // => 'hi fred!'
	     *
	     * object.greet = function(greeting, punctuation) {
	     *   return greeting + 'ya ' + this.user + punctuation;
	     * };
	     *
	     * bound('!');
	     * // => 'hiya fred!'
	     *
	     * // using placeholders
	     * var bound = _.bindKey(object, 'greet', _, '!');
	     * bound('hi');
	     * // => 'hiya fred!'
	     */
	    var bindKey = restParam(function (object, key, partials) {
	      var bitmask = BIND_FLAG | BIND_KEY_FLAG;
	      if (partials.length) {
	        var holders = replaceHolders(partials, bindKey.placeholder);
	        bitmask |= PARTIAL_FLAG;
	      }
	      return createWrapper(key, bitmask, object, partials, holders);
	    });
	
	    /**
	     * Creates a function that accepts one or more arguments of `func` that when
	     * called either invokes `func` returning its result, if all `func` arguments
	     * have been provided, or returns a function that accepts one or more of the
	     * remaining `func` arguments, and so on. The arity of `func` may be specified
	     * if `func.length` is not sufficient.
	     *
	     * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
	     * may be used as a placeholder for provided arguments.
	     *
	     * **Note:** This method does not set the "length" property of curried functions.
	     *
	     * @static
	     * @memberOf _
	     * @category Function
	     * @param {Function} func The function to curry.
	     * @param {number} [arity=func.length] The arity of `func`.
	     * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
	     * @returns {Function} Returns the new curried function.
	     * @example
	     *
	     * var abc = function(a, b, c) {
	     *   return [a, b, c];
	     * };
	     *
	     * var curried = _.curry(abc);
	     *
	     * curried(1)(2)(3);
	     * // => [1, 2, 3]
	     *
	     * curried(1, 2)(3);
	     * // => [1, 2, 3]
	     *
	     * curried(1, 2, 3);
	     * // => [1, 2, 3]
	     *
	     * // using placeholders
	     * curried(1)(_, 3)(2);
	     * // => [1, 2, 3]
	     */
	    var curry = createCurry(CURRY_FLAG);
	
	    /**
	     * This method is like `_.curry` except that arguments are applied to `func`
	     * in the manner of `_.partialRight` instead of `_.partial`.
	     *
	     * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
	     * builds, may be used as a placeholder for provided arguments.
	     *
	     * **Note:** This method does not set the "length" property of curried functions.
	     *
	     * @static
	     * @memberOf _
	     * @category Function
	     * @param {Function} func The function to curry.
	     * @param {number} [arity=func.length] The arity of `func`.
	     * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
	     * @returns {Function} Returns the new curried function.
	     * @example
	     *
	     * var abc = function(a, b, c) {
	     *   return [a, b, c];
	     * };
	     *
	     * var curried = _.curryRight(abc);
	     *
	     * curried(3)(2)(1);
	     * // => [1, 2, 3]
	     *
	     * curried(2, 3)(1);
	     * // => [1, 2, 3]
	     *
	     * curried(1, 2, 3);
	     * // => [1, 2, 3]
	     *
	     * // using placeholders
	     * curried(3)(1, _)(2);
	     * // => [1, 2, 3]
	     */
	    var curryRight = createCurry(CURRY_RIGHT_FLAG);
	
	    /**
	     * Creates a debounced function that delays invoking `func` until after `wait`
	     * milliseconds have elapsed since the last time the debounced function was
	     * invoked. The debounced function comes with a `cancel` method to cancel
	     * delayed invocations. Provide an options object to indicate that `func`
	     * should be invoked on the leading and/or trailing edge of the `wait` timeout.
	     * Subsequent calls to the debounced function return the result of the last
	     * `func` invocation.
	     *
	     * **Note:** If `leading` and `trailing` options are `true`, `func` is invoked
	     * on the trailing edge of the timeout only if the the debounced function is
	     * invoked more than once during the `wait` timeout.
	     *
	     * See [David Corbacho's article](http://drupalmotion.com/article/debounce-and-throttle-visual-explanation)
	     * for details over the differences between `_.debounce` and `_.throttle`.
	     *
	     * @static
	     * @memberOf _
	     * @category Function
	     * @param {Function} func The function to debounce.
	     * @param {number} [wait=0] The number of milliseconds to delay.
	     * @param {Object} [options] The options object.
	     * @param {boolean} [options.leading=false] Specify invoking on the leading
	     *  edge of the timeout.
	     * @param {number} [options.maxWait] The maximum time `func` is allowed to be
	     *  delayed before it's invoked.
	     * @param {boolean} [options.trailing=true] Specify invoking on the trailing
	     *  edge of the timeout.
	     * @returns {Function} Returns the new debounced function.
	     * @example
	     *
	     * // avoid costly calculations while the window size is in flux
	     * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
	     *
	     * // invoke `sendMail` when the click event is fired, debouncing subsequent calls
	     * jQuery('#postbox').on('click', _.debounce(sendMail, 300, {
	     *   'leading': true,
	     *   'trailing': false
	     * }));
	     *
	     * // ensure `batchLog` is invoked once after 1 second of debounced calls
	     * var source = new EventSource('/stream');
	     * jQuery(source).on('message', _.debounce(batchLog, 250, {
	     *   'maxWait': 1000
	     * }));
	     *
	     * // cancel a debounced call
	     * var todoChanges = _.debounce(batchLog, 1000);
	     * Object.observe(models.todo, todoChanges);
	     *
	     * Object.observe(models, function(changes) {
	     *   if (_.find(changes, { 'user': 'todo', 'type': 'delete'})) {
	     *     todoChanges.cancel();
	     *   }
	     * }, ['delete']);
	     *
	     * // ...at some point `models.todo` is changed
	     * models.todo.completed = true;
	     *
	     * // ...before 1 second has passed `models.todo` is deleted
	     * // which cancels the debounced `todoChanges` call
	     * delete models.todo;
	     */
	    function debounce(func, wait, options) {
	      var args,
	          maxTimeoutId,
	          result,
	          stamp,
	          thisArg,
	          timeoutId,
	          trailingCall,
	          lastCalled = 0,
	          maxWait = false,
	          trailing = true;
	
	      if (typeof func != 'function') {
	        throw new TypeError(FUNC_ERROR_TEXT);
	      }
	      wait = wait < 0 ? 0 : +wait || 0;
	      if (options === true) {
	        var leading = true;
	        trailing = false;
	      } else if (isObject(options)) {
	        leading = !!options.leading;
	        maxWait = 'maxWait' in options && nativeMax(+options.maxWait || 0, wait);
	        trailing = 'trailing' in options ? !!options.trailing : trailing;
	      }
	
	      function cancel() {
	        if (timeoutId) {
	          clearTimeout(timeoutId);
	        }
	        if (maxTimeoutId) {
	          clearTimeout(maxTimeoutId);
	        }
	        lastCalled = 0;
	        maxTimeoutId = timeoutId = trailingCall = undefined;
	      }
	
	      function complete(isCalled, id) {
	        if (id) {
	          clearTimeout(id);
	        }
	        maxTimeoutId = timeoutId = trailingCall = undefined;
	        if (isCalled) {
	          lastCalled = now();
	          result = func.apply(thisArg, args);
	          if (!timeoutId && !maxTimeoutId) {
	            args = thisArg = undefined;
	          }
	        }
	      }
	
	      function delayed() {
	        var remaining = wait - (now() - stamp);
	        if (remaining <= 0 || remaining > wait) {
	          complete(trailingCall, maxTimeoutId);
	        } else {
	          timeoutId = setTimeout(delayed, remaining);
	        }
	      }
	
	      function maxDelayed() {
	        complete(trailing, timeoutId);
	      }
	
	      function debounced() {
	        args = arguments;
	        stamp = now();
	        thisArg = this;
	        trailingCall = trailing && (timeoutId || !leading);
	
	        if (maxWait === false) {
	          var leadingCall = leading && !timeoutId;
	        } else {
	          if (!maxTimeoutId && !leading) {
	            lastCalled = stamp;
	          }
	          var remaining = maxWait - (stamp - lastCalled),
	              isCalled = remaining <= 0 || remaining > maxWait;
	
	          if (isCalled) {
	            if (maxTimeoutId) {
	              maxTimeoutId = clearTimeout(maxTimeoutId);
	            }
	            lastCalled = stamp;
	            result = func.apply(thisArg, args);
	          } else if (!maxTimeoutId) {
	            maxTimeoutId = setTimeout(maxDelayed, remaining);
	          }
	        }
	        if (isCalled && timeoutId) {
	          timeoutId = clearTimeout(timeoutId);
	        } else if (!timeoutId && wait !== maxWait) {
	          timeoutId = setTimeout(delayed, wait);
	        }
	        if (leadingCall) {
	          isCalled = true;
	          result = func.apply(thisArg, args);
	        }
	        if (isCalled && !timeoutId && !maxTimeoutId) {
	          args = thisArg = undefined;
	        }
	        return result;
	      }
	      debounced.cancel = cancel;
	      return debounced;
	    }
	
	    /**
	     * Defers invoking the `func` until the current call stack has cleared. Any
	     * additional arguments are provided to `func` when it's invoked.
	     *
	     * @static
	     * @memberOf _
	     * @category Function
	     * @param {Function} func The function to defer.
	     * @param {...*} [args] The arguments to invoke the function with.
	     * @returns {number} Returns the timer id.
	     * @example
	     *
	     * _.defer(function(text) {
	     *   console.log(text);
	     * }, 'deferred');
	     * // logs 'deferred' after one or more milliseconds
	     */
	    var defer = restParam(function (func, args) {
	      return baseDelay(func, 1, args);
	    });
	
	    /**
	     * Invokes `func` after `wait` milliseconds. Any additional arguments are
	     * provided to `func` when it's invoked.
	     *
	     * @static
	     * @memberOf _
	     * @category Function
	     * @param {Function} func The function to delay.
	     * @param {number} wait The number of milliseconds to delay invocation.
	     * @param {...*} [args] The arguments to invoke the function with.
	     * @returns {number} Returns the timer id.
	     * @example
	     *
	     * _.delay(function(text) {
	     *   console.log(text);
	     * }, 1000, 'later');
	     * // => logs 'later' after one second
	     */
	    var delay = restParam(function (func, wait, args) {
	      return baseDelay(func, wait, args);
	    });
	
	    /**
	     * Creates a function that returns the result of invoking the provided
	     * functions with the `this` binding of the created function, where each
	     * successive invocation is supplied the return value of the previous.
	     *
	     * @static
	     * @memberOf _
	     * @category Function
	     * @param {...Function} [funcs] Functions to invoke.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * function square(n) {
	     *   return n * n;
	     * }
	     *
	     * var addSquare = _.flow(_.add, square);
	     * addSquare(1, 2);
	     * // => 9
	     */
	    var flow = createFlow();
	
	    /**
	     * This method is like `_.flow` except that it creates a function that
	     * invokes the provided functions from right to left.
	     *
	     * @static
	     * @memberOf _
	     * @alias backflow, compose
	     * @category Function
	     * @param {...Function} [funcs] Functions to invoke.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * function square(n) {
	     *   return n * n;
	     * }
	     *
	     * var addSquare = _.flowRight(square, _.add);
	     * addSquare(1, 2);
	     * // => 9
	     */
	    var flowRight = createFlow(true);
	
	    /**
	     * Creates a function that memoizes the result of `func`. If `resolver` is
	     * provided it determines the cache key for storing the result based on the
	     * arguments provided to the memoized function. By default, the first argument
	     * provided to the memoized function is coerced to a string and used as the
	     * cache key. The `func` is invoked with the `this` binding of the memoized
	     * function.
	     *
	     * **Note:** The cache is exposed as the `cache` property on the memoized
	     * function. Its creation may be customized by replacing the `_.memoize.Cache`
	     * constructor with one whose instances implement the [`Map`](http://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-map-prototype-object)
	     * method interface of `get`, `has`, and `set`.
	     *
	     * @static
	     * @memberOf _
	     * @category Function
	     * @param {Function} func The function to have its output memoized.
	     * @param {Function} [resolver] The function to resolve the cache key.
	     * @returns {Function} Returns the new memoizing function.
	     * @example
	     *
	     * var upperCase = _.memoize(function(string) {
	     *   return string.toUpperCase();
	     * });
	     *
	     * upperCase('fred');
	     * // => 'FRED'
	     *
	     * // modifying the result cache
	     * upperCase.cache.set('fred', 'BARNEY');
	     * upperCase('fred');
	     * // => 'BARNEY'
	     *
	     * // replacing `_.memoize.Cache`
	     * var object = { 'user': 'fred' };
	     * var other = { 'user': 'barney' };
	     * var identity = _.memoize(_.identity);
	     *
	     * identity(object);
	     * // => { 'user': 'fred' }
	     * identity(other);
	     * // => { 'user': 'fred' }
	     *
	     * _.memoize.Cache = WeakMap;
	     * var identity = _.memoize(_.identity);
	     *
	     * identity(object);
	     * // => { 'user': 'fred' }
	     * identity(other);
	     * // => { 'user': 'barney' }
	     */
	    function memoize(func, resolver) {
	      if (typeof func != 'function' || resolver && typeof resolver != 'function') {
	        throw new TypeError(FUNC_ERROR_TEXT);
	      }
	      var memoized = function memoized() {
	        var args = arguments,
	            key = resolver ? resolver.apply(this, args) : args[0],
	            cache = memoized.cache;
	
	        if (cache.has(key)) {
	          return cache.get(key);
	        }
	        var result = func.apply(this, args);
	        memoized.cache = cache.set(key, result);
	        return result;
	      };
	      memoized.cache = new memoize.Cache();
	      return memoized;
	    }
	
	    /**
	     * Creates a function that runs each argument through a corresponding
	     * transform function.
	     *
	     * @static
	     * @memberOf _
	     * @category Function
	     * @param {Function} func The function to wrap.
	     * @param {...(Function|Function[])} [transforms] The functions to transform
	     * arguments, specified as individual functions or arrays of functions.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * function doubled(n) {
	     *   return n * 2;
	     * }
	     *
	     * function square(n) {
	     *   return n * n;
	     * }
	     *
	     * var modded = _.modArgs(function(x, y) {
	     *   return [x, y];
	     * }, square, doubled);
	     *
	     * modded(1, 2);
	     * // => [1, 4]
	     *
	     * modded(5, 10);
	     * // => [25, 20]
	     */
	    var modArgs = restParam(function (func, transforms) {
	      transforms = baseFlatten(transforms);
	      if (typeof func != 'function' || !arrayEvery(transforms, baseIsFunction)) {
	        throw new TypeError(FUNC_ERROR_TEXT);
	      }
	      var length = transforms.length;
	      return restParam(function (args) {
	        var index = nativeMin(args.length, length);
	        while (index--) {
	          args[index] = transforms[index](args[index]);
	        }
	        return func.apply(this, args);
	      });
	    });
	
	    /**
	     * Creates a function that negates the result of the predicate `func`. The
	     * `func` predicate is invoked with the `this` binding and arguments of the
	     * created function.
	     *
	     * @static
	     * @memberOf _
	     * @category Function
	     * @param {Function} predicate The predicate to negate.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * function isEven(n) {
	     *   return n % 2 == 0;
	     * }
	     *
	     * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
	     * // => [1, 3, 5]
	     */
	    function negate(predicate) {
	      if (typeof predicate != 'function') {
	        throw new TypeError(FUNC_ERROR_TEXT);
	      }
	      return function () {
	        return !predicate.apply(this, arguments);
	      };
	    }
	
	    /**
	     * Creates a function that is restricted to invoking `func` once. Repeat calls
	     * to the function return the value of the first call. The `func` is invoked
	     * with the `this` binding and arguments of the created function.
	     *
	     * @static
	     * @memberOf _
	     * @category Function
	     * @param {Function} func The function to restrict.
	     * @returns {Function} Returns the new restricted function.
	     * @example
	     *
	     * var initialize = _.once(createApplication);
	     * initialize();
	     * initialize();
	     * // `initialize` invokes `createApplication` once
	     */
	    function once(func) {
	      return before(2, func);
	    }
	
	    /**
	     * Creates a function that invokes `func` with `partial` arguments prepended
	     * to those provided to the new function. This method is like `_.bind` except
	     * it does **not** alter the `this` binding.
	     *
	     * The `_.partial.placeholder` value, which defaults to `_` in monolithic
	     * builds, may be used as a placeholder for partially applied arguments.
	     *
	     * **Note:** This method does not set the "length" property of partially
	     * applied functions.
	     *
	     * @static
	     * @memberOf _
	     * @category Function
	     * @param {Function} func The function to partially apply arguments to.
	     * @param {...*} [partials] The arguments to be partially applied.
	     * @returns {Function} Returns the new partially applied function.
	     * @example
	     *
	     * var greet = function(greeting, name) {
	     *   return greeting + ' ' + name;
	     * };
	     *
	     * var sayHelloTo = _.partial(greet, 'hello');
	     * sayHelloTo('fred');
	     * // => 'hello fred'
	     *
	     * // using placeholders
	     * var greetFred = _.partial(greet, _, 'fred');
	     * greetFred('hi');
	     * // => 'hi fred'
	     */
	    var partial = createPartial(PARTIAL_FLAG);
	
	    /**
	     * This method is like `_.partial` except that partially applied arguments
	     * are appended to those provided to the new function.
	     *
	     * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
	     * builds, may be used as a placeholder for partially applied arguments.
	     *
	     * **Note:** This method does not set the "length" property of partially
	     * applied functions.
	     *
	     * @static
	     * @memberOf _
	     * @category Function
	     * @param {Function} func The function to partially apply arguments to.
	     * @param {...*} [partials] The arguments to be partially applied.
	     * @returns {Function} Returns the new partially applied function.
	     * @example
	     *
	     * var greet = function(greeting, name) {
	     *   return greeting + ' ' + name;
	     * };
	     *
	     * var greetFred = _.partialRight(greet, 'fred');
	     * greetFred('hi');
	     * // => 'hi fred'
	     *
	     * // using placeholders
	     * var sayHelloTo = _.partialRight(greet, 'hello', _);
	     * sayHelloTo('fred');
	     * // => 'hello fred'
	     */
	    var partialRight = createPartial(PARTIAL_RIGHT_FLAG);
	
	    /**
	     * Creates a function that invokes `func` with arguments arranged according
	     * to the specified indexes where the argument value at the first index is
	     * provided as the first argument, the argument value at the second index is
	     * provided as the second argument, and so on.
	     *
	     * @static
	     * @memberOf _
	     * @category Function
	     * @param {Function} func The function to rearrange arguments for.
	     * @param {...(number|number[])} indexes The arranged argument indexes,
	     *  specified as individual indexes or arrays of indexes.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * var rearged = _.rearg(function(a, b, c) {
	     *   return [a, b, c];
	     * }, 2, 0, 1);
	     *
	     * rearged('b', 'c', 'a')
	     * // => ['a', 'b', 'c']
	     *
	     * var map = _.rearg(_.map, [1, 0]);
	     * map(function(n) {
	     *   return n * 3;
	     * }, [1, 2, 3]);
	     * // => [3, 6, 9]
	     */
	    var rearg = restParam(function (func, indexes) {
	      return createWrapper(func, REARG_FLAG, undefined, undefined, undefined, baseFlatten(indexes));
	    });
	
	    /**
	     * Creates a function that invokes `func` with the `this` binding of the
	     * created function and arguments from `start` and beyond provided as an array.
	     *
	     * **Note:** This method is based on the [rest parameter](https://developer.mozilla.org/Web/JavaScript/Reference/Functions/rest_parameters).
	     *
	     * @static
	     * @memberOf _
	     * @category Function
	     * @param {Function} func The function to apply a rest parameter to.
	     * @param {number} [start=func.length-1] The start position of the rest parameter.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * var say = _.restParam(function(what, names) {
	     *   return what + ' ' + _.initial(names).join(', ') +
	     *     (_.size(names) > 1 ? ', & ' : '') + _.last(names);
	     * });
	     *
	     * say('hello', 'fred', 'barney', 'pebbles');
	     * // => 'hello fred, barney, & pebbles'
	     */
	    function restParam(func, start) {
	      if (typeof func != 'function') {
	        throw new TypeError(FUNC_ERROR_TEXT);
	      }
	      start = nativeMax(start === undefined ? func.length - 1 : +start || 0, 0);
	      return function () {
	        var args = arguments,
	            index = -1,
	            length = nativeMax(args.length - start, 0),
	            rest = Array(length);
	
	        while (++index < length) {
	          rest[index] = args[start + index];
	        }
	        switch (start) {
	          case 0:
	            return func.call(this, rest);
	          case 1:
	            return func.call(this, args[0], rest);
	          case 2:
	            return func.call(this, args[0], args[1], rest);
	        }
	        var otherArgs = Array(start + 1);
	        index = -1;
	        while (++index < start) {
	          otherArgs[index] = args[index];
	        }
	        otherArgs[start] = rest;
	        return func.apply(this, otherArgs);
	      };
	    }
	
	    /**
	     * Creates a function that invokes `func` with the `this` binding of the created
	     * function and an array of arguments much like [`Function#apply`](https://es5.github.io/#x15.3.4.3).
	     *
	     * **Note:** This method is based on the [spread operator](https://developer.mozilla.org/Web/JavaScript/Reference/Operators/Spread_operator).
	     *
	     * @static
	     * @memberOf _
	     * @category Function
	     * @param {Function} func The function to spread arguments over.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * var say = _.spread(function(who, what) {
	     *   return who + ' says ' + what;
	     * });
	     *
	     * say(['fred', 'hello']);
	     * // => 'fred says hello'
	     *
	     * // with a Promise
	     * var numbers = Promise.all([
	     *   Promise.resolve(40),
	     *   Promise.resolve(36)
	     * ]);
	     *
	     * numbers.then(_.spread(function(x, y) {
	     *   return x + y;
	     * }));
	     * // => a Promise of 76
	     */
	    function spread(func) {
	      if (typeof func != 'function') {
	        throw new TypeError(FUNC_ERROR_TEXT);
	      }
	      return function (array) {
	        return func.apply(this, array);
	      };
	    }
	
	    /**
	     * Creates a throttled function that only invokes `func` at most once per
	     * every `wait` milliseconds. The throttled function comes with a `cancel`
	     * method to cancel delayed invocations. Provide an options object to indicate
	     * that `func` should be invoked on the leading and/or trailing edge of the
	     * `wait` timeout. Subsequent calls to the throttled function return the
	     * result of the last `func` call.
	     *
	     * **Note:** If `leading` and `trailing` options are `true`, `func` is invoked
	     * on the trailing edge of the timeout only if the the throttled function is
	     * invoked more than once during the `wait` timeout.
	     *
	     * See [David Corbacho's article](http://drupalmotion.com/article/debounce-and-throttle-visual-explanation)
	     * for details over the differences between `_.throttle` and `_.debounce`.
	     *
	     * @static
	     * @memberOf _
	     * @category Function
	     * @param {Function} func The function to throttle.
	     * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
	     * @param {Object} [options] The options object.
	     * @param {boolean} [options.leading=true] Specify invoking on the leading
	     *  edge of the timeout.
	     * @param {boolean} [options.trailing=true] Specify invoking on the trailing
	     *  edge of the timeout.
	     * @returns {Function} Returns the new throttled function.
	     * @example
	     *
	     * // avoid excessively updating the position while scrolling
	     * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
	     *
	     * // invoke `renewToken` when the click event is fired, but not more than once every 5 minutes
	     * jQuery('.interactive').on('click', _.throttle(renewToken, 300000, {
	     *   'trailing': false
	     * }));
	     *
	     * // cancel a trailing throttled call
	     * jQuery(window).on('popstate', throttled.cancel);
	     */
	    function throttle(func, wait, options) {
	      var leading = true,
	          trailing = true;
	
	      if (typeof func != 'function') {
	        throw new TypeError(FUNC_ERROR_TEXT);
	      }
	      if (options === false) {
	        leading = false;
	      } else if (isObject(options)) {
	        leading = 'leading' in options ? !!options.leading : leading;
	        trailing = 'trailing' in options ? !!options.trailing : trailing;
	      }
	      return debounce(func, wait, { 'leading': leading, 'maxWait': +wait, 'trailing': trailing });
	    }
	
	    /**
	     * Creates a function that provides `value` to the wrapper function as its
	     * first argument. Any additional arguments provided to the function are
	     * appended to those provided to the wrapper function. The wrapper is invoked
	     * with the `this` binding of the created function.
	     *
	     * @static
	     * @memberOf _
	     * @category Function
	     * @param {*} value The value to wrap.
	     * @param {Function} wrapper The wrapper function.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * var p = _.wrap(_.escape, function(func, text) {
	     *   return '<p>' + func(text) + '</p>';
	     * });
	     *
	     * p('fred, barney, & pebbles');
	     * // => '<p>fred, barney, &amp; pebbles</p>'
	     */
	    function wrap(value, wrapper) {
	      wrapper = wrapper == null ? identity : wrapper;
	      return createWrapper(wrapper, PARTIAL_FLAG, undefined, [value], []);
	    }
	
	    /*------------------------------------------------------------------------*/
	
	    /**
	     * Creates a clone of `value`. If `isDeep` is `true` nested objects are cloned,
	     * otherwise they are assigned by reference. If `customizer` is provided it's
	     * invoked to produce the cloned values. If `customizer` returns `undefined`
	     * cloning is handled by the method instead. The `customizer` is bound to
	     * `thisArg` and invoked with up to three argument; (value [, index|key, object]).
	     *
	     * **Note:** This method is loosely based on the
	     * [structured clone algorithm](http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm).
	     * The enumerable properties of `arguments` objects and objects created by
	     * constructors other than `Object` are cloned to plain `Object` objects. An
	     * empty object is returned for uncloneable values such as functions, DOM nodes,
	     * Maps, Sets, and WeakMaps.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to clone.
	     * @param {boolean} [isDeep] Specify a deep clone.
	     * @param {Function} [customizer] The function to customize cloning values.
	     * @param {*} [thisArg] The `this` binding of `customizer`.
	     * @returns {*} Returns the cloned value.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney' },
	     *   { 'user': 'fred' }
	     * ];
	     *
	     * var shallow = _.clone(users);
	     * shallow[0] === users[0];
	     * // => true
	     *
	     * var deep = _.clone(users, true);
	     * deep[0] === users[0];
	     * // => false
	     *
	     * // using a customizer callback
	     * var el = _.clone(document.body, function(value) {
	     *   if (_.isElement(value)) {
	     *     return value.cloneNode(false);
	     *   }
	     * });
	     *
	     * el === document.body
	     * // => false
	     * el.nodeName
	     * // => BODY
	     * el.childNodes.length;
	     * // => 0
	     */
	    function clone(value, isDeep, customizer, thisArg) {
	      if (isDeep && typeof isDeep != 'boolean' && isIterateeCall(value, isDeep, customizer)) {
	        isDeep = false;
	      } else if (typeof isDeep == 'function') {
	        thisArg = customizer;
	        customizer = isDeep;
	        isDeep = false;
	      }
	      return typeof customizer == 'function' ? baseClone(value, isDeep, bindCallback(customizer, thisArg, 3)) : baseClone(value, isDeep);
	    }
	
	    /**
	     * Creates a deep clone of `value`. If `customizer` is provided it's invoked
	     * to produce the cloned values. If `customizer` returns `undefined` cloning
	     * is handled by the method instead. The `customizer` is bound to `thisArg`
	     * and invoked with up to three argument; (value [, index|key, object]).
	     *
	     * **Note:** This method is loosely based on the
	     * [structured clone algorithm](http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm).
	     * The enumerable properties of `arguments` objects and objects created by
	     * constructors other than `Object` are cloned to plain `Object` objects. An
	     * empty object is returned for uncloneable values such as functions, DOM nodes,
	     * Maps, Sets, and WeakMaps.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to deep clone.
	     * @param {Function} [customizer] The function to customize cloning values.
	     * @param {*} [thisArg] The `this` binding of `customizer`.
	     * @returns {*} Returns the deep cloned value.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney' },
	     *   { 'user': 'fred' }
	     * ];
	     *
	     * var deep = _.cloneDeep(users);
	     * deep[0] === users[0];
	     * // => false
	     *
	     * // using a customizer callback
	     * var el = _.cloneDeep(document.body, function(value) {
	     *   if (_.isElement(value)) {
	     *     return value.cloneNode(true);
	     *   }
	     * });
	     *
	     * el === document.body
	     * // => false
	     * el.nodeName
	     * // => BODY
	     * el.childNodes.length;
	     * // => 20
	     */
	    function cloneDeep(value, customizer, thisArg) {
	      return typeof customizer == 'function' ? baseClone(value, true, bindCallback(customizer, thisArg, 3)) : baseClone(value, true);
	    }
	
	    /**
	     * Checks if `value` is greater than `other`.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to compare.
	     * @param {*} other The other value to compare.
	     * @returns {boolean} Returns `true` if `value` is greater than `other`, else `false`.
	     * @example
	     *
	     * _.gt(3, 1);
	     * // => true
	     *
	     * _.gt(3, 3);
	     * // => false
	     *
	     * _.gt(1, 3);
	     * // => false
	     */
	    function gt(value, other) {
	      return value > other;
	    }
	
	    /**
	     * Checks if `value` is greater than or equal to `other`.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to compare.
	     * @param {*} other The other value to compare.
	     * @returns {boolean} Returns `true` if `value` is greater than or equal to `other`, else `false`.
	     * @example
	     *
	     * _.gte(3, 1);
	     * // => true
	     *
	     * _.gte(3, 3);
	     * // => true
	     *
	     * _.gte(1, 3);
	     * // => false
	     */
	    function gte(value, other) {
	      return value >= other;
	    }
	
	    /**
	     * Checks if `value` is classified as an `arguments` object.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
	     * @example
	     *
	     * _.isArguments(function() { return arguments; }());
	     * // => true
	     *
	     * _.isArguments([1, 2, 3]);
	     * // => false
	     */
	    function isArguments(value) {
	      return isObjectLike(value) && isArrayLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee');
	    }
	
	    /**
	     * Checks if `value` is classified as an `Array` object.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
	     * @example
	     *
	     * _.isArray([1, 2, 3]);
	     * // => true
	     *
	     * _.isArray(function() { return arguments; }());
	     * // => false
	     */
	    var isArray = nativeIsArray || function (value) {
	      return isObjectLike(value) && isLength(value.length) && objToString.call(value) == arrayTag;
	    };
	
	    /**
	     * Checks if `value` is classified as a boolean primitive or object.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
	     * @example
	     *
	     * _.isBoolean(false);
	     * // => true
	     *
	     * _.isBoolean(null);
	     * // => false
	     */
	    function isBoolean(value) {
	      return value === true || value === false || isObjectLike(value) && objToString.call(value) == boolTag;
	    }
	
	    /**
	     * Checks if `value` is classified as a `Date` object.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
	     * @example
	     *
	     * _.isDate(new Date);
	     * // => true
	     *
	     * _.isDate('Mon April 23 2012');
	     * // => false
	     */
	    function isDate(value) {
	      return isObjectLike(value) && objToString.call(value) == dateTag;
	    }
	
	    /**
	     * Checks if `value` is a DOM element.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
	     * @example
	     *
	     * _.isElement(document.body);
	     * // => true
	     *
	     * _.isElement('<body>');
	     * // => false
	     */
	    function isElement(value) {
	      return !!value && value.nodeType === 1 && isObjectLike(value) && !isPlainObject(value);
	    }
	
	    /**
	     * Checks if `value` is empty. A value is considered empty unless it's an
	     * `arguments` object, array, string, or jQuery-like collection with a length
	     * greater than `0` or an object with own enumerable properties.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {Array|Object|string} value The value to inspect.
	     * @returns {boolean} Returns `true` if `value` is empty, else `false`.
	     * @example
	     *
	     * _.isEmpty(null);
	     * // => true
	     *
	     * _.isEmpty(true);
	     * // => true
	     *
	     * _.isEmpty(1);
	     * // => true
	     *
	     * _.isEmpty([1, 2, 3]);
	     * // => false
	     *
	     * _.isEmpty({ 'a': 1 });
	     * // => false
	     */
	    function isEmpty(value) {
	      if (value == null) {
	        return true;
	      }
	      if (isArrayLike(value) && (isArray(value) || isString(value) || isArguments(value) || isObjectLike(value) && isFunction(value.splice))) {
	        return !value.length;
	      }
	      return !keys(value).length;
	    }
	
	    /**
	     * Performs a deep comparison between two values to determine if they are
	     * equivalent. If `customizer` is provided it's invoked to compare values.
	     * If `customizer` returns `undefined` comparisons are handled by the method
	     * instead. The `customizer` is bound to `thisArg` and invoked with up to
	     * three arguments: (value, other [, index|key]).
	     *
	     * **Note:** This method supports comparing arrays, booleans, `Date` objects,
	     * numbers, `Object` objects, regexes, and strings. Objects are compared by
	     * their own, not inherited, enumerable properties. Functions and DOM nodes
	     * are **not** supported. Provide a customizer function to extend support
	     * for comparing other values.
	     *
	     * @static
	     * @memberOf _
	     * @alias eq
	     * @category Lang
	     * @param {*} value The value to compare.
	     * @param {*} other The other value to compare.
	     * @param {Function} [customizer] The function to customize value comparisons.
	     * @param {*} [thisArg] The `this` binding of `customizer`.
	     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
	     * @example
	     *
	     * var object = { 'user': 'fred' };
	     * var other = { 'user': 'fred' };
	     *
	     * object == other;
	     * // => false
	     *
	     * _.isEqual(object, other);
	     * // => true
	     *
	     * // using a customizer callback
	     * var array = ['hello', 'goodbye'];
	     * var other = ['hi', 'goodbye'];
	     *
	     * _.isEqual(array, other, function(value, other) {
	     *   if (_.every([value, other], RegExp.prototype.test, /^h(?:i|ello)$/)) {
	     *     return true;
	     *   }
	     * });
	     * // => true
	     */
	    function isEqual(value, other, customizer, thisArg) {
	      customizer = typeof customizer == 'function' ? bindCallback(customizer, thisArg, 3) : undefined;
	      var result = customizer ? customizer(value, other) : undefined;
	      return result === undefined ? baseIsEqual(value, other, customizer) : !!result;
	    }
	
	    /**
	     * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
	     * `SyntaxError`, `TypeError`, or `URIError` object.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
	     * @example
	     *
	     * _.isError(new Error);
	     * // => true
	     *
	     * _.isError(Error);
	     * // => false
	     */
	    function isError(value) {
	      return isObjectLike(value) && typeof value.message == 'string' && objToString.call(value) == errorTag;
	    }
	
	    /**
	     * Checks if `value` is a finite primitive number.
	     *
	     * **Note:** This method is based on [`Number.isFinite`](http://ecma-international.org/ecma-262/6.0/#sec-number.isfinite).
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
	     * @example
	     *
	     * _.isFinite(10);
	     * // => true
	     *
	     * _.isFinite('10');
	     * // => false
	     *
	     * _.isFinite(true);
	     * // => false
	     *
	     * _.isFinite(Object(10));
	     * // => false
	     *
	     * _.isFinite(Infinity);
	     * // => false
	     */
	    function isFinite(value) {
	      return typeof value == 'number' && nativeIsFinite(value);
	    }
	
	    /**
	     * Checks if `value` is classified as a `Function` object.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
	     * @example
	     *
	     * _.isFunction(_);
	     * // => true
	     *
	     * _.isFunction(/abc/);
	     * // => false
	     */
	    function isFunction(value) {
	      // The use of `Object#toString` avoids issues with the `typeof` operator
	      // in older versions of Chrome and Safari which return 'function' for regexes
	      // and Safari 8 which returns 'object' for typed array constructors.
	      return isObject(value) && objToString.call(value) == funcTag;
	    }
	
	    /**
	     * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
	     * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is an object, else `false`.
	     * @example
	     *
	     * _.isObject({});
	     * // => true
	     *
	     * _.isObject([1, 2, 3]);
	     * // => true
	     *
	     * _.isObject(1);
	     * // => false
	     */
	    function isObject(value) {
	      // Avoid a V8 JIT bug in Chrome 19-20.
	      // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
	      var type = typeof value === 'undefined' ? 'undefined' : _typeof(value);
	      return !!value && (type == 'object' || type == 'function');
	    }
	
	    /**
	     * Performs a deep comparison between `object` and `source` to determine if
	     * `object` contains equivalent property values. If `customizer` is provided
	     * it's invoked to compare values. If `customizer` returns `undefined`
	     * comparisons are handled by the method instead. The `customizer` is bound
	     * to `thisArg` and invoked with three arguments: (value, other, index|key).
	     *
	     * **Note:** This method supports comparing properties of arrays, booleans,
	     * `Date` objects, numbers, `Object` objects, regexes, and strings. Functions
	     * and DOM nodes are **not** supported. Provide a customizer function to extend
	     * support for comparing other values.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {Object} object The object to inspect.
	     * @param {Object} source The object of property values to match.
	     * @param {Function} [customizer] The function to customize value comparisons.
	     * @param {*} [thisArg] The `this` binding of `customizer`.
	     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
	     * @example
	     *
	     * var object = { 'user': 'fred', 'age': 40 };
	     *
	     * _.isMatch(object, { 'age': 40 });
	     * // => true
	     *
	     * _.isMatch(object, { 'age': 36 });
	     * // => false
	     *
	     * // using a customizer callback
	     * var object = { 'greeting': 'hello' };
	     * var source = { 'greeting': 'hi' };
	     *
	     * _.isMatch(object, source, function(value, other) {
	     *   return _.every([value, other], RegExp.prototype.test, /^h(?:i|ello)$/) || undefined;
	     * });
	     * // => true
	     */
	    function isMatch(object, source, customizer, thisArg) {
	      customizer = typeof customizer == 'function' ? bindCallback(customizer, thisArg, 3) : undefined;
	      return baseIsMatch(object, getMatchData(source), customizer);
	    }
	
	    /**
	     * Checks if `value` is `NaN`.
	     *
	     * **Note:** This method is not the same as [`isNaN`](https://es5.github.io/#x15.1.2.4)
	     * which returns `true` for `undefined` and other non-numeric values.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
	     * @example
	     *
	     * _.isNaN(NaN);
	     * // => true
	     *
	     * _.isNaN(new Number(NaN));
	     * // => true
	     *
	     * isNaN(undefined);
	     * // => true
	     *
	     * _.isNaN(undefined);
	     * // => false
	     */
	    function isNaN(value) {
	      // An `NaN` primitive is the only value that is not equal to itself.
	      // Perform the `toStringTag` check first to avoid errors with some host objects in IE.
	      return isNumber(value) && value != +value;
	    }
	
	    /**
	     * Checks if `value` is a native function.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a native function, else `false`.
	     * @example
	     *
	     * _.isNative(Array.prototype.push);
	     * // => true
	     *
	     * _.isNative(_);
	     * // => false
	     */
	    function isNative(value) {
	      if (value == null) {
	        return false;
	      }
	      if (isFunction(value)) {
	        return reIsNative.test(fnToString.call(value));
	      }
	      return isObjectLike(value) && (isHostObject(value) ? reIsNative : reIsHostCtor).test(value);
	    }
	
	    /**
	     * Checks if `value` is `null`.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
	     * @example
	     *
	     * _.isNull(null);
	     * // => true
	     *
	     * _.isNull(void 0);
	     * // => false
	     */
	    function isNull(value) {
	      return value === null;
	    }
	
	    /**
	     * Checks if `value` is classified as a `Number` primitive or object.
	     *
	     * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are classified
	     * as numbers, use the `_.isFinite` method.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
	     * @example
	     *
	     * _.isNumber(8.4);
	     * // => true
	     *
	     * _.isNumber(NaN);
	     * // => true
	     *
	     * _.isNumber('8.4');
	     * // => false
	     */
	    function isNumber(value) {
	      return typeof value == 'number' || isObjectLike(value) && objToString.call(value) == numberTag;
	    }
	
	    /**
	     * Checks if `value` is a plain object, that is, an object created by the
	     * `Object` constructor or one with a `[[Prototype]]` of `null`.
	     *
	     * **Note:** This method assumes objects created by the `Object` constructor
	     * have no inherited enumerable properties.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
	     * @example
	     *
	     * function Foo() {
	     *   this.a = 1;
	     * }
	     *
	     * _.isPlainObject(new Foo);
	     * // => false
	     *
	     * _.isPlainObject([1, 2, 3]);
	     * // => false
	     *
	     * _.isPlainObject({ 'x': 0, 'y': 0 });
	     * // => true
	     *
	     * _.isPlainObject(Object.create(null));
	     * // => true
	     */
	    function isPlainObject(value) {
	      var Ctor;
	
	      // Exit early for non `Object` objects.
	      if (!(isObjectLike(value) && objToString.call(value) == objectTag && !isHostObject(value) && !isArguments(value)) || !hasOwnProperty.call(value, 'constructor') && (Ctor = value.constructor, typeof Ctor == 'function' && !(Ctor instanceof Ctor))) {
	        return false;
	      }
	      // IE < 9 iterates inherited properties before own properties. If the first
	      // iterated property is an object's own property then there are no inherited
	      // enumerable properties.
	      var result;
	      if (lodash.support.ownLast) {
	        baseForIn(value, function (subValue, key, object) {
	          result = hasOwnProperty.call(object, key);
	          return false;
	        });
	        return result !== false;
	      }
	      // In most environments an object's own properties are iterated before
	      // its inherited properties. If the last iterated property is an object's
	      // own property then there are no inherited enumerable properties.
	      baseForIn(value, function (subValue, key) {
	        result = key;
	      });
	      return result === undefined || hasOwnProperty.call(value, result);
	    }
	
	    /**
	     * Checks if `value` is classified as a `RegExp` object.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
	     * @example
	     *
	     * _.isRegExp(/abc/);
	     * // => true
	     *
	     * _.isRegExp('/abc/');
	     * // => false
	     */
	    function isRegExp(value) {
	      return isObject(value) && objToString.call(value) == regexpTag;
	    }
	
	    /**
	     * Checks if `value` is classified as a `String` primitive or object.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
	     * @example
	     *
	     * _.isString('abc');
	     * // => true
	     *
	     * _.isString(1);
	     * // => false
	     */
	    function isString(value) {
	      return typeof value == 'string' || isObjectLike(value) && objToString.call(value) == stringTag;
	    }
	
	    /**
	     * Checks if `value` is classified as a typed array.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
	     * @example
	     *
	     * _.isTypedArray(new Uint8Array);
	     * // => true
	     *
	     * _.isTypedArray([]);
	     * // => false
	     */
	    function isTypedArray(value) {
	      return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[objToString.call(value)];
	    }
	
	    /**
	     * Checks if `value` is `undefined`.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to check.
	     * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
	     * @example
	     *
	     * _.isUndefined(void 0);
	     * // => true
	     *
	     * _.isUndefined(null);
	     * // => false
	     */
	    function isUndefined(value) {
	      return value === undefined;
	    }
	
	    /**
	     * Checks if `value` is less than `other`.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to compare.
	     * @param {*} other The other value to compare.
	     * @returns {boolean} Returns `true` if `value` is less than `other`, else `false`.
	     * @example
	     *
	     * _.lt(1, 3);
	     * // => true
	     *
	     * _.lt(3, 3);
	     * // => false
	     *
	     * _.lt(3, 1);
	     * // => false
	     */
	    function lt(value, other) {
	      return value < other;
	    }
	
	    /**
	     * Checks if `value` is less than or equal to `other`.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to compare.
	     * @param {*} other The other value to compare.
	     * @returns {boolean} Returns `true` if `value` is less than or equal to `other`, else `false`.
	     * @example
	     *
	     * _.lte(1, 3);
	     * // => true
	     *
	     * _.lte(3, 3);
	     * // => true
	     *
	     * _.lte(3, 1);
	     * // => false
	     */
	    function lte(value, other) {
	      return value <= other;
	    }
	
	    /**
	     * Converts `value` to an array.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to convert.
	     * @returns {Array} Returns the converted array.
	     * @example
	     *
	     * (function() {
	     *   return _.toArray(arguments).slice(1);
	     * }(1, 2, 3));
	     * // => [2, 3]
	     */
	    function toArray(value) {
	      var length = value ? getLength(value) : 0;
	      if (!isLength(length)) {
	        return values(value);
	      }
	      if (!length) {
	        return [];
	      }
	      return lodash.support.unindexedChars && isString(value) ? value.split('') : arrayCopy(value);
	    }
	
	    /**
	     * Converts `value` to a plain object flattening inherited enumerable
	     * properties of `value` to own properties of the plain object.
	     *
	     * @static
	     * @memberOf _
	     * @category Lang
	     * @param {*} value The value to convert.
	     * @returns {Object} Returns the converted plain object.
	     * @example
	     *
	     * function Foo() {
	     *   this.b = 2;
	     * }
	     *
	     * Foo.prototype.c = 3;
	     *
	     * _.assign({ 'a': 1 }, new Foo);
	     * // => { 'a': 1, 'b': 2 }
	     *
	     * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
	     * // => { 'a': 1, 'b': 2, 'c': 3 }
	     */
	    function toPlainObject(value) {
	      return baseCopy(value, keysIn(value));
	    }
	
	    /*------------------------------------------------------------------------*/
	
	    /**
	     * Recursively merges own enumerable properties of the source object(s), that
	     * don't resolve to `undefined` into the destination object. Subsequent sources
	     * overwrite property assignments of previous sources. If `customizer` is
	     * provided it's invoked to produce the merged values of the destination and
	     * source properties. If `customizer` returns `undefined` merging is handled
	     * by the method instead. The `customizer` is bound to `thisArg` and invoked
	     * with five arguments: (objectValue, sourceValue, key, object, source).
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The destination object.
	     * @param {...Object} [sources] The source objects.
	     * @param {Function} [customizer] The function to customize assigned values.
	     * @param {*} [thisArg] The `this` binding of `customizer`.
	     * @returns {Object} Returns `object`.
	     * @example
	     *
	     * var users = {
	     *   'data': [{ 'user': 'barney' }, { 'user': 'fred' }]
	     * };
	     *
	     * var ages = {
	     *   'data': [{ 'age': 36 }, { 'age': 40 }]
	     * };
	     *
	     * _.merge(users, ages);
	     * // => { 'data': [{ 'user': 'barney', 'age': 36 }, { 'user': 'fred', 'age': 40 }] }
	     *
	     * // using a customizer callback
	     * var object = {
	     *   'fruits': ['apple'],
	     *   'vegetables': ['beet']
	     * };
	     *
	     * var other = {
	     *   'fruits': ['banana'],
	     *   'vegetables': ['carrot']
	     * };
	     *
	     * _.merge(object, other, function(a, b) {
	     *   if (_.isArray(a)) {
	     *     return a.concat(b);
	     *   }
	     * });
	     * // => { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot'] }
	     */
	    var merge = createAssigner(baseMerge);
	
	    /**
	     * Assigns own enumerable properties of source object(s) to the destination
	     * object. Subsequent sources overwrite property assignments of previous sources.
	     * If `customizer` is provided it's invoked to produce the assigned values.
	     * The `customizer` is bound to `thisArg` and invoked with five arguments:
	     * (objectValue, sourceValue, key, object, source).
	     *
	     * **Note:** This method mutates `object` and is based on
	     * [`Object.assign`](http://ecma-international.org/ecma-262/6.0/#sec-object.assign).
	     *
	     * @static
	     * @memberOf _
	     * @alias extend
	     * @category Object
	     * @param {Object} object The destination object.
	     * @param {...Object} [sources] The source objects.
	     * @param {Function} [customizer] The function to customize assigned values.
	     * @param {*} [thisArg] The `this` binding of `customizer`.
	     * @returns {Object} Returns `object`.
	     * @example
	     *
	     * _.assign({ 'user': 'barney' }, { 'age': 40 }, { 'user': 'fred' });
	     * // => { 'user': 'fred', 'age': 40 }
	     *
	     * // using a customizer callback
	     * var defaults = _.partialRight(_.assign, function(value, other) {
	     *   return _.isUndefined(value) ? other : value;
	     * });
	     *
	     * defaults({ 'user': 'barney' }, { 'age': 36 }, { 'user': 'fred' });
	     * // => { 'user': 'barney', 'age': 36 }
	     */
	    var assign = createAssigner(function (object, source, customizer) {
	      return customizer ? assignWith(object, source, customizer) : baseAssign(object, source);
	    });
	
	    /**
	     * Creates an object that inherits from the given `prototype` object. If a
	     * `properties` object is provided its own enumerable properties are assigned
	     * to the created object.
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} prototype The object to inherit from.
	     * @param {Object} [properties] The properties to assign to the object.
	     * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
	     * @returns {Object} Returns the new object.
	     * @example
	     *
	     * function Shape() {
	     *   this.x = 0;
	     *   this.y = 0;
	     * }
	     *
	     * function Circle() {
	     *   Shape.call(this);
	     * }
	     *
	     * Circle.prototype = _.create(Shape.prototype, {
	     *   'constructor': Circle
	     * });
	     *
	     * var circle = new Circle;
	     * circle instanceof Circle;
	     * // => true
	     *
	     * circle instanceof Shape;
	     * // => true
	     */
	    function create(prototype, properties, guard) {
	      var result = baseCreate(prototype);
	      if (guard && isIterateeCall(prototype, properties, guard)) {
	        properties = undefined;
	      }
	      return properties ? baseAssign(result, properties) : result;
	    }
	
	    /**
	     * Assigns own enumerable properties of source object(s) to the destination
	     * object for all destination properties that resolve to `undefined`. Once a
	     * property is set, additional values of the same property are ignored.
	     *
	     * **Note:** This method mutates `object`.
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The destination object.
	     * @param {...Object} [sources] The source objects.
	     * @returns {Object} Returns `object`.
	     * @example
	     *
	     * _.defaults({ 'user': 'barney' }, { 'age': 36 }, { 'user': 'fred' });
	     * // => { 'user': 'barney', 'age': 36 }
	     */
	    var defaults = createDefaults(assign, assignDefaults);
	
	    /**
	     * This method is like `_.defaults` except that it recursively assigns
	     * default properties.
	     *
	     * **Note:** This method mutates `object`.
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The destination object.
	     * @param {...Object} [sources] The source objects.
	     * @returns {Object} Returns `object`.
	     * @example
	     *
	     * _.defaultsDeep({ 'user': { 'name': 'barney' } }, { 'user': { 'name': 'fred', 'age': 36 } });
	     * // => { 'user': { 'name': 'barney', 'age': 36 } }
	     *
	     */
	    var defaultsDeep = createDefaults(merge, mergeDefaults);
	
	    /**
	     * This method is like `_.find` except that it returns the key of the first
	     * element `predicate` returns truthy for instead of the element itself.
	     *
	     * If a property name is provided for `predicate` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `predicate` the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The object to search.
	     * @param {Function|Object|string} [predicate=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `predicate`.
	     * @returns {string|undefined} Returns the key of the matched element, else `undefined`.
	     * @example
	     *
	     * var users = {
	     *   'barney':  { 'age': 36, 'active': true },
	     *   'fred':    { 'age': 40, 'active': false },
	     *   'pebbles': { 'age': 1,  'active': true }
	     * };
	     *
	     * _.findKey(users, function(chr) {
	     *   return chr.age < 40;
	     * });
	     * // => 'barney' (iteration order is not guaranteed)
	     *
	     * // using the `_.matches` callback shorthand
	     * _.findKey(users, { 'age': 1, 'active': true });
	     * // => 'pebbles'
	     *
	     * // using the `_.matchesProperty` callback shorthand
	     * _.findKey(users, 'active', false);
	     * // => 'fred'
	     *
	     * // using the `_.property` callback shorthand
	     * _.findKey(users, 'active');
	     * // => 'barney'
	     */
	    var findKey = createFindKey(baseForOwn);
	
	    /**
	     * This method is like `_.findKey` except that it iterates over elements of
	     * a collection in the opposite order.
	     *
	     * If a property name is provided for `predicate` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `predicate` the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The object to search.
	     * @param {Function|Object|string} [predicate=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `predicate`.
	     * @returns {string|undefined} Returns the key of the matched element, else `undefined`.
	     * @example
	     *
	     * var users = {
	     *   'barney':  { 'age': 36, 'active': true },
	     *   'fred':    { 'age': 40, 'active': false },
	     *   'pebbles': { 'age': 1,  'active': true }
	     * };
	     *
	     * _.findLastKey(users, function(chr) {
	     *   return chr.age < 40;
	     * });
	     * // => returns `pebbles` assuming `_.findKey` returns `barney`
	     *
	     * // using the `_.matches` callback shorthand
	     * _.findLastKey(users, { 'age': 36, 'active': true });
	     * // => 'barney'
	     *
	     * // using the `_.matchesProperty` callback shorthand
	     * _.findLastKey(users, 'active', false);
	     * // => 'fred'
	     *
	     * // using the `_.property` callback shorthand
	     * _.findLastKey(users, 'active');
	     * // => 'pebbles'
	     */
	    var findLastKey = createFindKey(baseForOwnRight);
	
	    /**
	     * Iterates over own and inherited enumerable properties of an object invoking
	     * `iteratee` for each property. The `iteratee` is bound to `thisArg` and invoked
	     * with three arguments: (value, key, object). Iteratee functions may exit
	     * iteration early by explicitly returning `false`.
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The object to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {Object} Returns `object`.
	     * @example
	     *
	     * function Foo() {
	     *   this.a = 1;
	     *   this.b = 2;
	     * }
	     *
	     * Foo.prototype.c = 3;
	     *
	     * _.forIn(new Foo, function(value, key) {
	     *   console.log(key);
	     * });
	     * // => logs 'a', 'b', and 'c' (iteration order is not guaranteed)
	     */
	    var forIn = createForIn(baseFor);
	
	    /**
	     * This method is like `_.forIn` except that it iterates over properties of
	     * `object` in the opposite order.
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The object to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {Object} Returns `object`.
	     * @example
	     *
	     * function Foo() {
	     *   this.a = 1;
	     *   this.b = 2;
	     * }
	     *
	     * Foo.prototype.c = 3;
	     *
	     * _.forInRight(new Foo, function(value, key) {
	     *   console.log(key);
	     * });
	     * // => logs 'c', 'b', and 'a' assuming `_.forIn ` logs 'a', 'b', and 'c'
	     */
	    var forInRight = createForIn(baseForRight);
	
	    /**
	     * Iterates over own enumerable properties of an object invoking `iteratee`
	     * for each property. The `iteratee` is bound to `thisArg` and invoked with
	     * three arguments: (value, key, object). Iteratee functions may exit iteration
	     * early by explicitly returning `false`.
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The object to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {Object} Returns `object`.
	     * @example
	     *
	     * function Foo() {
	     *   this.a = 1;
	     *   this.b = 2;
	     * }
	     *
	     * Foo.prototype.c = 3;
	     *
	     * _.forOwn(new Foo, function(value, key) {
	     *   console.log(key);
	     * });
	     * // => logs 'a' and 'b' (iteration order is not guaranteed)
	     */
	    var forOwn = createForOwn(baseForOwn);
	
	    /**
	     * This method is like `_.forOwn` except that it iterates over properties of
	     * `object` in the opposite order.
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The object to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {Object} Returns `object`.
	     * @example
	     *
	     * function Foo() {
	     *   this.a = 1;
	     *   this.b = 2;
	     * }
	     *
	     * Foo.prototype.c = 3;
	     *
	     * _.forOwnRight(new Foo, function(value, key) {
	     *   console.log(key);
	     * });
	     * // => logs 'b' and 'a' assuming `_.forOwn` logs 'a' and 'b'
	     */
	    var forOwnRight = createForOwn(baseForOwnRight);
	
	    /**
	     * Creates an array of function property names from all enumerable properties,
	     * own and inherited, of `object`.
	     *
	     * @static
	     * @memberOf _
	     * @alias methods
	     * @category Object
	     * @param {Object} object The object to inspect.
	     * @returns {Array} Returns the new array of property names.
	     * @example
	     *
	     * _.functions(_);
	     * // => ['after', 'ary', 'assign', ...]
	     */
	    function functions(object) {
	      return baseFunctions(object, keysIn(object));
	    }
	
	    /**
	     * Gets the property value at `path` of `object`. If the resolved value is
	     * `undefined` the `defaultValue` is used in its place.
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The object to query.
	     * @param {Array|string} path The path of the property to get.
	     * @param {*} [defaultValue] The value returned if the resolved value is `undefined`.
	     * @returns {*} Returns the resolved value.
	     * @example
	     *
	     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
	     *
	     * _.get(object, 'a[0].b.c');
	     * // => 3
	     *
	     * _.get(object, ['a', '0', 'b', 'c']);
	     * // => 3
	     *
	     * _.get(object, 'a.b.c', 'default');
	     * // => 'default'
	     */
	    function get(object, path, defaultValue) {
	      var result = object == null ? undefined : baseGet(object, toPath(path), path + '');
	      return result === undefined ? defaultValue : result;
	    }
	
	    /**
	     * Checks if `path` is a direct property.
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The object to query.
	     * @param {Array|string} path The path to check.
	     * @returns {boolean} Returns `true` if `path` is a direct property, else `false`.
	     * @example
	     *
	     * var object = { 'a': { 'b': { 'c': 3 } } };
	     *
	     * _.has(object, 'a');
	     * // => true
	     *
	     * _.has(object, 'a.b.c');
	     * // => true
	     *
	     * _.has(object, ['a', 'b', 'c']);
	     * // => true
	     */
	    function has(object, path) {
	      if (object == null) {
	        return false;
	      }
	      var result = hasOwnProperty.call(object, path);
	      if (!result && !isKey(path)) {
	        path = toPath(path);
	        object = path.length == 1 ? object : baseGet(object, baseSlice(path, 0, -1));
	        if (object == null) {
	          return false;
	        }
	        path = last(path);
	        result = hasOwnProperty.call(object, path);
	      }
	      return result || isLength(object.length) && isIndex(path, object.length) && (isArray(object) || isArguments(object) || isString(object));
	    }
	
	    /**
	     * Creates an object composed of the inverted keys and values of `object`.
	     * If `object` contains duplicate values, subsequent values overwrite property
	     * assignments of previous values unless `multiValue` is `true`.
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The object to invert.
	     * @param {boolean} [multiValue] Allow multiple values per key.
	     * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
	     * @returns {Object} Returns the new inverted object.
	     * @example
	     *
	     * var object = { 'a': 1, 'b': 2, 'c': 1 };
	     *
	     * _.invert(object);
	     * // => { '1': 'c', '2': 'b' }
	     *
	     * // with `multiValue`
	     * _.invert(object, true);
	     * // => { '1': ['a', 'c'], '2': ['b'] }
	     */
	    function invert(object, multiValue, guard) {
	      if (guard && isIterateeCall(object, multiValue, guard)) {
	        multiValue = undefined;
	      }
	      var index = -1,
	          props = keys(object),
	          length = props.length,
	          result = {};
	
	      while (++index < length) {
	        var key = props[index],
	            value = object[key];
	
	        if (multiValue) {
	          if (hasOwnProperty.call(result, value)) {
	            result[value].push(key);
	          } else {
	            result[value] = [key];
	          }
	        } else {
	          result[value] = key;
	        }
	      }
	      return result;
	    }
	
	    /**
	     * Creates an array of the own enumerable property names of `object`.
	     *
	     * **Note:** Non-object values are coerced to objects. See the
	     * [ES spec](http://ecma-international.org/ecma-262/6.0/#sec-object.keys)
	     * for more details.
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The object to query.
	     * @returns {Array} Returns the array of property names.
	     * @example
	     *
	     * function Foo() {
	     *   this.a = 1;
	     *   this.b = 2;
	     * }
	     *
	     * Foo.prototype.c = 3;
	     *
	     * _.keys(new Foo);
	     * // => ['a', 'b'] (iteration order is not guaranteed)
	     *
	     * _.keys('hi');
	     * // => ['0', '1']
	     */
	    var keys = !nativeKeys ? shimKeys : function (object) {
	      var Ctor = object == null ? undefined : object.constructor;
	      if (typeof Ctor == 'function' && Ctor.prototype === object || (typeof object == 'function' ? lodash.support.enumPrototypes : isArrayLike(object))) {
	        return shimKeys(object);
	      }
	      return isObject(object) ? nativeKeys(object) : [];
	    };
	
	    /**
	     * Creates an array of the own and inherited enumerable property names of `object`.
	     *
	     * **Note:** Non-object values are coerced to objects.
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The object to query.
	     * @returns {Array} Returns the array of property names.
	     * @example
	     *
	     * function Foo() {
	     *   this.a = 1;
	     *   this.b = 2;
	     * }
	     *
	     * Foo.prototype.c = 3;
	     *
	     * _.keysIn(new Foo);
	     * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
	     */
	    function keysIn(object) {
	      if (object == null) {
	        return [];
	      }
	      if (!isObject(object)) {
	        object = Object(object);
	      }
	      var length = object.length,
	          support = lodash.support;
	
	      length = length && isLength(length) && (isArray(object) || isArguments(object) || isString(object)) && length || 0;
	
	      var Ctor = object.constructor,
	          index = -1,
	          proto = isFunction(Ctor) && Ctor.prototype || objectProto,
	          isProto = proto === object,
	          result = Array(length),
	          skipIndexes = length > 0,
	          skipErrorProps = support.enumErrorProps && (object === errorProto || object instanceof Error),
	          skipProto = support.enumPrototypes && isFunction(object);
	
	      while (++index < length) {
	        result[index] = index + '';
	      }
	      // lodash skips the `constructor` property when it infers it's iterating
	      // over a `prototype` object because IE < 9 can't set the `[[Enumerable]]`
	      // attribute of an existing property and the `constructor` property of a
	      // prototype defaults to non-enumerable.
	      for (var key in object) {
	        if (!(skipProto && key == 'prototype') && !(skipErrorProps && (key == 'message' || key == 'name')) && !(skipIndexes && isIndex(key, length)) && !(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
	          result.push(key);
	        }
	      }
	      if (support.nonEnumShadows && object !== objectProto) {
	        var tag = object === stringProto ? stringTag : object === errorProto ? errorTag : objToString.call(object),
	            nonEnums = nonEnumProps[tag] || nonEnumProps[objectTag];
	
	        if (tag == objectTag) {
	          proto = objectProto;
	        }
	        length = shadowProps.length;
	        while (length--) {
	          key = shadowProps[length];
	          var nonEnum = nonEnums[key];
	          if (!(isProto && nonEnum) && (nonEnum ? hasOwnProperty.call(object, key) : object[key] !== proto[key])) {
	            result.push(key);
	          }
	        }
	      }
	      return result;
	    }
	
	    /**
	     * The opposite of `_.mapValues`; this method creates an object with the
	     * same values as `object` and keys generated by running each own enumerable
	     * property of `object` through `iteratee`.
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The object to iterate over.
	     * @param {Function|Object|string} [iteratee=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {Object} Returns the new mapped object.
	     * @example
	     *
	     * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
	     *   return key + value;
	     * });
	     * // => { 'a1': 1, 'b2': 2 }
	     */
	    var mapKeys = createObjectMapper(true);
	
	    /**
	     * Creates an object with the same keys as `object` and values generated by
	     * running each own enumerable property of `object` through `iteratee`. The
	     * iteratee function is bound to `thisArg` and invoked with three arguments:
	     * (value, key, object).
	     *
	     * If a property name is provided for `iteratee` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `iteratee` the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The object to iterate over.
	     * @param {Function|Object|string} [iteratee=_.identity] The function invoked
	     *  per iteration.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {Object} Returns the new mapped object.
	     * @example
	     *
	     * _.mapValues({ 'a': 1, 'b': 2 }, function(n) {
	     *   return n * 3;
	     * });
	     * // => { 'a': 3, 'b': 6 }
	     *
	     * var users = {
	     *   'fred':    { 'user': 'fred',    'age': 40 },
	     *   'pebbles': { 'user': 'pebbles', 'age': 1 }
	     * };
	     *
	     * // using the `_.property` callback shorthand
	     * _.mapValues(users, 'age');
	     * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
	     */
	    var mapValues = createObjectMapper();
	
	    /**
	     * The opposite of `_.pick`; this method creates an object composed of the
	     * own and inherited enumerable properties of `object` that are not omitted.
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The source object.
	     * @param {Function|...(string|string[])} [predicate] The function invoked per
	     *  iteration or property names to omit, specified as individual property
	     *  names or arrays of property names.
	     * @param {*} [thisArg] The `this` binding of `predicate`.
	     * @returns {Object} Returns the new object.
	     * @example
	     *
	     * var object = { 'user': 'fred', 'age': 40 };
	     *
	     * _.omit(object, 'age');
	     * // => { 'user': 'fred' }
	     *
	     * _.omit(object, _.isNumber);
	     * // => { 'user': 'fred' }
	     */
	    var omit = restParam(function (object, props) {
	      if (object == null) {
	        return {};
	      }
	      if (typeof props[0] != 'function') {
	        var props = arrayMap(baseFlatten(props), String);
	        return pickByArray(object, baseDifference(keysIn(object), props));
	      }
	      var predicate = bindCallback(props[0], props[1], 3);
	      return pickByCallback(object, function (value, key, object) {
	        return !predicate(value, key, object);
	      });
	    });
	
	    /**
	     * Creates a two dimensional array of the key-value pairs for `object`,
	     * e.g. `[[key1, value1], [key2, value2]]`.
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The object to query.
	     * @returns {Array} Returns the new array of key-value pairs.
	     * @example
	     *
	     * _.pairs({ 'barney': 36, 'fred': 40 });
	     * // => [['barney', 36], ['fred', 40]] (iteration order is not guaranteed)
	     */
	    function pairs(object) {
	      object = toObject(object);
	
	      var index = -1,
	          props = keys(object),
	          length = props.length,
	          result = Array(length);
	
	      while (++index < length) {
	        var key = props[index];
	        result[index] = [key, object[key]];
	      }
	      return result;
	    }
	
	    /**
	     * Creates an object composed of the picked `object` properties. Property
	     * names may be specified as individual arguments or as arrays of property
	     * names. If `predicate` is provided it's invoked for each property of `object`
	     * picking the properties `predicate` returns truthy for. The predicate is
	     * bound to `thisArg` and invoked with three arguments: (value, key, object).
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The source object.
	     * @param {Function|...(string|string[])} [predicate] The function invoked per
	     *  iteration or property names to pick, specified as individual property
	     *  names or arrays of property names.
	     * @param {*} [thisArg] The `this` binding of `predicate`.
	     * @returns {Object} Returns the new object.
	     * @example
	     *
	     * var object = { 'user': 'fred', 'age': 40 };
	     *
	     * _.pick(object, 'user');
	     * // => { 'user': 'fred' }
	     *
	     * _.pick(object, _.isString);
	     * // => { 'user': 'fred' }
	     */
	    var pick = restParam(function (object, props) {
	      if (object == null) {
	        return {};
	      }
	      return typeof props[0] == 'function' ? pickByCallback(object, bindCallback(props[0], props[1], 3)) : pickByArray(object, baseFlatten(props));
	    });
	
	    /**
	     * This method is like `_.get` except that if the resolved value is a function
	     * it's invoked with the `this` binding of its parent object and its result
	     * is returned.
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The object to query.
	     * @param {Array|string} path The path of the property to resolve.
	     * @param {*} [defaultValue] The value returned if the resolved value is `undefined`.
	     * @returns {*} Returns the resolved value.
	     * @example
	     *
	     * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
	     *
	     * _.result(object, 'a[0].b.c1');
	     * // => 3
	     *
	     * _.result(object, 'a[0].b.c2');
	     * // => 4
	     *
	     * _.result(object, 'a.b.c', 'default');
	     * // => 'default'
	     *
	     * _.result(object, 'a.b.c', _.constant('default'));
	     * // => 'default'
	     */
	    function result(object, path, defaultValue) {
	      var result = object == null ? undefined : toObject(object)[path];
	      if (result === undefined) {
	        if (object != null && !isKey(path, object)) {
	          path = toPath(path);
	          object = path.length == 1 ? object : baseGet(object, baseSlice(path, 0, -1));
	          result = object == null ? undefined : toObject(object)[last(path)];
	        }
	        result = result === undefined ? defaultValue : result;
	      }
	      return isFunction(result) ? result.call(object) : result;
	    }
	
	    /**
	     * Sets the property value of `path` on `object`. If a portion of `path`
	     * does not exist it's created.
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The object to augment.
	     * @param {Array|string} path The path of the property to set.
	     * @param {*} value The value to set.
	     * @returns {Object} Returns `object`.
	     * @example
	     *
	     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
	     *
	     * _.set(object, 'a[0].b.c', 4);
	     * console.log(object.a[0].b.c);
	     * // => 4
	     *
	     * _.set(object, 'x[0].y.z', 5);
	     * console.log(object.x[0].y.z);
	     * // => 5
	     */
	    function set(object, path, value) {
	      if (object == null) {
	        return object;
	      }
	      var pathKey = path + '';
	      path = object[pathKey] != null || isKey(path, object) ? [pathKey] : toPath(path);
	
	      var index = -1,
	          length = path.length,
	          lastIndex = length - 1,
	          nested = object;
	
	      while (nested != null && ++index < length) {
	        var key = path[index];
	        if (key === '__proto__' || key === 'constructor') {
	          continue;
	        }
	
	        if (isObject(nested)) {
	          if (index == lastIndex) {
	            nested[key] = value;
	          } else if (nested[key] == null) {
	            nested[key] = isIndex(path[index + 1]) ? [] : {};
	          }
	        }
	        nested = nested[key];
	      }
	      return object;
	    }
	
	    /**
	     * An alternative to `_.reduce`; this method transforms `object` to a new
	     * `accumulator` object which is the result of running each of its own enumerable
	     * properties through `iteratee`, with each invocation potentially mutating
	     * the `accumulator` object. The `iteratee` is bound to `thisArg` and invoked
	     * with four arguments: (accumulator, value, key, object). Iteratee functions
	     * may exit iteration early by explicitly returning `false`.
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Array|Object} object The object to iterate over.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @param {*} [accumulator] The custom accumulator value.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {*} Returns the accumulated value.
	     * @example
	     *
	     * _.transform([2, 3, 4], function(result, n) {
	     *   result.push(n *= n);
	     *   return n % 2 == 0;
	     * });
	     * // => [4, 9]
	     *
	     * _.transform({ 'a': 1, 'b': 2 }, function(result, n, key) {
	     *   result[key] = n * 3;
	     * });
	     * // => { 'a': 3, 'b': 6 }
	     */
	    function transform(object, iteratee, accumulator, thisArg) {
	      var isArr = isArray(object) || isTypedArray(object);
	      iteratee = getCallback(iteratee, thisArg, 4);
	
	      if (accumulator == null) {
	        if (isArr || isObject(object)) {
	          var Ctor = object.constructor;
	          if (isArr) {
	            accumulator = isArray(object) ? new Ctor() : [];
	          } else {
	            accumulator = baseCreate(isFunction(Ctor) ? Ctor.prototype : undefined);
	          }
	        } else {
	          accumulator = {};
	        }
	      }
	      (isArr ? arrayEach : baseForOwn)(object, function (value, index, object) {
	        return iteratee(accumulator, value, index, object);
	      });
	      return accumulator;
	    }
	
	    /**
	     * Creates an array of the own enumerable property values of `object`.
	     *
	     * **Note:** Non-object values are coerced to objects.
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The object to query.
	     * @returns {Array} Returns the array of property values.
	     * @example
	     *
	     * function Foo() {
	     *   this.a = 1;
	     *   this.b = 2;
	     * }
	     *
	     * Foo.prototype.c = 3;
	     *
	     * _.values(new Foo);
	     * // => [1, 2] (iteration order is not guaranteed)
	     *
	     * _.values('hi');
	     * // => ['h', 'i']
	     */
	    function values(object) {
	      return baseValues(object, keys(object));
	    }
	
	    /**
	     * Creates an array of the own and inherited enumerable property values
	     * of `object`.
	     *
	     * **Note:** Non-object values are coerced to objects.
	     *
	     * @static
	     * @memberOf _
	     * @category Object
	     * @param {Object} object The object to query.
	     * @returns {Array} Returns the array of property values.
	     * @example
	     *
	     * function Foo() {
	     *   this.a = 1;
	     *   this.b = 2;
	     * }
	     *
	     * Foo.prototype.c = 3;
	     *
	     * _.valuesIn(new Foo);
	     * // => [1, 2, 3] (iteration order is not guaranteed)
	     */
	    function valuesIn(object) {
	      return baseValues(object, keysIn(object));
	    }
	
	    /*------------------------------------------------------------------------*/
	
	    /**
	     * Checks if `n` is between `start` and up to but not including, `end`. If
	     * `end` is not specified it's set to `start` with `start` then set to `0`.
	     *
	     * @static
	     * @memberOf _
	     * @category Number
	     * @param {number} n The number to check.
	     * @param {number} [start=0] The start of the range.
	     * @param {number} end The end of the range.
	     * @returns {boolean} Returns `true` if `n` is in the range, else `false`.
	     * @example
	     *
	     * _.inRange(3, 2, 4);
	     * // => true
	     *
	     * _.inRange(4, 8);
	     * // => true
	     *
	     * _.inRange(4, 2);
	     * // => false
	     *
	     * _.inRange(2, 2);
	     * // => false
	     *
	     * _.inRange(1.2, 2);
	     * // => true
	     *
	     * _.inRange(5.2, 4);
	     * // => false
	     */
	    function inRange(value, start, end) {
	      start = +start || 0;
	      if (end === undefined) {
	        end = start;
	        start = 0;
	      } else {
	        end = +end || 0;
	      }
	      return value >= nativeMin(start, end) && value < nativeMax(start, end);
	    }
	
	    /**
	     * Produces a random number between `min` and `max` (inclusive). If only one
	     * argument is provided a number between `0` and the given number is returned.
	     * If `floating` is `true`, or either `min` or `max` are floats, a floating-point
	     * number is returned instead of an integer.
	     *
	     * @static
	     * @memberOf _
	     * @category Number
	     * @param {number} [min=0] The minimum possible value.
	     * @param {number} [max=1] The maximum possible value.
	     * @param {boolean} [floating] Specify returning a floating-point number.
	     * @returns {number} Returns the random number.
	     * @example
	     *
	     * _.random(0, 5);
	     * // => an integer between 0 and 5
	     *
	     * _.random(5);
	     * // => also an integer between 0 and 5
	     *
	     * _.random(5, true);
	     * // => a floating-point number between 0 and 5
	     *
	     * _.random(1.2, 5.2);
	     * // => a floating-point number between 1.2 and 5.2
	     */
	    function random(min, max, floating) {
	      if (floating && isIterateeCall(min, max, floating)) {
	        max = floating = undefined;
	      }
	      var noMin = min == null,
	          noMax = max == null;
	
	      if (floating == null) {
	        if (noMax && typeof min == 'boolean') {
	          floating = min;
	          min = 1;
	        } else if (typeof max == 'boolean') {
	          floating = max;
	          noMax = true;
	        }
	      }
	      if (noMin && noMax) {
	        max = 1;
	        noMax = false;
	      }
	      min = +min || 0;
	      if (noMax) {
	        max = min;
	        min = 0;
	      } else {
	        max = +max || 0;
	      }
	      if (floating || min % 1 || max % 1) {
	        var rand = nativeRandom();
	        return nativeMin(min + rand * (max - min + parseFloat('1e-' + ((rand + '').length - 1))), max);
	      }
	      return baseRandom(min, max);
	    }
	
	    /*------------------------------------------------------------------------*/
	
	    /**
	     * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
	     *
	     * @static
	     * @memberOf _
	     * @category String
	     * @param {string} [string=''] The string to convert.
	     * @returns {string} Returns the camel cased string.
	     * @example
	     *
	     * _.camelCase('Foo Bar');
	     * // => 'fooBar'
	     *
	     * _.camelCase('--foo-bar');
	     * // => 'fooBar'
	     *
	     * _.camelCase('__foo_bar__');
	     * // => 'fooBar'
	     */
	    var camelCase = createCompounder(function (result, word, index) {
	      word = word.toLowerCase();
	      return result + (index ? word.charAt(0).toUpperCase() + word.slice(1) : word);
	    });
	
	    /**
	     * Capitalizes the first character of `string`.
	     *
	     * @static
	     * @memberOf _
	     * @category String
	     * @param {string} [string=''] The string to capitalize.
	     * @returns {string} Returns the capitalized string.
	     * @example
	     *
	     * _.capitalize('fred');
	     * // => 'Fred'
	     */
	    function capitalize(string) {
	      string = baseToString(string);
	      return string && string.charAt(0).toUpperCase() + string.slice(1);
	    }
	
	    /**
	     * Deburrs `string` by converting [latin-1 supplementary letters](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
	     * to basic latin letters and removing [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
	     *
	     * @static
	     * @memberOf _
	     * @category String
	     * @param {string} [string=''] The string to deburr.
	     * @returns {string} Returns the deburred string.
	     * @example
	     *
	     * _.deburr('déjà vu');
	     * // => 'deja vu'
	     */
	    function deburr(string) {
	      string = baseToString(string);
	      return string && string.replace(reLatin1, deburrLetter).replace(reComboMark, '');
	    }
	
	    /**
	     * Checks if `string` ends with the given target string.
	     *
	     * @static
	     * @memberOf _
	     * @category String
	     * @param {string} [string=''] The string to search.
	     * @param {string} [target] The string to search for.
	     * @param {number} [position=string.length] The position to search from.
	     * @returns {boolean} Returns `true` if `string` ends with `target`, else `false`.
	     * @example
	     *
	     * _.endsWith('abc', 'c');
	     * // => true
	     *
	     * _.endsWith('abc', 'b');
	     * // => false
	     *
	     * _.endsWith('abc', 'b', 2);
	     * // => true
	     */
	    function endsWith(string, target, position) {
	      string = baseToString(string);
	      target = target + '';
	
	      var length = string.length;
	      position = position === undefined ? length : nativeMin(position < 0 ? 0 : +position || 0, length);
	
	      position -= target.length;
	      return position >= 0 && string.indexOf(target, position) == position;
	    }
	
	    /**
	     * Converts the characters "&", "<", ">", '"', "'", and "\`", in `string` to
	     * their corresponding HTML entities.
	     *
	     * **Note:** No other characters are escaped. To escape additional characters
	     * use a third-party library like [_he_](https://mths.be/he).
	     *
	     * Though the ">" character is escaped for symmetry, characters like
	     * ">" and "/" don't need escaping in HTML and have no special meaning
	     * unless they're part of a tag or unquoted attribute value.
	     * See [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
	     * (under "semi-related fun fact") for more details.
	     *
	     * Backticks are escaped because in Internet Explorer < 9, they can break out
	     * of attribute values or HTML comments. See [#59](https://html5sec.org/#59),
	     * [#102](https://html5sec.org/#102), [#108](https://html5sec.org/#108), and
	     * [#133](https://html5sec.org/#133) of the [HTML5 Security Cheatsheet](https://html5sec.org/)
	     * for more details.
	     *
	     * When working with HTML you should always [quote attribute values](http://wonko.com/post/html-escaping)
	     * to reduce XSS vectors.
	     *
	     * @static
	     * @memberOf _
	     * @category String
	     * @param {string} [string=''] The string to escape.
	     * @returns {string} Returns the escaped string.
	     * @example
	     *
	     * _.escape('fred, barney, & pebbles');
	     * // => 'fred, barney, &amp; pebbles'
	     */
	    function escape(string) {
	      // Reset `lastIndex` because in IE < 9 `String#replace` does not.
	      string = baseToString(string);
	      return string && reHasUnescapedHtml.test(string) ? string.replace(reUnescapedHtml, escapeHtmlChar) : string;
	    }
	
	    /**
	     * Escapes the `RegExp` special characters "\", "/", "^", "$", ".", "|", "?",
	     * "*", "+", "(", ")", "[", "]", "{" and "}" in `string`.
	     *
	     * @static
	     * @memberOf _
	     * @category String
	     * @param {string} [string=''] The string to escape.
	     * @returns {string} Returns the escaped string.
	     * @example
	     *
	     * _.escapeRegExp('[lodash](https://lodash.com/)');
	     * // => '\[lodash\]\(https:\/\/lodash\.com\/\)'
	     */
	    function escapeRegExp(string) {
	      string = baseToString(string);
	      return string && reHasRegExpChars.test(string) ? string.replace(reRegExpChars, escapeRegExpChar) : string || '(?:)';
	    }
	
	    /**
	     * Converts `string` to [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
	     *
	     * @static
	     * @memberOf _
	     * @category String
	     * @param {string} [string=''] The string to convert.
	     * @returns {string} Returns the kebab cased string.
	     * @example
	     *
	     * _.kebabCase('Foo Bar');
	     * // => 'foo-bar'
	     *
	     * _.kebabCase('fooBar');
	     * // => 'foo-bar'
	     *
	     * _.kebabCase('__foo_bar__');
	     * // => 'foo-bar'
	     */
	    var kebabCase = createCompounder(function (result, word, index) {
	      return result + (index ? '-' : '') + word.toLowerCase();
	    });
	
	    /**
	     * Pads `string` on the left and right sides if it's shorter than `length`.
	     * Padding characters are truncated if they can't be evenly divided by `length`.
	     *
	     * @static
	     * @memberOf _
	     * @category String
	     * @param {string} [string=''] The string to pad.
	     * @param {number} [length=0] The padding length.
	     * @param {string} [chars=' '] The string used as padding.
	     * @returns {string} Returns the padded string.
	     * @example
	     *
	     * _.pad('abc', 8);
	     * // => '  abc   '
	     *
	     * _.pad('abc', 8, '_-');
	     * // => '_-abc_-_'
	     *
	     * _.pad('abc', 3);
	     * // => 'abc'
	     */
	    function pad(string, length, chars) {
	      string = baseToString(string);
	      length = +length;
	
	      var strLength = string.length;
	      if (strLength >= length || !nativeIsFinite(length)) {
	        return string;
	      }
	      var mid = (length - strLength) / 2,
	          leftLength = nativeFloor(mid),
	          rightLength = nativeCeil(mid);
	
	      chars = createPadding('', rightLength, chars);
	      return chars.slice(0, leftLength) + string + chars;
	    }
	
	    /**
	     * Pads `string` on the left side if it's shorter than `length`. Padding
	     * characters are truncated if they exceed `length`.
	     *
	     * @static
	     * @memberOf _
	     * @category String
	     * @param {string} [string=''] The string to pad.
	     * @param {number} [length=0] The padding length.
	     * @param {string} [chars=' '] The string used as padding.
	     * @returns {string} Returns the padded string.
	     * @example
	     *
	     * _.padLeft('abc', 6);
	     * // => '   abc'
	     *
	     * _.padLeft('abc', 6, '_-');
	     * // => '_-_abc'
	     *
	     * _.padLeft('abc', 3);
	     * // => 'abc'
	     */
	    var padLeft = createPadDir();
	
	    /**
	     * Pads `string` on the right side if it's shorter than `length`. Padding
	     * characters are truncated if they exceed `length`.
	     *
	     * @static
	     * @memberOf _
	     * @category String
	     * @param {string} [string=''] The string to pad.
	     * @param {number} [length=0] The padding length.
	     * @param {string} [chars=' '] The string used as padding.
	     * @returns {string} Returns the padded string.
	     * @example
	     *
	     * _.padRight('abc', 6);
	     * // => 'abc   '
	     *
	     * _.padRight('abc', 6, '_-');
	     * // => 'abc_-_'
	     *
	     * _.padRight('abc', 3);
	     * // => 'abc'
	     */
	    var padRight = createPadDir(true);
	
	    /**
	     * Converts `string` to an integer of the specified radix. If `radix` is
	     * `undefined` or `0`, a `radix` of `10` is used unless `value` is a hexadecimal,
	     * in which case a `radix` of `16` is used.
	     *
	     * **Note:** This method aligns with the [ES5 implementation](https://es5.github.io/#E)
	     * of `parseInt`.
	     *
	     * @static
	     * @memberOf _
	     * @category String
	     * @param {string} string The string to convert.
	     * @param {number} [radix] The radix to interpret `value` by.
	     * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
	     * @returns {number} Returns the converted integer.
	     * @example
	     *
	     * _.parseInt('08');
	     * // => 8
	     *
	     * _.map(['6', '08', '10'], _.parseInt);
	     * // => [6, 8, 10]
	     */
	    function parseInt(string, radix, guard) {
	      // Firefox < 21 and Opera < 15 follow ES3 for `parseInt`.
	      // Chrome fails to trim leading <BOM> whitespace characters.
	      // See https://code.google.com/p/v8/issues/detail?id=3109 for more details.
	      if (guard ? isIterateeCall(string, radix, guard) : radix == null) {
	        radix = 0;
	      } else if (radix) {
	        radix = +radix;
	      }
	      string = trim(string);
	      return nativeParseInt(string, radix || (reHasHexPrefix.test(string) ? 16 : 10));
	    }
	
	    /**
	     * Repeats the given string `n` times.
	     *
	     * @static
	     * @memberOf _
	     * @category String
	     * @param {string} [string=''] The string to repeat.
	     * @param {number} [n=0] The number of times to repeat the string.
	     * @returns {string} Returns the repeated string.
	     * @example
	     *
	     * _.repeat('*', 3);
	     * // => '***'
	     *
	     * _.repeat('abc', 2);
	     * // => 'abcabc'
	     *
	     * _.repeat('abc', 0);
	     * // => ''
	     */
	    function repeat(string, n) {
	      var result = '';
	      string = baseToString(string);
	      n = +n;
	      if (n < 1 || !string || !nativeIsFinite(n)) {
	        return result;
	      }
	      // Leverage the exponentiation by squaring algorithm for a faster repeat.
	      // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
	      do {
	        if (n % 2) {
	          result += string;
	        }
	        n = nativeFloor(n / 2);
	        string += string;
	      } while (n);
	
	      return result;
	    }
	
	    /**
	     * Converts `string` to [snake case](https://en.wikipedia.org/wiki/Snake_case).
	     *
	     * @static
	     * @memberOf _
	     * @category String
	     * @param {string} [string=''] The string to convert.
	     * @returns {string} Returns the snake cased string.
	     * @example
	     *
	     * _.snakeCase('Foo Bar');
	     * // => 'foo_bar'
	     *
	     * _.snakeCase('fooBar');
	     * // => 'foo_bar'
	     *
	     * _.snakeCase('--foo-bar');
	     * // => 'foo_bar'
	     */
	    var snakeCase = createCompounder(function (result, word, index) {
	      return result + (index ? '_' : '') + word.toLowerCase();
	    });
	
	    /**
	     * Converts `string` to [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
	     *
	     * @static
	     * @memberOf _
	     * @category String
	     * @param {string} [string=''] The string to convert.
	     * @returns {string} Returns the start cased string.
	     * @example
	     *
	     * _.startCase('--foo-bar');
	     * // => 'Foo Bar'
	     *
	     * _.startCase('fooBar');
	     * // => 'Foo Bar'
	     *
	     * _.startCase('__foo_bar__');
	     * // => 'Foo Bar'
	     */
	    var startCase = createCompounder(function (result, word, index) {
	      return result + (index ? ' ' : '') + (word.charAt(0).toUpperCase() + word.slice(1));
	    });
	
	    /**
	     * Checks if `string` starts with the given target string.
	     *
	     * @static
	     * @memberOf _
	     * @category String
	     * @param {string} [string=''] The string to search.
	     * @param {string} [target] The string to search for.
	     * @param {number} [position=0] The position to search from.
	     * @returns {boolean} Returns `true` if `string` starts with `target`, else `false`.
	     * @example
	     *
	     * _.startsWith('abc', 'a');
	     * // => true
	     *
	     * _.startsWith('abc', 'b');
	     * // => false
	     *
	     * _.startsWith('abc', 'b', 1);
	     * // => true
	     */
	    function startsWith(string, target, position) {
	      string = baseToString(string);
	      position = position == null ? 0 : nativeMin(position < 0 ? 0 : +position || 0, string.length);
	
	      return string.lastIndexOf(target, position) == position;
	    }
	
	    /**
	     * Creates a compiled template function that can interpolate data properties
	     * in "interpolate" delimiters, HTML-escape interpolated data properties in
	     * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
	     * properties may be accessed as free variables in the template. If a setting
	     * object is provided it takes precedence over `_.templateSettings` values.
	     *
	     * **Note:** In the development build `_.template` utilizes
	     * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
	     * for easier debugging.
	     *
	     * For more information on precompiling templates see
	     * [lodash's custom builds documentation](https://lodash.com/custom-builds).
	     *
	     * For more information on Chrome extension sandboxes see
	     * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
	     *
	     * @static
	     * @memberOf _
	     * @category String
	     * @param {string} [string=''] The template string.
	     * @param {Object} [options] The options object.
	     * @param {RegExp} [options.escape] The HTML "escape" delimiter.
	     * @param {RegExp} [options.evaluate] The "evaluate" delimiter.
	     * @param {Object} [options.imports] An object to import into the template as free variables.
	     * @param {RegExp} [options.interpolate] The "interpolate" delimiter.
	     * @param {string} [options.sourceURL] The sourceURL of the template's compiled source.
	     * @param {string} [options.variable] The data object variable name.
	     * @param- {Object} [otherOptions] Enables the legacy `options` param signature.
	     * @returns {Function} Returns the compiled template function.
	     * @example
	     *
	     * // using the "interpolate" delimiter to create a compiled template
	     * var compiled = _.template('hello <%= user %>!');
	     * compiled({ 'user': 'fred' });
	     * // => 'hello fred!'
	     *
	     * // using the HTML "escape" delimiter to escape data property values
	     * var compiled = _.template('<b><%- value %></b>');
	     * compiled({ 'value': '<script>' });
	     * // => '<b>&lt;script&gt;</b>'
	     *
	     * // using the "evaluate" delimiter to execute JavaScript and generate HTML
	     * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
	     * compiled({ 'users': ['fred', 'barney'] });
	     * // => '<li>fred</li><li>barney</li>'
	     *
	     * // using the internal `print` function in "evaluate" delimiters
	     * var compiled = _.template('<% print("hello " + user); %>!');
	     * compiled({ 'user': 'barney' });
	     * // => 'hello barney!'
	     *
	     * // using the ES delimiter as an alternative to the default "interpolate" delimiter
	     * var compiled = _.template('hello ${ user }!');
	     * compiled({ 'user': 'pebbles' });
	     * // => 'hello pebbles!'
	     *
	     * // using custom template delimiters
	     * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
	     * var compiled = _.template('hello {{ user }}!');
	     * compiled({ 'user': 'mustache' });
	     * // => 'hello mustache!'
	     *
	     * // using backslashes to treat delimiters as plain text
	     * var compiled = _.template('<%= "\\<%- value %\\>" %>');
	     * compiled({ 'value': 'ignored' });
	     * // => '<%- value %>'
	     *
	     * // using the `imports` option to import `jQuery` as `jq`
	     * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
	     * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
	     * compiled({ 'users': ['fred', 'barney'] });
	     * // => '<li>fred</li><li>barney</li>'
	     *
	     * // using the `sourceURL` option to specify a custom sourceURL for the template
	     * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
	     * compiled(data);
	     * // => find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector
	     *
	     * // using the `variable` option to ensure a with-statement isn't used in the compiled template
	     * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
	     * compiled.source;
	     * // => function(data) {
	     * //   var __t, __p = '';
	     * //   __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
	     * //   return __p;
	     * // }
	     *
	     * // using the `source` property to inline compiled templates for meaningful
	     * // line numbers in error messages and a stack trace
	     * fs.writeFileSync(path.join(cwd, 'jst.js'), '\
	     *   var JST = {\
	     *     "main": ' + _.template(mainText).source + '\
	     *   };\
	     * ');
	     */
	    function template(string, options, otherOptions) {
	      // Based on John Resig's `tmpl` implementation (http://ejohn.org/blog/javascript-micro-templating/)
	      // and Laura Doktorova's doT.js (https://github.com/olado/doT).
	      var settings = lodash.templateSettings;
	
	      if (otherOptions && isIterateeCall(string, options, otherOptions)) {
	        options = otherOptions = undefined;
	      }
	      string = baseToString(string);
	      options = assignWith(baseAssign({}, otherOptions || options), settings, assignOwnDefaults);
	
	      var imports = assignWith(baseAssign({}, options.imports), settings.imports, assignOwnDefaults),
	          importsKeys = keys(imports),
	          importsValues = baseValues(imports, importsKeys);
	
	      var isEscaping,
	          isEvaluating,
	          index = 0,
	          interpolate = options.interpolate || reNoMatch,
	          source = "__p += '";
	
	      // Compile the regexp to match each delimiter.
	      var reDelimiters = RegExp((options.escape || reNoMatch).source + '|' + interpolate.source + '|' + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' + (options.evaluate || reNoMatch).source + '|$', 'g');
	
	      // Use a sourceURL for easier debugging.
	      var sourceURL = '//# sourceURL=' + ('sourceURL' in options ? options.sourceURL : 'lodash.templateSources[' + ++templateCounter + ']') + '\n';
	
	      string.replace(reDelimiters, function (match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
	        interpolateValue || (interpolateValue = esTemplateValue);
	
	        // Escape characters that can't be included in string literals.
	        source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
	
	        // Replace delimiters with snippets.
	        if (escapeValue) {
	          isEscaping = true;
	          source += "' +\n__e(" + escapeValue + ") +\n'";
	        }
	        if (evaluateValue) {
	          isEvaluating = true;
	          source += "';\n" + evaluateValue + ";\n__p += '";
	        }
	        if (interpolateValue) {
	          source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
	        }
	        index = offset + match.length;
	
	        // The JS engine embedded in Adobe products requires returning the `match`
	        // string in order to produce the correct `offset` value.
	        return match;
	      });
	
	      source += "';\n";
	
	      // If `variable` is not specified wrap a with-statement around the generated
	      // code to add the data object to the top of the scope chain.
	      var variable = options.variable;
	      if (!variable) {
	        source = 'with (obj) {\n' + source + '\n}\n';
	      }
	      // Cleanup code by stripping empty strings.
	      source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source).replace(reEmptyStringMiddle, '$1').replace(reEmptyStringTrailing, '$1;');
	
	      // Frame code as the function body.
	      source = 'function(' + (variable || 'obj') + ') {\n' + (variable ? '' : 'obj || (obj = {});\n') + "var __t, __p = ''" + (isEscaping ? ', __e = _.escape' : '') + (isEvaluating ? ', __j = Array.prototype.join;\n' + "function print() { __p += __j.call(arguments, '') }\n" : ';\n') + source + 'return __p\n}';
	
	      var result = attempt(function () {
	        return Function(importsKeys, sourceURL + 'return ' + source).apply(undefined, importsValues);
	      });
	
	      // Provide the compiled function's source by its `toString` method or
	      // the `source` property as a convenience for inlining compiled templates.
	      result.source = source;
	      if (isError(result)) {
	        throw result;
	      }
	      return result;
	    }
	
	    /**
	     * Removes leading and trailing whitespace or specified characters from `string`.
	     *
	     * @static
	     * @memberOf _
	     * @category String
	     * @param {string} [string=''] The string to trim.
	     * @param {string} [chars=whitespace] The characters to trim.
	     * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
	     * @returns {string} Returns the trimmed string.
	     * @example
	     *
	     * _.trim('  abc  ');
	     * // => 'abc'
	     *
	     * _.trim('-_-abc-_-', '_-');
	     * // => 'abc'
	     *
	     * _.map(['  foo  ', '  bar  '], _.trim);
	     * // => ['foo', 'bar']
	     */
	    function trim(string, chars, guard) {
	      var value = string;
	      string = baseToString(string);
	      if (!string) {
	        return string;
	      }
	      if (guard ? isIterateeCall(value, chars, guard) : chars == null) {
	        return string.slice(trimmedLeftIndex(string), trimmedRightIndex(string) + 1);
	      }
	      chars = chars + '';
	      return string.slice(charsLeftIndex(string, chars), charsRightIndex(string, chars) + 1);
	    }
	
	    /**
	     * Removes leading whitespace or specified characters from `string`.
	     *
	     * @static
	     * @memberOf _
	     * @category String
	     * @param {string} [string=''] The string to trim.
	     * @param {string} [chars=whitespace] The characters to trim.
	     * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
	     * @returns {string} Returns the trimmed string.
	     * @example
	     *
	     * _.trimLeft('  abc  ');
	     * // => 'abc  '
	     *
	     * _.trimLeft('-_-abc-_-', '_-');
	     * // => 'abc-_-'
	     */
	    function trimLeft(string, chars, guard) {
	      var value = string;
	      string = baseToString(string);
	      if (!string) {
	        return string;
	      }
	      if (guard ? isIterateeCall(value, chars, guard) : chars == null) {
	        return string.slice(trimmedLeftIndex(string));
	      }
	      return string.slice(charsLeftIndex(string, chars + ''));
	    }
	
	    /**
	     * Removes trailing whitespace or specified characters from `string`.
	     *
	     * @static
	     * @memberOf _
	     * @category String
	     * @param {string} [string=''] The string to trim.
	     * @param {string} [chars=whitespace] The characters to trim.
	     * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
	     * @returns {string} Returns the trimmed string.
	     * @example
	     *
	     * _.trimRight('  abc  ');
	     * // => '  abc'
	     *
	     * _.trimRight('-_-abc-_-', '_-');
	     * // => '-_-abc'
	     */
	    function trimRight(string, chars, guard) {
	      var value = string;
	      string = baseToString(string);
	      if (!string) {
	        return string;
	      }
	      if (guard ? isIterateeCall(value, chars, guard) : chars == null) {
	        return string.slice(0, trimmedRightIndex(string) + 1);
	      }
	      return string.slice(0, charsRightIndex(string, chars + '') + 1);
	    }
	
	    /**
	     * Truncates `string` if it's longer than the given maximum string length.
	     * The last characters of the truncated string are replaced with the omission
	     * string which defaults to "...".
	     *
	     * @static
	     * @memberOf _
	     * @category String
	     * @param {string} [string=''] The string to truncate.
	     * @param {Object|number} [options] The options object or maximum string length.
	     * @param {number} [options.length=30] The maximum string length.
	     * @param {string} [options.omission='...'] The string to indicate text is omitted.
	     * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
	     * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
	     * @returns {string} Returns the truncated string.
	     * @example
	     *
	     * _.trunc('hi-diddly-ho there, neighborino');
	     * // => 'hi-diddly-ho there, neighbo...'
	     *
	     * _.trunc('hi-diddly-ho there, neighborino', 24);
	     * // => 'hi-diddly-ho there, n...'
	     *
	     * _.trunc('hi-diddly-ho there, neighborino', {
	     *   'length': 24,
	     *   'separator': ' '
	     * });
	     * // => 'hi-diddly-ho there,...'
	     *
	     * _.trunc('hi-diddly-ho there, neighborino', {
	     *   'length': 24,
	     *   'separator': /,? +/
	     * });
	     * // => 'hi-diddly-ho there...'
	     *
	     * _.trunc('hi-diddly-ho there, neighborino', {
	     *   'omission': ' [...]'
	     * });
	     * // => 'hi-diddly-ho there, neig [...]'
	     */
	    function trunc(string, options, guard) {
	      if (guard && isIterateeCall(string, options, guard)) {
	        options = undefined;
	      }
	      var length = DEFAULT_TRUNC_LENGTH,
	          omission = DEFAULT_TRUNC_OMISSION;
	
	      if (options != null) {
	        if (isObject(options)) {
	          var separator = 'separator' in options ? options.separator : separator;
	          length = 'length' in options ? +options.length || 0 : length;
	          omission = 'omission' in options ? baseToString(options.omission) : omission;
	        } else {
	          length = +options || 0;
	        }
	      }
	      string = baseToString(string);
	      if (length >= string.length) {
	        return string;
	      }
	      var end = length - omission.length;
	      if (end < 1) {
	        return omission;
	      }
	      var result = string.slice(0, end);
	      if (separator == null) {
	        return result + omission;
	      }
	      if (isRegExp(separator)) {
	        if (string.slice(end).search(separator)) {
	          var match,
	              newEnd,
	              substring = string.slice(0, end);
	
	          if (!separator.global) {
	            separator = RegExp(separator.source, (reFlags.exec(separator) || '') + 'g');
	          }
	          separator.lastIndex = 0;
	          while (match = separator.exec(substring)) {
	            newEnd = match.index;
	          }
	          result = result.slice(0, newEnd == null ? end : newEnd);
	        }
	      } else if (string.indexOf(separator, end) != end) {
	        var index = result.lastIndexOf(separator);
	        if (index > -1) {
	          result = result.slice(0, index);
	        }
	      }
	      return result + omission;
	    }
	
	    /**
	     * The inverse of `_.escape`; this method converts the HTML entities
	     * `&amp;`, `&lt;`, `&gt;`, `&quot;`, `&#39;`, and `&#96;` in `string` to their
	     * corresponding characters.
	     *
	     * **Note:** No other HTML entities are unescaped. To unescape additional HTML
	     * entities use a third-party library like [_he_](https://mths.be/he).
	     *
	     * @static
	     * @memberOf _
	     * @category String
	     * @param {string} [string=''] The string to unescape.
	     * @returns {string} Returns the unescaped string.
	     * @example
	     *
	     * _.unescape('fred, barney, &amp; pebbles');
	     * // => 'fred, barney, & pebbles'
	     */
	    function unescape(string) {
	      string = baseToString(string);
	      return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string;
	    }
	
	    /**
	     * Splits `string` into an array of its words.
	     *
	     * @static
	     * @memberOf _
	     * @category String
	     * @param {string} [string=''] The string to inspect.
	     * @param {RegExp|string} [pattern] The pattern to match words.
	     * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
	     * @returns {Array} Returns the words of `string`.
	     * @example
	     *
	     * _.words('fred, barney, & pebbles');
	     * // => ['fred', 'barney', 'pebbles']
	     *
	     * _.words('fred, barney, & pebbles', /[^, ]+/g);
	     * // => ['fred', 'barney', '&', 'pebbles']
	     */
	    function words(string, pattern, guard) {
	      if (guard && isIterateeCall(string, pattern, guard)) {
	        pattern = undefined;
	      }
	      string = baseToString(string);
	      return string.match(pattern || reWords) || [];
	    }
	
	    /*------------------------------------------------------------------------*/
	
	    /**
	     * Attempts to invoke `func`, returning either the result or the caught error
	     * object. Any additional arguments are provided to `func` when it's invoked.
	     *
	     * @static
	     * @memberOf _
	     * @category Utility
	     * @param {Function} func The function to attempt.
	     * @returns {*} Returns the `func` result or error object.
	     * @example
	     *
	     * // avoid throwing errors for invalid selectors
	     * var elements = _.attempt(function(selector) {
	     *   return document.querySelectorAll(selector);
	     * }, '>_>');
	     *
	     * if (_.isError(elements)) {
	     *   elements = [];
	     * }
	     */
	    var attempt = restParam(function (func, args) {
	      try {
	        return func.apply(undefined, args);
	      } catch (e) {
	        return isError(e) ? e : new Error(e);
	      }
	    });
	
	    /**
	     * Creates a function that invokes `func` with the `this` binding of `thisArg`
	     * and arguments of the created function. If `func` is a property name the
	     * created callback returns the property value for a given element. If `func`
	     * is an object the created callback returns `true` for elements that contain
	     * the equivalent object properties, otherwise it returns `false`.
	     *
	     * @static
	     * @memberOf _
	     * @alias iteratee
	     * @category Utility
	     * @param {*} [func=_.identity] The value to convert to a callback.
	     * @param {*} [thisArg] The `this` binding of `func`.
	     * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
	     * @returns {Function} Returns the callback.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney', 'age': 36 },
	     *   { 'user': 'fred',   'age': 40 }
	     * ];
	     *
	     * // wrap to create custom callback shorthands
	     * _.callback = _.wrap(_.callback, function(callback, func, thisArg) {
	     *   var match = /^(.+?)__([gl]t)(.+)$/.exec(func);
	     *   if (!match) {
	     *     return callback(func, thisArg);
	     *   }
	     *   return function(object) {
	     *     return match[2] == 'gt'
	     *       ? object[match[1]] > match[3]
	     *       : object[match[1]] < match[3];
	     *   };
	     * });
	     *
	     * _.filter(users, 'age__gt36');
	     * // => [{ 'user': 'fred', 'age': 40 }]
	     */
	    function callback(func, thisArg, guard) {
	      if (guard && isIterateeCall(func, thisArg, guard)) {
	        thisArg = undefined;
	      }
	      return isObjectLike(func) ? matches(func) : baseCallback(func, thisArg);
	    }
	
	    /**
	     * Creates a function that returns `value`.
	     *
	     * @static
	     * @memberOf _
	     * @category Utility
	     * @param {*} value The value to return from the new function.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * var object = { 'user': 'fred' };
	     * var getter = _.constant(object);
	     *
	     * getter() === object;
	     * // => true
	     */
	    function constant(value) {
	      return function () {
	        return value;
	      };
	    }
	
	    /**
	     * This method returns the first argument provided to it.
	     *
	     * @static
	     * @memberOf _
	     * @category Utility
	     * @param {*} value Any value.
	     * @returns {*} Returns `value`.
	     * @example
	     *
	     * var object = { 'user': 'fred' };
	     *
	     * _.identity(object) === object;
	     * // => true
	     */
	    function identity(value) {
	      return value;
	    }
	
	    /**
	     * Creates a function that performs a deep comparison between a given object
	     * and `source`, returning `true` if the given object has equivalent property
	     * values, else `false`.
	     *
	     * **Note:** This method supports comparing arrays, booleans, `Date` objects,
	     * numbers, `Object` objects, regexes, and strings. Objects are compared by
	     * their own, not inherited, enumerable properties. For comparing a single
	     * own or inherited property value see `_.matchesProperty`.
	     *
	     * @static
	     * @memberOf _
	     * @category Utility
	     * @param {Object} source The object of property values to match.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney', 'age': 36, 'active': true },
	     *   { 'user': 'fred',   'age': 40, 'active': false }
	     * ];
	     *
	     * _.filter(users, _.matches({ 'age': 40, 'active': false }));
	     * // => [{ 'user': 'fred', 'age': 40, 'active': false }]
	     */
	    function matches(source) {
	      return baseMatches(baseClone(source, true));
	    }
	
	    /**
	     * Creates a function that compares the property value of `path` on a given
	     * object to `value`.
	     *
	     * **Note:** This method supports comparing arrays, booleans, `Date` objects,
	     * numbers, `Object` objects, regexes, and strings. Objects are compared by
	     * their own, not inherited, enumerable properties.
	     *
	     * @static
	     * @memberOf _
	     * @category Utility
	     * @param {Array|string} path The path of the property to get.
	     * @param {*} srcValue The value to match.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * var users = [
	     *   { 'user': 'barney' },
	     *   { 'user': 'fred' }
	     * ];
	     *
	     * _.find(users, _.matchesProperty('user', 'fred'));
	     * // => { 'user': 'fred' }
	     */
	    function matchesProperty(path, srcValue) {
	      return baseMatchesProperty(path, baseClone(srcValue, true));
	    }
	
	    /**
	     * Creates a function that invokes the method at `path` on a given object.
	     * Any additional arguments are provided to the invoked method.
	     *
	     * @static
	     * @memberOf _
	     * @category Utility
	     * @param {Array|string} path The path of the method to invoke.
	     * @param {...*} [args] The arguments to invoke the method with.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * var objects = [
	     *   { 'a': { 'b': { 'c': _.constant(2) } } },
	     *   { 'a': { 'b': { 'c': _.constant(1) } } }
	     * ];
	     *
	     * _.map(objects, _.method('a.b.c'));
	     * // => [2, 1]
	     *
	     * _.invoke(_.sortBy(objects, _.method(['a', 'b', 'c'])), 'a.b.c');
	     * // => [1, 2]
	     */
	    var method = restParam(function (path, args) {
	      return function (object) {
	        return invokePath(object, path, args);
	      };
	    });
	
	    /**
	     * The opposite of `_.method`; this method creates a function that invokes
	     * the method at a given path on `object`. Any additional arguments are
	     * provided to the invoked method.
	     *
	     * @static
	     * @memberOf _
	     * @category Utility
	     * @param {Object} object The object to query.
	     * @param {...*} [args] The arguments to invoke the method with.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * var array = _.times(3, _.constant),
	     *     object = { 'a': array, 'b': array, 'c': array };
	     *
	     * _.map(['a[2]', 'c[0]'], _.methodOf(object));
	     * // => [2, 0]
	     *
	     * _.map([['a', '2'], ['c', '0']], _.methodOf(object));
	     * // => [2, 0]
	     */
	    var methodOf = restParam(function (object, args) {
	      return function (path) {
	        return invokePath(object, path, args);
	      };
	    });
	
	    /**
	     * Adds all own enumerable function properties of a source object to the
	     * destination object. If `object` is a function then methods are added to
	     * its prototype as well.
	     *
	     * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
	     * avoid conflicts caused by modifying the original.
	     *
	     * @static
	     * @memberOf _
	     * @category Utility
	     * @param {Function|Object} [object=lodash] The destination object.
	     * @param {Object} source The object of functions to add.
	     * @param {Object} [options] The options object.
	     * @param {boolean} [options.chain=true] Specify whether the functions added
	     *  are chainable.
	     * @returns {Function|Object} Returns `object`.
	     * @example
	     *
	     * function vowels(string) {
	     *   return _.filter(string, function(v) {
	     *     return /[aeiou]/i.test(v);
	     *   });
	     * }
	     *
	     * _.mixin({ 'vowels': vowels });
	     * _.vowels('fred');
	     * // => ['e']
	     *
	     * _('fred').vowels().value();
	     * // => ['e']
	     *
	     * _.mixin({ 'vowels': vowels }, { 'chain': false });
	     * _('fred').vowels();
	     * // => ['e']
	     */
	    function mixin(object, source, options) {
	      if (options == null) {
	        var isObj = isObject(source),
	            props = isObj ? keys(source) : undefined,
	            methodNames = props && props.length ? baseFunctions(source, props) : undefined;
	
	        if (!(methodNames ? methodNames.length : isObj)) {
	          methodNames = false;
	          options = source;
	          source = object;
	          object = this;
	        }
	      }
	      if (!methodNames) {
	        methodNames = baseFunctions(source, keys(source));
	      }
	      var chain = true,
	          index = -1,
	          isFunc = isFunction(object),
	          length = methodNames.length;
	
	      if (options === false) {
	        chain = false;
	      } else if (isObject(options) && 'chain' in options) {
	        chain = options.chain;
	      }
	      while (++index < length) {
	        var methodName = methodNames[index],
	            func = source[methodName];
	
	        object[methodName] = func;
	        if (isFunc) {
	          object.prototype[methodName] = function (func) {
	            return function () {
	              var chainAll = this.__chain__;
	              if (chain || chainAll) {
	                var result = object(this.__wrapped__),
	                    actions = result.__actions__ = arrayCopy(this.__actions__);
	
	                actions.push({ 'func': func, 'args': arguments, 'thisArg': object });
	                result.__chain__ = chainAll;
	                return result;
	              }
	              return func.apply(object, arrayPush([this.value()], arguments));
	            };
	          }(func);
	        }
	      }
	      return object;
	    }
	
	    /**
	     * Reverts the `_` variable to its previous value and returns a reference to
	     * the `lodash` function.
	     *
	     * @static
	     * @memberOf _
	     * @category Utility
	     * @returns {Function} Returns the `lodash` function.
	     * @example
	     *
	     * var lodash = _.noConflict();
	     */
	    function noConflict() {
	      root._ = oldDash;
	      return this;
	    }
	
	    /**
	     * A no-operation function that returns `undefined` regardless of the
	     * arguments it receives.
	     *
	     * @static
	     * @memberOf _
	     * @category Utility
	     * @example
	     *
	     * var object = { 'user': 'fred' };
	     *
	     * _.noop(object) === undefined;
	     * // => true
	     */
	    function noop() {}
	    // No operation performed.
	
	
	    /**
	     * Creates a function that returns the property value at `path` on a
	     * given object.
	     *
	     * @static
	     * @memberOf _
	     * @category Utility
	     * @param {Array|string} path The path of the property to get.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * var objects = [
	     *   { 'a': { 'b': { 'c': 2 } } },
	     *   { 'a': { 'b': { 'c': 1 } } }
	     * ];
	     *
	     * _.map(objects, _.property('a.b.c'));
	     * // => [2, 1]
	     *
	     * _.pluck(_.sortBy(objects, _.property(['a', 'b', 'c'])), 'a.b.c');
	     * // => [1, 2]
	     */
	    function property(path) {
	      return isKey(path) ? baseProperty(path) : basePropertyDeep(path);
	    }
	
	    /**
	     * The opposite of `_.property`; this method creates a function that returns
	     * the property value at a given path on `object`.
	     *
	     * @static
	     * @memberOf _
	     * @category Utility
	     * @param {Object} object The object to query.
	     * @returns {Function} Returns the new function.
	     * @example
	     *
	     * var array = [0, 1, 2],
	     *     object = { 'a': array, 'b': array, 'c': array };
	     *
	     * _.map(['a[2]', 'c[0]'], _.propertyOf(object));
	     * // => [2, 0]
	     *
	     * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
	     * // => [2, 0]
	     */
	    function propertyOf(object) {
	      return function (path) {
	        return baseGet(object, toPath(path), path + '');
	      };
	    }
	
	    /**
	     * Creates an array of numbers (positive and/or negative) progressing from
	     * `start` up to, but not including, `end`. If `end` is not specified it's
	     * set to `start` with `start` then set to `0`. If `end` is less than `start`
	     * a zero-length range is created unless a negative `step` is specified.
	     *
	     * @static
	     * @memberOf _
	     * @category Utility
	     * @param {number} [start=0] The start of the range.
	     * @param {number} end The end of the range.
	     * @param {number} [step=1] The value to increment or decrement by.
	     * @returns {Array} Returns the new array of numbers.
	     * @example
	     *
	     * _.range(4);
	     * // => [0, 1, 2, 3]
	     *
	     * _.range(1, 5);
	     * // => [1, 2, 3, 4]
	     *
	     * _.range(0, 20, 5);
	     * // => [0, 5, 10, 15]
	     *
	     * _.range(0, -4, -1);
	     * // => [0, -1, -2, -3]
	     *
	     * _.range(1, 4, 0);
	     * // => [1, 1, 1]
	     *
	     * _.range(0);
	     * // => []
	     */
	    function range(start, end, step) {
	      if (step && isIterateeCall(start, end, step)) {
	        end = step = undefined;
	      }
	      start = +start || 0;
	      step = step == null ? 1 : +step || 0;
	
	      if (end == null) {
	        end = start;
	        start = 0;
	      } else {
	        end = +end || 0;
	      }
	      // Use `Array(length)` so engines like Chakra and V8 avoid slower modes.
	      // See https://youtu.be/XAqIpGU8ZZk#t=17m25s for more details.
	      var index = -1,
	          length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
	          result = Array(length);
	
	      while (++index < length) {
	        result[index] = start;
	        start += step;
	      }
	      return result;
	    }
	
	    /**
	     * Invokes the iteratee function `n` times, returning an array of the results
	     * of each invocation. The `iteratee` is bound to `thisArg` and invoked with
	     * one argument; (index).
	     *
	     * @static
	     * @memberOf _
	     * @category Utility
	     * @param {number} n The number of times to invoke `iteratee`.
	     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {Array} Returns the array of results.
	     * @example
	     *
	     * var diceRolls = _.times(3, _.partial(_.random, 1, 6, false));
	     * // => [3, 6, 4]
	     *
	     * _.times(3, function(n) {
	     *   mage.castSpell(n);
	     * });
	     * // => invokes `mage.castSpell(n)` three times with `n` of `0`, `1`, and `2`
	     *
	     * _.times(3, function(n) {
	     *   this.cast(n);
	     * }, mage);
	     * // => also invokes `mage.castSpell(n)` three times
	     */
	    function times(n, iteratee, thisArg) {
	      n = nativeFloor(n);
	
	      // Exit early to avoid a JSC JIT bug in Safari 8
	      // where `Array(0)` is treated as `Array(1)`.
	      if (n < 1 || !nativeIsFinite(n)) {
	        return [];
	      }
	      var index = -1,
	          result = Array(nativeMin(n, MAX_ARRAY_LENGTH));
	
	      iteratee = bindCallback(iteratee, thisArg, 1);
	      while (++index < n) {
	        if (index < MAX_ARRAY_LENGTH) {
	          result[index] = iteratee(index);
	        } else {
	          iteratee(index);
	        }
	      }
	      return result;
	    }
	
	    /**
	     * Generates a unique ID. If `prefix` is provided the ID is appended to it.
	     *
	     * @static
	     * @memberOf _
	     * @category Utility
	     * @param {string} [prefix] The value to prefix the ID with.
	     * @returns {string} Returns the unique ID.
	     * @example
	     *
	     * _.uniqueId('contact_');
	     * // => 'contact_104'
	     *
	     * _.uniqueId();
	     * // => '105'
	     */
	    function uniqueId(prefix) {
	      var id = ++idCounter;
	      return baseToString(prefix) + id;
	    }
	
	    /*------------------------------------------------------------------------*/
	
	    /**
	     * Adds two numbers.
	     *
	     * @static
	     * @memberOf _
	     * @category Math
	     * @param {number} augend The first number to add.
	     * @param {number} addend The second number to add.
	     * @returns {number} Returns the sum.
	     * @example
	     *
	     * _.add(6, 4);
	     * // => 10
	     */
	    function add(augend, addend) {
	      return (+augend || 0) + (+addend || 0);
	    }
	
	    /**
	     * Calculates `n` rounded up to `precision`.
	     *
	     * @static
	     * @memberOf _
	     * @category Math
	     * @param {number} n The number to round up.
	     * @param {number} [precision=0] The precision to round up to.
	     * @returns {number} Returns the rounded up number.
	     * @example
	     *
	     * _.ceil(4.006);
	     * // => 5
	     *
	     * _.ceil(6.004, 2);
	     * // => 6.01
	     *
	     * _.ceil(6040, -2);
	     * // => 6100
	     */
	    var ceil = createRound('ceil');
	
	    /**
	     * Calculates `n` rounded down to `precision`.
	     *
	     * @static
	     * @memberOf _
	     * @category Math
	     * @param {number} n The number to round down.
	     * @param {number} [precision=0] The precision to round down to.
	     * @returns {number} Returns the rounded down number.
	     * @example
	     *
	     * _.floor(4.006);
	     * // => 4
	     *
	     * _.floor(0.046, 2);
	     * // => 0.04
	     *
	     * _.floor(4060, -2);
	     * // => 4000
	     */
	    var floor = createRound('floor');
	
	    /**
	     * Gets the maximum value of `collection`. If `collection` is empty or falsey
	     * `-Infinity` is returned. If an iteratee function is provided it's invoked
	     * for each value in `collection` to generate the criterion by which the value
	     * is ranked. The `iteratee` is bound to `thisArg` and invoked with three
	     * arguments: (value, index, collection).
	     *
	     * If a property name is provided for `iteratee` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `iteratee` the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @category Math
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function|Object|string} [iteratee] The function invoked per iteration.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {*} Returns the maximum value.
	     * @example
	     *
	     * _.max([4, 2, 8, 6]);
	     * // => 8
	     *
	     * _.max([]);
	     * // => -Infinity
	     *
	     * var users = [
	     *   { 'user': 'barney', 'age': 36 },
	     *   { 'user': 'fred',   'age': 40 }
	     * ];
	     *
	     * _.max(users, function(chr) {
	     *   return chr.age;
	     * });
	     * // => { 'user': 'fred', 'age': 40 }
	     *
	     * // using the `_.property` callback shorthand
	     * _.max(users, 'age');
	     * // => { 'user': 'fred', 'age': 40 }
	     */
	    var max = createExtremum(gt, NEGATIVE_INFINITY);
	
	    /**
	     * Gets the minimum value of `collection`. If `collection` is empty or falsey
	     * `Infinity` is returned. If an iteratee function is provided it's invoked
	     * for each value in `collection` to generate the criterion by which the value
	     * is ranked. The `iteratee` is bound to `thisArg` and invoked with three
	     * arguments: (value, index, collection).
	     *
	     * If a property name is provided for `iteratee` the created `_.property`
	     * style callback returns the property value of the given element.
	     *
	     * If a value is also provided for `thisArg` the created `_.matchesProperty`
	     * style callback returns `true` for elements that have a matching property
	     * value, else `false`.
	     *
	     * If an object is provided for `iteratee` the created `_.matches` style
	     * callback returns `true` for elements that have the properties of the given
	     * object, else `false`.
	     *
	     * @static
	     * @memberOf _
	     * @category Math
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function|Object|string} [iteratee] The function invoked per iteration.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {*} Returns the minimum value.
	     * @example
	     *
	     * _.min([4, 2, 8, 6]);
	     * // => 2
	     *
	     * _.min([]);
	     * // => Infinity
	     *
	     * var users = [
	     *   { 'user': 'barney', 'age': 36 },
	     *   { 'user': 'fred',   'age': 40 }
	     * ];
	     *
	     * _.min(users, function(chr) {
	     *   return chr.age;
	     * });
	     * // => { 'user': 'barney', 'age': 36 }
	     *
	     * // using the `_.property` callback shorthand
	     * _.min(users, 'age');
	     * // => { 'user': 'barney', 'age': 36 }
	     */
	    var min = createExtremum(lt, POSITIVE_INFINITY);
	
	    /**
	     * Calculates `n` rounded to `precision`.
	     *
	     * @static
	     * @memberOf _
	     * @category Math
	     * @param {number} n The number to round.
	     * @param {number} [precision=0] The precision to round to.
	     * @returns {number} Returns the rounded number.
	     * @example
	     *
	     * _.round(4.006);
	     * // => 4
	     *
	     * _.round(4.006, 2);
	     * // => 4.01
	     *
	     * _.round(4060, -2);
	     * // => 4100
	     */
	    var round = createRound('round');
	
	    /**
	     * Gets the sum of the values in `collection`.
	     *
	     * @static
	     * @memberOf _
	     * @category Math
	     * @param {Array|Object|string} collection The collection to iterate over.
	     * @param {Function|Object|string} [iteratee] The function invoked per iteration.
	     * @param {*} [thisArg] The `this` binding of `iteratee`.
	     * @returns {number} Returns the sum.
	     * @example
	     *
	     * _.sum([4, 6]);
	     * // => 10
	     *
	     * _.sum({ 'a': 4, 'b': 6 });
	     * // => 10
	     *
	     * var objects = [
	     *   { 'n': 4 },
	     *   { 'n': 6 }
	     * ];
	     *
	     * _.sum(objects, function(object) {
	     *   return object.n;
	     * });
	     * // => 10
	     *
	     * // using the `_.property` callback shorthand
	     * _.sum(objects, 'n');
	     * // => 10
	     */
	    function sum(collection, iteratee, thisArg) {
	      if (thisArg && isIterateeCall(collection, iteratee, thisArg)) {
	        iteratee = undefined;
	      }
	      iteratee = getCallback(iteratee, thisArg, 3);
	      return iteratee.length == 1 ? arraySum(isArray(collection) ? collection : toIterable(collection), iteratee) : baseSum(collection, iteratee);
	    }
	
	    /*------------------------------------------------------------------------*/
	
	    // Ensure wrappers are instances of `baseLodash`.
	    lodash.prototype = baseLodash.prototype;
	
	    LodashWrapper.prototype = baseCreate(baseLodash.prototype);
	    LodashWrapper.prototype.constructor = LodashWrapper;
	
	    LazyWrapper.prototype = baseCreate(baseLodash.prototype);
	    LazyWrapper.prototype.constructor = LazyWrapper;
	
	    // Add functions to the `Map` cache.
	    MapCache.prototype['delete'] = mapDelete;
	    MapCache.prototype.get = mapGet;
	    MapCache.prototype.has = mapHas;
	    MapCache.prototype.set = mapSet;
	
	    // Add functions to the `Set` cache.
	    SetCache.prototype.push = cachePush;
	
	    // Assign cache to `_.memoize`.
	    memoize.Cache = MapCache;
	
	    // Add functions that return wrapped values when chaining.
	    lodash.after = after;
	    lodash.ary = ary;
	    lodash.assign = assign;
	    lodash.at = at;
	    lodash.before = before;
	    lodash.bind = bind;
	    lodash.bindAll = bindAll;
	    lodash.bindKey = bindKey;
	    lodash.callback = callback;
	    lodash.chain = chain;
	    lodash.chunk = chunk;
	    lodash.compact = compact;
	    lodash.constant = constant;
	    lodash.countBy = countBy;
	    lodash.create = create;
	    lodash.curry = curry;
	    lodash.curryRight = curryRight;
	    lodash.debounce = debounce;
	    lodash.defaults = defaults;
	    lodash.defaultsDeep = defaultsDeep;
	    lodash.defer = defer;
	    lodash.delay = delay;
	    lodash.difference = difference;
	    lodash.drop = drop;
	    lodash.dropRight = dropRight;
	    lodash.dropRightWhile = dropRightWhile;
	    lodash.dropWhile = dropWhile;
	    lodash.fill = fill;
	    lodash.filter = filter;
	    lodash.flatten = flatten;
	    lodash.flattenDeep = flattenDeep;
	    lodash.flow = flow;
	    lodash.flowRight = flowRight;
	    lodash.forEach = forEach;
	    lodash.forEachRight = forEachRight;
	    lodash.forIn = forIn;
	    lodash.forInRight = forInRight;
	    lodash.forOwn = forOwn;
	    lodash.forOwnRight = forOwnRight;
	    lodash.functions = functions;
	    lodash.groupBy = groupBy;
	    lodash.indexBy = indexBy;
	    lodash.initial = initial;
	    lodash.intersection = intersection;
	    lodash.invert = invert;
	    lodash.invoke = invoke;
	    lodash.keys = keys;
	    lodash.keysIn = keysIn;
	    lodash.map = map;
	    lodash.mapKeys = mapKeys;
	    lodash.mapValues = mapValues;
	    lodash.matches = matches;
	    lodash.matchesProperty = matchesProperty;
	    lodash.memoize = memoize;
	    lodash.merge = merge;
	    lodash.method = method;
	    lodash.methodOf = methodOf;
	    lodash.mixin = mixin;
	    lodash.modArgs = modArgs;
	    lodash.negate = negate;
	    lodash.omit = omit;
	    lodash.once = once;
	    lodash.pairs = pairs;
	    lodash.partial = partial;
	    lodash.partialRight = partialRight;
	    lodash.partition = partition;
	    lodash.pick = pick;
	    lodash.pluck = pluck;
	    lodash.property = property;
	    lodash.propertyOf = propertyOf;
	    lodash.pull = pull;
	    lodash.pullAt = pullAt;
	    lodash.range = range;
	    lodash.rearg = rearg;
	    lodash.reject = reject;
	    lodash.remove = remove;
	    lodash.rest = rest;
	    lodash.restParam = restParam;
	    lodash.set = set;
	    lodash.shuffle = shuffle;
	    lodash.slice = slice;
	    lodash.sortBy = sortBy;
	    lodash.sortByAll = sortByAll;
	    lodash.sortByOrder = sortByOrder;
	    lodash.spread = spread;
	    lodash.take = take;
	    lodash.takeRight = takeRight;
	    lodash.takeRightWhile = takeRightWhile;
	    lodash.takeWhile = takeWhile;
	    lodash.tap = tap;
	    lodash.throttle = throttle;
	    lodash.thru = thru;
	    lodash.times = times;
	    lodash.toArray = toArray;
	    lodash.toPlainObject = toPlainObject;
	    lodash.transform = transform;
	    lodash.union = union;
	    lodash.uniq = uniq;
	    lodash.unzip = unzip;
	    lodash.unzipWith = unzipWith;
	    lodash.values = values;
	    lodash.valuesIn = valuesIn;
	    lodash.where = where;
	    lodash.without = without;
	    lodash.wrap = wrap;
	    lodash.xor = xor;
	    lodash.zip = zip;
	    lodash.zipObject = zipObject;
	    lodash.zipWith = zipWith;
	
	    // Add aliases.
	    lodash.backflow = flowRight;
	    lodash.collect = map;
	    lodash.compose = flowRight;
	    lodash.each = forEach;
	    lodash.eachRight = forEachRight;
	    lodash.extend = assign;
	    lodash.iteratee = callback;
	    lodash.methods = functions;
	    lodash.object = zipObject;
	    lodash.select = filter;
	    lodash.tail = rest;
	    lodash.unique = uniq;
	
	    // Add functions to `lodash.prototype`.
	    mixin(lodash, lodash);
	
	    /*------------------------------------------------------------------------*/
	
	    // Add functions that return unwrapped values when chaining.
	    lodash.add = add;
	    lodash.attempt = attempt;
	    lodash.camelCase = camelCase;
	    lodash.capitalize = capitalize;
	    lodash.ceil = ceil;
	    lodash.clone = clone;
	    lodash.cloneDeep = cloneDeep;
	    lodash.deburr = deburr;
	    lodash.endsWith = endsWith;
	    lodash.escape = escape;
	    lodash.escapeRegExp = escapeRegExp;
	    lodash.every = every;
	    lodash.find = find;
	    lodash.findIndex = findIndex;
	    lodash.findKey = findKey;
	    lodash.findLast = findLast;
	    lodash.findLastIndex = findLastIndex;
	    lodash.findLastKey = findLastKey;
	    lodash.findWhere = findWhere;
	    lodash.first = first;
	    lodash.floor = floor;
	    lodash.get = get;
	    lodash.gt = gt;
	    lodash.gte = gte;
	    lodash.has = has;
	    lodash.identity = identity;
	    lodash.includes = includes;
	    lodash.indexOf = indexOf;
	    lodash.inRange = inRange;
	    lodash.isArguments = isArguments;
	    lodash.isArray = isArray;
	    lodash.isBoolean = isBoolean;
	    lodash.isDate = isDate;
	    lodash.isElement = isElement;
	    lodash.isEmpty = isEmpty;
	    lodash.isEqual = isEqual;
	    lodash.isError = isError;
	    lodash.isFinite = isFinite;
	    lodash.isFunction = isFunction;
	    lodash.isMatch = isMatch;
	    lodash.isNaN = isNaN;
	    lodash.isNative = isNative;
	    lodash.isNull = isNull;
	    lodash.isNumber = isNumber;
	    lodash.isObject = isObject;
	    lodash.isPlainObject = isPlainObject;
	    lodash.isRegExp = isRegExp;
	    lodash.isString = isString;
	    lodash.isTypedArray = isTypedArray;
	    lodash.isUndefined = isUndefined;
	    lodash.kebabCase = kebabCase;
	    lodash.last = last;
	    lodash.lastIndexOf = lastIndexOf;
	    lodash.lt = lt;
	    lodash.lte = lte;
	    lodash.max = max;
	    lodash.min = min;
	    lodash.noConflict = noConflict;
	    lodash.noop = noop;
	    lodash.now = now;
	    lodash.pad = pad;
	    lodash.padLeft = padLeft;
	    lodash.padRight = padRight;
	    lodash.parseInt = parseInt;
	    lodash.random = random;
	    lodash.reduce = reduce;
	    lodash.reduceRight = reduceRight;
	    lodash.repeat = repeat;
	    lodash.result = result;
	    lodash.round = round;
	    lodash.runInContext = runInContext;
	    lodash.size = size;
	    lodash.snakeCase = snakeCase;
	    lodash.some = some;
	    lodash.sortedIndex = sortedIndex;
	    lodash.sortedLastIndex = sortedLastIndex;
	    lodash.startCase = startCase;
	    lodash.startsWith = startsWith;
	    lodash.sum = sum;
	    lodash.template = template;
	    lodash.trim = trim;
	    lodash.trimLeft = trimLeft;
	    lodash.trimRight = trimRight;
	    lodash.trunc = trunc;
	    lodash.unescape = unescape;
	    lodash.uniqueId = uniqueId;
	    lodash.words = words;
	
	    // Add aliases.
	    lodash.all = every;
	    lodash.any = some;
	    lodash.contains = includes;
	    lodash.eq = isEqual;
	    lodash.detect = find;
	    lodash.foldl = reduce;
	    lodash.foldr = reduceRight;
	    lodash.head = first;
	    lodash.include = includes;
	    lodash.inject = reduce;
	
	    mixin(lodash, function () {
	      var source = {};
	      baseForOwn(lodash, function (func, methodName) {
	        if (!lodash.prototype[methodName]) {
	          source[methodName] = func;
	        }
	      });
	      return source;
	    }(), false);
	
	    /*------------------------------------------------------------------------*/
	
	    // Add functions capable of returning wrapped and unwrapped values when chaining.
	    lodash.sample = sample;
	
	    lodash.prototype.sample = function (n) {
	      if (!this.__chain__ && n == null) {
	        return sample(this.value());
	      }
	      return this.thru(function (value) {
	        return sample(value, n);
	      });
	    };
	
	    /*------------------------------------------------------------------------*/
	
	    /**
	     * The semantic version number.
	     *
	     * @static
	     * @memberOf _
	     * @type string
	     */
	    lodash.VERSION = VERSION;
	
	    // Assign default placeholders.
	    arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function (methodName) {
	      lodash[methodName].placeholder = lodash;
	    });
	
	    // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.
	    arrayEach(['drop', 'take'], function (methodName, index) {
	      LazyWrapper.prototype[methodName] = function (n) {
	        var filtered = this.__filtered__;
	        if (filtered && !index) {
	          return new LazyWrapper(this);
	        }
	        n = n == null ? 1 : nativeMax(nativeFloor(n) || 0, 0);
	
	        var result = this.clone();
	        if (filtered) {
	          result.__takeCount__ = nativeMin(result.__takeCount__, n);
	        } else {
	          result.__views__.push({ 'size': n, 'type': methodName + (result.__dir__ < 0 ? 'Right' : '') });
	        }
	        return result;
	      };
	
	      LazyWrapper.prototype[methodName + 'Right'] = function (n) {
	        return this.reverse()[methodName](n).reverse();
	      };
	    });
	
	    // Add `LazyWrapper` methods that accept an `iteratee` value.
	    arrayEach(['filter', 'map', 'takeWhile'], function (methodName, index) {
	      var type = index + 1,
	          isFilter = type != LAZY_MAP_FLAG;
	
	      LazyWrapper.prototype[methodName] = function (iteratee, thisArg) {
	        var result = this.clone();
	        result.__iteratees__.push({ 'iteratee': getCallback(iteratee, thisArg, 1), 'type': type });
	        result.__filtered__ = result.__filtered__ || isFilter;
	        return result;
	      };
	    });
	
	    // Add `LazyWrapper` methods for `_.first` and `_.last`.
	    arrayEach(['first', 'last'], function (methodName, index) {
	      var takeName = 'take' + (index ? 'Right' : '');
	
	      LazyWrapper.prototype[methodName] = function () {
	        return this[takeName](1).value()[0];
	      };
	    });
	
	    // Add `LazyWrapper` methods for `_.initial` and `_.rest`.
	    arrayEach(['initial', 'rest'], function (methodName, index) {
	      var dropName = 'drop' + (index ? '' : 'Right');
	
	      LazyWrapper.prototype[methodName] = function () {
	        return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
	      };
	    });
	
	    // Add `LazyWrapper` methods for `_.pluck` and `_.where`.
	    arrayEach(['pluck', 'where'], function (methodName, index) {
	      var operationName = index ? 'filter' : 'map',
	          createCallback = index ? baseMatches : property;
	
	      LazyWrapper.prototype[methodName] = function (value) {
	        return this[operationName](createCallback(value));
	      };
	    });
	
	    LazyWrapper.prototype.compact = function () {
	      return this.filter(identity);
	    };
	
	    LazyWrapper.prototype.reject = function (predicate, thisArg) {
	      predicate = getCallback(predicate, thisArg, 1);
	      return this.filter(function (value) {
	        return !predicate(value);
	      });
	    };
	
	    LazyWrapper.prototype.slice = function (start, end) {
	      start = start == null ? 0 : +start || 0;
	
	      var result = this;
	      if (result.__filtered__ && (start > 0 || end < 0)) {
	        return new LazyWrapper(result);
	      }
	      if (start < 0) {
	        result = result.takeRight(-start);
	      } else if (start) {
	        result = result.drop(start);
	      }
	      if (end !== undefined) {
	        end = +end || 0;
	        result = end < 0 ? result.dropRight(-end) : result.take(end - start);
	      }
	      return result;
	    };
	
	    LazyWrapper.prototype.takeRightWhile = function (predicate, thisArg) {
	      return this.reverse().takeWhile(predicate, thisArg).reverse();
	    };
	
	    LazyWrapper.prototype.toArray = function () {
	      return this.take(POSITIVE_INFINITY);
	    };
	
	    // Add `LazyWrapper` methods to `lodash.prototype`.
	    baseForOwn(LazyWrapper.prototype, function (func, methodName) {
	      var checkIteratee = /^(?:filter|map|reject)|While$/.test(methodName),
	          retUnwrapped = /^(?:first|last)$/.test(methodName),
	          lodashFunc = lodash[retUnwrapped ? 'take' + (methodName == 'last' ? 'Right' : '') : methodName];
	
	      if (!lodashFunc) {
	        return;
	      }
	      lodash.prototype[methodName] = function () {
	        var args = retUnwrapped ? [1] : arguments,
	            chainAll = this.__chain__,
	            value = this.__wrapped__,
	            isHybrid = !!this.__actions__.length,
	            isLazy = value instanceof LazyWrapper,
	            iteratee = args[0],
	            useLazy = isLazy || isArray(value);
	
	        if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {
	          // Avoid lazy use if the iteratee has a "length" value other than `1`.
	          isLazy = useLazy = false;
	        }
	        var interceptor = function interceptor(value) {
	          return retUnwrapped && chainAll ? lodashFunc(value, 1)[0] : lodashFunc.apply(undefined, arrayPush([value], args));
	        };
	
	        var action = { 'func': thru, 'args': [interceptor], 'thisArg': undefined },
	            onlyLazy = isLazy && !isHybrid;
	
	        if (retUnwrapped && !chainAll) {
	          if (onlyLazy) {
	            value = value.clone();
	            value.__actions__.push(action);
	            return func.call(value);
	          }
	          return lodashFunc.call(undefined, this.value())[0];
	        }
	        if (!retUnwrapped && useLazy) {
	          value = onlyLazy ? value : new LazyWrapper(this);
	          var result = func.apply(value, args);
	          result.__actions__.push(action);
	          return new LodashWrapper(result, chainAll);
	        }
	        return this.thru(interceptor);
	      };
	    });
	
	    // Add `Array` and `String` methods to `lodash.prototype`.
	    arrayEach(['join', 'pop', 'push', 'replace', 'shift', 'sort', 'splice', 'split', 'unshift'], function (methodName) {
	      var protoFunc = (/^(?:replace|split)$/.test(methodName) ? stringProto : arrayProto)[methodName],
	          chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
	          fixObjects = !support.spliceObjects && /^(?:pop|shift|splice)$/.test(methodName),
	          retUnwrapped = /^(?:join|pop|replace|shift)$/.test(methodName);
	
	      // Avoid array-like object bugs with `Array#shift` and `Array#splice` in
	      // IE < 9, Firefox < 10, and RingoJS.
	      var func = !fixObjects ? protoFunc : function () {
	        var result = protoFunc.apply(this, arguments);
	        if (this.length === 0) {
	          delete this[0];
	        }
	        return result;
	      };
	
	      lodash.prototype[methodName] = function () {
	        var args = arguments;
	        if (retUnwrapped && !this.__chain__) {
	          return func.apply(this.value(), args);
	        }
	        return this[chainName](function (value) {
	          return func.apply(value, args);
	        });
	      };
	    });
	
	    // Map minified function names to their real names.
	    baseForOwn(LazyWrapper.prototype, function (func, methodName) {
	      var lodashFunc = lodash[methodName];
	      if (lodashFunc) {
	        var key = lodashFunc.name + '',
	            names = realNames[key] || (realNames[key] = []);
	
	        names.push({ 'name': methodName, 'func': lodashFunc });
	      }
	    });
	
	    realNames[createHybridWrapper(undefined, BIND_KEY_FLAG).name] = [{ 'name': 'wrapper', 'func': undefined }];
	
	    // Add functions to the lazy wrapper.
	    LazyWrapper.prototype.clone = lazyClone;
	    LazyWrapper.prototype.reverse = lazyReverse;
	    LazyWrapper.prototype.value = lazyValue;
	
	    // Add chaining functions to the `lodash` wrapper.
	    lodash.prototype.chain = wrapperChain;
	    lodash.prototype.commit = wrapperCommit;
	    lodash.prototype.concat = wrapperConcat;
	    lodash.prototype.plant = wrapperPlant;
	    lodash.prototype.reverse = wrapperReverse;
	    lodash.prototype.toString = wrapperToString;
	    lodash.prototype.run = lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;
	
	    // Add function aliases to the `lodash` wrapper.
	    lodash.prototype.collect = lodash.prototype.map;
	    lodash.prototype.head = lodash.prototype.first;
	    lodash.prototype.select = lodash.prototype.filter;
	    lodash.prototype.tail = lodash.prototype.rest;
	
	    return lodash;
	  }
	
	  /*--------------------------------------------------------------------------*/
	
	  // Export lodash.
	  var _ = runInContext();
	
	  // Some AMD build optimizers like r.js check for condition patterns like the following:
	  if ("function" == 'function' && _typeof(__webpack_require__(110)) == 'object' && __webpack_require__(110)) {
	    // Expose lodash to the global object when an AMD loader is present to avoid
	    // errors in cases where lodash is loaded by a script tag and not intended
	    // as an AMD module. See http://requirejs.org/docs/errors.html#mismatch for
	    // more details.
	    root._ = _;
	
	    // Define as an anonymous module so, through path mapping, it can be
	    // referenced as the "underscore" module.
	    !(__WEBPACK_AMD_DEFINE_RESULT__ = function () {
	      return _;
	    }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
	  }
	  // Check for `exports` after `define` in case a build optimizer adds an `exports` object.
	  else if (freeExports && freeModule) {
	      // Export for Node.js or RingoJS.
	      if (moduleExports) {
	        (freeModule.exports = _)._ = _;
	      }
	      // Export for Rhino with CommonJS support.
	      else {
	          freeExports._ = _;
	        }
	    } else {
	      // Export for a browser or Rhino.
	      root._ = _;
	    }
	}).call(undefined);
	/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(38)(module), (function() { return this; }())))

/***/ }),
/* 8 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	/**
	 * @phxPlatform
	 */
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	tslib_1.__exportStar(__webpack_require__(2206), exports);


/***/ }),
/* 9 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	tslib_1.__exportStar(__webpack_require__(3), exports);


/***/ }),
/* 10 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ScheduledSectionStatus = /** @class */ (function () {
	    function ScheduledSectionStatus() {
	    }
	    ScheduledSectionStatus.getRegisteredSectionStatuses = function () {
	        return [ScheduledSectionStatus.REGISTERED, ScheduledSectionStatus.IN_PROGRESS, ScheduledSectionStatus.COMPLETED];
	    };
	    ScheduledSectionStatus.getScheduledSectionStatuses = function () {
	        // during the time between a register POST and a pusher response
	        // a section status is PENDING, if it fails it FAILED
	        // these 3 statuses qualify as `scheduled` in the scheduled sections bucket
	        return [ScheduledSectionStatus.SECTION_PICKED, ScheduledSectionStatus.PENDING];
	    };
	    ScheduledSectionStatus.getWaitlistedSectionStatuses = function () {
	        return [ScheduledSectionStatus.WAITLISTED];
	    };
	    ScheduledSectionStatus.getFailedWaitlistDropSectionStatuses = function () {
	        return [];
	    };
	    ScheduledSectionStatus.getFailedStatusesForUnSchedule = function () {
	        return [ScheduledSectionStatus.UNSCHEDULED];
	    };
	    ScheduledSectionStatus.UNSCHEDULED = '';
	    ScheduledSectionStatus.REGISTERED = 'REGISTERED';
	    ScheduledSectionStatus.SECTION_PICKED = 'SECTION_PICKED';
	    ScheduledSectionStatus.PENDING = 'PENDING';
	    ScheduledSectionStatus.FAILED = 'FAILED';
	    ScheduledSectionStatus.WAITLISTED = 'WAITLISTED';
	    ScheduledSectionStatus.WITHDRAWN = 'WITHDRAWN';
	    ScheduledSectionStatus.WAITLISTFAILED = 'WAITLISTFAILED';
	    ScheduledSectionStatus.WAITLISTDROPFAILED = 'WAITLISTDROPFAILED';
	    ScheduledSectionStatus.WAITLISTEDCANADD = 'WAITLISTEDCANADD';
	    ScheduledSectionStatus.IN_PROGRESS = 'IN_PROGRESS';
	    ScheduledSectionStatus.COMPLETED = 'COMPLETED';
	    ScheduledSectionStatus.CONFLICTING = 'CONFLICTING';
	    ScheduledSectionStatus.DROPFAILED = 'DROPFAILED';
	    ScheduledSectionStatus.NOT_REGISTERED = 'NOT_REGISTERED';
	    ScheduledSectionStatus.SWAP_FROM = 'SWAP_FROM';
	    ScheduledSectionStatus.SWAP_TO = 'SWAP_TO';
	    return ScheduledSectionStatus;
	}());
	exports.ScheduledSectionStatus = ScheduledSectionStatus;


/***/ }),
/* 11 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.INVALID_ID = -1;


/***/ }),
/* 12 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var EABError = /** @class */ (function (_super) {
	    tslib_1.__extends(EABError, _super);
	    function EABError(designation, code, context) {
	        var _this = _super.call(this) || this;
	        _this.code = code;
	        _this.name = "" + designation;
	        _this.message = designation + ":" + code;
	        // @ifndef PROMISCUOUS
	        if (context !== undefined || context !== null) {
	            _this.context = JSON.stringify(context);
	        }
	        // @endif
	        // @ifdef PROMISCUOUS
	        _this.url = "http://phoenix.eab.com/site/#!/error/" + designation + "/" + code + "/";
	        console.error("EAB Error (( " + designation + ":" + code + " )) [[ " + _this.url + " ]]");
	        if (context !== undefined || context !== null) {
	            _this.context = context;
	            console.dir(context);
	        }
	        return _this;
	        // @endif
	    }
	    EABError.FAIL = function (designation, errorCode, context, condition) {
	        if (condition === false || condition === undefined) {
	            throw new EABError(designation, errorCode, context);
	        }
	    };
	    EABError.ASSERT = function (designation, condition, explanation) {
	        // @ifdef PROMISCUOUS
	        if (condition === false) {
	            throw new EABAssertion(designation, explanation);
	        }
	        // @endif
	    };
	    return EABError;
	}(Error));
	exports.EABError = EABError;
	var EABAssertion = /** @class */ (function (_super) {
	    tslib_1.__extends(EABAssertion, _super);
	    function EABAssertion(designation, explanation) {
	        var _this = _super.call(this) || this;
	        _this.name = "" + designation;
	        console.warn("EAB Assertion (( " + designation + " )) explanation");
	        return _this;
	    }
	    return EABAssertion;
	}(Error));
	exports.EABAssertion = EABAssertion;
	window.addEventListener('error', function (e) {
	    // @ifndef PROMISCUOUS
	    console.debug(e.message + " in " + e.filename + " at " + e.lineno + ":" + e.colno + " after " + e.timeStamp);
	    // @endif
	    // @ifdef PROMISCUOUS
	    var logMessage = e.message + " in " + e.filename + " at " + e.lineno + ":" + e.colno + " after " + e.timeStamp;
	    if (typeof XMLHttpRequest === 'undefined') {
	        return;
	    }
	    // DISABLED until we get an endpoint
	    /*
	     const request: any = new XMLHttpRequest();
	     
	     request.open('GET', `api/v1/log?entry=${logMessage}`);
	     request.send();
	    */
	    // @endif
	});
	// ---------------------------
	// Module
	// ---------------------------
	window['EABAssertion'] = EABAssertion;
	window['EABError'] = EABError;
	exports.default = EABError;


/***/ }),
/* 13 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var plan_feedback_transaction_types_query_strategy_1 = __webpack_require__(43);
	var _4 = __webpack_require__(1);
	var utility_ts_strategy_1 = __webpack_require__(6);
	var plan_feedback_generic_slot_builder_1 = __webpack_require__(131);
	var plan_feedback_transaction_builder_1 = __webpack_require__(523);
	var plan_feedback_transaction_text_1 = __webpack_require__(526);
	var plan_feedback_transaction_types_query_strategy_2 = __webpack_require__(43);
	exports.TemplateChangesTransactionTypeText = {
	    MET: 'Marked as Met',
	    UNMET: 'Marked as Unmet',
	    NONE: 'Comment Updates'
	};
	var PlanFeedbackServant = /** @class */ (function () {
	    function PlanFeedbackServant() {
	    }
	    PlanFeedbackServant.checkPlanStatus = function (plan, status) {
	        return _4.get(plan, 'status') === status;
	    };
	    PlanFeedbackServant.isPlanCommitedAndBlocked = function (plan) {
	        var planStatus = { status: plan.status };
	        var isStillInEditing = plan.from_editing;
	        return PlanFeedbackServant.isPlanBlocked(planStatus) && !isStillInEditing;
	    };
	    PlanFeedbackServant.isPlanBlocked = function (plan) {
	        return PlanFeedbackServant.checkPlanStatus(plan, 'BLOCKED');
	    };
	    PlanFeedbackServant.isPlanEditing = function (plan) {
	        return PlanFeedbackServant.checkPlanStatus(plan, 'EDITING');
	    };
	    PlanFeedbackServant.isPlanResolved = function (plan) {
	        return PlanFeedbackServant.checkPlanStatus(plan, 'RESOLVED');
	    };
	    PlanFeedbackServant.isPlanResolving = function (plan) {
	        return PlanFeedbackServant.checkPlanStatus(plan, 'RESOLVING');
	    };
	    PlanFeedbackServant.isPlanCommitted = function (plan) {
	        return PlanFeedbackServant.checkPlanStatus(plan, 'COMMITTED');
	    };
	    PlanFeedbackServant.isPlanNotCreated = function (plan) {
	        return PlanFeedbackServant.checkPlanStatus(plan, '');
	    };
	    PlanFeedbackServant.isPlanReadOnlyMode = function (plan) {
	        return PlanFeedbackServant.isPlanNotCreated(plan) || PlanFeedbackServant.isPlanResolved(plan);
	    };
	    PlanFeedbackServant.isPlanSentToStudent = function (plan) {
	        return PlanFeedbackServant.isPlanCommitted(plan) || PlanFeedbackServant.isPlanResolving(plan);
	    };
	    PlanFeedbackServant.updateDataSourcesAfterAcceptDecline = function (dataSource, action, resolutions) {
	        var coursesToUpdate = dataSource.query(function (planFeedbackCourse) {
	            return _4.includes(resolutions, planFeedbackCourse.resolution);
	        });
	        coursesToUpdate.forEach(function (courseToDelete) {
	            var suggestion = dataSource.get(courseToDelete.id);
	            plan_feedback_transaction_types_query_strategy_1.APPlanFeedbackDataSourceUpdateAfterAcceptDeclineStrategy[action](suggestion, dataSource);
	        });
	    };
	    PlanFeedbackServant.isValidProgramSlotFeedback = function (feedbackSuggestion) {
	        return _4.includes(['UNMET', 'MET'], feedbackSuggestion.diff);
	    };
	    PlanFeedbackServant.isValidFeedback = function (feedbackSuggestion) {
	        if (PlanFeedbackServant.isValidProgramSlotFeedback(feedbackSuggestion)) {
	            return true;
	        }
	        return (_4.includes(['REMOVE', 'ADD', 'MOVE'], feedbackSuggestion.diff) ||
	            feedbackSuggestion.lock_modified ||
	            feedbackSuggestion.from_comment !== feedbackSuggestion.comment);
	    };
	    PlanFeedbackServant.checkFeedbackProgramSlotDiffStatus = function (planFeedbackProgramSlot, diff) {
	        if (!planFeedbackProgramSlot) {
	            return false;
	        }
	        return planFeedbackProgramSlot.diff === diff;
	    };
	    PlanFeedbackServant.isFeedbackProgramSlotMet = function (planFeedbackProgramSlot) {
	        return PlanFeedbackServant.checkFeedbackProgramSlotDiffStatus(planFeedbackProgramSlot, 'MET');
	    };
	    PlanFeedbackServant.isFeedbackProgramSlotUnmet = function (planFeedbackProgramSlot) {
	        return PlanFeedbackServant.checkFeedbackProgramSlotDiffStatus(planFeedbackProgramSlot, 'UNMET');
	    };
	    PlanFeedbackServant.forcedAcceptFeedbackCourse = function (feedbackCourse) {
	        return (!!feedbackCourse.lock_modified ||
	            PlanFeedbackServant.isFeedbackProgramSlotMet(feedbackCourse._feedbackProgramSlot) ||
	            PlanFeedbackServant.isFeedbackProgramSlotUnmet(feedbackCourse._feedbackProgramSlot));
	    };
	    PlanFeedbackServant.getTextForFeedbackProgramSlot = function (planFeedbackProgramSlot) {
	        var programSlotObj = planFeedbackProgramSlot.program_slot_obj;
	        if (!_4.isEmpty(programSlotObj.desc)) {
	            return programSlotObj.desc;
	        }
	        var strategyForText = new utility_ts_strategy_1.StrategySafe({
	            NCR: function () { return programSlotObj.course_group.nk; },
	            COURSE: function (prgmSlot) {
	                return _4.first(prgmSlot.courses).cd + " " + _4.first(prgmSlot.courses).title + " ";
	            },
	            GROUP: function () { return 'Requirement'; },
	            WILDCARD: function () { return programSlotObj.course_group.nk; }
	        });
	        return strategyForText[programSlotObj.course_group.slot_type](programSlotObj);
	    };
	    PlanFeedbackServant.forcedAcceptFeedbackCourseGroup = function (feedbackCourseGroup) {
	        return (PlanFeedbackServant.isFeedbackProgramSlotMet(feedbackCourseGroup._feedbackProgramSlot) ||
	            PlanFeedbackServant.isFeedbackProgramSlotUnmet(feedbackCourseGroup._feedbackProgramSlot));
	    };
	    PlanFeedbackServant.getSuggestionsForCourses = function (feedbackCourses) {
	        var longTransaction = true;
	        return _4.map(feedbackCourses, function (feedbackCourse) {
	            return plan_feedback_transaction_builder_1.PlanFeedbackTransactionBuilder.build(feedbackCourse.nk, plan_feedback_transaction_text_1.ApPlanSuggestionTransactionTextStrategy['COURSE'](feedbackCourse), plan_feedback_transaction_text_1.ApPlanSuggestionTransactionTextStrategy['COURSE'](feedbackCourse, longTransaction), feedbackCourse.diff, 'COURSE', PlanFeedbackServant.forcedAcceptFeedbackCourse(feedbackCourse), feedbackCourse.resolution, feedbackCourse.course.nk, feedbackCourse.from_comment, feedbackCourse.comment);
	        });
	    };
	    PlanFeedbackServant.getTemplateChangesGroupedByTransactionType = function (planFeedbackProgramSlots) {
	        return planFeedbackProgramSlots.reduce(function (groupedSuggestions, suggestion) {
	            if (_4.isEmpty(groupedSuggestions[suggestion.diff])) {
	                groupedSuggestions[suggestion.diff] = {
	                    statusGroup: exports.TemplateChangesTransactionTypeText[suggestion.diff],
	                    suggestions: []
	                };
	            }
	            groupedSuggestions[suggestion.diff].suggestions.push(plan_feedback_generic_slot_builder_1.PlanFeedbackGenericSlotBuilder.build(suggestion));
	            return groupedSuggestions;
	        }, {});
	    };
	    PlanFeedbackServant.getSuggestionsForProgramSlots = function (planFeedbackProgramSlots) {
	        var studentForcedToAccept = true;
	        var strategyKey = 'PROGRAM_SLOT';
	        return _4.map(planFeedbackProgramSlots, function (planFeedbackProgramSlot) {
	            return plan_feedback_transaction_builder_1.PlanFeedbackTransactionBuilder.build(planFeedbackProgramSlot.nk, plan_feedback_transaction_text_1.ApPlanSuggestionTransactionTextStrategy[strategyKey](planFeedbackProgramSlot), plan_feedback_transaction_text_1.ApPlanSuggestionTransactionTextStrategy[strategyKey](planFeedbackProgramSlot), planFeedbackProgramSlot.diff, strategyKey, studentForcedToAccept, // program slot
	            planFeedbackProgramSlot.resolution, planFeedbackProgramSlot.program_slot_obj.nk, '', planFeedbackProgramSlot.comment);
	        });
	    };
	    PlanFeedbackServant.getSuggestionsForCourseGroups = function (feedbackCourseGroups) {
	        var longTransaction = true;
	        return _4.map(feedbackCourseGroups, function (feedbackCourseGroup) {
	            return plan_feedback_transaction_builder_1.PlanFeedbackTransactionBuilder.build(feedbackCourseGroup.nk, plan_feedback_transaction_text_1.ApPlanSuggestionTransactionTextStrategy['COURSE_GROUP'](feedbackCourseGroup), plan_feedback_transaction_text_1.ApPlanSuggestionTransactionTextStrategy['COURSE_GROUP'](feedbackCourseGroup, longTransaction), feedbackCourseGroup.diff, 'COURSE_GROUP', PlanFeedbackServant.forcedAcceptFeedbackCourseGroup(feedbackCourseGroup), feedbackCourseGroup.resolution, feedbackCourseGroup.course_group.nk);
	        });
	    };
	    PlanFeedbackServant.checkSuggestionStatus = function (suggestion, diff) {
	        return suggestion.diff === diff;
	    };
	    PlanFeedbackServant.isRemoveSuggestion = function (suggestion) {
	        return PlanFeedbackServant.checkSuggestionStatus(suggestion, 'REMOVE');
	    };
	    PlanFeedbackServant.isAddSuggestion = function (suggestion) {
	        return PlanFeedbackServant.checkSuggestionStatus(suggestion, 'ADD');
	    };
	    PlanFeedbackServant.isNoneSuggestion = function (suggestion) {
	        return PlanFeedbackServant.checkSuggestionStatus(suggestion, 'NONE');
	    };
	    PlanFeedbackServant.isMoveSuggesiton = function (suggestion) {
	        return PlanFeedbackServant.checkSuggestionStatus(suggestion, 'MOVE');
	    };
	    PlanFeedbackServant.getCategorizedAndGroupedByTermSuggestions = function (suggestions) {
	        return suggestions.reduce(function (categorizedGroupedByTermSuggestions, suggestion) {
	            var _diffType = suggestion.diff;
	            /**
	             * Based on the transaction type this function will return suggestions as an array
	             * if it is a MOVE, this function will return an array of two suggestions.
	             * Why? We need to put the course tile in two term tile (one is where it got removed and one is where it get added)
	             * if it is a ADD, we will have only one term to put, so it will return only one object in the array
	             * for rest read the function defn
	             */
	            var suggestionsForDiffType = plan_feedback_transaction_types_query_strategy_2.PlanFeedbackSuggestionsForTransactionTypeConditionalStrategy[_diffType](suggestion);
	            _4.forEach(suggestionsForDiffType, function (_suggestionWithDiffType) {
	                var diffType = _suggestionWithDiffType.diff;
	                var belongingTermField = plan_feedback_transaction_types_query_strategy_2.PlanFeedbackTermFieldIdentifierStrategy[diffType].currentTermField;
	                var suggestionBelongingTerm = suggestion[belongingTermField];
	                if (!categorizedGroupedByTermSuggestions[diffType]) {
	                    categorizedGroupedByTermSuggestions[diffType] = {};
	                }
	                if (!categorizedGroupedByTermSuggestions[diffType][suggestionBelongingTerm]) {
	                    categorizedGroupedByTermSuggestions[diffType][suggestionBelongingTerm] = [];
	                }
	                categorizedGroupedByTermSuggestions[diffType][suggestionBelongingTerm].push(_suggestionWithDiffType);
	            });
	            return categorizedGroupedByTermSuggestions;
	        }, {});
	    };
	    PlanFeedbackServant.formApiParamsForAcceptReject = function (feedbacks, action, type) {
	        return feedbacks.reduce(function (apiParams, feedback) {
	            if (feedback['type'] === type) {
	                apiParams.push({
	                    nk: feedback['nk'],
	                    action: action
	                });
	            }
	            return apiParams;
	        }, []);
	    };
	    return PlanFeedbackServant;
	}());
	exports.PlanFeedbackServant = PlanFeedbackServant;


/***/ }),
/* 14 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	var TermCourseServant = /** @class */ (function () {
	    function TermCourseServant(ngSectionsDatasource, ngTermCoursesDatasource, ngScheduledSectionStatusServant, ngTermSectionTypesDatasource) {
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngTermCoursesDatasource = ngTermCoursesDatasource;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.ngTermSectionTypesDatasource = ngTermSectionTypesDatasource;
	    }
	    TermCourseServant.isMultiSectionCourse = function (course) {
	        if (!course) {
	            return false;
	        }
	        return course._has_multi_section_types;
	    };
	    TermCourseServant.isCoursePlanned = function (course) {
	        return !_4.isEmpty(course._planned_course);
	    };
	    TermCourseServant.getScheduledSections = function (sections) {
	        var nonScheduledStatuses = ['', scheduled_section_status_enum_1.ScheduledSectionStatus.WITHDRAWN];
	        return sections.filter(function (section) { return !nonScheduledStatuses.includes(section.status); });
	    };
	    TermCourseServant.getScheduledSectionsForCourse = function (sections, course) {
	        return TermCourseServant.getScheduledSections(sections).filter(function (section) { return section.course === course.id; });
	    };
	    TermCourseServant.prototype.getSectionTypesForCoursebySessionId = function (courseSectionTypes) {
	        if (courseSectionTypes === void 0) { courseSectionTypes = []; }
	        var allSectionTypes = this.ngTermSectionTypesDatasource.values();
	        var sectionTypes = allSectionTypes.filter(function (sectionType) { return courseSectionTypes.includes(sectionType.id); });
	        return _4.groupBy(sectionTypes, 'session');
	    };
	    TermCourseServant.prototype.getScheduledSectionTypesForCourseBySessionId = function (scheduledSectionsForCourse) {
	        var scheduledSectionTypeIdsForCourse = scheduledSectionsForCourse.map(function (section) { return section.section_type; });
	        return this.getSectionTypesForCoursebySessionId(scheduledSectionTypeIdsForCourse);
	    };
	    TermCourseServant.prototype.getRegisteredSectionTypesForCourseBySessionId = function (scheduledSectionsForCourse) {
	        var registeredSectionTypeIDs = scheduledSectionsForCourse
	            .filter(this.ngScheduledSectionStatusServant.isStatusRegistered)
	            .map(function (section) { return section.section_type; });
	        return this.getSectionTypesForCoursebySessionId(registeredSectionTypeIDs);
	    };
	    TermCourseServant.prototype.isCourseScheduled = function (course) {
	        if (!course) {
	            return;
	        }
	        // filter sections related to this course.
	        // if course is multi-section, check size of filtered sections against no of section types.
	        // if filtered sections > 0 scheduled.
	        var scheduledSectionsForCourse = TermCourseServant.getScheduledSectionsForCourse(this.ngSectionsDatasource.values(), course);
	        if (_4.isEmpty(scheduledSectionsForCourse)) {
	            return false;
	        }
	        if (!TermCourseServant.isMultiSectionCourse(course)) {
	            return true;
	        }
	        return this.hasSectionTypesRemainingToScheduleForMultiSection(scheduledSectionsForCourse, course);
	    };
	    TermCourseServant.prototype.isPartiallyScheduled = function (course) {
	        if (!course) {
	            return false;
	        }
	        return !_4.isEmpty(TermCourseServant.getScheduledSectionsForCourse(this.ngSectionsDatasource.values(), course));
	    };
	    TermCourseServant.prototype.getSectionTypeIdsRemainingToScheduleForMultiSection = function (scheduledSectionsForCourse, course) {
	        var scheduledSectionTypesForCourseBySessionId = this.getScheduledSectionTypesForCourseBySessionId(scheduledSectionsForCourse);
	        var registeredSectionTypesForCourseBySessionId = this.getRegisteredSectionTypesForCourseBySessionId(scheduledSectionsForCourse);
	        /*
	         SGD-19973
	          Reason for following order of merging registered/scheduled is when session ID for the registered/scheduled is same and course is partially registered using
	          required sections. In this specific scenario, the scheduled sections will have the registered section as well.
	        */
	        var allRegisteredandScheduledSectionsTypesBySessionId = tslib_1.__assign(tslib_1.__assign({}, registeredSectionTypesForCourseBySessionId), scheduledSectionTypesForCourseBySessionId);
	        var sectionTypeIds = _4.sortBy(_4.map(_4.flatten(_4.values(_4.pick(_4.groupBy(course._section_types, 'session'), _4.keys(allRegisteredandScheduledSectionsTypesBySessionId)))), 'id'));
	        var registeredAndScheduledSectionTypeIds = _4.sortBy(_4.map(_4.flatten(_4.values(allRegisteredandScheduledSectionsTypesBySessionId)), 'id'));
	        return _4.difference(sectionTypeIds, registeredAndScheduledSectionTypeIds);
	    };
	    TermCourseServant.prototype.hasSectionTypesRemainingToScheduleForMultiSection = function (scheduledSectionsForCourse, course) {
	        return _4.isEmpty(this.getSectionTypeIdsRemainingToScheduleForMultiSection(scheduledSectionsForCourse, course));
	    };
	    TermCourseServant.prototype.hasPreRequistes = function (course) {
	        return !_4.get(course, '_planned_course.is_prereq_satisfied', true);
	    };
	    TermCourseServant.prototype.hasCoRequistes = function (course) {
	        return !_4.get(course, '_planned_course.is_coreq_satisfied', true);
	    };
	    TermCourseServant.prototype.isDevReq = function (course) {
	        return course.level === 0;
	    };
	    TermCourseServant.prototype.isLocked = function (plannedCourse) {
	        return _4.get(plannedCourse, 'is_locked', false);
	    };
	    return TermCourseServant;
	}());
	exports.TermCourseServant = TermCourseServant;


/***/ }),
/* 15 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var ap_generic_slot_servant_1 = __webpack_require__(18);
	var APProgramSlotServant = /** @class */ (function () {
	    function APProgramSlotServant() {
	    }
	    APProgramSlotServant.updateCourseGroupPlannedState = function (datasource, id) {
	        var record = datasource.get(id);
	        if (record && record.slot_type === 'GROUP') {
	            record.is_course_group_planned = !record.is_course_group_planned;
	            datasource.put(record);
	        }
	        return datasource;
	    };
	    APProgramSlotServant.isCourseGroupProgramSlot = function (pgmSlot) {
	        return pgmSlot && pgmSlot.slot_type === 'GROUP';
	    };
	    APProgramSlotServant.isProgramSlotMET = function (pgmSlot) {
	        if (!pgmSlot) {
	            return false;
	        }
	        return pgmSlot.status === 'MET';
	    };
	    APProgramSlotServant.getCourseGroupProgramSlots = function (pgmSlots) {
	        return pgmSlots.filter(function (pgmSlot) {
	            return APProgramSlotServant.isCourseGroupProgramSlot(pgmSlot);
	        });
	    };
	    APProgramSlotServant.getCourseRelatedProgramSlots = function (pgmSlots) {
	        return pgmSlots.filter(function (pgmSlot) { return !APProgramSlotServant.isNCRProgramSlot(pgmSlot); });
	    };
	    APProgramSlotServant.isWildcardProgramSlot = function (pgmSlot) {
	        return pgmSlot.slot_type === 'WILDCARD';
	    };
	    APProgramSlotServant.isNCRProgramSlot = function (pgmSlot) {
	        return pgmSlot.slot_type === 'NCR';
	    };
	    APProgramSlotServant.getWildCardProgramSlots = function (pgmSlots) {
	        return pgmSlots.filter(function (pgmSlot) {
	            return APProgramSlotServant.isWildcardProgramSlot(pgmSlot);
	        });
	    };
	    APProgramSlotServant.isCourseProgramSlot = function (pgmSlot) {
	        return pgmSlot.slot_type === 'COURSE';
	    };
	    APProgramSlotServant.getMinCredits = function (slots) {
	        var totalMinCredits = _4.sumBy(slots, function (slot) {
	            return slot.diff !== 'REMOVE' ? _4.get(slot, 'min_credits', 0) : 0;
	        });
	        return totalMinCredits ? totalMinCredits : 0;
	    };
	    APProgramSlotServant.getMaxCredits = function (slots) {
	        var totalMaxCredits = _4.sumBy(slots, function (slot) {
	            return slot.diff !== 'REMOVE' ? _4.get(slot, 'max_credits', 0) : 0;
	        });
	        return totalMaxCredits ? totalMaxCredits : 0;
	    };
	    APProgramSlotServant.getCreditsForGenericSlots = function (slots) {
	        var slotsWithCredits = _4.filter(slots, function (genericSlot) { return _4.get(genericSlot, 'credits'); });
	        return _4.reduce(slotsWithCredits, function (sum, s) {
	            return s.diff !== 'REMOVE' ? sum + s.credits : 0;
	        }, 0);
	    };
	    APProgramSlotServant.hasCreditRangeExceed = function (slots, recommendedCreditCap) {
	        var totalMinCredits = APProgramSlotServant.getMinCredits(slots);
	        var courseSlots = ap_generic_slot_servant_1.APGenericSlotServant.getCourseSlots(slots);
	        var credits = APProgramSlotServant.getCreditsForGenericSlots(courseSlots);
	        return credits + totalMinCredits > recommendedCreditCap;
	    };
	    APProgramSlotServant.getCreditsRange = function (slots) {
	        var totalMinCredits = APProgramSlotServant.getMinCredits(slots);
	        var totalMaxCredits = APProgramSlotServant.getMaxCredits(slots);
	        var courseSlots = ap_generic_slot_servant_1.APGenericSlotServant.getCourseSlots(slots);
	        var wildcardSlots = ap_generic_slot_servant_1.APGenericSlotServant.getWildCardSlots(slots);
	        var credits = APProgramSlotServant.getCreditsForGenericSlots(tslib_1.__spreadArrays(courseSlots, wildcardSlots));
	        return totalMinCredits !== totalMaxCredits
	            ? credits + totalMinCredits + " - " + (credits + totalMaxCredits)
	            : "" + (totalMaxCredits + credits);
	    };
	    return APProgramSlotServant;
	}());
	exports.APProgramSlotServant = APProgramSlotServant;


/***/ }),
/* 16 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var library = __webpack_require__(1011);
	exports.default = 'ui-ng-delegate';


/***/ }),
/* 17 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var b_tree_servant_1 = __webpack_require__(910);
	var color_1 = __webpack_require__(911);
	var iterator_1 = __webpack_require__(912);
	var number_1 = __webpack_require__(913);
	var phone_number_1 = __webpack_require__(914);
	var string_1 = __webpack_require__(280);
	var time_1 = __webpack_require__(915);
	/**
	 * @Type
	 */
	tslib_1.__exportStar(__webpack_require__(911), exports);
	tslib_1.__exportStar(__webpack_require__(915), exports);
	tslib_1.__exportStar(__webpack_require__(280), exports);
	tslib_1.__exportStar(__webpack_require__(913), exports);
	tslib_1.__exportStar(__webpack_require__(914), exports);
	tslib_1.__exportStar(__webpack_require__(912), exports);
	tslib_1.__exportStar(__webpack_require__(910), exports);
	tslib_1.__exportStar(__webpack_require__(109), exports);
	tslib_1.__exportStar(__webpack_require__(2212), exports);
	/**
	 * @deprecated all utilities are added by name
	 */
	var TypeUtility = /** @class */ (function () {
	    function TypeUtility() {
	    }
	    TypeUtility.BTreeServant = b_tree_servant_1.BTreeServant;
	    TypeUtility.PhoneNumberUtility = phone_number_1.PhoneNumberUtility;
	    TypeUtility.StringUtility = string_1.StringUtility;
	    TypeUtility.NumberUtility = number_1.NumberUtility;
	    TypeUtility.ColorUtility = color_1.ColorUtility;
	    TypeUtility.TimeUtility = time_1.TimeUtility;
	    TypeUtility.IteratorUtility = iterator_1.IteratorUtility;
	    // deprecated
	    TypeUtility.phoneNumber = phone_number_1.PhoneNumberUtility;
	    TypeUtility.string = string_1.StringUtility;
	    TypeUtility.number = number_1.NumberUtility;
	    TypeUtility.color = color_1.ColorUtility;
	    TypeUtility.time = time_1.TimeUtility;
	    return TypeUtility;
	}());
	exports.TypeUtility = TypeUtility;
	/*
	- Every Data Type
	- Color
	- Date/Time
	- Higher-order functions on top of Lodash
	*/


/***/ }),
/* 18 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_id_constants_1 = __webpack_require__(11);
	var APGenericSlotServant = /** @class */ (function () {
	    function APGenericSlotServant() {
	    }
	    APGenericSlotServant.isGenericSlotPlanned = function (genericSlot) {
	        if (APGenericSlotServant.isCourseSlot(genericSlot)) {
	            return !_4.isEmpty(genericSlot.plannedCourse);
	        }
	        if (genericSlot.type === 'NCR') {
	            return genericSlot.isPlanned;
	        }
	        // CourseGroup/Wildcard
	        return !_4.isEmpty(genericSlot.plannedCourse) || !_4.isEmpty(genericSlot.plannedCourseGroup);
	    };
	    APGenericSlotServant.isGenericSlotPlaceholderPlanned = function (genericSlot) {
	        return (APGenericSlotServant.isGenericSlotPlanned(genericSlot) &&
	            APGenericSlotServant.isCourseGroupSlot(genericSlot) &&
	            !!genericSlot.plannedCourseGroup.id);
	    };
	    APGenericSlotServant.isGenericSlotInDegreeMap = function (genericSlot) {
	        // disbled slot exist only in left side of the panel
	        return genericSlot.disableSlot || genericSlot.termId === ap_id_constants_1.INVALID_ID;
	    };
	    APGenericSlotServant.isGenericSlotCoursePlanned = function (genericSlot) {
	        return (APGenericSlotServant.isGenericSlotPlanned(genericSlot) &&
	            !!genericSlot.plannedCourse &&
	            !!genericSlot.plannedCourse.id);
	    };
	    APGenericSlotServant.isSelectedLargeCourseGroup = function (selectedProgramSlot, programSlot) {
	        return (!_4.isEmpty(selectedProgramSlot) && !_4.isEmpty(programSlot) && _4.isEqual(selectedProgramSlot.id, programSlot.id));
	    };
	    APGenericSlotServant.isCourseGroupSlot = function (genericSlot) {
	        return genericSlot.type === 'GROUP';
	    };
	    APGenericSlotServant.isNCRSlot = function (genericSlot) {
	        return genericSlot.type === 'NCR';
	    };
	    APGenericSlotServant.isWildcardSlot = function (genericSlot) {
	        return genericSlot.type === 'WILDCARD';
	    };
	    APGenericSlotServant.isCourseSlot = function (genericSlot) {
	        return genericSlot.type === 'COURSE';
	    };
	    APGenericSlotServant.getCourseSlots = function (genericSlots) {
	        return _4.filter(genericSlots, function (genericSlot) {
	            return APGenericSlotServant.isCourseSlot(genericSlot);
	        });
	    };
	    APGenericSlotServant.getWildCardSlots = function (genericSlots) {
	        return _4.filter(genericSlots, function (genericSlot) {
	            return APGenericSlotServant.isWildcardSlot(genericSlot);
	        });
	    };
	    APGenericSlotServant.uuid = function (slot) {
	        var slotID = _4.get(slot, 'programSlot.id', 0);
	        var slotCourseId = _4.get(slot, 'plannedCourse.id', 0);
	        if (APGenericSlotServant.isCourseSlot(slot)) {
	            return slot.termId + "-" + slotID + "-" + slot.course.id + "-" + slotCourseId;
	        }
	        else if (APGenericSlotServant.isWildcardSlot(slot)) {
	            return slot.termId + "-" + slotID + "-" + _4.get(slot, 'course.id', 0) + "-" + slotCourseId;
	        }
	        else if (slot.type === 'NCR') {
	            return slot.termId + "-" + slotID;
	        }
	        else {
	            return slot.termId + "-" + slotID + "-" + slot.firstCourse.id + "-" + slotCourseId;
	        }
	    };
	    return APGenericSlotServant;
	}());
	exports.APGenericSlotServant = APGenericSlotServant;


/***/ }),
/* 19 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var section_status_servant_1 = __webpack_require__(31);
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	var term_course_servant_1 = __webpack_require__(14);
	var _4 = __webpack_require__(1);
	var ScheduledSectionServant = /** @class */ (function () {
	    function ScheduledSectionServant(ngSectionsDatasource, ngTermCourseServant, ngScheduledSectionTileServant, ngTermScheduleFlags, ngRegistrationWaitlistPositionModel, ngScheduledSectionStatusServant, ngLinkedSectionsModel) {
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngTermCourseServant = ngTermCourseServant;
	        this.ngScheduledSectionTileServant = ngScheduledSectionTileServant;
	        this.ngTermScheduleFlags = ngTermScheduleFlags;
	        this.ngRegistrationWaitlistPositionModel = ngRegistrationWaitlistPositionModel;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.ngLinkedSectionsModel = ngLinkedSectionsModel;
	    }
	    ScheduledSectionServant.canBeSelected = function (section, termScheduleFlags) {
	        if (section.is_selected) {
	            return true;
	        }
	        return ScheduledSectionServant.isEligibleForSelection(section, termScheduleFlags);
	    };
	    ScheduledSectionServant.isSectionScheduled = function (section) {
	        return (!term_course_servant_1.TermCourseServant.isMultiSectionCourse(section._course) &&
	            _4.includes(scheduled_section_status_enum_1.ScheduledSectionStatus.getScheduledSectionStatuses(), section.status));
	    };
	    ScheduledSectionServant.isEligibleForSelection = function (section, termScheduleFlags) {
	        var notWaitlisted = !_4.get(section, 'is_waitlisted', false);
	        if (notWaitlisted) {
	            return _4.get(section, '_isEligibleForRegistration', false);
	        }
	        if (termScheduleFlags && ScheduledSectionServant.isSectionWaitListed(section)) {
	            return termScheduleFlags.allowWaitlistedSectionsForRegistrationSelection();
	        }
	        return ScheduledSectionServant.hasAvailableSeats(section);
	    };
	    ScheduledSectionServant.isSectionWaitListed = function (section) {
	        return section_status_servant_1.SectionStatusServant.isStatusWaitlisted(section);
	    };
	    ScheduledSectionServant.hasAvailableSeats = function (section) {
	        // Scheduled sections might now have section._availability.is_seat_available flag.
	        // if unlimited seating - dont check for seat availability.
	        if (section.is_unlimited_seating) {
	            return true;
	        }
	        if (section._availability) {
	            if (!section._availability.is_seat_available) {
	                return false;
	            }
	            if (!_4.isUndefined(section._availability.avail_seats)) {
	                return section._availability.avail_seats > 0;
	            }
	            else {
	                return !section_status_servant_1.SectionStatusServant.isStatusWaitlisted(section);
	            }
	        }
	        else {
	            return ScheduledSectionServant.isSectionScheduled(section);
	        }
	    };
	    // TODO: Think about moving this to multi_section_servant
	    ScheduledSectionServant.prototype.isSectionScheduledMultiSection = function (section) {
	        return (term_course_servant_1.TermCourseServant.isMultiSectionCourse(section._course) &&
	            _4.includes(scheduled_section_status_enum_1.ScheduledSectionStatus.getScheduledSectionStatuses(), section.status));
	    };
	    ScheduledSectionServant.prototype.isSectionScheduled_ = function (section) {
	        return _4.includes(scheduled_section_status_enum_1.ScheduledSectionStatus.getScheduledSectionStatuses(), section.status);
	    };
	    ScheduledSectionServant.prototype.isSectionRegistered = function (section) {
	        var registeredSectionStatuses = scheduled_section_status_enum_1.ScheduledSectionStatus.getRegisteredSectionStatuses();
	        return _4.includes(registeredSectionStatuses, section.status);
	    };
	    ScheduledSectionServant.prototype.isSectionInProgress = function (section) {
	        return this.ngScheduledSectionStatusServant.isStatusInProgress(section);
	    };
	    ScheduledSectionServant.prototype.canBeRegistered = function (section) {
	        return (!(this.ngScheduledSectionStatusServant.isStatusRegisteredOrCompleteOrInProgress(section) ||
	            section_status_servant_1.SectionStatusServant.isStatusWaitlisted(section) ||
	            this.isSectionWithdrawn(section)) || this.canAddFromWaitlist(section));
	    };
	    ScheduledSectionServant.prototype.canBeWaitlisted = function (section) {
	        var isWaitlistEnabled = this.ngScheduledSectionTileServant.isWaitlistEnabled();
	        var canSectionBeRegistered = this.canBeRegistered(section);
	        var canSectionBeWaitlisted = isWaitlistEnabled && !this.isSeatAvailable(section) && canSectionBeRegistered;
	        return canSectionBeWaitlisted;
	    };
	    ScheduledSectionServant.prototype.isNonMultiSectionRegistered = function (section) {
	        return !term_course_servant_1.TermCourseServant.isMultiSectionCourse(section._course) && this.isSectionRegistered(section);
	    };
	    ScheduledSectionServant.prototype.isMultiSectionRegistered = function (section) {
	        return term_course_servant_1.TermCourseServant.isMultiSectionCourse(section._course) && this.isSectionRegistered(section);
	    };
	    ScheduledSectionServant.prototype.isSectionTypeScheduled = function (sectionType) {
	        return (_4.size(_4.filter(_4.toArray(this.ngSectionsDatasource.read()), function (section) {
	            return section.status !== scheduled_section_status_enum_1.ScheduledSectionStatus.UNSCHEDULED &&
	                section.section_type === sectionType.id &&
	                section.status !== scheduled_section_status_enum_1.ScheduledSectionStatus.WITHDRAWN;
	        })) > 0);
	    };
	    ScheduledSectionServant.prototype.isSectionWithdrawn = function (section) {
	        return this.ngScheduledSectionStatusServant.isStatusWithdrawn(section);
	    };
	    ScheduledSectionServant.prototype.isSectionMultiSection = function (section) {
	        var course = _4.get(section, '_course');
	        if (!course) {
	            return false;
	        }
	        return term_course_servant_1.TermCourseServant.isMultiSectionCourse(course);
	    };
	    ScheduledSectionServant.prototype.isAutoWaitlistedHidePosition = function (section) {
	        var waitlistPosition = this.ngRegistrationWaitlistPositionModel.get(section.id);
	        return (section_status_servant_1.SectionStatusServant.isStatusWaitlisted(section) &&
	            this.isAutoWailistSection(section) &&
	            !_4.isUndefined(waitlistPosition) &&
	            !this.isSeatAvailable(section) &&
	            waitlistPosition.place_in_waitlist === 0);
	    };
	    ScheduledSectionServant.prototype.isWaitlistedEligibleForRegistration = function (section) {
	        // Whats the difference between position and place_in_waitlist?
	        // position is absolute waitlist value returned by SIS. place_in_waitlist is the relative waitlist position calculated by us
	        var waitlistPosition = this.ngRegistrationWaitlistPositionModel.get(section.id);
	        if (this.isAutoWaitlistedHidePosition(section)) {
	            return false;
	        }
	        var placeInWaitlist = (waitlistPosition && waitlistPosition.place_in_waitlist) || 0;
	        if (waitlistPosition && _4.get(section, '_availability.is_seat_available', false)) {
	            return placeInWaitlist <= section._availability.avail_seats;
	        }
	        else {
	            return false;
	        }
	    };
	    ScheduledSectionServant.prototype.canAddFromWaitlist = function (section) {
	        // Udpate for SGD-11593
	        // const oldConditionForProperWaitlistCheck = (SectionStatusServant.isStatusWaitlisted(section) && !this.ngTermScheduleFlags.isBatchRegisterWaitlistedStudentsEnabled() &&
	        // this.hasAvailableSeats(section) &&
	        // this.isWaitlistedEligibleForRegistration(section));
	        var allowStudentsToSelectForRegister = section_status_servant_1.SectionStatusServant.isStatusWaitlisted(section) &&
	            !this.ngTermScheduleFlags.isBatchRegisterWaitlistedStudentsEnabled(); // When this is off(false)
	        return allowStudentsToSelectForRegister;
	    };
	    ScheduledSectionServant.prototype.isSeatAvailable = function (section) {
	        return _4.get(section, '_availability.is_seat_available', false);
	    };
	    ScheduledSectionServant.prototype.hasLinkedSections = function (sectionId) {
	        return _4.isEmpty(this.ngLinkedSectionsModel.get(sectionId));
	    };
	    ScheduledSectionServant.prototype.getLinkedSections = function (sectionId, sections) {
	        var linkedSectionIds = this.ngLinkedSectionsModel.get(sectionId);
	        return _4.compact(_4.map(linkedSectionIds, function (lnkdSctnId) { return _4.find(sections, function (sctn) { return sctn.id === lnkdSctnId; }); }));
	    };
	    ScheduledSectionServant.prototype.getRegisteredLinkedSections = function (sectionId, sections) {
	        var _this = this;
	        return _4.filter(this.getLinkedSections(sectionId, sections), function (sctn) { return _this.isSectionRegistered(sctn); });
	    };
	    ScheduledSectionServant.prototype.isAutoWailistSection = function (section) {
	        return _4.get(section, '_availability.is_auto_waitlist', false);
	    };
	    ScheduledSectionServant.prototype.getAutoWaitlistSections = function (sections) {
	        var _this = this;
	        return sections
	            .filter(function (selectedSection) { return _this.isAutoWailistSection(selectedSection); })
	            .map(function (autoWaitlistedSection) { return autoWaitlistedSection.id; });
	    };
	    ScheduledSectionServant.prototype.getSectionEnforcedCoreqs = function (section) {
	        return _4.map(_4.get(section, '_course._coreq_courses', []), function (coreqCourse) { return coreqCourse.id; });
	    };
	    ScheduledSectionServant.prototype.isCoreq = function (section, allRegistrationSections) {
	        var _this = this;
	        var sectionsWithCoreqs = _4.filter(allRegistrationSections, function (sct) {
	            return _this.ngScheduledSectionStatusServant.hasEnforcedCoreqs(sct);
	        });
	        var allCoreqCourses = _4.map(sectionsWithCoreqs, function (sectionWithCoreqs) { return sectionWithCoreqs._course._coreq_courses; });
	        var allCoreqCoursesIds = _4.map(_4.flatten(allCoreqCourses), function (coreqCourse) { return coreqCourse.id; });
	        return _4.some(allCoreqCoursesIds, function (coreqCourseId) { return _4.isEqual(section._course.id, coreqCourseId); });
	    };
	    ScheduledSectionServant.prototype.getCoreqsRelated = function (section, allRegistrationSections) {
	        var _this = this;
	        var coreqsContainedBySection = _4.get(section, '_course._coreq_courses', []);
	        var hasCoreqs = !_4.isEmpty(coreqsContainedBySection);
	        // if has coreqs is a coreq `parent`
	        if (hasCoreqs) {
	            return _4.filter(allRegistrationSections, function (regSection) {
	                return _4.includes(_4.map(coreqsContainedBySection, 'id'), regSection._course.id);
	            });
	        }
	        else if (this.isCoreq(section, allRegistrationSections)) {
	            // if it's a coreq but does not contain coreqs has a `parent` and could have `siblings`
	            var sectionsWithCoreqs = _4.filter(allRegistrationSections, function (sct) {
	                return _this.ngScheduledSectionStatusServant.hasEnforcedCoreqs(sct);
	            });
	            var allCoreqCourses = _4.map(sectionsWithCoreqs, function (sectionWithCoreqs) { return sectionWithCoreqs._course._coreq_courses; });
	            var parentCoreq = _4.find(sectionsWithCoreqs, function (sectionWithCoreqs) {
	                return _4.some(sectionWithCoreqs._course.coreq, function (courseId) { return _4.isEqual(courseId, section._course.id); });
	            });
	            var siblingsCoreqsIds_1 = _4.filter(_4.get(parentCoreq, '_course.coreq', []), function (coreqId) { return !_4.isEqual(coreqId, section._course.id); });
	            var siblingsCoreqCourses = _4.filter(allRegistrationSections, function (regSection) {
	                return _4.includes(siblingsCoreqsIds_1, regSection._course.id);
	            });
	            return _4.concat(siblingsCoreqCourses, [parentCoreq]);
	        }
	        else {
	            return [];
	        }
	    };
	    ScheduledSectionServant.prototype.getRegisteredCoreqsRelated = function (section, allRegistrationSections) {
	        var _this = this;
	        var coreqsCoursesRelated = this.getCoreqsRelated(section, allRegistrationSections);
	        var registeredCoreqs = _4.filter(coreqsCoursesRelated, function (coreqsCourseRelated) {
	            return _4.some(_this.ngSectionsDatasource.read(), function (sctn) { return sctn.course === coreqsCourseRelated.course && _this.isSectionRegistered(sctn); });
	        });
	        return _4.filter(registeredCoreqs, function (coreqSection) { return !_this.isSectionWithdrawn(coreqSection); });
	    };
	    ScheduledSectionServant.prototype.getInProgressCoreqsRelated = function (section, allRegistrationSections) {
	        return this.getRegisteredCoreqsRelated(section, allRegistrationSections);
	    };
	    ScheduledSectionServant.prototype.getScheduledSectionByCD = function (cd) {
	        return _4.find(this.ngSectionsDatasource.read(), function (item) { return item.cd === cd && item.status !== ''; });
	    };
	    ScheduledSectionServant.prototype.getUnscheduleCourseMenuOption = function (options, title, menuEnum) {
	        return options.push({
	            id: menuEnum.UNSCHEDULE_COURSE,
	            text: "Unschedule " + title
	        });
	    };
	    ScheduledSectionServant.prototype.getDropCourseMenuOption = function (options, title, menuEnum) {
	        return options.push({
	            id: menuEnum.DROP_COURSE,
	            text: "Drop " + title
	        });
	    };
	    ScheduledSectionServant.prototype.getRemoveWaitlistMenuOption = function (options, menuEnum) {
	        return options.push({
	            id: menuEnum.REMOVE_WAITLIST,
	            text: "Remove from waitlist"
	        });
	    };
	    ScheduledSectionServant.prototype.getUnscheduleSectionsMenuOption = function (options, title, menuEnum) {
	        return options.push({
	            id: menuEnum.UNSCHEDULE_SECTIONS,
	            text: "Unschedule " + title
	        });
	    };
	    ScheduledSectionServant.prototype.getDropSectionsMenuOption = function (options, title, menuEnum) {
	        return options.push({
	            id: menuEnum.DROP_SECTIONS,
	            text: "Drop " + title
	        });
	    };
	    ScheduledSectionServant.prototype.getDropEnforcedCoreqsMenuOption = function (options, title, menuEnum) {
	        return options.push({
	            id: menuEnum.DROP_ENFORCED_COREQS,
	            text: "" + title
	        });
	    };
	    ScheduledSectionServant.prototype.getSwapSectionMenuOption = function (options, menuEnum) {
	        return options.push({
	            id: menuEnum.SWAP_SECTION,
	            text: "Swap Time"
	        });
	    };
	    ScheduledSectionServant.prototype.getSwapCourseMenuOption = function (options, menuEnum) {
	        return options.push({
	            id: menuEnum.SWAP_COURSE,
	            text: "Swap Course"
	        });
	    };
	    ScheduledSectionServant.prototype.getScheduleAgainMenuOption = function (options, menuEnum) {
	        return options.push({
	            id: menuEnum.SCHEDULE_AGAIN,
	            text: "Schedule Another Time"
	        });
	    };
	    ScheduledSectionServant.prototype.getWithdrawMenuOption = function (options, menuEnum) {
	        return options.push({
	            id: menuEnum.WITHDRAW,
	            text: "Withdraw"
	        });
	    };
	    ScheduledSectionServant.prototype.isInRescheduleMode = function ($state) {
	        return _4.includes($state.current.name || '', 'reschedule');
	    };
	    ScheduledSectionServant.prototype.hasUnsatisfiedCrossCourseCoReq = function (section) {
	        return (_4.get(section, '_section_status.has_linked_section_coreqs') &&
	            !_4.get(section, '_section_status.linked_section_coreqs_satisfied'));
	    };
	    return ScheduledSectionServant;
	}());
	exports.ScheduledSectionServant = ScheduledSectionServant;


/***/ }),
/* 20 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var lodash4_1 = __webpack_require__(1);
	var moment = __webpack_require__(2);
	var ap_term_course_status_group_strategy_1 = __webpack_require__(122);
	var ap_term_status_strategy_1 = __webpack_require__(123);
	var ap_course_requisite_reminder_strategy_1 = __webpack_require__(490);
	var ap_program_slot_servant_1 = __webpack_require__(15);
	var APTermServant = /** @class */ (function () {
	    function APTermServant() {
	    }
	    APTermServant.getFutureTerms = function (termsWithMeta) {
	        return _4.sortBy(_4.reject(termsWithMeta, { is_past_term: true }), 'rank');
	    };
	    APTermServant.sortByAlertsAndTitleCourses = function (genericSlots) {
	        return _4.sortBy(genericSlots, 'programSlot.id');
	    };
	    APTermServant.courseRequisiteMessages = function (course) {
	        return _4.compact(ap_course_requisite_reminder_strategy_1.APCourseRequisiteReminderStrategy.map(function (val, key) {
	            return course[key].length > 0 ? val.reminder_template(course._course) : "";
	        }));
	    };
	    APTermServant.coursesMissingRequisites = function (term) {
	        return _4.compact(_4.reduce(term._plannedCourses, function (messages, course) {
	            return _4.concat(messages, APTermServant.courseRequisiteMessages(course));
	        }, []));
	    };
	    APTermServant.sortCourseBucketCategories = function (termGenericSlots, term) {
	        var statusGroups = _4.mapValues(ap_term_course_status_group_strategy_1.APTermCourseStatusGroupStrategy, function (strategy, objKey) {
	            return _4.assign({}, strategy, { genericSlots: [], groupKey: objKey });
	        });
	        _4.each(statusGroups, function (statusGroup, prop) {
	            statusGroup.genericSlots = APTermServant.sortByAlertsAndTitleCourses(_4.filter(termGenericSlots, statusGroup.filter));
	        });
	        // NOTE: Planned courses
	        // Has courses with sections picked - marked gray
	        // When registration is open - these sections become 'Ready to register'
	        var isRegistrationOpen = APTermServant.isRegistrationOpen(term);
	        if (isRegistrationOpen) {
	            var planned = statusGroups['PLANNED'];
	            var slotsWithSectionsPicked = _4.partition(planned.genericSlots, function (slot) {
	                return _4.get(slot.plannedCourse, 'status') === 'SECTION_PICKED';
	            });
	            statusGroups['READY_TO_REGISTER'].genericSlots = slotsWithSectionsPicked[0];
	            planned.genericSlots = slotsWithSectionsPicked[1];
	        }
	        else {
	            statusGroups['READY_TO_REGISTER'].genericSlots = [];
	        }
	        return statusGroups;
	    };
	    APTermServant.isRegistrationOpen = function (term) {
	        return ap_term_status_strategy_1.APTermStatusStrategy.isEqual(term._termStatus, ap_term_status_strategy_1.APTermStatusStrategy.getByKey('REG_OPEN'));
	    };
	    APTermServant.isPriorityRegistrationOpen = function (term) {
	        return ap_term_status_strategy_1.APTermStatusStrategy.isEqual(term._termStatus, ap_term_status_strategy_1.APTermStatusStrategy.getByKey('PRIORITY_REG_OPEN'));
	    };
	    APTermServant.isCompleted = function (term) {
	        return ap_term_status_strategy_1.APTermStatusStrategy.isEqual(term._termStatus, ap_term_status_strategy_1.APTermStatusStrategy.getByKey('TERM_COMPLETED'));
	    };
	    APTermServant.hasCoursesWithStatus = function (term) {
	        // Check if any course has a non default status.
	        return _4.some(term._plannedCourses, function (course) { return _4.isEmpty(course.status) || _4.isEqual(course.status, 'DEFAULT'); });
	    };
	    APTermServant.hasAdvisorLockedCourseExist = function (term) {
	        return _4.some(term._genericSlots, { isLockedByAdvisor: true });
	    };
	    APTermServant.isRegistrationButtonDisabled = function (term) {
	        return !APTermServant.hasAvailableSections(term);
	    };
	    APTermServant.hasDefaultRegistrationDates = function (term) {
	        return term.registration_end_dt.year() === 1900 || term.registration_start_dt.year() === 1900;
	    };
	    APTermServant.hasAvailableSections = function (term) {
	        return term.num_sections > 0;
	    };
	    APTermServant.hasPriorityReg = function (term) {
	        return !lodash4_1.isEmpty(term.priority_registration_start_dt) && !lodash4_1.isEmpty(term.priority_registration_end_dt);
	    };
	    APTermServant.inCountdownPeriod = function (term) {
	        if (!APTermServant.hasPriorityReg(term)) {
	            return false;
	        }
	        var NUMBER_OF_WEEKS = 2;
	        var countdownStart = moment(term.priority_registration_start_dt).subtract(NUMBER_OF_WEEKS, 'weeks');
	        var countdownEnd = moment(term.priority_registration_start_dt);
	        var now = moment();
	        return now.isBetween(countdownStart, countdownEnd);
	    };
	    APTermServant.inPriorityPeriod = function (term) {
	        return (APTermServant.hasPriorityReg(term) &&
	            moment().isBetween(term.priority_registration_start_dt, term.priority_registration_end_dt));
	    };
	    APTermServant.hasCreditCapExceeded = function (term) {
	        if (_4.isNull(term.credit_cap)) {
	            return false;
	        }
	        return ap_program_slot_servant_1.APProgramSlotServant.hasCreditRangeExceed(term._genericSlots, term.credit_cap);
	    };
	    APTermServant.getTermsWithPriorityRegistrationDatesAssigned = function (terms, priorityRegTermsData) {
	        return lodash4_1.map(terms, function (term) {
	            var priorityRegTermData = lodash4_1.find(priorityRegTermsData, { term: term.id });
	            if (!priorityRegTermData) {
	                return term;
	            }
	            // priority reg start, end time comes are in UTC from api, so converting them to local timezone
	            var timeZoneFormat = 'YYYY-MM-DDThh:mm:ssZ';
	            term.priority_registration_start_dt = moment.utc(priorityRegTermData.start_ts, timeZoneFormat).local();
	            if (lodash4_1.isEmpty(priorityRegTermData.end_ts)) {
	                term.priority_registration_end_dt = moment(term.registration_start_dt);
	            }
	            else {
	                term.priority_registration_end_dt = moment.utc(priorityRegTermData.end_ts, timeZoneFormat).local();
	            }
	            return term;
	        });
	    };
	    APTermServant.getSectionPickedAndPlannedCourses = function (term) {
	        var allPlannedCoursesInTerm = _4.get(term, '_plannedCourses', []);
	        return _4.filter(allPlannedCoursesInTerm, function (plannedCourse) { return !_4.includes(['REGISTERED', 'IN_PROGRESS', 'COMPLETED', 'WAITLISTED'], plannedCourse.status); });
	    };
	    APTermServant.getAllLockedPlannedCourses = function (term) {
	        var allPlannedCourses = this.getSectionPickedAndPlannedCourses(term);
	        return _4.filter(allPlannedCourses, 'is_locked');
	    };
	    APTermServant.getAllUnLockedPlannedCourses = function (term) {
	        var allPlannedCourses = this.getSectionPickedAndPlannedCourses(term);
	        return _4.reject(allPlannedCourses, 'is_locked');
	    };
	    return APTermServant;
	}());
	exports.APTermServant = APTermServant;


/***/ }),
/* 21 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	__webpack_require__(1081);
	__webpack_require__(1082);
	__webpack_require__(1083);
	__webpack_require__(1079);
	__webpack_require__(1080);
	exports.default = 'utility-ng-interface';


/***/ }),
/* 22 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	/**
	 * @ utility-ng-enumeration
	 */
	var utility_js_enumeration_1 = __webpack_require__(33);
	angular.module('utility-ng-enumeration', []).constant('Enumeration', utility_js_enumeration_1.default);
	window['Enumeration'] = utility_js_enumeration_1.default;
	exports.default = utility_js_enumeration_1.default;


/***/ }),
/* 23 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.EMPHASIZE_DROP_AREA = 'EMPHASIZE_DROP_AREA';
	exports.DEEMPHASIZE_DROP_AREA = 'DEEMPHASIZE_DROP_AREA';


/***/ }),
/* 24 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	var constants = __webpack_require__(1062);
	var _ = __webpack_require__(7);
	
	var InterfacePrototype = function InterfacePrototype() {
	  var _types = {};
	  var _postprocessors = {};
	  var _preprocessors = {};
	
	  /** -- OBJECT -- */
	
	  this.fork = function fork_Interface() {
	    return new InterfaceType();
	  };
	
	  /** -- CONFIGURATION -- */
	
	  this.configure = function configure(c) {
	    if (c) {
	      this._internalConfiguration = _.merge({}, constants.DEFAULT_CONFIGURATION, this._internalConfiguration, c);
	      this._configurationQueue = [this._internalConfiguration];
	      return this;
	    }
	
	    return this._internalConfiguration;
	  };
	
	  this.configurePush = function configurePush(c) {
	    this._internalConfiguration = _.merge({}, constants.DEFAULT_CONFIGURATION, c);
	    this._configurationQueue.push(this._internalConfiguration);
	    return this._internalConfiguration;
	  };
	
	  /**
	   * call after Interface#configurePush to restore the previous configuration
	   */
	  this.configurePop = function configurePop() {
	    var c = this._configurationQueue.pop();
	
	    if (_.size(this._configurationQueue) > 0) {
	      this._internalConfiguration = _.last(this._configurationQueue);
	    }
	
	    return this._internalConfiguration;
	  };
	
	  /** @deprecated */
	  this.configuration = this.configure;
	
	  /** -- DATA TYPE -- */
	
	  /** @type {type} */
	  this.discoverType = constants.discoverType;
	
	  /** add a new type for Interface to use */
	  this.type = function type_Interface(name, definition) {
	    if (definition === undefined) {
	      return _types[name];
	    }
	
	    _types[name] = definition;
	    return this;
	  };
	
	  /** @returns array of type names supported */
	  this.typesSupported = function typesSupported_Interface() {
	    return _.keys(_types);
	  };
	
	  /** -- PREPROCESSORS -- */
	
	  /** add a new preprocessors for Interface to use */
	  this.preprocessor = function preprocessor_Interface(name, definition) {
	    if (definition === undefined) {
	      return _preprocessors[name];
	    }
	
	    _preprocessors[name] = definition;
	    return this;
	  };
	
	  /** @returns array of preprocessors names supported */
	  this.preprocessorsSupported = function preprocessorsSupported_Interface() {
	    return _.keys(_preprocessors);
	  };
	
	  /** add a new preprocessors for Interface to use */
	  this.postprocessor = function postprocessor_Interface(name, definition) {
	    if (definition === undefined) {
	      return _postprocessors[name];
	    }
	
	    _postprocessors[name] = definition;
	    return this;
	  };
	
	  /** -- POSTPROCESSORS -- */
	
	  /** @returns array of preprocessors names supported */
	  this.postprocessorsSupported = function postprocessorsSupported_Interface() {
	    return _.keys(_postprocessors);
	  };
	
	  /** -- PUBLIC METHODS -- */
	
	  this.implementObject = function implementObject(dtd, list) {
	    return _.zipObject(_.keys(list), this.implementArray(dtd, list));
	  };
	
	  this.implementArray = function implementArray(dtd, list) {
	    return _.map(list, function (o) {
	      return this.make(dtd, o);
	    }, this);
	  };
	
	  this.generate = function generate(dtd) {
	    var generatedObject;
	
	    this.configurePush({
	      integritySafeguards: false
	    });
	    generatedObject = this.implement(dtd, undefined, {});
	    this.configurePop();
	
	    return generatedObject;
	  };
	
	  this.validate = function validate(dtd, source) {
	    try {
	      this.configurePush({
	        integritySafeguards: true,
	        defaultToRequired: true,
	        failFast: true
	      });
	      this.make(dtd, source);
	      this.configurePop();
	
	      return true;
	    } catch (e) {
	      return false;
	    }
	  };
	
	  this.gateway = function gateway(dtd, source, sync) {
	    return _.merge(sync, source, this.make(dtd, source));
	  };
	
	  this.merge = function gateway(dtd, syncSource) {
	    return _.merge(syncSource, this.make(dtd, syncSource));
	  };
	
	  this.make = function make(dtd, source) {
	    return this.implement(dtd, source, {});
	  };
	
	  this.implement = function implement(dtd, source, sync) {
	    var implemented;
	
	    this._dtdQueue.push(sync);
	    implemented = this._implement(dtd, source, sync);
	    this._dtdQueue.pop();
	
	    return implemented;
	  };
	
	  this.mock = function mock(dtd) {
	    var mocked;
	
	    this._dtdQueue.push(sync);
	    mocked = this._mock(dtd);
	    this._dtdQueue.pop();
	
	    return mocked;
	  };
	
	  /** -- PRIVATE METHODS -- */
	
	  this._mock = function _mock(dtd) {
	    this.activeMethod = '_mock';
	    return parse.call(this, {
	      dtd: dtd,
	      source: {},
	      sync: {},
	      syncKey: syncKeyConvertToInternalKey,
	      process: function mockProcess(ruleset) {
	        if (!ruleset.typeRequirement.mockValue) {
	          return;
	        }
	
	        ruleset.sync[ruleset.syncKey] = ruleset.typeRequirement.mockValue.call(this, ruleset.typeRequirement, ruleset.dtdRequirement, this._dtdQueue);
	      }
	    });
	  };
	
	  /**
	   * produce a version of the object that is ready for serialization to json
	   *
	   * @param dtd the data type definition to follow
	   * @param source Actually the data source to serialize to the initial version
	   * @return synced object data mirroring source, but in the original format
	   * @deprecated
	   */
	  this.serialize = function serialize(dtd, actuallySync) {
	    var syncFromSource = {};
	
	    console.debug('Interface#serialize is @deprecated');
	
	    this.activeMethod = 'serialize';
	    return parse.call(this, {
	      dtd: dtd,
	      source: _.cloneDeep(actuallySync),
	      sync: syncFromSource,
	      syncKey: syncKeyConvertToInternalKey,
	      process: function implementProcess(ruleset) {
	        ruleset.source[ruleset.syncKey] = postprocessType.call(this, ruleset.dtdRequirement, ruleset.source[ruleset.syncKey], 'convertToSource');
	
	        ruleset.sync[ruleset.sourceKey] = !!ruleset.typeRequirement.convertToSource ? ruleset.typeRequirement.convertToSource.call(this, ruleset.source[ruleset.syncKey], ruleset.dtdRequirement, ruleset.source, ruleset.sync) : ruleset.source[ruleset.syncKey];
	
	        ruleset.sync[ruleset.sourceKey] = preprocessType.call(this, ruleset.dtdRequirement, ruleset.sync[ruleset.sourceKey], 'convertToSource');
	      }
	    });
	  };
	
	  /**
	   * iterates over the dtd and pulls good values out of the data object into
	   * the obj object.
	   */
	  this._implement = function _implement(dtd, sourceObject, syncObject) {
	    this.activeMethod = '_implement';
	    return parse.call(this, {
	      dtd: dtd,
	      sync: syncObject,
	      source: sourceObject,
	      syncKey: syncKeyConvertToInternalKey,
	      process: function implementProcess(ruleset) {
	        var isRequired, doesSourceMeetCriteria, syncValue;
	
	        var sourceProp = preprocessType.call(this, ruleset.dtdRequirement, ruleset.source[ruleset.sourceKey], 'convertToSync');
	
	        if (ruleset.typeRequirement.convertToSync) {
	          sourceProp = ruleset.typeRequirement.convertToSync.call(this, sourceProp, ruleset.dtdRequirement, ruleset.source, ruleset.sync);
	        }
	
	        doesSourceMeetCriteria = ruleset.typeRequirement.isOfType.call(this, sourceProp, ruleset.dtdRequirement);
	
	        isRequired = ruleset.dtdRequirement.required === undefined && ruleset.dtdRequirement.optional === undefined ? this._internalConfiguration.defaultToRequired : !!ruleset.dtdRequirement.required || !ruleset.dtdRequirement.optional;
	
	        if (!doesSourceMeetCriteria && !!this._internalConfiguration.integritySafeguards && !!isRequired) {
	          if (!!this._internalConfiguration.failFast) {
	            throw new EABError('utility-js-interface', 201, {
	              requirements: ruleset.dtdRequirement,
	              property: ruleset.sourceKey,
	              source: ruleset.source
	            });
	          } else {
	            this._internalConfiguration.logFailureFn('interface: required property ' + ruleset.sourceKey + ' or ' + ruleset.sourceKey, ruleset.dtdRequirement);
	          }
	        }
	
	        syncValue = !!doesSourceMeetCriteria ? sourceProp : getDefaultValue(ruleset.dtdRequirement.defaultValue, ruleset.typeRequirement.defaultValue, ruleset.dtdRequirement, sourceProp);
	
	        if (ruleset.typeRequirement.afterConvertToSync) {
	          syncValue = ruleset.typeRequirement.afterConvertToSync(syncValue, ruleset.dtdRequirement);
	        }
	
	        if (ruleset.dtdRequirement.afterConvertToSync) {
	          syncValue = ruleset.dtdRequirement.afterConvertToSync(syncValue, ruleset.dtdRequirement);
	        }
	
	        ruleset.sync[ruleset.syncKey] = postprocessType.call(this, ruleset.dtdRequirement, syncValue, 'convertToSync');
	      }
	    });
	  };
	
	  /**  */
	  var parse = function parse(ruleset) {
	    var dtdRequirement, sourceKey, sourceProp, typeRequirement, syncKey;
	
	    if (!ruleset.dtd) {
	      return ruleset.source;
	    }
	
	    if (!ruleset.source) {
	      ruleset.source = {};
	    }
	
	    if (_.isString(ruleset.dtd)) {
	      ruleset.dtd = {
	        __singleDataValue__: ruleset.dtd
	      };
	    }
	
	    if (isSingularValueOnDTD(ruleset.dtd)) {
	      ruleset.source = {
	        __singleDataValue__: ruleset.source
	      };
	
	      ruleset.sync = {
	        __singleDataValue__: ruleset.sync
	      };
	    }
	
	    for (var key in ruleset.dtd) {
	      dtdRequirement = ruleset.dtd[key] = getDTDRequirements.call(this, ruleset.dtd, key);
	      sourceKey = getSourceKey.call(this, dtdRequirement, ruleset.source, key);
	      syncKey = ruleset.syncKey.call(this, dtdRequirement, sourceKey);
	
	      // recursive descent
	      if (constants.MATCH_DESCENDANT_KEY.test(sourceKey)) {
	        syncKey = syncKey.replace(constants.MATCH_DESCENDANT_KEY, '');
	        ruleset.sync[syncKey] = ruleset.sync[syncKey] || {};
	        sourceProp = ruleset.source[syncKey];
	
	        this[this.activeMethod](dtdRequirement, sourceProp, ruleset.sync[syncKey], ruleset);
	      }
	
	      // single value definition
	      else {
	          typeRequirement = resolveTypeRequirements.call(this, dtdRequirement.type);
	
	          if (!typeRequirement) {
	            throw new EABError('utility-js-interface', 100, {
	              type: dtdRequirement.type.toString()
	            });
	          }
	
	          ruleset.process.call(this, {
	            typeRequirement: typeRequirement,
	            dtdRequirement: dtdRequirement,
	            source: ruleset.source,
	            sourceKey: sourceKey,
	            sync: ruleset.sync,
	            syncKey: syncKey
	          });
	        }
	    }
	
	    if (isSingularValueOnDTD(ruleset.dtd)) {
	      ruleset.sync = ruleset.sync.__singleDataValue__;
	    }
	
	    return ruleset.sync;
	  };
	
	  /**
	   *
	   * @param dtdRequirement
	   * @param sourceProp
	   * @param fnName
	   * @returns {*}
	   */
	  var preprocessType = function preprocessType_Interface(dtdRequirement, sourceProp, fnName) {
	    var preprocessor;
	
	    if (!dtdRequirement.preprocessor) {
	      return sourceProp;
	    }
	
	    if (_.isPlainObject(dtdRequirement.preprocessor) && _.isFunction(dtdRequirement.preprocessor[fnName])) {
	      preprocessor = dtdRequirement.preprocessor;
	    } else if (!!_preprocessors[dtdRequirement.preprocessor]) {
	      preprocessor = _preprocessors[dtdRequirement.preprocessor];
	    }
	
	    if (!preprocessor || !_.isFunction(preprocessor[fnName])) {
	      throw new EABError('utility-js-interface', 101, {
	        preprocessor: dtdRequirement.preprocessor
	      });
	    }
	
	    return preprocessor[fnName](sourceProp, dtdRequirement, this._dtdQueue);
	  };
	
	  /**
	   *
	   * @param dtdRequirement
	   * @param syncProp
	   * @param fnName
	   * @returns {*}
	   */
	  var postprocessType = function postprocessType_Interface(dtdRequirement, syncProp, fnName) {
	    var postprocessor;
	
	    if (!dtdRequirement.postprocessor) {
	      return syncProp;
	    }
	
	    if (!!dtdRequirement.postprocessor && _.isFunction(dtdRequirement.postprocessor[fnName])) {
	      postprocessor = dtdRequirement.postprocessor;
	    } else if (!!_postprocessors[dtdRequirement.postprocessor]) {
	      postprocessor = _postprocessors[dtdRequirement.postprocessor];
	    }
	
	    if (!postprocessor || !_.isFunction(postprocessor[fnName])) {
	      throw new EABError('utility-js-interface', 102, {
	        postprocessor: dtdRequirement.postprocessor
	      });
	    }
	
	    return postprocessor[fnName](syncProp, dtdRequirement, this._dtdQueue);
	  };
	
	  /**
	   *
	   * @param dtd
	   * @returns {boolean}
	   */
	  var isSingularValueOnDTD = function isSingularValueOnDTD(dtd) {
	    return _.size(dtd) === 1 && dtd.__singleDataValue__ !== undefined;
	  };
	
	  /**
	   *
	   * @param dtdRequirement
	   * @param sourceKey
	   * @returns {string}
	   */
	  var syncKeyConvertToInternalKey = function syncKeyConvertToInternalKey(dtdRequirement, sourceKey) {
	    return !!dtdRequirement.writeToKey ? dtdRequirement.writeToKey : sourceKey;
	  };
	
	  /**
	   *
	   * @param dtd
	   * @param key
	   * @returns {{type: *}}
	   */
	  var getDTDRequirements = function getDTDRequirements(dtd, key) {
	    var req = dtd[key];
	
	    return _.isString(req) ? { type: req } : req;
	  };
	
	  /**
	   * @note potential issue if synonym cannot be used to lookup values in a
	   *   collection
	   * @param dtdReq to look through for properties
	   * @param source object to find value of property for
	   * @param key key to use if propertyName is not specified
	   * @returns {*}
	   */
	  var getSourceKey = function getSourceKey(dtdReq, sourceProp, key) {
	    var propertyType;
	    var property = dtdReq.synonyms || dtdReq.synonym || dtdReq.propertyName;
	
	    if (property === undefined) {
	      return key;
	    }
	
	    propertyType = constants.discoverType(property);
	
	    if (propertyType === 'function') {
	      return property(sourceProp);
	    } else if (propertyType === 'array') {
	      return _.findKey(sourceProp, function (v, k) {
	        return _.contains(this, k);
	      }, property);
	    } else {
	      return property;
	    }
	  };
	
	  /**
	   *
	   * @param typeName
	   * @returns {*}
	   */
	  var resolveTypeRequirements = function resolveTypeRequirements(typeName) {
	    return constants.discoverType(typeName) === 'function' ? typeName : _types[typeName];
	  };
	
	  /**
	   *
	   * @param requirementDefaultValue
	   * @param typeDefaultValue
	   * @param dtdRequirement
	   * @param sourceProp
	   * @returns {*}
	   */
	  var getDefaultValue = function getDefaultValue(requirementDefaultValue, typeDefaultValue, dtdRequirement, sourceProp) {
	    var resolvedRequirementDefaultValue = resolveDefaultValue(requirementDefaultValue, sourceProp, dtdRequirement);
	    return resolvedRequirementDefaultValue !== undefined ? resolvedRequirementDefaultValue : resolveDefaultValue(typeDefaultValue, sourceProp, dtdRequirement);
	  };
	
	  /**
	   *
	   * @param defaultValue
	   * @param source
	   * @param requirement
	   * @returns {*}
	   */
	  var resolveDefaultValue = function resolveDefaultValue(defaultValue, source, requirement) {
	    return _.isFunction(defaultValue) ? defaultValue(source, requirement) : defaultValue;
	  };
	};
	
	/**
	 * @global
	 * @class Interface
	 */
	var InterfaceType = function InterfaceType() {
	  this._internalConfiguration = _.clone(constants.DEFAULT_CONFIGURATION);
	  this._configurationQueue = [this._internalConfiguration];
	  this._dtdQueue = [];
	};
	
	InterfaceType.prototype = new InterfacePrototype();
	var interfaceType = new InterfaceType();
	
	interfaceType.type('default', {
	  defaultValue: undefined,
	  isOfType: function verifyTypeDefault(val, req) {
	    return constants.discoverType(val) === req.type;
	  }
	});
	
	module.exports = interfaceType;

/***/ }),
/* 25 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APCourseServant = /** @class */ (function () {
	    function APCourseServant() {
	    }
	    APCourseServant.isLockedByStatus = function (status) {
	        return _4.includes(['REGISTERED', 'IN_PROGRESS', 'COMPLETED', 'SECTION_PICKED', 'WAITLISTED'], status);
	    };
	    APCourseServant.isDragEnabled = function (status) {
	        return !_4.includes(['REGISTERED', 'COMPLETED', 'SECTION_PICKED'], status);
	    };
	    APCourseServant.courseOfferedProblemMessage = function () {
	        return "This course is not typically offered in this term. See course details for more information.";
	    };
	    APCourseServant.buildHoverTemplate = function (course) {
	        return "This course has requisite issues. See course details for more information.";
	    };
	    return APCourseServant;
	}());
	exports.APCourseServant = APCourseServant;


/***/ }),
/* 26 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.TransientAccessCredEventNames = {
	    NEW_CRED_SAVED: 'NEW_CRED_SAVED',
	    CRED_CLEARED: 'CRED_CLEARED',
	    OPEN_CRED_DIALOG: 'OPEN_CRED_DIALOG',
	    CRED_FORM_ENTRY_CANCELLED: 'CRED_FORM_ENTRY_CANCELLED',
	    TOGGLE_CRED_STEPS: 'TOGGLE_CRED_STEPS'
	};


/***/ }),
/* 27 */
/***/ (function(module, exports) {

	"use strict";
	
	/**
	 * State-based routing for AngularJS
	 * @version v0.4.2
	 * @link http://angular-ui.github.com/
	 * @license MIT License, http://www.opensource.org/licenses/MIT
	 */
	
	/* commonjs package manager support (eg componentjs) */
	if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports) {
	  module.exports = 'ui.router';
	}
	
	(function (window, angular, undefined) {
	  /*jshint globalstrict:true*/
	  /*global angular:false*/
	  'use strict';
	
	  var isDefined = angular.isDefined,
	      isFunction = angular.isFunction,
	      isString = angular.isString,
	      isObject = angular.isObject,
	      isArray = angular.isArray,
	      forEach = angular.forEach,
	      extend = angular.extend,
	      copy = angular.copy,
	      toJson = angular.toJson;
	
	  function inherit(parent, extra) {
	    return extend(new (extend(function () {}, { prototype: parent }))(), extra);
	  }
	
	  function merge(dst) {
	    forEach(arguments, function (obj) {
	      if (obj !== dst) {
	        forEach(obj, function (value, key) {
	          if (!dst.hasOwnProperty(key)) dst[key] = value;
	        });
	      }
	    });
	    return dst;
	  }
	
	  /**
	   * Finds the common ancestor path between two states.
	   *
	   * @param {Object} first The first state.
	   * @param {Object} second The second state.
	   * @return {Array} Returns an array of state names in descending order, not including the root.
	   */
	  function ancestors(first, second) {
	    var path = [];
	
	    for (var n in first.path) {
	      if (first.path[n] !== second.path[n]) break;
	      path.push(first.path[n]);
	    }
	    return path;
	  }
	
	  /**
	   * IE8-safe wrapper for `Object.keys()`.
	   *
	   * @param {Object} object A JavaScript object.
	   * @return {Array} Returns the keys of the object as an array.
	   */
	  function objectKeys(object) {
	    if (Object.keys) {
	      return Object.keys(object);
	    }
	    var result = [];
	
	    forEach(object, function (val, key) {
	      result.push(key);
	    });
	    return result;
	  }
	
	  /**
	   * IE8-safe wrapper for `Array.prototype.indexOf()`.
	   *
	   * @param {Array} array A JavaScript array.
	   * @param {*} value A value to search the array for.
	   * @return {Number} Returns the array index value of `value`, or `-1` if not present.
	   */
	  function indexOf(array, value) {
	    if (Array.prototype.indexOf) {
	      return array.indexOf(value, Number(arguments[2]) || 0);
	    }
	    var len = array.length >>> 0,
	        from = Number(arguments[2]) || 0;
	    from = from < 0 ? Math.ceil(from) : Math.floor(from);
	
	    if (from < 0) from += len;
	
	    for (; from < len; from++) {
	      if (from in array && array[from] === value) return from;
	    }
	    return -1;
	  }
	
	  /**
	   * Merges a set of parameters with all parameters inherited between the common parents of the
	   * current state and a given destination state.
	   *
	   * @param {Object} currentParams The value of the current state parameters ($stateParams).
	   * @param {Object} newParams The set of parameters which will be composited with inherited params.
	   * @param {Object} $current Internal definition of object representing the current state.
	   * @param {Object} $to Internal definition of object representing state to transition to.
	   */
	  function inheritParams(currentParams, newParams, $current, $to) {
	    var parents = ancestors($current, $to),
	        parentParams,
	        inherited = {},
	        inheritList = [];
	
	    for (var i in parents) {
	      if (!parents[i] || !parents[i].params) continue;
	      parentParams = objectKeys(parents[i].params);
	      if (!parentParams.length) continue;
	
	      for (var j in parentParams) {
	        if (indexOf(inheritList, parentParams[j]) >= 0) continue;
	        inheritList.push(parentParams[j]);
	        inherited[parentParams[j]] = currentParams[parentParams[j]];
	      }
	    }
	    return extend({}, inherited, newParams);
	  }
	
	  /**
	   * Performs a non-strict comparison of the subset of two objects, defined by a list of keys.
	   *
	   * @param {Object} a The first object.
	   * @param {Object} b The second object.
	   * @param {Array} keys The list of keys within each object to compare. If the list is empty or not specified,
	   *                     it defaults to the list of keys in `a`.
	   * @return {Boolean} Returns `true` if the keys match, otherwise `false`.
	   */
	  function equalForKeys(a, b, keys) {
	    if (!keys) {
	      keys = [];
	      for (var n in a) {
	        keys.push(n);
	      } // Used instead of Object.keys() for IE8 compatibility
	    }
	
	    for (var i = 0; i < keys.length; i++) {
	      var k = keys[i];
	      if (a[k] != b[k]) return false; // Not '===', values aren't necessarily normalized
	    }
	    return true;
	  }
	
	  /**
	   * Returns the subset of an object, based on a list of keys.
	   *
	   * @param {Array} keys
	   * @param {Object} values
	   * @return {Boolean} Returns a subset of `values`.
	   */
	  function filterByKeys(keys, values) {
	    var filtered = {};
	
	    forEach(keys, function (name) {
	      filtered[name] = values[name];
	    });
	    return filtered;
	  }
	
	  // like _.indexBy
	  // when you know that your index values will be unique, or you want last-one-in to win
	  function indexBy(array, propName) {
	    var result = {};
	    forEach(array, function (item) {
	      result[item[propName]] = item;
	    });
	    return result;
	  }
	
	  // extracted from underscore.js
	  // Return a copy of the object only containing the whitelisted properties.
	  function pick(obj) {
	    var copy = {};
	    var keys = Array.prototype.concat.apply(Array.prototype, Array.prototype.slice.call(arguments, 1));
	    forEach(keys, function (key) {
	      if (key in obj) copy[key] = obj[key];
	    });
	    return copy;
	  }
	
	  // extracted from underscore.js
	  // Return a copy of the object omitting the blacklisted properties.
	  function omit(obj) {
	    var copy = {};
	    var keys = Array.prototype.concat.apply(Array.prototype, Array.prototype.slice.call(arguments, 1));
	    for (var key in obj) {
	      if (indexOf(keys, key) == -1) copy[key] = obj[key];
	    }
	    return copy;
	  }
	
	  function pluck(collection, key) {
	    var result = isArray(collection) ? [] : {};
	
	    forEach(collection, function (val, i) {
	      result[i] = isFunction(key) ? key(val) : val[key];
	    });
	    return result;
	  }
	
	  function filter(collection, callback) {
	    var array = isArray(collection);
	    var result = array ? [] : {};
	    forEach(collection, function (val, i) {
	      if (callback(val, i)) {
	        result[array ? result.length : i] = val;
	      }
	    });
	    return result;
	  }
	
	  function map(collection, callback) {
	    var result = isArray(collection) ? [] : {};
	
	    forEach(collection, function (val, i) {
	      result[i] = callback(val, i);
	    });
	    return result;
	  }
	
	  // issue #2676 #2889
	  function silenceUncaughtInPromise(promise) {
	    return promise.then(undefined, function () {}) && promise;
	  }
	
	  /**
	   * @ngdoc overview
	   * @name ui.router.util
	   *
	   * @description
	   * # ui.router.util sub-module
	   *
	   * This module is a dependency of other sub-modules. Do not include this module as a dependency
	   * in your angular app (use {@link ui.router} module instead).
	   *
	   */
	  angular.module('ui.router.util', ['ng']);
	
	  /**
	   * @ngdoc overview
	   * @name ui.router.router
	   * 
	   * @requires ui.router.util
	   *
	   * @description
	   * # ui.router.router sub-module
	   *
	   * This module is a dependency of other sub-modules. Do not include this module as a dependency
	   * in your angular app (use {@link ui.router} module instead).
	   */
	  angular.module('ui.router.router', ['ui.router.util']);
	
	  /**
	   * @ngdoc overview
	   * @name ui.router.state
	   * 
	   * @requires ui.router.router
	   * @requires ui.router.util
	   *
	   * @description
	   * # ui.router.state sub-module
	   *
	   * This module is a dependency of the main ui.router module. Do not include this module as a dependency
	   * in your angular app (use {@link ui.router} module instead).
	   * 
	   */
	  angular.module('ui.router.state', ['ui.router.router', 'ui.router.util']);
	
	  /**
	   * @ngdoc overview
	   * @name ui.router
	   *
	   * @requires ui.router.state
	   *
	   * @description
	   * # ui.router
	   * 
	   * ## The main module for ui.router 
	   * There are several sub-modules included with the ui.router module, however only this module is needed
	   * as a dependency within your angular app. The other modules are for organization purposes. 
	   *
	   * The modules are:
	   * * ui.router - the main "umbrella" module
	   * * ui.router.router - 
	   * 
	   * *You'll need to include **only** this module as the dependency within your angular app.*
	   * 
	   * <pre>
	   * <!doctype html>
	   * <html ng-app="myApp">
	   * <head>
	   *   <script src="js/angular.js"></script>
	   *   <!-- Include the ui-router script -->
	   *   <script src="js/angular-ui-router.min.js"></script>
	   *   <script>
	   *     // ...and add 'ui.router' as a dependency
	   *     var myApp = angular.module('myApp', ['ui.router']);
	   *   </script>
	   * </head>
	   * <body>
	   * </body>
	   * </html>
	   * </pre>
	   */
	  angular.module('ui.router', ['ui.router.state']);
	
	  angular.module('ui.router.compat', ['ui.router']);
	
	  /**
	   * @ngdoc object
	   * @name ui.router.util.$resolve
	   *
	   * @requires $q
	   * @requires $injector
	   *
	   * @description
	   * Manages resolution of (acyclic) graphs of promises.
	   */
	  $Resolve.$inject = ['$q', '$injector'];
	  function $Resolve($q, $injector) {
	
	    var VISIT_IN_PROGRESS = 1,
	        VISIT_DONE = 2,
	        NOTHING = {},
	        NO_DEPENDENCIES = [],
	        NO_LOCALS = NOTHING,
	        NO_PARENT = extend($q.when(NOTHING), { $$promises: NOTHING, $$values: NOTHING });
	
	    /**
	     * @ngdoc function
	     * @name ui.router.util.$resolve#study
	     * @methodOf ui.router.util.$resolve
	     *
	     * @description
	     * Studies a set of invocables that are likely to be used multiple times.
	     * <pre>
	     * $resolve.study(invocables)(locals, parent, self)
	     * </pre>
	     * is equivalent to
	     * <pre>
	     * $resolve.resolve(invocables, locals, parent, self)
	     * </pre>
	     * but the former is more efficient (in fact `resolve` just calls `study` 
	     * internally).
	     *
	     * @param {object} invocables Invocable objects
	     * @return {function} a function to pass in locals, parent and self
	     */
	    this.study = function (invocables) {
	      if (!isObject(invocables)) throw new Error("'invocables' must be an object");
	      var invocableKeys = objectKeys(invocables || {});
	
	      // Perform a topological sort of invocables to build an ordered plan
	      var plan = [],
	          cycle = [],
	          visited = {};
	      function visit(value, key) {
	        if (visited[key] === VISIT_DONE) return;
	
	        cycle.push(key);
	        if (visited[key] === VISIT_IN_PROGRESS) {
	          cycle.splice(0, indexOf(cycle, key));
	          throw new Error("Cyclic dependency: " + cycle.join(" -> "));
	        }
	        visited[key] = VISIT_IN_PROGRESS;
	
	        if (isString(value)) {
	          plan.push(key, [function () {
	            return $injector.get(value);
	          }], NO_DEPENDENCIES);
	        } else {
	          var params = $injector.annotate(value);
	          forEach(params, function (param) {
	            if (param !== key && invocables.hasOwnProperty(param)) visit(invocables[param], param);
	          });
	          plan.push(key, value, params);
	        }
	
	        cycle.pop();
	        visited[key] = VISIT_DONE;
	      }
	      forEach(invocables, visit);
	      invocables = cycle = visited = null; // plan is all that's required
	
	      function isResolve(value) {
	        return isObject(value) && value.then && value.$$promises;
	      }
	
	      return function (locals, parent, self) {
	        if (isResolve(locals) && self === undefined) {
	          self = parent;parent = locals;locals = null;
	        }
	        if (!locals) locals = NO_LOCALS;else if (!isObject(locals)) {
	          throw new Error("'locals' must be an object");
	        }
	        if (!parent) parent = NO_PARENT;else if (!isResolve(parent)) {
	          throw new Error("'parent' must be a promise returned by $resolve.resolve()");
	        }
	
	        // To complete the overall resolution, we have to wait for the parent
	        // promise and for the promise for each invokable in our plan.
	        var resolution = $q.defer(),
	            result = silenceUncaughtInPromise(resolution.promise),
	            promises = result.$$promises = {},
	            values = extend({}, locals),
	            wait = 1 + plan.length / 3,
	            merged = false;
	
	        silenceUncaughtInPromise(result);
	
	        function done() {
	          // Merge parent values we haven't got yet and publish our own $$values
	          if (! --wait) {
	            if (!merged) merge(values, parent.$$values);
	            result.$$values = values;
	            result.$$promises = result.$$promises || true; // keep for isResolve()
	            delete result.$$inheritedValues;
	            resolution.resolve(values);
	          }
	        }
	
	        function fail(reason) {
	          result.$$failure = reason;
	          resolution.reject(reason);
	        }
	
	        // Short-circuit if parent has already failed
	        if (isDefined(parent.$$failure)) {
	          fail(parent.$$failure);
	          return result;
	        }
	
	        if (parent.$$inheritedValues) {
	          merge(values, omit(parent.$$inheritedValues, invocableKeys));
	        }
	
	        // Merge parent values if the parent has already resolved, or merge
	        // parent promises and wait if the parent resolve is still in progress.
	        extend(promises, parent.$$promises);
	        if (parent.$$values) {
	          merged = merge(values, omit(parent.$$values, invocableKeys));
	          result.$$inheritedValues = omit(parent.$$values, invocableKeys);
	          done();
	        } else {
	          if (parent.$$inheritedValues) {
	            result.$$inheritedValues = omit(parent.$$inheritedValues, invocableKeys);
	          }
	          parent.then(done, fail);
	        }
	
	        // Process each invocable in the plan, but ignore any where a local of the same name exists.
	        for (var i = 0, ii = plan.length; i < ii; i += 3) {
	          if (locals.hasOwnProperty(plan[i])) done();else invoke(plan[i], plan[i + 1], plan[i + 2]);
	        }
	
	        function invoke(key, invocable, params) {
	          // Create a deferred for this invocation. Failures will propagate to the resolution as well.
	          var invocation = $q.defer(),
	              waitParams = 0;
	          function onfailure(reason) {
	            invocation.reject(reason);
	            fail(reason);
	          }
	          // Wait for any parameter that we have a promise for (either from parent or from this
	          // resolve; in that case study() will have made sure it's ordered before us in the plan).
	          forEach(params, function (dep) {
	            if (promises.hasOwnProperty(dep) && !locals.hasOwnProperty(dep)) {
	              waitParams++;
	              promises[dep].then(function (result) {
	                values[dep] = result;
	                if (! --waitParams) proceed();
	              }, onfailure);
	            }
	          });
	          if (!waitParams) proceed();
	          function proceed() {
	            if (isDefined(result.$$failure)) return;
	            try {
	              invocation.resolve($injector.invoke(invocable, self, values));
	              invocation.promise.then(function (result) {
	                values[key] = result;
	                done();
	              }, onfailure);
	            } catch (e) {
	              onfailure(e);
	            }
	          }
	          // Publish promise synchronously; invocations further down in the plan may depend on it.
	          promises[key] = silenceUncaughtInPromise(invocation.promise);
	        }
	
	        return result;
	      };
	    };
	
	    /**
	     * @ngdoc function
	     * @name ui.router.util.$resolve#resolve
	     * @methodOf ui.router.util.$resolve
	     *
	     * @description
	     * Resolves a set of invocables. An invocable is a function to be invoked via 
	     * `$injector.invoke()`, and can have an arbitrary number of dependencies. 
	     * An invocable can either return a value directly,
	     * or a `$q` promise. If a promise is returned it will be resolved and the 
	     * resulting value will be used instead. Dependencies of invocables are resolved 
	     * (in this order of precedence)
	     *
	     * - from the specified `locals`
	     * - from another invocable that is part of this `$resolve` call
	     * - from an invocable that is inherited from a `parent` call to `$resolve` 
	     *   (or recursively
	     * - from any ancestor `$resolve` of that parent).
	     *
	     * The return value of `$resolve` is a promise for an object that contains 
	     * (in this order of precedence)
	     *
	     * - any `locals` (if specified)
	     * - the resolved return values of all injectables
	     * - any values inherited from a `parent` call to `$resolve` (if specified)
	     *
	     * The promise will resolve after the `parent` promise (if any) and all promises 
	     * returned by injectables have been resolved. If any invocable 
	     * (or `$injector.invoke`) throws an exception, or if a promise returned by an 
	     * invocable is rejected, the `$resolve` promise is immediately rejected with the 
	     * same error. A rejection of a `parent` promise (if specified) will likewise be 
	     * propagated immediately. Once the `$resolve` promise has been rejected, no 
	     * further invocables will be called.
	     * 
	     * Cyclic dependencies between invocables are not permitted and will cause `$resolve`
	     * to throw an error. As a special case, an injectable can depend on a parameter 
	     * with the same name as the injectable, which will be fulfilled from the `parent` 
	     * injectable of the same name. This allows inherited values to be decorated. 
	     * Note that in this case any other injectable in the same `$resolve` with the same
	     * dependency would see the decorated value, not the inherited value.
	     *
	     * Note that missing dependencies -- unlike cyclic dependencies -- will cause an 
	     * (asynchronous) rejection of the `$resolve` promise rather than a (synchronous) 
	     * exception.
	     *
	     * Invocables are invoked eagerly as soon as all dependencies are available. 
	     * This is true even for dependencies inherited from a `parent` call to `$resolve`.
	     *
	     * As a special case, an invocable can be a string, in which case it is taken to 
	     * be a service name to be passed to `$injector.get()`. This is supported primarily 
	     * for backwards-compatibility with the `resolve` property of `$routeProvider` 
	     * routes.
	     *
	     * @param {object} invocables functions to invoke or 
	     * `$injector` services to fetch.
	     * @param {object} locals  values to make available to the injectables
	     * @param {object} parent  a promise returned by another call to `$resolve`.
	     * @param {object} self  the `this` for the invoked methods
	     * @return {object} Promise for an object that contains the resolved return value
	     * of all invocables, as well as any inherited and local values.
	     */
	    this.resolve = function (invocables, locals, parent, self) {
	      return this.study(invocables)(locals, parent, self);
	    };
	  }
	
	  angular.module('ui.router.util').service('$resolve', $Resolve);
	
	  /**
	   * @ngdoc object
	   * @name ui.router.util.$templateFactoryProvider
	   *
	   * @description
	   * Provider for $templateFactory. Manages which template-loading mechanism to
	   * use, and will default to the most recent one ($templateRequest on Angular
	   * versions starting from 1.3, $http otherwise).
	   */
	  function TemplateFactoryProvider() {
	    var shouldUnsafelyUseHttp = angular.version.minor < 3;
	
	    /**
	     * @ngdoc function
	     * @name ui.router.util.$templateFactoryProvider#shouldUnsafelyUseHttp
	     * @methodOf ui.router.util.$templateFactoryProvider
	     *
	     * @description
	     * Forces $templateFactory to use $http instead of $templateRequest. This
	     * might cause XSS, as $http doesn't enforce the regular security checks for
	     * templates that have been introduced in Angular 1.3. Note that setting this
	     * to false on Angular older than 1.3.x will crash, as the $templateRequest
	     * service (and the security checks) are not implemented on these versions.
	     *
	     * See the $sce documentation, section
	     * <a href="https://docs.angularjs.org/api/ng/service/$sce#impact-on-loading-templates">
	     * Impact on loading templates</a> for more details about this mechanism.
	     *
	     * @param {boolean} value
	     */
	    this.shouldUnsafelyUseHttp = function (value) {
	      shouldUnsafelyUseHttp = !!value;
	    };
	
	    /**
	     * @ngdoc object
	     * @name ui.router.util.$templateFactory
	     *
	     * @requires $http
	     * @requires $templateCache
	     * @requires $injector
	     *
	     * @description
	     * Service. Manages loading of templates.
	     */
	    this.$get = ['$http', '$templateCache', '$injector', function ($http, $templateCache, $injector) {
	      return new TemplateFactory($http, $templateCache, $injector, shouldUnsafelyUseHttp);
	    }];
	  }
	
	  /**
	   * @ngdoc object
	   * @name ui.router.util.$templateFactory
	   *
	   * @requires $http
	   * @requires $templateCache
	   * @requires $injector
	   *
	   * @description
	   * Service. Manages loading of templates.
	   */
	  function TemplateFactory($http, $templateCache, $injector, shouldUnsafelyUseHttp) {
	
	    /**
	     * @ngdoc function
	     * @name ui.router.util.$templateFactory#fromConfig
	     * @methodOf ui.router.util.$templateFactory
	     *
	     * @description
	     * Creates a template from a configuration object. 
	     *
	     * @param {object} config Configuration object for which to load a template. 
	     * The following properties are search in the specified order, and the first one 
	     * that is defined is used to create the template:
	     *
	     * @param {string|object} config.template html string template or function to 
	     * load via {@link ui.router.util.$templateFactory#fromString fromString}.
	     * @param {string|object} config.templateUrl url to load or a function returning 
	     * the url to load via {@link ui.router.util.$templateFactory#fromUrl fromUrl}.
	     * @param {Function} config.templateProvider function to invoke via 
	     * {@link ui.router.util.$templateFactory#fromProvider fromProvider}.
	     * @param {object} params  Parameters to pass to the template function.
	     * @param {object} locals Locals to pass to `invoke` if the template is loaded 
	     * via a `templateProvider`. Defaults to `{ params: params }`.
	     *
	     * @return {string|object}  The template html as a string, or a promise for 
	     * that string,or `null` if no template is configured.
	     */
	    this.fromConfig = function (config, params, locals) {
	      return isDefined(config.template) ? this.fromString(config.template, params) : isDefined(config.templateUrl) ? this.fromUrl(config.templateUrl, params) : isDefined(config.templateProvider) ? this.fromProvider(config.templateProvider, params, locals) : null;
	    };
	
	    /**
	     * @ngdoc function
	     * @name ui.router.util.$templateFactory#fromString
	     * @methodOf ui.router.util.$templateFactory
	     *
	     * @description
	     * Creates a template from a string or a function returning a string.
	     *
	     * @param {string|object} template html template as a string or function that 
	     * returns an html template as a string.
	     * @param {object} params Parameters to pass to the template function.
	     *
	     * @return {string|object} The template html as a string, or a promise for that 
	     * string.
	     */
	    this.fromString = function (template, params) {
	      return isFunction(template) ? template(params) : template;
	    };
	
	    /**
	     * @ngdoc function
	     * @name ui.router.util.$templateFactory#fromUrl
	     * @methodOf ui.router.util.$templateFactory
	     * 
	     * @description
	     * Loads a template from the a URL via `$http` and `$templateCache`.
	     *
	     * @param {string|Function} url url of the template to load, or a function 
	     * that returns a url.
	     * @param {Object} params Parameters to pass to the url function.
	     * @return {string|Promise.<string>} The template html as a string, or a promise 
	     * for that string.
	     */
	    this.fromUrl = function (url, params) {
	      if (isFunction(url)) url = url(params);
	      if (url == null) return null;else {
	        if (!shouldUnsafelyUseHttp) {
	          return $injector.get('$templateRequest')(url);
	        } else {
	          return $http.get(url, { cache: $templateCache, headers: { Accept: 'text/html' } }).then(function (response) {
	            return response.data;
	          });
	        }
	      }
	    };
	
	    /**
	     * @ngdoc function
	     * @name ui.router.util.$templateFactory#fromProvider
	     * @methodOf ui.router.util.$templateFactory
	     *
	     * @description
	     * Creates a template by invoking an injectable provider function.
	     *
	     * @param {Function} provider Function to invoke via `$injector.invoke`
	     * @param {Object} params Parameters for the template.
	     * @param {Object} locals Locals to pass to `invoke`. Defaults to 
	     * `{ params: params }`.
	     * @return {string|Promise.<string>} The template html as a string, or a promise 
	     * for that string.
	     */
	    this.fromProvider = function (provider, params, locals) {
	      return $injector.invoke(provider, null, locals || { params: params });
	    };
	  }
	
	  angular.module('ui.router.util').provider('$templateFactory', TemplateFactoryProvider);
	
	  var $$UMFP; // reference to $UrlMatcherFactoryProvider
	
	  /**
	   * @ngdoc object
	   * @name ui.router.util.type:UrlMatcher
	   *
	   * @description
	   * Matches URLs against patterns and extracts named parameters from the path or the search
	   * part of the URL. A URL pattern consists of a path pattern, optionally followed by '?' and a list
	   * of search parameters. Multiple search parameter names are separated by '&'. Search parameters
	   * do not influence whether or not a URL is matched, but their values are passed through into
	   * the matched parameters returned by {@link ui.router.util.type:UrlMatcher#methods_exec exec}.
	   *
	   * Path parameter placeholders can be specified using simple colon/catch-all syntax or curly brace
	   * syntax, which optionally allows a regular expression for the parameter to be specified:
	   *
	   * * `':'` name - colon placeholder
	   * * `'*'` name - catch-all placeholder
	   * * `'{' name '}'` - curly placeholder
	   * * `'{' name ':' regexp|type '}'` - curly placeholder with regexp or type name. Should the
	   *   regexp itself contain curly braces, they must be in matched pairs or escaped with a backslash.
	   *
	   * Parameter names may contain only word characters (latin letters, digits, and underscore) and
	   * must be unique within the pattern (across both path and search parameters). For colon
	   * placeholders or curly placeholders without an explicit regexp, a path parameter matches any
	   * number of characters other than '/'. For catch-all placeholders the path parameter matches
	   * any number of characters.
	   *
	   * Examples:
	   *
	   * * `'/hello/'` - Matches only if the path is exactly '/hello/'. There is no special treatment for
	   *   trailing slashes, and patterns have to match the entire path, not just a prefix.
	   * * `'/user/:id'` - Matches '/user/bob' or '/user/1234!!!' or even '/user/' but not '/user' or
	   *   '/user/bob/details'. The second path segment will be captured as the parameter 'id'.
	   * * `'/user/{id}'` - Same as the previous example, but using curly brace syntax.
	   * * `'/user/{id:[^/]*}'` - Same as the previous example.
	   * * `'/user/{id:[0-9a-fA-F]{1,8}}'` - Similar to the previous example, but only matches if the id
	   *   parameter consists of 1 to 8 hex digits.
	   * * `'/files/{path:.*}'` - Matches any URL starting with '/files/' and captures the rest of the
	   *   path into the parameter 'path'.
	   * * `'/files/*path'` - ditto.
	   * * `'/calendar/{start:date}'` - Matches "/calendar/2014-11-12" (because the pattern defined
	   *   in the built-in  `date` Type matches `2014-11-12`) and provides a Date object in $stateParams.start
	   *
	   * @param {string} pattern  The pattern to compile into a matcher.
	   * @param {Object} config  A configuration object hash:
	   * @param {Object=} parentMatcher Used to concatenate the pattern/config onto
	   *   an existing UrlMatcher
	   *
	   * * `caseInsensitive` - `true` if URL matching should be case insensitive, otherwise `false`, the default value (for backward compatibility) is `false`.
	   * * `strict` - `false` if matching against a URL with a trailing slash should be treated as equivalent to a URL without a trailing slash, the default value is `true`.
	   *
	   * @property {string} prefix  A static prefix of this pattern. The matcher guarantees that any
	   *   URL matching this matcher (i.e. any string for which {@link ui.router.util.type:UrlMatcher#methods_exec exec()} returns
	   *   non-null) will start with this prefix.
	   *
	   * @property {string} source  The pattern that was passed into the constructor
	   *
	   * @property {string} sourcePath  The path portion of the source property
	   *
	   * @property {string} sourceSearch  The search portion of the source property
	   *
	   * @property {string} regex  The constructed regex that will be used to match against the url when
	   *   it is time to determine which url will match.
	   *
	   * @returns {Object}  New `UrlMatcher` object
	   */
	  function UrlMatcher(pattern, config, parentMatcher) {
	    config = extend({ params: {} }, isObject(config) ? config : {});
	
	    // Find all placeholders and create a compiled pattern, using either classic or curly syntax:
	    //   '*' name
	    //   ':' name
	    //   '{' name '}'
	    //   '{' name ':' regexp '}'
	    // The regular expression is somewhat complicated due to the need to allow curly braces
	    // inside the regular expression. The placeholder regexp breaks down as follows:
	    //    ([:*])([\w\[\]]+)              - classic placeholder ($1 / $2) (search version has - for snake-case)
	    //    \{([\w\[\]]+)(?:\:\s*( ... ))?\}  - curly brace placeholder ($3) with optional regexp/type ... ($4) (search version has - for snake-case
	    //    (?: ... | ... | ... )+         - the regexp consists of any number of atoms, an atom being either
	    //    [^{}\\]+                       - anything other than curly braces or backslash
	    //    \\.                            - a backslash escape
	    //    \{(?:[^{}\\]+|\\.)*\}          - a matched set of curly braces containing other atoms
	    var placeholder = /([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,
	        searchPlaceholder = /([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,
	        compiled = '^',
	        last = 0,
	        m,
	        segments = this.segments = [],
	        parentParams = parentMatcher ? parentMatcher.params : {},
	        params = this.params = parentMatcher ? parentMatcher.params.$$new() : new $$UMFP.ParamSet(),
	        paramNames = [];
	
	    function addParameter(id, type, config, location) {
	      paramNames.push(id);
	      if (parentParams[id]) return parentParams[id];
	      if (!/^\w+([-.]+\w+)*(?:\[\])?$/.test(id)) throw new Error("Invalid parameter name '" + id + "' in pattern '" + pattern + "'");
	      if (params[id]) throw new Error("Duplicate parameter name '" + id + "' in pattern '" + pattern + "'");
	      params[id] = new $$UMFP.Param(id, type, config, location);
	      return params[id];
	    }
	
	    function quoteRegExp(string, pattern, squash, optional) {
	      var surroundPattern = ['', ''],
	          result = string.replace(/[\\\[\]\^$*+?.()|{}]/g, "\\$&");
	      if (!pattern) return result;
	      switch (squash) {
	        case false:
	          surroundPattern = ['(', ')' + (optional ? "?" : "")];break;
	        case true:
	          result = result.replace(/\/$/, '');
	          surroundPattern = ['(?:\/(', ')|\/)?'];
	          break;
	        default:
	          surroundPattern = ['(' + squash + "|", ')?'];break;
	      }
	      return result + surroundPattern[0] + pattern + surroundPattern[1];
	    }
	
	    this.source = pattern;
	
	    // Split into static segments separated by path parameter placeholders.
	    // The number of segments is always 1 more than the number of parameters.
	    function matchDetails(m, isSearch) {
	      var id, regexp, segment, type, cfg, arrayMode;
	      id = m[2] || m[3]; // IE[78] returns '' for unmatched groups instead of null
	      cfg = config.params[id];
	      segment = pattern.substring(last, m.index);
	      regexp = isSearch ? m[4] : m[4] || (m[1] == '*' ? '.*' : null);
	
	      if (regexp) {
	        type = $$UMFP.type(regexp) || inherit($$UMFP.type("string"), { pattern: new RegExp(regexp, config.caseInsensitive ? 'i' : undefined) });
	      }
	
	      return {
	        id: id, regexp: regexp, segment: segment, type: type, cfg: cfg
	      };
	    }
	
	    var p, param, segment;
	    while (m = placeholder.exec(pattern)) {
	      p = matchDetails(m, false);
	      if (p.segment.indexOf('?') >= 0) break; // we're into the search part
	
	      param = addParameter(p.id, p.type, p.cfg, "path");
	      compiled += quoteRegExp(p.segment, param.type.pattern.source, param.squash, param.isOptional);
	      segments.push(p.segment);
	      last = placeholder.lastIndex;
	    }
	    segment = pattern.substring(last);
	
	    // Find any search parameter names and remove them from the last segment
	    var i = segment.indexOf('?');
	
	    if (i >= 0) {
	      var search = this.sourceSearch = segment.substring(i);
	      segment = segment.substring(0, i);
	      this.sourcePath = pattern.substring(0, last + i);
	
	      if (search.length > 0) {
	        last = 0;
	        while (m = searchPlaceholder.exec(search)) {
	          p = matchDetails(m, true);
	          param = addParameter(p.id, p.type, p.cfg, "search");
	          last = placeholder.lastIndex;
	          // check if ?&
	        }
	      }
	    } else {
	      this.sourcePath = pattern;
	      this.sourceSearch = '';
	    }
	
	    compiled += quoteRegExp(segment) + (config.strict === false ? '\/?' : '') + '$';
	    segments.push(segment);
	
	    this.regexp = new RegExp(compiled, config.caseInsensitive ? 'i' : undefined);
	    this.prefix = segments[0];
	    this.$$paramNames = paramNames;
	  }
	
	  /**
	   * @ngdoc function
	   * @name ui.router.util.type:UrlMatcher#concat
	   * @methodOf ui.router.util.type:UrlMatcher
	   *
	   * @description
	   * Returns a new matcher for a pattern constructed by appending the path part and adding the
	   * search parameters of the specified pattern to this pattern. The current pattern is not
	   * modified. This can be understood as creating a pattern for URLs that are relative to (or
	   * suffixes of) the current pattern.
	   *
	   * @example
	   * The following two matchers are equivalent:
	   * <pre>
	   * new UrlMatcher('/user/{id}?q').concat('/details?date');
	   * new UrlMatcher('/user/{id}/details?q&date');
	   * </pre>
	   *
	   * @param {string} pattern  The pattern to append.
	   * @param {Object} config  An object hash of the configuration for the matcher.
	   * @returns {UrlMatcher}  A matcher for the concatenated pattern.
	   */
	  UrlMatcher.prototype.concat = function (pattern, config) {
	    // Because order of search parameters is irrelevant, we can add our own search
	    // parameters to the end of the new pattern. Parse the new pattern by itself
	    // and then join the bits together, but it's much easier to do this on a string level.
	    var defaultConfig = {
	      caseInsensitive: $$UMFP.caseInsensitive(),
	      strict: $$UMFP.strictMode(),
	      squash: $$UMFP.defaultSquashPolicy()
	    };
	    return new UrlMatcher(this.sourcePath + pattern + this.sourceSearch, extend(defaultConfig, config), this);
	  };
	
	  UrlMatcher.prototype.toString = function () {
	    return this.source;
	  };
	
	  /**
	   * @ngdoc function
	   * @name ui.router.util.type:UrlMatcher#exec
	   * @methodOf ui.router.util.type:UrlMatcher
	   *
	   * @description
	   * Tests the specified path against this matcher, and returns an object containing the captured
	   * parameter values, or null if the path does not match. The returned object contains the values
	   * of any search parameters that are mentioned in the pattern, but their value may be null if
	   * they are not present in `searchParams`. This means that search parameters are always treated
	   * as optional.
	   *
	   * @example
	   * <pre>
	   * new UrlMatcher('/user/{id}?q&r').exec('/user/bob', {
	   *   x: '1', q: 'hello'
	   * });
	   * // returns { id: 'bob', q: 'hello', r: null }
	   * </pre>
	   *
	   * @param {string} path  The URL path to match, e.g. `$location.path()`.
	   * @param {Object} searchParams  URL search parameters, e.g. `$location.search()`.
	   * @returns {Object}  The captured parameter values.
	   */
	  UrlMatcher.prototype.exec = function (path, searchParams) {
	    var m = this.regexp.exec(path);
	    if (!m) return null;
	    searchParams = searchParams || {};
	
	    var paramNames = this.parameters(),
	        nTotal = paramNames.length,
	        nPath = this.segments.length - 1,
	        values = {},
	        i,
	        j,
	        cfg,
	        paramName;
	
	    if (nPath !== m.length - 1) throw new Error("Unbalanced capture group in route '" + this.source + "'");
	
	    function decodePathArray(string) {
	      function reverseString(str) {
	        return str.split("").reverse().join("");
	      }
	      function unquoteDashes(str) {
	        return str.replace(/\\-/g, "-");
	      }
	
	      var split = reverseString(string).split(/-(?!\\)/);
	      var allReversed = map(split, reverseString);
	      return map(allReversed, unquoteDashes).reverse();
	    }
	
	    var param, paramVal;
	    for (i = 0; i < nPath; i++) {
	      paramName = paramNames[i];
	      param = this.params[paramName];
	      paramVal = m[i + 1];
	      // if the param value matches a pre-replace pair, replace the value before decoding.
	      for (j = 0; j < param.replace.length; j++) {
	        if (param.replace[j].from === paramVal) paramVal = param.replace[j].to;
	      }
	      if (paramVal && param.array === true) paramVal = decodePathArray(paramVal);
	      if (isDefined(paramVal)) paramVal = param.type.decode(paramVal);
	      values[paramName] = param.value(paramVal);
	    }
	    for (; /**/i < nTotal; i++) {
	      paramName = paramNames[i];
	      values[paramName] = this.params[paramName].value(searchParams[paramName]);
	      param = this.params[paramName];
	      paramVal = searchParams[paramName];
	      for (j = 0; j < param.replace.length; j++) {
	        if (param.replace[j].from === paramVal) paramVal = param.replace[j].to;
	      }
	      if (isDefined(paramVal)) paramVal = param.type.decode(paramVal);
	      values[paramName] = param.value(paramVal);
	    }
	
	    return values;
	  };
	
	  /**
	   * @ngdoc function
	   * @name ui.router.util.type:UrlMatcher#parameters
	   * @methodOf ui.router.util.type:UrlMatcher
	   *
	   * @description
	   * Returns the names of all path and search parameters of this pattern in an unspecified order.
	   *
	   * @returns {Array.<string>}  An array of parameter names. Must be treated as read-only. If the
	   *    pattern has no parameters, an empty array is returned.
	   */
	  UrlMatcher.prototype.parameters = function (param) {
	    if (!isDefined(param)) return this.$$paramNames;
	    return this.params[param] || null;
	  };
	
	  /**
	   * @ngdoc function
	   * @name ui.router.util.type:UrlMatcher#validates
	   * @methodOf ui.router.util.type:UrlMatcher
	   *
	   * @description
	   * Checks an object hash of parameters to validate their correctness according to the parameter
	   * types of this `UrlMatcher`.
	   *
	   * @param {Object} params The object hash of parameters to validate.
	   * @returns {boolean} Returns `true` if `params` validates, otherwise `false`.
	   */
	  UrlMatcher.prototype.validates = function (params) {
	    return this.params.$$validates(params);
	  };
	
	  /**
	   * @ngdoc function
	   * @name ui.router.util.type:UrlMatcher#format
	   * @methodOf ui.router.util.type:UrlMatcher
	   *
	   * @description
	   * Creates a URL that matches this pattern by substituting the specified values
	   * for the path and search parameters. Null values for path parameters are
	   * treated as empty strings.
	   *
	   * @example
	   * <pre>
	   * new UrlMatcher('/user/{id}?q').format({ id:'bob', q:'yes' });
	   * // returns '/user/bob?q=yes'
	   * </pre>
	   *
	   * @param {Object} values  the values to substitute for the parameters in this pattern.
	   * @returns {string}  the formatted URL (path and optionally search part).
	   */
	  UrlMatcher.prototype.format = function (values) {
	    values = values || {};
	    var segments = this.segments,
	        params = this.parameters(),
	        paramset = this.params;
	    if (!this.validates(values)) return null;
	
	    var i,
	        search = false,
	        nPath = segments.length - 1,
	        nTotal = params.length,
	        result = segments[0];
	
	    function encodeDashes(str) {
	      // Replace dashes with encoded "\-"
	      return encodeURIComponent(str).replace(/-/g, function (c) {
	        return '%5C%' + c.charCodeAt(0).toString(16).toUpperCase();
	      });
	    }
	
	    for (i = 0; i < nTotal; i++) {
	      var isPathParam = i < nPath;
	      var name = params[i],
	          param = paramset[name],
	          value = param.value(values[name]);
	      var isDefaultValue = param.isOptional && param.type.equals(param.value(), value);
	      var squash = isDefaultValue ? param.squash : false;
	      var encoded = param.type.encode(value);
	
	      if (isPathParam) {
	        var nextSegment = segments[i + 1];
	        var isFinalPathParam = i + 1 === nPath;
	
	        if (squash === false) {
	          if (encoded != null) {
	            if (isArray(encoded)) {
	              result += map(encoded, encodeDashes).join("-");
	            } else {
	              result += encodeURIComponent(encoded);
	            }
	          }
	          result += nextSegment;
	        } else if (squash === true) {
	          var capture = result.match(/\/$/) ? /\/?(.*)/ : /(.*)/;
	          result += nextSegment.match(capture)[1];
	        } else if (isString(squash)) {
	          result += squash + nextSegment;
	        }
	
	        if (isFinalPathParam && param.squash === true && result.slice(-1) === '/') result = result.slice(0, -1);
	      } else {
	        if (encoded == null || isDefaultValue && squash !== false) continue;
	        if (!isArray(encoded)) encoded = [encoded];
	        if (encoded.length === 0) continue;
	        encoded = map(encoded, encodeURIComponent).join('&' + name + '=');
	        result += (search ? '&' : '?') + (name + '=' + encoded);
	        search = true;
	      }
	    }
	
	    return result;
	  };
	
	  /**
	   * @ngdoc object
	   * @name ui.router.util.type:Type
	   *
	   * @description
	   * Implements an interface to define custom parameter types that can be decoded from and encoded to
	   * string parameters matched in a URL. Used by {@link ui.router.util.type:UrlMatcher `UrlMatcher`}
	   * objects when matching or formatting URLs, or comparing or validating parameter values.
	   *
	   * See {@link ui.router.util.$urlMatcherFactory#methods_type `$urlMatcherFactory#type()`} for more
	   * information on registering custom types.
	   *
	   * @param {Object} config  A configuration object which contains the custom type definition.  The object's
	   *        properties will override the default methods and/or pattern in `Type`'s public interface.
	   * @example
	   * <pre>
	   * {
	   *   decode: function(val) { return parseInt(val, 10); },
	   *   encode: function(val) { return val && val.toString(); },
	   *   equals: function(a, b) { return this.is(a) && a === b; },
	   *   is: function(val) { return angular.isNumber(val) isFinite(val) && val % 1 === 0; },
	   *   pattern: /\d+/
	   * }
	   * </pre>
	   *
	   * @property {RegExp} pattern The regular expression pattern used to match values of this type when
	   *           coming from a substring of a URL.
	   *
	   * @returns {Object}  Returns a new `Type` object.
	   */
	  function Type(config) {
	    extend(this, config);
	  }
	
	  /**
	   * @ngdoc function
	   * @name ui.router.util.type:Type#is
	   * @methodOf ui.router.util.type:Type
	   *
	   * @description
	   * Detects whether a value is of a particular type. Accepts a native (decoded) value
	   * and determines whether it matches the current `Type` object.
	   *
	   * @param {*} val  The value to check.
	   * @param {string} key  Optional. If the type check is happening in the context of a specific
	   *        {@link ui.router.util.type:UrlMatcher `UrlMatcher`} object, this is the name of the
	   *        parameter in which `val` is stored. Can be used for meta-programming of `Type` objects.
	   * @returns {Boolean}  Returns `true` if the value matches the type, otherwise `false`.
	   */
	  Type.prototype.is = function (val, key) {
	    return true;
	  };
	
	  /**
	   * @ngdoc function
	   * @name ui.router.util.type:Type#encode
	   * @methodOf ui.router.util.type:Type
	   *
	   * @description
	   * Encodes a custom/native type value to a string that can be embedded in a URL. Note that the
	   * return value does *not* need to be URL-safe (i.e. passed through `encodeURIComponent()`), it
	   * only needs to be a representation of `val` that has been coerced to a string.
	   *
	   * @param {*} val  The value to encode.
	   * @param {string} key  The name of the parameter in which `val` is stored. Can be used for
	   *        meta-programming of `Type` objects.
	   * @returns {string}  Returns a string representation of `val` that can be encoded in a URL.
	   */
	  Type.prototype.encode = function (val, key) {
	    return val;
	  };
	
	  /**
	   * @ngdoc function
	   * @name ui.router.util.type:Type#decode
	   * @methodOf ui.router.util.type:Type
	   *
	   * @description
	   * Converts a parameter value (from URL string or transition param) to a custom/native value.
	   *
	   * @param {string} val  The URL parameter value to decode.
	   * @param {string} key  The name of the parameter in which `val` is stored. Can be used for
	   *        meta-programming of `Type` objects.
	   * @returns {*}  Returns a custom representation of the URL parameter value.
	   */
	  Type.prototype.decode = function (val, key) {
	    return val;
	  };
	
	  /**
	   * @ngdoc function
	   * @name ui.router.util.type:Type#equals
	   * @methodOf ui.router.util.type:Type
	   *
	   * @description
	   * Determines whether two decoded values are equivalent.
	   *
	   * @param {*} a  A value to compare against.
	   * @param {*} b  A value to compare against.
	   * @returns {Boolean}  Returns `true` if the values are equivalent/equal, otherwise `false`.
	   */
	  Type.prototype.equals = function (a, b) {
	    return a == b;
	  };
	
	  Type.prototype.$subPattern = function () {
	    var sub = this.pattern.toString();
	    return sub.substr(1, sub.length - 2);
	  };
	
	  Type.prototype.pattern = /.*/;
	
	  Type.prototype.toString = function () {
	    return "{Type:" + this.name + "}";
	  };
	
	  /** Given an encoded string, or a decoded object, returns a decoded object */
	  Type.prototype.$normalize = function (val) {
	    return this.is(val) ? val : this.decode(val);
	  };
	
	  /*
	   * Wraps an existing custom Type as an array of Type, depending on 'mode'.
	   * e.g.:
	   * - urlmatcher pattern "/path?{queryParam[]:int}"
	   * - url: "/path?queryParam=1&queryParam=2
	   * - $stateParams.queryParam will be [1, 2]
	   * if `mode` is "auto", then
	   * - url: "/path?queryParam=1 will create $stateParams.queryParam: 1
	   * - url: "/path?queryParam=1&queryParam=2 will create $stateParams.queryParam: [1, 2]
	   */
	  Type.prototype.$asArray = function (mode, isSearch) {
	    if (!mode) return this;
	    if (mode === "auto" && !isSearch) throw new Error("'auto' array mode is for query parameters only");
	
	    function ArrayType(type, mode) {
	      function bindTo(type, callbackName) {
	        return function () {
	          return type[callbackName].apply(type, arguments);
	        };
	      }
	
	      // Wrap non-array value as array
	      function arrayWrap(val) {
	        return isArray(val) ? val : isDefined(val) ? [val] : [];
	      }
	      // Unwrap array value for "auto" mode. Return undefined for empty array.
	      function arrayUnwrap(val) {
	        switch (val.length) {
	          case 0:
	            return undefined;
	          case 1:
	            return mode === "auto" ? val[0] : val;
	          default:
	            return val;
	        }
	      }
	      function falsey(val) {
	        return !val;
	      }
	
	      // Wraps type (.is/.encode/.decode) functions to operate on each value of an array
	      function arrayHandler(callback, allTruthyMode) {
	        return function handleArray(val) {
	          if (isArray(val) && val.length === 0) return val;
	          val = arrayWrap(val);
	          var result = map(val, callback);
	          if (allTruthyMode === true) return filter(result, falsey).length === 0;
	          return arrayUnwrap(result);
	        };
	      }
	
	      // Wraps type (.equals) functions to operate on each value of an array
	      function arrayEqualsHandler(callback) {
	        return function handleArray(val1, val2) {
	          var left = arrayWrap(val1),
	              right = arrayWrap(val2);
	          if (left.length !== right.length) return false;
	          for (var i = 0; i < left.length; i++) {
	            if (!callback(left[i], right[i])) return false;
	          }
	          return true;
	        };
	      }
	
	      this.encode = arrayHandler(bindTo(type, 'encode'));
	      this.decode = arrayHandler(bindTo(type, 'decode'));
	      this.is = arrayHandler(bindTo(type, 'is'), true);
	      this.equals = arrayEqualsHandler(bindTo(type, 'equals'));
	      this.pattern = type.pattern;
	      this.$normalize = arrayHandler(bindTo(type, '$normalize'));
	      this.name = type.name;
	      this.$arrayMode = mode;
	    }
	
	    return new ArrayType(this, mode);
	  };
	
	  /**
	   * @ngdoc object
	   * @name ui.router.util.$urlMatcherFactory
	   *
	   * @description
	   * Factory for {@link ui.router.util.type:UrlMatcher `UrlMatcher`} instances. The factory
	   * is also available to providers under the name `$urlMatcherFactoryProvider`.
	   */
	  function $UrlMatcherFactory() {
	    $$UMFP = this;
	
	    var isCaseInsensitive = false,
	        isStrictMode = true,
	        defaultSquashPolicy = false;
	
	    // Use tildes to pre-encode slashes.
	    // If the slashes are simply URLEncoded, the browser can choose to pre-decode them,
	    // and bidirectional encoding/decoding fails.
	    // Tilde was chosen because it's not a RFC 3986 section 2.2 Reserved Character
	    function valToString(val) {
	      return val != null ? val.toString().replace(/(~|\/)/g, function (m) {
	        return { '~': '~~', '/': '~2F' }[m];
	      }) : val;
	    }
	    function valFromString(val) {
	      return val != null ? val.toString().replace(/(~~|~2F)/g, function (m) {
	        return { '~~': '~', '~2F': '/' }[m];
	      }) : val;
	    }
	
	    var $types = {},
	        enqueue = true,
	        typeQueue = [],
	        injector,
	        defaultTypes = {
	      "string": {
	        encode: valToString,
	        decode: valFromString,
	        // TODO: in 1.0, make string .is() return false if value is undefined/null by default.
	        // In 0.2.x, string params are optional by default for backwards compat
	        is: function is(val) {
	          return val == null || !isDefined(val) || typeof val === "string";
	        },
	        pattern: /[^/]*/
	      },
	      "int": {
	        encode: valToString,
	        decode: function decode(val) {
	          return parseInt(val, 10);
	        },
	        is: function is(val) {
	          return val !== undefined && val !== null && this.decode(val.toString()) === val;
	        },
	        pattern: /\d+/
	      },
	      "bool": {
	        encode: function encode(val) {
	          return val ? 1 : 0;
	        },
	        decode: function decode(val) {
	          return parseInt(val, 10) !== 0;
	        },
	        is: function is(val) {
	          return val === true || val === false;
	        },
	        pattern: /0|1/
	      },
	      "date": {
	        encode: function encode(val) {
	          if (!this.is(val)) return undefined;
	          return [val.getFullYear(), ('0' + (val.getMonth() + 1)).slice(-2), ('0' + val.getDate()).slice(-2)].join("-");
	        },
	        decode: function decode(val) {
	          if (this.is(val)) return val;
	          var match = this.capture.exec(val);
	          return match ? new Date(match[1], match[2] - 1, match[3]) : undefined;
	        },
	        is: function is(val) {
	          return val instanceof Date && !isNaN(val.valueOf());
	        },
	        equals: function equals(a, b) {
	          return this.is(a) && this.is(b) && a.toISOString() === b.toISOString();
	        },
	        pattern: /[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,
	        capture: /([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/
	      },
	      "json": {
	        encode: angular.toJson,
	        decode: angular.fromJson,
	        is: angular.isObject,
	        equals: angular.equals,
	        pattern: /[^/]*/
	      },
	      "any": { // does not encode/decode
	        encode: angular.identity,
	        decode: angular.identity,
	        equals: angular.equals,
	        pattern: /.*/
	      }
	    };
	
	    function getDefaultConfig() {
	      return {
	        strict: isStrictMode,
	        caseInsensitive: isCaseInsensitive
	      };
	    }
	
	    function isInjectable(value) {
	      return isFunction(value) || isArray(value) && isFunction(value[value.length - 1]);
	    }
	
	    /**
	     * [Internal] Get the default value of a parameter, which may be an injectable function.
	     */
	    $UrlMatcherFactory.$$getDefaultValue = function (config) {
	      if (!isInjectable(config.value)) return config.value;
	      if (!injector) throw new Error("Injectable functions cannot be called at configuration time");
	      return injector.invoke(config.value);
	    };
	
	    /**
	     * @ngdoc function
	     * @name ui.router.util.$urlMatcherFactory#caseInsensitive
	     * @methodOf ui.router.util.$urlMatcherFactory
	     *
	     * @description
	     * Defines whether URL matching should be case sensitive (the default behavior), or not.
	     *
	     * @param {boolean} value `false` to match URL in a case sensitive manner; otherwise `true`;
	     * @returns {boolean} the current value of caseInsensitive
	     */
	    this.caseInsensitive = function (value) {
	      if (isDefined(value)) isCaseInsensitive = value;
	      return isCaseInsensitive;
	    };
	
	    /**
	     * @ngdoc function
	     * @name ui.router.util.$urlMatcherFactory#strictMode
	     * @methodOf ui.router.util.$urlMatcherFactory
	     *
	     * @description
	     * Defines whether URLs should match trailing slashes, or not (the default behavior).
	     *
	     * @param {boolean=} value `false` to match trailing slashes in URLs, otherwise `true`.
	     * @returns {boolean} the current value of strictMode
	     */
	    this.strictMode = function (value) {
	      if (isDefined(value)) isStrictMode = value;
	      return isStrictMode;
	    };
	
	    /**
	     * @ngdoc function
	     * @name ui.router.util.$urlMatcherFactory#defaultSquashPolicy
	     * @methodOf ui.router.util.$urlMatcherFactory
	     *
	     * @description
	     * Sets the default behavior when generating or matching URLs with default parameter values.
	     *
	     * @param {string} value A string that defines the default parameter URL squashing behavior.
	     *    `nosquash`: When generating an href with a default parameter value, do not squash the parameter value from the URL
	     *    `slash`: When generating an href with a default parameter value, squash (remove) the parameter value, and, if the
	     *             parameter is surrounded by slashes, squash (remove) one slash from the URL
	     *    any other string, e.g. "~": When generating an href with a default parameter value, squash (remove)
	     *             the parameter value from the URL and replace it with this string.
	     */
	    this.defaultSquashPolicy = function (value) {
	      if (!isDefined(value)) return defaultSquashPolicy;
	      if (value !== true && value !== false && !isString(value)) throw new Error("Invalid squash policy: " + value + ". Valid policies: false, true, arbitrary-string");
	      defaultSquashPolicy = value;
	      return value;
	    };
	
	    /**
	     * @ngdoc function
	     * @name ui.router.util.$urlMatcherFactory#compile
	     * @methodOf ui.router.util.$urlMatcherFactory
	     *
	     * @description
	     * Creates a {@link ui.router.util.type:UrlMatcher `UrlMatcher`} for the specified pattern.
	     *
	     * @param {string} pattern  The URL pattern.
	     * @param {Object} config  The config object hash.
	     * @returns {UrlMatcher}  The UrlMatcher.
	     */
	    this.compile = function (pattern, config) {
	      return new UrlMatcher(pattern, extend(getDefaultConfig(), config));
	    };
	
	    /**
	     * @ngdoc function
	     * @name ui.router.util.$urlMatcherFactory#isMatcher
	     * @methodOf ui.router.util.$urlMatcherFactory
	     *
	     * @description
	     * Returns true if the specified object is a `UrlMatcher`, or false otherwise.
	     *
	     * @param {Object} object  The object to perform the type check against.
	     * @returns {Boolean}  Returns `true` if the object matches the `UrlMatcher` interface, by
	     *          implementing all the same methods.
	     */
	    this.isMatcher = function (o) {
	      if (!isObject(o)) return false;
	      var result = true;
	
	      forEach(UrlMatcher.prototype, function (val, name) {
	        if (isFunction(val)) {
	          result = result && isDefined(o[name]) && isFunction(o[name]);
	        }
	      });
	      return result;
	    };
	
	    /**
	     * @ngdoc function
	     * @name ui.router.util.$urlMatcherFactory#type
	     * @methodOf ui.router.util.$urlMatcherFactory
	     *
	     * @description
	     * Registers a custom {@link ui.router.util.type:Type `Type`} object that can be used to
	     * generate URLs with typed parameters.
	     *
	     * @param {string} name  The type name.
	     * @param {Object|Function} definition   The type definition. See
	     *        {@link ui.router.util.type:Type `Type`} for information on the values accepted.
	     * @param {Object|Function} definitionFn (optional) A function that is injected before the app
	     *        runtime starts.  The result of this function is merged into the existing `definition`.
	     *        See {@link ui.router.util.type:Type `Type`} for information on the values accepted.
	     *
	     * @returns {Object}  Returns `$urlMatcherFactoryProvider`.
	     *
	     * @example
	     * This is a simple example of a custom type that encodes and decodes items from an
	     * array, using the array index as the URL-encoded value:
	     *
	     * <pre>
	     * var list = ['John', 'Paul', 'George', 'Ringo'];
	     *
	     * $urlMatcherFactoryProvider.type('listItem', {
	     *   encode: function(item) {
	     *     // Represent the list item in the URL using its corresponding index
	     *     return list.indexOf(item);
	     *   },
	     *   decode: function(item) {
	     *     // Look up the list item by index
	     *     return list[parseInt(item, 10)];
	     *   },
	     *   is: function(item) {
	     *     // Ensure the item is valid by checking to see that it appears
	     *     // in the list
	     *     return list.indexOf(item) > -1;
	     *   }
	     * });
	     *
	     * $stateProvider.state('list', {
	     *   url: "/list/{item:listItem}",
	     *   controller: function($scope, $stateParams) {
	     *     console.log($stateParams.item);
	     *   }
	     * });
	     *
	     * // ...
	     *
	     * // Changes URL to '/list/3', logs "Ringo" to the console
	     * $state.go('list', { item: "Ringo" });
	     * </pre>
	     *
	     * This is a more complex example of a type that relies on dependency injection to
	     * interact with services, and uses the parameter name from the URL to infer how to
	     * handle encoding and decoding parameter values:
	     *
	     * <pre>
	     * // Defines a custom type that gets a value from a service,
	     * // where each service gets different types of values from
	     * // a backend API:
	     * $urlMatcherFactoryProvider.type('dbObject', {}, function(Users, Posts) {
	     *
	     *   // Matches up services to URL parameter names
	     *   var services = {
	     *     user: Users,
	     *     post: Posts
	     *   };
	     *
	     *   return {
	     *     encode: function(object) {
	     *       // Represent the object in the URL using its unique ID
	     *       return object.id;
	     *     },
	     *     decode: function(value, key) {
	     *       // Look up the object by ID, using the parameter
	     *       // name (key) to call the correct service
	     *       return services[key].findById(value);
	     *     },
	     *     is: function(object, key) {
	     *       // Check that object is a valid dbObject
	     *       return angular.isObject(object) && object.id && services[key];
	     *     }
	     *     equals: function(a, b) {
	     *       // Check the equality of decoded objects by comparing
	     *       // their unique IDs
	     *       return a.id === b.id;
	     *     }
	     *   };
	     * });
	     *
	     * // In a config() block, you can then attach URLs with
	     * // type-annotated parameters:
	     * $stateProvider.state('users', {
	     *   url: "/users",
	     *   // ...
	     * }).state('users.item', {
	     *   url: "/{user:dbObject}",
	     *   controller: function($scope, $stateParams) {
	     *     // $stateParams.user will now be an object returned from
	     *     // the Users service
	     *   },
	     *   // ...
	     * });
	     * </pre>
	     */
	    this.type = function (name, definition, definitionFn) {
	      if (!isDefined(definition)) return $types[name];
	      if ($types.hasOwnProperty(name)) throw new Error("A type named '" + name + "' has already been defined.");
	
	      $types[name] = new Type(extend({ name: name }, definition));
	      if (definitionFn) {
	        typeQueue.push({ name: name, def: definitionFn });
	        if (!enqueue) flushTypeQueue();
	      }
	      return this;
	    };
	
	    // `flushTypeQueue()` waits until `$urlMatcherFactory` is injected before invoking the queued `definitionFn`s
	    function flushTypeQueue() {
	      while (typeQueue.length) {
	        var type = typeQueue.shift();
	        if (type.pattern) throw new Error("You cannot override a type's .pattern at runtime.");
	        angular.extend($types[type.name], injector.invoke(type.def));
	      }
	    }
	
	    // Register default types. Store them in the prototype of $types.
	    forEach(defaultTypes, function (type, name) {
	      $types[name] = new Type(extend({ name: name }, type));
	    });
	    $types = inherit($types, {});
	
	    /* No need to document $get, since it returns this */
	    this.$get = ['$injector', function ($injector) {
	      injector = $injector;
	      enqueue = false;
	      flushTypeQueue();
	
	      forEach(defaultTypes, function (type, name) {
	        if (!$types[name]) $types[name] = new Type(type);
	      });
	      return this;
	    }];
	
	    this.Param = function Param(id, type, config, location) {
	      var self = this;
	      config = unwrapShorthand(config);
	      type = getType(config, type, location);
	      var arrayMode = getArrayMode();
	      type = arrayMode ? type.$asArray(arrayMode, location === "search") : type;
	      if (type.name === "string" && !arrayMode && location === "path" && config.value === undefined) config.value = ""; // for 0.2.x; in 0.3.0+ do not automatically default to ""
	      var isOptional = config.value !== undefined;
	      var squash = getSquashPolicy(config, isOptional);
	      var replace = getReplace(config, arrayMode, isOptional, squash);
	
	      function unwrapShorthand(config) {
	        var keys = isObject(config) ? objectKeys(config) : [];
	        var isShorthand = indexOf(keys, "value") === -1 && indexOf(keys, "type") === -1 && indexOf(keys, "squash") === -1 && indexOf(keys, "array") === -1;
	        if (isShorthand) config = { value: config };
	        config.$$fn = isInjectable(config.value) ? config.value : function () {
	          return config.value;
	        };
	        return config;
	      }
	
	      function getType(config, urlType, location) {
	        if (config.type && urlType) throw new Error("Param '" + id + "' has two type configurations.");
	        if (urlType) return urlType;
	        if (!config.type) return location === "config" ? $types.any : $types.string;
	
	        if (angular.isString(config.type)) return $types[config.type];
	        if (config.type instanceof Type) return config.type;
	        return new Type(config.type);
	      }
	
	      // array config: param name (param[]) overrides default settings.  explicit config overrides param name.
	      function getArrayMode() {
	        var arrayDefaults = { array: location === "search" ? "auto" : false };
	        var arrayParamNomenclature = id.match(/\[\]$/) ? { array: true } : {};
	        return extend(arrayDefaults, arrayParamNomenclature, config).array;
	      }
	
	      /**
	       * returns false, true, or the squash value to indicate the "default parameter url squash policy".
	       */
	      function getSquashPolicy(config, isOptional) {
	        var squash = config.squash;
	        if (!isOptional || squash === false) return false;
	        if (!isDefined(squash) || squash == null) return defaultSquashPolicy;
	        if (squash === true || isString(squash)) return squash;
	        throw new Error("Invalid squash policy: '" + squash + "'. Valid policies: false, true, or arbitrary string");
	      }
	
	      function getReplace(config, arrayMode, isOptional, squash) {
	        var replace,
	            configuredKeys,
	            defaultPolicy = [{ from: "", to: isOptional || arrayMode ? undefined : "" }, { from: null, to: isOptional || arrayMode ? undefined : "" }];
	        replace = isArray(config.replace) ? config.replace : [];
	        if (isString(squash)) replace.push({ from: squash, to: undefined });
	        configuredKeys = map(replace, function (item) {
	          return item.from;
	        });
	        return filter(defaultPolicy, function (item) {
	          return indexOf(configuredKeys, item.from) === -1;
	        }).concat(replace);
	      }
	
	      /**
	       * [Internal] Get the default value of a parameter, which may be an injectable function.
	       */
	      function $$getDefaultValue() {
	        if (!injector) throw new Error("Injectable functions cannot be called at configuration time");
	        var defaultValue = injector.invoke(config.$$fn);
	        if (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue)) throw new Error("Default value (" + defaultValue + ") for parameter '" + self.id + "' is not an instance of Type (" + self.type.name + ")");
	        return defaultValue;
	      }
	
	      /**
	       * [Internal] Gets the decoded representation of a value if the value is defined, otherwise, returns the
	       * default value, which may be the result of an injectable function.
	       */
	      function $value(value) {
	        function hasReplaceVal(val) {
	          return function (obj) {
	            return obj.from === val;
	          };
	        }
	        function $replace(value) {
	          var replacement = map(filter(self.replace, hasReplaceVal(value)), function (obj) {
	            return obj.to;
	          });
	          return replacement.length ? replacement[0] : value;
	        }
	        value = $replace(value);
	        return !isDefined(value) ? $$getDefaultValue() : self.type.$normalize(value);
	      }
	
	      function toString() {
	        return "{Param:" + id + " " + type + " squash: '" + squash + "' optional: " + isOptional + "}";
	      }
	
	      extend(this, {
	        id: id,
	        type: type,
	        location: location,
	        array: arrayMode,
	        squash: squash,
	        replace: replace,
	        isOptional: isOptional,
	        value: $value,
	        dynamic: undefined,
	        config: config,
	        toString: toString
	      });
	    };
	
	    function ParamSet(params) {
	      extend(this, params || {});
	    }
	
	    ParamSet.prototype = {
	      $$new: function $$new() {
	        return inherit(this, extend(new ParamSet(), { $$parent: this }));
	      },
	      $$keys: function $$keys() {
	        var keys = [],
	            chain = [],
	            parent = this,
	            ignore = objectKeys(ParamSet.prototype);
	        while (parent) {
	          chain.push(parent);parent = parent.$$parent;
	        }
	        chain.reverse();
	        forEach(chain, function (paramset) {
	          forEach(objectKeys(paramset), function (key) {
	            if (indexOf(keys, key) === -1 && indexOf(ignore, key) === -1) keys.push(key);
	          });
	        });
	        return keys;
	      },
	      $$values: function $$values(paramValues) {
	        var values = {},
	            self = this;
	        forEach(self.$$keys(), function (key) {
	          values[key] = self[key].value(paramValues && paramValues[key]);
	        });
	        return values;
	      },
	      $$equals: function $$equals(paramValues1, paramValues2) {
	        var equal = true,
	            self = this;
	        forEach(self.$$keys(), function (key) {
	          var left = paramValues1 && paramValues1[key],
	              right = paramValues2 && paramValues2[key];
	          if (!self[key].type.equals(left, right)) equal = false;
	        });
	        return equal;
	      },
	      $$validates: function $$validate(paramValues) {
	        var keys = this.$$keys(),
	            i,
	            param,
	            rawVal,
	            normalized,
	            encoded;
	        for (i = 0; i < keys.length; i++) {
	          param = this[keys[i]];
	          rawVal = paramValues[keys[i]];
	          if ((rawVal === undefined || rawVal === null) && param.isOptional) break; // There was no parameter value, but the param is optional
	          normalized = param.type.$normalize(rawVal);
	          if (!param.type.is(normalized)) return false; // The value was not of the correct Type, and could not be decoded to the correct Type
	          encoded = param.type.encode(normalized);
	          if (angular.isString(encoded) && !param.type.pattern.exec(encoded)) return false; // The value was of the correct type, but when encoded, did not match the Type's regexp
	        }
	        return true;
	      },
	      $$parent: undefined
	    };
	
	    this.ParamSet = ParamSet;
	  }
	
	  // Register as a provider so it's available to other providers
	  angular.module('ui.router.util').provider('$urlMatcherFactory', $UrlMatcherFactory);
	  angular.module('ui.router.util').run(['$urlMatcherFactory', function ($urlMatcherFactory) {}]);
	
	  /**
	   * @ngdoc object
	   * @name ui.router.router.$urlRouterProvider
	   *
	   * @requires ui.router.util.$urlMatcherFactoryProvider
	   * @requires $locationProvider
	   *
	   * @description
	   * `$urlRouterProvider` has the responsibility of watching `$location`. 
	   * When `$location` changes it runs through a list of rules one by one until a 
	   * match is found. `$urlRouterProvider` is used behind the scenes anytime you specify 
	   * a url in a state configuration. All urls are compiled into a UrlMatcher object.
	   *
	   * There are several methods on `$urlRouterProvider` that make it useful to use directly
	   * in your module config.
	   */
	  $UrlRouterProvider.$inject = ['$locationProvider', '$urlMatcherFactoryProvider'];
	  function $UrlRouterProvider($locationProvider, $urlMatcherFactory) {
	    var rules = [],
	        otherwise = null,
	        interceptDeferred = false,
	        listener;
	
	    // Returns a string that is a prefix of all strings matching the RegExp
	    function regExpPrefix(re) {
	      var prefix = /^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(re.source);
	      return prefix != null ? prefix[1].replace(/\\(.)/g, "$1") : '';
	    }
	
	    // Interpolates matched values into a String.replace()-style pattern
	    function interpolate(pattern, match) {
	      return pattern.replace(/\$(\$|\d{1,2})/, function (m, what) {
	        return match[what === '$' ? 0 : Number(what)];
	      });
	    }
	
	    /**
	     * @ngdoc function
	     * @name ui.router.router.$urlRouterProvider#rule
	     * @methodOf ui.router.router.$urlRouterProvider
	     *
	     * @description
	     * Defines rules that are used by `$urlRouterProvider` to find matches for
	     * specific URLs.
	     *
	     * @example
	     * <pre>
	     * var app = angular.module('app', ['ui.router.router']);
	     *
	     * app.config(function ($urlRouterProvider) {
	     *   // Here's an example of how you might allow case insensitive urls
	     *   $urlRouterProvider.rule(function ($injector, $location) {
	     *     var path = $location.path(),
	     *         normalized = path.toLowerCase();
	     *
	     *     if (path !== normalized) {
	     *       return normalized;
	     *     }
	     *   });
	     * });
	     * </pre>
	     *
	     * @param {function} rule Handler function that takes `$injector` and `$location`
	     * services as arguments. You can use them to return a valid path as a string.
	     *
	     * @return {object} `$urlRouterProvider` - `$urlRouterProvider` instance
	     */
	    this.rule = function (rule) {
	      if (!isFunction(rule)) throw new Error("'rule' must be a function");
	      rules.push(rule);
	      return this;
	    };
	
	    /**
	     * @ngdoc object
	     * @name ui.router.router.$urlRouterProvider#otherwise
	     * @methodOf ui.router.router.$urlRouterProvider
	     *
	     * @description
	     * Defines a path that is used when an invalid route is requested.
	     *
	     * @example
	     * <pre>
	     * var app = angular.module('app', ['ui.router.router']);
	     *
	     * app.config(function ($urlRouterProvider) {
	     *   // if the path doesn't match any of the urls you configured
	     *   // otherwise will take care of routing the user to the
	     *   // specified url
	     *   $urlRouterProvider.otherwise('/index');
	     *
	     *   // Example of using function rule as param
	     *   $urlRouterProvider.otherwise(function ($injector, $location) {
	     *     return '/a/valid/url';
	     *   });
	     * });
	     * </pre>
	     *
	     * @param {string|function} rule The url path you want to redirect to or a function 
	     * rule that returns the url path. The function version is passed two params: 
	     * `$injector` and `$location` services, and must return a url string.
	     *
	     * @return {object} `$urlRouterProvider` - `$urlRouterProvider` instance
	     */
	    this.otherwise = function (rule) {
	      if (isString(rule)) {
	        var redirect = rule;
	        rule = function rule() {
	          return redirect;
	        };
	      } else if (!isFunction(rule)) throw new Error("'rule' must be a function");
	      otherwise = rule;
	      return this;
	    };
	
	    function handleIfMatch($injector, handler, match) {
	      if (!match) return false;
	      var result = $injector.invoke(handler, handler, { $match: match });
	      return isDefined(result) ? result : true;
	    }
	
	    /**
	     * @ngdoc function
	     * @name ui.router.router.$urlRouterProvider#when
	     * @methodOf ui.router.router.$urlRouterProvider
	     *
	     * @description
	     * Registers a handler for a given url matching. 
	     * 
	     * If the handler is a string, it is
	     * treated as a redirect, and is interpolated according to the syntax of match
	     * (i.e. like `String.replace()` for `RegExp`, or like a `UrlMatcher` pattern otherwise).
	     *
	     * If the handler is a function, it is injectable. It gets invoked if `$location`
	     * matches. You have the option of inject the match object as `$match`.
	     *
	     * The handler can return
	     *
	     * - **falsy** to indicate that the rule didn't match after all, then `$urlRouter`
	     *   will continue trying to find another one that matches.
	     * - **string** which is treated as a redirect and passed to `$location.url()`
	     * - **void** or any **truthy** value tells `$urlRouter` that the url was handled.
	     *
	     * @example
	     * <pre>
	     * var app = angular.module('app', ['ui.router.router']);
	     *
	     * app.config(function ($urlRouterProvider) {
	     *   $urlRouterProvider.when($state.url, function ($match, $stateParams) {
	     *     if ($state.$current.navigable !== state ||
	     *         !equalForKeys($match, $stateParams) {
	     *      $state.transitionTo(state, $match, false);
	     *     }
	     *   });
	     * });
	     * </pre>
	     *
	     * @param {string|object} what The incoming path that you want to redirect.
	     * @param {string|function} handler The path you want to redirect your user to.
	     */
	    this.when = function (what, handler) {
	      var redirect,
	          handlerIsString = isString(handler);
	      if (isString(what)) what = $urlMatcherFactory.compile(what);
	
	      if (!handlerIsString && !isFunction(handler) && !isArray(handler)) throw new Error("invalid 'handler' in when()");
	
	      var strategies = {
	        matcher: function matcher(what, handler) {
	          if (handlerIsString) {
	            redirect = $urlMatcherFactory.compile(handler);
	            handler = ['$match', function ($match) {
	              return redirect.format($match);
	            }];
	          }
	          return extend(function ($injector, $location) {
	            return handleIfMatch($injector, handler, what.exec($location.path(), $location.search()));
	          }, {
	            prefix: isString(what.prefix) ? what.prefix : ''
	          });
	        },
	        regex: function regex(what, handler) {
	          if (what.global || what.sticky) throw new Error("when() RegExp must not be global or sticky");
	
	          if (handlerIsString) {
	            redirect = handler;
	            handler = ['$match', function ($match) {
	              return interpolate(redirect, $match);
	            }];
	          }
	          return extend(function ($injector, $location) {
	            return handleIfMatch($injector, handler, what.exec($location.path()));
	          }, {
	            prefix: regExpPrefix(what)
	          });
	        }
	      };
	
	      var check = { matcher: $urlMatcherFactory.isMatcher(what), regex: what instanceof RegExp };
	
	      for (var n in check) {
	        if (check[n]) return this.rule(strategies[n](what, handler));
	      }
	
	      throw new Error("invalid 'what' in when()");
	    };
	
	    /**
	     * @ngdoc function
	     * @name ui.router.router.$urlRouterProvider#deferIntercept
	     * @methodOf ui.router.router.$urlRouterProvider
	     *
	     * @description
	     * Disables (or enables) deferring location change interception.
	     *
	     * If you wish to customize the behavior of syncing the URL (for example, if you wish to
	     * defer a transition but maintain the current URL), call this method at configuration time.
	     * Then, at run time, call `$urlRouter.listen()` after you have configured your own
	     * `$locationChangeSuccess` event handler.
	     *
	     * @example
	     * <pre>
	     * var app = angular.module('app', ['ui.router.router']);
	     *
	     * app.config(function ($urlRouterProvider) {
	     *
	     *   // Prevent $urlRouter from automatically intercepting URL changes;
	     *   // this allows you to configure custom behavior in between
	     *   // location changes and route synchronization:
	     *   $urlRouterProvider.deferIntercept();
	     *
	     * }).run(function ($rootScope, $urlRouter, UserService) {
	     *
	     *   $rootScope.$on('$locationChangeSuccess', function(e) {
	     *     // UserService is an example service for managing user state
	     *     if (UserService.isLoggedIn()) return;
	     *
	     *     // Prevent $urlRouter's default handler from firing
	     *     e.preventDefault();
	     *
	     *     UserService.handleLogin().then(function() {
	     *       // Once the user has logged in, sync the current URL
	     *       // to the router:
	     *       $urlRouter.sync();
	     *     });
	     *   });
	     *
	     *   // Configures $urlRouter's listener *after* your custom listener
	     *   $urlRouter.listen();
	     * });
	     * </pre>
	     *
	     * @param {boolean} defer Indicates whether to defer location change interception. Passing
	              no parameter is equivalent to `true`.
	     */
	    this.deferIntercept = function (defer) {
	      if (defer === undefined) defer = true;
	      interceptDeferred = defer;
	    };
	
	    /**
	     * @ngdoc object
	     * @name ui.router.router.$urlRouter
	     *
	     * @requires $location
	     * @requires $rootScope
	     * @requires $injector
	     * @requires $browser
	     *
	     * @description
	     *
	     */
	    this.$get = $get;
	    $get.$inject = ['$location', '$rootScope', '$injector', '$browser', '$sniffer'];
	    function $get($location, $rootScope, $injector, $browser, $sniffer) {
	
	      var baseHref = $browser.baseHref(),
	          location = $location.url(),
	          lastPushedUrl;
	
	      function appendBasePath(url, isHtml5, absolute) {
	        if (baseHref === '/') return url;
	        if (isHtml5) return baseHref.slice(0, -1) + url;
	        if (absolute) return baseHref.slice(1) + url;
	        return url;
	      }
	
	      // TODO: Optimize groups of rules with non-empty prefix into some sort of decision tree
	      function update(evt) {
	        if (evt && evt.defaultPrevented) return;
	        var ignoreUpdate = lastPushedUrl && $location.url() === lastPushedUrl;
	        lastPushedUrl = undefined;
	        // TODO: Re-implement this in 1.0 for https://github.com/angular-ui/ui-router/issues/1573
	        //if (ignoreUpdate) return true;
	
	        function check(rule) {
	          var handled = rule($injector, $location);
	
	          if (!handled) return false;
	          if (isString(handled)) $location.replace().url(handled);
	          return true;
	        }
	        var n = rules.length,
	            i;
	
	        for (i = 0; i < n; i++) {
	          if (check(rules[i])) return;
	        }
	        // always check otherwise last to allow dynamic updates to the set of rules
	        if (otherwise) check(otherwise);
	      }
	
	      function _listen() {
	        listener = listener || $rootScope.$on('$locationChangeSuccess', update);
	        return listener;
	      }
	
	      if (!interceptDeferred) _listen();
	
	      return {
	        /**
	         * @ngdoc function
	         * @name ui.router.router.$urlRouter#sync
	         * @methodOf ui.router.router.$urlRouter
	         *
	         * @description
	         * Triggers an update; the same update that happens when the address bar url changes, aka `$locationChangeSuccess`.
	         * This method is useful when you need to use `preventDefault()` on the `$locationChangeSuccess` event,
	         * perform some custom logic (route protection, auth, config, redirection, etc) and then finally proceed
	         * with the transition by calling `$urlRouter.sync()`.
	         *
	         * @example
	         * <pre>
	         * angular.module('app', ['ui.router'])
	         *   .run(function($rootScope, $urlRouter) {
	         *     $rootScope.$on('$locationChangeSuccess', function(evt) {
	         *       // Halt state change from even starting
	         *       evt.preventDefault();
	         *       // Perform custom logic
	         *       var meetsRequirement = ...
	         *       // Continue with the update and state transition if logic allows
	         *       if (meetsRequirement) $urlRouter.sync();
	         *     });
	         * });
	         * </pre>
	         */
	        sync: function sync() {
	          update();
	        },
	
	        listen: function listen() {
	          return _listen();
	        },
	
	        update: function update(read) {
	          if (read) {
	            location = $location.url();
	            return;
	          }
	          if ($location.url() === location) return;
	
	          $location.url(location);
	          $location.replace();
	        },
	
	        push: function push(urlMatcher, params, options) {
	          var url = urlMatcher.format(params || {});
	
	          // Handle the special hash param, if needed
	          if (url !== null && params && params['#']) {
	            url += '#' + params['#'];
	          }
	
	          $location.url(url);
	          lastPushedUrl = options && options.$$avoidResync ? $location.url() : undefined;
	          if (options && options.replace) $location.replace();
	        },
	
	        /**
	         * @ngdoc function
	         * @name ui.router.router.$urlRouter#href
	         * @methodOf ui.router.router.$urlRouter
	         *
	         * @description
	         * A URL generation method that returns the compiled URL for a given
	         * {@link ui.router.util.type:UrlMatcher `UrlMatcher`}, populated with the provided parameters.
	         *
	         * @example
	         * <pre>
	         * $bob = $urlRouter.href(new UrlMatcher("/about/:person"), {
	         *   person: "bob"
	         * });
	         * // $bob == "/about/bob";
	         * </pre>
	         *
	         * @param {UrlMatcher} urlMatcher The `UrlMatcher` object which is used as the template of the URL to generate.
	         * @param {object=} params An object of parameter values to fill the matcher's required parameters.
	         * @param {object=} options Options object. The options are:
	         *
	         * - **`absolute`** - {boolean=false},  If true will generate an absolute url, e.g. "http://www.example.com/fullurl".
	         *
	         * @returns {string} Returns the fully compiled URL, or `null` if `params` fail validation against `urlMatcher`
	         */
	        href: function href(urlMatcher, params, options) {
	          if (!urlMatcher.validates(params)) return null;
	
	          var isHtml5 = $locationProvider.html5Mode();
	          if (angular.isObject(isHtml5)) {
	            isHtml5 = isHtml5.enabled;
	          }
	
	          isHtml5 = isHtml5 && $sniffer.history;
	
	          var url = urlMatcher.format(params);
	          options = options || {};
	
	          if (!isHtml5 && url !== null) {
	            url = "#" + $locationProvider.hashPrefix() + url;
	          }
	
	          // Handle special hash param, if needed
	          if (url !== null && params && params['#']) {
	            url += '#' + params['#'];
	          }
	
	          url = appendBasePath(url, isHtml5, options.absolute);
	
	          if (!options.absolute || !url) {
	            return url;
	          }
	
	          var slash = !isHtml5 && url ? '/' : '',
	              port = $location.port();
	          port = port === 80 || port === 443 ? '' : ':' + port;
	
	          return [$location.protocol(), '://', $location.host(), port, slash, url].join('');
	        }
	      };
	    }
	  }
	
	  angular.module('ui.router.router').provider('$urlRouter', $UrlRouterProvider);
	
	  /**
	   * @ngdoc object
	   * @name ui.router.state.$stateProvider
	   *
	   * @requires ui.router.router.$urlRouterProvider
	   * @requires ui.router.util.$urlMatcherFactoryProvider
	   *
	   * @description
	   * The new `$stateProvider` works similar to Angular's v1 router, but it focuses purely
	   * on state.
	   *
	   * A state corresponds to a "place" in the application in terms of the overall UI and
	   * navigation. A state describes (via the controller / template / view properties) what
	   * the UI looks like and does at that place.
	   *
	   * States often have things in common, and the primary way of factoring out these
	   * commonalities in this model is via the state hierarchy, i.e. parent/child states aka
	   * nested states.
	   *
	   * The `$stateProvider` provides interfaces to declare these states for your app.
	   */
	  $StateProvider.$inject = ['$urlRouterProvider', '$urlMatcherFactoryProvider'];
	  function $StateProvider($urlRouterProvider, $urlMatcherFactory) {
	
	    var root,
	        states = {},
	        $state,
	        queue = {},
	        abstractKey = 'abstract';
	
	    // Builds state properties from definition passed to registerState()
	    var stateBuilder = {
	
	      // Derive parent state from a hierarchical name only if 'parent' is not explicitly defined.
	      // state.children = [];
	      // if (parent) parent.children.push(state);
	      parent: function parent(state) {
	        if (isDefined(state.parent) && state.parent) return findState(state.parent);
	        // regex matches any valid composite state name
	        // would match "contact.list" but not "contacts"
	        var compositeName = /^(.+)\.[^.]+$/.exec(state.name);
	        return compositeName ? findState(compositeName[1]) : root;
	      },
	
	      // inherit 'data' from parent and override by own values (if any)
	      data: function data(state) {
	        if (state.parent && state.parent.data) {
	          state.data = state.self.data = inherit(state.parent.data, state.data);
	        }
	        return state.data;
	      },
	
	      // Build a URLMatcher if necessary, either via a relative or absolute URL
	      url: function url(state) {
	        var url = state.url,
	            config = { params: state.params || {} };
	
	        if (isString(url)) {
	          if (url.charAt(0) == '^') return $urlMatcherFactory.compile(url.substring(1), config);
	          return (state.parent.navigable || root).url.concat(url, config);
	        }
	
	        if (!url || $urlMatcherFactory.isMatcher(url)) return url;
	        throw new Error("Invalid url '" + url + "' in state '" + state + "'");
	      },
	
	      // Keep track of the closest ancestor state that has a URL (i.e. is navigable)
	      navigable: function navigable(state) {
	        return state.url ? state : state.parent ? state.parent.navigable : null;
	      },
	
	      // Own parameters for this state. state.url.params is already built at this point. Create and add non-url params
	      ownParams: function ownParams(state) {
	        var params = state.url && state.url.params || new $$UMFP.ParamSet();
	        forEach(state.params || {}, function (config, id) {
	          if (!params[id]) params[id] = new $$UMFP.Param(id, null, config, "config");
	        });
	        return params;
	      },
	
	      // Derive parameters for this state and ensure they're a super-set of parent's parameters
	      params: function params(state) {
	        var ownParams = pick(state.ownParams, state.ownParams.$$keys());
	        return state.parent && state.parent.params ? extend(state.parent.params.$$new(), ownParams) : new $$UMFP.ParamSet();
	      },
	
	      // If there is no explicit multi-view configuration, make one up so we don't have
	      // to handle both cases in the view directive later. Note that having an explicit
	      // 'views' property will mean the default unnamed view properties are ignored. This
	      // is also a good time to resolve view names to absolute names, so everything is a
	      // straight lookup at link time.
	      views: function views(state) {
	        var views = {};
	
	        forEach(isDefined(state.views) ? state.views : { '': state }, function (view, name) {
	          if (name.indexOf('@') < 0) name += '@' + state.parent.name;
	          view.resolveAs = view.resolveAs || state.resolveAs || '$resolve';
	          views[name] = view;
	        });
	        return views;
	      },
	
	      // Keep a full path from the root down to this state as this is needed for state activation.
	      path: function path(state) {
	        return state.parent ? state.parent.path.concat(state) : []; // exclude root from path
	      },
	
	      // Speed up $state.contains() as it's used a lot
	      includes: function includes(state) {
	        var includes = state.parent ? extend({}, state.parent.includes) : {};
	        includes[state.name] = true;
	        return includes;
	      },
	
	      $delegates: {}
	    };
	
	    function isRelative(stateName) {
	      return stateName.indexOf(".") === 0 || stateName.indexOf("^") === 0;
	    }
	
	    function findState(stateOrName, base) {
	      if (!stateOrName) return undefined;
	
	      var isStr = isString(stateOrName),
	          name = isStr ? stateOrName : stateOrName.name,
	          path = isRelative(name);
	
	      if (path) {
	        if (!base) throw new Error("No reference point given for path '" + name + "'");
	        base = findState(base);
	
	        var rel = name.split("."),
	            i = 0,
	            pathLength = rel.length,
	            current = base;
	
	        for (; i < pathLength; i++) {
	          if (rel[i] === "" && i === 0) {
	            current = base;
	            continue;
	          }
	          if (rel[i] === "^") {
	            if (!current.parent) throw new Error("Path '" + name + "' not valid for state '" + base.name + "'");
	            current = current.parent;
	            continue;
	          }
	          break;
	        }
	        rel = rel.slice(i).join(".");
	        name = current.name + (current.name && rel ? "." : "") + rel;
	      }
	      var state = states[name];
	
	      if (state && (isStr || !isStr && (state === stateOrName || state.self === stateOrName))) {
	        return state;
	      }
	      return undefined;
	    }
	
	    function queueState(parentName, state) {
	      if (!queue[parentName]) {
	        queue[parentName] = [];
	      }
	      queue[parentName].push(state);
	    }
	
	    function flushQueuedChildren(parentName) {
	      var queued = queue[parentName] || [];
	      while (queued.length) {
	        registerState(queued.shift());
	      }
	    }
	
	    function registerState(state) {
	      // Wrap a new object around the state so we can store our private details easily.
	      state = inherit(state, {
	        self: state,
	        resolve: state.resolve || {},
	        toString: function toString() {
	          return this.name;
	        }
	      });
	
	      var name = state.name;
	      if (!isString(name) || name.indexOf('@') >= 0) throw new Error("State must have a valid name");
	      if (states.hasOwnProperty(name)) throw new Error("State '" + name + "' is already defined");
	
	      // Get parent name
	      var parentName = name.indexOf('.') !== -1 ? name.substring(0, name.lastIndexOf('.')) : isString(state.parent) ? state.parent : isObject(state.parent) && isString(state.parent.name) ? state.parent.name : '';
	
	      // If parent is not registered yet, add state to queue and register later
	      if (parentName && !states[parentName]) {
	        return queueState(parentName, state.self);
	      }
	
	      for (var key in stateBuilder) {
	        if (isFunction(stateBuilder[key])) state[key] = stateBuilder[key](state, stateBuilder.$delegates[key]);
	      }
	      states[name] = state;
	
	      // Register the state in the global state list and with $urlRouter if necessary.
	      if (!state[abstractKey] && state.url) {
	        $urlRouterProvider.when(state.url, ['$match', '$stateParams', function ($match, $stateParams) {
	          if ($state.$current.navigable != state || !equalForKeys($match, $stateParams)) {
	            $state.transitionTo(state, $match, { inherit: true, location: false });
	          }
	        }]);
	      }
	
	      // Register any queued children
	      flushQueuedChildren(name);
	
	      return state;
	    }
	
	    // Checks text to see if it looks like a glob.
	    function isGlob(text) {
	      return text.indexOf('*') > -1;
	    }
	
	    // Returns true if glob matches current $state name.
	    function doesStateMatchGlob(glob) {
	      var globSegments = glob.split('.'),
	          segments = $state.$current.name.split('.');
	
	      //match single stars
	      for (var i = 0, l = globSegments.length; i < l; i++) {
	        if (globSegments[i] === '*') {
	          segments[i] = '*';
	        }
	      }
	
	      //match greedy starts
	      if (globSegments[0] === '**') {
	        segments = segments.slice(indexOf(segments, globSegments[1]));
	        segments.unshift('**');
	      }
	      //match greedy ends
	      if (globSegments[globSegments.length - 1] === '**') {
	        segments.splice(indexOf(segments, globSegments[globSegments.length - 2]) + 1, Number.MAX_VALUE);
	        segments.push('**');
	      }
	
	      if (globSegments.length != segments.length) {
	        return false;
	      }
	
	      return segments.join('') === globSegments.join('');
	    }
	
	    // Implicit root state that is always active
	    root = registerState({
	      name: '',
	      url: '^',
	      views: null,
	      'abstract': true
	    });
	    root.navigable = null;
	
	    /**
	     * @ngdoc function
	     * @name ui.router.state.$stateProvider#decorator
	     * @methodOf ui.router.state.$stateProvider
	     *
	     * @description
	     * Allows you to extend (carefully) or override (at your own peril) the 
	     * `stateBuilder` object used internally by `$stateProvider`. This can be used 
	     * to add custom functionality to ui-router, for example inferring templateUrl 
	     * based on the state name.
	     *
	     * When passing only a name, it returns the current (original or decorated) builder
	     * function that matches `name`.
	     *
	     * The builder functions that can be decorated are listed below. Though not all
	     * necessarily have a good use case for decoration, that is up to you to decide.
	     *
	     * In addition, users can attach custom decorators, which will generate new 
	     * properties within the state's internal definition. There is currently no clear 
	     * use-case for this beyond accessing internal states (i.e. $state.$current), 
	     * however, expect this to become increasingly relevant as we introduce additional 
	     * meta-programming features.
	     *
	     * **Warning**: Decorators should not be interdependent because the order of 
	     * execution of the builder functions in non-deterministic. Builder functions 
	     * should only be dependent on the state definition object and super function.
	     *
	     *
	     * Existing builder functions and current return values:
	     *
	     * - **parent** `{object}` - returns the parent state object.
	     * - **data** `{object}` - returns state data, including any inherited data that is not
	     *   overridden by own values (if any).
	     * - **url** `{object}` - returns a {@link ui.router.util.type:UrlMatcher UrlMatcher}
	     *   or `null`.
	     * - **navigable** `{object}` - returns closest ancestor state that has a URL (aka is 
	     *   navigable).
	     * - **params** `{object}` - returns an array of state params that are ensured to 
	     *   be a super-set of parent's params.
	     * - **views** `{object}` - returns a views object where each key is an absolute view 
	     *   name (i.e. "viewName@stateName") and each value is the config object 
	     *   (template, controller) for the view. Even when you don't use the views object 
	     *   explicitly on a state config, one is still created for you internally.
	     *   So by decorating this builder function you have access to decorating template 
	     *   and controller properties.
	     * - **ownParams** `{object}` - returns an array of params that belong to the state, 
	     *   not including any params defined by ancestor states.
	     * - **path** `{string}` - returns the full path from the root down to this state. 
	     *   Needed for state activation.
	     * - **includes** `{object}` - returns an object that includes every state that 
	     *   would pass a `$state.includes()` test.
	     *
	     * @example
	     * <pre>
	     * // Override the internal 'views' builder with a function that takes the state
	     * // definition, and a reference to the internal function being overridden:
	     * $stateProvider.decorator('views', function (state, parent) {
	     *   var result = {},
	     *       views = parent(state);
	     *
	     *   angular.forEach(views, function (config, name) {
	     *     var autoName = (state.name + '.' + name).replace('.', '/');
	     *     config.templateUrl = config.templateUrl || '/partials/' + autoName + '.html';
	     *     result[name] = config;
	     *   });
	     *   return result;
	     * });
	     *
	     * $stateProvider.state('home', {
	     *   views: {
	     *     'contact.list': { controller: 'ListController' },
	     *     'contact.item': { controller: 'ItemController' }
	     *   }
	     * });
	     *
	     * // ...
	     *
	     * $state.go('home');
	     * // Auto-populates list and item views with /partials/home/contact/list.html,
	     * // and /partials/home/contact/item.html, respectively.
	     * </pre>
	     *
	     * @param {string} name The name of the builder function to decorate. 
	     * @param {object} func A function that is responsible for decorating the original 
	     * builder function. The function receives two parameters:
	     *
	     *   - `{object}` - state - The state config object.
	     *   - `{object}` - super - The original builder function.
	     *
	     * @return {object} $stateProvider - $stateProvider instance
	     */
	    this.decorator = decorator;
	    function decorator(name, func) {
	      /*jshint validthis: true */
	      if (isString(name) && !isDefined(func)) {
	        return stateBuilder[name];
	      }
	      if (!isFunction(func) || !isString(name)) {
	        return this;
	      }
	      if (stateBuilder[name] && !stateBuilder.$delegates[name]) {
	        stateBuilder.$delegates[name] = stateBuilder[name];
	      }
	      stateBuilder[name] = func;
	      return this;
	    }
	
	    /**
	     * @ngdoc function
	     * @name ui.router.state.$stateProvider#state
	     * @methodOf ui.router.state.$stateProvider
	     *
	     * @description
	     * Registers a state configuration under a given state name. The stateConfig object
	     * has the following acceptable properties.
	     *
	     * @param {string} name A unique state name, e.g. "home", "about", "contacts".
	     * To create a parent/child state use a dot, e.g. "about.sales", "home.newest".
	     * @param {object} stateConfig State configuration object.
	     * @param {string|function=} stateConfig.template
	     * <a id='template'></a>
	     *   html template as a string or a function that returns
	     *   an html template as a string which should be used by the uiView directives. This property 
	     *   takes precedence over templateUrl.
	     *   
	     *   If `template` is a function, it will be called with the following parameters:
	     *
	     *   - {array.&lt;object&gt;} - state parameters extracted from the current $location.path() by
	     *     applying the current state
	     *
	     * <pre>template:
	     *   "<h1>inline template definition</h1>" +
	     *   "<div ui-view></div>"</pre>
	     * <pre>template: function(params) {
	     *       return "<h1>generated template</h1>"; }</pre>
	     * </div>
	     *
	     * @param {string|function=} stateConfig.templateUrl
	     * <a id='templateUrl'></a>
	     *
	     *   path or function that returns a path to an html
	     *   template that should be used by uiView.
	     *   
	     *   If `templateUrl` is a function, it will be called with the following parameters:
	     *
	     *   - {array.&lt;object&gt;} - state parameters extracted from the current $location.path() by 
	     *     applying the current state
	     *
	     * <pre>templateUrl: "home.html"</pre>
	     * <pre>templateUrl: function(params) {
	     *     return myTemplates[params.pageId]; }</pre>
	     *
	     * @param {function=} stateConfig.templateProvider
	     * <a id='templateProvider'></a>
	     *    Provider function that returns HTML content string.
	     * <pre> templateProvider:
	     *       function(MyTemplateService, params) {
	     *         return MyTemplateService.getTemplate(params.pageId);
	     *       }</pre>
	     *
	     * @param {string|function=} stateConfig.controller
	     * <a id='controller'></a>
	     *
	     *  Controller fn that should be associated with newly
	     *   related scope or the name of a registered controller if passed as a string.
	     *   Optionally, the ControllerAs may be declared here.
	     * <pre>controller: "MyRegisteredController"</pre>
	     * <pre>controller:
	     *     "MyRegisteredController as fooCtrl"}</pre>
	     * <pre>controller: function($scope, MyService) {
	     *     $scope.data = MyService.getData(); }</pre>
	     *
	     * @param {function=} stateConfig.controllerProvider
	     * <a id='controllerProvider'></a>
	     *
	     * Injectable provider function that returns the actual controller or string.
	     * <pre>controllerProvider:
	     *   function(MyResolveData) {
	     *     if (MyResolveData.foo)
	     *       return "FooCtrl"
	     *     else if (MyResolveData.bar)
	     *       return "BarCtrl";
	     *     else return function($scope) {
	     *       $scope.baz = "Qux";
	     *     }
	     *   }</pre>
	     *
	     * @param {string=} stateConfig.controllerAs
	     * <a id='controllerAs'></a>
	     * 
	     * A controller alias name. If present the controller will be
	     *   published to scope under the controllerAs name.
	     * <pre>controllerAs: "myCtrl"</pre>
	     *
	     * @param {string|object=} stateConfig.parent
	     * <a id='parent'></a>
	     * Optionally specifies the parent state of this state.
	     *
	     * <pre>parent: 'parentState'</pre>
	     * <pre>parent: parentState // JS variable</pre>
	     *
	     * @param {object=} stateConfig.resolve
	     * <a id='resolve'></a>
	     *
	     * An optional map&lt;string, function&gt; of dependencies which
	     *   should be injected into the controller. If any of these dependencies are promises, 
	     *   the router will wait for them all to be resolved before the controller is instantiated.
	     *   If all the promises are resolved successfully, the $stateChangeSuccess event is fired
	     *   and the values of the resolved promises are injected into any controllers that reference them.
	     *   If any  of the promises are rejected the $stateChangeError event is fired.
	     *
	     *   The map object is:
	     *   
	     *   - key - {string}: name of dependency to be injected into controller
	     *   - factory - {string|function}: If string then it is alias for service. Otherwise if function, 
	     *     it is injected and return value it treated as dependency. If result is a promise, it is 
	     *     resolved before its value is injected into controller.
	     *
	     * <pre>resolve: {
	     *     myResolve1:
	     *       function($http, $stateParams) {
	     *         return $http.get("/api/foos/"+stateParams.fooID);
	     *       }
	     *     }</pre>
	     *
	     * @param {string=} stateConfig.url
	     * <a id='url'></a>
	     *
	     *   A url fragment with optional parameters. When a state is navigated or
	     *   transitioned to, the `$stateParams` service will be populated with any 
	     *   parameters that were passed.
	     *
	     *   (See {@link ui.router.util.type:UrlMatcher UrlMatcher} `UrlMatcher`} for
	     *   more details on acceptable patterns )
	     *
	     * examples:
	     * <pre>url: "/home"
	     * url: "/users/:userid"
	     * url: "/books/{bookid:[a-zA-Z_-]}"
	     * url: "/books/{categoryid:int}"
	     * url: "/books/{publishername:string}/{categoryid:int}"
	     * url: "/messages?before&after"
	     * url: "/messages?{before:date}&{after:date}"
	     * url: "/messages/:mailboxid?{before:date}&{after:date}"
	     * </pre>
	     *
	     * @param {object=} stateConfig.views
	     * <a id='views'></a>
	     * an optional map&lt;string, object&gt; which defined multiple views, or targets views
	     * manually/explicitly.
	     *
	     * Examples:
	     *
	     * Targets three named `ui-view`s in the parent state's template
	     * <pre>views: {
	     *     header: {
	     *       controller: "headerCtrl",
	     *       templateUrl: "header.html"
	     *     }, body: {
	     *       controller: "bodyCtrl",
	     *       templateUrl: "body.html"
	     *     }, footer: {
	     *       controller: "footCtrl",
	     *       templateUrl: "footer.html"
	     *     }
	     *   }</pre>
	     *
	     * Targets named `ui-view="header"` from grandparent state 'top''s template, and named `ui-view="body" from parent state's template.
	     * <pre>views: {
	     *     'header@top': {
	     *       controller: "msgHeaderCtrl",
	     *       templateUrl: "msgHeader.html"
	     *     }, 'body': {
	     *       controller: "messagesCtrl",
	     *       templateUrl: "messages.html"
	     *     }
	     *   }</pre>
	     *
	     * @param {boolean=} [stateConfig.abstract=false]
	     * <a id='abstract'></a>
	     * An abstract state will never be directly activated,
	     *   but can provide inherited properties to its common children states.
	     * <pre>abstract: true</pre>
	     *
	     * @param {function=} stateConfig.onEnter
	     * <a id='onEnter'></a>
	     *
	     * Callback function for when a state is entered. Good way
	     *   to trigger an action or dispatch an event, such as opening a dialog.
	     * If minifying your scripts, make sure to explicitly annotate this function,
	     * because it won't be automatically annotated by your build tools.
	     *
	     * <pre>onEnter: function(MyService, $stateParams) {
	     *     MyService.foo($stateParams.myParam);
	     * }</pre>
	     *
	     * @param {function=} stateConfig.onExit
	     * <a id='onExit'></a>
	     *
	     * Callback function for when a state is exited. Good way to
	     *   trigger an action or dispatch an event, such as opening a dialog.
	     * If minifying your scripts, make sure to explicitly annotate this function,
	     * because it won't be automatically annotated by your build tools.
	     *
	     * <pre>onExit: function(MyService, $stateParams) {
	     *     MyService.cleanup($stateParams.myParam);
	     * }</pre>
	     *
	     * @param {boolean=} [stateConfig.reloadOnSearch=true]
	     * <a id='reloadOnSearch'></a>
	     *
	     * If `false`, will not retrigger the same state
	     *   just because a search/query parameter has changed (via $location.search() or $location.hash()). 
	     *   Useful for when you'd like to modify $location.search() without triggering a reload.
	     * <pre>reloadOnSearch: false</pre>
	     *
	     * @param {object=} stateConfig.data
	     * <a id='data'></a>
	     *
	     * Arbitrary data object, useful for custom configuration.  The parent state's `data` is
	     *   prototypally inherited.  In other words, adding a data property to a state adds it to
	     *   the entire subtree via prototypal inheritance.
	     *
	     * <pre>data: {
	     *     requiredRole: 'foo'
	     * } </pre>
	     *
	     * @param {object=} stateConfig.params
	     * <a id='params'></a>
	     *
	     * A map which optionally configures parameters declared in the `url`, or
	     *   defines additional non-url parameters.  For each parameter being
	     *   configured, add a configuration object keyed to the name of the parameter.
	     *
	     *   Each parameter configuration object may contain the following properties:
	     *
	     *   - ** value ** - {object|function=}: specifies the default value for this
	     *     parameter.  This implicitly sets this parameter as optional.
	     *
	     *     When UI-Router routes to a state and no value is
	     *     specified for this parameter in the URL or transition, the
	     *     default value will be used instead.  If `value` is a function,
	     *     it will be injected and invoked, and the return value used.
	     *
	     *     *Note*: `undefined` is treated as "no default value" while `null`
	     *     is treated as "the default value is `null`".
	     *
	     *     *Shorthand*: If you only need to configure the default value of the
	     *     parameter, you may use a shorthand syntax.   In the **`params`**
	     *     map, instead mapping the param name to a full parameter configuration
	     *     object, simply set map it to the default parameter value, e.g.:
	     *
	     * <pre>// define a parameter's default value
	     * params: {
	     *     param1: { value: "defaultValue" }
	     * }
	     * // shorthand default values
	     * params: {
	     *     param1: "defaultValue",
	     *     param2: "param2Default"
	     * }</pre>
	     *
	     *   - ** array ** - {boolean=}: *(default: false)* If true, the param value will be
	     *     treated as an array of values.  If you specified a Type, the value will be
	     *     treated as an array of the specified Type.  Note: query parameter values
	     *     default to a special `"auto"` mode.
	     *
	     *     For query parameters in `"auto"` mode, if multiple  values for a single parameter
	     *     are present in the URL (e.g.: `/foo?bar=1&bar=2&bar=3`) then the values
	     *     are mapped to an array (e.g.: `{ foo: [ '1', '2', '3' ] }`).  However, if
	     *     only one value is present (e.g.: `/foo?bar=1`) then the value is treated as single
	     *     value (e.g.: `{ foo: '1' }`).
	     *
	     * <pre>params: {
	     *     param1: { array: true }
	     * }</pre>
	     *
	     *   - ** squash ** - {bool|string=}: `squash` configures how a default parameter value is represented in the URL when
	     *     the current parameter value is the same as the default value. If `squash` is not set, it uses the
	     *     configured default squash policy.
	     *     (See {@link ui.router.util.$urlMatcherFactory#methods_defaultSquashPolicy `defaultSquashPolicy()`})
	     *
	     *   There are three squash settings:
	     *
	     *     - false: The parameter's default value is not squashed.  It is encoded and included in the URL
	     *     - true: The parameter's default value is omitted from the URL.  If the parameter is preceeded and followed
	     *       by slashes in the state's `url` declaration, then one of those slashes are omitted.
	     *       This can allow for cleaner looking URLs.
	     *     - `"<arbitrary string>"`: The parameter's default value is replaced with an arbitrary placeholder of  your choice.
	     *
	     * <pre>params: {
	     *     param1: {
	     *       value: "defaultId",
	     *       squash: true
	     * } }
	     * // squash "defaultValue" to "~"
	     * params: {
	     *     param1: {
	     *       value: "defaultValue",
	     *       squash: "~"
	     * } }
	     * </pre>
	     *
	     *
	     * @example
	     * <pre>
	     * // Some state name examples
	     *
	     * // stateName can be a single top-level name (must be unique).
	     * $stateProvider.state("home", {});
	     *
	     * // Or it can be a nested state name. This state is a child of the
	     * // above "home" state.
	     * $stateProvider.state("home.newest", {});
	     *
	     * // Nest states as deeply as needed.
	     * $stateProvider.state("home.newest.abc.xyz.inception", {});
	     *
	     * // state() returns $stateProvider, so you can chain state declarations.
	     * $stateProvider
	     *   .state("home", {})
	     *   .state("about", {})
	     *   .state("contacts", {});
	     * </pre>
	     *
	     */
	    this.state = state;
	    function state(name, definition) {
	      /*jshint validthis: true */
	      if (isObject(name)) definition = name;else definition.name = name;
	      registerState(definition);
	      return this;
	    }
	
	    /**
	     * @ngdoc object
	     * @name ui.router.state.$state
	     *
	     * @requires $rootScope
	     * @requires $q
	     * @requires ui.router.state.$view
	     * @requires $injector
	     * @requires ui.router.util.$resolve
	     * @requires ui.router.state.$stateParams
	     * @requires ui.router.router.$urlRouter
	     *
	     * @property {object} params A param object, e.g. {sectionId: section.id)}, that 
	     * you'd like to test against the current active state.
	     * @property {object} current A reference to the state's config object. However 
	     * you passed it in. Useful for accessing custom data.
	     * @property {object} transition Currently pending transition. A promise that'll 
	     * resolve or reject.
	     *
	     * @description
	     * `$state` service is responsible for representing states as well as transitioning
	     * between them. It also provides interfaces to ask for current state or even states
	     * you're coming from.
	     */
	    this.$get = $get;
	    $get.$inject = ['$rootScope', '$q', '$view', '$injector', '$resolve', '$stateParams', '$urlRouter', '$location', '$urlMatcherFactory'];
	    function $get($rootScope, $q, $view, $injector, $resolve, $stateParams, $urlRouter, $location, $urlMatcherFactory) {
	
	      var TransitionSupersededError = new Error('transition superseded');
	
	      var TransitionSuperseded = silenceUncaughtInPromise($q.reject(TransitionSupersededError));
	      var TransitionPrevented = silenceUncaughtInPromise($q.reject(new Error('transition prevented')));
	      var TransitionAborted = silenceUncaughtInPromise($q.reject(new Error('transition aborted')));
	      var TransitionFailed = silenceUncaughtInPromise($q.reject(new Error('transition failed')));
	
	      // Handles the case where a state which is the target of a transition is not found, and the user
	      // can optionally retry or defer the transition
	      function handleRedirect(redirect, state, params, options) {
	        /**
	         * @ngdoc event
	         * @name ui.router.state.$state#$stateNotFound
	         * @eventOf ui.router.state.$state
	         * @eventType broadcast on root scope
	         * @description
	         * Fired when a requested state **cannot be found** using the provided state name during transition.
	         * The event is broadcast allowing any handlers a single chance to deal with the error (usually by
	         * lazy-loading the unfound state). A special `unfoundState` object is passed to the listener handler,
	         * you can see its three properties in the example. You can use `event.preventDefault()` to abort the
	         * transition and the promise returned from `go` will be rejected with a `'transition aborted'` value.
	         *
	         * @param {Object} event Event object.
	         * @param {Object} unfoundState Unfound State information. Contains: `to, toParams, options` properties.
	         * @param {State} fromState Current state object.
	         * @param {Object} fromParams Current state params.
	         *
	         * @example
	         *
	         * <pre>
	         * // somewhere, assume lazy.state has not been defined
	         * $state.go("lazy.state", {a:1, b:2}, {inherit:false});
	         *
	         * // somewhere else
	         * $scope.$on('$stateNotFound',
	         * function(event, unfoundState, fromState, fromParams){
	         *     console.log(unfoundState.to); // "lazy.state"
	         *     console.log(unfoundState.toParams); // {a:1, b:2}
	         *     console.log(unfoundState.options); // {inherit:false} + default options
	         * })
	         * </pre>
	         */
	        var evt = $rootScope.$broadcast('$stateNotFound', redirect, state, params);
	
	        if (evt.defaultPrevented) {
	          $urlRouter.update();
	          return TransitionAborted;
	        }
	
	        if (!evt.retry) {
	          return null;
	        }
	
	        // Allow the handler to return a promise to defer state lookup retry
	        if (options.$retry) {
	          $urlRouter.update();
	          return TransitionFailed;
	        }
	        var retryTransition = $state.transition = $q.when(evt.retry);
	
	        retryTransition.then(function () {
	          if (retryTransition !== $state.transition) {
	            $rootScope.$broadcast('$stateChangeCancel', redirect.to, redirect.toParams, state, params);
	            return TransitionSuperseded;
	          }
	          redirect.options.$retry = true;
	          return $state.transitionTo(redirect.to, redirect.toParams, redirect.options);
	        }, function () {
	          return TransitionAborted;
	        });
	        $urlRouter.update();
	
	        return retryTransition;
	      }
	
	      root.locals = { resolve: null, globals: { $stateParams: {} } };
	
	      $state = {
	        params: {},
	        current: root.self,
	        $current: root,
	        transition: null
	      };
	
	      /**
	       * @ngdoc function
	       * @name ui.router.state.$state#reload
	       * @methodOf ui.router.state.$state
	       *
	       * @description
	       * A method that force reloads the current state. All resolves are re-resolved,
	       * controllers reinstantiated, and events re-fired.
	       *
	       * @example
	       * <pre>
	       * var app angular.module('app', ['ui.router']);
	       *
	       * app.controller('ctrl', function ($scope, $state) {
	       *   $scope.reload = function(){
	       *     $state.reload();
	       *   }
	       * });
	       * </pre>
	       *
	       * `reload()` is just an alias for:
	       * <pre>
	       * $state.transitionTo($state.current, $stateParams, { 
	       *   reload: true, inherit: false, notify: true
	       * });
	       * </pre>
	       *
	       * @param {string=|object=} state - A state name or a state object, which is the root of the resolves to be re-resolved.
	       * @example
	       * <pre>
	       * //assuming app application consists of 3 states: 'contacts', 'contacts.detail', 'contacts.detail.item' 
	       * //and current state is 'contacts.detail.item'
	       * var app angular.module('app', ['ui.router']);
	       *
	       * app.controller('ctrl', function ($scope, $state) {
	       *   $scope.reload = function(){
	       *     //will reload 'contact.detail' and 'contact.detail.item' states
	       *     $state.reload('contact.detail');
	       *   }
	       * });
	       * </pre>
	       *
	       * `reload()` is just an alias for:
	       * <pre>
	       * $state.transitionTo($state.current, $stateParams, { 
	       *   reload: true, inherit: false, notify: true
	       * });
	       * </pre>
	        * @returns {promise} A promise representing the state of the new transition. See
	       * {@link ui.router.state.$state#methods_go $state.go}.
	       */
	      $state.reload = function reload(state) {
	        return $state.transitionTo($state.current, $stateParams, { reload: state || true, inherit: false, notify: true });
	      };
	
	      /**
	       * @ngdoc function
	       * @name ui.router.state.$state#go
	       * @methodOf ui.router.state.$state
	       *
	       * @description
	       * Convenience method for transitioning to a new state. `$state.go` calls 
	       * `$state.transitionTo` internally but automatically sets options to 
	       * `{ location: true, inherit: true, relative: $state.$current, notify: true }`. 
	       * This allows you to easily use an absolute or relative to path and specify 
	       * only the parameters you'd like to update (while letting unspecified parameters 
	       * inherit from the currently active ancestor states).
	       *
	       * @example
	       * <pre>
	       * var app = angular.module('app', ['ui.router']);
	       *
	       * app.controller('ctrl', function ($scope, $state) {
	       *   $scope.changeState = function () {
	       *     $state.go('contact.detail');
	       *   };
	       * });
	       * </pre>
	       * <img src='../ngdoc_assets/StateGoExamples.png'/>
	       *
	       * @param {string} to Absolute state name or relative state path. Some examples:
	       *
	       * - `$state.go('contact.detail')` - will go to the `contact.detail` state
	       * - `$state.go('^')` - will go to a parent state
	       * - `$state.go('^.sibling')` - will go to a sibling state
	       * - `$state.go('.child.grandchild')` - will go to grandchild state
	       *
	       * @param {object=} params A map of the parameters that will be sent to the state, 
	       * will populate $stateParams. Any parameters that are not specified will be inherited from currently 
	       * defined parameters. Only parameters specified in the state definition can be overridden, new 
	       * parameters will be ignored. This allows, for example, going to a sibling state that shares parameters
	       * specified in a parent state. Parameter inheritance only works between common ancestor states, I.e.
	       * transitioning to a sibling will get you the parameters for all parents, transitioning to a child
	       * will get you all current parameters, etc.
	       * @param {object=} options Options object. The options are:
	       *
	       * - **`location`** - {boolean=true|string=} - If `true` will update the url in the location bar, if `false`
	       *    will not. If string, must be `"replace"`, which will update url and also replace last history record.
	       * - **`inherit`** - {boolean=true}, If `true` will inherit url parameters from current url.
	       * - **`relative`** - {object=$state.$current}, When transitioning with relative path (e.g '^'), 
	       *    defines which state to be relative from.
	       * - **`notify`** - {boolean=true}, If `true` will broadcast $stateChangeStart and $stateChangeSuccess events.
	       * - **`reload`** (v0.2.5) - {boolean=false|string|object}, If `true` will force transition even if no state or params
	       *    have changed.  It will reload the resolves and views of the current state and parent states.
	       *    If `reload` is a string (or state object), the state object is fetched (by name, or object reference); and \
	       *    the transition reloads the resolves and views for that matched state, and all its children states.
	       *
	       * @returns {promise} A promise representing the state of the new transition.
	       *
	       * Possible success values:
	       *
	       * - $state.current
	       *
	       * <br/>Possible rejection values:
	       *
	       * - 'transition superseded' - when a newer transition has been started after this one
	       * - 'transition prevented' - when `event.preventDefault()` has been called in a `$stateChangeStart` listener
	       * - 'transition aborted' - when `event.preventDefault()` has been called in a `$stateNotFound` listener or
	       *   when a `$stateNotFound` `event.retry` promise errors.
	       * - 'transition failed' - when a state has been unsuccessfully found after 2 tries.
	       * - *resolve error* - when an error has occurred with a `resolve`
	       *
	       */
	      $state.go = function go(to, params, options) {
	        return $state.transitionTo(to, params, extend({ inherit: true, relative: $state.$current }, options));
	      };
	
	      /**
	       * @ngdoc function
	       * @name ui.router.state.$state#transitionTo
	       * @methodOf ui.router.state.$state
	       *
	       * @description
	       * Low-level method for transitioning to a new state. {@link ui.router.state.$state#methods_go $state.go}
	       * uses `transitionTo` internally. `$state.go` is recommended in most situations.
	       *
	       * @example
	       * <pre>
	       * var app = angular.module('app', ['ui.router']);
	       *
	       * app.controller('ctrl', function ($scope, $state) {
	       *   $scope.changeState = function () {
	       *     $state.transitionTo('contact.detail');
	       *   };
	       * });
	       * </pre>
	       *
	       * @param {string} to State name.
	       * @param {object=} toParams A map of the parameters that will be sent to the state,
	       * will populate $stateParams.
	       * @param {object=} options Options object. The options are:
	       *
	       * - **`location`** - {boolean=true|string=} - If `true` will update the url in the location bar, if `false`
	       *    will not. If string, must be `"replace"`, which will update url and also replace last history record.
	       * - **`inherit`** - {boolean=false}, If `true` will inherit url parameters from current url.
	       * - **`relative`** - {object=}, When transitioning with relative path (e.g '^'), 
	       *    defines which state to be relative from.
	       * - **`notify`** - {boolean=true}, If `true` will broadcast $stateChangeStart and $stateChangeSuccess events.
	       * - **`reload`** (v0.2.5) - {boolean=false|string=|object=}, If `true` will force transition even if the state or params 
	       *    have not changed, aka a reload of the same state. It differs from reloadOnSearch because you'd
	       *    use this when you want to force a reload when *everything* is the same, including search params.
	       *    if String, then will reload the state with the name given in reload, and any children.
	       *    if Object, then a stateObj is expected, will reload the state found in stateObj, and any children.
	       *
	       * @returns {promise} A promise representing the state of the new transition. See
	       * {@link ui.router.state.$state#methods_go $state.go}.
	       */
	      $state.transitionTo = function transitionTo(to, toParams, options) {
	        toParams = toParams || {};
	        options = extend({
	          location: true, inherit: false, relative: null, notify: true, reload: false, $retry: false
	        }, options || {});
	
	        var from = $state.$current,
	            fromParams = $state.params,
	            fromPath = from.path;
	        var evt,
	            toState = findState(to, options.relative);
	
	        // Store the hash param for later (since it will be stripped out by various methods)
	        var hash = toParams['#'];
	
	        if (!isDefined(toState)) {
	          var redirect = { to: to, toParams: toParams, options: options };
	          var redirectResult = handleRedirect(redirect, from.self, fromParams, options);
	
	          if (redirectResult) {
	            return redirectResult;
	          }
	
	          // Always retry once if the $stateNotFound was not prevented
	          // (handles either redirect changed or state lazy-definition)
	          to = redirect.to;
	          toParams = redirect.toParams;
	          options = redirect.options;
	          toState = findState(to, options.relative);
	
	          if (!isDefined(toState)) {
	            if (!options.relative) throw new Error("No such state '" + to + "'");
	            throw new Error("Could not resolve '" + to + "' from state '" + options.relative + "'");
	          }
	        }
	        if (toState[abstractKey]) throw new Error("Cannot transition to abstract state '" + to + "'");
	        if (options.inherit) toParams = inheritParams($stateParams, toParams || {}, $state.$current, toState);
	        if (!toState.params.$$validates(toParams)) return TransitionFailed;
	
	        toParams = toState.params.$$values(toParams);
	        to = toState;
	
	        var toPath = to.path;
	
	        // Starting from the root of the path, keep all levels that haven't changed
	        var keep = 0,
	            state = toPath[keep],
	            locals = root.locals,
	            toLocals = [];
	
	        if (!options.reload) {
	          while (state && state === fromPath[keep] && state.ownParams.$$equals(toParams, fromParams)) {
	            locals = toLocals[keep] = state.locals;
	            keep++;
	            state = toPath[keep];
	          }
	        } else if (isString(options.reload) || isObject(options.reload)) {
	          if (isObject(options.reload) && !options.reload.name) {
	            throw new Error('Invalid reload state object');
	          }
	
	          var reloadState = options.reload === true ? fromPath[0] : findState(options.reload);
	          if (options.reload && !reloadState) {
	            throw new Error("No such reload state '" + (isString(options.reload) ? options.reload : options.reload.name) + "'");
	          }
	
	          while (state && state === fromPath[keep] && state !== reloadState) {
	            locals = toLocals[keep] = state.locals;
	            keep++;
	            state = toPath[keep];
	          }
	        }
	
	        // If we're going to the same state and all locals are kept, we've got nothing to do.
	        // But clear 'transition', as we still want to cancel any other pending transitions.
	        // TODO: We may not want to bump 'transition' if we're called from a location change
	        // that we've initiated ourselves, because we might accidentally abort a legitimate
	        // transition initiated from code?
	        if (shouldSkipReload(to, toParams, from, fromParams, locals, options)) {
	          if (hash) toParams['#'] = hash;
	          $state.params = toParams;
	          copy($state.params, $stateParams);
	          copy(filterByKeys(to.params.$$keys(), $stateParams), to.locals.globals.$stateParams);
	          if (options.location && to.navigable && to.navigable.url) {
	            $urlRouter.push(to.navigable.url, toParams, {
	              $$avoidResync: true, replace: options.location === 'replace'
	            });
	            $urlRouter.update(true);
	          }
	          $state.transition = null;
	          return $q.when($state.current);
	        }
	
	        // Filter parameters before we pass them to event handlers etc.
	        toParams = filterByKeys(to.params.$$keys(), toParams || {});
	
	        // Re-add the saved hash before we start returning things or broadcasting $stateChangeStart
	        if (hash) toParams['#'] = hash;
	
	        // Broadcast start event and cancel the transition if requested
	        if (options.notify) {
	          /**
	           * @ngdoc event
	           * @name ui.router.state.$state#$stateChangeStart
	           * @eventOf ui.router.state.$state
	           * @eventType broadcast on root scope
	           * @description
	           * Fired when the state transition **begins**. You can use `event.preventDefault()`
	           * to prevent the transition from happening and then the transition promise will be
	           * rejected with a `'transition prevented'` value.
	           *
	           * @param {Object} event Event object.
	           * @param {State} toState The state being transitioned to.
	           * @param {Object} toParams The params supplied to the `toState`.
	           * @param {State} fromState The current state, pre-transition.
	           * @param {Object} fromParams The params supplied to the `fromState`.
	           *
	           * @example
	           *
	           * <pre>
	           * $rootScope.$on('$stateChangeStart',
	           * function(event, toState, toParams, fromState, fromParams){
	           *     event.preventDefault();
	           *     // transitionTo() promise will be rejected with
	           *     // a 'transition prevented' error
	           * })
	           * </pre>
	           */
	          if ($rootScope.$broadcast('$stateChangeStart', to.self, toParams, from.self, fromParams, options).defaultPrevented) {
	            $rootScope.$broadcast('$stateChangeCancel', to.self, toParams, from.self, fromParams);
	            //Don't update and resync url if there's been a new transition started. see issue #2238, #600
	            if ($state.transition == null) $urlRouter.update();
	            return TransitionPrevented;
	          }
	        }
	
	        // Resolve locals for the remaining states, but don't update any global state just
	        // yet -- if anything fails to resolve the current state needs to remain untouched.
	        // We also set up an inheritance chain for the locals here. This allows the view directive
	        // to quickly look up the correct definition for each view in the current state. Even
	        // though we create the locals object itself outside resolveState(), it is initially
	        // empty and gets filled asynchronously. We need to keep track of the promise for the
	        // (fully resolved) current locals, and pass this down the chain.
	        var resolved = $q.when(locals);
	
	        for (var l = keep; l < toPath.length; l++, state = toPath[l]) {
	          locals = toLocals[l] = inherit(locals);
	          resolved = resolveState(state, toParams, state === to, resolved, locals, options);
	        }
	
	        // Once everything is resolved, we are ready to perform the actual transition
	        // and return a promise for the new state. We also keep track of what the
	        // current promise is, so that we can detect overlapping transitions and
	        // keep only the outcome of the last transition.
	        var transition = $state.transition = resolved.then(function () {
	          var l, entering, exiting;
	
	          if ($state.transition !== transition) {
	            $rootScope.$broadcast('$stateChangeCancel', to.self, toParams, from.self, fromParams);
	            return TransitionSuperseded;
	          }
	
	          // Exit 'from' states not kept
	          for (l = fromPath.length - 1; l >= keep; l--) {
	            exiting = fromPath[l];
	            if (exiting.self.onExit) {
	              $injector.invoke(exiting.self.onExit, exiting.self, exiting.locals.globals);
	            }
	            exiting.locals = null;
	          }
	
	          // Enter 'to' states not kept
	          for (l = keep; l < toPath.length; l++) {
	            entering = toPath[l];
	            entering.locals = toLocals[l];
	            if (entering.self.onEnter) {
	              $injector.invoke(entering.self.onEnter, entering.self, entering.locals.globals);
	            }
	          }
	
	          // Run it again, to catch any transitions in callbacks
	          if ($state.transition !== transition) {
	            $rootScope.$broadcast('$stateChangeCancel', to.self, toParams, from.self, fromParams);
	            return TransitionSuperseded;
	          }
	
	          // Update globals in $state
	          $state.$current = to;
	          $state.current = to.self;
	          $state.params = toParams;
	          copy($state.params, $stateParams);
	          $state.transition = null;
	
	          if (options.location && to.navigable) {
	            $urlRouter.push(to.navigable.url, to.navigable.locals.globals.$stateParams, {
	              $$avoidResync: true, replace: options.location === 'replace'
	            });
	          }
	
	          if (options.notify) {
	            /**
	             * @ngdoc event
	             * @name ui.router.state.$state#$stateChangeSuccess
	             * @eventOf ui.router.state.$state
	             * @eventType broadcast on root scope
	             * @description
	             * Fired once the state transition is **complete**.
	             *
	             * @param {Object} event Event object.
	             * @param {State} toState The state being transitioned to.
	             * @param {Object} toParams The params supplied to the `toState`.
	             * @param {State} fromState The current state, pre-transition.
	             * @param {Object} fromParams The params supplied to the `fromState`.
	             */
	            $rootScope.$broadcast('$stateChangeSuccess', to.self, toParams, from.self, fromParams);
	          }
	          $urlRouter.update(true);
	
	          return $state.current;
	        }).then(null, function (error) {
	          // propagate TransitionSuperseded error without emitting $stateChangeCancel
	          // as it was already emitted in the success handler above
	          if (error === TransitionSupersededError) return TransitionSuperseded;
	
	          if ($state.transition !== transition) {
	            $rootScope.$broadcast('$stateChangeCancel', to.self, toParams, from.self, fromParams);
	            return TransitionSuperseded;
	          }
	
	          $state.transition = null;
	          /**
	           * @ngdoc event
	           * @name ui.router.state.$state#$stateChangeError
	           * @eventOf ui.router.state.$state
	           * @eventType broadcast on root scope
	           * @description
	           * Fired when an **error occurs** during transition. It's important to note that if you
	           * have any errors in your resolve functions (javascript errors, non-existent services, etc)
	           * they will not throw traditionally. You must listen for this $stateChangeError event to
	           * catch **ALL** errors.
	           *
	           * @param {Object} event Event object.
	           * @param {State} toState The state being transitioned to.
	           * @param {Object} toParams The params supplied to the `toState`.
	           * @param {State} fromState The current state, pre-transition.
	           * @param {Object} fromParams The params supplied to the `fromState`.
	           * @param {Error} error The resolve error object.
	           */
	          evt = $rootScope.$broadcast('$stateChangeError', to.self, toParams, from.self, fromParams, error);
	
	          if (!evt.defaultPrevented) {
	            $urlRouter.update();
	          }
	
	          return $q.reject(error);
	        });
	
	        silenceUncaughtInPromise(transition);
	        return transition;
	      };
	
	      /**
	       * @ngdoc function
	       * @name ui.router.state.$state#is
	       * @methodOf ui.router.state.$state
	       *
	       * @description
	       * Similar to {@link ui.router.state.$state#methods_includes $state.includes},
	       * but only checks for the full state name. If params is supplied then it will be
	       * tested for strict equality against the current active params object, so all params
	       * must match with none missing and no extras.
	       *
	       * @example
	       * <pre>
	       * $state.$current.name = 'contacts.details.item';
	       *
	       * // absolute name
	       * $state.is('contact.details.item'); // returns true
	       * $state.is(contactDetailItemStateObject); // returns true
	       *
	       * // relative name (. and ^), typically from a template
	       * // E.g. from the 'contacts.details' template
	       * <div ng-class="{highlighted: $state.is('.item')}">Item</div>
	       * </pre>
	       *
	       * @param {string|object} stateOrName The state name (absolute or relative) or state object you'd like to check.
	       * @param {object=} params A param object, e.g. `{sectionId: section.id}`, that you'd like
	       * to test against the current active state.
	       * @param {object=} options An options object.  The options are:
	       *
	       * - **`relative`** - {string|object} -  If `stateOrName` is a relative state name and `options.relative` is set, .is will
	       * test relative to `options.relative` state (or name).
	       *
	       * @returns {boolean} Returns true if it is the state.
	       */
	      $state.is = function is(stateOrName, params, options) {
	        options = extend({ relative: $state.$current }, options || {});
	        var state = findState(stateOrName, options.relative);
	
	        if (!isDefined(state)) {
	          return undefined;
	        }
	        if ($state.$current !== state) {
	          return false;
	        }
	
	        return !params || objectKeys(params).reduce(function (acc, key) {
	          var paramDef = state.params[key];
	          return acc && !paramDef || paramDef.type.equals($stateParams[key], params[key]);
	        }, true);
	      };
	
	      /**
	       * @ngdoc function
	       * @name ui.router.state.$state#includes
	       * @methodOf ui.router.state.$state
	       *
	       * @description
	       * A method to determine if the current active state is equal to or is the child of the
	       * state stateName. If any params are passed then they will be tested for a match as well.
	       * Not all the parameters need to be passed, just the ones you'd like to test for equality.
	       *
	       * @example
	       * Partial and relative names
	       * <pre>
	       * $state.$current.name = 'contacts.details.item';
	       *
	       * // Using partial names
	       * $state.includes("contacts"); // returns true
	       * $state.includes("contacts.details"); // returns true
	       * $state.includes("contacts.details.item"); // returns true
	       * $state.includes("contacts.list"); // returns false
	       * $state.includes("about"); // returns false
	       *
	       * // Using relative names (. and ^), typically from a template
	       * // E.g. from the 'contacts.details' template
	       * <div ng-class="{highlighted: $state.includes('.item')}">Item</div>
	       * </pre>
	       *
	       * Basic globbing patterns
	       * <pre>
	       * $state.$current.name = 'contacts.details.item.url';
	       *
	       * $state.includes("*.details.*.*"); // returns true
	       * $state.includes("*.details.**"); // returns true
	       * $state.includes("**.item.**"); // returns true
	       * $state.includes("*.details.item.url"); // returns true
	       * $state.includes("*.details.*.url"); // returns true
	       * $state.includes("*.details.*"); // returns false
	       * $state.includes("item.**"); // returns false
	       * </pre>
	       *
	       * @param {string} stateOrName A partial name, relative name, or glob pattern
	       * to be searched for within the current state name.
	       * @param {object=} params A param object, e.g. `{sectionId: section.id}`,
	       * that you'd like to test against the current active state.
	       * @param {object=} options An options object.  The options are:
	       *
	       * - **`relative`** - {string|object=} -  If `stateOrName` is a relative state reference and `options.relative` is set,
	       * .includes will test relative to `options.relative` state (or name).
	       *
	       * @returns {boolean} Returns true if it does include the state
	       */
	      $state.includes = function includes(stateOrName, params, options) {
	        options = extend({ relative: $state.$current }, options || {});
	        if (isString(stateOrName) && isGlob(stateOrName)) {
	          if (!doesStateMatchGlob(stateOrName)) {
	            return false;
	          }
	          stateOrName = $state.$current.name;
	        }
	
	        var state = findState(stateOrName, options.relative);
	        if (!isDefined(state)) {
	          return undefined;
	        }
	        if (!isDefined($state.$current.includes[state.name])) {
	          return false;
	        }
	        if (!params) {
	          return true;
	        }
	
	        var keys = objectKeys(params);
	        for (var i = 0; i < keys.length; i++) {
	          var key = keys[i],
	              paramDef = state.params[key];
	          if (paramDef && !paramDef.type.equals($stateParams[key], params[key])) {
	            return false;
	          }
	        }
	
	        return objectKeys(params).reduce(function (acc, key) {
	          var paramDef = state.params[key];
	          return acc && !paramDef || paramDef.type.equals($stateParams[key], params[key]);
	        }, true);
	      };
	
	      /**
	       * @ngdoc function
	       * @name ui.router.state.$state#href
	       * @methodOf ui.router.state.$state
	       *
	       * @description
	       * A url generation method that returns the compiled url for the given state populated with the given params.
	       *
	       * @example
	       * <pre>
	       * expect($state.href("about.person", { person: "bob" })).toEqual("/about/bob");
	       * </pre>
	       *
	       * @param {string|object} stateOrName The state name or state object you'd like to generate a url from.
	       * @param {object=} params An object of parameter values to fill the state's required parameters.
	       * @param {object=} options Options object. The options are:
	       *
	       * - **`lossy`** - {boolean=true} -  If true, and if there is no url associated with the state provided in the
	       *    first parameter, then the constructed href url will be built from the first navigable ancestor (aka
	       *    ancestor with a valid url).
	       * - **`inherit`** - {boolean=true}, If `true` will inherit url parameters from current url.
	       * - **`relative`** - {object=$state.$current}, When transitioning with relative path (e.g '^'), 
	       *    defines which state to be relative from.
	       * - **`absolute`** - {boolean=false},  If true will generate an absolute url, e.g. "http://www.example.com/fullurl".
	       * 
	       * @returns {string} compiled state url
	       */
	      $state.href = function href(stateOrName, params, options) {
	        options = extend({
	          lossy: true,
	          inherit: true,
	          absolute: false,
	          relative: $state.$current
	        }, options || {});
	
	        var state = findState(stateOrName, options.relative);
	
	        if (!isDefined(state)) return null;
	        if (options.inherit) params = inheritParams($stateParams, params || {}, $state.$current, state);
	
	        var nav = state && options.lossy ? state.navigable : state;
	
	        if (!nav || nav.url === undefined || nav.url === null) {
	          return null;
	        }
	        return $urlRouter.href(nav.url, filterByKeys(state.params.$$keys().concat('#'), params || {}), {
	          absolute: options.absolute
	        });
	      };
	
	      /**
	       * @ngdoc function
	       * @name ui.router.state.$state#get
	       * @methodOf ui.router.state.$state
	       *
	       * @description
	       * Returns the state configuration object for any specific state or all states.
	       *
	       * @param {string|object=} stateOrName (absolute or relative) If provided, will only get the config for
	       * the requested state. If not provided, returns an array of ALL state configs.
	       * @param {string|object=} context When stateOrName is a relative state reference, the state will be retrieved relative to context.
	       * @returns {Object|Array} State configuration object or array of all objects.
	       */
	      $state.get = function (stateOrName, context) {
	        if (arguments.length === 0) return map(objectKeys(states), function (name) {
	          return states[name].self;
	        });
	        var state = findState(stateOrName, context || $state.$current);
	        return state && state.self ? state.self : null;
	      };
	
	      function resolveState(state, params, paramsAreFiltered, inherited, dst, options) {
	        // Make a restricted $stateParams with only the parameters that apply to this state if
	        // necessary. In addition to being available to the controller and onEnter/onExit callbacks,
	        // we also need $stateParams to be available for any $injector calls we make during the
	        // dependency resolution process.
	        var $stateParams = paramsAreFiltered ? params : filterByKeys(state.params.$$keys(), params);
	        var locals = { $stateParams: $stateParams };
	
	        // Resolve 'global' dependencies for the state, i.e. those not specific to a view.
	        // We're also including $stateParams in this; that way the parameters are restricted
	        // to the set that should be visible to the state, and are independent of when we update
	        // the global $state and $stateParams values.
	        dst.resolve = $resolve.resolve(state.resolve, locals, dst.resolve, state);
	        var promises = [dst.resolve.then(function (globals) {
	          dst.globals = globals;
	        })];
	        if (inherited) promises.push(inherited);
	
	        function resolveViews() {
	          var viewsPromises = [];
	
	          // Resolve template and dependencies for all views.
	          forEach(state.views, function (view, name) {
	            var injectables = view.resolve && view.resolve !== state.resolve ? view.resolve : {};
	            injectables.$template = [function () {
	              return $view.load(name, { view: view, locals: dst.globals, params: $stateParams, notify: options.notify }) || '';
	            }];
	
	            viewsPromises.push($resolve.resolve(injectables, dst.globals, dst.resolve, state).then(function (result) {
	              // References to the controller (only instantiated at link time)
	              if (isFunction(view.controllerProvider) || isArray(view.controllerProvider)) {
	                var injectLocals = angular.extend({}, injectables, dst.globals);
	                result.$$controller = $injector.invoke(view.controllerProvider, null, injectLocals);
	              } else {
	                result.$$controller = view.controller;
	              }
	              // Provide access to the state itself for internal use
	              result.$$state = state;
	              result.$$controllerAs = view.controllerAs;
	              result.$$resolveAs = view.resolveAs;
	              dst[name] = result;
	            }));
	          });
	
	          return $q.all(viewsPromises).then(function () {
	            return dst.globals;
	          });
	        }
	
	        // Wait for all the promises and then return the activation object
	        return $q.all(promises).then(resolveViews).then(function (values) {
	          return dst;
	        });
	      }
	
	      return $state;
	    }
	
	    function shouldSkipReload(to, toParams, from, fromParams, locals, options) {
	      // Return true if there are no differences in non-search (path/object) params, false if there are differences
	      function nonSearchParamsEqual(fromAndToState, fromParams, toParams) {
	        // Identify whether all the parameters that differ between `fromParams` and `toParams` were search params.
	        function notSearchParam(key) {
	          return fromAndToState.params[key].location != "search";
	        }
	        var nonQueryParamKeys = fromAndToState.params.$$keys().filter(notSearchParam);
	        var nonQueryParams = pick.apply({}, [fromAndToState.params].concat(nonQueryParamKeys));
	        var nonQueryParamSet = new $$UMFP.ParamSet(nonQueryParams);
	        return nonQueryParamSet.$$equals(fromParams, toParams);
	      }
	
	      // If reload was not explicitly requested
	      // and we're transitioning to the same state we're already in
	      // and    the locals didn't change
	      //     or they changed in a way that doesn't merit reloading
	      //        (reloadOnParams:false, or reloadOnSearch.false and only search params changed)
	      // Then return true.
	      if (!options.reload && to === from && (locals === from.locals || to.self.reloadOnSearch === false && nonSearchParamsEqual(from, fromParams, toParams))) {
	        return true;
	      }
	    }
	  }
	
	  angular.module('ui.router.state').factory('$stateParams', function () {
	    return {};
	  }).constant("$state.runtime", { autoinject: true }).provider('$state', $StateProvider)
	  // Inject $state to initialize when entering runtime. #2574
	  .run(['$injector', function ($injector) {
	    // Allow tests (stateSpec.js) to turn this off by defining this constant
	    if ($injector.get("$state.runtime").autoinject) {
	      $injector.get('$state');
	    }
	  }]);
	
	  $ViewProvider.$inject = [];
	  function $ViewProvider() {
	
	    this.$get = $get;
	    /**
	     * @ngdoc object
	     * @name ui.router.state.$view
	     *
	     * @requires ui.router.util.$templateFactory
	     * @requires $rootScope
	     *
	     * @description
	     *
	     */
	    $get.$inject = ['$rootScope', '$templateFactory'];
	    function $get($rootScope, $templateFactory) {
	      return {
	        // $view.load('full.viewName', { template: ..., controller: ..., resolve: ..., async: false, params: ... })
	        /**
	         * @ngdoc function
	         * @name ui.router.state.$view#load
	         * @methodOf ui.router.state.$view
	         *
	         * @description
	         *
	         * @param {string} name name
	         * @param {object} options option object.
	         */
	        load: function load(name, options) {
	          var result,
	              defaults = {
	            template: null, controller: null, view: null, locals: null, notify: true, async: true, params: {}
	          };
	          options = extend(defaults, options);
	
	          if (options.view) {
	            result = $templateFactory.fromConfig(options.view, options.params, options.locals);
	          }
	          return result;
	        }
	      };
	    }
	  }
	
	  angular.module('ui.router.state').provider('$view', $ViewProvider);
	
	  /**
	   * @ngdoc object
	   * @name ui.router.state.$uiViewScrollProvider
	   *
	   * @description
	   * Provider that returns the {@link ui.router.state.$uiViewScroll} service function.
	   */
	  function $ViewScrollProvider() {
	
	    var useAnchorScroll = false;
	
	    /**
	     * @ngdoc function
	     * @name ui.router.state.$uiViewScrollProvider#useAnchorScroll
	     * @methodOf ui.router.state.$uiViewScrollProvider
	     *
	     * @description
	     * Reverts back to using the core [`$anchorScroll`](http://docs.angularjs.org/api/ng.$anchorScroll) service for
	     * scrolling based on the url anchor.
	     */
	    this.useAnchorScroll = function () {
	      useAnchorScroll = true;
	    };
	
	    /**
	     * @ngdoc object
	     * @name ui.router.state.$uiViewScroll
	     *
	     * @requires $anchorScroll
	     * @requires $timeout
	     *
	     * @description
	     * When called with a jqLite element, it scrolls the element into view (after a
	     * `$timeout` so the DOM has time to refresh).
	     *
	     * If you prefer to rely on `$anchorScroll` to scroll the view to the anchor,
	     * this can be enabled by calling {@link ui.router.state.$uiViewScrollProvider#methods_useAnchorScroll `$uiViewScrollProvider.useAnchorScroll()`}.
	     */
	    this.$get = ['$anchorScroll', '$timeout', function ($anchorScroll, $timeout) {
	      if (useAnchorScroll) {
	        return $anchorScroll;
	      }
	
	      return function ($element) {
	        return $timeout(function () {
	          $element[0].scrollIntoView();
	        }, 0, false);
	      };
	    }];
	  }
	
	  angular.module('ui.router.state').provider('$uiViewScroll', $ViewScrollProvider);
	
	  /**
	   * @ngdoc directive
	   * @name ui.router.state.directive:ui-view
	   *
	   * @requires ui.router.state.$state
	   * @requires $compile
	   * @requires $controller
	   * @requires $injector
	   * @requires ui.router.state.$uiViewScroll
	   * @requires $document
	   *
	   * @restrict ECA
	   *
	   * @description
	   * The ui-view directive tells $state where to place your templates.
	   *
	   * @param {string=} name A view name. The name should be unique amongst the other views in the
	   * same state. You can have views of the same name that live in different states.
	   *
	   * @param {string=} autoscroll It allows you to set the scroll behavior of the browser window
	   * when a view is populated. By default, $anchorScroll is overridden by ui-router's custom scroll
	   * service, {@link ui.router.state.$uiViewScroll}. This custom service let's you
	   * scroll ui-view elements into view when they are populated during a state activation.
	   *
	   * *Note: To revert back to old [`$anchorScroll`](http://docs.angularjs.org/api/ng.$anchorScroll)
	   * functionality, call `$uiViewScrollProvider.useAnchorScroll()`.*
	   *
	   * @param {string=} onload Expression to evaluate whenever the view updates.
	   *
	   * @example
	   * A view can be unnamed or named.
	   * <pre>
	   * <!-- Unnamed -->
	   * <div ui-view></div>
	   *
	   * <!-- Named -->
	   * <div ui-view="viewName"></div>
	   * </pre>
	   *
	   * You can only have one unnamed view within any template (or root html). If you are only using a
	   * single view and it is unnamed then you can populate it like so:
	   * <pre>
	   * <div ui-view></div>
	   * $stateProvider.state("home", {
	   *   template: "<h1>HELLO!</h1>"
	   * })
	   * </pre>
	   *
	   * The above is a convenient shortcut equivalent to specifying your view explicitly with the {@link ui.router.state.$stateProvider#methods_state `views`}
	   * config property, by name, in this case an empty name:
	   * <pre>
	   * $stateProvider.state("home", {
	   *   views: {
	   *     "": {
	   *       template: "<h1>HELLO!</h1>"
	   *     }
	   *   }    
	   * })
	   * </pre>
	   *
	   * But typically you'll only use the views property if you name your view or have more than one view
	   * in the same template. There's not really a compelling reason to name a view if its the only one,
	   * but you could if you wanted, like so:
	   * <pre>
	   * <div ui-view="main"></div>
	   * </pre>
	   * <pre>
	   * $stateProvider.state("home", {
	   *   views: {
	   *     "main": {
	   *       template: "<h1>HELLO!</h1>"
	   *     }
	   *   }    
	   * })
	   * </pre>
	   *
	   * Really though, you'll use views to set up multiple views:
	   * <pre>
	   * <div ui-view></div>
	   * <div ui-view="chart"></div>
	   * <div ui-view="data"></div>
	   * </pre>
	   *
	   * <pre>
	   * $stateProvider.state("home", {
	   *   views: {
	   *     "": {
	   *       template: "<h1>HELLO!</h1>"
	   *     },
	   *     "chart": {
	   *       template: "<chart_thing/>"
	   *     },
	   *     "data": {
	   *       template: "<data_thing/>"
	   *     }
	   *   }    
	   * })
	   * </pre>
	   *
	   * Examples for `autoscroll`:
	   *
	   * <pre>
	   * <!-- If autoscroll present with no expression,
	   *      then scroll ui-view into view -->
	   * <ui-view autoscroll/>
	   *
	   * <!-- If autoscroll present with valid expression,
	   *      then scroll ui-view into view if expression evaluates to true -->
	   * <ui-view autoscroll='true'/>
	   * <ui-view autoscroll='false'/>
	   * <ui-view autoscroll='scopeVariable'/>
	   * </pre>
	   *
	   * Resolve data:
	   *
	   * The resolved data from the state's `resolve` block is placed on the scope as `$resolve` (this
	   * can be customized using [[ViewDeclaration.resolveAs]]).  This can be then accessed from the template.
	   *
	   * Note that when `controllerAs` is being used, `$resolve` is set on the controller instance *after* the
	   * controller is instantiated.  The `$onInit()` hook can be used to perform initialization code which
	   * depends on `$resolve` data.
	   *
	   * Example usage of $resolve in a view template
	   * <pre>
	   * $stateProvider.state('home', {
	   *   template: '<my-component user="$resolve.user"></my-component>',
	   *   resolve: {
	   *     user: function(UserService) { return UserService.fetchUser(); }
	   *   }
	   * });
	   * </pre>
	   */
	  $ViewDirective.$inject = ['$state', '$injector', '$uiViewScroll', '$interpolate', '$q'];
	  function $ViewDirective($state, $injector, $uiViewScroll, $interpolate, $q) {
	
	    function getService() {
	      return $injector.has ? function (service) {
	        return $injector.has(service) ? $injector.get(service) : null;
	      } : function (service) {
	        try {
	          return $injector.get(service);
	        } catch (e) {
	          return null;
	        }
	      };
	    }
	
	    var service = getService(),
	        $animator = service('$animator'),
	        $animate = service('$animate');
	
	    // Returns a set of DOM manipulation functions based on which Angular version
	    // it should use
	    function getRenderer(attrs, scope) {
	      var statics = function statics() {
	        return {
	          enter: function enter(element, target, cb) {
	            target.after(element);cb();
	          },
	          leave: function leave(element, cb) {
	            element.remove();cb();
	          }
	        };
	      };
	
	      if ($animate) {
	        return {
	          enter: function enter(element, target, cb) {
	            if (angular.version.minor > 2) {
	              $animate.enter(element, null, target).then(cb);
	            } else {
	              $animate.enter(element, null, target, cb);
	            }
	          },
	          leave: function leave(element, cb) {
	            if (angular.version.minor > 2) {
	              $animate.leave(element).then(cb);
	            } else {
	              $animate.leave(element, cb);
	            }
	          }
	        };
	      }
	
	      if ($animator) {
	        var animate = $animator && $animator(scope, attrs);
	
	        return {
	          enter: function enter(element, target, cb) {
	            animate.enter(element, null, target);cb();
	          },
	          leave: function leave(element, cb) {
	            animate.leave(element);cb();
	          }
	        };
	      }
	
	      return statics();
	    }
	
	    var directive = {
	      restrict: 'ECA',
	      terminal: true,
	      priority: 400,
	      transclude: 'element',
	      compile: function compile(tElement, tAttrs, $transclude) {
	        return function (scope, $element, attrs) {
	          var previousEl,
	              currentEl,
	              currentScope,
	              latestLocals,
	              onloadExp = attrs.onload || '',
	              autoScrollExp = attrs.autoscroll,
	              renderer = getRenderer(attrs, scope),
	              inherited = $element.inheritedData('$uiView');
	
	          scope.$on('$stateChangeSuccess', function () {
	            updateView(false);
	          });
	
	          updateView(true);
	
	          function cleanupLastView() {
	            if (previousEl) {
	              previousEl.remove();
	              previousEl = null;
	            }
	
	            if (currentScope) {
	              currentScope.$destroy();
	              currentScope = null;
	            }
	
	            if (currentEl) {
	              var $uiViewData = currentEl.data('$uiViewAnim');
	              renderer.leave(currentEl, function () {
	                $uiViewData.$$animLeave.resolve();
	                previousEl = null;
	              });
	
	              previousEl = currentEl;
	              currentEl = null;
	            }
	          }
	
	          function updateView(firstTime) {
	            var newScope,
	                name = getUiViewName(scope, attrs, $element, $interpolate),
	                previousLocals = name && $state.$current && $state.$current.locals[name];
	
	            if (!firstTime && previousLocals === latestLocals) return; // nothing to do
	            newScope = scope.$new();
	            latestLocals = $state.$current.locals[name];
	
	            /**
	             * @ngdoc event
	             * @name ui.router.state.directive:ui-view#$viewContentLoading
	             * @eventOf ui.router.state.directive:ui-view
	             * @eventType emits on ui-view directive scope
	             * @description
	             *
	             * Fired once the view **begins loading**, *before* the DOM is rendered.
	             *
	             * @param {Object} event Event object.
	             * @param {string} viewName Name of the view.
	             */
	            newScope.$emit('$viewContentLoading', name);
	
	            var clone = $transclude(newScope, function (clone) {
	              var animEnter = $q.defer(),
	                  animLeave = $q.defer();
	              var viewAnimData = {
	                $animEnter: animEnter.promise,
	                $animLeave: animLeave.promise,
	                $$animLeave: animLeave
	              };
	
	              clone.data('$uiViewAnim', viewAnimData);
	              renderer.enter(clone, $element, function onUiViewEnter() {
	                animEnter.resolve();
	                if (currentScope) {
	                  currentScope.$emit('$viewContentAnimationEnded');
	                }
	
	                if (angular.isDefined(autoScrollExp) && !autoScrollExp || scope.$eval(autoScrollExp)) {
	                  $uiViewScroll(clone);
	                }
	              });
	              cleanupLastView();
	            });
	
	            currentEl = clone;
	            currentScope = newScope;
	            /**
	             * @ngdoc event
	             * @name ui.router.state.directive:ui-view#$viewContentLoaded
	             * @eventOf ui.router.state.directive:ui-view
	             * @eventType emits on ui-view directive scope
	             * @description
	             * Fired once the view is **loaded**, *after* the DOM is rendered.
	             *
	             * @param {Object} event Event object.
	             * @param {string} viewName Name of the view.
	             */
	            currentScope.$emit('$viewContentLoaded', name);
	            currentScope.$eval(onloadExp);
	          }
	        };
	      }
	    };
	
	    return directive;
	  }
	
	  $ViewDirectiveFill.$inject = ['$compile', '$controller', '$state', '$interpolate'];
	  function $ViewDirectiveFill($compile, $controller, $state, $interpolate) {
	    return {
	      restrict: 'ECA',
	      priority: -400,
	      compile: function compile(tElement) {
	        var initial = tElement.html();
	        if (tElement.empty) {
	          tElement.empty();
	        } else {
	          // ng 1.0.0 doesn't have empty(), which cleans up data and handlers
	          tElement[0].innerHTML = null;
	        }
	
	        return function (scope, $element, attrs) {
	          var current = $state.$current,
	              name = getUiViewName(scope, attrs, $element, $interpolate),
	              locals = current && current.locals[name];
	
	          if (!locals) {
	            $element.html(initial);
	            $compile($element.contents())(scope);
	            return;
	          }
	
	          $element.data('$uiView', { name: name, state: locals.$$state });
	          $element.html(locals.$template ? locals.$template : initial);
	
	          var resolveData = angular.extend({}, locals);
	          scope[locals.$$resolveAs] = resolveData;
	
	          var link = $compile($element.contents());
	
	          if (locals.$$controller) {
	            locals.$scope = scope;
	            locals.$element = $element;
	            var controller = $controller(locals.$$controller, locals);
	            if (locals.$$controllerAs) {
	              scope[locals.$$controllerAs] = controller;
	              scope[locals.$$controllerAs][locals.$$resolveAs] = resolveData;
	            }
	            if (isFunction(controller.$onInit)) controller.$onInit();
	            $element.data('$ngControllerController', controller);
	            $element.children().data('$ngControllerController', controller);
	          }
	
	          link(scope);
	        };
	      }
	    };
	  }
	
	  /**
	   * Shared ui-view code for both directives:
	   * Given scope, element, and its attributes, return the view's name
	   */
	  function getUiViewName(scope, attrs, element, $interpolate) {
	    var name = $interpolate(attrs.uiView || attrs.name || '')(scope);
	    var uiViewCreatedBy = element.inheritedData('$uiView');
	    return name.indexOf('@') >= 0 ? name : name + '@' + (uiViewCreatedBy ? uiViewCreatedBy.state.name : '');
	  }
	
	  angular.module('ui.router.state').directive('uiView', $ViewDirective);
	  angular.module('ui.router.state').directive('uiView', $ViewDirectiveFill);
	
	  function parseStateRef(ref, current) {
	    var preparsed = ref.match(/^\s*({[^}]*})\s*$/),
	        parsed;
	    if (preparsed) ref = current + '(' + preparsed[1] + ')';
	    parsed = ref.replace(/\n/g, " ").match(/^([^(]+?)\s*(\((.*)\))?$/);
	    if (!parsed || parsed.length !== 4) throw new Error("Invalid state ref '" + ref + "'");
	    return { state: parsed[1], paramExpr: parsed[3] || null };
	  }
	
	  function stateContext(el) {
	    var stateData = el.parent().inheritedData('$uiView');
	
	    if (stateData && stateData.state && stateData.state.name) {
	      return stateData.state;
	    }
	  }
	
	  function getTypeInfo(el) {
	    // SVGAElement does not use the href attribute, but rather the 'xlinkHref' attribute.
	    var isSvg = Object.prototype.toString.call(el.prop('href')) === '[object SVGAnimatedString]';
	    var isForm = el[0].nodeName === "FORM";
	
	    return {
	      attr: isForm ? "action" : isSvg ? 'xlink:href' : 'href',
	      isAnchor: el.prop("tagName").toUpperCase() === "A",
	      clickable: !isForm
	    };
	  }
	
	  function clickHook(el, $state, $timeout, type, current) {
	    return function (e) {
	      var button = e.which || e.button,
	          target = current();
	
	      if (!(button > 1 || e.ctrlKey || e.metaKey || e.shiftKey || el.attr('target'))) {
	        // HACK: This is to allow ng-clicks to be processed before the transition is initiated:
	        var transition = $timeout(function () {
	          $state.go(target.state, target.params, target.options);
	        });
	        e.preventDefault();
	
	        // if the state has no URL, ignore one preventDefault from the <a> directive.
	        var ignorePreventDefaultCount = type.isAnchor && !target.href ? 1 : 0;
	
	        e.preventDefault = function () {
	          if (ignorePreventDefaultCount-- <= 0) $timeout.cancel(transition);
	        };
	      }
	    };
	  }
	
	  function defaultOpts(el, $state) {
	    return { relative: stateContext(el) || $state.$current, inherit: true };
	  }
	
	  /**
	   * @ngdoc directive
	   * @name ui.router.state.directive:ui-sref
	   *
	   * @requires ui.router.state.$state
	   * @requires $timeout
	   *
	   * @restrict A
	   *
	   * @description
	   * A directive that binds a link (`<a>` tag) to a state. If the state has an associated
	   * URL, the directive will automatically generate & update the `href` attribute via
	   * the {@link ui.router.state.$state#methods_href $state.href()} method. Clicking
	   * the link will trigger a state transition with optional parameters.
	   *
	   * Also middle-clicking, right-clicking, and ctrl-clicking on the link will be
	   * handled natively by the browser.
	   *
	   * You can also use relative state paths within ui-sref, just like the relative
	   * paths passed to `$state.go()`. You just need to be aware that the path is relative
	   * to the state that the link lives in, in other words the state that loaded the
	   * template containing the link.
	   *
	   * You can specify options to pass to {@link ui.router.state.$state#methods_go $state.go()}
	   * using the `ui-sref-opts` attribute. Options are restricted to `location`, `inherit`,
	   * and `reload`.
	   *
	   * @example
	   * Here's an example of how you'd use ui-sref and how it would compile. If you have the
	   * following template:
	   * <pre>
	   * <a ui-sref="home">Home</a> | <a ui-sref="about">About</a> | <a ui-sref="{page: 2}">Next page</a>
	   *
	   * <ul>
	   *     <li ng-repeat="contact in contacts">
	   *         <a ui-sref="contacts.detail({ id: contact.id })">{{ contact.name }}</a>
	   *     </li>
	   * </ul>
	   * </pre>
	   *
	   * Then the compiled html would be (assuming Html5Mode is off and current state is contacts):
	   * <pre>
	   * <a href="#/home" ui-sref="home">Home</a> | <a href="#/about" ui-sref="about">About</a> | <a href="#/contacts?page=2" ui-sref="{page: 2}">Next page</a>
	   *
	   * <ul>
	   *     <li ng-repeat="contact in contacts">
	   *         <a href="#/contacts/1" ui-sref="contacts.detail({ id: contact.id })">Joe</a>
	   *     </li>
	   *     <li ng-repeat="contact in contacts">
	   *         <a href="#/contacts/2" ui-sref="contacts.detail({ id: contact.id })">Alice</a>
	   *     </li>
	   *     <li ng-repeat="contact in contacts">
	   *         <a href="#/contacts/3" ui-sref="contacts.detail({ id: contact.id })">Bob</a>
	   *     </li>
	   * </ul>
	   *
	   * <a ui-sref="home" ui-sref-opts="{reload: true}">Home</a>
	   * </pre>
	   *
	   * @param {string} ui-sref 'stateName' can be any valid absolute or relative state
	   * @param {Object} ui-sref-opts options to pass to {@link ui.router.state.$state#methods_go $state.go()}
	   */
	  $StateRefDirective.$inject = ['$state', '$timeout'];
	  function $StateRefDirective($state, $timeout) {
	    return {
	      restrict: 'A',
	      require: ['?^uiSrefActive', '?^uiSrefActiveEq'],
	      link: function link(scope, element, attrs, uiSrefActive) {
	        var ref = parseStateRef(attrs.uiSref, $state.current.name);
	        var def = { state: ref.state, href: null, params: null };
	        var type = getTypeInfo(element);
	        var active = uiSrefActive[1] || uiSrefActive[0];
	        var unlinkInfoFn = null;
	        var hookFn;
	
	        def.options = extend(defaultOpts(element, $state), attrs.uiSrefOpts ? scope.$eval(attrs.uiSrefOpts) : {});
	
	        var update = function update(val) {
	          if (val) def.params = angular.copy(val);
	          def.href = $state.href(ref.state, def.params, def.options);
	
	          if (unlinkInfoFn) unlinkInfoFn();
	          if (active) unlinkInfoFn = active.$$addStateInfo(ref.state, def.params);
	          if (def.href !== null) attrs.$set(type.attr, def.href);
	        };
	
	        if (ref.paramExpr) {
	          scope.$watch(ref.paramExpr, function (val) {
	            if (val !== def.params) update(val);
	          }, true);
	          def.params = angular.copy(scope.$eval(ref.paramExpr));
	        }
	        update();
	
	        if (!type.clickable) return;
	        hookFn = clickHook(element, $state, $timeout, type, function () {
	          return def;
	        });
	        element[element.on ? 'on' : 'bind']("click", hookFn);
	        scope.$on('$destroy', function () {
	          element[element.off ? 'off' : 'unbind']("click", hookFn);
	        });
	      }
	    };
	  }
	
	  /**
	   * @ngdoc directive
	   * @name ui.router.state.directive:ui-state
	   *
	   * @requires ui.router.state.uiSref
	   *
	   * @restrict A
	   *
	   * @description
	   * Much like ui-sref, but will accept named $scope properties to evaluate for a state definition,
	   * params and override options.
	   *
	   * @param {string} ui-state 'stateName' can be any valid absolute or relative state
	   * @param {Object} ui-state-params params to pass to {@link ui.router.state.$state#methods_href $state.href()}
	   * @param {Object} ui-state-opts options to pass to {@link ui.router.state.$state#methods_go $state.go()}
	   */
	  $StateRefDynamicDirective.$inject = ['$state', '$timeout'];
	  function $StateRefDynamicDirective($state, $timeout) {
	    return {
	      restrict: 'A',
	      require: ['?^uiSrefActive', '?^uiSrefActiveEq'],
	      link: function link(scope, element, attrs, uiSrefActive) {
	        var type = getTypeInfo(element);
	        var active = uiSrefActive[1] || uiSrefActive[0];
	        var group = [attrs.uiState, attrs.uiStateParams || null, attrs.uiStateOpts || null];
	        var watch = '[' + group.map(function (val) {
	          return val || 'null';
	        }).join(', ') + ']';
	        var def = { state: null, params: null, options: null, href: null };
	        var unlinkInfoFn = null;
	        var hookFn;
	
	        function runStateRefLink(group) {
	          def.state = group[0];def.params = group[1];def.options = group[2];
	          def.href = $state.href(def.state, def.params, def.options);
	
	          if (unlinkInfoFn) unlinkInfoFn();
	          if (active) unlinkInfoFn = active.$$addStateInfo(def.state, def.params);
	          if (def.href) attrs.$set(type.attr, def.href);
	        }
	
	        scope.$watch(watch, runStateRefLink, true);
	        runStateRefLink(scope.$eval(watch));
	
	        if (!type.clickable) return;
	        hookFn = clickHook(element, $state, $timeout, type, function () {
	          return def;
	        });
	        element[element.on ? 'on' : 'bind']("click", hookFn);
	        scope.$on('$destroy', function () {
	          element[element.off ? 'off' : 'unbind']("click", hookFn);
	        });
	      }
	    };
	  }
	
	  /**
	   * @ngdoc directive
	   * @name ui.router.state.directive:ui-sref-active
	   *
	   * @requires ui.router.state.$state
	   * @requires ui.router.state.$stateParams
	   * @requires $interpolate
	   *
	   * @restrict A
	   *
	   * @description
	   * A directive working alongside ui-sref to add classes to an element when the
	   * related ui-sref directive's state is active, and removing them when it is inactive.
	   * The primary use-case is to simplify the special appearance of navigation menus
	   * relying on `ui-sref`, by having the "active" state's menu button appear different,
	   * distinguishing it from the inactive menu items.
	   *
	   * ui-sref-active can live on the same element as ui-sref or on a parent element. The first
	   * ui-sref-active found at the same level or above the ui-sref will be used.
	   *
	   * Will activate when the ui-sref's target state or any child state is active. If you
	   * need to activate only when the ui-sref target state is active and *not* any of
	   * it's children, then you will use
	   * {@link ui.router.state.directive:ui-sref-active-eq ui-sref-active-eq}
	   *
	   * @example
	   * Given the following template:
	   * <pre>
	   * <ul>
	   *   <li ui-sref-active="active" class="item">
	   *     <a href ui-sref="app.user({user: 'bilbobaggins'})">@bilbobaggins</a>
	   *   </li>
	   * </ul>
	   * </pre>
	   *
	   *
	   * When the app state is "app.user" (or any children states), and contains the state parameter "user" with value "bilbobaggins",
	   * the resulting HTML will appear as (note the 'active' class):
	   * <pre>
	   * <ul>
	   *   <li ui-sref-active="active" class="item active">
	   *     <a ui-sref="app.user({user: 'bilbobaggins'})" href="/users/bilbobaggins">@bilbobaggins</a>
	   *   </li>
	   * </ul>
	   * </pre>
	   *
	   * The class name is interpolated **once** during the directives link time (any further changes to the
	   * interpolated value are ignored).
	   *
	   * Multiple classes may be specified in a space-separated format:
	   * <pre>
	   * <ul>
	   *   <li ui-sref-active='class1 class2 class3'>
	   *     <a ui-sref="app.user">link</a>
	   *   </li>
	   * </ul>
	   * </pre>
	   *
	   * It is also possible to pass ui-sref-active an expression that evaluates
	   * to an object hash, whose keys represent active class names and whose
	   * values represent the respective state names/globs.
	   * ui-sref-active will match if the current active state **includes** any of
	   * the specified state names/globs, even the abstract ones.
	   *
	   * @Example
	   * Given the following template, with "admin" being an abstract state:
	   * <pre>
	   * <div ui-sref-active="{'active': 'admin.*'}">
	   *   <a ui-sref-active="active" ui-sref="admin.roles">Roles</a>
	   * </div>
	   * </pre>
	   *
	   * When the current state is "admin.roles" the "active" class will be applied
	   * to both the <div> and <a> elements. It is important to note that the state
	   * names/globs passed to ui-sref-active shadow the state provided by ui-sref.
	   */
	
	  /**
	   * @ngdoc directive
	   * @name ui.router.state.directive:ui-sref-active-eq
	   *
	   * @requires ui.router.state.$state
	   * @requires ui.router.state.$stateParams
	   * @requires $interpolate
	   *
	   * @restrict A
	   *
	   * @description
	   * The same as {@link ui.router.state.directive:ui-sref-active ui-sref-active} but will only activate
	   * when the exact target state used in the `ui-sref` is active; no child states.
	   *
	   */
	  $StateRefActiveDirective.$inject = ['$state', '$stateParams', '$interpolate'];
	  function $StateRefActiveDirective($state, $stateParams, $interpolate) {
	    return {
	      restrict: "A",
	      controller: ['$scope', '$element', '$attrs', '$timeout', function ($scope, $element, $attrs, $timeout) {
	        var states = [],
	            activeClasses = {},
	            activeEqClass,
	            uiSrefActive;
	
	        // There probably isn't much point in $observing this
	        // uiSrefActive and uiSrefActiveEq share the same directive object with some
	        // slight difference in logic routing
	        activeEqClass = $interpolate($attrs.uiSrefActiveEq || '', false)($scope);
	
	        try {
	          uiSrefActive = $scope.$eval($attrs.uiSrefActive);
	        } catch (e) {
	          // Do nothing. uiSrefActive is not a valid expression.
	          // Fall back to using $interpolate below
	        }
	        uiSrefActive = uiSrefActive || $interpolate($attrs.uiSrefActive || '', false)($scope);
	        if (isObject(uiSrefActive)) {
	          forEach(uiSrefActive, function (stateOrName, activeClass) {
	            if (isString(stateOrName)) {
	              var ref = parseStateRef(stateOrName, $state.current.name);
	              addState(ref.state, $scope.$eval(ref.paramExpr), activeClass);
	            }
	          });
	        }
	
	        // Allow uiSref to communicate with uiSrefActive[Equals]
	        this.$$addStateInfo = function (newState, newParams) {
	          // we already got an explicit state provided by ui-sref-active, so we
	          // shadow the one that comes from ui-sref
	          if (isObject(uiSrefActive) && states.length > 0) {
	            return;
	          }
	          var deregister = addState(newState, newParams, uiSrefActive);
	          update();
	          return deregister;
	        };
	
	        $scope.$on('$stateChangeSuccess', update);
	
	        function addState(stateName, stateParams, activeClass) {
	          var state = $state.get(stateName, stateContext($element));
	          var stateHash = createStateHash(stateName, stateParams);
	
	          var stateInfo = {
	            state: state || { name: stateName },
	            params: stateParams,
	            hash: stateHash
	          };
	
	          states.push(stateInfo);
	          activeClasses[stateHash] = activeClass;
	
	          return function removeState() {
	            var idx = states.indexOf(stateInfo);
	            if (idx !== -1) states.splice(idx, 1);
	          };
	        }
	
	        /**
	         * @param {string} state
	         * @param {Object|string} [params]
	         * @return {string}
	         */
	        function createStateHash(state, params) {
	          if (!isString(state)) {
	            throw new Error('state should be a string');
	          }
	          if (isObject(params)) {
	            return state + toJson(params);
	          }
	          params = $scope.$eval(params);
	          if (isObject(params)) {
	            return state + toJson(params);
	          }
	          return state;
	        }
	
	        // Update route state
	        function update() {
	          for (var i = 0; i < states.length; i++) {
	            if (anyMatch(states[i].state, states[i].params)) {
	              addClass($element, activeClasses[states[i].hash]);
	            } else {
	              removeClass($element, activeClasses[states[i].hash]);
	            }
	
	            if (exactMatch(states[i].state, states[i].params)) {
	              addClass($element, activeEqClass);
	            } else {
	              removeClass($element, activeEqClass);
	            }
	          }
	        }
	
	        function addClass(el, className) {
	          $timeout(function () {
	            el.addClass(className);
	          });
	        }
	        function removeClass(el, className) {
	          el.removeClass(className);
	        }
	        function anyMatch(state, params) {
	          return $state.includes(state.name, params);
	        }
	        function exactMatch(state, params) {
	          return $state.is(state.name, params);
	        }
	
	        update();
	      }]
	    };
	  }
	
	  angular.module('ui.router.state').directive('uiSref', $StateRefDirective).directive('uiSrefActive', $StateRefActiveDirective).directive('uiSrefActiveEq', $StateRefActiveDirective).directive('uiState', $StateRefDynamicDirective);
	
	  /**
	   * @ngdoc filter
	   * @name ui.router.state.filter:isState
	   *
	   * @requires ui.router.state.$state
	   *
	   * @description
	   * Translates to {@link ui.router.state.$state#methods_is $state.is("stateName")}.
	   */
	  $IsStateFilter.$inject = ['$state'];
	  function $IsStateFilter($state) {
	    var isFilter = function isFilter(state, params) {
	      return $state.is(state, params);
	    };
	    isFilter.$stateful = true;
	    return isFilter;
	  }
	
	  /**
	   * @ngdoc filter
	   * @name ui.router.state.filter:includedByState
	   *
	   * @requires ui.router.state.$state
	   *
	   * @description
	   * Translates to {@link ui.router.state.$state#methods_includes $state.includes('fullOrPartialStateName')}.
	   */
	  $IncludedByStateFilter.$inject = ['$state'];
	  function $IncludedByStateFilter($state) {
	    var includesFilter = function includesFilter(state, params, options) {
	      return $state.includes(state, params, options);
	    };
	    includesFilter.$stateful = true;
	    return includesFilter;
	  }
	
	  angular.module('ui.router.state').filter('isState', $IsStateFilter).filter('includedByState', $IncludedByStateFilter);
	})(window, window.angular);

/***/ }),
/* 28 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	exports.RoleTypeStrategy = new utility_ts_strategy_1.ConditionalStrategy({
	    advisor: function (state) { return state.includes('ap-advisor'); },
	    student: function (state) { return !state.includes('ap-advisor'); }
	});
	exports.APUserModeAPIStrategy = new utility_ts_strategy_1.StrategySafe({
	    advisor: {
	        AP_PLAN_API_URL: 'reg/advisorplan'
	    },
	    student: {
	        AP_PLAN_API_URL: 'reg/academicplan'
	    }
	});


/***/ }),
/* 29 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(932);
	module.exports = angular;

/***/ }),
/* 30 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var moment = __webpack_require__(2);
	var AppointmentInfoServant = /** @class */ (function () {
	    function AppointmentInfoServant() {
	    }
	    AppointmentInfoServant.prototype.generateCardInfo = function (appointment) {
	        var appointmentDateTime = moment.unix(appointment.start_timestamp);
	        var organizerNames = _4
	            .map(appointment.organizers, function (organizer) { return organizer.first_name + ' ' + organizer.last_name; })
	            .join(', ');
	        var serviceNames = this.generateWhy(appointment);
	        return {
	            month: appointmentDateTime.format('MMM'),
	            date: appointmentDateTime.format('DD'),
	            day: appointmentDateTime.format('ddd'),
	            appointmentType: appointment.appointment_type,
	            time: this._formatAppointmentTime(appointment),
	            organizer: organizerNames + this._noOfAttendees(appointment),
	            location: appointment.location.name,
	            service: serviceNames,
	            isCancelled: appointment.is_cancelled
	        };
	    };
	    AppointmentInfoServant.prototype._noOfAttendees = function (appointment) {
	        var noOfAttendees = _4.size(appointment.attendees) - 1;
	        return noOfAttendees > 0 ? " + " + noOfAttendees + " more" : '';
	    };
	    AppointmentInfoServant.prototype._formatAppointmentTime = function (appointment) {
	        var start_time = moment.unix(appointment.start_timestamp);
	        var end_time = moment.unix(appointment.end_timestamp);
	        if (start_time.format('a') === end_time.format('a')) {
	            return start_time.format('h:mm') + ' - ' + end_time.format('h:mm a');
	        }
	        return start_time.format('h:mm a') + ' - ' + end_time.format('h:mm a');
	    };
	    AppointmentInfoServant.prototype.generateAppointmentDetails = function (appointment, studentName) {
	        var organizerNames = _4
	            .map(appointment.organizers, function (organizer) { return organizer.first_name + ' ' + organizer.last_name; })
	            .join(', ');
	        var serviceNames = this.generateWhy(appointment);
	        var cancellationHourOffset = appointment.cancellation_lead_time_hours
	            ? appointment.cancellation_lead_time_hours
	            : 1;
	        var cancellationTimeDifference = moment.unix(appointment.start_timestamp).diff(moment(), 'seconds');
	        var isNoShow = moment.duration(cancellationTimeDifference, 'seconds').asHours() <= cancellationHourOffset;
	        if (cancellationHourOffset === -1) {
	            isNoShow = false;
	        }
	        var meetingURLOrPhone = _4.get(appointment, 'meeting_url_or_phone', '');
	        return {
	            when: moment.unix(appointment.start_timestamp).format('ddd, MMMM D YYYY, h:mm a') +
	                ' - ' +
	                moment.unix(appointment.end_timestamp).format('h:mm a'),
	            why: serviceNames,
	            where: appointment.location.name,
	            who: studentName + ' with ' + organizerNames + this._noOfAttendees(appointment),
	            type: appointment.appointment_type,
	            additional_details: appointment.additional_details,
	            meeting_url_or_phone: meetingURLOrPhone,
	            comments: appointment.comments,
	            isNoShow: isNoShow
	        };
	    };
	    AppointmentInfoServant.prototype.generateWhy = function (appointment) {
	        var service = _4.map(appointment.student_services, 'name').join(', ');
	        return appointment.course ? service + " " + appointment.course : service;
	    };
	    AppointmentInfoServant.prototype.generateActiveVsitCardInfo = function (activeVisit) {
	        return {
	            when: "Checked in on " + moment(activeVisit.check_in_time).format('MMM D, YYYY h:mm a'),
	            why: _.map(_.get(activeVisit, 'student_services')).join(', '),
	            where: activeVisit.location,
	            who: activeVisit.staff,
	            type: 'Drop in',
	            additional_details: '',
	            comments: '',
	            isNoShow: false,
	            meeting_url_or_phone: '',
	            can_checkin: false,
	            _canCheckout: activeVisit.can_checkout
	        };
	    };
	    AppointmentInfoServant.prototype.generateAppointmentRequestCardInfo = function (appointmentRequest) {
	        return {
	            when: "Schedule your appointment by " + moment(appointmentRequest.end_date).format('MMM D, YYYY'),
	            who: appointmentRequest.creator.first_name + ' ' + appointmentRequest.creator.last_name,
	            where: appointmentRequest.location.name,
	            why: appointmentRequest.student_service.name,
	            details: appointmentRequest.campaign_note
	        };
	    };
	    return AppointmentInfoServant;
	}());
	exports.AppointmentInfoServant = AppointmentInfoServant;


/***/ }),
/* 31 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	var _4 = __webpack_require__(1);
	var SectionStatusServant = /** @class */ (function () {
	    function SectionStatusServant() {
	    }
	    SectionStatusServant.sectionStatus = function (section) {
	        return section.status;
	    };
	    SectionStatusServant.hasStatus = function (section) {
	        return !_4.isUndefined(scheduled_section_status_enum_1.ScheduledSectionStatus[section.status]);
	    };
	    SectionStatusServant.isCompleted = function (section) {
	        return _4.isEqual(section.status, scheduled_section_status_enum_1.ScheduledSectionStatus.COMPLETED);
	    };
	    SectionStatusServant.isStatusCompleted = function (section) {
	        return _4.isEqual(section.status, scheduled_section_status_enum_1.ScheduledSectionStatus.COMPLETED);
	    };
	    SectionStatusServant.isStatusPending = function (section) {
	        return _4.isEqual(section.status, scheduled_section_status_enum_1.ScheduledSectionStatus.PENDING);
	    };
	    SectionStatusServant.isStatusFailed = function (section) {
	        return _4.isEqual(section.status, scheduled_section_status_enum_1.ScheduledSectionStatus.FAILED);
	    };
	    SectionStatusServant.isStatusFailedDrop = function (section) {
	        return _4.isEqual(section.status, scheduled_section_status_enum_1.ScheduledSectionStatus.DROPFAILED);
	    };
	    SectionStatusServant.isStatusRegistered = function (section) {
	        return _4.isEqual(section.status, scheduled_section_status_enum_1.ScheduledSectionStatus.REGISTERED);
	    };
	    SectionStatusServant.isStatusInProgress = function (section) {
	        return _4.isEqual(section.status, scheduled_section_status_enum_1.ScheduledSectionStatus.IN_PROGRESS);
	    };
	    SectionStatusServant.isRegisteredOrInprogress = function (section) {
	        return SectionStatusServant.isStatusInProgress(section) || SectionStatusServant.isStatusRegistered(section);
	    };
	    SectionStatusServant.isStatusWaitlisted = function (section) {
	        if (!section) {
	            return false;
	        }
	        var waitlistedSectionStatuses = scheduled_section_status_enum_1.ScheduledSectionStatus.getWaitlistedSectionStatuses();
	        return _4.includes(waitlistedSectionStatuses, section.status);
	    };
	    SectionStatusServant.isStatusWithdrawn = function (section) {
	        return _4.isEqual(section.status, scheduled_section_status_enum_1.ScheduledSectionStatus.WITHDRAWN);
	    };
	    SectionStatusServant.isStatusWaitlistFailed = function (section) {
	        return _4.isEqual(section.status, scheduled_section_status_enum_1.ScheduledSectionStatus.WAITLISTFAILED);
	    };
	    SectionStatusServant.isStatusWaitlistDropFailed = function (section) {
	        return _4.isEqual(section.status, scheduled_section_status_enum_1.ScheduledSectionStatus.WAITLISTDROPFAILED);
	    };
	    SectionStatusServant.isStatusUnscheduled = function (section) {
	        return _4.isEqual(section.status, scheduled_section_status_enum_1.ScheduledSectionStatus.UNSCHEDULED);
	    };
	    SectionStatusServant.isStatusRegisteredOrCompleteOrInProgress = function (section) {
	        return (SectionStatusServant.isStatusRegistered(section) ||
	            SectionStatusServant.isStatusCompleted(section) ||
	            SectionStatusServant.isStatusInProgress(section));
	    };
	    return SectionStatusServant;
	}());
	exports.SectionStatusServant = SectionStatusServant;


/***/ }),
/* 32 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var RegistrationAlertMessages;
	(function (RegistrationAlertMessages) {
	    RegistrationAlertMessages["SUCCESS_DROPPED_TEXT"] = "You have dropped";
	    RegistrationAlertMessages["FAILED_DROPPED_TEXT"] = "We were not able to drop";
	    RegistrationAlertMessages["SUCCESS_REGISTERED_TEXT"] = "You have registered for";
	    RegistrationAlertMessages["FAILED_REGISTERED_TEXT"] = "We were not able to register";
	    RegistrationAlertMessages["PAY_TUITION_TEXT"] = "Be sure to pay tuition once you have registered all your courses.";
	    RegistrationAlertMessages["WAITLIST_SUCCESS_TEXT"] = "You have waitlisted";
	    RegistrationAlertMessages["WAITLIST_FAIL_TEXT"] = "We are unable to waitlist ";
	    RegistrationAlertMessages["WAITLIST_REMOVE_SUCCESS_TEXT"] = "You are removed from the waitlist for";
	    RegistrationAlertMessages["WAITLIST_REMOVE_FAIL_TEXT"] = "We are unable to remove you from the waitlist for";
	    RegistrationAlertMessages["SUCCESSFUL_SCHEDULED_TEXT"] = "You have scheduled";
	    RegistrationAlertMessages["SUCCESSFUL_UNSCHEDULED_TEXT"] = "You have unscheduled";
	    RegistrationAlertMessages["ADDITIONAL_SECTIONS_ARE_REQUIRED_TEXT"] = "Additional sections are offered";
	    RegistrationAlertMessages["UNSCHEDULE_SECTION_FAIL_TEXT"] = "We are unable to unschedule";
	    RegistrationAlertMessages["CO_REQUISITES_REQUIRED_TEXT"] = "Remember to schedule the required co-requisites(s) for ";
	    RegistrationAlertMessages["PRE_REQUISITES_REQUIRED_TEXT"] = "Remember to schedule the required prerequisites(s) for ";
	    RegistrationAlertMessages["ENFORCED_CO_REQUISITES_DROP_REMINDER_TEXT"] = "are corequisites and must be dropped together.";
	    RegistrationAlertMessages["SUCCESSFUL_ADDED_COREQ_TEXT"] = "You have added";
	    RegistrationAlertMessages["AUTO_WAITLIST_REGISTERED_TEXT"] = " had a seat available and we successfully registered this course.";
	    RegistrationAlertMessages["AUTO_WAITLIST_WAITLISTED_TEXT"] = " was full. We added you to the waitlist.";
	    RegistrationAlertMessages["AUTO_REGISTER_WAITLISTED_TEXT"] = "You will be automatically registered when a seat becomes available.";
	    RegistrationAlertMessages["PENDING_AUTO_WAITLIST_REGISTERED_TEXT"] = "<p class=\"text\">Pending...</p> We will automatically attempt to waitlist any classes that are full";
	    RegistrationAlertMessages["PENDING_AUTO_WAITLIST_WAITLISTED_TEXT"] = "<p class=\"text\">Pending...</p> We will automatically attempt to register any classes that have seats available";
	    RegistrationAlertMessages["PENDING_DEFAULT_TEXT"] = "Pending";
	    RegistrationAlertMessages["PENDING_SWAP_TEXT"] = "Swap pending.  This may take a moment...";
	    RegistrationAlertMessages["PENDING_REFRESH_SEATS_TEXT"] = "Refreshing seat availability";
	    RegistrationAlertMessages["SUCCESSFUL_REFRESH_SEATS_TEXT"] = "Seat availability updated";
	    RegistrationAlertMessages["FAILED_REFRESH_SEATS_TEXT"] = "Refreshing seat availability failed";
	    RegistrationAlertMessages["PENDING_REFRESH_SECTION_AVAILABILITY_TEXT"] = "Updating section availability";
	    RegistrationAlertMessages["SUCCESSFUL_REFRESH_SECTION_AVAILABILITY_TEXT"] = "Section availability updated!";
	})(RegistrationAlertMessages = exports.RegistrationAlertMessages || (exports.RegistrationAlertMessages = {}));


/***/ }),
/* 33 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var EnumeratedSetValue = /** @class */ (function () {
	    function EnumeratedSetValue(_key, _ordinal, _value) {
	        this._key = _key;
	        this._ordinal = _ordinal;
	        this._value = _value;
	        this._key = (this._key + '').toLowerCase();
	    }
	    EnumeratedSetValue.prototype.assignProperties = function (o) {
	        var _this = this;
	        _.each(o, function (v, k) {
	            _this[k] = v;
	        });
	        EnumeratedSetValue.assignReadOnlyToProperties(_.keys(this), this);
	        return this;
	    };
	    Object.defineProperty(EnumeratedSetValue.prototype, "key", {
	        get: function () {
	            return this._key;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(EnumeratedSetValue.prototype, "ordinal", {
	        get: function () {
	            return this._ordinal;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(EnumeratedSetValue.prototype, "value", {
	        get: function () {
	            return this._value;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(EnumeratedSetValue.prototype, "id", {
	        /** @deprecated */
	        get: function () {
	            return this.key;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(EnumeratedSetValue.prototype, "isEnum", {
	        get: function () {
	            return true;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    /** @deprecated use Enumeration.isEqual(e, e) */
	    EnumeratedSetValue.prototype.isEqual = function (enumeration) {
	        if (!enumeration) {
	            return false;
	        }
	        else if (_.isString(enumeration)) {
	            return enumeration.toLowerCase() === this.key;
	        }
	        else if (enumeration.isEnum) {
	            return enumeration.key === this.key;
	        }
	        return false;
	    };
	    EnumeratedSetValue.assignReadOnlyToProperties = function (properties, o) {
	        _.each(properties, function (property) {
	            Object.defineProperty(o, property, {
	                configurable: false,
	                writable: false
	            });
	        });
	        return o;
	    };
	    return EnumeratedSetValue;
	}());
	exports.EnumeratedSetValue = EnumeratedSetValue;
	var EnumeratedSet = /** @class */ (function () {
	    function EnumeratedSet() {
	        this._name = '';
	        this.clear();
	    }
	    Object.defineProperty(EnumeratedSet.prototype, "name", {
	        get: function () {
	            return this._name;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(EnumeratedSet.prototype, "isEnumType", {
	        get: function () {
	            return true;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(EnumeratedSet.prototype, "isEnum", {
	        get: function () {
	            return this.isEnumType;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    EnumeratedSet.prototype.has = function (unknown) {
	        return (_.isUndefined(this.get(unknown)) || (_.isObject(unknown) && _.isUndefined(_.get(this.key(unknown + ''), 'key'))));
	    };
	    EnumeratedSet.prototype.size = function () {
	        return _.size(this.__ordinals__);
	    };
	    EnumeratedSet.prototype.length = function () {
	        return this.size();
	    };
	    EnumeratedSet.prototype.get = function (unknown) {
	        var known;
	        if (_.isUndefined(unknown)) {
	            return undefined;
	        }
	        if (unknown && unknown.key) {
	            return unknown;
	        }
	        known = this.key(unknown);
	        if (known) {
	            return known;
	        }
	        known = this.ordinal(unknown);
	        if (known) {
	            return known;
	        }
	        return undefined;
	    };
	    EnumeratedSet.prototype.key = function (unknown) {
	        return this.__keys__[(unknown + '').toUpperCase()];
	    };
	    EnumeratedSet.prototype.ordinal = function (unknown) {
	        return this.__ordinals__[parseInt(unknown + '', 10)];
	    };
	    EnumeratedSet.prototype.value = function (unknown) {
	        var valueKey = unknown && unknown.key ? unknown.key : unknown;
	        return this.__values__[valueKey];
	    };
	    EnumeratedSet.prototype.human = function (unknown) {
	        return this.value(unknown);
	    };
	    EnumeratedSet.prototype.iterator = function () {
	        return this.__keys__;
	    };
	    EnumeratedSet.prototype.isEqual = function (e1, e2) {
	        return this.getStringValue(e1) === this.getStringValue(e2);
	    };
	    EnumeratedSet.prototype.getStringValue = function (enumeration) {
	        var possibleEnumeration = this.get(enumeration);
	        return !!possibleEnumeration && possibleEnumeration.isEnum
	            ? possibleEnumeration.ordinal
	            : NaN;
	    };
	    EnumeratedSet.prototype.random = function () {
	        return this.ordinal(_.random(0, this.size()));
	    };
	    /** union with another enumeration */
	    EnumeratedSet.prototype.union = function (enumeration) {
	        return this.meld(enumeration, 'union');
	    };
	    /** difference with another enumeration, removing this enumeration */
	    EnumeratedSet.prototype.difference = function (enumeration) {
	        return this.meld(enumeration, 'difference');
	    };
	    /** intersection with another enumeration, adding/removing this enumeration */
	    EnumeratedSet.prototype.intersection = function (enumeration) {
	        return this.meld(enumeration, 'intersection');
	    };
	    /** apply a lodash function to an enumeration, combining this enumeration with another */
	    EnumeratedSet.prototype.meld = function (enumeration, operation) {
	        var meldOperation = _[operation];
	        var keys = _.uniq(_.compact(meldOperation(_.keys(this.__keys__), _.keys(enumeration.__keys__))));
	        var newEnum = {};
	        var enumKeys = enumeration.__keys__;
	        var thisKeys = this.__keys__;
	        // QUESTION what if they have the same keys?
	        _.each(keys, function (value) {
	            if (enumKeys[value]) {
	                newEnum[value] = enumKeys[value];
	            }
	            else if (thisKeys[value]) {
	                newEnum[value] = thisKeys[value];
	            }
	        });
	        return this.replace(newEnum);
	    };
	    EnumeratedSet.prototype.variableOf = function () {
	        var enumerationType = this;
	        var v;
	        return function (val) {
	            var potentialNewValue;
	            if (val) {
	                potentialNewValue = enumerationType.get(val);
	                if (!!potentialNewValue) {
	                    v = potentialNewValue;
	                }
	            }
	            return v;
	        };
	    };
	    EnumeratedSet.prototype.applyIsMethodsTo = function (applyTo) {
	        var enumName = _.first((this.name || 'Enum').split('Enum'));
	        var enumDef = this;
	        _.each(this.__keys__, function (keyDef, key) {
	            applyTo['is' + enumName + EnumeratedSet.convertKeyToMethodName(key)] = function (value) {
	                return enumDef.isEqual(key, value);
	            };
	        });
	        return applyTo;
	    };
	    /** @deprecated */
	    EnumeratedSet.prototype.overwrite = function (enumerationDefinition) {
	        return this.replace(enumerationDefinition);
	    };
	    EnumeratedSet.prototype.replace = function (enumerationDefinition) {
	        this.clear();
	        return this.add(enumerationDefinition);
	    };
	    EnumeratedSet.prototype.clear = function () {
	        this.__ordinals__ = {};
	        this.__values__ = {};
	        this.__keys__ = {};
	        return this;
	    };
	    /** read enumeration description and add it to this enumeration */
	    EnumeratedSet.prototype.addAsObject = function (enumerationDefinition) {
	        var _this = this;
	        var _enumerationDefinition = EnumeratedSet.convertEnumerationDefinitionAsArray(enumerationDefinition);
	        var valueCount = _.size(this.__keys__);
	        _.each(_enumerationDefinition, function (enumDef, key) {
	            var newEnum;
	            var ordinal = enumDef && enumDef.ordinal ? enumDef.ordinal : valueCount;
	            key = (key + '').toUpperCase();
	            delete enumDef.ordinal;
	            delete enumDef.key;
	            newEnum = new EnumeratedSetValue(key, ordinal).assignProperties(enumDef);
	            valueCount = newEnum.ordinal + 1;
	            _this[key] = newEnum;
	            _this.__keys__[key] = newEnum;
	            _this.__ordinals__[newEnum.ordinal] = newEnum;
	            _this.__values__[newEnum + ''] = newEnum;
	            _this.addShorthandIsMethod(key);
	        });
	        return this;
	    };
	    EnumeratedSet.convertEnumerationDefinitionAsArray = function (enumerationDefinition) {
	        if (!_.isArray(enumerationDefinition)) {
	            return enumerationDefinition;
	        }
	        return _.has(enumerationDefinition, '[0].key')
	            ? _.zipObject(_.map(enumerationDefinition, function (v) { return v.key; }), enumerationDefinition)
	            : _.zipObject(enumerationDefinition, enumerationDefinition);
	    };
	    EnumeratedSet.prototype.addShorthandIsMethod = function (key) {
	        var _this = this;
	        this['is' + EnumeratedSet.convertKeyToMethodName(key)] = function (possibleEnumeration) {
	            return _this.isEqual(key, possibleEnumeration);
	        };
	    };
	    EnumeratedSet.convertKeyToMethodName = function (key) {
	        return _.map(key.split(EnumeratedSet.SPLIT_BY_UNDERSCORE), function (word) {
	            return _.capitalize(word.toLowerCase());
	        }).join('');
	    };
	    EnumeratedSet.prototype.add = function (enumerationDefinition) {
	        return this.addAsValue(enumerationDefinition);
	    };
	    /** read enumeration value description and add it to this enumeration */
	    EnumeratedSet.prototype.addAsValue = function (enumerationDefinition) {
	        var _this = this;
	        var _enumerationDefinition = EnumeratedSet.convertEnumerationDefinitionAsArray(enumerationDefinition);
	        var valueCount = _.size(this.__keys__);
	        _.each(_enumerationDefinition, function (obj, key) {
	            var enumDef;
	            var ordinal = obj && obj.ordinal ? obj.ordinal : valueCount;
	            var value = obj && obj['value'] ? obj['value'] : obj;
	            key = (key + '').toUpperCase();
	            enumDef = new EnumeratedSetValue(key, ordinal, value);
	            valueCount = ordinal + 1;
	            _this[key] = enumDef;
	            _this.__keys__[key] = enumDef;
	            _this.__ordinals__[ordinal] = enumDef;
	            _this.__values__[value.toString()] = enumDef;
	            _this.addShorthandIsMethod(key);
	        });
	        return this;
	    };
	    EnumeratedSet.prototype.globallyAccessibleWith = function (name) {
	        window['enums'] = EnumerationBuilder.__registered__;
	        this._name = name;
	        window[name] = this;
	        window['enums'][name] = this;
	        return this.name && window['enums'][this.name];
	    };
	    /** @deprecated */
	    EnumeratedSet.prototype.global = function (name) {
	        return this.globallyAccessibleWith(name);
	    };
	    /**  */
	    EnumeratedSet.prototype.toString = function () {
	        return JSON.stringify(_.keys(this.__keys__));
	    };
	    EnumeratedSet.SPLIT_BY_UNDERSCORE = /_/g;
	    return EnumeratedSet;
	}());
	exports.EnumeratedSet = EnumeratedSet;
	var EnumerationBuilder = /** @class */ (function () {
	    function EnumerationBuilder() {
	    }
	    Object.defineProperty(EnumerationBuilder, "__registered__", {
	        get: function () {
	            return EnumerationBuilder._registered;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    EnumerationBuilder.useDefinitionAsValue = function (name, optionalConfiguration) {
	        return EnumerationBuilder.parseOptions(arguments, function (enumObj, configuration) {
	            return enumObj.addAsValue(configuration);
	        });
	    };
	    EnumerationBuilder.useDefinitionAsEnum = function (name, optionalConfiguration) {
	        return EnumerationBuilder.parseOptions(arguments, function (enumObj, configuration) {
	            return enumObj.addAsObject(configuration);
	        });
	    };
	    EnumerationBuilder.parseOptions = function (args, constructorFn) {
	        var name = typeof args[0] === 'string' ? args[0] : '';
	        var configuration = typeof args[0] === 'string' ? args[1] : args[0];
	        var enumObj = new EnumeratedSet();
	        var hasUniqueName = !_.isUndefined(configuration);
	        if (hasUniqueName) {
	            enumObj.globallyAccessibleWith(name);
	        }
	        else {
	            configuration = _.isString(name) ? {} : name;
	        }
	        return constructorFn(enumObj, configuration);
	    };
	    EnumerationBuilder._registered = {};
	    return EnumerationBuilder;
	}());
	exports.EnumerationBuilder = EnumerationBuilder;
	var Enumeration = function Enumeration(name, optionalConfiguration) {
	    return EnumerationBuilder.useDefinitionAsValue(name, optionalConfiguration);
	};
	Enumeration.useDefinitionAsValue = function (name, optionalConfiguration) {
	    return EnumerationBuilder.useDefinitionAsValue(name, optionalConfiguration);
	};
	Enumeration.useDefinitionAsEnum = function (name, optionalConfiguration) {
	    return EnumerationBuilder.useDefinitionAsEnum(name, optionalConfiguration);
	};
	Enumeration.__registered__ = EnumerationBuilder.__registered__;
	exports.default = Enumeration;


/***/ }),
/* 34 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var network_failure_configuration_1 = __webpack_require__(904);
	var network_url_configuration_1 = __webpack_require__(278);
	var configuration_1 = __webpack_require__(279);
	__webpack_require__(50);
	__webpack_require__(27);
	__webpack_require__(113);
	__webpack_require__(5);
	angular
	    .module('utility-ng-configuration', ['ui.router', 'utility-ng-log', 'utility-ng-kernel', 'ui-ng-notification'])
	    .provider('Configuration', configuration_1.ConfigurationProvider)
	    .provider('ngNetworkFailureConfiguration', network_failure_configuration_1.NetworkFailureConfiguration)
	    .provider('NetworkFailureConfiguration', network_failure_configuration_1.NetworkFailureConfiguration)
	    .provider('NetworkUrlConfiguration', network_url_configuration_1.NetworkUrlConfigurationProvider);
	exports.Configuration = __webpack_require__(279);
	__webpack_require__(1075);
	__webpack_require__(1076);
	__webpack_require__(1077);
	// require('./configuration/network_failure_configuration');
	__webpack_require__(278);
	__webpack_require__(1078);
	tslib_1.__exportStar(__webpack_require__(904), exports);
	tslib_1.__exportStar(__webpack_require__(278), exports);
	tslib_1.__exportStar(__webpack_require__(279), exports);


/***/ }),
/* 35 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	/* tslint:disable:max-classes-per-file  */
	var _4 = __webpack_require__(1);
	var ap_generic_slot_servant_1 = __webpack_require__(18);
	var Slot = /** @class */ (function () {
	    function Slot() {
	        this.showMarkAsMetMenu = false;
	        this.showMarkAsUnmetMenu = false;
	    }
	    return Slot;
	}());
	exports.Slot = Slot;
	var CourseSlot = /** @class */ (function (_super) {
	    tslib_1.__extends(CourseSlot, _super);
	    function CourseSlot(template) {
	        var _this = _super.call(this) || this;
	        _4.merge(_this, template);
	        _this.uuid = _this.uuid = ap_generic_slot_servant_1.APGenericSlotServant.uuid(_this);
	        return _this;
	    }
	    return CourseSlot;
	}(Slot));
	exports.CourseSlot = CourseSlot;
	var NCRBase = /** @class */ (function (_super) {
	    tslib_1.__extends(NCRBase, _super);
	    function NCRBase() {
	        return _super !== null && _super.apply(this, arguments) || this;
	    }
	    return NCRBase;
	}(Slot));
	exports.NCRBase = NCRBase;
	var CourseGroupBase = /** @class */ (function (_super) {
	    tslib_1.__extends(CourseGroupBase, _super);
	    function CourseGroupBase() {
	        return _super !== null && _super.apply(this, arguments) || this;
	    }
	    return CourseGroupBase;
	}(NCRBase));
	exports.CourseGroupBase = CourseGroupBase;
	var WildcardSlot = /** @class */ (function (_super) {
	    tslib_1.__extends(WildcardSlot, _super);
	    function WildcardSlot(template) {
	        var _this = _super.call(this) || this;
	        _4.merge(_this, template);
	        _this.uuid = _this.uuid = ap_generic_slot_servant_1.APGenericSlotServant.uuid(_this);
	        return _this;
	    }
	    return WildcardSlot;
	}(CourseGroupBase));
	exports.WildcardSlot = WildcardSlot;
	var NCRSlot = /** @class */ (function (_super) {
	    tslib_1.__extends(NCRSlot, _super);
	    function NCRSlot(template) {
	        var _this = _super.call(this) || this;
	        _4.merge(_this, template);
	        _this.uuid = _this.uuid = ap_generic_slot_servant_1.APGenericSlotServant.uuid(_this);
	        return _this;
	    }
	    return NCRSlot;
	}(NCRBase));
	exports.NCRSlot = NCRSlot;
	var CourseGroupSlot = /** @class */ (function (_super) {
	    tslib_1.__extends(CourseGroupSlot, _super);
	    function CourseGroupSlot(template) {
	        var _this = _super.call(this) || this;
	        _4.merge(_this, template);
	        _this.uuid = _this.uuid = ap_generic_slot_servant_1.APGenericSlotServant.uuid(_this);
	        return _this;
	    }
	    return CourseGroupSlot;
	}(CourseGroupBase));
	exports.CourseGroupSlot = CourseGroupSlot;
	var APGenericSlotBuilder = /** @class */ (function () {
	    function APGenericSlotBuilder(template) {
	        _4.merge(this, template);
	        this.uuid = this.uuid = ap_generic_slot_servant_1.APGenericSlotServant.uuid(this);
	    }
	    APGenericSlotBuilder.build = function (slot) {
	        if (ap_generic_slot_servant_1.APGenericSlotServant.isCourseGroupSlot(slot)) {
	            return new CourseGroupSlot(slot);
	        }
	        else if (ap_generic_slot_servant_1.APGenericSlotServant.isWildcardSlot(slot)) {
	            return new WildcardSlot(slot);
	        }
	        else if (ap_generic_slot_servant_1.APGenericSlotServant.isCourseSlot(slot)) {
	            return new CourseSlot(slot);
	        }
	        else {
	            return new NCRSlot(slot);
	        }
	    };
	    return APGenericSlotBuilder;
	}());
	exports.APGenericSlotBuilder = APGenericSlotBuilder;


/***/ }),
/* 36 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.PlannerResourceMAPTab = {
	    title: 'Plan Suggestions',
	    icon: 'book_with_watch',
	    active: true,
	    showOnViewMode: true,
	    key: 'MAP'
	};
	exports.PlannerResourceFavoriteTab = {
	    title: 'Favorites',
	    icon: 'heart',
	    active: false,
	    showOnViewMode: false,
	    key: 'FAVORITE'
	};
	exports.PlannerResourceSearchTab = {
	    title: 'Search',
	    icon: 'search',
	    active: false,
	    showOnViewMode: false,
	    key: 'SEARCH'
	};
	exports.PlannerScheduleAppointmentTab = {
	    title: 'Schedule an Appointment',
	    icon: 'user',
	    active: false,
	    showOnViewMode: false,
	    external: true,
	    key: 'SCHEDULE_APPOINTMENT'
	};
	exports.PlannerResourceTabs = [
	    exports.PlannerResourceMAPTab,
	    exports.PlannerResourceFavoriteTab,
	    exports.PlannerResourceSearchTab,
	    exports.PlannerScheduleAppointmentTab
	];


/***/ }),
/* 37 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var mark_as_met_unmet_routes_1 = __webpack_require__(129);
	exports.courseDetailState = {
	    // url: '/course_details',
	    data: {
	        pageTitle: 'Course details',
	        allowSourceFocus: true
	    },
	    params: {
	        courseDetails: {}
	    },
	    resolve: {
	        clearCourseInfo: function (clearCourseInfoCommand) { return clearCourseInfoCommand(); }
	    }
	};
	var studentCourseDetailState = tslib_1.__assign(tslib_1.__assign({}, exports.courseDetailState), { views: {
	        'right-panel-popout@my.planner.plan': {
	            template: "<ap-course-details></ap-course-details>"
	        }
	    } });
	exports.ApModelRoutes = tslib_1.__assign({ 'my.planner.plan.course_details': tslib_1.__assign({}, studentCourseDetailState), 'my.planner.plan.default.course_details': tslib_1.__assign({}, studentCourseDetailState), 'my.planner.plan.coursegroup.course_details': tslib_1.__assign({}, studentCourseDetailState) }, mark_as_met_unmet_routes_1.ApMarkAsMetModelRoutes);
	exports.MultiApModelRoutes = {
	    'my.planner.multiplan.default.course_details': {
	        data: {
	            pageTitle: 'Course details',
	            allowSourceFocus: true
	        },
	        resolve: {
	            clearCourseInfo: function (clearCourseInfoCommand) { return clearCourseInfoCommand(); }
	        },
	        params: {
	            courseDetailsParams: {
	                courseNk: '-1',
	                courseId: -1,
	                termId: -1,
	                slotId: -1,
	                showCourseDetailsMenu: false
	            }
	        },
	        views: {
	            'right-panel-popout@my.planner.multiplan': {
	                template: "<multi-ap-course-details></multi-ap-course-details>"
	            }
	        }
	    }
	};


/***/ }),
/* 38 */
/***/ (function(module, exports) {

	module.exports = function(module) {
		if(!module.webpackPolyfill) {
			module.deprecate = function() {};
			module.paths = [];
			// module.parent = undefined by default
			module.children = [];
			module.webpackPolyfill = 1;
		}
		return module;
	}


/***/ }),
/* 39 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(917);
	module.exports = 'ngAria';

/***/ }),
/* 40 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	/**
	 * @utility-ng-time
	 */
	
	module.exports = 'utility-ng-enumeration';
	var TimeUtility = __webpack_require__(2199);
	
	angular.module('utility-ng-time', []).constant('TimeUtility', TimeUtility.TimeUtility).constant('DayOfTheWeekEnum', TimeUtility.DayOfTheWeekEnum).constant('TimeWindowEnum', TimeUtility.TimeWindowEnum);
	
	__webpack_require__(1086);

/***/ }),
/* 41 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_type_1 = __webpack_require__(17);
	var ap_term_course_status_group_strategy_1 = __webpack_require__(122);
	var course_conflict_enum_1 = __webpack_require__(124);
	var ap_section_type_servant_1 = __webpack_require__(488);
	var APPlannedCourseServant = /** @class */ (function () {
	    function APPlannedCourseServant() {
	    }
	    APPlannedCourseServant.hasRequisiteProblem = function (plannedCourse) {
	        var requisiteProblemKeys = ['prereq_outoforder', 'prereq_miss', 'coreq_outoforder', 'coreq_miss'];
	        var reqOrderMissProblem = _4.some(requisiteProblemKeys, function (key) { return plannedCourse[key].length > 0; });
	        var preReqNotSatisfied = _4.some(["is_prereq_course_satisfied", "is_prereq_grade_satisfied"], function (key) {
	            return !_4.get(plannedCourse, key, true);
	        });
	        return reqOrderMissProblem || preReqNotSatisfied;
	    };
	    APPlannedCourseServant.hasCoursesOfferedProblem = function (plannedCourse) {
	        return !_4.get(plannedCourse, 'is_course_offered', true);
	    };
	    APPlannedCourseServant.statusBadge = function (plannedCourse) {
	        return ap_term_course_status_group_strategy_1.CourseStatusBadgeEvaluator.evaluate(plannedCourse.status, 'planned');
	    };
	    APPlannedCourseServant.multiSectionLabels = function (plannedCourse) {
	        var backgroundClassOfSection = utility_ts_type_1.ColorUtility.mapWordToTertiaryColor(_4.get(plannedCourse, '_course.nk', ''), 'bdr');
	        var sectionParts = _4.groupBy(plannedCourse._section_types, 'name');
	        var prefixToMultiSectionLabels = _4.size(sectionParts) + " parts: ";
	        return _4.reduce(_4.keys(sectionParts), function (labels, sectionPartName) {
	            return labels + ap_section_type_servant_1.APSectionTypeServant.writeMultiSectionTypeLabel(sectionPartName, backgroundClassOfSection);
	        }, prefixToMultiSectionLabels);
	    };
	    APPlannedCourseServant.buildPlannedCourseHoverTemplate = function (plannedCourse, course) {
	        var hoverTemplate = "";
	        if (!_4.isEmpty(plannedCourse) && plannedCourse._hasRequisiteProblem) {
	            var conflictTemplate = _4.reduce(['prereq_outoforder', 'prereq_miss', 'coreq_outoforder', 'coreq_miss'], function (template, key) {
	                var upperCaseKey = _4.toUpper(key);
	                var courseTitleTemplate = _4.reduce(plannedCourse["_" + key], function (tpl, conflictCourse) { return tpl + "<li class='text-bold'>" + conflictCourse._title + "</li>"; }, "");
	                return !_4.isEmpty(courseTitleTemplate)
	                    ? template + "<p class=\"mtm clr-black-txt\">" + course_conflict_enum_1.CourseConflictEnum[upperCaseKey].template + "</p><ul class='no-dot clr-black-txt'>" + courseTitleTemplate + "</ul>"
	                    : template;
	            }, '');
	            var gradeConflictTemplate = !plannedCourse.is_prereq_grade_satisfied
	                ? "\n      <p class=\"text clr-black-txt\">\n        One (or more) of these prerequisites has not met grade requirements. Click the course name for more details.\n      </p>"
	                : "";
	            hoverTemplate += "<strong class='clr-red_30-txt clearfix text-bold'> Needs Attention </strong>\n        " + gradeConflictTemplate + "\n        <span>" + conflictTemplate + "</span>";
	        }
	        if (!_4.isEmpty(plannedCourse) && plannedCourse._hasMultiSections) {
	            hoverTemplate += plannedCourse._multiSectionLabels;
	        }
	        return hoverTemplate;
	    };
	    return APPlannedCourseServant;
	}());
	exports.APPlannedCourseServant = APPlannedCourseServant;


/***/ }),
/* 42 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var ap_smart_catalog_routes_1 = __webpack_require__(71);
	exports.largeCourseGroupCommonState = {
	    url: 'coursegroup/:termId/:slotId/',
	    resolve: {
	        query: function ($stateParams, ngAPTermsQuery, ngAPDegreeMapQuery) { return ($stateParams.termId > 0 ? ngAPTermsQuery : ngAPDegreeMapQuery); }
	    },
	    data: {
	        pageTitle: 'Planner course group list'
	    },
	    onEnter: function ($state, ngLargeCourseGroupModel, routerHelper, $timeout) {
	        if (_4.isEmpty(ngLargeCourseGroupModel.read().selectedSlot)) {
	            var redirectingState_1 = '^.default';
	            var TIME_TO_FIX_ANGULAR_STATE_ERROR = 10;
	            $timeout(function () {
	                if (routerHelper.isValidState(redirectingState_1)) {
	                    $state.go(redirectingState_1);
	                }
	            }, TIME_TO_FIX_ANGULAR_STATE_ERROR);
	        }
	        else {
	            return;
	        }
	    }
	};
	exports.planResolve = {
	    studentNk: function () { return null; },
	    studentDetails: function () { return null; },
	    accountIdentity: function (loadAccountCommand) { return loadAccountCommand(); },
	    customTexts: function (loadCustomTextCommand) { return loadCustomTextCommand(); },
	    gradesConfig: function (loadGradeConfigsCommand) { return loadGradeConfigsCommand(); }
	};
	var myPlanView = {
	    '': {
	        template: "<ap-planner></ap-planner>"
	    }
	};
	exports.myPlanState = {
	    url: 'plan/',
	    sticky: true,
	    views: myPlanView,
	    resolve: exports.planResolve
	};
	exports.myMultiPlanState = {
	    url: 'multiplan/',
	    sticky: true,
	    resolve: exports.planResolve
	};
	exports.APMultiPlanRoutes = {
	    'my.planner.multiplan': tslib_1.__assign(tslib_1.__assign({}, exports.myMultiPlanState), { resolve: tslib_1.__assign({}, exports.planResolve), views: {
	            '': {
	                template: " <ap-multi-planner is-editable=\"true\"></ap-multi-planner>\n        <ui-view name='modal'></ui-view>"
	            },
	            'terms@my.planner.multiplan': {
	                template: "<ap-planner-mm-terms is-editable=\"true\"></ap-planner-mm-terms>"
	            }
	        } }),
	    'my.planner.multiplan.default': {
	        url: 'default/',
	        views: {
	            'default@my.planner.multiplan': {
	                template: "<ap-multi-planner-resources is-editable=\"true\"></ap-multi-planner-resources>"
	            }
	        },
	        data: {
	            pageTitle: 'My Planner',
	            academicPlanUrl: 'reg/academicplan',
	            preventResetFocus: true
	        },
	        onEnter: function () {
	            window.scrollBy(0, 1);
	        } // HACK to force update of popper
	    }
	};
	exports.ApPlanRoutes = tslib_1.__assign({ 'my.planner.plan': tslib_1.__assign(tslib_1.__assign({}, exports.myPlanState), { resolve: tslib_1.__assign(tslib_1.__assign({}, exports.planResolve), { flaggedCourses: function (accountIdentity, loadCommentCommand) { return loadCommentCommand("/coreuser/comment/"); }, externalRegistrationEnabled: function (appConfigModel, FEATURE_SCHEDULER_NK) {
	                return appConfigModel.isFeatureEnabled(FEATURE_SCHEDULER_NK);
	            }, externalRegistrationUrl: function (externalRegistrationEnabled, externalRegistrationLinkCommand) {
	                return externalRegistrationEnabled ? true : externalRegistrationLinkCommand();
	            }, allowToProceed: function (preventAccessToPlannerCommand, studentValue) { return preventAccessToPlannerCommand(); } }), views: {
	            '': {
	                template: "\n                <ap-planner is-editable=\"true\"></ap-planner>\n                <ui-view name='modal'></ui-view>\n                "
	            },
	            'terms@my.planner.plan': {
	                template: "<ap-planner-terms is-editable=\"true\"></ap-planner-terms>"
	            }
	        } }), 'my.planner.plan.default': {
	        url: 'default/',
	        views: {
	            'default@my.planner.plan': {
	                template: '<ap-planner-resources is-editable="true"></ap-planner-resources>'
	            }
	        },
	        data: {
	            pageTitle: 'My Planner',
	            academicPlanUrl: 'reg/academicplan',
	            preventResetFocus: true
	        },
	        onEnter: function () {
	            window.scrollBy(0, 1);
	        } // HACK to force update of popper
	    }, 'my.planner.plan.coursegroup': tslib_1.__assign(tslib_1.__assign({}, exports.largeCourseGroupCommonState), { views: {
	            'largeCourseGroup@my.planner.plan': {
	                template: '<large-course-group query="$resolve.query" is-editable="true"></large-course-group>'
	            }
	        } }) }, ap_smart_catalog_routes_1.MySmartCatalogRoutes);


/***/ }),
/* 43 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var utility_ts_strategy_1 = __webpack_require__(6);
	function processMoveTransactionTypeSuggestion(suggestion) {
	    return [
	        tslib_1.__assign(tslib_1.__assign({}, suggestion), { diff: 'REMOVE', from_term: suggestion.from_term, term: undefined }),
	        tslib_1.__assign(tslib_1.__assign({}, suggestion), { diff: 'ADD', from_term: undefined, term: suggestion.term })
	    ];
	}
	exports.PlanFeedbackSuggestionsForTransactionTypeConditionalStrategy = new utility_ts_strategy_1.Strategy({
	    ADD: function (suggestion) { return [suggestion]; },
	    REMOVE: function (suggestion) { return [suggestion]; },
	    NONE: function (suggestion) { return [suggestion]; },
	    MOVE: processMoveTransactionTypeSuggestion
	});
	exports.PlanFeedbackTermFieldIdentifierStrategy = new utility_ts_strategy_1.Strategy({
	    MOVE: {
	        validTermFields: ['from_term', 'term'],
	        currentTermField: 'from_term'
	    },
	    ADD: {
	        validTermFields: ['term'],
	        currentTermField: 'term'
	    },
	    REMOVE: {
	        validTermFields: ['from_term'],
	        currentTermField: 'from_term'
	    },
	    NONE: {
	        validTermFields: ['from_term', 'term'],
	        currentTermField: 'term'
	    }
	});
	var updateToNoneSuggestion = function (suggestion, dataSource) {
	    var suggestionInDataSource = dataSource.get(suggestion.id);
	    if (!suggestionInDataSource) {
	        console.warn("tried to access suggestion that doesn't exist in datasource");
	        return;
	    }
	    suggestionInDataSource.diff = 'NONE';
	    suggestionInDataSource.term = suggestionInDataSource.from_term;
	    suggestionInDataSource.lock_modified = false;
	    suggestionInDataSource.from_comment = suggestionInDataSource.comment;
	    dataSource.put(suggestionInDataSource);
	};
	exports.APPlanFeedbackDataSourceUpdateAfterDeclineStrategy = new utility_ts_strategy_1.Strategy({
	    ADD: function (suggestion, dataSource) {
	        return dataSource.del(suggestion.id);
	    },
	    REMOVE: updateToNoneSuggestion,
	    MOVE: function (suggestion, dataSource) {
	        var suggestionInDataSource = dataSource.get(suggestion.id);
	        if (!suggestionInDataSource) {
	            console.warn("tried to access suggestion that doesn't exist in datasource");
	            return;
	        }
	        suggestionInDataSource.diff = 'NONE';
	        suggestionInDataSource.term = suggestionInDataSource.from_term;
	        suggestionInDataSource.from_term = null;
	        suggestionInDataSource.lock_modified = false;
	        suggestionInDataSource.from_comment = suggestionInDataSource.comment;
	        dataSource.put(suggestionInDataSource);
	    }
	});
	exports.updateToProgramSlotTransaction = function (suggestion, dataSource) { return dataSource.del(suggestion.id); };
	exports.APPlanFeedbackDataSourceUpdateAfterAcceptStrategy = new utility_ts_strategy_1.Strategy({
	    NONE: updateToNoneSuggestion,
	    ADD: updateToNoneSuggestion,
	    MET: exports.updateToProgramSlotTransaction,
	    UNMET: exports.updateToProgramSlotTransaction,
	    REMOVE: function (suggestion, dataSource) {
	        return dataSource.del(suggestion.id);
	    },
	    MOVE: function (suggestion, dataSource) {
	        var suggestionInDataSource = dataSource.get(suggestion.id);
	        if (!suggestionInDataSource) {
	            console.warn("tried to access suggestion that doesn't exist in datasource");
	            return;
	        }
	        suggestionInDataSource.diff = 'NONE';
	        suggestionInDataSource.from_term = null;
	        suggestionInDataSource.lock_modified = false;
	        suggestionInDataSource.from_comment = suggestionInDataSource.comment;
	        dataSource.put(suggestionInDataSource);
	    }
	});
	exports.APPlanFeedbackDataSourceUpdateAfterAcceptDeclineStrategy = new utility_ts_strategy_1.Strategy({
	    REJECT: function (suggestion, dataSource) {
	        return exports.APPlanFeedbackDataSourceUpdateAfterDeclineStrategy[suggestion.diff](suggestion, dataSource);
	    },
	    ACCEPT: function (suggestion, dataSource) {
	        return exports.APPlanFeedbackDataSourceUpdateAfterAcceptStrategy[suggestion.diff](suggestion, dataSource);
	    }
	});


/***/ }),
/* 44 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	var OUTCOME_STATUS_TYPES;
	(function (OUTCOME_STATUS_TYPES) {
	    OUTCOME_STATUS_TYPES["REGISTRATION_REQUEST_REGISTERED"] = "REGISTRATION_REQUEST_REGISTERED";
	    OUTCOME_STATUS_TYPES["REGISTRATION_REQUEST_WAITLISTED"] = "REGISTRATION_REQUEST_WAITLISTED";
	    OUTCOME_STATUS_TYPES["WAITLIST_REQUEST_REGISTERED"] = "WAITLIST_REQUEST_REGISTERED";
	    OUTCOME_STATUS_TYPES["WAITLIST_REQUEST_WAITLISTED"] = "WAITLIST_REQUEST_WAITLISTED";
	    OUTCOME_STATUS_TYPES["REGISTRATION_REQUEST_FAILED"] = "REGISTRATION_REQUEST_FAILED";
	    OUTCOME_STATUS_TYPES["WAITLIST_REQUEST_FAILED"] = "WAITLIST_REQUEST_FAILED";
	})(OUTCOME_STATUS_TYPES = exports.OUTCOME_STATUS_TYPES || (exports.OUTCOME_STATUS_TYPES = {}));
	exports.RegistrationWaitlistOutcomeStatusStrategy = new utility_ts_strategy_1.StrategySafe({
	    REGISTRATION_REQUEST_REGISTERED: {
	        name: OUTCOME_STATUS_TYPES.REGISTRATION_REQUEST_REGISTERED
	    },
	    REGISTRATION_REQUEST_WAITLISTED: {
	        name: OUTCOME_STATUS_TYPES.REGISTRATION_REQUEST_WAITLISTED
	    },
	    WAITLIST_REQUEST_REGISTERED: {
	        name: OUTCOME_STATUS_TYPES.WAITLIST_REQUEST_REGISTERED
	    },
	    WAITLIST_REQUEST_WAITLISTED: {
	        name: OUTCOME_STATUS_TYPES.WAITLIST_REQUEST_WAITLISTED
	    },
	    REGISTRATION_REQUEST_FAILED: {
	        name: OUTCOME_STATUS_TYPES.REGISTRATION_REQUEST_FAILED
	    },
	    WAITLIST_REQUEST_FAILED: {
	        name: OUTCOME_STATUS_TYPES.WAITLIST_REQUEST_FAILED
	    }
	});
	exports.RegistrationWaitlistOutcomeStatusConditionalStrategy = new utility_ts_strategy_1.ConditionalStrategySafe({
	    REGISTRATION_REQUEST_REGISTERED: function (context) {
	        return context.request_type === 'ADD' && context.success && context.is_registered && !context.is_waitlisted;
	    },
	    REGISTRATION_REQUEST_WAITLISTED: function (context) {
	        return context.request_type === 'ADD' && context.success && !context.is_registered && context.is_waitlisted;
	    },
	    REGISTRATION_REQUEST_FAILED: function (context) {
	        return context.request_type === 'ADD' && !context.success;
	    },
	    WAITLIST_REQUEST_WAITLISTED: function (context) {
	        return context.request_type === 'WAITLIST' && context.success && !context.is_registered && context.is_waitlisted;
	    },
	    WAITLIST_REQUEST_REGISTERED: function (context) {
	        return context.request_type === 'WAITLIST' && context.success && context.is_registered && !context.is_waitlisted;
	    },
	    WAITLIST_REQUEST_FAILED: function (context) {
	        return context.request_type === 'WAITLIST' && !context.success;
	    }
	});


/***/ }),
/* 45 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	exports.BusyTimeErrorMessage = new utility_ts_strategy_1.Strategy({
	    isAnyPropertyNotSet: {
	        message: "Please enter a complete [start/end] time"
	    },
	    isStartTimeAfterEnd: {
	        message: "Start time should occur before end time"
	    },
	    isOutOfTimeWindow: {
	        message: "One or both times are outside of time window"
	    },
	    isTimeOverlap: {
	        message: "There is a conflict at this time"
	    },
	    invalidCharsInHour: {
	        message: "Enter a number between 1-12 in the hours field"
	    },
	    invalidCharsInMinutes: {
	        message: "Enter a number between 00-59 in the minutes field"
	    },
	    invalidCharsInPeriod: {
	        message: "Enter AM or PM for your time block"
	    }
	});


/***/ }),
/* 46 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.TYPE = 'utility-ng-type';
	var TypeUtility = __webpack_require__(17).TypeUtility;
	angular.module('utility-ng-type', []).constant('ngTypeUtility', TypeUtility).constant('TypeUtility', TypeUtility);


/***/ }),
/* 47 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var query_1 = __webpack_require__(909);
	var _4 = __webpack_require__(7);
	/**
	 * mediate updates on Datasources or Usersources in Commands to keep Metasources and Queries fresh
	 */
	var ORM = /** @class */ (function () {
	    function ORM() {
	    }
	    Object.defineProperty(ORM, "on", {
	        get: function () {
	            return this.__on;
	        },
	        set: function (_on) {
	            var wasOff = !ORM.__on;
	            this.__on = _on;
	            if (wasOff && _on) {
	                ORM.run();
	            }
	        },
	        enumerable: true,
	        configurable: true
	    });
	    /**
	     *
	     * @param sources all sources we updated in a command
	     * @returns list of all queries
	     */
	    ORM.run = function () {
	        var sources = [];
	        for (var _i = 0; _i < arguments.length; _i++) {
	            sources[_i] = arguments[_i];
	        }
	        if (!this.__on) {
	            return this.__nothingRan;
	        }
	        var updateSources = tslib_1.__spreadArrays(sources, this.marked);
	        // FIXME remove mediated_data_types as a supported type, so we can take away the any
	        return this.clearMarked()
	            ._runMetas(updateSources)
	            ._runQueries(updateSources);
	    };
	    /**
	     * @deprecated create a Query or use Query#registerQuery
	     * @param query query that needs to execute in response to a command
	     * @param sources {Array} all sources
	     */
	    ORM.registerQuery = function (query) {
	        var sources = [];
	        for (var _i = 1; _i < arguments.length; _i++) {
	            sources[_i - 1] = arguments[_i];
	        }
	        query_1.Query.registerQuery.apply(query_1.Query, tslib_1.__spreadArrays([query], sources));
	        return this;
	    };
	    /**
	     *
	     * @param sources all sources we updated in a command
	     * @returns list of all queries
	     */
	    ORM._runQueries = function (sources) {
	        return _4.map(ORM.__calculateUnique(sources, this.QUERY_KEY), function (query) {
	            return query.run();
	        });
	    };
	    ORM._runMetas = function (sources) {
	        _4.each(ORM.__calculateUnique(sources, this.METASOURCE_KEY), function (metasource) {
	            metasource.run();
	        });
	        return this;
	    };
	    ORM.__calculateUnique = function (sources, trackedEntity) {
	        return _4.uniq(_4.compact(_4.flatten(_4.map(sources, trackedEntity))));
	    };
	    Object.defineProperty(ORM, "marked", {
	        get: function () {
	            return Array.from(ORM.__executionHistory);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    ORM.clearMarked = function () {
	        this.__executionHistory.clear();
	        return this;
	    };
	    ORM.mark = function (mediated) {
	        this.__executionHistory.add(mediated);
	        return this;
	    };
	    ORM.METASOURCE_KEY = "__metasource__";
	    ORM.QUERY_KEY = "__queries__";
	    ORM.__executionHistory = new Set();
	    ORM.__nothingRan = [];
	    ORM.__on = true;
	    return ORM;
	}());
	exports.ORM = ORM;


/***/ }),
/* 48 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	/**
	 * @phxAx
	 */
	// whatInput = require('what-input/dist/what-input');
	__webpack_require__(12);
	__webpack_require__(16);
	__webpack_require__(989);
	__webpack_require__(990);
	__webpack_require__(991);
	__webpack_require__(988);
	__webpack_require__(986);
	__webpack_require__(987);
	__webpack_require__(984);
	__webpack_require__(985);
	__webpack_require__(983);

/***/ }),
/* 49 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-notification', ['ngSanitize', 'ui-ng-delegate', 'utility-ng-interface', 'utility-ng-enumeration']);

/***/ }),
/* 50 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	/**
	 * @utility-ng-log
	 */
	var log = __webpack_require__(1073);
	
	log.system = log;
	log.user = log.create('user');
	
	module.exports = 'utility-ng-log';
	angular.module('utility-ng-log', []).constant('log', log);

/***/ }),
/* 51 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(12);
	
	__webpack_require__(1084); /**
	                                 * @utility-ng-network-cache
	                                 */
	
	
	angular.module('utility-ng-network-cache', ['angular-cache']).provider('networkCache', function networkCacheFacade(CacheFactoryProvider) {
	  var ONE_MINUTE = 60 * 1000;
	  var FIFTEEN_MINUTES = 15 * ONE_MINUTE;
	  var CONFIGURATION = {
	    storageMode: 'sessionStorage',
	    deleteOnExpire: 'aggressive',
	    storagePrefix: 'eab-',
	    maxAge: FIFTEEN_MINUTES,
	    recycleFreq: ONE_MINUTE,
	
	    // safety measure, we should not drop promises into cache
	    storeOnResolve: false,
	    storeOnReject: false
	  };
	
	  this.configure = function configure_networkCache(config) {
	    return _.merge(CacheFactoryProvider.defaults, CONFIGURATION, config);
	  };
	
	  this.configure();
	
	  this.$get = function (CacheFactory, $http) {
	    $http.defaults.cache = CacheFactory('defaultCache');
	
	    return {
	      db: function db_networkCacheFacade(name, options) {
	        var cache = CacheFactory.get(name);
	        return !cache ? CacheFactory.createCache(name, options) : cache;
	      },
	      clear: function clear_networkCacheFacade(name) {
	        this.db(name).removeAll();
	      }
	    };
	  };
	});

/***/ }),
/* 52 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APMinGradeServant = /** @class */ (function () {
	    function APMinGradeServant() {
	    }
	    APMinGradeServant.isMinGradeMet = function (programSlot, plannedCourse, minGradeFeature) {
	        var actualGrade = _4.get(plannedCourse, 'actual_grade_point', -1);
	        var minGrade = _4.get(programSlot, 'min_grade_point', 0);
	        if (!minGradeFeature) {
	            return true;
	        }
	        if (_4.isNil(minGrade) || _4.isNil(actualGrade)) {
	            return true;
	        }
	        if (actualGrade >= minGrade) {
	            return true;
	        }
	        return false;
	    };
	    APMinGradeServant.progSlotEmptyPlannedCourseCompleted = function (programSlot, plannedCourse) {
	        return _4.isEmpty(programSlot.status) && _4.includes(['COMPLETED'], _4.get(plannedCourse, 'status', ''));
	    };
	    return APMinGradeServant;
	}());
	exports.APMinGradeServant = APMinGradeServant;


/***/ }),
/* 53 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var lodash4_1 = __webpack_require__(1);
	var APPreviewPlanServant = /** @class */ (function () {
	    function APPreviewPlanServant() {
	    }
	    APPreviewPlanServant.getEstimatedGraduationDateFromTerm = function (terms) {
	        var termsOrdered = lodash4_1.orderBy(terms, 'rank', 'asc');
	        var lastTermObj = termsOrdered[lodash4_1.findLastKey(termsOrdered)];
	        return lodash4_1.get(lastTermObj, 'name', '');
	    };
	    return APPreviewPlanServant;
	}());
	exports.APPreviewPlanServant = APPreviewPlanServant;


/***/ }),
/* 54 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	exports.ApPlanFeedbackEmphasizeEventNameStrategy = new utility_ts_strategy_1.Strategy({
	    COURSE: function (nk) { return "APPlanFeedbackCourseHighlightEvent" + nk.replace(/ /g, '_'); },
	    COURSE_GROUP: function (nk) { return "APPlanFeedbackCourseGroupHighlightEvent" + nk.replace(/ /g, '_'); }
	});
	exports.ApPlanFeedbackDeEmphasizeEventNameStrategy = new utility_ts_strategy_1.Strategy({
	    COURSE: function (nk) { return "APPlanFeedbackCourseLowlightEvent" + nk.replace(/ /g, '_'); },
	    COURSE_GROUP: function (nk) { return "APPlanFeedbackCourseGroupLowlightEvent" + nk.replace(/ /g, '_'); }
	});


/***/ }),
/* 55 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_strategy_1 = __webpack_require__(6);
	exports.ConversationFilterStrategy = new utility_ts_strategy_1.Strategy({
	    all: {
	        name: 'All',
	        notificationType: 'notifications',
	        query: '',
	        filter: function (conversations) { return conversations; }
	    },
	    academicplan: {
	        name: 'Academic Plan',
	        notificationType: 'notifications',
	        query: 'source_name=AP',
	        filter: function (conversations) { return conversations; }
	    },
	    journey: {
	        name: 'Journeys',
	        notificationType: 'notifications',
	        query: 'source_name=JOURNEY',
	        filter: function (conversations) { return conversations; }
	    },
	    step: {
	        name: 'Steps',
	        notificationType: 'notifications',
	        query: 'source_name=STEP',
	        filter: function (conversations) { return conversations; }
	    },
	    todo: {
	        name: 'To-Dos',
	        notificationType: 'notifications',
	        query: 'source_name=MUST_DO',
	        filter: function (conversations) { return conversations; }
	    },
	    personaltodo: {
	        name: 'Personal To-Dos',
	        notificationType: 'notifications',
	        query: 'source_name=PERSONAL_TODO',
	        filter: function (conversations) { return conversations; }
	    },
	    studybuddy: {
	        name: 'Study Buddies',
	        notificationType: 'notifications',
	        query: 'source_name=STUDY_BUDDY',
	        filter: function (conversations) { return conversations; }
	    },
	    survey: {
	        name: 'Surveys',
	        notificationType: 'notifications',
	        query: 'source_name=SURVEY',
	        filter: function (conversations) { return conversations; }
	    },
	    holds: {
	        name: 'Holds',
	        notificationType: 'notifications',
	        query: 'source_name=HOLDS',
	        filter: function (conversations) { return conversations; }
	    },
	    unread: {
	        name: 'Unread',
	        notificationType: 'unread notifications',
	        query: 'status=UNREAD',
	        filter: function (conversations) { return _4.filter(conversations, function (conversation) { return conversation.unread > 0; }); }
	    },
	    flagged: {
	        name: 'Flagged',
	        notificationType: 'flagged notifications',
	        query: 'status=FLAGGED',
	        filter: function (conversations) { return _4.filter(conversations, function (conversation) { return conversation.flagged > 0; }); }
	    }
	});


/***/ }),
/* 56 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var HoldsAttentionServant = /** @class */ (function () {
	    function HoldsAttentionServant() {
	    }
	    HoldsAttentionServant.isRegistrationHold = function (hold) {
	        return hold.is_registration_hold && hold.send_notifications;
	    };
	    HoldsAttentionServant.HasHoldType = function (hold) {
	        return !!_4.get(hold, 'hold_type_id', false);
	    };
	    HoldsAttentionServant.isHoldThatRequiresAttention = function (hold) {
	        return (HoldsAttentionServant.HasHoldType(hold) &&
	            HoldsAttentionServant.isRegistrationHold(hold) &&
	            !HoldsAttentionServant.isPastHold(hold));
	    };
	    HoldsAttentionServant.isRegularHold = function (hold) {
	        return (HoldsAttentionServant.HasHoldType(hold) &&
	            !HoldsAttentionServant.isRegistrationHold(hold) &&
	            !HoldsAttentionServant.isPastHold(hold));
	    };
	    HoldsAttentionServant.isPastHold = function (hold) {
	        return moment().isAfter(hold.end_dt);
	    };
	    HoldsAttentionServant.getHoldRoutingDetails = function (hold, config) {
	        return {
	            state: config.detailRoute,
	            params: {
	                holdTypeId: _4.get(hold, 'hold_type_id'),
	                id: _4.get(hold, 'id'),
	                additionalInfo: {
	                    amountOwed: _4.get(hold, 'amount'),
	                    reason: _4.get(hold, 'reason_text'),
	                    description: _4.get(hold, 'desc')
	                }
	            }
	        };
	    };
	    HoldsAttentionServant.getHoldIcon = function (hold) {
	        var type = this.isHoldThatRequiresAttention(hold) ? 'warning_filled' : 'warning';
	        var theme = 'orange';
	        return { type: type, theme: theme };
	    };
	    return HoldsAttentionServant;
	}());
	exports.HoldsAttentionServant = HoldsAttentionServant;


/***/ }),
/* 57 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MajorProgram = /** @class */ (function () {
	    function MajorProgram(program) {
	        _4.merge(this, program);
	    }
	    MajorProgram.build = function (program) {
	        return new MajorProgram(program);
	    };
	    return MajorProgram;
	}());
	exports.MajorProgram = MajorProgram;


/***/ }),
/* 58 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.CourseSchedulerConstant = {
	    scheduledSectionFormId: 'scheduled-sections-form',
	    waitListConfirmationSectionFormId: 'waitlist-section-prompt-form',
	    swapConfirmationRegAttrFormId: 'swap-confirmation-reg-attr-form'
	};
	angular.module('capability-ng-scheduler').constant('ngCourseSchedulerConstant', exports.CourseSchedulerConstant);


/***/ }),
/* 59 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var scheduled_section_servant_1 = __webpack_require__(19);
	var term_course_servant_1 = __webpack_require__(14);
	var section_status_servant_1 = __webpack_require__(31);
	var _4 = __webpack_require__(1);
	var SectionRegistrationServant = /** @class */ (function () {
	    function SectionRegistrationServant() {
	    }
	    SectionRegistrationServant.hasUnscheduledRequiredSiblingSections = function (section, allScheduledSections) {
	        if (!term_course_servant_1.TermCourseServant.isMultiSectionCourse(section._course)) {
	            return false;
	        }
	        // get required Section types for course of a selected section.(requiredSectionTypesForCourse)
	        // filter those section types which are equal to seclected section session (requiredSectionTypesForSessionCourse)
	        // get all scheduled sections for selected section course (scheduledSectionsForCourse).
	        // get required scheduled section types of those secheduled sections.
	        // filter those section types which are equal to seclected section session
	        var requiredSectionTypesForSessionCourse = _4.filter(_4.filter(section._course._section_types, 'is_required'), function (st) { return st.session === section._section_type.session; });
	        var scheduledSectionsForCourse = _4.filter(allScheduledSections, function (scheduledSection) {
	            return _4.isEqual(scheduledSection.course, section.course) &&
	                !section_status_servant_1.SectionStatusServant.isStatusUnscheduled(scheduledSection);
	        });
	        var scheduledSectionsForCourseForThisSession = _4.filter(scheduledSectionsForCourse, function (sec) { return sec._section_type.session === section._section_type.session; });
	        var requiredSectionTypesOfScheduledSections = _4(scheduledSectionsForCourseForThisSession)
	            .uniqBy('section_type')
	            .map('_section_type')
	            .filter('is_required')
	            .value();
	        return _4.size(requiredSectionTypesOfScheduledSections) < _4.size(requiredSectionTypesForSessionCourse);
	    };
	    SectionRegistrationServant.allSectionsAndSiblingsScheduled = function (sectionIds, allSections) {
	        var sectionsWithStatus = [];
	        _4.map(sectionIds, function (sectionId) {
	            var section = _4.find(allSections, { id: sectionId });
	            sectionsWithStatus.push({
	                linked_sections: sectionIds,
	                sectionId: sectionId,
	                hasUnscheduledRequiredSiblings: section
	                    ? SectionRegistrationServant.hasUnscheduledRequiredSiblingSections(section, allSections)
	                    : false,
	                section: section
	            });
	        });
	        var allSectionsScheduledProperly = _4.every(sectionsWithStatus, ['hasUnscheduledRequiredSiblings', false]);
	        return allSectionsScheduledProperly;
	    };
	    SectionRegistrationServant.getScheduledSiblingSections = function (section, allSections, allSectionTypes) {
	        return _4.filter(allSections, function (sctn) {
	            var sctnSessionId = _4.toString(_4.get(allSectionTypes.find(function (section_type) { return section_type.id === sctn.section_type; }), 'session'));
	            var sectionSessionId = _4.toString(_4.get(section, '_section_type.session'));
	            var hasSameSessionId = sctnSessionId === sectionSessionId;
	            var isCourseSame = section['course'] === sctn.course;
	            var isSectionScheduled = !section_status_servant_1.SectionStatusServant.isStatusUnscheduled(sctn) && !section_status_servant_1.SectionStatusServant.isStatusWithdrawn(sctn);
	            return isCourseSame && isSectionScheduled && hasSameSessionId;
	        });
	    };
	    SectionRegistrationServant.getSectionIdOfLinkedCrossCourses = function (sectionId, allSections, allSectionTypes) {
	        var _section = allSections.find(function (section) { return section.id === sectionId; });
	        if (!_section) {
	            return [];
	        }
	        var linkedSections = _section._linked_sections || [];
	        if (_4.isEmpty(linkedSections)) {
	            return [];
	        }
	        _4.each(linkedSections, function (sectionVal, key) {
	            var linkedSection = _4.find(allSections, function (section) { return section.id === linkedSections[key]; });
	            if (_4.isEmpty(linkedSection)) {
	                linkedSections = _4.uniq(linkedSections);
	                return;
	            }
	            var linkedSectionIds = _4.get(linkedSection, '_linked_sections', []);
	            var siblings = SectionRegistrationServant.getScheduledSiblingSections(linkedSection, allSections, allSectionTypes);
	            var siblingSections = siblings ? _4.map(siblings, function (item) { return item['id']; }) : [];
	            linkedSections = _4.uniq(tslib_1.__spreadArrays(linkedSections, linkedSectionIds, siblingSections));
	        });
	        _4.remove(linkedSections, function (linkedSectionId) { return linkedSectionId === sectionId; });
	        return linkedSections;
	    };
	    SectionRegistrationServant.hasUnscheduledCrossCourseCoreqs = function (section, scheduledSectionsWithMeta, allSectionTypes) {
	        if (scheduledSectionsWithMeta === void 0) { scheduledSectionsWithMeta = []; }
	        var crossCourseLinkedSectionIds = SectionRegistrationServant.getSectionIdOfLinkedCrossCourses(section.id, scheduledSectionsWithMeta, allSectionTypes);
	        var areAllCrossCourseLinkedSectionsScheduled = SectionRegistrationServant.allSectionsAndSiblingsScheduled(crossCourseLinkedSectionIds, scheduledSectionsWithMeta);
	        return !_4.isEmpty(crossCourseLinkedSectionIds) && !areAllCrossCourseLinkedSectionsScheduled;
	    };
	    SectionRegistrationServant.isEligibleForRegistration = function (section, scheduledSections, allSectionTypes, termScheduleFlags) {
	        if (scheduledSections === void 0) { scheduledSections = []; }
	        if (section_status_servant_1.SectionStatusServant.isStatusUnscheduled(section) ||
	            section_status_servant_1.SectionStatusServant.isStatusRegisteredOrCompleteOrInProgress(section)) {
	            return false;
	        }
	        var isCoReqLinkedSectionsSatisfied = _4.get(section, '_section_status.linked_section_coreqs_satisfied', false);
	        if (!isCoReqLinkedSectionsSatisfied) {
	            return false;
	        }
	        if (SectionRegistrationServant.hasUnscheduledCrossCourseCoreqs(section, scheduledSections, allSectionTypes)) {
	            return false;
	        }
	        var SIS_AutoWaitlistToRegistrationEnabled = termScheduleFlags.isBatchRegisterWaitlistedStudentsEnabled();
	        var preventSelectingWaitlistedSectionsForReg = section_status_servant_1.SectionStatusServant.isStatusWaitlisted(section) && SIS_AutoWaitlistToRegistrationEnabled;
	        if (preventSelectingWaitlistedSectionsForReg) {
	            return false;
	        }
	        if (SectionRegistrationServant.hasUnscheduledRequiredSiblingSections(section, scheduledSections)) {
	            return false;
	        }
	        if (section_status_servant_1.SectionStatusServant.isStatusWaitlisted(section) &&
	            termScheduleFlags.allowWaitlistedSectionsForRegistrationSelection()) {
	            return true;
	        }
	        if (!scheduled_section_servant_1.ScheduledSectionServant.hasAvailableSeats(section)) {
	            return false;
	        }
	        return true;
	    };
	    return SectionRegistrationServant;
	}());
	exports.SectionRegistrationServant = SectionRegistrationServant;


/***/ }),
/* 60 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var SectionTileMenuEnum;
	(function (SectionTileMenuEnum) {
	    SectionTileMenuEnum["UNSCHEDULE_COURSE"] = "UNSCHEDULE_COURSE";
	    SectionTileMenuEnum["UNSCHEDULE_SECTIONS"] = "UNSCHEDULE_SECTIONS";
	    SectionTileMenuEnum["DROP_COURSE"] = "DROP_COURSE";
	    SectionTileMenuEnum["DROP_SECTIONS"] = "DROP_SECTIONS";
	    SectionTileMenuEnum["DROP_ENFORCED_COREQS"] = "DROP_ENFORCED_COREQS";
	    SectionTileMenuEnum["REMOVE_WAITLIST"] = "REMOVE_WAITLIST";
	    SectionTileMenuEnum["WITHDRAW"] = "WITHDRAW";
	    // remove
	    SectionTileMenuEnum["DROP_MULT_COURSE"] = "DROP_MULT_COURSE";
	    SectionTileMenuEnum["UNSCHEDULE_SECTION"] = "UNSCHEDULE_SECTION";
	    SectionTileMenuEnum["UNSCHEDULE_ALL_SECTION"] = "UNSCHEDULE_ALL_SECTION";
	    // misc
	    SectionTileMenuEnum["SWAP_SECTION"] = "SWAP_SECTION";
	    SectionTileMenuEnum["SWAP_COURSE"] = "SWAP_COURSE";
	    SectionTileMenuEnum["SCHEDULE_AGAIN"] = "SCHEDULE_AGAIN";
	})(SectionTileMenuEnum = exports.SectionTileMenuEnum || (exports.SectionTileMenuEnum = {}));


/***/ }),
/* 61 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var edit_pronouns_service_1 = __webpack_require__(799);
	var settings_feature_list_component_1 = __webpack_require__(797);
	var settings_feature_list_controller_1 = __webpack_require__(234);
	var settings_welcome_component_1 = __webpack_require__(798);
	var settings_welcome_controller_1 = __webpack_require__(235);
	var settings_logout_configuration_service_1 = __webpack_require__(236);
	var settings_state_configuration_service_1 = __webpack_require__(237);
	var settings_configuration_1 = __webpack_require__(238);
	var edit_pronouns_1 = __webpack_require__(2002);
	__webpack_require__(789);
	angular
	    .module('capability-ng-settings', ['about'])
	    .component('settingsWelcome', new settings_welcome_component_1.SettingsWelcomeComponent())
	    .component('settingsFeatureList', new settings_feature_list_component_1.SettingsFeatureListComponent())
	    .component('editPronounsModal', new edit_pronouns_1.EditPronounsModalComponent())
	    .service('ngSettingsStateConfigurationService', settings_state_configuration_service_1.SettingsStateConfigurationService)
	    .service('ngSettingsLogoutConfigurationService', settings_logout_configuration_service_1.SettingsLogoutConfigurationService)
	    .service('ngEditPronounsService', edit_pronouns_service_1.EditPronounsService)
	    .controller('ngSettingsWelcomeController', settings_welcome_controller_1.SettingsWelcomeController)
	    .controller('ngSettingsFeatureListController', settings_feature_list_controller_1.SettingsFeatureListController)
	    .controller('ngEditPronounsModalController', edit_pronouns_1.EditPronounsModalController)
	    .service('ngSettingsCapabilityConfiguration', settings_configuration_1.SettingsCapabilityConfiguration);
	__webpack_require__(2000);
	exports.NO_PRONOUNS_STRING = 'None - do not show';
	tslib_1.__exportStar(__webpack_require__(236), exports);
	tslib_1.__exportStar(__webpack_require__(237), exports);
	tslib_1.__exportStar(__webpack_require__(238), exports);
	exports.default = 'capability-ng-settings';


/***/ }),
/* 62 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var login_help_modale_controller_1 = __webpack_require__(260);
	var login_help_modal_service_1 = __webpack_require__(267);
	var account_model_1 = __webpack_require__(265);
	var member_configuration_datastore_1 = __webpack_require__(264);
	var account_status_datastore_1 = __webpack_require__(263);
	var account_identity_datastore_1 = __webpack_require__(262);
	var authentication_configuration_1 = __webpack_require__(261);
	var account_token_servant_1 = __webpack_require__(63);
	var auth_type_enum_1 = __webpack_require__(105);
	var render_type_enum_1 = __webpack_require__(268);
	var login_config_model_1 = __webpack_require__(266);
	__webpack_require__(2087);
	angular
	    .module('data-ng-authentication', ['utility-ng-interface', 'utility-ng-enumeration'])
	    .provider('authenticationConfiguration', authentication_configuration_1.AuthenticationConfiguration)
	    .constant('AuthTypeEnum', auth_type_enum_1.AuthTypeEnum)
	    .constant('RenderTypeEnum', render_type_enum_1.RenderTypeEnum)
	    .service('ngLoginHelpModalService', login_help_modal_service_1.LoginHelpModalService)
	    .value('ngAccountTokenServant', account_token_servant_1.AccountTokenServant)
	    .component('loginHelpModal', new login_help_modale_controller_1.LoginHelpModalComponent())
	    .factory('ngMemberConfigurationDatastore', function (Interface) { return new member_configuration_datastore_1.MemberConfigurationDatastore(Interface); })
	    .factory('MemberConfigurationDatastore', function (Interface) { return new member_configuration_datastore_1.MemberConfigurationDatastore(Interface); })
	    .factory('ngAccountStatusDatastore', function (Interface) { return new account_status_datastore_1.AccountStatusDatastore(Interface); })
	    .factory('ngAccountIdentityDatastore', function (Interface) { return new account_identity_datastore_1.AccountIdentityDatastore(Interface); })
	    .service('accountModel', function (Interface, ngAccountStatusDatastore, ngAccountIdentityDatastore) {
	    return new account_model_1.AccountModel(Interface, ngAccountStatusDatastore, ngAccountIdentityDatastore);
	})
	    .service('loginConfigModel', function (Interface, ngMemberConfigurationDatastore, ngAccountStatusDatastore) {
	    return new login_config_model_1.LoginConfigModel(Interface, ngMemberConfigurationDatastore, ngAccountStatusDatastore);
	});
	__webpack_require__(2086);
	tslib_1.__exportStar(__webpack_require__(260), exports);
	tslib_1.__exportStar(__webpack_require__(261), exports);
	tslib_1.__exportStar(__webpack_require__(262), exports);
	tslib_1.__exportStar(__webpack_require__(263), exports);
	tslib_1.__exportStar(__webpack_require__(264), exports);
	tslib_1.__exportStar(__webpack_require__(265), exports);
	tslib_1.__exportStar(__webpack_require__(266), exports);
	tslib_1.__exportStar(__webpack_require__(850), exports);
	tslib_1.__exportStar(__webpack_require__(851), exports);
	tslib_1.__exportStar(__webpack_require__(852), exports);
	tslib_1.__exportStar(__webpack_require__(63), exports);
	tslib_1.__exportStar(__webpack_require__(267), exports);
	tslib_1.__exportStar(__webpack_require__(105), exports);
	tslib_1.__exportStar(__webpack_require__(268), exports);
	exports.authenticationData = 'data-ng-authentication';


/***/ }),
/* 63 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var AccountTokenServant = /** @class */ (function () {
	    function AccountTokenServant() {
	        return AccountTokenServant;
	    }
	    AccountTokenServant.accumulateAccountProperties = function (accountToken) {
	        var mergedAccountToken = _4.merge({}, accountToken);
	        if (accountToken && accountToken.userdata) {
	            mergedAccountToken = _4.merge(mergedAccountToken, accountToken.userdata);
	        }
	        if (mergedAccountToken.userdata) {
	            mergedAccountToken.userdata = undefined;
	        }
	        return mergedAccountToken;
	    };
	    AccountTokenServant.isUserAlreadyLoggedIn = function (accountToken) {
	        return _4.size(accountToken) > 0;
	    };
	    return AccountTokenServant;
	}());
	exports.AccountTokenServant = AccountTokenServant;


/***/ }),
/* 64 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_enumeration_1 = __webpack_require__(22);
	var utility_js_interface_1 = __webpack_require__(2194);
	var forceLoadNGEnumeration = utility_ng_enumeration_1.default;
	window['Interface'] = utility_js_interface_1.default;
	angular.module('utility-ng-interface', ['utility-ng-enumeration']).constant('Interface', utility_js_interface_1.default);
	exports.default = utility_js_interface_1.default;


/***/ }),
/* 65 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(918);
	module.exports = 'ngSanitize';

/***/ }),
/* 66 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(1005);
	__webpack_require__(1006);
	__webpack_require__(1007);
	__webpack_require__(1008);
	__webpack_require__(1009);
	__webpack_require__(1010);
	
	angular.module('ui-ng-core-bootstrap', ['mgcrea.ngStrap.helpers.dateFormatter', 'mgcrea.ngStrap.helpers.dateParser', 'mgcrea.ngStrap.helpers.debounce', 'mgcrea.ngStrap.helpers.dimensions', 'mgcrea.ngStrap.helpers.parseOptions']);

/***/ }),
/* 67 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(66);
	__webpack_require__(48);
	__webpack_require__(1029);
	
	module.exports = angular.module('ui-ng-modal', ['mgcrea.ngStrap.modal', 'ui-ng-core-bootstrap', 'ui-ng-ax']);

/***/ }),
/* 68 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var CommentServant = /** @class */ (function () {
	    function CommentServant() {
	    }
	    CommentServant.isCourseComment = function (comment) {
	        return comment.content_type === 'cat.Course';
	    };
	    CommentServant.isSlotComment = function (comment) {
	        return comment.content_type === 'academicplan.Programslot';
	    };
	    CommentServant.isPlanComment = function (comment) {
	        return comment.content_type === null;
	    };
	    CommentServant.getValidCourseComments = function (_comments) {
	        return _4.toArray(_comments).filter(CommentServant.isCourseComment);
	    };
	    CommentServant.groupCommentsBasedOnType = function (comments) {
	        return comments.reduce(function (queryResultSet, comment) {
	            if (CommentServant.isPlanComment(comment)) {
	                queryResultSet[comment.id] = comment;
	            }
	            else {
	                queryResultSet[comment.object_id] = comment;
	            }
	            return queryResultSet;
	        }, {});
	    };
	    CommentServant.getHoverTemplate = function (comment) {
	        return "\n        <div class=\"mtl\"></div>\n        <div class='text'>\"" + comment.message + "\"</div>\n        <div class='text ptm text-sz-s'>" + comment.sender_info.first_name + " " + comment.sender_info.last_name + " sent on " + comment._updated_ts.format('DD MMM, YYYY') + "</div>\n      ";
	    };
	    return CommentServant;
	}());
	exports.CommentServant = CommentServant;


/***/ }),
/* 69 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_id_constants_1 = __webpack_require__(11);
	var ap_course_status_strategy_1 = __webpack_require__(121);
	/**
	 * old name was PlannerCourseBuilder
	 */
	var APCourse = /** @class */ (function () {
	    function APCourse(course) {
	        _4.merge(this, {
	            courseoffered_set: [],
	            coreq: [],
	            status: 'DEFAULT',
	            is_planned: false,
	            is_favorite: false,
	            favorite_id: ap_id_constants_1.INVALID_ID,
	            level: 0,
	            _is_group_course: false
	        }, course, {
	            _termId: ap_id_constants_1.INVALID_ID
	        });
	        this._status = ap_course_status_strategy_1.APCourseStatusStrategy.getByKey(this.status);
	        this._title = this.cd + " " + this.title;
	    }
	    APCourse.build = function (course) {
	        return new APCourse(course);
	    };
	    return APCourse;
	}());
	exports.APCourse = APCourse;


/***/ }),
/* 70 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_strategy_1 = __webpack_require__(6);
	var ap_generic_slot_servant_1 = __webpack_require__(18);
	var ap_min_grade_servant_1 = __webpack_require__(52);
	exports.SlotStatusCssClassColorMap = new utility_ts_strategy_1.StrategySafe({
	    GREEN: 'green',
	    GRAY: 'gray',
	    PURPLE: 'purple',
	    YELLOW: 'warning'
	});
	exports.SlotStatusTextToColorMap = new utility_ts_strategy_1.StrategySafe({
	    PLANNED: 'GREEN',
	    WAITLISTED: 'PURPLE',
	    SECTION_PICKED: 'GREEN',
	    IN_PROGRESS: 'GREEN',
	    COMPLETED: 'GRAY',
	    MET: 'GRAY',
	    DEFAULT: 'GREEN',
	    REGISTERED: 'GREEN',
	    '': 'GREEN'
	});
	exports.SlotStatusTextMap = new utility_ts_strategy_1.StrategySafe({
	    PLANNED: 'Planned',
	    WAITLISTED: 'Waitlisted',
	    SECTION_PICKED: 'Planned',
	    IN_PROGRESS: 'In Progress',
	    COMPLETED: 'Completed',
	    MET: 'Met',
	    DEFAULT: 'Planned',
	    REGISTERED: 'Enrolled',
	    '': 'Planned',
	    PLACEHOLDER: 'Placeholder'
	});
	var APSlotStatusBadgeHtmlServant = /** @class */ (function () {
	    function APSlotStatusBadgeHtmlServant(ngCommentsDatasource, accountModel, ngAPMarkAsMetStatusDatasource, appConfigModel) {
	        this.ngCommentsDatasource = ngCommentsDatasource;
	        this.accountModel = accountModel;
	        this.ngAPMarkAsMetStatusDatasource = ngAPMarkAsMetStatusDatasource;
	        this.appConfigModel = appConfigModel;
	    }
	    APSlotStatusBadgeHtmlServant.prototype.getMarkAsMetMessage = function (slotId) {
	        var comment = _4.first(this.ngCommentsDatasource.query(function (cmnt) { return cmnt.object_id === slotId; }));
	        var defaultMessage = "marked this requirement as met";
	        if (!comment) {
	            return _4.upperFirst(defaultMessage);
	        }
	        var sender = comment.sender_info;
	        var whoMarked = this.accountModel.id === sender.id ? 'You' : sender.first_name + " " + sender.last_name;
	        if (!comment || _4.isEmpty(comment.message)) {
	            return whoMarked + " " + defaultMessage;
	        }
	        return "<div class=\"pbl\"> " + whoMarked + " " + defaultMessage + " </div> \"" + comment.message + "\"";
	    };
	    APSlotStatusBadgeHtmlServant.prototype.getMarkAsMetBadge = function (genericSlot) {
	        var slotId = genericSlot.programSlot.id;
	        var statusEntry = _4.first(this.ngAPMarkAsMetStatusDatasource.query(function (slot) { return slot.program_slot === slotId; }));
	        var showBadgeWithComments = statusEntry && statusEntry.status === 'MET';
	        if (!showBadgeWithComments) {
	            return '';
	        }
	        var uniqueId = "pgm-slot-met-" + _4.uniqueId();
	        return "\n            <hi-badge theme=\"" + exports.SlotStatusCssClassColorMap['GRAY'] + "\">\n                <div l-kind l-width-fixed l-align=\"center\">\n                    <hi-icon class=\"mrsx\" kind=\"info_circle\" theme=\"gray-dark\" id=" + uniqueId + " type=\"material\"></hi-icon>\n                    Met\n                </div>\n            </hi-badge>\n            <hi-tooltip ng-attr-for=" + uniqueId + ">\n                " + this.getMarkAsMetMessage(slotId) + "\n            </hi-tooltip>\n        ";
	    };
	    APSlotStatusBadgeHtmlServant.prototype.isCourseRegistered = function (genericSlot) {
	        return _4.includes(['REGISTERED'], _4.get(genericSlot, 'plannedCourse.status', ''));
	    };
	    APSlotStatusBadgeHtmlServant.prototype.shouldShowNoBadge = function (genericSlot, isInLeftPanel) {
	        if (!ap_generic_slot_servant_1.APGenericSlotServant.isNCRSlot(genericSlot) && ap_generic_slot_servant_1.APGenericSlotServant.isGenericSlotCoursePlanned(genericSlot)) {
	            if (this.isCourseRegistered(genericSlot) || ap_generic_slot_servant_1.APGenericSlotServant.isCourseGroupSlot(genericSlot)) {
	                return false;
	            }
	            if (ap_min_grade_servant_1.APMinGradeServant.progSlotEmptyPlannedCourseCompleted(genericSlot.programSlot, genericSlot.plannedCourse)) {
	                return true;
	            }
	            return isInLeftPanel ? !genericSlot.isMinGradeMet && genericSlot.isCourseCompleted : true;
	        }
	        return false;
	    };
	    APSlotStatusBadgeHtmlServant.prototype.getPlannedStatusBadge = function (genericSlot) {
	        var isInLeftPanel = ap_generic_slot_servant_1.APGenericSlotServant.isGenericSlotInDegreeMap(genericSlot);
	        var isPlanned = ap_generic_slot_servant_1.APGenericSlotServant.isGenericSlotPlanned(genericSlot);
	        var noBadge = '';
	        if (!isPlanned || this.shouldShowNoBadge(genericSlot, isInLeftPanel)) {
	            return noBadge;
	        }
	        var statusText = '';
	        var cssClass = '';
	        if (ap_generic_slot_servant_1.APGenericSlotServant.isNCRSlot(genericSlot)) {
	            statusText = exports.SlotStatusTextMap['PLANNED'];
	            cssClass = exports.SlotStatusCssClassColorMap['GREEN'];
	        }
	        else if (isInLeftPanel &&
	            (ap_generic_slot_servant_1.APGenericSlotServant.isCourseSlot(genericSlot) || ap_generic_slot_servant_1.APGenericSlotServant.isGenericSlotCoursePlanned(genericSlot))) {
	            statusText = exports.SlotStatusTextMap[genericSlot.plannedCourse.status];
	            cssClass = exports.SlotStatusCssClassColorMap[exports.SlotStatusTextToColorMap[genericSlot.plannedCourse.status]];
	        }
	        else {
	            if (isInLeftPanel) {
	                statusText = exports.SlotStatusTextMap['PLANNED'];
	                cssClass = exports.SlotStatusCssClassColorMap['GREEN'];
	            }
	            else {
	                statusText = exports.SlotStatusTextMap['PLACEHOLDER'];
	                cssClass = exports.SlotStatusCssClassColorMap['GRAY'];
	            }
	        }
	        return "<hi-badge theme=\"" + cssClass + "\"> " + statusText + " </hi-badge>";
	    };
	    APSlotStatusBadgeHtmlServant.prototype.getReqBadge = function (genericSlot) {
	        var emptyReqBadge = '';
	        if (!ap_generic_slot_servant_1.APGenericSlotServant.isCourseSlot(genericSlot)) {
	            return emptyReqBadge;
	        }
	        var course = genericSlot.course;
	        var noReqFound = !course.has_coreq && !course.has_prereq;
	        if (noReqFound) {
	            return emptyReqBadge;
	        }
	        return "\n            <hi-badge theme=\"" + exports.SlotStatusCssClassColorMap['YELLOW'] + "\">\n                <div l-kind l-width-fixed l-align=\"center\">\n                  <hi-icon size=\"small\" kind=\"link\" class=\"mrsx\" theme=\"" + exports.SlotStatusCssClassColorMap['YELLOW'] + "\"></hi-icon>\n                  Requisite\n                </div>\n            </hi-badge>\n        ";
	    };
	    APSlotStatusBadgeHtmlServant.prototype.getGradeBadge = function (genericSlot) {
	        var emptyMinGradeBadge = '';
	        if (!(ap_generic_slot_servant_1.APGenericSlotServant.isCourseSlot(genericSlot) || ap_generic_slot_servant_1.APGenericSlotServant.isCourseGroupSlot(genericSlot))) {
	            return emptyMinGradeBadge;
	        }
	        var showGradeBadge = genericSlot.showGradeBadge;
	        if (!showGradeBadge || !genericSlot.programSlot._grade_config) {
	            return emptyMinGradeBadge;
	        }
	        var badgeId = "status-badge-" + genericSlot.programSlot.id + "-" + _4.uniqueId();
	        return "\n      <hi-badge id=\"" + badgeId + "\" theme=\"" + exports.SlotStatusCssClassColorMap['BLUE'] + "\">\n        <span>\n          Min Grade: " + genericSlot.programSlot.min_grade_point + "\n        </span>\n      </hi-badge>\n      <hi-tooltip placement=\"top\" for=\"" + badgeId + "\">\n      <h4>Minimum Grade</h4>\n        " + genericSlot.programSlot._grade_config.min_grade_text + "\n      <h4>Grade Explanation</h4>\n        " + genericSlot.programSlot._grade_config.grade_explanation + "\n      </hi-tooltip>";
	    };
	    APSlotStatusBadgeHtmlServant.prototype.getBadges = function (genericSlot) {
	        var badges = [];
	        // order of badges: req badges, status badges, mark as met badges, Min Grade badge
	        badges.push(this.getReqBadge(genericSlot));
	        badges.push(this.getPlannedStatusBadge(genericSlot));
	        if (ap_generic_slot_servant_1.APGenericSlotServant.isGenericSlotInDegreeMap(genericSlot)) {
	            badges.push(this.getMarkAsMetBadge(genericSlot));
	        }
	        badges.push(this.getGradeBadge(genericSlot));
	        return _4.compact(badges);
	    };
	    return APSlotStatusBadgeHtmlServant;
	}());
	exports.APSlotStatusBadgeHtmlServant = APSlotStatusBadgeHtmlServant;
	angular
	    .module('capability-ng-academic-planner')
	    .service('ngAPSlotStatusBadgeHtmlServant', APSlotStatusBadgeHtmlServant);


/***/ }),
/* 71 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var mySmartCatalogCourseDetailStates = {
	    url: 'smart_course_details/:courseNk',
	    data: {
	        pageTitle: 'Course Details',
	        academicPlanUrl: 'reg/academicplan'
	    },
	    params: {
	        courseDetails: {}
	    }
	};
	exports.MySmartCatalogRoutes = {
	    'my.planner.plan.default.smart_course_details': tslib_1.__assign(tslib_1.__assign({}, mySmartCatalogCourseDetailStates), { data: {
	            pageTitle: 'My Planner Search',
	            academicPlanUrl: 'reg/academicplan'
	        }, views: {
	            'right-panel-popout@my.planner.plan': {
	                template: "<ap-course-details></ap-course-details>"
	            }
	        } })
	};
	exports.AdvisorSmartCatalogRoutes = {
	    'ap-advisor.plan.edit.default.smart_course_details': tslib_1.__assign(tslib_1.__assign({}, mySmartCatalogCourseDetailStates), { data: {
	            pageTitle: 'Advisor Smart Search',
	            academicPlanUrl: 'reg/advisorplan'
	        }, views: {
	            'right-panel-popout@ap-advisor.plan.edit': {
	                template: "<ap-course-details></ap-course-details>"
	            }
	        } }),
	    'ap-advisor.plan.view.default.smart_course_details': tslib_1.__assign(tslib_1.__assign({}, mySmartCatalogCourseDetailStates), { data: {
	            pageTitle: 'Advisor Smart Search',
	            academicPlanUrl: 'reg/advisorplan'
	        }, views: {
	            'right-panel-popout@ap-advisor.plan.view': {
	                template: "<ap-course-details hide-actions=\"true\"></ap-course-details>"
	            }
	        } })
	};


/***/ }),
/* 72 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var ApSmartSearchServant = /** @class */ (function () {
	    function ApSmartSearchServant() {
	    }
	    ApSmartSearchServant.shouldHideAddToTermAction = function (courseGroupInfo) {
	        return _4.gt(_4.toNumber(courseGroupInfo.termId), 0);
	    };
	    ApSmartSearchServant.isLargeCourseGroupSmartSearch = function (courseGroupInfo) {
	        return !_4.isEmpty(courseGroupInfo.courseGroupValue);
	    };
	    ApSmartSearchServant.isWildcardSmartSearch = function (courseGroupInfo) {
	        return courseGroupInfo.isWildCard;
	    };
	    ApSmartSearchServant.isPlanningFromTerm = function (courseGroupInfo) {
	        return ApSmartSearchServant.isLargeCourseGroupSmartSearch(courseGroupInfo) && _4.gt(courseGroupInfo.termId, 0);
	    };
	    ApSmartSearchServant.isInSwapMode = function (courseGroupInfo) {
	        return courseGroupInfo.isInSwapMode;
	    };
	    ApSmartSearchServant.isCoursegroupLocked = function (courseGroupInfo) {
	        return _4.get(courseGroupInfo, 'parentCourse.plannedCourse.is_locked', false);
	    };
	    ApSmartSearchServant.getSwapCommandParams = function (courseGroupInfo) {
	        var parentCourse = ApSmartSearchServant.getLargeCourseGroupParentCourse(courseGroupInfo);
	        var courseToRemove = _4.get(parentCourse, 'plannedCourse', {});
	        var courseToAdd = { id: null };
	        var programSlotToAdd = _4.get(parentCourse, 'programSlot', {});
	        var termId = _4.toNumber(courseGroupInfo.termId);
	        return { courseToRemove: courseToRemove, courseToAdd: courseToAdd, programSlotToAdd: programSlotToAdd, termId: termId };
	    };
	    ApSmartSearchServant.getLargeCourseGroupTermId = function (courseGroupInfo) {
	        return courseGroupInfo.termId;
	    };
	    ApSmartSearchServant.getLargeCourseGroupParentCourse = function (courseGroupInfo) {
	        return _4.get(courseGroupInfo, 'parentCourse', {});
	    };
	    ApSmartSearchServant.getPlanCommandParams = function (courseGroupInfo) {
	        var parentCourse = ApSmartSearchServant.getLargeCourseGroupParentCourse(courseGroupInfo);
	        var termId = _4.toNumber(ApSmartSearchServant.getLargeCourseGroupTermId(courseGroupInfo));
	        var courseGroup = {
	            course_group: _4.get(parentCourse, 'programSlot.course_group', ''),
	            id: _4.get(parentCourse, 'programSlot._course_group_id', ''),
	            program_slot: _4.get(parentCourse, 'programSlot.id', ''),
	            term: termId
	        };
	        var programSlot = tslib_1.__assign(tslib_1.__assign({}, parentCourse.programSlot), { _term_id: termId });
	        var courseToPlan = { id: null };
	        return { programSlot: programSlot, courseGroup: courseGroup, courseToPlan: courseToPlan };
	    };
	    return ApSmartSearchServant;
	}());
	exports.ApSmartSearchServant = ApSmartSearchServant;


/***/ }),
/* 73 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MyAppointmentsContoller = /** @class */ (function () {
	    function MyAppointmentsContoller(ngMyAppointmentsService, AppointmentTabEnum) {
	        this.ngMyAppointmentsService = ngMyAppointmentsService;
	        this.AppointmentTabEnum = AppointmentTabEnum;
	    }
	    MyAppointmentsContoller.prototype.$onInit = function () {
	        this.ngMyAppointmentsService.loadUpcomingAppoinments();
	    };
	    return MyAppointmentsContoller;
	}());
	exports.MyAppointmentsContoller = MyAppointmentsContoller;


/***/ }),
/* 74 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var AppointmentSchedulingConfiguration = /** @class */ (function () {
	    function AppointmentSchedulingConfiguration() {
	        this._config = {
	            isMobile: false,
	            notificationHandle: '',
	            storage: 'sessionStorage'
	        };
	    }
	    Object.defineProperty(AppointmentSchedulingConfiguration.prototype, "config", {
	        get: function () {
	            return this._config;
	        },
	        set: function (configs) {
	            this._config = tslib_1.__assign(tslib_1.__assign({}, this._config), configs);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    AppointmentSchedulingConfiguration.prototype.setConfig = function (key, value) {
	        this._config[key] = value;
	    };
	    return AppointmentSchedulingConfiguration;
	}());
	exports.AppointmentSchedulingConfiguration = AppointmentSchedulingConfiguration;


/***/ }),
/* 75 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var CancellationReasonsDatasource = /** @class */ (function () {
	    function CancellationReasonsDatasource() {
	        this.initialize();
	    }
	    CancellationReasonsDatasource.prototype.initialize = function () {
	        this._source = {
	            cancellationReasons: [],
	            countAsNoShow: false
	        };
	        return this;
	    };
	    CancellationReasonsDatasource.prototype.write = function (raw) {
	        this._source = {
	            cancellationReasons: _.sortBy(raw, 'name'),
	            countAsNoShow: false
	        };
	        return this;
	    };
	    CancellationReasonsDatasource.prototype.read = function () {
	        return this._source;
	    };
	    CancellationReasonsDatasource.prototype.clear = function () {
	        this.initialize();
	    };
	    CancellationReasonsDatasource.prototype.report = function (fn) {
	        return fn(this._source);
	    };
	    return CancellationReasonsDatasource;
	}());
	exports.CancellationReasonsDatasource = CancellationReasonsDatasource;


/***/ }),
/* 76 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var UpcomingAppointmentsDatasource = /** @class */ (function () {
	    function UpcomingAppointmentsDatasource() {
	        this._source = {
	            studentInfo: {},
	            upcomingAppointments: [],
	            appointmentRequests: [],
	            pastAppointments: [],
	            activeVisits: []
	        };
	        this.initialize();
	    }
	    UpcomingAppointmentsDatasource.prototype.initialize = function () {
	        this._source = {
	            studentInfo: {},
	            upcomingAppointments: [],
	            appointmentRequests: [],
	            pastAppointments: [],
	            activeVisits: []
	        };
	        return this;
	    };
	    UpcomingAppointmentsDatasource.prototype.update = function (data) {
	        this._source = data;
	        return this;
	    };
	    UpcomingAppointmentsDatasource.prototype.write = function (raw) {
	        this._source = {
	            studentInfo: raw.student,
	            upcomingAppointments: _4.sortBy(raw.next_appointments, 'start_timestamp'),
	            appointmentRequests: this._extractAppointmentRequests(raw),
	            pastAppointments: _.sortByOrder(raw.past_appointments, 'start_timestamp', 'desc'),
	            activeVisits: raw.activeVisits
	        };
	        return this;
	    };
	    UpcomingAppointmentsDatasource.prototype._extractAppointmentRequests = function (raw) {
	        return _4.sortBy(_4.filter(raw.appointment_invitations, function (appointmentRequestObj) { return appointmentRequestObj.remaining_appointments_for_student > 0; }), 'end_date');
	    };
	    UpcomingAppointmentsDatasource.prototype.read = function () {
	        return this._source;
	    };
	    UpcomingAppointmentsDatasource.prototype.clear = function () {
	        this.initialize();
	    };
	    UpcomingAppointmentsDatasource.prototype.report = function (fn) {
	        return fn(this._source);
	    };
	    return UpcomingAppointmentsDatasource;
	}());
	exports.UpcomingAppointmentsDatasource = UpcomingAppointmentsDatasource;


/***/ }),
/* 77 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	function AppointmentTabEnum($state) {
	    return Enumeration.useDefinitionAsEnum({
	        UPCOMING: {
	            tabOrder: 0,
	            displayName: 'Upcoming',
	            state: 'my.myAppointments.upcoming',
	            href: 'my-appointments/upcoming',
	            view: '',
	            isActive: function () {
	                return $state.current.name === 'my.myAppointments.upcoming';
	            }
	        },
	        ACTIVE: {
	            tabOrder: 1,
	            displayName: 'Active',
	            state: 'my.myAppointments.active',
	            href: 'my-appointments/active',
	            view: '',
	            isActive: function () {
	                return $state.current.name === 'my.myAppointments.active';
	            }
	        },
	        PAST: {
	            tabOrder: 2,
	            displayName: 'Past',
	            state: 'my.myAppointments.past',
	            href: 'my-appointments/past',
	            view: '',
	            isActive: function () {
	                return $state.current.name === 'my.myAppointments.past';
	            }
	        }
	    });
	}
	exports.AppointmentTabEnum = AppointmentTabEnum;


/***/ }),
/* 78 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var CancellationReasonsQuery = /** @class */ (function () {
	    function CancellationReasonsQuery(QueryMediator, ngCancellationReasonsDatasource) {
	        this.ngCancellationReasonsDatasource = ngCancellationReasonsDatasource;
	        QueryMediator.registerQuery(this, ngCancellationReasonsDatasource);
	    }
	    CancellationReasonsQuery.prototype.run = function () {
	        this._result = this.ngCancellationReasonsDatasource.read();
	        return this;
	    };
	    Object.defineProperty(CancellationReasonsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return CancellationReasonsQuery;
	}());
	exports.CancellationReasonsQuery = CancellationReasonsQuery;


/***/ }),
/* 79 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var moment = __webpack_require__(2);
	var OVERDUE_TXT = 'Cancelled: ';
	var UpcomingAppointmentsQuery = /** @class */ (function () {
	    function UpcomingAppointmentsQuery(QueryMediator, ngUpcomingAppointmentsDatasource) {
	        this.ngUpcomingAppointmentsDatasource = ngUpcomingAppointmentsDatasource;
	        QueryMediator.registerQuery(this, ngUpcomingAppointmentsDatasource);
	    }
	    UpcomingAppointmentsQuery.prototype._formatAppointmentContentTile = function (appt) {
	        var attendees = appt.attendees.length - 1;
	        var title = attendees > 0 ? appt.student_services[0].name + " + " + attendees + " more" : appt.student_services[0].name;
	        var subTitle = "" + moment.unix(appt.start_timestamp).format('ddd, MMM D [at] h:mm a');
	        return {
	            icon: { type: 'calender', theme: 'magenta' },
	            text: {
	                title: title,
	                subTitle: subTitle,
	                overdueText: OVERDUE_TXT
	            },
	            action: { state: 'my.myAppointments.detail', params: { id: appt.attendance_id } },
	            isOverdue: appt.is_cancelled,
	            isActive: true
	        };
	    };
	    UpcomingAppointmentsQuery.prototype._formatAppointmentRequest = function (appt) {
	        var title = "Appointment Request for " + appt.student_service.name;
	        var organizer = appt.organizers[0].first_name + " " + appt.organizers[0].last_name;
	        var subTitle = "Schedule your appointment by " + moment(appt.end_date).format('ddd, MMM D') + " with " + organizer;
	        return {
	            icon: { type: 'calender', theme: 'magenta' },
	            text: {
	                title: title,
	                subTitle: subTitle,
	                overdueText: OVERDUE_TXT
	            },
	            action: { state: 'my.myAppointments.request', params: { id: appt.id } },
	            isOverdue: false,
	            isActive: true
	        };
	    };
	    UpcomingAppointmentsQuery.prototype._formatActiveAppointment = function (appt) {
	        var title = "" + _.map(_.get(appt, 'student_services')).join(', ');
	        var subTitle = "Checked in at " + moment(appt.check_in_time).format('ddd, MMM D h:mm a');
	        var appointment = appt.attendance_id ? this.findAppointment(appt.attendance_id.toString()) : {};
	        return {
	            icon: { type: 'calender', theme: 'magenta' },
	            text: {
	                title: title,
	                subTitle: subTitle,
	                overdueText: OVERDUE_TXT
	            },
	            action: { state: 'my.myAppointments.detail', params: { id: appt.id, activeVisit: true } },
	            isOverdue: _4.get(appointment, 'is_cancelled', false),
	            isActive: true
	        };
	    };
	    UpcomingAppointmentsQuery.prototype.__mapActiveApptToContentTile = function (appts) {
	        var _this = this;
	        return appts.map(function (appt) {
	            return tslib_1.__assign(tslib_1.__assign({}, appt), { _contentTile: _this._formatActiveAppointment(appt) });
	        });
	    };
	    UpcomingAppointmentsQuery.prototype.__mapApptToContentTile = function (appts) {
	        var _this = this;
	        var allActiveVisits = this.ngUpcomingAppointmentsDatasource.read().activeVisits;
	        return appts.map(function (appt) {
	            var _activeVisit = _4.find(allActiveVisits, { attendance_id: appt.attendance_id });
	            return tslib_1.__assign(tslib_1.__assign({}, appt), { _activeVisit: _activeVisit, _canCheckin: _4.get(appt, 'can_checkin', false), _canCheckout: _4.get(_activeVisit, 'can_checkout', false), _contentTile: _this._formatAppointmentContentTile(appt) });
	        });
	    };
	    UpcomingAppointmentsQuery.prototype.run = function () {
	        var _this = this;
	        this._result = this.ngUpcomingAppointmentsDatasource.read();
	        this._result.upcomingAppointments = this.__mapApptToContentTile(this._result.upcomingAppointments);
	        this._result.pastAppointments = this.__mapApptToContentTile(this._result.pastAppointments);
	        this._result.activeVisits = this.__mapActiveApptToContentTile(this._result.activeVisits);
	        this._result.appointmentRequests = this._result.appointmentRequests.map(function (appt) {
	            return tslib_1.__assign(tslib_1.__assign({}, appt), { _contentTile: _this._formatAppointmentRequest(appt) });
	        });
	        return this;
	    };
	    UpcomingAppointmentsQuery.prototype.findAppointment = function (id) {
	        var appts = tslib_1.__spreadArrays(this._result.pastAppointments, this._result.upcomingAppointments);
	        var appt = _4.find(appts, function (a) {
	            return parseInt("" + a.attendance_id, 10) === parseInt(id, 10);
	        });
	        if (!_4.isNil(appt)) {
	            return appt;
	        }
	        return _4.find(this._result.appointmentRequests, function (a) {
	            return parseInt("" + a.id, 10) === parseInt(id, 10);
	        });
	    };
	    UpcomingAppointmentsQuery.prototype.findActiveVisit = function (id) {
	        var visits = tslib_1.__spreadArrays(this._result.activeVisits);
	        return _4.find(visits, function (a) {
	            return parseInt("" + a.id, 10) === parseInt(id, 10);
	        });
	    };
	    UpcomingAppointmentsQuery.prototype.result = function (showNextMonthsAppointmentsOnly) {
	        if (showNextMonthsAppointmentsOnly) {
	            this._result.upcomingAppointments = _.take(_.filter(this._result.upcomingAppointments, function (appointment) {
	                var startTime = moment.unix(appointment.start_timestamp);
	                return startTime.diff(moment(), 'days') <= 30;
	            }), 5);
	        }
	        return this._result;
	    };
	    return UpcomingAppointmentsQuery;
	}());
	exports.UpcomingAppointmentsQuery = UpcomingAppointmentsQuery;


/***/ }),
/* 80 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var moment = __webpack_require__(2);
	var AppointmentRemindersServant = /** @class */ (function () {
	    function AppointmentRemindersServant(ngUpcomingAppointmentsQuery, phxNotificationDelegate, ngAppointmentSchedulingConfiguration) {
	        this.ngUpcomingAppointmentsQuery = ngUpcomingAppointmentsQuery;
	        this.phxNotificationDelegate = phxNotificationDelegate;
	        this.ngAppointmentSchedulingConfiguration = ngAppointmentSchedulingConfiguration;
	        this.notificationDelegate = this.phxNotificationDelegate.restrictTo(this.ngAppointmentSchedulingConfiguration.config.notificationHandle);
	    }
	    AppointmentRemindersServant.prototype._generateNotification = function (content, icon) {
	        this.notificationDelegate.create({
	            status: 'info',
	            showIcon: true,
	            iconClass: icon,
	            content: content,
	            dismissOnTimeout: false
	        });
	    };
	    Object.defineProperty(AppointmentRemindersServant.prototype, "trigger", {
	        get: function () {
	            return this.notificationDelegate;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    AppointmentRemindersServant.prototype.generateUpcomingAppointmentReminders = function () {
	        var _this = this;
	        _.forEach(this.ngUpcomingAppointmentsQuery.result().upcomingAppointments, function (appointment) {
	            if (!appointment.is_cancelled) {
	                var startTime = moment.unix(appointment.start_timestamp);
	                var day = startTime.isSame(moment(), 'day') ? ' today' : 'tomorrow';
	                if (startTime.diff(moment(), 'hours') < 24) {
	                    var message = "<strong class=\"font-bold\">Friendly Reminder</strong>\n                <p class=\"text\">\n                  You have an appointment with your <span phx-feature=\"student-platform.roles.advisor-title.lowercase\">advisor</span> " +
	                        day +
	                        " @ " +
	                        startTime.format('h:mm a') +
	                        "\n                </p>";
	                    _this._generateNotification(message, 'eab-icon eab-icon-information');
	                }
	            }
	        });
	    };
	    AppointmentRemindersServant.prototype.generateAppointmentRequestReminders = function () {
	        var _this = this;
	        _.forEach(this.ngUpcomingAppointmentsQuery.result().appointmentRequests, function (appointmentRequest) {
	            var advisorName = appointmentRequest.creator.first_name + ' ' + appointmentRequest.creator.last_name;
	            var message = "<strong class=\"font-bold\">Appointment Request! </strong>\n                <p class=\"text\">" +
	                advisorName +
	                " requests that you schedule an appointment </p>";
	            _this._generateNotification(message, 'eab-icon type-calendar eab-icon-calendar');
	        });
	    };
	    return AppointmentRemindersServant;
	}());
	exports.AppointmentRemindersServant = AppointmentRemindersServant;


/***/ }),
/* 81 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var moment = __webpack_require__(2);
	var AppointmentsAvailableTimesServant = /** @class */ (function () {
	    function AppointmentsAvailableTimesServant(ngAppointmentReasonUsersource, ngAppointmentLocationsOrganizersUsersource, ngAppointmentLocationsOrganizersDatasource, ngAppointmentsCommandServant) {
	        this.ngAppointmentReasonUsersource = ngAppointmentReasonUsersource;
	        this.ngAppointmentLocationsOrganizersUsersource = ngAppointmentLocationsOrganizersUsersource;
	        this.ngAppointmentLocationsOrganizersDatasource = ngAppointmentLocationsOrganizersDatasource;
	        this.ngAppointmentsCommandServant = ngAppointmentsCommandServant;
	        this.offset = 0;
	    }
	    Object.defineProperty(AppointmentsAvailableTimesServant.prototype, "nextWeekOffset", {
	        get: function () {
	            return ++this.offset;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(AppointmentsAvailableTimesServant.prototype, "previousWeekOffset", {
	        get: function () {
	            return --this.offset;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    AppointmentsAvailableTimesServant.prototype.clearWeekOffSet = function () {
	        this.offset = 0;
	    };
	    AppointmentsAvailableTimesServant.prototype.requestParams = function (weekOffset, invitationId) {
	        if (invitationId === void 0) { invitationId = 0; }
	        var isCourseSelected = this.ngAppointmentReasonUsersource.read().selectedService.isCourse;
	        var appointment_type_id = this.ngAppointmentReasonUsersource.read().selectedType.id;
	        var student_service_id = this.ngAppointmentReasonUsersource.read().selectedService.id;
	        var course_id = this.ngAppointmentsCommandServant.getCourseId();
	        var student_service_category_id = this.ngAppointmentReasonUsersource.read().selectedCategory.id;
	        var organizer_ids = this.ngAppointmentsCommandServant.selectedOrganizerIds();
	        var location_ids = this.sellectedLocationIds;
	        var week_offset = weekOffset;
	        var start_date = moment().startOf('week').add(week_offset, 'week').unix();
	        if (invitationId > 0) {
	            return {
	                invitation_id: invitationId,
	                organizer_ids: organizer_ids,
	                start_date: start_date
	            };
	        }
	        return isCourseSelected
	            ? {
	                appointment_type_id: appointment_type_id,
	                course_id: course_id,
	                student_service_category_id: student_service_category_id,
	                organizer_ids: organizer_ids,
	                location_ids: location_ids,
	                start_date: start_date
	            }
	            : {
	                appointment_type_id: appointment_type_id,
	                course_id: course_id,
	                student_service_id: student_service_id,
	                student_service_category_id: student_service_category_id,
	                organizer_ids: organizer_ids,
	                location_ids: location_ids,
	                start_date: start_date
	            };
	    };
	    Object.defineProperty(AppointmentsAvailableTimesServant.prototype, "sellectedLocationIds", {
	        get: function () {
	            var selectedLocationId = this.ngAppointmentLocationsOrganizersUsersource.read().selectedLocation.id;
	            var selectedLocationIds = '';
	            var locationsList = this.ngAppointmentLocationsOrganizersDatasource.values();
	            if (selectedLocationId < 0) {
	                selectedLocationIds = _4.join(_4.map(locationsList, function (location) { return location.id; }), ',');
	            }
	            else {
	                selectedLocationIds = selectedLocationId.toString();
	            }
	            return selectedLocationIds;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return AppointmentsAvailableTimesServant;
	}());
	exports.AppointmentsAvailableTimesServant = AppointmentsAvailableTimesServant;


/***/ }),
/* 82 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var AppointmentsApiVersion;
	(function (AppointmentsApiVersion) {
	    AppointmentsApiVersion[AppointmentsApiVersion["V1"] = 0] = "V1";
	    AppointmentsApiVersion[AppointmentsApiVersion["V2"] = 1] = "V2";
	    AppointmentsApiVersion[AppointmentsApiVersion["V3"] = 2] = "V3";
	})(AppointmentsApiVersion = exports.AppointmentsApiVersion || (exports.AppointmentsApiVersion = {}));
	var AppointmentsCommandServant = /** @class */ (function () {
	    function AppointmentsCommandServant($http, $q, authToken, accountModel, appConfigModel, ngAppointmentReasonUsersource, log, ngAppointmentLocationsOrganizersUsersource, ngAlternateAppointmentTimesUsersource, loadStcScheduleConfigCommand, ngStcSchedulingConfigModel) {
	        this.$http = $http;
	        this.$q = $q;
	        this.authToken = authToken;
	        this.accountModel = accountModel;
	        this.appConfigModel = appConfigModel;
	        this.ngAppointmentReasonUsersource = ngAppointmentReasonUsersource;
	        this.log = log;
	        this.ngAppointmentLocationsOrganizersUsersource = ngAppointmentLocationsOrganizersUsersource;
	        this.ngAlternateAppointmentTimesUsersource = ngAlternateAppointmentTimesUsersource;
	        this.loadStcScheduleConfigCommand = loadStcScheduleConfigCommand;
	        this.ngStcSchedulingConfigModel = ngStcSchedulingConfigModel;
	    }
	    AppointmentsCommandServant.prototype.request = function (obj) {
	        obj.url = "/api/v2/scheduling/" + obj.url;
	        return this.authToken.campusTokenRequest(obj);
	    };
	    Object.defineProperty(AppointmentsCommandServant.prototype, "locationsCommandParams", {
	        get: function () {
	            return this._selectedAppointmentTypeValues();
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(AppointmentsCommandServant.prototype, "alternateAppointmentConfirmCommandParams", {
	        get: function () {
	            var selectedAppointmentTypeValues = this._selectedAppointmentTypeValues();
	            return tslib_1.__assign({ location_id: this.ngAlternateAppointmentTimesUsersource.read().selectedLocation.id, comment: this.ngAlternateAppointmentTimesUsersource.availability }, selectedAppointmentTypeValues);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(AppointmentsCommandServant.prototype, "walkIntimesCommandParams", {
	        get: function () {
	            var location_ids = this.ngAppointmentLocationsOrganizersUsersource.read().selectedLocation.id.toString();
	            var student_service_id = _4.get(this.ngAppointmentReasonUsersource.read(), 'selectedService.id');
	            var organizer_ids = this.selectedOrganizerIds();
	            var course_id = this.getCourseId();
	            var care_unit_id = _4.get(this.ngAppointmentReasonUsersource.read(), 'selectedType.id');
	            if (!_4.isUndefined(course_id)) {
	                return {
	                    location_ids: location_ids,
	                    organizer_ids: organizer_ids,
	                    course_id: course_id,
	                    student_service_id: student_service_id,
	                    care_unit_id: care_unit_id
	                };
	            }
	            return {
	                location_ids: location_ids,
	                organizer_ids: organizer_ids,
	                student_service_id: student_service_id
	            };
	        },
	        enumerable: true,
	        configurable: true
	    });
	    AppointmentsCommandServant.prototype.getCourseId = function () {
	        return this.ngAppointmentReasonUsersource.read().selectedService.isCourse
	            ? this.ngAppointmentReasonUsersource.read().selectedService.id
	            : _4.get(this.ngAppointmentLocationsOrganizersUsersource.read(), 'selectedCourse.id', undefined);
	    };
	    AppointmentsCommandServant.prototype.getCourseOrServiceID = function () {
	        var data = {};
	        var course_id = this.getCourseId();
	        var selected_service_id = this.ngAppointmentReasonUsersource.read().selectedService.id;
	        if (this.ngAppointmentReasonUsersource.read().selectedService.isCourse) {
	            data.course_id = selected_service_id;
	        }
	        else {
	            data.student_service_id = selected_service_id;
	        }
	        if (course_id) {
	            data.course_id = course_id;
	        }
	        return data;
	    };
	    AppointmentsCommandServant.prototype._selectedAppointmentTypeValues = function () {
	        var params = {};
	        var selectedServiceId = this.ngAppointmentReasonUsersource.read().selectedService.id;
	        params.appointment_type_id = this.ngAppointmentReasonUsersource.read().selectedType.id;
	        params.course_id = this.getCourseId();
	        if (!this.ngAppointmentReasonUsersource.read().selectedService.isCourse) {
	            params.student_service_id = selectedServiceId;
	        }
	        return params;
	    };
	    AppointmentsCommandServant.prototype.selectedOrganizerIds = function () {
	        var selectedOrganizers = this.ngAppointmentLocationsOrganizersUsersource.read().selectedOrganizers;
	        var selectedLocation = this.ngAppointmentLocationsOrganizersUsersource.read().selectedLocation;
	        var selectedCourse = this.ngAppointmentLocationsOrganizersUsersource.read().selectedCourse;
	        var selectedOrganizerIds = '';
	        if (_4.size(selectedOrganizers)) {
	            selectedOrganizerIds = _4.join(_4.map(selectedOrganizers, function (organizer) { return organizer.id; }), ',');
	        }
	        else if (!_4.isNil(selectedCourse) && !_4.isEmpty(selectedCourse)) {
	            selectedOrganizerIds = _4.join(_4.map(selectedCourse.organizers, function (organizer) { return organizer.id; }), ',');
	        }
	        else {
	            selectedOrganizerIds = _4.join(_4.map(selectedLocation.organizers, function (organizer) { return organizer.id; }), ',');
	        }
	        return selectedOrganizerIds;
	    };
	    return AppointmentsCommandServant;
	}());
	exports.AppointmentsCommandServant = AppointmentsCommandServant;


/***/ }),
/* 83 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var moment = __webpack_require__(2);
	var AppointmentsconfirmServant = /** @class */ (function () {
	    function AppointmentsconfirmServant(ngAppointmentsAvailableTimesDatasource, ngAppointmentAvailableTimesUsersource, ngUpcomingAppointmentsDatasource, ngAppointmentReasonUsersource, ngConfirmAppointmentModel, appointmentCampaignConstant, ngAppointmentsCommandServant) {
	        this.ngAppointmentsAvailableTimesDatasource = ngAppointmentsAvailableTimesDatasource;
	        this.ngAppointmentAvailableTimesUsersource = ngAppointmentAvailableTimesUsersource;
	        this.ngUpcomingAppointmentsDatasource = ngUpcomingAppointmentsDatasource;
	        this.ngAppointmentReasonUsersource = ngAppointmentReasonUsersource;
	        this.ngConfirmAppointmentModel = ngConfirmAppointmentModel;
	        this.appointmentCampaignConstant = appointmentCampaignConstant;
	        this.ngAppointmentsCommandServant = ngAppointmentsCommandServant;
	    }
	    Object.defineProperty(AppointmentsconfirmServant.prototype, "appointmentInvitationConfirmData", {
	        get: function () {
	            var invitation_id = this.appointmentCampaignConstant.campaignInvitationId;
	            var _a = this.appointmentsConformationData, organizer_id = _a.organizer_id, start_time = _a.start_time, end_time = _a.end_time, comments = _a.comments, student_mobile_number = _a.student_mobile_number, send_email_reminder = _a.send_email_reminder, send_sms_reminder = _a.send_sms_reminder;
	            var organizer_slot = moment(start_time).unix() + "_" + moment(end_time).unix();
	            return {
	                invitation_id: invitation_id,
	                organizer_slot: organizer_slot,
	                organizer_id: organizer_id,
	                comments: comments,
	                student_mobile_number: student_mobile_number,
	                send_email_reminder: send_email_reminder,
	                send_sms_reminder: send_sms_reminder
	            };
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(AppointmentsconfirmServant.prototype, "appointmentsConformationData", {
	        get: function () {
	            var selectedTimeDetails = this.ngAppointmentAvailableTimesUsersource.read().selectedTimeDetails;
	            var organizer_id = selectedTimeDetails.available.id;
	            var start_time = selectedTimeDetails.begin_time;
	            var end_time = selectedTimeDetails.end_time;
	            var group_appointment_id = selectedTimeDetails.group_appointment_id;
	            var location_id = selectedTimeDetails.location_id;
	            var appointment_type = this.ngAppointmentReasonUsersource.read().selectedType.id;
	            var send_email_reminder = this.ngConfirmAppointmentModel.confirmAppointmentReminderOptions.isSendEmail;
	            var send_sms_reminder = this.ngConfirmAppointmentModel.confirmAppointmentReminderOptions.isSendTextMessage;
	            var comments = this.ngConfirmAppointmentModel.Comments;
	            var student_mobile_number = this.ngConfirmAppointmentModel.phoneNumber;
	            var serviceAndCourseData = this.ngAppointmentsCommandServant.getCourseOrServiceID();
	            var data = {};
	            if (group_appointment_id >= 0) {
	                data.group_appointment_id = group_appointment_id;
	            }
	            return tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({ organizer_id: organizer_id,
	                start_time: start_time,
	                end_time: end_time,
	                location_id: location_id,
	                send_email_reminder: send_email_reminder,
	                send_sms_reminder: send_sms_reminder,
	                comments: comments,
	                student_mobile_number: student_mobile_number }, data), serviceAndCourseData), { appointment_type_id: appointment_type });
	        },
	        enumerable: true,
	        configurable: true
	    });
	    AppointmentsconfirmServant.prototype.selectedStaff = function () {
	        var selectedTimeSlot = this.selectedTime();
	        return {
	            first_name: selectedTimeSlot.organizer.first_name,
	            last_name: selectedTimeSlot.organizer.last_name,
	            id: selectedTimeSlot.organizer.id
	        };
	    };
	    AppointmentsconfirmServant.prototype.selectedTime = function () {
	        var availableTimes = this.ngAppointmentsAvailableTimesDatasource.read().availableTimes;
	        var unixtime = moment(this.ngAppointmentsAvailableTimesDatasource.read().selectedTime.date, 'YYYY-MM-DD hh:mm A').unix();
	        return _4.find(availableTimes, { begin_time: unixtime });
	    };
	    AppointmentsconfirmServant.prototype.selectedTimeSlot = function () {
	        var timeObj = this.selectedTime();
	        return {
	            startTime: timeObj.begin_time,
	            endTime: timeObj.end_time,
	            additionalDetails: timeObj.additional_details
	        };
	    };
	    return AppointmentsconfirmServant;
	}());
	exports.AppointmentsconfirmServant = AppointmentsconfirmServant;


/***/ }),
/* 84 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var AppointmentsTabsConfiguration = /** @class */ (function () {
	    function AppointmentsTabsConfiguration() {
	        this._baseAppointmentState = 'my.appointments';
	        this._reasonState = this._baseAppointmentState + ".appointment_reason";
	        this._locationStaffState = this._baseAppointmentState + ".location_staff";
	        this._availableTimesState = this._baseAppointmentState + ".available_times";
	        this._walkInTimesState = this._baseAppointmentState + ".walkin_times";
	        this._alternateTimesState = this._baseAppointmentState + ".alternate_appointment_times";
	        this._alternateTimesConfirm = this._baseAppointmentState + ".alternate_appointment_times_confirm";
	        this._confirm = this._baseAppointmentState + ".confirm";
	        this._scheduled = this._baseAppointmentState + ".scheduled";
	    }
	    AppointmentsTabsConfiguration.prototype.configure = function () {
	        AppointmentsTabsConfiguration.TABS = {
	            1: {
	                state: this._reasonState,
	                name: 'Reason',
	                isActiveOnLoad: true,
	                isDisabled: false,
	                isCompleted: false,
	                title: 'Reason',
	                icon: 'bubble_question',
	                previousState: '',
	                nextState: this._locationStaffState,
	                isActive: false
	            },
	            2: {
	                state: this._locationStaffState,
	                name: 'Location & Staff',
	                isActiveOnLoad: false,
	                isDisabled: false,
	                isCompleted: false,
	                title: 'Location and Staff',
	                icon: 'user',
	                previousState: this._reasonState,
	                nextState: this._availableTimesState,
	                isActive: false
	            },
	            3: {
	                state: this._availableTimesState,
	                name: 'Available Times',
	                isActiveOnLoad: false,
	                isDisabled: false,
	                isCompleted: false,
	                title: 'Select available times',
	                icon: 'calender',
	                previousState: this._locationStaffState,
	                nextState: this._confirm,
	                isActive: false
	            },
	            4: {
	                state: this._confirm,
	                name: 'Confirm',
	                isActiveOnLoad: false,
	                isDisabled: false,
	                isCompleted: false,
	                title: 'Confirm appointment',
	                icon: 'check',
	                previousState: this._availableTimesState,
	                nextState: '',
	                isActive: false
	            }
	        };
	    };
	    AppointmentsTabsConfiguration.prototype.resetToDefault = function () {
	        this.configure();
	    };
	    AppointmentsTabsConfiguration.prototype.$get = function (ngAppointmentsAvailableTimesServant) {
	        var _this = this;
	        return {
	            read: function () {
	                return AppointmentsTabsConfiguration.TABS;
	            },
	            stepCompleted: function (step) {
	                AppointmentsTabsConfiguration.TABS[step].isCompleted = true;
	            },
	            resetNextSteps: function (step) {
	                ngAppointmentsAvailableTimesServant.clearWeekOffSet();
	                var nextState = AppointmentsTabsConfiguration.TABS[step].nextState;
	                while (nextState !== '') {
	                    var nextStep = _.find(AppointmentsTabsConfiguration.TABS, {
	                        state: nextState
	                    });
	                    if (!!nextStep) {
	                        nextStep.isCompleted = false;
	                        nextState = nextStep.nextState;
	                    }
	                }
	            },
	            stepInComplete: function (step) {
	                AppointmentsTabsConfiguration.TABS[step].isCompleted = false;
	            },
	            disableStep: function (step) {
	                AppointmentsTabsConfiguration.TABS[step].isDisabled = true;
	            },
	            resetToDefault: function () { return _this.configure(); },
	            states: function () {
	                return {
	                    reason: _this._reasonState,
	                    location: _this._locationStaffState,
	                    availableTimes: _this._availableTimesState,
	                    walkIn: _this._walkInTimesState,
	                    alternateTimes: _this._alternateTimesState,
	                    alternateTimesConfirm: _this._alternateTimesConfirm,
	                    confirm: _this._confirm,
	                    scheduled: _this._scheduled
	                };
	            }
	        };
	    };
	    return AppointmentsTabsConfiguration;
	}());
	exports.AppointmentsTabsConfiguration = AppointmentsTabsConfiguration;


/***/ }),
/* 85 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var AppointmentUsersourceServant = /** @class */ (function () {
	    function AppointmentUsersourceServant(ngAppointmentAvailableTimesUsersource, ngAppointmentLocationsOrganizersUsersource, ngAppointmentReasonUsersource) {
	        this.ngAppointmentAvailableTimesUsersource = ngAppointmentAvailableTimesUsersource;
	        this.ngAppointmentLocationsOrganizersUsersource = ngAppointmentLocationsOrganizersUsersource;
	        this.ngAppointmentReasonUsersource = ngAppointmentReasonUsersource;
	    }
	    Object.defineProperty(AppointmentUsersourceServant.prototype, "isUserBlocked", {
	        get: function () {
	            var locationBlocked = this.ngAppointmentLocationsOrganizersUsersource.read().selectedLocation.is_blocked
	                ? this.ngAppointmentLocationsOrganizersUsersource.read().selectedLocation.is_blocked
	                : false;
	            return this.ngAppointmentReasonUsersource.read().selectedType.is_blocked || locationBlocked;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(AppointmentUsersourceServant.prototype, "canUserSchedule", {
	        get: function () {
	            return this.ngAppointmentLocationsOrganizersUsersource.read().selectedLocation.can_schedule;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(AppointmentUsersourceServant.prototype, "canUserViewWalkins", {
	        get: function () {
	            return this.ngAppointmentLocationsOrganizersUsersource.read().selectedLocation.can_view_dropins;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(AppointmentUsersourceServant.prototype, "canUserRequest", {
	        get: function () {
	            if (_4.has(this.ngAppointmentLocationsOrganizersUsersource.read().selectedLocation, 'can_request')) {
	                return this.ngAppointmentLocationsOrganizersUsersource.read().selectedLocation.can_request;
	            }
	            return this.ngAppointmentReasonUsersource.read().selectedType.can_request;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(AppointmentUsersourceServant.prototype, "errorBlockedText", {
	        get: function () {
	            return this.ngAppointmentLocationsOrganizersUsersource.read().selectedLocation.blocked_reason
	                ? this.ngAppointmentLocationsOrganizersUsersource.read().selectedLocation.blocked_reason
	                : this.ngAppointmentReasonUsersource.read().selectedType.blocked_reason;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    AppointmentUsersourceServant.prototype.getErrorMessageText = function (fallbackMessage) {
	        if (this.isUserBlocked) {
	            return this.errorBlockedText;
	        }
	        return fallbackMessage;
	    };
	    Object.defineProperty(AppointmentUsersourceServant.prototype, "isUserAllowedRoChooseOrganizer", {
	        get: function () {
	            var selectedService = this.ngAppointmentReasonUsersource.read().selectedService;
	            var selectedLocation = this.ngAppointmentLocationsOrganizersUsersource.read().selectedLocation;
	            if (_4.has(selectedLocation, 'deny_students_to_choose_organizer')) {
	                return !selectedLocation.deny_students_to_choose_organizer;
	            }
	            return !selectedService.deny_students_to_choose_organizer;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return AppointmentUsersourceServant;
	}());
	exports.AppointmentUsersourceServant = AppointmentUsersourceServant;


/***/ }),
/* 86 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var moment = __webpack_require__(2);
	var CurrentUserAppointmentsServant = /** @class */ (function () {
	    function CurrentUserAppointmentsServant() {
	    }
	    CurrentUserAppointmentsServant.prototype.studentAppointmentSchedulingInfo = function (data) {
	        var userData = data.user;
	        var student = this._studentInfo(userData);
	        var activeVisits = data.user.active_visits;
	        return tslib_1.__assign(tslib_1.__assign({}, this._studentAppointmentsInfo(userData)), { student: student, activeVisits: this._activeVisits(activeVisits) });
	    };
	    CurrentUserAppointmentsServant.prototype._studentInfo = function (studentData) {
	        var email = studentData.email;
	        var cell_phone = studentData.cell_phone;
	        return { email: email, cell_phone: cell_phone };
	    };
	    CurrentUserAppointmentsServant.prototype._studentAppointmentsInfo = function (studentData) {
	        var next_appointments = this._futureAppointmentsData(studentData);
	        var past_appointments = this._pastAppointmentsData(studentData);
	        var appointment_invitations = this._userAppointmentInvitations(studentData);
	        return { next_appointments: next_appointments, past_appointments: past_appointments, appointment_invitations: appointment_invitations };
	    };
	    CurrentUserAppointmentsServant.prototype._futureAppointmentsData = function (userData) {
	        return this._userAppointmentsData(userData.upcoming_appointments);
	    };
	    CurrentUserAppointmentsServant.prototype._pastAppointmentsData = function (userData) {
	        return this._userAppointmentsData(userData.recent_appointments);
	    };
	    CurrentUserAppointmentsServant.prototype._userAppointmentsData = function (appointmentsData) {
	        return _4.map(appointmentsData, function (appointment) { return ({
	            additional_details: appointment.details,
	            appointment_id: appointment.event_id,
	            appointment_type: appointment.recurrs ? 'Recurring Appointment' : 'One Time Appointment',
	            attendees: appointment.attendees,
	            calendar_instance_id: appointment.instance_id,
	            comments: appointment.comments,
	            end_timestamp: moment(appointment.end_time).unix(),
	            is_cancelled: appointment.status === 'cancelled',
	            location: { id: -1, name: appointment.location },
	            organizers: appointment.staff,
	            start_timestamp: moment(appointment.start_time).unix(),
	            student_can_cancel: appointment.can_cancel,
	            student_services: _4.map(_4.split(appointment.name), function (service, key) { return ({ id: key, name: service }); }),
	            cancellation_lead_time_hours: appointment.cancellation_lead_time_hours,
	            meeting_url_or_phone: appointment.meeting_url_or_phone,
	            course: appointment.course,
	            can_cancel: appointment.can_cancel,
	            can_checkin: appointment.can_checkin,
	            attendance_id: appointment.attendance_id
	        }); });
	    };
	    CurrentUserAppointmentsServant.prototype._userAppointmentInvitations = function (userData) {
	        return _4.map(userData.student_data.appointment_invitations, function (invitation) { return ({
	            id: invitation.id,
	            campaign_note: invitation.campaign_note,
	            appointments_scheduled_so_far: invitation.total_uses,
	            remaining_appointments_for_student: invitation.remaining_uses,
	            creator: { id: invitation.creator.id, first_name: invitation.creator.name, last_name: '' },
	            end_date: invitation.end_time,
	            start_date: invitation.start_time,
	            appointment_type: invitation.type,
	            student_service: _4.head(invitation.services),
	            service_category: undefined,
	            location: invitation.location,
	            organizers: _4.map(invitation.staff, function (staff) { return ({ id: staff.id, first_name: staff.name, last_name: '' }); })
	        }); });
	    };
	    CurrentUserAppointmentsServant.prototype._activeVisits = function (visits) {
	        return _4.map(visits, function (visit) { return (tslib_1.__assign({}, visit)); });
	    };
	    return CurrentUserAppointmentsServant;
	}());
	exports.CurrentUserAppointmentsServant = CurrentUserAppointmentsServant;


/***/ }),
/* 87 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var LocalStorageServant = /** @class */ (function () {
	    function LocalStorageServant(ngAppointmentSchedulingConfiguration) {
	        this.ngAppointmentSchedulingConfiguration = ngAppointmentSchedulingConfiguration;
	        this.storageType = this.ngAppointmentSchedulingConfiguration.config.storage;
	        this._storage = window[this.storageType];
	    }
	    LocalStorageServant.prototype.getItem = function (key) {
	        return JSON.parse(this._storage.getItem(key));
	    };
	    LocalStorageServant.prototype.setItem = function (key, value) {
	        this._storage.setItem(key, JSON.stringify(value));
	    };
	    return LocalStorageServant;
	}());
	exports.LocalStorageServant = LocalStorageServant;


/***/ }),
/* 88 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PrepareAppointmentCampaignServant = /** @class */ (function () {
	    function PrepareAppointmentCampaignServant(ngAppointmentsTabsConfiguration, ngAppointmentReasonUsersource, ngAppointmentLocationsOrganizersUsersource, appointmentCampaignConstant) {
	        this.ngAppointmentsTabsConfiguration = ngAppointmentsTabsConfiguration;
	        this.ngAppointmentReasonUsersource = ngAppointmentReasonUsersource;
	        this.ngAppointmentLocationsOrganizersUsersource = ngAppointmentLocationsOrganizersUsersource;
	        this.appointmentCampaignConstant = appointmentCampaignConstant;
	    }
	    PrepareAppointmentCampaignServant.prototype.prepareAppointmentCampaignConfigData = function (appointmentCampaignRequest) {
	        this._appointmentCampaignConfigData = {
	            appointment_types: [
	                {
	                    id: appointmentCampaignRequest.id,
	                    name: appointmentCampaignRequest.appointment_type,
	                    include_courses: false,
	                    can_request: false,
	                    is_blocked: false,
	                    instructions: {
	                        student_service_category: '',
	                        student_service: '',
	                        location: '',
	                        staff: '',
	                        times: '',
	                        reason_error: '',
	                        location_error: '',
	                        dropin_or_request: ''
	                    },
	                    student_service_categories: undefined,
	                    student_services: [
	                        {
	                            id: appointmentCampaignRequest.student_service.id,
	                            name: appointmentCampaignRequest.student_service.name,
	                            deny_students_to_choose_organizer: false
	                        }
	                    ],
	                    courses: undefined
	                }
	            ],
	            appointment_type_instructions: 'Choose an Appointment Type'
	        };
	        return this._appointmentCampaignConfigData;
	    };
	    PrepareAppointmentCampaignServant.prototype.prepareAppointmentLocationOrganizersData = function (appointmentCampaignRequest) {
	        this.appointmentCampaignConstant.isAppointmentCampaign = true;
	        this.appointmentCampaignConstant.campaignInvitationId = appointmentCampaignRequest.id;
	        this._appointmentLocationOrganizersData = [
	            {
	                id: appointmentCampaignRequest.location.id,
	                name: appointmentCampaignRequest.location.name,
	                can_request: false,
	                can_schedule: true,
	                can_view_dropins: false,
	                weekend_scheduling: true,
	                organizers: _4.map(appointmentCampaignRequest.organizers, function (organizer) { return ({
	                    id: organizer.id,
	                    name: organizer.first_name
	                }); })
	            }
	        ];
	        return this._appointmentLocationOrganizersData;
	    };
	    PrepareAppointmentCampaignServant.prototype.prepareAppointmentWorkflowStepsforCampaignRequest = function () {
	        this._prepareUsersourcesforAppointmentCampaignRequest();
	        this.ngAppointmentsTabsConfiguration.stepCompleted('1');
	        this.ngAppointmentsTabsConfiguration.stepCompleted('2');
	        this.ngAppointmentsTabsConfiguration.disableStep('1');
	        this.ngAppointmentsTabsConfiguration.disableStep('2');
	    };
	    PrepareAppointmentCampaignServant.prototype._prepareUsersourcesforAppointmentCampaignRequest = function () {
	        this.ngAppointmentReasonUsersource.set('selectedType', _4.head(this._appointmentCampaignConfigData.appointment_types));
	        this.ngAppointmentReasonUsersource.set('selectedService', _4.head(this.ngAppointmentReasonUsersource.read().selectedType.student_services));
	        this.ngAppointmentLocationsOrganizersUsersource.set('selectedLocation', _4.head(this._appointmentLocationOrganizersData));
	    };
	    return PrepareAppointmentCampaignServant;
	}());
	exports.PrepareAppointmentCampaignServant = PrepareAppointmentCampaignServant;


/***/ }),
/* 89 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var moment = __webpack_require__(2);
	var MyAppointmentsService = /** @class */ (function () {
	    function MyAppointmentsService(loadUpcomingAppointmentsCommand, ngUpcomingAppointmentsQuery, ngAppointmentRemindersServant, ngLocalStorageServant) {
	        this.loadUpcomingAppointmentsCommand = loadUpcomingAppointmentsCommand;
	        this.ngUpcomingAppointmentsQuery = ngUpcomingAppointmentsQuery;
	        this.ngAppointmentRemindersServant = ngAppointmentRemindersServant;
	        this.ngLocalStorageServant = ngLocalStorageServant;
	        this.isAppointmentsError = false;
	        this.isApptsLoading = true;
	        this.isUpcomingAppointmentsAvailable = true;
	        this.isPastAppointmentsAvailable = true;
	    }
	    MyAppointmentsService.prototype.loadUpcomingAppoinments = function () {
	        var _this = this;
	        this.showPastAppointments = _4.isUndefined(this.showPastAppointments) ? true : this.showPastAppointments;
	        this.showAppointmentRequests = _4.isUndefined(this.showAppointmentRequests) ? true : this.showAppointmentRequests;
	        this.loadUpcomingAppointmentsCommand()
	            .then(function () {
	            _this.isApptsLoading = false;
	            _this.isUpcomingAppointmentsAvailable =
	                _this.ngUpcomingAppointmentsQuery.result(_this.showNextMonthAppointmentsOnly).upcomingAppointments.length > 0;
	            _this.isPastAppointmentsAvailable = _this.ngUpcomingAppointmentsQuery.result().pastAppointments.length > 0;
	            _this.upcomingAppointments = !!_this.showNextMonthAppointmentsOnly
	                ? _this.filterUpcomingAppointments()
	                : _this.ngUpcomingAppointmentsQuery.result().upcomingAppointments;
	            var wereAppointmentgrowlersShown = !!_this.ngLocalStorageServant.getItem('appointment-growlers-displayed');
	            if (!!_this.showReminders && !wereAppointmentgrowlersShown) {
	                _this.ngLocalStorageServant.setItem('appointment-growlers-displayed', true);
	                _this.ngAppointmentRemindersServant.generateUpcomingAppointmentReminders();
	                _this.ngAppointmentRemindersServant.generateAppointmentRequestReminders();
	            }
	        })
	            .catch(function () {
	            _this.isApptsLoading = false;
	            _this.isAppointmentsError = true;
	        })
	            .finally(function () {
	            _this.isApptsLoading = false;
	        });
	    };
	    MyAppointmentsService.prototype.filterUpcomingAppointments = function () {
	        return _4.take(_4.filter(this.ngUpcomingAppointmentsQuery.result().upcomingAppointments, function (appointment) {
	            var startTime = moment.unix(appointment.start_timestamp);
	            return startTime.diff(moment(), 'days') <= 30;
	        }), 5);
	    };
	    return MyAppointmentsService;
	}());
	exports.MyAppointmentsService = MyAppointmentsService;


/***/ }),
/* 90 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_datasource_1 = __webpack_require__(9);
	exports.AlternateAppointmentTimesUsersourceFactory = function () {
	    return new utility_ts_datasource_1.Usersource({
	        availability: '',
	        selectedLocation: {}
	    });
	};


/***/ }),
/* 91 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_datasource_1 = __webpack_require__(9);
	exports.AppointmentAvailableTimesUsersourceFactory = function () {
	    return new utility_ts_datasource_1.Usersource({
	        selectedTime: {},
	        selectedTimeDetails: {}
	    });
	};


/***/ }),
/* 92 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_datasource_1 = __webpack_require__(9);
	exports.AppointmentLocationsOrganizersUsersourceFactory = function () {
	    return new utility_ts_datasource_1.Usersource({
	        selectedLocation: {},
	        selectedCourse: {},
	        selectedOrganizers: []
	    });
	};


/***/ }),
/* 93 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_datasource_1 = __webpack_require__(9);
	exports.AppointmentReasonUsersourceFactory = function () {
	    return new utility_ts_datasource_1.Usersource({
	        selectedCategory: {},
	        selectedService: {},
	        selectedType: {}
	    });
	};


/***/ }),
/* 94 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var MyScheduleDetailController = /** @class */ (function () {
	    function MyScheduleDetailController($state, ngScheduleQuery, appConfigModel) {
	        this.$state = $state;
	        this.ngScheduleQuery = ngScheduleQuery;
	        this.appConfigModel = appConfigModel;
	        this.sectionLabel = 'Section';
	    }
	    MyScheduleDetailController.prototype.$onInit = function () {
	        this._changeDetection();
	        this.sectionLabel = this.appConfigModel.getConfigProperty('section_label') || 'Section';
	    };
	    MyScheduleDetailController.prototype.$onChanges = function () {
	        this._changeDetection();
	    };
	    MyScheduleDetailController.prototype.refresh = function () {
	        var _this = this;
	        this.models = {
	            schedule: this.course,
	            displayData: {},
	            startDate: this.course.class_start_dt.format('MMMM DD, YYYY'),
	            endDate: this.course.class_end_dt.format('MMMM DD, YYYY')
	        };
	        this.flags = {
	            courseDescriptionLong: false,
	            isMobile: this.isMobilePlatform(),
	            isPhysicalCourse: !this.ngScheduleQuery.courseIsNotPhysical(this.course),
	            alreadyAdded: true
	        };
	        _4.forEach(this.models.schedule._displayData, function (display, i) {
	            _this.models.displayData[i] = _this.getLocationLink(display);
	        });
	    };
	    MyScheduleDetailController.prototype.getPlatform = function () {
	        if (_4.isUndefined(window.ionic)) {
	            return 'desktop';
	        }
	        return window.ionic.Platform.isAndroid() ? 'android' : 'ios';
	    };
	    MyScheduleDetailController.prototype.isMobilePlatform = function () {
	        return this.getPlatform() !== 'desktop';
	    };
	    MyScheduleDetailController.prototype.isOnLocationClass = function (courseType) {
	        return courseType === 'campus';
	    };
	    /*
	     * This is a string concatenation hack for iOS since it doesn't allow for non-http
	     * links to be concatenated--it ignores them so we have to run this through university-text
	     * to parse the html and fool iOS into thinking it's not a concatenated string.
	     */
	    MyScheduleDetailController.prototype.getLocationLink = function (courseTime) {
	        if (!_.isEmpty(courseTime.locationText) && !_.isEmpty(courseTime.locationLink[this.getPlatform()])) {
	            return "<p class=\"text-link\" ng-click=\"$ctrl.openLocation(courseTime)\">\n      " + courseTime.locationText + "</p>";
	        }
	        return "<p>" + courseTime.locationText + "</p>";
	    };
	    MyScheduleDetailController.prototype.openLocation = function (courseTime) {
	        if (utility_ts_platform_1.PlatformUtility.isAndroid()) {
	            window.open(courseTime.locationLink[this.getPlatform()], '_system');
	        }
	        else {
	            window.open(courseTime.locationLink[this.getPlatform()]);
	        }
	    };
	    MyScheduleDetailController.prototype.addToCalendar = function () {
	        var courseCD = _4.get(this.course, '_course.cd', '');
	        var courseTitle = _4.get(this.course, '_course.title', '');
	        var addCalendarObject = {
	            title: courseCD + ": " + courseTitle,
	            courses: [this.course]
	        };
	        this.$state.go('my.add-to-calendar', { addCalendarObject: addCalendarObject });
	    };
	    MyScheduleDetailController.prototype.hasLocationURL = function (courseTime) {
	        return !_.isEmpty(courseTime.locationText) && !_.isEmpty(courseTime.locationLink[this.getPlatform()]);
	    };
	    MyScheduleDetailController.prototype._changeDetection = function () {
	        if (!_4.isEmpty(this.course)) {
	            this.refresh();
	        }
	    };
	    return MyScheduleDetailController;
	}());
	exports.MyScheduleDetailController = MyScheduleDetailController;


/***/ }),
/* 95 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MyScheduleListController = /** @class */ (function () {
	    function MyScheduleListController($state, $stateParams, ngScheduleQuery, calendarTimeFn, myScheduleHelperFn, ngCalendarIntegrationService, log) {
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	        this.ngScheduleQuery = ngScheduleQuery;
	        this.calendarTimeFn = calendarTimeFn;
	        this.myScheduleHelperFn = myScheduleHelperFn;
	        this.ngCalendarIntegrationService = ngCalendarIntegrationService;
	        this.log = log;
	        this.flags = {
	            selectedTab: _4.isEmpty($stateParams.viewType) ? 'list' : $stateParams.viewType,
	            hasPhysicalCourses: false
	        };
	        this.ngCalendarIntegrationService.callMethod = this.addAllCourseToCalendar();
	        var sat = moment().startOf('week').subtract(1, 'day').format('M/D');
	        var fri = moment().endOf('week').subtract(1, 'day').format('M/D');
	        this.currentTermMsg = "Your schedule for " + sat + "-" + fri;
	    }
	    MyScheduleListController.prototype.$onInit = function () {
	        this.refresh();
	    };
	    MyScheduleListController.prototype.$onChanges = function () {
	        this.refresh();
	    };
	    MyScheduleListController.prototype.refresh = function () {
	        var _this = this;
	        this.schedule = _4.filter(_4.sortBy(this.ngScheduleQuery.getSectionsByTerm(this.term), '_course.cd'), function (section) { return _this.ngScheduleQuery.isRegisteredCourse(section); });
	        this.calendarMessage = this.ngScheduleQuery.isCurrentTerm(this.term)
	            ? this.currentTermMsg
	            : "Previewing schedule for all classes throughout this term";
	        this.calendarTimes = this.calendarTimeFn.importTimes(this.myScheduleHelperFn.convertScheduleTimesForCalendar(this.schedule, this.ngScheduleQuery.isCurrentTerm(this.term)));
	        this.temporalSchedule = this.ngScheduleQuery.getTemporalSectionsByTerm(this.term);
	        this.flags.hasPhysicalCourses = !_4.isEmpty(this.temporalSchedule);
	        this.ngCalendarIntegrationService.showButton = !_4.isEmpty(this.temporalSchedule);
	    };
	    MyScheduleListController.prototype.isSelectedTab = function (tab) {
	        return tab === this.flags.selectedTab;
	    };
	    MyScheduleListController.prototype.selectTab = function (event) {
	        var tab = _4.get(event, 'detail.value', this.$stateParams.viewType);
	        this.flags.selectedTab = tab || 'list';
	        this.$state.go('my.courseSchedule.term', { term: this.term, viewType: tab });
	    };
	    MyScheduleListController.prototype.goToDetailView = function (time) {
	        this.$state.go('my.courseSchedule.detail', {
	            id: time.appId
	        });
	    };
	    MyScheduleListController.prototype.addAllCourseToCalendar = function () {
	        var _this = this;
	        return function () {
	            _this.$state.go('my.add-to-calendar', {
	                addCalendarObject: {
	                    title: 'Add All Courses',
	                    courses: _this.temporalSchedule
	                }
	            });
	        };
	    };
	    return MyScheduleListController;
	}());
	exports.MyScheduleListController = MyScheduleListController;


/***/ }),
/* 96 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var moment = __webpack_require__(2);
	var utility_ts_orm_1 = __webpack_require__(3);
	var ScheduleQuery = /** @class */ (function () {
	    function ScheduleQuery(DisplayDataBuilder, ngScheduleDatastore) {
	        this.DisplayDataBuilder = DisplayDataBuilder;
	        this.ngScheduleDatastore = ngScheduleDatastore;
	        utility_ts_orm_1.Query.registerQuery(this, ngScheduleDatastore);
	        this._studentEnrolledStrings = ['REGISTERED', 'IN_PROGRESS', 'COMPLETED'];
	    }
	    ScheduleQuery.prototype.run = function () {
	        var _this = this;
	        var schedule = _4.first(this.ngScheduleDatastore.query(function (schedule) { return true; }));
	        if (_4.isEmpty(schedule)) {
	            this._result = {};
	            return this;
	        }
	        _4.each(schedule.section_time, function (section_time) {
	            section_time._location =
	                _4.find(schedule.location, function (location) { return section_time.location === location.id; }) || '';
	        });
	        _4.each(schedule.section, function (section) {
	            section._sectionTime = _4.sortBy(_4.filter(schedule.section_time, function (section_time) { return section_time.section === section.id; }), function (section_time) { return section_time.day_of_week; });
	            section._course = _4.find(schedule.course, function (course) { return section.course === course.id; });
	            section._sectionLabels = _4.find(schedule.section_labels, function (section_labels) { return section_labels.id === section.id; });
	            section._displayData = _this.DisplayDataBuilder.buildDisplayData(section._sectionTime);
	        });
	        this._result = schedule;
	        return this;
	    };
	    Object.defineProperty(ScheduleQuery.prototype, "model", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ScheduleQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ScheduleQuery.prototype, "currentTerm", {
	        get: function () {
	            var now = moment();
	            return _4.find(this.result.term, function (term) { return now.isBetween(term.term_start_dt, term.term_end_dt, 'day', '[]'); });
	        },
	        enumerable: true,
	        configurable: true
	    });
	    ScheduleQuery.prototype.isCurrentTerm = function (termId) {
	        return this.currentTerm && this.currentTerm.id === termId;
	    };
	    ScheduleQuery.prototype.reset = function () {
	        this._result = {};
	        this._term = undefined;
	    };
	    ScheduleQuery.prototype.getSections = function () {
	        return this._result.section;
	    };
	    ScheduleQuery.prototype.getTerms = function () {
	        return _4.sortBy(this._result.term, function (term) { return term.term_start_dt.format('X'); });
	    };
	    ScheduleQuery.prototype.getTermText = function (termId) {
	        var term = _4.find(this._result.term, function (resultTerm) { return resultTerm.id === termId; });
	        return _4.isEmpty(term) ? '' : term.name;
	    };
	    ScheduleQuery.prototype.getSectionsByTerm = function (termId) {
	        return _4.filter(this._result.section, function (section) { return section.term === termId; });
	    };
	    ScheduleQuery.prototype.isRegisteredCourse = function (section) {
	        return this._studentEnrolledStrings.includes(this._result.section_status[section.id].status);
	    };
	    ScheduleQuery.prototype.getCourseDetail = function (id) {
	        return _4.find(this._result.section, function (section) { return section.id === parseInt(id, 10); });
	    };
	    ScheduleQuery.prototype.getTemporalSections = function () {
	        var _this = this;
	        return _4.filter(this._result.section, function (section) { return !_this.courseIsNotPhysical(section); });
	    };
	    ScheduleQuery.prototype.getTemporalSectionsByTerm = function (termID) {
	        var _this = this;
	        return _4.filter(this.getSectionsByTerm(termID), function (section) { return !_this.courseIsNotPhysical(section); });
	    };
	    ScheduleQuery.prototype.courseIsNotPhysical = function (course) {
	        /* tslint:disable */
	        return _4.isEmpty(course._sectionTime) || _4.first(course._sectionTime).day_of_week === 8;
	        /* tslint:enable */
	    };
	    ScheduleQuery.prototype.setPersistantTerm = function (termId) {
	        this._term = termId;
	        return this._term;
	    };
	    ScheduleQuery.prototype.getPersistantTerm = function () {
	        return this._term;
	    };
	    return ScheduleQuery;
	}());
	exports.ScheduleQuery = ScheduleQuery;


/***/ }),
/* 97 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var holds_attention_servant_1 = __webpack_require__(56);
	var HoldListQuery = /** @class */ (function () {
	    function HoldListQuery(ngHoldDatastore, holdsConfigService) {
	        this.ngHoldDatastore = ngHoldDatastore;
	        this.holdsConfigService = holdsConfigService;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngHoldDatastore);
	    }
	    HoldListQuery.prototype._priorityFeedObjectBuilder = function (hold) {
	        var title = hold.name;
	        var icon = holds_attention_servant_1.HoldsAttentionServant.getHoldIcon(hold);
	        var action = holds_attention_servant_1.HoldsAttentionServant.getHoldRoutingDetails(hold, this.holdsConfigService);
	        return {
	            icon: icon,
	            action: action,
	            text: { title: title, subTitle: '' },
	            isOverdue: false,
	            isActive: true
	        };
	    };
	    HoldListQuery.prototype.run = function () {
	        var _this = this;
	        this._result = {
	            needsAttention: _4.map(this.ngHoldDatastore.query(function (hold) { return holds_attention_servant_1.HoldsAttentionServant.isHoldThatRequiresAttention(hold); }), function (hold) { return _this._priorityFeedObjectBuilder(hold); }),
	            holds: _4.map(this.ngHoldDatastore.query(function (hold) { return holds_attention_servant_1.HoldsAttentionServant.isRegularHold(hold); }), function (hold) { return _this._priorityFeedObjectBuilder(hold); }),
	            pastHolds: _4.map(this.ngHoldDatastore.query(function (hold) { return holds_attention_servant_1.HoldsAttentionServant.isPastHold(hold); }), function (hold) { return _this._priorityFeedObjectBuilder(hold); })
	        };
	        return this;
	    };
	    HoldListQuery.prototype.hasHolds = function () {
	        return !_4.isEmpty(_4.get(this._result, 'needsAttention', [])) || !_4.isEmpty(_4.get(this._result, 'holds', []));
	    };
	    Object.defineProperty(HoldListQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return HoldListQuery;
	}());
	exports.HoldListQuery = HoldListQuery;


/***/ }),
/* 98 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var holds_attention_servant_1 = __webpack_require__(56);
	var HoldPriorityFeedQuery = /** @class */ (function () {
	    function HoldPriorityFeedQuery(ngHoldDatastore, holdsConfigService) {
	        this.ngHoldDatastore = ngHoldDatastore;
	        this.holdsConfigService = holdsConfigService;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngHoldDatastore);
	    }
	    HoldPriorityFeedQuery.prototype._priorotyFeedObjectBuilder = function (needsAttention, regular) {
	        var title = this._priorityFeedTitleBuilder(needsAttention.length, regular.length);
	        var action = this._priorityFeedAction(needsAttention, regular);
	        var icon = holds_attention_servant_1.HoldsAttentionServant.getHoldIcon(_4.first(needsAttention));
	        var subTitle = this._count === 1 ? "Here's how to resolve it" : "Here's how to resolve them";
	        if (this._needsAttentionCount > 0) {
	            subTitle += " as soon as possible";
	        }
	        return { text: { title: title, subTitle: subTitle }, action: action, icon: icon };
	    };
	    HoldPriorityFeedQuery.prototype.run = function () {
	        var needsAttentionHolds = this.ngHoldDatastore.query(function (holdItem) {
	            return holds_attention_servant_1.HoldsAttentionServant.isHoldThatRequiresAttention(holdItem);
	        });
	        var regularHolds = this.ngHoldDatastore.query(function (holdItem) { return holds_attention_servant_1.HoldsAttentionServant.isRegularHold(holdItem); });
	        this._count = needsAttentionHolds.length + regularHolds.length;
	        this._needsAttentionCount = needsAttentionHolds.length;
	        this._hasAttentionHold = !_4.isEmpty(needsAttentionHolds);
	        var isActive = this._count > 0;
	        var _a = this._priorotyFeedObjectBuilder(needsAttentionHolds, regularHolds), action = _a.action, text = _a.text, icon = _a.icon;
	        this._result = {
	            icon: icon,
	            action: action,
	            text: text,
	            isOverdue: false,
	            isActive: isActive
	        };
	        return this;
	    };
	    HoldPriorityFeedQuery.prototype._priorityFeedTitleBuilder = function (needsAttention, regularHolds) {
	        var hasNeedsAttentionHold = needsAttention > 0;
	        var hasRegularHold = regularHolds > 0;
	        var hasBothHoldTypes = hasNeedsAttentionHold && hasRegularHold;
	        if (!hasNeedsAttentionHold && !hasRegularHold) {
	            return "";
	        }
	        var hasManyHighPriorityHolds = needsAttention > 1;
	        var hasManyLowPriorityHolds = regularHolds > 1;
	        var needsAttentionHoldText = needsAttention + " hold" + (hasManyHighPriorityHolds ? 's' : '') + " " +
	            ("that need" + (hasManyHighPriorityHolds ? '' : 's') + " attention");
	        var regularHoldText = regularHolds + " " + (hasNeedsAttentionHold ? 'additional ' : '') + ("hold" + (hasManyLowPriorityHolds ? 's' : ''));
	        return ("You have " + (hasNeedsAttentionHold ? needsAttentionHoldText : '') +
	            ("" + (hasBothHoldTypes ? ' and ' : '')) +
	            ("" + (hasRegularHold ? regularHoldText : '')));
	    };
	    HoldPriorityFeedQuery.prototype._priorityFeedAction = function (needsAttention, reulgarHolds) {
	        if (this._count !== 1) {
	            return { state: this.holdsConfigService.centerRoute };
	        }
	        var currentHold;
	        if (reulgarHolds.length === 1) {
	            currentHold = _4.first(reulgarHolds);
	        }
	        if (needsAttention.length === 1) {
	            currentHold = _4.first(needsAttention);
	        }
	        return holds_attention_servant_1.HoldsAttentionServant.getHoldRoutingDetails(currentHold, this.holdsConfigService);
	    };
	    Object.defineProperty(HoldPriorityFeedQuery.prototype, "count", {
	        get: function () {
	            return this._count;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(HoldPriorityFeedQuery.prototype, "needsAttentionCount", {
	        get: function () {
	            return this._needsAttentionCount;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(HoldPriorityFeedQuery.prototype, "requiresAttention", {
	        get: function () {
	            return this._hasAttentionHold;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(HoldPriorityFeedQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return HoldPriorityFeedQuery;
	}());
	exports.HoldPriorityFeedQuery = HoldPriorityFeedQuery;


/***/ }),
/* 99 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MajorTileFunction = /** @class */ (function () {
	    function MajorTileFunction(saveMajorCommand, unsaveMajorCommand) {
	        this.saveMajorCommand = saveMajorCommand;
	        this.unsaveMajorCommand = unsaveMajorCommand;
	    }
	    MajorTileFunction.prototype.addFavorite = function (major) {
	        if (major._isUpdating) {
	            return;
	        }
	        major.is_favorite = !major.is_favorite;
	        major._isUpdating = true;
	        if (major.is_favorite) {
	            this.saveMajorCommand(major)
	                .then(function (updatedMajor) {
	                major.favorite_id = updatedMajor.favorite_id;
	                major._isUpdating = false;
	            })
	                .finally(function () {
	                major._isUpdating = false;
	            });
	        }
	        else {
	            this.unsaveMajorCommand(major).finally(function () {
	                major._isUpdating = false;
	            });
	        }
	    };
	    MajorTileFunction.prototype.showAverageSalary = function (major) {
	        return major && !_4.isUndefined(major.salary_trend_max) && major.salary_trend_max !== '$0k';
	    };
	    MajorTileFunction.prototype.buildCareers = function (careerPayload) {
	        var fallbackCareerData = {
	            hiring_demand: 'N/A',
	            salaryMin: 'N/A',
	            salaryMax: 'N/A',
	            topSkills: [],
	            experience: [],
	            education: []
	        };
	        _4.map(careerPayload.allCareers, function (career) {
	            var matchedCareer = _4.find(careerPayload.careersData, function (detail) {
	                return detail.careerId === career.id;
	            }) || fallbackCareerData;
	            var hiring_demand = matchedCareer.hiring_demand, salaryMin = matchedCareer.salaryMin, salaryMax = matchedCareer.salaryMax, topSkills = matchedCareer.topSkills, experience = matchedCareer.experience, education = matchedCareer.education;
	            return _4.merge(career, { hiring_demand: hiring_demand, salaryMin: salaryMin, salaryMax: salaryMax, topSkills: topSkills, experience: experience, education: education });
	        });
	    };
	    return MajorTileFunction;
	}());
	exports.MajorTileFunction = MajorTileFunction;


/***/ }),
/* 100 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var SectionRequisites = /** @class */ (function () {
	    function SectionRequisites() {
	    }
	    SectionRequisites.ONE_TO_ONE = 'one_to_one';
	    SectionRequisites.ONE_TO_MANY = 'one_to_many';
	    return SectionRequisites;
	}());
	exports.SectionRequisites = SectionRequisites;


/***/ }),
/* 101 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ParseDictionaryServant = /** @class */ (function () {
	    function ParseDictionaryServant() {
	    }
	    ParseDictionaryServant.transformKeys = function (configObject) {
	        var transformKeysToSentence = _4.mapKeys(configObject, function (o, k) {
	            return _4.capitalize(_4.words(k).join(' '));
	        });
	        var sortByKeys = _4.sortBy(_4.toPairs(transformKeysToSentence), function (item) { return item[0]; });
	        return _4.fromPairs(sortByKeys);
	    };
	    return ParseDictionaryServant;
	}());
	exports.ParseDictionaryServant = ParseDictionaryServant;


/***/ }),
/* 102 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var moment = __webpack_require__(2);
	var PathTask = /** @class */ (function () {
	    function PathTask(task) {
	        task.id = task.event + "_" + task.repeated_by;
	        task.base_ts = moment(task.base_ts);
	        task.start_ts = moment(task.start_ts);
	        task.end_ts = moment(task.end_ts);
	        _4.merge(this, task);
	    }
	    PathTask.build = function (task) {
	        return new PathTask(task);
	    };
	    return PathTask;
	}());
	exports.PathTask = PathTask;


/***/ }),
/* 103 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PathTopic = /** @class */ (function () {
	    function PathTopic(item) {
	        _.merge(this, item);
	    }
	    PathTopic.build = function (item) {
	        return new PathTopic(item);
	    };
	    return PathTopic;
	}());
	exports.PathTopic = PathTopic;


/***/ }),
/* 104 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var TimeFormatterFunction = /** @class */ (function () {
	    function TimeFormatterFunction() {
	    }
	    TimeFormatterFunction.getHoursMinutesSecondsPeriod = function (momentObj) {
	        return momentObj ? momentObj.format('h:mm:ss a') : '';
	    };
	    TimeFormatterFunction.defaultTime = function (momentObj) {
	        return momentObj ? momentObj.format('ddd, MMM D') : '';
	    };
	    TimeFormatterFunction.monthAndDate = function (momentObj) {
	        return momentObj ? momentObj.format('MMMM D') : '';
	    };
	    TimeFormatterFunction.monthAndDateAndYear = function (momentObj) {
	        return momentObj ? momentObj.format('MMMM D, YYYY') : '';
	    };
	    return TimeFormatterFunction;
	}());
	exports.TimeFormatterFunction = TimeFormatterFunction;


/***/ }),
/* 105 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_js_enumeration_1 = __webpack_require__(33);
	exports.AuthTypeEnum = utility_js_enumeration_1.EnumerationBuilder.useDefinitionAsEnum('AuthTypeEnum', {
	    NATIVE: {
	        name: 'native',
	        logoutMethod: 'delete',
	        loginInterface: 'authentication.form'
	    },
	    CAS: {
	        name: 'cas',
	        logoutMethod: 'get',
	        loginInterface: 'authentication.remote'
	    },
	    LDAP: {
	        name: 'ldap',
	        logoutMethod: 'delete',
	        loginInterface: 'authentication.form'
	    },
	    SAML2: {
	        name: 'saml2',
	        logoutMethod: 'delete',
	        loginInterface: 'authentication.remote'
	    },
	    SAML2_V2: {
	        name: 'saml2v2',
	        logoutMethod: 'get',
	        loginInterface: 'authentication.remote'
	    },
	    INCOMMON: {
	        name: 'incommon',
	        logoutMethod: 'delete',
	        loginInterface: 'authentication.remote'
	    },
	    CENTRAL: {
	        name: 'central',
	        logoutMethod: 'get',
	        loginInterface: 'authentication.remote'
	    }
	});


/***/ }),
/* 106 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var ReportConfigService = /** @class */ (function () {
	    function ReportConfigService(loadApptSummaryConfigsCommand, ngApptSummaryConfigModel, loadHandRaiseConfigsCommand, ngHandRaiseConfigModel, loadNotesConfigsCommand, ngNotesConfigModel, loadProgressReportsConfigsCommand, ngProgressReportsConfigModel, ngReportConfigsQuery) {
	        this.loadApptSummaryConfigsCommand = loadApptSummaryConfigsCommand;
	        this.ngApptSummaryConfigModel = ngApptSummaryConfigModel;
	        this.loadHandRaiseConfigsCommand = loadHandRaiseConfigsCommand;
	        this.ngHandRaiseConfigModel = ngHandRaiseConfigModel;
	        this.loadNotesConfigsCommand = loadNotesConfigsCommand;
	        this.ngNotesConfigModel = ngNotesConfigModel;
	        this.loadProgressReportsConfigsCommand = loadProgressReportsConfigsCommand;
	        this.ngProgressReportsConfigModel = ngProgressReportsConfigModel;
	        this.ngReportConfigsQuery = ngReportConfigsQuery;
	    }
	    ReportConfigService.prototype.getReportConfigs = function () {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            return tslib_1.__generator(this, function (_a) {
	                switch (_a.label) {
	                    case 0:
	                        if (!_4.isEmpty(this.ngApptSummaryConfigModel.read().name)) return [3 /*break*/, 2];
	                        return [4 /*yield*/, this.loadApptSummaryConfigsCommand()];
	                    case 1:
	                        _a.sent();
	                        _a.label = 2;
	                    case 2:
	                        if (!_4.isEmpty(this.ngHandRaiseConfigModel.read().name)) return [3 /*break*/, 4];
	                        return [4 /*yield*/, this.loadHandRaiseConfigsCommand()];
	                    case 3:
	                        _a.sent();
	                        _a.label = 4;
	                    case 4:
	                        if (!_4.isEmpty(this.ngNotesConfigModel.read().name)) return [3 /*break*/, 6];
	                        return [4 /*yield*/, this.loadNotesConfigsCommand()];
	                    case 5:
	                        _a.sent();
	                        _a.label = 6;
	                    case 6:
	                        if (!_4.isEmpty(this.ngProgressReportsConfigModel.read().name)) return [3 /*break*/, 8];
	                        return [4 /*yield*/, this.loadProgressReportsConfigsCommand()];
	                    case 7:
	                        _a.sent();
	                        _a.label = 8;
	                    case 8: return [2 /*return*/, this.ngReportConfigsQuery.result];
	                }
	            });
	        });
	    };
	    return ReportConfigService;
	}());
	exports.ReportConfigService = ReportConfigService;


/***/ }),
/* 107 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	/**
	 * @ui-ng-calendar
	 */
	__webpack_require__(16);
	__webpack_require__(114);
	__webpack_require__(40);
	__webpack_require__(21);
	__webpack_require__(34);
	__webpack_require__(5);
	angular.module('ui-ng-calendar', [
	    'ui-ng-delegate',
	    'ui-ng-popover',
	    'utility-ng-time',
	    'utility-ng-configuration',
	    'utility-ng-interface',
	    'utility-ng-kernel'
	]);
	__webpack_require__(876);
	__webpack_require__(273);
	__webpack_require__(2129);
	__webpack_require__(2133);
	__webpack_require__(2134);
	__webpack_require__(2135);
	__webpack_require__(2130);
	__webpack_require__(2132);
	__webpack_require__(2131);
	__webpack_require__(2138);
	__webpack_require__(2136);
	__webpack_require__(2145);
	__webpack_require__(2142);
	__webpack_require__(2139);
	__webpack_require__(2141);
	__webpack_require__(2150);
	__webpack_require__(2137);
	__webpack_require__(2149);
	__webpack_require__(2143);
	__webpack_require__(2147);
	__webpack_require__(2144);
	__webpack_require__(2148);
	__webpack_require__(2146);
	__webpack_require__(2140);
	__webpack_require__(875);
	__webpack_require__(2152);
	__webpack_require__(877);
	__webpack_require__(2151);
	__webpack_require__(878);
	__webpack_require__(879);
	__webpack_require__(880);
	__webpack_require__(2153);
	__webpack_require__(2154);
	__webpack_require__(1002);
	__webpack_require__(882);
	__webpack_require__(884);
	__webpack_require__(883);
	__webpack_require__(885);
	__webpack_require__(886);
	__webpack_require__(2157);
	__webpack_require__(45);
	__webpack_require__(1003);
	__webpack_require__(2155);
	__webpack_require__(2156);
	__webpack_require__(1004);
	__webpack_require__(2158);
	__webpack_require__(2159);
	__webpack_require__(2160);
	__webpack_require__(2161);
	__webpack_require__(2163);
	__webpack_require__(2165);
	__webpack_require__(2162);
	__webpack_require__(2164);
	__webpack_require__(888);
	__webpack_require__(889);
	__webpack_require__(2167);
	__webpack_require__(892);
	__webpack_require__(891);
	__webpack_require__(2166);
	__webpack_require__(890);
	__webpack_require__(887);
	__webpack_require__(45);
	tslib_1.__exportStar(__webpack_require__(273), exports);
	tslib_1.__exportStar(__webpack_require__(876), exports);
	tslib_1.__exportStar(__webpack_require__(875), exports);
	tslib_1.__exportStar(__webpack_require__(877), exports);
	tslib_1.__exportStar(__webpack_require__(878), exports);
	tslib_1.__exportStar(__webpack_require__(879), exports);
	tslib_1.__exportStar(__webpack_require__(880), exports);
	tslib_1.__exportStar(__webpack_require__(882), exports);
	tslib_1.__exportStar(__webpack_require__(884), exports);
	tslib_1.__exportStar(__webpack_require__(883), exports);
	tslib_1.__exportStar(__webpack_require__(885), exports);
	tslib_1.__exportStar(__webpack_require__(886), exports);
	tslib_1.__exportStar(__webpack_require__(45), exports);
	tslib_1.__exportStar(__webpack_require__(888), exports);
	tslib_1.__exportStar(__webpack_require__(889), exports);
	tslib_1.__exportStar(__webpack_require__(892), exports);
	tslib_1.__exportStar(__webpack_require__(891), exports);
	tslib_1.__exportStar(__webpack_require__(890), exports);
	tslib_1.__exportStar(__webpack_require__(887), exports);
	tslib_1.__exportStar(__webpack_require__(881), exports);
	exports.default = 'ui-ng-calendar';


/***/ }),
/* 108 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var AuthToken = /** @class */ (function () {
	    function AuthToken($http, $q, appConfigModel, _configuration) {
	        this.$http = $http;
	        this.$q = $q;
	        this.appConfigModel = appConfigModel;
	        this._configuration = _configuration;
	        this._expirationTimer = 0;
	        this._hasExpired = true;
	        this._token = '';
	    }
	    AuthToken.prototype.getToken = function () {
	        var _this = this;
	        var deferred = this.$q.defer();
	        if (!this._hasExpired) {
	            deferred.resolve(this._token);
	            return deferred.promise;
	        }
	        this.$http
	            .get(this._configuration.authTokenApi)
	            .then(function (response) {
	            var res = (response.data || {});
	            _this._token = res.access_token;
	            _this._resetExpirationTimer();
	            deferred.resolve(_this._token);
	        })
	            .catch(function (reason) {
	            deferred.reject(reason);
	        });
	        return deferred.promise;
	    };
	    AuthToken.prototype.campusTokenRequest = function (requestConfig) {
	        var _this = this;
	        var deferred = this.$q.defer();
	        this.getToken()
	            .then(function (token) {
	            var config = {
	                url: '',
	                method: 'GET',
	                headers: {
	                    Authorization: 'Bearer ' + token,
	                    isCampusAPI: true
	                }
	            };
	            config = _.merge(config, requestConfig);
	            config.url = _this.appConfigModel.getConfigProperty('core-campus_url') + requestConfig.url;
	            _this.$http(config)
	                .then(function (response) {
	                deferred.resolve(response.data);
	            })
	                .catch(function (error) {
	                deferred.reject(error);
	            });
	        })
	            .catch(function (error) {
	            deferred.reject(error);
	        });
	        return deferred.promise;
	    };
	    AuthToken.prototype._resetExpirationTimer = function () {
	        var _this = this;
	        clearTimeout(this._expirationTimer);
	        this._hasExpired = false;
	        this._expirationTimer = window.setTimeout(function () {
	            clearTimeout(_this._expirationTimer);
	            _this._hasExpired = true;
	        }, this._configuration.tokenExpiryTime * AuthToken.ONE_SECOND);
	    };
	    AuthToken.ONE_SECOND = 1000;
	    return AuthToken;
	}());
	var AuthTokenProvider = /** @class */ (function () {
	    function AuthTokenProvider() {
	        this.configure(AuthTokenProvider.DEFAULTS);
	    }
	    AuthTokenProvider.prototype.configure = function (config) {
	        this._configuration = _.merge(AuthTokenProvider.DEFAULTS, config);
	        return this._configuration;
	    };
	    AuthTokenProvider.prototype.$get = function ($http, $q, appConfigModel) {
	        return new AuthToken($http, $q, appConfigModel, this._configuration);
	    };
	    AuthTokenProvider.DEFAULTS = {
	        tokenExpiryTime: 60,
	        authTokenApi: ''
	    };
	    return AuthTokenProvider;
	}());
	angular.module('utility-ng-auth-token', []).provider('authToken', AuthTokenProvider);
	exports.default = 'utility-ng-auth-token';


/***/ }),
/* 109 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var RegularExpression = /** @class */ (function () {
	    function RegularExpression() {
	    }
	    RegularExpression.COLOR_HEX = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;
	    RegularExpression.COLOR_CSS_RGBA = /^rgb?a\((\d{1,3}),(\d{1,3}),(\d{1,3}),?(\d{1,3})?\)$/i;
	    RegularExpression.PHONE_NUMBER = /\b(\+*\d{1,})*([ |\(.-])*(\d{3})[^\d]*(\d{3})[^\d]*(\d{4})\b/g;
	    RegularExpression.DIGITS = /\d/g;
	    RegularExpression.SANITIZED_STRING = /[\\<>\[\]`\|]|\$[a-z]{1,}|\);|\?[a-z]{1,}=[a-z]{1,}|%[a-z0-9]{1,}|&&/gim;
	    RegularExpression.split = _4.curry(function (regularExpression, value) {
	        return value.split(regularExpression);
	    });
	    RegularExpression.exec = _4.curry(function (regularExpression, value) {
	        return regularExpression.exec(value) || [];
	    });
	    return RegularExpression;
	}());
	exports.RegularExpression = RegularExpression;


/***/ }),
/* 110 */
/***/ (function(module, exports) {

	/* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {module.exports = __webpack_amd_options__;
	
	/* WEBPACK VAR INJECTION */}.call(exports, {}))

/***/ }),
/* 111 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	/**
	 * @phxDraggable
	 */
	__webpack_require__(12);
	__webpack_require__(16);
	__webpack_require__(870);
	
	angular.module('ui-ng-draggable', ['ui-ng-delegate', 'ng-screen-query']);
	
	window['dragula'] = __webpack_require__(1023);
	
	__webpack_require__(1015);
	__webpack_require__(1025);
	
	// module.exports = 'ui-ng-draggable';

/***/ }),
/* 112 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	/**
	 * @ui-ng-feature
	 */
	__webpack_require__(12);
	__webpack_require__(16);
	
	angular.module('ui-ng-feature', []);
	
	__webpack_require__(1028);
	__webpack_require__(1027);
	
	module.exports = 'ui-ng-feature';

/***/ }),
/* 113 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(65);
	__webpack_require__(12);
	__webpack_require__(21);
	__webpack_require__(22);
	__webpack_require__(16);
	__webpack_require__(49);
	__webpack_require__(1033);
	__webpack_require__(1030);
	__webpack_require__(1032);
	__webpack_require__(1031);
	
	// module.exports = 'ui-ng-notification';

/***/ }),
/* 114 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(66);
	__webpack_require__(448);
	// import 'utility-ng-enumeration';
	__webpack_require__(1038);
	
	angular.module('ui-ng-popover', ['mgcrea.ngStrap.popover', 'ui-ng-tooltip', 'ui-ng-core-bootstrap']);
	// module.exports = 'ui-ng-popover';
	
	__webpack_require__(1036);
	__webpack_require__(1037);

/***/ }),
/* 115 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(12);
	
	__webpack_require__(16);
	
	/**
	 * @ui-ng-time-input
	 */
	angular.module('ui-ng-time-input', ['ui-ng-delegate']);

/***/ }),
/* 116 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	/**
	 * @ui-ng-university-text
	 */
	__webpack_require__(65);
	module.exports = 'ui-ng-university-text';
	angular.module('ui-ng-university-text', ['ngSanitize']).provider('universityTextConfig',
	/*@ngInject*/function () {
	  var DEFAULTS = {
	    disableTrustHtml: true,
	    disableCustomHref: false,
	    isHybridApp: false,
	    target: '_system',
	    addUniversityStyles: true
	  };
	  var config = angular.merge({}, DEFAULTS);
	  var write = this.write = this.configure = function write(customConfig) {
	    config = angular.merge(DEFAULTS, customConfig);
	  };
	  var activate = this.activate = function activate(customConfig) {
	    write(customConfig);
	  };
	  var read = this.read = function read() {
	    return config;
	  };
	  activate({});
	  this.$get = function $get_universityTextConfig() {
	    return {
	      activate: activate,
	      write: write,
	      configure: write,
	      read: read
	    };
	  };
	}).decorator('ngBindHtmlDirective',
	/*@ngInject*/function ($delegate, $compile, $parse, $sce, universityTextConfig) {
	  var directive = $delegate[0];
	  // Overwriting Angular ngBindHtml compile function with custom changes
	  // ANGULAR 1.5.0 CODE COPY
	  // https://github.com/angular/angular.js/blob/master/src/ng/directive/ngBind.js
	  // @purpose Customize ng-bind-html to compile directives and ability to custom parse html that is being rendered.
	  // @change SAFETY: Allow html safety based on global config.
	  // @change CUSTOM Parser: Allow html to be parsed using a custom function (parseHtmlFn) before being injected to DOM
	  // @change COMPILE : Run additional $compile to enable any directives in dynamic html.
	  directive.compile = function ngBindHtmlCompile(tElement, tAttrs) {
	    //Compile
	    var ngBindHtmlGetter = $parse(tAttrs.ngBindHtml);
	    var htmlTemplate = '';
	    var config = universityTextConfig.read();
	    var updateTemplate = function updateTemplate(scope) {
	      htmlTemplate = ngBindHtmlGetter(scope);
	      if (typeof config.parseHtmlFn === 'function') {
	        htmlTemplate = config.parseHtmlFn(htmlTemplate);
	      } else if (!config.disableTrustHtml) {
	        htmlTemplate = $sce.getTrustedHtml(htmlTemplate);
	      }
	      return htmlTemplate ? $compile('<span>' + htmlTemplate + '</span>')(scope) : '';
	    };
	    var ngBindHtmlWatch = $parse(tAttrs.ngBindHtml, function getStringValue(value) {
	      return (value || '').toString();
	    });
	    $compile.$$addBindingClass(tElement);
	    return function ngBindHtmlLink(scope, element, attr) {
	      $compile.$$addBindingInfo(element, attr.ngBindHtml);
	      scope.$watch(ngBindHtmlWatch, function ngBindHtmlWatchAction() {
	        if (config.addUniversityStyles) {
	          element.addClass('university-tags university-text');
	        }
	        element.html(updateTemplate(scope));
	      });
	    };
	  };
	  return $delegate;
	}).directive('href', function external_link(universityTextConfig, $location, $state, ngTouchEventFunctionService) {
	  'use strict';
	
	  var config = universityTextConfig.read();
	  var urlRegex = /(https?:\/\/[^\s]*)/; //match all links with http:// or https:// not dummy links
	  var otherRegex = /(mailto:|tel:|geo:|sms:|maps:)/; //match all links with http:// or https:// not dummy links
	  var currentDomainUrl = $location.protocol() + '//' + $location.host();
	  var domainRegex = new RegExp('\\b' + currentDomainUrl.replace(/\\/g, '\\\\') + '\\b', 'gi');
	  var angularUrlHashs = ['/#!/', '/#/'];
	
	  var isAppInternalLink = function isAppInternalLink(link) {
	    return domainRegex.test(link) && /\/#/.test(link);
	  };
	
	  var reformatInternalLink = function reformatInternalLink(link) {
	    var formattedInternalLink = '';
	
	    angularUrlHashs.forEach(function (separator) {
	      if (link.indexOf(separator) !== -1) {
	        formattedInternalLink = angularUrlHashs[1] + link.split(separator)[1];
	      }
	    });
	
	    return formattedInternalLink;
	  };
	
	  var addTouchEvent = function addTouchEvent(ele, link, isSystem) {
	    var mobileEventListener = function mobileEventListener(e) {
	      e.preventDefault();
	      e.stopPropagation();
	      window.open(link, isSystem ? '_system' : config.target);
	    };
	
	    ele.removeAttr('target');
	    ele.removeAttr('onclick');
	    ele.attr('href', 'javascript:void(0)');
	
	    var nodeEl = _.first(ele);
	    nodeEl.addEventListener('click', mobileEventListener, false);
	    nodeEl.addEventListener('touchstart', mobileEventListener, false);
	  };
	
	  return {
	    restrict: 'A',
	    link: function link(scope, element, attrs) {
	      // disable the angular re-write because it is breaking normal links
	      //
	      if (attrs['allow-static-href']) {
	        return false;
	      }
	
	      var el = element[0];
	      if (el.tagName != 'A') {
	        return false;
	      }
	
	      var link = attrs['href'];
	      if (isAppInternalLink(link)) {
	        element.removeAttr('target');
	
	        if (config.isHybridApp) {
	          element.removeAttr('href');
	          ngTouchEventFunctionService.touchEventFunction(reformatInternalLink(link), element);
	        } else {
	          element.attr('href', reformatInternalLink(link));
	        }
	      } else {
	        if (urlRegex.test(link) && !config.disableCustomHref) {
	          element.attr('target', '_blank');
	          element.attr('rel', 'external');
	
	          if (config.isHybridApp) {
	            addTouchEvent(element, link);
	          }
	
	          //Add default accessibility screen reader only text (opens new window)
	          element.append('<span class="hide-read show-ax"> (opens new window)</span>');
	        } else if (otherRegex.test(link) && config.isHybridApp) {
	          element.attr('rel', 'external');
	          addTouchEvent(element, link, true);
	        }
	      }
	    }
	  };
	});
	
	__webpack_require__(2193);

/***/ }),
/* 117 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	angular.module('biz-ng-requisite-tree', []);
	__webpack_require__(21);
	__webpack_require__(1154);
	tslib_1.__exportStar(__webpack_require__(118), exports);
	tslib_1.__exportStar(__webpack_require__(459), exports);
	exports.default = 'biz-ng-requisite-tree';


/***/ }),
/* 118 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var RequisiteNode = /** @class */ (function () {
	    function RequisiteNode(reqNode) {
	        _4.merge(this, reqNode);
	        this.childrens = [];
	        this.parent = undefined;
	    }
	    return RequisiteNode;
	}());
	exports.RequisiteNode = RequisiteNode;
	var RequisiteTree = /** @class */ (function () {
	    function RequisiteTree() {
	        this.root = undefined;
	    }
	    RequisiteTree.prototype.insert = function (reqNode) {
	        var newNode = new RequisiteNode(reqNode);
	        if (this.root === undefined) {
	            this.root = newNode;
	        }
	        else {
	            this.insertData(reqNode, this.root);
	        }
	    };
	    RequisiteTree.prototype.insertData = function (newNodeData, node) {
	        var newNode = new RequisiteNode(newNodeData);
	        if (newNode.level > node.level) {
	            var lastChildren = _4.last(node.childrens);
	            if (!lastChildren || !lastChildren.level || lastChildren.level === newNode.level) {
	                node.childrens.push(newNode);
	                newNode.parent = node;
	                return newNode;
	            }
	            else {
	                return this.insertData(newNodeData, lastChildren);
	            }
	        }
	        else {
	            return this.insertData(newNodeData, node.parent);
	        }
	    };
	    return RequisiteTree;
	}());
	exports.RequisiteTree = RequisiteTree;


/***/ }),
/* 119 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APAlternatePlanListItem = /** @class */ (function () {
	    function APAlternatePlanListItem(alternatePlansListItem) {
	        _4.merge(this, { is_base_plan: false }, alternatePlansListItem);
	    }
	    APAlternatePlanListItem.build = function (alternatePlansListItem) {
	        return new APAlternatePlanListItem(alternatePlansListItem);
	    };
	    return APAlternatePlanListItem;
	}());
	exports.APAlternatePlanListItem = APAlternatePlanListItem;


/***/ }),
/* 120 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var utility_ts_strategy_1 = __webpack_require__(6);
	var ap_changelog_strategy_1 = __webpack_require__(463);
	var APChangelogServant = /** @class */ (function () {
	    function APChangelogServant() {
	    }
	    // Interview Question?
	    APChangelogServant.createSentenceForNonMetSuggestion = function (suggestedChanges, changeType) {
	        var courseChangeWords = ap_changelog_strategy_1.ChangeTypeTemplateStrategy.getByKey(changeType).courseTemplate(suggestedChanges);
	        var commentDetails = ap_changelog_strategy_1.ChangeTypeTemplateStrategy.getByKey(changeType).commentTemplate(suggestedChanges);
	        var lockedText = ap_changelog_strategy_1.ChangeTypeTemplateStrategy.getByKey(changeType).lockTemplate(suggestedChanges);
	        var flagLockwords = [];
	        if (!_4.isEmpty(lockedText)) {
	            flagLockwords.push("" + lockedText);
	        }
	        if (commentDetails && !_4.isEmpty(commentDetails.comment)) {
	            var flagText = commentDetails.hasFlag ? "added a flag" : "removed flag";
	            flagLockwords.push("" + flagText);
	        }
	        var sentenceWords = _4.compact(courseChangeWords.concat(flagLockwords));
	        var middleWords = _4.slice(sentenceWords, 1, -1);
	        var middleSentense = _4.isEmpty(middleWords) ? "" : middleWords.join(', ') + " and ";
	        var displaySentence = _4.head(sentenceWords) + " " + middleSentense + _4.last(sentenceWords);
	        return {
	            displaySentence: displaySentence,
	            commentDetails: commentDetails
	        };
	    };
	    APChangelogServant.getSlotTitle = function (suggestedChange) {
	        var fallbackTitle = _4.get(suggestedChange, 'course_group.nk', '');
	        var programSlotDesc = _4.get(suggestedChange, 'program_slot.desc', '');
	        return programSlotDesc || fallbackTitle;
	    };
	    APChangelogServant.createSentenceForMetSuggestion = function (suggestedChanges, changeType) {
	        if (!_4.includes(APChangelogServant.metAssociatedTransactions, changeType)) {
	            return {
	                displaySentence: "",
	                commentDetails: {}
	            };
	        }
	        var suggestedChange = changeType !== 'COMMENT_ONLY' ? _4.first(suggestedChanges) : _4.last(suggestedChanges);
	        var slotTitle = suggestedChange.slot_type === 'COURSE'
	            ? suggestedChange.course.cd + " " + suggestedChange.course.title
	            : APChangelogServant.getSlotTitle(suggestedChange);
	        if (changeType === 'MET') {
	            return {
	                displaySentence: slotTitle + " marked as met",
	                commentDetails: {
	                    comment: suggestedChange.comment,
	                    prefix: 'added',
	                    hasFlag: false
	                }
	            };
	        }
	        else if (changeType === 'COMMENT_ONLY') {
	            return {
	                displaySentence: slotTitle + "'s mark as met comment got updated",
	                commentDetails: {
	                    comment: suggestedChange.comment,
	                    prefix: 'updated',
	                    hasFlag: false
	                }
	            };
	        }
	        else {
	            return {
	                displaySentence: slotTitle + " marked as unmet",
	                commentDetails: {
	                    comment: suggestedChange.comment,
	                    prefix: 'deleted',
	                    hasFlag: false
	                }
	            };
	        }
	    };
	    APChangelogServant.createChangeSentence = function (suggestedChanges) {
	        var sentenceFormStrategy = new utility_ts_strategy_1.FastConditionalStrategy([
	            [
	                APChangelogServant.createSentenceForMetSuggestion,
	                function (_changeType) { return _4.includes(APChangelogServant.metAssociatedTransactions, _changeType); }
	            ],
	            [
	                APChangelogServant.createSentenceForNonMetSuggestion,
	                function (_changeType) { return !_4.includes(APChangelogServant.metAssociatedTransactions, _changeType); }
	            ]
	        ]);
	        var changeType = ap_changelog_strategy_1.ChangeTypeStrategy.evaluate(suggestedChanges);
	        return sentenceFormStrategy.evaluate(changeType, APChangelogServant.createSentenceForNonMetSuggestion)(suggestedChanges, changeType);
	    };
	    APChangelogServant.getProposerChange = function (suggestedChanges, changeProposer) {
	        return _4.find(suggestedChanges, { proposer: changeProposer });
	    };
	    APChangelogServant.getProposerChangeProperty = function (suggestedChanges, changeProposer, prop) {
	        return _4.get(this.getProposerChange(suggestedChanges, changeProposer), prop);
	    };
	    APChangelogServant.hasTermChanged = function (suggestedChanges) {
	        return this.hasPropertyChanged("term", suggestedChanges);
	    };
	    APChangelogServant.hasPropertyChanged = function (prop, suggestedChanges) {
	        var advisorChangeProp = this.getProposerChangeProperty(suggestedChanges, ap_changelog_strategy_1.PROPOSER.advisor, prop);
	        var studentChangeProp = this.getProposerChangeProperty(suggestedChanges, ap_changelog_strategy_1.PROPOSER.student, prop);
	        return !_4.isEqual(advisorChangeProp, studentChangeProp);
	    };
	    APChangelogServant.hasComment = function (change) {
	        return !_4.isEmpty(change.comment);
	    };
	    APChangelogServant.isCourse = function (course) {
	        return !_4.isNull(course.course);
	    };
	    APChangelogServant.getChangelogDisplayText = function (changelogItem) {
	        var _this = this;
	        var isStatusResolved = _4.isEqual(_4.get(changelogItem, 'status', ''), 'RESOLVED');
	        _4.each(changelogItem.suggested_plan_resolutions, function (resolutionItem) {
	            var suggestionChanges = _this.createChangeSentence(resolutionItem.suggested_plan_changes);
	            var isConflictingResolution = isStatusResolved && _4.isEqual(resolutionItem.resolution, 'UNDECIDED');
	            var displayObject = tslib_1.__assign(tslib_1.__assign({}, ap_changelog_strategy_1.SuggestionTypeStrategy[isConflictingResolution ? 'CONFLICTING' : resolutionItem.resolution]), { items: [suggestionChanges] });
	            var existingChangelogType = _4.find(changelogItem._changelogDisplay, { type: displayObject.type });
	            if (existingChangelogType) {
	                existingChangelogType.items = _4.concat(existingChangelogType.items, displayObject.items);
	            }
	            else {
	                changelogItem._changelogDisplay.push(displayObject);
	            }
	        });
	        return changelogItem;
	    };
	    APChangelogServant.metAssociatedTransactions = ['MET', 'UNMET', 'COMMENT_ONLY'];
	    return APChangelogServant;
	}());
	exports.APChangelogServant = APChangelogServant;


/***/ }),
/* 121 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	exports.APCourseStatusStrategy = new utility_ts_strategy_1.StrategySafe({
	    FALLBACK: {
	        humanString: "Unregistered"
	    },
	    DEFAULT: {
	        humanString: "Unregistered"
	    },
	    PLANNED: {
	        humanString: "Planned"
	    },
	    SECTION_PICKED: {
	        humanString: 'Section Picked'
	    },
	    REGISTERED: {
	        humanString: "Enrolled"
	    },
	    IN_PROGRESS: {
	        humanString: "In-progress"
	    },
	    COMPLETED: {
	        humanString: "Completed"
	    },
	    WAITLISTED: {
	        humanString: "Waitlisted"
	    }
	});


/***/ }),
/* 122 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_strategy_1 = __webpack_require__(6);
	exports.CourseStatusBadgeEvaluator = new utility_ts_strategy_1.ConditionalStrategy({
	    in_progress: function (status) { return 'IN_PROGRESS' === status; },
	    waitlisted: function (status) { return 'WAITLISTED' === status; },
	    ready_to_register: function (status) { return 'SECTION_PICKED' === status; },
	    completed: function (status) { return 'COMPLETED' === status; },
	    planned: function (status) {
	        return !_4.includes(['WAITLISTED', 'IN_PROGRESS', 'REGISTERED', 'COMPLETED', 'SECTION_PICKED'], status);
	    }
	});
	exports.APTermCourseStatusGroupStrategy = new utility_ts_strategy_1.Strategy({
	    SECTION_PICKED: {
	        title: 'Time Selected (Not Yet Registered)',
	        filter: function (obj) { return _4.includes(['SECTION_PICKED'], obj.status); }
	    },
	    PLANNED: {
	        title: 'Planned',
	        tooltipHtml: 'All planned courses can be dragged to other terms, except locked planned courses',
	        filter: function (obj) {
	            return !_4.includes(['WAITLISTED', 'IN_PROGRESS', 'REGISTERED', 'COMPLETED', 'SECTION_PICKED'], obj.status);
	        }
	    },
	    READY_TO_REGISTER: {
	        title: 'Ready to Register',
	        filter: function (obj) {
	            return !_4.includes(['WAITLISTED', 'IN_PROGRESS', 'REGISTERED', 'COMPLETED', 'SECTION_PICKED'], obj.status);
	        }
	    },
	    WAITLISTED: {
	        title: 'Waitlisted',
	        status: ['WAITLISTED'],
	        filter: function (obj) { return obj.status === 'WAITLISTED'; }
	    },
	    IN_PROGRESS: {
	        title: 'Enrolled/ In Progress',
	        status: ['REGISTERED', 'IN_PROGRESS'],
	        filter: function (obj) { return obj.status === 'IN_PROGRESS' || obj.status === 'REGISTERED'; }
	    },
	    COMPLETED: {
	        title: 'Completed',
	        status: ['COMPLETED'],
	        filter: function (obj) { return obj.status === 'COMPLETED'; }
	    }
	});


/***/ }),
/* 123 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var lodash4_1 = __webpack_require__(1);
	var moment = __webpack_require__(2);
	var utility_ts_strategy_1 = __webpack_require__(6);
	exports.APTermStatusStrategy = new utility_ts_strategy_1.StrategySafe({
	    DEFAULT: {
	        status_title: "<unset>",
	        status_title_plain: "<unset>",
	        tooltip_title: "<unset>",
	        tooltip_content: "<unset>",
	        show_tooltip: true,
	        button_title: "<unset>",
	        button_label: "<unset>"
	    },
	    BEFORE_REG_OPEN: {
	        status_title: "Term Status: Term begins {{term_start_date}}",
	        status_title_plain: 'Term begins ${ term_start_date }',
	        tooltip_title: "Registration",
	        show_tooltip: false,
	        tooltip_content: "<strong class=\"text-bold\">{{registration_time_until}} until registration is open</strong><p class=\"text maz\">Registration begins {{registration_start_date_year}}</p>",
	        button_title: "Times not available yet",
	        button_label: "Pick Times"
	    },
	    REG_OPEN: {
	        status_title: "Term Status: Registration Open",
	        status_title_plain: "Term Status: Registration Open",
	        tooltip_title: "Registration",
	        show_tooltip: false,
	        tooltip_content: "<strong class=\"text-bold\">Registration open</strong><p class=\"text maz\">Registration begins {{registration_start_date_year}}</p>",
	        button_title: "View or edit your schedule",
	        button_label: "View / Edit Schedule"
	    },
	    PRIORITY_BEFORE_REG_OPEN: {
	        status_title: "<div l-kind l-align='center' l-justify='left' l-width-fixed ><hi-icon kind=\"rocket_filled\" theme=\"gray\" aria-hidden=\"true\"></hi-icon><span class=\"clr-gray_90-txt text-bold\">Priority Registration</span></div>",
	        status_title_plain: "Priority Registration",
	        tooltip_title: "Priority Registration",
	        show_tooltip: true,
	        tooltip_content: "<strong class=\"text-bold\">You get to register before other students!</strong><p class=\"text maz\">Registration begins {{priority_registration_start_date_year}}</p>",
	        button_title: "Times available - Build your schedule",
	        button_label: "Pick Times"
	    },
	    PRIORITY_REG_OPEN: {
	        status_title: "<div l-kind l-align='center' l-justify='left' l-width-fixed ><hi-icon kind=\"rocket_filled\" theme=\"gray\" aria-hidden=\"true\"></hi-icon><span class=\"clr-gray_90-txt text-bold\">Priority Registration</span></div>",
	        status_title_plain: "Priority Registration Open",
	        tooltip_title: "Priority Registration",
	        show_tooltip: true,
	        tooltip_content: "<strong class=\"text-bold\">Priority registration open!</strong><p class=\"text maz\">Registration begins {{priority_registration_start_date_year}}</p>",
	        button_title: "View or edit your schedule",
	        button_label: "View / Edit Schedule"
	    },
	    BEFORE_TERM_START: {
	        status_title: "Term begins {{term_start_date}}",
	        status_title_plain: 'Term begins ${ term_start_date }',
	        tooltip_title: "Term begins soon",
	        show_tooltip: true,
	        tooltip_content: "<strong class=\"text-bold\">{{term_time_until}} until your term starts</strong><p class=\"text maz\">{{term_start_date_year}} - {{term_end_date_year}}</p>",
	        button_title: "View or edit your schedule",
	        button_label: "View / Edit Schedule"
	    },
	    TERM_IN_PROGRESS: {
	        status_title: "Term Status: In Progress",
	        status_title_plain: "In Progress",
	        tooltip_title: "In Progress",
	        show_tooltip: false,
	        tooltip_content: "<strong class=\"text-bold\">{{term_time_left}} left in this term</strong><p class=\"text maz\">{{term_start_date_year}} - {{term_end_date_year}}</p>",
	        button_title: "View or edit your schedule",
	        button_label: "View / Edit Schedule"
	    },
	    TERM_COMPLETED: {
	        status_title: "Term Status: Completed",
	        status_title_plain: "Completed",
	        tooltip_title: "Completed",
	        show_tooltip: true,
	        tooltip_content: "<p class=\"text maz\">{{term_start_date_year}} - {{term_end_date_year}}</p>",
	        button_title: "<unset>",
	        button_label: "<unset>"
	    }
	});
	var isDateNotDefaulted = function (date) { return date.year() > 1900; };
	exports.APTermStatusConditionalStrategy = new utility_ts_strategy_1.ConditionalStrategySafe({
	    PRIORITY_BEFORE_REG_OPEN: function (context) {
	        return !lodash4_1.isUndefined(context.priority_registration_start_dt) &&
	            moment().isBefore(context.priority_registration_start_dt);
	    },
	    PRIORITY_REG_OPEN: function (context) {
	        return !!context.priority_registration_start_dt &&
	            context.priority_registration_start_dt.isSameOrBefore(moment()) &&
	            !!context.priority_registration_end_dt &&
	            context.priority_registration_end_dt.isSameOrAfter(moment());
	    },
	    BEFORE_REG_OPEN: function (context) {
	        return isDateNotDefaulted(context.registration_start_dt) && moment().isBefore(context.registration_start_dt);
	    },
	    REG_OPEN: function (context) {
	        return isDateNotDefaulted(context.registration_start_dt) &&
	            context.registration_start_dt.isSameOrBefore(moment()) &&
	            context.registration_end_dt.isSameOrAfter(moment());
	    },
	    BEFORE_TERM_START: function (context) {
	        return context.registration_end_dt.isBefore(moment()) && context.term_start_dt.isAfter(moment());
	    },
	    TERM_IN_PROGRESS: function (context) {
	        return context.term_start_dt.isSameOrBefore(moment()) && context.term_end_dt.isSameOrAfter(moment());
	    },
	    TERM_COMPLETED: function (context) { return context.term_end_dt.isBefore(moment()); },
	    DEFAULT: function (context) { return false; }
	});


/***/ }),
/* 124 */
/***/ (function(module, exports) {

	"use strict";
	/** @enum {CourseConflictEnum} */
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.CourseConflictEnum = {
	    PREREQ_MISS: {
	        id: 'PREREQ_MISS',
	        template: 'One (or more) of these prerequisites need to be added to an earlier term. Click the course name for more details'
	    },
	    PREREQ_OUTOFORDER: {
	        id: 'PREREQ_OUTOFORDER',
	        template: 'One (or more) of these prerequisites need to be added to an earlier term. Click the course name for more details'
	    },
	    COREQ_MISS: {
	        id: 'COREQ_MISS',
	        template: 'One (or more) of these co-requisites need to be added to the same term as this course. Click the course name for more details'
	    },
	    COREQ_OUTOFORDER: {
	        id: 'COREQ_OUTOFORDER',
	        template: 'One (or more) of these co-requisites need to be added to the same term as this course. Click the course name for more details'
	    }
	};


/***/ }),
/* 125 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var intake_survey_api_ques_ans_strategy_1 = __webpack_require__(498);
	var question_type_input_type_strategy_1 = __webpack_require__(126);
	var PollServant = /** @class */ (function () {
	    function PollServant() {
	    }
	    PollServant.isRadioTypeQuestion = function (question) {
	        return question_type_input_type_strategy_1.QuestionTypeInputTypeStrategy[question.question_type] === 'radio';
	    };
	    PollServant.isCheckboxTypeQuestion = function (question) {
	        return question_type_input_type_strategy_1.QuestionTypeInputTypeStrategy[question.question_type] === 'checkbox';
	    };
	    PollServant.hasEveryQuestionAnswered = function (questions) {
	        return (questions.length ===
	            questions.filter(function (question) { return !_4.isEmpty(question._answer); }).length);
	    };
	    PollServant.getQuestionAndAnswerMappedForApi = function (questions) {
	        var mappedQandAns = {};
	        questions.forEach(function (question) {
	            mappedQandAns[question.id] = intake_survey_api_ques_ans_strategy_1.IntakeSurveyApiQuesAnswerStrategy[_4.get(question, '_question_type', '')](question);
	        });
	        return mappedQandAns;
	    };
	    return PollServant;
	}());
	exports.PollServant = PollServant;


/***/ }),
/* 126 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.QuestionTypeInputTypeStrategy = {
	    CHOICE: 'radio',
	    MULTIPLE: 'checkbox',
	    FREE_TEXT: 'text'
	};


/***/ }),
/* 127 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var ap_course_details_routes_1 = __webpack_require__(37);
	exports.COURSE_DETAIL_TEMPLATE = "<ap-course-details hide-actions=\"true\"></ap-course-details>";
	var advisorPlanEditCompareCourseDetailState = tslib_1.__assign(tslib_1.__assign({}, ap_course_details_routes_1.courseDetailState), { views: {
	        'right-panel-popout@ap-advisor.plan.edit.compare': {
	            template: "<ap-course-details hide-actions=\"false\"></ap-course-details>"
	        }
	    } });
	var advisorPlanEditCourseDetailState = tslib_1.__assign(tslib_1.__assign({}, ap_course_details_routes_1.courseDetailState), { views: {
	        'right-panel-popout@ap-advisor.plan.edit': {
	            template: "<ap-course-details hide-actions=\"false\"></ap-course-details>"
	        }
	    } });
	var advisorPlanViewCourseDetailState = tslib_1.__assign(tslib_1.__assign({}, ap_course_details_routes_1.courseDetailState), { views: {
	        'right-panel-popout@ap-advisor.plan.view': {
	            template: exports.COURSE_DETAIL_TEMPLATE
	        }
	    } });
	var studentPlanProgressCourseDetailState = tslib_1.__assign(tslib_1.__assign({}, ap_course_details_routes_1.courseDetailState), { views: {
	        'right-panel-popout@ap-advisor.student-plan-progress': {
	            template: exports.COURSE_DETAIL_TEMPLATE
	        }
	    } });
	exports.ApAdvisorCourseDetailRoutes = {
	    'ap-advisor.plan.view.course_details': tslib_1.__assign({}, advisorPlanViewCourseDetailState),
	    'ap-advisor.plan.view.default.course_details': tslib_1.__assign({}, advisorPlanViewCourseDetailState),
	    'ap-advisor.plan.view.coursegroup.course_details': tslib_1.__assign({}, advisorPlanViewCourseDetailState),
	    'ap-advisor.plan.edit.course_details': tslib_1.__assign({}, advisorPlanEditCourseDetailState),
	    'ap-advisor.plan.edit.default.course_details': tslib_1.__assign({}, advisorPlanEditCourseDetailState),
	    'ap-advisor.plan.edit.compare.course_details': tslib_1.__assign({}, advisorPlanEditCompareCourseDetailState),
	    'ap-advisor.plan.edit.coursegroup.course_details': tslib_1.__assign({}, advisorPlanEditCourseDetailState),
	    'ap-advisor.student-plan-progress.course_details': tslib_1.__assign({}, studentPlanProgressCourseDetailState)
	};


/***/ }),
/* 128 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	exports.AlternatePlanRoute = {
	    url: 'alternate-plans/',
	    data: {
	        pageTitle: 'Alternate plans'
	    },
	    template: "\n    <ui-view name='modal'></ui-view>\n    <alternate-plans></alternate-plans>\n        ",
	    resolve: {
	        hasCurrentPgmFilled: function (ngAPModel, loadAcademicPlanCommand) {
	            if (!_4.isUndefined(_4.get(ngAPModel.currentProgram(), 'id'))) {
	                return true;
	            }
	            return loadAcademicPlanCommand();
	        },
	        availablePlanListFilled: function (ngAPAlternatePlanListDatasource, loadAlternatePlanListCommand, hasCurrentPgmFilled) { return loadAlternatePlanListCommand(); },
	        basePlanDetails: function (ngAPModel, loadAlternatePlanDetailsCommand, availablePlanListFilled, ngAlternatePlanComparePlansModel) {
	            ngAlternatePlanComparePlansModel.clear();
	            var currentProgram = ngAPModel.currentProgram();
	            return loadAlternatePlanDetailsCommand(currentProgram.id, 'from');
	        }
	    }
	};
	exports.AlternatePlanChangePlanPopupRoute = {
	    url: 'change-plan',
	    data: {
	        pageTitle: 'Change plan confirmation'
	    },
	    resolve: {
	        changePlanPopupDetails: function (getNonExistingCoursesNewPlanCommand) {
	            return getNonExistingCoursesNewPlanCommand();
	        }
	    }
	};
	exports.AlternatePlanRoutes = {
	    'my.planner.alternate-plans': tslib_1.__assign({}, exports.AlternatePlanRoute),
	    'my.planner.alternate-plans.change-plan': tslib_1.__assign(tslib_1.__assign({}, exports.AlternatePlanChangePlanPopupRoute), { views: {
	            'modal@my.planner.alternate-plans': {
	                template: "<alternate-plan-change-plan-popup></alternate-plan-change-plan-popup>"
	            }
	        } })
	};


/***/ }),
/* 129 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	exports.markAsMetState = {
	    resolve: {
	        setMarkAsMetSlot: function (setMarkAsMetSlotCommand, $stateParams) {
	            return setMarkAsMetSlotCommand($stateParams.genericSlot);
	        }
	    },
	    data: {
	        pageTitle: 'Mark as met'
	    },
	    params: {
	        genericSlot: {}
	    }
	};
	exports.markAsUnMetState = {
	    resolve: {
	        genericSlot: function ($stateParams) { return $stateParams.genericSlot; }
	    },
	    data: {
	        pageTitle: 'Mark as unmet'
	    },
	    params: {
	        genericSlot: {}
	    }
	};
	var studentMarkAsUnMetStateState = tslib_1.__assign(tslib_1.__assign({}, exports.markAsUnMetState), { views: {
	        'modal@my.planner.plan': {
	            template: "<mark-as-unmet-dialog generic-slot=\"$resolve.genericSlot\"></mark-as-unmet-dialog>"
	        }
	    } });
	var studentMarkAsMetStateState = tslib_1.__assign(tslib_1.__assign({}, exports.markAsMetState), { views: {
	        'modal@my.planner.plan': {
	            template: "<mark-as-met-dialog></mark-as-met-dialog>"
	        }
	    } });
	exports.ApMarkAsMetModelRoutes = {
	    'my.planner.plan.mark_as_met': tslib_1.__assign({}, studentMarkAsMetStateState),
	    'my.planner.plan.default.mark_as_met': tslib_1.__assign({}, studentMarkAsMetStateState),
	    'my.planner.plan.coursegroup.mark_as_met': tslib_1.__assign({}, studentMarkAsMetStateState),
	    'my.planner.plan.mark_as_unmet': tslib_1.__assign({}, studentMarkAsUnMetStateState),
	    'my.planner.plan.default.mark_as_unmet': tslib_1.__assign({}, studentMarkAsUnMetStateState),
	    'my.planner.plan.coursegroup.mark_as_unmet': tslib_1.__assign({}, studentMarkAsUnMetStateState)
	};


/***/ }),
/* 130 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var smart_search_request_response_headers_helper_1 = __webpack_require__(518);
	exports.smartCatalogConfiguration = function (userMode) {
	    var _a = new smart_search_request_response_headers_helper_1.SearchRequestResponseHeaders(userMode), _b = _a.postRequestHeaders, postRequestHeaders = _b === void 0 ? {} : _b, _c = _a.getRequestHeaders, getRequestHeaders = _c === void 0 ? {} : _c;
	    return {
	        system: {
	            name: 'sgd_smart_catalogue_search',
	            prefab: '@hip/search',
	            engine: '19.1.0',
	            version: '1',
	            enviroment: 'dev'
	        },
	        import: {
	            plugins: [
	                '@preloaded/sgd_metadata_columns',
	                '@preloaded/sgd_metadata_fields',
	                '@preloaded/sgd_multi_form',
	                '@preloaded/plan_to_term_action'
	            ]
	        },
	        configuration: {},
	        life_cycle: {
	            initialize: {
	                $finish: []
	            }
	        },
	        action: {
	            search_action: {
	                kind: 'sgd_multi_form'
	            },
	            on_server_error: {
	                $do: ['=>> _search_results_loading_indicator:hidden <=< true', '=>> _search_results_empty:hidden <=< false']
	            },
	            paginate_results: {
	                kind: 'sgd_multi_form'
	            },
	            sort_results: {
	                kind: 'sgd_multi_form'
	            },
	            course_details: {
	                name: 'course_details',
	                $widget: {
	                    $behavior: 'link',
	                    title: 'Details',
	                    kind: 'ghost',
	                    $region: 'details_region',
	                    input_mode: 'singular'
	                }
	            },
	            add_to_term: {
	                name: 'add_to_term',
	                $widget: {
	                    $behavior: 'link',
	                    title: 'Add to Term',
	                    kind: 'ghost',
	                    $region: 'add_to_term_region',
	                    input_mode: 'singular'
	                }
	            }
	        },
	        bucket: {
	            context: {
	                $reactive_values: {
	                    search_title: 'Search',
	                    search_button_label: 'Search',
	                    reset_button_label: 'Clear',
	                    results_grid_theme: 'blue',
	                    no_result_title: 'Nothing Found!',
	                    no_result_tip: 'Check your keywords or try adjusting the filters',
	                    results_placeholder_title: 'Enter a keyword to search a course title or description.',
	                    results_placeholder_tip: 'Try searching for e.g. Psych, Psychology, or Intro to Psych',
	                    sorting: {
	                        default_sort_key: 'id'
	                    },
	                    pagination: {
	                        range_size: 3,
	                        page_size: 50,
	                        max: 250
	                    }
	                }
	            },
	            form_fields: {
	                type: {
	                    $ref: '#/type/form_fields'
	                }
	            },
	            results: {
	                type: {
	                    $ref: '#/type/results'
	                }
	            }
	        },
	        io: {
	            search_query: {
	                method: 'POST',
	                uri: '/api/v1/academicplan/course/search/',
	                allowFail: true,
	                manual: true,
	                $error: '((on_server_error))',
	                headers: postRequestHeaders
	            },
	            search_request: {
	                uri: '/api/v1/academicplan/course_search_fields/',
	                manual: true,
	                kind: 'sgd_metadata_fields',
	                headers: getRequestHeaders
	            },
	            search_response: {
	                uri: '/api/v1/academicplan/course_search_columns/',
	                manual: true,
	                kind: 'sgd_metadata_columns',
	                headers: getRequestHeaders
	            }
	        }
	    };
	};
	exports.default = exports.smartCatalogConfiguration;


/***/ }),
/* 131 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_strategy_1 = __webpack_require__(6);
	var plan_feedback_servant_1 = __webpack_require__(13);
	var PlanFeedbackGenericSlotBuilderStrategy = new utility_ts_strategy_1.ConditionalStrategy({
	    course: function (suggestion) { return _4.has(suggestion, 'course'); },
	    course_group: function (suggestion) { return _4.has(suggestion, 'course_group'); },
	    program_slot: function (suggestion) {
	        return !_4.has(suggestion, 'course_group') && !_4.has(suggestion, 'course') && !_4.has(suggestion, 'from_term');
	    }
	});
	var PlanFeedbackGenericSlotCssClassStrategy = new utility_ts_strategy_1.Strategy({
	    ADD: 'clr-green_40-txt text-bold',
	    REMOVE: 'text-strike clr-red_40-txt',
	    NONE: 'text-ellipsis clr-green_40-txt',
	    MET: 'text-ellipsis clr-green_40-txt',
	    UNMET: 'text-ellipsis clr-green_40-txt'
	});
	var PlanFeedbackGenericSlotCourseScreenReaderTextStrategy = new utility_ts_strategy_1.Strategy({
	    ADD: function (feedbackCourse) {
	        return "Added Course " + feedbackCourse.course.cd + " " + feedbackCourse.course.title;
	    },
	    REMOVE: function (feedbackCourse) {
	        return "Removed Course " + feedbackCourse.course.cd + " " + feedbackCourse.course.title;
	    },
	    NONE: function (feedbackCourse) { return feedbackCourse.course.cd + " " + feedbackCourse.course.title; }
	});
	var PlanFeedbackGenericSlotProgramSlotScreenReaderTextStrategy = new utility_ts_strategy_1.Strategy({
	    NONE: function (planFeedbackPgmSlot) { return "Reason changed to \"" + planFeedbackPgmSlot.comment + "\""; },
	    MET: function (planFeedbackPgmSlot) { return "Marked " + planFeedbackPgmSlot.program_slot_obj.desc + " as met"; },
	    UNMET: function (planFeedbackPgmSlot) {
	        return "Marked " + planFeedbackPgmSlot.program_slot_obj.desc + " as unmet";
	    }
	});
	var PlanFeedbackGenericSlotCourseGroupScreenReaderTextStrategy = new utility_ts_strategy_1.Strategy({
	    ADD: function (feedbackCourseGroup) {
	        return "Added " + feedbackCourseGroup.program_slot_obj.desc + " placeholder";
	    },
	    REMOVE: function (feedbackCourseGroup) {
	        return "Removed " + feedbackCourseGroup.program_slot_obj.desc + " placeholder";
	    },
	    NONE: function (feedbackCourseGroup) { return feedbackCourseGroup.program_slot_obj.desc + " placeholder"; }
	});
	var PlanFeedbackGenericSlotBuilderFns = new utility_ts_strategy_1.Strategy({
	    course: function (suggestion) { return ({
	        id: suggestion.id,
	        slotTypeId: suggestion.course.id,
	        text: suggestion.course.cd + " " + suggestion.course.title,
	        slotType: 'COURSE',
	        transactionType: suggestion.diff,
	        transactionNk: suggestion.nk,
	        screenReaderText: PlanFeedbackGenericSlotCourseScreenReaderTextStrategy[suggestion.diff](suggestion),
	        cssClasses: PlanFeedbackGenericSlotCssClassStrategy[suggestion.diff],
	        credits: suggestion.course.credits,
	        slotNk: suggestion.course.nk,
	        isLocked: suggestion.is_locked,
	        flagInfo: suggestion.flagInfo
	    }); },
	    course_group: function (suggestion) { return ({
	        id: suggestion.id,
	        slotTypeId: suggestion.course_group.id,
	        text: suggestion.program_slot_obj.desc + " placeholder",
	        slotType: 'COURSE_GROUP',
	        transactionType: suggestion.diff,
	        transactionNk: suggestion.nk,
	        slotNk: suggestion.course_group.nk,
	        screenReaderText: PlanFeedbackGenericSlotCourseGroupScreenReaderTextStrategy[suggestion.diff](suggestion),
	        cssClasses: PlanFeedbackGenericSlotCssClassStrategy[suggestion.diff]
	    }); },
	    program_slot: function (suggestion) { return ({
	        id: suggestion.id,
	        slotTypeId: suggestion.program_slot_obj.id,
	        text: plan_feedback_servant_1.PlanFeedbackServant.getTextForFeedbackProgramSlot(suggestion),
	        slotType: 'PROGRAM_SLOT',
	        slotNk: suggestion.program_slot_obj.nk,
	        transactionType: suggestion.diff,
	        transactionNk: suggestion.nk,
	        screenReaderText: PlanFeedbackGenericSlotProgramSlotScreenReaderTextStrategy[suggestion.diff](suggestion),
	        cssClasses: PlanFeedbackGenericSlotCssClassStrategy[suggestion.diff],
	        comment: suggestion.comment
	    }); }
	});
	var PlanFeedbackGenericSlotBuilder = /** @class */ (function () {
	    function PlanFeedbackGenericSlotBuilder(suggestion) {
	        _4.merge(this, suggestion);
	    }
	    PlanFeedbackGenericSlotBuilder.build = function (suggestion) {
	        return new PlanFeedbackGenericSlotBuilder(PlanFeedbackGenericSlotBuilderFns[PlanFeedbackGenericSlotBuilderStrategy.evaluate(suggestion)](suggestion));
	    };
	    return PlanFeedbackGenericSlotBuilder;
	}());
	exports.PlanFeedbackGenericSlotBuilder = PlanFeedbackGenericSlotBuilder;


/***/ }),
/* 132 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var moment = __webpack_require__(2);
	var appointment_info_servant_1 = __webpack_require__(30);
	var AppointmentCancelForm = /** @class */ (function (_super) {
	    tslib_1.__extends(AppointmentCancelForm, _super);
	    function AppointmentCancelForm($state, ngAppointmentRemindersServant, cancelAppointmentCommand, loadUpcomingAppointmentsCommand, accountModel, ngCancellationReasonsQuery, loadCancellationReasonsCommand, log) {
	        var _this = _super.call(this) || this;
	        _this.$state = $state;
	        _this.ngAppointmentRemindersServant = ngAppointmentRemindersServant;
	        _this.cancelAppointmentCommand = cancelAppointmentCommand;
	        _this.loadUpcomingAppointmentsCommand = loadUpcomingAppointmentsCommand;
	        _this.accountModel = accountModel;
	        _this.ngCancellationReasonsQuery = ngCancellationReasonsQuery;
	        _this.loadCancellationReasonsCommand = loadCancellationReasonsCommand;
	        _this.log = log;
	        _this.isCancellationPending = false;
	        _this.initilize();
	        return _this;
	    }
	    Object.defineProperty(AppointmentCancelForm.prototype, "_studentFullName", {
	        get: function () {
	            return this.accountModel.firstName + " " + this.accountModel.lastName;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    AppointmentCancelForm.prototype.$onInit = function () {
	        if (this.appointment.student_can_cancel) {
	            this.loadCancellationReasonsCommand(this.appointment.appointment_id, this.appointment.calendar_instance_id);
	        }
	        this.appointmentDetails = this.generateAppointmentDetails(this.appointment, this._studentFullName);
	        this._onCancel = this.onCancel();
	        this._closeCancelForm = this.closeCancelForm();
	        this.isOneTimeAppointment = this.appointment.appointment_type === 'One Time Appointment';
	    };
	    AppointmentCancelForm.prototype.initilize = function () {
	        this.cancellationForm = {
	            cancellation_reason: '',
	            student_name: this.accountModel.fullname,
	            cancellation_reason_id: -1,
	            calendar_instance_id: -1,
	            comments: '',
	            cancelled_date: '',
	            cancel_all: false
	        };
	        this.isAppointmentCancelled = false;
	        this.cancellationComments = '';
	    };
	    AppointmentCancelForm.prototype.reSchedule = function () {
	        this.closeCancelForm();
	        this.$state.go('my.appointments');
	    };
	    AppointmentCancelForm.prototype.selectCancellationReason = function (item) {
	        this.cancellationForm.cancellation_reason_id = item.id;
	        this.cancellationForm.cancellation_reason = item.name;
	    };
	    AppointmentCancelForm.prototype.setCancellationComments = function (event) {
	        this.cancellationForm.comments = _4.get(event.target, 'value');
	    };
	    AppointmentCancelForm.prototype.cancelAll = function () {
	        this.cancellationForm.cancel_all = !this.cancellationForm.cancel_all;
	    };
	    AppointmentCancelForm.prototype.cancelAppointment = function () {
	        var _this = this;
	        if (!this.isCancellationPending) {
	            this.isCancellationPending = true;
	            this.cancelAppointmentCommand(this.appointment, this.cancellationForm)
	                .then(function () {
	                _this.cancellationForm.cancelled_date = moment().format('MMM DD,YYYY [at] hh:mm A');
	                _this.isAppointmentCancelled = true;
	                _this._onCancel({ cancellationForm: _this.cancellationForm });
	                _this.ngAppointmentRemindersServant.trigger.success('Cancelled Appointment.');
	                _this.loadUpcomingAppointmentsCommand();
	                _this.isCancellationPending = false;
	            })
	                .catch(function (err) {
	                _this.log.error(err);
	                _this.ngAppointmentRemindersServant.trigger.warn('Unable to cancel the Appointment.');
	                _this.isCancellationPending = false;
	            });
	        }
	    };
	    return AppointmentCancelForm;
	}(appointment_info_servant_1.AppointmentInfoServant));
	exports.AppointmentCancelForm = AppointmentCancelForm;


/***/ }),
/* 133 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var appointment_info_servant_1 = __webpack_require__(30);
	var AppointmentDetails = /** @class */ (function (_super) {
	    tslib_1.__extends(AppointmentDetails, _super);
	    function AppointmentDetails(accountModel, ngUpcomingAppointmentsQuery, $state, cancelAppointmentCommand, checkinAppointmentCommand, checkoutAppointmentCommand, clearAllAppointmentsDataSourcesCommand, phxFocusDelegate, loadUpcomingAppointmentsCommand, calendarFacade, log) {
	        var _this = _super.call(this) || this;
	        _this.accountModel = accountModel;
	        _this.ngUpcomingAppointmentsQuery = ngUpcomingAppointmentsQuery;
	        _this.$state = $state;
	        _this.cancelAppointmentCommand = cancelAppointmentCommand;
	        _this.checkinAppointmentCommand = checkinAppointmentCommand;
	        _this.checkoutAppointmentCommand = checkoutAppointmentCommand;
	        _this.clearAllAppointmentsDataSourcesCommand = clearAllAppointmentsDataSourcesCommand;
	        _this.phxFocusDelegate = phxFocusDelegate;
	        _this.loadUpcomingAppointmentsCommand = loadUpcomingAppointmentsCommand;
	        _this.calendarFacade = calendarFacade;
	        _this.log = log;
	        _this.isActiveVisit = false;
	        _this.isDropin = false;
	        _this.iosRegex = /[\n\r]/g; // regex for newline and carriage returns which cause ios trouble
	        _this.activeVisit = _this.ngUpcomingAppointmentsQuery.findActiveVisit(_this.$state.params.id);
	        _this.isActiveVisit = !_4.isEmpty(_this.activeVisit);
	        _this.isDropin = !_4.isEmpty(_this.activeVisit) && _4.isNull(_this.activeVisit.attendance_id);
	        if (_this.isDropin) {
	            _this.appointmentDetails = _this.generateActiveVsitCardInfo(_this.activeVisit);
	        }
	        else {
	            _this.getAppointment();
	        }
	        _this.closeCancelForm = _this.closeCancelForm.bind(_this);
	        _this.isCalendarAvailable = !utility_ts_platform_1.PlatformUtility.isDesktop() && !_this.isDropin;
	        if (_this.isCalendarAvailable) {
	            _this.appointmentCalendarEvent = {
	                title: "General Advising Appointment: " + _.map(_this.appointment.student_services, 'name').join(', '),
	                location: _this.appointment.location.name,
	                notes: _this.appointment.comments
	                    ? "Comments: " + _this._stripLineBreaks(_this.appointment.comments) + "."
	                    : _this._stripLineBreaks(_this.appointment.additional_details)
	                        ? "Additional Details: " + _this._stripLineBreaks(_this.appointment.additional_details)
	                        : "",
	                startDate: moment.unix(_this.appointment.start_timestamp).toDate(),
	                endDate: moment.unix(_this.appointment.end_timestamp).toDate()
	            };
	        }
	        // Find event in calendar
	        if (_this.isCalendarAvailable && _this.calendarFacade.isCalendarAvailable()) {
	            _this.calendarFacade.findEvent(_this.appointmentCalendarEvent).then(function (eventIds) {
	                _this.isSyncedToCalendar = !_.isEmpty(eventIds);
	            });
	        }
	        _this.isAppointmentCancelled = _this._isAppointmentCancelled;
	        _this.boundAppointmentCancelledCallback = _this.appointmentCancelledCallback.bind(_this);
	        _this.canCheckin = _this.isActiveVisit ? false : _4.get(_this.appointment, '_canCheckin', false);
	        _this.canCheckout = _this.isDropin ? _this.activeVisit.can_checkout : _4.get(_this.appointment, '_canCheckout', false);
	        return _this;
	    }
	    AppointmentDetails.prototype.getAppointment = function () {
	        var _this = this;
	        var attendanceId = _4.isEmpty(this.activeVisit)
	            ? this.$state.params.id
	            : this.activeVisit.attendance_id.toString();
	        if (_4.isNil(this.ngUpcomingAppointmentsQuery.findAppointment(attendanceId))) {
	            this.loadUpcomingAppointmentsCommand().then(function () {
	                _this.appointment = _this.ngUpcomingAppointmentsQuery.findAppointment(attendanceId);
	                _this.appointmentDetails = _this.generateAppointmentDetails(_this.appointment, _this.studentFullname);
	            });
	        }
	        else {
	            this.appointment = this.ngUpcomingAppointmentsQuery.findAppointment(attendanceId);
	            this.appointmentDetails = this.generateAppointmentDetails(this.appointment, this.studentFullname);
	        }
	    };
	    AppointmentDetails.prototype._stripLineBreaks = function (unescapedString) {
	        return unescapedString ? unescapedString.replace(this.iosRegex, ' ') : '';
	    };
	    Object.defineProperty(AppointmentDetails.prototype, "studentFullname", {
	        get: function () {
	            return this.accountModel.firstName + " " + this.accountModel.lastName;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    AppointmentDetails.prototype.cancelAppointment = function () {
	        this.showCancelForm = true;
	    };
	    Object.defineProperty(AppointmentDetails.prototype, "_isAppointmentCancelled", {
	        get: function () {
	            return _4.get(this.appointment, 'is_cancelled', false);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    AppointmentDetails.prototype.isPhoneNumber = function (rawLink) {
	        return /^\d/g.test(rawLink);
	    };
	    AppointmentDetails.prototype.closeCancelForm = function () {
	        this.showCancelForm = false;
	    };
	    AppointmentDetails.prototype.reSchedule = function () {
	        this.closeCancelForm();
	        this.$state.go('my.appointments');
	    };
	    AppointmentDetails.prototype.appointmentCancelledCallback = function (cancelForm) {
	        this.cancellationForm = cancelForm.cancellationForm;
	        this.isAppointmentCancelled = true;
	        this.closeCancelForm();
	        if (this.isCalendarAvailable && this.calendarFacade.isCalendarAvailable()) {
	            this.calendarFacade.deleteEvent(this.appointmentCalendarEvent);
	        }
	    };
	    // Add event to calendar
	    AppointmentDetails.prototype.addToCalendar = function () {
	        var _this = this;
	        if (this.isCalendarAvailable && this.calendarFacade.isCalendarAvailable()) {
	            this.calendarFacade.registerEvent(this.appointmentCalendarEvent).then(function (eventIds) {
	                _this.isSyncedToCalendar = !_.isEmpty(eventIds);
	            });
	        }
	    };
	    return AppointmentDetails;
	}(appointment_info_servant_1.AppointmentInfoServant));
	exports.AppointmentDetails = AppointmentDetails;


/***/ }),
/* 134 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var appointment_info_servant_1 = __webpack_require__(30);
	var AppointmentRequest = /** @class */ (function (_super) {
	    tslib_1.__extends(AppointmentRequest, _super);
	    function AppointmentRequest(ngUpcomingAppointmentsQuery, $state, prepareAppointmentCampaignRequestCommand, loadUpcomingAppointmentsCommand, ngStcSchedulingConfigModel) {
	        var _this = _super.call(this) || this;
	        _this.ngUpcomingAppointmentsQuery = ngUpcomingAppointmentsQuery;
	        _this.$state = $state;
	        _this.prepareAppointmentCampaignRequestCommand = prepareAppointmentCampaignRequestCommand;
	        _this.loadUpcomingAppointmentsCommand = loadUpcomingAppointmentsCommand;
	        _this.ngStcSchedulingConfigModel = ngStcSchedulingConfigModel;
	        if (_4.isNil(_this.ngUpcomingAppointmentsQuery.findAppointment(_this.$state.params.id))) {
	            _this.loadUpcomingAppointmentsCommand().then(function () {
	                _this.appointment = _this.ngUpcomingAppointmentsQuery.findAppointment(_this.$state.params.id);
	                _this.appointmentDetails = _this.generateAppointmentRequestCardInfo(_this.appointment);
	            });
	        }
	        else {
	            _this.appointment = _this.ngUpcomingAppointmentsQuery.findAppointment(_this.$state.params.id);
	            _this.appointmentDetails = _this.generateAppointmentRequestCardInfo(_this.appointment);
	        }
	        return _this;
	    }
	    AppointmentRequest.prototype.scheduleAppointment = function () {
	        var _this = this;
	        this.prepareAppointmentCampaignRequestCommand(this.appointment).then(function () {
	            var returnState = { state: 'my.myAppointments.upcoming', params: {} };
	            if (_this.ngStcSchedulingConfigModel.read().v3_student_scheduler_flag) {
	                _this.$state.go('my.appointment-invitation-results', {
	                    invitation_id: "" + _this.appointment.id
	                });
	            }
	            else {
	                _this.$state.go('my.appointments.available_times', {
	                    invitationId: _this.appointment.id,
	                    returnState: returnState
	                });
	            }
	        });
	    };
	    return AppointmentRequest;
	}(appointment_info_servant_1.AppointmentInfoServant));
	exports.AppointmentRequest = AppointmentRequest;


/***/ }),
/* 135 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var ChoiceSelectorController = /** @class */ (function () {
	    function ChoiceSelectorController(ngAppointmentSchedulingConfiguration, ngAppointmentsChoiceSelectorServant, ngAppointmentButtonServant) {
	        this.ngAppointmentSchedulingConfiguration = ngAppointmentSchedulingConfiguration;
	        this.ngAppointmentsChoiceSelectorServant = ngAppointmentsChoiceSelectorServant;
	        this.ngAppointmentButtonServant = ngAppointmentButtonServant;
	        this._choiceActive = false;
	        this.multi = false;
	        this.toggleChoice = this.toggleChoice.bind(this);
	        this.next = this.next.bind(this);
	    }
	    Object.defineProperty(ChoiceSelectorController.prototype, "choiceActive", {
	        get: function () {
	            return this._choiceActive;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    ChoiceSelectorController.prototype.$onInit = function () {
	        this.ngAppointmentsChoiceSelectorServant.add(this);
	        this.nextText = !!this.nextText ? this.nextText : 'Answer Next Question';
	        this.optional = !!this.optional;
	        this.isMobile = utility_ts_platform_1.PlatformUtility.isMobile();
	    };
	    ChoiceSelectorController.prototype.$onDestroy = function () {
	        this.ngAppointmentsChoiceSelectorServant.remove(this);
	    };
	    ChoiceSelectorController.prototype.isItemSelected = function (itemName) {
	        if (_4.isString(this.value)) {
	            return this.value === itemName;
	        }
	        return this.value.includes(itemName);
	    };
	    ChoiceSelectorController.prototype.toggleChoice = function () {
	        this._choiceActive = !this._choiceActive;
	        this.configureButton();
	    };
	    ChoiceSelectorController.prototype.toggleChoiceForMobile = function () {
	        if (this.isMobile) {
	            this.toggleChoice();
	        }
	    };
	    ChoiceSelectorController.prototype.$onChanges = function (changesObject) {
	        if (this.choiceActive && this.isComplete === this.ngAppointmentButtonServant.isDisabled) {
	            this.ngAppointmentButtonServant.isDisabled = !this.isComplete;
	        }
	    };
	    ChoiceSelectorController.prototype.onChosen = function (choice) {
	        this.choiceSelected(choice);
	    };
	    ChoiceSelectorController.prototype.next = function () {
	        this.ngAppointmentsChoiceSelectorServant.next(this);
	    };
	    Object.defineProperty(ChoiceSelectorController.prototype, "isComplete", {
	        get: function () {
	            return this.value.length > 0 || this.optional;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    ChoiceSelectorController.prototype.configureButton = function () {
	        if (this.choiceActive) {
	            this.ngAppointmentButtonServant.configButton({
	                isDisabled: !this.isComplete,
	                action: this.next,
	                buttonText: this.nextText
	            });
	        }
	        else {
	            this.ngAppointmentButtonServant.setDefaults();
	            // TODO: Configure next button
	            // this.ngAppointmentButtonServant.buttonText = 'Continue to Location & Staff';
	        }
	    };
	    ChoiceSelectorController.prototype.render = function (item) {
	        if (!!this.renderFunction) {
	            return this.renderFunction(item);
	        }
	        return item.name;
	    };
	    return ChoiceSelectorController;
	}());
	exports.ChoiceSelectorController = ChoiceSelectorController;
	var ChoiceSelectorComponent = /** @class */ (function () {
	    function ChoiceSelectorComponent() {
	        this.templateUrl = 'capability-ng-appointments/src/components/choice_selector/choice_selector.html';
	        this.controllerAs = '$ctrl';
	        this.controller = ChoiceSelectorController;
	        this.bindings = {
	            choices: '<',
	            choiceSelected: '<',
	            instructions: '<',
	            multi: '<',
	            value: '<',
	            backText: '<',
	            renderFunction: '<',
	            optional: '<',
	            nextText: '<'
	        };
	    }
	    return ChoiceSelectorComponent;
	}());
	exports.ChoiceSelectorComponent = ChoiceSelectorComponent;
	angular
	    .module('capability-ng-appointments')
	    .controller('ChoiceSelectorController', ChoiceSelectorController)
	    .component('choiceSelector', new ChoiceSelectorComponent());


/***/ }),
/* 136 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var DeadEndComponent = /** @class */ (function () {
	    function DeadEndComponent() {
	        this.templateUrl = 'capability-ng-appointments/src/components/dead_end/dead_end.html';
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            text: '<',
	            isActive: '<'
	        };
	    }
	    return DeadEndComponent;
	}());
	exports.DeadEndComponent = DeadEndComponent;
	angular.module('capability-ng-appointments').component('deadEnd', new DeadEndComponent());


/***/ }),
/* 137 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var moment = __webpack_require__(2);
	var AppointmentsAvailableTimesDatasource = /** @class */ (function () {
	    function AppointmentsAvailableTimesDatasource($stateParams) {
	        this.$stateParams = $stateParams;
	        this._source = {
	            availableTimes: [],
	            beginTimes: [],
	            selectedTime: {},
	            walkInTimesEnabled: false,
	            requestAppointmentEnabled: false,
	            isBlockedFromScheduling: false,
	            blockedFromSchedulingMessage: '',
	            isSendEmail: false,
	            isSendText: false
	        };
	        this.initialize();
	    }
	    AppointmentsAvailableTimesDatasource.prototype.initialize = function () {
	        this._source = {
	            availableTimes: [],
	            beginTimes: [],
	            selectedTime: {},
	            walkInTimesEnabled: false,
	            requestAppointmentEnabled: false,
	            isBlockedFromScheduling: false,
	            blockedFromSchedulingMessage: '',
	            isSendEmail: false,
	            isSendText: false
	        };
	        return this;
	    };
	    AppointmentsAvailableTimesDatasource.prototype.write = function (raw, campaignBeginDate) {
	        if (campaignBeginDate === void 0) { campaignBeginDate = 0; }
	        var beginDate = campaignBeginDate || this.$stateParams.campaignBeginDate || 0;
	        var beginTimes = [];
	        var availableTimes = _.filter(_.values(raw.appointment_times), function (time) { return time.begin_time > beginDate; });
	        beginTimes = _.map(availableTimes, function (time) {
	            return moment.unix(time.begin_time);
	        });
	        this._source = {
	            availableTimes: availableTimes,
	            beginTimes: beginTimes,
	            selectedTime: {},
	            walkInTimesEnabled: raw.show_walk_in_times,
	            requestAppointmentEnabled: raw.allow_request_advising_appointment,
	            isBlockedFromScheduling: raw.is_blocked_from_scheduling,
	            blockedFromSchedulingMessage: raw.blocked_from_scheduling_message,
	            isSendEmail: raw.email_reminder,
	            isSendText: raw.sms_reminder
	        };
	        return this;
	    };
	    AppointmentsAvailableTimesDatasource.prototype.setSelectedTime = function (time) {
	        this._source.selectedTime = time;
	    };
	    AppointmentsAvailableTimesDatasource.prototype.read = function () {
	        return this._source;
	    };
	    AppointmentsAvailableTimesDatasource.prototype.clear = function () {
	        this.initialize();
	    };
	    AppointmentsAvailableTimesDatasource.prototype.report = function (fn) {
	        return fn(this._source);
	    };
	    return AppointmentsAvailableTimesDatasource;
	}());
	exports.AppointmentsAvailableTimesDatasource = AppointmentsAvailableTimesDatasource;


/***/ }),
/* 138 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var AppointmentsLocationsDatasource = /** @class */ (function () {
	    function AppointmentsLocationsDatasource() {
	        this._source = {
	            locations: [],
	            selectedLocation: {},
	            hasLocations: true,
	            allowedLocations: []
	        };
	        this.initialize();
	    }
	    AppointmentsLocationsDatasource.prototype.initialize = function () {
	        this._source = {
	            locations: [],
	            selectedLocation: {},
	            hasLocations: true,
	            allowedLocations: []
	        };
	        return this;
	    };
	    AppointmentsLocationsDatasource.prototype.write = function (raw) {
	        this._source = {
	            locations: _.sortBy(raw, 'name'),
	            selectedLocation: {},
	            hasLocations: !_.isEmpty(raw),
	            allowedLocations: _.sortBy(_.filter(raw, 'allow_student_to_request_advising_appointments', true), 'name')
	        };
	        return this;
	    };
	    AppointmentsLocationsDatasource.prototype.setSelectedLocation = function (location) {
	        this._source.selectedLocation = location;
	    };
	    AppointmentsLocationsDatasource.prototype.read = function () {
	        return this._source;
	    };
	    AppointmentsLocationsDatasource.prototype.clear = function () {
	        this.initialize();
	    };
	    AppointmentsLocationsDatasource.prototype.report = function (fn) {
	        return fn(this._source);
	    };
	    return AppointmentsLocationsDatasource;
	}());
	exports.AppointmentsLocationsDatasource = AppointmentsLocationsDatasource;


/***/ }),
/* 139 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ConfirmAppointmentReminderOptions;
	(function (ConfirmAppointmentReminderOptions) {
	    ConfirmAppointmentReminderOptions["ON"] = "default-on";
	    ConfirmAppointmentReminderOptions["OFF"] = "default-off";
	    ConfirmAppointmentReminderOptions["DISABLED"] = "never";
	    ConfirmAppointmentReminderOptions["ENABLED"] = "always";
	})(ConfirmAppointmentReminderOptions = exports.ConfirmAppointmentReminderOptions || (exports.ConfirmAppointmentReminderOptions = {}));


/***/ }),
/* 140 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var moment = __webpack_require__(2);
	var utility_ts_datasource_1 = __webpack_require__(9);
	var AppointmentsAvailableTimesQuery = /** @class */ (function () {
	    function AppointmentsAvailableTimesQuery(ngAppointmentAvailableTimesDatasource1, ngAppointmentReasonUsersource, ngAppointmentLocationsOrganizersUsersource) {
	        this.ngAppointmentAvailableTimesDatasource1 = ngAppointmentAvailableTimesDatasource1;
	        this.ngAppointmentReasonUsersource = ngAppointmentReasonUsersource;
	        this.ngAppointmentLocationsOrganizersUsersource = ngAppointmentLocationsOrganizersUsersource;
	        utility_ts_datasource_1.ORMMediator.registerQuery(this, ngAppointmentAvailableTimesDatasource1);
	    }
	    AppointmentsAvailableTimesQuery.prototype.run = function () {
	        var selectedType = this.ngAppointmentReasonUsersource.read().selectedType;
	        var selectedLocation = this.ngAppointmentLocationsOrganizersUsersource.read().selectedLocation;
	        var availableTimes = this.ngAppointmentAvailableTimesDatasource1.values();
	        var flattenAvailableTimes = _4.reduce(availableTimes, function (result, value) { return result.concat(value.allTimes); }, []);
	        var availableTimeRanges = _4.map(flattenAvailableTimes, function (time) { return time.range; });
	        var availableTimesList = _4.map(availableTimeRanges, function (range) {
	            return moment.unix(_4.toNumber(_4.head(_4.split(range, '_'))));
	        });
	        var canViewDropons = selectedLocation.can_view_dropins;
	        var canRequest = selectedType.can_request && selectedLocation.can_request;
	        this._result = {
	            availableTimesList: availableTimesList,
	            flattenAvailableTimes: flattenAvailableTimes,
	            canViewDropons: canViewDropons,
	            canRequest: canRequest
	        };
	        return this;
	    };
	    Object.defineProperty(AppointmentsAvailableTimesQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return AppointmentsAvailableTimesQuery;
	}());
	exports.AppointmentsAvailableTimesQuery = AppointmentsAvailableTimesQuery;


/***/ }),
/* 141 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var moment = __webpack_require__(2);
	var utility_ts_datasource_1 = __webpack_require__(9);
	var _4 = __webpack_require__(1);
	var AppointmentsConfirmQuery = /** @class */ (function () {
	    function AppointmentsConfirmQuery(ngAppointmentAvailableTimesUsersource, ngAppointmentReasonUsersource, accountModel, appointmentCampaignConstant) {
	        this.ngAppointmentAvailableTimesUsersource = ngAppointmentAvailableTimesUsersource;
	        this.ngAppointmentReasonUsersource = ngAppointmentReasonUsersource;
	        this.accountModel = accountModel;
	        this.appointmentCampaignConstant = appointmentCampaignConstant;
	        utility_ts_datasource_1.ORMMediator.registerQuery(this, ngAppointmentAvailableTimesUsersource);
	    }
	    Object.defineProperty(AppointmentsConfirmQuery.prototype, "studentFullName", {
	        get: function () {
	            return this.accountModel.firstName + " " + this.accountModel.lastName;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    AppointmentsConfirmQuery.prototype.run = function () {
	        var _a;
	        var selectedTimeDetails = this.ngAppointmentAvailableTimesUsersource.read().selectedTimeDetails;
	        var when = '';
	        var appointmentType = '';
	        var who = '';
	        var why = '';
	        var location = '';
	        var organizerType = '';
	        var organizer = {};
	        var startTimeUnix = '';
	        var endTimeUnix = '';
	        var additionalDetails = '';
	        var meetingUrlOrPhone = '';
	        var isCampaignAppointment = this.appointmentCampaignConstant.isAppointmentCampaign;
	        if (!_4.isEmpty(selectedTimeDetails)) {
	            organizer = selectedTimeDetails.available;
	            additionalDetails = selectedTimeDetails.details;
	            _a = _4.split(selectedTimeDetails.range, '_'), startTimeUnix = _a[0], endTimeUnix = _a[1];
	            var startTime = moment.unix(_4.toNumber(startTimeUnix)).format('ddd, MMM DD YYYY - hh:mm A');
	            var endTime = moment.unix(_4.toNumber(endTimeUnix)).format('hh:mm A');
	            when = startTime + "-" + endTime;
	            appointmentType = this.ngAppointmentReasonUsersource.read().selectedType.name;
	            who = this.studentFullName + " with " + organizer.first_name + " " + organizer.last_name;
	            why = this.ngAppointmentReasonUsersource.read().selectedService.name;
	            location = selectedTimeDetails.location;
	            organizerType = this.ngAppointmentReasonUsersource.read().selectedType.organizer_name;
	            meetingUrlOrPhone = _4.get(selectedTimeDetails, 'meeting_url_or_phone', '');
	        }
	        this._result = {
	            when: when,
	            appointmentType: appointmentType,
	            who: who,
	            why: why,
	            location: location,
	            organizerType: organizerType,
	            startTimeUnix: startTimeUnix,
	            endTimeUnix: endTimeUnix,
	            organizer: organizer,
	            selectedService: this.ngAppointmentReasonUsersource.read().selectedService,
	            isCampaignAppointment: isCampaignAppointment,
	            additionalDetails: additionalDetails,
	            meetingUrlOrPhone: meetingUrlOrPhone
	        };
	        return this;
	    };
	    Object.defineProperty(AppointmentsConfirmQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return AppointmentsConfirmQuery;
	}());
	exports.AppointmentsConfirmQuery = AppointmentsConfirmQuery;


/***/ }),
/* 142 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var utility_ts_datasource_1 = __webpack_require__(9);
	var AppointmentsCoursesQuery = /** @class */ (function () {
	    function AppointmentsCoursesQuery(ngAppointmentLocationsOrganizersDatasource, ngAppointmentLocationsOrganizersUsersource, ngAppointmentReasonUsersource) {
	        this.ngAppointmentLocationsOrganizersDatasource = ngAppointmentLocationsOrganizersDatasource;
	        this.ngAppointmentLocationsOrganizersUsersource = ngAppointmentLocationsOrganizersUsersource;
	        this.ngAppointmentReasonUsersource = ngAppointmentReasonUsersource;
	        utility_ts_datasource_1.ORMMediator.registerQuery(this, ngAppointmentLocationsOrganizersDatasource, ngAppointmentLocationsOrganizersUsersource);
	    }
	    AppointmentsCoursesQuery.prototype.run = function () {
	        var selectedType = this.ngAppointmentReasonUsersource.read().selectedType;
	        if (!!selectedType.instructions) {
	            var coursesInstructions = selectedType.instructions.course;
	            var errorMessage = selectedType.instructions.organizers_error;
	            var selectedLocation = this.ngAppointmentLocationsOrganizersUsersource.read().selectedLocation;
	            var showCourses = _4.gt(selectedLocation.id, 0) && selectedLocation.include_courses;
	            var coursesList = [];
	            var hasCourses = false;
	            if (showCourses) {
	                coursesList = selectedLocation.courses || [];
	                hasCourses = coursesList.length > 0;
	                coursesList = _4.map(coursesList, function (course) {
	                    return tslib_1.__assign(tslib_1.__assign({}, course), { name: _4.get(course, 'section_display_name', course.name) });
	                });
	            }
	            this._result = {
	                coursesList: coursesList,
	                coursesInstructions: coursesInstructions,
	                errorMessage: errorMessage,
	                hasCourses: hasCourses,
	                showCourses: showCourses
	            };
	        }
	        return this;
	    };
	    Object.defineProperty(AppointmentsCoursesQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return AppointmentsCoursesQuery;
	}());
	exports.AppointmentsCoursesQuery = AppointmentsCoursesQuery;


/***/ }),
/* 143 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_datasource_1 = __webpack_require__(9);
	var AppointmentsLocationsQuery = /** @class */ (function () {
	    function AppointmentsLocationsQuery(ngAppointmentLocationsOrganizersDatasource, ngAppointmentLocationsOrganizersUsersource, ngAppointmentReasonUsersource) {
	        this.ngAppointmentLocationsOrganizersDatasource = ngAppointmentLocationsOrganizersDatasource;
	        this.ngAppointmentLocationsOrganizersUsersource = ngAppointmentLocationsOrganizersUsersource;
	        this.ngAppointmentReasonUsersource = ngAppointmentReasonUsersource;
	        utility_ts_datasource_1.ORMMediator.registerQuery(this, ngAppointmentLocationsOrganizersDatasource, ngAppointmentLocationsOrganizersUsersource);
	    }
	    AppointmentsLocationsQuery.prototype.run = function () {
	        var selectedType = this.ngAppointmentReasonUsersource.read().selectedType;
	        if (!!selectedType.instructions) {
	            var locationsInstructions = selectedType.instructions.location;
	            var locationsList = _4.sortBy(this.ngAppointmentLocationsOrganizersDatasource.values(), 'name');
	            var hasLocations = !_4.isEmpty(locationsList);
	            var errorMessage = selectedType.instructions.location_error;
	            this._result = {
	                locationsList: locationsList,
	                locationsInstructions: locationsInstructions,
	                hasLocations: hasLocations,
	                errorMessage: errorMessage
	            };
	        }
	        return this;
	    };
	    Object.defineProperty(AppointmentsLocationsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return AppointmentsLocationsQuery;
	}());
	exports.AppointmentsLocationsQuery = AppointmentsLocationsQuery;


/***/ }),
/* 144 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var utility_ts_datasource_1 = __webpack_require__(9);
	var AppointmentsOrganizersQuery1 = /** @class */ (function () {
	    function AppointmentsOrganizersQuery1(ngAppointmentLocationsOrganizersDatasource, ngAppointmentLocationsOrganizersUsersource, ngAppointmentReasonUsersource, ngAppointmentUsersourceServant) {
	        this.ngAppointmentLocationsOrganizersDatasource = ngAppointmentLocationsOrganizersDatasource;
	        this.ngAppointmentLocationsOrganizersUsersource = ngAppointmentLocationsOrganizersUsersource;
	        this.ngAppointmentReasonUsersource = ngAppointmentReasonUsersource;
	        this.ngAppointmentUsersourceServant = ngAppointmentUsersourceServant;
	        utility_ts_datasource_1.ORMMediator.registerQuery(this, ngAppointmentLocationsOrganizersDatasource, ngAppointmentLocationsOrganizersUsersource);
	    }
	    AppointmentsOrganizersQuery1.prototype.__getOrganizersList = function (organizers, selectedType) {
	        return _4.map(organizers, function (organizer) { return (tslib_1.__assign(tslib_1.__assign({}, organizer), { advisorLabel: organizer.parent_of_student ? "(Your " + selectedType.organizer_name + ")" : '' })); });
	    };
	    AppointmentsOrganizersQuery1.prototype.run = function () {
	        var selectedType = this.ngAppointmentReasonUsersource.read().selectedType;
	        if (!!selectedType.instructions) {
	            var organizersInstructions = selectedType.instructions.staff;
	            var errorMessage = selectedType.instructions.organizers_error
	                ? selectedType.instructions.organizers_error
	                : selectedType.instructions.location_error;
	            var selectedLocation = this.ngAppointmentLocationsOrganizersUsersource.read().selectedLocation;
	            var selectedCourse = this.ngAppointmentLocationsOrganizersUsersource.read().selectedCourse;
	            var organizersList = [];
	            var hasOrganizers = false;
	            var isAllowedToChooseOrganizer = true;
	            var can_request = selectedLocation.can_request;
	            var is_blocked = selectedLocation.is_blocked ? selectedLocation.is_blocked : false;
	            var blockedReason = selectedLocation.blocked_reason ? selectedLocation.blocked_reason : '';
	            var can_view_dropins = selectedLocation.can_view_dropins;
	            var showBlockedReason = is_blocked && !can_request && !can_view_dropins;
	            var showOrganizers = _4.gt(selectedCourse.id, 0) || (!selectedLocation.include_courses && _4.gt(selectedLocation.id, 0));
	            if (selectedLocation.id && !selectedLocation.include_courses) {
	                isAllowedToChooseOrganizer = this.ngAppointmentUsersourceServant.isUserAllowedRoChooseOrganizer;
	                organizersList = this.__getOrganizersList(selectedLocation.organizers, selectedType);
	                organizersList = _4.orderBy(organizersList, ['advisorLabel', 'id'], ['desc', 'asc']);
	                hasOrganizers = organizersList.length > 0;
	            }
	            else if (selectedCourse.id && selectedLocation.include_courses) {
	                isAllowedToChooseOrganizer = this.ngAppointmentUsersourceServant.isUserAllowedRoChooseOrganizer;
	                organizersList = this.__getOrganizersList(selectedCourse.organizers, selectedType);
	                organizersList = _4.orderBy(organizersList, ['advisorLabel', 'id'], ['desc', 'asc']);
	                hasOrganizers = organizersList.length > 0;
	            }
	            this._result = {
	                organizersList: organizersList,
	                organizersInstructions: organizersInstructions,
	                errorMessage: errorMessage,
	                hasOrganizers: hasOrganizers,
	                isAllowedToChooseOrganizer: isAllowedToChooseOrganizer,
	                showOrganizers: showOrganizers,
	                blockedReason: blockedReason,
	                showBlockedReason: showBlockedReason
	            };
	        }
	        return this;
	    };
	    Object.defineProperty(AppointmentsOrganizersQuery1.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return AppointmentsOrganizersQuery1;
	}());
	exports.AppointmentsOrganizersQuery1 = AppointmentsOrganizersQuery1;


/***/ }),
/* 145 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(7);
	var utility_ts_datasource_1 = __webpack_require__(9);
	var AppointmentsReasonQuery = /** @class */ (function () {
	    function AppointmentsReasonQuery(ngAppointmentReasonTypeDatasource, ngAppointmentReasonUsersource) {
	        this.ngAppointmentReasonTypeDatasource = ngAppointmentReasonTypeDatasource;
	        this.ngAppointmentReasonUsersource = ngAppointmentReasonUsersource;
	        utility_ts_datasource_1.ORMMediator.registerQuery(this, ngAppointmentReasonTypeDatasource, ngAppointmentReasonUsersource);
	    }
	    AppointmentsReasonQuery.prototype.run = function () {
	        var typeInstructions = _4.get(this.ngAppointmentReasonTypeDatasource.model, 'appointment_type_instructions', '');
	        var typeList = _4.sortBy(this.ngAppointmentReasonTypeDatasource.values(), 'name');
	        this._result = {
	            typeList: typeList,
	            typeInstructions: typeInstructions
	        };
	        return this;
	    };
	    Object.defineProperty(AppointmentsReasonQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return AppointmentsReasonQuery;
	}());
	exports.AppointmentsReasonQuery = AppointmentsReasonQuery;


/***/ }),
/* 146 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(7);
	var utility_ts_datasource_1 = __webpack_require__(9);
	var AppointmentsServiceCategoriesQuery = /** @class */ (function () {
	    function AppointmentsServiceCategoriesQuery(ngAppointmentReasonTypeDatasource, ngAppointmentReasonUsersource) {
	        this.ngAppointmentReasonTypeDatasource = ngAppointmentReasonTypeDatasource;
	        this.ngAppointmentReasonUsersource = ngAppointmentReasonUsersource;
	        utility_ts_datasource_1.ORMMediator.registerQuery(this, ngAppointmentReasonTypeDatasource, ngAppointmentReasonUsersource);
	    }
	    AppointmentsServiceCategoriesQuery.prototype.run = function () {
	        var categoryInstructions = '';
	        var selectedType = this.ngAppointmentReasonUsersource.read().selectedType;
	        var categoryList = [];
	        var hasCategories = false;
	        var isCategorySelectionOptional = false;
	        var errorMessage = '';
	        var isStudentBlocked = false;
	        var blockedReason = '';
	        if (selectedType.id) {
	            isStudentBlocked = selectedType.is_blocked && !selectedType.can_request;
	            blockedReason = selectedType.blocked_reason;
	            errorMessage =
	                selectedType.instructions.reason_error ||
	                    this.ngAppointmentReasonUsersource.read().selectedType.name + " is not available";
	            if (_4.isNull(selectedType.student_service_categories)) {
	                isCategorySelectionOptional = true;
	            }
	            else {
	                isCategorySelectionOptional = false;
	                categoryList = _4.sortBy(selectedType.student_service_categories, 'name');
	                hasCategories = categoryList.length > 0;
	                categoryInstructions = selectedType.instructions.student_service_category;
	            }
	        }
	        this._result = {
	            categoryList: categoryList,
	            categoryInstructions: categoryInstructions,
	            hasCategories: hasCategories,
	            errorMessage: errorMessage,
	            isCategorySelectionOptional: isCategorySelectionOptional,
	            isStudentBlocked: isStudentBlocked,
	            blockedReason: blockedReason
	        };
	        return this;
	    };
	    Object.defineProperty(AppointmentsServiceCategoriesQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return AppointmentsServiceCategoriesQuery;
	}());
	exports.AppointmentsServiceCategoriesQuery = AppointmentsServiceCategoriesQuery;


/***/ }),
/* 147 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(7);
	var utility_ts_datasource_1 = __webpack_require__(9);
	var AppointmentsServiceQuery = /** @class */ (function () {
	    function AppointmentsServiceQuery(ngAppointmentReasonTypeDatasource, ngAppointmentReasonUsersource) {
	        this.ngAppointmentReasonTypeDatasource = ngAppointmentReasonTypeDatasource;
	        this.ngAppointmentReasonUsersource = ngAppointmentReasonUsersource;
	        utility_ts_datasource_1.ORMMediator.registerQuery(this, ngAppointmentReasonTypeDatasource, ngAppointmentReasonUsersource);
	    }
	    AppointmentsServiceQuery.prototype.studentServicesData = function (servicesList) {
	        var selectedType = this.ngAppointmentReasonUsersource.read().selectedType;
	        var hasServices = servicesList.length > 0;
	        var serviceInstructions = selectedType.instructions.student_service;
	        var errorMessage = selectedType.instructions.reason_error ||
	            (this.ngAppointmentReasonUsersource.read().selectedCategory.name ||
	                this.ngAppointmentReasonUsersource.read().selectedType.name) + " is not available";
	        return { hasServices: hasServices, serviceInstructions: serviceInstructions, errorMessage: errorMessage };
	    };
	    AppointmentsServiceQuery.prototype.coursesList = function (courses) {
	        return _4.map(courses, function (course) { return ({
	            id: course.id,
	            name: course.name + " (course)",
	            isCourse: true,
	            deny_students_to_choose_organizer: false
	        }); });
	    };
	    AppointmentsServiceQuery.prototype.run = function () {
	        var _a, _b;
	        var serviceInstructions = '';
	        var selectedType = this.ngAppointmentReasonUsersource.read().selectedType;
	        var selectedCategory = this.ngAppointmentReasonUsersource.read().selectedCategory;
	        var servicesList = [];
	        var errorMessage = '';
	        var hasServices = false;
	        if (selectedCategory.id) {
	            var courses = selectedCategory.include_courses ? selectedCategory.courses : [];
	            servicesList = tslib_1.__spreadArrays(selectedCategory.student_services, this.coursesList(courses));
	            (_a = this.studentServicesData(servicesList), hasServices = _a.hasServices, serviceInstructions = _a.serviceInstructions, errorMessage = _a.errorMessage);
	        }
	        else if (_4.isNull(selectedType.student_service_categories)) {
	            var courses = selectedType.include_courses ? selectedType.courses : [];
	            var studentServices = selectedType.student_services || [];
	            servicesList = tslib_1.__spreadArrays(studentServices, this.coursesList(courses));
	            (_b = this.studentServicesData(servicesList), hasServices = _b.hasServices, serviceInstructions = _b.serviceInstructions, errorMessage = _b.errorMessage);
	        }
	        this._result = {
	            servicesList: servicesList,
	            serviceInstructions: serviceInstructions,
	            hasServices: hasServices,
	            errorMessage: errorMessage
	        };
	        return this;
	    };
	    Object.defineProperty(AppointmentsServiceQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return AppointmentsServiceQuery;
	}());
	exports.AppointmentsServiceQuery = AppointmentsServiceQuery;


/***/ }),
/* 148 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var AppointmentButtonServant = /** @class */ (function () {
	    function AppointmentButtonServant(ngMyAppointmentsStateService) {
	        this.ngMyAppointmentsStateService = ngMyAppointmentsStateService;
	    }
	    Object.defineProperty(AppointmentButtonServant.prototype, "isDisabled", {
	        get: function () {
	            return this._isDisabled;
	        },
	        set: function (disabled) {
	            this._isDisabled = disabled;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(AppointmentButtonServant.prototype, "action", {
	        get: function () {
	            return this._action;
	        },
	        set: function (action) {
	            this._action = action;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(AppointmentButtonServant.prototype, "buttonText", {
	        get: function () {
	            return this._buttonText;
	        },
	        set: function (text) {
	            this._buttonText = text;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    AppointmentButtonServant.prototype.configButton = function (buttonConfig) {
	        this.action = buttonConfig.action;
	        this.buttonText = buttonConfig.buttonText;
	        this.isDisabled = buttonConfig.isDisabled;
	    };
	    Object.defineProperty(AppointmentButtonServant.prototype, "defaultConfigs", {
	        get: function () {
	            var _this = this;
	            return {
	                isDisabled: !this.ngMyAppointmentsStateService.currentStep.isCompleted,
	                action: function () { return _this.ngMyAppointmentsStateService.next(); },
	                buttonText: 'Continue to Next Step'
	            };
	        },
	        enumerable: true,
	        configurable: true
	    });
	    AppointmentButtonServant.prototype.setDefaults = function () {
	        this.configButton(this.defaultConfigs);
	    };
	    return AppointmentButtonServant;
	}());
	exports.AppointmentButtonServant = AppointmentButtonServant;


/***/ }),
/* 149 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MyAppointmentsStateService = /** @class */ (function () {
	    function MyAppointmentsStateService($state, ngAppointmentsTabsConfiguration, clearAllAppointmentsDataSourcesCommand, $timeout, ngPopupService, phxFocusDelegate, phxAxReturnFocusFactory) {
	        this.$state = $state;
	        this.ngAppointmentsTabsConfiguration = ngAppointmentsTabsConfiguration;
	        this.clearAllAppointmentsDataSourcesCommand = clearAllAppointmentsDataSourcesCommand;
	        this.$timeout = $timeout;
	        this.ngPopupService = ngPopupService;
	        this.phxFocusDelegate = phxFocusDelegate;
	        this.phxAxReturnFocusFactory = phxAxReturnFocusFactory;
	        this._initState = MyAppointmentsStateService.DEFAULT_ENTRY_STATE;
	        this._initParams = {};
	        this._stateStack = [];
	        this._transitionMutex = false;
	    }
	    Object.defineProperty(MyAppointmentsStateService.prototype, "initState", {
	        get: function () {
	            return this._initState;
	        },
	        set: function (name) {
	            this._initState = name;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(MyAppointmentsStateService.prototype, "initParams", {
	        get: function () {
	            return this._initParams;
	        },
	        set: function (params) {
	            this._initParams = params;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(MyAppointmentsStateService.prototype, "tabs", {
	        get: function () {
	            return this.ngAppointmentsTabsConfiguration.read();
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(MyAppointmentsStateService.prototype, "invitationId", {
	        get: function () {
	            return this._invitationId;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(MyAppointmentsStateService.prototype, "currentStep", {
	        get: function () {
	            var _this = this;
	            return _4.find(this.tabs, function (tab) {
	                return _4.includes(_this.$state.current.name, tab.state);
	            });
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(MyAppointmentsStateService.prototype, "currentStepIndex", {
	        get: function () {
	            var _this = this;
	            var tabsValues = _4.values(this.tabs);
	            return _4.findIndex(tabsValues, function (tab) { return _4.includes(_this.$state.current.name, tab.state); });
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(MyAppointmentsStateService.prototype, "states", {
	        get: function () {
	            return this.ngAppointmentsTabsConfiguration.states();
	        },
	        enumerable: true,
	        configurable: true
	    });
	    MyAppointmentsStateService.prototype.stateLoaded = function () {
	        var _this = this;
	        this.$timeout(function () { return (_this._transitionMutex = false); }, 500);
	    };
	    MyAppointmentsStateService.prototype.refresh = function () {
	        this._invitationId = undefined;
	        this._stateStack = [];
	        this.clearAllAppointmentsDataSourcesCommand();
	    };
	    MyAppointmentsStateService.prototype.init = function () {
	        var stateRegex = /(my\.myAppointments\.request)|(my\.appointments\.)/;
	        var currentStateName = this.$state.current.name;
	        this._transitionMutex = false;
	        this.initState = !currentStateName.match(stateRegex)
	            ? currentStateName || MyAppointmentsStateService.DEFAULT_ENTRY_STATE
	            : MyAppointmentsStateService.DEFAULT_ENTRY_STATE;
	        this.initParams = this.$state.params || {};
	        this._invitationId = !!this.$state.params ? this.$state.params.invitationId : undefined;
	    };
	    MyAppointmentsStateService.prototype.go = function (nextName, nextParams) {
	        var _this = this;
	        if (this._transitionMutex) {
	            return;
	        }
	        this._transitionMutex = true;
	        var name = this.$state.current.name;
	        var params = this.$state.params;
	        var nameIdx = _4.findIndex(this._stateStack, { name: name });
	        if (nameIdx > -1) {
	            this._stateStack.splice(3, this._stateStack.length);
	        }
	        if (!!name && name !== 'my.appointments') {
	            this._stateStack.push({
	                name: name,
	                params: params
	            });
	        }
	        this.$state
	            .go(nextName, nextParams)
	            .then(function () { return (_this._transitionMutex = false); })
	            .catch(function () { return (_this._transitionMutex = false); });
	    };
	    MyAppointmentsStateService.prototype.skipAndGo = function (nextName, nextParams, enforce) {
	        var _this = this;
	        if (this._transitionMutex && !enforce) {
	            return;
	        }
	        this._transitionMutex = true;
	        this.$state
	            .go(nextName, nextParams)
	            .then(function () { return (_this._transitionMutex = false); })
	            .catch(function () { return (_this._transitionMutex = false); });
	    };
	    MyAppointmentsStateService.prototype.isCurrentState = function (state) {
	        return _4.includes(this.$state.current.name, state);
	    };
	    MyAppointmentsStateService.prototype.exit = function () {
	        var _this = this;
	        var self = this;
	        this.ngPopupService.show({
	            title: 'Discard Appointment?',
	            body: 'Are you sure you want to exit? All selections will be reset.',
	            completeButtonText: 'Discard Appointment',
	            cancelButtonText: 'Keep Scheduling',
	            completeCallback: function () {
	                self.confirmExit();
	            },
	            cancelCallback: function () {
	                _this.phxFocusDelegate.focus(_this.phxAxReturnFocusFactory.getFocusId());
	            }
	        });
	    };
	    MyAppointmentsStateService.prototype.confirmExit = function () {
	        this.refresh();
	        this.goToInitState();
	        this.phxFocusDelegate.focus(this.phxAxReturnFocusFactory.getFocusId());
	    };
	    MyAppointmentsStateService.prototype.goToInitState = function () {
	        this.$state.go(this.initState, this.initParams);
	    };
	    MyAppointmentsStateService.prototype.next = function () {
	        if (!!this.currentStep && this.currentStep.nextState) {
	            var name_1 = this.currentStep.nextState;
	            this.go(name_1);
	        }
	    };
	    MyAppointmentsStateService.prototype.restartScheduling = function () {
	        this.go(this.ngAppointmentsTabsConfiguration.states().reason);
	    };
	    MyAppointmentsStateService.prototype.goToWalkInTimes = function () {
	        this.go(this.ngAppointmentsTabsConfiguration.states().walkIn);
	    };
	    MyAppointmentsStateService.prototype.goToAvailableTimes = function () {
	        this.go(this.ngAppointmentsTabsConfiguration.states().availableTimes);
	    };
	    MyAppointmentsStateService.prototype.goToAlternateTimes = function () {
	        this.go(this.ngAppointmentsTabsConfiguration.states().alternateTimes);
	    };
	    MyAppointmentsStateService.prototype.goToAlternateTimesConfirm = function () {
	        this.go(this.ngAppointmentsTabsConfiguration.states().alternateTimesConfirm);
	    };
	    MyAppointmentsStateService.prototype.goToConfirm = function () {
	        this.go(this.ngAppointmentsTabsConfiguration.states().confirm);
	    };
	    MyAppointmentsStateService.prototype.goToScheduled = function () {
	        this.refresh();
	        this.go(this.ngAppointmentsTabsConfiguration.states().scheduled);
	    };
	    MyAppointmentsStateService.prototype.back = function () {
	        var _this = this;
	        if (this._transitionMutex) {
	            return;
	        }
	        this._transitionMutex = true;
	        var previousState = this._stateStack.pop();
	        if (!!previousState) {
	            this.$state
	                .go(previousState.name, previousState.params)
	                .then(function () { return (_this._transitionMutex = false); })
	                .catch(function () { return (_this._transitionMutex = false); });
	        }
	        else {
	            this._transitionMutex = false;
	            this.exit();
	        }
	    };
	    MyAppointmentsStateService.prototype.checkState = function () {
	        if (_4.isEmpty(this.$state.current.name)) {
	            this.restartScheduling();
	            return false;
	        }
	        return true;
	    };
	    MyAppointmentsStateService.prototype.showStepTabs = function () {
	        var _a = this.ngAppointmentsTabsConfiguration.states(), alternateTimes = _a.alternateTimes, walkIn = _a.walkIn, alternateTimesConfirm = _a.alternateTimesConfirm, scheduled = _a.scheduled;
	        return !(this.isCurrentState(alternateTimes) ||
	            this.isCurrentState(walkIn) ||
	            this.isCurrentState(alternateTimesConfirm) ||
	            this.$state.current.name === scheduled);
	    };
	    Object.defineProperty(MyAppointmentsStateService.prototype, "showFooterButton", {
	        get: function () {
	            var _a = this.ngAppointmentsTabsConfiguration.states(), walkIn = _a.walkIn, scheduled = _a.scheduled;
	            return !(this.isCurrentState(walkIn) || this.$state.current.name === scheduled);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(MyAppointmentsStateService.prototype, "showHeaderButtons", {
	        get: function () {
	            return this.$state.current.name !== this.ngAppointmentsTabsConfiguration.states().scheduled;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    MyAppointmentsStateService.DEFAULT_ENTRY_STATE = 'my.myAppointments.upcoming';
	    return MyAppointmentsStateService;
	}());
	exports.default = MyAppointmentsStateService;


/***/ }),
/* 150 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var AlternateAppointmentTimesController = /** @class */ (function () {
	    function AlternateAppointmentTimesController(ngAppointmentsLocationsQuery, ngAppointmentLocationsOrganizersUsersource, ngAlternateAppointmentTimesUsersource, accountModel, log, ngAppointmentsServiceCategoriesQuery, ngAppointmentReasonUsersource, ngMyAppointmentsStateService, clearAllAppointmentsDataSourcesCommand, alternateAppointmentTimesConfirmationCommand, ngAppointmentsAvailableTimesQuery, ngAppointmentUsersourceServant, ngAppointmentSchedulingConfiguration, ngAppointmentButtonServant) {
	        this.ngAppointmentsLocationsQuery = ngAppointmentsLocationsQuery;
	        this.ngAppointmentLocationsOrganizersUsersource = ngAppointmentLocationsOrganizersUsersource;
	        this.ngAlternateAppointmentTimesUsersource = ngAlternateAppointmentTimesUsersource;
	        this.accountModel = accountModel;
	        this.log = log;
	        this.ngAppointmentsServiceCategoriesQuery = ngAppointmentsServiceCategoriesQuery;
	        this.ngAppointmentReasonUsersource = ngAppointmentReasonUsersource;
	        this.ngMyAppointmentsStateService = ngMyAppointmentsStateService;
	        this.clearAllAppointmentsDataSourcesCommand = clearAllAppointmentsDataSourcesCommand;
	        this.alternateAppointmentTimesConfirmationCommand = alternateAppointmentTimesConfirmationCommand;
	        this.ngAppointmentsAvailableTimesQuery = ngAppointmentsAvailableTimesQuery;
	        this.ngAppointmentUsersourceServant = ngAppointmentUsersourceServant;
	        this.ngAppointmentSchedulingConfiguration = ngAppointmentSchedulingConfiguration;
	        this.ngAppointmentButtonServant = ngAppointmentButtonServant;
	        this.showConfirm = false;
	        this.isRequestWorkflowBlocked = false;
	    }
	    AlternateAppointmentTimesController.prototype.$onInit = function () {
	        var _this = this;
	        this.isRequestWorkflowBlocked =
	            !this.ngAppointmentLocationsOrganizersUsersource.read().selectedLocation.can_request;
	        this.selectedLocationId = this.ngAlternateAppointmentTimesUsersource.read().selectedLocation.id || -1;
	        this.showLocations =
	            !!this.ngAlternateAppointmentTimesUsersource.availability &&
	                this.ngAlternateAppointmentTimesUsersource.availability.length > 0;
	        this.ngAppointmentButtonServant.configButton({
	            buttonText: 'Confirm',
	            isDisabled: !this.isGotoNextStep(),
	            action: function () { return _this.ngMyAppointmentsStateService.goToAlternateTimesConfirm(); }
	        });
	        this.ngMyAppointmentsStateService.stateLoaded();
	    };
	    AlternateAppointmentTimesController.prototype.showLocationsOptions = function () {
	        this.showLocations = true;
	    };
	    AlternateAppointmentTimesController.prototype.setAvailability = function (event) {
	        this.ngAlternateAppointmentTimesUsersource.availability = _4.get(event.target, 'value');
	        this.ngAppointmentButtonServant.isDisabled = !this.isGotoNextStep();
	    };
	    AlternateAppointmentTimesController.prototype.selectAppointmentLocation = function (location) {
	        this.ngAlternateAppointmentTimesUsersource.set('selectedLocation', location);
	        this.ngAppointmentButtonServant.isDisabled = !this.isGotoNextStep();
	    };
	    AlternateAppointmentTimesController.prototype.isItemSelected = function (itemName) {
	        return this.ngAlternateAppointmentTimesUsersource.read().selectedLocation === itemName;
	    };
	    AlternateAppointmentTimesController.prototype.canGotoConfirm = function () {
	        return (!_.isEmpty(this.ngAlternateAppointmentTimesUsersource.availability) &&
	            !_.isEmpty(this.ngAlternateAppointmentTimesUsersource.read().selectedLocation));
	    };
	    AlternateAppointmentTimesController.prototype.isGotoNextStep = function () {
	        return (!_.isEmpty(this.ngAlternateAppointmentTimesUsersource.availability) &&
	            !_.isEmpty(this.ngAlternateAppointmentTimesUsersource.read().selectedLocation) &&
	            !this.isRequestWorkflowBlocked);
	    };
	    return AlternateAppointmentTimesController;
	}());
	exports.AlternateAppointmentTimesController = AlternateAppointmentTimesController;
	angular
	    .module('capability-ng-appointments')
	    .controller('AlternateAppointmentTimesController', AlternateAppointmentTimesController);


/***/ }),
/* 151 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var AlternateAppointmentTimesConfirmController = /** @class */ (function () {
	    function AlternateAppointmentTimesConfirmController(ngAppointmentLocationsOrganizersUsersource, ngAlternateAppointmentTimesUsersource, accountModel, log, ngAppointmentReasonUsersource, ngMyAppointmentsStateService, alternateAppointmentTimesConfirmationCommand, ngAppointmentButtonServant) {
	        this.ngAppointmentLocationsOrganizersUsersource = ngAppointmentLocationsOrganizersUsersource;
	        this.ngAlternateAppointmentTimesUsersource = ngAlternateAppointmentTimesUsersource;
	        this.accountModel = accountModel;
	        this.log = log;
	        this.ngAppointmentReasonUsersource = ngAppointmentReasonUsersource;
	        this.ngMyAppointmentsStateService = ngMyAppointmentsStateService;
	        this.alternateAppointmentTimesConfirmationCommand = alternateAppointmentTimesConfirmationCommand;
	        this.ngAppointmentButtonServant = ngAppointmentButtonServant;
	        this.isRequestWorkflowBlocked = false;
	        this.confirmAlternateAppointmentTimes = this.confirmAlternateAppointmentTimes.bind(this);
	    }
	    AlternateAppointmentTimesConfirmController.prototype.$onInit = function () {
	        var _this = this;
	        this.isRequestWorkflowBlocked =
	            !this.ngAppointmentLocationsOrganizersUsersource.read().selectedLocation.can_request;
	        this.model = {
	            student: this.accountModel.fullname,
	            subject: this.ngAppointmentReasonUsersource.read().selectedType.name + ", " + this.ngAppointmentReasonUsersource.read().selectedService.name,
	            location: this.ngAlternateAppointmentTimesUsersource.read().selectedLocation.name,
	            availability: this.ngAlternateAppointmentTimesUsersource.availability
	        };
	        this.ngAppointmentButtonServant.configButton({
	            buttonText: 'Send Request',
	            isDisabled: false,
	            action: function () { return _this.confirmAlternateAppointmentTimes(); }
	        });
	        this.ngMyAppointmentsStateService.stateLoaded();
	    };
	    AlternateAppointmentTimesConfirmController.prototype.confirmAlternateAppointmentTimes = function () {
	        var _this = this;
	        this.alternateAppointmentTimesConfirmationCommand().then(function (response) {
	            _this.log.user.success('Appointment request submitted.');
	            _this.ngMyAppointmentsStateService.goToScheduled();
	        }, function () {
	            _this.log.user.success('Unable to make Appointment request.');
	        });
	    };
	    return AlternateAppointmentTimesConfirmController;
	}());
	exports.AlternateAppointmentTimesConfirmController = AlternateAppointmentTimesConfirmController;
	angular
	    .module('capability-ng-appointments')
	    .controller('AlternateAppointmentTimesConfirmController', AlternateAppointmentTimesConfirmController);


/***/ }),
/* 152 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var AppointmentsController = /** @class */ (function () {
	    function AppointmentsController(ngAppointmentsTabsConfiguration, appConfigModel, ngMyAppointmentsStateService, ngAppointmentSchedulingConfiguration) {
	        this.ngAppointmentsTabsConfiguration = ngAppointmentsTabsConfiguration;
	        this.appConfigModel = appConfigModel;
	        this.ngMyAppointmentsStateService = ngMyAppointmentsStateService;
	        this.ngAppointmentSchedulingConfiguration = ngAppointmentSchedulingConfiguration;
	    }
	    Object.defineProperty(AppointmentsController.prototype, "tabs", {
	        get: function () {
	            var tabs = this.ngAppointmentsTabsConfiguration.read();
	            for (var index in tabs) {
	                var step = tabs[index];
	                step.isActive = this.ngMyAppointmentsStateService.isCurrentState(step.state);
	            }
	            return tabs;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    AppointmentsController.prototype.progressStyle = function (step, index) {
	        if (step.isActive) {
	            return 'text-bold clr-blue_30-txt clr-blue_30-bdr is-active';
	        }
	        else {
	            return step.isCompleted ? 'clr-blue_30-bdr' : 'clr-gray_30-bdr';
	        }
	    };
	    return AppointmentsController;
	}());
	exports.AppointmentsController = AppointmentsController;
	angular.module('capability-ng-appointments').controller('ngAppointmentsController', AppointmentsController);


/***/ }),
/* 153 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var AvailableTimesController = /** @class */ (function () {
	    function AvailableTimesController($stateParams, ngAppointmentsAvailableTimesQuery, QueryMediator, ngAppointmentsTabsConfiguration, loadAppointmentsAvailableTimesCommand, AppointmentsTimeSelectionChangeCommand, ngAppointmentAvailableTimesUsersource, ngAppointmentsLocationsQuery, ngAppointmentReasonUsersource, ngAppointmentLocationsOrganizersUsersource, ngAppointmentsAvailableTimesServant, ngAppointmentUsersourceServant, ngMyAppointmentsStateService, ngAppointmentSchedulingConfiguration, ngAppointmentButtonServant) {
	        this.$stateParams = $stateParams;
	        this.ngAppointmentsAvailableTimesQuery = ngAppointmentsAvailableTimesQuery;
	        this.QueryMediator = QueryMediator;
	        this.ngAppointmentsTabsConfiguration = ngAppointmentsTabsConfiguration;
	        this.loadAppointmentsAvailableTimesCommand = loadAppointmentsAvailableTimesCommand;
	        this.AppointmentsTimeSelectionChangeCommand = AppointmentsTimeSelectionChangeCommand;
	        this.ngAppointmentAvailableTimesUsersource = ngAppointmentAvailableTimesUsersource;
	        this.ngAppointmentsLocationsQuery = ngAppointmentsLocationsQuery;
	        this.ngAppointmentReasonUsersource = ngAppointmentReasonUsersource;
	        this.ngAppointmentLocationsOrganizersUsersource = ngAppointmentLocationsOrganizersUsersource;
	        this.ngAppointmentsAvailableTimesServant = ngAppointmentsAvailableTimesServant;
	        this.ngAppointmentUsersourceServant = ngAppointmentUsersourceServant;
	        this.ngMyAppointmentsStateService = ngMyAppointmentsStateService;
	        this.ngAppointmentSchedulingConfiguration = ngAppointmentSchedulingConfiguration;
	        this.ngAppointmentButtonServant = ngAppointmentButtonServant;
	        this.isGroupAppointment = false;
	        this.isLoading = true;
	        this.initialLoading = true;
	        this.selectedTime = '';
	        this.hasSelectedTime = false;
	    }
	    AvailableTimesController.prototype.$onInit = function () {
	        var _this = this;
	        var userServant = this.ngAppointmentUsersourceServant;
	        if (!userServant.canUserRequest && !userServant.canUserSchedule && userServant.canUserViewWalkins) {
	            this.ngMyAppointmentsStateService.skipAndGo(this.ngMyAppointmentsStateService.states.walkIn, {}, true);
	        }
	        else if (!userServant.canUserSchedule) {
	            this.ngMyAppointmentsStateService.skipAndGo(this.ngMyAppointmentsStateService.states.alternateTimes, {}, true);
	        }
	        else if (_4.isEmpty(this.ngAppointmentAvailableTimesUsersource.read().selectedTime)) {
	            this.isLoading = true;
	            this.loadAppointmentsAvailableTimesCommand(0, this.$stateParams.invitationId).then(function () {
	                _this.isLoading = false;
	                _this.initialLoading = false;
	                _this.ngMyAppointmentsStateService.stateLoaded();
	            });
	        }
	        else {
	            this.isLoading = false;
	            this.initialLoading = false;
	            this.ngMyAppointmentsStateService.stateLoaded();
	        }
	        this.ngAppointmentButtonServant.setDefaults();
	        this.hasSelectedTime = !_4.isEmpty(this.ngAppointmentAvailableTimesUsersource.read().selectedTime);
	        if (this.hasSelectedTime) {
	            this.selectedTime = moment(this.ngAppointmentAvailableTimesUsersource.read().selectedTimeDetails.begin_time).format('MMM D @ h:mm A');
	            this.isGroupAppointment =
	                this.ngAppointmentAvailableTimesUsersource.read().selectedTimeDetails.dropin_allowed > 1;
	        }
	    };
	    AvailableTimesController.prototype.timeSelectionChanged = function (item) {
	        if (!_4.isEmpty(item)) {
	            this.selectedTime = moment(item.date).format('MMM D @ h:mm A');
	            this.hasSelectedTime = !_4.isEmpty(this.selectedTime);
	            var flattenAvailableTimes = this.ngAppointmentsAvailableTimesQuery.result.flattenAvailableTimes;
	            this.ngAppointmentAvailableTimesUsersource.set('selectedTime', item);
	            var unixtime_1 = _4.toString(moment(item.date, 'YYYY-MM-DD hh:mm A').unix());
	            this.ngAppointmentAvailableTimesUsersource.set('selectedTimeDetails', _4.find(flattenAvailableTimes, function (time) { return _4.head(_4.split(time.range, '_')) === unixtime_1; }));
	            this.isGroupAppointment =
	                this.ngAppointmentAvailableTimesUsersource.read().selectedTimeDetails.dropin_allowed > 1;
	            this.ngAppointmentsTabsConfiguration.stepCompleted('3');
	        }
	        else {
	            this.ngAppointmentAvailableTimesUsersource.set('selectedTimeDetails', {});
	            this.ngAppointmentsTabsConfiguration.stepInComplete('3');
	        }
	        this.ngAppointmentButtonServant.setDefaults();
	    };
	    AvailableTimesController.prototype.resolveOk = function () {
	        return new Promise(function () {
	            return [];
	        });
	    };
	    AvailableTimesController.prototype.getNextweekTimes = function () {
	        var _this = this;
	        if (this.isLoading) {
	            return this.resolveOk();
	        }
	        this.isGroupAppointment = false;
	        this.isLoading = true;
	        return this.loadAppointmentsAvailableTimesCommand(this.ngAppointmentsAvailableTimesServant.nextWeekOffset, this.$stateParams.invitationId).then(function () {
	            _this.isLoading = false;
	            return _this.ngAppointmentsAvailableTimesQuery.result.availableTimesList;
	        });
	    };
	    AvailableTimesController.prototype.getPreviousweekTimes = function () {
	        var _this = this;
	        if (this.isLoading) {
	            return this.resolveOk();
	        }
	        this.isGroupAppointment = false;
	        this.isLoading = true;
	        return this.loadAppointmentsAvailableTimesCommand(this.ngAppointmentsAvailableTimesServant.previousWeekOffset, this.$stateParams.invitationId).then(function () {
	            _this.isLoading = false;
	            return _this.ngAppointmentsAvailableTimesQuery.result.availableTimesList;
	        });
	    };
	    return AvailableTimesController;
	}());
	exports.AvailableTimesController = AvailableTimesController;
	angular.module('capability-ng-appointments').controller('ngAvailableTimesController', AvailableTimesController);


/***/ }),
/* 154 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var AppointmentsConfirmController = /** @class */ (function () {
	    function AppointmentsConfirmController(ngConfirmAppointmentModel, ngAppointmentsConfirmQuery, ngUpcomingAppointmentsQuery, navigateContactInfo, ngAppointmentSchedulingConfiguration, ngAppointmentButtonServant, clearAllAppointmentsDataSourcesCommand, loadUpcomingAppointmentsCommand, ngAppointmentRemindersServant, appointmentsConfirmationCommand, ngMyAppointmentsStateService) {
	        this.ngConfirmAppointmentModel = ngConfirmAppointmentModel;
	        this.ngAppointmentsConfirmQuery = ngAppointmentsConfirmQuery;
	        this.ngUpcomingAppointmentsQuery = ngUpcomingAppointmentsQuery;
	        this.navigateContactInfo = navigateContactInfo;
	        this.ngAppointmentSchedulingConfiguration = ngAppointmentSchedulingConfiguration;
	        this.ngAppointmentButtonServant = ngAppointmentButtonServant;
	        this.clearAllAppointmentsDataSourcesCommand = clearAllAppointmentsDataSourcesCommand;
	        this.loadUpcomingAppointmentsCommand = loadUpcomingAppointmentsCommand;
	        this.ngAppointmentRemindersServant = ngAppointmentRemindersServant;
	        this.appointmentsConfirmationCommand = appointmentsConfirmationCommand;
	        this.ngMyAppointmentsStateService = ngMyAppointmentsStateService;
	        this.isCampaignAppointment = false;
	        this.isApptSchedulingInProgress = false;
	        this.phoneNumber =
	            this.navigateContactInfo.model.phoneNumber.target ||
	                this.ngUpcomingAppointmentsQuery.result().studentInfo.cell_phone ||
	                '';
	        this.ngConfirmAppointmentModel.savePhoneNumber(this.phoneNumber);
	        this.email = this.ngUpcomingAppointmentsQuery.result().studentInfo.email || '';
	        this._initializeConfirmationReminders(this.ngConfirmAppointmentModel.confirmAppointmentReminderOptions);
	        this.appointmentData = this.createAppointmentCardData();
	        this.confirmAppointment = this.confirmAppointment.bind(this);
	    }
	    AppointmentsConfirmController.prototype.$onInit = function () {
	        var _this = this;
	        this.isApptSchedulingInProgress = false;
	        this.ngAppointmentButtonServant.configButton({
	            buttonText: 'Confirm Appointment',
	            isDisabled: this.isApptSchedulingInProgress,
	            action: function () { return _this.confirmAppointment(); }
	        });
	        this.ngMyAppointmentsStateService.stateLoaded();
	    };
	    AppointmentsConfirmController.prototype.changeSendEmailStatus = function (event) {
	        var status = !this.isSendEmail;
	        this.isSendEmail = status;
	        this.ngConfirmAppointmentModel.saveSendEmail(status);
	    };
	    AppointmentsConfirmController.prototype.changeSendTextMessageStatus = function (event) {
	        this.isSendTextMessage = !this.isSendTextMessage;
	        if (!this.isSendTextMessage) {
	            this.ngAppointmentButtonServant.isDisabled = false;
	        }
	        this.ngConfirmAppointmentModel.saveSendTextMessage(this.isSendTextMessage);
	    };
	    AppointmentsConfirmController.prototype.saveComments = function (event) {
	        this.ngConfirmAppointmentModel.saveComments(_4.get(event.target, 'value', ''));
	    };
	    AppointmentsConfirmController.prototype.savePhoneNumber = function (event) {
	        var phoneNumber = _4.get(event.target, 'value', '').replace(/(\()|(\))|(-)|(\s+)/g, '');
	        this.ngAppointmentButtonServant.isDisabled = !(phoneNumber.length > 9 && phoneNumber.length < 12);
	        this.ngConfirmAppointmentModel.savePhoneNumber(phoneNumber);
	    };
	    AppointmentsConfirmController.prototype._initializeConfirmationReminders = function (confirmAppointmentReminderOptions) {
	        this.isSendEmail = confirmAppointmentReminderOptions.isSendEmail;
	        this.isSendTextMessage = confirmAppointmentReminderOptions.isSendTextMessage;
	        this.isSendEmailEnabled = confirmAppointmentReminderOptions.isSendEmailReminderEnabled;
	        this.isSendTextMessageEnabled = confirmAppointmentReminderOptions.isSendTextMessageReminderEnabled;
	    };
	    AppointmentsConfirmController.prototype.createAppointmentCardData = function () {
	        var apptConfirmData = this.ngAppointmentsConfirmQuery.result;
	        this.isCampaignAppointment = apptConfirmData.isCampaignAppointment;
	        var selectedLocation = { id: 0, name: apptConfirmData.location };
	        return {
	            start_timestamp: apptConfirmData.startTimeUnix,
	            end_timestamp: apptConfirmData.endTimeUnix,
	            organizers: [apptConfirmData.organizer],
	            appointment_type: 'One Time Appointment',
	            location: selectedLocation,
	            is_cancelled: false,
	            student_services: [apptConfirmData.selectedService]
	        };
	    };
	    AppointmentsConfirmController.prototype.confirmAppointment = function () {
	        var _this = this;
	        if (this.isApptSchedulingInProgress) {
	            return;
	        }
	        this.isApptSchedulingInProgress = true;
	        this.ngAppointmentButtonServant.isDisabled = this.isApptSchedulingInProgress;
	        this.appointmentsConfirmationCommand().then(function (response) {
	            _this.ngAppointmentRemindersServant.trigger.success('Appointment Scheduled.');
	            _this.loadUpcomingAppointmentsCommand();
	            _this.ngAppointmentButtonServant.isDisabled = _this.isApptSchedulingInProgress = false;
	            _this.ngMyAppointmentsStateService.goToScheduled();
	            _this.ngAppointmentButtonServant.setDefaults();
	        }, function () {
	            _this.ngAppointmentButtonServant.isDisabled = _this.isApptSchedulingInProgress = false;
	            _this.ngAppointmentRemindersServant.trigger.warn('Unable to schedule appointment.');
	        });
	    };
	    return AppointmentsConfirmController;
	}());
	exports.AppointmentsConfirmController = AppointmentsConfirmController;
	angular
	    .module('capability-ng-appointments')
	    .controller('ngAppointmentsConfirmController', AppointmentsConfirmController);


/***/ }),
/* 155 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var AppointmentsLocationStaffController = /** @class */ (function () {
	    function AppointmentsLocationStaffController(loadAppointmentsStaffCommand, AppointmentsStaffSelectedCommand, ngAppointmentsTabsConfiguration, ngAppointmentLocationsOrganizersUsersource, ngAppointmentsLocationsQuery, ngAppointmentsOrganizersQuery1, ngAppointmentsCoursesQuery, AppointmentsCoursesSelectedCommand, ngAppointmentUsersourceServant, ngMyAppointmentsStateService, loadAppointmentsLocationsCommand, ngAppointmentButtonServant) {
	        this.loadAppointmentsStaffCommand = loadAppointmentsStaffCommand;
	        this.AppointmentsStaffSelectedCommand = AppointmentsStaffSelectedCommand;
	        this.ngAppointmentsTabsConfiguration = ngAppointmentsTabsConfiguration;
	        this.ngAppointmentLocationsOrganizersUsersource = ngAppointmentLocationsOrganizersUsersource;
	        this.ngAppointmentsLocationsQuery = ngAppointmentsLocationsQuery;
	        this.ngAppointmentsOrganizersQuery1 = ngAppointmentsOrganizersQuery1;
	        this.ngAppointmentsCoursesQuery = ngAppointmentsCoursesQuery;
	        this.AppointmentsCoursesSelectedCommand = AppointmentsCoursesSelectedCommand;
	        this.ngAppointmentUsersourceServant = ngAppointmentUsersourceServant;
	        this.ngMyAppointmentsStateService = ngMyAppointmentsStateService;
	        this.loadAppointmentsLocationsCommand = loadAppointmentsLocationsCommand;
	        this.ngAppointmentButtonServant = ngAppointmentButtonServant;
	        this.isLoading = true;
	        this.backText = "Back to " + this.ngMyAppointmentsStateService.currentStep.title;
	        this.renderAdvisors = this.renderAdvisors.bind(this);
	        this.onCourseSelected = this.onCourseSelected.bind(this);
	        this.onLocationSelected = this.onLocationSelected.bind(this);
	        this.changeOrganizersSelection = this.changeOrganizersSelection.bind(this);
	    }
	    Object.defineProperty(AppointmentsLocationStaffController.prototype, "getErrorMessageText", {
	        get: function () {
	            return !this.ngAppointmentsOrganizersQuery1.result.hasOrganizers
	                ? this.ngAppointmentsOrganizersQuery1.result.errorMessage
	                : this.ngAppointmentUsersourceServant.errorBlockedText;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    AppointmentsLocationStaffController.prototype.$onInit = function () {
	        var _this = this;
	        this.ngAppointmentButtonServant.isDisabled = !_4.get(this.ngAppointmentsTabsConfiguration.read(), '[2].isCompleted', false);
	        if (!this.ngAppointmentLocationsOrganizersUsersource.read().selectedLocation.id) {
	            this.isLoading = true;
	            this.loadAppointmentsLocationsCommand().then(function () {
	                _this.setValues();
	                _this.ngMyAppointmentsStateService.stateLoaded();
	            });
	        }
	        else {
	            this.setValues();
	            this.ngMyAppointmentsStateService.stateLoaded();
	        }
	    };
	    AppointmentsLocationStaffController.prototype.setValues = function () {
	        this.isLoading = false;
	        this.selectedLocationName = _4.get(this.ngAppointmentLocationsOrganizersUsersource.read().selectedLocation, 'name', '');
	        this.selectedCourseName = _4.get(this.ngAppointmentLocationsOrganizersUsersource.read().selectedCourse, 'name', '');
	        this.selectedOrganizersNames = this.ngAppointmentLocationsOrganizersUsersource
	            .read()
	            .selectedOrganizers.map(function (i) { return i.name; });
	    };
	    AppointmentsLocationStaffController.prototype.onLocationSelected = function (selectedLocation) {
	        var _this = this;
	        if (this.selectedLocationName !== selectedLocation.name) {
	            this.selectedLocationName = selectedLocation.name;
	            this.loadAppointmentsStaffCommand(selectedLocation).then(function () {
	                if (_this.ngAppointmentLocationsOrganizersUsersource.read().selectedLocation.id &&
	                    _this.ngAppointmentsOrganizersQuery1.result.hasOrganizers) {
	                    _this.ngAppointmentsTabsConfiguration.stepCompleted('2');
	                }
	                else {
	                    _this.ngAppointmentsTabsConfiguration.stepInComplete('2');
	                }
	            });
	            this.selectedOrganizersNames = [];
	            this.selectedCourseName = '';
	        }
	    };
	    AppointmentsLocationStaffController.prototype.onCourseSelected = function (selectedCourse) {
	        var _this = this;
	        if (this.selectedCourseName !== selectedCourse.name) {
	            this.selectedCourseName = selectedCourse.name;
	            this.AppointmentsCoursesSelectedCommand(selectedCourse).then(function () {
	                if (_this.ngAppointmentLocationsOrganizersUsersource.read().selectedLocation.id &&
	                    _this.ngAppointmentsOrganizersQuery1.result.hasOrganizers &&
	                    _this.ngAppointmentLocationsOrganizersUsersource.read().selectedCourse.id) {
	                    _this.ngAppointmentsTabsConfiguration.stepCompleted('2');
	                }
	                else {
	                    _this.ngAppointmentsTabsConfiguration.stepInComplete('2');
	                }
	            });
	            this.selectedOrganizersNames = [];
	        }
	    };
	    AppointmentsLocationStaffController.prototype.changeOrganizersSelection = function (selectedOrganizer) {
	        var _this = this;
	        var organizerExists = _4.find(this.ngAppointmentLocationsOrganizersUsersource.read().selectedOrganizers, {
	            id: selectedOrganizer.id
	        });
	        var selectedOrganizers = [];
	        var allSelectedOrganizers = this.ngAppointmentLocationsOrganizersUsersource.read().selectedOrganizers;
	        if (!!organizerExists) {
	            _4.remove(allSelectedOrganizers, function (org) {
	                return org.id === selectedOrganizer.id;
	            });
	            _4.remove(this.selectedOrganizersNames, function (name) { return selectedOrganizer.name === name; });
	            selectedOrganizers = allSelectedOrganizers;
	        }
	        else if (!!selectedOrganizer) {
	            this.selectedOrganizersNames.push(selectedOrganizer.name);
	            this.ngAppointmentLocationsOrganizersUsersource.set('selectedOrganizers', tslib_1.__spreadArrays(allSelectedOrganizers, [
	                selectedOrganizer
	            ]));
	            selectedOrganizers = this.ngAppointmentLocationsOrganizersUsersource.read().selectedOrganizers;
	        }
	        this.AppointmentsStaffSelectedCommand(selectedOrganizers).then(function () {
	            _this.ngAppointmentsTabsConfiguration.stepCompleted('2');
	        });
	    };
	    AppointmentsLocationStaffController.prototype.renderAdvisors = function (item) {
	        return item.name + " " + item.advisorLabel;
	    };
	    return AppointmentsLocationStaffController;
	}());
	exports.AppointmentsLocationStaffController = AppointmentsLocationStaffController;
	angular
	    .module('capability-ng-appointments')
	    .controller('ngAppointmentsLocationStaffController', AppointmentsLocationStaffController);


/***/ }),
/* 156 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MyAppointmentsChildrenController = /** @class */ (function () {
	    function MyAppointmentsChildrenController(ngMyAppointmentsService, ngUpcomingAppointmentsQuery, ngAppointmentSchedulingConfiguration) {
	        this.ngMyAppointmentsService = ngMyAppointmentsService;
	        this.ngUpcomingAppointmentsQuery = ngUpcomingAppointmentsQuery;
	        this.ngAppointmentSchedulingConfiguration = ngAppointmentSchedulingConfiguration;
	    }
	    MyAppointmentsChildrenController.prototype.$onInit = function () {
	        this.appointments = this.ngMyAppointmentsService.appointments;
	        this.showReminders = this.ngMyAppointmentsService.showReminders;
	        this.upcomingAppointments = this.ngMyAppointmentsService.upcomingAppointments;
	        this.showNextMonthAppointmentsOnly = this.ngMyAppointmentsService.showNextMonthAppointmentsOnly;
	        this.showPastAppointments = this.ngMyAppointmentsService.showPastAppointments;
	        this.showAppointmentRequests = this.ngMyAppointmentsService.showAppointmentRequests;
	        this.isUpcomingAppointmentsAvailable = this.ngMyAppointmentsService.isUpcomingAppointmentsAvailable;
	        this.isPastAppointmentsAvailable = this.ngMyAppointmentsService.isPastAppointmentsAvailable;
	    };
	    MyAppointmentsChildrenController.prototype.appointmentRequestActive = function () {
	        return this.showAppointmentRequests && this.ngUpcomingAppointmentsQuery.result().appointmentRequests.length > 0;
	    };
	    return MyAppointmentsChildrenController;
	}());
	exports.MyAppointmentsChildrenController = MyAppointmentsChildrenController;


/***/ }),
/* 157 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var AppointmentsScheduledController = /** @class */ (function () {
	    function AppointmentsScheduledController(ngMyAppointmentsStateService, ngAppointmentSchedulingConfiguration) {
	        this.ngMyAppointmentsStateService = ngMyAppointmentsStateService;
	        this.ngAppointmentSchedulingConfiguration = ngAppointmentSchedulingConfiguration;
	    }
	    AppointmentsScheduledController.prototype.$onInit = function () {
	        this.ngMyAppointmentsStateService.stateLoaded();
	    };
	    return AppointmentsScheduledController;
	}());
	exports.AppointmentsScheduledController = AppointmentsScheduledController;


/***/ }),
/* 158 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var AvailableWalkinTimesController = /** @class */ (function () {
	    function AvailableWalkinTimesController(ngMyAppointmentsStateService, loadAvailableWalkinTimesCommand, ngAppointmentUsersourceServant) {
	        this.ngMyAppointmentsStateService = ngMyAppointmentsStateService;
	        this.loadAvailableWalkinTimesCommand = loadAvailableWalkinTimesCommand;
	        this.ngAppointmentUsersourceServant = ngAppointmentUsersourceServant;
	    }
	    AvailableWalkinTimesController.prototype.$onInit = function () {
	        var _this = this;
	        this.isLoading = true;
	        this.loadAvailableWalkinTimesCommand().then(function (data) {
	            _this.walkinTimes = data;
	            _this.isLoading = false;
	            _this.ngMyAppointmentsStateService.stateLoaded();
	        });
	    };
	    AvailableWalkinTimesController.prototype.hasUsers = function (users) {
	        return !_4.isEmpty(users);
	    };
	    return AvailableWalkinTimesController;
	}());
	exports.AvailableWalkinTimesController = AvailableWalkinTimesController;
	var WalkinTimesComponent = /** @class */ (function () {
	    function WalkinTimesComponent() {
	        this.templateUrl = 'capability-ng-appointments/src/views/walkin_times/walkin_times.html';
	        this.controller = AvailableWalkinTimesController;
	        this.controllerAs = '$ctrl';
	    }
	    return WalkinTimesComponent;
	}());
	exports.WalkinTimesComponent = WalkinTimesComponent;
	angular
	    .module('capability-ng-appointments')
	    .controller('ngAvailableWalkinTimesController', AvailableWalkinTimesController)
	    .component('walkinTimes', new WalkinTimesComponent());


/***/ }),
/* 159 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var WalkinTimesController = /** @class */ (function () {
	    function WalkinTimesController(_walkinTimes) {
	        this._walkinTimes = _walkinTimes;
	    }
	    return WalkinTimesController;
	}());
	exports.WalkinTimesController = WalkinTimesController;
	angular.module('capability-ng-appointments').controller('WalkinTimesController', WalkinTimesController);


/***/ }),
/* 160 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var ConversationsCapabilityConfiguration = /** @class */ (function () {
	    function ConversationsCapabilityConfiguration() {
	        this._config = {
	            isMobile: false,
	            navIconTheme: 'blue',
	            isConnectEnabled: false,
	            isNeiEnabled: false
	        };
	    }
	    Object.defineProperty(ConversationsCapabilityConfiguration.prototype, "config", {
	        get: function () {
	            return this._config;
	        },
	        set: function (configs) {
	            this._config = tslib_1.__assign(tslib_1.__assign({}, this._config), configs);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    ConversationsCapabilityConfiguration.prototype.setConfig = function (key, value) {
	        this._config[key] = value;
	    };
	    return ConversationsCapabilityConfiguration;
	}());
	exports.ConversationsCapabilityConfiguration = ConversationsCapabilityConfiguration;


/***/ }),
/* 161 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var utility_ts_orm_1 = __webpack_require__(3);
	var conversation_priority_feed_strategy_1 = __webpack_require__(557);
	var ConversationsPriorityFeedQuery = /** @class */ (function () {
	    function ConversationsPriorityFeedQuery(ngConversationDatastore) {
	        this.ngConversationDatastore = ngConversationDatastore;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngConversationDatastore);
	    }
	    ConversationsPriorityFeedQuery.prototype.run = function () {
	        // only update unread count when the filter is set to all
	        if (this.ngConversationDatastore.model.filter === 'all') {
	            this._count = this.ngConversationDatastore.model.unreadCount;
	        }
	        var isActive = this._count > 0;
	        this._result = tslib_1.__assign({ icon: { type: 'paper_plane', theme: 'green' }, isOverdue: false, isActive: isActive }, this._generatePriorityFeedItemForConversations());
	        return this;
	    };
	    Object.defineProperty(ConversationsPriorityFeedQuery.prototype, "count", {
	        get: function () {
	            return this._count;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ConversationsPriorityFeedQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    ConversationsPriorityFeedQuery.prototype._generatePriorityFeedItemForConversations = function () {
	        var strategy = this.count === 1
	            ? conversation_priority_feed_strategy_1.ConversationPriorityFeedStrategy.getByKey('THREAD')
	            : conversation_priority_feed_strategy_1.ConversationPriorityFeedStrategy.getByKey('CONVERSATION');
	        return {
	            text: {
	                title: strategy.title(this._count),
	                subTitle: strategy.subTitle
	            },
	            action: {
	                state: strategy.state,
	                params: strategy.params
	            }
	        };
	    };
	    return ConversationsPriorityFeedQuery;
	}());
	exports.ConversationsPriorityFeedQuery = ConversationsPriorityFeedQuery;


/***/ }),
/* 162 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var lodash4_1 = __webpack_require__(1);
	var ScheduleSection = /** @class */ (function () {
	    function ScheduleSection(schedule) {
	        schedule.class_start_dt = moment(schedule.class_start_dt);
	        schedule.class_end_dt = moment(schedule.class_end_dt);
	        schedule.drop_start_dt = moment(schedule.drop_start_dt);
	        schedule.drop_end_dt = moment(schedule.drop_end_dt);
	        lodash4_1.merge(this, schedule);
	    }
	    ScheduleSection.build = function (schedule) {
	        return new ScheduleSection(schedule);
	    };
	    return ScheduleSection;
	}());
	exports.ScheduleSection = ScheduleSection;


/***/ }),
/* 163 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ScheduleTerm = /** @class */ (function () {
	    function ScheduleTerm(term) {
	        term.term_start_dt = moment(term.term_start_dt);
	        term.term_end_dt = moment(term.term_end_dt);
	        term.registration_start_dt = moment(term.registration_start_dt);
	        term.registration_end_dt = moment(term.registration_end_dt);
	        _.merge(this, term);
	    }
	    ScheduleTerm.build = function (term) {
	        return new ScheduleTerm(term);
	    };
	    return ScheduleTerm;
	}());
	exports.ScheduleTerm = ScheduleTerm;


/***/ }),
/* 164 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var lodash4_1 = __webpack_require__(1);
	var MyScheduleDetailFunction = /** @class */ (function () {
	    function MyScheduleDetailFunction() {
	    }
	    MyScheduleDetailFunction.build = function () {
	        return new MyScheduleDetailFunction();
	    };
	    MyScheduleDetailFunction.prototype.createShortDescription = function (textDescription) {
	        var end;
	        if (lodash4_1.isEmpty(textDescription)) {
	            return '';
	        }
	        if (textDescription.length < 100) {
	            return textDescription + '\n';
	        }
	        end = textDescription.lastIndexOf(' ', 100);
	        return textDescription.substr(0, end) + '...';
	    };
	    return MyScheduleDetailFunction;
	}());
	exports.MyScheduleDetailFunction = MyScheduleDetailFunction;


/***/ }),
/* 165 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	function MyScheduleNativeCalenderFunction(calendarFacade, $q, $timeout, ngCalendarLocalDatabase) {
	    var MyScheduleNativeCalendar = /** @class */ (function () {
	        function MyScheduleNativeCalendar() {
	            this.calendar = {};
	        }
	        MyScheduleNativeCalendar.prototype.selectCalendarToAddCourses = function (isResync) {
	            var _this = this;
	            if (isResync === void 0) { isResync = false; }
	            var deferred = $q.defer();
	            calendarFacade.selectCalendar(function (cal) {
	                if (!_4.isUndefined(cal)) {
	                    _this.calendar = cal;
	                    deferred.resolve(cal);
	                }
	                else {
	                    deferred.reject();
	                }
	            }, isResync);
	            return deferred.promise;
	        };
	        MyScheduleNativeCalendar.prototype.addSingleCourseToCalendar = function (section) {
	            var _this = this;
	            /*
	             * this is a promise to allow for the plugin to finish before moving on
	             * to the next object and to--once again--work around the plugin's lack
	             * of multi-threading support
	             * */
	            var deferred = $q.defer();
	            var successFn = function (evt) {
	                // add native calendar event ID to object
	                section.nativeCalendarEventId = evt;
	                ngCalendarLocalDatabase.addCourse(section, _this.calendar, evt);
	                deferred.resolve(evt);
	            };
	            var errFn = function (err) {
	                deferred.reject('error adding event to calendar', err);
	            };
	            calendarFacade.registerEventWithCallbacks(section, successFn, errFn);
	            return deferred.promise;
	        };
	        MyScheduleNativeCalendar.prototype.addAllCoursesToCalendar = function (sectionList) {
	            var _this = this;
	            /*
	             * We have to recursively call this function to allow for us to iterate over
	             * the list of courses. Again--the plugin is single threaded. The completionFn
	             * serves as a way to kind of handle the resolution of all of this.
	             * */
	            var deferred = $q.defer();
	            var iterator = 0;
	            var addSingleCourse = function (section) {
	                _this.addSingleCourseToCalendar(section).then(function (evt) {
	                    // incrememnt our counter
	                    iterator += 1;
	                    if (iterator < sectionList.length) {
	                        // timeout is another safegaurd from the single-threading, then recurse
	                        /* tslint:disable */
	                        $timeout(addSingleCourse(sectionList[iterator]), 0);
	                        /* tslint:enable */
	                    }
	                    else {
	                        // fire the completion event if there is one
	                        deferred.resolve();
	                    }
	                });
	            };
	            // initialize the loop/recursion
	            addSingleCourse(sectionList[iterator]);
	            return deferred.promise;
	        };
	        MyScheduleNativeCalendar.prototype.createCourseCalendarObjects = function (listOfCourses) {
	            /*
	             * This function preprocesses the objects before we feed them to the plugin.
	             * We need to do this because all of the logic below has been known to prevent
	             * some date instances from being added to the calendar. This fn returns
	             * an array of objects formatted FOR THE CALENDAR ONLY which means that they are
	             * broken out into objects based on the sectionTime property of the master list
	             * and are not based on the individual courses.
	             *
	             * Also, makes testing easier!
	             * */
	            var _this = this;
	            var calendarObjects = [];
	            _4.forEach(listOfCourses, function (section) {
	                /*
	                 * before the loop, we set the information of the parent course
	                 * to local variables that we will need to reference in the loop.
	                 * Also all time needs to be a raw JS date object for the plugin.
	                 * */
	                var eventObjConfig = {
	                    title: section._course.title,
	                    notes: section.note,
	                    nk: section.nk
	                };
	                var eventOption = {
	                    recurrence: 'weekly',
	                    recurrenceEndDate: section.class_end_dt.toDate(),
	                    recurrenceInterval: 1,
	                    calendarId: _this.calendar.id,
	                    calendarName: _this.calendar.name
	                };
	                var courseStartingObj = section.class_start_dt;
	                _4.forEach(section._sectionTime, function (sectionTime) {
	                    var calculatedWeekday;
	                    var baseStart;
	                    var baseEnd;
	                    var sectionStartingTime;
	                    var sectionEndingTime;
	                    var sectionEvent;
	                    baseStart = moment(sectionTime.from_tm, 'HH:mm:ss').toObject();
	                    baseEnd = moment(sectionTime.to_tm, 'HH:mm:ss').toObject();
	                    /*
	                     * we subtract 1 because server days [1-7] are +1 compared to moment days [0-6]
	                     * we also check for a day greater than 7 which means virtual/no temporal dates.
	                     * */
	                    if (sectionTime.day_of_week > 7) {
	                        return;
	                    }
	                    else if (sectionTime.day_of_week - 1 < courseStartingObj.day()) {
	                        calculatedWeekday = sectionTime.day_of_week + 6;
	                    }
	                    else {
	                        calculatedWeekday = sectionTime.day_of_week - 1;
	                    }
	                    /*
	                     * we have to clone the course start date to give the calendar
	                     * a day to start the recurrence on, otherwise the calendar instance
	                     * begins today. The funkiness afterwards is to alter the copy with the time
	                     * of the recurring class.
	                     * */
	                    sectionStartingTime = courseStartingObj
	                        .clone()
	                        .day(calculatedWeekday)
	                        .hour(baseStart.hours)
	                        .minute(baseStart.minutes);
	                    sectionEndingTime = courseStartingObj
	                        .clone()
	                        .day(calculatedWeekday)
	                        .hour(baseEnd.hours)
	                        .minute(baseEnd.minutes);
	                    // all time needs to be a raw JS date object for the plugin
	                    sectionEvent = _4.merge({}, eventObjConfig, {
	                        location: _4.get(sectionTime, '_location.name', 'n/a'),
	                        startDate: sectionStartingTime.toDate(),
	                        endDate: sectionEndingTime.toDate(),
	                        timeId: sectionTime.id
	                    });
	                    sectionEvent.options = eventOption;
	                    calendarObjects.push(sectionEvent);
	                });
	            });
	            return calendarObjects;
	        };
	        MyScheduleNativeCalendar.prototype.deleteSingleCourseFromCalendar = function (courseEvent) {
	            var deferred = $q.defer();
	            var successFn = function () {
	                ngCalendarLocalDatabase.removeCourse(courseEvent);
	                deferred.resolve();
	            };
	            var errFn = function (err) {
	                deferred.reject('Error removing event from calendar', err);
	            };
	            calendarFacade.deleteEventWithCallbacks(courseEvent.calendarEventID, successFn, errFn);
	            return deferred.promise;
	        };
	        MyScheduleNativeCalendar.prototype.deleteAllCoursesFromCalendar = function (courseEvents) {
	            var _this = this;
	            /* We have to recursively call this function to allow for us to iterate over the list of courses. Again--the plugin is single threaded. The completionFn serves as a way to kind of handle the resolution of all of this.*/
	            var deferred = $q.defer();
	            var iterator = 0;
	            var deleteSingleCourse = function (courseEvent) {
	                // If no courseEvent, fire the completion event
	                if (_4.isEmpty(courseEvent)) {
	                    deferred.resolve();
	                    return;
	                }
	                _this.deleteSingleCourseFromCalendar(courseEvent).then(function (evt) {
	                    iterator += 1;
	                    if (iterator < courseEvents.length) {
	                        // timeout is another safegaurd from the single-threading, then recurse
	                        /* tslint:disable */
	                        $timeout(deleteSingleCourse(courseEvents[iterator]), 0);
	                        /* tslint:enable */
	                    }
	                    else {
	                        // fire the completion event if there is one
	                        deferred.resolve();
	                    }
	                });
	            };
	            // initialize the loop/recursion
	            deleteSingleCourse(courseEvents[iterator]);
	            return deferred.promise;
	        };
	        return MyScheduleNativeCalendar;
	    }());
	    return new MyScheduleNativeCalendar();
	}
	exports.MyScheduleNativeCalenderFunction = MyScheduleNativeCalenderFunction;


/***/ }),
/* 166 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var CalendarIntegrationService = /** @class */ (function () {
	    function CalendarIntegrationService() {
	        this.showButton = false;
	        this.isDisabled = false;
	        this.callMethod = function () { return false; };
	    }
	    return CalendarIntegrationService;
	}());
	exports.CalendarIntegrationService = CalendarIntegrationService;


/***/ }),
/* 167 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MyScheduleDetailViewController = /** @class */ (function () {
	    function MyScheduleDetailViewController($stateParams, courseDetailCommand) {
	        var _this = this;
	        this.$stateParams = $stateParams;
	        this.courseDetailCommand = courseDetailCommand;
	        this.course = {};
	        courseDetailCommand(this.$stateParams.id).then(function (course) { return (_this.course = course); });
	    }
	    MyScheduleDetailViewController.prototype.getTitleOfCourse = function () {
	        if (_4.isEmpty(this.course)) {
	            return '';
	        }
	        return this.course._course.cd;
	    };
	    return MyScheduleDetailViewController;
	}());
	exports.MyScheduleDetailViewController = MyScheduleDetailViewController;


/***/ }),
/* 168 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MyScheduleListViewController = /** @class */ (function () {
	    function MyScheduleListViewController(ngCourseScheduleCapabilityConfiguration, $state, $stateParams, ngScheduleQuery, ngCalendarIntegrationService, courseListCommand) {
	        var _this = this;
	        this.ngCourseScheduleCapabilityConfiguration = ngCourseScheduleCapabilityConfiguration;
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	        this.ngScheduleQuery = ngScheduleQuery;
	        this.ngCalendarIntegrationService = ngCalendarIntegrationService;
	        this.flags = {
	            hasLoaded: false,
	            isTermFilterOpen: false,
	            headerTheme: this.ngCourseScheduleCapabilityConfiguration.config.navIconTheme,
	            hasMultipleTerms: _4.size(this.ngScheduleQuery.getTerms()) > 1
	        };
	        if (_4.isEmpty(this.ngScheduleQuery.result)) {
	            courseListCommand()
	                .then(function () {
	                _this.updateFlagsAfterCommand();
	                _this.findTermIdOnLoad();
	            })
	                .catch(function () { return _this.updateFlagsAfterCommand(); });
	        }
	        else {
	            this.updateFlagsAfterCommand();
	            this.findTermIdOnLoad();
	        }
	    }
	    Object.defineProperty(MyScheduleListViewController.prototype, "termId", {
	        get: function () {
	            return this._termId;
	        },
	        set: function (term) {
	            this._termId = parseInt(term, 10);
	            this.ngScheduleQuery.setPersistantTerm(this._termId);
	            this.refresh();
	        },
	        enumerable: true,
	        configurable: true
	    });
	    MyScheduleListViewController.prototype.findTermIdOnLoad = function () {
	        if (_4.isEmpty(this.$stateParams.term)) {
	            this.termId = this.ngScheduleQuery.getPersistantTerm();
	            if (_4.isNaN(this.termId)) {
	                this.termId = _4.get(_.first(this.ngScheduleQuery.getTerms()), 'id');
	                this.ngScheduleQuery.setPersistantTerm(this.termId);
	            }
	        }
	        else {
	            this.termId = this.ngScheduleQuery.setPersistantTerm(this.$stateParams.term);
	        }
	    };
	    MyScheduleListViewController.prototype.updateFlagsAfterCommand = function () {
	        this.flags.hasLoaded = true;
	        this.flags.hasMultipleTerms = _4.size(this.ngScheduleQuery.getTerms()) > 1;
	    };
	    MyScheduleListViewController.prototype.refresh = function () {
	        this.termText = _.isEmpty(this.ngScheduleQuery.getTermText(this.termId))
	            ? "My Class Schedule"
	            : "Courses: " + this.ngScheduleQuery.getTermText(this.termId);
	    };
	    MyScheduleListViewController.prototype.toggleTermFilter = function () {
	        this.flags.isTermFilterOpen = !this.flags.isTermFilterOpen;
	    };
	    MyScheduleListViewController.prototype.closeTermFilter = function () {
	        this.flags.isTermFilterOpen = false;
	    };
	    MyScheduleListViewController.prototype.isSelectedTerm = function (termID) {
	        return this.termId === termID;
	    };
	    MyScheduleListViewController.prototype.setSelectedTerm = function (termID) {
	        this.$state.go('my.courseSchedule.term', { term: termID });
	        this.closeTermFilter();
	        this.termId = termID;
	    };
	    return MyScheduleListViewController;
	}());
	exports.MyScheduleListViewController = MyScheduleListViewController;


/***/ }),
/* 169 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var DEFAULT_LINK = {
	    page: 'default',
	    state: 'my.feed',
	    hybridState: 'my.feed',
	    deepLinkString: '',
	    stateParams: {
	        firstParam: '',
	        secondParam: '',
	        thirdParam: ''
	    },
	    constructRouteParams: function (params) {
	        var _a;
	        return _a = {},
	            _a[this.stateParams.firstParam] = params.firstParam,
	            _a[this.stateParams.secondParam] = params.secondParam,
	            _a[this.stateParams.thirdParam] = params.thirdParam,
	            _a;
	    },
	    constructHybridRouteParams: function (params) {
	        return params;
	    },
	    getState: function (params) {
	        return this.state;
	    },
	    getHref: function () {
	        return this.href;
	    },
	    getHybridState: function (params) {
	        return this.hybridState;
	    }
	};
	var DeeplinkConfig = /** @class */ (function () {
	    function DeeplinkConfig(Enumeration) {
	        this.Enumeration = Enumeration;
	        this._keys = {};
	        this._configurations = {};
	        this._enum = {};
	        this._storedHref = '';
	        this._trackingProperty = 't';
	        this._trackingFunction = angular.noop;
	        this._defaultState = 'my.feed';
	        this._originalDeeplink = '';
	    }
	    Object.defineProperty(DeeplinkConfig.prototype, "trackingProperty", {
	        set: function (trackingProp) {
	            this._trackingProperty = trackingProp;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    DeeplinkConfig.prototype.registerConfiguration = function (config) {
	        config = _.merge({}, DEFAULT_LINK, config);
	        this._keys[config.page.toUpperCase()] = config.page.toLowerCase();
	        this._configurations[config.page] = config;
	    };
	    DeeplinkConfig.prototype.registerConfigurationArray = function (configArray) {
	        var _this = this;
	        _.forEach(configArray, function (config) { return _this.registerConfiguration(config); });
	    };
	    DeeplinkConfig.prototype.storeState = function (state) {
	        this._storedState = state;
	    };
	    DeeplinkConfig.prototype.getStoredState = function () {
	        return this._storedState;
	    };
	    DeeplinkConfig.prototype.storeHref = function (href) {
	        this._storedHref = href;
	    };
	    DeeplinkConfig.prototype.getStoredHref = function () {
	        return this._storedHref;
	    };
	    DeeplinkConfig.prototype.setOriginalDeeplink = function (url) {
	        this._originalDeeplink = url;
	    };
	    DeeplinkConfig.prototype.getOriginalDeeplink = function () {
	        return this._originalDeeplink;
	    };
	    DeeplinkConfig.prototype.deleteStoredState = function () {
	        this._storedState = {};
	    };
	    DeeplinkConfig.prototype.setTrackingFunction = function (fn) {
	        this._trackingFunction = fn;
	    };
	    DeeplinkConfig.prototype.trackLink = function () {
	        var args = [];
	        for (var _i = 0; _i < arguments.length; _i++) {
	            args[_i] = arguments[_i];
	        }
	        this._trackingFunction.apply(this, args);
	    };
	    DeeplinkConfig.prototype.setDefaultState = function (state) {
	        this._defaultState = state;
	    };
	    DeeplinkConfig.prototype.hasHybridTrackingInfo = function (stateParams) {
	        return _.result(stateParams, this._trackingProperty);
	    };
	    DeeplinkConfig.prototype.hasTrackingInfo = function (stateParams) {
	        var QUERY_CHARACTER_PAD = _.size('=');
	        var QUERY_STRING_DELIMITER = "?" + this._trackingProperty;
	        var trackingParamKey = _.findKey(stateParams, function (param) { return param.indexOf(QUERY_STRING_DELIMITER) > -1; });
	        if (_.isEmpty(trackingParamKey)) {
	            return '';
	        }
	        var trackingString = stateParams[trackingParamKey];
	        var sliceIndex = trackingString.indexOf(QUERY_STRING_DELIMITER);
	        stateParams[trackingParamKey] = trackingString.slice(0, sliceIndex);
	        return trackingString.slice(sliceIndex + _.size(QUERY_STRING_DELIMITER) + QUERY_CHARACTER_PAD);
	    };
	    DeeplinkConfig.prototype.getDefaultState = function () {
	        return this._defaultState;
	    };
	    DeeplinkConfig.prototype.createEnum = function () {
	        this.Enumeration('Deeplink', this._keys);
	        this.Enumeration.useDefinitionAsEnum('Deeplink', this._configurations);
	        this._enum = window['enums']['Deeplink'];
	    };
	    DeeplinkConfig.prototype.getDeeplinkEnum = function () {
	        return this._enum;
	    };
	    DeeplinkConfig.prototype.$get = function () {
	        this.createEnum();
	        return this;
	    };
	    return DeeplinkConfig;
	}());
	exports.DeeplinkConfig = DeeplinkConfig;


/***/ }),
/* 170 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var DeeplinksStateConfiguration = /** @class */ (function () {
	    function DeeplinksStateConfiguration($stateProvider, $urlRouterProvider) {
	        this.$stateProvider = $stateProvider;
	        this.$urlRouterProvider = $urlRouterProvider;
	    }
	    DeeplinksStateConfiguration.prototype.state = function (stateConfiguration) {
	        stateConfiguration = stateConfiguration || {};
	        this.$stateProvider.state('deeplink', _4.merge({
	            url: '/dl/:page/:firstParam/:secondParam/:thirdParam',
	            controller: 'DeeplinkController',
	            controllerAs: 'dl',
	            data: {
	                page: undefined,
	                firstParam: undefined,
	                secondParam: undefined,
	                thirdParam: undefined
	            }
	        }, stateConfiguration['deeplink']));
	    };
	    DeeplinksStateConfiguration.prototype.enableDesktopURLNormalization = function () {
	        var DEEPLINK_ROUTE_REGEX = /\/dl[\/*\w\d]*/;
	        this.$urlRouterProvider.when(DEEPLINK_ROUTE_REGEX, this.__normalizeUrls);
	    };
	    DeeplinksStateConfiguration.prototype.__normalizeUrls = function ($state, $match, $stateParams) {
	        var routeArray = $match.input.split('/');
	        /*
	         * routeArray[0] is empty, it is the leading slash in the URL
	         * routeArray[1] is the string 'dl', we don't care about that
	         */
	        var stateParams = {
	            page: routeArray[2],
	            firstParam: _4.isEmpty(routeArray[3]) ? undefined : routeArray[3],
	            secondParam: _4.isEmpty(routeArray[4]) ? undefined : routeArray[4],
	            thirdParam: _4.isEmpty(routeArray[5]) ? undefined : routeArray[5]
	        };
	        $state.go('deeplink', stateParams);
	    };
	    DeeplinksStateConfiguration.prototype.$get = function () {
	        return this;
	    };
	    return DeeplinksStateConfiguration;
	}());
	exports.DeeplinksStateConfiguration = DeeplinksStateConfiguration;


/***/ }),
/* 171 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var Hold = /** @class */ (function () {
	    function Hold(hold) {
	        _4.merge(this, hold);
	    }
	    Hold.build = function (hold) {
	        return new Hold(hold);
	    };
	    return Hold;
	}());
	exports.Hold = Hold;


/***/ }),
/* 172 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var resolution_types_builder_1 = __webpack_require__(173);
	var HoldType = /** @class */ (function () {
	    function HoldType(hold) {
	        var _this = this;
	        _4.map(hold.resolution_types, function (resolution) { return new resolution_types_builder_1.ResolutionType(resolution); });
	        // TODO: create a resolution query that contains this logic
	        var groups = _4.groupBy(hold.resolution_types, function (res) {
	            return res.group ? res.group : _this.defaultGroupName;
	        });
	        hold.resolution_types = _4.omit(groups, this.defaultGroupName);
	        hold.general_resolution = _4.pick(groups, this.defaultGroupName);
	        _4.merge(this, hold);
	    }
	    HoldType.build = function (hold) {
	        return new HoldType(hold);
	    };
	    Object.defineProperty(HoldType.prototype, "defaultGroupName", {
	        get: function () {
	            return 'General';
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return HoldType;
	}());
	exports.HoldType = HoldType;


/***/ }),
/* 173 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var holds_resolution_servant_1 = __webpack_require__(181);
	var ResolutionType = /** @class */ (function () {
	    function ResolutionType(resolution) {
	        resolution.metadata = holds_resolution_servant_1.HoldsResolutionServant.build(resolution);
	        _4.merge(this, resolution);
	    }
	    ResolutionType.build = function (resolution) {
	        return new ResolutionType(resolution);
	    };
	    return ResolutionType;
	}());
	exports.ResolutionType = ResolutionType;


/***/ }),
/* 174 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var HoldResolutionCollectionController = /** @class */ (function () {
	    function HoldResolutionCollectionController(ngHoldCapabilityConfiguration, ngEmailManagementService) {
	        this.ngHoldCapabilityConfiguration = ngHoldCapabilityConfiguration;
	        this.ngEmailManagementService = ngEmailManagementService;
	        this.flags = {
	            showResolutionCollection: false,
	            isMobile: false
	        };
	    }
	    HoldResolutionCollectionController.prototype.$onInit = function () {
	        this.refresh();
	    };
	    HoldResolutionCollectionController.prototype.$onChanges = function () {
	        this.refresh();
	    };
	    HoldResolutionCollectionController.prototype.refresh = function () {
	        this.flags = {
	            showResolutionCollection: !_4.isEmpty(this.resolutions),
	            isMobile: utility_ts_platform_1.PlatformUtility.isMobile()
	        };
	    };
	    HoldResolutionCollectionController.prototype.showResolution = function (resolution) {
	        return !_4.isEmpty(resolution.metadata.title) || !_4.isEmpty(resolution.metadata.description);
	    };
	    HoldResolutionCollectionController.prototype.goToResolution = function (link) {
	        if (utility_ts_platform_1.PlatformUtility.isMobile() && _4.includes(link, 'http')) {
	            window.open(link, '_blank', this.ngHoldCapabilityConfiguration.config.appBrowserArguments);
	        }
	        else if (utility_ts_platform_1.PlatformUtility.isMobile() && _4.includes(link, 'mailto:')) {
	            this.ngEmailManagementService.sendEmail({ to: _4.split(link, 'mailto:')[1] });
	        }
	        else {
	            if (utility_ts_platform_1.PlatformUtility.isAndroid()) {
	                window.open(link, '_system');
	            }
	            else {
	                window.open(link);
	            }
	        }
	    };
	    HoldResolutionCollectionController.prototype.getPlatform = function () {
	        return utility_ts_platform_1.PlatformUtility.getPlatform();
	    };
	    return HoldResolutionCollectionController;
	}());
	exports.HoldResolutionCollectionController = HoldResolutionCollectionController;
	var HoldResolutionCollectionComponent = /** @class */ (function () {
	    function HoldResolutionCollectionComponent() {
	        this.templateUrl = 'capability-ng-holds/src/components/hold_resolution_collection/hold_resolution_collection.html';
	        this.controller = HoldResolutionCollectionController;
	        this.bindings = {
	            groupName: '<',
	            resolutions: '<'
	        };
	    }
	    return HoldResolutionCollectionComponent;
	}());
	exports.HoldResolutionCollectionComponent = HoldResolutionCollectionComponent;


/***/ }),
/* 175 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var holds_attention_servant_1 = __webpack_require__(56);
	var HoldsDetailContentController = /** @class */ (function () {
	    function HoldsDetailContentController(ngHoldCapabilityConfiguration, ngHoldModalService, ngHoldDatastore, ngHoldTypeDatastore, loadHoldsListCommand, loadHoldResolutionCommand, updateHoldResolutionCommand, ngNavigationBarAlertService) {
	        this.ngHoldCapabilityConfiguration = ngHoldCapabilityConfiguration;
	        this.ngHoldModalService = ngHoldModalService;
	        this.ngHoldDatastore = ngHoldDatastore;
	        this.ngHoldTypeDatastore = ngHoldTypeDatastore;
	        this.loadHoldsListCommand = loadHoldsListCommand;
	        this.loadHoldResolutionCommand = loadHoldResolutionCommand;
	        this.updateHoldResolutionCommand = updateHoldResolutionCommand;
	        this.ngNavigationBarAlertService = ngNavigationBarAlertService;
	    }
	    HoldsDetailContentController.prototype.$onInit = function () {
	        this.refresh();
	    };
	    HoldsDetailContentController.prototype.$onChanges = function () {
	        this.refresh();
	    };
	    HoldsDetailContentController.prototype.refresh = function () {
	        var _this = this;
	        this.hold = _4.first(this.ngHoldDatastore.query(function (hold) { return hold.id === parseInt(_this.holdId, 10); }));
	        this.holdType = _4.first(this.ngHoldTypeDatastore.query(function (type) { return type.id === parseInt(_this.holdTypeId, 10); }));
	        this.flags = {
	            hasAdditionalInfoAmount: !_4.isEmpty(_4.get(this.hold, 'amount', '')),
	            hasAdditionalInfoReason: !_4.isEmpty(_4.get(this.hold, 'reason_text', '')),
	            hasDescription: !_4.isEmpty(_4.get(this.hold, 'desc', '')),
	            hasResolutions: !_4.isEmpty(_4.get(this.holdType, 'general_resolution', '')) ||
	                !_4.isEmpty(_4.get(this.holdType, 'resolution_types', '')),
	            isHoldThatRequiresAttention: holds_attention_servant_1.HoldsAttentionServant.isHoldThatRequiresAttention(this.hold)
	        };
	        if (this.ngHoldCapabilityConfiguration.config.ngStatusBarService) {
	            this.ngHoldCapabilityConfiguration.config.ngStatusBarService.setupStatusBarForHolds(this.flags.isHoldThatRequiresAttention);
	            this.ngNavigationBarAlertService.toggleStateTo(this.flags.isHoldThatRequiresAttention);
	        }
	        this.__guarenteeContentExists();
	    };
	    HoldsDetailContentController.prototype.showExplanation = function () {
	        this.ngHoldModalService.isOpen = true;
	    };
	    HoldsDetailContentController.prototype.__guarenteeContentExists = function () {
	        var _this = this;
	        if (_4.isEmpty(this.hold)) {
	            this.loadHoldsListCommand().then(function () { return _this.refresh(); });
	        }
	        if (_4.isEmpty(this.holdType)) {
	            this.loadHoldResolutionCommand(this.holdTypeId).then(function () {
	                _this.updateHoldResolutionCommand(_this.hold.hold_type_id);
	                _this.refresh();
	            });
	        }
	    };
	    return HoldsDetailContentController;
	}());
	exports.HoldsDetailContentController = HoldsDetailContentController;
	var HoldsDetailContentComponent = /** @class */ (function () {
	    function HoldsDetailContentComponent() {
	        this.templateUrl = 'capability-ng-holds/src/components/holds_detail_content/holds_detail_content.html';
	        this.controller = HoldsDetailContentController;
	        this.bindings = {
	            holdId: '<',
	            holdTypeId: '<'
	        };
	    }
	    return HoldsDetailContentComponent;
	}());
	exports.HoldsDetailContentComponent = HoldsDetailContentComponent;


/***/ }),
/* 176 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var HoldsListContentController = /** @class */ (function () {
	    function HoldsListContentController($rootScope, ngHoldListQuery, loadHoldsListCommand, loadHoldsCustomTextCommand, ngHoldsCustomTextModel) {
	        this.$rootScope = $rootScope;
	        this.ngHoldListQuery = ngHoldListQuery;
	        this.loadHoldsListCommand = loadHoldsListCommand;
	        this.loadHoldsCustomTextCommand = loadHoldsCustomTextCommand;
	        this.ngHoldsCustomTextModel = ngHoldsCustomTextModel;
	        this.customMessage = '';
	        this.models = {
	            statusMessage: 'Loading holds...',
	            isLoading: false
	        };
	    }
	    HoldsListContentController.prototype.$onInit = function () {
	        this.getCustomText();
	    };
	    HoldsListContentController.prototype.getCustomText = function () {
	        var _this = this;
	        if (_4.isEmpty(this.ngHoldsCustomTextModel.read())) {
	            this.loadHoldsCustomTextCommand().then(function () {
	                _this.setCustomText();
	            });
	        }
	        else {
	            this.setCustomText();
	        }
	    };
	    HoldsListContentController.prototype.setCustomText = function () {
	        this.customMessage =
	            _4.get(_4.find(this.ngHoldsCustomTextModel.read(), { nk: 'HOLD_ACTIVE_MESSAGE' }), 'text') || this.customMessage;
	    };
	    HoldsListContentController.prototype.hasNeedsAttentionHolds = function () {
	        return !_4.isEmpty(this.ngHoldListQuery.result.needsAttention);
	    };
	    HoldsListContentController.prototype.hasRegularHolds = function () {
	        return !_4.isEmpty(this.ngHoldListQuery.result.holds);
	    };
	    HoldsListContentController.prototype.hasPastHolds = function () {
	        return !_4.isEmpty(this.ngHoldListQuery.result.pastHolds);
	    };
	    HoldsListContentController.prototype.hasHolds = function () {
	        return this.hasNeedsAttentionHolds() || this.hasRegularHolds();
	    };
	    HoldsListContentController.prototype.showAllClearText = function () {
	        this.__updateLoader();
	        return !this.hasNeedsAttentionHolds() && !this.hasRegularHolds() && !this.models.isLoading;
	    };
	    HoldsListContentController.prototype.loadHolds = function () {
	        var _this = this;
	        if (this.models.isLoading) {
	            return;
	        }
	        this.models.isLoading = true;
	        this.loadHoldsListCommand().finally(function () { return _this.__updateLoader(); });
	    };
	    HoldsListContentController.prototype.__updateLoader = function () {
	        this.models.statusMessage = !this.ngHoldListQuery.hasHolds() ? 'Great, you have no holds!' : 'You have holds';
	        this.models.isLoading = false;
	    };
	    return HoldsListContentController;
	}());
	exports.HoldsListContentController = HoldsListContentController;
	var HoldsListContentComponent = /** @class */ (function () {
	    function HoldsListContentComponent() {
	        this.templateUrl = 'capability-ng-holds/src/components/holds_list_content/holds_list_content.html';
	        this.controller = HoldsListContentController;
	    }
	    return HoldsListContentComponent;
	}());
	exports.HoldsListContentComponent = HoldsListContentComponent;


/***/ }),
/* 177 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var HoldCapabilityConfiguration = /** @class */ (function () {
	    function HoldCapabilityConfiguration() {
	        this._config = {
	            appBrowserArguments: ''
	        };
	    }
	    Object.defineProperty(HoldCapabilityConfiguration.prototype, "config", {
	        get: function () {
	            return this._config;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    HoldCapabilityConfiguration.prototype.setConfigs = function (configs) {
	        this._config = tslib_1.__assign(tslib_1.__assign({}, this._config), configs);
	    };
	    HoldCapabilityConfiguration.prototype.setConfig = function (key, value) {
	        this._config[key] = value;
	    };
	    return HoldCapabilityConfiguration;
	}());
	exports.HoldCapabilityConfiguration = HoldCapabilityConfiguration;


/***/ }),
/* 178 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_platform_1 = __webpack_require__(8);
	var HoldModalController = /** @class */ (function () {
	    function HoldModalController(ngHoldModalService) {
	        this.ngHoldModalService = ngHoldModalService;
	        this.isMobile = false;
	        this.isMobile = utility_ts_platform_1.PlatformUtility.isMobile();
	    }
	    HoldModalController.prototype.closeModal = function () {
	        this.ngHoldModalService.isOpen = false;
	    };
	    return HoldModalController;
	}());
	exports.HoldModalController = HoldModalController;
	var HoldModalService = /** @class */ (function () {
	    function HoldModalService() {
	        this._isOpen = false;
	    }
	    Object.defineProperty(HoldModalService.prototype, "isOpen", {
	        get: function () {
	            return this._isOpen;
	        },
	        set: function (isOpen) {
	            this._isOpen = isOpen;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return HoldModalService;
	}());
	exports.HoldModalService = HoldModalService;
	var HoldModalComponent = /** @class */ (function () {
	    function HoldModalComponent() {
	        this.templateUrl = 'capability-ng-holds/src/hold_modal/hold_explanation_modal.html';
	        this.controller = HoldModalController;
	        this.controllerAs = '$ctrl';
	    }
	    return HoldModalComponent;
	}());
	exports.HoldModalComponent = HoldModalComponent;


/***/ }),
/* 179 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	function MyHoldsRoutes($stateProvider) {
	    $stateProvider
	        .state('my.holdscenter', {
	        url: 'hold-center/',
	        templateUrl: 'capability-ng-holds/src/views/holds_center/holds_center.html',
	        data: {
	            viewTitle: 'Active Holds',
	            hasMainMenu: true,
	            ignoredInHistory: false
	        },
	        onEnter: function (loadHoldsCommand) {
	            loadHoldsCommand();
	        }
	    })
	        .state('my.holdsdetail', {
	        templateUrl: 'capability-ng-holds/src/views/holds_detail/holds_detail.html',
	        controller: 'HoldsDetailController',
	        controllerAs: '$ctrl',
	        url: 'hold-detail/:holdTypeId/:id/',
	        data: {
	            viewTitle: 'Hold Detail',
	            suppressTrackingPage: true,
	            ignoredInHistory: false
	        },
	        params: {
	            additionalInfo: undefined
	        },
	        onExit: function (ngNavigationBarAlertService) {
	            ngNavigationBarAlertService.reset();
	        }
	    });
	}
	exports.MyHoldsRoutes = MyHoldsRoutes;


/***/ }),
/* 180 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var HoldsConfigService = /** @class */ (function () {
	    function HoldsConfigService() {
	        this._detailRoute = 'my.holdsdetail';
	        this._centerRoute = 'my.holdscenter';
	    }
	    HoldsConfigService.prototype.config = function (config) {
	        if (config.detailRoute) {
	            this._detailRoute = config.detailRoute;
	        }
	        if (config.centerRoute) {
	            this._centerRoute = config.centerRoute;
	        }
	    };
	    Object.defineProperty(HoldsConfigService.prototype, "detailRoute", {
	        get: function () {
	            return this._detailRoute;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(HoldsConfigService.prototype, "centerRoute", {
	        get: function () {
	            return this._centerRoute;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return HoldsConfigService;
	}());
	exports.HoldsConfigService = HoldsConfigService;


/***/ }),
/* 181 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	// TODO: refactor to use utility-ts-strategy
	var HoldsResolutionServant = /** @class */ (function () {
	    function HoldsResolutionServant() {
	    }
	    HoldsResolutionServant.build = function (resolution) {
	        return this[resolution.channel](resolution);
	    };
	    HoldsResolutionServant.WEB = function (resolution) {
	        return this.URL(resolution);
	    };
	    HoldsResolutionServant.URL = function (resolution) {
	        var contact_display_value = resolution.contact_display_value, contact_value = resolution.contact_value;
	        var desktopActionable = true;
	        var icon = 'link';
	        var urls = this.__constructURL(contact_value);
	        var description = this.__setDescription(urls.prettyAddress, contact_display_value);
	        var link = {
	            desktop: urls.linkingAddress,
	            android: urls.linkingAddress,
	            ios: urls.linkingAddress
	        };
	        return { description: description, link: link, desktopActionable: desktopActionable, icon: icon };
	    };
	    HoldsResolutionServant.LOCATION = function (resolution) {
	        var contact_value = resolution.contact_value, contact_display_value = resolution.contact_display_value;
	        var icon = 'map_marker';
	        var description = this.__setDescription(contact_value, contact_display_value);
	        // TODO: figure out how the server handles long/lat and revisit this code
	        // let addressAppend;
	        // if (!_.isEmpty(processingResolution.source.address)) {
	        //   addressAppend = processingResolution.source.address;
	        // } else if (processingResolution.source.longitude !== 0 && processingResolution.source.latitude !== 0) {
	        //   addressAppend = processingResolution.source.latitude + ',' + processingResolution.source.longitude;
	        // }
	        var link = {
	            desktop: 'https://maps.google.com/?q=' + contact_value,
	            android: 'geo://maps.google.com/?q=' + contact_value,
	            ios: 'maps://maps.apple.com/?q=' + contact_value
	        };
	        var desktopActionable = true;
	        return { description: description, link: link, desktopActionable: desktopActionable, icon: icon };
	    };
	    HoldsResolutionServant.PHONE = function (resolution) {
	        return this.__simpleResolutionConstruction('tel://', resolution, 'telephone');
	    };
	    HoldsResolutionServant.EMAIL = function (resolution) {
	        return this.__simpleResolutionConstruction('mailto:', resolution, 'envelope');
	    };
	    // function methods we use to clean up the meat of the methods
	    HoldsResolutionServant.__constructURL = function (url) {
	        var urlPrefixExpression = new RegExp('://');
	        var prettyAddress = url;
	        var urlContainsPrefix = urlPrefixExpression.exec(prettyAddress);
	        var linkingAddress = '';
	        if (_4.isNull(urlContainsPrefix)) {
	            linkingAddress = 'http://' + prettyAddress;
	        }
	        else {
	            linkingAddress = prettyAddress;
	            // regex has the starting index stored, but we add 3 since the expression is 3 characters long
	            prettyAddress = prettyAddress.slice(urlContainsPrefix.index + 3, prettyAddress.length);
	        }
	        /* tslint:disable-next-line */
	        return { prettyAddress: prettyAddress, linkingAddress: linkingAddress };
	    };
	    HoldsResolutionServant.__simpleResolutionConstruction = function (prefix, resolution, icon) {
	        var contact_value = resolution.contact_value, contact_display_value = resolution.contact_display_value;
	        var description = this.__setDescription(contact_value, contact_display_value);
	        var link = {
	            desktop: prefix + contact_value,
	            android: prefix + contact_value,
	            ios: prefix + contact_value
	        };
	        var desktopActionable = false;
	        return { description: description, link: link, desktopActionable: desktopActionable, icon: icon };
	    };
	    HoldsResolutionServant.__setDescription = function (value, displayValue) {
	        return _4.isEmpty(displayValue) ? value : displayValue;
	    };
	    return HoldsResolutionServant;
	}());
	exports.HoldsResolutionServant = HoldsResolutionServant;


/***/ }),
/* 182 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var HoldsService = /** @class */ (function () {
	    function HoldsService(pusherService, accountModel, ngHoldsCustomTextModel, $state, loadHoldsCustomTextCommand, loadHoldsCommand) {
	        this.pusherService = pusherService;
	        this.accountModel = accountModel;
	        this.ngHoldsCustomTextModel = ngHoldsCustomTextModel;
	        this.$state = $state;
	        this.loadHoldsCustomTextCommand = loadHoldsCustomTextCommand;
	        this.loadHoldsCommand = loadHoldsCommand;
	        this.realtimeChannelActive = false;
	        this.holdsUrl = '';
	        this.isMobile = false;
	        this.isMobile = utility_ts_platform_1.PlatformUtility.isMobile();
	    }
	    HoldsService.prototype.init = function () {
	        var _this = this;
	        return new Promise(function (resolve, reject) {
	            if (_4.isEmpty(_this.ngHoldsCustomTextModel.read())) {
	                _this.loadCustomText()
	                    .then(function () {
	                    _this.startPusherChannel();
	                    resolve();
	                })
	                    .catch(function (err) {
	                    reject(err);
	                });
	            }
	            else {
	                _this.startPusherChannel();
	                resolve();
	            }
	        });
	    };
	    HoldsService.prototype.startPusherChannel = function () {
	        var _this = this;
	        this.customText = this.ngHoldsCustomTextModel.read();
	        this.state = this.$state;
	        if (!this.realtimeChannelActive) {
	            this.realtimeChannelActive = true;
	            this.pusherService.bindToPusherEvent(this.accountModel.username, 'realtime_update', function (pusherResponse) {
	                var text = _4.get(_4.find(_this.customText, { nk: pusherResponse.message_key }), 'text') || '';
	                var title = "Attention: New Hold(s)";
	                _this.holdsUrl = _this.state.href('my.holdscenter');
	                _this.loadHoldsCommand(false);
	                if (!_this.isMobile) {
	                    HIP.fn.notify({
	                        title: title,
	                        details: "\n              <div l-kind=\"hort\" l-no-wrap l-justify=\"between\">\n              <hi-link href=\"" + _this.holdsUrl + "\">" + text + "</hi-link>\n              <hi-badge theme=\"orange\" aesthetic=\"light\">\n                <hi-icon theme=\"orange\" kind=\"warning\"></hi-icon>\n                <span class=\"text-sz-m\">Holds</span>\n              </hi-badge>\n              </div>",
	                        delay: 20000
	                    });
	                }
	                else {
	                    log.notify({
	                        title: title,
	                        body: "<hi-link ui-sref=\"my.holdscenter\">" + text + "</hi-link>"
	                    });
	                }
	            });
	        }
	    };
	    HoldsService.prototype.loadCustomText = function () {
	        return this.loadHoldsCustomTextCommand();
	    };
	    HoldsService.prototype.disconnect = function () {
	        this.pusherService.unBindToPusherEvent('', 'realtime_update');
	        this.realtimeChannelActive = false;
	    };
	    return HoldsService;
	}());
	exports.HoldsService = HoldsService;


/***/ }),
/* 183 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var HoldsDetailController = /** @class */ (function () {
	    function HoldsDetailController($stateParams) {
	        this.$stateParams = $stateParams;
	        this.holdId = this.$stateParams.id;
	        this.holdTypeId = this.$stateParams.holdTypeId;
	    }
	    return HoldsDetailController;
	}());
	exports.HoldsDetailController = HoldsDetailController;


/***/ }),
/* 184 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var MajorExplorerCapabilityConfiguration = /** @class */ (function () {
	    function MajorExplorerCapabilityConfiguration() {
	        this._config = {
	            isMobile: false,
	            devReqStrategy: '',
	            navIconTheme: 'blue'
	        };
	    }
	    Object.defineProperty(MajorExplorerCapabilityConfiguration.prototype, "config", {
	        get: function () {
	            return this._config;
	        },
	        set: function (configs) {
	            this._config = tslib_1.__assign(tslib_1.__assign({}, this._config), configs);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    MajorExplorerCapabilityConfiguration.prototype.setConfig = function (key, value) {
	        this._config[key] = value;
	    };
	    return MajorExplorerCapabilityConfiguration;
	}());
	exports.MajorExplorerCapabilityConfiguration = MajorExplorerCapabilityConfiguration;


/***/ }),
/* 185 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MajorCourseMapCourse = /** @class */ (function () {
	    function MajorCourseMapCourse(course) {
	        _4.merge(this, course);
	    }
	    MajorCourseMapCourse.build = function (course) {
	        return new MajorCourseMapCourse(course);
	    };
	    return MajorCourseMapCourse;
	}());
	exports.MajorCourseMapCourse = MajorCourseMapCourse;


/***/ }),
/* 186 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MajorCourseMapProgram = /** @class */ (function () {
	    function MajorCourseMapProgram(program) {
	        _4.merge(this, program);
	    }
	    MajorCourseMapProgram.build = function (program) {
	        return new MajorCourseMapProgram(program);
	    };
	    return MajorCourseMapProgram;
	}());
	exports.MajorCourseMapProgram = MajorCourseMapProgram;


/***/ }),
/* 187 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MajorCredential = /** @class */ (function () {
	    function MajorCredential(credential) {
	        _4.merge(this, credential);
	    }
	    MajorCredential.build = function (credential) {
	        return new MajorCredential(credential);
	    };
	    return MajorCredential;
	}());
	exports.MajorCredential = MajorCredential;


/***/ }),
/* 188 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MajorDevCourse = /** @class */ (function () {
	    function MajorDevCourse(devcourse) {
	        _4.merge(this, devcourse);
	    }
	    MajorDevCourse.build = function (devcourse) {
	        return new MajorDevCourse(devcourse);
	    };
	    return MajorDevCourse;
	}());
	exports.MajorDevCourse = MajorDevCourse;


/***/ }),
/* 189 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MajorListSelectionBuilder = /** @class */ (function () {
	    function MajorListSelectionBuilder(selection) {
	        this.sortByTitle(selection);
	        this.setSelectedInterests(selection);
	        _4.merge(this, selection);
	    }
	    MajorListSelectionBuilder.build = function (selection) {
	        return new MajorListSelectionBuilder(selection);
	    };
	    MajorListSelectionBuilder.prototype.sortByTitle = function (selection) {
	        selection.activityinterestSorted = _4.sortBy(_4.toArray(selection.interests.activityinterest), 'title');
	        selection.subjectinterestSorted = _4.sortBy(_4.toArray(selection.interests.subjectinterest), 'title');
	    };
	    MajorListSelectionBuilder.prototype.setSelectedInterests = function (selection) {
	        _4.forEach(selection.listselections.activityinterest, function (activityid) {
	            var interest = _4.find(selection.activityinterestSorted, { id: activityid });
	            if (!_4.isEmpty(interest)) {
	                interest._selected = true;
	            }
	        });
	        _4.forEach(selection.listselections.subjectinterest, function (subjectid) {
	            var interest = _4.find(selection.subjectinterestSorted, { id: subjectid });
	            if (!_4.isEmpty(interest)) {
	                interest._selected = true;
	            }
	        });
	    };
	    return MajorListSelectionBuilder;
	}());
	exports.MajorListSelectionBuilder = MajorListSelectionBuilder;


/***/ }),
/* 190 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MetaRankingBuilder = /** @class */ (function () {
	    function MetaRankingBuilder(meta) {
	        meta._max = _4.isUndefined(meta.max_metamajors) ? 3 : meta.max_metamajors;
	        this.setVotesOnMajor(meta);
	        this.setMajorRanked(meta);
	        this.setRankingLists(meta);
	        this.setMaxRanking(meta);
	        _4.merge(this, meta);
	    }
	    MetaRankingBuilder.build = function (meta) {
	        return new MetaRankingBuilder(meta);
	    };
	    MetaRankingBuilder.prototype.setVotesOnMajor = function (meta) {
	        _4.forEach(meta.votes_by_metamajor, function (vote, name) {
	            var metamajor = _4.find(meta.metamajor, { nk: name });
	            if (metamajor) {
	                metamajor._votes = vote;
	            }
	        });
	        meta._metamajor_sorted = _4.sortBy(_4.toArray(meta.metamajor), '_votes');
	    };
	    MetaRankingBuilder.prototype.setMajorRanked = function (meta) {
	        _4.forEach(meta.ranked_metamajors, function (rankedMajor) {
	            var metamajor = meta.metamajor[rankedMajor.id];
	            if (metamajor) {
	                metamajor._isRanked = true;
	                metamajor._rank = rankedMajor.rank;
	            }
	        });
	    };
	    MetaRankingBuilder.prototype.setRankingLists = function (meta) {
	        meta.masterList = _4.map(meta.metamajor);
	        _4.forEach(meta.masterList, function (option, i) {
	            option.idx = i;
	            option.drag = true;
	            option.action = {
	                option: option.id,
	                value: 0
	            };
	        });
	        meta.toList = _4.sortBy(_4.filter(meta.masterList, { _isRanked: true }), '_rank');
	        meta.fromList = _4.sortBy(_4.filter(meta.masterList, function (metaMaj) { return !metaMaj._isRanked; }), 'title');
	        meta.masterList = _4.sortBy(meta.masterList, 'title');
	    };
	    MetaRankingBuilder.prototype.setMaxRanking = function (meta) {
	        meta.maxList = _4.range(0, meta._max);
	    };
	    return MetaRankingBuilder;
	}());
	exports.MetaRankingBuilder = MetaRankingBuilder;


/***/ }),
/* 191 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var MajorProgramsQuery = /** @class */ (function () {
	    function MajorProgramsQuery(ngMajorCredentialDatastore, ngMajorProgramDatastore, numberFormatterFn, ngMajorProgramModel, ngMajorBuilderServant) {
	        this.ngMajorCredentialDatastore = ngMajorCredentialDatastore;
	        this.ngMajorProgramDatastore = ngMajorProgramDatastore;
	        this.numberFormatterFn = numberFormatterFn;
	        this.ngMajorProgramModel = ngMajorProgramModel;
	        this.ngMajorBuilderServant = ngMajorBuilderServant;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngMajorCredentialDatastore, this.ngMajorProgramDatastore);
	    }
	    MajorProgramsQuery.prototype.run = function () {
	        var _this = this;
	        this.__result = _4.map(this.ngMajorProgramDatastore.values(), function (program) {
	            return _this.ngMajorBuilderServant.buildMajor(program);
	        });
	        this.calculateTuition(this.result);
	        this.assignSubjectsActivities(this.result);
	        return this;
	    };
	    Object.defineProperty(MajorProgramsQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    MajorProgramsQuery.prototype.calculateTuition = function (programs) {
	        var _this = this;
	        _4.forEach(programs, function (program) {
	            program._in_state_tuition = _this.numberFormatterFn.convertToDollars(program.credits * _this.ngMajorProgramModel.in_state_credit_cost);
	        });
	    };
	    MajorProgramsQuery.prototype.assignSubjectsActivities = function (programs) {
	        var _this = this;
	        _4.forEach(programs, function (program) {
	            _4.forEach(program.student_program_activity, function (majoractivity) {
	                program._interests.push(_4.find(_this.ngMajorProgramModel.activity, {
	                    id: majoractivity
	                }));
	            });
	            _4.forEach(program.student_program_subject, function (majorsubject) {
	                program._interests.push(_4.find(_this.ngMajorProgramModel.subject, {
	                    id: majorsubject
	                }));
	            });
	            program._has_interests = !_4.isEmpty(_4.compact(program._interests));
	        });
	    };
	    return MajorProgramsQuery;
	}());
	exports.MajorProgramsQuery = MajorProgramsQuery;
	angular.module('major-explorer-data').service('ngMajorProgramsQuery', MajorProgramsQuery);


/***/ }),
/* 192 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var MajorDataToggleService = /** @class */ (function () {
	    function MajorDataToggleService() {
	        this.flags = {
	            salary: true,
	            hiringDemand: true,
	            tution: true,
	            devCourses: true,
	            courseMaps: true,
	            credits: false
	        };
	    }
	    Object.defineProperty(MajorDataToggleService.prototype, "toggles", {
	        get: function () {
	            return this.flags;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    MajorDataToggleService.prototype.setToggles = function (flagValues) {
	        this.flags = tslib_1.__assign(tslib_1.__assign({}, this.flags), flagValues);
	    };
	    MajorDataToggleService.prototype.setToggle = function (key, value) {
	        if (_4.has(this.flags, key)) {
	            this.flags[key] = value;
	        }
	    };
	    return MajorDataToggleService;
	}());
	exports.MajorDataToggleService = MajorDataToggleService;


/***/ }),
/* 193 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MajorSearchService = /** @class */ (function () {
	    function MajorSearchService(loadSearchProgramsCommand, ngMajorProgramsQuery) {
	        this.loadSearchProgramsCommand = loadSearchProgramsCommand;
	        this.ngMajorProgramsQuery = ngMajorProgramsQuery;
	        this._isLoading = false;
	        this._page = 1;
	        this._searchedPerformed = false;
	        this._query = '';
	        this._results = [];
	    }
	    MajorSearchService.prototype.setSearch = function () {
	        var _this = this;
	        return function (value) {
	            _this.search(value);
	        };
	    };
	    MajorSearchService.prototype.search = function (value) {
	        var _this = this;
	        if (_4.isEmpty(value)) {
	            this.reset();
	            return;
	        }
	        if (value.length <= 2) {
	            this._query = value;
	            return;
	        }
	        this._isLoading = true;
	        this._query = value;
	        this.loadSearchProgramsCommand(value.toLowerCase()).then(function (result) {
	            _this._isLoading = false;
	            _this._searchedPerformed = true;
	            _this._results = _this.ngMajorProgramsQuery.result;
	        });
	    };
	    MajorSearchService.prototype.reset = function () {
	        this._query = '';
	        this._page = 1;
	        this._results = [];
	        this._searchedPerformed = false;
	    };
	    MajorSearchService.prototype.nextPage = function () {
	        this._page += 1;
	    };
	    MajorSearchService.prototype.hasMoreResults = function () {
	        return this.ngMajorProgramsQuery.result.length > this.page * 10;
	    };
	    Object.defineProperty(MajorSearchService.prototype, "allResults", {
	        get: function () {
	            return this._results;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    MajorSearchService.prototype.getFilteredMajors = function (iteratee, sortOrder) {
	        return _4.orderBy(this.ngMajorProgramsQuery.result, iteratee, sortOrder).slice(0, this.page * 10);
	    };
	    Object.defineProperty(MajorSearchService.prototype, "hasResults", {
	        get: function () {
	            return this.ngMajorProgramsQuery.result.length > 0;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(MajorSearchService.prototype, "hasSearchResults", {
	        get: function () {
	            return this._results.length > 0;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(MajorSearchService.prototype, "searchedPerformed", {
	        get: function () {
	            return this._searchedPerformed;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(MajorSearchService.prototype, "results", {
	        get: function () {
	            return this.ngMajorProgramsQuery.result.slice(0, this.page * 10);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(MajorSearchService.prototype, "query", {
	        get: function () {
	            return this._query;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(MajorSearchService.prototype, "isLoading", {
	        get: function () {
	            return this._isLoading;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(MajorSearchService.prototype, "page", {
	        get: function () {
	            return this._page;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return MajorSearchService;
	}());
	exports.MajorSearchService = MajorSearchService;


/***/ }),
/* 194 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var SurveyStepService = /** @class */ (function () {
	    function SurveyStepService(myIntakeModel, phxDelegateTagDelegate, phxValidationFacade, $state, programSortEnum, ngNavigationHistoryStack) {
	        this.myIntakeModel = myIntakeModel;
	        this.phxDelegateTagDelegate = phxDelegateTagDelegate;
	        this.phxValidationFacade = phxValidationFacade;
	        this.$state = $state;
	        this.programSortEnum = programSortEnum;
	        this.ngNavigationHistoryStack = ngNavigationHistoryStack;
	        this.hasRequestedTransition = false;
	        this._activeSortType = 'rank';
	        this._sortOrder = 'asc';
	    }
	    SurveyStepService.prototype.initialize = function (pageIndex) {
	        this.pageIndex = pageIndex;
	        this.isTransitioning = false;
	        this.currentPageNk = this.myIntakeModel.getCurrentPage().nk;
	        this.requestDelegate = this.phxDelegateTagDelegate.handle(this.delegateHandle());
	    };
	    Object.defineProperty(SurveyStepService.prototype, "currentPage", {
	        get: function () {
	            return this.myIntakeModel.getCurrentPage();
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(SurveyStepService.prototype, "activeSortType", {
	        get: function () {
	            return this._activeSortType;
	        },
	        set: function (sort) {
	            this._activeSortType = sort;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(SurveyStepService.prototype, "sortOrder", {
	        get: function () {
	            return this._sortOrder;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    SurveyStepService.prototype.delegateHandle = function () {
	        if (this.pageIndex === '1' && this.currentPageNk === 'EI_INTAKE_GOALS') {
	            return this.currentPageNk + 'second';
	        }
	        var isSecondPage = this.myIntakeModel.progression.isSecondListSelectionPage();
	        return this.currentPageNk === 'EI_INTAKE_INTERESTS'
	            ? this.currentPageNk + (isSecondPage ? 'second' : 'first')
	            : this.currentPageNk;
	    };
	    SurveyStepService.prototype.goToNext = function () {
	        this.hasRequestedTransition = false;
	        if (this.myIntakeModel.progression.isLast()) {
	            this.$state.go('my.majorexplorer');
	        }
	        else {
	            this.$state.go('my.majorexplorer-step', {
	                pageIndex: this.myIntakeModel.progression.peekNextIndex()
	            });
	        }
	    };
	    SurveyStepService.prototype.goToPrevious = function () {
	        this.hasRequestedTransition = false;
	        if (this.myIntakeModel.progression.isFirst()) {
	            this.ngNavigationHistoryStack.goBack();
	        }
	        else {
	            this.$state.go('my.majorexplorer-step', {
	                pageIndex: this.myIntakeModel.progression.peekPreviousIndex()
	            });
	        }
	    };
	    SurveyStepService.prototype.requestMoveToPrevious = function () {
	        var _this = this;
	        this.hasRequestedTransition = true;
	        if (this.myIntakeModel.progression.isLast()) {
	            this.goToPrevious();
	        }
	        else {
	            this.requestDelegate.invoke().then(function () {
	                _this.goToPrevious();
	            });
	        }
	    };
	    SurveyStepService.prototype.requestMoveToNext = function () {
	        var _this = this;
	        this.hasRequestedTransition = true;
	        if (!this.enableContinueButton() || this.isTransitioning) {
	            return;
	        }
	        this.isTransitioning = true;
	        return this.requestDelegate.invoke().then(function () {
	            _this.goToNext();
	        });
	    };
	    SurveyStepService.prototype.activateButton = function () {
	        return this.phxValidationFacade.areAllValid();
	    };
	    SurveyStepService.prototype.enableContinueButton = function () {
	        return !this.isTransitioning && this.activateButton();
	    };
	    SurveyStepService.prototype.showValidationAlert = function () {
	        return this.hasRequestedTransition && !(this.isTransitioning || this.phxValidationFacade.areAllValid());
	    };
	    SurveyStepService.prototype.sortPrograms = function (sortType) {
	        var newOrder = this.sortOrder === 'asc' ? 'desc' : 'asc';
	        this._sortOrder = this.activeSortType === sortType ? newOrder : this.programSortEnum.key(sortType).sortOrder;
	        this.activeSortType = sortType;
	    };
	    return SurveyStepService;
	}());
	exports.SurveyStepService = SurveyStepService;


/***/ }),
/* 195 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ContactChannelExplanationService = /** @class */ (function () {
	    function ContactChannelExplanationService() {
	        this._isOpen = false;
	    }
	    Object.defineProperty(ContactChannelExplanationService.prototype, "isOpen", {
	        get: function () {
	            return this._isOpen;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    ContactChannelExplanationService.prototype.toggleOpen = function (state) {
	        this._isOpen = state;
	    };
	    return ContactChannelExplanationService;
	}());
	exports.ContactChannelExplanationService = ContactChannelExplanationService;


/***/ }),
/* 196 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PollContainterController = /** @class */ (function () {
	    function PollContainterController(ngPollQueryModel, QuestionTypesEnum, updatePollStatusCommand, updatePollAnswerCommand, ngPollPlatformServant, ngPollResultsQueryModel, loadPathPollCommand, loadPollSummaryCommand, ngScheduledPollQuery) {
	        this.ngPollQueryModel = ngPollQueryModel;
	        this.QuestionTypesEnum = QuestionTypesEnum;
	        this.updatePollStatusCommand = updatePollStatusCommand;
	        this.updatePollAnswerCommand = updatePollAnswerCommand;
	        this.ngPollPlatformServant = ngPollPlatformServant;
	        this.ngPollResultsQueryModel = ngPollResultsQueryModel;
	        this.loadPathPollCommand = loadPathPollCommand;
	        this.loadPollSummaryCommand = loadPollSummaryCommand;
	        this.ngScheduledPollQuery = ngScheduledPollQuery;
	        this._setToPollDefaults();
	    }
	    PollContainterController.prototype.$onInit = function () {
	        var _this = this;
	        this.validationCallbackParent = function (responseObjectFromChild) {
	            _this.flags.isValid = responseObjectFromChild.isValid;
	            _this._constructAnswerObject(responseObjectFromChild);
	        };
	        this.$onChanges = function (changes) {
	            _this._refresh();
	            if (_this.showResultsOrResources()) {
	                _this.ngScheduledPollQuery.completeCurrentScheduledPoll();
	            }
	        };
	    };
	    PollContainterController.prototype.onSubmitAnswer = function () {
	        var _this = this;
	        this.ngPollPlatformServant.scroll();
	        this.flags.showValidationAlert = false;
	        if (this.flags.showResults) {
	            this._setToPollDefaults();
	            return this._updatePoll().then(function () { return _this.afterComplete(); });
	        }
	        if (this.flags.isValid && !this.flags.isSubmitting) {
	            this.flags.isSubmitting = true;
	            return this.updatePollAnswerCommand(this.models.activeQuestionResponse).then(function (next_question_id) {
	                if (_4.isNil(next_question_id)) {
	                    _this._completePollOrShowResults();
	                }
	                else {
	                    _this._continuePoll(next_question_id);
	                }
	                _this.flags.isSubmitting = false;
	            });
	        }
	        else {
	            this.flags.showValidationAlert = true;
	        }
	    };
	    PollContainterController.prototype.isEmpty = function () {
	        return _4.isEmpty(this.models.activeQuestion) && !this.flags.showResults;
	    };
	    PollContainterController.prototype.showResultsOrResources = function () {
	        return this.flags.showResults || this.ngPollResultsQueryModel.resultsPageFlags.hasResources;
	    };
	    PollContainterController.prototype.hasActiveQuestion = function () {
	        return !_4.isEmpty(this.models.activeQuestion);
	    };
	    PollContainterController.prototype.onKeyPressSubmitAnswer = function (event) {
	        if (event.key === 'Enter') {
	            this.onSubmitAnswer();
	        }
	    };
	    PollContainterController.prototype._refresh = function () {
	        if (this.ngPollQueryModel.isUpdatedPoll) {
	            this.models.activeQuestionId = this.ngPollQueryModel.result.first_question_id;
	            this.ngPollQueryModel.isUpdatedPoll = false;
	        }
	        if (!this.models.activeQuestionId) {
	            this.models.activeQuestionId = this.ngPollQueryModel.result.first_question_id;
	        }
	        if (this.isComplete) {
	            this.models.activeQuestionId = '';
	        }
	        this.models = {
	            activeQuestionId: this.models.activeQuestionId,
	            activeQuestion: this._getActiveQuestion(this.models.activeQuestionId, this.ngPollQueryModel.result.question),
	            activeQuestionResponse: ''
	        };
	        var question_type = _4.result(this.models.activeQuestion, 'question_type', '');
	        this.flags = {
	            isFreeTextQuestion: this.QuestionTypesEnum.isFreeText(question_type),
	            isChoiceQuestion: this.QuestionTypesEnum.isChoice(question_type),
	            isMultipleQuestion: this.QuestionTypesEnum.isMultiple(question_type),
	            isValid: this.flags.isValid || this.isComplete || this.poll.is_completed,
	            showResults: this._shouldShowResults()
	        };
	    };
	    PollContainterController.prototype._constructAnswerObject = function (responseObjectFromChild) {
	        this.models.activeQuestionResponse = {
	            pollId: this.poll.poll.id,
	            questionID: this.models.activeQuestion.id,
	            response: responseObjectFromChild.selectedResponse
	        };
	    };
	    PollContainterController.prototype._getActiveQuestion = function (currentQuestionId, questions) {
	        return _.result(questions, currentQuestionId);
	    };
	    PollContainterController.prototype._completePollOrShowResults = function () {
	        var _this = this;
	        this.poll.is_completed = true;
	        this.ngPollResultsQueryModel.run();
	        this.flags.showResults = this._shouldShowResults();
	        if (!this.flags.showResults) {
	            this._updatePoll().then(function () { return _this.afterComplete(); });
	            this._setToPollDefaults();
	        }
	        else {
	            this.markComplete();
	            this.loadPollSummaryCommand(this.poll.poll).then(function () {
	                if (_this._showResultsAndIsDesktop()) {
	                    _this._updatePoll();
	                }
	                else {
	                    _this._refresh();
	                }
	            });
	        }
	    };
	    PollContainterController.prototype._continuePoll = function (next_question_id) {
	        this.models.activeQuestionId = next_question_id;
	        this.flags.isValid = false;
	        this._refresh();
	    };
	    PollContainterController.prototype._showResultsAndIsDesktop = function () {
	        return this.poll.poll.show_results_page && this.ngPollPlatformServant.environment === 'desktop';
	    };
	    PollContainterController.prototype._updatePoll = function () {
	        return this.updatePollStatusCommand(this.poll.poll);
	    };
	    PollContainterController.prototype._setToPollDefaults = function () {
	        this.models = {
	            activeQuestionId: '',
	            activeQuestion: '',
	            activeQuestionResponse: ''
	        };
	        this.flags = {
	            isFreeTextQuestion: false,
	            isChoiceQuestion: false,
	            isMultipleQuestion: false,
	            isValid: false,
	            showResults: false,
	            isSubmitting: false,
	            showValidationAlert: false
	        };
	    };
	    PollContainterController.prototype._shouldShowResults = function () {
	        if (!!this.poll.is_completed || this.isComplete) {
	            return (this.ngPollResultsQueryModel.resultsPageFlags.hasResources ||
	                this.ngPollResultsQueryModel.resultsPageFlags.showResults);
	        }
	        return false;
	    };
	    return PollContainterController;
	}());
	exports.PollContainterController = PollContainterController;


/***/ }),
/* 197 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ScheduledPollDatastore = /** @class */ (function () {
	    function ScheduledPollDatastore() {
	        this.id = 'scheduled_poll';
	        this.store = [];
	    }
	    ScheduledPollDatastore.prototype.write = function (data) {
	        if (data) {
	            this.store = data.scheduledpoll;
	        }
	        return this;
	    };
	    ScheduledPollDatastore.prototype.initialize = function () {
	        this.store = [];
	        return this;
	    };
	    ScheduledPollDatastore.prototype.read = function () {
	        return this.store;
	    };
	    ScheduledPollDatastore.prototype.report = function (fn) {
	        return fn(this.store);
	    };
	    return ScheduledPollDatastore;
	}());
	exports.ScheduledPollDatastore = ScheduledPollDatastore;


/***/ }),
/* 198 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var PollCapabilityConfiguration = /** @class */ (function () {
	    function PollCapabilityConfiguration() {
	        this._config = {
	            isMobile: false,
	            hasIntakePoll: false,
	            hasFirstTerm: false,
	            intakeOrFirstTermID: '',
	            defaultRoute: ''
	        };
	    }
	    Object.defineProperty(PollCapabilityConfiguration.prototype, "config", {
	        get: function () {
	            return this._config;
	        },
	        set: function (configs) {
	            this._config = tslib_1.__assign(tslib_1.__assign({}, this._config), configs);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    PollCapabilityConfiguration.prototype.setConfig = function (key, value) {
	        this._config[key] = value;
	    };
	    return PollCapabilityConfiguration;
	}());
	exports.PollCapabilityConfiguration = PollCapabilityConfiguration;


/***/ }),
/* 199 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var PollQueryModel = /** @class */ (function () {
	    function PollQueryModel(ngPollAnswerDataStore, ngPollDataStore, ngPollStudentDataStore, ngPollResultsServant) {
	        this.ngPollAnswerDataStore = ngPollAnswerDataStore;
	        this.ngPollDataStore = ngPollDataStore;
	        this.ngPollStudentDataStore = ngPollStudentDataStore;
	        this.ngPollResultsServant = ngPollResultsServant;
	        utility_ts_orm_1.ORM.registerQuery(this, ngPollDataStore, ngPollAnswerDataStore, ngPollStudentDataStore);
	    }
	    PollQueryModel.prototype.getQuestionById = function (questionId) {
	        return this._result.question[questionId];
	    };
	    PollQueryModel.prototype.run = function () {
	        this.result = this.ngPollResultsServant.buildPoll(this.ngPollDataStore.read(), this.ngPollAnswerDataStore.read(), this.ngPollStudentDataStore.read());
	        // TODO: remove next line
	        // send a message to the native header so it can know the dynamic
	        // title of the poll.
	        // @deprecate 12/1/2024 - poll will be re-written in native
	        //
	        window['ess'].send({
	            site: 'native',
	            source: 'header',
	            status: 'success',
	            action: 'update-content',
	            data: {
	                title: this.result.poll.name
	            }
	        });
	        return this;
	    };
	    PollQueryModel.prototype.markPollAsFinished = function () {
	        this._result.is_completed = true;
	    };
	    Object.defineProperty(PollQueryModel.prototype, "isUpdatedPoll", {
	        get: function () {
	            return this._isNewPoll;
	        },
	        set: function (bool) {
	            this._isNewPoll = bool;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(PollQueryModel.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        set: function (result) {
	            this._result = result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(PollQueryModel.prototype, "isOptional", {
	        get: function () {
	            return !this._result.poll.mandatory;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(PollQueryModel.prototype, "isMandatory", {
	        get: function () {
	            return this._result.poll.mandatory;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return PollQueryModel;
	}());
	exports.PollQueryModel = PollQueryModel;


/***/ }),
/* 200 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var PollResultsQueryModel = /** @class */ (function () {
	    function PollResultsQueryModel(ngPollAnswerDataStore, ngPollDataStore, ngPollStudentDataStore, ngPollResultsServant) {
	        this.ngPollAnswerDataStore = ngPollAnswerDataStore;
	        this.ngPollDataStore = ngPollDataStore;
	        this.ngPollStudentDataStore = ngPollStudentDataStore;
	        this.ngPollResultsServant = ngPollResultsServant;
	        utility_ts_orm_1.ORM.registerQuery(this, this.ngPollDataStore, this.ngPollAnswerDataStore);
	        this._result = {};
	        this._resourceIds = [];
	        this._showResults = {
	            hasResources: false,
	            showResults: false
	        };
	    }
	    PollResultsQueryModel.prototype.run = function () {
	        this._result = this.ngPollResultsServant.buildPoll(this.ngPollDataStore.read(), this.ngPollAnswerDataStore.read(), this.ngPollStudentDataStore.read());
	        this._result = this.ngPollResultsServant.reportPollResults(this._result);
	        this._showResults = {
	            hasResources: !_4.isEmpty(this._result.resource),
	            showResults: _4.result(this.ngPollDataStore.read().poll, 'show_results_page', false)
	        };
	        return this;
	    };
	    Object.defineProperty(PollResultsQueryModel.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(PollResultsQueryModel.prototype, "resultsPageFlags", {
	        get: function () {
	            return this._showResults;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(PollResultsQueryModel.prototype, "resourceIds", {
	        get: function () {
	            return this._resourceIds;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return PollResultsQueryModel;
	}());
	exports.PollResultsQueryModel = PollResultsQueryModel;


/***/ }),
/* 201 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var ScheduledPollQuery = /** @class */ (function () {
	    function ScheduledPollQuery(ngScheduledPollDatastore, completeScheduledPollCommand, dismissScheduledPollCommand, $q, ngPollCapabilityConfiguration) {
	        this.ngScheduledPollDatastore = ngScheduledPollDatastore;
	        this.completeScheduledPollCommand = completeScheduledPollCommand;
	        this.dismissScheduledPollCommand = dismissScheduledPollCommand;
	        this.$q = $q;
	        this.ngPollCapabilityConfiguration = ngPollCapabilityConfiguration;
	        utility_ts_orm_1.ORM.registerQuery(this, ngScheduledPollDatastore);
	    }
	    ScheduledPollQuery.prototype.run = function () {
	        this._scheduledPolls = this.ngScheduledPollDatastore.read()[Symbol.iterator]();
	        this._currentScheduledPoll = this._scheduledPolls.next();
	        return this;
	    };
	    Object.defineProperty(ScheduledPollQuery.prototype, "result", {
	        get: function () {
	            return this._scheduledPolls;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ScheduledPollQuery.prototype, "currentScheduledPoll", {
	        get: function () {
	            if (this._currentScheduledPoll.done) {
	                return undefined;
	            }
	            return this._currentScheduledPoll.value.poll_id;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    ScheduledPollQuery.prototype.nextScheduledPoll = function () {
	        this._currentScheduledPoll = this._scheduledPolls.next();
	        if (this._currentScheduledPoll.done) {
	            return undefined;
	        }
	        return this._currentScheduledPoll.value.poll_id;
	    };
	    ScheduledPollQuery.prototype.finishedScheduledPolls = function () {
	        return !!this._currentScheduledPoll.done;
	    };
	    ScheduledPollQuery.prototype.continueScheduledPollsWorkflow = function () {
	        return !this._currentScheduledPoll.done;
	    };
	    ScheduledPollQuery.prototype.hasScheduledPolls = function () {
	        return !this._currentScheduledPoll.done;
	    };
	    ScheduledPollQuery.prototype.isMandatory = function () {
	        if (this._currentScheduledPoll.done) {
	            return false;
	        }
	        return _4.get(this._currentScheduledPoll, 'value.mandatory', false);
	    };
	    ScheduledPollQuery.prototype.isCompleted = function () {
	        if (this._currentScheduledPoll.done) {
	            return true;
	        }
	        return this.isCurrentPollCompleted();
	    };
	    ScheduledPollQuery.prototype.markPollAsFinished = function () {
	        if (this._currentScheduledPoll.done) {
	            return;
	        }
	        this._currentScheduledPoll.value.isCompleted = true;
	    };
	    ScheduledPollQuery.prototype.isShowResult = function () {
	        return this.isCurrentPollCompleted();
	    };
	    ScheduledPollQuery.prototype.isCurrentPollCompleted = function () {
	        return _4.get(this._currentScheduledPoll, 'value.isCompleted', false);
	    };
	    ScheduledPollQuery.prototype.isCurrentPollIntake = function () {
	        return (_4.get(this._currentScheduledPoll, 'value.poll_id', 0) ===
	            _4.toNumber(this.ngPollCapabilityConfiguration.config.intakeOrFirstTermID));
	    };
	    ScheduledPollQuery.prototype.isValidPoll = function () {
	        return !_4.isUndefined(_4.get(this._currentScheduledPoll, 'value.poll_id', undefined));
	    };
	    ScheduledPollQuery.prototype.completeCurrentScheduledPoll = function () {
	        if (this.isValidPoll()) {
	            /*
	             * this is for intake survey edits. It's not a Scheduled
	             * poll, so we only have the NK value and can't mark the
	             * Scheduled version completed.
	             */
	            if (_4.get(this._currentScheduledPoll, 'value.isIntakeOrFirstTerm', false)) {
	                return this.$q.resolve(true);
	            }
	            return this.completeScheduledPollCommand(this._currentScheduledPoll.value.id);
	        }
	        // we resolve a promise regardless to prevent the controllers
	        // from .then / .finally on undefined
	        return this.$q.resolve(true);
	    };
	    ScheduledPollQuery.prototype.dismissCurrentScheduledPoll = function () {
	        if (this.isValidPoll()) {
	            /*
	             * this is for intake survey edits. It's not a Scheduled
	             * poll, so we only have the NK value and can't mark the
	             * Scheduled version completed.
	             */
	            if (_4.get(this._currentScheduledPoll, 'value.isIntakeOrFirstTerm', false)) {
	                return this.$q.resolve(true);
	            }
	            if (this.isCurrentPollCompleted()) {
	                return this.completeCurrentScheduledPoll();
	            }
	            return this.dismissScheduledPollCommand(this._currentScheduledPoll.value.id);
	        }
	        // we resolve a promise regardless to prevent the controllers
	        // from .then / .finally on undefined
	        return this.$q.resolve(true);
	    };
	    return ScheduledPollQuery;
	}());
	exports.ScheduledPollQuery = ScheduledPollQuery;


/***/ }),
/* 202 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var CheckScheduledPollsServant = /** @class */ (function () {
	    function CheckScheduledPollsServant(ngScheduledPollQuery, loadScheduledPollsCommand) {
	        this.ngScheduledPollQuery = ngScheduledPollQuery;
	        this.loadScheduledPollsCommand = loadScheduledPollsCommand;
	        this._route = '';
	        this.query = this.ngScheduledPollQuery;
	    }
	    Object.defineProperty(CheckScheduledPollsServant.prototype, "route", {
	        get: function () {
	            return this._route;
	        },
	        set: function (stateName) {
	            this._route = stateName;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(CheckScheduledPollsServant.prototype, "defaultRoute", {
	        get: function () {
	            return this._defaultRoute;
	        },
	        set: function (stateName) {
	            this._defaultRoute = stateName;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    CheckScheduledPollsServant.prototype.hasScheduledPolls = function () {
	        return this.query.hasScheduledPolls();
	    };
	    CheckScheduledPollsServant.prototype.load = function () {
	        return this.loadScheduledPollsCommand();
	    };
	    return CheckScheduledPollsServant;
	}());
	exports.CheckScheduledPollsServant = CheckScheduledPollsServant;


/***/ }),
/* 203 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var lodash4_1 = __webpack_require__(1);
	// This exists to solve platform specific display issues
	// the scroll portion is for long questions and results on mobile
	// the environment prop is for resources
	var PollPlatformServant = /** @class */ (function () {
	    function PollPlatformServant() {
	        this._scrollDelegate = function () { return false; };
	        this._method = '';
	        this._environment = '';
	    }
	    Object.defineProperty(PollPlatformServant.prototype, "scrollDelegate", {
	        set: function (delegate) {
	            this._scrollDelegate = delegate;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(PollPlatformServant.prototype, "scrollMethod", {
	        set: function (method) {
	            this._method = method;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(PollPlatformServant.prototype, "environment", {
	        get: function () {
	            return this._environment;
	        },
	        set: function (type) {
	            this._environment = type;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    PollPlatformServant.prototype.scroll = function () {
	        if (!lodash4_1.isEmpty(this._scrollDelegate) || !lodash4_1.isEmpty(this._method)) {
	            this._scrollDelegate[this._method]();
	        }
	    };
	    return PollPlatformServant;
	}());
	exports.PollPlatformServant = PollPlatformServant;


/***/ }),
/* 204 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var PollResultsServant = /** @class */ (function () {
	    function PollResultsServant() {
	    }
	    PollResultsServant.prototype.buildQuestions = function (pollPayload, answerPayload) {
	        var questions = pollPayload.question;
	        var choices = pollPayload.choice;
	        var answers = answerPayload.answer;
	        _4.forEach(questions, function (question) {
	            question._active_choices = _4.reduce(question.active_choices, function (choiceList, key) {
	                var choice = choices[key];
	                choice.answered = _4.find(answers, function (answer) { return answer.value === choices[key].nk; });
	                choiceList.push(choice);
	                return choiceList;
	            }, []);
	        });
	        return questions;
	    };
	    PollResultsServant.prototype.buildPoll = function (pollPayload, answerPayload, pollStudentPayload) {
	        var _this = this;
	        if (!_4.result(pollPayload.poll, 'nk')) {
	            pollPayload.poll = _4.first(_4.toArray(pollPayload.poll));
	        }
	        pollPayload.answers = answerPayload.answer;
	        pollPayload.poll = _4.merge(pollPayload.poll, pollStudentPayload);
	        pollPayload.selected_resources =
	            !!pollPayload.selected_resources && pollPayload.selected_resources.length > 0
	                ? pollPayload.selected_resources
	                : [];
	        _4.forEach(pollPayload.poll.answered_questions, function (answeredQuestions) {
	            if (Array.isArray(answeredQuestions.response)) {
	                _4.forEach(answeredQuestions.response, function (res) {
	                    return _this._addResource({
	                        questionID: answeredQuestions.questionID,
	                        response: res
	                    }, pollPayload);
	                });
	            }
	            else {
	                _this._addResource(answeredQuestions, pollPayload);
	            }
	        });
	        return pollPayload;
	    };
	    PollResultsServant.prototype.reportPollResults = function (poll) {
	        var resource = poll.selected_resources;
	        var pollQuestions = poll.question;
	        var question_x_choices = poll.question_x_choice;
	        var lookup = {};
	        _4.forEach(question_x_choices, function (q_x_c) {
	            lookup[q_x_c.question + '_' + q_x_c.choice] = q_x_c.total_answers;
	        });
	        var questions = _4.map(pollQuestions, function (question) {
	            question.total_answers = 0;
	            var answered = [];
	            var unanswered = [];
	            _4.forEach(question._active_choices, function (choice) {
	                if (choice.answered) {
	                    answered.push(choice);
	                }
	                else {
	                    unanswered.push(choice);
	                }
	                choice.total_answers = lookup[question.id + '_' + choice.id] || 0;
	                question.total_answers += choice.total_answers;
	            });
	            _4.forEach(question._active_choices, function (choice) {
	                if (_4.isNumber(choice)) {
	                    return;
	                }
	                choice.answered_percent = Math.floor((choice.total_answers / question.total_answers) * 1000) / 10;
	            });
	            return tslib_1.__assign(tslib_1.__assign({}, question), {
	                answered_active_choices: answered,
	                unanswered_active_choices: unanswered
	            });
	        });
	        return { questions: questions, resource: resource };
	    };
	    PollResultsServant.prototype._addResource = function (response, pollPayload) {
	        var question = response.questionID;
	        var choice = response.response.id;
	        var questionXChoiceXResouseObj = _4.filter(_4.toArray(pollPayload.question_x_choice_x_resource), {
	            question: question,
	            choice: choice
	        });
	        _4.forEach(questionXChoiceXResouseObj, function (qCR) {
	            _4.forEach(qCR.resources, function (resourceId) {
	                if (!_4.find(pollPayload.selected_resources, { id: resourceId })) {
	                    pollPayload.selected_resources.push(pollPayload.resource[resourceId]);
	                }
	            });
	        });
	    };
	    return PollResultsServant;
	}());
	exports.PollResultsServant = PollResultsServant;


/***/ }),
/* 205 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var PriorityFeedCapabilityConfiguration = /** @class */ (function () {
	    function PriorityFeedCapabilityConfiguration() {
	        this._config = {
	            isMobile: false,
	            isReminderEnabled: false,
	            isHoldEnabled: false,
	            isNotificationsEnabled: false,
	            isAppointmentEnabled: false,
	            isStudyGroupEnabled: false,
	            isSelfAlertEnabled: false,
	            isTodosEnabled: false,
	            isStudentFeedbackEnabled: false,
	            isKnowledgeBotEnabled: false,
	            institutionMediaURL: ''
	        };
	    }
	    Object.defineProperty(PriorityFeedCapabilityConfiguration.prototype, "config", {
	        get: function () {
	            return this._config;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    PriorityFeedCapabilityConfiguration.prototype.setConfigs = function (configs) {
	        this._config = tslib_1.__assign(tslib_1.__assign({}, this._config), configs);
	    };
	    PriorityFeedCapabilityConfiguration.prototype.setConfig = function (key, value) {
	        this._config[key] = value;
	    };
	    return PriorityFeedCapabilityConfiguration;
	}());
	exports.PriorityFeedCapabilityConfiguration = PriorityFeedCapabilityConfiguration;


/***/ }),
/* 206 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var Resource = /** @class */ (function () {
	    function Resource(resource) {
	        resource.additionalInformation = resource.additional_info;
	        _4.merge(this, resource);
	    }
	    Resource.build = function (resource) {
	        return new Resource(resource);
	    };
	    return Resource;
	}());
	exports.Resource = Resource;


/***/ }),
/* 207 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ResourceCategory = /** @class */ (function () {
	    function ResourceCategory(category) {
	        _4.merge(this, category);
	    }
	    ResourceCategory.build = function (category) {
	        return new ResourceCategory(category);
	    };
	    return ResourceCategory;
	}());
	exports.ResourceCategory = ResourceCategory;


/***/ }),
/* 208 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ResourceDetailBuilder = /** @class */ (function () {
	    function ResourceDetailBuilder(ngResourceDatastore, ngResourceInfoDatastore, ngResourceLocationDatastore, ngResourceCategoryDatastore, ResourceLinksEnum) {
	        this.ngResourceDatastore = ngResourceDatastore;
	        this.ngResourceInfoDatastore = ngResourceInfoDatastore;
	        this.ngResourceLocationDatastore = ngResourceLocationDatastore;
	        this.ngResourceCategoryDatastore = ngResourceCategoryDatastore;
	        this.ResourceLinksEnum = ResourceLinksEnum;
	    }
	    ResourceDetailBuilder.prototype.buildResourceDetail = function (resource) {
	        var _this = this;
	        var resource_category = _4.first(this.ngResourceCategoryDatastore.query(function (currentCategory) { return currentCategory.id === resource.resource_category; }));
	        var location = _4.first(this.ngResourceLocationDatastore.query(function (currentLocation) { return currentLocation.id === resource.location; }));
	        var resource_detail = _4.map(this.ngResourceInfoDatastore.query(function (currentInfo) { return currentInfo.resource === resource.id; }), function (currentInfo) {
	            var type = _this.ResourceLinksEnum.get(currentInfo.resource_display_type);
	            currentInfo.resource_display_type = _4.isUndefined(type) ? _this.ResourceLinksEnum.GENERIC : type;
	            return currentInfo;
	        });
	        return _4.merge(resource, {
	            resource_category: resource_category,
	            location: location,
	            resource_detail: resource_detail
	        });
	    };
	    return ResourceDetailBuilder;
	}());
	exports.ResourceDetailBuilder = ResourceDetailBuilder;


/***/ }),
/* 209 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ResourceInfo = /** @class */ (function () {
	    function ResourceInfo(detail) {
	        _4.merge(this, detail);
	    }
	    ResourceInfo.build = function (detail) {
	        return new ResourceInfo(detail);
	    };
	    return ResourceInfo;
	}());
	exports.ResourceInfo = ResourceInfo;


/***/ }),
/* 210 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ResourceLocation = /** @class */ (function () {
	    function ResourceLocation(location) {
	        location.value = location.name;
	        _4.merge(this, location);
	    }
	    ResourceLocation.build = function (location) {
	        return new ResourceLocation(location);
	    };
	    return ResourceLocation;
	}());
	exports.ResourceLocation = ResourceLocation;


/***/ }),
/* 211 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var ContactsByRelationQuery = /** @class */ (function () {
	    function ContactsByRelationQuery(ngContactsDatastore) {
	        this.ngContactsDatastore = ngContactsDatastore;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngContactsDatastore);
	    }
	    ContactsByRelationQuery.prototype.run = function () {
	        var contacts = _4.groupBy(this.ngContactsDatastore.values(), function (contact) {
	            return contact.relationship;
	        });
	        var relationships = _4.keys(contacts);
	        this._result = {
	            contacts: contacts,
	            relationships: relationships
	        };
	        return this;
	    };
	    Object.defineProperty(ContactsByRelationQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    ContactsByRelationQuery.prototype.getContactFromGroup = function (group, contactId) {
	        return _4.find(this.result.contacts[group], function (contact) {
	            return contact.id === contactId;
	        });
	    };
	    return ContactsByRelationQuery;
	}());
	exports.ContactsByRelationQuery = ContactsByRelationQuery;


/***/ }),
/* 212 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var ResourceCategoryQuery = /** @class */ (function () {
	    function ResourceCategoryQuery(ngResourceCategoryDatastore) {
	        this.ngResourceCategoryDatastore = ngResourceCategoryDatastore;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngResourceCategoryDatastore);
	    }
	    ResourceCategoryQuery.prototype.run = function () {
	        this._result = _4.sortBy(this.ngResourceCategoryDatastore.values(), function (cat) {
	            return cat.name.toLowerCase();
	        });
	        return this;
	    };
	    Object.defineProperty(ResourceCategoryQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return ResourceCategoryQuery;
	}());
	exports.ResourceCategoryQuery = ResourceCategoryQuery;


/***/ }),
/* 213 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var ResourceListQuery = /** @class */ (function () {
	    function ResourceListQuery(ngResourceDatastore, ngResourceInfoDatastore, ngResourceLocationDatastore, ngResourceCategoryDatastore, ngResourceDetailBuilder) {
	        this.ngResourceDatastore = ngResourceDatastore;
	        this.ngResourceInfoDatastore = ngResourceInfoDatastore;
	        this.ngResourceLocationDatastore = ngResourceLocationDatastore;
	        this.ngResourceCategoryDatastore = ngResourceCategoryDatastore;
	        this.ngResourceDetailBuilder = ngResourceDetailBuilder;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngResourceDatastore, this.ngResourceInfoDatastore, this.ngResourceLocationDatastore, this.ngResourceCategoryDatastore);
	    }
	    ResourceListQuery.prototype.run = function () {
	        var _this = this;
	        var resources = this.ngResourceDatastore.values();
	        this._result = _4.map(resources, function (resource) {
	            return _this.ngResourceDetailBuilder.buildResourceDetail(resource);
	        });
	        return this;
	    };
	    Object.defineProperty(ResourceListQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return ResourceListQuery;
	}());
	exports.ResourceListQuery = ResourceListQuery;


/***/ }),
/* 214 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ResourceListServant = /** @class */ (function () {
	    function ResourceListServant(ngResourceListQuery) {
	        this.ngResourceListQuery = ngResourceListQuery;
	    }
	    ResourceListServant.prototype.getResourceForCategory = function (id) {
	        return _4.sortBy(_4.filter(this.ngResourceListQuery.result, function (resourceDetail) { return resourceDetail.resource_category.id === id; }), function (detail) { return detail.name.toLowerCase(); });
	    };
	    ResourceListServant.prototype.getResource = function (id) {
	        return _4.find(this.ngResourceListQuery.result, function (resourceDetail) { return resourceDetail.id === id; });
	    };
	    ResourceListServant.prototype.getFavoriteResources = function () {
	        return _4.filter(this.ngResourceListQuery.result, function (resourceDetail) {
	            return _4.isNumber(resourceDetail.favorite_id);
	        });
	    };
	    return ResourceListServant;
	}());
	exports.ResourceListServant = ResourceListServant;


/***/ }),
/* 215 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ContactListService = /** @class */ (function () {
	    function ContactListService(ngContactsByRelationQuery, loadContactsCommand, accountModel) {
	        this.ngContactsByRelationQuery = ngContactsByRelationQuery;
	        this.loadContactsCommand = loadContactsCommand;
	        this.accountModel = accountModel;
	        this._activeRelationship = '';
	        this._activeContacts = [];
	        this._isContactLoading = false;
	    }
	    Object.defineProperty(ContactListService.prototype, "activeRelationship", {
	        get: function () {
	            return this._activeRelationship;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ContactListService.prototype, "activeContacts", {
	        get: function () {
	            return this._activeContacts;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ContactListService.prototype, "isContactLoading", {
	        get: function () {
	            return this._isContactLoading;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    ContactListService.prototype.loadContacts = function (relationship) {
	        var _this = this;
	        this._isContactLoading = true;
	        this.loadContactsCommand(this.accountModel.student_nk)
	            .then(function () {
	            var activeRelation = !_4.isEmpty(relationship)
	                ? relationship
	                : _4.first(_this.ngContactsByRelationQuery.result.relationships);
	            _this.activateRelationship(activeRelation);
	            _this._isContactLoading = false;
	        })
	            .catch(function () {
	            _this._isContactLoading = false;
	        });
	    };
	    ContactListService.prototype.activateRelationship = function (relationship) {
	        this._activeRelationship = relationship;
	        this._activeContacts = _4.get(this.ngContactsByRelationQuery.result.contacts, relationship, []);
	    };
	    return ContactListService;
	}());
	exports.ContactListService = ContactListService;


/***/ }),
/* 216 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ContactsService = /** @class */ (function () {
	    function ContactsService() {
	        // tslint:disable-next-line:no-empty
	        this._mobileScrollDelegate = function () { };
	    }
	    ContactsService.prototype.createInitials = function (contact) {
	        if (_4.isEmpty(contact.first_name) || _4.isEmpty(contact.last_name)) {
	            return '--';
	        }
	        return _4
	            .map(_4.words(contact.first_name + " " + contact.last_name), function (word) {
	            return _4.capitalize(word)[0];
	        })
	            .join('')
	            .slice(0, 3);
	    };
	    ContactsService.prototype.relationshipText = function (contact) {
	        if (_4.isEmpty(contact.courses)) {
	            return contact.relationship;
	        }
	        return this.getCourseString(contact);
	    };
	    ContactsService.prototype.getCourseString = function (contact) {
	        if (_4.isEmpty(contact)) {
	            return '';
	        }
	        return _4
	            .reduce(contact.courses, function (arr, course) {
	            arr.push(course.code);
	            return arr;
	        }, [])
	            .join(', ');
	    };
	    ContactsService.prototype.setMobileScrollDecorator = function (scrollDelegate) {
	        this._mobileScrollDelegate = scrollDelegate;
	    };
	    ContactsService.prototype.callMobileScrollDecorator = function () {
	        _4.result(this._mobileScrollDelegate, 'resize');
	    };
	    return ContactsService;
	}());
	exports.ContactsService = ContactsService;


/***/ }),
/* 217 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var ContactToggleService = /** @class */ (function () {
	    function ContactToggleService() {
	        this.flags = {
	            appointmentScheduling: false
	        };
	    }
	    Object.defineProperty(ContactToggleService.prototype, "toggles", {
	        get: function () {
	            return this.flags;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    ContactToggleService.prototype.setToggles = function (flagValues) {
	        this.flags = tslib_1.__assign(tslib_1.__assign({}, this.flags), flagValues);
	    };
	    ContactToggleService.prototype.setToggle = function (key, value) {
	        if (_4.has(this.flags, key)) {
	            this.flags[key] = value;
	        }
	    };
	    return ContactToggleService;
	}());
	exports.ContactToggleService = ContactToggleService;


/***/ }),
/* 218 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	function ResourceTabEnum($state, appConfigModel, FEATURE_CONNECT, FEATURE_RESOURCES) {
	    var TABS = {
	        PLACES: {
	            tabOrder: 0,
	            displayName: 'Places',
	            state: 'my.resources.places',
	            href: '/my/resources/places',
	            view: '',
	            isActive: function () {
	                return $state.current.name === 'my.resources.places';
	            },
	            isVisible: function () { return appConfigModel.isFeatureEnabled(FEATURE_RESOURCES); }
	        },
	        PEOPLE: {
	            tabOrder: 1,
	            displayName: 'People',
	            state: 'my.resources.people',
	            href: '/my/resources/people',
	            view: '',
	            isActive: function () {
	                return $state.current.name === 'my.resources.people';
	            },
	            isVisible: function () { return appConfigModel.isFeatureEnabled(FEATURE_CONNECT); }
	        }
	    };
	    var VISIBLE_TABS = _4.pickBy(TABS, function (tab) { return tab.isVisible(); });
	    return Enumeration.useDefinitionAsEnum(VISIBLE_TABS);
	}
	exports.ResourceTabEnum = ResourceTabEnum;


/***/ }),
/* 219 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var moment = __webpack_require__(2);
	var TimelineServant = /** @class */ (function () {
	    function TimelineServant() {
	    }
	    TimelineServant.prototype.getTimelineBlock = function (params) {
	        var isPreview = params.section.status === 'PREVIEW';
	        var hasDuplicateSectionTitle = _4.filter(params.timeblockResults, { title: _4.get(params.section, '_course.cd', '') }).length > 0;
	        var timeblock = {
	            title: hasDuplicateSectionTitle ? '' : _4.get(params.section, '_course.cd', ''),
	            headerId: "month-" + moment(params.section.class_start_dt).month(),
	            isAcceleratedSection: false,
	            color: params.timeblockColor,
	            isRegistered: params.isRegistered,
	            isPreview: isPreview,
	            isShortSection: params.isShortSection,
	            isOnline: params.isOnline,
	            blocks: params.blocks,
	            section: params.section
	        };
	        return timeblock;
	    };
	    TimelineServant.prototype.trimTrailingComma = function (value) {
	        return _4.trimEnd(value, ', ');
	    };
	    TimelineServant.prototype.getHeaders = function (range) {
	        return _4.map(range, function (item, index) {
	            var isFirstIndex = index === 0;
	            var isLastIndex = index === range.length - 1;
	            return {
	                title: moment(item).format('MMMM'),
	                id: "month-" + moment(item).month(),
	                start: isFirstIndex ? moment(item).startOf('week').unix() : moment(item).startOf('month').unix(),
	                end: isLastIndex ? moment(item).endOf('week').unix() : moment(item).endOf('month').unix()
	            };
	        });
	    };
	    TimelineServant.prototype.getEarliestDate = function (dates) {
	        var filteredDates = _4.filter(dates, function (date) { return !_4.isUndefined(date); });
	        return _4.first(_4.sortBy(_4.map(filteredDates, function (str) { return moment(str, 'YYYY-MM-DD'); }), function (a) { return a.unix(); }));
	    };
	    TimelineServant.prototype.getLatestDate = function (dates) {
	        var filteredDates = _4.filter(dates, function (date) { return !_4.isUndefined(date); });
	        return _4.last(_4.sortBy(_4.map(filteredDates, function (str) { return moment(str, 'YYYY-MM-DD'); }), function (a) { return a.unix(); }));
	    };
	    TimelineServant.getTimelineDateRange = function (termInfo, _fromDate, _toDate) {
	        return {
	            fromDate: _4.max([moment(_4.get(termInfo, 'term_start_dt')), moment(_fromDate)]).format('YYYY-MM-DD'),
	            toDate: _4.min([moment(_4.get(termInfo, 'term_end_dt')), moment(_toDate)]).format('YYYY-MM-DD')
	        };
	    };
	    TimelineServant.prototype.getMultipleMeetingTimes = function (section, termInfo) {
	        var _this = this;
	        var blocks = [];
	        var sectionTimes = _4.get(section, '_section_times', []);
	        var hasMultipleSectionTimes = sectionTimes.length > 0;
	        var hasSingleSectionTime = !hasMultipleSectionTimes;
	        if (!_4.get(section, '_section_times')) {
	            return blocks;
	        }
	        _4.each(section._section_times, function (sectionTime) {
	            var _a = TimelineServant.getTimelineDateRange(termInfo, _4.get(sectionTime, 'from_dt') || section.class_start_dt, _4.get(sectionTime, 'to_dt') || section.class_end_dt), fromDate = _a.fromDate, toDate = _a.toDate;
	            var hasFromToDates = fromDate && toDate;
	            if (hasFromToDates) {
	                blocks.push(_this.__getBlock(section, fromDate, toDate));
	            }
	        });
	        if (hasSingleSectionTime) {
	            var _a = TimelineServant.getTimelineDateRange(termInfo, section.class_start_dt, section.class_end_dt), fromDate = _a.fromDate, toDate = _a.toDate;
	            blocks.push(this.__getBlock(section, fromDate, toDate));
	        }
	        return blocks;
	    };
	    TimelineServant.prototype.__isFewDays = function (fromDate, toDate) {
	        return moment(toDate).diff(moment(fromDate), 'days') < 3;
	    };
	    TimelineServant.prototype.__getBlockTitle = function (section, dateFormat) {
	        if (dateFormat === void 0) { dateFormat = 'MMM DD'; }
	        var prefix = '';
	        var sectionName = '';
	        var sectionType = _4.get(section, '_section_type');
	        var hasSectionType = !_4.isEmpty(sectionType);
	        var returnString = '';
	        if (hasSectionType) {
	            sectionName = _4.lowerCase("" + section._section_type.name);
	            prefix = _4.startCase(sectionName) + " - ";
	        }
	        returnString = "" + prefix + moment(section['class_start_dt']).format(dateFormat) + " - " + moment(section['class_end_dt']).format(dateFormat);
	        return returnString;
	    };
	    TimelineServant.prototype.__getBlock = function (section, fromDate, toDate) {
	        var justifyContent = this.__isFewDays(fromDate, toDate) ? 'center' : '';
	        return {
	            displayText: this.__isFewDays(fromDate, toDate) ? '' : this.__getBlockTitle(section),
	            description: this.__getBlockTitle(section, 'MMM DD, YYYY'),
	            start: moment(fromDate).startOf('day').unix(),
	            end: moment(toDate).endOf('day').unix(),
	            startDate: fromDate,
	            endDate: toDate,
	            justifyContent: justifyContent
	        };
	    };
	    TimelineServant.prototype.sectionTimesDifferentFromTerm = function (section, termStart, termEnd, footer) {
	        var _this = this;
	        var timelineFooter = footer;
	        _4.each(section._section_times, function (sectionTime) {
	            var sectionFromDate = _4.get(sectionTime, 'from_dt', '');
	            var sectionToDate = _4.get(sectionTime, 'to_dt', '');
	            var isFewDays = _this.__isFewDays(sectionFromDate, sectionToDate);
	            if (sectionFromDate && sectionFromDate !== termStart) {
	                timelineFooter.push({
	                    start: moment(_4.get(sectionTime, 'from_dt')).startOf('day').unix(),
	                    date: sectionTime.from_dt || '',
	                    title: ''
	                });
	            }
	            if (!isFewDays && sectionToDate && sectionToDate !== termEnd) {
	                timelineFooter.push({
	                    start: moment(_4.get(sectionTime, 'to_dt')).endOf('day').unix(),
	                    date: sectionTime.to_dt || '',
	                    title: ''
	                });
	            }
	        });
	        return timelineFooter;
	    };
	    TimelineServant.prototype.sectionDifferentFromTermStartEnd = function (section, termStart, termEnd, footer) {
	        var timelineFooter = footer;
	        if (section.class_start_dt !== termStart) {
	            timelineFooter.push({
	                start: moment(section.class_start_dt).startOf('day').unix(),
	                date: section.class_start_dt,
	                title: ''
	            });
	        }
	        if (section.class_end_dt !== termEnd) {
	            timelineFooter.push({
	                start: moment(section.class_end_dt).endOf('day').unix(),
	                date: section.class_end_dt,
	                title: ''
	            });
	        }
	        return timelineFooter;
	    };
	    TimelineServant.prototype.getFooters = function (sections, termStart, termEnd) {
	        var _this = this;
	        var footer = [];
	        _4.each(sections, function (section) {
	            var hasMultipleSectionTimes = _4.get(section, '_section_times');
	            if (hasMultipleSectionTimes) {
	                footer = _this.sectionTimesDifferentFromTerm(section, termStart, termEnd, footer);
	            }
	            else {
	                footer = _this.sectionDifferentFromTermStartEnd(section, termStart, termEnd, footer);
	            }
	        });
	        footer = _4.sortBy(footer, 'start');
	        if (!_4.isUndefined(footer[0])) {
	            footer[0].title = 'Schedule Change';
	        }
	        return footer;
	    };
	    TimelineServant.prototype.prependBlockCount = function (blocks) {
	        var _this = this;
	        blocks = _4.sortBy(blocks, 'start');
	        _4.each(blocks, function (block) {
	            _4.each(block.blocks, function (timelineBlock, index) {
	                var numberOfBlocks = block.blocks.length;
	                var isFewDays = _this.__isFewDays(timelineBlock.startDate, timelineBlock.endDate);
	                if (isFewDays) {
	                    return;
	                }
	                timelineBlock.displayText =
	                    numberOfBlocks > 1 ? index + 1 + ": " + timelineBlock.displayText : timelineBlock.displayText;
	            });
	        });
	        return blocks;
	    };
	    TimelineServant.prototype.getUniqueDates = function (blocks) {
	        _4.each(blocks, function (block) {
	            block.blocks = _4.uniqWith(block.blocks, function (blockA, blockB) {
	                return blockA.start === blockB.start && blockA.end === blockB.end;
	            });
	        });
	        return blocks;
	    };
	    TimelineServant.prototype.sortBySectionStartDate = function (blocks) {
	        _4.each(blocks, function (block) {
	            block.blocks = _4.sortBy(block.blocks, 'start');
	        });
	        return blocks;
	    };
	    return TimelineServant;
	}());
	exports.TimelineServant = TimelineServant;


/***/ }),
/* 220 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var RegistrationAttributesServant = /** @class */ (function () {
	    function RegistrationAttributesServant() {
	    }
	    RegistrationAttributesServant.formRegAttributeApiParamFromFormOutput = function (formOutput) {
	        var differentSectionParams = {};
	        for (var key in formOutput) {
	            var sectionIdSeparatorIndex = key.lastIndexOf(RegistrationAttributesServant.sectionSeperatorChar);
	            var sectionId = key.slice(sectionIdSeparatorIndex + 1, key.length);
	            var paramKey = key.slice(0, sectionIdSeparatorIndex);
	            if (!differentSectionParams[sectionId]) {
	                differentSectionParams[sectionId] = {};
	            }
	            differentSectionParams[sectionId][paramKey] = formOutput[key];
	        }
	        if (_4.isEmpty(differentSectionParams)) {
	            return {};
	        }
	        return {
	            auxiliary_attributes_by_section: differentSectionParams
	        };
	    };
	    RegistrationAttributesServant.sectionSeperatorChar = '_';
	    return RegistrationAttributesServant;
	}());
	exports.RegistrationAttributesServant = RegistrationAttributesServant;


/***/ }),
/* 221 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	exports.SwapErrorStrategy = new utility_ts_strategy_1.Strategy({
	    same_section: {
	        text: 'The same section cannot be selected for swap'
	    }
	});
	exports.SwapTypeStrategy = new utility_ts_strategy_1.Strategy({
	    from: 'Selected for swap',
	    to: 'New time selected'
	});


/***/ }),
/* 222 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var WaitlistStatus = /** @class */ (function () {
	    function WaitlistStatus(waitlistStatus) {
	        _4.merge(this, waitlistStatus);
	        return this;
	    }
	    WaitlistStatus.build = function (waitlistStatus) {
	        return new WaitlistStatus(waitlistStatus);
	    };
	    return WaitlistStatus;
	}());
	exports.WaitlistStatus = WaitlistStatus;


/***/ }),
/* 223 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var transient_access_cred_constants_1 = __webpack_require__(26);
	var term_course_servant_1 = __webpack_require__(14);
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	var section_tile_menu_enum_1 = __webpack_require__(60);
	var _4 = __webpack_require__(1);
	var utility_ts_strategy_1 = __webpack_require__(6);
	var ScheduledSectionMenu = /** @class */ (function () {
	    function ScheduledSectionMenu(ngScheduledSectionStatusServant, ngTermCourseServant, ngTermScheduleFlags, getTermPinCommand, ngUnscheduleSectionFacade, saveSwapFromSectionCommand, saveTermPinCommand, $stateParams, $state, $modal, $scope, ngMultiSectionServant, ngScheduledSectionServant, ngCrossCourseLinkedSectionServant, ngSectionInfoServant, ngSectionSwapServant, ngDropCourseFacade, ngAllSectionsQuery, ngSchedulerCustomTextQuery, ngPreventTransientAccessQuery, updateTransientAccessCredWorkflowCommand, ngComponentCommunicatorService, ngRefreshSeatAvailabilityFacade, ngRegisteredSectionServant) {
	        var _this = this;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.ngTermCourseServant = ngTermCourseServant;
	        this.ngTermScheduleFlags = ngTermScheduleFlags;
	        this.getTermPinCommand = getTermPinCommand;
	        this.ngUnscheduleSectionFacade = ngUnscheduleSectionFacade;
	        this.saveSwapFromSectionCommand = saveSwapFromSectionCommand;
	        this.saveTermPinCommand = saveTermPinCommand;
	        this.$stateParams = $stateParams;
	        this.$state = $state;
	        this.$modal = $modal;
	        this.$scope = $scope;
	        this.ngMultiSectionServant = ngMultiSectionServant;
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.ngCrossCourseLinkedSectionServant = ngCrossCourseLinkedSectionServant;
	        this.ngSectionInfoServant = ngSectionInfoServant;
	        this.ngSectionSwapServant = ngSectionSwapServant;
	        this.ngDropCourseFacade = ngDropCourseFacade;
	        this.ngAllSectionsQuery = ngAllSectionsQuery;
	        this.ngSchedulerCustomTextQuery = ngSchedulerCustomTextQuery;
	        this.ngPreventTransientAccessQuery = ngPreventTransientAccessQuery;
	        this.updateTransientAccessCredWorkflowCommand = updateTransientAccessCredWorkflowCommand;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngRefreshSeatAvailabilityFacade = ngRefreshSeatAvailabilityFacade;
	        this.ngRegisteredSectionServant = ngRegisteredSectionServant;
	        this.label = '';
	        this.swapMode = false;
	        this.swapFeatureEnabled = false;
	        this.sectionPins = {};
	        this.crossCourseLinkedSectionIds = [];
	        this.registeredEnforcedCoreqs = [];
	        this.totalCoursesToDropCount = 0;
	        this.isPermissionPinsFeatureEnabled = false;
	        this.shouldShowSwapOptions = false;
	        this.showDropCourseLabel = false;
	        this.showDropCoreqMenuOption = false;
	        this.courseCoreqLinkedSections = [];
	        this.closeModalBound = this.closeModal.bind(this);
	        this.__menuItemStrategy = new utility_ts_strategy_1.Strategy({
	            refresh_seat_availability: function () { return _this.ngRefreshSeatAvailabilityFacade.refreshSeats(_this.section.id); },
	            unschedule_course: function () { return _this.ngUnscheduleSectionFacade.unschedule(_this.section); },
	            swap_section: function () {
	                return _this.saveSwapFromSectionCommand(_this.section).then(function () {
	                    return _this.ngSectionSwapServant.gotoSwapSectionMode(_this.section);
	                });
	            },
	            swap_course: function () {
	                return _this.saveSwapFromSectionCommand(_this.section).then(function () {
	                    return _this.ngSectionSwapServant.gotoSwapCourseMode(_this.section._course);
	                });
	            },
	            withdraw_course: function () { return _this.$state.go('my.schedule.registration.withdraw', { sectionId: _this.section.id }); },
	            reschedule: function () { return _this.__onRescheduleMenuItemSelected(); },
	            drop_course: function () {
	                return _this.dropUnscheduleAllPrompt({ id: section_tile_menu_enum_1.SectionTileMenuEnum.DROP_COURSE, text: "Drop " + _this.menuOptionTitle() });
	            },
	            drop_enforced_coreqs: function () {
	                return _this.dropUnscheduleAllPrompt({
	                    id: section_tile_menu_enum_1.SectionTileMenuEnum.DROP_ENFORCED_COREQS,
	                    text: "Drop " + _this.menuOptionTitle()
	                });
	            },
	            drop_sections: function () {
	                return _this.dropUnscheduleAllPrompt({ id: section_tile_menu_enum_1.SectionTileMenuEnum.DROP_SECTIONS, text: "Drop " + _this.menuOptionTitle() });
	            },
	            unschedule_sections: function () {
	                return _this.dropUnscheduleAllPrompt({
	                    id: section_tile_menu_enum_1.SectionTileMenuEnum.UNSCHEDULE_SECTIONS,
	                    text: "Unschedule " + _this.menuOptionTitle()
	                });
	            },
	            remove_waitlist: function () {
	                return _this.dropUnscheduleAllPrompt({ id: section_tile_menu_enum_1.SectionTileMenuEnum.REMOVE_WAITLIST, text: "Remove from waitlist" });
	            }
	        });
	    }
	    /* TODO: Refactor reduce complexity */
	    /* tslint:disable */
	    ScheduledSectionMenu.prototype.initialize = function () {
	        /*
	          Disable menu if section cannot be registered
	          Hide the menu for sections that are Completed/InProgress.
	        */
	        var _this = this;
	        this.showScheduledSectionMenu = true;
	        this.isRegisteredInProgressNotDroppable = this.getIsRegisteredInProgressNotDroppable();
	        this.isWaitlistedNotDroppable = this.getIsWaitlistNotDroppable();
	        this.isRegisteredRTRSchool = this.getIsRegisteredRTRSchool();
	        this.showScheduledSectionMenu = this.determineShowScheduledSectionMenu();
	        this.registeredEnforcedCoreqs = this.ngScheduledSectionStatusServant.isCoreqEnforcementEnabled()
	            ? this.ngScheduledSectionServant.getRegisteredCoreqsRelated(this.section, this.ngAllSectionsQuery.result)
	            : [];
	        // If dropping a course coreq, also drop linked sections as well
	        _4.each(this.registeredEnforcedCoreqs, function (coreq) {
	            var sectionCoreqs = _this.ngCrossCourseLinkedSectionServant.getSectionIdOfLinkedCrossCourses(coreq.id, _this.ngAllSectionsQuery.result);
	            _this.courseCoreqLinkedSections = _4.uniq(_4.concat(_this.courseCoreqLinkedSections, sectionCoreqs));
	        });
	        // Check if has linked sections
	        this.crossCourseLinkedSectionIds = this.ngCrossCourseLinkedSectionServant.getSectionIdOfLinkedCrossCourses(this.section.id, this.ngAllSectionsQuery.result);
	        this.crossCourseLinkedSectionIds = _4.uniq(_4.concat(this.crossCourseLinkedSectionIds, this.courseCoreqLinkedSections));
	        this.registeredInProgressLinkedSections = _4.filter(this.ngCrossCourseLinkedSectionServant.getSectionsByIds(this.crossCourseLinkedSectionIds, this.ngAllSectionsQuery.result), function (section) {
	            return section.status === scheduled_section_status_enum_1.ScheduledSectionStatus.REGISTERED || section.status === scheduled_section_status_enum_1.ScheduledSectionStatus.IN_PROGRESS;
	        });
	        this.linkedCourseIds = _4.uniq(_4.map(this.registeredInProgressLinkedSections, 'course'));
	        this.hasEnforcedRegisteredInProgressCoreqsRelated =
	            this.ngScheduledSectionStatusServant.isCoreqEnforcementEnabled() && _4.size(this.registeredEnforcedCoreqs) > 0;
	        this.swapMode = this.ngSectionSwapServant.isInSwapMode();
	        this.swapFeatureEnabled = this.ngSectionSwapServant.isSwapFeatureEnabled();
	        this.isPermissionPinsFeatureEnabled = this.ngSectionSwapServant.isPermissionPinsFeatureEnabled();
	        this.shouldShowSwapOptions =
	            this.swapFeatureEnabled &&
	                this.ngScheduledSectionStatusServant.isDroppable(this.section) &&
	                this.ngScheduledSectionServant.isSectionRegistered(this.section);
	        this.showDropCoreqMenuOption =
	            this.ngScheduledSectionServant.isSectionRegistered(this.section) &&
	                (this.hasEnforcedRegisteredInProgressCoreqsRelated || !_4.isEmpty(this.linkedCourseIds));
	        var courseIdsToDrop = _4.uniq(_4.concat(this.linkedCourseIds, _4.map(this.registeredEnforcedCoreqs, 'course'), [this.section.course]));
	        this.totalCoursesToDropCount = courseIdsToDrop.length;
	        this.buildScheduledSectionMenu();
	        this.calendarSchedulerSectionButton = this.getCalendarScheduledSectionButton();
	        this.resetTransientCredWorkflow();
	    };
	    ScheduledSectionMenu.prototype.getIsRegisteredInProgressNotDroppable = function () {
	        return (this.ngScheduledSectionServant.isSectionRegistered(this.section) &&
	            (!this.ngScheduledSectionStatusServant.isDroppable(this.section) ||
	                !this.ngScheduledSectionStatusServant.hasDropDates(this.section)));
	    };
	    ScheduledSectionMenu.prototype.getIsWaitlistNotDroppable = function () {
	        return (this.ngScheduledSectionStatusServant.isStatusWaitlisted(this.section) &&
	            !this.ngScheduledSectionStatusServant.isDroppable(this.section));
	    };
	    ScheduledSectionMenu.prototype.getIsRegisteredRTRSchool = function () {
	        return (this.ngScheduledSectionServant.isSectionRegistered(this.section) &&
	            !this.ngTermScheduleFlags.isOneClickRegistrationEnabled());
	    };
	    ScheduledSectionMenu.prototype.determineShowScheduledSectionMenu = function () {
	        var canScheduleAgain = _4.get(this.section, 'is_repeatable', false);
	        var canWithdraw = this.ngScheduledSectionStatusServant.canWithdraw(this.section);
	        var isSectionWithdrawn = this.ngScheduledSectionServant.isSectionWithdrawn(this.section);
	        var isSectionRegisteredInProgressAndImmutable = this.isRegisteredInProgressNotDroppable && !canScheduleAgain && !canWithdraw;
	        this.isMenuDisabled =
	            isSectionRegisteredInProgressAndImmutable ||
	                this.isWaitlistedNotDroppable ||
	                this.ngScheduledSectionStatusServant.isStatusPending(this.section);
	        var isSectionCompletedAndImmutable = this.ngScheduledSectionStatusServant.isStatusCompleted(this.section) && !canScheduleAgain && !canWithdraw;
	        var shouldHideMenu = isSectionCompletedAndImmutable ||
	            isSectionRegisteredInProgressAndImmutable ||
	            this.isRegisteredRTRSchool ||
	            isSectionWithdrawn ||
	            this.isMenuDisabled;
	        return !shouldHideMenu;
	    };
	    ScheduledSectionMenu.prototype.$onInit = function () {
	        this.initialize();
	    };
	    ScheduledSectionMenu.prototype.$onDestroy = function () {
	        this.resetTransientCredWorkflow();
	    };
	    ScheduledSectionMenu.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    ScheduledSectionMenu.prototype.getSectionLabel = function (section) {
	        return this.ngSectionInfoServant.getSectionLabel(section);
	    };
	    ScheduledSectionMenu.prototype.resetTransientCredWorkflow = function () {
	        this.updateTransientAccessCredWorkflowCommand({
	            enabled: true
	        });
	    };
	    ScheduledSectionMenu.prototype.disableTransientCredWorkflow = function () {
	        this.updateTransientAccessCredWorkflowCommand({
	            enabled: false
	        });
	    };
	    // Drop Confirmation Modal.
	    /* tslint:disable:cyclomatic-complexity */
	    /* tslint:disable:cognitive-complexity */
	    ScheduledSectionMenu.prototype.dropUnscheduleAllPrompt = function (action) {
	        var _this = this;
	        var sectionType = '';
	        var enforced_coreq_registered_in_progress_sections_message = "";
	        var dropButtonLabel = "Drop Course";
	        this.showDropCourseLabel = false;
	        dropButtonLabel = this.totalCoursesToDropCount > 1 ? "Drop " + this.totalCoursesToDropCount + " Courses" : "Drop Course";
	        this.resetTransientCredWorkflow();
	        if (term_course_servant_1.TermCourseServant.isMultiSectionCourse(this.section._course)) {
	            sectionType = "(" + this.section._section_type.name + ")";
	        }
	        // FIXME: Use strategy pattern
	        if (action.id === section_tile_menu_enum_1.SectionTileMenuEnum.DROP_COURSE) {
	            this.showDropCourseLabel = true;
	            this.modalTitle = "Drop Course";
	            this.modalButtonText = "" + dropButtonLabel;
	        }
	        if (action.id === section_tile_menu_enum_1.SectionTileMenuEnum.DROP_ENFORCED_COREQS) {
	            dropButtonLabel = "Drop " + this.totalCoursesToDropCount + " course" + (this.totalCoursesToDropCount > 1 ? 's' : '');
	            this.showDropCourseLabel = true;
	            this.modalTitle = "Drop Course and Corequisites";
	            this.modalButtonText = "" + dropButtonLabel;
	        }
	        if (action.id === section_tile_menu_enum_1.SectionTileMenuEnum.DROP_SECTIONS) {
	            this.modalTitle = "Drop Course";
	            this.modalBody = "All enrolled sections for <strong class=\"text-bold\"> " + this.section._course.cd + " " + this.section._course.title + "</strong> will be dropped.";
	            this.modalButtonText = "" + dropButtonLabel;
	        }
	        if (action.id === section_tile_menu_enum_1.SectionTileMenuEnum.UNSCHEDULE_SECTIONS) {
	            this.isPermissionPinsFeatureEnabled = false;
	            this.modalTitle = "Are you sure you want to unschedule all sections?";
	            this.modalBody = "All scheduled sections for <strong class=\"text-bold\"> " + this.section._course.cd + " " + this.section._course.title + "</strong> will be unscheduled:";
	            this.modalButtonText = "Unschedule Course";
	            this.disableTransientCredWorkflow();
	        }
	        if (action.id === section_tile_menu_enum_1.SectionTileMenuEnum.REMOVE_WAITLIST) {
	            this.modalTitle = "Remove from Waitlist";
	            this.modalBody = "<p>Are you sure you want to remove yourself from the waitlist for the following course?</p><strong class=\"text-bold\"> " + this.section._course.cd + " " + this.section._course.title + " " + sectionType + "</strong>";
	            this.modalButtonText = "Remove From Waitlist";
	        }
	        this.$scope.$ctrl = this;
	        this.$scope.action = action;
	        // FIXME: Use route based Modal.
	        this.dropCourseModal = this.$modal({
	            title: this.modalTitle,
	            content: this.modalBody,
	            template: 'capability-ng-scheduler/src/views/course_scheduler/components/scheduled_section_menu/drop_unschedule_confirmation.html',
	            scope: this.$scope,
	            backdrop: 'static',
	            show: false,
	            html: true,
	            disableAutoFocus: true
	        });
	        this.getTermPinCommand(this.$stateParams.termId).then(function () {
	            _this.dropCourseModal.$promise.then(function () {
	                _this.dropCourseBound = _this.dropCourse.bind(_this, action);
	                _this.ngComponentCommunicatorService.subscribe(transient_access_cred_constants_1.TransientAccessCredEventNames.NEW_CRED_SAVED, _this.dropCourseBound);
	                _this.ngComponentCommunicatorService.subscribe(transient_access_cred_constants_1.TransientAccessCredEventNames.CRED_FORM_ENTRY_CANCELLED, _this.closeModalBound);
	                _this.dropCourseModal.show();
	            });
	        });
	    };
	    ScheduledSectionMenu.prototype.closeModal = function () {
	        this.dropCourseModal.hide();
	        this.ngComponentCommunicatorService.release(transient_access_cred_constants_1.TransientAccessCredEventNames.NEW_CRED_SAVED, this.dropCourseBound);
	        this.ngComponentCommunicatorService.release(transient_access_cred_constants_1.TransientAccessCredEventNames.CRED_FORM_ENTRY_CANCELLED, this.closeModalBound);
	        this.resetTransientCredWorkflow();
	        this.sectionPins = {};
	    };
	    ScheduledSectionMenu.prototype.onPinValueChanged = function (event) {
	        var _this = this;
	        var pin = event.detail.value;
	        var isMultiSection = term_course_servant_1.TermCourseServant.isMultiSectionCourse(this.section._course);
	        if (isMultiSection) {
	            var relatedSectionsIds = _4.compact(_4.map(this.ngMultiSectionServant.getScheduledSiblingSections(this.section), 'id'));
	            _4.forEach(relatedSectionsIds, function (sectionId) {
	                _this.sectionPins[sectionId] = pin;
	            });
	        }
	        else {
	            this.sectionPins[this.section.id] = pin;
	        }
	    };
	    ScheduledSectionMenu.prototype.buildScheduledSectionMenu = function () {
	        this.menuId = _4.uniqueId('course-dropdown-menu-');
	        this.scheduledSectionMenuSettings = {
	            subtitle: this.getMenuSubtitle(this.section),
	            capHeight: true
	        };
	        var isMultiSection = term_course_servant_1.TermCourseServant.isMultiSectionCourse(this.section._course);
	        var menuOptionTitle = this.getMenuOptionTitle(isMultiSection);
	        var menuMultiSecTitle = this.ngMultiSectionServant.getMenuTitle(this.section);
	        var showRefreshSeatsMenuItem = this.ngScheduledSectionStatusServant.isSectionScheduled(this.section) ||
	            this.ngScheduledSectionStatusServant.isStatusWaitlisted(this.section);
	        this.scheduledSectionMenuItems = [
	            {
	                value: 'refresh_seat_availability',
	                title: 'Refresh Seat Availability',
	                visible: showRefreshSeatsMenuItem
	            },
	            {
	                value: 'unschedule_course',
	                title: "Unschedule " + menuOptionTitle,
	                visible: this.ngScheduledSectionStatusServant.isSectionScheduled(this.section)
	            },
	            { value: 'drop_course', title: "Drop " + menuOptionTitle, visible: this.shouldShowDropCourseMenuItem() },
	            {
	                value: 'withdraw_course',
	                title: 'Withdraw',
	                visible: this.shouldShowWithdrawCourseMenuItem()
	            },
	            {
	                value: 'remove_waitlist',
	                title: 'Remove from waitlist',
	                visible: this.ngScheduledSectionStatusServant.isStatusWaitlisted(this.section)
	            },
	            {
	                value: 'unschedule_sections',
	                title: "Unschedule " + menuMultiSecTitle,
	                visible: this.shouldShowUnscheduleSectionsMenuItem(isMultiSection)
	            },
	            {
	                value: 'drop_sections',
	                title: "Drop " + menuMultiSecTitle,
	                visible: this.shouldShowDropSectionsMenuItem(isMultiSection)
	            },
	            {
	                value: 'drop_enforced_coreqs',
	                title: this.getCoreqText(),
	                visible: this.showDropCoreqMenuOption
	            },
	            {
	                value: 'swap_section',
	                title: 'Swap Time',
	                visible: this.shouldShowSwapOptions
	            },
	            {
	                value: 'swap_course',
	                title: 'Swap Course',
	                visible: this.shouldShowSwapCourseMenuItem()
	            },
	            {
	                value: 'reschedule',
	                title: 'Schedule Another Time',
	                visible: this.shouldShowScheduleAnotherTimeMenuOption()
	            }
	        ].filter(function (item) { return item.visible; });
	        var sectionIsRepeatable = _4.get(this.section, 'is_repeatable', false);
	        var sectionIsCompleted = this.ngScheduledSectionStatusServant.isStatusCompleted(this.section);
	        var sectionIsCompletedAndRepeatable = sectionIsCompleted && sectionIsRepeatable;
	        var canWithdrawOrReschedule = sectionIsCompletedAndRepeatable || this.isRegisteredInProgressNotDroppable;
	        if (canWithdrawOrReschedule) {
	            this.scheduledSectionMenuItems = _4.filter(this.scheduledSectionMenuItems, { value: 'withdraw_course' });
	            this.scheduledSectionMenuItems.push({
	                value: 'reschedule',
	                title: 'Schedule Another Time',
	                visible: true
	            });
	        }
	    };
	    ScheduledSectionMenu.prototype.getMenuSubtitle = function (section) {
	        return section._course.cd + " " + section._course.title + " " + this.getSectionLabel(section);
	    };
	    ScheduledSectionMenu.prototype.getMenuOptionTitle = function (isMultiSection) {
	        var menuOptionTitle = isMultiSection
	            ? this.ngMultiSectionServant.getTruncatedSectionTypeName(this.section)
	            : 'Course';
	        return menuOptionTitle;
	    };
	    ScheduledSectionMenu.prototype.shouldShowDropCourseMenuItem = function () {
	        var isMultiSection = term_course_servant_1.TermCourseServant.isMultiSectionCourse(this.section._course);
	        return (this.ngScheduledSectionServant.isSectionRegistered(this.section) &&
	            !isMultiSection &&
	            !this.hasEnforcedRegisteredInProgressCoreqsRelated &&
	            _4.isEmpty(this.linkedCourseIds));
	    };
	    ScheduledSectionMenu.prototype.shouldShowWithdrawCourseMenuItem = function () {
	        return this.ngRegisteredSectionServant.canBeWithdrawn(this.section);
	    };
	    ScheduledSectionMenu.prototype.shouldShowUnscheduleSectionsMenuItem = function (isMultiSection) {
	        var noOfSiblings = _4.size(this.ngMultiSectionServant.getScheduledSiblingSections(this.section));
	        var shouldShowUnscheduleSectionsMenuItem = isMultiSection && this.ngScheduledSectionStatusServant.isSectionScheduled(this.section) && noOfSiblings > 1;
	        return shouldShowUnscheduleSectionsMenuItem;
	    };
	    ScheduledSectionMenu.prototype.shouldShowDropSectionsMenuItem = function (isMultiSection) {
	        var shouldShowDropSectionsMenuItem = isMultiSection &&
	            this.ngScheduledSectionServant.isSectionRegistered(this.section) &&
	            !this.hasEnforcedRegisteredInProgressCoreqsRelated;
	        return shouldShowDropSectionsMenuItem;
	    };
	    ScheduledSectionMenu.prototype.getCoreqText = function () {
	        var totalCoreqsToDropCount = this.totalCoursesToDropCount - 1;
	        var coreqText = totalCoreqsToDropCount > 0 ? "Drop Course and Corequisites(" + totalCoreqsToDropCount + ")" : "Drop Course";
	        return coreqText;
	    };
	    ScheduledSectionMenu.prototype.shouldShowSwapCourseMenuItem = function () {
	        var isPlannedCourseLocked = this.ngTermCourseServant.isLocked(_4.get(this.section, '_course._planned_course'));
	        var shouldShowSwapCourseMenuItem = this.shouldShowSwapOptions && !isPlannedCourseLocked;
	        return shouldShowSwapCourseMenuItem;
	    };
	    ScheduledSectionMenu.prototype.shouldShowScheduleAnotherTimeMenuOption = function () {
	        var sectionIsRepeatable = _4.get(this.section, 'is_repeatable', false);
	        var shouldShowScheduleAnotherTimeMenuOption = sectionIsRepeatable;
	        return shouldShowScheduleAnotherTimeMenuOption;
	    };
	    ScheduledSectionMenu.prototype.menuOptionTitle = function () {
	        var isMultiSection = term_course_servant_1.TermCourseServant.isMultiSectionCourse(this.section._course);
	        var menuOptionTitle = isMultiSection
	            ? this.ngMultiSectionServant.getTruncatedSectionTypeName(this.section)
	            : 'Course';
	        return menuOptionTitle;
	    };
	    ScheduledSectionMenu.prototype.__onRescheduleMenuItemSelected = function () {
	        var rescheduleUrl = 'my.schedule.registration.reschedule';
	        var rescheduleParams = {
	            courseId: this.section.course
	        };
	        if (!this.ngScheduledSectionServant.isSectionMultiSection(this.section)) {
	            rescheduleUrl = 'my.schedule.registration.reschedule.sections';
	            _4.merge(rescheduleParams, {
	                sectionTypeId: this.section.section_type
	            });
	        }
	        this.$state.go(rescheduleUrl, rescheduleParams);
	    };
	    ScheduledSectionMenu.prototype.__onMenuItemSelectedEnded = function ($event) {
	        var refreshMenuItemKey = 'refresh_seat_availability';
	        var shouldCloseSectionDetail = $event.detail.value !== refreshMenuItemKey;
	        if (shouldCloseSectionDetail) {
	            this.ngComponentCommunicatorService.publish('CLOSE_SECTION_DETAIL_MODAL');
	        }
	        var invokeMenuStrategy = this.__menuItemStrategy.get($event.detail.value);
	        invokeMenuStrategy();
	    };
	    ScheduledSectionMenu.prototype.dropCourse = function (action) {
	        var _this = this;
	        if (this.ngPreventTransientAccessQuery.result.redirectToAuthWorkflow) {
	            return this.ngComponentCommunicatorService.publish(transient_access_cred_constants_1.TransientAccessCredEventNames.TOGGLE_CRED_STEPS);
	        }
	        return this.saveTermPinCommand(this.$stateParams.termId).then(function () {
	            _this.ngDropCourseFacade.dropCourseAndCoreqs(_this.section, action, _this.sectionPins, _this.ngPreventTransientAccessQuery.result.output);
	            _this.closeModal();
	        });
	    };
	    /**
	     * This method is used in a different template - "calendar_scheduled_section_button.html"
	     */
	    ScheduledSectionMenu.prototype.getCalendarScheduledSectionButton = function () {
	        var calendarScheduledSectionButtonOptions = _4.filter(this.scheduledSectionMenuItems, function (item) { return item.value !== 'refresh_seat_availability'; });
	        var showFirstButtonOption = calendarScheduledSectionButtonOptions[0];
	        return showFirstButtonOption;
	    };
	    return ScheduledSectionMenu;
	}());
	exports.ScheduledSectionMenu = ScheduledSectionMenu;
	var ScheduledSectionMenuComponent = /** @class */ (function () {
	    function ScheduledSectionMenuComponent() {
	        this.bindings = {
	            section: '<',
	            label: '@',
	            aesthetic: '@'
	        };
	        this.controller = ScheduledSectionMenu;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/course_scheduler/components/scheduled_section_menu/scheduled_section_menu.html';
	    }
	    return ScheduledSectionMenuComponent;
	}());
	angular.module('capability-ng-scheduler').component('scheduledSectionMenu', new ScheduledSectionMenuComponent());


/***/ }),
/* 224 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ScheduledSectionTile = /** @class */ (function () {
	    function ScheduledSectionTile(ngScheduledSectionTileServant, ngScheduledSectionServant, ngSectionInfoServant, ngCourseDetailsFacade, ngScheduledSectionStatusServant, ngSectionSwapServant, ngMeetingTimeServant, ngRegisterSectionsQuery, ngSectionRegistrationAttributesQuery, ngSelectedSectionActionsFacade) {
	        this.ngScheduledSectionTileServant = ngScheduledSectionTileServant;
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.ngSectionInfoServant = ngSectionInfoServant;
	        this.ngCourseDetailsFacade = ngCourseDetailsFacade;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.ngSectionSwapServant = ngSectionSwapServant;
	        this.ngMeetingTimeServant = ngMeetingTimeServant;
	        this.ngRegisterSectionsQuery = ngRegisterSectionsQuery;
	        this.ngSectionRegistrationAttributesQuery = ngSectionRegistrationAttributesQuery;
	        this.ngSelectedSectionActionsFacade = ngSelectedSectionActionsFacade;
	        this.openDetailDialog = false;
	        this.isInSwapMode = false;
	        this.hasMultipleMeetingTimes = false;
	        this.isWithdrawEnabled = false;
	    }
	    ScheduledSectionTile.prototype.initialize = function () {
	        this.locationAndTimes = this.ngSectionInfoServant.calculateSectionTimes(this.section);
	        this.sectionLocation = this.ngSectionInfoServant.getSectionLocationString(this.section);
	        this.sectionCampus = this.ngSectionInfoServant.getSectionCampus(this.section);
	        this.sectionLocationAddresses = _4
	            .chain(this.section._section_times)
	            .map(function (time) { return time._location.address || ''; })
	            .compact()
	            .uniq()
	            .value();
	        this.sectionCourseTime = this.ngSectionInfoServant.sectionCourseTime(this.section);
	        this.sectionLabel = this.ngSectionInfoServant.getSectionLabel(this.section);
	        this.showDropDates = !this.ngScheduledSectionStatusServant.isStatusWithdrawn(this.section);
	        this.isWithdrawEnabled = this.ngScheduledSectionTileServant.isWithdrawEnabled();
	        this.lastDayToDrop = this.ngScheduledSectionTileServant.getLastDayToDrop(this.section);
	        this.lastDayToWithdraw = this.ngScheduledSectionTileServant.getLastDayToWithdraw(this.section);
	        this.showRegAttr = !this.isInSwapMode && !!this.section._isEligibleForRegistration;
	        this.isInSwapMode = this.ngSectionSwapServant.isInSwapMode();
	        // TODO: Need to get conflicting status. Right now we dont have information about conflict.
	        this.hasMultipleMeetingTimes = this.ngMeetingTimeServant.hasMultipleMeetingTimes(this.section);
	    };
	    ScheduledSectionTile.prototype.openDetailDialogfn = function () {
	        if (!_4.get(this.section, '_course.nk', false)) {
	            return;
	        }
	        this.ngCourseDetailsFacade.openCourseDetails(this.section._course.nk, this.section);
	    };
	    ScheduledSectionTile.prototype.$onInit = function () {
	        this.initialize();
	    };
	    ScheduledSectionTile.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    return ScheduledSectionTile;
	}());
	exports.ScheduledSectionTile = ScheduledSectionTile;
	var ScheduledSectionTileComponent = /** @class */ (function () {
	    function ScheduledSectionTileComponent() {
	        this.bindings = {
	            section: '<',
	            selectedSections: '<',
	            showCourseSectionsRequired: '<?',
	            parentForm: '@?'
	        };
	        this.controller = ScheduledSectionTile;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/course_scheduler/components/scheduled_section_tile/scheduled_section_tile.html';
	    }
	    return ScheduledSectionTileComponent;
	}());
	angular.module('capability-ng-scheduler').component('scheduledSectionTile', new ScheduledSectionTileComponent());


/***/ }),
/* 225 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var section_registration_servant_1 = __webpack_require__(59);
	var _4 = __webpack_require__(1);
	var CrossCourseLinkedSectionServant = /** @class */ (function () {
	    function CrossCourseLinkedSectionServant(appConfigModel, ngTermSectionTypesDatasource, ngMultiSectionServant) {
	        this.appConfigModel = appConfigModel;
	        this.ngTermSectionTypesDatasource = ngTermSectionTypesDatasource;
	        this.ngMultiSectionServant = ngMultiSectionServant;
	    }
	    // Returns an array of section Ids that are linked by sections
	    CrossCourseLinkedSectionServant.prototype.getSectionIdOfLinkedCrossCourses = function (sectionId, allSections) {
	        return section_registration_servant_1.SectionRegistrationServant.getSectionIdOfLinkedCrossCourses(sectionId, allSections, this.ngTermSectionTypesDatasource.values());
	    };
	    CrossCourseLinkedSectionServant.prototype.getSectionsByIds = function (sectionIds, allSections) {
	        return _4.compact(_4.map(sectionIds, function (sectionId) { return _4.find(allSections, { id: sectionId }); }));
	    };
	    CrossCourseLinkedSectionServant.prototype.allSectionsAndSiblingsScheduled = function (sectionIds, allSections) {
	        return section_registration_servant_1.SectionRegistrationServant.allSectionsAndSiblingsScheduled(sectionIds, allSections);
	    };
	    // Given an array of section ids, will return html markup of sections
	    CrossCourseLinkedSectionServant.prototype.getDropModalText = function (sectionId, allSections) {
	        var sectionLabel = this.appConfigModel.model.member_configs['section_label'] || 'Section';
	        return _4.reduce(sectionId, function (sum, section) {
	            var sectionObj = _4.find(allSections, { id: section });
	            if (_4.isUndefined(sectionObj)) {
	                return sum;
	            }
	            var courseTitle = _4.get(sectionObj, '_course.cd', '') + _4.get(sectionObj, '_course.title', '');
	            var crn = _4.get(sectionObj, 'cd', '');
	            return (sum += "<div>debug(section: " + sectionObj.id + ") " + courseTitle + " (" + sectionLabel + " " + crn + ")</div>");
	        }, "<div></div>");
	    };
	    return CrossCourseLinkedSectionServant;
	}());
	exports.CrossCourseLinkedSectionServant = CrossCourseLinkedSectionServant;


/***/ }),
/* 226 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var section_status_servant_1 = __webpack_require__(31);
	var section_registration_servant_1 = __webpack_require__(59);
	var term_course_servant_1 = __webpack_require__(14);
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	var _4 = __webpack_require__(1);
	var MultiSectionServant = /** @class */ (function () {
	    function MultiSectionServant(ngSectionsDatasource, ngScheduledSectionStatusServant, ngTermSectionTypesDatasource, ngScheduledSectionServant) {
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.ngTermSectionTypesDatasource = ngTermSectionTypesDatasource;
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	    }
	    // TODO: do we need to add here the logic to confirm if courseHasMultipleSectionTypesActive as requisite to be multi-section?
	    MultiSectionServant.prototype.isRegisteredMultiSection = function (section) {
	        return term_course_servant_1.TermCourseServant.isMultiSectionCourse(section._course) && section_status_servant_1.SectionStatusServant.isStatusRegistered(section);
	    };
	    MultiSectionServant.prototype.getAllSectionsForThisCourseId = function (courseId) {
	        return _4.filter(this.ngSectionsDatasource.read(), function (scheduledSection) {
	            return _4.isEqual(scheduledSection.course, courseId);
	        });
	    };
	    MultiSectionServant.prototype.getAllRequiredSectionsForThisCourseId = function (courseId) {
	        return _4.filter(this.ngSectionsDatasource.read(), function (scheduledSection) {
	            return _4.isEqual(scheduledSection.course, courseId) && _4.get(scheduledSection, '_section_type.is_required', false);
	        });
	    };
	    MultiSectionServant.prototype.getSiblingSections = function (section) {
	        if (!section) {
	            return [];
	        }
	        var siblingSectionsOfSameCourse = _4.filter(this.ngSectionsDatasource.read(), function (sctn) { return sctn.course === section.course; });
	        return siblingSectionsOfSameCourse;
	    };
	    MultiSectionServant.prototype.getScheduledSiblingSections = function (section) {
	        return section_registration_servant_1.SectionRegistrationServant.getScheduledSiblingSections(section, this.ngSectionsDatasource.values(), this.ngTermSectionTypesDatasource.values());
	    };
	    MultiSectionServant.prototype.getScheduledSiblingSectionsOfSameStatus = function (section) {
	        var siblingSectionsOfSameStatus = _4.filter(this.getScheduledSiblingSections(section), function (sctn) { return sctn.status === section.status; });
	        return siblingSectionsOfSameStatus;
	    };
	    MultiSectionServant.prototype.areAllMultiSectionsRegistered = function (section, sectionsWithStatus) {
	        return _4.size(this.getTiedNonRegisteredRequiredSections(section, sectionsWithStatus)) === 0;
	    };
	    MultiSectionServant.prototype.getRegisteredSiblings = function (section, sectionsWithStatus) {
	        if (!term_course_servant_1.TermCourseServant.isMultiSectionCourse(section._course)) {
	            return [];
	        }
	        return _4.filter(sectionsWithStatus, function (scheduledSection) {
	            return _4.isEqual(scheduledSection.course, section.course) &&
	                !_4.isEqual(scheduledSection.id, section.id) &&
	                section_status_servant_1.SectionStatusServant.isStatusRegistered(scheduledSection);
	        });
	    };
	    MultiSectionServant.prototype.getTiedNonRegisteredRequiredSections = function (section, sectionsWithStatus) {
	        var _this = this;
	        if (!term_course_servant_1.TermCourseServant.isMultiSectionCourse(section._course)) {
	            return [];
	        }
	        var sectionTypeIDsAlreadyRegistered = _4(this.getRegisteredSiblings(section, sectionsWithStatus))
	            .map('section_type')
	            .value();
	        return _4.filter(sectionsWithStatus, function (scheduledSection) {
	            return _4.isEqual(scheduledSection.course, section.course) &&
	                !_4.isEqual(scheduledSection.id, section.id) &&
	                _4.isEqual(_4.get(scheduledSection, '_section_type.session', ''), _4.get(section, '_section_type.session', '')) &&
	                !_this.ngScheduledSectionStatusServant.isStatusRegistered(scheduledSection) &&
	                !_4.includes(sectionTypeIDsAlreadyRegistered, scheduledSection.section_type);
	        });
	    };
	    MultiSectionServant.prototype.getSiblingWaitlistedSections = function (section, waitListedSections) {
	        var waitListStatuses = scheduled_section_status_enum_1.ScheduledSectionStatus.getWaitlistedSectionStatuses();
	        return _4.filter(waitListedSections, function (scheduledSection) {
	            return _4.isEqual(scheduledSection.course, section.course) &&
	                !_4.isEqual(scheduledSection.id, section.id) &&
	                _4.includes(waitListStatuses, scheduledSection.status);
	        });
	    };
	    // TODO: this method is called from a function which is not called from anywhere
	    MultiSectionServant.prototype.getRequiredNonScheduledAndWaitlistedSections = function (course) {
	        var sectionsForCourse = _4(this.getAllSectionsForThisCourseId(course.id)).value();
	        var sectionTypesNotScheduled = _4(sectionsForCourse)
	            .filter({ status: '' })
	            .map('section') // TODO: don't see this attr in builder/meta, there is something wrong about it
	            .uniq()
	            .value();
	        var waitListStatuses = scheduled_section_status_enum_1.ScheduledSectionStatus.getWaitlistedSectionStatuses();
	        var nonScheduledOrWaitlistedSections = _4.filter(sectionsForCourse, function (sectionForCourse) {
	            return (_4.includes(waitListStatuses, sectionForCourse.status) ||
	                (_4.isEqual(sectionForCourse.status, '') &&
	                    _4.includes(sectionTypesNotScheduled, sectionForCourse.section_type)));
	        });
	        return nonScheduledOrWaitlistedSections;
	    };
	    MultiSectionServant.prototype.hasUnscheduledRequiredSiblingSections = function (section, allScheduledSections) {
	        return section_registration_servant_1.SectionRegistrationServant.hasUnscheduledRequiredSiblingSections(section, allScheduledSections);
	    };
	    MultiSectionServant.prototype.getUnscheduledOptionalSiblingSectionTypes = function (course, courseIdsWithSessions) {
	        var _this = this;
	        if (!term_course_servant_1.TermCourseServant.isMultiSectionCourse(course)) {
	            return [];
	        }
	        var allSectionTypesForCourse = course._section_types;
	        var sessionsScheduled = courseIdsWithSessions[course.id];
	        var optionalSectionTypesForCourse = _4.filter(allSectionTypesForCourse, function (secType) { return !secType.is_required && _4.includes(sessionsScheduled, secType.session); });
	        var scheduledSectionsForCourse = _4.filter(this.getAllSectionsForThisCourseId(course.id), function (scheduledSection) { return _4.isEqual(scheduledSection.status, scheduled_section_status_enum_1.ScheduledSectionStatus.SECTION_PICKED); });
	        var optionalSectionTypesOfScheduledSections = _4(scheduledSectionsForCourse)
	            .map(function (sec) { return sec.section_type; })
	            .map(function (sectionTypeId) { return _this.ngTermSectionTypesDatasource.get(sectionTypeId); })
	            .compact()
	            .filter(function (secType) { return !secType.is_required; })
	            .value();
	        var unscheduledOptionalSiblingSectionTypes = _4.differenceBy(optionalSectionTypesForCourse, optionalSectionTypesOfScheduledSections, function (st) { return st.id; });
	        return unscheduledOptionalSiblingSectionTypes;
	    };
	    MultiSectionServant.prototype.hasUnscheduledOptionalSiblingSections = function (section, allScheduledSections) {
	        if (!term_course_servant_1.TermCourseServant.isMultiSectionCourse(section._course)) {
	            return false;
	        }
	        var allSectionTypesForCourse = section._course._section_types;
	        var optionalSectionTypesForCourse = _4.filter(section._course._section_types, function (secType) {
	            return !secType.is_required && secType.session === _4.toString(_4.get(section, '_section_type.session'));
	        });
	        var scheduledSectionsForCourse = _4.filter(allScheduledSections, function (scheduledSection) {
	            return _4.isEqual(scheduledSection.course, section.course) &&
	                !_4.isEqual(scheduledSection.status, scheduled_section_status_enum_1.ScheduledSectionStatus.UNSCHEDULED);
	        });
	        var optionalSectionTypesOfScheduledSections = _4(scheduledSectionsForCourse)
	            .uniqBy('section_type')
	            .map('_section_type')
	            .filter(function (secType) { return !secType.is_required; })
	            .value();
	        var unscheduledOptionalSiblingSectionTypes = _4.differenceBy(optionalSectionTypesForCourse, optionalSectionTypesOfScheduledSections, function (st) { return st.id; });
	        return _4.gt(unscheduledOptionalSiblingSectionTypes.length, 0);
	    };
	    MultiSectionServant.prototype.hasWaitlistedSiblingSections = function (section, allScheduledSections) {
	        var _this = this;
	        if (!term_course_servant_1.TermCourseServant.isMultiSectionCourse(section._course)) {
	            return false;
	        }
	        var waitlistedSiblingSections = _4.filter(allScheduledSections, function (scheduledSection) {
	            return _4.isEqual(scheduledSection.course, section.course) &&
	                _4.isEqual(scheduledSection._section_type.session, section._section_type.session) &&
	                !_4.isEqual(scheduledSection.id, section.id) &&
	                _4.isEqual(scheduledSection.status, scheduled_section_status_enum_1.ScheduledSectionStatus.WAITLISTED) &&
	                !_this.ngScheduledSectionServant.canAddFromWaitlist(scheduledSection);
	        });
	        return !_4.isEmpty(waitlistedSiblingSections);
	    };
	    MultiSectionServant.prototype.hasTiedMultiSectionUnscheduledRequiredSections = function (section, scheduledSections) {
	        return this.hasUnscheduledRequiredSiblingSections(section, scheduledSections);
	    };
	    MultiSectionServant.prototype.getTruncatedSectionTypeName = function (section, charLimit) {
	        if (charLimit === void 0) { charLimit = 25; }
	        return _4.truncate(_4.get(section, "_section_type.name", ''), { length: charLimit });
	    };
	    MultiSectionServant.prototype.getMenuTitle = function (section) {
	        var siblingSectionsOfSameStatus = this.getScheduledSiblingSectionsOfSameStatus(section);
	        var noOfSiblings = _4.size(siblingSectionsOfSameStatus);
	        var areSiblingsSameStatus = noOfSiblings === _4.size(section._course._section_types);
	        var menuMultiSecTitle = (areSiblingsSameStatus ? 'All' : "(" + noOfSiblings + ")") + (" Section" + (noOfSiblings > 1 ? 's' : ''));
	        return menuMultiSecTitle;
	    };
	    MultiSectionServant.prototype.getSelectedSwapIds = function (swapIDs) {
	        return '&selected_swap_id=' + _4.reduce(swapIDs, function (sum, item) { return sum + "&selected_swap_id=" + item; });
	    };
	    return MultiSectionServant;
	}());
	exports.MultiSectionServant = MultiSectionServant;


/***/ }),
/* 227 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var section_status_servant_1 = __webpack_require__(31);
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	var section_tile_error_enum_1 = __webpack_require__(232);
	var _4 = __webpack_require__(1);
	var ScheduledSectionStatusServant = /** @class */ (function () {
	    function ScheduledSectionStatusServant(ngSectionsDatasource, ngCrossCourseCorequisitesDatasource, ngTermScheduleFlags) {
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngCrossCourseCorequisitesDatasource = ngCrossCourseCorequisitesDatasource;
	        this.ngTermScheduleFlags = ngTermScheduleFlags;
	        this.sectionStatus = section_status_servant_1.SectionStatusServant.sectionStatus;
	        this.hasStatus = section_status_servant_1.SectionStatusServant.hasStatus;
	        this.isCompleted = section_status_servant_1.SectionStatusServant.isCompleted;
	        this.isStatusCompleted = section_status_servant_1.SectionStatusServant.isStatusCompleted;
	        this.isStatusPending = section_status_servant_1.SectionStatusServant.isStatusPending;
	        this.isStatusFailed = section_status_servant_1.SectionStatusServant.isStatusFailed;
	        this.isStatusFailedDrop = section_status_servant_1.SectionStatusServant.isStatusFailedDrop;
	        this.isStatusRegistered = section_status_servant_1.SectionStatusServant.isStatusRegistered;
	        this.isStatusInProgress = section_status_servant_1.SectionStatusServant.isStatusInProgress;
	        this.isRegisteredOrInprogress = section_status_servant_1.SectionStatusServant.isRegisteredOrInprogress;
	        this.isStatusWaitlisted = section_status_servant_1.SectionStatusServant.isStatusWaitlisted;
	        this.isStatusWithdrawn = section_status_servant_1.SectionStatusServant.isStatusWithdrawn;
	        this.isStatusWaitlistFailed = section_status_servant_1.SectionStatusServant.isStatusWaitlistFailed;
	        this.isStatusWaitlistDropFailed = section_status_servant_1.SectionStatusServant.isStatusWaitlistDropFailed;
	        this.isStatusUnscheduled = section_status_servant_1.SectionStatusServant.isStatusUnscheduled;
	        this.isStatusRegisteredOrCompleteOrInProgress = section_status_servant_1.SectionStatusServant.isStatusRegisteredOrCompleteOrInProgress;
	    }
	    ScheduledSectionStatusServant.prototype.isSectionScheduled = function (section) {
	        return _4.includes(scheduled_section_status_enum_1.ScheduledSectionStatus.getScheduledSectionStatuses(), section.status);
	    };
	    ScheduledSectionStatusServant.prototype.getCrossCourseCorequisites = function (section) {
	        var corequisiteCourseEntry = this.ngCrossCourseCorequisitesDatasource.get(section.id);
	        if (corequisiteCourseEntry) {
	            return corequisiteCourseEntry.course_corequisites;
	        }
	        return [];
	    };
	    ScheduledSectionStatusServant.prototype.hasDropDates = function (section) {
	        return !_4.isNull(section.drop_start_dt) && !_4.isNull(section.drop_end_dt);
	    };
	    ScheduledSectionStatusServant.prototype.isDroppable = function (section) {
	        var canDropByDateLogic = moment().isBefore(moment(section.drop_end_dt, 'YYYY-MM-DD'));
	        return _4.get(section, 'is_droppable', canDropByDateLogic);
	    };
	    ScheduledSectionStatusServant.prototype.canWithdraw = function (section) {
	        var dropEndDate = moment(section.drop_end_dt, 'YYYY-MM-DD');
	        var canWithdrawLogic = moment().isAfter(dropEndDate) && moment().isBefore(moment(section.withdraw_end_dt, 'YYYY-MM-DD'));
	        return _4.get(section, 'can_withdraw', canWithdrawLogic) && !this.isStatusWithdrawn(section);
	    };
	    ScheduledSectionStatusServant.prototype.isOnline = function (section) {
	        return section._campus.is_online;
	    };
	    ScheduledSectionStatusServant.prototype.isBlended = function (section) {
	        var isBlended = /(blended|partial)/gi.test(section._campus.name);
	        return isBlended;
	    };
	    ScheduledSectionStatusServant.prototype.isValidFailureForCurrentStatus = function (section, failureType) {
	        return !(this.isStatusRegistered(section) && _4.isEqual(failureType, section_tile_error_enum_1.SectionTileErrorEnum.ADD));
	    };
	    ScheduledSectionStatusServant.prototype.isCoreqEnforcementEnabled = function () {
	        return this.ngTermScheduleFlags.isCoreqEnforcementEnabled();
	    };
	    ScheduledSectionStatusServant.prototype.hasEnforcedCoreqs = function (section) {
	        var coreqCoursesInSection = _4.get(section, '_course._coreq_courses', []);
	        return this.ngTermScheduleFlags.isCoreqEnforcementEnabled() && !_4.isEmpty(coreqCoursesInSection);
	    };
	    ScheduledSectionStatusServant.prototype.hasEnforcedCoreqsNotScheduled = function (section) {
	        var _this = this;
	        if (!this.isCoreqEnforcementEnabled()) {
	            return false;
	        }
	        var coreqCoursesInSection = _4.get(section, '_course._coreq_courses', []);
	        var coreqsAlreadyScheduled = _4.map(coreqCoursesInSection, function (coreqCourseInSection) {
	            return _4.find(_4.toArray(_this.ngSectionsDatasource.read()), function (coreqCourse) {
	                return coreqCourse.course === coreqCourseInSection.id &&
	                    _4.includes([scheduled_section_status_enum_1.ScheduledSectionStatus.SECTION_PICKED, scheduled_section_status_enum_1.ScheduledSectionStatus.REGISTERED], coreqCourse.status);
	            });
	        });
	        return _4.size(coreqCoursesInSection) > _4.size(_4.compact(coreqsAlreadyScheduled));
	    };
	    ScheduledSectionStatusServant.prototype.getInProgressSections = function () {
	        var _this = this;
	        return _4.filter(_4.toArray(this.ngSectionsDatasource.read()), function (sec) { return _this.isStatusInProgress(sec); });
	    };
	    return ScheduledSectionStatusServant;
	}());
	exports.ScheduledSectionStatusServant = ScheduledSectionStatusServant;


/***/ }),
/* 228 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	var _4 = __webpack_require__(1);
	var moment = __webpack_require__(2);
	var ScheduledSectionTileServant = /** @class */ (function () {
	    function ScheduledSectionTileServant(ngTermScheduleFlags, getCSSClassForString, ngSectionsDatasource, ngSchedulerModel) {
	        this.ngTermScheduleFlags = ngTermScheduleFlags;
	        this.getCSSClassForString = getCSSClassForString;
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngSchedulerModel = ngSchedulerModel;
	    }
	    ScheduledSectionTileServant.prototype.getCourseLocationsString = function (section) {
	        return _4.map(section._section_times, function (sectionTime) {
	            return {
	                campus: "" + sectionTime._location.campus_name,
	                address: "" + sectionTime._location.address
	            };
	        });
	    };
	    ScheduledSectionTileServant.prototype.getLastDayToDrop = function (section) {
	        var customTextForLastDayToDrop = _4.get(this.ngSchedulerModel.read(), 'customtext.LAST_DAY_TO_DROP.text', 'Last day to drop:');
	        return section.drop_end_dt
	            ? customTextForLastDayToDrop + " " + moment(section.drop_end_dt, 'YYYY-MM-DD').format('MMM Do YYYY')
	            : "";
	    };
	    ScheduledSectionTileServant.prototype.getLastDayToWithdraw = function (section) {
	        var customTextForWithdraw = 'Last day to Withdraw:';
	        return section.withdraw_end_dt
	            ? customTextForWithdraw + " " + moment(section.withdraw_end_dt, 'YYYY-MM-DD').format('MMM Do YYYY')
	            : "";
	    };
	    ScheduledSectionTileServant.prototype.getTileColor = function (section) {
	        var courseNk = _4.get(section, '_course.nk', '');
	        return section.status === scheduled_section_status_enum_1.ScheduledSectionStatus.WAITLISTED
	            ? 'clr-gray_30-bdr'
	            : this.getCSSClassForString(courseNk, 'bdr');
	    };
	    ScheduledSectionTileServant.prototype.isWaitlistEnabled = function () {
	        return this.ngTermScheduleFlags.isWaitlistEnabled();
	    };
	    ScheduledSectionTileServant.prototype.isWithdrawEnabled = function () {
	        return this.ngTermScheduleFlags.isWithdrawEnabled();
	    };
	    ScheduledSectionTileServant.prototype.getCourseSectionsById = function (courseId) {
	        return _4.filter(this.ngSectionsDatasource.read(), function (section) { return section.course === courseId; });
	    };
	    ScheduledSectionTileServant.prototype.getInstructorsForCourse = function (course) {
	        var instructors = _4
	            .uniq(_4.map(this.getCourseSectionsById(course.id), function (section) { return section.instructor_name; }))
	            .join(', ');
	        return instructors;
	    };
	    return ScheduledSectionTileServant;
	}());
	exports.ScheduledSectionTileServant = ScheduledSectionTileServant;


/***/ }),
/* 229 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var TermScheduleFlags = /** @class */ (function () {
	    function TermScheduleFlags(schedulerConfigModel, FEATURE_WAITLIST_NK, FEATURE_REG_SECTION_PIN, FEATURE_ONE_CLICK_REGISTRATION_NK) {
	        this.schedulerConfigModel = schedulerConfigModel;
	        this.FEATURE_WAITLIST_NK = FEATURE_WAITLIST_NK;
	        this.FEATURE_REG_SECTION_PIN = FEATURE_REG_SECTION_PIN;
	        this.FEATURE_ONE_CLICK_REGISTRATION_NK = FEATURE_ONE_CLICK_REGISTRATION_NK;
	    }
	    TermScheduleFlags.prototype.isWaitlistEnabled = function () {
	        return this.schedulerConfigModel.isFeatureEnabled(this.FEATURE_WAITLIST_NK);
	    };
	    TermScheduleFlags.prototype.isFullSectionsSchedulingEnabled = function () {
	        return this.schedulerConfigModel.isFeatureEnabled('reg-allow_register_full_section');
	    };
	    TermScheduleFlags.prototype.isWithdrawEnabled = function () {
	        return this.schedulerConfigModel.isFeatureEnabled('reg-section_withdraw');
	    };
	    TermScheduleFlags.prototype.isOneClickRegistrationEnabled = function () {
	        return this.schedulerConfigModel.isFeatureEnabled(this.FEATURE_ONE_CLICK_REGISTRATION_NK);
	    };
	    TermScheduleFlags.prototype.allowWaitlistedSectionsForRegistrationSelection = function () {
	        return this.schedulerConfigModel.isFeatureEnabled('reg-allow_waitlisted_sections_for_registration_selection');
	    };
	    TermScheduleFlags.prototype.isCoreqEnforcementEnabled = function () {
	        return this.schedulerConfigModel.isFeatureEnabled('reg-coreqs_enforcement');
	    };
	    TermScheduleFlags.prototype.isRequisiteReminderEnabled = function () {
	        return this.schedulerConfigModel.isFeatureEnabled('reg-requisite_reminder');
	    };
	    TermScheduleFlags.prototype.isBatchRegisterWaitlistedStudentsEnabled = function () {
	        return this.schedulerConfigModel.isFeatureEnabled('reg-batch_register_waitlisted_students');
	    };
	    TermScheduleFlags.prototype.getNumberOfSeatsRequestsPerCourse = function () {
	        return this.schedulerConfigModel.getConfigProperty('reg-number_of_seat_requests_per_course');
	    };
	    return TermScheduleFlags;
	}());
	exports.TermScheduleFlags = TermScheduleFlags;


/***/ }),
/* 230 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	exports.SectionStatusLabelStrategy = new utility_ts_strategy_1.Strategy({
	    REGISTERED: {
	        text: 'Registered',
	        style: 'enrolled',
	        marker_color: 'clr-teal_30-txt'
	    },
	    IN_PROGRESS: {
	        text: 'In Progress',
	        style: 'enrolled',
	        marker_color: 'clr-teal_30-txt'
	    },
	    COMPLETED: {
	        text: 'Completed',
	        style: 'enrolled',
	        marker_color: 'clr-green_30-txt'
	    },
	    PENDING: {
	        text: 'Pending',
	        style: 'pending',
	        marker_color: 'clr-gray_50-txt'
	    },
	    FAILED: {
	        text: 'Unable to register',
	        style: 'failed',
	        marker_color: 'clr-red_30-txt'
	    },
	    WAITLISTED: {
	        text: 'Waitlisted',
	        style: 'enrolled',
	        marker_color: 'clr-purple_30-txt'
	    },
	    NOT_REGISTERED: {
	        text: 'Ready to register',
	        style: 'failed',
	        marker_color: 'clr-orange_30-bkg'
	    },
	    SECTION_PICKED: {
	        text: 'Not Registered',
	        style: 'clr-gray_40-txt',
	        marker_color: 'clr-gray_40-txt'
	    },
	    SWAP_FROM: {
	        text: 'Selected for swap',
	        style: 'clr-gray_40-txt',
	        marker_color: 'clr-gray_40-txt'
	    },
	    SWAP_TO: {
	        text: 'New time selected',
	        style: 'clr-gray_40-txt',
	        marker_color: 'clr-gray_40-txt'
	    },
	    WITHDRAWN: {
	        text: 'Withdrawn',
	        style: 'clr-gray_40-txt',
	        marker_color: 'clr-gray_40-txt'
	    }
	});


/***/ }),
/* 231 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	exports.TileErrorMessageTypesAndMessagesStrategy = new utility_ts_strategy_1.Strategy({
	    ADD: {
	        show_icon: true,
	        title: 'This course could not be registered.'
	    },
	    DROP: {
	        show_icon: true,
	        title: 'This course could not be dropped.'
	    },
	    WAITLIST_ADD: {
	        show_icon: false,
	        title: 'We were not able to add you on the waitlist.'
	    },
	    WAITLIST_DROP: {
	        show_icon: false,
	        title: 'We were not able to remove you from the waitlist.'
	    },
	    SWAP: {
	        show_icon: true,
	        title: 'We were unable to complete your swap.'
	    }
	});


/***/ }),
/* 232 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var SectionTileErrorEnum;
	(function (SectionTileErrorEnum) {
	    SectionTileErrorEnum["ADD"] = "ADD";
	    SectionTileErrorEnum["DROP"] = "DROP";
	    SectionTileErrorEnum["WAITLIST_ADD"] = "WAITLIST_ADD";
	    SectionTileErrorEnum["WAITLIST_DROP"] = "WAITLIST_DROP";
	    SectionTileErrorEnum["SWAP"] = "SWAP";
	})(SectionTileErrorEnum = exports.SectionTileErrorEnum || (exports.SectionTileErrorEnum = {}));


/***/ }),
/* 233 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var Section = /** @class */ (function () {
	    function Section(section) {
	        this.is_repeatable = false;
	        this.session = -1;
	        _4.merge(this, section, { status: section.status || '', session: section.session || -1 });
	        return this;
	    }
	    Section.build = function (section) {
	        return new Section(section);
	    };
	    return Section;
	}());
	exports.Section = Section;


/***/ }),
/* 234 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var SettingsFeatureListController = /** @class */ (function () {
	    function SettingsFeatureListController(appConfigModel, ngSettingsCapabilityConfiguration, ngSettingsStateConfigurationService, $state, ngPronounsQuery, ngEditPronounsService, getPronounsListCommand, getSTCConfigsCommand, ngPronounsListQuery, ngPronounsListDatasource, ngCustomTextQuery) {
	        var _this = this;
	        this.appConfigModel = appConfigModel;
	        this.ngSettingsCapabilityConfiguration = ngSettingsCapabilityConfiguration;
	        this.ngSettingsStateConfigurationService = ngSettingsStateConfigurationService;
	        this.$state = $state;
	        this.ngPronounsQuery = ngPronounsQuery;
	        this.ngEditPronounsService = ngEditPronounsService;
	        this.getPronounsListCommand = getPronounsListCommand;
	        this.getSTCConfigsCommand = getSTCConfigsCommand;
	        this.ngPronounsListQuery = ngPronounsListQuery;
	        this.ngPronounsListDatasource = ngPronounsListDatasource;
	        this.ngCustomTextQuery = ngCustomTextQuery;
	        this.showUpdatePreference = false;
	        this.allowEditPronouns = false;
	        this.defaultIntakeTitle = 'Retake Intake Survey';
	        this.allowUpdateTopic = this.appConfigModel.isFeatureEnabled('item-show_topics_setting');
	        this.allowUpdateNotificationSettings = this.appConfigModel.isFeatureEnabled('notification-settings');
	        this.aboutRoute = 'my.about.default';
	        this.selectedPronouns = _4.get(this.ngPronounsQuery.result, 'selected_pronouns');
	        this.isMobile = utility_ts_platform_1.PlatformUtility.isMobile();
	        this.getSTCConfigsCommand().then(function (data) {
	            _this.allowEditPronouns =
	                !_4.isEmpty(_this.selectedPronouns) && data.show_pronouns && data.allow_users_to_edit_pronouns;
	            if (_4.isEmpty(_this.ngPronounsListDatasource.read()) && _this.allowEditPronouns) {
	                _this.getPronounsListCommand();
	            }
	        });
	    }
	    SettingsFeatureListController.prototype.goToUpdatePreference = function () {
	        var updatePreferenceRoute = this.ngSettingsCapabilityConfiguration.config.hasFirstTerm
	            ? this.ngSettingsStateConfigurationService.firstTerm
	            : this.ngSettingsStateConfigurationService.intake;
	        this.$state.go(updatePreferenceRoute);
	    };
	    SettingsFeatureListController.prototype.hideUpdatePreference = function () {
	        this.showUpdatePreference = false;
	    };
	    SettingsFeatureListController.prototype.updatePreferenceConfirmation = function () {
	        this.showUpdatePreference = true;
	    };
	    SettingsFeatureListController.prototype.editPronouns = function () {
	        var _this = this;
	        this.getPronounsListCommand().then(function () {
	            _this.ngPronounsListQuery.run();
	            _this.ngEditPronounsService.toggleOpen(true);
	        });
	    };
	    return SettingsFeatureListController;
	}());
	exports.SettingsFeatureListController = SettingsFeatureListController;


/***/ }),
/* 235 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_type_1 = __webpack_require__(17);
	var _4 = __webpack_require__(1);
	var SettingsWelcomeController = /** @class */ (function () {
	    function SettingsWelcomeController(ngSettingsCapabilityConfiguration, accountModel, ngPronounsQuery) {
	        this.ngSettingsCapabilityConfiguration = ngSettingsCapabilityConfiguration;
	        this.accountModel = accountModel;
	        this.ngPronounsQuery = ngPronounsQuery;
	        this.model = {
	            userFullName: this.accountModel.fullname,
	            userInitials: utility_ts_type_1.StringUtility.getAcronym.apply(utility_ts_type_1.StringUtility, this.accountModel.fullname.split(' ')),
	            userStudentNK: this.accountModel.student_nk,
	            userEmail: this.accountModel.email,
	            imageUrl: this.ngSettingsCapabilityConfiguration.config.institutionMediaPath,
	            userPronouns: _4.get(this.ngPronounsQuery.result, 'selected_pronouns')
	        };
	        this.flags = {
	            showStudentCard: this.ngSettingsCapabilityConfiguration.config.isStudentNKCardEnabled,
	            hasUserEmail: !_4.isEmpty(this.model.userEmail),
	            showPronouns: !_4.isEmpty(this.model.userPronouns)
	        };
	    }
	    SettingsWelcomeController.prototype.universityLogo = function () {
	        return {
	            'background-image': "url('" + this.model.imageUrl + "')"
	        };
	    };
	    SettingsWelcomeController.prototype.hasUniversityLogo = function () {
	        return !_.isEmpty(this.model.imageUrl);
	    };
	    return SettingsWelcomeController;
	}());
	exports.SettingsWelcomeController = SettingsWelcomeController;


/***/ }),
/* 236 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var SettingsLogoutConfigurationService = /** @class */ (function () {
	    function SettingsLogoutConfigurationService() {
	        this._logoutFn = function () { return false; };
	    }
	    Object.defineProperty(SettingsLogoutConfigurationService.prototype, "logoutMetod", {
	        get: function () {
	            return this._logoutFn;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(SettingsLogoutConfigurationService.prototype, "logoutMethod", {
	        set: function (fn) {
	            this._logoutFn = fn;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    SettingsLogoutConfigurationService.prototype.invokeLogout = function () {
	        var args = [];
	        for (var _i = 0; _i < arguments.length; _i++) {
	            args[_i] = arguments[_i];
	        }
	        this._logoutFn(args);
	    };
	    return SettingsLogoutConfigurationService;
	}());
	exports.SettingsLogoutConfigurationService = SettingsLogoutConfigurationService;


/***/ }),
/* 237 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SettingsStateConfigurationService = /** @class */ (function () {
	    function SettingsStateConfigurationService() {
	        this._favorites = 'my.favorites';
	        this._notificationSettings = 'my.notificationsettings';
	        this._topics = 'my.updateTopics';
	        this._intake = 'my.intake-poll';
	        this._firstTerm = 'my.first-term-poll';
	    }
	    SettingsStateConfigurationService.prototype.configure = function (configObj) {
	        var _this = this;
	        _4.forEach(configObj, function (val, key) {
	            if (!_4.isUndefined(_this[key])) {
	                _this[key] = val;
	            }
	        });
	    };
	    Object.defineProperty(SettingsStateConfigurationService.prototype, "favorites", {
	        get: function () {
	            return this._favorites;
	        },
	        set: function (state) {
	            this._favorites = state;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(SettingsStateConfigurationService.prototype, "notificationSettings", {
	        get: function () {
	            return this._notificationSettings;
	        },
	        set: function (state) {
	            this._notificationSettings = state;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(SettingsStateConfigurationService.prototype, "topics", {
	        get: function () {
	            return this._topics;
	        },
	        set: function (state) {
	            this._topics = state;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(SettingsStateConfigurationService.prototype, "intake", {
	        get: function () {
	            return this._intake;
	        },
	        set: function (state) {
	            this._intake = state;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(SettingsStateConfigurationService.prototype, "firstTerm", {
	        get: function () {
	            return this._firstTerm;
	        },
	        set: function (state) {
	            this._firstTerm = state;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return SettingsStateConfigurationService;
	}());
	exports.SettingsStateConfigurationService = SettingsStateConfigurationService;


/***/ }),
/* 238 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var SettingsCapabilityConfiguration = /** @class */ (function () {
	    function SettingsCapabilityConfiguration() {
	        this._config = {
	            isMobile: false,
	            hasIntakePoll: false,
	            hasFirstTerm: false,
	            isStudentNKCardEnabled: false,
	            institutionMediaPath: ''
	        };
	    }
	    Object.defineProperty(SettingsCapabilityConfiguration.prototype, "config", {
	        get: function () {
	            return this._config;
	        },
	        set: function (configs) {
	            this._config = tslib_1.__assign(tslib_1.__assign({}, this._config), configs);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    SettingsCapabilityConfiguration.prototype.setConfig = function (key, value) {
	        this._config[key] = value;
	    };
	    return SettingsCapabilityConfiguration;
	}());
	exports.SettingsCapabilityConfiguration = SettingsCapabilityConfiguration;


/***/ }),
/* 239 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var StudyGroupsPriorityFeedQuery = /** @class */ (function () {
	    function StudyGroupsPriorityFeedQuery(ngStudygroupsPriorityFeedDatasource) {
	        this.ngStudygroupsPriorityFeedDatasource = ngStudygroupsPriorityFeedDatasource;
	        this.isNewStudent = false;
	        utility_ts_orm_1.ORM.registerQuery(this, ngStudygroupsPriorityFeedDatasource);
	    }
	    StudyGroupsPriorityFeedQuery.prototype.run = function () {
	        var feedCard = _4.first(this.ngStudygroupsPriorityFeedDatasource.values());
	        // { "content_type": "study.buddy", "title": "You have 1 classmate looking for Study Buddies in the last 1 hour", "description": "Check out Study Buddies groups today", "new_study_buddy_count": 1 }
	        this._result = {
	            icon: { type: 'users', theme: 'teal' },
	            isOverdue: false,
	            isActive: !!feedCard,
	            text: {
	                title: feedCard ? feedCard.title : '',
	                subTitle: feedCard ? feedCard.description : ''
	            },
	            action: {
	                state: 'my.studyGroups'
	            }
	        };
	        this._count = _4.get(feedCard, 'new_study_buddy_count', 0);
	        return this;
	    };
	    Object.defineProperty(StudyGroupsPriorityFeedQuery.prototype, "hasFeedNotification", {
	        get: function () {
	            return this.result.isActive || false;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(StudyGroupsPriorityFeedQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(StudyGroupsPriorityFeedQuery.prototype, "count", {
	        get: function () {
	            return this._count;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return StudyGroupsPriorityFeedQuery;
	}());
	exports.StudyGroupsPriorityFeedQuery = StudyGroupsPriorityFeedQuery;


/***/ }),
/* 240 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var StudyGroupsCapabilityConfiguration = /** @class */ (function () {
	    function StudyGroupsCapabilityConfiguration() {
	        this._config = {
	            isMobile: false,
	            notificationHandle: ''
	        };
	    }
	    Object.defineProperty(StudyGroupsCapabilityConfiguration.prototype, "config", {
	        get: function () {
	            return this._config;
	        },
	        set: function (configs) {
	            this._config = tslib_1.__assign(tslib_1.__assign({}, this._config), configs);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    StudyGroupsCapabilityConfiguration.prototype.setConfig = function (key, value) {
	        this._config[key] = value;
	    };
	    return StudyGroupsCapabilityConfiguration;
	}());
	exports.StudyGroupsCapabilityConfiguration = StudyGroupsCapabilityConfiguration;


/***/ }),
/* 241 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var SurveyPriorityFeedQuery = /** @class */ (function () {
	    function SurveyPriorityFeedQuery(ngSurveyDatastore) {
	        this.ngSurveyDatastore = ngSurveyDatastore;
	        utility_ts_orm_1.ORM.registerQuery(this, this.ngSurveyDatastore);
	    }
	    SurveyPriorityFeedQuery.prototype.run = function () {
	        var _newAndInProgressSurveys = _4.filter(this.ngSurveyDatastore.values(), function (survey) {
	            return survey.combined_status === 'NEW' || survey.combined_status === 'IN_PROGRESS';
	        });
	        this._count = _newAndInProgressSurveys.length;
	        this._result = this._generatePriorityFeedItemForSurveys(_newAndInProgressSurveys);
	        return this;
	    };
	    Object.defineProperty(SurveyPriorityFeedQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(SurveyPriorityFeedQuery.prototype, "count", {
	        get: function () {
	            return this._count;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    SurveyPriorityFeedQuery.prototype._generatePriorityFeedItemForSurveys = function (surveys) {
	        var baseConfiguration = {
	            icon: { type: 'bubble_question', theme: 'blue' },
	            isOverdue: false,
	            isActive: this._count > 0
	        };
	        return _4.map(surveys, function (survey) {
	            return tslib_1.__assign(tslib_1.__assign({}, baseConfiguration), { text: {
	                    title: survey.external_title,
	                    subTitle: 'Tap to start the survey'
	                }, action: {
	                    state: 'my.survey-intro',
	                    params: {
	                        surveyID: survey.id
	                    }
	                } });
	        });
	    };
	    return SurveyPriorityFeedQuery;
	}());
	exports.SurveyPriorityFeedQuery = SurveyPriorityFeedQuery;


/***/ }),
/* 242 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var SurveyQuery = /** @class */ (function () {
	    function SurveyQuery(ngSurveyDatastore) {
	        this.ngSurveyDatastore = ngSurveyDatastore;
	        utility_ts_orm_1.ORM.registerQuery(this, this.ngSurveyDatastore);
	    }
	    SurveyQuery.prototype.run = function () {
	        this._result = this.ngSurveyDatastore.values();
	        return this;
	    };
	    Object.defineProperty(SurveyQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return SurveyQuery;
	}());
	exports.SurveyQuery = SurveyQuery;


/***/ }),
/* 243 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var survey_question_type_strategy_1 = __webpack_require__(245);
	var SurveyQuestionQuery = /** @class */ (function () {
	    function SurveyQuestionQuery(ngSurveyQuestionDatastore) {
	        this.ngSurveyQuestionDatastore = ngSurveyQuestionDatastore;
	        utility_ts_orm_1.ORM.registerQuery(this, this.ngSurveyQuestionDatastore);
	    }
	    SurveyQuestionQuery.prototype.run = function () {
	        this._result = {};
	        var question = _4.first(this.ngSurveyQuestionDatastore.values());
	        var questionType = _4.get(question, 'question.question_type', '');
	        if (!_4.isEmpty(question)) {
	            this._result = {
	                question: question,
	                questionTypeDef: survey_question_type_strategy_1.SurveyQuestionTypeStrategy.getByKey(questionType).buildFormInput(question)
	            };
	        }
	        return this;
	    };
	    Object.defineProperty(SurveyQuestionQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return SurveyQuestionQuery;
	}());
	exports.SurveyQuestionQuery = SurveyQuestionQuery;


/***/ }),
/* 244 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	exports.SurveyQuestionDirectionStrategy = new utility_ts_strategy_1.Strategy({
	    NEXT: {
	        queryName: 'next',
	        newState: 'my.survey-summary'
	    },
	    PRIOR: {
	        queryName: 'prior',
	        newState: 'my.survey-intro'
	    },
	    RESUME: {
	        queryName: 'resume',
	        newState: 'my.survey-summary'
	    }
	});


/***/ }),
/* 245 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var utility_ts_strategy_1 = __webpack_require__(6);
	exports.SurveyQuestionTypeStrategy = new utility_ts_strategy_1.Strategy({
	    FREE: {
	        buildFormInput: function (surveyQuestion) {
	            var properties = [
	                {
	                    name: "question-" + surveyQuestion.question.id,
	                    path: "question-" + surveyQuestion.question.id,
	                    title: surveyQuestion.question.prompt,
	                    render_type: 'textarea',
	                    required: _4.get(surveyQuestion, 'question.response_required', false),
	                    has_saved_value: !_4.isEmpty(surveyQuestion.free_text_answer),
	                    initial_value: surveyQuestion.free_text_answer
	                }
	            ];
	            return { properties: properties };
	        },
	        buildResponse: function (response) {
	            return { free_text_answer: _4.isEmpty(response) ? '' : response };
	        }
	    },
	    SINGLE: {
	        buildFormInput: function (surveyQuestion) {
	            var properties = [
	                {
	                    name: "question-" + surveyQuestion.question.id,
	                    path: "question-" + surveyQuestion.question.id,
	                    title: surveyQuestion.question.prompt,
	                    render_type: 'list',
	                    required: _4.get(surveyQuestion, 'question.response_required', false),
	                    max_choices: 1,
	                    has_saved_value: !_4.isEmpty(surveyQuestion.answer_choices),
	                    initial_value: surveyQuestion.answer_choices,
	                    clearable: !_4.get(surveyQuestion, 'question.response_required', false),
	                    options: _4.map(surveyQuestion.choices, function (choice) {
	                        return {
	                            title: choice.text,
	                            value: choice.id
	                        };
	                    })
	                }
	            ];
	            return { properties: properties };
	        },
	        buildResponse: function (response) {
	            return { answer_choices: _4.isNumber(response) ? [response] : [] };
	        }
	    },
	    MULTI: {
	        buildFormInput: function (surveyQuestion) {
	            var properties = [
	                tslib_1.__assign(tslib_1.__assign({}, _4.first(exports.SurveyQuestionTypeStrategy.getByKey('SINGLE').buildFormInput(surveyQuestion).properties)), { max_choices: _4.size(surveyQuestion.choices), clearable: !_4.get(surveyQuestion, 'question.response_required', false), required: _4.get(surveyQuestion, 'question.response_required', false), has_saved_value: !_4.isEmpty(surveyQuestion.answer_choices), initial_value: surveyQuestion.answer_choices })
	            ];
	            return { properties: properties };
	        },
	        buildResponse: function (response) {
	            if (_4.isString(response) || _4.isNumber(response)) {
	                return { answer_choices: [Number(response)] };
	            }
	            return { answer_choices: response };
	        }
	    }
	});


/***/ }),
/* 246 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PathItem = /** @class */ (function () {
	    function PathItem(item) {
	        _.merge(this, item);
	    }
	    PathItem.build = function (item) {
	        return new PathItem(item);
	    };
	    return PathItem;
	}());
	exports.PathItem = PathItem;


/***/ }),
/* 247 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var moment = __webpack_require__(2);
	var time_formatter_fn_1 = __webpack_require__(104);
	var PathTaskFormatter = /** @class */ (function () {
	    function PathTaskFormatter(pathTaskSecondaryTextEnum, ItemPresenterEnum, taskUpdateFn, ngTypeUtility) {
	        this.pathTaskSecondaryTextEnum = pathTaskSecondaryTextEnum;
	        this.ItemPresenterEnum = ItemPresenterEnum;
	        this.taskUpdateFn = taskUpdateFn;
	        this.ngTypeUtility = ngTypeUtility;
	    }
	    PathTaskFormatter.prototype.isAllDayEvent = function (task) {
	        return !_4.isEmpty(task.start_ts) && task.start_ts.isSame(task.end_ts, 'day');
	    };
	    PathTaskFormatter.prototype.tsIsValid = function (date) {
	        return !_4.isEmpty(date) && date.isValid();
	    };
	    PathTaskFormatter.prototype.getBeginningOfDateRange = function (task, isAx) {
	        return !this.tsIsValid(task.start_ts)
	            ? this.getStartDateMessage(task, isAx)
	            : this.getStartDateMessage(task, isAx) + " to ";
	    };
	    PathTaskFormatter.prototype.isToday = function (date) {
	        var today = moment();
	        return date.isAfter(today.startOf('day')) && date.isBefore(today.endOf('day'));
	    };
	    PathTaskFormatter.prototype.getDateMarkerText = function (task, isAx) {
	        if (this.isAllDayEvent(task)) {
	            return "" + this.getStartDateMessage(task, isAx);
	        }
	        return "" + this.getBeginningOfDateRange(task, isAx) + this.getEndDateMessage(task, isAx);
	    };
	    PathTaskFormatter.prototype.getAutoCompleteText = function (task, isAx) {
	        var textDisplay = this.pathTaskSecondaryTextEnum.get('auto_complete_active').value.secondaryText;
	        var isTaskCompleted = this.taskUpdateFn.isCompleted(task);
	        if (!isTaskCompleted && this.taskUpdateFn.isPendingComplete(task)) {
	            textDisplay = this.pathTaskSecondaryTextEnum.get('auto_complete_pending').value.secondaryText;
	        }
	        else if (isTaskCompleted) {
	            textDisplay = this.pathTaskSecondaryTextEnum.get('auto_completed').value.secondaryText;
	        }
	        if (isTaskCompleted || this.taskUpdateFn.isPendingComplete(task)) {
	            return "" + textDisplay + this.getChangedTime(task, isAx);
	        }
	        else {
	            return "" + textDisplay + this.getDateMarkerText(task, isAx);
	        }
	    };
	    PathTaskFormatter.prototype.getReminderText = function (task, isAx) {
	        if (isAx === void 0) { isAx = false; }
	        var dateTime = moment(task.due_dt + " " + task.due_tm);
	        var noTime = dateTime.hours() === 0 && dateTime.minutes() === 0;
	        var dueToday = moment().isSame(dateTime, 'day');
	        if (dueToday && noTime) {
	            return 'Due today';
	        }
	        if (dueToday) {
	            return "Due today at " + dateTime.format('h:mm a');
	        }
	        if (isAx && noTime) {
	            return "Due on " + time_formatter_fn_1.TimeFormatterFunction.monthAndDateAndYear(dateTime);
	        }
	        if (isAx) {
	            return "Due on " + time_formatter_fn_1.TimeFormatterFunction.monthAndDateAndYear(dateTime) + " at " + dateTime.format('h:mm a');
	        }
	        if (noTime) {
	            return "Due on " + this.ngTypeUtility.time.getWeekDayMonthDay(dateTime);
	        }
	        return "Due on " + this.ngTypeUtility.time.getWeekDayMonthDay(dateTime) + " at " + dateTime.format('h:mm a');
	    };
	    PathTaskFormatter.prototype.getStaffTodoText = function (task, isOverdue, isAx) {
	        if (isAx === void 0) { isAx = false; }
	        var dueDate = moment("" + task.due_date);
	        if (task.cleared_date) {
	            return "Completed on " + this.ngTypeUtility.time.getWeekDayMonthDay(moment("" + task.cleared_date));
	        }
	        if (moment().isSame(dueDate, 'day')) {
	            return 'Due today';
	        }
	        if (isOverdue) {
	            return "Overdue on " + this.ngTypeUtility.time.getWeekDayMonthDay(dueDate);
	        }
	        if (isAx) {
	            return "Due on " + time_formatter_fn_1.TimeFormatterFunction.monthAndDateAndYear(dueDate);
	        }
	        return "Due on " + this.ngTypeUtility.time.getWeekDayMonthDay(dueDate);
	    };
	    PathTaskFormatter.prototype.getOverdueText = function (task, isAx) {
	        if (isAx === void 0) { isAx = false; }
	        return "" + this.pathTaskSecondaryTextEnum.get('overdue').value.secondaryText + this.getEndDateMessage(task, isAx);
	    };
	    PathTaskFormatter.prototype.getPathItemDateText = function (task, isOverdue, isAx) {
	        if (isAx === void 0) { isAx = false; }
	        if (this.taskUpdateFn.isPersonalReminder(task)) {
	            return this.getReminderText(task, isAx);
	        }
	        if (this.taskUpdateFn.isStaffDrivenToDo(task)) {
	            return this.getStaffTodoText(task, isOverdue, isAx);
	        }
	        if (isOverdue) {
	            return this.getOverdueText(task, isAx);
	        }
	        if (this.isDateMarkerCategory(task)) {
	            return this.getDateMarkerText(task, isAx);
	        }
	        if (this.taskUpdateFn.isAutoCompletable(task)) {
	            return this.getAutoCompleteText(task, isAx);
	        }
	        if (!this.taskUpdateFn.isActive(task)) {
	            return "" + this.pathTaskSecondaryTextEnum.get(task.status).value.secondaryText + this.getChangedTime(task, isAx);
	        }
	        if (!_4.isEmpty(task.start_ts) &&
	            task.start_ts.diff(task.end_ts, 'days') === 0) {
	            return this.getEndDateMessage(task, isAx);
	        }
	        return "" + this.getBeginningOfDateRange(task, isAx) + this.getEndDateMessage(task, isAx);
	    };
	    PathTaskFormatter.prototype.getStartDateMessage = function (task, isAx) {
	        if (isAx === void 0) { isAx = false; }
	        var tsExists = this.tsIsValid(task.start_ts);
	        if (tsExists && this.isToday(task.start_ts)) {
	            return 'Today';
	        }
	        if (!tsExists) {
	            return this.pathTaskSecondaryTextEnum.get(task.status).value.secondaryText;
	        }
	        if (isAx) {
	            return time_formatter_fn_1.TimeFormatterFunction.monthAndDateAndYear(task.start_ts);
	        }
	        return time_formatter_fn_1.TimeFormatterFunction.defaultTime(task.start_ts);
	    };
	    PathTaskFormatter.prototype.getToDoTitle = function (task, item) {
	        var substitute_text = _4.get(task, 'substitute_text_by_field_by_item', {});
	        if (substitute_text[item.id]) {
	            return substitute_text[item.id].title;
	        }
	        return item.title;
	    };
	    PathTaskFormatter.prototype.getEndDateMessage = function (task, isAx) {
	        if (isAx === void 0) { isAx = false; }
	        var tsExists = this.tsIsValid(task.end_ts);
	        if (tsExists && this.isToday(task.end_ts)) {
	            return 'Today';
	        }
	        if (isAx) {
	            return tsExists
	                ? time_formatter_fn_1.TimeFormatterFunction.monthAndDateAndYear(task.end_ts)
	                : time_formatter_fn_1.TimeFormatterFunction.monthAndDateAndYear(task.due_ts);
	        }
	        return tsExists ? time_formatter_fn_1.TimeFormatterFunction.defaultTime(task.end_ts) : time_formatter_fn_1.TimeFormatterFunction.defaultTime(task.due_ts);
	    };
	    PathTaskFormatter.prototype.getChangedTime = function (task, isAx) {
	        if (_4.isEmpty(task.status_changed_ts) && isAx) {
	            return time_formatter_fn_1.TimeFormatterFunction.monthAndDateAndYear(moment());
	        }
	        if (isAx) {
	            return time_formatter_fn_1.TimeFormatterFunction.monthAndDateAndYear(moment(task.status_changed_ts));
	        }
	        if (_4.isEmpty(task.status_changed_ts)) {
	            return time_formatter_fn_1.TimeFormatterFunction.defaultTime(moment());
	        }
	        // Moment accepts both string and Moment objects.
	        return time_formatter_fn_1.TimeFormatterFunction.defaultTime(moment(task.status_changed_ts));
	    };
	    PathTaskFormatter.prototype.isDateMarkerCategory = function (task) {
	        return task.category && task.category.isEqual('date_marker');
	    };
	    PathTaskFormatter.prototype.isFullDayEvent = function (task) {
	        return (time_formatter_fn_1.TimeFormatterFunction.defaultTime(task.start_ts) === time_formatter_fn_1.TimeFormatterFunction.defaultTime(task.end_ts) &&
	            task.category &&
	            task.category.isEqual('date_marker'));
	    };
	    PathTaskFormatter.prototype.isAppointment = function (task, item) {
	        return (!this.taskUpdateFn.isPersonalReminder(task) &&
	            !this.taskUpdateFn.isStaffDrivenToDo(task) &&
	            task.category &&
	            task.category.isEqual('date_marker') &&
	            this.ItemPresenterEnum.isAppointment(item.presenter));
	    };
	    PathTaskFormatter.prototype.isAppointmentRequest = function (task, item) {
	        return (!this.taskUpdateFn.isPersonalReminder(task) &&
	            !this.taskUpdateFn.isStaffDrivenToDo(task) &&
	            (this.ItemPresenterEnum.isAppointmentRequest(item.presenter) ||
	                this.ItemPresenterEnum.isAppointmentInvitation(item.presenter)));
	    };
	    PathTaskFormatter.prototype.isArticle = function (task, item) {
	        return (!this.taskUpdateFn.isPersonalReminder(task) &&
	            !this.taskUpdateFn.isStaffDrivenToDo(task) &&
	            this.ItemPresenterEnum.isArticle(item.presenter));
	    };
	    PathTaskFormatter.prototype.getCalendarDay = function (task) {
	        return !this.hasValidStartDate(task) ? task.end_ts.format('D') : task.start_ts.format('D');
	    };
	    PathTaskFormatter.prototype.getCalendarMonth = function (task) {
	        return !this.hasValidStartDate(task) ? task.end_ts.format('MMM') : task.start_ts.format('MMM');
	    };
	    PathTaskFormatter.prototype.isPlacementTest = function (task, item) {
	        return (!this.taskUpdateFn.isPersonalReminder(task) &&
	            !this.taskUpdateFn.isStaffDrivenToDo(task) &&
	            this.ItemPresenterEnum.isPlacementtest(item.presenter));
	    };
	    PathTaskFormatter.prototype.hasValidStartDate = function (task) {
	        return !_4.isUndefined(task.start_ts) && task.start_ts.isValid();
	    };
	    return PathTaskFormatter;
	}());
	exports.PathTaskFormatter = PathTaskFormatter;


/***/ }),
/* 248 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var TaskUpdateFunction = /** @class */ (function () {
	    function TaskUpdateFunction(updateTaskStatusAndModelsCommand, TaskStatusEnum, EventCategoryEnum) {
	        this.updateTaskStatusAndModelsCommand = updateTaskStatusAndModelsCommand;
	        this.TaskStatusEnum = TaskStatusEnum;
	        this.EventCategoryEnum = EventCategoryEnum;
	    }
	    TaskUpdateFunction.prototype.getNewStatusAsString = function (task, initialStatus, isDismissed) {
	        var status = initialStatus || this.TaskStatusEnum.get(task.status).key;
	        var updateToString;
	        // Return original status if task is autocompletable
	        if (this.isAutoCompletable(task)) {
	            return status;
	        }
	        if (isDismissed && !this.TaskStatusEnum.isCompleted(status)) {
	            updateToString = this.getStatusString(status, 'DISMISSED');
	        }
	        else if (!isDismissed && !this.TaskStatusEnum.isDismissed(status)) {
	            updateToString = this.getStatusString(status, 'COMPLETED');
	        }
	        else if (!isDismissed && this.TaskStatusEnum.isDismissed(status)) {
	            updateToString = this.TaskStatusEnum.get('ACTIVE').key;
	        }
	        return updateToString;
	    };
	    TaskUpdateFunction.prototype.getStatusString = function (status, statusVal) {
	        return this.TaskStatusEnum.isActive(status)
	            ? this.TaskStatusEnum.get(statusVal).key
	            : this.TaskStatusEnum.get('ACTIVE').key;
	    };
	    TaskUpdateFunction.prototype.toggleStatus = function (task, status, isAutoComplete) {
	        isAutoComplete = !!isAutoComplete;
	        return this.updateTaskStatusAndModelsCommand(status, task, isAutoComplete).then(function (updatedTask) {
	            updatedTask.status_changed_ts = moment();
	            return updatedTask;
	        });
	    };
	    TaskUpdateFunction.prototype.toggleDismissed = function (task, initialStatus, isAutoComplete) {
	        return this.toggleStatus(task, this.getNewStatusAsString(task, initialStatus, true), isAutoComplete);
	    };
	    TaskUpdateFunction.prototype.toggleComplete = function (task, initialStatus, isAutoComplete) {
	        return this.toggleStatus(task, this.getNewStatusAsString(task, initialStatus, false), isAutoComplete);
	    };
	    TaskUpdateFunction.prototype.isActive = function (task) {
	        var status = this.TaskStatusEnum.get(task.status);
	        return this.TaskStatusEnum.isActive(status);
	    };
	    TaskUpdateFunction.prototype.isCompleted = function (task) {
	        if (this.isStaffDrivenToDo(task)) {
	            return !_4.isEmpty(_4.get(task, 'cleared_date'));
	        }
	        var status = this.TaskStatusEnum.get(task.status);
	        return this.TaskStatusEnum.isCompleted(status);
	    };
	    TaskUpdateFunction.prototype.isOverdue = function (task) {
	        if (this.isStaffDrivenToDo(task)) {
	            return !this.isCompleted(task) && moment(_4.get(task, 'due_date') || '').isBefore(moment(), 'day');
	        }
	        if (this.isPersonalReminder(task)) {
	            return false;
	        }
	        var status = this.TaskStatusEnum.get(task.status);
	        var stillActive = task.end_ts.isBefore(moment());
	        return this.TaskStatusEnum.isActive(status) && stillActive;
	    };
	    TaskUpdateFunction.prototype.isDismissed = function (task) {
	        var status = this.TaskStatusEnum.get(task.status);
	        return this.TaskStatusEnum.isDismissed(status);
	    };
	    TaskUpdateFunction.prototype.isAutoCompletable = function (task) {
	        return (!this.isPersonalReminder(task) && !this.isStaffDrivenToDo(task) && !task.is_completable && !task.is_dismissible);
	    };
	    TaskUpdateFunction.prototype.isPendingComplete = function (task) {
	        return !this.isCompleted(task) && this.isAutoCompletable(task) && !!task.is_pending_complete;
	    };
	    TaskUpdateFunction.prototype.isDateMarker = function (task) {
	        return this.EventCategoryEnum.isDateMarker(task.category);
	    };
	    TaskUpdateFunction.prototype.isPersonalReminder = function (task) {
	        return this.EventCategoryEnum.isPersonalReminder(task.category);
	    };
	    TaskUpdateFunction.prototype.isStaffDrivenToDo = function (task) {
	        return !_4.isEmpty(_4.get(task, 'created_by_name'));
	    };
	    return TaskUpdateFunction;
	}());
	exports.TaskUpdateFunction = TaskUpdateFunction;


/***/ }),
/* 249 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var AppointmentRequestPriorityFeedQuery = /** @class */ (function () {
	    function AppointmentRequestPriorityFeedQuery(ngPathItemDatastore, ngPathTaskDatastore) {
	        this.ngPathItemDatastore = ngPathItemDatastore;
	        this.ngPathTaskDatastore = ngPathTaskDatastore;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngPathItemDatastore, this.ngPathTaskDatastore);
	    }
	    AppointmentRequestPriorityFeedQuery.prototype._iPriorityFeedObjBuilder = function (currentTasks) {
	        var currentTask = _.first(currentTasks);
	        var title = currentTasks.length === 1
	            ? 'Advisor Appointment Request'
	            : "You have " + currentTasks.length + " appointment requests";
	        var subTitle = 'Check them out';
	        var action = currentTasks.length === 1
	            ? {
	                state: 'my.todos.appointmentRequest',
	                params: {
	                    eventId: currentTask.event,
	                    repeatedBy: currentTask.repeated_by
	                }
	            }
	            : { state: 'my.myAppointments' };
	        return { text: { title: title, subTitle: subTitle }, action: action };
	    };
	    AppointmentRequestPriorityFeedQuery.prototype.run = function () {
	        var apptTask = _.first(this.ngPathItemDatastore.query(function (item) { return item.presenter === 'APPOINTMENT_INVITATION'; }));
	        var currentTasks = this.ngPathTaskDatastore.query(function (task) { return task.item === _.get(apptTask, 'id'); });
	        this._count = currentTasks.length;
	        var isActive = currentTasks.length > 0;
	        var _a = this._iPriorityFeedObjBuilder(currentTasks), action = _a.action, text = _a.text;
	        this._result = {
	            icon: { type: 'calender', theme: 'magenta' },
	            action: action,
	            text: text,
	            isOverdue: false,
	            isActive: isActive
	        };
	        return this;
	    };
	    Object.defineProperty(AppointmentRequestPriorityFeedQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(AppointmentRequestPriorityFeedQuery.prototype, "count", {
	        get: function () {
	            return this._count;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return AppointmentRequestPriorityFeedQuery;
	}());
	exports.AppointmentRequestPriorityFeedQuery = AppointmentRequestPriorityFeedQuery;


/***/ }),
/* 250 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var time_formatter_fn_1 = __webpack_require__(104);
	var ToDoPriorityFeedQuery = /** @class */ (function () {
	    function ToDoPriorityFeedQuery(ngPathTaskFormatter, ngPathItemDatastore, ngPathTaskDatastore, ngTypeUtility, TaskStatusEnum, EventCategoryEnum, staffTodoListDatastore, ngStaffTodoFilterServant, ngReminderPriorityFeedQuery, reminderListDatastore) {
	        this.ngPathTaskFormatter = ngPathTaskFormatter;
	        this.ngPathItemDatastore = ngPathItemDatastore;
	        this.ngPathTaskDatastore = ngPathTaskDatastore;
	        this.ngTypeUtility = ngTypeUtility;
	        this.TaskStatusEnum = TaskStatusEnum;
	        this.EventCategoryEnum = EventCategoryEnum;
	        this.staffTodoListDatastore = staffTodoListDatastore;
	        this.ngStaffTodoFilterServant = ngStaffTodoFilterServant;
	        this.ngReminderPriorityFeedQuery = ngReminderPriorityFeedQuery;
	        this.reminderListDatastore = reminderListDatastore;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngPathItemDatastore, this.ngPathTaskDatastore, this.staffTodoListDatastore, this.reminderListDatastore);
	    }
	    ToDoPriorityFeedQuery.prototype.run = function () {
	        var _this = this;
	        var icon = { type: 'apple_and_checkmark', theme: 'blue' };
	        var todosForToday = this.ngPathTaskDatastore.query(function (task) { return _this.__getActiveToDoForToday(task, false); });
	        var tasksForToday = this.ngPathTaskDatastore.query(function (task) { return _this.__getActiveToDoForToday(task, true); });
	        var staffTodosForToday = this.ngStaffTodoFilterServant.staffTodosForToday();
	        var remindersForTodayCount = this.ngReminderPriorityFeedQuery.count;
	        var isOverdue = this.__containsOverdueToDos(todosForToday);
	        var isActive = (this.__isActive = !_.isEmpty(todosForToday));
	        this.__hasMultipleTodos = this.__isActive && todosForToday.length > 1;
	        var text = this.__getToDoText(todosForToday);
	        var action = this.__getToDoState(todosForToday);
	        this._count = tasksForToday.length + staffTodosForToday.length + remindersForTodayCount;
	        this._result = {
	            icon: icon,
	            text: text,
	            action: action,
	            isOverdue: isOverdue,
	            isActive: isActive
	        };
	        return this;
	    };
	    ToDoPriorityFeedQuery.prototype.__getActiveToDoForToday = function (task, includeDatemarkers) {
	        var today = moment();
	        var isTaskForToday = this.TaskStatusEnum.isActive(task.status) &&
	            task.show &&
	            task.mandatory &&
	            !(this.EventCategoryEnum.isTip(task.category) || this.EventCategoryEnum.isPoll(task.category)) &&
	            (task.start_ts.isBefore(today.endOf('day')) || task.end_ts.isBefore(today.endOf('day')));
	        return includeDatemarkers ? isTaskForToday : isTaskForToday && !this.EventCategoryEnum.isDateMarker(task.category);
	    };
	    ToDoPriorityFeedQuery.prototype.__containsOverdueToDos = function (taskList) {
	        var now = moment();
	        return !_.isEmpty(_.filter(taskList, function (task) { return task.end_ts.isBefore(now); }));
	    };
	    ToDoPriorityFeedQuery.prototype.__getToDoText = function (TaskList) {
	        if (this.__hasMultipleTodos || !this.__isActive) {
	            return {
	                title: "You have " + TaskList.length + " important to-dos for today",
	                subTitle: 'Check them out'
	            };
	        }
	        var priorityToDoTask = _.first(TaskList);
	        var priorityToDoItem = _.first(this.ngPathItemDatastore.query(function (item) { return item.id === priorityToDoTask.item; }));
	        return {
	            title: this.ngPathTaskFormatter.getToDoTitle(priorityToDoTask, priorityToDoItem),
	            subTitle: this.__getToDoDateTime(priorityToDoTask)
	        };
	    };
	    ToDoPriorityFeedQuery.prototype.__getToDoDateTime = function (task) {
	        var taskDue = task.end_ts;
	        var noTime = taskDue.hours() === 0 && taskDue.minutes() === 0;
	        var dueToday = moment().diff(taskDue, 'days') === 0;
	        var sameEndDate = moment(task.start_ts).diff(task.end_ts, 'days') === 0;
	        if (dueToday && noTime) {
	            return 'Due today';
	        }
	        if (dueToday) {
	            return "Due today at " + taskDue.format('h:mm a');
	        }
	        if (noTime) {
	            return "Due " + this.ngTypeUtility.time.getWeekDayMonthDay(taskDue);
	        }
	        if (sameEndDate) {
	            return "" + time_formatter_fn_1.TimeFormatterFunction.defaultTime(task.end_ts);
	        }
	        return "Due " + this.ngTypeUtility.time.getWeekDayMonthDay(taskDue) + " at " + taskDue.format('h:mm a');
	    };
	    ToDoPriorityFeedQuery.prototype.__getToDoState = function (TaskList) {
	        if (this.__hasMultipleTodos || !this.__isActive) {
	            return {
	                state: 'my.todos',
	                params: {
	                    filterBy: 'todostoday'
	                }
	            };
	        }
	        var priorityToDoTask = _.first(TaskList);
	        return {
	            state: 'my.todos.details',
	            params: {
	                eventId: priorityToDoTask.event,
	                repeatedBy: priorityToDoTask.repeated_by
	            }
	        };
	    };
	    Object.defineProperty(ToDoPriorityFeedQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ToDoPriorityFeedQuery.prototype, "count", {
	        get: function () {
	            return this._count;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return ToDoPriorityFeedQuery;
	}());
	exports.ToDoPriorityFeedQuery = ToDoPriorityFeedQuery;


/***/ }),
/* 251 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var IntakeService = /** @class */ (function () {
	    function IntakeService() {
	        this.initialize();
	    }
	    IntakeService.prototype.setOnAdvance = function (fn) {
	        if (_.isFunction(fn)) {
	            this._advance = fn;
	        }
	        else {
	            this._advance = angular.noop;
	        }
	    };
	    IntakeService.prototype.setOnGoTo = function (fn) {
	        if (_.isFunction(fn)) {
	            this._goTo = fn;
	        }
	        else {
	            this._goTo = angular.noop;
	        }
	    };
	    IntakeService.prototype.setOnCompletion = function (fn) {
	        if (_.isFunction(fn)) {
	            this._onComplete = fn;
	        }
	        else {
	            this._onComplete = angular.noop;
	        }
	    };
	    IntakeService.prototype.onAdvance = function (index) {
	        var args = [];
	        for (var _i = 1; _i < arguments.length; _i++) {
	            args[_i - 1] = arguments[_i];
	        }
	        var thisTabData = _.result(this._tabDataConfig, index);
	        args.push(thisTabData);
	        return this._advance(index, args);
	    };
	    IntakeService.prototype.onGoTo = function (index) {
	        var args = [];
	        for (var _i = 1; _i < arguments.length; _i++) {
	            args[_i - 1] = arguments[_i];
	        }
	        var thisTabData = _.result(this._tabDataConfig, index);
	        args.push(thisTabData);
	        return this._goTo(index, args);
	    };
	    IntakeService.prototype.onCompletion = function () {
	        this._onComplete();
	    };
	    IntakeService.prototype.initialize = function () {
	        this._advance = angular.noop;
	        this._goTo = angular.noop;
	    };
	    IntakeService.prototype.configure = function (configObj) {
	        this.setOnAdvance(configObj.onAdvance);
	        this.setOnGoTo(configObj.onGoTo);
	    };
	    return IntakeService;
	}());
	exports.IntakeService = IntakeService;


/***/ }),
/* 252 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var IntakeStatusService = /** @class */ (function () {
	    function IntakeStatusService() {
	        this._completedIntake = false;
	    }
	    IntakeStatusService.prototype.update = function (status) {
	        this._completedIntake = status;
	    };
	    Object.defineProperty(IntakeStatusService.prototype, "hasCompletedIntake", {
	        get: function () {
	            return this._completedIntake;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(IntakeStatusService.prototype, "hasNotCompletedIntake", {
	        get: function () {
	            return !this._completedIntake;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return IntakeStatusService;
	}());
	exports.IntakeStatusService = IntakeStatusService;


/***/ }),
/* 253 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var TodosContentService = /** @class */ (function () {
	    function TodosContentService($state, FEATURE_PERSONAL_REMINDERS, EventCategoryEnum, TodoFilterEnum, TaskStatusEnum, appConfigModel, ngReminderFilterServant, ngStaffTodoFilterServant, ngTodoFilterServant, ngTodoDateRangeService, loadPathTasksCommand, loadAllReminderDateRangeCommand, loadStaffTodoCommand, ngTipToDoQuery, ngShouldDoToDoQuery, ngMustDoToDoQuery, ngReminderListQuery, ngOverdueToDoQuery, $q, ngStaffTodoService) {
	        this.$state = $state;
	        this.FEATURE_PERSONAL_REMINDERS = FEATURE_PERSONAL_REMINDERS;
	        this.EventCategoryEnum = EventCategoryEnum;
	        this.TodoFilterEnum = TodoFilterEnum;
	        this.TaskStatusEnum = TaskStatusEnum;
	        this.appConfigModel = appConfigModel;
	        this.ngReminderFilterServant = ngReminderFilterServant;
	        this.ngStaffTodoFilterServant = ngStaffTodoFilterServant;
	        this.ngTodoFilterServant = ngTodoFilterServant;
	        this.ngTodoDateRangeService = ngTodoDateRangeService;
	        this.loadPathTasksCommand = loadPathTasksCommand;
	        this.loadAllReminderDateRangeCommand = loadAllReminderDateRangeCommand;
	        this.loadStaffTodoCommand = loadStaffTodoCommand;
	        this.ngTipToDoQuery = ngTipToDoQuery;
	        this.ngShouldDoToDoQuery = ngShouldDoToDoQuery;
	        this.ngMustDoToDoQuery = ngMustDoToDoQuery;
	        this.ngReminderListQuery = ngReminderListQuery;
	        this.ngOverdueToDoQuery = ngOverdueToDoQuery;
	        this.$q = $q;
	        this.ngStaffTodoService = ngStaffTodoService;
	        this.flags = {
	            isReminderEnabled: appConfigModel.isFeatureEnabled(FEATURE_PERSONAL_REMINDERS),
	            isMoreLoading: false
	        };
	    }
	    TodosContentService.prototype.initialize = function (activeFilter) {
	        var _this = this;
	        this.activeFilter = activeFilter;
	        this.filterMethod = this.TodoFilterEnum.isReminder(this.activeFilter)
	            ? this.ngReminderFilterServant.filterStrategy.getByKey(this.activeFilter.servantMethod)
	            : this.ngTodoFilterServant.filterStrategy.getByKey(this.activeFilter.servantMethod);
	        this.ngStaffTodoService.loadStaffTodos(this.ngTodoDateRangeService.getCurrentDateRange()).then(function () {
	            _this.loadTodosAndReminders();
	        });
	        this.shouldDoTodos = this.ngShouldDoToDoQuery.result;
	        this.tips = this.ngTipToDoQuery.result;
	    };
	    TodosContentService.prototype.loadTodosAndReminders = function () {
	        //if there's an active filter, get the data from the filter method
	        this.mandatoryTodos = this.filterMethod();
	        if (this.TodoFilterEnum.isReminder(this.activeFilter)) {
	            return;
	        }
	        // unless it's the all todos and events page, we don't need to load upcoming todos or personal reminders
	        this.mandatoryUpcomingTodos = [];
	        if (this.TodoFilterEnum.isAllTodoAndEvent(this.activeFilter)) {
	            this.mandatoryUpcomingTodos = _4.difference(this.ngTodoFilterServant.activeToDosAndEvents(), this.mandatoryTodos);
	            // every todo that's active but not included in "today's todos and events" are included in upcoming todos
	            this.mandatoryTodos = this.mergeTodosAndReminders(this.mandatoryTodos, this.ngReminderFilterServant.remindersForToday());
	            this.mandatoryUpcomingTodos = this.mergeTodosAndReminders(this.mandatoryUpcomingTodos, this.ngReminderFilterServant.upcomingReminders());
	        }
	    };
	    TodosContentService.prototype.mergeTodosAndReminders = function (todos, reminders) {
	        var _this = this;
	        var mergedTodos = _4.union(todos, reminders);
	        mergedTodos = _4.sortBy(mergedTodos, function (_a) {
	            var task = _a.task;
	            if (task.category && task.category === _this.EventCategoryEnum.PERSONAL_REMINDER) {
	                return moment(task.due_dt);
	            }
	            return task.end_ts;
	        });
	        return mergedTodos;
	    };
	    TodosContentService.prototype.isDefaultFilter = function () {
	        return this.TodoFilterEnum.isAllTodoAndEvent(this.activeFilter);
	    };
	    TodosContentService.prototype.resetFilter = function () {
	        this.$state.get('my.todos').data.viewTitle = 'To-dos Landing Page';
	        this.$state.go('my.todos', { filterBy: 'all' });
	    };
	    TodosContentService.prototype.isMandatoryTodayEmpty = function () {
	        return _4.isEmpty(this.mandatoryTodos);
	    };
	    TodosContentService.prototype.isMandatoryUpcomingEmpty = function () {
	        return _4.isEmpty(this.mandatoryUpcomingTodos);
	    };
	    TodosContentService.prototype.showMore = function () {
	        var _this = this;
	        if (!this.flags.isMoreLoading) {
	            this.flags.isMoreLoading = true;
	            var dateRange = this.ngTodoDateRangeService.getShowMoreDateRange();
	            this.$q
	                .all([
	                this.loadPathTasksCommand(dateRange),
	                this.loadAllReminderDateRangeCommand(dateRange),
	                this.loadStaffTodoCommand(dateRange)
	            ])
	                .finally(function () {
	                _this.flags.isMoreLoading = false;
	                _this.loadTodosAndReminders();
	            });
	        }
	    };
	    return TodosContentService;
	}());
	exports.TodosContentService = TodosContentService;


/***/ }),
/* 254 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PathTitleColorService = /** @class */ (function () {
	    function PathTitleColorService() {
	        this.colors = {};
	        this.usedColors = Array(12);
	        _4.fill(this.usedColors, false);
	    }
	    PathTitleColorService.prototype.getColor = function (category) {
	        var index = JSON.stringify(category);
	        if (!_4.isUndefined(this.colors[index])) {
	            return this.colors[index];
	        }
	        var charSum = _4.reduce(index.split(''), function (total, char) {
	            return total + char.charCodeAt(0);
	        }, 0);
	        var colorCode = charSum % 12;
	        if (this.usedColors[colorCode]) {
	            colorCode = this.getAvailableColor(colorCode);
	        }
	        this.usedColors[colorCode] = true;
	        this.colors[index] = colorCode + 1;
	        return this.colors[index];
	    };
	    PathTitleColorService.prototype.getAvailableColor = function (colorCode) {
	        var newColor = _4.indexOf(this.usedColors, false);
	        if (newColor === -1) {
	            _4.fill(this.usedColors, false);
	            return colorCode;
	        }
	        return newColor;
	    };
	    PathTitleColorService.prototype.getTextColorClass = function (category) {
	        return "clr-" + this.getColor(category) + "-txt";
	    };
	    return PathTitleColorService;
	}());
	exports.PathTitleColorService = PathTitleColorService;


/***/ }),
/* 255 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var PathToggleService = /** @class */ (function () {
	    function PathToggleService() {
	        this.flags = {
	            personalReminder: false
	        };
	    }
	    Object.defineProperty(PathToggleService.prototype, "toggles", {
	        get: function () {
	            return this.flags;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    PathToggleService.prototype.setToggles = function (flagValues) {
	        this.flags = tslib_1.__assign(tslib_1.__assign({}, this.flags), flagValues);
	    };
	    PathToggleService.prototype.setToggle = function (key, value) {
	        if (_4.has(this.flags, key)) {
	            this.flags[key] = value;
	        }
	    };
	    return PathToggleService;
	}());
	exports.PathToggleService = PathToggleService;


/***/ }),
/* 256 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PathDetailLocationService = /** @class */ (function () {
	    function PathDetailLocationService($window) {
	        this.$window = $window;
	    }
	    Object.defineProperty(PathDetailLocationService.prototype, "googleMapsBaseUrl", {
	        get: function () {
	            if (this.$window.ionic && this.$window.ionic.Platform.isAndroid()) {
	                return 'geo://maps.google.com/?q=';
	            }
	            else if (this.$window.ionic && this.$window.ionic.Platform.isIOS()) {
	                return 'maps://maps.apple.com/?q=';
	            }
	            else {
	                return 'https://maps.google.com/?q=';
	            }
	        },
	        enumerable: true,
	        configurable: true
	    });
	    PathDetailLocationService.prototype.getFormattedLocations = function (locations) {
	        var mapBaseUrl = this.googleMapsBaseUrl;
	        return _4.map(_4.filter(locations, function (location) { return !_4.isEmpty(location.address); }), function (location) {
	            return {
	                properties: location.properties,
	                name: location.properties.name,
	                link: mapBaseUrl + location.address,
	                address: location.address,
	                comments: location.comments
	            };
	        });
	    };
	    return PathDetailLocationService;
	}());
	exports.PathDetailLocationService = PathDetailLocationService;


/***/ }),
/* 257 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var moment = __webpack_require__(2);
	var TodoDateRangeService = /** @class */ (function () {
	    function TodoDateRangeService() {
	        this.__dateFormat = 'YYYY-MM-DD';
	        this.__axDateFormat = 'MM/DD';
	        this.startDate = moment();
	        this.endDate = moment().add(2, 'w');
	    }
	    TodoDateRangeService.prototype.getCurrentDateRange = function () {
	        return {
	            start: this.startDate.format(this.__dateFormat),
	            end: this.endDate.format(this.__dateFormat)
	        };
	    };
	    TodoDateRangeService.prototype.getShowMoreDateRange = function () {
	        return {
	            start: this.startDate.format(this.__dateFormat),
	            end: this.endDate.add(2, 'w').format(this.__dateFormat)
	        };
	    };
	    TodoDateRangeService.prototype.getShowMoreDateRangeText = function () {
	        return {
	            start: this.startDate.format(this.__axDateFormat),
	            end: this.endDate.clone().add(2, 'w').format(this.__axDateFormat)
	        };
	    };
	    TodoDateRangeService.prototype.incrementCurrentDateRange = function () {
	        this.endDate = this.endDate.add(2, 'w');
	    };
	    return TodoDateRangeService;
	}());
	exports.TodoDateRangeService = TodoDateRangeService;


/***/ }),
/* 258 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var TodoRefreshService = /** @class */ (function () {
	    function TodoRefreshService(getAdaptivePathChangesCommand) {
	        this.getAdaptivePathChangesCommand = getAdaptivePathChangesCommand;
	        this.reset();
	    }
	    TodoRefreshService.prototype.showWithText = function (text) {
	        this.text = text;
	        this.show = true;
	    };
	    TodoRefreshService.prototype.reset = function () {
	        this.text = '';
	        this.show = false;
	    };
	    TodoRefreshService.prototype.checkForUpdates = function () {
	        var _this = this;
	        return this.getAdaptivePathChangesCommand().then(function (response) {
	            if (response.adaptivePathChanges > 0) {
	                _this.showWithText(response.adaptivePathChanges + " Update" + (_4.size(response.adaptivePathChanges) <= 1 ? '' : 's') + " Available");
	            }
	        });
	    };
	    return TodoRefreshService;
	}());
	exports.TodoRefreshService = TodoRefreshService;


/***/ }),
/* 259 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PathModalService = /** @class */ (function () {
	    function PathModalService() {
	        this.isReminderModalOpen = false;
	        this.isAutoCompleteModalOpen = false;
	    }
	    Object.defineProperty(PathModalService.prototype, "reminderModalOpen", {
	        get: function () {
	            return this.isReminderModalOpen;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(PathModalService.prototype, "autoCompleteModalOpen", {
	        get: function () {
	            return this.isAutoCompleteModalOpen;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    PathModalService.prototype.toggleReminderModal = function (state) {
	        this.isReminderModalOpen = state;
	    };
	    PathModalService.prototype.toggleAutoCompleteModal = function (state) {
	        this.isAutoCompleteModalOpen = state;
	    };
	    return PathModalService;
	}());
	exports.PathModalService = PathModalService;


/***/ }),
/* 260 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_platform_1 = __webpack_require__(8);
	var _4 = __webpack_require__(1);
	var LoginHelpModalController = /** @class */ (function () {
	    function LoginHelpModalController(loginConfigModel, ngLoginHelpModalService, appConfigModel) {
	        this.loginConfigModel = loginConfigModel;
	        this.ngLoginHelpModalService = ngLoginHelpModalService;
	        this.appConfigModel = appConfigModel;
	        this.isOpen = true;
	        this.isMobile = false;
	        this.login = this.appConfigModel.model.LOGIN_HELP;
	        this.isMobile = utility_ts_platform_1.PlatformUtility.isMobile();
	    }
	    LoginHelpModalController.prototype.closeDialog = function () {
	        this.isOpen = false;
	        if (_4.isFunction(this.onClose)) {
	            this.onClose();
	        }
	    };
	    return LoginHelpModalController;
	}());
	var LoginHelpModalComponent = /** @class */ (function () {
	    function LoginHelpModalComponent() {
	        this.templateUrl = 'data-ng-authentication/src/components/login_help_modal/login_help_modal.html';
	        this.controller = LoginHelpModalController;
	        this.bindings = {
	            isOpen: '=',
	            onClose: '&'
	        };
	    }
	    return LoginHelpModalComponent;
	}());
	exports.LoginHelpModalComponent = LoginHelpModalComponent;


/***/ }),
/* 261 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var AuthenticationConfiguration = /** @class */ (function () {
	    function AuthenticationConfiguration() {
	    }
	    AuthenticationConfiguration.prototype.configure = function (userConfig) {
	        var currentYear = new Date().getFullYear();
	        var DEFAULTS = {
	            goToStateOnLogout: 'authentication',
	            onLoggedInConfirmation: undefined,
	            onLoggedInFormSuccess: undefined,
	            automaticAccountSynchronization: true,
	            authenticationApiPrefix: '',
	            logoClass: '',
	            defaultBackgroundImageUrl: '',
	            metadata: {
	                productName: 'EAB App',
	                showLockup: true,
	                tagLine: undefined,
	                formalTitle: 'EAB Student Success Collaborative',
	                copyright: "&copy; " + currentYear + " EAB",
	                tagList: [],
	                footerLinks: {},
	                termsOfUseModal: {
	                    enable: false,
	                    templateUrl: 'capability-ng-authentication/src/views/authentication/tou_modal.html'
	                }
	            }
	        };
	        this.configuration = _4.merge({}, DEFAULTS, userConfig);
	        return this;
	    };
	    AuthenticationConfiguration.prototype.activate = function (userConfig) {
	        return this.configure(userConfig);
	    };
	    AuthenticationConfiguration.prototype.read = function () {
	        return this.configuration;
	    };
	    AuthenticationConfiguration.prototype.$get = function () {
	        return this;
	    };
	    return AuthenticationConfiguration;
	}());
	exports.AuthenticationConfiguration = AuthenticationConfiguration;


/***/ }),
/* 262 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var account_token_servant_1 = __webpack_require__(63);
	var _4 = __webpack_require__(1);
	var AccountIdentityDatastoreDTD = {
	    id: 'integer',
	    username: 'string',
	    email: 'email',
	    token: 'string',
	    tracking_id: 'string',
	    gainsight_id: 'string',
	    account_type: 'string',
	    account_name: 'string',
	    first_name: 'string',
	    last_name: 'string',
	    student_nk: 'string',
	    partner_nk: 'string',
	    student_id: 'integer',
	    channel_name: 'string',
	    permissions: 'array',
	    is_instructor: 'boolean',
	    fullname: {
	        optional: true,
	        type: 'string'
	    },
	    emailUsername: {
	        optional: true,
	        type: 'string'
	    },
	    initials: {
	        optional: true,
	        type: 'string'
	    },
	    group_names: 'array'
	};
	var AccountIdentityDatastore = /** @class */ (function () {
	    function AccountIdentityDatastore(Interface) {
	        this.Interface = Interface;
	        this.id = 'account-identity';
	        this.initialize();
	        this.clear();
	    }
	    AccountIdentityDatastore.prototype.update = function (data) {
	        this.store = this.Interface.make(AccountIdentityDatastoreDTD, data);
	        this.store = this.calculateNewProperties(this.sanitizeProperties(this.store));
	        return this;
	    };
	    AccountIdentityDatastore.prototype.updateWithValidToken = function (accountToken) {
	        if (account_token_servant_1.AccountTokenServant.isUserAlreadyLoggedIn(accountToken)) {
	            this.update(accountToken);
	        }
	    };
	    AccountIdentityDatastore.prototype.initialize = function () {
	        this.store = this.Interface.generate(AccountIdentityDatastoreDTD);
	        this.store = this.calculateNewProperties(this.sanitizeProperties(this.store));
	        return this;
	    };
	    AccountIdentityDatastore.prototype.read = function (fn) {
	        return fn(this.store);
	    };
	    AccountIdentityDatastore.prototype.externalize = function () {
	        return this.Interface.serialize(AccountIdentityDatastoreDTD, this.store);
	    };
	    AccountIdentityDatastore.prototype.clear = function () {
	        this.store = {};
	    };
	    AccountIdentityDatastore.prototype.sanitizeProperties = function (store) {
	        store.firstName = store.first_name = _4.trim(store.first_name);
	        store.lastName = store.last_name = _4.trim(store.last_name);
	        return store;
	    };
	    AccountIdentityDatastore.prototype.calculateNewProperties = function (store) {
	        var NO_INITIALS = ':)';
	        var emailAddress = store.username.indexOf('@') !== -1 ? store.username : store.email;
	        // ['si-umich', 'navigate', 'eab', 'com']
	        // ['localhost']
	        //
	        var partnerNK = new URL(location.href).hostname.split('.')[0];
	        store.partner_nk = partnerNK;
	        store.fullname = store.firstName + " " + store.lastName;
	        store.emailUsername = emailAddress.slice(0, emailAddress.indexOf('@'));
	        store.initials =
	            !_4.isEmpty(store.firstName) && !_4.isEmpty(store.lastName)
	                ? _4.capitalize(_4.first(store.firstName)) + _4.capitalize(_4.first(store.lastName))
	                : NO_INITIALS;
	        return store;
	    };
	    return AccountIdentityDatastore;
	}());
	exports.AccountIdentityDatastore = AccountIdentityDatastore;


/***/ }),
/* 263 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var AccountStatusDatastoreDTD = {
	    is_advisor: 'boolean',
	    is_instructor: 'boolean',
	    is_superuser: 'boolean',
	    /** acceptedTerms */
	    tandc_accepted: {
	        optional: true,
	        type: 'tri-state'
	    },
	    /** termsHTML */
	    tandc_text: {
	        optional: true,
	        type: 'html',
	        defaultValue: undefined
	    },
	    /** introAccepted */
	    intro_accepted: {
	        optional: true,
	        type: 'tri-state'
	    },
	    /** isFirstLogin */
	    first_login: {
	        type: 'boolean'
	    },
	    year_classification: {
	        optional: true,
	        type: 'integer'
	    },
	    is_impersonating: {
	        optional: true,
	        type: 'boolean'
	    }
	};
	var AccountStatusDatastore = /** @class */ (function () {
	    function AccountStatusDatastore(Interface) {
	        this.Interface = Interface;
	        this.id = 'account-status';
	        this.store = {};
	        this.initialize();
	    }
	    AccountStatusDatastore.prototype.update = function (data) {
	        this.store = this.Interface.make(AccountStatusDatastoreDTD, data);
	        return this;
	    };
	    AccountStatusDatastore.prototype.initialize = function () {
	        this.store = this.Interface.generate(AccountStatusDatastoreDTD);
	        return this;
	    };
	    AccountStatusDatastore.prototype.externalize = function () {
	        return this.Interface.serialize(AccountStatusDatastoreDTD, this.store);
	    };
	    AccountStatusDatastore.prototype.read = function (fn) {
	        return fn(this.store);
	    };
	    AccountStatusDatastore.prototype.clear = function () {
	        this.store = {};
	    };
	    return AccountStatusDatastore;
	}());
	exports.AccountStatusDatastore = AccountStatusDatastore;


/***/ }),
/* 264 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MemberConfigurationDatastoreDTD = {
	    auth_type: {
	        type: 'enum',
	        typeDef: 'AuthTypeEnum',
	        defaultValue: 'NATIVE'
	    },
	    login_footer_url: 'string',
	    login_header_url: 'string',
	    login_url: 'string',
	    logout_url: 'string',
	    theme_primary_color: 'string',
	    inst_name: 'string',
	    hello_completed: {
	        optional: true,
	        type: 'tri-state',
	        defaultValue: false
	    },
	    render_type: {
	        type: 'enum',
	        typeDef: 'RenderTypeEnum',
	        defaultValue: 'BUTTON_ONLY_LOGIN'
	    },
	    institution_media_paths: 'object',
	    section_label: 'string',
	    user_id_label: {
	        type: 'string',
	        defaultValue: 'Enter your User ID'
	    },
	    login_config_message: 'string'
	};
	var MemberConfigurationDatastore = /** @class */ (function () {
	    function MemberConfigurationDatastore(Interface) {
	        this.Interface = Interface;
	        this.id = 'login-configuration';
	        this.store = {};
	        this.initialize();
	    }
	    MemberConfigurationDatastore.prototype.update = function (data) {
	        this.store = this.Interface.make(MemberConfigurationDatastoreDTD, data);
	        return this;
	    };
	    MemberConfigurationDatastore.prototype.initialize = function () {
	        this.store = this.Interface.generate(MemberConfigurationDatastoreDTD);
	        return this;
	    };
	    MemberConfigurationDatastore.prototype.externalize = function () {
	        return this.Interface.serialize(MemberConfigurationDatastoreDTD, this.store);
	    };
	    MemberConfigurationDatastore.prototype.read = function (fn) {
	        return fn(this.store);
	    };
	    return MemberConfigurationDatastore;
	}());
	exports.MemberConfigurationDatastore = MemberConfigurationDatastore;


/***/ }),
/* 265 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var AccountModelInterface = {
	    id: 'integer',
	    username: 'string',
	    email: 'email',
	    token: 'string',
	    tracking_id: 'string',
	    gainsight_id: 'string',
	    account_type: 'string',
	    account_name: 'string',
	    fullname: 'string',
	    first_login: {
	        type: 'boolean',
	        writeToKey: 'isFirstLogin'
	    },
	    first_name: {
	        type: 'string',
	        writeToKey: 'firstName'
	    },
	    last_name: {
	        type: 'string',
	        writeToKey: 'lastName'
	    },
	    student_nk: 'string',
	    student_id: 'integer',
	    channel_name: 'string',
	    is_advisor: {
	        type: 'boolean',
	        writeToKey: 'isAdvisor'
	    },
	    is_instructor: {
	        type: 'boolean',
	        writeToKey: 'isInstructor'
	    },
	    is_superuser: {
	        type: 'boolean',
	        writeToKey: 'isSuperuser'
	    },
	    isContentManager: 'boolean',
	    group_names: {
	        type: 'array',
	        writeToKey: 'groupNames'
	    },
	    partner_nk: 'string',
	    permissions: {
	        type: 'array'
	    },
	    tandc_accepted: {
	        optional: true,
	        type: 'tri-state',
	        writeToKey: 'acceptedTerms'
	    },
	    tandc_text: {
	        optional: true,
	        type: 'html',
	        writeToKey: 'termsHTML',
	        defaultValue: undefined
	    },
	    intro_accepted: {
	        optional: true,
	        type: 'tri-state',
	        writeToKey: 'introAccepted'
	    },
	    year_classification: {
	        optional: true,
	        type: 'integer',
	        writeToKey: 'yearClassification'
	    },
	    is_impersonating: {
	        optional: true,
	        type: 'boolean',
	        writeToKey: 'isImpersonating'
	    }
	};
	var AccountModel = /** @class */ (function () {
	    function AccountModel(Interface, ngAccountStatusDatastore, ngAccountIdentityDatastore) {
	        this.Interface = Interface;
	        this.ngAccountStatusDatastore = ngAccountStatusDatastore;
	        this.ngAccountIdentityDatastore = ngAccountIdentityDatastore;
	        this.permissionStrings = {
	            student: 'core.use_student',
	            advisor: 'core.use_advisor',
	            instructor: '',
	            contentManager: 'cms.use_contentmanager'
	        };
	        this.initialize();
	    }
	    AccountModel.prototype.clear = function () {
	        this.ngAccountIdentityDatastore.initialize();
	        this.ngAccountStatusDatastore.initialize();
	        return this.synchronize();
	    };
	    AccountModel.prototype.initialize = function () {
	        return this.clear();
	    };
	    AccountModel.prototype.update = function (data) {
	        this.ngAccountIdentityDatastore.update(data);
	        this.ngAccountStatusDatastore.update(data);
	        return this.synchronize();
	    };
	    AccountModel.prototype.synchronize = function () {
	        var o = _4.merge({}, this.ngAccountIdentityDatastore.read(function (store) { return store; }), this.ngAccountStatusDatastore.read(function (store) { return store; }));
	        this.Interface.implement(AccountModelInterface, o, this);
	        _4.merge(this, this.__getUserTypeInfo());
	        return this;
	    };
	    AccountModel.prototype.export = function () {
	        return this.Interface.serialize(AccountModelInterface, this);
	    };
	    AccountModel.prototype.isLoggedIn = function () {
	        return !_4.isEmpty(this.username);
	    };
	    AccountModel.prototype.isValid = function () {
	        return this.isLoggedIn();
	    };
	    AccountModel.prototype.__getUserTypeInfo = function () {
	        return {
	            isAdvisor: this.__isAdvisor(),
	            isInstructor: this.__isInstructor(),
	            isContentManager: this.__isContentManager(),
	            isStudent: this.__isStudent()
	        };
	    };
	    AccountModel.prototype.__isStudent = function () {
	        return !_4.isEmpty(this.permissions) && _4.includes(this.permissions, this.permissionStrings.student);
	    };
	    AccountModel.prototype.__isInstructor = function () {
	        return !_4.isEmpty(this.groupNames) && _4.includes(this.groupNames, 'instructor');
	    };
	    AccountModel.prototype.__isContentManager = function () {
	        return !_4.isEmpty(this.permissions) && _4.includes(this.permissions, this.permissionStrings.contentManager);
	    };
	    AccountModel.prototype.__isAdvisor = function () {
	        return !_4.isEmpty(this.groupNames) && _4.includes(this.groupNames, 'advisor');
	    };
	    return AccountModel;
	}());
	exports.AccountModel = AccountModel;


/***/ }),
/* 266 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var LoginConfigModelDTD = {
	    auth_type: {
	        type: 'enum',
	        typeDef: 'AuthTypeEnum',
	        defaultValue: 'NATIVE'
	    },
	    login_footer_url: 'string',
	    login_header_url: 'string',
	    login_url: 'string',
	    logout_url: 'string',
	    theme_primary_color: 'string',
	    inst_name: 'string',
	    hello_completed: {
	        optional: true,
	        type: 'tri-state',
	        writeToKey: 'helloCompleted',
	        defaultValue: false
	    },
	    render_type: {
	        type: 'enum',
	        typeDef: 'RenderTypeEnum',
	        defaultValue: 'BUTTON_ONLY_LOGIN'
	    },
	    institution_media_paths: 'object',
	    section_label: 'string',
	    intro_accepted: 'boolean',
	    tandc_accepted: 'boolean',
	    tandc_text: 'html',
	    user_id_label: {
	        type: 'string',
	        defaultValue: 'Enter your User ID',
	        writeToKey: 'userIdLabel'
	    },
	    login_config_message: 'string'
	};
	var LoginConfigModel = /** @class */ (function () {
	    function LoginConfigModel(Interface, ngMemberConfigurationDatastore, ngAccountStatusDatastore) {
	        this.Interface = Interface;
	        this.ngMemberConfigurationDatastore = ngMemberConfigurationDatastore;
	        this.ngAccountStatusDatastore = ngAccountStatusDatastore;
	    }
	    LoginConfigModel.prototype.clear = function () {
	        this.ngMemberConfigurationDatastore.initialize();
	        this.ngAccountStatusDatastore.initialize();
	        return this.synchronize();
	    };
	    LoginConfigModel.prototype.initialize = function () {
	        this.clear();
	    };
	    LoginConfigModel.prototype.update = function (data) {
	        this.ngMemberConfigurationDatastore.update(data);
	        this.ngAccountStatusDatastore.update(data);
	        return this.synchronize();
	    };
	    LoginConfigModel.prototype.isValid = function () {
	        return !_4.isEmpty(this.login_url);
	    };
	    LoginConfigModel.prototype.synchronize = function () {
	        var o = _4.merge({}, this.ngMemberConfigurationDatastore.read(function (store) { return store; }), this.ngAccountStatusDatastore.read(function (store) { return store; }));
	        this.Interface.implement(LoginConfigModelDTD, o, this);
	        return this;
	    };
	    return LoginConfigModel;
	}());
	exports.LoginConfigModel = LoginConfigModel;


/***/ }),
/* 267 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var LoginHelpModalService = /** @class */ (function () {
	    function LoginHelpModalService() {
	        this.isShow = false;
	    }
	    Object.defineProperty(LoginHelpModalService.prototype, "shouldShow", {
	        get: function () {
	            return this.isShow;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    LoginHelpModalService.prototype.show = function () {
	        this.isShow = true;
	    };
	    LoginHelpModalService.prototype.hide = function () {
	        this.isShow = false;
	    };
	    return LoginHelpModalService;
	}());
	exports.LoginHelpModalService = LoginHelpModalService;


/***/ }),
/* 268 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_js_enumeration_1 = __webpack_require__(33);
	exports.RenderTypeEnum = utility_js_enumeration_1.EnumerationBuilder.useDefinitionAsEnum('RenderTypeEnum', {
	    USER_PASS_LOGIN: 'USER_PASS_LOGIN',
	    BUTTON_ONLY_LOGIN: 'BUTTON_ONLY_LOGIN'
	});


/***/ }),
/* 269 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var custom_text_service_1 = __webpack_require__(271);
	var appointment_scheduling_servant_1 = __webpack_require__(855);
	var custom_contents_servant_1 = __webpack_require__(270);
	var report_config_service_1 = __webpack_require__(106);
	var report_config_service_2 = __webpack_require__(106);
	exports.ReportConfigService = report_config_service_2.ReportConfigService;
	angular
	    .module('data-ng-custom-text', [])
	    .service('ngCustomTextService', custom_text_service_1.CustomTextService)
	    .service('ngCustomContentsServant', custom_contents_servant_1.CustomContentsServant)
	    .service('ngAppointmentSchedulingServant', appointment_scheduling_servant_1.AppointmentSchedulingServant)
	    .service('ngReportConfigService', report_config_service_1.ReportConfigService);
	__webpack_require__(2090);
	__webpack_require__(2095);
	__webpack_require__(2096);
	__webpack_require__(2091);
	__webpack_require__(2092);
	__webpack_require__(2093);
	__webpack_require__(2094);
	__webpack_require__(2088);
	__webpack_require__(2089);
	__webpack_require__(2102);
	__webpack_require__(2103);
	__webpack_require__(2098);
	__webpack_require__(2097);
	__webpack_require__(2099);
	__webpack_require__(2100);
	__webpack_require__(2101);
	__webpack_require__(853);
	__webpack_require__(854);
	__webpack_require__(270);
	__webpack_require__(271);
	__webpack_require__(106);
	tslib_1.__exportStar(__webpack_require__(271), exports);
	tslib_1.__exportStar(__webpack_require__(106), exports);
	tslib_1.__exportStar(__webpack_require__(270), exports);
	tslib_1.__exportStar(__webpack_require__(855), exports);
	tslib_1.__exportStar(__webpack_require__(853), exports);
	tslib_1.__exportStar(__webpack_require__(854), exports);


/***/ }),
/* 270 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var CustomContentsServant = /** @class */ (function () {
	    function CustomContentsServant(ngStcCustomContentsModel, loadStcCustomContentsCommand, ngStcSchedulingConfigModel, ngAppointmentSchedulingServant, appConfigModel, getScheduleAppointmentLabelCommand) {
	        this.ngStcCustomContentsModel = ngStcCustomContentsModel;
	        this.loadStcCustomContentsCommand = loadStcCustomContentsCommand;
	        this.ngStcSchedulingConfigModel = ngStcSchedulingConfigModel;
	        this.ngAppointmentSchedulingServant = ngAppointmentSchedulingServant;
	        this.appConfigModel = appConfigModel;
	        this.getScheduleAppointmentLabelCommand = getScheduleAppointmentLabelCommand;
	    }
	    CustomContentsServant.prototype.getButtonLabel = function (defaultValue) {
	        return this.getScheduleAppointmentLabelCommand(defaultValue);
	    };
	    CustomContentsServant.prototype.getStcCustomContents = function () {
	        var _this = this;
	        return new Promise(function (resolve, reject) {
	            if (_4.isUndefined(_this.ngStcCustomContentsModel.read().student_scheduling)) {
	                _this.loadStcCustomContentsCommand()
	                    .then(function (data) { return resolve(data); })
	                    .catch(function (err) { return reject(err); });
	            }
	            else {
	                var data = _this.ngStcCustomContentsModel.read();
	                resolve(data);
	            }
	        });
	    };
	    return CustomContentsServant;
	}());
	exports.CustomContentsServant = CustomContentsServant;


/***/ }),
/* 271 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var CustomTextService = /** @class */ (function () {
	    function CustomTextService(loadAllCustomTextCommand) {
	        this.loadAllCustomTextCommand = loadAllCustomTextCommand;
	    }
	    CustomTextService.prototype.loadCustomText = function () {
	        return this.loadAllCustomTextCommand();
	    };
	    return CustomTextService;
	}());
	exports.CustomTextService = CustomTextService;


/***/ }),
/* 272 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var index_1 = __webpack_require__(869);
	var CommonValidationMethods = /** @class */ (function () {
	    function CommonValidationMethods() {
	    }
	    CommonValidationMethods.getSourceTargetKeyMap = function (sourceKey, targetDataConfig) {
	        var _a;
	        var targetKey = targetDataConfig.key;
	        if (typeof targetKey === 'string') {
	            //only One Condition To Match
	            return _a = {},
	                _a[sourceKey] = targetKey,
	                _a;
	        }
	        return targetDataConfig.key;
	    };
	    CommonValidationMethods.getFilteredData = function (sourceData, sourceKey, targetDataConfig) {
	        var sourceTargetKeyMap = CommonValidationMethods.getSourceTargetKeyMap(sourceKey, targetDataConfig);
	        var targetData = targetDataConfig.data;
	        if (!sourceTargetKeyMap) {
	            // is processing normal array
	            var value_1 = sourceData[sourceKey];
	            return targetData.filter(function (data) { return data === value_1; });
	        }
	        var sourceKeys = Object.keys(sourceTargetKeyMap);
	        return targetData.filter(function (targetDataElement) {
	            var targetKey = sourceTargetKeyMap[sourceKey];
	            return sourceKeys.every(function (sourceKey) { return index_1.nestedKeyLookUp(targetDataElement, targetKey) === index_1.nestedKeyLookUp(sourceData, sourceKey); });
	        });
	    };
	    CommonValidationMethods.getConditionChecked = function (sourceData, sourceKey, targetDataConfig) {
	        var sourceTargetKeyMap = CommonValidationMethods.getSourceTargetKeyMap(sourceKey, targetDataConfig);
	        if (!sourceTargetKeyMap) {
	            // processing normal array
	            return {
	                array: targetDataConfig.data,
	                valueCheckedForPresence: sourceData[sourceKey]
	            };
	        }
	        var sourceKeys = Object.keys(sourceTargetKeyMap);
	        return sourceKeys.reduce(function (conditionChecked, currentSourceKey) {
	            var targetKey = sourceTargetKeyMap[sourceKey];
	            conditionChecked[targetKey] = index_1.nestedKeyLookUp(sourceData, currentSourceKey);
	            return conditionChecked;
	        }, {});
	    };
	    CommonValidationMethods.isWhiteListedValue = function (sourceData, sourceKey, targetDataConfig) {
	        var value = index_1.nestedKeyLookUp(sourceData, sourceKey);
	        return targetDataConfig.whiteListValueSet && targetDataConfig.whiteListValueSet.has(value);
	    };
	    CommonValidationMethods.getErrorDetail = function (sourceData, sourceKey, targetDataConfig) {
	        var conditionChecked = CommonValidationMethods.getConditionChecked(sourceData, sourceKey, targetDataConfig);
	        return {
	            sourceTargetKeyMap: CommonValidationMethods.getSourceTargetKeyMap(sourceKey, targetDataConfig),
	            sourceObj: sourceData,
	            targetObj: targetDataConfig['data'],
	            condition: conditionChecked
	        };
	    };
	    return CommonValidationMethods;
	}());
	exports.CommonValidationMethods = CommonValidationMethods;


/***/ }),
/* 273 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ChangedBusyTime = /** @class */ (function () {
	    function ChangedBusyTime(changedBusyTime) {
	        _4.merge(this, {
	            is_new_time: false
	        }, changedBusyTime);
	        return this;
	    }
	    ChangedBusyTime.build = function (changedBusyTime) {
	        return new ChangedBusyTime(changedBusyTime);
	    };
	    return ChangedBusyTime;
	}());
	exports.ChangedBusyTime = ChangedBusyTime;


/***/ }),
/* 274 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	/**
	 * @phxComponentCommunicator
	 */
	var communicator_1 = __webpack_require__(893);
	angular
	    .module('ui-ng-component-communicator', [])
	    .service('ngComponentCommunicatorService', communicator_1.CommunicatorService)
	    .directive('componentCommunicator', [
	    'ngComponentCommunicatorService',
	    '$parse',
	    function (ngComponentCommunicatorService, $parse) { return ({
	        link: function (scope, element, attributes) {
	            var eventInfo = $parse(attributes['componentCommunicator'])(scope);
	            for (var key in eventInfo) {
	                ngComponentCommunicatorService.subscribe(key, eventInfo[key]);
	            }
	            scope.$on('$destroy', function () {
	                for (var key in eventInfo) {
	                    ngComponentCommunicatorService.release(key, eventInfo[key]);
	                }
	            });
	        }
	    }); }
	]);
	tslib_1.__exportStar(__webpack_require__(893), exports);
	exports.communicator = 'ui-ng-component-communicator';


/***/ }),
/* 275 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var DatePickerBaseServant = /** @class */ (function () {
	    function DatePickerBaseServant() {
	    }
	    DatePickerBaseServant.prototype.buildWeekDayObject = function (momentObj, dayOfWeek, showDay) {
	        return {
	            date: moment(momentObj),
	            displayDate: momentObj.format('DD'),
	            day: momentObj.format('ddd'),
	            month: momentObj.format('MMM'),
	            year: momentObj.format('YYYY'),
	            show: showDay ? showDay : false,
	            day_week: dayOfWeek ? dayOfWeek : 0
	        };
	    };
	    DatePickerBaseServant.prototype.buildTimeObject = function (momentObj, useBlanks) {
	        return {
	            date: moment(momentObj),
	            displayDate: useBlanks ? '' : momentObj.format('DD'),
	            day: useBlanks ? '' : momentObj.format('ddd'),
	            day_week: useBlanks ? 0 : momentObj.day(),
	            time: momentObj.format('hh:mm A'),
	            am: momentObj.format('A') === 'AM' ? true : false,
	            selected: false
	        };
	    };
	    DatePickerBaseServant.prototype.getWeek = function (date, datePicker) {
	        var _this = this;
	        var week = [];
	        var new_date = moment(date).add(0, 'days');
	        datePicker.previous_week_firstdate = date.subtract(7, 'days');
	        week.push(this.buildWeekDayObject(new_date, 0, false));
	        _.times(6, function (i) {
	            var currentDate = new_date.add(1, 'days');
	            week.push(_this.buildWeekDayObject(currentDate, i + 1, i > 4 ? false : true));
	        });
	        datePicker.current_week_lastdate = new_date.add(1, 'days');
	        return week;
	    };
	    return DatePickerBaseServant;
	}());
	exports.DatePickerBaseServant = DatePickerBaseServant;
	angular.module('ui-ng-mobile-date-picker').service('ngDatePickerBaseServant', DatePickerBaseServant);


/***/ }),
/* 276 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var navigation_bar_alert_service_1 = __webpack_require__(896);
	var app_nav_bar_1 = __webpack_require__(2174);
	var navigation_history_stack_1 = __webpack_require__(897);
	__webpack_require__(27);
	/**
	 * @phxNavbar
	 */
	angular
	    .module('ui-ng-navbar', ['ui.router'])
	    .service('ngNavigationHistoryStack', navigation_history_stack_1.NavigationHistoryStack)
	    .service('ngNavigationBarAlertService', navigation_bar_alert_service_1.NavigationBarAlertService)
	    .component('appNavBar', new app_nav_bar_1.AppNavBarComponent())
	    .controller('AppNavBarController', app_nav_bar_1.AppNavBarController);
	tslib_1.__exportStar(__webpack_require__(896), exports);
	tslib_1.__exportStar(__webpack_require__(897), exports);


/***/ }),
/* 277 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	__webpack_require__(12);
	__webpack_require__(16);
	angular.module('ui-ng-university-branding', []);
	__webpack_require__(1055);
	__webpack_require__(1056);
	__webpack_require__(2192);
	exports.default = 'ui-ng-university-branding';


/***/ }),
/* 278 */
/***/ (function(module, exports) {

	"use strict";
	/**
	 * @what intercept all http requests to add a slash (all our servers require this) and add failure functions to respond to http error codes
	 * @why general logging and event trapping of network communication
	 */
	Object.defineProperty(exports, "__esModule", { value: true });
	var NetworkUrlConfigurationProvider = /** @class */ (function () {
	    function NetworkUrlConfigurationProvider($httpProvider, ConfigurationProvider) {
	        this.$httpProvider = $httpProvider;
	        this.ConfigurationProvider = ConfigurationProvider;
	        this.DEFAULTS = {
	            logActivity: false,
	            prependUrl: '',
	            appendUrl: '',
	            versionUrl: 'v',
	            trailingSlash: false,
	            defaultHTTPFields: {
	                timeout: 10000,
	                xsrfHeaderName: 'X-CSRFToken',
	                xsrfCookieName: 'csrftoken',
	                cache: false
	            }
	        };
	    }
	    NetworkUrlConfigurationProvider.prototype.configure = function (userConfig) {
	        var existingConfiguration = this.configuration;
	        if (!!userConfig) {
	            this.configuration = _.merge({}, this.DEFAULTS, existingConfiguration, userConfig);
	        }
	        return this.configuration;
	    };
	    NetworkUrlConfigurationProvider.prototype.activate = function (userConfig) {
	        var _this = this;
	        var IS_FULL_URL = /^http/;
	        var IS_RESOURCE_REQUEST = /\.\w{3,4}$/i;
	        var HAS_QUERY_PARAMETERS = /\?/i;
	        this.configure(userConfig);
	        var configProvider = this.ConfigurationProvider;
	        this.$httpProvider.interceptors.push(function () {
	            return {
	                request: function (config) {
	                    var newUrl;
	                    var parsedUrl;
	                    var versionAPI = configProvider.read('about').version.api;
	                    var configUrl = config.url;
	                    var isHTTPRequest = IS_FULL_URL.test(configUrl);
	                    var hasExtension = IS_RESOURCE_REQUEST.test(configUrl);
	                    var isAnAPIRequest = !hasExtension;
	                    var hasVersion = /v[0-9]+/.test(configUrl);
	                    if (isAnAPIRequest && !isHTTPRequest) {
	                        parsedUrl = configUrl.replace(/^\//, '').replace(/\/$/, '');
	                        newUrl = _this.configuration.prependUrl;
	                        if (!!_this.configuration.versionUrl && !hasVersion) {
	                            newUrl = newUrl + '/' + _this.configuration.versionUrl + versionAPI;
	                        }
	                        newUrl = newUrl + '/' + parsedUrl + _this.configuration.appendUrl;
	                        if (!HAS_QUERY_PARAMETERS.test(config.url) && !!_this.configuration.trailingSlash) {
	                            newUrl = newUrl + '/';
	                        }
	                        config.url = newUrl;
	                    }
	                    if (isAnAPIRequest) {
	                        config = _.merge({}, _this.configuration.defaultHTTPFields, config);
	                        config.headers = _.merge({}, _this.configuration.defaultHeaders, config.headers);
	                        config.params = config.params || {};
	                    }
	                    return config;
	                },
	                response: function responseHTTPInterceptor(response) {
	                    return response;
	                }
	            };
	        });
	        return this.configuration;
	    };
	    NetworkUrlConfigurationProvider.prototype.read = function () {
	        return this.configuration;
	    };
	    NetworkUrlConfigurationProvider.prototype.$get = function () {
	        var _this = this;
	        return {
	            configure: function (userConfig) {
	                return _this.configure(userConfig);
	            },
	            read: function () {
	                return _this.read();
	            }
	        };
	    };
	    return NetworkUrlConfigurationProvider;
	}());
	exports.NetworkUrlConfigurationProvider = NetworkUrlConfigurationProvider;


/***/ }),
/* 279 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ConfigurationDef = /** @class */ (function () {
	    function ConfigurationDef() {
	        this.internalConfiguration = {};
	        this.defaultConfiguration = {
	            tracking: {},
	            about: {
	                member: '',
	                application: '',
	                subheader: '',
	                version: {
	                    ui: '0.1.0',
	                    api: '1'
	                }
	            }
	        };
	    }
	    ConfigurationDef.prototype.read = function (key) {
	        return !!key ? this.internalConfiguration[key] : this.internalConfiguration;
	    };
	    ConfigurationDef.prototype.write = function (userConfig) {
	        this.internalConfiguration = _.merge({}, this.defaultConfiguration, this.internalConfiguration, userConfig || {});
	        return this;
	    };
	    ConfigurationDef.prototype.overwrite = function (userConfig) {
	        this.internalConfiguration = _.merge({}, this.defaultConfiguration, userConfig || {});
	        return this;
	    };
	    return ConfigurationDef;
	}());
	var ConfigurationProvider = /** @class */ (function () {
	    function ConfigurationProvider() {
	        this.configuration = new ConfigurationDef();
	    }
	    ConfigurationProvider.prototype.read = function (key) {
	        return this.configuration.read(key);
	    };
	    ConfigurationProvider.prototype.write = function (userConfig) {
	        this.configuration.write(userConfig);
	        return this.configuration;
	    };
	    ConfigurationProvider.prototype.request = function () {
	        return this.configuration;
	    };
	    ConfigurationProvider.prototype.$get = function () {
	        return this.configuration;
	    };
	    return ConfigurationProvider;
	}());
	exports.ConfigurationProvider = ConfigurationProvider;


/***/ }),
/* 280 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var regular_expression_1 = __webpack_require__(109);
	var _4 = __webpack_require__(1);
	var StringUtility = /** @class */ (function () {
	    function StringUtility() {
	    }
	    StringUtility.getAcronym = function () {
	        var args = [];
	        for (var _i = 0; _i < arguments.length; _i++) {
	            args[_i] = arguments[_i];
	        }
	        return _4.reduce(args, function (acronym, arg) {
	            if (arg === void 0) { arg = ''; }
	            return acronym + (_4.trim(arg)[0] || '').toUpperCase();
	        }, '');
	    };
	    StringUtility.truncateWithEllipse = function (maxLength, longString) {
	        if (_4.isEmpty(longString)) {
	            return '';
	        }
	        if (_4.size(longString) < maxLength) {
	            return longString + '\n';
	        }
	        var end = longString.lastIndexOf(' ', maxLength);
	        return longString.substr(0, end) + '...';
	    };
	    StringUtility.sanitizeString = function (dirtyString) {
	        return _4.replace(dirtyString, regular_expression_1.RegularExpression.SANITIZED_STRING, '');
	    };
	    StringUtility.toNumericHash = function (word) {
	        return _4.reduce(word + '', function (sum, letter) {
	            return sum + letter.charCodeAt(0);
	        }, 0);
	    };
	    StringUtility.truncateString = _4.curry(function (totalLength, longString) {
	        return _4.truncate(longString, {
	            length: totalLength
	        });
	    });
	    return StringUtility;
	}());
	exports.StringUtility = StringUtility;


/***/ }),
/* 281 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
	 * Autolinker.js
	 * 1.8.1
	 *
	 * Copyright(c) 2018 Gregory Jacobs <greg@greg-jacobs.com>
	 * MIT License
	 *
	 * https://github.com/gregjacobs/Autolinker.js
	 */
	;(function(root, factory) {
	  if (true) {
	    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
	  } else if (typeof exports === 'object') {
	    module.exports = factory();
	  } else {
	    root.Autolinker = factory();
	  }
	}(this, function() {
	/**
	 * @class Autolinker
	 * @extends Object
	 *
	 * Utility class used to process a given string of text, and wrap the matches in
	 * the appropriate anchor (&lt;a&gt;) tags to turn them into links.
	 *
	 * Any of the configuration options may be provided in an Object (map) provided
	 * to the Autolinker constructor, which will configure how the {@link #link link()}
	 * method will process the links.
	 *
	 * For example:
	 *
	 *     var autolinker = new Autolinker( {
	 *         newWindow : false,
	 *         truncate  : 30
	 *     } );
	 *
	 *     var html = autolinker.link( "Joe went to www.yahoo.com" );
	 *     // produces: 'Joe went to <a href="http://www.yahoo.com">yahoo.com</a>'
	 *
	 *
	 * The {@link #static-link static link()} method may also be used to inline
	 * options into a single call, which may be more convenient for one-off uses.
	 * For example:
	 *
	 *     var html = Autolinker.link( "Joe went to www.yahoo.com", {
	 *         newWindow : false,
	 *         truncate  : 30
	 *     } );
	 *     // produces: 'Joe went to <a href="http://www.yahoo.com">yahoo.com</a>'
	 *
	 *
	 * ## Custom Replacements of Links
	 *
	 * If the configuration options do not provide enough flexibility, a {@link #replaceFn}
	 * may be provided to fully customize the output of Autolinker. This function is
	 * called once for each URL/Email/Phone#/Hashtag/Mention (Twitter, Instagram, Soundcloud)
	 * match that is encountered.
	 *
	 * For example:
	 *
	 *     var input = "...";  // string with URLs, Email Addresses, Phone #s, Hashtags, and Mentions (Twitter, Instagram, Soundcloud)
	 *
	 *     var linkedText = Autolinker.link( input, {
	 *         replaceFn : function( match ) {
	 *             console.log( "href = ", match.getAnchorHref() );
	 *             console.log( "text = ", match.getAnchorText() );
	 *
	 *             switch( match.getType() ) {
	 *                 case 'url' :
	 *                     console.log( "url: ", match.getUrl() );
	 *
	 *                     if( match.getUrl().indexOf( 'mysite.com' ) === -1 ) {
	 *                         var tag = match.buildTag();  // returns an `Autolinker.HtmlTag` instance, which provides mutator methods for easy changes
	 *                         tag.setAttr( 'rel', 'nofollow' );
	 *                         tag.addClass( 'external-link' );
	 *
	 *                         return tag;
	 *
	 *                     } else {
	 *                         return true;  // let Autolinker perform its normal anchor tag replacement
	 *                     }
	 *
	 *                 case 'email' :
	 *                     var email = match.getEmail();
	 *                     console.log( "email: ", email );
	 *
	 *                     if( email === "my@own.address" ) {
	 *                         return false;  // don't auto-link this particular email address; leave as-is
	 *                     } else {
	 *                         return;  // no return value will have Autolinker perform its normal anchor tag replacement (same as returning `true`)
	 *                     }
	 *
	 *                 case 'phone' :
	 *                     var phoneNumber = match.getPhoneNumber();
	 *                     console.log( phoneNumber );
	 *
	 *                     return '<a href="http://newplace.to.link.phone.numbers.to/">' + phoneNumber + '</a>';
	 *
	 *                 case 'hashtag' :
	 *                     var hashtag = match.getHashtag();
	 *                     console.log( hashtag );
	 *
	 *                     return '<a href="http://newplace.to.link.hashtag.handles.to/">' + hashtag + '</a>';
	 *
	 *                 case 'mention' :
	 *                     var mention = match.getMention();
	 *                     console.log( mention );
	 *
	 *                     return '<a href="http://newplace.to.link.mention.to/">' + mention + '</a>';
	 *             }
	 *         }
	 *     } );
	 *
	 *
	 * The function may return the following values:
	 *
	 * - `true` (Boolean): Allow Autolinker to replace the match as it normally
	 *   would.
	 * - `false` (Boolean): Do not replace the current match at all - leave as-is.
	 * - Any String: If a string is returned from the function, the string will be
	 *   used directly as the replacement HTML for the match.
	 * - An {@link Autolinker.HtmlTag} instance, which can be used to build/modify
	 *   an HTML tag before writing out its HTML text.
	 *
	 * @constructor
	 * @param {Object} [cfg] The configuration options for the Autolinker instance,
	 *   specified in an Object (map).
	 */
	var Autolinker = function( cfg ) {
		cfg = cfg || {};
	
		this.version = Autolinker.version;
	
		this.urls = this.normalizeUrlsCfg( cfg.urls );
		this.email = typeof cfg.email === 'boolean' ? cfg.email : true;
		this.phone = typeof cfg.phone === 'boolean' ? cfg.phone : true;
		this.hashtag = cfg.hashtag || false;
		this.mention = cfg.mention || false;
		this.newWindow = typeof cfg.newWindow === 'boolean' ? cfg.newWindow : true;
		this.stripPrefix = this.normalizeStripPrefixCfg( cfg.stripPrefix );
		this.stripTrailingSlash = typeof cfg.stripTrailingSlash === 'boolean' ? cfg.stripTrailingSlash : true;
		this.decodePercentEncoding = typeof cfg.decodePercentEncoding === 'boolean' ? cfg.decodePercentEncoding : true;
	
		// Validate the value of the `mention` cfg
		var mention = this.mention;
		if( mention !== false && mention !== 'twitter' && mention !== 'instagram'  && mention !== 'soundcloud' ) {
			throw new Error( "invalid `mention` cfg - see docs" );
		}
	
		// Validate the value of the `hashtag` cfg
		var hashtag = this.hashtag;
		if( hashtag !== false && hashtag !== 'twitter' && hashtag !== 'facebook' && hashtag !== 'instagram' ) {
			throw new Error( "invalid `hashtag` cfg - see docs" );
		}
	
		this.truncate = this.normalizeTruncateCfg( cfg.truncate );
		this.className = cfg.className || '';
		this.replaceFn = cfg.replaceFn || null;
		this.context = cfg.context || this;
	
		this.htmlParser = null;
		this.matchers = null;
		this.tagBuilder = null;
	};
	
	
	
	/**
	 * Automatically links URLs, Email addresses, Phone Numbers, Twitter handles,
	 * Hashtags, and Mentions found in the given chunk of HTML. Does not link URLs
	 * found within HTML tags.
	 *
	 * For instance, if given the text: `You should go to http://www.yahoo.com`,
	 * then the result will be `You should go to &lt;a href="http://www.yahoo.com"&gt;http://www.yahoo.com&lt;/a&gt;`
	 *
	 * Example:
	 *
	 *     var linkedText = Autolinker.link( "Go to google.com", { newWindow: false } );
	 *     // Produces: "Go to <a href="http://google.com">google.com</a>"
	 *
	 * @static
	 * @param {String} textOrHtml The HTML or text to find matches within (depending
	 *   on if the {@link #urls}, {@link #email}, {@link #phone}, {@link #mention},
	 *   {@link #hashtag}, and {@link #mention} options are enabled).
	 * @param {Object} [options] Any of the configuration options for the Autolinker
	 *   class, specified in an Object (map). See the class description for an
	 *   example call.
	 * @return {String} The HTML text, with matches automatically linked.
	 */
	Autolinker.link = function( textOrHtml, options ) {
		var autolinker = new Autolinker( options );
		return autolinker.link( textOrHtml );
	};
	
	
	
	/**
	 * Parses the input `textOrHtml` looking for URLs, email addresses, phone
	 * numbers, username handles, and hashtags (depending on the configuration
	 * of the Autolinker instance), and returns an array of {@link Autolinker.match.Match}
	 * objects describing those matches (without making any replacements).
	 *
	 * Note that if parsing multiple pieces of text, it is slightly more efficient
	 * to create an Autolinker instance, and use the instance-level {@link #parse}
	 * method.
	 *
	 * Example:
	 *
	 *     var matches = Autolinker.parse( "Hello google.com, I am asdf@asdf.com", {
	 *         urls: true,
	 *         email: true
	 *     } );
	 *
	 *     console.log( matches.length );           // 2
	 *     console.log( matches[ 0 ].getType() );   // 'url'
	 *     console.log( matches[ 0 ].getUrl() );    // 'google.com'
	 *     console.log( matches[ 1 ].getType() );   // 'email'
	 *     console.log( matches[ 1 ].getEmail() );  // 'asdf@asdf.com'
	 *
	 * @static
	 * @param {String} textOrHtml The HTML or text to find matches within
	 *   (depending on if the {@link #urls}, {@link #email}, {@link #phone},
	 *   {@link #hashtag}, and {@link #mention} options are enabled).
	 * @param {Object} [options] Any of the configuration options for the Autolinker
	 *   class, specified in an Object (map). See the class description for an
	 *   example call.
	 * @return {Autolinker.match.Match[]} The array of Matches found in the
	 *   given input `textOrHtml`.
	 */
	Autolinker.parse = function( textOrHtml, options ) {
		var autolinker = new Autolinker( options );
		return autolinker.parse( textOrHtml );
	};
	
	
	/**
	 * @static
	 * @property {String} version (readonly)
	 *
	 * The Autolinker version number in the form major.minor.patch
	 *
	 * Ex: 0.25.1
	 */
	Autolinker.version = '1.8.1';
	
	
	Autolinker.prototype = {
		constructor : Autolinker,  // fix constructor property
	
		/**
		 * @cfg {Boolean/Object} [urls]
		 *
		 * `true` if URLs should be automatically linked, `false` if they should not
		 * be. Defaults to `true`.
		 *
		 * Examples:
		 *
		 *     urls: true
		 *
		 *     // or
		 *
		 *     urls: {
		 *         schemeMatches : true,
		 *         wwwMatches    : true,
		 *         tldMatches    : true
		 *     }
		 *
		 * As shown above, this option also accepts an Object form with 3 properties
		 * to allow for more customization of what exactly gets linked. All default
		 * to `true`:
		 *
		 * @cfg {Boolean} [urls.schemeMatches] `true` to match URLs found prefixed
		 *   with a scheme, i.e. `http://google.com`, or `other+scheme://google.com`,
		 *   `false` to prevent these types of matches.
		 * @cfg {Boolean} [urls.wwwMatches] `true` to match urls found prefixed with
		 *   `'www.'`, i.e. `www.google.com`. `false` to prevent these types of
		 *   matches. Note that if the URL had a prefixed scheme, and
		 *   `schemeMatches` is true, it will still be linked.
		 * @cfg {Boolean} [urls.tldMatches] `true` to match URLs with known top
		 *   level domains (.com, .net, etc.) that are not prefixed with a scheme or
		 *   `'www.'`. This option attempts to match anything that looks like a URL
		 *   in the given text. Ex: `google.com`, `asdf.org/?page=1`, etc. `false`
		 *   to prevent these types of matches.
		 */
	
		/**
		 * @cfg {Boolean} [email=true]
		 *
		 * `true` if email addresses should be automatically linked, `false` if they
		 * should not be.
		 */
	
		/**
		 * @cfg {Boolean} [phone=true]
		 *
		 * `true` if Phone numbers ("(555)555-5555") should be automatically linked,
		 * `false` if they should not be.
		 */
	
		/**
		 * @cfg {Boolean/String} [hashtag=false]
		 *
		 * A string for the service name to have hashtags (ex: "#myHashtag")
		 * auto-linked to. The currently-supported values are:
		 *
		 * - 'twitter'
		 * - 'facebook'
		 * - 'instagram'
		 *
		 * Pass `false` to skip auto-linking of hashtags.
		 */
	
		/**
		 * @cfg {String/Boolean} [mention=false]
		 *
		 * A string for the service name to have mentions (ex: "@myuser")
		 * auto-linked to. The currently supported values are:
		 *
		 * - 'twitter'
		 * - 'instagram'
		 * - 'soundcloud'
		 *
		 * Defaults to `false` to skip auto-linking of mentions.
		 */
	
		/**
		 * @cfg {Boolean} [newWindow=true]
		 *
		 * `true` if the links should open in a new window, `false` otherwise.
		 */
	
		/**
		 * @cfg {Boolean/Object} [stripPrefix]
		 *
		 * `true` if 'http://' (or 'https://') and/or the 'www.' should be stripped
		 * from the beginning of URL links' text, `false` otherwise. Defaults to
		 * `true`.
		 *
		 * Examples:
		 *
		 *     stripPrefix: true
		 *
		 *     // or
		 *
		 *     stripPrefix: {
		 *         scheme : true,
		 *         www    : true
		 *     }
		 *
		 * As shown above, this option also accepts an Object form with 2 properties
		 * to allow for more customization of what exactly is prevented from being
		 * displayed. Both default to `true`:
		 *
		 * @cfg {Boolean} [stripPrefix.scheme] `true` to prevent the scheme part of
		 *   a URL match from being displayed to the user. Example:
		 *   `'http://google.com'` will be displayed as `'google.com'`. `false` to
		 *   not strip the scheme. NOTE: Only an `'http://'` or `'https://'` scheme
		 *   will be removed, so as not to remove a potentially dangerous scheme
		 *   (such as `'file://'` or `'javascript:'`)
		 * @cfg {Boolean} [stripPrefix.www] www (Boolean): `true` to prevent the
		 *   `'www.'` part of a URL match from being displayed to the user. Ex:
		 *   `'www.google.com'` will be displayed as `'google.com'`. `false` to not
		 *   strip the `'www'`.
		 */
	
		/**
		 * @cfg {Boolean} [stripTrailingSlash=true]
		 *
		 * `true` to remove the trailing slash from URL matches, `false` to keep
		 *  the trailing slash.
		 *
		 *  Example when `true`: `http://google.com/` will be displayed as
		 *  `http://google.com`.
		 */
	
		/**
		 * @cfg {Boolean} [decodePercentEncoding=true]
		 *
		 * `true` to decode percent-encoded characters in URL matches, `false` to keep
		 *  the percent-encoded characters.
		 *
		 *  Example when `true`: `https://en.wikipedia.org/wiki/San_Jos%C3%A9` will
		 *  be displayed as `https://en.wikipedia.org/wiki/San_José`.
		 */
	
		/**
		 * @cfg {Number/Object} [truncate=0]
		 *
		 * ## Number Form
		 *
		 * A number for how many characters matched text should be truncated to
		 * inside the text of a link. If the matched text is over this number of
		 * characters, it will be truncated to this length by adding a two period
		 * ellipsis ('..') to the end of the string.
		 *
		 * For example: A url like 'http://www.yahoo.com/some/long/path/to/a/file'
		 * truncated to 25 characters might look something like this:
		 * 'yahoo.com/some/long/pat..'
		 *
		 * Example Usage:
		 *
		 *     truncate: 25
		 *
		 *
		 *  Defaults to `0` for "no truncation."
		 *
		 *
		 * ## Object Form
		 *
		 * An Object may also be provided with two properties: `length` (Number) and
		 * `location` (String). `location` may be one of the following: 'end'
		 * (default), 'middle', or 'smart'.
		 *
		 * Example Usage:
		 *
		 *     truncate: { length: 25, location: 'middle' }
		 *
		 * @cfg {Number} [truncate.length=0] How many characters to allow before
		 *   truncation will occur. Defaults to `0` for "no truncation."
		 * @cfg {"end"/"middle"/"smart"} [truncate.location="end"]
		 *
		 * - 'end' (default): will truncate up to the number of characters, and then
		 *   add an ellipsis at the end. Ex: 'yahoo.com/some/long/pat..'
		 * - 'middle': will truncate and add the ellipsis in the middle. Ex:
		 *   'yahoo.com/s..th/to/a/file'
		 * - 'smart': for URLs where the algorithm attempts to strip out unnecessary
		 *   parts first (such as the 'www.', then URL scheme, hash, etc.),
		 *   attempting to make the URL human-readable before looking for a good
		 *   point to insert the ellipsis if it is still too long. Ex:
		 *   'yahoo.com/some..to/a/file'. For more details, see
		 *   {@link Autolinker.truncate.TruncateSmart}.
		 */
	
		/**
		 * @cfg {String} className
		 *
		 * A CSS class name to add to the generated links. This class will be added
		 * to all links, as well as this class plus match suffixes for styling
		 * url/email/phone/hashtag/mention links differently.
		 *
		 * For example, if this config is provided as "myLink", then:
		 *
		 * - URL links will have the CSS classes: "myLink myLink-url"
		 * - Email links will have the CSS classes: "myLink myLink-email", and
		 * - Phone links will have the CSS classes: "myLink myLink-phone"
		 * - Hashtag links will have the CSS classes: "myLink myLink-hashtag"
		 * - Mention links will have the CSS classes: "myLink myLink-mention myLink-[type]"
		 *   where [type] is either "instagram", "twitter" or "soundcloud"
		 */
	
		/**
		 * @cfg {Function} replaceFn
		 *
		 * A function to individually process each match found in the input string.
		 *
		 * See the class's description for usage.
		 *
		 * The `replaceFn` can be called with a different context object (`this`
		 * reference) using the {@link #context} cfg.
		 *
		 * This function is called with the following parameter:
		 *
		 * @cfg {Autolinker.match.Match} replaceFn.match The Match instance which
		 *   can be used to retrieve information about the match that the `replaceFn`
		 *   is currently processing. See {@link Autolinker.match.Match} subclasses
		 *   for details.
		 */
	
		/**
		 * @cfg {Object} context
		 *
		 * The context object (`this` reference) to call the `replaceFn` with.
		 *
		 * Defaults to this Autolinker instance.
		 */
	
	
		/**
		 * @property {String} version (readonly)
		 *
		 * The Autolinker version number in the form major.minor.patch
		 *
		 * Ex: 0.25.1
		 */
	
		/**
		 * @private
		 * @property {Autolinker.htmlParser.HtmlParser} htmlParser
		 *
		 * The HtmlParser instance used to skip over HTML tags, while finding text
		 * nodes to process. This is lazily instantiated in the {@link #getHtmlParser}
		 * method.
		 */
	
		/**
		 * @private
		 * @property {Autolinker.matcher.Matcher[]} matchers
		 *
		 * The {@link Autolinker.matcher.Matcher} instances for this Autolinker
		 * instance.
		 *
		 * This is lazily created in {@link #getMatchers}.
		 */
	
		/**
		 * @private
		 * @property {Autolinker.AnchorTagBuilder} tagBuilder
		 *
		 * The AnchorTagBuilder instance used to build match replacement anchor tags.
		 * Note: this is lazily instantiated in the {@link #getTagBuilder} method.
		 */
	
	
		/**
		 * Normalizes the {@link #urls} config into an Object with 3 properties:
		 * `schemeMatches`, `wwwMatches`, and `tldMatches`, all Booleans.
		 *
		 * See {@link #urls} config for details.
		 *
		 * @private
		 * @param {Boolean/Object} urls
		 * @return {Object}
		 */
		normalizeUrlsCfg : function( urls ) {
			if( urls == null ) urls = true;  // default to `true`
	
			if( typeof urls === 'boolean' ) {
				return { schemeMatches: urls, wwwMatches: urls, tldMatches: urls };
	
			} else {  // object form
				return {
					schemeMatches : typeof urls.schemeMatches === 'boolean' ? urls.schemeMatches : true,
					wwwMatches    : typeof urls.wwwMatches === 'boolean'    ? urls.wwwMatches    : true,
					tldMatches    : typeof urls.tldMatches === 'boolean'    ? urls.tldMatches    : true
				};
			}
		},
	
	
		/**
		 * Normalizes the {@link #stripPrefix} config into an Object with 2
		 * properties: `scheme`, and `www` - both Booleans.
		 *
		 * See {@link #stripPrefix} config for details.
		 *
		 * @private
		 * @param {Boolean/Object} stripPrefix
		 * @return {Object}
		 */
		normalizeStripPrefixCfg : function( stripPrefix ) {
			if( stripPrefix == null ) stripPrefix = true;  // default to `true`
	
			if( typeof stripPrefix === 'boolean' ) {
				return { scheme: stripPrefix, www: stripPrefix };
	
			} else {  // object form
				return {
					scheme : typeof stripPrefix.scheme === 'boolean' ? stripPrefix.scheme : true,
					www    : typeof stripPrefix.www === 'boolean'    ? stripPrefix.www    : true
				};
			}
		},
	
	
		/**
		 * Normalizes the {@link #truncate} config into an Object with 2 properties:
		 * `length` (Number), and `location` (String).
		 *
		 * See {@link #truncate} config for details.
		 *
		 * @private
		 * @param {Number/Object} truncate
		 * @return {Object}
		 */
		normalizeTruncateCfg : function( truncate ) {
			if( typeof truncate === 'number' ) {
				return { length: truncate, location: 'end' };
	
			} else {  // object, or undefined/null
				return Autolinker.Util.defaults( truncate || {}, {
					length   : Number.POSITIVE_INFINITY,
					location : 'end'
				} );
			}
		},
	
	
		/**
		 * Parses the input `textOrHtml` looking for URLs, email addresses, phone
		 * numbers, username handles, and hashtags (depending on the configuration
		 * of the Autolinker instance), and returns an array of {@link Autolinker.match.Match}
		 * objects describing those matches (without making any replacements).
		 *
		 * This method is used by the {@link #link} method, but can also be used to
		 * simply do parsing of the input in order to discover what kinds of links
		 * there are and how many.
		 *
		 * Example usage:
		 *
		 *     var autolinker = new Autolinker( {
		 *         urls: true,
		 *         email: true
		 *     } );
		 *
		 *     var matches = autolinker.parse( "Hello google.com, I am asdf@asdf.com" );
		 *
		 *     console.log( matches.length );           // 2
		 *     console.log( matches[ 0 ].getType() );   // 'url'
		 *     console.log( matches[ 0 ].getUrl() );    // 'google.com'
		 *     console.log( matches[ 1 ].getType() );   // 'email'
		 *     console.log( matches[ 1 ].getEmail() );  // 'asdf@asdf.com'
		 *
		 * @param {String} textOrHtml The HTML or text to find matches within
		 *   (depending on if the {@link #urls}, {@link #email}, {@link #phone},
		 *   {@link #hashtag}, and {@link #mention} options are enabled).
		 * @return {Autolinker.match.Match[]} The array of Matches found in the
		 *   given input `textOrHtml`.
		 */
		parse : function( textOrHtml ) {
			var htmlParser = this.getHtmlParser(),
			    htmlNodes = htmlParser.parse( textOrHtml ),
			    anchorTagStackCount = 0,  // used to only process text around anchor tags, and any inner text/html they may have;
			    matches = [];
	
			// Find all matches within the `textOrHtml` (but not matches that are
			// already nested within <a> tags)
			for( var i = 0, len = htmlNodes.length; i < len; i++ ) {
				var node = htmlNodes[ i ],
				    nodeType = node.getType();
	
				if( nodeType === 'element' && node.getTagName() === 'a' ) {  // Process HTML anchor element nodes in the input `textOrHtml` to find out when we're within an <a> tag
					if( !node.isClosing() ) {  // it's the start <a> tag
						anchorTagStackCount++;
					} else {  // it's the end </a> tag
						anchorTagStackCount = Math.max( anchorTagStackCount - 1, 0 );  // attempt to handle extraneous </a> tags by making sure the stack count never goes below 0
					}
	
				} else if( nodeType === 'text' && anchorTagStackCount === 0 ) {  // Process text nodes that are not within an <a> tag
					var textNodeMatches = this.parseText( node.getText(), node.getOffset() );
	
					matches.push.apply( matches, textNodeMatches );
				}
			}
	
	
			// After we have found all matches, remove subsequent matches that
			// overlap with a previous match. This can happen for instance with URLs,
			// where the url 'google.com/#link' would match '#link' as a hashtag.
			matches = this.compactMatches( matches );
	
			// And finally, remove matches for match types that have been turned
			// off. We needed to have all match types turned on initially so that
			// things like hashtags could be filtered out if they were really just
			// part of a URL match (for instance, as a named anchor).
			matches = this.removeUnwantedMatches( matches );
	
			return matches;
		},
	
	
		/**
		 * After we have found all matches, we need to remove subsequent matches
		 * that overlap with a previous match. This can happen for instance with
		 * URLs, where the url 'google.com/#link' would match '#link' as a hashtag.
		 *
		 * @private
		 * @param {Autolinker.match.Match[]} matches
		 * @return {Autolinker.match.Match[]}
		 */
		compactMatches : function( matches ) {
			// First, the matches need to be sorted in order of offset
			matches.sort( function( a, b ) { return a.getOffset() - b.getOffset(); } );
	
			for( var i = 0; i < matches.length - 1; i++ ) {
				var match = matches[ i ],
						offset = match.getOffset(),
						matchedTextLength = match.getMatchedText().length,
				    endIdx = offset + matchedTextLength;
	
				if( i + 1 < matches.length ) {
					// Remove subsequent matches that equal offset with current match
					if( matches[ i + 1 ].getOffset() === offset ) {
						var removeIdx = matches[ i + 1 ].getMatchedText().length > matchedTextLength ? i : i + 1;
						matches.splice( removeIdx, 1 );
						continue;
					}
	
					// Remove subsequent matches that overlap with the current match
					if( matches[ i + 1 ].getOffset() < endIdx ) {
						matches.splice( i + 1, 1 );
					}
				}
			}
	
			return matches;
		},
	
	
		/**
		 * Removes matches for matchers that were turned off in the options. For
		 * example, if {@link #hashtag hashtags} were not to be matched, we'll
		 * remove them from the `matches` array here.
		 *
		 * @private
		 * @param {Autolinker.match.Match[]} matches The array of matches to remove
		 *   the unwanted matches from. Note: this array is mutated for the
		 *   removals.
		 * @return {Autolinker.match.Match[]} The mutated input `matches` array.
		 */
		removeUnwantedMatches : function( matches ) {
			var remove = Autolinker.Util.remove;
	
			if( !this.hashtag ) remove( matches, function( match ) { return match.getType() === 'hashtag'; } );
			if( !this.email )   remove( matches, function( match ) { return match.getType() === 'email'; } );
			if( !this.phone )   remove( matches, function( match ) { return match.getType() === 'phone'; } );
			if( !this.mention ) remove( matches, function( match ) { return match.getType() === 'mention'; } );
			if( !this.urls.schemeMatches ) {
				remove( matches, function( m ) { return m.getType() === 'url' && m.getUrlMatchType() === 'scheme'; } );
			}
			if( !this.urls.wwwMatches ) {
				remove( matches, function( m ) { return m.getType() === 'url' && m.getUrlMatchType() === 'www'; } );
			}
			if( !this.urls.tldMatches ) {
				remove( matches, function( m ) { return m.getType() === 'url' && m.getUrlMatchType() === 'tld'; } );
			}
	
			return matches;
		},
	
	
		/**
		 * Parses the input `text` looking for URLs, email addresses, phone
		 * numbers, username handles, and hashtags (depending on the configuration
		 * of the Autolinker instance), and returns an array of {@link Autolinker.match.Match}
		 * objects describing those matches.
		 *
		 * This method processes a **non-HTML string**, and is used to parse and
		 * match within the text nodes of an HTML string. This method is used
		 * internally by {@link #parse}.
		 *
		 * @private
		 * @param {String} text The text to find matches within (depending on if the
		 *   {@link #urls}, {@link #email}, {@link #phone},
		 *   {@link #hashtag}, and {@link #mention} options are enabled). This must be a non-HTML string.
		 * @param {Number} [offset=0] The offset of the text node within the
		 *   original string. This is used when parsing with the {@link #parse}
		 *   method to generate correct offsets within the {@link Autolinker.match.Match}
		 *   instances, but may be omitted if calling this method publicly.
		 * @return {Autolinker.match.Match[]} The array of Matches found in the
		 *   given input `text`.
		 */
		parseText : function( text, offset ) {
			offset = offset || 0;
			var matchers = this.getMatchers(),
			    matches = [];
	
			for( var i = 0, numMatchers = matchers.length; i < numMatchers; i++ ) {
				var textMatches = matchers[ i ].parseMatches( text );
	
				// Correct the offset of each of the matches. They are originally
				// the offset of the match within the provided text node, but we
				// need to correct them to be relative to the original HTML input
				// string (i.e. the one provided to #parse).
				for( var j = 0, numTextMatches = textMatches.length; j < numTextMatches; j++ ) {
					textMatches[ j ].setOffset( offset + textMatches[ j ].getOffset() );
				}
	
				matches.push.apply( matches, textMatches );
			}
			return matches;
		},
	
	
		/**
		 * Automatically links URLs, Email addresses, Phone numbers, Hashtags,
		 * and Mentions (Twitter, Instagram, Soundcloud) found in the given chunk of HTML. Does not link
		 * URLs found within HTML tags.
		 *
		 * For instance, if given the text: `You should go to http://www.yahoo.com`,
		 * then the result will be `You should go to
		 * &lt;a href="http://www.yahoo.com"&gt;http://www.yahoo.com&lt;/a&gt;`
		 *
		 * This method finds the text around any HTML elements in the input
		 * `textOrHtml`, which will be the text that is processed. Any original HTML
		 * elements will be left as-is, as well as the text that is already wrapped
		 * in anchor (&lt;a&gt;) tags.
		 *
		 * @param {String} textOrHtml The HTML or text to autolink matches within
		 *   (depending on if the {@link #urls}, {@link #email}, {@link #phone}, {@link #hashtag}, and {@link #mention} options are enabled).
		 * @return {String} The HTML, with matches automatically linked.
		 */
		link : function( textOrHtml ) {
			if( !textOrHtml ) { return ""; }  // handle `null` and `undefined`
	
			var matches = this.parse( textOrHtml ),
				newHtml = [],
				lastIndex = 0;
	
			for( var i = 0, len = matches.length; i < len; i++ ) {
				var match = matches[ i ];
	
				newHtml.push( textOrHtml.substring( lastIndex, match.getOffset() ) );
				newHtml.push( this.createMatchReturnVal( match ) );
	
				lastIndex = match.getOffset() + match.getMatchedText().length;
			}
			newHtml.push( textOrHtml.substring( lastIndex ) );  // handle the text after the last match
	
			return newHtml.join( '' );
		},
	
	
		/**
		 * Creates the return string value for a given match in the input string.
		 *
		 * This method handles the {@link #replaceFn}, if one was provided.
		 *
		 * @private
		 * @param {Autolinker.match.Match} match The Match object that represents
		 *   the match.
		 * @return {String} The string that the `match` should be replaced with.
		 *   This is usually the anchor tag string, but may be the `matchStr` itself
		 *   if the match is not to be replaced.
		 */
		createMatchReturnVal : function( match ) {
			// Handle a custom `replaceFn` being provided
			var replaceFnResult;
			if( this.replaceFn ) {
				replaceFnResult = this.replaceFn.call( this.context, match );  // Autolinker instance is the context
			}
	
			if( typeof replaceFnResult === 'string' ) {
				return replaceFnResult;  // `replaceFn` returned a string, use that
	
			} else if( replaceFnResult === false ) {
				return match.getMatchedText();  // no replacement for the match
	
			} else if( replaceFnResult instanceof Autolinker.HtmlTag ) {
				return replaceFnResult.toAnchorString();
	
			} else {  // replaceFnResult === true, or no/unknown return value from function
				// Perform Autolinker's default anchor tag generation
				var anchorTag = match.buildTag();  // returns an Autolinker.HtmlTag instance
	
				return anchorTag.toAnchorString();
			}
		},
	
	
		/**
		 * Lazily instantiates and returns the {@link #htmlParser} instance for this
		 * Autolinker instance.
		 *
		 * @protected
		 * @return {Autolinker.htmlParser.HtmlParser}
		 */
		getHtmlParser : function() {
			var htmlParser = this.htmlParser;
	
			if( !htmlParser ) {
				htmlParser = this.htmlParser = new Autolinker.htmlParser.HtmlParser();
			}
	
			return htmlParser;
		},
	
	
		/**
		 * Lazily instantiates and returns the {@link Autolinker.matcher.Matcher}
		 * instances for this Autolinker instance.
		 *
		 * @protected
		 * @return {Autolinker.matcher.Matcher[]}
		 */
		getMatchers : function() {
			if( !this.matchers ) {
				var matchersNs = Autolinker.matcher,
				    tagBuilder = this.getTagBuilder();
	
				var matchers = [
					new matchersNs.Hashtag( { tagBuilder: tagBuilder, serviceName: this.hashtag } ),
					new matchersNs.Email( { tagBuilder: tagBuilder } ),
					new matchersNs.Phone( { tagBuilder: tagBuilder } ),
					new matchersNs.Mention( { tagBuilder: tagBuilder, serviceName: this.mention } ),
					new matchersNs.Url( { tagBuilder: tagBuilder, stripPrefix: this.stripPrefix, stripTrailingSlash: this.stripTrailingSlash, decodePercentEncoding: this.decodePercentEncoding } )
				];
	
				return ( this.matchers = matchers );
	
			} else {
				return this.matchers;
			}
		},
	
	
		/**
		 * Returns the {@link #tagBuilder} instance for this Autolinker instance, lazily instantiating it
		 * if it does not yet exist.
		 *
		 * This method may be used in a {@link #replaceFn} to generate the {@link Autolinker.HtmlTag HtmlTag} instance that
		 * Autolinker would normally generate, and then allow for modifications before returning it. For example:
		 *
		 *     var html = Autolinker.link( "Test google.com", {
		 *         replaceFn : function( match ) {
		 *             var tag = match.buildTag();  // returns an {@link Autolinker.HtmlTag} instance
		 *             tag.setAttr( 'rel', 'nofollow' );
		 *
		 *             return tag;
		 *         }
		 *     } );
		 *
		 *     // generated html:
		 *     //   Test <a href="http://google.com" target="_blank" rel="nofollow">google.com</a>
		 *
		 * @return {Autolinker.AnchorTagBuilder}
		 */
		getTagBuilder : function() {
			var tagBuilder = this.tagBuilder;
	
			if( !tagBuilder ) {
				tagBuilder = this.tagBuilder = new Autolinker.AnchorTagBuilder( {
					newWindow   : this.newWindow,
					truncate    : this.truncate,
					className   : this.className
				} );
			}
	
			return tagBuilder;
		}
	
	};
	
	
	// Autolinker Namespaces
	
	Autolinker.match = {};
	Autolinker.matcher = {};
	Autolinker.htmlParser = {};
	Autolinker.truncate = {};
	
	/*global Autolinker */
	/*jshint eqnull:true, boss:true */
	/**
	 * @class Autolinker.Util
	 * @singleton
	 *
	 * A few utility methods for Autolinker.
	 */
	Autolinker.Util = {
	
		/**
		 * @property {Function} abstractMethod
		 *
		 * A function object which represents an abstract method.
		 */
		abstractMethod : function() { throw "abstract"; },
	
	
		/**
		 * @private
		 * @property {RegExp} trimRegex
		 *
		 * The regular expression used to trim the leading and trailing whitespace
		 * from a string.
		 */
		trimRegex : /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
	
	
		/**
		 * Assigns (shallow copies) the properties of `src` onto `dest`.
		 *
		 * @param {Object} dest The destination object.
		 * @param {Object} src The source object.
		 * @return {Object} The destination object (`dest`)
		 */
		assign : function( dest, src ) {
			for( var prop in src ) {
				if( src.hasOwnProperty( prop ) ) {
					dest[ prop ] = src[ prop ];
				}
			}
	
			return dest;
		},
	
	
		/**
		 * Assigns (shallow copies) the properties of `src` onto `dest`, if the
		 * corresponding property on `dest` === `undefined`.
		 *
		 * @param {Object} dest The destination object.
		 * @param {Object} src The source object.
		 * @return {Object} The destination object (`dest`)
		 */
		defaults : function( dest, src ) {
			for( var prop in src ) {
				if( src.hasOwnProperty( prop ) && dest[ prop ] === undefined ) {
					dest[ prop ] = src[ prop ];
				}
			}
	
			return dest;
		},
	
	
		/**
		 * Extends `superclass` to create a new subclass, adding the `protoProps` to the new subclass's prototype.
		 *
		 * @param {Function} superclass The constructor function for the superclass.
		 * @param {Object} protoProps The methods/properties to add to the subclass's prototype. This may contain the
		 *   special property `constructor`, which will be used as the new subclass's constructor function.
		 * @return {Function} The new subclass function.
		 */
		extend : function( superclass, protoProps ) {
			var superclassProto = superclass.prototype;
	
			var F = function() {};
			F.prototype = superclassProto;
	
			var subclass;
			if( protoProps.hasOwnProperty( 'constructor' ) ) {
				subclass = protoProps.constructor;
			} else {
				subclass = function() { superclassProto.constructor.apply( this, arguments ); };
			}
	
			var subclassProto = subclass.prototype = new F();  // set up prototype chain
			subclassProto.constructor = subclass;  // fix constructor property
			subclassProto.superclass = superclassProto;
	
			delete protoProps.constructor;  // don't re-assign constructor property to the prototype, since a new function may have been created (`subclass`), which is now already there
			Autolinker.Util.assign( subclassProto, protoProps );
	
			return subclass;
		},
	
	
		/**
		 * Truncates the `str` at `len - ellipsisChars.length`, and adds the `ellipsisChars` to the
		 * end of the string (by default, two periods: '..'). If the `str` length does not exceed
		 * `len`, the string will be returned unchanged.
		 *
		 * @param {String} str The string to truncate and add an ellipsis to.
		 * @param {Number} truncateLen The length to truncate the string at.
		 * @param {String} [ellipsisChars=...] The ellipsis character(s) to add to the end of `str`
		 *   when truncated. Defaults to '...'
		 */
		ellipsis : function( str, truncateLen, ellipsisChars ) {
			var ellipsisLength;
	
			if( str.length > truncateLen ) {
				if(ellipsisChars == null) {
				  ellipsisChars = '&hellip;';
				  ellipsisLength = 3;
				} else {
				  ellipsisLength = ellipsisChars.length;
				}
	
				str = str.substring( 0, truncateLen - ellipsisLength ) + ellipsisChars;
			}
			return str;
		},
	
	
		/**
		 * Supports `Array.prototype.indexOf()` functionality for old IE (IE8 and below).
		 *
		 * @param {Array} arr The array to find an element of.
		 * @param {*} element The element to find in the array, and return the index of.
		 * @return {Number} The index of the `element`, or -1 if it was not found.
		 */
		indexOf : function( arr, element ) {
			if( Array.prototype.indexOf ) {
				return arr.indexOf( element );
	
			} else {
				for( var i = 0, len = arr.length; i < len; i++ ) {
					if( arr[ i ] === element ) return i;
				}
				return -1;
			}
		},
	
	
		/**
		 * Removes array elements based on a filtering function. Mutates the input
		 * array.
		 *
		 * Using this instead of the ES5 Array.prototype.filter() function, to allow
		 * Autolinker compatibility with IE8, and also to prevent creating many new
		 * arrays in memory for filtering.
		 *
		 * @param {Array} arr The array to remove elements from. This array is
		 *   mutated.
		 * @param {Function} fn A function which should return `true` to
		 *   remove an element.
		 * @return {Array} The mutated input `arr`.
		 */
		remove : function( arr, fn ) {
			for( var i = arr.length - 1; i >= 0; i-- ) {
				if( fn( arr[ i ] ) === true ) {
					arr.splice( i, 1 );
				}
			}
		},
	
	
		/**
		 * Performs the functionality of what modern browsers do when `String.prototype.split()` is called
		 * with a regular expression that contains capturing parenthesis.
		 *
		 * For example:
		 *
		 *     // Modern browsers:
		 *     "a,b,c".split( /(,)/ );  // --> [ 'a', ',', 'b', ',', 'c' ]
		 *
		 *     // Old IE (including IE8):
		 *     "a,b,c".split( /(,)/ );  // --> [ 'a', 'b', 'c' ]
		 *
		 * This method emulates the functionality of modern browsers for the old IE case.
		 *
		 * @param {String} str The string to split.
		 * @param {RegExp} splitRegex The regular expression to split the input `str` on. The splitting
		 *   character(s) will be spliced into the array, as in the "modern browsers" example in the
		 *   description of this method.
		 *   Note #1: the supplied regular expression **must** have the 'g' flag specified.
		 *   Note #2: for simplicity's sake, the regular expression does not need
		 *   to contain capturing parenthesis - it will be assumed that any match has them.
		 * @return {String[]} The split array of strings, with the splitting character(s) included.
		 */
		splitAndCapture : function( str, splitRegex ) {
			if( !splitRegex.global ) throw new Error( "`splitRegex` must have the 'g' flag set" );
	
			var result = [],
			    lastIdx = 0,
			    match;
	
			while( match = splitRegex.exec( str ) ) {
				result.push( str.substring( lastIdx, match.index ) );
				result.push( match[ 0 ] );  // push the splitting char(s)
	
				lastIdx = match.index + match[ 0 ].length;
			}
			result.push( str.substring( lastIdx ) );
	
			return result;
		},
	
	
		/**
		 * Trims the leading and trailing whitespace from a string.
		 *
		 * @param {String} str The string to trim.
		 * @return {String}
		 */
		trim : function( str ) {
			return str.replace( this.trimRegex, '' );
		}
	
	};
	
	/*global Autolinker */
	/*jshint boss:true */
	/**
	 * @class Autolinker.HtmlTag
	 * @extends Object
	 *
	 * Represents an HTML tag, which can be used to easily build/modify HTML tags programmatically.
	 *
	 * Autolinker uses this abstraction to create HTML tags, and then write them out as strings. You may also use
	 * this class in your code, especially within a {@link Autolinker#replaceFn replaceFn}.
	 *
	 * ## Examples
	 *
	 * Example instantiation:
	 *
	 *     var tag = new Autolinker.HtmlTag( {
	 *         tagName : 'a',
	 *         attrs   : { 'href': 'http://google.com', 'class': 'external-link' },
	 *         innerHtml : 'Google'
	 *     } );
	 *
	 *     tag.toAnchorString();  // <a href="http://google.com" class="external-link">Google</a>
	 *
	 *     // Individual accessor methods
	 *     tag.getTagName();                 // 'a'
	 *     tag.getAttr( 'href' );            // 'http://google.com'
	 *     tag.hasClass( 'external-link' );  // true
	 *
	 *
	 * Using mutator methods (which may be used in combination with instantiation config properties):
	 *
	 *     var tag = new Autolinker.HtmlTag();
	 *     tag.setTagName( 'a' );
	 *     tag.setAttr( 'href', 'http://google.com' );
	 *     tag.addClass( 'external-link' );
	 *     tag.setInnerHtml( 'Google' );
	 *
	 *     tag.getTagName();                 // 'a'
	 *     tag.getAttr( 'href' );            // 'http://google.com'
	 *     tag.hasClass( 'external-link' );  // true
	 *
	 *     tag.toAnchorString();  // <a href="http://google.com" class="external-link">Google</a>
	 *
	 *
	 * ## Example use within a {@link Autolinker#replaceFn replaceFn}
	 *
	 *     var html = Autolinker.link( "Test google.com", {
	 *         replaceFn : function( match ) {
	 *             var tag = match.buildTag();  // returns an {@link Autolinker.HtmlTag} instance, configured with the Match's href and anchor text
	 *             tag.setAttr( 'rel', 'nofollow' );
	 *
	 *             return tag;
	 *         }
	 *     } );
	 *
	 *     // generated html:
	 *     //   Test <a href="http://google.com" target="_blank" rel="nofollow">google.com</a>
	 *
	 *
	 * ## Example use with a new tag for the replacement
	 *
	 *     var html = Autolinker.link( "Test google.com", {
	 *         replaceFn : function( match ) {
	 *             var tag = new Autolinker.HtmlTag( {
	 *                 tagName : 'button',
	 *                 attrs   : { 'title': 'Load URL: ' + match.getAnchorHref() },
	 *                 innerHtml : 'Load URL: ' + match.getAnchorText()
	 *             } );
	 *
	 *             return tag;
	 *         }
	 *     } );
	 *
	 *     // generated html:
	 *     //   Test <button title="Load URL: http://google.com">Load URL: google.com</button>
	 */
	Autolinker.HtmlTag = Autolinker.Util.extend( Object, {
	
		/**
		 * @cfg {String} tagName
		 *
		 * The tag name. Ex: 'a', 'button', etc.
		 *
		 * Not required at instantiation time, but should be set using {@link #setTagName} before {@link #toAnchorString}
		 * is executed.
		 */
	
		/**
		 * @cfg {Object.<String, String>} attrs
		 *
		 * An key/value Object (map) of attributes to create the tag with. The keys are the attribute names, and the
		 * values are the attribute values.
		 */
	
		/**
		 * @cfg {String} innerHtml
		 *
		 * The inner HTML for the tag.
		 *
		 * Note the camel case name on `innerHtml`. Acronyms are camelCased in this utility (such as not to run into the acronym
		 * naming inconsistency that the DOM developers created with `XMLHttpRequest`). You may alternatively use {@link #innerHTML}
		 * if you prefer, but this one is recommended.
		 */
	
		/**
		 * @cfg {String} innerHTML
		 *
		 * Alias of {@link #innerHtml}, accepted for consistency with the browser DOM api, but prefer the camelCased version
		 * for acronym names.
		 */
	
	
		/**
		 * @protected
		 * @property {RegExp} whitespaceRegex
		 *
		 * Regular expression used to match whitespace in a string of CSS classes.
		 */
		whitespaceRegex : /\s+/,
	
	
		/**
		 * @constructor
		 * @param {Object} [cfg] The configuration properties for this class, in an Object (map)
		 */
		constructor : function( cfg ) {
			Autolinker.Util.assign( this, cfg );
	
			this.innerHtml = this.innerHtml || this.innerHTML;  // accept either the camelCased form or the fully capitalized acronym
		},
	
	
		/**
		 * Sets the tag name that will be used to generate the tag with.
		 *
		 * @param {String} tagName
		 * @return {Autolinker.HtmlTag} This HtmlTag instance, so that method calls may be chained.
		 */
		setTagName : function( tagName ) {
			this.tagName = tagName;
			return this;
		},
	
	
		/**
		 * Retrieves the tag name.
		 *
		 * @return {String}
		 */
		getTagName : function() {
			return this.tagName || "";
		},
	
	
		/**
		 * Sets an attribute on the HtmlTag.
		 *
		 * @param {String} attrName The attribute name to set.
		 * @param {String} attrValue The attribute value to set.
		 * @return {Autolinker.HtmlTag} This HtmlTag instance, so that method calls may be chained.
		 */
		setAttr : function( attrName, attrValue ) {
			var tagAttrs = this.getAttrs();
			tagAttrs[ attrName ] = attrValue;
	
			return this;
		},
	
	
		/**
		 * Retrieves an attribute from the HtmlTag. If the attribute does not exist, returns `undefined`.
		 *
		 * @param {String} attrName The attribute name to retrieve.
		 * @return {String} The attribute's value, or `undefined` if it does not exist on the HtmlTag.
		 */
		getAttr : function( attrName ) {
			return this.getAttrs()[ attrName ];
		},
	
	
		/**
		 * Sets one or more attributes on the HtmlTag.
		 *
		 * @param {Object.<String, String>} attrs A key/value Object (map) of the attributes to set.
		 * @return {Autolinker.HtmlTag} This HtmlTag instance, so that method calls may be chained.
		 */
		setAttrs : function( attrs ) {
			var tagAttrs = this.getAttrs();
			Autolinker.Util.assign( tagAttrs, attrs );
	
			return this;
		},
	
	
		/**
		 * Retrieves the attributes Object (map) for the HtmlTag.
		 *
		 * @return {Object.<String, String>} A key/value object of the attributes for the HtmlTag.
		 */
		getAttrs : function() {
			return this.attrs || ( this.attrs = {} );
		},
	
	
		/**
		 * Sets the provided `cssClass`, overwriting any current CSS classes on the HtmlTag.
		 *
		 * @param {String} cssClass One or more space-separated CSS classes to set (overwrite).
		 * @return {Autolinker.HtmlTag} This HtmlTag instance, so that method calls may be chained.
		 */
		setClass : function( cssClass ) {
			return this.setAttr( 'class', cssClass );
		},
	
	
		/**
		 * Convenience method to add one or more CSS classes to the HtmlTag. Will not add duplicate CSS classes.
		 *
		 * @param {String} cssClass One or more space-separated CSS classes to add.
		 * @return {Autolinker.HtmlTag} This HtmlTag instance, so that method calls may be chained.
		 */
		addClass : function( cssClass ) {
			var classAttr = this.getClass(),
			    whitespaceRegex = this.whitespaceRegex,
			    indexOf = Autolinker.Util.indexOf,  // to support IE8 and below
			    classes = ( !classAttr ) ? [] : classAttr.split( whitespaceRegex ),
			    newClasses = cssClass.split( whitespaceRegex ),
			    newClass;
	
			while( newClass = newClasses.shift() ) {
				if( indexOf( classes, newClass ) === -1 ) {
					classes.push( newClass );
				}
			}
	
			this.getAttrs()[ 'class' ] = classes.join( " " );
			return this;
		},
	
	
		/**
		 * Convenience method to remove one or more CSS classes from the HtmlTag.
		 *
		 * @param {String} cssClass One or more space-separated CSS classes to remove.
		 * @return {Autolinker.HtmlTag} This HtmlTag instance, so that method calls may be chained.
		 */
		removeClass : function( cssClass ) {
			var classAttr = this.getClass(),
			    whitespaceRegex = this.whitespaceRegex,
			    indexOf = Autolinker.Util.indexOf,  // to support IE8 and below
			    classes = ( !classAttr ) ? [] : classAttr.split( whitespaceRegex ),
			    removeClasses = cssClass.split( whitespaceRegex ),
			    removeClass;
	
			while( classes.length && ( removeClass = removeClasses.shift() ) ) {
				var idx = indexOf( classes, removeClass );
				if( idx !== -1 ) {
					classes.splice( idx, 1 );
				}
			}
	
			this.getAttrs()[ 'class' ] = classes.join( " " );
			return this;
		},
	
	
		/**
		 * Convenience method to retrieve the CSS class(es) for the HtmlTag, which will each be separated by spaces when
		 * there are multiple.
		 *
		 * @return {String}
		 */
		getClass : function() {
			return this.getAttrs()[ 'class' ] || "";
		},
	
	
		/**
		 * Convenience method to check if the tag has a CSS class or not.
		 *
		 * @param {String} cssClass The CSS class to check for.
		 * @return {Boolean} `true` if the HtmlTag has the CSS class, `false` otherwise.
		 */
		hasClass : function( cssClass ) {
			return ( ' ' + this.getClass() + ' ' ).indexOf( ' ' + cssClass + ' ' ) !== -1;
		},
	
	
		/**
		 * Sets the inner HTML for the tag.
		 *
		 * @param {String} html The inner HTML to set.
		 * @return {Autolinker.HtmlTag} This HtmlTag instance, so that method calls may be chained.
		 */
		setInnerHtml : function( html ) {
			this.innerHtml = html;
	
			return this;
		},
	
	
		/**
		 * Retrieves the inner HTML for the tag.
		 *
		 * @return {String}
		 */
		getInnerHtml : function() {
			return this.innerHtml || "";
		},
	
	
		/**
		 * Override of superclass method used to generate the HTML string for the tag.
		 *
		 * @return {String}
		 */
		toAnchorString : function() {
			var tagName = this.getTagName(),
			    attrsStr = this.buildAttrsStr();
	
			attrsStr = ( attrsStr ) ? ' ' + attrsStr : '';  // prepend a space if there are actually attributes
	
			return [ '<', tagName, attrsStr, '>', this.getInnerHtml(), '</', tagName, '>' ].join( "" );
		},
	
	
		/**
		 * Support method for {@link #toAnchorString}, returns the string space-separated key="value" pairs, used to populate
		 * the stringified HtmlTag.
		 *
		 * @protected
		 * @return {String} Example return: `attr1="value1" attr2="value2"`
		 */
		buildAttrsStr : function() {
			if( !this.attrs ) return "";  // no `attrs` Object (map) has been set, return empty string
	
			var attrs = this.getAttrs(),
			    attrsArr = [];
	
			for( var prop in attrs ) {
				if( attrs.hasOwnProperty( prop ) ) {
					attrsArr.push( prop + '="' + attrs[ prop ] + '"' );
				}
			}
			return attrsArr.join( " " );
		}
	
	} );
	
	/*global Autolinker */
	/**
	 * @class Autolinker.RegexLib
	 * @singleton
	 *
	 * Builds and stores a library of the common regular expressions used by the
	 * Autolinker utility.
	 *
	 * Other regular expressions may exist ad-hoc, but these are generally the
	 * regular expressions that are shared between source files.
	 */
	Autolinker.RegexLib = (function() {
	
		/**
		 * The string form of a regular expression that would match all of the
		 * alphabetic ("letter") chars in the unicode character set when placed in a
		 * RegExp character class (`[]`). This includes all international alphabetic
		 * characters.
		 *
		 * These would be the characters matched by unicode regex engines `\p{L}`
		 * escape ("all letters").
		 *
		 * Taken from the XRegExp library: http://xregexp.com/
		 * Specifically: http://xregexp.com/v/3.0.0/unicode-categories.js
		 *
		 * @private
		 * @type {String}
		 */
		var alphaCharsStr = 'A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\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-\u08B4\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\u0AF9\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-\u0C5A\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\u0D5F-\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-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\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\u19B0-\u19C9\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\u2183\u2184\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\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\uAB70-\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';
	
		/**
		 * The string form of a regular expression that would match all of the
		 * decimal number chars in the unicode character set when placed in a RegExp
		 * character class (`[]`).
		 *
		 * These would be the characters matched by unicode regex engines `\p{Nd}`
		 * escape ("all decimal numbers")
		 *
		 * Taken from the XRegExp library: http://xregexp.com/
		 * Specifically: http://xregexp.com/v/3.0.0/unicode-categories.js
		 *
		 * @private
		 * @type {String}
		 */
		var decimalNumbersStr = '0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19';
	
	
		// See documentation below
		var alphaNumericCharsStr = alphaCharsStr + decimalNumbersStr;
	
		// Simplified IP regular expression
		var ipStr = '(?:[' + decimalNumbersStr + ']{1,3}\\.){3}[' + decimalNumbersStr + ']{1,3}';
	
		// Protected domain label which do not allow "-" character on the beginning and the end of a single label
		var domainLabelStr = '[' + alphaNumericCharsStr + '](?:[' + alphaNumericCharsStr + '\\-]{0,61}[' + alphaNumericCharsStr + '])?';
	
		var getDomainLabelStr = function(group) {
			return '(?=(' + domainLabelStr + '))\\' + group;
		};
	
		// See documentation below
		var getDomainNameStr = function(group) {
			return '(?:' + getDomainLabelStr(group) + '(?:\\.' + getDomainLabelStr(group + 1) + '){0,126}|' + ipStr + ')';
		};
	
		return {
	
			/**
			 * The string form of a regular expression that would match all of the
			 * letters and decimal number chars in the unicode character set when placed
			 * in a RegExp character class (`[]`).
			 *
			 * These would be the characters matched by unicode regex engines `[\p{L}\p{Nd}]`
			 * escape ("all letters and decimal numbers")
			 *
			 * @property {String} alphaNumericCharsStr
			 */
			alphaNumericCharsStr : alphaNumericCharsStr,
	
			/**
			 * The string form of a regular expression that would match all of the
			 * letters and in the unicode character set when placed
			 * in a RegExp character class (`[]`).
			 *
			 * These would be the characters matched by unicode regex engines `[\p{L}]`
			 * escape ("all letters")
			 *
			 * @property {String} alphaCharsStr
			 */
			alphaCharsStr : alphaCharsStr,
	
			/**
			 * A regular expression to match domain names of a URL or email address.
			 * Ex: 'google', 'yahoo', 'some-other-company', etc.
			 *
			 * @property {RegExp} domainNameRegex
			 */
			getDomainNameStr : getDomainNameStr,
	
		};
	
	
	}() );
	
	/*global Autolinker */
	/*jshint sub:true */
	/**
	 * @protected
	 * @class Autolinker.AnchorTagBuilder
	 * @extends Object
	 *
	 * Builds anchor (&lt;a&gt;) tags for the Autolinker utility when a match is
	 * found.
	 *
	 * Normally this class is instantiated, configured, and used internally by an
	 * {@link Autolinker} instance, but may actually be used indirectly in a
	 * {@link Autolinker#replaceFn replaceFn} to create {@link Autolinker.HtmlTag HtmlTag}
	 * instances which may be modified before returning from the
	 * {@link Autolinker#replaceFn replaceFn}. For example:
	 *
	 *     var html = Autolinker.link( "Test google.com", {
	 *         replaceFn : function( match ) {
	 *             var tag = match.buildTag();  // returns an {@link Autolinker.HtmlTag} instance
	 *             tag.setAttr( 'rel', 'nofollow' );
	 *
	 *             return tag;
	 *         }
	 *     } );
	 *
	 *     // generated html:
	 *     //   Test <a href="http://google.com" target="_blank" rel="nofollow">google.com</a>
	 */
	Autolinker.AnchorTagBuilder = Autolinker.Util.extend( Object, {
	
		/**
		 * @cfg {Boolean} newWindow
		 * @inheritdoc Autolinker#newWindow
		 */
	
		/**
		 * @cfg {Object} truncate
		 * @inheritdoc Autolinker#truncate
		 */
	
		/**
		 * @cfg {String} className
		 * @inheritdoc Autolinker#className
		 */
	
	
		/**
		 * @constructor
		 * @param {Object} [cfg] The configuration options for the AnchorTagBuilder instance, specified in an Object (map).
		 */
		constructor : function( cfg ) {
			cfg = cfg || {};
	
			this.newWindow = cfg.newWindow;
			this.truncate = cfg.truncate;
			this.className = cfg.className;
		},
	
	
		/**
		 * Generates the actual anchor (&lt;a&gt;) tag to use in place of the
		 * matched text, via its `match` object.
		 *
		 * @param {Autolinker.match.Match} match The Match instance to generate an
		 *   anchor tag from.
		 * @return {Autolinker.HtmlTag} The HtmlTag instance for the anchor tag.
		 */
		build : function( match ) {
			return new Autolinker.HtmlTag( {
				tagName   : 'a',
				attrs     : this.createAttrs( match ),
				innerHtml : this.processAnchorText( match.getAnchorText() )
			} );
		},
	
	
		/**
		 * Creates the Object (map) of the HTML attributes for the anchor (&lt;a&gt;)
		 *   tag being generated.
		 *
		 * @protected
		 * @param {Autolinker.match.Match} match The Match instance to generate an
		 *   anchor tag from.
		 * @return {Object} A key/value Object (map) of the anchor tag's attributes.
		 */
		createAttrs : function( match ) {
			var attrs = {
				'href' : match.getAnchorHref()  // we'll always have the `href` attribute
			};
	
			var cssClass = this.createCssClass( match );
			if( cssClass ) {
				attrs[ 'class' ] = cssClass;
			}
			if( this.newWindow ) {
				attrs[ 'target' ] = "_blank";
				attrs[ 'rel' ] = "noopener noreferrer";
			}
	
			if( this.truncate ) {
				if( this.truncate.length && this.truncate.length < match.getAnchorText().length ) {
					attrs[ 'title' ] = match.getAnchorHref();
				}
			}
	
			return attrs;
		},
	
	
		/**
		 * Creates the CSS class that will be used for a given anchor tag, based on
		 * the `matchType` and the {@link #className} config.
		 *
		 * Example returns:
		 *
		 * - ""                                      // no {@link #className}
		 * - "myLink myLink-url"                     // url match
		 * - "myLink myLink-email"                   // email match
		 * - "myLink myLink-phone"                   // phone match
		 * - "myLink myLink-hashtag"                 // hashtag match
		 * - "myLink myLink-mention myLink-twitter"  // mention match with Twitter service
		 *
		 * @private
		 * @param {Autolinker.match.Match} match The Match instance to generate an
		 *   anchor tag from.
		 * @return {String} The CSS class string for the link. Example return:
		 *   "myLink myLink-url". If no {@link #className} was configured, returns
		 *   an empty string.
		 */
		createCssClass : function( match ) {
			var className = this.className;
	
			if( !className ) {
				return "";
	
			} else {
				var returnClasses = [ className ],
					cssClassSuffixes = match.getCssClassSuffixes();
	
				for( var i = 0, len = cssClassSuffixes.length; i < len; i++ ) {
					returnClasses.push( className + '-' + cssClassSuffixes[ i ] );
				}
				return returnClasses.join( ' ' );
			}
		},
	
	
		/**
		 * Processes the `anchorText` by truncating the text according to the
		 * {@link #truncate} config.
		 *
		 * @private
		 * @param {String} anchorText The anchor tag's text (i.e. what will be
		 *   displayed).
		 * @return {String} The processed `anchorText`.
		 */
		processAnchorText : function( anchorText ) {
			anchorText = this.doTruncate( anchorText );
	
			return anchorText;
		},
	
	
		/**
		 * Performs the truncation of the `anchorText` based on the {@link #truncate}
		 * option. If the `anchorText` is longer than the length specified by the
		 * {@link #truncate} option, the truncation is performed based on the
		 * `location` property. See {@link #truncate} for details.
		 *
		 * @private
		 * @param {String} anchorText The anchor tag's text (i.e. what will be
		 *   displayed).
		 * @return {String} The truncated anchor text.
		 */
		doTruncate : function( anchorText ) {
			var truncate = this.truncate;
			if( !truncate || !truncate.length ) return anchorText;
	
			var truncateLength = truncate.length,
				truncateLocation = truncate.location;
	
			if( truncateLocation === 'smart' ) {
				return Autolinker.truncate.TruncateSmart( anchorText, truncateLength );
	
			} else if( truncateLocation === 'middle' ) {
				return Autolinker.truncate.TruncateMiddle( anchorText, truncateLength );
	
			} else {
				return Autolinker.truncate.TruncateEnd( anchorText, truncateLength );
			}
		}
	
	} );
	
	/*global Autolinker */
	/**
	 * @class Autolinker.htmlParser.HtmlParser
	 * @extends Object
	 *
	 * An HTML parser implementation which simply walks an HTML string and returns an array of
	 * {@link Autolinker.htmlParser.HtmlNode HtmlNodes} that represent the basic HTML structure of the input string.
	 *
	 * Autolinker uses this to only link URLs/emails/mentions within text nodes, effectively ignoring / "walking
	 * around" HTML tags.
	 */
	Autolinker.htmlParser.HtmlParser = Autolinker.Util.extend( Object, {
	
		/**
		 * @private
		 * @property {RegExp} htmlRegex
		 *
		 * The regular expression used to pull out HTML tags from a string. Handles namespaced HTML tags and
		 * attribute names, as specified by http://www.w3.org/TR/html-markup/syntax.html.
		 *
		 * Capturing groups:
		 *
		 * 1. The "!DOCTYPE" tag name, if a tag is a &lt;!DOCTYPE&gt; tag.
		 * 2. If it is an end tag, this group will have the '/'.
		 * 3. If it is a comment tag, this group will hold the comment text (i.e.
		 *    the text inside the `&lt;!--` and `--&gt;`.
		 * 4. The tag name for a tag without attributes (other than the &lt;!DOCTYPE&gt; tag)
		 * 5. The tag name for a tag with attributes (other than the &lt;!DOCTYPE&gt; tag)
		 */
		htmlRegex : (function() {
			var commentTagRegex = /!--([\s\S]+?)--/,
			    tagNameRegex = /[0-9a-zA-Z][0-9a-zA-Z:]*/,
			    attrNameRegex = /[^\s"'>\/=\x00-\x1F\x7F]+/,   // the unicode range accounts for excluding control chars, and the delete char
			    attrValueRegex = /(?:"[^"]*?"|'[^']*?'|[^'"=<>`\s]+)/, // double quoted, single quoted, or unquoted attribute values
			    optionalAttrValueRegex = '(?:\\s*?=\\s*?' + attrValueRegex.source + ')?'; // optional '=[value]'
	
			var getNameEqualsValueRegex = function(group) {
				return '(?=(' + attrNameRegex.source + '))\\' + group + optionalAttrValueRegex;
			};
	
			return new RegExp( [
				// for <!DOCTYPE> tag. Ex: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">)
				'(?:',
					'<(!DOCTYPE)',  // *** Capturing Group 1 - If it's a doctype tag
	
						// Zero or more attributes following the tag name
						'(?:',
							'\\s+',  // one or more whitespace chars before an attribute
	
							// Either:
							// A. attr="value", or
							// B. "value" alone (To cover example doctype tag: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">)
							// *** Capturing Group 2 - Pseudo-atomic group for attrNameRegex
							'(?:', getNameEqualsValueRegex(2), '|', attrValueRegex.source + ')',
						')*',
					'>',
				')',
	
				'|',
	
				// All other HTML tags (i.e. tags that are not <!DOCTYPE>)
				'(?:',
					'<(/)?',  // Beginning of a tag or comment. Either '<' for a start tag, or '</' for an end tag.
					          // *** Capturing Group 3: The slash or an empty string. Slash ('/') for end tag, empty string for start or self-closing tag.
	
						'(?:',
							commentTagRegex.source,  // *** Capturing Group 4 - A Comment Tag's Text
	
							'|',
	
							// Handle tag without attributes.
							// Doing this separately from a tag that has attributes
							// to fix a regex time complexity issue seen with the
							// example in https://github.com/gregjacobs/Autolinker.js/issues/172
							'(?:',
								// *** Capturing Group 5 - The tag name for a tag without attributes
								'(' + tagNameRegex.source + ')',
	
								'\\s*/?',  // any trailing spaces and optional '/' before the closing '>'
							')',
	
							'|',
	
							// Handle tag with attributes
							// Doing this separately from a tag with no attributes
							// to fix a regex time complexity issue seen with the
							// example in https://github.com/gregjacobs/Autolinker.js/issues/172
							'(?:',
								// *** Capturing Group 6 - The tag name for a tag with attributes
								'(' + tagNameRegex.source + ')',
	
								'\\s+',  // must have at least one space after the tag name to prevent ReDoS issue (issue #172)
	
								// Zero or more attributes following the tag name
								'(?:',
									'(?:\\s+|\\b)',        // any number of whitespace chars before an attribute. NOTE: Using \s* here throws Chrome into an infinite loop for some reason, so using \s+|\b instead
									// *** Capturing Group 7 - Pseudo-atomic group for attrNameRegex
									getNameEqualsValueRegex(7),  // attr="value" (with optional ="value" part)
								')*',
	
								'\\s*/?',  // any trailing spaces and optional '/' before the closing '>'
							')',
						')',
					'>',
				')'
			].join( "" ), 'gi' );
		} )(),
	
		/**
		 * @private
		 * @property {RegExp} htmlCharacterEntitiesRegex
		 *
		 * The regular expression that matches common HTML character entities.
		 *
		 * Ignoring &amp; as it could be part of a query string -- handling it separately.
		 */
		htmlCharacterEntitiesRegex: /(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;|&quot;|&#34;|&#39;)/gi,
	
	
		/**
		 * Parses an HTML string and returns a simple array of {@link Autolinker.htmlParser.HtmlNode HtmlNodes}
		 * to represent the HTML structure of the input string.
		 *
		 * @param {String} html The HTML to parse.
		 * @return {Autolinker.htmlParser.HtmlNode[]}
		 */
		parse : function( html ) {
			var htmlRegex = this.htmlRegex,
			    currentResult,
			    lastIndex = 0,
			    textAndEntityNodes,
			    nodes = [];  // will be the result of the method
	
			while( ( currentResult = htmlRegex.exec( html ) ) !== null ) {
				var tagText = currentResult[ 0 ],
				    commentText = currentResult[ 4 ], // if we've matched a comment
				    tagName = currentResult[ 1 ] || currentResult[ 5 ] || currentResult[ 6 ],  // The <!DOCTYPE> tag (ex: "!DOCTYPE"), or another tag (ex: "a" or "img")
				    isClosingTag = !!currentResult[ 3 ],
				    offset = currentResult.index,
				    inBetweenTagsText = html.substring( lastIndex, offset );
	
				// Push TextNodes and EntityNodes for any text found between tags
				if( inBetweenTagsText ) {
					textAndEntityNodes = this.parseTextAndEntityNodes( lastIndex, inBetweenTagsText );
					nodes.push.apply( nodes, textAndEntityNodes );
				}
	
				// Push the CommentNode or ElementNode
				if( commentText ) {
					nodes.push( this.createCommentNode( offset, tagText, commentText ) );
				} else {
					nodes.push( this.createElementNode( offset, tagText, tagName, isClosingTag ) );
				}
	
				lastIndex = offset + tagText.length;
			}
	
			// Process any remaining text after the last HTML element. Will process all of the text if there were no HTML elements.
			if( lastIndex < html.length ) {
				var text = html.substring( lastIndex );
	
				// Push TextNodes and EntityNodes for any text found between tags
				if( text ) {
					textAndEntityNodes = this.parseTextAndEntityNodes( lastIndex, text );
	
					// Note: the following 3 lines were previously:
					//   nodes.push.apply( nodes, textAndEntityNodes );
					// but this was causing a "Maximum Call Stack Size Exceeded"
					// error on inputs with a large number of html entities.
					textAndEntityNodes.forEach( function( node ) {
						nodes.push( node );
					} );
				}
			}
	
			return nodes;
		},
	
	
		/**
		 * Parses text and HTML entity nodes from a given string. The input string
		 * should not have any HTML tags (elements) within it.
		 *
		 * @private
		 * @param {Number} offset The offset of the text node match within the
		 *   original HTML string.
		 * @param {String} text The string of text to parse. This is from an HTML
		 *   text node.
		 * @return {Autolinker.htmlParser.HtmlNode[]} An array of HtmlNodes to
		 *   represent the {@link Autolinker.htmlParser.TextNode TextNodes} and
		 *   {@link Autolinker.htmlParser.EntityNode EntityNodes} found.
		 */
		parseTextAndEntityNodes : function( offset, text ) {
			var nodes = [],
			    textAndEntityTokens = Autolinker.Util.splitAndCapture( text, this.htmlCharacterEntitiesRegex );  // split at HTML entities, but include the HTML entities in the results array
	
			// Every even numbered token is a TextNode, and every odd numbered token is an EntityNode
			// For example: an input `text` of "Test &quot;this&quot; today" would turn into the
			//   `textAndEntityTokens`: [ 'Test ', '&quot;', 'this', '&quot;', ' today' ]
			for( var i = 0, len = textAndEntityTokens.length; i < len; i += 2 ) {
				var textToken = textAndEntityTokens[ i ],
				    entityToken = textAndEntityTokens[ i + 1 ];
	
				if( textToken ) {
					nodes.push( this.createTextNode( offset, textToken ) );
					offset += textToken.length;
				}
				if( entityToken ) {
					nodes.push( this.createEntityNode( offset, entityToken ) );
					offset += entityToken.length;
				}
			}
			return nodes;
		},
	
	
		/**
		 * Factory method to create an {@link Autolinker.htmlParser.CommentNode CommentNode}.
		 *
		 * @private
		 * @param {Number} offset The offset of the match within the original HTML
		 *   string.
		 * @param {String} tagText The full text of the tag (comment) that was
		 *   matched, including its &lt;!-- and --&gt;.
		 * @param {String} commentText The full text of the comment that was matched.
		 */
		createCommentNode : function( offset, tagText, commentText ) {
			return new Autolinker.htmlParser.CommentNode( {
				offset : offset,
				text   : tagText,
				comment: Autolinker.Util.trim( commentText )
			} );
		},
	
	
		/**
		 * Factory method to create an {@link Autolinker.htmlParser.ElementNode ElementNode}.
		 *
		 * @private
		 * @param {Number} offset The offset of the match within the original HTML
		 *   string.
		 * @param {String} tagText The full text of the tag (element) that was
		 *   matched, including its attributes.
		 * @param {String} tagName The name of the tag. Ex: An &lt;img&gt; tag would
		 *   be passed to this method as "img".
		 * @param {Boolean} isClosingTag `true` if it's a closing tag, false
		 *   otherwise.
		 * @return {Autolinker.htmlParser.ElementNode}
		 */
		createElementNode : function( offset, tagText, tagName, isClosingTag ) {
			return new Autolinker.htmlParser.ElementNode( {
				offset  : offset,
				text    : tagText,
				tagName : tagName.toLowerCase(),
				closing : isClosingTag
			} );
		},
	
	
		/**
		 * Factory method to create a {@link Autolinker.htmlParser.EntityNode EntityNode}.
		 *
		 * @private
		 * @param {Number} offset The offset of the match within the original HTML
		 *   string.
		 * @param {String} text The text that was matched for the HTML entity (such
		 *   as '&amp;nbsp;').
		 * @return {Autolinker.htmlParser.EntityNode}
		 */
		createEntityNode : function( offset, text ) {
			return new Autolinker.htmlParser.EntityNode( { offset: offset, text: text } );
		},
	
	
		/**
		 * Factory method to create a {@link Autolinker.htmlParser.TextNode TextNode}.
		 *
		 * @private
		 * @param {Number} offset The offset of the match within the original HTML
		 *   string.
		 * @param {String} text The text that was matched.
		 * @return {Autolinker.htmlParser.TextNode}
		 */
		createTextNode : function( offset, text ) {
			return new Autolinker.htmlParser.TextNode( { offset: offset, text: text } );
		}
	
	} );
	
	/*global Autolinker */
	/**
	 * @abstract
	 * @class Autolinker.htmlParser.HtmlNode
	 *
	 * Represents an HTML node found in an input string. An HTML node is one of the
	 * following:
	 *
	 * 1. An {@link Autolinker.htmlParser.ElementNode ElementNode}, which represents
	 *    HTML tags.
	 * 2. A {@link Autolinker.htmlParser.CommentNode CommentNode}, which represents
	 *    HTML comments.
	 * 3. A {@link Autolinker.htmlParser.TextNode TextNode}, which represents text
	 *    outside or within HTML tags.
	 * 4. A {@link Autolinker.htmlParser.EntityNode EntityNode}, which represents
	 *    one of the known HTML entities that Autolinker looks for. This includes
	 *    common ones such as &amp;quot; and &amp;nbsp;
	 */
	Autolinker.htmlParser.HtmlNode = Autolinker.Util.extend( Object, {
	
		/**
		 * @cfg {Number} offset (required)
		 *
		 * The offset of the HTML node in the original text that was parsed.
		 */
		offset : undefined,
	
		/**
		 * @cfg {String} text (required)
		 *
		 * The text that was matched for the HtmlNode.
		 *
		 * - In the case of an {@link Autolinker.htmlParser.ElementNode ElementNode},
		 *   this will be the tag's text.
		 * - In the case of an {@link Autolinker.htmlParser.CommentNode CommentNode},
		 *   this will be the comment's text.
		 * - In the case of a {@link Autolinker.htmlParser.TextNode TextNode}, this
		 *   will be the text itself.
		 * - In the case of a {@link Autolinker.htmlParser.EntityNode EntityNode},
		 *   this will be the text of the HTML entity.
		 */
		text : undefined,
	
	
		/**
		 * @constructor
		 * @param {Object} cfg The configuration properties for the Match instance,
		 * specified in an Object (map).
		 */
		constructor : function( cfg ) {
			Autolinker.Util.assign( this, cfg );
	
			if( this.offset == null ) throw new Error( '`offset` cfg required' );
			if( this.text == null ) throw new Error( '`text` cfg required' );
		},
	
	
		/**
		 * Returns a string name for the type of node that this class represents.
		 *
		 * @abstract
		 * @return {String}
		 */
		getType : Autolinker.Util.abstractMethod,
	
	
		/**
		 * Retrieves the {@link #offset} of the HtmlNode. This is the offset of the
		 * HTML node in the original string that was parsed.
		 *
		 * @return {Number}
		 */
		getOffset : function() {
			return this.offset;
		},
	
	
		/**
		 * Retrieves the {@link #text} for the HtmlNode.
		 *
		 * @return {String}
		 */
		getText : function() {
			return this.text;
		}
	
	} );
	/*global Autolinker */
	/**
	 * @class Autolinker.htmlParser.CommentNode
	 * @extends Autolinker.htmlParser.HtmlNode
	 *
	 * Represents an HTML comment node that has been parsed by the
	 * {@link Autolinker.htmlParser.HtmlParser}.
	 *
	 * See this class's superclass ({@link Autolinker.htmlParser.HtmlNode}) for more
	 * details.
	 */
	Autolinker.htmlParser.CommentNode = Autolinker.Util.extend( Autolinker.htmlParser.HtmlNode, {
	
		/**
		 * @cfg {String} comment (required)
		 *
		 * The text inside the comment tag. This text is stripped of any leading or
		 * trailing whitespace.
		 */
		comment : '',
	
	
		/**
		 * Returns a string name for the type of node that this class represents.
		 *
		 * @return {String}
		 */
		getType : function() {
			return 'comment';
		},
	
	
		/**
		 * Returns the comment inside the comment tag.
		 *
		 * @return {String}
		 */
		getComment : function() {
			return this.comment;
		}
	
	} );
	/*global Autolinker */
	/**
	 * @class Autolinker.htmlParser.ElementNode
	 * @extends Autolinker.htmlParser.HtmlNode
	 *
	 * Represents an HTML element node that has been parsed by the {@link Autolinker.htmlParser.HtmlParser}.
	 *
	 * See this class's superclass ({@link Autolinker.htmlParser.HtmlNode}) for more
	 * details.
	 */
	Autolinker.htmlParser.ElementNode = Autolinker.Util.extend( Autolinker.htmlParser.HtmlNode, {
	
		/**
		 * @cfg {String} tagName (required)
		 *
		 * The name of the tag that was matched.
		 */
		tagName : '',
	
		/**
		 * @cfg {Boolean} closing (required)
		 *
		 * `true` if the element (tag) is a closing tag, `false` if its an opening
		 * tag.
		 */
		closing : false,
	
	
		/**
		 * Returns a string name for the type of node that this class represents.
		 *
		 * @return {String}
		 */
		getType : function() {
			return 'element';
		},
	
	
		/**
		 * Returns the HTML element's (tag's) name. Ex: for an &lt;img&gt; tag,
		 * returns "img".
		 *
		 * @return {String}
		 */
		getTagName : function() {
			return this.tagName;
		},
	
	
		/**
		 * Determines if the HTML element (tag) is a closing tag. Ex: &lt;div&gt;
		 * returns `false`, while &lt;/div&gt; returns `true`.
		 *
		 * @return {Boolean}
		 */
		isClosing : function() {
			return this.closing;
		}
	
	} );
	/*global Autolinker */
	/**
	 * @class Autolinker.htmlParser.EntityNode
	 * @extends Autolinker.htmlParser.HtmlNode
	 *
	 * Represents a known HTML entity node that has been parsed by the {@link Autolinker.htmlParser.HtmlParser}.
	 * Ex: '&amp;nbsp;', or '&amp#160;' (which will be retrievable from the {@link #getText}
	 * method.
	 *
	 * Note that this class will only be returned from the HtmlParser for the set of
	 * checked HTML entity nodes  defined by the {@link Autolinker.htmlParser.HtmlParser#htmlCharacterEntitiesRegex}.
	 *
	 * See this class's superclass ({@link Autolinker.htmlParser.HtmlNode}) for more
	 * details.
	 */
	Autolinker.htmlParser.EntityNode = Autolinker.Util.extend( Autolinker.htmlParser.HtmlNode, {
	
		/**
		 * Returns a string name for the type of node that this class represents.
		 *
		 * @return {String}
		 */
		getType : function() {
			return 'entity';
		}
	
	} );
	/*global Autolinker */
	/**
	 * @class Autolinker.htmlParser.TextNode
	 * @extends Autolinker.htmlParser.HtmlNode
	 *
	 * Represents a text node that has been parsed by the {@link Autolinker.htmlParser.HtmlParser}.
	 *
	 * See this class's superclass ({@link Autolinker.htmlParser.HtmlNode}) for more
	 * details.
	 */
	Autolinker.htmlParser.TextNode = Autolinker.Util.extend( Autolinker.htmlParser.HtmlNode, {
	
		/**
		 * Returns a string name for the type of node that this class represents.
		 *
		 * @return {String}
		 */
		getType : function() {
			return 'text';
		}
	
	} );
	/*global Autolinker */
	/**
	 * @abstract
	 * @class Autolinker.match.Match
	 *
	 * Represents a match found in an input string which should be Autolinked. A Match object is what is provided in a
	 * {@link Autolinker#replaceFn replaceFn}, and may be used to query for details about the match.
	 *
	 * For example:
	 *
	 *     var input = "...";  // string with URLs, Email Addresses, and Mentions (Twitter, Instagram, Soundcloud)
	 *
	 *     var linkedText = Autolinker.link( input, {
	 *         replaceFn : function( match ) {
	 *             console.log( "href = ", match.getAnchorHref() );
	 *             console.log( "text = ", match.getAnchorText() );
	 *
	 *             switch( match.getType() ) {
	 *                 case 'url' :
	 *                     console.log( "url: ", match.getUrl() );
	 *
	 *                 case 'email' :
	 *                     console.log( "email: ", match.getEmail() );
	 *
	 *                 case 'mention' :
	 *                     console.log( "mention: ", match.getMention() );
	 *             }
	 *         }
	 *     } );
	 *
	 * See the {@link Autolinker} class for more details on using the {@link Autolinker#replaceFn replaceFn}.
	 */
	Autolinker.match.Match = Autolinker.Util.extend( Object, {
	
		/**
		 * @cfg {Autolinker.AnchorTagBuilder} tagBuilder (required)
		 *
		 * Reference to the AnchorTagBuilder instance to use to generate an anchor
		 * tag for the Match.
		 */
	
		/**
		 * @cfg {String} matchedText (required)
		 *
		 * The original text that was matched by the {@link Autolinker.matcher.Matcher}.
		 */
	
		/**
		 * @cfg {Number} offset (required)
		 *
		 * The offset of where the match was made in the input string.
		 */
	
	
		/**
		 * @constructor
		 * @param {Object} cfg The configuration properties for the Match
		 *   instance, specified in an Object (map).
		 */
		constructor : function( cfg ) {
			if( cfg.tagBuilder == null ) throw new Error( '`tagBuilder` cfg required' );
			if( cfg.matchedText == null ) throw new Error( '`matchedText` cfg required' );
			if( cfg.offset == null ) throw new Error( '`offset` cfg required' );
	
			this.tagBuilder = cfg.tagBuilder;
			this.matchedText = cfg.matchedText;
			this.offset = cfg.offset;
		},
	
	
		/**
		 * Returns a string name for the type of match that this class represents.
		 *
		 * @abstract
		 * @return {String}
		 */
		getType : Autolinker.Util.abstractMethod,
	
	
		/**
		 * Returns the original text that was matched.
		 *
		 * @return {String}
		 */
		getMatchedText : function() {
			return this.matchedText;
		},
	
	
		/**
		 * Sets the {@link #offset} of where the match was made in the input string.
		 *
		 * A {@link Autolinker.matcher.Matcher} will be fed only HTML text nodes,
		 * and will therefore set an original offset that is relative to the HTML
		 * text node itself. However, we want this offset to be relative to the full
		 * HTML input string, and thus if using {@link Autolinker#parse} (rather
		 * than calling a {@link Autolinker.matcher.Matcher} directly), then this
		 * offset is corrected after the Matcher itself has done its job.
		 *
		 * @param {Number} offset
		 */
		setOffset : function( offset ) {
			this.offset = offset;
		},
	
	
		/**
		 * Returns the offset of where the match was made in the input string. This
		 * is the 0-based index of the match.
		 *
		 * @return {Number}
		 */
		getOffset : function() {
			return this.offset;
		},
	
	
		/**
		 * Returns the anchor href that should be generated for the match.
		 *
		 * @abstract
		 * @return {String}
		 */
		getAnchorHref : Autolinker.Util.abstractMethod,
	
	
		/**
		 * Returns the anchor text that should be generated for the match.
		 *
		 * @abstract
		 * @return {String}
		 */
		getAnchorText : Autolinker.Util.abstractMethod,
	
	
		/**
		 * Returns the CSS class suffix(es) for this match.
		 *
		 * A CSS class suffix is appended to the {@link Autolinker#className} in
		 * the {@link Autolinker.AnchorTagBuilder} when a match is translated into
		 * an anchor tag.
		 *
		 * For example, if {@link Autolinker#className} was configured as 'myLink',
		 * and this method returns `[ 'url' ]`, the final class name of the element
		 * will become: 'myLink myLink-url'.
		 *
		 * The match may provide multiple CSS class suffixes to be appended to the
		 * {@link Autolinker#className} in order to facilitate better styling
		 * options for different match criteria. See {@link Autolinker.match.Mention}
		 * for an example.
		 *
		 * By default, this method returns a single array with the match's
		 * {@link #getType type} name, but may be overridden by subclasses.
		 *
		 * @return {String[]}
		 */
		getCssClassSuffixes : function() {
			return [ this.getType() ];
		},
	
	
		/**
		 * Builds and returns an {@link Autolinker.HtmlTag} instance based on the
		 * Match.
		 *
		 * This can be used to easily generate anchor tags from matches, and either
		 * return their HTML string, or modify them before doing so.
		 *
		 * Example Usage:
		 *
		 *     var tag = match.buildTag();
		 *     tag.addClass( 'cordova-link' );
		 *     tag.setAttr( 'target', '_system' );
		 *
		 *     tag.toAnchorString();  // <a href="http://google.com" class="cordova-link" target="_system">Google</a>
		 */
		buildTag : function() {
			return this.tagBuilder.build( this );
		}
	
	} );
	
	/*global Autolinker */
	/**
	 * @class Autolinker.match.Email
	 * @extends Autolinker.match.Match
	 *
	 * Represents a Email match found in an input string which should be Autolinked.
	 *
	 * See this class's superclass ({@link Autolinker.match.Match}) for more details.
	 */
	Autolinker.match.Email = Autolinker.Util.extend( Autolinker.match.Match, {
	
		/**
		 * @cfg {String} email (required)
		 *
		 * The email address that was matched.
		 */
	
	
		/**
		 * @constructor
		 * @param {Object} cfg The configuration properties for the Match
		 *   instance, specified in an Object (map).
		 */
		constructor : function( cfg ) {
			Autolinker.match.Match.prototype.constructor.call( this, cfg );
	
			if( !cfg.email ) throw new Error( '`email` cfg required' );
	
			this.email = cfg.email;
		},
	
	
		/**
		 * Returns a string name for the type of match that this class represents.
		 *
		 * @return {String}
		 */
		getType : function() {
			return 'email';
		},
	
	
		/**
		 * Returns the email address that was matched.
		 *
		 * @return {String}
		 */
		getEmail : function() {
			return this.email;
		},
	
	
		/**
		 * Returns the anchor href that should be generated for the match.
		 *
		 * @return {String}
		 */
		getAnchorHref : function() {
			return 'mailto:' + this.email;
		},
	
	
		/**
		 * Returns the anchor text that should be generated for the match.
		 *
		 * @return {String}
		 */
		getAnchorText : function() {
			return this.email;
		}
	
	} );
	/*global Autolinker */
	/**
	 * @class Autolinker.match.Hashtag
	 * @extends Autolinker.match.Match
	 *
	 * Represents a Hashtag match found in an input string which should be
	 * Autolinked.
	 *
	 * See this class's superclass ({@link Autolinker.match.Match}) for more
	 * details.
	 */
	Autolinker.match.Hashtag = Autolinker.Util.extend( Autolinker.match.Match, {
	
		/**
		 * @cfg {String} serviceName
		 *
		 * The service to point hashtag matches to. See {@link Autolinker#hashtag}
		 * for available values.
		 */
	
		/**
		 * @cfg {String} hashtag (required)
		 *
		 * The Hashtag that was matched, without the '#'.
		 */
	
	
		/**
		 * @constructor
		 * @param {Object} cfg The configuration properties for the Match
		 *   instance, specified in an Object (map).
		 */
		constructor : function( cfg ) {
			Autolinker.match.Match.prototype.constructor.call( this, cfg );
	
			// TODO: if( !serviceName ) throw new Error( '`serviceName` cfg required' );
			if( !cfg.hashtag ) throw new Error( '`hashtag` cfg required' );
	
			this.serviceName = cfg.serviceName;
			this.hashtag = cfg.hashtag;
		},
	
	
		/**
		 * Returns the type of match that this class represents.
		 *
		 * @return {String}
		 */
		getType : function() {
			return 'hashtag';
		},
	
	
		/**
		 * Returns the configured {@link #serviceName} to point the Hashtag to.
		 * Ex: 'facebook', 'twitter'.
		 *
		 * @return {String}
		 */
		getServiceName : function() {
			return this.serviceName;
		},
	
	
		/**
		 * Returns the matched hashtag, without the '#' character.
		 *
		 * @return {String}
		 */
		getHashtag : function() {
			return this.hashtag;
		},
	
	
		/**
		 * Returns the anchor href that should be generated for the match.
		 *
		 * @return {String}
		 */
		getAnchorHref : function() {
			var serviceName = this.serviceName,
			    hashtag = this.hashtag;
	
			switch( serviceName ) {
				case 'twitter' :
					return 'https://twitter.com/hashtag/' + hashtag;
				case 'facebook' :
					return 'https://www.facebook.com/hashtag/' + hashtag;
				case 'instagram' :
					return 'https://instagram.com/explore/tags/' + hashtag;
	
				default :  // Shouldn't happen because Autolinker's constructor should block any invalid values, but just in case.
					throw new Error( 'Unknown service name to point hashtag to: ', serviceName );
			}
		},
	
	
		/**
		 * Returns the anchor text that should be generated for the match.
		 *
		 * @return {String}
		 */
		getAnchorText : function() {
			return '#' + this.hashtag;
		}
	
	} );
	
	/*global Autolinker */
	/**
	 * @class Autolinker.match.Phone
	 * @extends Autolinker.match.Match
	 *
	 * Represents a Phone number match found in an input string which should be
	 * Autolinked.
	 *
	 * See this class's superclass ({@link Autolinker.match.Match}) for more
	 * details.
	 */
	Autolinker.match.Phone = Autolinker.Util.extend( Autolinker.match.Match, {
	
		/**
		 * @protected
		 * @property {String} number (required)
		 *
		 * The phone number that was matched, without any delimiter characters.
		 *
		 * Note: This is a string to allow for prefixed 0's.
		 */
	
		/**
		 * @protected
		 * @property  {Boolean} plusSign (required)
		 *
		 * `true` if the matched phone number started with a '+' sign. We'll include
		 * it in the `tel:` URL if so, as this is needed for international numbers.
		 *
		 * Ex: '+1 (123) 456 7879'
		 */
	
	
		/**
		 * @constructor
		 * @param {Object} cfg The configuration properties for the Match
		 *   instance, specified in an Object (map).
		 */
		constructor : function( cfg ) {
			Autolinker.match.Match.prototype.constructor.call( this, cfg );
	
			if( !cfg.number ) throw new Error( '`number` cfg required' );
			if( cfg.plusSign == null ) throw new Error( '`plusSign` cfg required' );
	
			this.number = cfg.number;
			this.plusSign = cfg.plusSign;
		},
	
	
		/**
		 * Returns a string name for the type of match that this class represents.
		 *
		 * @return {String}
		 */
		getType : function() {
			return 'phone';
		},
	
	
		/**
		 * Returns the phone number that was matched as a string, without any
		 * delimiter characters.
		 *
		 * Note: This is a string to allow for prefixed 0's.
		 *
		 * @return {String}
		 */
		getNumber: function() {
			return this.number;
		},
	
	
		/**
		 * Returns the anchor href that should be generated for the match.
		 *
		 * @return {String}
		 */
		getAnchorHref : function() {
			return 'tel:' + ( this.plusSign ? '+' : '' ) + this.number;
		},
	
	
		/**
		 * Returns the anchor text that should be generated for the match.
		 *
		 * @return {String}
		 */
		getAnchorText : function() {
			return this.matchedText;
		}
	
	} );
	
	/*global Autolinker */
	/**
	 * @class Autolinker.match.Mention
	 * @extends Autolinker.match.Match
	 *
	 * Represents a Mention match found in an input string which should be Autolinked.
	 *
	 * See this class's superclass ({@link Autolinker.match.Match}) for more details.
	 */
	Autolinker.match.Mention = Autolinker.Util.extend( Autolinker.match.Match, {
	
		/**
		 * @cfg {String} serviceName
		 *
		 * The service to point mention matches to. See {@link Autolinker#mention}
		 * for available values.
		 */
	
		/**
		 * @cfg {String} mention (required)
		 *
		 * The Mention that was matched, without the '@' character.
		 */
	
	
		/**
		 * @constructor
		 * @param {Object} cfg The configuration properties for the Match
		 *   instance, specified in an Object (map).
		 */
		constructor : function( cfg ) {
			Autolinker.match.Match.prototype.constructor.call( this, cfg );
	
			if( !cfg.serviceName ) throw new Error( '`serviceName` cfg required' );
			if( !cfg.mention ) throw new Error( '`mention` cfg required' );
	
			this.mention = cfg.mention;
			this.serviceName = cfg.serviceName;
		},
	
	
		/**
		 * Returns the type of match that this class represents.
		 *
		 * @return {String}
		 */
		getType : function() {
			return 'mention';
		},
	
	
		/**
		 * Returns the mention, without the '@' character.
		 *
		 * @return {String}
		 */
		getMention : function() {
			return this.mention;
		},
	
	
		/**
		 * Returns the configured {@link #serviceName} to point the mention to.
		 * Ex: 'instagram', 'twitter', 'soundcloud'.
		 *
		 * @return {String}
		 */
		getServiceName : function() {
			return this.serviceName;
		},
	
	
		/**
		 * Returns the anchor href that should be generated for the match.
		 *
		 * @return {String}
		 */
		getAnchorHref : function() {
			switch( this.serviceName ) {
				case 'twitter' :
					return 'https://twitter.com/' + this.mention;
				case 'instagram' :
					return 'https://instagram.com/' + this.mention;
				case 'soundcloud' :
					return 'https://soundcloud.com/' + this.mention;
	
				default :  // Shouldn't happen because Autolinker's constructor should block any invalid values, but just in case.
					throw new Error( 'Unknown service name to point mention to: ', this.serviceName );
			}
		},
	
	
		/**
		 * Returns the anchor text that should be generated for the match.
		 *
		 * @return {String}
		 */
		getAnchorText : function() {
			return '@' + this.mention;
		},
	
	
		/**
		 * Returns the CSS class suffixes that should be used on a tag built with
		 * the match. See {@link Autolinker.match.Match#getCssClassSuffixes} for
		 * details.
		 *
		 * @return {String[]}
		 */
		getCssClassSuffixes : function() {
			var cssClassSuffixes = Autolinker.match.Match.prototype.getCssClassSuffixes.call( this ),
			    serviceName = this.getServiceName();
	
			if( serviceName ) {
				cssClassSuffixes.push( serviceName );
			}
			return cssClassSuffixes;
		}
	
	} );
	
	/*global Autolinker */
	/**
	 * @class Autolinker.match.Url
	 * @extends Autolinker.match.Match
	 *
	 * Represents a Url match found in an input string which should be Autolinked.
	 *
	 * See this class's superclass ({@link Autolinker.match.Match}) for more details.
	 */
	Autolinker.match.Url = Autolinker.Util.extend( Autolinker.match.Match, {
	
		/**
		 * @cfg {String} url (required)
		 *
		 * The url that was matched.
		 */
	
		/**
		 * @cfg {"scheme"/"www"/"tld"} urlMatchType (required)
		 *
		 * The type of URL match that this class represents. This helps to determine
		 * if the match was made in the original text with a prefixed scheme (ex:
		 * 'http://www.google.com'), a prefixed 'www' (ex: 'www.google.com'), or
		 * was matched by a known top-level domain (ex: 'google.com').
		 */
	
		/**
		 * @cfg {Boolean} protocolUrlMatch (required)
		 *
		 * `true` if the URL is a match which already has a protocol (i.e.
		 * 'http://'), `false` if the match was from a 'www' or known TLD match.
		 */
	
		/**
		 * @cfg {Boolean} protocolRelativeMatch (required)
		 *
		 * `true` if the URL is a protocol-relative match. A protocol-relative match
		 * is a URL that starts with '//', and will be either http:// or https://
		 * based on the protocol that the site is loaded under.
		 */
	
		/**
		 * @cfg {Object} stripPrefix (required)
		 *
		 * The Object form of {@link Autolinker#cfg-stripPrefix}.
		 */
	
		/**
		 * @cfg {Boolean} stripTrailingSlash (required)
		 * @inheritdoc Autolinker#cfg-stripTrailingSlash
		 */
	
		/**
		 * @cfg {Boolean} decodePercentEncoding (required)
		 * @inheritdoc Autolinker#cfg-decodePercentEncoding
		 */
	
		/**
		 * @constructor
		 * @param {Object} cfg The configuration properties for the Match
		 *   instance, specified in an Object (map).
		 */
		constructor : function( cfg ) {
			Autolinker.match.Match.prototype.constructor.call( this, cfg );
	
			if( cfg.urlMatchType !== 'scheme' && cfg.urlMatchType !== 'www' && cfg.urlMatchType !== 'tld' ) throw new Error( '`urlMatchType` cfg must be one of: "scheme", "www", or "tld"' );
			if( !cfg.url ) throw new Error( '`url` cfg required' );
			if( cfg.protocolUrlMatch == null ) throw new Error( '`protocolUrlMatch` cfg required' );
			if( cfg.protocolRelativeMatch == null ) throw new Error( '`protocolRelativeMatch` cfg required' );
			if( cfg.stripPrefix == null ) throw new Error( '`stripPrefix` cfg required' );
			if( cfg.stripTrailingSlash == null ) throw new Error( '`stripTrailingSlash` cfg required' );
			if( cfg.decodePercentEncoding == null ) throw new Error( '`decodePercentEncoding` cfg required' );
	
			this.urlMatchType = cfg.urlMatchType;
			this.url = cfg.url;
			this.protocolUrlMatch = cfg.protocolUrlMatch;
			this.protocolRelativeMatch = cfg.protocolRelativeMatch;
			this.stripPrefix = cfg.stripPrefix;
			this.stripTrailingSlash = cfg.stripTrailingSlash;
			this.decodePercentEncoding = cfg.decodePercentEncoding;
		},
	
	
		/**
		 * @private
		 * @property {RegExp} schemePrefixRegex
		 *
		 * A regular expression used to remove the 'http://' or 'https://' from
		 * URLs.
		 */
		schemePrefixRegex: /^(https?:\/\/)?/i,
	
		/**
		 * @private
		 * @property {RegExp} wwwPrefixRegex
		 *
		 * A regular expression used to remove the 'www.' from URLs.
		 */
		wwwPrefixRegex: /^(https?:\/\/)?(www\.)?/i,
	
		/**
		 * @private
		 * @property {RegExp} protocolRelativeRegex
		 *
		 * The regular expression used to remove the protocol-relative '//' from the {@link #url} string, for purposes
		 * of {@link #getAnchorText}. A protocol-relative URL is, for example, "//yahoo.com"
		 */
		protocolRelativeRegex : /^\/\//,
	
		/**
		 * @private
		 * @property {Boolean} protocolPrepended
		 *
		 * Will be set to `true` if the 'http://' protocol has been prepended to the {@link #url} (because the
		 * {@link #url} did not have a protocol)
		 */
		protocolPrepended : false,
	
	
		/**
		 * Returns a string name for the type of match that this class represents.
		 *
		 * @return {String}
		 */
		getType : function() {
			return 'url';
		},
	
	
		/**
		 * Returns a string name for the type of URL match that this class
		 * represents.
		 *
		 * This helps to determine if the match was made in the original text with a
		 * prefixed scheme (ex: 'http://www.google.com'), a prefixed 'www' (ex:
		 * 'www.google.com'), or was matched by a known top-level domain (ex:
		 * 'google.com').
		 *
		 * @return {"scheme"/"www"/"tld"}
		 */
		getUrlMatchType : function() {
			return this.urlMatchType;
		},
	
	
		/**
		 * Returns the url that was matched, assuming the protocol to be 'http://' if the original
		 * match was missing a protocol.
		 *
		 * @return {String}
		 */
		getUrl : function() {
			var url = this.url;
	
			// if the url string doesn't begin with a protocol, assume 'http://'
			if( !this.protocolRelativeMatch && !this.protocolUrlMatch && !this.protocolPrepended ) {
				url = this.url = 'http://' + url;
	
				this.protocolPrepended = true;
			}
	
			return url;
		},
	
	
		/**
		 * Returns the anchor href that should be generated for the match.
		 *
		 * @return {String}
		 */
		getAnchorHref : function() {
			var url = this.getUrl();
	
			return url.replace( /&amp;/g, '&' );  // any &amp;'s in the URL should be converted back to '&' if they were displayed as &amp; in the source html
		},
	
	
		/**
		 * Returns the anchor text that should be generated for the match.
		 *
		 * @return {String}
		 */
		getAnchorText : function() {
			var anchorText = this.getMatchedText();
	
			if( this.protocolRelativeMatch ) {
				// Strip off any protocol-relative '//' from the anchor text
				anchorText = this.stripProtocolRelativePrefix( anchorText );
			}
			if( this.stripPrefix.scheme ) {
				anchorText = this.stripSchemePrefix( anchorText );
			}
			if( this.stripPrefix.www ) {
				anchorText = this.stripWwwPrefix( anchorText );
			}
			if( this.stripTrailingSlash ) {
				anchorText = this.removeTrailingSlash( anchorText );  // remove trailing slash, if there is one
			}
			if( this.decodePercentEncoding ) {
				anchorText = this.removePercentEncoding( anchorText);
			}
	
			return anchorText;
		},
	
	
		// ---------------------------------------
	
		// Utility Functionality
	
		/**
		 * Strips the scheme prefix (such as "http://" or "https://") from the given
		 * `url`.
		 *
		 * @private
		 * @param {String} url The text of the anchor that is being generated, for
		 *   which to strip off the url scheme.
		 * @return {String} The `url`, with the scheme stripped.
		 */
		stripSchemePrefix : function( url ) {
			return url.replace( this.schemePrefixRegex, '' );
		},
	
	
		/**
		 * Strips the 'www' prefix from the given `url`.
		 *
		 * @private
		 * @param {String} url The text of the anchor that is being generated, for
		 *   which to strip off the 'www' if it exists.
		 * @return {String} The `url`, with the 'www' stripped.
		 */
		stripWwwPrefix : function( url ) {
			return url.replace( this.wwwPrefixRegex, '$1' );  // leave any scheme ($1), it one exists
		},
	
	
		/**
		 * Strips any protocol-relative '//' from the anchor text.
		 *
		 * @private
		 * @param {String} text The text of the anchor that is being generated, for which to strip off the
		 *   protocol-relative prefix (such as stripping off "//")
		 * @return {String} The `anchorText`, with the protocol-relative prefix stripped.
		 */
		stripProtocolRelativePrefix : function( text ) {
			return text.replace( this.protocolRelativeRegex, '' );
		},
	
	
		/**
		 * Removes any trailing slash from the given `anchorText`, in preparation for the text to be displayed.
		 *
		 * @private
		 * @param {String} anchorText The text of the anchor that is being generated, for which to remove any trailing
		 *   slash ('/') that may exist.
		 * @return {String} The `anchorText`, with the trailing slash removed.
		 */
		removeTrailingSlash : function( anchorText ) {
			if( anchorText.charAt( anchorText.length - 1 ) === '/' ) {
				anchorText = anchorText.slice( 0, -1 );
			}
			return anchorText;
		},
	
		/**
		 * Decodes percent-encoded characters from the given `anchorText`, in preparation for the text to be displayed.
		 *
		 * @private
		 * @param {String} anchorText The text of the anchor that is being generated, for which to decode any percent-encoded characters.
		 * @return {String} The `anchorText`, with the percent-encoded characters decoded.
		 */
		removePercentEncoding : function( anchorText ) {
			try {
				return decodeURIComponent( anchorText
					.replace( /%22/gi, '&quot;' )
					.replace( /%26/gi, '&amp;' )
					.replace( /%27/gi, '&#39;')
					.replace( /%3C/gi, '&lt;' )
					.replace( /%3E/gi, '&gt;' )
				 );
			} catch (e) {
				// Invalid escape sequence.
				return anchorText;
			}
		}
	
	} );
	// NOTE: THIS IS A GENERATED FILE
	// To update with the latest TLD list, run `gulp update-tld-list`
	
	/*global Autolinker */
	Autolinker.tldRegex = /(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--3oq18vl8pn36a|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbc0a9azcg|xn--nqv7fs00ema|afamilycompany|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|international|lifeinsurance|orientexpress|spreadbetting|travelchannel|wolterskluwer|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|pamperedchef|scholarships|versicherung|xn--3e0b707e|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|rightathome|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--3bst00m|xn--3ds443g|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--pbt977c|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nationwide|newholland|nextdirect|onyourside|properties|protection|prudential|realestate|republican|restaurant|schaeffler|swiftcover|tatamotors|technology|telefonica|university|vistaprint|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|fujixerox|furniture|goldpoint|goodhands|hisamitsu|homedepot|homegoods|homesense|honeywell|institute|insurance|kuokgroup|ladbrokes|lancaster|landrover|lifestyle|marketing|marshalls|mcdonalds|melbourne|microsoft|montblanc|panasonic|passagens|pramerica|richardli|scjohnson|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--nqv7f|xn--p1acf|xn--tckwe|xn--vhquv|yodobashi|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|budapest|builders|business|capetown|catering|catholic|chrysler|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|esurance|everbank|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|mortgage|movistar|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|symantec|telecity|training|uconnect|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|cartier|channel|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|iselect|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lancome|lanxess|lasalle|latrobe|leclerc|liaison|limited|lincoln|markets|metlife|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|panerai|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|shriram|singles|spiegel|staples|starhub|statoil|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|الجزائر|العليان|پاکستان|كاثوليك|موبايلي|இந்தியா|abarth|abbott|abbvie|active|africa|agency|airbus|airtel|alipay|alsace|alstom|anquan|aramco|author|bayern|beauty|berlin|bharti|blanco|bostik|boston|broker|camera|career|caseih|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|mobily|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|piaget|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|warman|webcam|xihuan|xperia|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|boots|bosch|build|canon|cards|chase|cheap|chloe|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|dodge|drive|dubai|earth|edeka|email|epost|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glade|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|intel|irish|iveco|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|lixil|loans|locus|lotte|lotto|lupin|macys|mango|media|miami|money|mopar|movie|nadex|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vista|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|zippo|ایران|بازار|بھارت|سودان|سورية|همراه|संगठन|বাংলা|భారత్|嘉里大酒店|aarp|able|adac|aero|aigo|akdn|ally|amex|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|doha|duck|duns|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|mtpc|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|raid|read|reit|rent|rest|rich|rmit|room|rsvp|ruhr|safe|sale|sapo|sarl|save|saxo|scor|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بيتك|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ਭਾਰਤ|ભારત|ලංකා|グーグル|クラウド|ポイント|大众汽车|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bnl|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceb|ceo|cfa|cfd|com|crs|csc|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|htc|ibm|ice|icu|ifm|ing|ink|int|ist|itv|iwc|jcb|jcp|jio|jlc|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|lol|lpl|ltd|man|mba|mcd|med|men|meo|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|off|one|ong|onl|ooo|org|ott|ovh|pay|pet|pid|pin|pnc|pro|pru|pub|pwc|qvc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|srl|srt|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ストア|セール|みんな|中文网|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|工行|广东|微博|慈善|手机|手表|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|珠宝|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/;
	
	/*global Autolinker */
	/**
	 * @abstract
	 * @class Autolinker.matcher.Matcher
	 *
	 * An abstract class and interface for individual matchers to find matches in
	 * an input string with linkified versions of them.
	 *
	 * Note that Matchers do not take HTML into account - they must be fed the text
	 * nodes of any HTML string, which is handled by {@link Autolinker#parse}.
	 */
	Autolinker.matcher.Matcher = Autolinker.Util.extend( Object, {
	
		/**
		 * @cfg {Autolinker.AnchorTagBuilder} tagBuilder (required)
		 *
		 * Reference to the AnchorTagBuilder instance to use to generate HTML tags
		 * for {@link Autolinker.match.Match Matches}.
		 */
	
	
		/**
		 * @constructor
		 * @param {Object} cfg The configuration properties for the Matcher
		 *   instance, specified in an Object (map).
		 */
		constructor : function( cfg ) {
			if( !cfg.tagBuilder ) throw new Error( '`tagBuilder` cfg required' );
	
			this.tagBuilder = cfg.tagBuilder;
		},
	
	
		/**
		 * Parses the input `text` and returns the array of {@link Autolinker.match.Match Matches}
		 * for the matcher.
		 *
		 * @abstract
		 * @param {String} text The text to scan and replace matches in.
		 * @return {Autolinker.match.Match[]}
		 */
		parseMatches : Autolinker.Util.abstractMethod
	
	} );
	/*global Autolinker */
	/**
	 * @class Autolinker.matcher.Email
	 * @extends Autolinker.matcher.Matcher
	 *
	 * Matcher to find email matches in an input string.
	 *
	 * See this class's superclass ({@link Autolinker.matcher.Matcher}) for more details.
	 */
	Autolinker.matcher.Email = Autolinker.Util.extend( Autolinker.matcher.Matcher, {
	
		/**
		 * The regular expression to match email addresses. Example match:
		 *
		 *     person@place.com
		 *
		 * @private
		 * @property {RegExp} matcherRegex
		 */
		matcherRegex : (function() {
			var alphaNumericChars = Autolinker.RegexLib.alphaNumericCharsStr,
				specialCharacters = '!#$%&\'*+\\-\\/=?^_`{|}~',
				restrictedSpecialCharacters = '\\s"(),:;<>@\\[\\]',
				validCharacters = alphaNumericChars + specialCharacters,
				validRestrictedCharacters = validCharacters + restrictedSpecialCharacters,
			    emailRegex = new RegExp( '(?:[' + validCharacters + '](?:[' + validCharacters + ']|\\.(?!\\.|@))*|\\"[' + validRestrictedCharacters + '.]+\\")@'),
				getDomainNameStr = Autolinker.RegexLib.getDomainNameStr,
				tldRegex = Autolinker.tldRegex;  // match our known top level domains (TLDs)
	
			return new RegExp( [
				emailRegex.source,
				getDomainNameStr(1),
				'\\.', tldRegex.source   // '.com', '.net', etc
			].join( "" ), 'gi' );
		} )(),
	
	
		/**
		 * @inheritdoc
		 */
		parseMatches : function( text ) {
			var matcherRegex = this.matcherRegex,
			    tagBuilder = this.tagBuilder,
			    matches = [],
			    match;
	
			while( ( match = matcherRegex.exec( text ) ) !== null ) {
				var matchedText = match[ 0 ];
	
				matches.push( new Autolinker.match.Email( {
					tagBuilder  : tagBuilder,
					matchedText : matchedText,
					offset      : match.index,
					email       : matchedText
				} ) );
			}
	
			return matches;
		}
	
	} );
	
	/*global Autolinker */
	/**
	 * @class Autolinker.matcher.Hashtag
	 * @extends Autolinker.matcher.Matcher
	 *
	 * Matcher to find Hashtag matches in an input string.
	 */
	Autolinker.matcher.Hashtag = Autolinker.Util.extend( Autolinker.matcher.Matcher, {
	
		/**
		 * @cfg {String} serviceName
		 *
		 * The service to point hashtag matches to. See {@link Autolinker#hashtag}
		 * for available values.
		 */
	
	
		/**
		 * The regular expression to match Hashtags. Example match:
		 *
		 *     #asdf
		 *
		 * @private
		 * @property {RegExp} matcherRegex
		 */
		matcherRegex : new RegExp( '#[_' + Autolinker.RegexLib.alphaNumericCharsStr + ']{1,139}', 'g' ),
	
		/**
		 * The regular expression to use to check the character before a username match to
		 * make sure we didn't accidentally match an email address.
		 *
		 * For example, the string "asdf@asdf.com" should not match "@asdf" as a username.
		 *
		 * @private
		 * @property {RegExp} nonWordCharRegex
		 */
		nonWordCharRegex : new RegExp( '[^' + Autolinker.RegexLib.alphaNumericCharsStr + ']' ),
	
	
		/**
		 * @constructor
		 * @param {Object} cfg The configuration properties for the Match instance,
		 *   specified in an Object (map).
		 */
		constructor : function( cfg ) {
			Autolinker.matcher.Matcher.prototype.constructor.call( this, cfg );
	
			this.serviceName = cfg.serviceName;
		},
	
	
		/**
		 * @inheritdoc
		 */
		parseMatches : function( text ) {
			var matcherRegex = this.matcherRegex,
			    nonWordCharRegex = this.nonWordCharRegex,
			    serviceName = this.serviceName,
			    tagBuilder = this.tagBuilder,
			    matches = [],
			    match;
	
			while( ( match = matcherRegex.exec( text ) ) !== null ) {
				var offset = match.index,
				    prevChar = text.charAt( offset - 1 );
	
				// If we found the match at the beginning of the string, or we found the match
				// and there is a whitespace char in front of it (meaning it is not a '#' char
				// in the middle of a word), then it is a hashtag match.
				if( offset === 0 || nonWordCharRegex.test( prevChar ) ) {
					var matchedText = match[ 0 ],
					    hashtag = match[ 0 ].slice( 1 );  // strip off the '#' character at the beginning
	
					matches.push( new Autolinker.match.Hashtag( {
						tagBuilder  : tagBuilder,
						matchedText : matchedText,
						offset      : offset,
						serviceName : serviceName,
						hashtag     : hashtag
					} ) );
				}
			}
	
			return matches;
		}
	
	} );
	/*global Autolinker */
	/**
	 * @class Autolinker.matcher.Phone
	 * @extends Autolinker.matcher.Matcher
	 *
	 * Matcher to find Phone number matches in an input string.
	 *
	 * See this class's superclass ({@link Autolinker.matcher.Matcher}) for more
	 * details.
	 */
	Autolinker.matcher.Phone = Autolinker.Util.extend( Autolinker.matcher.Matcher, {
	
		/**
		 * The regular expression to match Phone numbers. Example match:
		 *
		 *     (123) 456-7890
		 *
		 * This regular expression has the following capturing groups:
		 *
		 * 1 or 2. The prefixed '+' sign, if there is one.
		 *
		 * @private
		 * @property {RegExp} matcherRegex
		 */
		matcherRegex : /(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/g,
	
		// ex: (123) 456-7890, 123 456 7890, 123-456-7890, +18004441234,,;,10226420346#,
		// +1 (800) 444 1234, 10226420346#, 1-800-444-1234,1022,64,20346#
	
		/**
		 * @inheritdoc
		 */
		parseMatches: function(text) {
			var matcherRegex = this.matcherRegex,
				tagBuilder = this.tagBuilder,
				matches = [],
				match;
	
			while ((match = matcherRegex.exec(text)) !== null) {
				// Remove non-numeric values from phone number string
				var matchedText = match[0],
					cleanNumber = matchedText.replace(/[^0-9,;#]/g, ''), // strip out non-digit characters exclude comma semicolon and #
					plusSign = !!(match[1] || match[2]), // match[ 1 ] or match[ 2 ] is the prefixed plus sign, if there is one
					before = match.index == 0 ? '' : text.substr(match.index - 1, 1),
					after = text.substr(match.index + matchedText.length, 1),
					contextClear = !before.match(/\d/) && !after.match(/\d/);
	
				if (this.testMatch(match[3]) && this.testMatch(matchedText) && contextClear) {
					matches.push(new Autolinker.match.Phone({
						tagBuilder: tagBuilder,
						matchedText: matchedText,
						offset: match.index,
						number: cleanNumber,
						plusSign: plusSign
					}));
				}
			}
	
			return matches;
		},
	
		testMatch: function(text) {
			return /\D/.test(text);
		}
	
	} );
	
	/*global Autolinker */
	/**
	 * @class Autolinker.matcher.Mention
	 * @extends Autolinker.matcher.Matcher
	 *
	 * Matcher to find/replace username matches in an input string.
	 */
	Autolinker.matcher.Mention = Autolinker.Util.extend( Autolinker.matcher.Matcher, {
	
		/**
		 * Hash of regular expression to match username handles. Example match:
		 *
		 *     @asdf
		 *
		 * @private
		 * @property {Object} matcherRegexes
		 */
		matcherRegexes : {
			"twitter": new RegExp( '@[_' + Autolinker.RegexLib.alphaNumericCharsStr + ']{1,20}', 'g' ),
			"instagram": new RegExp( '@[_.' + Autolinker.RegexLib.alphaNumericCharsStr + ']{1,50}', 'g' ),
			"soundcloud": new RegExp( '@[_.' + Autolinker.RegexLib.alphaNumericCharsStr + "\-" + ']{1,50}', 'g' )
		},
	
		/**
		 * The regular expression to use to check the character before a username match to
		 * make sure we didn't accidentally match an email address.
		 *
		 * For example, the string "asdf@asdf.com" should not match "@asdf" as a username.
		 *
		 * @private
		 * @property {RegExp} nonWordCharRegex
		 */
		nonWordCharRegex : new RegExp( '[^' + Autolinker.RegexLib.alphaNumericCharsStr + ']' ),
	
	
		/**
		 * @constructor
		 * @param {Object} cfg The configuration properties for the Match instance,
		 *   specified in an Object (map).
		 */
		constructor : function( cfg ) {
			Autolinker.matcher.Matcher.prototype.constructor.call( this, cfg );
	
			this.serviceName = cfg.serviceName;
		},
	
	
		/**
		 * @inheritdoc
		 */
		parseMatches : function( text ) {
			var matcherRegex = this.matcherRegexes[this.serviceName],
			    nonWordCharRegex = this.nonWordCharRegex,
			    serviceName = this.serviceName,
			    tagBuilder = this.tagBuilder,
			    matches = [],
			    match;
	
			if (!matcherRegex) {
				return matches;
			}
	
			while( ( match = matcherRegex.exec( text ) ) !== null ) {
				var offset = match.index,
				    prevChar = text.charAt( offset - 1 );
	
				// If we found the match at the beginning of the string, or we found the match
				// and there is a whitespace char in front of it (meaning it is not an email
				// address), then it is a username match.
				if( offset === 0 || nonWordCharRegex.test( prevChar ) ) {
					var matchedText = match[ 0 ].replace(/\.+$/g, ''), // strip off trailing .
					    mention = matchedText.slice( 1 );  // strip off the '@' character at the beginning
	
					matches.push( new Autolinker.match.Mention( {
						tagBuilder    : tagBuilder,
						matchedText   : matchedText,
						offset        : offset,
						serviceName   : serviceName,
						mention       : mention
					} ) );
				}
			}
	
			return matches;
		}
	
	} );
	
	/*global Autolinker */
	/**
	 * @class Autolinker.matcher.Url
	 * @extends Autolinker.matcher.Matcher
	 *
	 * Matcher to find URL matches in an input string.
	 *
	 * See this class's superclass ({@link Autolinker.matcher.Matcher}) for more details.
	 */
	Autolinker.matcher.Url = Autolinker.Util.extend( Autolinker.matcher.Matcher, {
	
		/**
		 * @cfg {Object} stripPrefix (required)
		 *
		 * The Object form of {@link Autolinker#cfg-stripPrefix}.
		 */
	
		/**
		 * @cfg {Boolean} stripTrailingSlash (required)
		 * @inheritdoc Autolinker#stripTrailingSlash
		 */
	
		/**
		 * @cfg {Boolean} decodePercentEncoding (required)
		 * @inheritdoc Autolinker#decodePercentEncoding
		 */
	
	
		/**
		 * @private
		 * @property {RegExp} matcherRegex
		 *
		 * The regular expression to match URLs with an optional scheme, port
		 * number, path, query string, and hash anchor.
		 *
		 * Example matches:
		 *
		 *     http://google.com
		 *     www.google.com
		 *     google.com/path/to/file?q1=1&q2=2#myAnchor
		 *
		 *
		 * This regular expression will have the following capturing groups:
		 *
		 * 1.  Group that matches a scheme-prefixed URL (i.e. 'http://google.com').
		 *     This is used to match scheme URLs with just a single word, such as
		 *     'http://localhost', where we won't double check that the domain name
		 *     has at least one dot ('.') in it.
		 * 2.  Group that matches a 'www.' prefixed URL. This is only matched if the
		 *     'www.' text was not prefixed by a scheme (i.e.: not prefixed by
		 *     'http://', 'ftp:', etc.)
		 * 3.  A protocol-relative ('//') match for the case of a 'www.' prefixed
		 *     URL. Will be an empty string if it is not a protocol-relative match.
		 *     We need to know the character before the '//' in order to determine
		 *     if it is a valid match or the // was in a string we don't want to
		 *     auto-link.
		 * 4.  Group that matches a known TLD (top level domain), when a scheme
		 *     or 'www.'-prefixed domain is not matched.
		 * 5.  A protocol-relative ('//') match for the case of a known TLD prefixed
		 *     URL. Will be an empty string if it is not a protocol-relative match.
		 *     See #3 for more info.
		 */
		matcherRegex : (function() {
			var schemeRegex = /(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/,  // match protocol, allow in format "http://" or "mailto:". However, do not match the first part of something like 'link:http://www.google.com' (i.e. don't match "link:"). Also, make sure we don't interpret 'google.com:8000' as if 'google.com' was a protocol here (i.e. ignore a trailing port number in this regex)
			    wwwRegex = /(?:www\.)/,                  // starting with 'www.'
			    getDomainNameStr = Autolinker.RegexLib.getDomainNameStr,
			    tldRegex = Autolinker.tldRegex,  // match our known top level domains (TLDs)
			    alphaNumericCharsStr = Autolinker.RegexLib.alphaNumericCharsStr,
	
			    // Allow optional path, query string, and hash anchor, not ending in the following characters: "?!:,.;"
			    // http://blog.codinghorror.com/the-problem-with-urls/
			    urlSuffixRegex = new RegExp( '[/?#](?:[' + alphaNumericCharsStr + '\\-+&@#/%=~_()|\'$*\\[\\]?!:,.;\u2713]*[' + alphaNumericCharsStr + '\\-+&@#/%=~_()|\'$*\\[\\]\u2713])?' );
	
			return new RegExp( [
				'(?:', // parens to cover match for scheme (optional), and domain
					'(',  // *** Capturing group $1, for a scheme-prefixed url (ex: http://google.com)
						schemeRegex.source,
						getDomainNameStr(2),
					')',
	
					'|',
	
					'(',  // *** Capturing group $4 for a 'www.' prefixed url (ex: www.google.com)
						'(//)?',  // *** Capturing group $5 for an optional protocol-relative URL. Must be at the beginning of the string or start with a non-word character (handled later)
						wwwRegex.source,
						getDomainNameStr(6),
					')',
	
					'|',
	
					'(',  // *** Capturing group $8, for known a TLD url (ex: google.com)
						'(//)?',  // *** Capturing group $9 for an optional protocol-relative URL. Must be at the beginning of the string or start with a non-word character (handled later)
						getDomainNameStr(10) + '\\.',
						tldRegex.source,
						'(?![-' + alphaNumericCharsStr + '])', // TLD not followed by a letter, behaves like unicode-aware \b
					')',
				')',
	
				'(?::[0-9]+)?', // port
	
				'(?:' + urlSuffixRegex.source + ')?'  // match for path, query string, and/or hash anchor - optional
			].join( "" ), 'gi' );
		} )(),
	
	
		/**
		 * A regular expression to use to check the character before a protocol-relative
		 * URL match. We don't want to match a protocol-relative URL if it is part
		 * of another word.
		 *
		 * For example, we want to match something like "Go to: //google.com",
		 * but we don't want to match something like "abc//google.com"
		 *
		 * This regular expression is used to test the character before the '//'.
		 *
		 * @private
		 * @type {RegExp} wordCharRegExp
		 */
		wordCharRegExp : new RegExp( '[' + Autolinker.RegexLib.alphaNumericCharsStr + ']' ),
	
	
		/**
		 * The regular expression to match opening parenthesis in a URL match.
		 *
		 * This is to determine if we have unbalanced parenthesis in the URL, and to
		 * drop the final parenthesis that was matched if so.
		 *
		 * Ex: The text "(check out: wikipedia.com/something_(disambiguation))"
		 * should only autolink the inner "wikipedia.com/something_(disambiguation)"
		 * part, so if we find that we have unbalanced parenthesis, we will drop the
		 * last one for the match.
		 *
		 * @private
		 * @property {RegExp}
		 */
		openParensRe : /\(/g,
	
		/**
		 * The regular expression to match closing parenthesis in a URL match. See
		 * {@link #openParensRe} for more information.
		 *
		 * @private
		 * @property {RegExp}
		 */
		closeParensRe : /\)/g,
	
	
		/**
		 * @constructor
		 * @param {Object} cfg The configuration properties for the Match instance,
		 *   specified in an Object (map).
		 */
		constructor : function( cfg ) {
			Autolinker.matcher.Matcher.prototype.constructor.call( this, cfg );
	
			if( cfg.stripPrefix == null ) throw new Error( '`stripPrefix` cfg required' );
			if( cfg.stripTrailingSlash == null ) throw new Error( '`stripTrailingSlash` cfg required' );
	
			this.stripPrefix = cfg.stripPrefix;
			this.stripTrailingSlash = cfg.stripTrailingSlash;
			this.decodePercentEncoding = cfg.decodePercentEncoding;
		},
	
	
		/**
		 * @inheritdoc
		 */
		parseMatches : function( text ) {
			var matcherRegex = this.matcherRegex,
			    stripPrefix = this.stripPrefix,
			    stripTrailingSlash = this.stripTrailingSlash,
			    decodePercentEncoding = this.decodePercentEncoding,
			    tagBuilder = this.tagBuilder,
			    matches = [],
			    match;
	
			while( ( match = matcherRegex.exec( text ) ) !== null ) {
				var matchStr = match[ 0 ],
				    schemeUrlMatch = match[ 1 ],
				    wwwUrlMatch = match[ 4 ],
				    wwwProtocolRelativeMatch = match[ 5 ],
				    //tldUrlMatch = match[ 8 ],  -- not needed at the moment
				    tldProtocolRelativeMatch = match[ 9 ],
				    offset = match.index,
				    protocolRelativeMatch = wwwProtocolRelativeMatch || tldProtocolRelativeMatch,
					prevChar = text.charAt( offset - 1 );
	
				if( !Autolinker.matcher.UrlMatchValidator.isValid( matchStr, schemeUrlMatch ) ) {
					continue;
				}
	
				// If the match is preceded by an '@' character, then it is either
				// an email address or a username. Skip these types of matches.
				if( offset > 0 && prevChar === '@' ) {
					continue;
				}
	
				// If it's a protocol-relative '//' match, but the character before the '//'
				// was a word character (i.e. a letter/number), then we found the '//' in the
				// middle of another word (such as "asdf//asdf.com"). In this case, skip the
				// match.
				if( offset > 0 && protocolRelativeMatch && this.wordCharRegExp.test( prevChar ) ) {
					continue;
				}
	
				if( /\?$/.test(matchStr) ) {
					matchStr = matchStr.substr(0, matchStr.length-1);
				}
	
				// Handle a closing parenthesis at the end of the match, and exclude
				// it if there is not a matching open parenthesis in the match
				// itself.
				if( this.matchHasUnbalancedClosingParen( matchStr ) ) {
					matchStr = matchStr.substr( 0, matchStr.length - 1 );  // remove the trailing ")"
				} else {
					// Handle an invalid character after the TLD
					var pos = this.matchHasInvalidCharAfterTld( matchStr, schemeUrlMatch );
					if( pos > -1 ) {
						matchStr = matchStr.substr( 0, pos ); // remove the trailing invalid chars
					}
				}
	
				var urlMatchType = schemeUrlMatch ? 'scheme' : ( wwwUrlMatch ? 'www' : 'tld' ),
				    protocolUrlMatch = !!schemeUrlMatch;
	
				matches.push( new Autolinker.match.Url( {
					tagBuilder            : tagBuilder,
					matchedText           : matchStr,
					offset                : offset,
					urlMatchType          : urlMatchType,
					url                   : matchStr,
					protocolUrlMatch      : protocolUrlMatch,
					protocolRelativeMatch : !!protocolRelativeMatch,
					stripPrefix           : stripPrefix,
					stripTrailingSlash    : stripTrailingSlash,
					decodePercentEncoding : decodePercentEncoding,
				} ) );
			}
	
			return matches;
		},
	
	
		/**
		 * Determines if a match found has an unmatched closing parenthesis. If so,
		 * this parenthesis will be removed from the match itself, and appended
		 * after the generated anchor tag.
		 *
		 * A match may have an extra closing parenthesis at the end of the match
		 * because the regular expression must include parenthesis for URLs such as
		 * "wikipedia.com/something_(disambiguation)", which should be auto-linked.
		 *
		 * However, an extra parenthesis *will* be included when the URL itself is
		 * wrapped in parenthesis, such as in the case of "(wikipedia.com/something_(disambiguation))".
		 * In this case, the last closing parenthesis should *not* be part of the
		 * URL itself, and this method will return `true`.
		 *
		 * @private
		 * @param {String} matchStr The full match string from the {@link #matcherRegex}.
		 * @return {Boolean} `true` if there is an unbalanced closing parenthesis at
		 *   the end of the `matchStr`, `false` otherwise.
		 */
		matchHasUnbalancedClosingParen : function( matchStr ) {
			var lastChar = matchStr.charAt( matchStr.length - 1 );
	
			if( lastChar === ')' ) {
				var openParensMatch = matchStr.match( this.openParensRe ),
				    closeParensMatch = matchStr.match( this.closeParensRe ),
				    numOpenParens = ( openParensMatch && openParensMatch.length ) || 0,
				    numCloseParens = ( closeParensMatch && closeParensMatch.length ) || 0;
	
				if( numOpenParens < numCloseParens ) {
					return true;
				}
			}
	
			return false;
		},
	
	
		/**
		 * Determine if there's an invalid character after the TLD in a URL. Valid
		 * characters after TLD are ':/?#'. Exclude scheme matched URLs from this
		 * check.
		 *
		 * @private
		 * @param {String} urlMatch The matched URL, if there was one. Will be an
		 *   empty string if the match is not a URL match.
		 * @param {String} schemeUrlMatch The match URL string for a scheme
		 *   match. Ex: 'http://yahoo.com'. This is used to match something like
		 *   'http://localhost', where we won't double check that the domain name
		 *   has at least one '.' in it.
		 * @return {Number} the position where the invalid character was found. If
		 *   no such character was found, returns -1
		 */
		matchHasInvalidCharAfterTld : function( urlMatch, schemeUrlMatch ) {
			if( !urlMatch ) {
				return -1;
			}
	
			var offset = 0;
			if ( schemeUrlMatch ) {
				offset = urlMatch.indexOf(':');
				urlMatch = urlMatch.slice(offset);
			}
	
			var alphaNumeric = Autolinker.RegexLib.alphaNumericCharsStr;
	
			var re = new RegExp("^((.?\/\/)?[-." + alphaNumeric + "]*[-" + alphaNumeric + "]\\.[-" + alphaNumeric + "]+)");
			var res = re.exec( urlMatch );
			if ( res === null ) {
				return -1;
			}
	
			offset += res[1].length;
			urlMatch = urlMatch.slice(res[1].length);
			if (/^[^-.A-Za-z0-9:\/?#]/.test(urlMatch)) {
				return offset;
			}
	
			return -1;
		}
	
	} );
	
	/*global Autolinker */
	/*jshint scripturl:true */
	/**
	 * @private
	 * @class Autolinker.matcher.UrlMatchValidator
	 * @singleton
	 *
	 * Used by Autolinker to filter out false URL positives from the
	 * {@link Autolinker.matcher.Url UrlMatcher}.
	 *
	 * Due to the limitations of regular expressions (including the missing feature
	 * of look-behinds in JS regular expressions), we cannot always determine the
	 * validity of a given match. This class applies a bit of additional logic to
	 * filter out any false positives that have been matched by the
	 * {@link Autolinker.matcher.Url UrlMatcher}.
	 */
	Autolinker.matcher.UrlMatchValidator = {
	
		/**
		 * Regex to test for a full protocol, with the two trailing slashes. Ex: 'http://'
		 *
		 * @private
		 * @property {RegExp} hasFullProtocolRegex
		 */
		hasFullProtocolRegex : /^[A-Za-z][-.+A-Za-z0-9]*:\/\//,
	
		/**
		 * Regex to find the URI scheme, such as 'mailto:'.
		 *
		 * This is used to filter out 'javascript:' and 'vbscript:' schemes.
		 *
		 * @private
		 * @property {RegExp} uriSchemeRegex
		 */
		uriSchemeRegex : /^[A-Za-z][-.+A-Za-z0-9]*:/,
	
		/**
		 * Regex to determine if at least one word char exists after the protocol (i.e. after the ':')
		 *
		 * @private
		 * @property {RegExp} hasWordCharAfterProtocolRegex
		 */
		hasWordCharAfterProtocolRegex : new RegExp(":[^\\s]*?[" + Autolinker.RegexLib.alphaCharsStr + "]"),
	
		/**
		 * Regex to determine if the string is a valid IP address
		 *
		 * @private
		 * @property {RegExp} ipRegex
		 */
		ipRegex: /[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,
	
		/**
		 * Determines if a given URL match found by the {@link Autolinker.matcher.Url UrlMatcher}
		 * is valid. Will return `false` for:
		 *
		 * 1) URL matches which do not have at least have one period ('.') in the
		 *    domain name (effectively skipping over matches like "abc:def").
		 *    However, URL matches with a protocol will be allowed (ex: 'http://localhost')
		 * 2) URL matches which do not have at least one word character in the
		 *    domain name (effectively skipping over matches like "git:1.0").
		 * 3) A protocol-relative url match (a URL beginning with '//') whose
		 *    previous character is a word character (effectively skipping over
		 *    strings like "abc//google.com")
		 *
		 * Otherwise, returns `true`.
		 *
		 * @param {String} urlMatch The matched URL, if there was one. Will be an
		 *   empty string if the match is not a URL match.
		 * @param {String} protocolUrlMatch The match URL string for a protocol
		 *   match. Ex: 'http://yahoo.com'. This is used to match something like
		 *   'http://localhost', where we won't double check that the domain name
		 *   has at least one '.' in it.
		 * @return {Boolean} `true` if the match given is valid and should be
		 *   processed, or `false` if the match is invalid and/or should just not be
		 *   processed.
		 */
		isValid : function( urlMatch, protocolUrlMatch ) {
			if(
				( protocolUrlMatch && !this.isValidUriScheme( protocolUrlMatch ) ) ||
				this.urlMatchDoesNotHaveProtocolOrDot( urlMatch, protocolUrlMatch ) ||    // At least one period ('.') must exist in the URL match for us to consider it an actual URL, *unless* it was a full protocol match (like 'http://localhost')
				(this.urlMatchDoesNotHaveAtLeastOneWordChar( urlMatch, protocolUrlMatch ) && // At least one letter character must exist in the domain name after a protocol match. Ex: skip over something like "git:1.0"
				   !this.isValidIpAddress( urlMatch )) || // Except if it's an IP address
				this.containsMultipleDots( urlMatch )
			) {
				return false;
			}
	
			return true;
		},
	
	
		isValidIpAddress : function ( uriSchemeMatch ) {
			var newRegex = new RegExp(this.hasFullProtocolRegex.source + this.ipRegex.source);
			var uriScheme = uriSchemeMatch.match( newRegex );
	
			return uriScheme !== null;
		},
	
		containsMultipleDots : function ( urlMatch ) {
			var stringBeforeSlash = urlMatch;
			if (this.hasFullProtocolRegex.test(urlMatch)) {
				stringBeforeSlash = urlMatch.split('://')[1];
			}
			return stringBeforeSlash.split('/')[0].indexOf("..") > -1;
		},
	
		/**
		 * Determines if the URI scheme is a valid scheme to be autolinked. Returns
		 * `false` if the scheme is 'javascript:' or 'vbscript:'
		 *
		 * @private
		 * @param {String} uriSchemeMatch The match URL string for a full URI scheme
		 *   match. Ex: 'http://yahoo.com' or 'mailto:a@a.com'.
		 * @return {Boolean} `true` if the scheme is a valid one, `false` otherwise.
		 */
		isValidUriScheme : function( uriSchemeMatch ) {
			var uriScheme = uriSchemeMatch.match( this.uriSchemeRegex )[ 0 ].toLowerCase();
	
			return ( uriScheme !== 'javascript:' && uriScheme !== 'vbscript:' );
		},
	
	
		/**
		 * Determines if a URL match does not have either:
		 *
		 * a) a full protocol (i.e. 'http://'), or
		 * b) at least one dot ('.') in the domain name (for a non-full-protocol
		 *    match).
		 *
		 * Either situation is considered an invalid URL (ex: 'git:d' does not have
		 * either the '://' part, or at least one dot in the domain name. If the
		 * match was 'git:abc.com', we would consider this valid.)
		 *
		 * @private
		 * @param {String} urlMatch The matched URL, if there was one. Will be an
		 *   empty string if the match is not a URL match.
		 * @param {String} protocolUrlMatch The match URL string for a protocol
		 *   match. Ex: 'http://yahoo.com'. This is used to match something like
		 *   'http://localhost', where we won't double check that the domain name
		 *   has at least one '.' in it.
		 * @return {Boolean} `true` if the URL match does not have a full protocol,
		 *   or at least one dot ('.') in a non-full-protocol match.
		 */
		urlMatchDoesNotHaveProtocolOrDot : function( urlMatch, protocolUrlMatch ) {
			return ( !!urlMatch && ( !protocolUrlMatch || !this.hasFullProtocolRegex.test( protocolUrlMatch ) ) && urlMatch.indexOf( '.' ) === -1 );
		},
	
	
		/**
		 * Determines if a URL match does not have at least one word character after
		 * the protocol (i.e. in the domain name).
		 *
		 * At least one letter character must exist in the domain name after a
		 * protocol match. Ex: skip over something like "git:1.0"
		 *
		 * @private
		 * @param {String} urlMatch The matched URL, if there was one. Will be an
		 *   empty string if the match is not a URL match.
		 * @param {String} protocolUrlMatch The match URL string for a protocol
		 *   match. Ex: 'http://yahoo.com'. This is used to know whether or not we
		 *   have a protocol in the URL string, in order to check for a word
		 *   character after the protocol separator (':').
		 * @return {Boolean} `true` if the URL match does not have at least one word
		 *   character in it after the protocol, `false` otherwise.
		 */
		urlMatchDoesNotHaveAtLeastOneWordChar : function( urlMatch, protocolUrlMatch ) {
			if( urlMatch && protocolUrlMatch ) {
				return !this.hasWordCharAfterProtocolRegex.test( urlMatch );
			} else {
				return false;
			}
		}
	
	};
	
	/*global Autolinker */
	/**
	 * A truncation feature where the ellipsis will be placed at the end of the URL.
	 *
	 * @param {String} anchorText
	 * @param {Number} truncateLen The maximum length of the truncated output URL string.
	 * @param {String} ellipsisChars The characters to place within the url, e.g. "..".
	 * @return {String} The truncated URL.
	 */
	Autolinker.truncate.TruncateEnd = function(anchorText, truncateLen, ellipsisChars){
		return Autolinker.Util.ellipsis( anchorText, truncateLen, ellipsisChars );
	};
	
	/*global Autolinker */
	/**
	 * Date: 2015-10-05
	 * Author: Kasper Søfren <soefritz@gmail.com> (https://github.com/kafoso)
	 *
	 * A truncation feature, where the ellipsis will be placed in the dead-center of the URL.
	 *
	 * @param {String} url             A URL.
	 * @param {Number} truncateLen     The maximum length of the truncated output URL string.
	 * @param {String} ellipsisChars   The characters to place within the url, e.g. "..".
	 * @return {String} The truncated URL.
	 */
	Autolinker.truncate.TruncateMiddle = function(url, truncateLen, ellipsisChars){
	  if (url.length <= truncateLen) {
	    return url;
	  }
	
	  var ellipsisLengthBeforeParsing;
	  var ellipsisLength;
	
	  if(ellipsisChars == null) {
	    ellipsisChars = '&hellip;';
	    ellipsisLengthBeforeParsing = 8;
	    ellipsisLength = 3;
	  } else {
	    ellipsisLengthBeforeParsing = ellipsisChars.length;
	    ellipsisLength = ellipsisChars.length;
	  }
	
	  var availableLength = truncateLen - ellipsisLength;
	  var end = "";
	  if (availableLength > 0) {
	    end = url.substr((-1)*Math.floor(availableLength/2));
	  }
	  return (url.substr(0, Math.ceil(availableLength/2)) + ellipsisChars + end).substr(0, availableLength + ellipsisLengthBeforeParsing);
	};
	
	/*global Autolinker */
	/**
	 * Date: 2015-10-05
	 * Author: Kasper Søfren <soefritz@gmail.com> (https://github.com/kafoso)
	 *
	 * A truncation feature, where the ellipsis will be placed at a section within
	 * the URL making it still somewhat human readable.
	 *
	 * @param {String} url						 A URL.
	 * @param {Number} truncateLen		 The maximum length of the truncated output URL string.
	 * @param {String} ellipsisChars	 The characters to place within the url, e.g. "...".
	 * @return {String} The truncated URL.
	 */
	Autolinker.truncate.TruncateSmart = function(url, truncateLen, ellipsisChars){
	
		var ellipsisLengthBeforeParsing;
		var ellipsisLength;
	
		if(ellipsisChars == null) {
			ellipsisChars = '&hellip;';
			ellipsisLength = 3;
			ellipsisLengthBeforeParsing = 8;
		} else {
			ellipsisLength = ellipsisChars.length;
			ellipsisLengthBeforeParsing = ellipsisChars.length;
		}
	
		var parse_url = function(url){ // Functionality inspired by PHP function of same name
			var urlObj = {};
			var urlSub = url;
			var match = urlSub.match(/^([a-z]+):\/\//i);
			if (match) {
				urlObj.scheme = match[1];
				urlSub = urlSub.substr(match[0].length);
			}
			match = urlSub.match(/^(.*?)(?=(\?|#|\/|$))/i);
			if (match) {
				urlObj.host = match[1];
				urlSub = urlSub.substr(match[0].length);
			}
			match = urlSub.match(/^\/(.*?)(?=(\?|#|$))/i);
			if (match) {
				urlObj.path = match[1];
				urlSub = urlSub.substr(match[0].length);
			}
			match = urlSub.match(/^\?(.*?)(?=(#|$))/i);
			if (match) {
				urlObj.query = match[1];
				urlSub = urlSub.substr(match[0].length);
			}
			match = urlSub.match(/^#(.*?)$/i);
			if (match) {
				urlObj.fragment = match[1];
				//urlSub = urlSub.substr(match[0].length);  -- not used. Uncomment if adding another block.
			}
			return urlObj;
		};
	
		var buildUrl = function(urlObj){
			var url = "";
			if (urlObj.scheme && urlObj.host) {
				url += urlObj.scheme + "://";
			}
			if (urlObj.host) {
				url += urlObj.host;
			}
			if (urlObj.path) {
				url += "/" + urlObj.path;
			}
			if (urlObj.query) {
				url += "?" + urlObj.query;
			}
			if (urlObj.fragment) {
				url += "#" + urlObj.fragment;
			}
			return url;
		};
	
		var buildSegment = function(segment, remainingAvailableLength){
			var remainingAvailableLengthHalf = remainingAvailableLength/ 2,
					startOffset = Math.ceil(remainingAvailableLengthHalf),
					endOffset = (-1)*Math.floor(remainingAvailableLengthHalf),
					end = "";
			if (endOffset < 0) {
				end = segment.substr(endOffset);
			}
			return segment.substr(0, startOffset) + ellipsisChars + end;
		};
		if (url.length <= truncateLen) {
			return url;
		}
		var availableLength = truncateLen - ellipsisLength;
		var urlObj = parse_url(url);
		// Clean up the URL
		if (urlObj.query) {
			var matchQuery = urlObj.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);
			if (matchQuery) {
				// Malformed URL; two or more "?". Removed any content behind the 2nd.
				urlObj.query = urlObj.query.substr(0, matchQuery[1].length);
				url = buildUrl(urlObj);
			}
		}
		if (url.length <= truncateLen) {
			return url;
		}
		if (urlObj.host) {
			urlObj.host = urlObj.host.replace(/^www\./, "");
			url = buildUrl(urlObj);
		}
		if (url.length <= truncateLen) {
			return url;
		}
		// Process and build the URL
		var str = "";
		if (urlObj.host) {
			str += urlObj.host;
		}
		if (str.length >= availableLength) {
			if (urlObj.host.length == truncateLen) {
				return (urlObj.host.substr(0, (truncateLen - ellipsisLength)) + ellipsisChars).substr(0, availableLength + ellipsisLengthBeforeParsing);
			}
			return buildSegment(str, availableLength).substr(0, availableLength + ellipsisLengthBeforeParsing);
		}
		var pathAndQuery = "";
		if (urlObj.path) {
			pathAndQuery += "/" + urlObj.path;
		}
		if (urlObj.query) {
			pathAndQuery += "?" + urlObj.query;
		}
		if (pathAndQuery) {
			if ((str+pathAndQuery).length >= availableLength) {
				if ((str+pathAndQuery).length == truncateLen) {
					return (str + pathAndQuery).substr(0, truncateLen);
				}
				var remainingAvailableLength = availableLength - str.length;
				return (str + buildSegment(pathAndQuery, remainingAvailableLength)).substr(0, availableLength + ellipsisLengthBeforeParsing);
			} else {
				str += pathAndQuery;
			}
		}
		if (urlObj.fragment) {
			var fragment = "#"+urlObj.fragment;
			if ((str+fragment).length >= availableLength) {
				if ((str+fragment).length == truncateLen) {
					return (str + fragment).substr(0, truncateLen);
				}
				var remainingAvailableLength2 = availableLength - str.length;
				return (str + buildSegment(fragment, remainingAvailableLength2)).substr(0, availableLength + ellipsisLengthBeforeParsing);
			} else {
				str += fragment;
			}
		}
		if (urlObj.scheme && urlObj.host) {
			var scheme = urlObj.scheme + "://";
			if ((str+scheme).length < availableLength) {
				return (scheme + str).substr(0, truncateLen);
			}
		}
		if (str.length <= truncateLen) {
			return str;
		}
		var end = "";
		if (availableLength > 0) {
			end = str.substr((-1)*Math.floor(availableLength/2));
		}
		return (str.substr(0, Math.ceil(availableLength/2)) + ellipsisChars + end).substr(0, availableLength + ellipsisLengthBeforeParsing);
	};
	
	return Autolinker;
	}));


/***/ }),
/* 282 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-major-explorer').factory('phxDelegateTagConfiguration', function phxDelegateTagConfiguration() {
	  return {
	    uniqueComponent: 'phx-delegate-tag',
	    vocabulary: {
	      invoke: function invoke(scope, elem, attrs, event) {
	        // eslint-disable-line no-unused-vars
	        return _.reduce(attrs.method.split('.'), function (acc, prop) {
	          return acc[prop];
	        }, scope)();
	      }
	    }
	  };
	}).directive('phxDelegateTag', function (DelegateResponder, phxDelegateTagConfiguration) {
	  return {
	    scope: false,
	    link: DelegateResponder(phxDelegateTagConfiguration, function (scope, element, attrs) {
	      // eslint-disable-line no-unused-vars
	    })
	  };
	}).service('phxDelegateTagDelegate', function phxDelegateTagDelegate(DelegateController, phxDelegateTagConfiguration) {
	  DelegateController(this, phxDelegateTagConfiguration);
	});

/***/ }),
/* 283 */
/***/ (function(module, exports) {

	'use strict';
	
	function surveyQuestionDirective($compile, $injector, ItemPresenterEnum, PresenterModeEnum) {
	  'use strict';
	
	  var templateWritePresenter = function eabItem_templateWritePresenter(presenterType, presenterMode) {
	    return '<survey-question-' + presenterType + ' item="surveyQuestion" mode="' + presenterMode + '"></div>';
	  };
	
	  var presenterDirectiveName = function presenterDirectiveName(type) {
	    return 'surveyQuestion' + _.capitalize(type.toLowerCase()) + 'Directive';
	  };
	
	  return {
	    restrict: 'A',
	    replace: false,
	    scope: {
	      explicitPresenter: '@',
	      surveyQuestion: '=',
	      mode: '@'
	    },
	    link: function itemLinkerFn($scope, $element) {
	      var presenterType;
	      var _presenterMode;
	      var explicitPresenter = $scope.explicitPresenter;
	      var surveyQuestion = $scope.surveyQuestion;
	
	      if (!surveyQuestion) {
	        // TODO fix this because log should be injected and then reference "system"?
	        log.warn('no surveyQuestion to interpolate presenter from');
	        return;
	      }
	
	      presenterType = !!explicitPresenter ? ItemPresenterEnum.get(explicitPresenter) : surveyQuestion.presenter;
	
	      presenterType = $injector.has(presenterDirectiveName(presenterType.id)) ? presenterType : ItemPresenterEnum.GENERIC;
	
	      if (!!$scope.mode) {
	        _presenterMode = PresenterModeEnum.get($scope.mode).key;
	      } else if (!!surveyQuestion._presenterMode) {
	        _presenterMode = surveyQuestion._presenterMode;
	      } else {
	        _presenterMode = DEFAULT_PRESENTER_MODE;
	      }
	
	      $element.append($compile(templateWritePresenter(presenterType.id, _presenterMode))($scope));
	    }
	  };
	}
	
	angular.module('capability-ng-major-explorer').directive('surveyQuestion', surveyQuestionDirective);

/***/ }),
/* 284 */
/***/ (function(module, exports) {

	'use strict';
	
	function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
	
	angular.module('major-explorer-data').constant('MyIntakeModelDTD', {
	  root: {
	    optional: true,
	    type: 'object'
	  },
	  source: {
	    optional: true,
	    type: 'object'
	  },
	  pages: {
	    optional: true,
	    type: 'array'
	  }
	}).provider('myIntakeModel', function myIntakeModelProvider(ngProgression, MyIntakeModelDTD) {
	  var configuration = {
	    createProgression: function createProgression(model) {
	      // 4 -> [0, 1, 2, 3]
	      return new ngProgression(_.size(model.pages));
	    }
	  };
	
	  this.configure = function configure_myIntakeModel(config) {
	    if (config) {
	      configuration = _.merge({}, configuration, config);
	    }
	    return configuration;
	  };
	
	  var MyIntakeModel = function MyIntakeModel(Interface) {
	    this.initialize = function initialize(intakeItem) {
	      Interface.implement(MyIntakeModelDTD, {}, this);
	
	      this.source = intakeItem;
	      this.root = intakeItem.root;
	      this.pages = splitOutPages(intakeItem.root);
	      this.progression = configuration.createProgression(this);
	      this.status = this.root._task.status;
	      this.hasNotStarted = false;
	      return this;
	    };
	
	    var splitOutPages = function splitOutPages(root) {
	      return _.map(root.children, function (childrenPage) {
	        return childrenPage;
	      });
	    };
	
	    this.splitOutRankPage = function splitOutRankPage() {
	      this.pages = splitOutChildPages(this.pages);
	      this.progression = configuration.createProgression(this);
	    };
	
	    function splitOutChildPages(pages) {
	      var res = [];
	      pages.forEach(function (page) {
	        page.children.length > 1 ? res.push.apply(res, _toConsumableArray(flattenChildPages(page))) : res.push(page);
	      });
	      return res;
	    }
	
	    function flattenChildPages(page) {
	      var pageChildren = page.children;
	      return pageChildren.map(function (child) {
	        return _.assign({}, page, {
	          children: [child]
	        });
	      });
	    }
	
	    this.setCurrentPageIndex = function setCurrentPageIndex(pageIndex) {
	      this.progression.index = parseInt(pageIndex, 10);
	      return this;
	    };
	
	    this.getCurrentPage = function getCurrentPage() {
	      // TODO make sure we never read progression.index, but use progression.current()
	      return this.pages[this.progression.current()];
	    };
	
	    this.setHasNotStarted = function setIsPreStart(notStarted) {
	      this.hasNotStarted = notStarted;
	    };
	  };
	
	  this.$get = function $get_myIntakeModel(Interface) {
	    return new MyIntakeModel(Interface);
	  };
	});

/***/ }),
/* 285 */
/***/ (function(module, exports) {

	'use strict';
	
	// FIXME: the group of builders contained in /builders/suggestions are all used by suggestions modal
	angular.module('capability-ng-scheduler').factory('CampusBuilder', function CampusBuilder(Interface) {
	  var DTD = {
	    id: 'key',
	    name: 'string',
	    is_online: 'boolean',
	    _locations: 'ngArray'
	  };
	
	  function CampusDTO(data) {
	    Interface.implement(DTD, data, this);
	  }
	
	  return CampusDTO;
	});

/***/ }),
/* 286 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-scheduler').factory('CourseBuilder', function CourseBuilder(Interface) {
	  var DTD = {
	    id: 'key',
	    nk: 'string',
	    cd: 'string',
	    title: 'string', // looks the same as name
	    desc: 'string',
	    credits: 'number',
	    term: 'key',
	    terms: 'array',
	    _sections: 'ngArray',
	    _has_selected_section: 'boolean',
	    _no_sections_available: 'boolean',
	    _available_section_count: 'integer',
	    _selected_section: 'object',
	    _instructors: 'array',
	    _checked: 'boolean',
	    _required_sections: {
	      type: 'ngArray',
	      typeDef: 'RequiredSectionsBuilder'
	    }
	  };
	
	  function CourseDTO(data) {
	    Interface.implement(DTD, data, this);
	  }
	
	  return CourseDTO;
	});

/***/ }),
/* 287 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-scheduler').factory('LocationBuilder', function LocationBuilder(Interface) {
	  var DTD = {
	    id: 'key',
	    campus: 'integer',
	    name: 'string',
	    address: 'string',
	    comments: 'string',
	    latittude: 'number',
	    longitude: 'number',
	    _campus: 'object'
	  };
	
	  function LocationDTO(data) {
	    Interface.implement(DTD, data, this);
	  }
	
	  return LocationDTO;
	});

/***/ }),
/* 288 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-scheduler')
	
	/**
	 * @post add campus object to location object for easier access in sectiontime object
	 */
	.constant('campusToLocationMappingFn', function campusToLocationMappingFn(data) {
	  _.each(data.location, function (location) {
	    this[location.id]._campus = _.find(data.campus, { id: location.campus });
	  }, this.location);
	})
	
	/**
	 * @post get location and add to sectiontime object
	 */
	.constant('locationToSectiontimeMappingFn', function locationToSectiontimeMappingFn(data) {
	  _.each(data.sectiontime, function (sectiontime) {
	    if (data.location && data.location[sectiontime.location]) {
	      this[sectiontime.id].campus = data.location[sectiontime.location].campus;
	      this[sectiontime.id]._location = data.location[sectiontime.location];
	    }
	  }, this.sectiontime);
	})
	
	/**
	 * @post sort sectiontimes by day of week ascending
	 */
	.constant('sortSectionTimesByDayOfWeek', function sortSectionTimesByDayOfWeek(data) {
	  data.sectiontime = _.sortBy(data.sectiontime, 'from_tm');
	  data.sectiontime = _.sortBy(data.sectiontime, 'day_of_week');
	})
	
	/**
	 * @post get section time and add to section object
	 */
	.constant('sectiontimeToSectionMappingFn', function sectiontimeToSectionMappingFn(data) {
	  _.each(data.sectiontime, function (sectiontime) {
	    this[sectiontime.section]._section_times.push(sectiontime);
	  }, this.section);
	})
	
	/**
	 * @post format section times, locations and campuses for display
	 */
	//todo: This could be simpler - also produce what UI needs instead of sending data back.
	.constant('timeAndDateDisplayToSectiontimeMappingFn', function timeAndDateDisplayToSectiontimeMappingFn(data) {
	  var daysOfWeekArray = ['', 'Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'];
	
	  _.each(data.section, function (section) {
	    section._section_info_display = [];
	
	    if (section.class_start_dt.format('YYYY') === section.class_end_dt.format('YYYY')) {
	      section._starts_and_ends_in_same_year = true;
	    }
	
	    var sectionTimesByCampus = _.groupBy(section._section_times, 'campus'),
	        _section_times_and_locations_at_campus = {};
	    _.each(sectionTimesByCampus, function (sectionTimeByCampus) {
	      var sectionTimesByLocation = _.groupBy(sectionTimeByCampus, 'location'),
	          _section_times_with_locations = [];
	      _.each(sectionTimesByLocation, function (sectionTimeByLocation) {
	        var _section_times_at_location = {};
	        _section_times_at_location.formattedTimes = [];
	
	        var formattedTimes = [];
	        _(sectionTimeByLocation).each(function (sectiontime) {
	          if (sectiontime.day_of_week === 8 || _.isEmpty(sectiontime.from_tm) || _.isEmpty(sectiontime.to_tm)) {
	            formattedTimes.push({
	              days: ['Meeting times TBD']
	            });
	            return false;
	          }
	
	          // match current section times against formatted times for current section
	          var currentFormattedTimes;
	
	          if (sectiontime.from_tm && sectiontime.to_tm) {
	            currentFormattedTimes = _.find(formattedTimes, {
	              from_tm: sectiontime.from_tm.format('h:mm a'),
	              to_tm: sectiontime.to_tm.format('h:mm a')
	            });
	          }
	
	          if (!_.isUndefined(currentFormattedTimes)) {
	            // if match found, add current sectiontime's day to days array
	            currentFormattedTimes.days.push(daysOfWeekArray[sectiontime.day_of_week]);
	          } else if (!sectiontime.from_tm || !sectiontime.to_tm) {
	            // assume that null start or end time indicates time is TBD
	            // see src/schedule/views/schedule/factories/section_time_factory.js
	            formattedTimes.push({
	              days: [daysOfWeekArray[sectiontime.day_of_week]],
	              from_tm: 'TBD',
	              to_tm: 'TBD'
	            });
	          } else {
	            // otherwise create a new object and push to formattedTimes array
	            formattedTimes.push({
	              days: [daysOfWeekArray[sectiontime.day_of_week]],
	              from_tm: sectiontime.from_tm.format('h:mm a'),
	              to_tm: sectiontime.to_tm.format('h:mm a')
	            });
	          }
	        }).value(); // end sectiontime loop
	
	        _section_times_at_location.formattedTimes = formattedTimes;
	        _section_times_at_location.location = sectionTimeByLocation[0]._location;
	        _section_times_with_locations.push(_section_times_at_location);
	      }); // end sectionTimeByLocation loop
	
	      // sort locations by day of first meeting in week of that location
	      _section_times_with_locations = _.sortBy(_section_times_with_locations, function (sectionTimesWithLocations) {
	        return daysOfWeekArray.indexOf(sectionTimesWithLocations.formattedTimes[0].days[0]);
	      });
	
	      _section_times_and_locations_at_campus._section_times_with_locations = _section_times_with_locations;
	      _section_times_and_locations_at_campus._campus = _section_times_with_locations[0].location._campus;
	
	      section._section_info_display.push(_section_times_and_locations_at_campus);
	      _section_times_and_locations_at_campus = {};
	    }); // end sectionTimeByCampus loop
	  }, this); // end section loop
	})
	
	/**
	 * @post get campus and add to section object
	 */
	.constant('campusToSectionMappingFn', function campusToSectionMappingFn(data) {
	  _.each(data.section, function (section) {
	    this.section[section.id]._section_campus = this.campus[section.campus];
	  }, this);
	})
	
	/**
	 * @post get sectionstatus and add to section object
	 */
	.constant('sectionstatusToSectionMappingFn', function sectionstatusToSectionMappingFn(data) {
	  _.each(data.sectionstatus, function (sectionstatus) {
	    this.section[sectionstatus.section]._section_status = sectionstatus;
	  }, this);
	})
	/**
	 * @post get sectionstatus and add to section object
	 */
	.constant('sectionTypeNameToSectionMappingFn', function sectionTypeNameToSectionMappingFn(data) {
	  _.each(data.section, function (section) {
	    var sectionType = _.find(data.section_type, function (type) {
	      return type.id === section.section_type;
	    });
	    if (section.section_type && sectionType) {
	      section._section_type_name = _.isEmpty(sectionType.name) ? sectionType.cd : sectionType.name;
	    }
	  }, this);
	});

/***/ }),
/* 289 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-scheduler').factory('ProgramBuilder', function ProgramBuilder(Interface) {
	  var DTD = {
	    id: 'key',
	    nk: 'string',
	    cd: 'string',
	    cat_yr: 'integer',
	    name: 'string',
	    desc: 'string',
	    credits: 'real',
	    hiring_demand: 'string',
	    salary_trend_max: 'string',
	    salary_trend_min: 'string',
	    area_of_study: 'string',
	    credentials: 'string',
	    rank: 'integer',
	    short_credential: 'string',
	    student_program_activity: 'ngObject',
	    student_program_subject: 'ngObject',
	    min_dev_course: 'integer',
	    credential: 'string'
	  };
	
	  function ProgramDTO(data) {
	    Interface.implement(DTD, data, this);
	  }
	
	  return ProgramDTO;
	});

/***/ }),
/* 290 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-scheduler').factory('RequiredSectionBuilder', function RequiredSectionBuilder(Interface) {
	  var DTD = {
	    name: 'string',
	    section_type: 'ngObject',
	    sections: 'ngArray',
	    course: 'ngObject'
	  };
	
	  function RequiredSectionDTO(data) {
	    Interface.implement(DTD, data, this);
	  }
	
	  return RequiredSectionDTO;
	});

/***/ }),
/* 291 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-scheduler').factory('SectionBuilder', function SectionBuilder(Interface) {
	  var DTD = {
	    id: 'key',
	    nk: 'string',
	    cd: 'string',
	    term: 'key',
	    course: 'key',
	    campus: 'key',
	    seats_offered: 'integer',
	    instructor_name: 'string',
	    class_start_dt: {
	      type: 'moment',
	      typeDef: 'YYYY-MM-DD'
	    },
	    class_end_dt: {
	      type: 'moment',
	      typeDef: 'YYYY-MM-DD'
	    },
	    drop_start_dt: {
	      type: 'moment',
	      typeDef: 'YYYY-MM-DD'
	    },
	    drop_end_dt: {
	      type: 'moment',
	      typeDef: 'YYYY-MM-DD'
	    },
	    is_unlimited_seating: 'boolean',
	    note: 'string',
	    section_type: 'integer',
	    _section_times: 'ngArray',
	    _section_campus: 'object',
	    _section_status: 'object',
	    _section_info_display: 'ngObject',
	    _is_selected: 'boolean',
	    _course: 'object',
	    _waitlist_position: 'object',
	    _section_type_name: 'string'
	  };
	
	  function SectionDTO(data) {
	    Interface.implement(DTD, data, this);
	  }
	
	  return SectionDTO;
	});

/***/ }),
/* 292 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-scheduler').factory('SectionStatusBuilder', function SectionStatusBuilder(Interface) {
	  var DTD = {
	    section: 'key',
	    avail_seats: 'integer',
	    status: 'string',
	    is_selected: 'boolean',
	    is_selected_campus: 'boolean',
	    is_droppable: 'boolean',
	    is_conflicting: 'boolean',
	    is_in_avail: 'boolean',
	    has_waitlist: 'boolean',
	    num_waitlist: 'integer',
	    max_waitlist: 'integer',
	    conflicting_section_ids: {
	      type: 'array'
	    },
	    _isWaitListFull: 'boolean'
	  };
	
	  function SectionStatusDTO(data) {
	    Interface.implement(DTD, data, this);
	    calculateWaitlistProperties.call(this);
	    removeRedundantConflictingIds.call(this);
	  }
	
	  var calculateWaitlistProperties = function calculateWaitlistProperties() {
	    this._isWaitListFull = !_.isNull(this.max_waitlist) && this.max_waitlist === this.num_waitlist;
	  };
	
	  var removeRedundantConflictingIds = function removeRedundantConflictingIds() {
	    this.conflicting_section_ids = _.uniq(this.conflicting_section_ids);
	  };
	
	  return SectionStatusDTO;
	});

/***/ }),
/* 293 */
/***/ (function(module, exports) {

	'use strict';
	
	// TODO Consider using `Interface.implementArray(DTD, o.sectionstatus);` or `ArrayListBuilder(o.sectionstatus, DTD)`
	angular.module('capability-ng-scheduler').factory('SectionStatusCollectionBuilder', function SectionStatusCollectionBuilder(Interface) {
	  var DTD = {
	    sectionstatus: {
	      type: 'ngObject',
	      typeDef: 'SectionStatusBuilder'
	    }
	  };
	
	  function SectionStatusCollectionDTO(data) {
	    Interface.implement(DTD, data, this);
	  }
	
	  return SectionStatusCollectionDTO;
	});

/***/ }),
/* 294 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-scheduler').factory('SectionTimeBuilder', function SectionTimeBuilder(Interface) {
	  var DTD = {
	    id: 'key',
	    nk: 'string',
	    section: 'integer',
	    day_of_week: 'integer',
	    from_tm: {
	      type: 'moment',
	      typeDef: 'HH:mm:ss',
	      rules: {
	        defaultToNow: false
	      }
	    },
	    to_tm: {
	      type: 'moment',
	      typeDef: 'HH:mm:ss',
	      rules: {
	        defaultToNow: false
	      }
	    },
	    location: 'integer',
	    _location: 'object'
	  };
	
	  function SectionTimeDTO(data) {
	    Interface.implement(DTD, data, this);
	  }
	  return SectionTimeDTO;
	});

/***/ }),
/* 295 */
/***/ (function(module, exports) {

	'use strict';
	
	//FIXME: this file is still used before getting to scheduler by ap/path
	angular.module('capability-ng-scheduler').factory('SectionTypeBuilder', function SectionTypeBuilder(Interface) {
	  var DTD = {
	    id: 'key',
	    nk: 'string',
	    cd: 'string',
	    name: 'string',
	    term: 'key',
	    course: 'key',
	    is_required: 'boolean',
	    is_active: 'boolean',
	    rank: 'integer'
	  };
	  function SectionTypeDTO(data) {
	    Interface.implement(DTD, data, this);
	
	    //we will fallback to cd if name is blank from api
	    if (this.name === '' || this.name === null) {
	      this.name = this.cd;
	    }
	  }
	
	  return SectionTypeDTO;
	});

/***/ }),
/* 296 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-scheduler').factory('TermBuilder', function TermBuilder(Interface) {
	  var DTD = {
	    id: 'key',
	    nk: 'string',
	    name: 'string',
	    cat_yr: 'integer',
	    registration_start_dt: 'timestamp',
	    registration_end_dt: 'timestamp',
	    term_start_dt: 'timestamp',
	    term_end_dt: 'timestamp',
	    _all_courses_selected: 'boolean',
	    _all_courses_registered: 'boolean'
	  };
	
	  function TermDTO(data) {
	    Interface.implement(DTD, data, this);
	  }
	  return TermDTO;
	});

/***/ }),
/* 297 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-scheduler').factory('SuggestionsBuilder', function SuggestionsBuilder(Interface, $injector, isCheckTimeWithInstructor) {
	  'use strict';
	
	  var DTD = {
	    unchecked_campuses: {
	      type: 'array'
	    },
	    schedule: {
	      type: 'array'
	    },
	    schedule_completeness: {
	      type: 'string'
	    },
	    selected_sections: {
	      type: 'array'
	    },
	    term: {
	      type: 'ngObject',
	      typeDef: 'TermBuilder'
	    },
	    course: {
	      type: 'ngObject',
	      typeDef: 'CourseBuilder'
	    },
	    section: {
	      type: 'ngObject',
	      typeDef: 'SectionBuilder'
	    },
	    sectiontime: {
	      type: 'ngObject',
	      typeDef: 'SectionTimeBuilder'
	    },
	    location: {
	      type: 'ngObject',
	      typeDef: 'LocationBuilder'
	    },
	    campus: {
	      type: 'ngObject',
	      typeDef: 'CampusBuilder'
	    },
	    sectionstatus: {
	      type: 'ngObject',
	      typeDef: 'SectionStatusBuilder'
	    }
	  };
	
	  function SuggestionsDTO(raw) {
	    Interface.implement(DTD, raw, this);
	    $injector.get('campusToLocationMappingFn').call(this, raw);
	
	    $injector.get('locationToSectiontimeMappingFn').call(this, raw);
	    $injector.get('sortSectionTimesByDayOfWeek').call(this, raw);
	    $injector.get('sectiontimeToSectionMappingFn').call(this, raw);
	    $injector.get('timeAndDateDisplayToSectiontimeMappingFn').call(this, raw);
	
	    $injector.get('campusToSectionMappingFn').call(this, raw);
	    $injector.get('sectionstatusToSectionMappingFn').call(this, raw);
	    $injector.get('sectionTypeNameToSectionMappingFn').call(this, raw);
	
	    campusToUncheckedCampusesMappingFn.call(this, raw);
	    courseToSectionMappingFn.call(this, raw);
	    sectionToScheduleMappingFn.call(this, raw);
	  }
	
	  /**
	   * @post get course and add to section object for easy access
	   */
	  var campusToUncheckedCampusesMappingFn = function campusToUncheckedCampusesMappingFn(data) {
	    this._unchecked_campuses = [];
	    _.each(data.unchecked_campuses, function (campusId) {
	      this._unchecked_campuses.push(_.find(data.campus, { id: campusId }));
	    }, this);
	  };
	
	  /**
	   * @post get course and add to section object for easy access
	   */
	  var courseToSectionMappingFn = function courseToSectionMappingFn(data) {
	    _.each(data.section, function (section) {
	      this[section.id]._course = _.find(data.course, { id: section.course });
	    }, this.section);
	  };
	
	  /**
	   * @post create suggested schedules with sections (2-dimensional array)
	   */
	  var sectionToScheduleMappingFn = function sectionToScheduleMappingFn(data) {
	    this._schedules = [];
	    _.each(data.schedule, function (schedule) {
	      var _sections = [];
	      _.each(schedule, function (sectionId) {
	        var fullSection = _.find(data.section, { id: sectionId });
	        if (!isCheckTimeWithInstructor.areTimesNotSpecified(fullSection._section_times)) {
	          _sections.push(fullSection);
	        }
	      });
	      this._schedules.push(_sections);
	    }, this);
	  };
	
	  return SuggestionsDTO;
	});

/***/ }),
/* 298 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-scheduler').service('loadSuggestionsCommand', function loadSuggestionsCommandDefinition($http, defineCommand, SuggestionsBuilder) {
	  'use strict';
	
	  return defineCommand('loadSuggestionsCommand', function loadSuggestionsCommand(deferred, termId) {
	    $http.get('/reg/scheduler/term/' + termId + '/').then(function (response) {
	      deferred.resolve(new SuggestionsBuilder(response.data));
	    }).catch(function (e) {
	      log.issue('failed to load term information');
	      deferred.reject();
	    });
	  });
	});

/***/ }),
/* 299 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-scheduler').directive('eabCampusList', function eabCampusList() {
	  'use strict';
	
	  return {
	    replace: true,
	    templateUrl: 'capability-ng-scheduler/src/views/course_scheduler/modals/suggestions/components/campus_list/campus_list.html',
	    scope: {
	      eabCampusList: '='
	    }
	  };
	});

/***/ }),
/* 300 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-scheduler').service('suggestionsService', function suggestionsService(SuggestionsBuilder) {
	  'use strict';
	
	  this.areAllCoursesAvailable = function areAllCoursesAvailable(courses) {
	    return _.every(courses, '_no_sections_available', false);
	  };
	
	  this.areUnscheduledCoursesAvailable = function areUnscheduledCoursesAvailable(sections) {
	    var unscheduledCourses = this.getUnscheduledCourses(sections);
	
	    return this.areAllCoursesAvailable(unscheduledCourses);
	  };
	
	  this.getUnscheduledCourses = function getUnscheduledCourses(sections) {
	    // Unscheduled sections have empty statuses and are not selected...
	    var unscheduledSections = _.filter(sections, function (section) {
	      return _.isEmpty(section._section_status.status) && !section._section_status.is_selected;
	    });
	
	    return _.map(unscheduledSections, '_course');
	  };
	});

/***/ }),
/* 301 */
/***/ (function(module, exports) {

	'use strict';
	
	// FIXME: this modal requires multiple builders contained in /builders/suggestions that are not being used by other components
	angular.module('capability-ng-scheduler').controller('scheduleSuggestionsController', function scheduleSuggestionsController($scope, $state, $stateParams, saveSuggestionsCommand, suggestions, suggestionsService, ngTermProgramInfoModel) {
	  'use strict';
	
	  $scope.showModal = false;
	  $scope.isDrawerOpened = false;
	
	  $scope.termName = _.get(ngTermProgramInfoModel.read(), 'term.name', '');
	
	  $scope.models = {
	    suggestions: suggestions,
	    filteredSections: []
	  };
	
	  $scope.openPreferences = function openPreferences() {
	    $state.go('my.schedule.registration.preferences');
	  };
	
	  $scope.checked_campuses = _.filter($scope.models.suggestions.campus, function (campus) {
	    return !_.find($scope.models.suggestions._unchecked_campuses, {
	      id: campus.id
	    });
	  });
	
	  $scope.getNumSearchedCampuses = function getSearchedCampuses() {
	    return _.size($scope.checked_campuses);
	  };
	
	  $scope.areAllCoursesAvailable = function areAllCoursesAvailable() {
	    var courses = $scope.termSchedule.course;
	    return suggestionsService.areAllCoursesAvailable(courses);
	  };
	
	  $scope.areUnscheduledCoursesAvailable = function areUnscheduledCoursesAvailable() {
	    var sections = $scope.models.suggestions._schedules[$scope.scheduleDisplay];
	
	    return suggestionsService.areUnscheduledCoursesAvailable(sections);
	  };
	
	  $scope.hasSchedules = function hasSchedules() {
	    return !_.isEmpty($scope.models.suggestions._schedules);
	  };
	
	  $scope.hasUncheckedCampuses = function hasUncheckedCampuses() {
	    return !_.isEmpty($scope.models.suggestions._unchecked_campuses);
	  };
	
	  $scope.isPartial = function isPartial() {
	    return $scope.models.suggestions.schedule_completeness === 'PARTIAL';
	  };
	
	  $scope.saveSchedule = function saveSchedule(sectionIds) {
	    saveSuggestionsCommand($stateParams.termId, sectionIds).then(function () {
	      $scope.closeModal();
	    });
	  };
	
	  $scope.viewSchedule = function viewSchedule(event) {
	    var selectedIndex = _.get(event, 'target.selectedIndex', 0);
	    if (selectedIndex !== $scope.scheduleDisplay) {
	      $scope.scheduleDisplay = selectedIndex;
	      $scope.models.filteredSections = filterSections($scope.scheduleDisplay);
	    }
	  };
	
	  $scope.closeModal = function () {
	    $scope.showModal = false;
	    return $state.go('^', $stateParams, {
	      reload: true
	    });
	  };
	
	  $scope.gotoRegistration = function () {
	    $state.go('my.schedule.registration', { reload: true });
	  };
	
	  $scope.openCampusListDrawer = function () {
	    $scope.isDrawerOpened = true;
	  };
	
	  $scope.onDrawerClosed = function () {
	    $scope.isDrawerOpened = false;
	  };
	
	  var filterSections = function filterSections(index) {
	    // Sort on descending order first on 'is_selected' and then on 'status'...
	    var sections = $scope.models.suggestions._schedules[index];
	    sections = _.sortByOrder(sections, ['_section_status.is_selected', '_section_status.status'], ['desc', 'desc']);
	    return sections;
	  };
	
	  activate();
	
	  function activate() {
	    $scope.scheduleDisplay = 0;
	    $scope.hasUnscheduledCourses = $scope.areUnscheduledCoursesAvailable();
	    $scope.models.filteredSections = filterSections($scope.scheduleDisplay);
	    $scope.showModal = true;
	  }
	});

/***/ }),
/* 302 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Afrikaans [af]
	//! author : Werner Mollentze : https://github.com/wernerm
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var af = moment.defineLocale('af', {
	        months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
	        monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
	        weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
	        weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
	        weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
	        meridiemParse: /vm|nm/i,
	        isPM: function isPM(input) {
	            return (/^nm$/i.test(input)
	            );
	        },
	        meridiem: function meridiem(hours, minutes, isLower) {
	            if (hours < 12) {
	                return isLower ? 'vm' : 'VM';
	            } else {
	                return isLower ? 'nm' : 'NM';
	            }
	        },
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[Vandag om] LT',
	            nextDay: '[Môre om] LT',
	            nextWeek: 'dddd [om] LT',
	            lastDay: '[Gister om] LT',
	            lastWeek: '[Laas] dddd [om] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'oor %s',
	            past: '%s gelede',
	            s: "'n paar sekondes",
	            ss: '%d sekondes',
	            m: "'n minuut",
	            mm: '%d minute',
	            h: "'n uur",
	            hh: '%d ure',
	            d: "'n dag",
	            dd: '%d dae',
	            M: "'n maand",
	            MM: '%d maande',
	            y: "'n jaar",
	            yy: '%d jaar'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
	        ordinal: function ordinal(number) {
	            return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
	        },
	        week: {
	            dow: 1, // Maandag is die eerste dag van die week.
	            doy: 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
	        }
	    });
	
	    return af;
	});

/***/ }),
/* 303 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Arabic (Algeria) [ar-dz]
	//! author : Amine Roukh: https://github.com/Amine27
	//! author : Abdel Said: https://github.com/abdelsaid
	//! author : Ahmed Elkhatib
	//! author : forabi https://github.com/forabi
	//! author : Noureddine LOUAHEDJ : https://github.com/noureddinem
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var pluralForm = function pluralForm(n) {
	        return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
	    },
	        plurals = {
	        s: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
	        m: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
	        h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
	        d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
	        M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
	        y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
	    },
	        pluralize = function pluralize(u) {
	        return function (number, withoutSuffix, string, isFuture) {
	            var f = pluralForm(number),
	                str = plurals[u][pluralForm(number)];
	            if (f === 2) {
	                str = str[withoutSuffix ? 0 : 1];
	            }
	            return str.replace(/%d/i, number);
	        };
	    },
	        months = ['جانفي', 'فيفري', 'مارس', 'أفريل', 'ماي', 'جوان', 'جويلية', 'أوت', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'];
	
	    var arDz = moment.defineLocale('ar-dz', {
	        months: months,
	        monthsShort: months,
	        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
	        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
	        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'D/\u200FM/\u200FYYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd D MMMM YYYY HH:mm'
	        },
	        meridiemParse: /ص|م/,
	        isPM: function isPM(input) {
	            return 'م' === input;
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 12) {
	                return 'ص';
	            } else {
	                return 'م';
	            }
	        },
	        calendar: {
	            sameDay: '[اليوم عند الساعة] LT',
	            nextDay: '[غدًا عند الساعة] LT',
	            nextWeek: 'dddd [عند الساعة] LT',
	            lastDay: '[أمس عند الساعة] LT',
	            lastWeek: 'dddd [عند الساعة] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'بعد %s',
	            past: 'منذ %s',
	            s: pluralize('s'),
	            ss: pluralize('s'),
	            m: pluralize('m'),
	            mm: pluralize('m'),
	            h: pluralize('h'),
	            hh: pluralize('h'),
	            d: pluralize('d'),
	            dd: pluralize('d'),
	            M: pluralize('M'),
	            MM: pluralize('M'),
	            y: pluralize('y'),
	            yy: pluralize('y')
	        },
	        postformat: function postformat(string) {
	            return string.replace(/,/g, '،');
	        },
	        week: {
	            dow: 0, // Sunday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return arDz;
	});

/***/ }),
/* 304 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Arabic (Kuwait) [ar-kw]
	//! author : Nusret Parlak: https://github.com/nusretparlak
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var arKw = moment.defineLocale('ar-kw', {
	        months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
	        monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
	        weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
	        weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
	        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[اليوم على الساعة] LT',
	            nextDay: '[غدا على الساعة] LT',
	            nextWeek: 'dddd [على الساعة] LT',
	            lastDay: '[أمس على الساعة] LT',
	            lastWeek: 'dddd [على الساعة] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'في %s',
	            past: 'منذ %s',
	            s: 'ثوان',
	            ss: '%d ثانية',
	            m: 'دقيقة',
	            mm: '%d دقائق',
	            h: 'ساعة',
	            hh: '%d ساعات',
	            d: 'يوم',
	            dd: '%d أيام',
	            M: 'شهر',
	            MM: '%d أشهر',
	            y: 'سنة',
	            yy: '%d سنوات'
	        },
	        week: {
	            dow: 0, // Sunday is the first day of the week.
	            doy: 12 // The week that contains Jan 12th is the first week of the year.
	        }
	    });
	
	    return arKw;
	});

/***/ }),
/* 305 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Arabic (Libya) [ar-ly]
	//! author : Ali Hmer: https://github.com/kikoanis
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var symbolMap = {
	        1: '1',
	        2: '2',
	        3: '3',
	        4: '4',
	        5: '5',
	        6: '6',
	        7: '7',
	        8: '8',
	        9: '9',
	        0: '0'
	    },
	        pluralForm = function pluralForm(n) {
	        return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
	    },
	        plurals = {
	        s: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
	        m: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
	        h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
	        d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
	        M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
	        y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
	    },
	        pluralize = function pluralize(u) {
	        return function (number, withoutSuffix, string, isFuture) {
	            var f = pluralForm(number),
	                str = plurals[u][pluralForm(number)];
	            if (f === 2) {
	                str = str[withoutSuffix ? 0 : 1];
	            }
	            return str.replace(/%d/i, number);
	        };
	    },
	        months = ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'];
	
	    var arLy = moment.defineLocale('ar-ly', {
	        months: months,
	        monthsShort: months,
	        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
	        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
	        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'D/\u200FM/\u200FYYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd D MMMM YYYY HH:mm'
	        },
	        meridiemParse: /ص|م/,
	        isPM: function isPM(input) {
	            return 'م' === input;
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 12) {
	                return 'ص';
	            } else {
	                return 'م';
	            }
	        },
	        calendar: {
	            sameDay: '[اليوم عند الساعة] LT',
	            nextDay: '[غدًا عند الساعة] LT',
	            nextWeek: 'dddd [عند الساعة] LT',
	            lastDay: '[أمس عند الساعة] LT',
	            lastWeek: 'dddd [عند الساعة] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'بعد %s',
	            past: 'منذ %s',
	            s: pluralize('s'),
	            ss: pluralize('s'),
	            m: pluralize('m'),
	            mm: pluralize('m'),
	            h: pluralize('h'),
	            hh: pluralize('h'),
	            d: pluralize('d'),
	            dd: pluralize('d'),
	            M: pluralize('M'),
	            MM: pluralize('M'),
	            y: pluralize('y'),
	            yy: pluralize('y')
	        },
	        preparse: function preparse(string) {
	            return string.replace(/،/g, ',');
	        },
	        postformat: function postformat(string) {
	            return string.replace(/\d/g, function (match) {
	                return symbolMap[match];
	            }).replace(/,/g, '،');
	        },
	        week: {
	            dow: 6, // Saturday is the first day of the week.
	            doy: 12 // The week that contains Jan 12th is the first week of the year.
	        }
	    });
	
	    return arLy;
	});

/***/ }),
/* 306 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Arabic (Morocco) [ar-ma]
	//! author : ElFadili Yassine : https://github.com/ElFadiliY
	//! author : Abdel Said : https://github.com/abdelsaid
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var arMa = moment.defineLocale('ar-ma', {
	        months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
	        monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
	        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
	        weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
	        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[اليوم على الساعة] LT',
	            nextDay: '[غدا على الساعة] LT',
	            nextWeek: 'dddd [على الساعة] LT',
	            lastDay: '[أمس على الساعة] LT',
	            lastWeek: 'dddd [على الساعة] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'في %s',
	            past: 'منذ %s',
	            s: 'ثوان',
	            ss: '%d ثانية',
	            m: 'دقيقة',
	            mm: '%d دقائق',
	            h: 'ساعة',
	            hh: '%d ساعات',
	            d: 'يوم',
	            dd: '%d أيام',
	            M: 'شهر',
	            MM: '%d أشهر',
	            y: 'سنة',
	            yy: '%d سنوات'
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return arMa;
	});

/***/ }),
/* 307 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Arabic (Palestine) [ar-ps]
	//! author : Majd Al-Shihabi : https://github.com/majdal
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var symbolMap = {
	        1: '١',
	        2: '٢',
	        3: '٣',
	        4: '٤',
	        5: '٥',
	        6: '٦',
	        7: '٧',
	        8: '٨',
	        9: '٩',
	        0: '٠'
	    },
	        numberMap = {
	        '١': '1',
	        '٢': '2',
	        '٣': '3',
	        '٤': '4',
	        '٥': '5',
	        '٦': '6',
	        '٧': '7',
	        '٨': '8',
	        '٩': '9',
	        '٠': '0'
	    };
	
	    var arPs = moment.defineLocale('ar-ps', {
	        months: 'كانون الثاني_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_تشري الأوّل_تشرين الثاني_كانون الأوّل'.split('_'),
	        monthsShort: 'ك٢_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_ت١_ت٢_ك١'.split('_'),
	        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
	        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
	        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd D MMMM YYYY HH:mm'
	        },
	        meridiemParse: /ص|م/,
	        isPM: function isPM(input) {
	            return 'م' === input;
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 12) {
	                return 'ص';
	            } else {
	                return 'م';
	            }
	        },
	        calendar: {
	            sameDay: '[اليوم على الساعة] LT',
	            nextDay: '[غدا على الساعة] LT',
	            nextWeek: 'dddd [على الساعة] LT',
	            lastDay: '[أمس على الساعة] LT',
	            lastWeek: 'dddd [على الساعة] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'في %s',
	            past: 'منذ %s',
	            s: 'ثوان',
	            ss: '%d ثانية',
	            m: 'دقيقة',
	            mm: '%d دقائق',
	            h: 'ساعة',
	            hh: '%d ساعات',
	            d: 'يوم',
	            dd: '%d أيام',
	            M: 'شهر',
	            MM: '%d أشهر',
	            y: 'سنة',
	            yy: '%d سنوات'
	        },
	        preparse: function preparse(string) {
	            return string.replace(/[٣٤٥٦٧٨٩٠]/g, function (match) {
	                return numberMap[match];
	            }).split('') // reversed since negative lookbehind not supported everywhere
	            .reverse().join('').replace(/[١٢](?![\u062a\u0643])/g, function (match) {
	                return numberMap[match];
	            }).split('').reverse().join('').replace(/،/g, ',');
	        },
	        postformat: function postformat(string) {
	            return string.replace(/\d/g, function (match) {
	                return symbolMap[match];
	            }).replace(/,/g, '،');
	        },
	        week: {
	            dow: 0, // Sunday is the first day of the week.
	            doy: 6 // The week that contains Jan 6th is the first week of the year.
	        }
	    });
	
	    return arPs;
	});

/***/ }),
/* 308 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Arabic (Saudi Arabia) [ar-sa]
	//! author : Suhail Alkowaileet : https://github.com/xsoh
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var symbolMap = {
	        1: '١',
	        2: '٢',
	        3: '٣',
	        4: '٤',
	        5: '٥',
	        6: '٦',
	        7: '٧',
	        8: '٨',
	        9: '٩',
	        0: '٠'
	    },
	        numberMap = {
	        '١': '1',
	        '٢': '2',
	        '٣': '3',
	        '٤': '4',
	        '٥': '5',
	        '٦': '6',
	        '٧': '7',
	        '٨': '8',
	        '٩': '9',
	        '٠': '0'
	    };
	
	    var arSa = moment.defineLocale('ar-sa', {
	        months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
	        monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
	        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
	        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
	        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd D MMMM YYYY HH:mm'
	        },
	        meridiemParse: /ص|م/,
	        isPM: function isPM(input) {
	            return 'م' === input;
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 12) {
	                return 'ص';
	            } else {
	                return 'م';
	            }
	        },
	        calendar: {
	            sameDay: '[اليوم على الساعة] LT',
	            nextDay: '[غدا على الساعة] LT',
	            nextWeek: 'dddd [على الساعة] LT',
	            lastDay: '[أمس على الساعة] LT',
	            lastWeek: 'dddd [على الساعة] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'في %s',
	            past: 'منذ %s',
	            s: 'ثوان',
	            ss: '%d ثانية',
	            m: 'دقيقة',
	            mm: '%d دقائق',
	            h: 'ساعة',
	            hh: '%d ساعات',
	            d: 'يوم',
	            dd: '%d أيام',
	            M: 'شهر',
	            MM: '%d أشهر',
	            y: 'سنة',
	            yy: '%d سنوات'
	        },
	        preparse: function preparse(string) {
	            return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
	                return numberMap[match];
	            }).replace(/،/g, ',');
	        },
	        postformat: function postformat(string) {
	            return string.replace(/\d/g, function (match) {
	                return symbolMap[match];
	            }).replace(/,/g, '،');
	        },
	        week: {
	            dow: 0, // Sunday is the first day of the week.
	            doy: 6 // The week that contains Jan 6th is the first week of the year.
	        }
	    });
	
	    return arSa;
	});

/***/ }),
/* 309 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale  :  Arabic (Tunisia) [ar-tn]
	//! author : Nader Toukabri : https://github.com/naderio
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var arTn = moment.defineLocale('ar-tn', {
	        months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
	        monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
	        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
	        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
	        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[اليوم على الساعة] LT',
	            nextDay: '[غدا على الساعة] LT',
	            nextWeek: 'dddd [على الساعة] LT',
	            lastDay: '[أمس على الساعة] LT',
	            lastWeek: 'dddd [على الساعة] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'في %s',
	            past: 'منذ %s',
	            s: 'ثوان',
	            ss: '%d ثانية',
	            m: 'دقيقة',
	            mm: '%d دقائق',
	            h: 'ساعة',
	            hh: '%d ساعات',
	            d: 'يوم',
	            dd: '%d أيام',
	            M: 'شهر',
	            MM: '%d أشهر',
	            y: 'سنة',
	            yy: '%d سنوات'
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return arTn;
	});

/***/ }),
/* 310 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Arabic [ar]
	//! author : Abdel Said: https://github.com/abdelsaid
	//! author : Ahmed Elkhatib
	//! author : forabi https://github.com/forabi
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var symbolMap = {
	        1: '١',
	        2: '٢',
	        3: '٣',
	        4: '٤',
	        5: '٥',
	        6: '٦',
	        7: '٧',
	        8: '٨',
	        9: '٩',
	        0: '٠'
	    },
	        numberMap = {
	        '١': '1',
	        '٢': '2',
	        '٣': '3',
	        '٤': '4',
	        '٥': '5',
	        '٦': '6',
	        '٧': '7',
	        '٨': '8',
	        '٩': '9',
	        '٠': '0'
	    },
	        pluralForm = function pluralForm(n) {
	        return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
	    },
	        plurals = {
	        s: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
	        m: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
	        h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
	        d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
	        M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
	        y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
	    },
	        pluralize = function pluralize(u) {
	        return function (number, withoutSuffix, string, isFuture) {
	            var f = pluralForm(number),
	                str = plurals[u][pluralForm(number)];
	            if (f === 2) {
	                str = str[withoutSuffix ? 0 : 1];
	            }
	            return str.replace(/%d/i, number);
	        };
	    },
	        months = ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'];
	
	    var ar = moment.defineLocale('ar', {
	        months: months,
	        monthsShort: months,
	        weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
	        weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
	        weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'D/\u200FM/\u200FYYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd D MMMM YYYY HH:mm'
	        },
	        meridiemParse: /ص|م/,
	        isPM: function isPM(input) {
	            return 'م' === input;
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 12) {
	                return 'ص';
	            } else {
	                return 'م';
	            }
	        },
	        calendar: {
	            sameDay: '[اليوم عند الساعة] LT',
	            nextDay: '[غدًا عند الساعة] LT',
	            nextWeek: 'dddd [عند الساعة] LT',
	            lastDay: '[أمس عند الساعة] LT',
	            lastWeek: 'dddd [عند الساعة] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'بعد %s',
	            past: 'منذ %s',
	            s: pluralize('s'),
	            ss: pluralize('s'),
	            m: pluralize('m'),
	            mm: pluralize('m'),
	            h: pluralize('h'),
	            hh: pluralize('h'),
	            d: pluralize('d'),
	            dd: pluralize('d'),
	            M: pluralize('M'),
	            MM: pluralize('M'),
	            y: pluralize('y'),
	            yy: pluralize('y')
	        },
	        preparse: function preparse(string) {
	            return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
	                return numberMap[match];
	            }).replace(/،/g, ',');
	        },
	        postformat: function postformat(string) {
	            return string.replace(/\d/g, function (match) {
	                return symbolMap[match];
	            }).replace(/,/g, '،');
	        },
	        week: {
	            dow: 6, // Saturday is the first day of the week.
	            doy: 12 // The week that contains Jan 12th is the first week of the year.
	        }
	    });
	
	    return ar;
	});

/***/ }),
/* 311 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Azerbaijani [az]
	//! author : topchiyev : https://github.com/topchiyev
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var suffixes = {
	        1: '-inci',
	        5: '-inci',
	        8: '-inci',
	        70: '-inci',
	        80: '-inci',
	        2: '-nci',
	        7: '-nci',
	        20: '-nci',
	        50: '-nci',
	        3: '-üncü',
	        4: '-üncü',
	        100: '-üncü',
	        6: '-ncı',
	        9: '-uncu',
	        10: '-uncu',
	        30: '-uncu',
	        60: '-ıncı',
	        90: '-ıncı'
	    };
	
	    var az = moment.defineLocale('az', {
	        months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
	        monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
	        weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
	        weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
	        weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[bugün saat] LT',
	            nextDay: '[sabah saat] LT',
	            nextWeek: '[gələn həftə] dddd [saat] LT',
	            lastDay: '[dünən] LT',
	            lastWeek: '[keçən həftə] dddd [saat] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s sonra',
	            past: '%s əvvəl',
	            s: 'bir neçə saniyə',
	            ss: '%d saniyə',
	            m: 'bir dəqiqə',
	            mm: '%d dəqiqə',
	            h: 'bir saat',
	            hh: '%d saat',
	            d: 'bir gün',
	            dd: '%d gün',
	            M: 'bir ay',
	            MM: '%d ay',
	            y: 'bir il',
	            yy: '%d il'
	        },
	        meridiemParse: /gecə|səhər|gündüz|axşam/,
	        isPM: function isPM(input) {
	            return (/^(gündüz|axşam)$/.test(input)
	            );
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 4) {
	                return 'gecə';
	            } else if (hour < 12) {
	                return 'səhər';
	            } else if (hour < 17) {
	                return 'gündüz';
	            } else {
	                return 'axşam';
	            }
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
	        ordinal: function ordinal(number) {
	            if (number === 0) {
	                // special case for zero
	                return number + '-ıncı';
	            }
	            var a = number % 10,
	                b = number % 100 - a,
	                c = number >= 100 ? 100 : null;
	            return number + (suffixes[a] || suffixes[b] || suffixes[c]);
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return az;
	});

/***/ }),
/* 312 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Belarusian [be]
	//! author : Dmitry Demidov : https://github.com/demidov91
	//! author: Praleska: http://praleska.pro/
	//! Author : Menelion Elensúle : https://github.com/Oire
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    function plural(word, num) {
	        var forms = word.split('_');
	        return num % 10 === 1 && num % 100 !== 11 ? forms[0] : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2];
	    }
	    function relativeTimeWithPlural(number, withoutSuffix, key) {
	        var format = {
	            ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
	            mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
	            hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
	            dd: 'дзень_дні_дзён',
	            MM: 'месяц_месяцы_месяцаў',
	            yy: 'год_гады_гадоў'
	        };
	        if (key === 'm') {
	            return withoutSuffix ? 'хвіліна' : 'хвіліну';
	        } else if (key === 'h') {
	            return withoutSuffix ? 'гадзіна' : 'гадзіну';
	        } else {
	            return number + ' ' + plural(format[key], +number);
	        }
	    }
	
	    var be = moment.defineLocale('be', {
	        months: {
	            format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
	            standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
	        },
	        monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
	        weekdays: {
	            format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
	            standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
	            isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/
	        },
	        weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
	        weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D MMMM YYYY г.',
	            LLL: 'D MMMM YYYY г., HH:mm',
	            LLLL: 'dddd, D MMMM YYYY г., HH:mm'
	        },
	        calendar: {
	            sameDay: '[Сёння ў] LT',
	            nextDay: '[Заўтра ў] LT',
	            lastDay: '[Учора ў] LT',
	            nextWeek: function nextWeek() {
	                return '[У] dddd [ў] LT';
	            },
	            lastWeek: function lastWeek() {
	                switch (this.day()) {
	                    case 0:
	                    case 3:
	                    case 5:
	                    case 6:
	                        return '[У мінулую] dddd [ў] LT';
	                    case 1:
	                    case 2:
	                    case 4:
	                        return '[У мінулы] dddd [ў] LT';
	                }
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'праз %s',
	            past: '%s таму',
	            s: 'некалькі секунд',
	            m: relativeTimeWithPlural,
	            mm: relativeTimeWithPlural,
	            h: relativeTimeWithPlural,
	            hh: relativeTimeWithPlural,
	            d: 'дзень',
	            dd: relativeTimeWithPlural,
	            M: 'месяц',
	            MM: relativeTimeWithPlural,
	            y: 'год',
	            yy: relativeTimeWithPlural
	        },
	        meridiemParse: /ночы|раніцы|дня|вечара/,
	        isPM: function isPM(input) {
	            return (/^(дня|вечара)$/.test(input)
	            );
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 4) {
	                return 'ночы';
	            } else if (hour < 12) {
	                return 'раніцы';
	            } else if (hour < 17) {
	                return 'дня';
	            } else {
	                return 'вечара';
	            }
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
	        ordinal: function ordinal(number, period) {
	            switch (period) {
	                case 'M':
	                case 'd':
	                case 'DDD':
	                case 'w':
	                case 'W':
	                    return (number % 10 === 2 || number % 10 === 3) && number % 100 !== 12 && number % 100 !== 13 ? number + '-і' : number + '-ы';
	                case 'D':
	                    return number + '-га';
	                default:
	                    return number;
	            }
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return be;
	});

/***/ }),
/* 313 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Bulgarian [bg]
	//! author : Krasen Borisov : https://github.com/kraz
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var bg = moment.defineLocale('bg', {
	        months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
	        monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
	        weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
	        weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
	        weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
	        longDateFormat: {
	            LT: 'H:mm',
	            LTS: 'H:mm:ss',
	            L: 'D.MM.YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY H:mm',
	            LLLL: 'dddd, D MMMM YYYY H:mm'
	        },
	        calendar: {
	            sameDay: '[Днес в] LT',
	            nextDay: '[Утре в] LT',
	            nextWeek: 'dddd [в] LT',
	            lastDay: '[Вчера в] LT',
	            lastWeek: function lastWeek() {
	                switch (this.day()) {
	                    case 0:
	                    case 3:
	                    case 6:
	                        return '[Миналата] dddd [в] LT';
	                    case 1:
	                    case 2:
	                    case 4:
	                    case 5:
	                        return '[Миналия] dddd [в] LT';
	                }
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'след %s',
	            past: 'преди %s',
	            s: 'няколко секунди',
	            ss: '%d секунди',
	            m: 'минута',
	            mm: '%d минути',
	            h: 'час',
	            hh: '%d часа',
	            d: 'ден',
	            dd: '%d дена',
	            w: 'седмица',
	            ww: '%d седмици',
	            M: 'месец',
	            MM: '%d месеца',
	            y: 'година',
	            yy: '%d години'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
	        ordinal: function ordinal(number) {
	            var lastDigit = number % 10,
	                last2Digits = number % 100;
	            if (number === 0) {
	                return number + '-ев';
	            } else if (last2Digits === 0) {
	                return number + '-ен';
	            } else if (last2Digits > 10 && last2Digits < 20) {
	                return number + '-ти';
	            } else if (lastDigit === 1) {
	                return number + '-ви';
	            } else if (lastDigit === 2) {
	                return number + '-ри';
	            } else if (lastDigit === 7 || lastDigit === 8) {
	                return number + '-ми';
	            } else {
	                return number + '-ти';
	            }
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return bg;
	});

/***/ }),
/* 314 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Bambara [bm]
	//! author : Estelle Comment : https://github.com/estellecomment
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var bm = moment.defineLocale('bm', {
	        months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'),
	        monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
	        weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
	        weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
	        weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'MMMM [tile] D [san] YYYY',
	            LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
	            LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm'
	        },
	        calendar: {
	            sameDay: '[Bi lɛrɛ] LT',
	            nextDay: '[Sini lɛrɛ] LT',
	            nextWeek: 'dddd [don lɛrɛ] LT',
	            lastDay: '[Kunu lɛrɛ] LT',
	            lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s kɔnɔ',
	            past: 'a bɛ %s bɔ',
	            s: 'sanga dama dama',
	            ss: 'sekondi %d',
	            m: 'miniti kelen',
	            mm: 'miniti %d',
	            h: 'lɛrɛ kelen',
	            hh: 'lɛrɛ %d',
	            d: 'tile kelen',
	            dd: 'tile %d',
	            M: 'kalo kelen',
	            MM: 'kalo %d',
	            y: 'san kelen',
	            yy: 'san %d'
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return bm;
	});

/***/ }),
/* 315 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Bengali (Bangladesh) [bn-bd]
	//! author : Asraf Hossain Patoary : https://github.com/ashwoolford
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var symbolMap = {
	        1: '১',
	        2: '২',
	        3: '৩',
	        4: '৪',
	        5: '৫',
	        6: '৬',
	        7: '৭',
	        8: '৮',
	        9: '৯',
	        0: '০'
	    },
	        numberMap = {
	        '১': '1',
	        '২': '2',
	        '৩': '3',
	        '৪': '4',
	        '৫': '5',
	        '৬': '6',
	        '৭': '7',
	        '৮': '8',
	        '৯': '9',
	        '০': '0'
	    };
	
	    var bnBd = moment.defineLocale('bn-bd', {
	        months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
	        monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
	        weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
	        weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
	        weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
	        longDateFormat: {
	            LT: 'A h:mm সময়',
	            LTS: 'A h:mm:ss সময়',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY, A h:mm সময়',
	            LLLL: 'dddd, D MMMM YYYY, A h:mm সময়'
	        },
	        calendar: {
	            sameDay: '[আজ] LT',
	            nextDay: '[আগামীকাল] LT',
	            nextWeek: 'dddd, LT',
	            lastDay: '[গতকাল] LT',
	            lastWeek: '[গত] dddd, LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s পরে',
	            past: '%s আগে',
	            s: 'কয়েক সেকেন্ড',
	            ss: '%d সেকেন্ড',
	            m: 'এক মিনিট',
	            mm: '%d মিনিট',
	            h: 'এক ঘন্টা',
	            hh: '%d ঘন্টা',
	            d: 'এক দিন',
	            dd: '%d দিন',
	            M: 'এক মাস',
	            MM: '%d মাস',
	            y: 'এক বছর',
	            yy: '%d বছর'
	        },
	        preparse: function preparse(string) {
	            return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
	                return numberMap[match];
	            });
	        },
	        postformat: function postformat(string) {
	            return string.replace(/\d/g, function (match) {
	                return symbolMap[match];
	            });
	        },
	
	        meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === 'রাত') {
	                return hour < 4 ? hour : hour + 12;
	            } else if (meridiem === 'ভোর') {
	                return hour;
	            } else if (meridiem === 'সকাল') {
	                return hour;
	            } else if (meridiem === 'দুপুর') {
	                return hour >= 3 ? hour : hour + 12;
	            } else if (meridiem === 'বিকাল') {
	                return hour + 12;
	            } else if (meridiem === 'সন্ধ্যা') {
	                return hour + 12;
	            }
	        },
	
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 4) {
	                return 'রাত';
	            } else if (hour < 6) {
	                return 'ভোর';
	            } else if (hour < 12) {
	                return 'সকাল';
	            } else if (hour < 15) {
	                return 'দুপুর';
	            } else if (hour < 18) {
	                return 'বিকাল';
	            } else if (hour < 20) {
	                return 'সন্ধ্যা';
	            } else {
	                return 'রাত';
	            }
	        },
	        week: {
	            dow: 0, // Sunday is the first day of the week.
	            doy: 6 // The week that contains Jan 6th is the first week of the year.
	        }
	    });
	
	    return bnBd;
	});

/***/ }),
/* 316 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Bengali [bn]
	//! author : Kaushik Gandhi : https://github.com/kaushikgandhi
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var symbolMap = {
	        1: '১',
	        2: '২',
	        3: '৩',
	        4: '৪',
	        5: '৫',
	        6: '৬',
	        7: '৭',
	        8: '৮',
	        9: '৯',
	        0: '০'
	    },
	        numberMap = {
	        '১': '1',
	        '২': '2',
	        '৩': '3',
	        '৪': '4',
	        '৫': '5',
	        '৬': '6',
	        '৭': '7',
	        '৮': '8',
	        '৯': '9',
	        '০': '0'
	    };
	
	    var bn = moment.defineLocale('bn', {
	        months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
	        monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
	        weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
	        weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
	        weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
	        longDateFormat: {
	            LT: 'A h:mm সময়',
	            LTS: 'A h:mm:ss সময়',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY, A h:mm সময়',
	            LLLL: 'dddd, D MMMM YYYY, A h:mm সময়'
	        },
	        calendar: {
	            sameDay: '[আজ] LT',
	            nextDay: '[আগামীকাল] LT',
	            nextWeek: 'dddd, LT',
	            lastDay: '[গতকাল] LT',
	            lastWeek: '[গত] dddd, LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s পরে',
	            past: '%s আগে',
	            s: 'কয়েক সেকেন্ড',
	            ss: '%d সেকেন্ড',
	            m: 'এক মিনিট',
	            mm: '%d মিনিট',
	            h: 'এক ঘন্টা',
	            hh: '%d ঘন্টা',
	            d: 'এক দিন',
	            dd: '%d দিন',
	            M: 'এক মাস',
	            MM: '%d মাস',
	            y: 'এক বছর',
	            yy: '%d বছর'
	        },
	        preparse: function preparse(string) {
	            return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
	                return numberMap[match];
	            });
	        },
	        postformat: function postformat(string) {
	            return string.replace(/\d/g, function (match) {
	                return symbolMap[match];
	            });
	        },
	        meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === 'রাত' && hour >= 4 || meridiem === 'দুপুর' && hour < 5 || meridiem === 'বিকাল') {
	                return hour + 12;
	            } else {
	                return hour;
	            }
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 4) {
	                return 'রাত';
	            } else if (hour < 10) {
	                return 'সকাল';
	            } else if (hour < 17) {
	                return 'দুপুর';
	            } else if (hour < 20) {
	                return 'বিকাল';
	            } else {
	                return 'রাত';
	            }
	        },
	        week: {
	            dow: 0, // Sunday is the first day of the week.
	            doy: 6 // The week that contains Jan 6th is the first week of the year.
	        }
	    });
	
	    return bn;
	});

/***/ }),
/* 317 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Tibetan [bo]
	//! author : Thupten N. Chakrishar : https://github.com/vajradog
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var symbolMap = {
	        1: '༡',
	        2: '༢',
	        3: '༣',
	        4: '༤',
	        5: '༥',
	        6: '༦',
	        7: '༧',
	        8: '༨',
	        9: '༩',
	        0: '༠'
	    },
	        numberMap = {
	        '༡': '1',
	        '༢': '2',
	        '༣': '3',
	        '༤': '4',
	        '༥': '5',
	        '༦': '6',
	        '༧': '7',
	        '༨': '8',
	        '༩': '9',
	        '༠': '0'
	    };
	
	    var bo = moment.defineLocale('bo', {
	        months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
	        monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split('_'),
	        monthsShortRegex: /^(ཟླ་\d{1,2})/,
	        monthsParseExact: true,
	        weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
	        weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
	        weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),
	        longDateFormat: {
	            LT: 'A h:mm',
	            LTS: 'A h:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY, A h:mm',
	            LLLL: 'dddd, D MMMM YYYY, A h:mm'
	        },
	        calendar: {
	            sameDay: '[དི་རིང] LT',
	            nextDay: '[སང་ཉིན] LT',
	            nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',
	            lastDay: '[ཁ་སང] LT',
	            lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s ལ་',
	            past: '%s སྔན་ལ',
	            s: 'ལམ་སང',
	            ss: '%d སྐར་ཆ།',
	            m: 'སྐར་མ་གཅིག',
	            mm: '%d སྐར་མ',
	            h: 'ཆུ་ཚོད་གཅིག',
	            hh: '%d ཆུ་ཚོད',
	            d: 'ཉིན་གཅིག',
	            dd: '%d ཉིན་',
	            M: 'ཟླ་བ་གཅིག',
	            MM: '%d ཟླ་བ',
	            y: 'ལོ་གཅིག',
	            yy: '%d ལོ'
	        },
	        preparse: function preparse(string) {
	            return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
	                return numberMap[match];
	            });
	        },
	        postformat: function postformat(string) {
	            return string.replace(/\d/g, function (match) {
	                return symbolMap[match];
	            });
	        },
	        meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === 'མཚན་མོ' && hour >= 4 || meridiem === 'ཉིན་གུང' && hour < 5 || meridiem === 'དགོང་དག') {
	                return hour + 12;
	            } else {
	                return hour;
	            }
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 4) {
	                return 'མཚན་མོ';
	            } else if (hour < 10) {
	                return 'ཞོགས་ཀས';
	            } else if (hour < 17) {
	                return 'ཉིན་གུང';
	            } else if (hour < 20) {
	                return 'དགོང་དག';
	            } else {
	                return 'མཚན་མོ';
	            }
	        },
	        week: {
	            dow: 0, // Sunday is the first day of the week.
	            doy: 6 // The week that contains Jan 6th is the first week of the year.
	        }
	    });
	
	    return bo;
	});

/***/ }),
/* 318 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Breton [br]
	//! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    function relativeTimeWithMutation(number, withoutSuffix, key) {
	        var format = {
	            mm: 'munutenn',
	            MM: 'miz',
	            dd: 'devezh'
	        };
	        return number + ' ' + mutation(format[key], number);
	    }
	    function specialMutationForYears(number) {
	        switch (lastNumber(number)) {
	            case 1:
	            case 3:
	            case 4:
	            case 5:
	            case 9:
	                return number + ' bloaz';
	            default:
	                return number + ' vloaz';
	        }
	    }
	    function lastNumber(number) {
	        if (number > 9) {
	            return lastNumber(number % 10);
	        }
	        return number;
	    }
	    function mutation(text, number) {
	        if (number === 2) {
	            return softMutation(text);
	        }
	        return text;
	    }
	    function softMutation(text) {
	        var mutationTable = {
	            m: 'v',
	            b: 'v',
	            d: 'z'
	        };
	        if (mutationTable[text.charAt(0)] === undefined) {
	            return text;
	        }
	        return mutationTable[text.charAt(0)] + text.substring(1);
	    }
	
	    var monthsParse = [/^gen/i, /^c[ʼ\']hwe/i, /^meu/i, /^ebr/i, /^mae/i, /^(mez|eve)/i, /^gou/i, /^eos/i, /^gwe/i, /^her/i, /^du/i, /^ker/i],
	        monthsRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
	        monthsStrictRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,
	        monthsShortStrictRegex = /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
	        fullWeekdaysParse = [/^sul/i, /^lun/i, /^meurzh/i, /^merc[ʼ\']her/i, /^yaou/i, /^gwener/i, /^sadorn/i],
	        shortWeekdaysParse = [/^Sul/i, /^Lun/i, /^Meu/i, /^Mer/i, /^Yao/i, /^Gwe/i, /^Sad/i],
	        minWeekdaysParse = [/^Su/i, /^Lu/i, /^Me([^r]|$)/i, /^Mer/i, /^Ya/i, /^Gw/i, /^Sa/i];
	
	    var br = moment.defineLocale('br', {
	        months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
	        monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
	        weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),
	        weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
	        weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
	        weekdaysParse: minWeekdaysParse,
	        fullWeekdaysParse: fullWeekdaysParse,
	        shortWeekdaysParse: shortWeekdaysParse,
	        minWeekdaysParse: minWeekdaysParse,
	
	        monthsRegex: monthsRegex,
	        monthsShortRegex: monthsRegex,
	        monthsStrictRegex: monthsStrictRegex,
	        monthsShortStrictRegex: monthsShortStrictRegex,
	        monthsParse: monthsParse,
	        longMonthsParse: monthsParse,
	        shortMonthsParse: monthsParse,
	
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D [a viz] MMMM YYYY',
	            LLL: 'D [a viz] MMMM YYYY HH:mm',
	            LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[Hiziv da] LT',
	            nextDay: '[Warcʼhoazh da] LT',
	            nextWeek: 'dddd [da] LT',
	            lastDay: '[Decʼh da] LT',
	            lastWeek: 'dddd [paset da] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'a-benn %s',
	            past: '%s ʼzo',
	            s: 'un nebeud segondennoù',
	            ss: '%d eilenn',
	            m: 'ur vunutenn',
	            mm: relativeTimeWithMutation,
	            h: 'un eur',
	            hh: '%d eur',
	            d: 'un devezh',
	            dd: relativeTimeWithMutation,
	            M: 'ur miz',
	            MM: relativeTimeWithMutation,
	            y: 'ur bloaz',
	            yy: specialMutationForYears
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
	        ordinal: function ordinal(number) {
	            var output = number === 1 ? 'añ' : 'vet';
	            return number + output;
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        },
	        meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn
	        isPM: function isPM(token) {
	            return token === 'g.m.';
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            return hour < 12 ? 'a.m.' : 'g.m.';
	        }
	    });
	
	    return br;
	});

/***/ }),
/* 319 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Bosnian [bs]
	//! author : Nedim Cholich : https://github.com/frontyard
	//! author : Rasid Redzic : https://github.com/rasidre
	//! based on (hr) translation by Bojan Marković
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    function processRelativeTime(number, withoutSuffix, key, isFuture) {
	        switch (key) {
	            case 'm':
	                return withoutSuffix ? 'jedna minuta' : isFuture ? 'jednu minutu' : 'jedne minute';
	        }
	    }
	
	    function translate(number, withoutSuffix, key) {
	        var result = number + ' ';
	        switch (key) {
	            case 'ss':
	                if (number === 1) {
	                    result += 'sekunda';
	                } else if (number === 2 || number === 3 || number === 4) {
	                    result += 'sekunde';
	                } else {
	                    result += 'sekundi';
	                }
	                return result;
	            case 'mm':
	                if (number === 1) {
	                    result += 'minuta';
	                } else if (number === 2 || number === 3 || number === 4) {
	                    result += 'minute';
	                } else {
	                    result += 'minuta';
	                }
	                return result;
	            case 'h':
	                return withoutSuffix ? 'jedan sat' : 'jedan sat';
	            case 'hh':
	                if (number === 1) {
	                    result += 'sat';
	                } else if (number === 2 || number === 3 || number === 4) {
	                    result += 'sata';
	                } else {
	                    result += 'sati';
	                }
	                return result;
	            case 'dd':
	                if (number === 1) {
	                    result += 'dan';
	                } else {
	                    result += 'dana';
	                }
	                return result;
	            case 'MM':
	                if (number === 1) {
	                    result += 'mjesec';
	                } else if (number === 2 || number === 3 || number === 4) {
	                    result += 'mjeseca';
	                } else {
	                    result += 'mjeseci';
	                }
	                return result;
	            case 'yy':
	                if (number === 1) {
	                    result += 'godina';
	                } else if (number === 2 || number === 3 || number === 4) {
	                    result += 'godine';
	                } else {
	                    result += 'godina';
	                }
	                return result;
	        }
	    }
	
	    var bs = moment.defineLocale('bs', {
	        months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
	        monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
	        weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
	        weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'H:mm',
	            LTS: 'H:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D. MMMM YYYY',
	            LLL: 'D. MMMM YYYY H:mm',
	            LLLL: 'dddd, D. MMMM YYYY H:mm'
	        },
	        calendar: {
	            sameDay: '[danas u] LT',
	            nextDay: '[sutra u] LT',
	            nextWeek: function nextWeek() {
	                switch (this.day()) {
	                    case 0:
	                        return '[u] [nedjelju] [u] LT';
	                    case 3:
	                        return '[u] [srijedu] [u] LT';
	                    case 6:
	                        return '[u] [subotu] [u] LT';
	                    case 1:
	                    case 2:
	                    case 4:
	                    case 5:
	                        return '[u] dddd [u] LT';
	                }
	            },
	            lastDay: '[jučer u] LT',
	            lastWeek: function lastWeek() {
	                switch (this.day()) {
	                    case 0:
	                    case 3:
	                        return '[prošlu] dddd [u] LT';
	                    case 6:
	                        return '[prošle] [subote] [u] LT';
	                    case 1:
	                    case 2:
	                    case 4:
	                    case 5:
	                        return '[prošli] dddd [u] LT';
	                }
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'za %s',
	            past: 'prije %s',
	            s: 'par sekundi',
	            ss: translate,
	            m: processRelativeTime,
	            mm: translate,
	            h: translate,
	            hh: translate,
	            d: 'dan',
	            dd: translate,
	            M: 'mjesec',
	            MM: translate,
	            y: 'godinu',
	            yy: translate
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return bs;
	});

/***/ }),
/* 320 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Catalan [ca]
	//! author : Juan G. Hurtado : https://github.com/juanghurtado
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var ca = moment.defineLocale('ca', {
	        months: {
	            standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
	            format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split('_'),
	            isFormat: /D[oD]?(\s)+MMMM/
	        },
	        monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
	        weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
	        weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'H:mm',
	            LTS: 'H:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM [de] YYYY',
	            ll: 'D MMM YYYY',
	            LLL: 'D MMMM [de] YYYY [a les] H:mm',
	            lll: 'D MMM YYYY, H:mm',
	            LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
	            llll: 'ddd D MMM YYYY, H:mm'
	        },
	        calendar: {
	            sameDay: function sameDay() {
	                return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
	            },
	            nextDay: function nextDay() {
	                return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
	            },
	            nextWeek: function nextWeek() {
	                return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
	            },
	            lastDay: function lastDay() {
	                return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
	            },
	            lastWeek: function lastWeek() {
	                return '[el] dddd [passat a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: "d'aquí %s",
	            past: 'fa %s',
	            s: 'uns segons',
	            ss: '%d segons',
	            m: 'un minut',
	            mm: '%d minuts',
	            h: 'una hora',
	            hh: '%d hores',
	            d: 'un dia',
	            dd: '%d dies',
	            M: 'un mes',
	            MM: '%d mesos',
	            y: 'un any',
	            yy: '%d anys'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
	        ordinal: function ordinal(number, period) {
	            var output = number === 1 ? 'r' : number === 2 ? 'n' : number === 3 ? 'r' : number === 4 ? 't' : 'è';
	            if (period === 'w' || period === 'W') {
	                output = 'a';
	            }
	            return number + output;
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return ca;
	});

/***/ }),
/* 321 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Czech [cs]
	//! author : petrbela : https://github.com/petrbela
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var months = {
	        standalone: 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
	        format: 'ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince'.split('_'),
	        isFormat: /DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/
	    },
	        monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
	        monthsParse = [/^led/i, /^úno/i, /^bře/i, /^dub/i, /^kvě/i, /^(čvn|červen$|června)/i, /^(čvc|červenec|července)/i, /^srp/i, /^zář/i, /^říj/i, /^lis/i, /^pro/i],
	
	    // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
	    // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
	    monthsRegex = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;
	
	    function plural(n) {
	        return n > 1 && n < 5 && ~~(n / 10) !== 1;
	    }
	    function translate(number, withoutSuffix, key, isFuture) {
	        var result = number + ' ';
	        switch (key) {
	            case 's':
	                // a few seconds / in a few seconds / a few seconds ago
	                return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';
	            case 'ss':
	                // 9 seconds / in 9 seconds / 9 seconds ago
	                if (withoutSuffix || isFuture) {
	                    return result + (plural(number) ? 'sekundy' : 'sekund');
	                } else {
	                    return result + 'sekundami';
	                }
	            case 'm':
	                // a minute / in a minute / a minute ago
	                return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';
	            case 'mm':
	                // 9 minutes / in 9 minutes / 9 minutes ago
	                if (withoutSuffix || isFuture) {
	                    return result + (plural(number) ? 'minuty' : 'minut');
	                } else {
	                    return result + 'minutami';
	                }
	            case 'h':
	                // an hour / in an hour / an hour ago
	                return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
	            case 'hh':
	                // 9 hours / in 9 hours / 9 hours ago
	                if (withoutSuffix || isFuture) {
	                    return result + (plural(number) ? 'hodiny' : 'hodin');
	                } else {
	                    return result + 'hodinami';
	                }
	            case 'd':
	                // a day / in a day / a day ago
	                return withoutSuffix || isFuture ? 'den' : 'dnem';
	            case 'dd':
	                // 9 days / in 9 days / 9 days ago
	                if (withoutSuffix || isFuture) {
	                    return result + (plural(number) ? 'dny' : 'dní');
	                } else {
	                    return result + 'dny';
	                }
	            case 'M':
	                // a month / in a month / a month ago
	                return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';
	            case 'MM':
	                // 9 months / in 9 months / 9 months ago
	                if (withoutSuffix || isFuture) {
	                    return result + (plural(number) ? 'měsíce' : 'měsíců');
	                } else {
	                    return result + 'měsíci';
	                }
	            case 'y':
	                // a year / in a year / a year ago
	                return withoutSuffix || isFuture ? 'rok' : 'rokem';
	            case 'yy':
	                // 9 years / in 9 years / 9 years ago
	                if (withoutSuffix || isFuture) {
	                    return result + (plural(number) ? 'roky' : 'let');
	                } else {
	                    return result + 'lety';
	                }
	        }
	    }
	
	    var cs = moment.defineLocale('cs', {
	        months: months,
	        monthsShort: monthsShort,
	        monthsRegex: monthsRegex,
	        monthsShortRegex: monthsRegex,
	        // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
	        // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
	        monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
	        monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
	        monthsParse: monthsParse,
	        longMonthsParse: monthsParse,
	        shortMonthsParse: monthsParse,
	        weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
	        weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
	        weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
	        longDateFormat: {
	            LT: 'H:mm',
	            LTS: 'H:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D. MMMM YYYY',
	            LLL: 'D. MMMM YYYY H:mm',
	            LLLL: 'dddd D. MMMM YYYY H:mm',
	            l: 'D. M. YYYY'
	        },
	        calendar: {
	            sameDay: '[dnes v] LT',
	            nextDay: '[zítra v] LT',
	            nextWeek: function nextWeek() {
	                switch (this.day()) {
	                    case 0:
	                        return '[v neděli v] LT';
	                    case 1:
	                    case 2:
	                        return '[v] dddd [v] LT';
	                    case 3:
	                        return '[ve středu v] LT';
	                    case 4:
	                        return '[ve čtvrtek v] LT';
	                    case 5:
	                        return '[v pátek v] LT';
	                    case 6:
	                        return '[v sobotu v] LT';
	                }
	            },
	            lastDay: '[včera v] LT',
	            lastWeek: function lastWeek() {
	                switch (this.day()) {
	                    case 0:
	                        return '[minulou neděli v] LT';
	                    case 1:
	                    case 2:
	                        return '[minulé] dddd [v] LT';
	                    case 3:
	                        return '[minulou středu v] LT';
	                    case 4:
	                    case 5:
	                        return '[minulý] dddd [v] LT';
	                    case 6:
	                        return '[minulou sobotu v] LT';
	                }
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'za %s',
	            past: 'před %s',
	            s: translate,
	            ss: translate,
	            m: translate,
	            mm: translate,
	            h: translate,
	            hh: translate,
	            d: translate,
	            dd: translate,
	            M: translate,
	            MM: translate,
	            y: translate,
	            yy: translate
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return cs;
	});

/***/ }),
/* 322 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Chuvash [cv]
	//! author : Anatoly Mironov : https://github.com/mirontoli
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var cv = moment.defineLocale('cv', {
	        months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
	        monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
	        weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
	        weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
	        weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD-MM-YYYY',
	            LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
	            LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
	            LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
	        },
	        calendar: {
	            sameDay: '[Паян] LT [сехетре]',
	            nextDay: '[Ыран] LT [сехетре]',
	            lastDay: '[Ӗнер] LT [сехетре]',
	            nextWeek: '[Ҫитес] dddd LT [сехетре]',
	            lastWeek: '[Иртнӗ] dddd LT [сехетре]',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: function future(output) {
	                var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';
	                return output + affix;
	            },
	            past: '%s каялла',
	            s: 'пӗр-ик ҫеккунт',
	            ss: '%d ҫеккунт',
	            m: 'пӗр минут',
	            mm: '%d минут',
	            h: 'пӗр сехет',
	            hh: '%d сехет',
	            d: 'пӗр кун',
	            dd: '%d кун',
	            M: 'пӗр уйӑх',
	            MM: '%d уйӑх',
	            y: 'пӗр ҫул',
	            yy: '%d ҫул'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
	        ordinal: '%d-мӗш',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return cv;
	});

/***/ }),
/* 323 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Welsh [cy]
	//! author : Robert Allen : https://github.com/robgallen
	//! author : https://github.com/ryangreaves
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var cy = moment.defineLocale('cy', {
	        months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
	        monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
	        weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
	        weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
	        weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
	        weekdaysParseExact: true,
	        // time formats are the same as en-gb
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[Heddiw am] LT',
	            nextDay: '[Yfory am] LT',
	            nextWeek: 'dddd [am] LT',
	            lastDay: '[Ddoe am] LT',
	            lastWeek: 'dddd [diwethaf am] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'mewn %s',
	            past: '%s yn ôl',
	            s: 'ychydig eiliadau',
	            ss: '%d eiliad',
	            m: 'munud',
	            mm: '%d munud',
	            h: 'awr',
	            hh: '%d awr',
	            d: 'diwrnod',
	            dd: '%d diwrnod',
	            M: 'mis',
	            MM: '%d mis',
	            y: 'blwyddyn',
	            yy: '%d flynedd'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
	        // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
	        ordinal: function ordinal(number) {
	            var b = number,
	                output = '',
	                lookup = ['', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
	            'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed'];
	            if (b > 20) {
	                if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
	                    output = 'fed'; // not 30ain, 70ain or 90ain
	                } else {
	                    output = 'ain';
	                }
	            } else if (b > 0) {
	                output = lookup[b];
	            }
	            return number + output;
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return cy;
	});

/***/ }),
/* 324 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Danish [da]
	//! author : Ulrik Nielsen : https://github.com/mrbase
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var da = moment.defineLocale('da', {
	        months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
	        monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
	        weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
	        weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),
	        weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D. MMMM YYYY',
	            LLL: 'D. MMMM YYYY HH:mm',
	            LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm'
	        },
	        calendar: {
	            sameDay: '[i dag kl.] LT',
	            nextDay: '[i morgen kl.] LT',
	            nextWeek: 'på dddd [kl.] LT',
	            lastDay: '[i går kl.] LT',
	            lastWeek: '[i] dddd[s kl.] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'om %s',
	            past: '%s siden',
	            s: 'få sekunder',
	            ss: '%d sekunder',
	            m: 'et minut',
	            mm: '%d minutter',
	            h: 'en time',
	            hh: '%d timer',
	            d: 'en dag',
	            dd: '%d dage',
	            M: 'en måned',
	            MM: '%d måneder',
	            y: 'et år',
	            yy: '%d år'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return da;
	});

/***/ }),
/* 325 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : German (Austria) [de-at]
	//! author : lluchs : https://github.com/lluchs
	//! author: Menelion Elensúle: https://github.com/Oire
	//! author : Martin Groller : https://github.com/MadMG
	//! author : Mikolaj Dadela : https://github.com/mik01aj
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    function processRelativeTime(number, withoutSuffix, key, isFuture) {
	        var format = {
	            m: ['eine Minute', 'einer Minute'],
	            h: ['eine Stunde', 'einer Stunde'],
	            d: ['ein Tag', 'einem Tag'],
	            dd: [number + ' Tage', number + ' Tagen'],
	            w: ['eine Woche', 'einer Woche'],
	            M: ['ein Monat', 'einem Monat'],
	            MM: [number + ' Monate', number + ' Monaten'],
	            y: ['ein Jahr', 'einem Jahr'],
	            yy: [number + ' Jahre', number + ' Jahren']
	        };
	        return withoutSuffix ? format[key][0] : format[key][1];
	    }
	
	    var deAt = moment.defineLocale('de-at', {
	        months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
	        monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
	        weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
	        weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D. MMMM YYYY',
	            LLL: 'D. MMMM YYYY HH:mm',
	            LLLL: 'dddd, D. MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[heute um] LT [Uhr]',
	            sameElse: 'L',
	            nextDay: '[morgen um] LT [Uhr]',
	            nextWeek: 'dddd [um] LT [Uhr]',
	            lastDay: '[gestern um] LT [Uhr]',
	            lastWeek: '[letzten] dddd [um] LT [Uhr]'
	        },
	        relativeTime: {
	            future: 'in %s',
	            past: 'vor %s',
	            s: 'ein paar Sekunden',
	            ss: '%d Sekunden',
	            m: processRelativeTime,
	            mm: '%d Minuten',
	            h: processRelativeTime,
	            hh: '%d Stunden',
	            d: processRelativeTime,
	            dd: processRelativeTime,
	            w: processRelativeTime,
	            ww: '%d Wochen',
	            M: processRelativeTime,
	            MM: processRelativeTime,
	            y: processRelativeTime,
	            yy: processRelativeTime
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return deAt;
	});

/***/ }),
/* 326 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : German (Switzerland) [de-ch]
	//! author : sschueller : https://github.com/sschueller
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    function processRelativeTime(number, withoutSuffix, key, isFuture) {
	        var format = {
	            m: ['eine Minute', 'einer Minute'],
	            h: ['eine Stunde', 'einer Stunde'],
	            d: ['ein Tag', 'einem Tag'],
	            dd: [number + ' Tage', number + ' Tagen'],
	            w: ['eine Woche', 'einer Woche'],
	            M: ['ein Monat', 'einem Monat'],
	            MM: [number + ' Monate', number + ' Monaten'],
	            y: ['ein Jahr', 'einem Jahr'],
	            yy: [number + ' Jahre', number + ' Jahren']
	        };
	        return withoutSuffix ? format[key][0] : format[key][1];
	    }
	
	    var deCh = moment.defineLocale('de-ch', {
	        months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
	        monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
	        weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
	        weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D. MMMM YYYY',
	            LLL: 'D. MMMM YYYY HH:mm',
	            LLLL: 'dddd, D. MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[heute um] LT [Uhr]',
	            sameElse: 'L',
	            nextDay: '[morgen um] LT [Uhr]',
	            nextWeek: 'dddd [um] LT [Uhr]',
	            lastDay: '[gestern um] LT [Uhr]',
	            lastWeek: '[letzten] dddd [um] LT [Uhr]'
	        },
	        relativeTime: {
	            future: 'in %s',
	            past: 'vor %s',
	            s: 'ein paar Sekunden',
	            ss: '%d Sekunden',
	            m: processRelativeTime,
	            mm: '%d Minuten',
	            h: processRelativeTime,
	            hh: '%d Stunden',
	            d: processRelativeTime,
	            dd: processRelativeTime,
	            w: processRelativeTime,
	            ww: '%d Wochen',
	            M: processRelativeTime,
	            MM: processRelativeTime,
	            y: processRelativeTime,
	            yy: processRelativeTime
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return deCh;
	});

/***/ }),
/* 327 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : German [de]
	//! author : lluchs : https://github.com/lluchs
	//! author: Menelion Elensúle: https://github.com/Oire
	//! author : Mikolaj Dadela : https://github.com/mik01aj
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    function processRelativeTime(number, withoutSuffix, key, isFuture) {
	        var format = {
	            m: ['eine Minute', 'einer Minute'],
	            h: ['eine Stunde', 'einer Stunde'],
	            d: ['ein Tag', 'einem Tag'],
	            dd: [number + ' Tage', number + ' Tagen'],
	            w: ['eine Woche', 'einer Woche'],
	            M: ['ein Monat', 'einem Monat'],
	            MM: [number + ' Monate', number + ' Monaten'],
	            y: ['ein Jahr', 'einem Jahr'],
	            yy: [number + ' Jahre', number + ' Jahren']
	        };
	        return withoutSuffix ? format[key][0] : format[key][1];
	    }
	
	    var de = moment.defineLocale('de', {
	        months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
	        monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
	        weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
	        weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D. MMMM YYYY',
	            LLL: 'D. MMMM YYYY HH:mm',
	            LLLL: 'dddd, D. MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[heute um] LT [Uhr]',
	            sameElse: 'L',
	            nextDay: '[morgen um] LT [Uhr]',
	            nextWeek: 'dddd [um] LT [Uhr]',
	            lastDay: '[gestern um] LT [Uhr]',
	            lastWeek: '[letzten] dddd [um] LT [Uhr]'
	        },
	        relativeTime: {
	            future: 'in %s',
	            past: 'vor %s',
	            s: 'ein paar Sekunden',
	            ss: '%d Sekunden',
	            m: processRelativeTime,
	            mm: '%d Minuten',
	            h: processRelativeTime,
	            hh: '%d Stunden',
	            d: processRelativeTime,
	            dd: processRelativeTime,
	            w: processRelativeTime,
	            ww: '%d Wochen',
	            M: processRelativeTime,
	            MM: processRelativeTime,
	            y: processRelativeTime,
	            yy: processRelativeTime
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return de;
	});

/***/ }),
/* 328 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Maldivian [dv]
	//! author : Jawish Hameed : https://github.com/jawish
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var months = ['ޖެނުއަރީ', 'ފެބްރުއަރީ', 'މާރިޗު', 'އޭޕްރީލު', 'މޭ', 'ޖޫން', 'ޖުލައި', 'އޯގަސްޓު', 'ސެޕްޓެމްބަރު', 'އޮކްޓޯބަރު', 'ނޮވެމްބަރު', 'ޑިސެމްބަރު'],
	        weekdays = ['އާދިއްތަ', 'ހޯމަ', 'އަންގާރަ', 'ބުދަ', 'ބުރާސްފަތި', 'ހުކުރު', 'ހޮނިހިރު'];
	
	    var dv = moment.defineLocale('dv', {
	        months: months,
	        monthsShort: months,
	        weekdays: weekdays,
	        weekdaysShort: weekdays,
	        weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'D/M/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd D MMMM YYYY HH:mm'
	        },
	        meridiemParse: /މކ|މފ/,
	        isPM: function isPM(input) {
	            return 'މފ' === input;
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 12) {
	                return 'މކ';
	            } else {
	                return 'މފ';
	            }
	        },
	        calendar: {
	            sameDay: '[މިއަދު] LT',
	            nextDay: '[މާދަމާ] LT',
	            nextWeek: 'dddd LT',
	            lastDay: '[އިއްޔެ] LT',
	            lastWeek: '[ފާއިތުވި] dddd LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'ތެރޭގައި %s',
	            past: 'ކުރިން %s',
	            s: 'ސިކުންތުކޮޅެއް',
	            ss: 'd% ސިކުންތު',
	            m: 'މިނިޓެއް',
	            mm: 'މިނިޓު %d',
	            h: 'ގަޑިއިރެއް',
	            hh: 'ގަޑިއިރު %d',
	            d: 'ދުވަހެއް',
	            dd: 'ދުވަސް %d',
	            M: 'މަހެއް',
	            MM: 'މަސް %d',
	            y: 'އަހަރެއް',
	            yy: 'އަހަރު %d'
	        },
	        preparse: function preparse(string) {
	            return string.replace(/،/g, ',');
	        },
	        postformat: function postformat(string) {
	            return string.replace(/,/g, '،');
	        },
	        week: {
	            dow: 7, // Sunday is the first day of the week.
	            doy: 12 // The week that contains Jan 12th is the first week of the year.
	        }
	    });
	
	    return dv;
	});

/***/ }),
/* 329 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Greek [el]
	//! author : Aggelos Karalias : https://github.com/mehiel
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    function isFunction(input) {
	        return typeof Function !== 'undefined' && input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
	    }
	
	    var el = moment.defineLocale('el', {
	        monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
	        monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
	        months: function months(momentToFormat, format) {
	            if (!momentToFormat) {
	                return this._monthsNominativeEl;
	            } else if (typeof format === 'string' && /D/.test(format.substring(0, format.indexOf('MMMM')))) {
	                // if there is a day number before 'MMMM'
	                return this._monthsGenitiveEl[momentToFormat.month()];
	            } else {
	                return this._monthsNominativeEl[momentToFormat.month()];
	            }
	        },
	        monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
	        weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
	        weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
	        weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
	        meridiem: function meridiem(hours, minutes, isLower) {
	            if (hours > 11) {
	                return isLower ? 'μμ' : 'ΜΜ';
	            } else {
	                return isLower ? 'πμ' : 'ΠΜ';
	            }
	        },
	        isPM: function isPM(input) {
	            return (input + '').toLowerCase()[0] === 'μ';
	        },
	        meridiemParse: /[ΠΜ]\.?Μ?\.?/i,
	        longDateFormat: {
	            LT: 'h:mm A',
	            LTS: 'h:mm:ss A',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY h:mm A',
	            LLLL: 'dddd, D MMMM YYYY h:mm A'
	        },
	        calendarEl: {
	            sameDay: '[Σήμερα {}] LT',
	            nextDay: '[Αύριο {}] LT',
	            nextWeek: 'dddd [{}] LT',
	            lastDay: '[Χθες {}] LT',
	            lastWeek: function lastWeek() {
	                switch (this.day()) {
	                    case 6:
	                        return '[το προηγούμενο] dddd [{}] LT';
	                    default:
	                        return '[την προηγούμενη] dddd [{}] LT';
	                }
	            },
	            sameElse: 'L'
	        },
	        calendar: function calendar(key, mom) {
	            var output = this._calendarEl[key],
	                hours = mom && mom.hours();
	            if (isFunction(output)) {
	                output = output.apply(mom);
	            }
	            return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');
	        },
	        relativeTime: {
	            future: 'σε %s',
	            past: '%s πριν',
	            s: 'λίγα δευτερόλεπτα',
	            ss: '%d δευτερόλεπτα',
	            m: 'ένα λεπτό',
	            mm: '%d λεπτά',
	            h: 'μία ώρα',
	            hh: '%d ώρες',
	            d: 'μία μέρα',
	            dd: '%d μέρες',
	            M: 'ένας μήνας',
	            MM: '%d μήνες',
	            y: 'ένας χρόνος',
	            yy: '%d χρόνια'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}η/,
	        ordinal: '%dη',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4st is the first week of the year.
	        }
	    });
	
	    return el;
	});

/***/ }),
/* 330 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : English (Australia) [en-au]
	//! author : Jared Morse : https://github.com/jarcoal
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var enAu = moment.defineLocale('en-au', {
	        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
	        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
	        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
	        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
	        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
	        longDateFormat: {
	            LT: 'h:mm A',
	            LTS: 'h:mm:ss A',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY h:mm A',
	            LLLL: 'dddd, D MMMM YYYY h:mm A'
	        },
	        calendar: {
	            sameDay: '[Today at] LT',
	            nextDay: '[Tomorrow at] LT',
	            nextWeek: 'dddd [at] LT',
	            lastDay: '[Yesterday at] LT',
	            lastWeek: '[Last] dddd [at] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'in %s',
	            past: '%s ago',
	            s: 'a few seconds',
	            ss: '%d seconds',
	            m: 'a minute',
	            mm: '%d minutes',
	            h: 'an hour',
	            hh: '%d hours',
	            d: 'a day',
	            dd: '%d days',
	            M: 'a month',
	            MM: '%d months',
	            y: 'a year',
	            yy: '%d years'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
	        ordinal: function ordinal(number) {
	            var b = number % 10,
	                output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
	            return number + output;
	        },
	        week: {
	            dow: 0, // Sunday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return enAu;
	});

/***/ }),
/* 331 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : English (Canada) [en-ca]
	//! author : Jonathan Abourbih : https://github.com/jonbca
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var enCa = moment.defineLocale('en-ca', {
	        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
	        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
	        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
	        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
	        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
	        longDateFormat: {
	            LT: 'h:mm A',
	            LTS: 'h:mm:ss A',
	            L: 'YYYY-MM-DD',
	            LL: 'MMMM D, YYYY',
	            LLL: 'MMMM D, YYYY h:mm A',
	            LLLL: 'dddd, MMMM D, YYYY h:mm A'
	        },
	        calendar: {
	            sameDay: '[Today at] LT',
	            nextDay: '[Tomorrow at] LT',
	            nextWeek: 'dddd [at] LT',
	            lastDay: '[Yesterday at] LT',
	            lastWeek: '[Last] dddd [at] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'in %s',
	            past: '%s ago',
	            s: 'a few seconds',
	            ss: '%d seconds',
	            m: 'a minute',
	            mm: '%d minutes',
	            h: 'an hour',
	            hh: '%d hours',
	            d: 'a day',
	            dd: '%d days',
	            M: 'a month',
	            MM: '%d months',
	            y: 'a year',
	            yy: '%d years'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
	        ordinal: function ordinal(number) {
	            var b = number % 10,
	                output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
	            return number + output;
	        }
	    });
	
	    return enCa;
	});

/***/ }),
/* 332 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : English (United Kingdom) [en-gb]
	//! author : Chris Gedrim : https://github.com/chrisgedrim
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var enGb = moment.defineLocale('en-gb', {
	        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
	        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
	        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
	        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
	        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[Today at] LT',
	            nextDay: '[Tomorrow at] LT',
	            nextWeek: 'dddd [at] LT',
	            lastDay: '[Yesterday at] LT',
	            lastWeek: '[Last] dddd [at] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'in %s',
	            past: '%s ago',
	            s: 'a few seconds',
	            ss: '%d seconds',
	            m: 'a minute',
	            mm: '%d minutes',
	            h: 'an hour',
	            hh: '%d hours',
	            d: 'a day',
	            dd: '%d days',
	            M: 'a month',
	            MM: '%d months',
	            y: 'a year',
	            yy: '%d years'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
	        ordinal: function ordinal(number) {
	            var b = number % 10,
	                output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
	            return number + output;
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return enGb;
	});

/***/ }),
/* 333 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : English (Ireland) [en-ie]
	//! author : Chris Cartlidge : https://github.com/chriscartlidge
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var enIe = moment.defineLocale('en-ie', {
	        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
	        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
	        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
	        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
	        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[Today at] LT',
	            nextDay: '[Tomorrow at] LT',
	            nextWeek: 'dddd [at] LT',
	            lastDay: '[Yesterday at] LT',
	            lastWeek: '[Last] dddd [at] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'in %s',
	            past: '%s ago',
	            s: 'a few seconds',
	            ss: '%d seconds',
	            m: 'a minute',
	            mm: '%d minutes',
	            h: 'an hour',
	            hh: '%d hours',
	            d: 'a day',
	            dd: '%d days',
	            M: 'a month',
	            MM: '%d months',
	            y: 'a year',
	            yy: '%d years'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
	        ordinal: function ordinal(number) {
	            var b = number % 10,
	                output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
	            return number + output;
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return enIe;
	});

/***/ }),
/* 334 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : English (Israel) [en-il]
	//! author : Chris Gedrim : https://github.com/chrisgedrim
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var enIl = moment.defineLocale('en-il', {
	        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
	        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
	        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
	        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
	        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[Today at] LT',
	            nextDay: '[Tomorrow at] LT',
	            nextWeek: 'dddd [at] LT',
	            lastDay: '[Yesterday at] LT',
	            lastWeek: '[Last] dddd [at] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'in %s',
	            past: '%s ago',
	            s: 'a few seconds',
	            ss: '%d seconds',
	            m: 'a minute',
	            mm: '%d minutes',
	            h: 'an hour',
	            hh: '%d hours',
	            d: 'a day',
	            dd: '%d days',
	            M: 'a month',
	            MM: '%d months',
	            y: 'a year',
	            yy: '%d years'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
	        ordinal: function ordinal(number) {
	            var b = number % 10,
	                output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
	            return number + output;
	        }
	    });
	
	    return enIl;
	});

/***/ }),
/* 335 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : English (India) [en-in]
	//! author : Jatin Agrawal : https://github.com/jatinag22
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var enIn = moment.defineLocale('en-in', {
	        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
	        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
	        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
	        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
	        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
	        longDateFormat: {
	            LT: 'h:mm A',
	            LTS: 'h:mm:ss A',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY h:mm A',
	            LLLL: 'dddd, D MMMM YYYY h:mm A'
	        },
	        calendar: {
	            sameDay: '[Today at] LT',
	            nextDay: '[Tomorrow at] LT',
	            nextWeek: 'dddd [at] LT',
	            lastDay: '[Yesterday at] LT',
	            lastWeek: '[Last] dddd [at] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'in %s',
	            past: '%s ago',
	            s: 'a few seconds',
	            ss: '%d seconds',
	            m: 'a minute',
	            mm: '%d minutes',
	            h: 'an hour',
	            hh: '%d hours',
	            d: 'a day',
	            dd: '%d days',
	            M: 'a month',
	            MM: '%d months',
	            y: 'a year',
	            yy: '%d years'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
	        ordinal: function ordinal(number) {
	            var b = number % 10,
	                output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
	            return number + output;
	        },
	        week: {
	            dow: 0, // Sunday is the first day of the week.
	            doy: 6 // The week that contains Jan 1st is the first week of the year.
	        }
	    });
	
	    return enIn;
	});

/***/ }),
/* 336 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : English (New Zealand) [en-nz]
	//! author : Luke McGregor : https://github.com/lukemcgregor
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var enNz = moment.defineLocale('en-nz', {
	        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
	        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
	        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
	        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
	        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
	        longDateFormat: {
	            LT: 'h:mm A',
	            LTS: 'h:mm:ss A',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY h:mm A',
	            LLLL: 'dddd, D MMMM YYYY h:mm A'
	        },
	        calendar: {
	            sameDay: '[Today at] LT',
	            nextDay: '[Tomorrow at] LT',
	            nextWeek: 'dddd [at] LT',
	            lastDay: '[Yesterday at] LT',
	            lastWeek: '[Last] dddd [at] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'in %s',
	            past: '%s ago',
	            s: 'a few seconds',
	            ss: '%d seconds',
	            m: 'a minute',
	            mm: '%d minutes',
	            h: 'an hour',
	            hh: '%d hours',
	            d: 'a day',
	            dd: '%d days',
	            M: 'a month',
	            MM: '%d months',
	            y: 'a year',
	            yy: '%d years'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
	        ordinal: function ordinal(number) {
	            var b = number % 10,
	                output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
	            return number + output;
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return enNz;
	});

/***/ }),
/* 337 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : English (Singapore) [en-sg]
	//! author : Matthew Castrillon-Madrigal : https://github.com/techdimension
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var enSg = moment.defineLocale('en-sg', {
	        months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
	        monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
	        weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
	        weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
	        weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[Today at] LT',
	            nextDay: '[Tomorrow at] LT',
	            nextWeek: 'dddd [at] LT',
	            lastDay: '[Yesterday at] LT',
	            lastWeek: '[Last] dddd [at] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'in %s',
	            past: '%s ago',
	            s: 'a few seconds',
	            ss: '%d seconds',
	            m: 'a minute',
	            mm: '%d minutes',
	            h: 'an hour',
	            hh: '%d hours',
	            d: 'a day',
	            dd: '%d days',
	            M: 'a month',
	            MM: '%d months',
	            y: 'a year',
	            yy: '%d years'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
	        ordinal: function ordinal(number) {
	            var b = number % 10,
	                output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
	            return number + output;
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return enSg;
	});

/***/ }),
/* 338 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Esperanto [eo]
	//! author : Colin Dean : https://github.com/colindean
	//! author : Mia Nordentoft Imperatori : https://github.com/miestasmia
	//! comment : miestasmia corrected the translation by colindean
	//! comment : Vivakvo corrected the translation by colindean and miestasmia
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var eo = moment.defineLocale('eo', {
	        months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
	        monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),
	        weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
	        weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
	        weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'YYYY-MM-DD',
	            LL: '[la] D[-an de] MMMM, YYYY',
	            LLL: '[la] D[-an de] MMMM, YYYY HH:mm',
	            LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',
	            llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm'
	        },
	        meridiemParse: /[ap]\.t\.m/i,
	        isPM: function isPM(input) {
	            return input.charAt(0).toLowerCase() === 'p';
	        },
	        meridiem: function meridiem(hours, minutes, isLower) {
	            if (hours > 11) {
	                return isLower ? 'p.t.m.' : 'P.T.M.';
	            } else {
	                return isLower ? 'a.t.m.' : 'A.T.M.';
	            }
	        },
	        calendar: {
	            sameDay: '[Hodiaŭ je] LT',
	            nextDay: '[Morgaŭ je] LT',
	            nextWeek: 'dddd[n je] LT',
	            lastDay: '[Hieraŭ je] LT',
	            lastWeek: '[pasintan] dddd[n je] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'post %s',
	            past: 'antaŭ %s',
	            s: 'kelkaj sekundoj',
	            ss: '%d sekundoj',
	            m: 'unu minuto',
	            mm: '%d minutoj',
	            h: 'unu horo',
	            hh: '%d horoj',
	            d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo
	            dd: '%d tagoj',
	            M: 'unu monato',
	            MM: '%d monatoj',
	            y: 'unu jaro',
	            yy: '%d jaroj'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}a/,
	        ordinal: '%da',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return eo;
	});

/***/ }),
/* 339 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Spanish (Dominican Republic) [es-do]
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
	        _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
	        monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],
	        monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
	
	    var esDo = moment.defineLocale('es-do', {
	        months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
	        monthsShort: function monthsShort(m, format) {
	            if (!m) {
	                return monthsShortDot;
	            } else if (/-MMM-/.test(format)) {
	                return _monthsShort[m.month()];
	            } else {
	                return monthsShortDot[m.month()];
	            }
	        },
	        monthsRegex: monthsRegex,
	        monthsShortRegex: monthsRegex,
	        monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
	        monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
	        monthsParse: monthsParse,
	        longMonthsParse: monthsParse,
	        shortMonthsParse: monthsParse,
	        weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
	        weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
	        weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'h:mm A',
	            LTS: 'h:mm:ss A',
	            L: 'DD/MM/YYYY',
	            LL: 'D [de] MMMM [de] YYYY',
	            LLL: 'D [de] MMMM [de] YYYY h:mm A',
	            LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A'
	        },
	        calendar: {
	            sameDay: function sameDay() {
	                return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
	            },
	            nextDay: function nextDay() {
	                return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
	            },
	            nextWeek: function nextWeek() {
	                return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
	            },
	            lastDay: function lastDay() {
	                return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
	            },
	            lastWeek: function lastWeek() {
	                return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'en %s',
	            past: 'hace %s',
	            s: 'unos segundos',
	            ss: '%d segundos',
	            m: 'un minuto',
	            mm: '%d minutos',
	            h: 'una hora',
	            hh: '%d horas',
	            d: 'un día',
	            dd: '%d días',
	            w: 'una semana',
	            ww: '%d semanas',
	            M: 'un mes',
	            MM: '%d meses',
	            y: 'un año',
	            yy: '%d años'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}º/,
	        ordinal: '%dº',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return esDo;
	});

/***/ }),
/* 340 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Spanish (Mexico) [es-mx]
	//! author : JC Franco : https://github.com/jcfranco
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
	        _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
	        monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],
	        monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
	
	    var esMx = moment.defineLocale('es-mx', {
	        months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
	        monthsShort: function monthsShort(m, format) {
	            if (!m) {
	                return monthsShortDot;
	            } else if (/-MMM-/.test(format)) {
	                return _monthsShort[m.month()];
	            } else {
	                return monthsShortDot[m.month()];
	            }
	        },
	        monthsRegex: monthsRegex,
	        monthsShortRegex: monthsRegex,
	        monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
	        monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
	        monthsParse: monthsParse,
	        longMonthsParse: monthsParse,
	        shortMonthsParse: monthsParse,
	        weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
	        weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
	        weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'H:mm',
	            LTS: 'H:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D [de] MMMM [de] YYYY',
	            LLL: 'D [de] MMMM [de] YYYY H:mm',
	            LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'
	        },
	        calendar: {
	            sameDay: function sameDay() {
	                return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
	            },
	            nextDay: function nextDay() {
	                return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
	            },
	            nextWeek: function nextWeek() {
	                return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
	            },
	            lastDay: function lastDay() {
	                return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
	            },
	            lastWeek: function lastWeek() {
	                return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'en %s',
	            past: 'hace %s',
	            s: 'unos segundos',
	            ss: '%d segundos',
	            m: 'un minuto',
	            mm: '%d minutos',
	            h: 'una hora',
	            hh: '%d horas',
	            d: 'un día',
	            dd: '%d días',
	            w: 'una semana',
	            ww: '%d semanas',
	            M: 'un mes',
	            MM: '%d meses',
	            y: 'un año',
	            yy: '%d años'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}º/,
	        ordinal: '%dº',
	        week: {
	            dow: 0, // Sunday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        },
	        invalidDate: 'Fecha inválida'
	    });
	
	    return esMx;
	});

/***/ }),
/* 341 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Spanish (United States) [es-us]
	//! author : bustta : https://github.com/bustta
	//! author : chrisrodz : https://github.com/chrisrodz
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
	        _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
	        monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],
	        monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
	
	    var esUs = moment.defineLocale('es-us', {
	        months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
	        monthsShort: function monthsShort(m, format) {
	            if (!m) {
	                return monthsShortDot;
	            } else if (/-MMM-/.test(format)) {
	                return _monthsShort[m.month()];
	            } else {
	                return monthsShortDot[m.month()];
	            }
	        },
	        monthsRegex: monthsRegex,
	        monthsShortRegex: monthsRegex,
	        monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
	        monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
	        monthsParse: monthsParse,
	        longMonthsParse: monthsParse,
	        shortMonthsParse: monthsParse,
	        weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
	        weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
	        weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'h:mm A',
	            LTS: 'h:mm:ss A',
	            L: 'MM/DD/YYYY',
	            LL: 'D [de] MMMM [de] YYYY',
	            LLL: 'D [de] MMMM [de] YYYY h:mm A',
	            LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A'
	        },
	        calendar: {
	            sameDay: function sameDay() {
	                return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
	            },
	            nextDay: function nextDay() {
	                return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
	            },
	            nextWeek: function nextWeek() {
	                return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
	            },
	            lastDay: function lastDay() {
	                return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
	            },
	            lastWeek: function lastWeek() {
	                return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'en %s',
	            past: 'hace %s',
	            s: 'unos segundos',
	            ss: '%d segundos',
	            m: 'un minuto',
	            mm: '%d minutos',
	            h: 'una hora',
	            hh: '%d horas',
	            d: 'un día',
	            dd: '%d días',
	            w: 'una semana',
	            ww: '%d semanas',
	            M: 'un mes',
	            MM: '%d meses',
	            y: 'un año',
	            yy: '%d años'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}º/,
	        ordinal: '%dº',
	        week: {
	            dow: 0, // Sunday is the first day of the week.
	            doy: 6 // The week that contains Jan 6th is the first week of the year.
	        }
	    });
	
	    return esUs;
	});

/***/ }),
/* 342 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Spanish [es]
	//! author : Julio Napurí : https://github.com/julionc
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
	        _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
	        monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],
	        monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
	
	    var es = moment.defineLocale('es', {
	        months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
	        monthsShort: function monthsShort(m, format) {
	            if (!m) {
	                return monthsShortDot;
	            } else if (/-MMM-/.test(format)) {
	                return _monthsShort[m.month()];
	            } else {
	                return monthsShortDot[m.month()];
	            }
	        },
	        monthsRegex: monthsRegex,
	        monthsShortRegex: monthsRegex,
	        monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
	        monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
	        monthsParse: monthsParse,
	        longMonthsParse: monthsParse,
	        shortMonthsParse: monthsParse,
	        weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
	        weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
	        weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'H:mm',
	            LTS: 'H:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D [de] MMMM [de] YYYY',
	            LLL: 'D [de] MMMM [de] YYYY H:mm',
	            LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'
	        },
	        calendar: {
	            sameDay: function sameDay() {
	                return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
	            },
	            nextDay: function nextDay() {
	                return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
	            },
	            nextWeek: function nextWeek() {
	                return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
	            },
	            lastDay: function lastDay() {
	                return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
	            },
	            lastWeek: function lastWeek() {
	                return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'en %s',
	            past: 'hace %s',
	            s: 'unos segundos',
	            ss: '%d segundos',
	            m: 'un minuto',
	            mm: '%d minutos',
	            h: 'una hora',
	            hh: '%d horas',
	            d: 'un día',
	            dd: '%d días',
	            w: 'una semana',
	            ww: '%d semanas',
	            M: 'un mes',
	            MM: '%d meses',
	            y: 'un año',
	            yy: '%d años'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}º/,
	        ordinal: '%dº',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        },
	        invalidDate: 'Fecha inválida'
	    });
	
	    return es;
	});

/***/ }),
/* 343 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Estonian [et]
	//! author : Henry Kehlmann : https://github.com/madhenry
	//! improvements : Illimar Tambek : https://github.com/ragulka
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    function processRelativeTime(number, withoutSuffix, key, isFuture) {
	        var format = {
	            s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
	            ss: [number + 'sekundi', number + 'sekundit'],
	            m: ['ühe minuti', 'üks minut'],
	            mm: [number + ' minuti', number + ' minutit'],
	            h: ['ühe tunni', 'tund aega', 'üks tund'],
	            hh: [number + ' tunni', number + ' tundi'],
	            d: ['ühe päeva', 'üks päev'],
	            M: ['kuu aja', 'kuu aega', 'üks kuu'],
	            MM: [number + ' kuu', number + ' kuud'],
	            y: ['ühe aasta', 'aasta', 'üks aasta'],
	            yy: [number + ' aasta', number + ' aastat']
	        };
	        if (withoutSuffix) {
	            return format[key][2] ? format[key][2] : format[key][1];
	        }
	        return isFuture ? format[key][0] : format[key][1];
	    }
	
	    var et = moment.defineLocale('et', {
	        months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
	        monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
	        weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
	        weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),
	        weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),
	        longDateFormat: {
	            LT: 'H:mm',
	            LTS: 'H:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D. MMMM YYYY',
	            LLL: 'D. MMMM YYYY H:mm',
	            LLLL: 'dddd, D. MMMM YYYY H:mm'
	        },
	        calendar: {
	            sameDay: '[Täna,] LT',
	            nextDay: '[Homme,] LT',
	            nextWeek: '[Järgmine] dddd LT',
	            lastDay: '[Eile,] LT',
	            lastWeek: '[Eelmine] dddd LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s pärast',
	            past: '%s tagasi',
	            s: processRelativeTime,
	            ss: processRelativeTime,
	            m: processRelativeTime,
	            mm: processRelativeTime,
	            h: processRelativeTime,
	            hh: processRelativeTime,
	            d: processRelativeTime,
	            dd: '%d päeva',
	            M: processRelativeTime,
	            MM: processRelativeTime,
	            y: processRelativeTime,
	            yy: processRelativeTime
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return et;
	});

/***/ }),
/* 344 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Basque [eu]
	//! author : Eneko Illarramendi : https://github.com/eillarra
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var eu = moment.defineLocale('eu', {
	        months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
	        monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
	        weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
	        weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'YYYY-MM-DD',
	            LL: 'YYYY[ko] MMMM[ren] D[a]',
	            LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
	            LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
	            l: 'YYYY-M-D',
	            ll: 'YYYY[ko] MMM D[a]',
	            lll: 'YYYY[ko] MMM D[a] HH:mm',
	            llll: 'ddd, YYYY[ko] MMM D[a] HH:mm'
	        },
	        calendar: {
	            sameDay: '[gaur] LT[etan]',
	            nextDay: '[bihar] LT[etan]',
	            nextWeek: 'dddd LT[etan]',
	            lastDay: '[atzo] LT[etan]',
	            lastWeek: '[aurreko] dddd LT[etan]',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s barru',
	            past: 'duela %s',
	            s: 'segundo batzuk',
	            ss: '%d segundo',
	            m: 'minutu bat',
	            mm: '%d minutu',
	            h: 'ordu bat',
	            hh: '%d ordu',
	            d: 'egun bat',
	            dd: '%d egun',
	            M: 'hilabete bat',
	            MM: '%d hilabete',
	            y: 'urte bat',
	            yy: '%d urte'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return eu;
	});

/***/ }),
/* 345 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Persian [fa]
	//! author : Ebrahim Byagowi : https://github.com/ebraminio
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var symbolMap = {
	        1: '۱',
	        2: '۲',
	        3: '۳',
	        4: '۴',
	        5: '۵',
	        6: '۶',
	        7: '۷',
	        8: '۸',
	        9: '۹',
	        0: '۰'
	    },
	        numberMap = {
	        '۱': '1',
	        '۲': '2',
	        '۳': '3',
	        '۴': '4',
	        '۵': '5',
	        '۶': '6',
	        '۷': '7',
	        '۸': '8',
	        '۹': '9',
	        '۰': '0'
	    };
	
	    var fa = moment.defineLocale('fa', {
	        months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
	        monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
	        weekdays: '\u06CC\u06A9\u200C\u0634\u0646\u0628\u0647_\u062F\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200C\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067E\u0646\u062C\u200C\u0634\u0646\u0628\u0647_\u062C\u0645\u0639\u0647_\u0634\u0646\u0628\u0647'.split('_'),
	        weekdaysShort: '\u06CC\u06A9\u200C\u0634\u0646\u0628\u0647_\u062F\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200C\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067E\u0646\u062C\u200C\u0634\u0646\u0628\u0647_\u062C\u0645\u0639\u0647_\u0634\u0646\u0628\u0647'.split('_'),
	        weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        meridiemParse: /قبل از ظهر|بعد از ظهر/,
	        isPM: function isPM(input) {
	            return (/بعد از ظهر/.test(input)
	            );
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 12) {
	                return 'قبل از ظهر';
	            } else {
	                return 'بعد از ظهر';
	            }
	        },
	        calendar: {
	            sameDay: '[امروز ساعت] LT',
	            nextDay: '[فردا ساعت] LT',
	            nextWeek: 'dddd [ساعت] LT',
	            lastDay: '[دیروز ساعت] LT',
	            lastWeek: 'dddd [پیش] [ساعت] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'در %s',
	            past: '%s پیش',
	            s: 'چند ثانیه',
	            ss: '%d ثانیه',
	            m: 'یک دقیقه',
	            mm: '%d دقیقه',
	            h: 'یک ساعت',
	            hh: '%d ساعت',
	            d: 'یک روز',
	            dd: '%d روز',
	            M: 'یک ماه',
	            MM: '%d ماه',
	            y: 'یک سال',
	            yy: '%d سال'
	        },
	        preparse: function preparse(string) {
	            return string.replace(/[۰-۹]/g, function (match) {
	                return numberMap[match];
	            }).replace(/،/g, ',');
	        },
	        postformat: function postformat(string) {
	            return string.replace(/\d/g, function (match) {
	                return symbolMap[match];
	            }).replace(/,/g, '،');
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}م/,
	        ordinal: '%dم',
	        week: {
	            dow: 6, // Saturday is the first day of the week.
	            doy: 12 // The week that contains Jan 12th is the first week of the year.
	        }
	    });
	
	    return fa;
	});

/***/ }),
/* 346 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Finnish [fi]
	//! author : Tarmo Aidantausta : https://github.com/bleadof
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),
	        numbersFuture = ['nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden', numbersPast[7], numbersPast[8], numbersPast[9]];
	    function translate(number, withoutSuffix, key, isFuture) {
	        var result = '';
	        switch (key) {
	            case 's':
	                return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
	            case 'ss':
	                result = isFuture ? 'sekunnin' : 'sekuntia';
	                break;
	            case 'm':
	                return isFuture ? 'minuutin' : 'minuutti';
	            case 'mm':
	                result = isFuture ? 'minuutin' : 'minuuttia';
	                break;
	            case 'h':
	                return isFuture ? 'tunnin' : 'tunti';
	            case 'hh':
	                result = isFuture ? 'tunnin' : 'tuntia';
	                break;
	            case 'd':
	                return isFuture ? 'päivän' : 'päivä';
	            case 'dd':
	                result = isFuture ? 'päivän' : 'päivää';
	                break;
	            case 'M':
	                return isFuture ? 'kuukauden' : 'kuukausi';
	            case 'MM':
	                result = isFuture ? 'kuukauden' : 'kuukautta';
	                break;
	            case 'y':
	                return isFuture ? 'vuoden' : 'vuosi';
	            case 'yy':
	                result = isFuture ? 'vuoden' : 'vuotta';
	                break;
	        }
	        result = verbalNumber(number, isFuture) + ' ' + result;
	        return result;
	    }
	    function verbalNumber(number, isFuture) {
	        return number < 10 ? isFuture ? numbersFuture[number] : numbersPast[number] : number;
	    }
	
	    var fi = moment.defineLocale('fi', {
	        months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
	        monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
	        weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
	        weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
	        weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
	        longDateFormat: {
	            LT: 'HH.mm',
	            LTS: 'HH.mm.ss',
	            L: 'DD.MM.YYYY',
	            LL: 'Do MMMM[ta] YYYY',
	            LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',
	            LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
	            l: 'D.M.YYYY',
	            ll: 'Do MMM YYYY',
	            lll: 'Do MMM YYYY, [klo] HH.mm',
	            llll: 'ddd, Do MMM YYYY, [klo] HH.mm'
	        },
	        calendar: {
	            sameDay: '[tänään] [klo] LT',
	            nextDay: '[huomenna] [klo] LT',
	            nextWeek: 'dddd [klo] LT',
	            lastDay: '[eilen] [klo] LT',
	            lastWeek: '[viime] dddd[na] [klo] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s päästä',
	            past: '%s sitten',
	            s: translate,
	            ss: translate,
	            m: translate,
	            mm: translate,
	            h: translate,
	            hh: translate,
	            d: translate,
	            dd: translate,
	            M: translate,
	            MM: translate,
	            y: translate,
	            yy: translate
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return fi;
	});

/***/ }),
/* 347 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Filipino [fil]
	//! author : Dan Hagman : https://github.com/hagmandan
	//! author : Matthew Co : https://github.com/matthewdeeco
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var fil = moment.defineLocale('fil', {
	        months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
	        monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
	        weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
	        weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
	        weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'MM/D/YYYY',
	            LL: 'MMMM D, YYYY',
	            LLL: 'MMMM D, YYYY HH:mm',
	            LLLL: 'dddd, MMMM DD, YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: 'LT [ngayong araw]',
	            nextDay: '[Bukas ng] LT',
	            nextWeek: 'LT [sa susunod na] dddd',
	            lastDay: 'LT [kahapon]',
	            lastWeek: 'LT [noong nakaraang] dddd',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'sa loob ng %s',
	            past: '%s ang nakalipas',
	            s: 'ilang segundo',
	            ss: '%d segundo',
	            m: 'isang minuto',
	            mm: '%d minuto',
	            h: 'isang oras',
	            hh: '%d oras',
	            d: 'isang araw',
	            dd: '%d araw',
	            M: 'isang buwan',
	            MM: '%d buwan',
	            y: 'isang taon',
	            yy: '%d taon'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}/,
	        ordinal: function ordinal(number) {
	            return number;
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return fil;
	});

/***/ }),
/* 348 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Faroese [fo]
	//! author : Ragnar Johannesen : https://github.com/ragnar123
	//! author : Kristian Sakarisson : https://github.com/sakarisson
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var fo = moment.defineLocale('fo', {
	        months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
	        monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
	        weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
	        weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
	        weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd D. MMMM, YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[Í dag kl.] LT',
	            nextDay: '[Í morgin kl.] LT',
	            nextWeek: 'dddd [kl.] LT',
	            lastDay: '[Í gjár kl.] LT',
	            lastWeek: '[síðstu] dddd [kl] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'um %s',
	            past: '%s síðani',
	            s: 'fá sekund',
	            ss: '%d sekundir',
	            m: 'ein minuttur',
	            mm: '%d minuttir',
	            h: 'ein tími',
	            hh: '%d tímar',
	            d: 'ein dagur',
	            dd: '%d dagar',
	            M: 'ein mánaður',
	            MM: '%d mánaðir',
	            y: 'eitt ár',
	            yy: '%d ár'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return fo;
	});

/***/ }),
/* 349 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : French (Canada) [fr-ca]
	//! author : Jonathan Abourbih : https://github.com/jonbca
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var frCa = moment.defineLocale('fr-ca', {
	        months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
	        monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
	        weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
	        weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'YYYY-MM-DD',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[Aujourd’hui à] LT',
	            nextDay: '[Demain à] LT',
	            nextWeek: 'dddd [à] LT',
	            lastDay: '[Hier à] LT',
	            lastWeek: 'dddd [dernier à] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'dans %s',
	            past: 'il y a %s',
	            s: 'quelques secondes',
	            ss: '%d secondes',
	            m: 'une minute',
	            mm: '%d minutes',
	            h: 'une heure',
	            hh: '%d heures',
	            d: 'un jour',
	            dd: '%d jours',
	            M: 'un mois',
	            MM: '%d mois',
	            y: 'un an',
	            yy: '%d ans'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
	        ordinal: function ordinal(number, period) {
	            switch (period) {
	                // Words with masculine grammatical gender: mois, trimestre, jour
	                default:
	                case 'M':
	                case 'Q':
	                case 'D':
	                case 'DDD':
	                case 'd':
	                    return number + (number === 1 ? 'er' : 'e');
	
	                // Words with feminine grammatical gender: semaine
	                case 'w':
	                case 'W':
	                    return number + (number === 1 ? 're' : 'e');
	            }
	        }
	    });
	
	    return frCa;
	});

/***/ }),
/* 350 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : French (Switzerland) [fr-ch]
	//! author : Gaspard Bucher : https://github.com/gaspard
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var frCh = moment.defineLocale('fr-ch', {
	        months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
	        monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
	        weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
	        weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[Aujourd’hui à] LT',
	            nextDay: '[Demain à] LT',
	            nextWeek: 'dddd [à] LT',
	            lastDay: '[Hier à] LT',
	            lastWeek: 'dddd [dernier à] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'dans %s',
	            past: 'il y a %s',
	            s: 'quelques secondes',
	            ss: '%d secondes',
	            m: 'une minute',
	            mm: '%d minutes',
	            h: 'une heure',
	            hh: '%d heures',
	            d: 'un jour',
	            dd: '%d jours',
	            M: 'un mois',
	            MM: '%d mois',
	            y: 'un an',
	            yy: '%d ans'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
	        ordinal: function ordinal(number, period) {
	            switch (period) {
	                // Words with masculine grammatical gender: mois, trimestre, jour
	                default:
	                case 'M':
	                case 'Q':
	                case 'D':
	                case 'DDD':
	                case 'd':
	                    return number + (number === 1 ? 'er' : 'e');
	
	                // Words with feminine grammatical gender: semaine
	                case 'w':
	                case 'W':
	                    return number + (number === 1 ? 're' : 'e');
	            }
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return frCh;
	});

/***/ }),
/* 351 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : French [fr]
	//! author : John Fischer : https://github.com/jfroffice
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var monthsStrictRegex = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
	        monthsShortStrictRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
	        monthsRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
	        monthsParse = [/^janv/i, /^févr/i, /^mars/i, /^avr/i, /^mai/i, /^juin/i, /^juil/i, /^août/i, /^sept/i, /^oct/i, /^nov/i, /^déc/i];
	
	    var fr = moment.defineLocale('fr', {
	        months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
	        monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
	        monthsRegex: monthsRegex,
	        monthsShortRegex: monthsRegex,
	        monthsStrictRegex: monthsStrictRegex,
	        monthsShortStrictRegex: monthsShortStrictRegex,
	        monthsParse: monthsParse,
	        longMonthsParse: monthsParse,
	        shortMonthsParse: monthsParse,
	        weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
	        weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
	        weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[Aujourd’hui à] LT',
	            nextDay: '[Demain à] LT',
	            nextWeek: 'dddd [à] LT',
	            lastDay: '[Hier à] LT',
	            lastWeek: 'dddd [dernier à] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'dans %s',
	            past: 'il y a %s',
	            s: 'quelques secondes',
	            ss: '%d secondes',
	            m: 'une minute',
	            mm: '%d minutes',
	            h: 'une heure',
	            hh: '%d heures',
	            d: 'un jour',
	            dd: '%d jours',
	            w: 'une semaine',
	            ww: '%d semaines',
	            M: 'un mois',
	            MM: '%d mois',
	            y: 'un an',
	            yy: '%d ans'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
	        ordinal: function ordinal(number, period) {
	            switch (period) {
	                // TODO: Return 'e' when day of month > 1. Move this case inside
	                // block for masculine words below.
	                // See https://github.com/moment/moment/issues/3375
	                case 'D':
	                    return number + (number === 1 ? 'er' : '');
	
	                // Words with masculine grammatical gender: mois, trimestre, jour
	                default:
	                case 'M':
	                case 'Q':
	                case 'DDD':
	                case 'd':
	                    return number + (number === 1 ? 'er' : 'e');
	
	                // Words with feminine grammatical gender: semaine
	                case 'w':
	                case 'W':
	                    return number + (number === 1 ? 're' : 'e');
	            }
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return fr;
	});

/***/ }),
/* 352 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Frisian [fy]
	//! author : Robin van der Vliet : https://github.com/robin0van0der0v
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
	        monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
	
	    var fy = moment.defineLocale('fy', {
	        months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
	        monthsShort: function monthsShort(m, format) {
	            if (!m) {
	                return monthsShortWithDots;
	            } else if (/-MMM-/.test(format)) {
	                return monthsShortWithoutDots[m.month()];
	            } else {
	                return monthsShortWithDots[m.month()];
	            }
	        },
	        monthsParseExact: true,
	        weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
	        weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
	        weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD-MM-YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[hjoed om] LT',
	            nextDay: '[moarn om] LT',
	            nextWeek: 'dddd [om] LT',
	            lastDay: '[juster om] LT',
	            lastWeek: '[ôfrûne] dddd [om] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'oer %s',
	            past: '%s lyn',
	            s: 'in pear sekonden',
	            ss: '%d sekonden',
	            m: 'ien minút',
	            mm: '%d minuten',
	            h: 'ien oere',
	            hh: '%d oeren',
	            d: 'ien dei',
	            dd: '%d dagen',
	            M: 'ien moanne',
	            MM: '%d moannen',
	            y: 'ien jier',
	            yy: '%d jierren'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
	        ordinal: function ordinal(number) {
	            return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de');
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return fy;
	});

/***/ }),
/* 353 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Irish or Irish Gaelic [ga]
	//! author : André Silva : https://github.com/askpt
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var months = ['Eanáir', 'Feabhra', 'Márta', 'Aibreán', 'Bealtaine', 'Meitheamh', 'Iúil', 'Lúnasa', 'Meán Fómhair', 'Deireadh Fómhair', 'Samhain', 'Nollaig'],
	        monthsShort = ['Ean', 'Feabh', 'Márt', 'Aib', 'Beal', 'Meith', 'Iúil', 'Lún', 'M.F.', 'D.F.', 'Samh', 'Noll'],
	        weekdays = ['Dé Domhnaigh', 'Dé Luain', 'Dé Máirt', 'Dé Céadaoin', 'Déardaoin', 'Dé hAoine', 'Dé Sathairn'],
	        weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],
	        weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];
	
	    var ga = moment.defineLocale('ga', {
	        months: months,
	        monthsShort: monthsShort,
	        monthsParseExact: true,
	        weekdays: weekdays,
	        weekdaysShort: weekdaysShort,
	        weekdaysMin: weekdaysMin,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[Inniu ag] LT',
	            nextDay: '[Amárach ag] LT',
	            nextWeek: 'dddd [ag] LT',
	            lastDay: '[Inné ag] LT',
	            lastWeek: 'dddd [seo caite] [ag] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'i %s',
	            past: '%s ó shin',
	            s: 'cúpla soicind',
	            ss: '%d soicind',
	            m: 'nóiméad',
	            mm: '%d nóiméad',
	            h: 'uair an chloig',
	            hh: '%d uair an chloig',
	            d: 'lá',
	            dd: '%d lá',
	            M: 'mí',
	            MM: '%d míonna',
	            y: 'bliain',
	            yy: '%d bliain'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
	        ordinal: function ordinal(number) {
	            var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
	            return number + output;
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return ga;
	});

/***/ }),
/* 354 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Scottish Gaelic [gd]
	//! author : Jon Ashdown : https://github.com/jonashdown
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var months = ['Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'],
	        monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'],
	        weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'],
	        weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],
	        weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
	
	    var gd = moment.defineLocale('gd', {
	        months: months,
	        monthsShort: monthsShort,
	        monthsParseExact: true,
	        weekdays: weekdays,
	        weekdaysShort: weekdaysShort,
	        weekdaysMin: weekdaysMin,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[An-diugh aig] LT',
	            nextDay: '[A-màireach aig] LT',
	            nextWeek: 'dddd [aig] LT',
	            lastDay: '[An-dè aig] LT',
	            lastWeek: 'dddd [seo chaidh] [aig] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'ann an %s',
	            past: 'bho chionn %s',
	            s: 'beagan diogan',
	            ss: '%d diogan',
	            m: 'mionaid',
	            mm: '%d mionaidean',
	            h: 'uair',
	            hh: '%d uairean',
	            d: 'latha',
	            dd: '%d latha',
	            M: 'mìos',
	            MM: '%d mìosan',
	            y: 'bliadhna',
	            yy: '%d bliadhna'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
	        ordinal: function ordinal(number) {
	            var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
	            return number + output;
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return gd;
	});

/***/ }),
/* 355 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Galician [gl]
	//! author : Juan G. Hurtado : https://github.com/juanghurtado
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var gl = moment.defineLocale('gl', {
	        months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
	        monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
	        weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
	        weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'H:mm',
	            LTS: 'H:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D [de] MMMM [de] YYYY',
	            LLL: 'D [de] MMMM [de] YYYY H:mm',
	            LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'
	        },
	        calendar: {
	            sameDay: function sameDay() {
	                return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
	            },
	            nextDay: function nextDay() {
	                return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
	            },
	            nextWeek: function nextWeek() {
	                return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
	            },
	            lastDay: function lastDay() {
	                return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';
	            },
	            lastWeek: function lastWeek() {
	                return '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: function future(str) {
	                if (str.indexOf('un') === 0) {
	                    return 'n' + str;
	                }
	                return 'en ' + str;
	            },
	            past: 'hai %s',
	            s: 'uns segundos',
	            ss: '%d segundos',
	            m: 'un minuto',
	            mm: '%d minutos',
	            h: 'unha hora',
	            hh: '%d horas',
	            d: 'un día',
	            dd: '%d días',
	            M: 'un mes',
	            MM: '%d meses',
	            y: 'un ano',
	            yy: '%d anos'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}º/,
	        ordinal: '%dº',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return gl;
	});

/***/ }),
/* 356 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Konkani Devanagari script [gom-deva]
	//! author : The Discoverer : https://github.com/WikiDiscoverer
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    function processRelativeTime(number, withoutSuffix, key, isFuture) {
	        var format = {
	            s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],
	            ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],
	            m: ['एका मिणटान', 'एक मिनूट'],
	            mm: [number + ' मिणटांनी', number + ' मिणटां'],
	            h: ['एका वरान', 'एक वर'],
	            hh: [number + ' वरांनी', number + ' वरां'],
	            d: ['एका दिसान', 'एक दीस'],
	            dd: [number + ' दिसांनी', number + ' दीस'],
	            M: ['एका म्हयन्यान', 'एक म्हयनो'],
	            MM: [number + ' म्हयन्यानी', number + ' म्हयने'],
	            y: ['एका वर्सान', 'एक वर्स'],
	            yy: [number + ' वर्सांनी', number + ' वर्सां']
	        };
	        return isFuture ? format[key][0] : format[key][1];
	    }
	
	    var gomDeva = moment.defineLocale('gom-deva', {
	        months: {
	            standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
	            format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split('_'),
	            isFormat: /MMMM(\s)+D[oD]?/
	        },
	        monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),
	        weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),
	        weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'A h:mm [वाजतां]',
	            LTS: 'A h:mm:ss [वाजतां]',
	            L: 'DD-MM-YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY A h:mm [वाजतां]',
	            LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',
	            llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]'
	        },
	        calendar: {
	            sameDay: '[आयज] LT',
	            nextDay: '[फाल्यां] LT',
	            nextWeek: '[फुडलो] dddd[,] LT',
	            lastDay: '[काल] LT',
	            lastWeek: '[फाटलो] dddd[,] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s',
	            past: '%s आदीं',
	            s: processRelativeTime,
	            ss: processRelativeTime,
	            m: processRelativeTime,
	            mm: processRelativeTime,
	            h: processRelativeTime,
	            hh: processRelativeTime,
	            d: processRelativeTime,
	            dd: processRelativeTime,
	            M: processRelativeTime,
	            MM: processRelativeTime,
	            y: processRelativeTime,
	            yy: processRelativeTime
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(वेर)/,
	        ordinal: function ordinal(number, period) {
	            switch (period) {
	                // the ordinal 'वेर' only applies to day of the month
	                case 'D':
	                    return number + 'वेर';
	                default:
	                case 'M':
	                case 'Q':
	                case 'DDD':
	                case 'd':
	                case 'w':
	                case 'W':
	                    return number;
	            }
	        },
	        week: {
	            dow: 0, // Sunday is the first day of the week
	            doy: 3 // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
	        },
	        meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === 'राती') {
	                return hour < 4 ? hour : hour + 12;
	            } else if (meridiem === 'सकाळीं') {
	                return hour;
	            } else if (meridiem === 'दनपारां') {
	                return hour > 12 ? hour : hour + 12;
	            } else if (meridiem === 'सांजे') {
	                return hour + 12;
	            }
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 4) {
	                return 'राती';
	            } else if (hour < 12) {
	                return 'सकाळीं';
	            } else if (hour < 16) {
	                return 'दनपारां';
	            } else if (hour < 20) {
	                return 'सांजे';
	            } else {
	                return 'राती';
	            }
	        }
	    });
	
	    return gomDeva;
	});

/***/ }),
/* 357 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Konkani Latin script [gom-latn]
	//! author : The Discoverer : https://github.com/WikiDiscoverer
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    function processRelativeTime(number, withoutSuffix, key, isFuture) {
	        var format = {
	            s: ['thoddea sekondamni', 'thodde sekond'],
	            ss: [number + ' sekondamni', number + ' sekond'],
	            m: ['eka mintan', 'ek minut'],
	            mm: [number + ' mintamni', number + ' mintam'],
	            h: ['eka voran', 'ek vor'],
	            hh: [number + ' voramni', number + ' voram'],
	            d: ['eka disan', 'ek dis'],
	            dd: [number + ' disamni', number + ' dis'],
	            M: ['eka mhoinean', 'ek mhoino'],
	            MM: [number + ' mhoineamni', number + ' mhoine'],
	            y: ['eka vorsan', 'ek voros'],
	            yy: [number + ' vorsamni', number + ' vorsam']
	        };
	        return isFuture ? format[key][0] : format[key][1];
	    }
	
	    var gomLatn = moment.defineLocale('gom-latn', {
	        months: {
	            standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'),
	            format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split('_'),
	            isFormat: /MMMM(\s)+D[oD]?/
	        },
	        monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
	        monthsParseExact: true,
	        weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'),
	        weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
	        weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'A h:mm [vazta]',
	            LTS: 'A h:mm:ss [vazta]',
	            L: 'DD-MM-YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY A h:mm [vazta]',
	            LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',
	            llll: 'ddd, D MMM YYYY, A h:mm [vazta]'
	        },
	        calendar: {
	            sameDay: '[Aiz] LT',
	            nextDay: '[Faleam] LT',
	            nextWeek: '[Fuddlo] dddd[,] LT',
	            lastDay: '[Kal] LT',
	            lastWeek: '[Fattlo] dddd[,] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s',
	            past: '%s adim',
	            s: processRelativeTime,
	            ss: processRelativeTime,
	            m: processRelativeTime,
	            mm: processRelativeTime,
	            h: processRelativeTime,
	            hh: processRelativeTime,
	            d: processRelativeTime,
	            dd: processRelativeTime,
	            M: processRelativeTime,
	            MM: processRelativeTime,
	            y: processRelativeTime,
	            yy: processRelativeTime
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(er)/,
	        ordinal: function ordinal(number, period) {
	            switch (period) {
	                // the ordinal 'er' only applies to day of the month
	                case 'D':
	                    return number + 'er';
	                default:
	                case 'M':
	                case 'Q':
	                case 'DDD':
	                case 'd':
	                case 'w':
	                case 'W':
	                    return number;
	            }
	        },
	        week: {
	            dow: 0, // Sunday is the first day of the week
	            doy: 3 // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
	        },
	        meridiemParse: /rati|sokallim|donparam|sanje/,
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === 'rati') {
	                return hour < 4 ? hour : hour + 12;
	            } else if (meridiem === 'sokallim') {
	                return hour;
	            } else if (meridiem === 'donparam') {
	                return hour > 12 ? hour : hour + 12;
	            } else if (meridiem === 'sanje') {
	                return hour + 12;
	            }
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 4) {
	                return 'rati';
	            } else if (hour < 12) {
	                return 'sokallim';
	            } else if (hour < 16) {
	                return 'donparam';
	            } else if (hour < 20) {
	                return 'sanje';
	            } else {
	                return 'rati';
	            }
	        }
	    });
	
	    return gomLatn;
	});

/***/ }),
/* 358 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Gujarati [gu]
	//! author : Kaushik Thanki : https://github.com/Kaushik1987
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var symbolMap = {
	        1: '૧',
	        2: '૨',
	        3: '૩',
	        4: '૪',
	        5: '૫',
	        6: '૬',
	        7: '૭',
	        8: '૮',
	        9: '૯',
	        0: '૦'
	    },
	        numberMap = {
	        '૧': '1',
	        '૨': '2',
	        '૩': '3',
	        '૪': '4',
	        '૫': '5',
	        '૬': '6',
	        '૭': '7',
	        '૮': '8',
	        '૯': '9',
	        '૦': '0'
	    };
	
	    var gu = moment.defineLocale('gu', {
	        months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split('_'),
	        monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'),
	        weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
	        weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
	        longDateFormat: {
	            LT: 'A h:mm વાગ્યે',
	            LTS: 'A h:mm:ss વાગ્યે',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
	            LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે'
	        },
	        calendar: {
	            sameDay: '[આજ] LT',
	            nextDay: '[કાલે] LT',
	            nextWeek: 'dddd, LT',
	            lastDay: '[ગઇકાલે] LT',
	            lastWeek: '[પાછલા] dddd, LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s મા',
	            past: '%s પહેલા',
	            s: 'અમુક પળો',
	            ss: '%d સેકંડ',
	            m: 'એક મિનિટ',
	            mm: '%d મિનિટ',
	            h: 'એક કલાક',
	            hh: '%d કલાક',
	            d: 'એક દિવસ',
	            dd: '%d દિવસ',
	            M: 'એક મહિનો',
	            MM: '%d મહિનો',
	            y: 'એક વર્ષ',
	            yy: '%d વર્ષ'
	        },
	        preparse: function preparse(string) {
	            return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
	                return numberMap[match];
	            });
	        },
	        postformat: function postformat(string) {
	            return string.replace(/\d/g, function (match) {
	                return symbolMap[match];
	            });
	        },
	        // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
	        // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
	        meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === 'રાત') {
	                return hour < 4 ? hour : hour + 12;
	            } else if (meridiem === 'સવાર') {
	                return hour;
	            } else if (meridiem === 'બપોર') {
	                return hour >= 10 ? hour : hour + 12;
	            } else if (meridiem === 'સાંજ') {
	                return hour + 12;
	            }
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 4) {
	                return 'રાત';
	            } else if (hour < 10) {
	                return 'સવાર';
	            } else if (hour < 17) {
	                return 'બપોર';
	            } else if (hour < 20) {
	                return 'સાંજ';
	            } else {
	                return 'રાત';
	            }
	        },
	        week: {
	            dow: 0, // Sunday is the first day of the week.
	            doy: 6 // The week that contains Jan 6th is the first week of the year.
	        }
	    });
	
	    return gu;
	});

/***/ }),
/* 359 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Hebrew [he]
	//! author : Tomer Cohen : https://github.com/tomer
	//! author : Moshe Simantov : https://github.com/DevelopmentIL
	//! author : Tal Ater : https://github.com/TalAter
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var he = moment.defineLocale('he', {
	        months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
	        monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
	        weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
	        weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
	        weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D [ב]MMMM YYYY',
	            LLL: 'D [ב]MMMM YYYY HH:mm',
	            LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
	            l: 'D/M/YYYY',
	            ll: 'D MMM YYYY',
	            lll: 'D MMM YYYY HH:mm',
	            llll: 'ddd, D MMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[היום ב־]LT',
	            nextDay: '[מחר ב־]LT',
	            nextWeek: 'dddd [בשעה] LT',
	            lastDay: '[אתמול ב־]LT',
	            lastWeek: '[ביום] dddd [האחרון בשעה] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'בעוד %s',
	            past: 'לפני %s',
	            s: 'מספר שניות',
	            ss: '%d שניות',
	            m: 'דקה',
	            mm: '%d דקות',
	            h: 'שעה',
	            hh: function hh(number) {
	                if (number === 2) {
	                    return 'שעתיים';
	                }
	                return number + ' שעות';
	            },
	            d: 'יום',
	            dd: function dd(number) {
	                if (number === 2) {
	                    return 'יומיים';
	                }
	                return number + ' ימים';
	            },
	            M: 'חודש',
	            MM: function MM(number) {
	                if (number === 2) {
	                    return 'חודשיים';
	                }
	                return number + ' חודשים';
	            },
	            y: 'שנה',
	            yy: function yy(number) {
	                if (number === 2) {
	                    return 'שנתיים';
	                } else if (number % 10 === 0 && number !== 10) {
	                    return number + ' שנה';
	                }
	                return number + ' שנים';
	            }
	        },
	        meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
	        isPM: function isPM(input) {
	            return (/^(אחה"צ|אחרי הצהריים|בערב)$/.test(input)
	            );
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 5) {
	                return 'לפנות בוקר';
	            } else if (hour < 10) {
	                return 'בבוקר';
	            } else if (hour < 12) {
	                return isLower ? 'לפנה"צ' : 'לפני הצהריים';
	            } else if (hour < 18) {
	                return isLower ? 'אחה"צ' : 'אחרי הצהריים';
	            } else {
	                return 'בערב';
	            }
	        }
	    });
	
	    return he;
	});

/***/ }),
/* 360 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Hindi [hi]
	//! author : Mayank Singhal : https://github.com/mayanksinghal
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var symbolMap = {
	        1: '१',
	        2: '२',
	        3: '३',
	        4: '४',
	        5: '५',
	        6: '६',
	        7: '७',
	        8: '८',
	        9: '९',
	        0: '०'
	    },
	        numberMap = {
	        '१': '1',
	        '२': '2',
	        '३': '3',
	        '४': '4',
	        '५': '5',
	        '६': '6',
	        '७': '7',
	        '८': '8',
	        '९': '9',
	        '०': '0'
	    },
	        monthsParse = [/^जन/i, /^फ़र|फर/i, /^मार्च/i, /^अप्रै/i, /^मई/i, /^जून/i, /^जुल/i, /^अग/i, /^सितं|सित/i, /^अक्टू/i, /^नव|नवं/i, /^दिसं|दिस/i],
	        shortMonthsParse = [/^जन/i, /^फ़र/i, /^मार्च/i, /^अप्रै/i, /^मई/i, /^जून/i, /^जुल/i, /^अग/i, /^सित/i, /^अक्टू/i, /^नव/i, /^दिस/i];
	
	    var hi = moment.defineLocale('hi', {
	        months: {
	            format: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
	            standalone: 'जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर'.split('_')
	        },
	        monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
	        weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
	        weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
	        weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
	        longDateFormat: {
	            LT: 'A h:mm बजे',
	            LTS: 'A h:mm:ss बजे',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY, A h:mm बजे',
	            LLLL: 'dddd, D MMMM YYYY, A h:mm बजे'
	        },
	
	        monthsParse: monthsParse,
	        longMonthsParse: monthsParse,
	        shortMonthsParse: shortMonthsParse,
	
	        monthsRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
	
	        monthsShortRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
	
	        monthsStrictRegex: /^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,
	
	        monthsShortStrictRegex: /^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,
	
	        calendar: {
	            sameDay: '[आज] LT',
	            nextDay: '[कल] LT',
	            nextWeek: 'dddd, LT',
	            lastDay: '[कल] LT',
	            lastWeek: '[पिछले] dddd, LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s में',
	            past: '%s पहले',
	            s: 'कुछ ही क्षण',
	            ss: '%d सेकंड',
	            m: 'एक मिनट',
	            mm: '%d मिनट',
	            h: 'एक घंटा',
	            hh: '%d घंटे',
	            d: 'एक दिन',
	            dd: '%d दिन',
	            M: 'एक महीने',
	            MM: '%d महीने',
	            y: 'एक वर्ष',
	            yy: '%d वर्ष'
	        },
	        preparse: function preparse(string) {
	            return string.replace(/[१२३४५६७८९०]/g, function (match) {
	                return numberMap[match];
	            });
	        },
	        postformat: function postformat(string) {
	            return string.replace(/\d/g, function (match) {
	                return symbolMap[match];
	            });
	        },
	        // Hindi notation for meridiems are quite fuzzy in practice. While there exists
	        // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
	        meridiemParse: /रात|सुबह|दोपहर|शाम/,
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === 'रात') {
	                return hour < 4 ? hour : hour + 12;
	            } else if (meridiem === 'सुबह') {
	                return hour;
	            } else if (meridiem === 'दोपहर') {
	                return hour >= 10 ? hour : hour + 12;
	            } else if (meridiem === 'शाम') {
	                return hour + 12;
	            }
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 4) {
	                return 'रात';
	            } else if (hour < 10) {
	                return 'सुबह';
	            } else if (hour < 17) {
	                return 'दोपहर';
	            } else if (hour < 20) {
	                return 'शाम';
	            } else {
	                return 'रात';
	            }
	        },
	        week: {
	            dow: 0, // Sunday is the first day of the week.
	            doy: 6 // The week that contains Jan 6th is the first week of the year.
	        }
	    });
	
	    return hi;
	});

/***/ }),
/* 361 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Croatian [hr]
	//! author : Bojan Marković : https://github.com/bmarkovic
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    function translate(number, withoutSuffix, key) {
	        var result = number + ' ';
	        switch (key) {
	            case 'ss':
	                if (number === 1) {
	                    result += 'sekunda';
	                } else if (number === 2 || number === 3 || number === 4) {
	                    result += 'sekunde';
	                } else {
	                    result += 'sekundi';
	                }
	                return result;
	            case 'm':
	                return withoutSuffix ? 'jedna minuta' : 'jedne minute';
	            case 'mm':
	                if (number === 1) {
	                    result += 'minuta';
	                } else if (number === 2 || number === 3 || number === 4) {
	                    result += 'minute';
	                } else {
	                    result += 'minuta';
	                }
	                return result;
	            case 'h':
	                return withoutSuffix ? 'jedan sat' : 'jednog sata';
	            case 'hh':
	                if (number === 1) {
	                    result += 'sat';
	                } else if (number === 2 || number === 3 || number === 4) {
	                    result += 'sata';
	                } else {
	                    result += 'sati';
	                }
	                return result;
	            case 'dd':
	                if (number === 1) {
	                    result += 'dan';
	                } else {
	                    result += 'dana';
	                }
	                return result;
	            case 'MM':
	                if (number === 1) {
	                    result += 'mjesec';
	                } else if (number === 2 || number === 3 || number === 4) {
	                    result += 'mjeseca';
	                } else {
	                    result += 'mjeseci';
	                }
	                return result;
	            case 'yy':
	                if (number === 1) {
	                    result += 'godina';
	                } else if (number === 2 || number === 3 || number === 4) {
	                    result += 'godine';
	                } else {
	                    result += 'godina';
	                }
	                return result;
	        }
	    }
	
	    var hr = moment.defineLocale('hr', {
	        months: {
	            format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),
	            standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')
	        },
	        monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
	        weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
	        weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'H:mm',
	            LTS: 'H:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'Do MMMM YYYY',
	            LLL: 'Do MMMM YYYY H:mm',
	            LLLL: 'dddd, Do MMMM YYYY H:mm'
	        },
	        calendar: {
	            sameDay: '[danas u] LT',
	            nextDay: '[sutra u] LT',
	            nextWeek: function nextWeek() {
	                switch (this.day()) {
	                    case 0:
	                        return '[u] [nedjelju] [u] LT';
	                    case 3:
	                        return '[u] [srijedu] [u] LT';
	                    case 6:
	                        return '[u] [subotu] [u] LT';
	                    case 1:
	                    case 2:
	                    case 4:
	                    case 5:
	                        return '[u] dddd [u] LT';
	                }
	            },
	            lastDay: '[jučer u] LT',
	            lastWeek: function lastWeek() {
	                switch (this.day()) {
	                    case 0:
	                        return '[prošlu] [nedjelju] [u] LT';
	                    case 3:
	                        return '[prošlu] [srijedu] [u] LT';
	                    case 6:
	                        return '[prošle] [subote] [u] LT';
	                    case 1:
	                    case 2:
	                    case 4:
	                    case 5:
	                        return '[prošli] dddd [u] LT';
	                }
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'za %s',
	            past: 'prije %s',
	            s: 'par sekundi',
	            ss: translate,
	            m: translate,
	            mm: translate,
	            h: translate,
	            hh: translate,
	            d: 'dan',
	            dd: translate,
	            M: 'mjesec',
	            MM: translate,
	            y: 'godinu',
	            yy: translate
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return hr;
	});

/***/ }),
/* 362 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Hungarian [hu]
	//! author : Adam Brunner : https://github.com/adambrunner
	//! author : Peter Viszt  : https://github.com/passatgt
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
	    function translate(number, withoutSuffix, key, isFuture) {
	        var num = number;
	        switch (key) {
	            case 's':
	                return isFuture || withoutSuffix ? 'néhány másodperc' : 'néhány másodperce';
	            case 'ss':
	                return num + (isFuture || withoutSuffix) ? ' másodperc' : ' másodperce';
	            case 'm':
	                return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
	            case 'mm':
	                return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
	            case 'h':
	                return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
	            case 'hh':
	                return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
	            case 'd':
	                return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
	            case 'dd':
	                return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
	            case 'M':
	                return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
	            case 'MM':
	                return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
	            case 'y':
	                return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
	            case 'yy':
	                return num + (isFuture || withoutSuffix ? ' év' : ' éve');
	        }
	        return '';
	    }
	    function week(isFuture) {
	        return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
	    }
	
	    var hu = moment.defineLocale('hu', {
	        months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
	        monthsShort: 'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
	        weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
	        weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
	        longDateFormat: {
	            LT: 'H:mm',
	            LTS: 'H:mm:ss',
	            L: 'YYYY.MM.DD.',
	            LL: 'YYYY. MMMM D.',
	            LLL: 'YYYY. MMMM D. H:mm',
	            LLLL: 'YYYY. MMMM D., dddd H:mm'
	        },
	        meridiemParse: /de|du/i,
	        isPM: function isPM(input) {
	            return input.charAt(1).toLowerCase() === 'u';
	        },
	        meridiem: function meridiem(hours, minutes, isLower) {
	            if (hours < 12) {
	                return isLower === true ? 'de' : 'DE';
	            } else {
	                return isLower === true ? 'du' : 'DU';
	            }
	        },
	        calendar: {
	            sameDay: '[ma] LT[-kor]',
	            nextDay: '[holnap] LT[-kor]',
	            nextWeek: function nextWeek() {
	                return week.call(this, true);
	            },
	            lastDay: '[tegnap] LT[-kor]',
	            lastWeek: function lastWeek() {
	                return week.call(this, false);
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s múlva',
	            past: '%s',
	            s: translate,
	            ss: translate,
	            m: translate,
	            mm: translate,
	            h: translate,
	            hh: translate,
	            d: translate,
	            dd: translate,
	            M: translate,
	            MM: translate,
	            y: translate,
	            yy: translate
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return hu;
	});

/***/ }),
/* 363 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Armenian [hy-am]
	//! author : Armendarabyan : https://github.com/armendarabyan
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var hyAm = moment.defineLocale('hy-am', {
	        months: {
	            format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),
	            standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')
	        },
	        monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
	        weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),
	        weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
	        weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D MMMM YYYY թ.',
	            LLL: 'D MMMM YYYY թ., HH:mm',
	            LLLL: 'dddd, D MMMM YYYY թ., HH:mm'
	        },
	        calendar: {
	            sameDay: '[այսօր] LT',
	            nextDay: '[վաղը] LT',
	            lastDay: '[երեկ] LT',
	            nextWeek: function nextWeek() {
	                return 'dddd [օրը ժամը] LT';
	            },
	            lastWeek: function lastWeek() {
	                return '[անցած] dddd [օրը ժամը] LT';
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s հետո',
	            past: '%s առաջ',
	            s: 'մի քանի վայրկյան',
	            ss: '%d վայրկյան',
	            m: 'րոպե',
	            mm: '%d րոպե',
	            h: 'ժամ',
	            hh: '%d ժամ',
	            d: 'օր',
	            dd: '%d օր',
	            M: 'ամիս',
	            MM: '%d ամիս',
	            y: 'տարի',
	            yy: '%d տարի'
	        },
	        meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
	        isPM: function isPM(input) {
	            return (/^(ցերեկվա|երեկոյան)$/.test(input)
	            );
	        },
	        meridiem: function meridiem(hour) {
	            if (hour < 4) {
	                return 'գիշերվա';
	            } else if (hour < 12) {
	                return 'առավոտվա';
	            } else if (hour < 17) {
	                return 'ցերեկվա';
	            } else {
	                return 'երեկոյան';
	            }
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
	        ordinal: function ordinal(number, period) {
	            switch (period) {
	                case 'DDD':
	                case 'w':
	                case 'W':
	                case 'DDDo':
	                    if (number === 1) {
	                        return number + '-ին';
	                    }
	                    return number + '-րդ';
	                default:
	                    return number;
	            }
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return hyAm;
	});

/***/ }),
/* 364 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Indonesian [id]
	//! author : Mohammad Satrio Utomo : https://github.com/tyok
	//! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var id = moment.defineLocale('id', {
	        months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
	        monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
	        weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
	        weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
	        weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
	        longDateFormat: {
	            LT: 'HH.mm',
	            LTS: 'HH.mm.ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY [pukul] HH.mm',
	            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
	        },
	        meridiemParse: /pagi|siang|sore|malam/,
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === 'pagi') {
	                return hour;
	            } else if (meridiem === 'siang') {
	                return hour >= 11 ? hour : hour + 12;
	            } else if (meridiem === 'sore' || meridiem === 'malam') {
	                return hour + 12;
	            }
	        },
	        meridiem: function meridiem(hours, minutes, isLower) {
	            if (hours < 11) {
	                return 'pagi';
	            } else if (hours < 15) {
	                return 'siang';
	            } else if (hours < 19) {
	                return 'sore';
	            } else {
	                return 'malam';
	            }
	        },
	        calendar: {
	            sameDay: '[Hari ini pukul] LT',
	            nextDay: '[Besok pukul] LT',
	            nextWeek: 'dddd [pukul] LT',
	            lastDay: '[Kemarin pukul] LT',
	            lastWeek: 'dddd [lalu pukul] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'dalam %s',
	            past: '%s yang lalu',
	            s: 'beberapa detik',
	            ss: '%d detik',
	            m: 'semenit',
	            mm: '%d menit',
	            h: 'sejam',
	            hh: '%d jam',
	            d: 'sehari',
	            dd: '%d hari',
	            M: 'sebulan',
	            MM: '%d bulan',
	            y: 'setahun',
	            yy: '%d tahun'
	        },
	        week: {
	            dow: 0, // Sunday is the first day of the week.
	            doy: 6 // The week that contains Jan 6th is the first week of the year.
	        }
	    });
	
	    return id;
	});

/***/ }),
/* 365 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Icelandic [is]
	//! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    function plural(n) {
	        if (n % 100 === 11) {
	            return true;
	        } else if (n % 10 === 1) {
	            return false;
	        }
	        return true;
	    }
	    function translate(number, withoutSuffix, key, isFuture) {
	        var result = number + ' ';
	        switch (key) {
	            case 's':
	                return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
	            case 'ss':
	                if (plural(number)) {
	                    return result + (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum');
	                }
	                return result + 'sekúnda';
	            case 'm':
	                return withoutSuffix ? 'mínúta' : 'mínútu';
	            case 'mm':
	                if (plural(number)) {
	                    return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
	                } else if (withoutSuffix) {
	                    return result + 'mínúta';
	                }
	                return result + 'mínútu';
	            case 'hh':
	                if (plural(number)) {
	                    return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
	                }
	                return result + 'klukkustund';
	            case 'd':
	                if (withoutSuffix) {
	                    return 'dagur';
	                }
	                return isFuture ? 'dag' : 'degi';
	            case 'dd':
	                if (plural(number)) {
	                    if (withoutSuffix) {
	                        return result + 'dagar';
	                    }
	                    return result + (isFuture ? 'daga' : 'dögum');
	                } else if (withoutSuffix) {
	                    return result + 'dagur';
	                }
	                return result + (isFuture ? 'dag' : 'degi');
	            case 'M':
	                if (withoutSuffix) {
	                    return 'mánuður';
	                }
	                return isFuture ? 'mánuð' : 'mánuði';
	            case 'MM':
	                if (plural(number)) {
	                    if (withoutSuffix) {
	                        return result + 'mánuðir';
	                    }
	                    return result + (isFuture ? 'mánuði' : 'mánuðum');
	                } else if (withoutSuffix) {
	                    return result + 'mánuður';
	                }
	                return result + (isFuture ? 'mánuð' : 'mánuði');
	            case 'y':
	                return withoutSuffix || isFuture ? 'ár' : 'ári';
	            case 'yy':
	                if (plural(number)) {
	                    return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
	                }
	                return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
	        }
	    }
	
	    var is = moment.defineLocale('is', {
	        months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
	        monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
	        weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
	        weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
	        weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
	        longDateFormat: {
	            LT: 'H:mm',
	            LTS: 'H:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D. MMMM YYYY',
	            LLL: 'D. MMMM YYYY [kl.] H:mm',
	            LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm'
	        },
	        calendar: {
	            sameDay: '[í dag kl.] LT',
	            nextDay: '[á morgun kl.] LT',
	            nextWeek: 'dddd [kl.] LT',
	            lastDay: '[í gær kl.] LT',
	            lastWeek: '[síðasta] dddd [kl.] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'eftir %s',
	            past: 'fyrir %s síðan',
	            s: translate,
	            ss: translate,
	            m: translate,
	            mm: translate,
	            h: 'klukkustund',
	            hh: translate,
	            d: translate,
	            dd: translate,
	            M: translate,
	            MM: translate,
	            y: translate,
	            yy: translate
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return is;
	});

/***/ }),
/* 366 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Italian (Switzerland) [it-ch]
	//! author : xfh : https://github.com/xfh
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var itCh = moment.defineLocale('it-ch', {
	        months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
	        monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
	        weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
	        weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
	        weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[Oggi alle] LT',
	            nextDay: '[Domani alle] LT',
	            nextWeek: 'dddd [alle] LT',
	            lastDay: '[Ieri alle] LT',
	            lastWeek: function lastWeek() {
	                switch (this.day()) {
	                    case 0:
	                        return '[la scorsa] dddd [alle] LT';
	                    default:
	                        return '[lo scorso] dddd [alle] LT';
	                }
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: function future(s) {
	                return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;
	            },
	            past: '%s fa',
	            s: 'alcuni secondi',
	            ss: '%d secondi',
	            m: 'un minuto',
	            mm: '%d minuti',
	            h: "un'ora",
	            hh: '%d ore',
	            d: 'un giorno',
	            dd: '%d giorni',
	            M: 'un mese',
	            MM: '%d mesi',
	            y: 'un anno',
	            yy: '%d anni'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}º/,
	        ordinal: '%dº',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return itCh;
	});

/***/ }),
/* 367 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Italian [it]
	//! author : Lorenzo : https://github.com/aliem
	//! author: Mattia Larentis: https://github.com/nostalgiaz
	//! author: Marco : https://github.com/Manfre98
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var it = moment.defineLocale('it', {
	        months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
	        monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
	        weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
	        weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
	        weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: function sameDay() {
	                return '[Oggi a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
	            },
	            nextDay: function nextDay() {
	                return '[Domani a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
	            },
	            nextWeek: function nextWeek() {
	                return 'dddd [a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
	            },
	            lastDay: function lastDay() {
	                return '[Ieri a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
	            },
	            lastWeek: function lastWeek() {
	                switch (this.day()) {
	                    case 0:
	                        return '[La scorsa] dddd [a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
	                    default:
	                        return '[Lo scorso] dddd [a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
	                }
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'tra %s',
	            past: '%s fa',
	            s: 'alcuni secondi',
	            ss: '%d secondi',
	            m: 'un minuto',
	            mm: '%d minuti',
	            h: "un'ora",
	            hh: '%d ore',
	            d: 'un giorno',
	            dd: '%d giorni',
	            w: 'una settimana',
	            ww: '%d settimane',
	            M: 'un mese',
	            MM: '%d mesi',
	            y: 'un anno',
	            yy: '%d anni'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}º/,
	        ordinal: '%dº',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return it;
	});

/***/ }),
/* 368 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Japanese [ja]
	//! author : LI Long : https://github.com/baryon
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var ja = moment.defineLocale('ja', {
	        eras: [{
	            since: '2019-05-01',
	            offset: 1,
	            name: '令和',
	            narrow: '㋿',
	            abbr: 'R'
	        }, {
	            since: '1989-01-08',
	            until: '2019-04-30',
	            offset: 1,
	            name: '平成',
	            narrow: '㍻',
	            abbr: 'H'
	        }, {
	            since: '1926-12-25',
	            until: '1989-01-07',
	            offset: 1,
	            name: '昭和',
	            narrow: '㍼',
	            abbr: 'S'
	        }, {
	            since: '1912-07-30',
	            until: '1926-12-24',
	            offset: 1,
	            name: '大正',
	            narrow: '㍽',
	            abbr: 'T'
	        }, {
	            since: '1873-01-01',
	            until: '1912-07-29',
	            offset: 6,
	            name: '明治',
	            narrow: '㍾',
	            abbr: 'M'
	        }, {
	            since: '0001-01-01',
	            until: '1873-12-31',
	            offset: 1,
	            name: '西暦',
	            narrow: 'AD',
	            abbr: 'AD'
	        }, {
	            since: '0000-12-31',
	            until: -Infinity,
	            offset: 1,
	            name: '紀元前',
	            narrow: 'BC',
	            abbr: 'BC'
	        }],
	        eraYearOrdinalRegex: /(元|\d+)年/,
	        eraYearOrdinalParse: function eraYearOrdinalParse(input, match) {
	            return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);
	        },
	        months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
	        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
	        weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
	        weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
	        weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'YYYY/MM/DD',
	            LL: 'YYYY年M月D日',
	            LLL: 'YYYY年M月D日 HH:mm',
	            LLLL: 'YYYY年M月D日 dddd HH:mm',
	            l: 'YYYY/MM/DD',
	            ll: 'YYYY年M月D日',
	            lll: 'YYYY年M月D日 HH:mm',
	            llll: 'YYYY年M月D日(ddd) HH:mm'
	        },
	        meridiemParse: /午前|午後/i,
	        isPM: function isPM(input) {
	            return input === '午後';
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 12) {
	                return '午前';
	            } else {
	                return '午後';
	            }
	        },
	        calendar: {
	            sameDay: '[今日] LT',
	            nextDay: '[明日] LT',
	            nextWeek: function nextWeek(now) {
	                if (now.week() !== this.week()) {
	                    return '[来週]dddd LT';
	                } else {
	                    return 'dddd LT';
	                }
	            },
	            lastDay: '[昨日] LT',
	            lastWeek: function lastWeek(now) {
	                if (this.week() !== now.week()) {
	                    return '[先週]dddd LT';
	                } else {
	                    return 'dddd LT';
	                }
	            },
	            sameElse: 'L'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}日/,
	        ordinal: function ordinal(number, period) {
	            switch (period) {
	                case 'y':
	                    return number === 1 ? '元年' : number + '年';
	                case 'd':
	                case 'D':
	                case 'DDD':
	                    return number + '日';
	                default:
	                    return number;
	            }
	        },
	        relativeTime: {
	            future: '%s後',
	            past: '%s前',
	            s: '数秒',
	            ss: '%d秒',
	            m: '1分',
	            mm: '%d分',
	            h: '1時間',
	            hh: '%d時間',
	            d: '1日',
	            dd: '%d日',
	            M: '1ヶ月',
	            MM: '%dヶ月',
	            y: '1年',
	            yy: '%d年'
	        }
	    });
	
	    return ja;
	});

/***/ }),
/* 369 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Javanese [jv]
	//! author : Rony Lantip : https://github.com/lantip
	//! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var jv = moment.defineLocale('jv', {
	        months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
	        monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
	        weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
	        weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
	        weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
	        longDateFormat: {
	            LT: 'HH.mm',
	            LTS: 'HH.mm.ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY [pukul] HH.mm',
	            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
	        },
	        meridiemParse: /enjing|siyang|sonten|ndalu/,
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === 'enjing') {
	                return hour;
	            } else if (meridiem === 'siyang') {
	                return hour >= 11 ? hour : hour + 12;
	            } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
	                return hour + 12;
	            }
	        },
	        meridiem: function meridiem(hours, minutes, isLower) {
	            if (hours < 11) {
	                return 'enjing';
	            } else if (hours < 15) {
	                return 'siyang';
	            } else if (hours < 19) {
	                return 'sonten';
	            } else {
	                return 'ndalu';
	            }
	        },
	        calendar: {
	            sameDay: '[Dinten puniko pukul] LT',
	            nextDay: '[Mbenjang pukul] LT',
	            nextWeek: 'dddd [pukul] LT',
	            lastDay: '[Kala wingi pukul] LT',
	            lastWeek: 'dddd [kepengker pukul] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'wonten ing %s',
	            past: '%s ingkang kepengker',
	            s: 'sawetawis detik',
	            ss: '%d detik',
	            m: 'setunggal menit',
	            mm: '%d menit',
	            h: 'setunggal jam',
	            hh: '%d jam',
	            d: 'sedinten',
	            dd: '%d dinten',
	            M: 'sewulan',
	            MM: '%d wulan',
	            y: 'setaun',
	            yy: '%d taun'
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return jv;
	});

/***/ }),
/* 370 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Georgian [ka]
	//! author : Irakli Janiashvili : https://github.com/IrakliJani
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var ka = moment.defineLocale('ka', {
	        months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
	        monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
	        weekdays: {
	            standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
	            format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),
	            isFormat: /(წინა|შემდეგ)/
	        },
	        weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
	        weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[დღეს] LT[-ზე]',
	            nextDay: '[ხვალ] LT[-ზე]',
	            lastDay: '[გუშინ] LT[-ზე]',
	            nextWeek: '[შემდეგ] dddd LT[-ზე]',
	            lastWeek: '[წინა] dddd LT-ზე',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: function future(s) {
	                return s.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, function ($0, $1, $2) {
	                    return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';
	                });
	            },
	            past: function past(s) {
	                if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {
	                    return s.replace(/(ი|ე)$/, 'ის წინ');
	                }
	                if (/წელი/.test(s)) {
	                    return s.replace(/წელი$/, 'წლის წინ');
	                }
	                return s;
	            },
	            s: 'რამდენიმე წამი',
	            ss: '%d წამი',
	            m: 'წუთი',
	            mm: '%d წუთი',
	            h: 'საათი',
	            hh: '%d საათი',
	            d: 'დღე',
	            dd: '%d დღე',
	            M: 'თვე',
	            MM: '%d თვე',
	            y: 'წელი',
	            yy: '%d წელი'
	        },
	        dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
	        ordinal: function ordinal(number) {
	            if (number === 0) {
	                return number;
	            }
	            if (number === 1) {
	                return number + '-ლი';
	            }
	            if (number < 20 || number <= 100 && number % 20 === 0 || number % 100 === 0) {
	                return 'მე-' + number;
	            }
	            return number + '-ე';
	        },
	        week: {
	            dow: 1,
	            doy: 7
	        }
	    });
	
	    return ka;
	});

/***/ }),
/* 371 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Kazakh [kk]
	//! authors : Nurlan Rakhimzhanov : https://github.com/nurlan
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var suffixes = {
	        0: '-ші',
	        1: '-ші',
	        2: '-ші',
	        3: '-ші',
	        4: '-ші',
	        5: '-ші',
	        6: '-шы',
	        7: '-ші',
	        8: '-ші',
	        9: '-шы',
	        10: '-шы',
	        20: '-шы',
	        30: '-шы',
	        40: '-шы',
	        50: '-ші',
	        60: '-шы',
	        70: '-ші',
	        80: '-ші',
	        90: '-шы',
	        100: '-ші'
	    };
	
	    var kk = moment.defineLocale('kk', {
	        months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),
	        monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
	        weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),
	        weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
	        weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[Бүгін сағат] LT',
	            nextDay: '[Ертең сағат] LT',
	            nextWeek: 'dddd [сағат] LT',
	            lastDay: '[Кеше сағат] LT',
	            lastWeek: '[Өткен аптаның] dddd [сағат] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s ішінде',
	            past: '%s бұрын',
	            s: 'бірнеше секунд',
	            ss: '%d секунд',
	            m: 'бір минут',
	            mm: '%d минут',
	            h: 'бір сағат',
	            hh: '%d сағат',
	            d: 'бір күн',
	            dd: '%d күн',
	            M: 'бір ай',
	            MM: '%d ай',
	            y: 'бір жыл',
	            yy: '%d жыл'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
	        ordinal: function ordinal(number) {
	            var a = number % 10,
	                b = number >= 100 ? 100 : null;
	            return number + (suffixes[number] || suffixes[a] || suffixes[b]);
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return kk;
	});

/***/ }),
/* 372 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Cambodian [km]
	//! author : Kruy Vanna : https://github.com/kruyvanna
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var symbolMap = {
	        1: '១',
	        2: '២',
	        3: '៣',
	        4: '៤',
	        5: '៥',
	        6: '៦',
	        7: '៧',
	        8: '៨',
	        9: '៩',
	        0: '០'
	    },
	        numberMap = {
	        '១': '1',
	        '២': '2',
	        '៣': '3',
	        '៤': '4',
	        '៥': '5',
	        '៦': '6',
	        '៧': '7',
	        '៨': '8',
	        '៩': '9',
	        '០': '0'
	    };
	
	    var km = moment.defineLocale('km', {
	        months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
	        monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
	        weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
	        weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
	        weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        meridiemParse: /ព្រឹក|ល្ងាច/,
	        isPM: function isPM(input) {
	            return input === 'ល្ងាច';
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 12) {
	                return 'ព្រឹក';
	            } else {
	                return 'ល្ងាច';
	            }
	        },
	        calendar: {
	            sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
	            nextDay: '[ស្អែក ម៉ោង] LT',
	            nextWeek: 'dddd [ម៉ោង] LT',
	            lastDay: '[ម្សិលមិញ ម៉ោង] LT',
	            lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%sទៀត',
	            past: '%sមុន',
	            s: 'ប៉ុន្មានវិនាទី',
	            ss: '%d វិនាទី',
	            m: 'មួយនាទី',
	            mm: '%d នាទី',
	            h: 'មួយម៉ោង',
	            hh: '%d ម៉ោង',
	            d: 'មួយថ្ងៃ',
	            dd: '%d ថ្ងៃ',
	            M: 'មួយខែ',
	            MM: '%d ខែ',
	            y: 'មួយឆ្នាំ',
	            yy: '%d ឆ្នាំ'
	        },
	        dayOfMonthOrdinalParse: /ទី\d{1,2}/,
	        ordinal: 'ទី%d',
	        preparse: function preparse(string) {
	            return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
	                return numberMap[match];
	            });
	        },
	        postformat: function postformat(string) {
	            return string.replace(/\d/g, function (match) {
	                return symbolMap[match];
	            });
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return km;
	});

/***/ }),
/* 373 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Kannada [kn]
	//! author : Rajeev Naik : https://github.com/rajeevnaikte
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var symbolMap = {
	        1: '೧',
	        2: '೨',
	        3: '೩',
	        4: '೪',
	        5: '೫',
	        6: '೬',
	        7: '೭',
	        8: '೮',
	        9: '೯',
	        0: '೦'
	    },
	        numberMap = {
	        '೧': '1',
	        '೨': '2',
	        '೩': '3',
	        '೪': '4',
	        '೫': '5',
	        '೬': '6',
	        '೭': '7',
	        '೮': '8',
	        '೯': '9',
	        '೦': '0'
	    };
	
	    var kn = moment.defineLocale('kn', {
	        months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'),
	        monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'),
	        weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
	        weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
	        longDateFormat: {
	            LT: 'A h:mm',
	            LTS: 'A h:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY, A h:mm',
	            LLLL: 'dddd, D MMMM YYYY, A h:mm'
	        },
	        calendar: {
	            sameDay: '[ಇಂದು] LT',
	            nextDay: '[ನಾಳೆ] LT',
	            nextWeek: 'dddd, LT',
	            lastDay: '[ನಿನ್ನೆ] LT',
	            lastWeek: '[ಕೊನೆಯ] dddd, LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s ನಂತರ',
	            past: '%s ಹಿಂದೆ',
	            s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
	            ss: '%d ಸೆಕೆಂಡುಗಳು',
	            m: 'ಒಂದು ನಿಮಿಷ',
	            mm: '%d ನಿಮಿಷ',
	            h: 'ಒಂದು ಗಂಟೆ',
	            hh: '%d ಗಂಟೆ',
	            d: 'ಒಂದು ದಿನ',
	            dd: '%d ದಿನ',
	            M: 'ಒಂದು ತಿಂಗಳು',
	            MM: '%d ತಿಂಗಳು',
	            y: 'ಒಂದು ವರ್ಷ',
	            yy: '%d ವರ್ಷ'
	        },
	        preparse: function preparse(string) {
	            return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
	                return numberMap[match];
	            });
	        },
	        postformat: function postformat(string) {
	            return string.replace(/\d/g, function (match) {
	                return symbolMap[match];
	            });
	        },
	        meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === 'ರಾತ್ರಿ') {
	                return hour < 4 ? hour : hour + 12;
	            } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
	                return hour;
	            } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
	                return hour >= 10 ? hour : hour + 12;
	            } else if (meridiem === 'ಸಂಜೆ') {
	                return hour + 12;
	            }
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 4) {
	                return 'ರಾತ್ರಿ';
	            } else if (hour < 10) {
	                return 'ಬೆಳಿಗ್ಗೆ';
	            } else if (hour < 17) {
	                return 'ಮಧ್ಯಾಹ್ನ';
	            } else if (hour < 20) {
	                return 'ಸಂಜೆ';
	            } else {
	                return 'ರಾತ್ರಿ';
	            }
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
	        ordinal: function ordinal(number) {
	            return number + 'ನೇ';
	        },
	        week: {
	            dow: 0, // Sunday is the first day of the week.
	            doy: 6 // The week that contains Jan 6th is the first week of the year.
	        }
	    });
	
	    return kn;
	});

/***/ }),
/* 374 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Korean [ko]
	//! author : Kyungwook, Park : https://github.com/kyungw00k
	//! author : Jeeeyul Lee <jeeeyul@gmail.com>
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var ko = moment.defineLocale('ko', {
	        months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
	        monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
	        weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
	        weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
	        weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
	        longDateFormat: {
	            LT: 'A h:mm',
	            LTS: 'A h:mm:ss',
	            L: 'YYYY.MM.DD.',
	            LL: 'YYYY년 MMMM D일',
	            LLL: 'YYYY년 MMMM D일 A h:mm',
	            LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
	            l: 'YYYY.MM.DD.',
	            ll: 'YYYY년 MMMM D일',
	            lll: 'YYYY년 MMMM D일 A h:mm',
	            llll: 'YYYY년 MMMM D일 dddd A h:mm'
	        },
	        calendar: {
	            sameDay: '오늘 LT',
	            nextDay: '내일 LT',
	            nextWeek: 'dddd LT',
	            lastDay: '어제 LT',
	            lastWeek: '지난주 dddd LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s 후',
	            past: '%s 전',
	            s: '몇 초',
	            ss: '%d초',
	            m: '1분',
	            mm: '%d분',
	            h: '한 시간',
	            hh: '%d시간',
	            d: '하루',
	            dd: '%d일',
	            M: '한 달',
	            MM: '%d달',
	            y: '일 년',
	            yy: '%d년'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
	        ordinal: function ordinal(number, period) {
	            switch (period) {
	                case 'd':
	                case 'D':
	                case 'DDD':
	                    return number + '일';
	                case 'M':
	                    return number + '월';
	                case 'w':
	                case 'W':
	                    return number + '주';
	                default:
	                    return number;
	            }
	        },
	        meridiemParse: /오전|오후/,
	        isPM: function isPM(token) {
	            return token === '오후';
	        },
	        meridiem: function meridiem(hour, minute, isUpper) {
	            return hour < 12 ? '오전' : '오후';
	        }
	    });
	
	    return ko;
	});

/***/ }),
/* 375 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Northern Kurdish [ku-kmr]
	//! authors : Mazlum Özdogan : https://github.com/mergehez
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    function processRelativeTime(num, withoutSuffix, key, isFuture) {
	        var format = {
	            s: ['çend sanîye', 'çend sanîyeyan'],
	            ss: [num + ' sanîye', num + ' sanîyeyan'],
	            m: ['deqîqeyek', 'deqîqeyekê'],
	            mm: [num + ' deqîqe', num + ' deqîqeyan'],
	            h: ['saetek', 'saetekê'],
	            hh: [num + ' saet', num + ' saetan'],
	            d: ['rojek', 'rojekê'],
	            dd: [num + ' roj', num + ' rojan'],
	            w: ['hefteyek', 'hefteyekê'],
	            ww: [num + ' hefte', num + ' hefteyan'],
	            M: ['mehek', 'mehekê'],
	            MM: [num + ' meh', num + ' mehan'],
	            y: ['salek', 'salekê'],
	            yy: [num + ' sal', num + ' salan']
	        };
	        return withoutSuffix ? format[key][0] : format[key][1];
	    }
	    // function obliqueNumSuffix(num) {
	    //     if(num.includes(':'))
	    //         num = parseInt(num.split(':')[0]);
	    //     else
	    //         num = parseInt(num);
	    //     return num == 0 || num % 10 == 1 ? 'ê'
	    //                         : (num > 10 && num % 10 == 0 ? 'î' : 'an');
	    // }
	    function ezafeNumSuffix(num) {
	        num = '' + num;
	        var l = num.substring(num.length - 1),
	            ll = num.length > 1 ? num.substring(num.length - 2) : '';
	        if (!(ll == 12 || ll == 13) && (l == '2' || l == '3' || ll == '50' || l == '70' || l == '80')) return 'yê';
	        return 'ê';
	    }
	
	    var kuKmr = moment.defineLocale('ku-kmr', {
	        // According to the spelling rules defined by the work group of Weqfa Mezopotamyayê (Mesopotamia Foundation)
	        // this should be: 'Kanûna Paşîn_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Çirîya Pêşîn_Çirîya Paşîn_Kanûna Pêşîn'
	        // But the names below are more well known and handy
	        months: 'Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar'.split('_'),
	        monthsShort: 'Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî'.split('_'),
	        weekdaysShort: 'Yek_Du_Sê_Çar_Pên_În_Şem'.split('_'),
	        weekdaysMin: 'Ye_Du_Sê_Ça_Pê_În_Şe'.split('_'),
	        meridiem: function meridiem(hours, minutes, isLower) {
	            if (hours < 12) {
	                return isLower ? 'bn' : 'BN';
	            } else {
	                return isLower ? 'pn' : 'PN';
	            }
	        },
	        meridiemParse: /bn|BN|pn|PN/,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'Do MMMM[a] YYYY[an]',
	            LLL: 'Do MMMM[a] YYYY[an] HH:mm',
	            LLLL: 'dddd, Do MMMM[a] YYYY[an] HH:mm',
	            ll: 'Do MMM[.] YYYY[an]',
	            lll: 'Do MMM[.] YYYY[an] HH:mm',
	            llll: 'ddd[.], Do MMM[.] YYYY[an] HH:mm'
	        },
	        calendar: {
	            sameDay: '[Îro di saet] LT [de]',
	            nextDay: '[Sibê di saet] LT [de]',
	            nextWeek: 'dddd [di saet] LT [de]',
	            lastDay: '[Duh di saet] LT [de]',
	            lastWeek: 'dddd[a borî di saet] LT [de]',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'di %s de',
	            past: 'berî %s',
	            s: processRelativeTime,
	            ss: processRelativeTime,
	            m: processRelativeTime,
	            mm: processRelativeTime,
	            h: processRelativeTime,
	            hh: processRelativeTime,
	            d: processRelativeTime,
	            dd: processRelativeTime,
	            w: processRelativeTime,
	            ww: processRelativeTime,
	            M: processRelativeTime,
	            MM: processRelativeTime,
	            y: processRelativeTime,
	            yy: processRelativeTime
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(?:yê|ê|\.)/,
	        ordinal: function ordinal(num, period) {
	            var p = period.toLowerCase();
	            if (p.includes('w') || p.includes('m')) return num + '.';
	
	            return num + ezafeNumSuffix(num);
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return kuKmr;
	});

/***/ }),
/* 376 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Kurdish [ku]
	//! author : Shahram Mebashar : https://github.com/ShahramMebashar
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var symbolMap = {
	        1: '١',
	        2: '٢',
	        3: '٣',
	        4: '٤',
	        5: '٥',
	        6: '٦',
	        7: '٧',
	        8: '٨',
	        9: '٩',
	        0: '٠'
	    },
	        numberMap = {
	        '١': '1',
	        '٢': '2',
	        '٣': '3',
	        '٤': '4',
	        '٥': '5',
	        '٦': '6',
	        '٧': '7',
	        '٨': '8',
	        '٩': '9',
	        '٠': '0'
	    },
	        months = ['کانونی دووەم', 'شوبات', 'ئازار', 'نیسان', 'ئایار', 'حوزەیران', 'تەمموز', 'ئاب', 'ئەیلوول', 'تشرینی یەكەم', 'تشرینی دووەم', 'كانونی یەکەم'];
	
	    var ku = moment.defineLocale('ku', {
	        months: months,
	        monthsShort: months,
	        weekdays: 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split('_'),
	        weekdaysShort: 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split('_'),
	        weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        meridiemParse: /ئێواره‌|به‌یانی/,
	        isPM: function isPM(input) {
	            return (/ئێواره‌/.test(input)
	            );
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 12) {
	                return 'به‌یانی';
	            } else {
	                return 'ئێواره‌';
	            }
	        },
	        calendar: {
	            sameDay: '[ئه‌مرۆ كاتژمێر] LT',
	            nextDay: '[به‌یانی كاتژمێر] LT',
	            nextWeek: 'dddd [كاتژمێر] LT',
	            lastDay: '[دوێنێ كاتژمێر] LT',
	            lastWeek: 'dddd [كاتژمێر] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'له‌ %s',
	            past: '%s',
	            s: 'چه‌ند چركه‌یه‌ك',
	            ss: 'چركه‌ %d',
	            m: 'یه‌ك خوله‌ك',
	            mm: '%d خوله‌ك',
	            h: 'یه‌ك كاتژمێر',
	            hh: '%d كاتژمێر',
	            d: 'یه‌ك ڕۆژ',
	            dd: '%d ڕۆژ',
	            M: 'یه‌ك مانگ',
	            MM: '%d مانگ',
	            y: 'یه‌ك ساڵ',
	            yy: '%d ساڵ'
	        },
	        preparse: function preparse(string) {
	            return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
	                return numberMap[match];
	            }).replace(/،/g, ',');
	        },
	        postformat: function postformat(string) {
	            return string.replace(/\d/g, function (match) {
	                return symbolMap[match];
	            }).replace(/,/g, '،');
	        },
	        week: {
	            dow: 6, // Saturday is the first day of the week.
	            doy: 12 // The week that contains Jan 12th is the first week of the year.
	        }
	    });
	
	    return ku;
	});

/***/ }),
/* 377 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Kyrgyz [ky]
	//! author : Chyngyz Arystan uulu : https://github.com/chyngyz
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var suffixes = {
	        0: '-чү',
	        1: '-чи',
	        2: '-чи',
	        3: '-чү',
	        4: '-чү',
	        5: '-чи',
	        6: '-чы',
	        7: '-чи',
	        8: '-чи',
	        9: '-чу',
	        10: '-чу',
	        20: '-чы',
	        30: '-чу',
	        40: '-чы',
	        50: '-чү',
	        60: '-чы',
	        70: '-чи',
	        80: '-чи',
	        90: '-чу',
	        100: '-чү'
	    };
	
	    var ky = moment.defineLocale('ky', {
	        months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
	        monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
	        weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),
	        weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
	        weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[Бүгүн саат] LT',
	            nextDay: '[Эртең саат] LT',
	            nextWeek: 'dddd [саат] LT',
	            lastDay: '[Кечээ саат] LT',
	            lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s ичинде',
	            past: '%s мурун',
	            s: 'бирнече секунд',
	            ss: '%d секунд',
	            m: 'бир мүнөт',
	            mm: '%d мүнөт',
	            h: 'бир саат',
	            hh: '%d саат',
	            d: 'бир күн',
	            dd: '%d күн',
	            M: 'бир ай',
	            MM: '%d ай',
	            y: 'бир жыл',
	            yy: '%d жыл'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
	        ordinal: function ordinal(number) {
	            var a = number % 10,
	                b = number >= 100 ? 100 : null;
	            return number + (suffixes[number] || suffixes[a] || suffixes[b]);
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return ky;
	});

/***/ }),
/* 378 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Luxembourgish [lb]
	//! author : mweimerskirch : https://github.com/mweimerskirch
	//! author : David Raison : https://github.com/kwisatz
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    function processRelativeTime(number, withoutSuffix, key, isFuture) {
	        var format = {
	            m: ['eng Minutt', 'enger Minutt'],
	            h: ['eng Stonn', 'enger Stonn'],
	            d: ['een Dag', 'engem Dag'],
	            M: ['ee Mount', 'engem Mount'],
	            y: ['ee Joer', 'engem Joer']
	        };
	        return withoutSuffix ? format[key][0] : format[key][1];
	    }
	    function processFutureTime(string) {
	        var number = string.substr(0, string.indexOf(' '));
	        if (eifelerRegelAppliesToNumber(number)) {
	            return 'a ' + string;
	        }
	        return 'an ' + string;
	    }
	    function processPastTime(string) {
	        var number = string.substr(0, string.indexOf(' '));
	        if (eifelerRegelAppliesToNumber(number)) {
	            return 'viru ' + string;
	        }
	        return 'virun ' + string;
	    }
	    /**
	     * Returns true if the word before the given number loses the '-n' ending.
	     * e.g. 'an 10 Deeg' but 'a 5 Deeg'
	     *
	     * @param number {integer}
	     * @returns {boolean}
	     */
	    function eifelerRegelAppliesToNumber(number) {
	        number = parseInt(number, 10);
	        if (isNaN(number)) {
	            return false;
	        }
	        if (number < 0) {
	            // Negative Number --> always true
	            return true;
	        } else if (number < 10) {
	            // Only 1 digit
	            if (4 <= number && number <= 7) {
	                return true;
	            }
	            return false;
	        } else if (number < 100) {
	            // 2 digits
	            var lastDigit = number % 10,
	                firstDigit = number / 10;
	            if (lastDigit === 0) {
	                return eifelerRegelAppliesToNumber(firstDigit);
	            }
	            return eifelerRegelAppliesToNumber(lastDigit);
	        } else if (number < 10000) {
	            // 3 or 4 digits --> recursively check first digit
	            while (number >= 10) {
	                number = number / 10;
	            }
	            return eifelerRegelAppliesToNumber(number);
	        } else {
	            // Anything larger than 4 digits: recursively check first n-3 digits
	            number = number / 1000;
	            return eifelerRegelAppliesToNumber(number);
	        }
	    }
	
	    var lb = moment.defineLocale('lb', {
	        months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
	        monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
	        weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
	        weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'H:mm [Auer]',
	            LTS: 'H:mm:ss [Auer]',
	            L: 'DD.MM.YYYY',
	            LL: 'D. MMMM YYYY',
	            LLL: 'D. MMMM YYYY H:mm [Auer]',
	            LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
	        },
	        calendar: {
	            sameDay: '[Haut um] LT',
	            sameElse: 'L',
	            nextDay: '[Muer um] LT',
	            nextWeek: 'dddd [um] LT',
	            lastDay: '[Gëschter um] LT',
	            lastWeek: function lastWeek() {
	                // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
	                switch (this.day()) {
	                    case 2:
	                    case 4:
	                        return '[Leschten] dddd [um] LT';
	                    default:
	                        return '[Leschte] dddd [um] LT';
	                }
	            }
	        },
	        relativeTime: {
	            future: processFutureTime,
	            past: processPastTime,
	            s: 'e puer Sekonnen',
	            ss: '%d Sekonnen',
	            m: processRelativeTime,
	            mm: '%d Minutten',
	            h: processRelativeTime,
	            hh: '%d Stonnen',
	            d: processRelativeTime,
	            dd: '%d Deeg',
	            M: processRelativeTime,
	            MM: '%d Méint',
	            y: processRelativeTime,
	            yy: '%d Joer'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return lb;
	});

/***/ }),
/* 379 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Lao [lo]
	//! author : Ryan Hart : https://github.com/ryanhart2
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var lo = moment.defineLocale('lo', {
	        months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
	        monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
	        weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
	        weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
	        weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'ວັນdddd D MMMM YYYY HH:mm'
	        },
	        meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
	        isPM: function isPM(input) {
	            return input === 'ຕອນແລງ';
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 12) {
	                return 'ຕອນເຊົ້າ';
	            } else {
	                return 'ຕອນແລງ';
	            }
	        },
	        calendar: {
	            sameDay: '[ມື້ນີ້ເວລາ] LT',
	            nextDay: '[ມື້ອື່ນເວລາ] LT',
	            nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
	            lastDay: '[ມື້ວານນີ້ເວລາ] LT',
	            lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'ອີກ %s',
	            past: '%sຜ່ານມາ',
	            s: 'ບໍ່ເທົ່າໃດວິນາທີ',
	            ss: '%d ວິນາທີ',
	            m: '1 ນາທີ',
	            mm: '%d ນາທີ',
	            h: '1 ຊົ່ວໂມງ',
	            hh: '%d ຊົ່ວໂມງ',
	            d: '1 ມື້',
	            dd: '%d ມື້',
	            M: '1 ເດືອນ',
	            MM: '%d ເດືອນ',
	            y: '1 ປີ',
	            yy: '%d ປີ'
	        },
	        dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
	        ordinal: function ordinal(number) {
	            return 'ທີ່' + number;
	        }
	    });
	
	    return lo;
	});

/***/ }),
/* 380 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Lithuanian [lt]
	//! author : Mindaugas Mozūras : https://github.com/mmozuras
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var units = {
	        ss: 'sekundė_sekundžių_sekundes',
	        m: 'minutė_minutės_minutę',
	        mm: 'minutės_minučių_minutes',
	        h: 'valanda_valandos_valandą',
	        hh: 'valandos_valandų_valandas',
	        d: 'diena_dienos_dieną',
	        dd: 'dienos_dienų_dienas',
	        M: 'mėnuo_mėnesio_mėnesį',
	        MM: 'mėnesiai_mėnesių_mėnesius',
	        y: 'metai_metų_metus',
	        yy: 'metai_metų_metus'
	    };
	    function translateSeconds(number, withoutSuffix, key, isFuture) {
	        if (withoutSuffix) {
	            return 'kelios sekundės';
	        } else {
	            return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
	        }
	    }
	    function translateSingular(number, withoutSuffix, key, isFuture) {
	        return withoutSuffix ? forms(key)[0] : isFuture ? forms(key)[1] : forms(key)[2];
	    }
	    function special(number) {
	        return number % 10 === 0 || number > 10 && number < 20;
	    }
	    function forms(key) {
	        return units[key].split('_');
	    }
	    function translate(number, withoutSuffix, key, isFuture) {
	        var result = number + ' ';
	        if (number === 1) {
	            return result + translateSingular(number, withoutSuffix, key[0], isFuture);
	        } else if (withoutSuffix) {
	            return result + (special(number) ? forms(key)[1] : forms(key)[0]);
	        } else {
	            if (isFuture) {
	                return result + forms(key)[1];
	            } else {
	                return result + (special(number) ? forms(key)[1] : forms(key)[2]);
	            }
	        }
	    }
	    var lt = moment.defineLocale('lt', {
	        months: {
	            format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
	            standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
	            isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/
	        },
	        monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
	        weekdays: {
	            format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
	            standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
	            isFormat: /dddd HH:mm/
	        },
	        weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
	        weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'YYYY-MM-DD',
	            LL: 'YYYY [m.] MMMM D [d.]',
	            LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
	            LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
	            l: 'YYYY-MM-DD',
	            ll: 'YYYY [m.] MMMM D [d.]',
	            lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
	            llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
	        },
	        calendar: {
	            sameDay: '[Šiandien] LT',
	            nextDay: '[Rytoj] LT',
	            nextWeek: 'dddd LT',
	            lastDay: '[Vakar] LT',
	            lastWeek: '[Praėjusį] dddd LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'po %s',
	            past: 'prieš %s',
	            s: translateSeconds,
	            ss: translate,
	            m: translateSingular,
	            mm: translate,
	            h: translateSingular,
	            hh: translate,
	            d: translateSingular,
	            dd: translate,
	            M: translateSingular,
	            MM: translate,
	            y: translateSingular,
	            yy: translate
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}-oji/,
	        ordinal: function ordinal(number) {
	            return number + '-oji';
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return lt;
	});

/***/ }),
/* 381 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Latvian [lv]
	//! author : Kristaps Karlsons : https://github.com/skakri
	//! author : Jānis Elmeris : https://github.com/JanisE
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var units = {
	        ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
	        m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
	        mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
	        h: 'stundas_stundām_stunda_stundas'.split('_'),
	        hh: 'stundas_stundām_stunda_stundas'.split('_'),
	        d: 'dienas_dienām_diena_dienas'.split('_'),
	        dd: 'dienas_dienām_diena_dienas'.split('_'),
	        M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
	        MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
	        y: 'gada_gadiem_gads_gadi'.split('_'),
	        yy: 'gada_gadiem_gads_gadi'.split('_')
	    };
	    /**
	     * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
	     */
	    function format(forms, number, withoutSuffix) {
	        if (withoutSuffix) {
	            // E.g. "21 minūte", "3 minūtes".
	            return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
	        } else {
	            // E.g. "21 minūtes" as in "pēc 21 minūtes".
	            // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
	            return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
	        }
	    }
	    function relativeTimeWithPlural(number, withoutSuffix, key) {
	        return number + ' ' + format(units[key], number, withoutSuffix);
	    }
	    function relativeTimeWithSingular(number, withoutSuffix, key) {
	        return format(units[key], number, withoutSuffix);
	    }
	    function relativeSeconds(number, withoutSuffix) {
	        return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
	    }
	
	    var lv = moment.defineLocale('lv', {
	        months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
	        monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
	        weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
	        weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),
	        weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD.MM.YYYY.',
	            LL: 'YYYY. [gada] D. MMMM',
	            LLL: 'YYYY. [gada] D. MMMM, HH:mm',
	            LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm'
	        },
	        calendar: {
	            sameDay: '[Šodien pulksten] LT',
	            nextDay: '[Rīt pulksten] LT',
	            nextWeek: 'dddd [pulksten] LT',
	            lastDay: '[Vakar pulksten] LT',
	            lastWeek: '[Pagājušā] dddd [pulksten] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'pēc %s',
	            past: 'pirms %s',
	            s: relativeSeconds,
	            ss: relativeTimeWithPlural,
	            m: relativeTimeWithSingular,
	            mm: relativeTimeWithPlural,
	            h: relativeTimeWithSingular,
	            hh: relativeTimeWithPlural,
	            d: relativeTimeWithSingular,
	            dd: relativeTimeWithPlural,
	            M: relativeTimeWithSingular,
	            MM: relativeTimeWithPlural,
	            y: relativeTimeWithSingular,
	            yy: relativeTimeWithPlural
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return lv;
	});

/***/ }),
/* 382 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Montenegrin [me]
	//! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var translator = {
	        words: {
	            //Different grammatical cases
	            ss: ['sekund', 'sekunda', 'sekundi'],
	            m: ['jedan minut', 'jednog minuta'],
	            mm: ['minut', 'minuta', 'minuta'],
	            h: ['jedan sat', 'jednog sata'],
	            hh: ['sat', 'sata', 'sati'],
	            dd: ['dan', 'dana', 'dana'],
	            MM: ['mjesec', 'mjeseca', 'mjeseci'],
	            yy: ['godina', 'godine', 'godina']
	        },
	        correctGrammaticalCase: function correctGrammaticalCase(number, wordKey) {
	            return number === 1 ? wordKey[0] : number >= 2 && number <= 4 ? wordKey[1] : wordKey[2];
	        },
	        translate: function translate(number, withoutSuffix, key) {
	            var wordKey = translator.words[key];
	            if (key.length === 1) {
	                return withoutSuffix ? wordKey[0] : wordKey[1];
	            } else {
	                return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
	            }
	        }
	    };
	
	    var me = moment.defineLocale('me', {
	        months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
	        monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
	        weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
	        weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'H:mm',
	            LTS: 'H:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D. MMMM YYYY',
	            LLL: 'D. MMMM YYYY H:mm',
	            LLLL: 'dddd, D. MMMM YYYY H:mm'
	        },
	        calendar: {
	            sameDay: '[danas u] LT',
	            nextDay: '[sjutra u] LT',
	
	            nextWeek: function nextWeek() {
	                switch (this.day()) {
	                    case 0:
	                        return '[u] [nedjelju] [u] LT';
	                    case 3:
	                        return '[u] [srijedu] [u] LT';
	                    case 6:
	                        return '[u] [subotu] [u] LT';
	                    case 1:
	                    case 2:
	                    case 4:
	                    case 5:
	                        return '[u] dddd [u] LT';
	                }
	            },
	            lastDay: '[juče u] LT',
	            lastWeek: function lastWeek() {
	                var lastWeekDays = ['[prošle] [nedjelje] [u] LT', '[prošlog] [ponedjeljka] [u] LT', '[prošlog] [utorka] [u] LT', '[prošle] [srijede] [u] LT', '[prošlog] [četvrtka] [u] LT', '[prošlog] [petka] [u] LT', '[prošle] [subote] [u] LT'];
	                return lastWeekDays[this.day()];
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'za %s',
	            past: 'prije %s',
	            s: 'nekoliko sekundi',
	            ss: translator.translate,
	            m: translator.translate,
	            mm: translator.translate,
	            h: translator.translate,
	            hh: translator.translate,
	            d: 'dan',
	            dd: translator.translate,
	            M: 'mjesec',
	            MM: translator.translate,
	            y: 'godinu',
	            yy: translator.translate
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return me;
	});

/***/ }),
/* 383 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Maori [mi]
	//! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var mi = moment.defineLocale('mi', {
	        months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split('_'),
	        monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),
	        monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
	        monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
	        monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
	        monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
	        weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
	        weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
	        weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY [i] HH:mm',
	            LLLL: 'dddd, D MMMM YYYY [i] HH:mm'
	        },
	        calendar: {
	            sameDay: '[i teie mahana, i] LT',
	            nextDay: '[apopo i] LT',
	            nextWeek: 'dddd [i] LT',
	            lastDay: '[inanahi i] LT',
	            lastWeek: 'dddd [whakamutunga i] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'i roto i %s',
	            past: '%s i mua',
	            s: 'te hēkona ruarua',
	            ss: '%d hēkona',
	            m: 'he meneti',
	            mm: '%d meneti',
	            h: 'te haora',
	            hh: '%d haora',
	            d: 'he ra',
	            dd: '%d ra',
	            M: 'he marama',
	            MM: '%d marama',
	            y: 'he tau',
	            yy: '%d tau'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}º/,
	        ordinal: '%dº',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return mi;
	});

/***/ }),
/* 384 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Macedonian [mk]
	//! author : Borislav Mickov : https://github.com/B0k0
	//! author : Sashko Todorov : https://github.com/bkyceh
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var mk = moment.defineLocale('mk', {
	        months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
	        monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
	        weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
	        weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
	        weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),
	        longDateFormat: {
	            LT: 'H:mm',
	            LTS: 'H:mm:ss',
	            L: 'D.MM.YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY H:mm',
	            LLLL: 'dddd, D MMMM YYYY H:mm'
	        },
	        calendar: {
	            sameDay: '[Денес во] LT',
	            nextDay: '[Утре во] LT',
	            nextWeek: '[Во] dddd [во] LT',
	            lastDay: '[Вчера во] LT',
	            lastWeek: function lastWeek() {
	                switch (this.day()) {
	                    case 0:
	                    case 3:
	                    case 6:
	                        return '[Изминатата] dddd [во] LT';
	                    case 1:
	                    case 2:
	                    case 4:
	                    case 5:
	                        return '[Изминатиот] dddd [во] LT';
	                }
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'за %s',
	            past: 'пред %s',
	            s: 'неколку секунди',
	            ss: '%d секунди',
	            m: 'една минута',
	            mm: '%d минути',
	            h: 'еден час',
	            hh: '%d часа',
	            d: 'еден ден',
	            dd: '%d дена',
	            M: 'еден месец',
	            MM: '%d месеци',
	            y: 'една година',
	            yy: '%d години'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
	        ordinal: function ordinal(number) {
	            var lastDigit = number % 10,
	                last2Digits = number % 100;
	            if (number === 0) {
	                return number + '-ев';
	            } else if (last2Digits === 0) {
	                return number + '-ен';
	            } else if (last2Digits > 10 && last2Digits < 20) {
	                return number + '-ти';
	            } else if (lastDigit === 1) {
	                return number + '-ви';
	            } else if (lastDigit === 2) {
	                return number + '-ри';
	            } else if (lastDigit === 7 || lastDigit === 8) {
	                return number + '-ми';
	            } else {
	                return number + '-ти';
	            }
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return mk;
	});

/***/ }),
/* 385 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Malayalam [ml]
	//! author : Floyd Pink : https://github.com/floydpink
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var ml = moment.defineLocale('ml', {
	        months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
	        monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
	        weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
	        weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
	        longDateFormat: {
	            LT: 'A h:mm -നു',
	            LTS: 'A h:mm:ss -നു',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY, A h:mm -നു',
	            LLLL: 'dddd, D MMMM YYYY, A h:mm -നു'
	        },
	        calendar: {
	            sameDay: '[ഇന്ന്] LT',
	            nextDay: '[നാളെ] LT',
	            nextWeek: 'dddd, LT',
	            lastDay: '[ഇന്നലെ] LT',
	            lastWeek: '[കഴിഞ്ഞ] dddd, LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s കഴിഞ്ഞ്',
	            past: '%s മുൻപ്',
	            s: 'അൽപ നിമിഷങ്ങൾ',
	            ss: '%d സെക്കൻഡ്',
	            m: 'ഒരു മിനിറ്റ്',
	            mm: '%d മിനിറ്റ്',
	            h: 'ഒരു മണിക്കൂർ',
	            hh: '%d മണിക്കൂർ',
	            d: 'ഒരു ദിവസം',
	            dd: '%d ദിവസം',
	            M: 'ഒരു മാസം',
	            MM: '%d മാസം',
	            y: 'ഒരു വർഷം',
	            yy: '%d വർഷം'
	        },
	        meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === 'രാത്രി' && hour >= 4 || meridiem === 'ഉച്ച കഴിഞ്ഞ്' || meridiem === 'വൈകുന്നേരം') {
	                return hour + 12;
	            } else {
	                return hour;
	            }
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 4) {
	                return 'രാത്രി';
	            } else if (hour < 12) {
	                return 'രാവിലെ';
	            } else if (hour < 17) {
	                return 'ഉച്ച കഴിഞ്ഞ്';
	            } else if (hour < 20) {
	                return 'വൈകുന്നേരം';
	            } else {
	                return 'രാത്രി';
	            }
	        }
	    });
	
	    return ml;
	});

/***/ }),
/* 386 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Mongolian [mn]
	//! author : Javkhlantugs Nyamdorj : https://github.com/javkhaanj7
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    function translate(number, withoutSuffix, key, isFuture) {
	        switch (key) {
	            case 's':
	                return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';
	            case 'ss':
	                return number + (withoutSuffix ? ' секунд' : ' секундын');
	            case 'm':
	            case 'mm':
	                return number + (withoutSuffix ? ' минут' : ' минутын');
	            case 'h':
	            case 'hh':
	                return number + (withoutSuffix ? ' цаг' : ' цагийн');
	            case 'd':
	            case 'dd':
	                return number + (withoutSuffix ? ' өдөр' : ' өдрийн');
	            case 'M':
	            case 'MM':
	                return number + (withoutSuffix ? ' сар' : ' сарын');
	            case 'y':
	            case 'yy':
	                return number + (withoutSuffix ? ' жил' : ' жилийн');
	            default:
	                return number;
	        }
	    }
	
	    var mn = moment.defineLocale('mn', {
	        months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split('_'),
	        monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),
	        weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
	        weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'YYYY-MM-DD',
	            LL: 'YYYY оны MMMMын D',
	            LLL: 'YYYY оны MMMMын D HH:mm',
	            LLLL: 'dddd, YYYY оны MMMMын D HH:mm'
	        },
	        meridiemParse: /ҮӨ|ҮХ/i,
	        isPM: function isPM(input) {
	            return input === 'ҮХ';
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 12) {
	                return 'ҮӨ';
	            } else {
	                return 'ҮХ';
	            }
	        },
	        calendar: {
	            sameDay: '[Өнөөдөр] LT',
	            nextDay: '[Маргааш] LT',
	            nextWeek: '[Ирэх] dddd LT',
	            lastDay: '[Өчигдөр] LT',
	            lastWeek: '[Өнгөрсөн] dddd LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s дараа',
	            past: '%s өмнө',
	            s: translate,
	            ss: translate,
	            m: translate,
	            mm: translate,
	            h: translate,
	            hh: translate,
	            d: translate,
	            dd: translate,
	            M: translate,
	            MM: translate,
	            y: translate,
	            yy: translate
	        },
	        dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
	        ordinal: function ordinal(number, period) {
	            switch (period) {
	                case 'd':
	                case 'D':
	                case 'DDD':
	                    return number + ' өдөр';
	                default:
	                    return number;
	            }
	        }
	    });
	
	    return mn;
	});

/***/ }),
/* 387 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Marathi [mr]
	//! author : Harshad Kale : https://github.com/kalehv
	//! author : Vivek Athalye : https://github.com/vnathalye
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var symbolMap = {
	        1: '१',
	        2: '२',
	        3: '३',
	        4: '४',
	        5: '५',
	        6: '६',
	        7: '७',
	        8: '८',
	        9: '९',
	        0: '०'
	    },
	        numberMap = {
	        '१': '1',
	        '२': '2',
	        '३': '3',
	        '४': '4',
	        '५': '5',
	        '६': '6',
	        '७': '7',
	        '८': '8',
	        '९': '9',
	        '०': '0'
	    };
	
	    function relativeTimeMr(number, withoutSuffix, string, isFuture) {
	        var output = '';
	        if (withoutSuffix) {
	            switch (string) {
	                case 's':
	                    output = 'काही सेकंद';
	                    break;
	                case 'ss':
	                    output = '%d सेकंद';
	                    break;
	                case 'm':
	                    output = 'एक मिनिट';
	                    break;
	                case 'mm':
	                    output = '%d मिनिटे';
	                    break;
	                case 'h':
	                    output = 'एक तास';
	                    break;
	                case 'hh':
	                    output = '%d तास';
	                    break;
	                case 'd':
	                    output = 'एक दिवस';
	                    break;
	                case 'dd':
	                    output = '%d दिवस';
	                    break;
	                case 'M':
	                    output = 'एक महिना';
	                    break;
	                case 'MM':
	                    output = '%d महिने';
	                    break;
	                case 'y':
	                    output = 'एक वर्ष';
	                    break;
	                case 'yy':
	                    output = '%d वर्षे';
	                    break;
	            }
	        } else {
	            switch (string) {
	                case 's':
	                    output = 'काही सेकंदां';
	                    break;
	                case 'ss':
	                    output = '%d सेकंदां';
	                    break;
	                case 'm':
	                    output = 'एका मिनिटा';
	                    break;
	                case 'mm':
	                    output = '%d मिनिटां';
	                    break;
	                case 'h':
	                    output = 'एका तासा';
	                    break;
	                case 'hh':
	                    output = '%d तासां';
	                    break;
	                case 'd':
	                    output = 'एका दिवसा';
	                    break;
	                case 'dd':
	                    output = '%d दिवसां';
	                    break;
	                case 'M':
	                    output = 'एका महिन्या';
	                    break;
	                case 'MM':
	                    output = '%d महिन्यां';
	                    break;
	                case 'y':
	                    output = 'एका वर्षा';
	                    break;
	                case 'yy':
	                    output = '%d वर्षां';
	                    break;
	            }
	        }
	        return output.replace(/%d/i, number);
	    }
	
	    var mr = moment.defineLocale('mr', {
	        months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
	        monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
	        weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
	        weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
	        longDateFormat: {
	            LT: 'A h:mm वाजता',
	            LTS: 'A h:mm:ss वाजता',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY, A h:mm वाजता',
	            LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता'
	        },
	        calendar: {
	            sameDay: '[आज] LT',
	            nextDay: '[उद्या] LT',
	            nextWeek: 'dddd, LT',
	            lastDay: '[काल] LT',
	            lastWeek: '[मागील] dddd, LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%sमध्ये',
	            past: '%sपूर्वी',
	            s: relativeTimeMr,
	            ss: relativeTimeMr,
	            m: relativeTimeMr,
	            mm: relativeTimeMr,
	            h: relativeTimeMr,
	            hh: relativeTimeMr,
	            d: relativeTimeMr,
	            dd: relativeTimeMr,
	            M: relativeTimeMr,
	            MM: relativeTimeMr,
	            y: relativeTimeMr,
	            yy: relativeTimeMr
	        },
	        preparse: function preparse(string) {
	            return string.replace(/[१२३४५६७८९०]/g, function (match) {
	                return numberMap[match];
	            });
	        },
	        postformat: function postformat(string) {
	            return string.replace(/\d/g, function (match) {
	                return symbolMap[match];
	            });
	        },
	        meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {
	                return hour;
	            } else if (meridiem === 'दुपारी' || meridiem === 'सायंकाळी' || meridiem === 'रात्री') {
	                return hour >= 12 ? hour : hour + 12;
	            }
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour >= 0 && hour < 6) {
	                return 'पहाटे';
	            } else if (hour < 12) {
	                return 'सकाळी';
	            } else if (hour < 17) {
	                return 'दुपारी';
	            } else if (hour < 20) {
	                return 'सायंकाळी';
	            } else {
	                return 'रात्री';
	            }
	        },
	        week: {
	            dow: 0, // Sunday is the first day of the week.
	            doy: 6 // The week that contains Jan 6th is the first week of the year.
	        }
	    });
	
	    return mr;
	});

/***/ }),
/* 388 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Malay [ms-my]
	//! note : DEPRECATED, the correct one is [ms]
	//! author : Weldan Jamili : https://github.com/weldan
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var msMy = moment.defineLocale('ms-my', {
	        months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
	        monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
	        weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
	        weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
	        weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
	        longDateFormat: {
	            LT: 'HH.mm',
	            LTS: 'HH.mm.ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY [pukul] HH.mm',
	            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
	        },
	        meridiemParse: /pagi|tengahari|petang|malam/,
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === 'pagi') {
	                return hour;
	            } else if (meridiem === 'tengahari') {
	                return hour >= 11 ? hour : hour + 12;
	            } else if (meridiem === 'petang' || meridiem === 'malam') {
	                return hour + 12;
	            }
	        },
	        meridiem: function meridiem(hours, minutes, isLower) {
	            if (hours < 11) {
	                return 'pagi';
	            } else if (hours < 15) {
	                return 'tengahari';
	            } else if (hours < 19) {
	                return 'petang';
	            } else {
	                return 'malam';
	            }
	        },
	        calendar: {
	            sameDay: '[Hari ini pukul] LT',
	            nextDay: '[Esok pukul] LT',
	            nextWeek: 'dddd [pukul] LT',
	            lastDay: '[Kelmarin pukul] LT',
	            lastWeek: 'dddd [lepas pukul] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'dalam %s',
	            past: '%s yang lepas',
	            s: 'beberapa saat',
	            ss: '%d saat',
	            m: 'seminit',
	            mm: '%d minit',
	            h: 'sejam',
	            hh: '%d jam',
	            d: 'sehari',
	            dd: '%d hari',
	            M: 'sebulan',
	            MM: '%d bulan',
	            y: 'setahun',
	            yy: '%d tahun'
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return msMy;
	});

/***/ }),
/* 389 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Malay [ms]
	//! author : Weldan Jamili : https://github.com/weldan
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var ms = moment.defineLocale('ms', {
	        months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
	        monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
	        weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
	        weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
	        weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
	        longDateFormat: {
	            LT: 'HH.mm',
	            LTS: 'HH.mm.ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY [pukul] HH.mm',
	            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
	        },
	        meridiemParse: /pagi|tengahari|petang|malam/,
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === 'pagi') {
	                return hour;
	            } else if (meridiem === 'tengahari') {
	                return hour >= 11 ? hour : hour + 12;
	            } else if (meridiem === 'petang' || meridiem === 'malam') {
	                return hour + 12;
	            }
	        },
	        meridiem: function meridiem(hours, minutes, isLower) {
	            if (hours < 11) {
	                return 'pagi';
	            } else if (hours < 15) {
	                return 'tengahari';
	            } else if (hours < 19) {
	                return 'petang';
	            } else {
	                return 'malam';
	            }
	        },
	        calendar: {
	            sameDay: '[Hari ini pukul] LT',
	            nextDay: '[Esok pukul] LT',
	            nextWeek: 'dddd [pukul] LT',
	            lastDay: '[Kelmarin pukul] LT',
	            lastWeek: 'dddd [lepas pukul] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'dalam %s',
	            past: '%s yang lepas',
	            s: 'beberapa saat',
	            ss: '%d saat',
	            m: 'seminit',
	            mm: '%d minit',
	            h: 'sejam',
	            hh: '%d jam',
	            d: 'sehari',
	            dd: '%d hari',
	            M: 'sebulan',
	            MM: '%d bulan',
	            y: 'setahun',
	            yy: '%d tahun'
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return ms;
	});

/***/ }),
/* 390 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Maltese (Malta) [mt]
	//! author : Alessandro Maruccia : https://github.com/alesma
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var mt = moment.defineLocale('mt', {
	        months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split('_'),
	        monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
	        weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split('_'),
	        weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
	        weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[Illum fil-]LT',
	            nextDay: '[Għada fil-]LT',
	            nextWeek: 'dddd [fil-]LT',
	            lastDay: '[Il-bieraħ fil-]LT',
	            lastWeek: 'dddd [li għadda] [fil-]LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'f’ %s',
	            past: '%s ilu',
	            s: 'ftit sekondi',
	            ss: '%d sekondi',
	            m: 'minuta',
	            mm: '%d minuti',
	            h: 'siegħa',
	            hh: '%d siegħat',
	            d: 'ġurnata',
	            dd: '%d ġranet',
	            M: 'xahar',
	            MM: '%d xhur',
	            y: 'sena',
	            yy: '%d sni'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}º/,
	        ordinal: '%dº',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return mt;
	});

/***/ }),
/* 391 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Burmese [my]
	//! author : Squar team, mysquar.com
	//! author : David Rossellat : https://github.com/gholadr
	//! author : Tin Aung Lin : https://github.com/thanyawzinmin
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var symbolMap = {
	        1: '၁',
	        2: '၂',
	        3: '၃',
	        4: '၄',
	        5: '၅',
	        6: '၆',
	        7: '၇',
	        8: '၈',
	        9: '၉',
	        0: '၀'
	    },
	        numberMap = {
	        '၁': '1',
	        '၂': '2',
	        '၃': '3',
	        '၄': '4',
	        '၅': '5',
	        '၆': '6',
	        '၇': '7',
	        '၈': '8',
	        '၉': '9',
	        '၀': '0'
	    };
	
	    var my = moment.defineLocale('my', {
	        months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
	        monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
	        weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
	        weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
	        weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
	
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[ယနေ.] LT [မှာ]',
	            nextDay: '[မနက်ဖြန်] LT [မှာ]',
	            nextWeek: 'dddd LT [မှာ]',
	            lastDay: '[မနေ.က] LT [မှာ]',
	            lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'လာမည့် %s မှာ',
	            past: 'လွန်ခဲ့သော %s က',
	            s: 'စက္ကန်.အနည်းငယ်',
	            ss: '%d စက္ကန့်',
	            m: 'တစ်မိနစ်',
	            mm: '%d မိနစ်',
	            h: 'တစ်နာရီ',
	            hh: '%d နာရီ',
	            d: 'တစ်ရက်',
	            dd: '%d ရက်',
	            M: 'တစ်လ',
	            MM: '%d လ',
	            y: 'တစ်နှစ်',
	            yy: '%d နှစ်'
	        },
	        preparse: function preparse(string) {
	            return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
	                return numberMap[match];
	            });
	        },
	        postformat: function postformat(string) {
	            return string.replace(/\d/g, function (match) {
	                return symbolMap[match];
	            });
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return my;
	});

/***/ }),
/* 392 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Norwegian Bokmål [nb]
	//! authors : Espen Hovlandsdal : https://github.com/rexxars
	//!           Sigurd Gartmann : https://github.com/sigurdga
	//!           Stephen Ramthun : https://github.com/stephenramthun
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var nb = moment.defineLocale('nb', {
	        months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
	        monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
	        weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
	        weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D. MMMM YYYY',
	            LLL: 'D. MMMM YYYY [kl.] HH:mm',
	            LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm'
	        },
	        calendar: {
	            sameDay: '[i dag kl.] LT',
	            nextDay: '[i morgen kl.] LT',
	            nextWeek: 'dddd [kl.] LT',
	            lastDay: '[i går kl.] LT',
	            lastWeek: '[forrige] dddd [kl.] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'om %s',
	            past: '%s siden',
	            s: 'noen sekunder',
	            ss: '%d sekunder',
	            m: 'ett minutt',
	            mm: '%d minutter',
	            h: 'én time',
	            hh: '%d timer',
	            d: 'én dag',
	            dd: '%d dager',
	            w: 'én uke',
	            ww: '%d uker',
	            M: 'én måned',
	            MM: '%d måneder',
	            y: 'ett år',
	            yy: '%d år'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return nb;
	});

/***/ }),
/* 393 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Nepalese [ne]
	//! author : suvash : https://github.com/suvash
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var symbolMap = {
	        1: '१',
	        2: '२',
	        3: '३',
	        4: '४',
	        5: '५',
	        6: '६',
	        7: '७',
	        8: '८',
	        9: '९',
	        0: '०'
	    },
	        numberMap = {
	        '१': '1',
	        '२': '2',
	        '३': '3',
	        '४': '4',
	        '५': '5',
	        '६': '6',
	        '७': '7',
	        '८': '8',
	        '९': '9',
	        '०': '0'
	    };
	
	    var ne = moment.defineLocale('ne', {
	        months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
	        monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
	        weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
	        weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'Aको h:mm बजे',
	            LTS: 'Aको h:mm:ss बजे',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY, Aको h:mm बजे',
	            LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे'
	        },
	        preparse: function preparse(string) {
	            return string.replace(/[१२३४५६७८९०]/g, function (match) {
	                return numberMap[match];
	            });
	        },
	        postformat: function postformat(string) {
	            return string.replace(/\d/g, function (match) {
	                return symbolMap[match];
	            });
	        },
	        meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === 'राति') {
	                return hour < 4 ? hour : hour + 12;
	            } else if (meridiem === 'बिहान') {
	                return hour;
	            } else if (meridiem === 'दिउँसो') {
	                return hour >= 10 ? hour : hour + 12;
	            } else if (meridiem === 'साँझ') {
	                return hour + 12;
	            }
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 3) {
	                return 'राति';
	            } else if (hour < 12) {
	                return 'बिहान';
	            } else if (hour < 16) {
	                return 'दिउँसो';
	            } else if (hour < 20) {
	                return 'साँझ';
	            } else {
	                return 'राति';
	            }
	        },
	        calendar: {
	            sameDay: '[आज] LT',
	            nextDay: '[भोलि] LT',
	            nextWeek: '[आउँदो] dddd[,] LT',
	            lastDay: '[हिजो] LT',
	            lastWeek: '[गएको] dddd[,] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%sमा',
	            past: '%s अगाडि',
	            s: 'केही क्षण',
	            ss: '%d सेकेण्ड',
	            m: 'एक मिनेट',
	            mm: '%d मिनेट',
	            h: 'एक घण्टा',
	            hh: '%d घण्टा',
	            d: 'एक दिन',
	            dd: '%d दिन',
	            M: 'एक महिना',
	            MM: '%d महिना',
	            y: 'एक बर्ष',
	            yy: '%d बर्ष'
	        },
	        week: {
	            dow: 0, // Sunday is the first day of the week.
	            doy: 6 // The week that contains Jan 6th is the first week of the year.
	        }
	    });
	
	    return ne;
	});

/***/ }),
/* 394 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Dutch (Belgium) [nl-be]
	//! author : Joris Röling : https://github.com/jorisroling
	//! author : Jacob Middag : https://github.com/middagj
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
	        monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
	        monthsParse = [/^jan/i, /^feb/i, /^(maart|mrt\.?)$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i],
	        monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
	
	    var nlBe = moment.defineLocale('nl-be', {
	        months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
	        monthsShort: function monthsShort(m, format) {
	            if (!m) {
	                return monthsShortWithDots;
	            } else if (/-MMM-/.test(format)) {
	                return monthsShortWithoutDots[m.month()];
	            } else {
	                return monthsShortWithDots[m.month()];
	            }
	        },
	
	        monthsRegex: monthsRegex,
	        monthsShortRegex: monthsRegex,
	        monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
	        monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
	
	        monthsParse: monthsParse,
	        longMonthsParse: monthsParse,
	        shortMonthsParse: monthsParse,
	
	        weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
	        weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
	        weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[vandaag om] LT',
	            nextDay: '[morgen om] LT',
	            nextWeek: 'dddd [om] LT',
	            lastDay: '[gisteren om] LT',
	            lastWeek: '[afgelopen] dddd [om] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'over %s',
	            past: '%s geleden',
	            s: 'een paar seconden',
	            ss: '%d seconden',
	            m: 'één minuut',
	            mm: '%d minuten',
	            h: 'één uur',
	            hh: '%d uur',
	            d: 'één dag',
	            dd: '%d dagen',
	            M: 'één maand',
	            MM: '%d maanden',
	            y: 'één jaar',
	            yy: '%d jaar'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
	        ordinal: function ordinal(number) {
	            return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de');
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return nlBe;
	});

/***/ }),
/* 395 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Dutch [nl]
	//! author : Joris Röling : https://github.com/jorisroling
	//! author : Jacob Middag : https://github.com/middagj
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
	        monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
	        monthsParse = [/^jan/i, /^feb/i, /^(maart|mrt\.?)$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i],
	        monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
	
	    var nl = moment.defineLocale('nl', {
	        months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
	        monthsShort: function monthsShort(m, format) {
	            if (!m) {
	                return monthsShortWithDots;
	            } else if (/-MMM-/.test(format)) {
	                return monthsShortWithoutDots[m.month()];
	            } else {
	                return monthsShortWithDots[m.month()];
	            }
	        },
	
	        monthsRegex: monthsRegex,
	        monthsShortRegex: monthsRegex,
	        monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
	        monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
	
	        monthsParse: monthsParse,
	        longMonthsParse: monthsParse,
	        shortMonthsParse: monthsParse,
	
	        weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
	        weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
	        weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD-MM-YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[vandaag om] LT',
	            nextDay: '[morgen om] LT',
	            nextWeek: 'dddd [om] LT',
	            lastDay: '[gisteren om] LT',
	            lastWeek: '[afgelopen] dddd [om] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'over %s',
	            past: '%s geleden',
	            s: 'een paar seconden',
	            ss: '%d seconden',
	            m: 'één minuut',
	            mm: '%d minuten',
	            h: 'één uur',
	            hh: '%d uur',
	            d: 'één dag',
	            dd: '%d dagen',
	            w: 'één week',
	            ww: '%d weken',
	            M: 'één maand',
	            MM: '%d maanden',
	            y: 'één jaar',
	            yy: '%d jaar'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
	        ordinal: function ordinal(number) {
	            return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de');
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return nl;
	});

/***/ }),
/* 396 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Nynorsk [nn]
	//! authors : https://github.com/mechuwind
	//!           Stephen Ramthun : https://github.com/stephenramthun
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var nn = moment.defineLocale('nn', {
	        months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
	        monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
	        weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),
	        weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D. MMMM YYYY',
	            LLL: 'D. MMMM YYYY [kl.] H:mm',
	            LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm'
	        },
	        calendar: {
	            sameDay: '[I dag klokka] LT',
	            nextDay: '[I morgon klokka] LT',
	            nextWeek: 'dddd [klokka] LT',
	            lastDay: '[I går klokka] LT',
	            lastWeek: '[Føregåande] dddd [klokka] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'om %s',
	            past: '%s sidan',
	            s: 'nokre sekund',
	            ss: '%d sekund',
	            m: 'eit minutt',
	            mm: '%d minutt',
	            h: 'ein time',
	            hh: '%d timar',
	            d: 'ein dag',
	            dd: '%d dagar',
	            w: 'ei veke',
	            ww: '%d veker',
	            M: 'ein månad',
	            MM: '%d månader',
	            y: 'eit år',
	            yy: '%d år'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return nn;
	});

/***/ }),
/* 397 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Occitan, lengadocian dialecte [oc-lnc]
	//! author : Quentin PAGÈS : https://github.com/Quenty31
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var ocLnc = moment.defineLocale('oc-lnc', {
	        months: {
	            standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split('_'),
	            format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split('_'),
	            isFormat: /D[oD]?(\s)+MMMM/
	        },
	        monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split('_'),
	        weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
	        weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'H:mm',
	            LTS: 'H:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM [de] YYYY',
	            ll: 'D MMM YYYY',
	            LLL: 'D MMMM [de] YYYY [a] H:mm',
	            lll: 'D MMM YYYY, H:mm',
	            LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
	            llll: 'ddd D MMM YYYY, H:mm'
	        },
	        calendar: {
	            sameDay: '[uèi a] LT',
	            nextDay: '[deman a] LT',
	            nextWeek: 'dddd [a] LT',
	            lastDay: '[ièr a] LT',
	            lastWeek: 'dddd [passat a] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: "d'aquí %s",
	            past: 'fa %s',
	            s: 'unas segondas',
	            ss: '%d segondas',
	            m: 'una minuta',
	            mm: '%d minutas',
	            h: 'una ora',
	            hh: '%d oras',
	            d: 'un jorn',
	            dd: '%d jorns',
	            M: 'un mes',
	            MM: '%d meses',
	            y: 'un an',
	            yy: '%d ans'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
	        ordinal: function ordinal(number, period) {
	            var output = number === 1 ? 'r' : number === 2 ? 'n' : number === 3 ? 'r' : number === 4 ? 't' : 'è';
	            if (period === 'w' || period === 'W') {
	                output = 'a';
	            }
	            return number + output;
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4
	        }
	    });
	
	    return ocLnc;
	});

/***/ }),
/* 398 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Punjabi (India) [pa-in]
	//! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var symbolMap = {
	        1: '੧',
	        2: '੨',
	        3: '੩',
	        4: '੪',
	        5: '੫',
	        6: '੬',
	        7: '੭',
	        8: '੮',
	        9: '੯',
	        0: '੦'
	    },
	        numberMap = {
	        '੧': '1',
	        '੨': '2',
	        '੩': '3',
	        '੪': '4',
	        '੫': '5',
	        '੬': '6',
	        '੭': '7',
	        '੮': '8',
	        '੯': '9',
	        '੦': '0'
	    };
	
	    var paIn = moment.defineLocale('pa-in', {
	        // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
	        months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
	        monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
	        weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),
	        weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
	        weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
	        longDateFormat: {
	            LT: 'A h:mm ਵਜੇ',
	            LTS: 'A h:mm:ss ਵਜੇ',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',
	            LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'
	        },
	        calendar: {
	            sameDay: '[ਅਜ] LT',
	            nextDay: '[ਕਲ] LT',
	            nextWeek: '[ਅਗਲਾ] dddd, LT',
	            lastDay: '[ਕਲ] LT',
	            lastWeek: '[ਪਿਛਲੇ] dddd, LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s ਵਿੱਚ',
	            past: '%s ਪਿਛਲੇ',
	            s: 'ਕੁਝ ਸਕਿੰਟ',
	            ss: '%d ਸਕਿੰਟ',
	            m: 'ਇਕ ਮਿੰਟ',
	            mm: '%d ਮਿੰਟ',
	            h: 'ਇੱਕ ਘੰਟਾ',
	            hh: '%d ਘੰਟੇ',
	            d: 'ਇੱਕ ਦਿਨ',
	            dd: '%d ਦਿਨ',
	            M: 'ਇੱਕ ਮਹੀਨਾ',
	            MM: '%d ਮਹੀਨੇ',
	            y: 'ਇੱਕ ਸਾਲ',
	            yy: '%d ਸਾਲ'
	        },
	        preparse: function preparse(string) {
	            return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
	                return numberMap[match];
	            });
	        },
	        postformat: function postformat(string) {
	            return string.replace(/\d/g, function (match) {
	                return symbolMap[match];
	            });
	        },
	        // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
	        // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
	        meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === 'ਰਾਤ') {
	                return hour < 4 ? hour : hour + 12;
	            } else if (meridiem === 'ਸਵੇਰ') {
	                return hour;
	            } else if (meridiem === 'ਦੁਪਹਿਰ') {
	                return hour >= 10 ? hour : hour + 12;
	            } else if (meridiem === 'ਸ਼ਾਮ') {
	                return hour + 12;
	            }
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 4) {
	                return 'ਰਾਤ';
	            } else if (hour < 10) {
	                return 'ਸਵੇਰ';
	            } else if (hour < 17) {
	                return 'ਦੁਪਹਿਰ';
	            } else if (hour < 20) {
	                return 'ਸ਼ਾਮ';
	            } else {
	                return 'ਰਾਤ';
	            }
	        },
	        week: {
	            dow: 0, // Sunday is the first day of the week.
	            doy: 6 // The week that contains Jan 6th is the first week of the year.
	        }
	    });
	
	    return paIn;
	});

/***/ }),
/* 399 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Polish [pl]
	//! author : Rafal Hirsz : https://github.com/evoL
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'),
	        monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_'),
	        monthsParse = [/^sty/i, /^lut/i, /^mar/i, /^kwi/i, /^maj/i, /^cze/i, /^lip/i, /^sie/i, /^wrz/i, /^paź/i, /^lis/i, /^gru/i];
	    function plural(n) {
	        return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;
	    }
	    function translate(number, withoutSuffix, key) {
	        var result = number + ' ';
	        switch (key) {
	            case 'ss':
	                return result + (plural(number) ? 'sekundy' : 'sekund');
	            case 'm':
	                return withoutSuffix ? 'minuta' : 'minutę';
	            case 'mm':
	                return result + (plural(number) ? 'minuty' : 'minut');
	            case 'h':
	                return withoutSuffix ? 'godzina' : 'godzinę';
	            case 'hh':
	                return result + (plural(number) ? 'godziny' : 'godzin');
	            case 'ww':
	                return result + (plural(number) ? 'tygodnie' : 'tygodni');
	            case 'MM':
	                return result + (plural(number) ? 'miesiące' : 'miesięcy');
	            case 'yy':
	                return result + (plural(number) ? 'lata' : 'lat');
	        }
	    }
	
	    var pl = moment.defineLocale('pl', {
	        months: function months(momentToFormat, format) {
	            if (!momentToFormat) {
	                return monthsNominative;
	            } else if (/D MMMM/.test(format)) {
	                return monthsSubjective[momentToFormat.month()];
	            } else {
	                return monthsNominative[momentToFormat.month()];
	            }
	        },
	        monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
	        monthsParse: monthsParse,
	        longMonthsParse: monthsParse,
	        shortMonthsParse: monthsParse,
	        weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
	        weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
	        weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[Dziś o] LT',
	            nextDay: '[Jutro o] LT',
	            nextWeek: function nextWeek() {
	                switch (this.day()) {
	                    case 0:
	                        return '[W niedzielę o] LT';
	
	                    case 2:
	                        return '[We wtorek o] LT';
	
	                    case 3:
	                        return '[W środę o] LT';
	
	                    case 6:
	                        return '[W sobotę o] LT';
	
	                    default:
	                        return '[W] dddd [o] LT';
	                }
	            },
	            lastDay: '[Wczoraj o] LT',
	            lastWeek: function lastWeek() {
	                switch (this.day()) {
	                    case 0:
	                        return '[W zeszłą niedzielę o] LT';
	                    case 3:
	                        return '[W zeszłą środę o] LT';
	                    case 6:
	                        return '[W zeszłą sobotę o] LT';
	                    default:
	                        return '[W zeszły] dddd [o] LT';
	                }
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'za %s',
	            past: '%s temu',
	            s: 'kilka sekund',
	            ss: translate,
	            m: translate,
	            mm: translate,
	            h: translate,
	            hh: translate,
	            d: '1 dzień',
	            dd: '%d dni',
	            w: 'tydzień',
	            ww: translate,
	            M: 'miesiąc',
	            MM: translate,
	            y: 'rok',
	            yy: translate
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return pl;
	});

/***/ }),
/* 400 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Portuguese (Brazil) [pt-br]
	//! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var ptBr = moment.defineLocale('pt-br', {
	        months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
	        monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
	        weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split('_'),
	        weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
	        weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D [de] MMMM [de] YYYY',
	            LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
	            LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
	        },
	        calendar: {
	            sameDay: '[Hoje às] LT',
	            nextDay: '[Amanhã às] LT',
	            nextWeek: 'dddd [às] LT',
	            lastDay: '[Ontem às] LT',
	            lastWeek: function lastWeek() {
	                return this.day() === 0 || this.day() === 6 ? '[Último] dddd [às] LT' // Saturday + Sunday
	                : '[Última] dddd [às] LT'; // Monday - Friday
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'em %s',
	            past: 'há %s',
	            s: 'poucos segundos',
	            ss: '%d segundos',
	            m: 'um minuto',
	            mm: '%d minutos',
	            h: 'uma hora',
	            hh: '%d horas',
	            d: 'um dia',
	            dd: '%d dias',
	            M: 'um mês',
	            MM: '%d meses',
	            y: 'um ano',
	            yy: '%d anos'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}º/,
	        ordinal: '%dº',
	        invalidDate: 'Data inválida'
	    });
	
	    return ptBr;
	});

/***/ }),
/* 401 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Portuguese [pt]
	//! author : Jefferson : https://github.com/jalex79
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var pt = moment.defineLocale('pt', {
	        months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
	        monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
	        weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
	        weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
	        weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D [de] MMMM [de] YYYY',
	            LLL: 'D [de] MMMM [de] YYYY HH:mm',
	            LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[Hoje às] LT',
	            nextDay: '[Amanhã às] LT',
	            nextWeek: 'dddd [às] LT',
	            lastDay: '[Ontem às] LT',
	            lastWeek: function lastWeek() {
	                return this.day() === 0 || this.day() === 6 ? '[Último] dddd [às] LT' // Saturday + Sunday
	                : '[Última] dddd [às] LT'; // Monday - Friday
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'em %s',
	            past: 'há %s',
	            s: 'segundos',
	            ss: '%d segundos',
	            m: 'um minuto',
	            mm: '%d minutos',
	            h: 'uma hora',
	            hh: '%d horas',
	            d: 'um dia',
	            dd: '%d dias',
	            w: 'uma semana',
	            ww: '%d semanas',
	            M: 'um mês',
	            MM: '%d meses',
	            y: 'um ano',
	            yy: '%d anos'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}º/,
	        ordinal: '%dº',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return pt;
	});

/***/ }),
/* 402 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Romanian [ro]
	//! author : Vlad Gurdiga : https://github.com/gurdiga
	//! author : Valentin Agachi : https://github.com/avaly
	//! author : Emanuel Cepoi : https://github.com/cepem
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    function relativeTimeWithPlural(number, withoutSuffix, key) {
	        var format = {
	            ss: 'secunde',
	            mm: 'minute',
	            hh: 'ore',
	            dd: 'zile',
	            ww: 'săptămâni',
	            MM: 'luni',
	            yy: 'ani'
	        },
	            separator = ' ';
	        if (number % 100 >= 20 || number >= 100 && number % 100 === 0) {
	            separator = ' de ';
	        }
	        return number + separator + format[key];
	    }
	
	    var ro = moment.defineLocale('ro', {
	        months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
	        monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
	        weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
	        weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
	        longDateFormat: {
	            LT: 'H:mm',
	            LTS: 'H:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY H:mm',
	            LLLL: 'dddd, D MMMM YYYY H:mm'
	        },
	        calendar: {
	            sameDay: '[azi la] LT',
	            nextDay: '[mâine la] LT',
	            nextWeek: 'dddd [la] LT',
	            lastDay: '[ieri la] LT',
	            lastWeek: '[fosta] dddd [la] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'peste %s',
	            past: '%s în urmă',
	            s: 'câteva secunde',
	            ss: relativeTimeWithPlural,
	            m: 'un minut',
	            mm: relativeTimeWithPlural,
	            h: 'o oră',
	            hh: relativeTimeWithPlural,
	            d: 'o zi',
	            dd: relativeTimeWithPlural,
	            w: 'o săptămână',
	            ww: relativeTimeWithPlural,
	            M: 'o lună',
	            MM: relativeTimeWithPlural,
	            y: 'un an',
	            yy: relativeTimeWithPlural
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return ro;
	});

/***/ }),
/* 403 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Russian [ru]
	//! author : Viktorminator : https://github.com/Viktorminator
	//! author : Menelion Elensúle : https://github.com/Oire
	//! author : Коренберг Марк : https://github.com/socketpair
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    function plural(word, num) {
	        var forms = word.split('_');
	        return num % 10 === 1 && num % 100 !== 11 ? forms[0] : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2];
	    }
	    function relativeTimeWithPlural(number, withoutSuffix, key) {
	        var format = {
	            ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
	            mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
	            hh: 'час_часа_часов',
	            dd: 'день_дня_дней',
	            ww: 'неделя_недели_недель',
	            MM: 'месяц_месяца_месяцев',
	            yy: 'год_года_лет'
	        };
	        if (key === 'm') {
	            return withoutSuffix ? 'минута' : 'минуту';
	        } else {
	            return number + ' ' + plural(format[key], +number);
	        }
	    }
	    var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
	
	    // http://new.gramota.ru/spravka/rules/139-prop : § 103
	    // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
	    // CLDR data:          http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
	    var ru = moment.defineLocale('ru', {
	        months: {
	            format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),
	            standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')
	        },
	        monthsShort: {
	            // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку?
	            format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),
	            standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')
	        },
	        weekdays: {
	            standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
	            format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),
	            isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/
	        },
	        weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
	        weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
	        monthsParse: monthsParse,
	        longMonthsParse: monthsParse,
	        shortMonthsParse: monthsParse,
	
	        // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
	        monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
	
	        // копия предыдущего
	        monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
	
	        // полные названия с падежами
	        monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
	
	        // Выражение, которое соответствует только сокращённым формам
	        monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
	        longDateFormat: {
	            LT: 'H:mm',
	            LTS: 'H:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D MMMM YYYY г.',
	            LLL: 'D MMMM YYYY г., H:mm',
	            LLLL: 'dddd, D MMMM YYYY г., H:mm'
	        },
	        calendar: {
	            sameDay: '[Сегодня, в] LT',
	            nextDay: '[Завтра, в] LT',
	            lastDay: '[Вчера, в] LT',
	            nextWeek: function nextWeek(now) {
	                if (now.week() !== this.week()) {
	                    switch (this.day()) {
	                        case 0:
	                            return '[В следующее] dddd, [в] LT';
	                        case 1:
	                        case 2:
	                        case 4:
	                            return '[В следующий] dddd, [в] LT';
	                        case 3:
	                        case 5:
	                        case 6:
	                            return '[В следующую] dddd, [в] LT';
	                    }
	                } else {
	                    if (this.day() === 2) {
	                        return '[Во] dddd, [в] LT';
	                    } else {
	                        return '[В] dddd, [в] LT';
	                    }
	                }
	            },
	            lastWeek: function lastWeek(now) {
	                if (now.week() !== this.week()) {
	                    switch (this.day()) {
	                        case 0:
	                            return '[В прошлое] dddd, [в] LT';
	                        case 1:
	                        case 2:
	                        case 4:
	                            return '[В прошлый] dddd, [в] LT';
	                        case 3:
	                        case 5:
	                        case 6:
	                            return '[В прошлую] dddd, [в] LT';
	                    }
	                } else {
	                    if (this.day() === 2) {
	                        return '[Во] dddd, [в] LT';
	                    } else {
	                        return '[В] dddd, [в] LT';
	                    }
	                }
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'через %s',
	            past: '%s назад',
	            s: 'несколько секунд',
	            ss: relativeTimeWithPlural,
	            m: relativeTimeWithPlural,
	            mm: relativeTimeWithPlural,
	            h: 'час',
	            hh: relativeTimeWithPlural,
	            d: 'день',
	            dd: relativeTimeWithPlural,
	            w: 'неделя',
	            ww: relativeTimeWithPlural,
	            M: 'месяц',
	            MM: relativeTimeWithPlural,
	            y: 'год',
	            yy: relativeTimeWithPlural
	        },
	        meridiemParse: /ночи|утра|дня|вечера/i,
	        isPM: function isPM(input) {
	            return (/^(дня|вечера)$/.test(input)
	            );
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 4) {
	                return 'ночи';
	            } else if (hour < 12) {
	                return 'утра';
	            } else if (hour < 17) {
	                return 'дня';
	            } else {
	                return 'вечера';
	            }
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
	        ordinal: function ordinal(number, period) {
	            switch (period) {
	                case 'M':
	                case 'd':
	                case 'DDD':
	                    return number + '-й';
	                case 'D':
	                    return number + '-го';
	                case 'w':
	                case 'W':
	                    return number + '-я';
	                default:
	                    return number;
	            }
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return ru;
	});

/***/ }),
/* 404 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Sindhi [sd]
	//! author : Narain Sagar : https://github.com/narainsagar
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var months = ['جنوري', 'فيبروري', 'مارچ', 'اپريل', 'مئي', 'جون', 'جولاءِ', 'آگسٽ', 'سيپٽمبر', 'آڪٽوبر', 'نومبر', 'ڊسمبر'],
	        days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];
	
	    var sd = moment.defineLocale('sd', {
	        months: months,
	        monthsShort: months,
	        weekdays: days,
	        weekdaysShort: days,
	        weekdaysMin: days,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd، D MMMM YYYY HH:mm'
	        },
	        meridiemParse: /صبح|شام/,
	        isPM: function isPM(input) {
	            return 'شام' === input;
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 12) {
	                return 'صبح';
	            }
	            return 'شام';
	        },
	        calendar: {
	            sameDay: '[اڄ] LT',
	            nextDay: '[سڀاڻي] LT',
	            nextWeek: 'dddd [اڳين هفتي تي] LT',
	            lastDay: '[ڪالهه] LT',
	            lastWeek: '[گزريل هفتي] dddd [تي] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s پوء',
	            past: '%s اڳ',
	            s: 'چند سيڪنڊ',
	            ss: '%d سيڪنڊ',
	            m: 'هڪ منٽ',
	            mm: '%d منٽ',
	            h: 'هڪ ڪلاڪ',
	            hh: '%d ڪلاڪ',
	            d: 'هڪ ڏينهن',
	            dd: '%d ڏينهن',
	            M: 'هڪ مهينو',
	            MM: '%d مهينا',
	            y: 'هڪ سال',
	            yy: '%d سال'
	        },
	        preparse: function preparse(string) {
	            return string.replace(/،/g, ',');
	        },
	        postformat: function postformat(string) {
	            return string.replace(/,/g, '،');
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return sd;
	});

/***/ }),
/* 405 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Northern Sami [se]
	//! authors : Bård Rolstad Henriksen : https://github.com/karamell
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var se = moment.defineLocale('se', {
	        months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'),
	        monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
	        weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
	        weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
	        weekdaysMin: 's_v_m_g_d_b_L'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'MMMM D. [b.] YYYY',
	            LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',
	            LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
	        },
	        calendar: {
	            sameDay: '[otne ti] LT',
	            nextDay: '[ihttin ti] LT',
	            nextWeek: 'dddd [ti] LT',
	            lastDay: '[ikte ti] LT',
	            lastWeek: '[ovddit] dddd [ti] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s geažes',
	            past: 'maŋit %s',
	            s: 'moadde sekunddat',
	            ss: '%d sekunddat',
	            m: 'okta minuhta',
	            mm: '%d minuhtat',
	            h: 'okta diimmu',
	            hh: '%d diimmut',
	            d: 'okta beaivi',
	            dd: '%d beaivvit',
	            M: 'okta mánnu',
	            MM: '%d mánut',
	            y: 'okta jahki',
	            yy: '%d jagit'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return se;
	});

/***/ }),
/* 406 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Sinhalese [si]
	//! author : Sampath Sitinamaluwa : https://github.com/sampathsris
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    /*jshint -W100*/
	
	    var si = moment.defineLocale('si', {
	        months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
	        monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
	        weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
	        weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
	        weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'a h:mm',
	            LTS: 'a h:mm:ss',
	            L: 'YYYY/MM/DD',
	            LL: 'YYYY MMMM D',
	            LLL: 'YYYY MMMM D, a h:mm',
	            LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
	        },
	        calendar: {
	            sameDay: '[අද] LT[ට]',
	            nextDay: '[හෙට] LT[ට]',
	            nextWeek: 'dddd LT[ට]',
	            lastDay: '[ඊයේ] LT[ට]',
	            lastWeek: '[පසුගිය] dddd LT[ට]',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%sකින්',
	            past: '%sකට පෙර',
	            s: 'තත්පර කිහිපය',
	            ss: 'තත්පර %d',
	            m: 'මිනිත්තුව',
	            mm: 'මිනිත්තු %d',
	            h: 'පැය',
	            hh: 'පැය %d',
	            d: 'දිනය',
	            dd: 'දින %d',
	            M: 'මාසය',
	            MM: 'මාස %d',
	            y: 'වසර',
	            yy: 'වසර %d'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
	        ordinal: function ordinal(number) {
	            return number + ' වැනි';
	        },
	        meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
	        isPM: function isPM(input) {
	            return input === 'ප.ව.' || input === 'පස් වරු';
	        },
	        meridiem: function meridiem(hours, minutes, isLower) {
	            if (hours > 11) {
	                return isLower ? 'ප.ව.' : 'පස් වරු';
	            } else {
	                return isLower ? 'පෙ.ව.' : 'පෙර වරු';
	            }
	        }
	    });
	
	    return si;
	});

/***/ }),
/* 407 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Slovak [sk]
	//! author : Martin Minka : https://github.com/k2s
	//! based on work of petrbela : https://github.com/petrbela
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),
	        monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
	    function plural(n) {
	        return n > 1 && n < 5;
	    }
	    function translate(number, withoutSuffix, key, isFuture) {
	        var result = number + ' ';
	        switch (key) {
	            case 's':
	                // a few seconds / in a few seconds / a few seconds ago
	                return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';
	            case 'ss':
	                // 9 seconds / in 9 seconds / 9 seconds ago
	                if (withoutSuffix || isFuture) {
	                    return result + (plural(number) ? 'sekundy' : 'sekúnd');
	                } else {
	                    return result + 'sekundami';
	                }
	            case 'm':
	                // a minute / in a minute / a minute ago
	                return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';
	            case 'mm':
	                // 9 minutes / in 9 minutes / 9 minutes ago
	                if (withoutSuffix || isFuture) {
	                    return result + (plural(number) ? 'minúty' : 'minút');
	                } else {
	                    return result + 'minútami';
	                }
	            case 'h':
	                // an hour / in an hour / an hour ago
	                return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
	            case 'hh':
	                // 9 hours / in 9 hours / 9 hours ago
	                if (withoutSuffix || isFuture) {
	                    return result + (plural(number) ? 'hodiny' : 'hodín');
	                } else {
	                    return result + 'hodinami';
	                }
	            case 'd':
	                // a day / in a day / a day ago
	                return withoutSuffix || isFuture ? 'deň' : 'dňom';
	            case 'dd':
	                // 9 days / in 9 days / 9 days ago
	                if (withoutSuffix || isFuture) {
	                    return result + (plural(number) ? 'dni' : 'dní');
	                } else {
	                    return result + 'dňami';
	                }
	            case 'M':
	                // a month / in a month / a month ago
	                return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';
	            case 'MM':
	                // 9 months / in 9 months / 9 months ago
	                if (withoutSuffix || isFuture) {
	                    return result + (plural(number) ? 'mesiace' : 'mesiacov');
	                } else {
	                    return result + 'mesiacmi';
	                }
	            case 'y':
	                // a year / in a year / a year ago
	                return withoutSuffix || isFuture ? 'rok' : 'rokom';
	            case 'yy':
	                // 9 years / in 9 years / 9 years ago
	                if (withoutSuffix || isFuture) {
	                    return result + (plural(number) ? 'roky' : 'rokov');
	                } else {
	                    return result + 'rokmi';
	                }
	        }
	    }
	
	    var sk = moment.defineLocale('sk', {
	        months: months,
	        monthsShort: monthsShort,
	        weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
	        weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),
	        weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),
	        longDateFormat: {
	            LT: 'H:mm',
	            LTS: 'H:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D. MMMM YYYY',
	            LLL: 'D. MMMM YYYY H:mm',
	            LLLL: 'dddd D. MMMM YYYY H:mm'
	        },
	        calendar: {
	            sameDay: '[dnes o] LT',
	            nextDay: '[zajtra o] LT',
	            nextWeek: function nextWeek() {
	                switch (this.day()) {
	                    case 0:
	                        return '[v nedeľu o] LT';
	                    case 1:
	                    case 2:
	                        return '[v] dddd [o] LT';
	                    case 3:
	                        return '[v stredu o] LT';
	                    case 4:
	                        return '[vo štvrtok o] LT';
	                    case 5:
	                        return '[v piatok o] LT';
	                    case 6:
	                        return '[v sobotu o] LT';
	                }
	            },
	            lastDay: '[včera o] LT',
	            lastWeek: function lastWeek() {
	                switch (this.day()) {
	                    case 0:
	                        return '[minulú nedeľu o] LT';
	                    case 1:
	                    case 2:
	                        return '[minulý] dddd [o] LT';
	                    case 3:
	                        return '[minulú stredu o] LT';
	                    case 4:
	                    case 5:
	                        return '[minulý] dddd [o] LT';
	                    case 6:
	                        return '[minulú sobotu o] LT';
	                }
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'za %s',
	            past: 'pred %s',
	            s: translate,
	            ss: translate,
	            m: translate,
	            mm: translate,
	            h: translate,
	            hh: translate,
	            d: translate,
	            dd: translate,
	            M: translate,
	            MM: translate,
	            y: translate,
	            yy: translate
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return sk;
	});

/***/ }),
/* 408 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Slovenian [sl]
	//! author : Robert Sedovšek : https://github.com/sedovsek
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    function processRelativeTime(number, withoutSuffix, key, isFuture) {
	        var result = number + ' ';
	        switch (key) {
	            case 's':
	                return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
	            case 'ss':
	                if (number === 1) {
	                    result += withoutSuffix ? 'sekundo' : 'sekundi';
	                } else if (number === 2) {
	                    result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
	                } else if (number < 5) {
	                    result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
	                } else {
	                    result += 'sekund';
	                }
	                return result;
	            case 'm':
	                return withoutSuffix ? 'ena minuta' : 'eno minuto';
	            case 'mm':
	                if (number === 1) {
	                    result += withoutSuffix ? 'minuta' : 'minuto';
	                } else if (number === 2) {
	                    result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
	                } else if (number < 5) {
	                    result += withoutSuffix || isFuture ? 'minute' : 'minutami';
	                } else {
	                    result += withoutSuffix || isFuture ? 'minut' : 'minutami';
	                }
	                return result;
	            case 'h':
	                return withoutSuffix ? 'ena ura' : 'eno uro';
	            case 'hh':
	                if (number === 1) {
	                    result += withoutSuffix ? 'ura' : 'uro';
	                } else if (number === 2) {
	                    result += withoutSuffix || isFuture ? 'uri' : 'urama';
	                } else if (number < 5) {
	                    result += withoutSuffix || isFuture ? 'ure' : 'urami';
	                } else {
	                    result += withoutSuffix || isFuture ? 'ur' : 'urami';
	                }
	                return result;
	            case 'd':
	                return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
	            case 'dd':
	                if (number === 1) {
	                    result += withoutSuffix || isFuture ? 'dan' : 'dnem';
	                } else if (number === 2) {
	                    result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
	                } else {
	                    result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
	                }
	                return result;
	            case 'M':
	                return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
	            case 'MM':
	                if (number === 1) {
	                    result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
	                } else if (number === 2) {
	                    result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
	                } else if (number < 5) {
	                    result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
	                } else {
	                    result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
	                }
	                return result;
	            case 'y':
	                return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
	            case 'yy':
	                if (number === 1) {
	                    result += withoutSuffix || isFuture ? 'leto' : 'letom';
	                } else if (number === 2) {
	                    result += withoutSuffix || isFuture ? 'leti' : 'letoma';
	                } else if (number < 5) {
	                    result += withoutSuffix || isFuture ? 'leta' : 'leti';
	                } else {
	                    result += withoutSuffix || isFuture ? 'let' : 'leti';
	                }
	                return result;
	        }
	    }
	
	    var sl = moment.defineLocale('sl', {
	        months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
	        monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
	        weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
	        weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'H:mm',
	            LTS: 'H:mm:ss',
	            L: 'DD. MM. YYYY',
	            LL: 'D. MMMM YYYY',
	            LLL: 'D. MMMM YYYY H:mm',
	            LLLL: 'dddd, D. MMMM YYYY H:mm'
	        },
	        calendar: {
	            sameDay: '[danes ob] LT',
	            nextDay: '[jutri ob] LT',
	
	            nextWeek: function nextWeek() {
	                switch (this.day()) {
	                    case 0:
	                        return '[v] [nedeljo] [ob] LT';
	                    case 3:
	                        return '[v] [sredo] [ob] LT';
	                    case 6:
	                        return '[v] [soboto] [ob] LT';
	                    case 1:
	                    case 2:
	                    case 4:
	                    case 5:
	                        return '[v] dddd [ob] LT';
	                }
	            },
	            lastDay: '[včeraj ob] LT',
	            lastWeek: function lastWeek() {
	                switch (this.day()) {
	                    case 0:
	                        return '[prejšnjo] [nedeljo] [ob] LT';
	                    case 3:
	                        return '[prejšnjo] [sredo] [ob] LT';
	                    case 6:
	                        return '[prejšnjo] [soboto] [ob] LT';
	                    case 1:
	                    case 2:
	                    case 4:
	                    case 5:
	                        return '[prejšnji] dddd [ob] LT';
	                }
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'čez %s',
	            past: 'pred %s',
	            s: processRelativeTime,
	            ss: processRelativeTime,
	            m: processRelativeTime,
	            mm: processRelativeTime,
	            h: processRelativeTime,
	            hh: processRelativeTime,
	            d: processRelativeTime,
	            dd: processRelativeTime,
	            M: processRelativeTime,
	            MM: processRelativeTime,
	            y: processRelativeTime,
	            yy: processRelativeTime
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return sl;
	});

/***/ }),
/* 409 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Albanian [sq]
	//! author : Flakërim Ismani : https://github.com/flakerimi
	//! author : Menelion Elensúle : https://github.com/Oire
	//! author : Oerd Cukalla : https://github.com/oerd
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var sq = moment.defineLocale('sq', {
	        months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
	        monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
	        weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
	        weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
	        weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),
	        weekdaysParseExact: true,
	        meridiemParse: /PD|MD/,
	        isPM: function isPM(input) {
	            return input.charAt(0) === 'M';
	        },
	        meridiem: function meridiem(hours, minutes, isLower) {
	            return hours < 12 ? 'PD' : 'MD';
	        },
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[Sot në] LT',
	            nextDay: '[Nesër në] LT',
	            nextWeek: 'dddd [në] LT',
	            lastDay: '[Dje në] LT',
	            lastWeek: 'dddd [e kaluar në] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'në %s',
	            past: '%s më parë',
	            s: 'disa sekonda',
	            ss: '%d sekonda',
	            m: 'një minutë',
	            mm: '%d minuta',
	            h: 'një orë',
	            hh: '%d orë',
	            d: 'një ditë',
	            dd: '%d ditë',
	            M: 'një muaj',
	            MM: '%d muaj',
	            y: 'një vit',
	            yy: '%d vite'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return sq;
	});

/***/ }),
/* 410 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Serbian Cyrillic [sr-cyrl]
	//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
	//! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var translator = {
	        words: {
	            //Different grammatical cases
	            ss: ['секунда', 'секунде', 'секунди'],
	            m: ['један минут', 'једног минута'],
	            mm: ['минут', 'минута', 'минута'],
	            h: ['један сат', 'једног сата'],
	            hh: ['сат', 'сата', 'сати'],
	            d: ['један дан', 'једног дана'],
	            dd: ['дан', 'дана', 'дана'],
	            M: ['један месец', 'једног месеца'],
	            MM: ['месец', 'месеца', 'месеци'],
	            y: ['једну годину', 'једне године'],
	            yy: ['годину', 'године', 'година']
	        },
	        correctGrammaticalCase: function correctGrammaticalCase(number, wordKey) {
	            if (number % 10 >= 1 && number % 10 <= 4 && (number % 100 < 10 || number % 100 >= 20)) {
	                return number % 10 === 1 ? wordKey[0] : wordKey[1];
	            }
	            return wordKey[2];
	        },
	        translate: function translate(number, withoutSuffix, key, isFuture) {
	            var wordKey = translator.words[key],
	                word;
	
	            if (key.length === 1) {
	                // Nominativ
	                if (key === 'y' && withoutSuffix) return 'једна година';
	                return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];
	            }
	
	            word = translator.correctGrammaticalCase(number, wordKey);
	            // Nominativ
	            if (key === 'yy' && withoutSuffix && word === 'годину') {
	                return number + ' година';
	            }
	
	            return number + ' ' + word;
	        }
	    };
	
	    var srCyrl = moment.defineLocale('sr-cyrl', {
	        months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),
	        monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
	        weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
	        weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'H:mm',
	            LTS: 'H:mm:ss',
	            L: 'D. M. YYYY.',
	            LL: 'D. MMMM YYYY.',
	            LLL: 'D. MMMM YYYY. H:mm',
	            LLLL: 'dddd, D. MMMM YYYY. H:mm'
	        },
	        calendar: {
	            sameDay: '[данас у] LT',
	            nextDay: '[сутра у] LT',
	            nextWeek: function nextWeek() {
	                switch (this.day()) {
	                    case 0:
	                        return '[у] [недељу] [у] LT';
	                    case 3:
	                        return '[у] [среду] [у] LT';
	                    case 6:
	                        return '[у] [суботу] [у] LT';
	                    case 1:
	                    case 2:
	                    case 4:
	                    case 5:
	                        return '[у] dddd [у] LT';
	                }
	            },
	            lastDay: '[јуче у] LT',
	            lastWeek: function lastWeek() {
	                var lastWeekDays = ['[прошле] [недеље] [у] LT', '[прошлог] [понедељка] [у] LT', '[прошлог] [уторка] [у] LT', '[прошле] [среде] [у] LT', '[прошлог] [четвртка] [у] LT', '[прошлог] [петка] [у] LT', '[прошле] [суботе] [у] LT'];
	                return lastWeekDays[this.day()];
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'за %s',
	            past: 'пре %s',
	            s: 'неколико секунди',
	            ss: translator.translate,
	            m: translator.translate,
	            mm: translator.translate,
	            h: translator.translate,
	            hh: translator.translate,
	            d: translator.translate,
	            dd: translator.translate,
	            M: translator.translate,
	            MM: translator.translate,
	            y: translator.translate,
	            yy: translator.translate
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 1st is the first week of the year.
	        }
	    });
	
	    return srCyrl;
	});

/***/ }),
/* 411 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Serbian [sr]
	//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
	//! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var translator = {
	        words: {
	            //Different grammatical cases
	            ss: ['sekunda', 'sekunde', 'sekundi'],
	            m: ['jedan minut', 'jednog minuta'],
	            mm: ['minut', 'minuta', 'minuta'],
	            h: ['jedan sat', 'jednog sata'],
	            hh: ['sat', 'sata', 'sati'],
	            d: ['jedan dan', 'jednog dana'],
	            dd: ['dan', 'dana', 'dana'],
	            M: ['jedan mesec', 'jednog meseca'],
	            MM: ['mesec', 'meseca', 'meseci'],
	            y: ['jednu godinu', 'jedne godine'],
	            yy: ['godinu', 'godine', 'godina']
	        },
	        correctGrammaticalCase: function correctGrammaticalCase(number, wordKey) {
	            if (number % 10 >= 1 && number % 10 <= 4 && (number % 100 < 10 || number % 100 >= 20)) {
	                return number % 10 === 1 ? wordKey[0] : wordKey[1];
	            }
	            return wordKey[2];
	        },
	        translate: function translate(number, withoutSuffix, key, isFuture) {
	            var wordKey = translator.words[key],
	                word;
	
	            if (key.length === 1) {
	                // Nominativ
	                if (key === 'y' && withoutSuffix) return 'jedna godina';
	                return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];
	            }
	
	            word = translator.correctGrammaticalCase(number, wordKey);
	            // Nominativ
	            if (key === 'yy' && withoutSuffix && word === 'godinu') {
	                return number + ' godina';
	            }
	
	            return number + ' ' + word;
	        }
	    };
	
	    var sr = moment.defineLocale('sr', {
	        months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
	        monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),
	        weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
	        weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'H:mm',
	            LTS: 'H:mm:ss',
	            L: 'D. M. YYYY.',
	            LL: 'D. MMMM YYYY.',
	            LLL: 'D. MMMM YYYY. H:mm',
	            LLLL: 'dddd, D. MMMM YYYY. H:mm'
	        },
	        calendar: {
	            sameDay: '[danas u] LT',
	            nextDay: '[sutra u] LT',
	            nextWeek: function nextWeek() {
	                switch (this.day()) {
	                    case 0:
	                        return '[u] [nedelju] [u] LT';
	                    case 3:
	                        return '[u] [sredu] [u] LT';
	                    case 6:
	                        return '[u] [subotu] [u] LT';
	                    case 1:
	                    case 2:
	                    case 4:
	                    case 5:
	                        return '[u] dddd [u] LT';
	                }
	            },
	            lastDay: '[juče u] LT',
	            lastWeek: function lastWeek() {
	                var lastWeekDays = ['[prošle] [nedelje] [u] LT', '[prošlog] [ponedeljka] [u] LT', '[prošlog] [utorka] [u] LT', '[prošle] [srede] [u] LT', '[prošlog] [četvrtka] [u] LT', '[prošlog] [petka] [u] LT', '[prošle] [subote] [u] LT'];
	                return lastWeekDays[this.day()];
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'za %s',
	            past: 'pre %s',
	            s: 'nekoliko sekundi',
	            ss: translator.translate,
	            m: translator.translate,
	            mm: translator.translate,
	            h: translator.translate,
	            hh: translator.translate,
	            d: translator.translate,
	            dd: translator.translate,
	            M: translator.translate,
	            MM: translator.translate,
	            y: translator.translate,
	            yy: translator.translate
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return sr;
	});

/***/ }),
/* 412 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : siSwati [ss]
	//! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var ss = moment.defineLocale('ss', {
	        months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'),
	        monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
	        weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),
	        weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
	        weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'h:mm A',
	            LTS: 'h:mm:ss A',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY h:mm A',
	            LLLL: 'dddd, D MMMM YYYY h:mm A'
	        },
	        calendar: {
	            sameDay: '[Namuhla nga] LT',
	            nextDay: '[Kusasa nga] LT',
	            nextWeek: 'dddd [nga] LT',
	            lastDay: '[Itolo nga] LT',
	            lastWeek: 'dddd [leliphelile] [nga] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'nga %s',
	            past: 'wenteka nga %s',
	            s: 'emizuzwana lomcane',
	            ss: '%d mzuzwana',
	            m: 'umzuzu',
	            mm: '%d emizuzu',
	            h: 'lihora',
	            hh: '%d emahora',
	            d: 'lilanga',
	            dd: '%d emalanga',
	            M: 'inyanga',
	            MM: '%d tinyanga',
	            y: 'umnyaka',
	            yy: '%d iminyaka'
	        },
	        meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
	        meridiem: function meridiem(hours, minutes, isLower) {
	            if (hours < 11) {
	                return 'ekuseni';
	            } else if (hours < 15) {
	                return 'emini';
	            } else if (hours < 19) {
	                return 'entsambama';
	            } else {
	                return 'ebusuku';
	            }
	        },
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === 'ekuseni') {
	                return hour;
	            } else if (meridiem === 'emini') {
	                return hour >= 11 ? hour : hour + 12;
	            } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
	                if (hour === 0) {
	                    return 0;
	                }
	                return hour + 12;
	            }
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}/,
	        ordinal: '%d',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return ss;
	});

/***/ }),
/* 413 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Swedish [sv]
	//! author : Jens Alm : https://github.com/ulmus
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var sv = moment.defineLocale('sv', {
	        months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
	        monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
	        weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
	        weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
	        weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'YYYY-MM-DD',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY [kl.] HH:mm',
	            LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
	            lll: 'D MMM YYYY HH:mm',
	            llll: 'ddd D MMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[Idag] LT',
	            nextDay: '[Imorgon] LT',
	            lastDay: '[Igår] LT',
	            nextWeek: '[På] dddd LT',
	            lastWeek: '[I] dddd[s] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'om %s',
	            past: 'för %s sedan',
	            s: 'några sekunder',
	            ss: '%d sekunder',
	            m: 'en minut',
	            mm: '%d minuter',
	            h: 'en timme',
	            hh: '%d timmar',
	            d: 'en dag',
	            dd: '%d dagar',
	            M: 'en månad',
	            MM: '%d månader',
	            y: 'ett år',
	            yy: '%d år'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
	        ordinal: function ordinal(number) {
	            var b = number % 10,
	                output = ~~(number % 100 / 10) === 1 ? ':e' : b === 1 ? ':a' : b === 2 ? ':a' : b === 3 ? ':e' : ':e';
	            return number + output;
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return sv;
	});

/***/ }),
/* 414 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Swahili [sw]
	//! author : Fahad Kassim : https://github.com/fadsel
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var sw = moment.defineLocale('sw', {
	        months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
	        monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
	        weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
	        weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
	        weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'hh:mm A',
	            LTS: 'HH:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[leo saa] LT',
	            nextDay: '[kesho saa] LT',
	            nextWeek: '[wiki ijayo] dddd [saat] LT',
	            lastDay: '[jana] LT',
	            lastWeek: '[wiki iliyopita] dddd [saat] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s baadaye',
	            past: 'tokea %s',
	            s: 'hivi punde',
	            ss: 'sekunde %d',
	            m: 'dakika moja',
	            mm: 'dakika %d',
	            h: 'saa limoja',
	            hh: 'masaa %d',
	            d: 'siku moja',
	            dd: 'siku %d',
	            M: 'mwezi mmoja',
	            MM: 'miezi %d',
	            y: 'mwaka mmoja',
	            yy: 'miaka %d'
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return sw;
	});

/***/ }),
/* 415 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Tamil [ta]
	//! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var symbolMap = {
	        1: '௧',
	        2: '௨',
	        3: '௩',
	        4: '௪',
	        5: '௫',
	        6: '௬',
	        7: '௭',
	        8: '௮',
	        9: '௯',
	        0: '௦'
	    },
	        numberMap = {
	        '௧': '1',
	        '௨': '2',
	        '௩': '3',
	        '௪': '4',
	        '௫': '5',
	        '௬': '6',
	        '௭': '7',
	        '௮': '8',
	        '௯': '9',
	        '௦': '0'
	    };
	
	    var ta = moment.defineLocale('ta', {
	        months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
	        monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
	        weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
	        weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
	        weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY, HH:mm',
	            LLLL: 'dddd, D MMMM YYYY, HH:mm'
	        },
	        calendar: {
	            sameDay: '[இன்று] LT',
	            nextDay: '[நாளை] LT',
	            nextWeek: 'dddd, LT',
	            lastDay: '[நேற்று] LT',
	            lastWeek: '[கடந்த வாரம்] dddd, LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s இல்',
	            past: '%s முன்',
	            s: 'ஒரு சில விநாடிகள்',
	            ss: '%d விநாடிகள்',
	            m: 'ஒரு நிமிடம்',
	            mm: '%d நிமிடங்கள்',
	            h: 'ஒரு மணி நேரம்',
	            hh: '%d மணி நேரம்',
	            d: 'ஒரு நாள்',
	            dd: '%d நாட்கள்',
	            M: 'ஒரு மாதம்',
	            MM: '%d மாதங்கள்',
	            y: 'ஒரு வருடம்',
	            yy: '%d ஆண்டுகள்'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}வது/,
	        ordinal: function ordinal(number) {
	            return number + 'வது';
	        },
	        preparse: function preparse(string) {
	            return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
	                return numberMap[match];
	            });
	        },
	        postformat: function postformat(string) {
	            return string.replace(/\d/g, function (match) {
	                return symbolMap[match];
	            });
	        },
	        // refer http://ta.wikipedia.org/s/1er1
	        meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 2) {
	                return ' யாமம்';
	            } else if (hour < 6) {
	                return ' வைகறை'; // வைகறை
	            } else if (hour < 10) {
	                return ' காலை'; // காலை
	            } else if (hour < 14) {
	                return ' நண்பகல்'; // நண்பகல்
	            } else if (hour < 18) {
	                return ' எற்பாடு'; // எற்பாடு
	            } else if (hour < 22) {
	                return ' மாலை'; // மாலை
	            } else {
	                return ' யாமம்';
	            }
	        },
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === 'யாமம்') {
	                return hour < 2 ? hour : hour + 12;
	            } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
	                return hour;
	            } else if (meridiem === 'நண்பகல்') {
	                return hour >= 10 ? hour : hour + 12;
	            } else {
	                return hour + 12;
	            }
	        },
	        week: {
	            dow: 0, // Sunday is the first day of the week.
	            doy: 6 // The week that contains Jan 6th is the first week of the year.
	        }
	    });
	
	    return ta;
	});

/***/ }),
/* 416 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Telugu [te]
	//! author : Krishna Chaitanya Thota : https://github.com/kcthota
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var te = moment.defineLocale('te', {
	        months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),
	        monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),
	        weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
	        weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
	        longDateFormat: {
	            LT: 'A h:mm',
	            LTS: 'A h:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY, A h:mm',
	            LLLL: 'dddd, D MMMM YYYY, A h:mm'
	        },
	        calendar: {
	            sameDay: '[నేడు] LT',
	            nextDay: '[రేపు] LT',
	            nextWeek: 'dddd, LT',
	            lastDay: '[నిన్న] LT',
	            lastWeek: '[గత] dddd, LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s లో',
	            past: '%s క్రితం',
	            s: 'కొన్ని క్షణాలు',
	            ss: '%d సెకన్లు',
	            m: 'ఒక నిమిషం',
	            mm: '%d నిమిషాలు',
	            h: 'ఒక గంట',
	            hh: '%d గంటలు',
	            d: 'ఒక రోజు',
	            dd: '%d రోజులు',
	            M: 'ఒక నెల',
	            MM: '%d నెలలు',
	            y: 'ఒక సంవత్సరం',
	            yy: '%d సంవత్సరాలు'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}వ/,
	        ordinal: '%dవ',
	        meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === 'రాత్రి') {
	                return hour < 4 ? hour : hour + 12;
	            } else if (meridiem === 'ఉదయం') {
	                return hour;
	            } else if (meridiem === 'మధ్యాహ్నం') {
	                return hour >= 10 ? hour : hour + 12;
	            } else if (meridiem === 'సాయంత్రం') {
	                return hour + 12;
	            }
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 4) {
	                return 'రాత్రి';
	            } else if (hour < 10) {
	                return 'ఉదయం';
	            } else if (hour < 17) {
	                return 'మధ్యాహ్నం';
	            } else if (hour < 20) {
	                return 'సాయంత్రం';
	            } else {
	                return 'రాత్రి';
	            }
	        },
	        week: {
	            dow: 0, // Sunday is the first day of the week.
	            doy: 6 // The week that contains Jan 6th is the first week of the year.
	        }
	    });
	
	    return te;
	});

/***/ }),
/* 417 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Tetun Dili (East Timor) [tet]
	//! author : Joshua Brooks : https://github.com/joshbrooks
	//! author : Onorio De J. Afonso : https://github.com/marobo
	//! author : Sonia Simoes : https://github.com/soniasimoes
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var tet = moment.defineLocale('tet', {
	        months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split('_'),
	        monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
	        weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
	        weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
	        weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[Ohin iha] LT',
	            nextDay: '[Aban iha] LT',
	            nextWeek: 'dddd [iha] LT',
	            lastDay: '[Horiseik iha] LT',
	            lastWeek: 'dddd [semana kotuk] [iha] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'iha %s',
	            past: '%s liuba',
	            s: 'segundu balun',
	            ss: 'segundu %d',
	            m: 'minutu ida',
	            mm: 'minutu %d',
	            h: 'oras ida',
	            hh: 'oras %d',
	            d: 'loron ida',
	            dd: 'loron %d',
	            M: 'fulan ida',
	            MM: 'fulan %d',
	            y: 'tinan ida',
	            yy: 'tinan %d'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
	        ordinal: function ordinal(number) {
	            var b = number % 10,
	                output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
	            return number + output;
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return tet;
	});

/***/ }),
/* 418 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Tajik [tg]
	//! author : Orif N. Jr. : https://github.com/orif-jr
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var suffixes = {
	        0: '-ум',
	        1: '-ум',
	        2: '-юм',
	        3: '-юм',
	        4: '-ум',
	        5: '-ум',
	        6: '-ум',
	        7: '-ум',
	        8: '-ум',
	        9: '-ум',
	        10: '-ум',
	        12: '-ум',
	        13: '-ум',
	        20: '-ум',
	        30: '-юм',
	        40: '-ум',
	        50: '-ум',
	        60: '-ум',
	        70: '-ум',
	        80: '-ум',
	        90: '-ум',
	        100: '-ум'
	    };
	
	    var tg = moment.defineLocale('tg', {
	        months: {
	            format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split('_'),
	            standalone: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_')
	        },
	        monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
	        weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split('_'),
	        weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
	        weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[Имрӯз соати] LT',
	            nextDay: '[Фардо соати] LT',
	            lastDay: '[Дирӯз соати] LT',
	            nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
	            lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'баъди %s',
	            past: '%s пеш',
	            s: 'якчанд сония',
	            m: 'як дақиқа',
	            mm: '%d дақиқа',
	            h: 'як соат',
	            hh: '%d соат',
	            d: 'як рӯз',
	            dd: '%d рӯз',
	            M: 'як моҳ',
	            MM: '%d моҳ',
	            y: 'як сол',
	            yy: '%d сол'
	        },
	        meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === 'шаб') {
	                return hour < 4 ? hour : hour + 12;
	            } else if (meridiem === 'субҳ') {
	                return hour;
	            } else if (meridiem === 'рӯз') {
	                return hour >= 11 ? hour : hour + 12;
	            } else if (meridiem === 'бегоҳ') {
	                return hour + 12;
	            }
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 4) {
	                return 'шаб';
	            } else if (hour < 11) {
	                return 'субҳ';
	            } else if (hour < 16) {
	                return 'рӯз';
	            } else if (hour < 19) {
	                return 'бегоҳ';
	            } else {
	                return 'шаб';
	            }
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
	        ordinal: function ordinal(number) {
	            var a = number % 10,
	                b = number >= 100 ? 100 : null;
	            return number + (suffixes[number] || suffixes[a] || suffixes[b]);
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 1th is the first week of the year.
	        }
	    });
	
	    return tg;
	});

/***/ }),
/* 419 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Thai [th]
	//! author : Kridsada Thanabulpong : https://github.com/sirn
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var th = moment.defineLocale('th', {
	        months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
	        monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
	        weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
	        weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'H:mm',
	            LTS: 'H:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY เวลา H:mm',
	            LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm'
	        },
	        meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
	        isPM: function isPM(input) {
	            return input === 'หลังเที่ยง';
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 12) {
	                return 'ก่อนเที่ยง';
	            } else {
	                return 'หลังเที่ยง';
	            }
	        },
	        calendar: {
	            sameDay: '[วันนี้ เวลา] LT',
	            nextDay: '[พรุ่งนี้ เวลา] LT',
	            nextWeek: 'dddd[หน้า เวลา] LT',
	            lastDay: '[เมื่อวานนี้ เวลา] LT',
	            lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'อีก %s',
	            past: '%sที่แล้ว',
	            s: 'ไม่กี่วินาที',
	            ss: '%d วินาที',
	            m: '1 นาที',
	            mm: '%d นาที',
	            h: '1 ชั่วโมง',
	            hh: '%d ชั่วโมง',
	            d: '1 วัน',
	            dd: '%d วัน',
	            w: '1 สัปดาห์',
	            ww: '%d สัปดาห์',
	            M: '1 เดือน',
	            MM: '%d เดือน',
	            y: '1 ปี',
	            yy: '%d ปี'
	        }
	    });
	
	    return th;
	});

/***/ }),
/* 420 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Turkmen [tk]
	//! author : Atamyrat Abdyrahmanov : https://github.com/atamyratabdy
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var suffixes = {
	        1: "'inji",
	        5: "'inji",
	        8: "'inji",
	        70: "'inji",
	        80: "'inji",
	        2: "'nji",
	        7: "'nji",
	        20: "'nji",
	        50: "'nji",
	        3: "'ünji",
	        4: "'ünji",
	        100: "'ünji",
	        6: "'njy",
	        9: "'unjy",
	        10: "'unjy",
	        30: "'unjy",
	        60: "'ynjy",
	        90: "'ynjy"
	    };
	
	    var tk = moment.defineLocale('tk', {
	        months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split('_'),
	        monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),
	        weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split('_'),
	        weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),
	        weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[bugün sagat] LT',
	            nextDay: '[ertir sagat] LT',
	            nextWeek: '[indiki] dddd [sagat] LT',
	            lastDay: '[düýn] LT',
	            lastWeek: '[geçen] dddd [sagat] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s soň',
	            past: '%s öň',
	            s: 'birnäçe sekunt',
	            m: 'bir minut',
	            mm: '%d minut',
	            h: 'bir sagat',
	            hh: '%d sagat',
	            d: 'bir gün',
	            dd: '%d gün',
	            M: 'bir aý',
	            MM: '%d aý',
	            y: 'bir ýyl',
	            yy: '%d ýyl'
	        },
	        ordinal: function ordinal(number, period) {
	            switch (period) {
	                case 'd':
	                case 'D':
	                case 'Do':
	                case 'DD':
	                    return number;
	                default:
	                    if (number === 0) {
	                        // special case for zero
	                        return number + "'unjy";
	                    }
	                    var a = number % 10,
	                        b = number % 100 - a,
	                        c = number >= 100 ? 100 : null;
	                    return number + (suffixes[a] || suffixes[b] || suffixes[c]);
	            }
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return tk;
	});

/***/ }),
/* 421 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Tagalog (Philippines) [tl-ph]
	//! author : Dan Hagman : https://github.com/hagmandan
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var tlPh = moment.defineLocale('tl-ph', {
	        months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
	        monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
	        weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
	        weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
	        weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'MM/D/YYYY',
	            LL: 'MMMM D, YYYY',
	            LLL: 'MMMM D, YYYY HH:mm',
	            LLLL: 'dddd, MMMM DD, YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: 'LT [ngayong araw]',
	            nextDay: '[Bukas ng] LT',
	            nextWeek: 'LT [sa susunod na] dddd',
	            lastDay: 'LT [kahapon]',
	            lastWeek: 'LT [noong nakaraang] dddd',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'sa loob ng %s',
	            past: '%s ang nakalipas',
	            s: 'ilang segundo',
	            ss: '%d segundo',
	            m: 'isang minuto',
	            mm: '%d minuto',
	            h: 'isang oras',
	            hh: '%d oras',
	            d: 'isang araw',
	            dd: '%d araw',
	            M: 'isang buwan',
	            MM: '%d buwan',
	            y: 'isang taon',
	            yy: '%d taon'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}/,
	        ordinal: function ordinal(number) {
	            return number;
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return tlPh;
	});

/***/ }),
/* 422 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Klingon [tlh]
	//! author : Dominika Kruk : https://github.com/amaranthrose
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
	
	    function translateFuture(output) {
	        var time = output;
	        time = output.indexOf('jaj') !== -1 ? time.slice(0, -3) + 'leS' : output.indexOf('jar') !== -1 ? time.slice(0, -3) + 'waQ' : output.indexOf('DIS') !== -1 ? time.slice(0, -3) + 'nem' : time + ' pIq';
	        return time;
	    }
	
	    function translatePast(output) {
	        var time = output;
	        time = output.indexOf('jaj') !== -1 ? time.slice(0, -3) + 'Hu’' : output.indexOf('jar') !== -1 ? time.slice(0, -3) + 'wen' : output.indexOf('DIS') !== -1 ? time.slice(0, -3) + 'ben' : time + ' ret';
	        return time;
	    }
	
	    function translate(number, withoutSuffix, string, isFuture) {
	        var numberNoun = numberAsNoun(number);
	        switch (string) {
	            case 'ss':
	                return numberNoun + ' lup';
	            case 'mm':
	                return numberNoun + ' tup';
	            case 'hh':
	                return numberNoun + ' rep';
	            case 'dd':
	                return numberNoun + ' jaj';
	            case 'MM':
	                return numberNoun + ' jar';
	            case 'yy':
	                return numberNoun + ' DIS';
	        }
	    }
	
	    function numberAsNoun(number) {
	        var hundred = Math.floor(number % 1000 / 100),
	            ten = Math.floor(number % 100 / 10),
	            one = number % 10,
	            word = '';
	        if (hundred > 0) {
	            word += numbersNouns[hundred] + 'vatlh';
	        }
	        if (ten > 0) {
	            word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';
	        }
	        if (one > 0) {
	            word += (word !== '' ? ' ' : '') + numbersNouns[one];
	        }
	        return word === '' ? 'pagh' : word;
	    }
	
	    var tlh = moment.defineLocale('tlh', {
	        months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split('_'),
	        monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
	        weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
	        weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[DaHjaj] LT',
	            nextDay: '[wa’leS] LT',
	            nextWeek: 'LLL',
	            lastDay: '[wa’Hu’] LT',
	            lastWeek: 'LLL',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: translateFuture,
	            past: translatePast,
	            s: 'puS lup',
	            ss: translate,
	            m: 'wa’ tup',
	            mm: translate,
	            h: 'wa’ rep',
	            hh: translate,
	            d: 'wa’ jaj',
	            dd: translate,
	            M: 'wa’ jar',
	            MM: translate,
	            y: 'wa’ DIS',
	            yy: translate
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return tlh;
	});

/***/ }),
/* 423 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Turkish [tr]
	//! authors : Erhan Gundogan : https://github.com/erhangundogan,
	//!           Burak Yiğit Kaya: https://github.com/BYK
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var suffixes = {
	        1: "'inci",
	        5: "'inci",
	        8: "'inci",
	        70: "'inci",
	        80: "'inci",
	        2: "'nci",
	        7: "'nci",
	        20: "'nci",
	        50: "'nci",
	        3: "'üncü",
	        4: "'üncü",
	        100: "'üncü",
	        6: "'ncı",
	        9: "'uncu",
	        10: "'uncu",
	        30: "'uncu",
	        60: "'ıncı",
	        90: "'ıncı"
	    };
	
	    var tr = moment.defineLocale('tr', {
	        months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
	        monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
	        weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
	        weekdaysShort: 'Paz_Pzt_Sal_Çar_Per_Cum_Cmt'.split('_'),
	        weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
	        meridiem: function meridiem(hours, minutes, isLower) {
	            if (hours < 12) {
	                return isLower ? 'öö' : 'ÖÖ';
	            } else {
	                return isLower ? 'ös' : 'ÖS';
	            }
	        },
	        meridiemParse: /öö|ÖÖ|ös|ÖS/,
	        isPM: function isPM(input) {
	            return input === 'ös' || input === 'ÖS';
	        },
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[bugün saat] LT',
	            nextDay: '[yarın saat] LT',
	            nextWeek: '[gelecek] dddd [saat] LT',
	            lastDay: '[dün] LT',
	            lastWeek: '[geçen] dddd [saat] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s sonra',
	            past: '%s önce',
	            s: 'birkaç saniye',
	            ss: '%d saniye',
	            m: 'bir dakika',
	            mm: '%d dakika',
	            h: 'bir saat',
	            hh: '%d saat',
	            d: 'bir gün',
	            dd: '%d gün',
	            w: 'bir hafta',
	            ww: '%d hafta',
	            M: 'bir ay',
	            MM: '%d ay',
	            y: 'bir yıl',
	            yy: '%d yıl'
	        },
	        ordinal: function ordinal(number, period) {
	            switch (period) {
	                case 'd':
	                case 'D':
	                case 'Do':
	                case 'DD':
	                    return number;
	                default:
	                    if (number === 0) {
	                        // special case for zero
	                        return number + "'ıncı";
	                    }
	                    var a = number % 10,
	                        b = number % 100 - a,
	                        c = number >= 100 ? 100 : null;
	                    return number + (suffixes[a] || suffixes[b] || suffixes[c]);
	            }
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return tr;
	});

/***/ }),
/* 424 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Talossan [tzl]
	//! author : Robin van der Vliet : https://github.com/robin0van0der0v
	//! author : Iustì Canun
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
	    // This is currently too difficult (maybe even impossible) to add.
	
	    var tzl = moment.defineLocale('tzl', {
	        months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),
	        monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
	        weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
	        weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
	        weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
	        longDateFormat: {
	            LT: 'HH.mm',
	            LTS: 'HH.mm.ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D. MMMM [dallas] YYYY',
	            LLL: 'D. MMMM [dallas] YYYY HH.mm',
	            LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'
	        },
	        meridiemParse: /d\'o|d\'a/i,
	        isPM: function isPM(input) {
	            return "d'o" === input.toLowerCase();
	        },
	        meridiem: function meridiem(hours, minutes, isLower) {
	            if (hours > 11) {
	                return isLower ? "d'o" : "D'O";
	            } else {
	                return isLower ? "d'a" : "D'A";
	            }
	        },
	        calendar: {
	            sameDay: '[oxhi à] LT',
	            nextDay: '[demà à] LT',
	            nextWeek: 'dddd [à] LT',
	            lastDay: '[ieiri à] LT',
	            lastWeek: '[sür el] dddd [lasteu à] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'osprei %s',
	            past: 'ja%s',
	            s: processRelativeTime,
	            ss: processRelativeTime,
	            m: processRelativeTime,
	            mm: processRelativeTime,
	            h: processRelativeTime,
	            hh: processRelativeTime,
	            d: processRelativeTime,
	            dd: processRelativeTime,
	            M: processRelativeTime,
	            MM: processRelativeTime,
	            y: processRelativeTime,
	            yy: processRelativeTime
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}\./,
	        ordinal: '%d.',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    function processRelativeTime(number, withoutSuffix, key, isFuture) {
	        var format = {
	            s: ['viensas secunds', "'iensas secunds"],
	            ss: [number + ' secunds', '' + number + ' secunds'],
	            m: ["'n míut", "'iens míut"],
	            mm: [number + ' míuts', '' + number + ' míuts'],
	            h: ["'n þora", "'iensa þora"],
	            hh: [number + ' þoras', '' + number + ' þoras'],
	            d: ["'n ziua", "'iensa ziua"],
	            dd: [number + ' ziuas', '' + number + ' ziuas'],
	            M: ["'n mes", "'iens mes"],
	            MM: [number + ' mesen', '' + number + ' mesen'],
	            y: ["'n ar", "'iens ar"],
	            yy: [number + ' ars', '' + number + ' ars']
	        };
	        return isFuture ? format[key][0] : withoutSuffix ? format[key][0] : format[key][1];
	    }
	
	    return tzl;
	});

/***/ }),
/* 425 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Central Atlas Tamazight Latin [tzm-latn]
	//! author : Abdel Said : https://github.com/abdelsaid
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var tzmLatn = moment.defineLocale('tzm-latn', {
	        months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
	        monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
	        weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
	        weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
	        weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[asdkh g] LT',
	            nextDay: '[aska g] LT',
	            nextWeek: 'dddd [g] LT',
	            lastDay: '[assant g] LT',
	            lastWeek: 'dddd [g] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'dadkh s yan %s',
	            past: 'yan %s',
	            s: 'imik',
	            ss: '%d imik',
	            m: 'minuḍ',
	            mm: '%d minuḍ',
	            h: 'saɛa',
	            hh: '%d tassaɛin',
	            d: 'ass',
	            dd: '%d ossan',
	            M: 'ayowr',
	            MM: '%d iyyirn',
	            y: 'asgas',
	            yy: '%d isgasn'
	        },
	        week: {
	            dow: 6, // Saturday is the first day of the week.
	            doy: 12 // The week that contains Jan 12th is the first week of the year.
	        }
	    });
	
	    return tzmLatn;
	});

/***/ }),
/* 426 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Central Atlas Tamazight [tzm]
	//! author : Abdel Said : https://github.com/abdelsaid
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var tzm = moment.defineLocale('tzm', {
	        months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
	        monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
	        weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
	        weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
	        weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
	            nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
	            nextWeek: 'dddd [ⴴ] LT',
	            lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
	            lastWeek: 'dddd [ⴴ] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
	            past: 'ⵢⴰⵏ %s',
	            s: 'ⵉⵎⵉⴽ',
	            ss: '%d ⵉⵎⵉⴽ',
	            m: 'ⵎⵉⵏⵓⴺ',
	            mm: '%d ⵎⵉⵏⵓⴺ',
	            h: 'ⵙⴰⵄⴰ',
	            hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
	            d: 'ⴰⵙⵙ',
	            dd: '%d oⵙⵙⴰⵏ',
	            M: 'ⴰⵢoⵓⵔ',
	            MM: '%d ⵉⵢⵢⵉⵔⵏ',
	            y: 'ⴰⵙⴳⴰⵙ',
	            yy: '%d ⵉⵙⴳⴰⵙⵏ'
	        },
	        week: {
	            dow: 6, // Saturday is the first day of the week.
	            doy: 12 // The week that contains Jan 12th is the first week of the year.
	        }
	    });
	
	    return tzm;
	});

/***/ }),
/* 427 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Uyghur (China) [ug-cn]
	//! author: boyaq : https://github.com/boyaq
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var ugCn = moment.defineLocale('ug-cn', {
	        months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split('_'),
	        monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split('_'),
	        weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split('_'),
	        weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
	        weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'YYYY-MM-DD',
	            LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
	            LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
	            LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm'
	        },
	        meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === 'يېرىم كېچە' || meridiem === 'سەھەر' || meridiem === 'چۈشتىن بۇرۇن') {
	                return hour;
	            } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
	                return hour + 12;
	            } else {
	                return hour >= 11 ? hour : hour + 12;
	            }
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            var hm = hour * 100 + minute;
	            if (hm < 600) {
	                return 'يېرىم كېچە';
	            } else if (hm < 900) {
	                return 'سەھەر';
	            } else if (hm < 1130) {
	                return 'چۈشتىن بۇرۇن';
	            } else if (hm < 1230) {
	                return 'چۈش';
	            } else if (hm < 1800) {
	                return 'چۈشتىن كېيىن';
	            } else {
	                return 'كەچ';
	            }
	        },
	        calendar: {
	            sameDay: '[بۈگۈن سائەت] LT',
	            nextDay: '[ئەتە سائەت] LT',
	            nextWeek: '[كېلەركى] dddd [سائەت] LT',
	            lastDay: '[تۆنۈگۈن] LT',
	            lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s كېيىن',
	            past: '%s بۇرۇن',
	            s: 'نەچچە سېكونت',
	            ss: '%d سېكونت',
	            m: 'بىر مىنۇت',
	            mm: '%d مىنۇت',
	            h: 'بىر سائەت',
	            hh: '%d سائەت',
	            d: 'بىر كۈن',
	            dd: '%d كۈن',
	            M: 'بىر ئاي',
	            MM: '%d ئاي',
	            y: 'بىر يىل',
	            yy: '%d يىل'
	        },
	
	        dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
	        ordinal: function ordinal(number, period) {
	            switch (period) {
	                case 'd':
	                case 'D':
	                case 'DDD':
	                    return number + '-كۈنى';
	                case 'w':
	                case 'W':
	                    return number + '-ھەپتە';
	                default:
	                    return number;
	            }
	        },
	        preparse: function preparse(string) {
	            return string.replace(/،/g, ',');
	        },
	        postformat: function postformat(string) {
	            return string.replace(/,/g, '،');
	        },
	        week: {
	            // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 1st is the first week of the year.
	        }
	    });
	
	    return ugCn;
	});

/***/ }),
/* 428 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Ukrainian [uk]
	//! author : zemlanin : https://github.com/zemlanin
	//! Author : Menelion Elensúle : https://github.com/Oire
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    function plural(word, num) {
	        var forms = word.split('_');
	        return num % 10 === 1 && num % 100 !== 11 ? forms[0] : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2];
	    }
	    function relativeTimeWithPlural(number, withoutSuffix, key) {
	        var format = {
	            ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
	            mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
	            hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
	            dd: 'день_дні_днів',
	            MM: 'місяць_місяці_місяців',
	            yy: 'рік_роки_років'
	        };
	        if (key === 'm') {
	            return withoutSuffix ? 'хвилина' : 'хвилину';
	        } else if (key === 'h') {
	            return withoutSuffix ? 'година' : 'годину';
	        } else {
	            return number + ' ' + plural(format[key], +number);
	        }
	    }
	    function weekdaysCaseReplace(m, format) {
	        var weekdays = {
	            nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
	            accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
	            genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
	        },
	            nounCase;
	
	        if (m === true) {
	            return weekdays['nominative'].slice(1, 7).concat(weekdays['nominative'].slice(0, 1));
	        }
	        if (!m) {
	            return weekdays['nominative'];
	        }
	
	        nounCase = /(\[[ВвУу]\]) ?dddd/.test(format) ? 'accusative' : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format) ? 'genitive' : 'nominative';
	        return weekdays[nounCase][m.day()];
	    }
	    function processHoursFunction(str) {
	        return function () {
	            return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
	        };
	    }
	
	    var uk = moment.defineLocale('uk', {
	        months: {
	            format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),
	            standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')
	        },
	        monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
	        weekdays: weekdaysCaseReplace,
	        weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
	        weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD.MM.YYYY',
	            LL: 'D MMMM YYYY р.',
	            LLL: 'D MMMM YYYY р., HH:mm',
	            LLLL: 'dddd, D MMMM YYYY р., HH:mm'
	        },
	        calendar: {
	            sameDay: processHoursFunction('[Сьогодні '),
	            nextDay: processHoursFunction('[Завтра '),
	            lastDay: processHoursFunction('[Вчора '),
	            nextWeek: processHoursFunction('[У] dddd ['),
	            lastWeek: function lastWeek() {
	                switch (this.day()) {
	                    case 0:
	                    case 3:
	                    case 5:
	                    case 6:
	                        return processHoursFunction('[Минулої] dddd [').call(this);
	                    case 1:
	                    case 2:
	                    case 4:
	                        return processHoursFunction('[Минулого] dddd [').call(this);
	                }
	            },
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'за %s',
	            past: '%s тому',
	            s: 'декілька секунд',
	            ss: relativeTimeWithPlural,
	            m: relativeTimeWithPlural,
	            mm: relativeTimeWithPlural,
	            h: 'годину',
	            hh: relativeTimeWithPlural,
	            d: 'день',
	            dd: relativeTimeWithPlural,
	            M: 'місяць',
	            MM: relativeTimeWithPlural,
	            y: 'рік',
	            yy: relativeTimeWithPlural
	        },
	        // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
	        meridiemParse: /ночі|ранку|дня|вечора/,
	        isPM: function isPM(input) {
	            return (/^(дня|вечора)$/.test(input)
	            );
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 4) {
	                return 'ночі';
	            } else if (hour < 12) {
	                return 'ранку';
	            } else if (hour < 17) {
	                return 'дня';
	            } else {
	                return 'вечора';
	            }
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
	        ordinal: function ordinal(number, period) {
	            switch (period) {
	                case 'M':
	                case 'd':
	                case 'DDD':
	                case 'w':
	                case 'W':
	                    return number + '-й';
	                case 'D':
	                    return number + '-го';
	                default:
	                    return number;
	            }
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return uk;
	});

/***/ }),
/* 429 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Urdu [ur]
	//! author : Sawood Alam : https://github.com/ibnesayeed
	//! author : Zack : https://github.com/ZackVision
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var months = ['جنوری', 'فروری', 'مارچ', 'اپریل', 'مئی', 'جون', 'جولائی', 'اگست', 'ستمبر', 'اکتوبر', 'نومبر', 'دسمبر'],
	        days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];
	
	    var ur = moment.defineLocale('ur', {
	        months: months,
	        monthsShort: months,
	        weekdays: days,
	        weekdaysShort: days,
	        weekdaysMin: days,
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd، D MMMM YYYY HH:mm'
	        },
	        meridiemParse: /صبح|شام/,
	        isPM: function isPM(input) {
	            return 'شام' === input;
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            if (hour < 12) {
	                return 'صبح';
	            }
	            return 'شام';
	        },
	        calendar: {
	            sameDay: '[آج بوقت] LT',
	            nextDay: '[کل بوقت] LT',
	            nextWeek: 'dddd [بوقت] LT',
	            lastDay: '[گذشتہ روز بوقت] LT',
	            lastWeek: '[گذشتہ] dddd [بوقت] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s بعد',
	            past: '%s قبل',
	            s: 'چند سیکنڈ',
	            ss: '%d سیکنڈ',
	            m: 'ایک منٹ',
	            mm: '%d منٹ',
	            h: 'ایک گھنٹہ',
	            hh: '%d گھنٹے',
	            d: 'ایک دن',
	            dd: '%d دن',
	            M: 'ایک ماہ',
	            MM: '%d ماہ',
	            y: 'ایک سال',
	            yy: '%d سال'
	        },
	        preparse: function preparse(string) {
	            return string.replace(/،/g, ',');
	        },
	        postformat: function postformat(string) {
	            return string.replace(/,/g, '،');
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return ur;
	});

/***/ }),
/* 430 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Uzbek Latin [uz-latn]
	//! author : Rasulbek Mirzayev : github.com/Rasulbeeek
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var uzLatn = moment.defineLocale('uz-latn', {
	        months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'),
	        monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
	        weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'),
	        weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
	        weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'D MMMM YYYY, dddd HH:mm'
	        },
	        calendar: {
	            sameDay: '[Bugun soat] LT [da]',
	            nextDay: '[Ertaga] LT [da]',
	            nextWeek: 'dddd [kuni soat] LT [da]',
	            lastDay: '[Kecha soat] LT [da]',
	            lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'Yaqin %s ichida',
	            past: 'Bir necha %s oldin',
	            s: 'soniya',
	            ss: '%d soniya',
	            m: 'bir daqiqa',
	            mm: '%d daqiqa',
	            h: 'bir soat',
	            hh: '%d soat',
	            d: 'bir kun',
	            dd: '%d kun',
	            M: 'bir oy',
	            MM: '%d oy',
	            y: 'bir yil',
	            yy: '%d yil'
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 7th is the first week of the year.
	        }
	    });
	
	    return uzLatn;
	});

/***/ }),
/* 431 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Uzbek [uz]
	//! author : Sardor Muminov : https://github.com/muminoff
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var uz = moment.defineLocale('uz', {
	        months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
	        monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
	        weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
	        weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
	        weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'D MMMM YYYY, dddd HH:mm'
	        },
	        calendar: {
	            sameDay: '[Бугун соат] LT [да]',
	            nextDay: '[Эртага] LT [да]',
	            nextWeek: 'dddd [куни соат] LT [да]',
	            lastDay: '[Кеча соат] LT [да]',
	            lastWeek: '[Утган] dddd [куни соат] LT [да]',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'Якин %s ичида',
	            past: 'Бир неча %s олдин',
	            s: 'фурсат',
	            ss: '%d фурсат',
	            m: 'бир дакика',
	            mm: '%d дакика',
	            h: 'бир соат',
	            hh: '%d соат',
	            d: 'бир кун',
	            dd: '%d кун',
	            M: 'бир ой',
	            MM: '%d ой',
	            y: 'бир йил',
	            yy: '%d йил'
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 7 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return uz;
	});

/***/ }),
/* 432 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Vietnamese [vi]
	//! author : Bang Nguyen : https://github.com/bangnk
	//! author : Chien Kira : https://github.com/chienkira
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var vi = moment.defineLocale('vi', {
	        months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'),
	        monthsShort: 'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
	        weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
	        weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
	        weekdaysParseExact: true,
	        meridiemParse: /sa|ch/i,
	        isPM: function isPM(input) {
	            return (/^ch$/i.test(input)
	            );
	        },
	        meridiem: function meridiem(hours, minutes, isLower) {
	            if (hours < 12) {
	                return isLower ? 'sa' : 'SA';
	            } else {
	                return isLower ? 'ch' : 'CH';
	            }
	        },
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM [năm] YYYY',
	            LLL: 'D MMMM [năm] YYYY HH:mm',
	            LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',
	            l: 'DD/M/YYYY',
	            ll: 'D MMM YYYY',
	            lll: 'D MMM YYYY HH:mm',
	            llll: 'ddd, D MMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[Hôm nay lúc] LT',
	            nextDay: '[Ngày mai lúc] LT',
	            nextWeek: 'dddd [tuần tới lúc] LT',
	            lastDay: '[Hôm qua lúc] LT',
	            lastWeek: 'dddd [tuần trước lúc] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: '%s tới',
	            past: '%s trước',
	            s: 'vài giây',
	            ss: '%d giây',
	            m: 'một phút',
	            mm: '%d phút',
	            h: 'một giờ',
	            hh: '%d giờ',
	            d: 'một ngày',
	            dd: '%d ngày',
	            w: 'một tuần',
	            ww: '%d tuần',
	            M: 'một tháng',
	            MM: '%d tháng',
	            y: 'một năm',
	            yy: '%d năm'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}/,
	        ordinal: function ordinal(number) {
	            return number;
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return vi;
	});

/***/ }),
/* 433 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Pseudo [x-pseudo]
	//! author : Andrew Hood : https://github.com/andrewhood125
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var xPseudo = moment.defineLocale('x-pseudo', {
	        months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split('_'),
	        monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),
	        monthsParseExact: true,
	        weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),
	        weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
	        weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
	        weekdaysParseExact: true,
	        longDateFormat: {
	            LT: 'HH:mm',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY HH:mm',
	            LLLL: 'dddd, D MMMM YYYY HH:mm'
	        },
	        calendar: {
	            sameDay: '[T~ódá~ý át] LT',
	            nextDay: '[T~ómó~rró~w át] LT',
	            nextWeek: 'dddd [át] LT',
	            lastDay: '[Ý~ést~érdá~ý át] LT',
	            lastWeek: '[L~ást] dddd [át] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'í~ñ %s',
	            past: '%s á~gó',
	            s: 'á ~féw ~sécó~ñds',
	            ss: '%d s~écóñ~ds',
	            m: 'á ~míñ~úté',
	            mm: '%d m~íñú~tés',
	            h: 'á~ñ hó~úr',
	            hh: '%d h~óúrs',
	            d: 'á ~dáý',
	            dd: '%d d~áýs',
	            M: 'á ~móñ~th',
	            MM: '%d m~óñt~hs',
	            y: 'á ~ýéár',
	            yy: '%d ý~éárs'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
	        ordinal: function ordinal(number) {
	            var b = number % 10,
	                output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
	            return number + output;
	        },
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return xPseudo;
	});

/***/ }),
/* 434 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Yoruba Nigeria [yo]
	//! author : Atolagbe Abisoye : https://github.com/andela-batolagbe
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var yo = moment.defineLocale('yo', {
	        months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'),
	        monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
	        weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
	        weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
	        weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
	        longDateFormat: {
	            LT: 'h:mm A',
	            LTS: 'h:mm:ss A',
	            L: 'DD/MM/YYYY',
	            LL: 'D MMMM YYYY',
	            LLL: 'D MMMM YYYY h:mm A',
	            LLLL: 'dddd, D MMMM YYYY h:mm A'
	        },
	        calendar: {
	            sameDay: '[Ònì ni] LT',
	            nextDay: '[Ọ̀la ni] LT',
	            nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT",
	            lastDay: '[Àna ni] LT',
	            lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
	            sameElse: 'L'
	        },
	        relativeTime: {
	            future: 'ní %s',
	            past: '%s kọjá',
	            s: 'ìsẹjú aayá die',
	            ss: 'aayá %d',
	            m: 'ìsẹjú kan',
	            mm: 'ìsẹjú %d',
	            h: 'wákati kan',
	            hh: 'wákati %d',
	            d: 'ọjọ́ kan',
	            dd: 'ọjọ́ %d',
	            M: 'osù kan',
	            MM: 'osù %d',
	            y: 'ọdún kan',
	            yy: 'ọdún %d'
	        },
	        dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/,
	        ordinal: 'ọjọ́ %d',
	        week: {
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return yo;
	});

/***/ }),
/* 435 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Chinese (China) [zh-cn]
	//! author : suupic : https://github.com/suupic
	//! author : Zeno Zeng : https://github.com/zenozeng
	//! author : uu109 : https://github.com/uu109
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var zhCn = moment.defineLocale('zh-cn', {
	        months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
	        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
	        weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
	        weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
	        weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'YYYY/MM/DD',
	            LL: 'YYYY年M月D日',
	            LLL: 'YYYY年M月D日Ah点mm分',
	            LLLL: 'YYYY年M月D日ddddAh点mm分',
	            l: 'YYYY/M/D',
	            ll: 'YYYY年M月D日',
	            lll: 'YYYY年M月D日 HH:mm',
	            llll: 'YYYY年M月D日dddd HH:mm'
	        },
	        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
	                return hour;
	            } else if (meridiem === '下午' || meridiem === '晚上') {
	                return hour + 12;
	            } else {
	                // '中午'
	                return hour >= 11 ? hour : hour + 12;
	            }
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            var hm = hour * 100 + minute;
	            if (hm < 600) {
	                return '凌晨';
	            } else if (hm < 900) {
	                return '早上';
	            } else if (hm < 1130) {
	                return '上午';
	            } else if (hm < 1230) {
	                return '中午';
	            } else if (hm < 1800) {
	                return '下午';
	            } else {
	                return '晚上';
	            }
	        },
	        calendar: {
	            sameDay: '[今天]LT',
	            nextDay: '[明天]LT',
	            nextWeek: function nextWeek(now) {
	                if (now.week() !== this.week()) {
	                    return '[下]dddLT';
	                } else {
	                    return '[本]dddLT';
	                }
	            },
	            lastDay: '[昨天]LT',
	            lastWeek: function lastWeek(now) {
	                if (this.week() !== now.week()) {
	                    return '[上]dddLT';
	                } else {
	                    return '[本]dddLT';
	                }
	            },
	            sameElse: 'L'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
	        ordinal: function ordinal(number, period) {
	            switch (period) {
	                case 'd':
	                case 'D':
	                case 'DDD':
	                    return number + '日';
	                case 'M':
	                    return number + '月';
	                case 'w':
	                case 'W':
	                    return number + '周';
	                default:
	                    return number;
	            }
	        },
	        relativeTime: {
	            future: '%s后',
	            past: '%s前',
	            s: '几秒',
	            ss: '%d 秒',
	            m: '1 分钟',
	            mm: '%d 分钟',
	            h: '1 小时',
	            hh: '%d 小时',
	            d: '1 天',
	            dd: '%d 天',
	            w: '1 周',
	            ww: '%d 周',
	            M: '1 个月',
	            MM: '%d 个月',
	            y: '1 年',
	            yy: '%d 年'
	        },
	        week: {
	            // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
	            dow: 1, // Monday is the first day of the week.
	            doy: 4 // The week that contains Jan 4th is the first week of the year.
	        }
	    });
	
	    return zhCn;
	});

/***/ }),
/* 436 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Chinese (Hong Kong) [zh-hk]
	//! author : Ben : https://github.com/ben-lin
	//! author : Chris Lam : https://github.com/hehachris
	//! author : Konstantin : https://github.com/skfd
	//! author : Anthony : https://github.com/anthonylau
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var zhHk = moment.defineLocale('zh-hk', {
	        months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
	        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
	        weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
	        weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
	        weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'YYYY/MM/DD',
	            LL: 'YYYY年M月D日',
	            LLL: 'YYYY年M月D日 HH:mm',
	            LLLL: 'YYYY年M月D日dddd HH:mm',
	            l: 'YYYY/M/D',
	            ll: 'YYYY年M月D日',
	            lll: 'YYYY年M月D日 HH:mm',
	            llll: 'YYYY年M月D日dddd HH:mm'
	        },
	        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
	                return hour;
	            } else if (meridiem === '中午') {
	                return hour >= 11 ? hour : hour + 12;
	            } else if (meridiem === '下午' || meridiem === '晚上') {
	                return hour + 12;
	            }
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            var hm = hour * 100 + minute;
	            if (hm < 600) {
	                return '凌晨';
	            } else if (hm < 900) {
	                return '早上';
	            } else if (hm < 1200) {
	                return '上午';
	            } else if (hm === 1200) {
	                return '中午';
	            } else if (hm < 1800) {
	                return '下午';
	            } else {
	                return '晚上';
	            }
	        },
	        calendar: {
	            sameDay: '[今天]LT',
	            nextDay: '[明天]LT',
	            nextWeek: '[下]ddddLT',
	            lastDay: '[昨天]LT',
	            lastWeek: '[上]ddddLT',
	            sameElse: 'L'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
	        ordinal: function ordinal(number, period) {
	            switch (period) {
	                case 'd':
	                case 'D':
	                case 'DDD':
	                    return number + '日';
	                case 'M':
	                    return number + '月';
	                case 'w':
	                case 'W':
	                    return number + '週';
	                default:
	                    return number;
	            }
	        },
	        relativeTime: {
	            future: '%s後',
	            past: '%s前',
	            s: '幾秒',
	            ss: '%d 秒',
	            m: '1 分鐘',
	            mm: '%d 分鐘',
	            h: '1 小時',
	            hh: '%d 小時',
	            d: '1 天',
	            dd: '%d 天',
	            M: '1 個月',
	            MM: '%d 個月',
	            y: '1 年',
	            yy: '%d 年'
	        }
	    });
	
	    return zhHk;
	});

/***/ }),
/* 437 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Chinese (Macau) [zh-mo]
	//! author : Ben : https://github.com/ben-lin
	//! author : Chris Lam : https://github.com/hehachris
	//! author : Tan Yuanhong : https://github.com/le0tan
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var zhMo = moment.defineLocale('zh-mo', {
	        months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
	        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
	        weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
	        weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
	        weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'DD/MM/YYYY',
	            LL: 'YYYY年M月D日',
	            LLL: 'YYYY年M月D日 HH:mm',
	            LLLL: 'YYYY年M月D日dddd HH:mm',
	            l: 'D/M/YYYY',
	            ll: 'YYYY年M月D日',
	            lll: 'YYYY年M月D日 HH:mm',
	            llll: 'YYYY年M月D日dddd HH:mm'
	        },
	        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
	                return hour;
	            } else if (meridiem === '中午') {
	                return hour >= 11 ? hour : hour + 12;
	            } else if (meridiem === '下午' || meridiem === '晚上') {
	                return hour + 12;
	            }
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            var hm = hour * 100 + minute;
	            if (hm < 600) {
	                return '凌晨';
	            } else if (hm < 900) {
	                return '早上';
	            } else if (hm < 1130) {
	                return '上午';
	            } else if (hm < 1230) {
	                return '中午';
	            } else if (hm < 1800) {
	                return '下午';
	            } else {
	                return '晚上';
	            }
	        },
	        calendar: {
	            sameDay: '[今天] LT',
	            nextDay: '[明天] LT',
	            nextWeek: '[下]dddd LT',
	            lastDay: '[昨天] LT',
	            lastWeek: '[上]dddd LT',
	            sameElse: 'L'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
	        ordinal: function ordinal(number, period) {
	            switch (period) {
	                case 'd':
	                case 'D':
	                case 'DDD':
	                    return number + '日';
	                case 'M':
	                    return number + '月';
	                case 'w':
	                case 'W':
	                    return number + '週';
	                default:
	                    return number;
	            }
	        },
	        relativeTime: {
	            future: '%s內',
	            past: '%s前',
	            s: '幾秒',
	            ss: '%d 秒',
	            m: '1 分鐘',
	            mm: '%d 分鐘',
	            h: '1 小時',
	            hh: '%d 小時',
	            d: '1 天',
	            dd: '%d 天',
	            M: '1 個月',
	            MM: '%d 個月',
	            y: '1 年',
	            yy: '%d 年'
	        }
	    });
	
	    return zhMo;
	});

/***/ }),
/* 438 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	//! moment.js locale configuration
	//! locale : Chinese (Taiwan) [zh-tw]
	//! author : Ben : https://github.com/ben-lin
	//! author : Chris Lam : https://github.com/hehachris
	
	;(function (global, factory) {
	    ( false ? 'undefined' : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(2)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(2)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : factory(global.moment);
	})(undefined, function (moment) {
	    'use strict';
	
	    //! moment.js locale configuration
	
	    var zhTw = moment.defineLocale('zh-tw', {
	        months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
	        monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
	        weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
	        weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
	        weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
	        longDateFormat: {
	            LT: 'HH:mm',
	            LTS: 'HH:mm:ss',
	            L: 'YYYY/MM/DD',
	            LL: 'YYYY年M月D日',
	            LLL: 'YYYY年M月D日 HH:mm',
	            LLLL: 'YYYY年M月D日dddd HH:mm',
	            l: 'YYYY/M/D',
	            ll: 'YYYY年M月D日',
	            lll: 'YYYY年M月D日 HH:mm',
	            llll: 'YYYY年M月D日dddd HH:mm'
	        },
	        meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
	        meridiemHour: function meridiemHour(hour, meridiem) {
	            if (hour === 12) {
	                hour = 0;
	            }
	            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
	                return hour;
	            } else if (meridiem === '中午') {
	                return hour >= 11 ? hour : hour + 12;
	            } else if (meridiem === '下午' || meridiem === '晚上') {
	                return hour + 12;
	            }
	        },
	        meridiem: function meridiem(hour, minute, isLower) {
	            var hm = hour * 100 + minute;
	            if (hm < 600) {
	                return '凌晨';
	            } else if (hm < 900) {
	                return '早上';
	            } else if (hm < 1130) {
	                return '上午';
	            } else if (hm < 1230) {
	                return '中午';
	            } else if (hm < 1800) {
	                return '下午';
	            } else {
	                return '晚上';
	            }
	        },
	        calendar: {
	            sameDay: '[今天] LT',
	            nextDay: '[明天] LT',
	            nextWeek: '[下]dddd LT',
	            lastDay: '[昨天] LT',
	            lastWeek: '[上]dddd LT',
	            sameElse: 'L'
	        },
	        dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
	        ordinal: function ordinal(number, period) {
	            switch (period) {
	                case 'd':
	                case 'D':
	                case 'DDD':
	                    return number + '日';
	                case 'M':
	                    return number + '月';
	                case 'w':
	                case 'W':
	                    return number + '週';
	                default:
	                    return number;
	            }
	        },
	        relativeTime: {
	            future: '%s後',
	            past: '%s前',
	            s: '幾秒',
	            ss: '%d 秒',
	            m: '1 分鐘',
	            mm: '%d 分鐘',
	            h: '1 小時',
	            hh: '%d 小時',
	            d: '1 天',
	            dd: '%d 天',
	            M: '1 個月',
	            MM: '%d 個月',
	            y: '1 年',
	            yy: '%d 年'
	        }
	    });
	
	    return zhTw;
	});

/***/ }),
/* 439 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	/*! @preserve
	 * numeral.js
	 * version : 2.0.6
	 * author : Adam Draper
	 * license : MIT
	 * http://adamwdraper.github.com/Numeral-js/
	 */
	
	(function (global, factory) {
	    if (true) {
	        !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
	    } else if ((typeof module === 'undefined' ? 'undefined' : _typeof(module)) === 'object' && module.exports) {
	        module.exports = factory();
	    } else {
	        global.numeral = factory();
	    }
	})(undefined, function () {
	    /************************************
	        Variables
	    ************************************/
	
	    var _numeral,
	        _,
	        VERSION = '2.0.6',
	        formats = {},
	        locales = {},
	        defaults = {
	        currentLocale: 'en',
	        zeroFormat: null,
	        nullFormat: null,
	        defaultFormat: '0,0',
	        scalePercentBy100: true
	    },
	        options = {
	        currentLocale: defaults.currentLocale,
	        zeroFormat: defaults.zeroFormat,
	        nullFormat: defaults.nullFormat,
	        defaultFormat: defaults.defaultFormat,
	        scalePercentBy100: defaults.scalePercentBy100
	    };
	
	    /************************************
	        Constructors
	    ************************************/
	
	    // Numeral prototype object
	    function Numeral(input, number) {
	        this._input = input;
	
	        this._value = number;
	    }
	
	    _numeral = function numeral(input) {
	        var value, kind, unformatFunction, regexp;
	
	        if (_numeral.isNumeral(input)) {
	            value = input.value();
	        } else if (input === 0 || typeof input === 'undefined') {
	            value = 0;
	        } else if (input === null || _.isNaN(input)) {
	            value = null;
	        } else if (typeof input === 'string') {
	            if (options.zeroFormat && input === options.zeroFormat) {
	                value = 0;
	            } else if (options.nullFormat && input === options.nullFormat || !input.replace(/[^0-9]+/g, '').length) {
	                value = null;
	            } else {
	                for (kind in formats) {
	                    regexp = typeof formats[kind].regexps.unformat === 'function' ? formats[kind].regexps.unformat() : formats[kind].regexps.unformat;
	
	                    if (regexp && input.match(regexp)) {
	                        unformatFunction = formats[kind].unformat;
	
	                        break;
	                    }
	                }
	
	                unformatFunction = unformatFunction || _numeral._.stringToNumber;
	
	                value = unformatFunction(input);
	            }
	        } else {
	            value = Number(input) || null;
	        }
	
	        return new Numeral(input, value);
	    };
	
	    // version number
	    _numeral.version = VERSION;
	
	    // compare numeral object
	    _numeral.isNumeral = function (obj) {
	        return obj instanceof Numeral;
	    };
	
	    // helper functions
	    _numeral._ = _ = {
	        // formats numbers separators, decimals places, signs, abbreviations
	        numberToFormat: function numberToFormat(value, format, roundingFunction) {
	            var locale = locales[_numeral.options.currentLocale],
	                negP = false,
	                optDec = false,
	                leadingCount = 0,
	                abbr = '',
	                trillion = 1000000000000,
	                billion = 1000000000,
	                million = 1000000,
	                thousand = 1000,
	                decimal = '',
	                neg = false,
	                abbrForce,
	                // force abbreviation
	            abs,
	                min,
	                max,
	                power,
	                int,
	                precision,
	                signed,
	                thousands,
	                output;
	
	            // make sure we never format a null value
	            value = value || 0;
	
	            abs = Math.abs(value);
	
	            // see if we should use parentheses for negative number or if we should prefix with a sign
	            // if both are present we default to parentheses
	            if (_numeral._.includes(format, '(')) {
	                negP = true;
	                format = format.replace(/[\(|\)]/g, '');
	            } else if (_numeral._.includes(format, '+') || _numeral._.includes(format, '-')) {
	                signed = _numeral._.includes(format, '+') ? format.indexOf('+') : value < 0 ? format.indexOf('-') : -1;
	                format = format.replace(/[\+|\-]/g, '');
	            }
	
	            // see if abbreviation is wanted
	            if (_numeral._.includes(format, 'a')) {
	                abbrForce = format.match(/a(k|m|b|t)?/);
	
	                abbrForce = abbrForce ? abbrForce[1] : false;
	
	                // check for space before abbreviation
	                if (_numeral._.includes(format, ' a')) {
	                    abbr = ' ';
	                }
	
	                format = format.replace(new RegExp(abbr + 'a[kmbt]?'), '');
	
	                if (abs >= trillion && !abbrForce || abbrForce === 't') {
	                    // trillion
	                    abbr += locale.abbreviations.trillion;
	                    value = value / trillion;
	                } else if (abs < trillion && abs >= billion && !abbrForce || abbrForce === 'b') {
	                    // billion
	                    abbr += locale.abbreviations.billion;
	                    value = value / billion;
	                } else if (abs < billion && abs >= million && !abbrForce || abbrForce === 'm') {
	                    // million
	                    abbr += locale.abbreviations.million;
	                    value = value / million;
	                } else if (abs < million && abs >= thousand && !abbrForce || abbrForce === 'k') {
	                    // thousand
	                    abbr += locale.abbreviations.thousand;
	                    value = value / thousand;
	                }
	            }
	
	            // check for optional decimals
	            if (_numeral._.includes(format, '[.]')) {
	                optDec = true;
	                format = format.replace('[.]', '.');
	            }
	
	            // break number and format
	            int = value.toString().split('.')[0];
	            precision = format.split('.')[1];
	            thousands = format.indexOf(',');
	            leadingCount = (format.split('.')[0].split(',')[0].match(/0/g) || []).length;
	
	            if (precision) {
	                if (_numeral._.includes(precision, '[')) {
	                    precision = precision.replace(']', '');
	                    precision = precision.split('[');
	                    decimal = _numeral._.toFixed(value, precision[0].length + precision[1].length, roundingFunction, precision[1].length);
	                } else {
	                    decimal = _numeral._.toFixed(value, precision.length, roundingFunction);
	                }
	
	                int = decimal.split('.')[0];
	
	                if (_numeral._.includes(decimal, '.')) {
	                    decimal = locale.delimiters.decimal + decimal.split('.')[1];
	                } else {
	                    decimal = '';
	                }
	
	                if (optDec && Number(decimal.slice(1)) === 0) {
	                    decimal = '';
	                }
	            } else {
	                int = _numeral._.toFixed(value, 0, roundingFunction);
	            }
	
	            // check abbreviation again after rounding
	            if (abbr && !abbrForce && Number(int) >= 1000 && abbr !== locale.abbreviations.trillion) {
	                int = String(Number(int) / 1000);
	
	                switch (abbr) {
	                    case locale.abbreviations.thousand:
	                        abbr = locale.abbreviations.million;
	                        break;
	                    case locale.abbreviations.million:
	                        abbr = locale.abbreviations.billion;
	                        break;
	                    case locale.abbreviations.billion:
	                        abbr = locale.abbreviations.trillion;
	                        break;
	                }
	            }
	
	            // format number
	            if (_numeral._.includes(int, '-')) {
	                int = int.slice(1);
	                neg = true;
	            }
	
	            if (int.length < leadingCount) {
	                for (var i = leadingCount - int.length; i > 0; i--) {
	                    int = '0' + int;
	                }
	            }
	
	            if (thousands > -1) {
	                int = int.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1' + locale.delimiters.thousands);
	            }
	
	            if (format.indexOf('.') === 0) {
	                int = '';
	            }
	
	            output = int + decimal + (abbr ? abbr : '');
	
	            if (negP) {
	                output = (negP && neg ? '(' : '') + output + (negP && neg ? ')' : '');
	            } else {
	                if (signed >= 0) {
	                    output = signed === 0 ? (neg ? '-' : '+') + output : output + (neg ? '-' : '+');
	                } else if (neg) {
	                    output = '-' + output;
	                }
	            }
	
	            return output;
	        },
	        // unformats numbers separators, decimals places, signs, abbreviations
	        stringToNumber: function stringToNumber(string) {
	            var locale = locales[options.currentLocale],
	                stringOriginal = string,
	                abbreviations = {
	                thousand: 3,
	                million: 6,
	                billion: 9,
	                trillion: 12
	            },
	                abbreviation,
	                value,
	                i,
	                regexp;
	
	            if (options.zeroFormat && string === options.zeroFormat) {
	                value = 0;
	            } else if (options.nullFormat && string === options.nullFormat || !string.replace(/[^0-9]+/g, '').length) {
	                value = null;
	            } else {
	                value = 1;
	
	                if (locale.delimiters.decimal !== '.') {
	                    string = string.replace(/\./g, '').replace(locale.delimiters.decimal, '.');
	                }
	
	                for (abbreviation in abbreviations) {
	                    regexp = new RegExp('[^a-zA-Z]' + locale.abbreviations[abbreviation] + '(?:\\)|(\\' + locale.currency.symbol + ')?(?:\\))?)?$');
	
	                    if (stringOriginal.match(regexp)) {
	                        value *= Math.pow(10, abbreviations[abbreviation]);
	                        break;
	                    }
	                }
	
	                // check for negative number
	                value *= (string.split('-').length + Math.min(string.split('(').length - 1, string.split(')').length - 1)) % 2 ? 1 : -1;
	
	                // remove non numbers
	                string = string.replace(/[^0-9\.]+/g, '');
	
	                value *= Number(string);
	            }
	
	            return value;
	        },
	        isNaN: function (_isNaN) {
	            function isNaN(_x) {
	                return _isNaN.apply(this, arguments);
	            }
	
	            isNaN.toString = function () {
	                return _isNaN.toString();
	            };
	
	            return isNaN;
	        }(function (value) {
	            return typeof value === 'number' && isNaN(value);
	        }),
	        includes: function includes(string, search) {
	            return string.indexOf(search) !== -1;
	        },
	        insert: function insert(string, subString, start) {
	            return string.slice(0, start) + subString + string.slice(start);
	        },
	        reduce: function reduce(array, callback /*, initialValue*/) {
	            if (this === null) {
	                throw new TypeError('Array.prototype.reduce called on null or undefined');
	            }
	
	            if (typeof callback !== 'function') {
	                throw new TypeError(callback + ' is not a function');
	            }
	
	            var t = Object(array),
	                len = t.length >>> 0,
	                k = 0,
	                value;
	
	            if (arguments.length === 3) {
	                value = arguments[2];
	            } else {
	                while (k < len && !(k in t)) {
	                    k++;
	                }
	
	                if (k >= len) {
	                    throw new TypeError('Reduce of empty array with no initial value');
	                }
	
	                value = t[k++];
	            }
	            for (; k < len; k++) {
	                if (k in t) {
	                    value = callback(value, t[k], k, t);
	                }
	            }
	            return value;
	        },
	        /**
	         * Computes the multiplier necessary to make x >= 1,
	         * effectively eliminating miscalculations caused by
	         * finite precision.
	         */
	        multiplier: function multiplier(x) {
	            var parts = x.toString().split('.');
	
	            return parts.length < 2 ? 1 : Math.pow(10, parts[1].length);
	        },
	        /**
	         * Given a variable number of arguments, returns the maximum
	         * multiplier that must be used to normalize an operation involving
	         * all of them.
	         */
	        correctionFactor: function correctionFactor() {
	            var args = Array.prototype.slice.call(arguments);
	
	            return args.reduce(function (accum, next) {
	                var mn = _.multiplier(next);
	                return accum > mn ? accum : mn;
	            }, 1);
	        },
	        /**
	         * Implementation of toFixed() that treats floats more like decimals
	         *
	         * Fixes binary rounding issues (eg. (0.615).toFixed(2) === '0.61') that present
	         * problems for accounting- and finance-related software.
	         */
	        toFixed: function toFixed(value, maxDecimals, roundingFunction, optionals) {
	            var splitValue = value.toString().split('.'),
	                minDecimals = maxDecimals - (optionals || 0),
	                boundedPrecision,
	                optionalsRegExp,
	                power,
	                output;
	
	            // Use the smallest precision value possible to avoid errors from floating point representation
	            if (splitValue.length === 2) {
	                boundedPrecision = Math.min(Math.max(splitValue[1].length, minDecimals), maxDecimals);
	            } else {
	                boundedPrecision = minDecimals;
	            }
	
	            power = Math.pow(10, boundedPrecision);
	
	            // Multiply up by precision, round accurately, then divide and use native toFixed():
	            output = (roundingFunction(value + 'e+' + boundedPrecision) / power).toFixed(boundedPrecision);
	
	            if (optionals > maxDecimals - boundedPrecision) {
	                optionalsRegExp = new RegExp('\\.?0{1,' + (optionals - (maxDecimals - boundedPrecision)) + '}$');
	                output = output.replace(optionalsRegExp, '');
	            }
	
	            return output;
	        }
	    };
	
	    // avaliable options
	    _numeral.options = options;
	
	    // avaliable formats
	    _numeral.formats = formats;
	
	    // avaliable formats
	    _numeral.locales = locales;
	
	    // This function sets the current locale.  If
	    // no arguments are passed in, it will simply return the current global
	    // locale key.
	    _numeral.locale = function (key) {
	        if (key) {
	            options.currentLocale = key.toLowerCase();
	        }
	
	        return options.currentLocale;
	    };
	
	    // This function provides access to the loaded locale data.  If
	    // no arguments are passed in, it will simply return the current
	    // global locale object.
	    _numeral.localeData = function (key) {
	        if (!key) {
	            return locales[options.currentLocale];
	        }
	
	        key = key.toLowerCase();
	
	        if (!locales[key]) {
	            throw new Error('Unknown locale : ' + key);
	        }
	
	        return locales[key];
	    };
	
	    _numeral.reset = function () {
	        for (var property in defaults) {
	            options[property] = defaults[property];
	        }
	    };
	
	    _numeral.zeroFormat = function (format) {
	        options.zeroFormat = typeof format === 'string' ? format : null;
	    };
	
	    _numeral.nullFormat = function (format) {
	        options.nullFormat = typeof format === 'string' ? format : null;
	    };
	
	    _numeral.defaultFormat = function (format) {
	        options.defaultFormat = typeof format === 'string' ? format : '0.0';
	    };
	
	    _numeral.register = function (type, name, format) {
	        name = name.toLowerCase();
	
	        if (this[type + 's'][name]) {
	            throw new TypeError(name + ' ' + type + ' already registered.');
	        }
	
	        this[type + 's'][name] = format;
	
	        return format;
	    };
	
	    _numeral.validate = function (val, culture) {
	        var _decimalSep, _thousandSep, _currSymbol, _valArray, _abbrObj, _thousandRegEx, localeData, temp;
	
	        //coerce val to string
	        if (typeof val !== 'string') {
	            val += '';
	
	            if (console.warn) {
	                console.warn('Numeral.js: Value is not string. It has been co-erced to: ', val);
	            }
	        }
	
	        //trim whitespaces from either sides
	        val = val.trim();
	
	        //if val is just digits return true
	        if (!!val.match(/^\d+$/)) {
	            return true;
	        }
	
	        //if val is empty return false
	        if (val === '') {
	            return false;
	        }
	
	        //get the decimal and thousands separator from numeral.localeData
	        try {
	            //check if the culture is understood by numeral. if not, default it to current locale
	            localeData = _numeral.localeData(culture);
	        } catch (e) {
	            localeData = _numeral.localeData(_numeral.locale());
	        }
	
	        //setup the delimiters and currency symbol based on culture/locale
	        _currSymbol = localeData.currency.symbol;
	        _abbrObj = localeData.abbreviations;
	        _decimalSep = localeData.delimiters.decimal;
	        if (localeData.delimiters.thousands === '.') {
	            _thousandSep = '\\.';
	        } else {
	            _thousandSep = localeData.delimiters.thousands;
	        }
	
	        // validating currency symbol
	        temp = val.match(/^[^\d]+/);
	        if (temp !== null) {
	            val = val.substr(1);
	            if (temp[0] !== _currSymbol) {
	                return false;
	            }
	        }
	
	        //validating abbreviation symbol
	        temp = val.match(/[^\d]+$/);
	        if (temp !== null) {
	            val = val.slice(0, -1);
	            if (temp[0] !== _abbrObj.thousand && temp[0] !== _abbrObj.million && temp[0] !== _abbrObj.billion && temp[0] !== _abbrObj.trillion) {
	                return false;
	            }
	        }
	
	        _thousandRegEx = new RegExp(_thousandSep + '{2}');
	
	        if (!val.match(/[^\d.,]/g)) {
	            _valArray = val.split(_decimalSep);
	            if (_valArray.length > 2) {
	                return false;
	            } else {
	                if (_valArray.length < 2) {
	                    return !!_valArray[0].match(/^\d+.*\d$/) && !_valArray[0].match(_thousandRegEx);
	                } else {
	                    if (_valArray[0].length === 1) {
	                        return !!_valArray[0].match(/^\d+$/) && !_valArray[0].match(_thousandRegEx) && !!_valArray[1].match(/^\d+$/);
	                    } else {
	                        return !!_valArray[0].match(/^\d+.*\d$/) && !_valArray[0].match(_thousandRegEx) && !!_valArray[1].match(/^\d+$/);
	                    }
	                }
	            }
	        }
	
	        return false;
	    };
	
	    /************************************
	        Numeral Prototype
	    ************************************/
	
	    _numeral.fn = Numeral.prototype = {
	        clone: function clone() {
	            return _numeral(this);
	        },
	        format: function format(inputString, roundingFunction) {
	            var value = this._value,
	                format = inputString || options.defaultFormat,
	                kind,
	                output,
	                formatFunction;
	
	            // make sure we have a roundingFunction
	            roundingFunction = roundingFunction || Math.round;
	
	            // format based on value
	            if (value === 0 && options.zeroFormat !== null) {
	                output = options.zeroFormat;
	            } else if (value === null && options.nullFormat !== null) {
	                output = options.nullFormat;
	            } else {
	                for (kind in formats) {
	                    if (format.match(formats[kind].regexps.format)) {
	                        formatFunction = formats[kind].format;
	
	                        break;
	                    }
	                }
	
	                formatFunction = formatFunction || _numeral._.numberToFormat;
	
	                output = formatFunction(value, format, roundingFunction);
	            }
	
	            return output;
	        },
	        value: function value() {
	            return this._value;
	        },
	        input: function input() {
	            return this._input;
	        },
	        set: function set(value) {
	            this._value = Number(value);
	
	            return this;
	        },
	        add: function add(value) {
	            var corrFactor = _.correctionFactor.call(null, this._value, value);
	
	            function cback(accum, curr, currI, O) {
	                return accum + Math.round(corrFactor * curr);
	            }
	
	            this._value = _.reduce([this._value, value], cback, 0) / corrFactor;
	
	            return this;
	        },
	        subtract: function subtract(value) {
	            var corrFactor = _.correctionFactor.call(null, this._value, value);
	
	            function cback(accum, curr, currI, O) {
	                return accum - Math.round(corrFactor * curr);
	            }
	
	            this._value = _.reduce([value], cback, Math.round(this._value * corrFactor)) / corrFactor;
	
	            return this;
	        },
	        multiply: function multiply(value) {
	            function cback(accum, curr, currI, O) {
	                var corrFactor = _.correctionFactor(accum, curr);
	                return Math.round(accum * corrFactor) * Math.round(curr * corrFactor) / Math.round(corrFactor * corrFactor);
	            }
	
	            this._value = _.reduce([this._value, value], cback, 1);
	
	            return this;
	        },
	        divide: function divide(value) {
	            function cback(accum, curr, currI, O) {
	                var corrFactor = _.correctionFactor(accum, curr);
	                return Math.round(accum * corrFactor) / Math.round(curr * corrFactor);
	            }
	
	            this._value = _.reduce([this._value, value], cback);
	
	            return this;
	        },
	        difference: function difference(value) {
	            return Math.abs(_numeral(this._value).subtract(value).value());
	        }
	    };
	
	    /************************************
	        Default Locale && Format
	    ************************************/
	
	    _numeral.register('locale', 'en', {
	        delimiters: {
	            thousands: ',',
	            decimal: '.'
	        },
	        abbreviations: {
	            thousand: 'k',
	            million: 'm',
	            billion: 'b',
	            trillion: 't'
	        },
	        ordinal: function ordinal(number) {
	            var b = number % 10;
	            return ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
	        },
	        currency: {
	            symbol: '$'
	        }
	    });
	
	    (function () {
	        _numeral.register('format', 'bps', {
	            regexps: {
	                format: /(BPS)/,
	                unformat: /(BPS)/
	            },
	            format: function format(value, _format, roundingFunction) {
	                var space = _numeral._.includes(_format, ' BPS') ? ' ' : '',
	                    output;
	
	                value = value * 10000;
	
	                // check for space before BPS
	                _format = _format.replace(/\s?BPS/, '');
	
	                output = _numeral._.numberToFormat(value, _format, roundingFunction);
	
	                if (_numeral._.includes(output, ')')) {
	                    output = output.split('');
	
	                    output.splice(-1, 0, space + 'BPS');
	
	                    output = output.join('');
	                } else {
	                    output = output + space + 'BPS';
	                }
	
	                return output;
	            },
	            unformat: function unformat(string) {
	                return +(_numeral._.stringToNumber(string) * 0.0001).toFixed(15);
	            }
	        });
	    })();
	
	    (function () {
	        var decimal = {
	            base: 1000,
	            suffixes: ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']
	        },
	            binary = {
	            base: 1024,
	            suffixes: ['B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB']
	        };
	
	        var allSuffixes = decimal.suffixes.concat(binary.suffixes.filter(function (item) {
	            return decimal.suffixes.indexOf(item) < 0;
	        }));
	        var unformatRegex = allSuffixes.join('|');
	        // Allow support for BPS (http://www.investopedia.com/terms/b/basispoint.asp)
	        unformatRegex = '(' + unformatRegex.replace('B', 'B(?!PS)') + ')';
	
	        _numeral.register('format', 'bytes', {
	            regexps: {
	                format: /([0\s]i?b)/,
	                unformat: new RegExp(unformatRegex)
	            },
	            format: function format(value, _format2, roundingFunction) {
	                var output,
	                    bytes = _numeral._.includes(_format2, 'ib') ? binary : decimal,
	                    suffix = _numeral._.includes(_format2, ' b') || _numeral._.includes(_format2, ' ib') ? ' ' : '',
	                    power,
	                    min,
	                    max;
	
	                // check for space before
	                _format2 = _format2.replace(/\s?i?b/, '');
	
	                for (power = 0; power <= bytes.suffixes.length; power++) {
	                    min = Math.pow(bytes.base, power);
	                    max = Math.pow(bytes.base, power + 1);
	
	                    if (value === null || value === 0 || value >= min && value < max) {
	                        suffix += bytes.suffixes[power];
	
	                        if (min > 0) {
	                            value = value / min;
	                        }
	
	                        break;
	                    }
	                }
	
	                output = _numeral._.numberToFormat(value, _format2, roundingFunction);
	
	                return output + suffix;
	            },
	            unformat: function unformat(string) {
	                var value = _numeral._.stringToNumber(string),
	                    power,
	                    bytesMultiplier;
	
	                if (value) {
	                    for (power = decimal.suffixes.length - 1; power >= 0; power--) {
	                        if (_numeral._.includes(string, decimal.suffixes[power])) {
	                            bytesMultiplier = Math.pow(decimal.base, power);
	
	                            break;
	                        }
	
	                        if (_numeral._.includes(string, binary.suffixes[power])) {
	                            bytesMultiplier = Math.pow(binary.base, power);
	
	                            break;
	                        }
	                    }
	
	                    value *= bytesMultiplier || 1;
	                }
	
	                return value;
	            }
	        });
	    })();
	
	    (function () {
	        _numeral.register('format', 'currency', {
	            regexps: {
	                format: /(\$)/
	            },
	            format: function format(value, _format3, roundingFunction) {
	                var locale = _numeral.locales[_numeral.options.currentLocale],
	                    symbols = {
	                    before: _format3.match(/^([\+|\-|\(|\s|\$]*)/)[0],
	                    after: _format3.match(/([\+|\-|\)|\s|\$]*)$/)[0]
	                },
	                    output,
	                    symbol,
	                    i;
	
	                // strip format of spaces and $
	                _format3 = _format3.replace(/\s?\$\s?/, '');
	
	                // format the number
	                output = _numeral._.numberToFormat(value, _format3, roundingFunction);
	
	                // update the before and after based on value
	                if (value >= 0) {
	                    symbols.before = symbols.before.replace(/[\-\(]/, '');
	                    symbols.after = symbols.after.replace(/[\-\)]/, '');
	                } else if (value < 0 && !_numeral._.includes(symbols.before, '-') && !_numeral._.includes(symbols.before, '(')) {
	                    symbols.before = '-' + symbols.before;
	                }
	
	                // loop through each before symbol
	                for (i = 0; i < symbols.before.length; i++) {
	                    symbol = symbols.before[i];
	
	                    switch (symbol) {
	                        case '$':
	                            output = _numeral._.insert(output, locale.currency.symbol, i);
	                            break;
	                        case ' ':
	                            output = _numeral._.insert(output, ' ', i + locale.currency.symbol.length - 1);
	                            break;
	                    }
	                }
	
	                // loop through each after symbol
	                for (i = symbols.after.length - 1; i >= 0; i--) {
	                    symbol = symbols.after[i];
	
	                    switch (symbol) {
	                        case '$':
	                            output = i === symbols.after.length - 1 ? output + locale.currency.symbol : _numeral._.insert(output, locale.currency.symbol, -(symbols.after.length - (1 + i)));
	                            break;
	                        case ' ':
	                            output = i === symbols.after.length - 1 ? output + ' ' : _numeral._.insert(output, ' ', -(symbols.after.length - (1 + i) + locale.currency.symbol.length - 1));
	                            break;
	                    }
	                }
	
	                return output;
	            }
	        });
	    })();
	
	    (function () {
	        _numeral.register('format', 'exponential', {
	            regexps: {
	                format: /(e\+|e-)/,
	                unformat: /(e\+|e-)/
	            },
	            format: function format(value, _format4, roundingFunction) {
	                var output,
	                    exponential = typeof value === 'number' && !_numeral._.isNaN(value) ? value.toExponential() : '0e+0',
	                    parts = exponential.split('e');
	
	                _format4 = _format4.replace(/e[\+|\-]{1}0/, '');
	
	                output = _numeral._.numberToFormat(Number(parts[0]), _format4, roundingFunction);
	
	                return output + 'e' + parts[1];
	            },
	            unformat: function unformat(string) {
	                var parts = _numeral._.includes(string, 'e+') ? string.split('e+') : string.split('e-'),
	                    value = Number(parts[0]),
	                    power = Number(parts[1]);
	
	                power = _numeral._.includes(string, 'e-') ? power *= -1 : power;
	
	                function cback(accum, curr, currI, O) {
	                    var corrFactor = _numeral._.correctionFactor(accum, curr),
	                        num = accum * corrFactor * (curr * corrFactor) / (corrFactor * corrFactor);
	                    return num;
	                }
	
	                return _numeral._.reduce([value, Math.pow(10, power)], cback, 1);
	            }
	        });
	    })();
	
	    (function () {
	        _numeral.register('format', 'ordinal', {
	            regexps: {
	                format: /(o)/
	            },
	            format: function format(value, _format5, roundingFunction) {
	                var locale = _numeral.locales[_numeral.options.currentLocale],
	                    output,
	                    ordinal = _numeral._.includes(_format5, ' o') ? ' ' : '';
	
	                // check for space before
	                _format5 = _format5.replace(/\s?o/, '');
	
	                ordinal += locale.ordinal(value);
	
	                output = _numeral._.numberToFormat(value, _format5, roundingFunction);
	
	                return output + ordinal;
	            }
	        });
	    })();
	
	    (function () {
	        _numeral.register('format', 'percentage', {
	            regexps: {
	                format: /(%)/,
	                unformat: /(%)/
	            },
	            format: function format(value, _format6, roundingFunction) {
	                var space = _numeral._.includes(_format6, ' %') ? ' ' : '',
	                    output;
	
	                if (_numeral.options.scalePercentBy100) {
	                    value = value * 100;
	                }
	
	                // check for space before %
	                _format6 = _format6.replace(/\s?\%/, '');
	
	                output = _numeral._.numberToFormat(value, _format6, roundingFunction);
	
	                if (_numeral._.includes(output, ')')) {
	                    output = output.split('');
	
	                    output.splice(-1, 0, space + '%');
	
	                    output = output.join('');
	                } else {
	                    output = output + space + '%';
	                }
	
	                return output;
	            },
	            unformat: function unformat(string) {
	                var number = _numeral._.stringToNumber(string);
	                if (_numeral.options.scalePercentBy100) {
	                    return number * 0.01;
	                }
	                return number;
	            }
	        });
	    })();
	
	    (function () {
	        _numeral.register('format', 'time', {
	            regexps: {
	                format: /(:)/,
	                unformat: /(:)/
	            },
	            format: function format(value, _format7, roundingFunction) {
	                var hours = Math.floor(value / 60 / 60),
	                    minutes = Math.floor((value - hours * 60 * 60) / 60),
	                    seconds = Math.round(value - hours * 60 * 60 - minutes * 60);
	
	                return hours + ':' + (minutes < 10 ? '0' + minutes : minutes) + ':' + (seconds < 10 ? '0' + seconds : seconds);
	            },
	            unformat: function unformat(string) {
	                var timeArray = string.split(':'),
	                    seconds = 0;
	
	                // turn hours and minutes into seconds and add them all up
	                if (timeArray.length === 3) {
	                    // hours
	                    seconds = seconds + Number(timeArray[0]) * 60 * 60;
	                    // minutes
	                    seconds = seconds + Number(timeArray[1]) * 60;
	                    // seconds
	                    seconds = seconds + Number(timeArray[2]);
	                } else if (timeArray.length === 2) {
	                    // minutes
	                    seconds = seconds + Number(timeArray[0]) * 60;
	                    // seconds
	                    seconds = seconds + Number(timeArray[1]);
	                }
	                return Number(seconds);
	            }
	        });
	    })();
	
	    return _numeral;
	});

/***/ }),
/* 440 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(22);
	__webpack_require__(21);
	__webpack_require__(40);
	__webpack_require__(16);
	__webpack_require__(447);
	
	angular.module('ui-ng-calendar-time', ['utility-ng-enumeration', 'utility-ng-interface', 'utility-ng-time', 'ui-ng-time-input', 'ui-ng-delegate']);
	
	__webpack_require__(998);
	__webpack_require__(995);
	__webpack_require__(999);
	__webpack_require__(996);
	__webpack_require__(997);
	__webpack_require__(1000);
	__webpack_require__(1001);
	
	// module.exports = 'ui-ng-calendar-time';

/***/ }),
/* 441 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(16);
	
	__webpack_require__(1014);
	
	angular.module('ui-ng-drag-drop', ['ui-ng-delegate', 'dndLists']);
	
	__webpack_require__(1013);
	__webpack_require__(1012);
	
	// module.exports = 'ui-ng-drag-drop';

/***/ }),
/* 442 */
/***/ (function(module, exports, __webpack_require__) {

	/* WEBPACK VAR INJECTION */(function(module) {'use strict';
	
	/**
	 * Created by Sina Khelil on 6/3/15.
	 */
	__webpack_require__(1026);
	
	module.export = angular.module('ui-ng-dropdown', ['ngDropdowns']);
	/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(38)(module)))

/***/ }),
/* 443 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(12);
	
	__webpack_require__(16);
	
	// module.exports = 'ui-ng-progress';
	
	/**
	 * @ui-ng-progress
	 */
	angular.module('ui-ng-progress', ['ui-ng-delegate']).controller('phxProgressController', function phxProgressController($scope) {
	  $scope.assignZero = function assignZero(v) {
	    v = parseFloat(v);
	    return _.isNaN(v) ? 0 : v;
	  };
	
	  $scope.showProgressBar = function showProgressBar(value) {
	    return value > 0 || $scope.display;
	  };
	
	  $scope.assignMax = function assignMax(max, value) {
	    var c = 0;
	
	    value = parseFloat(value);
	    max = parseFloat(max);
	
	    if (!_.isNaN(max)) {
	      return max;
	    } else if (_.isNaN(max) && !_.isNaN(value)) {
	      value = Math.abs(value);
	      while (value > 1) {
	        value /= 10;
	        c += 1;
	      }
	      return Math.pow(10, c);
	    } else {
	      return 0;
	    }
	  };
	
	  $scope.determinateProgressPercentage = function determinateProgressPercentage() {
	    return $scope.type === 'indeterminate' ? '100%' : (parseFloat($scope.value) - parseFloat($scope.min)) / (parseFloat($scope.max) - parseFloat($scope.min)) * 100 + '%';
	  };
	
	  $scope.progressValue = function progressValue() {
	    var units = _.trim($scope.units) === '%' ? '%' : ' ' + ($scope.units || '');
	
	    return parseFloat($scope.value) + units;
	  };
	
	  $scope.isLabelOutside = function isLabelOutside() {
	    return $scope.labelPosition === 'outside';
	  };
	
	  $scope.isLabelOff = function isLabelOff() {
	    return $scope.labelPosition === 'off';
	  };
	}).constant('phxProgressDelegateConstant', {
	  uniqueComponent: 'ui-ng-progress',
	  vocabulary: {
	    setMax: function setMax(scope, element, attrs, event, v) {
	      scope.max = scope.assignMax(v, scope.value);
	    },
	    setMin: function setMin(scope, element, attrs, event, v) {
	      scope.min = scope.assignZero(v);
	    },
	    setValue: function setValue(scope, element, attrs, event, v) {
	      scope.value = scope.assignZero(v);
	      scope.max = scope.assignMax(scope.max, scope.value);
	    }
	  }
	}).directive('phxProgress', function phxProgress(DelegateResponder, phxProgressDelegateConstant) {
	  return {
	    restrict: 'E',
	    replace: false,
	    templateUrl: 'ui-ng-progress/dist/templates/standard.html',
	    controller: 'phxProgressController',
	    scope: {
	      type: '@',
	      units: '@',
	      labelPosition: '@',
	      display: '@',
	      value: '@',
	      max: '@'
	    },
	    compile: function phxProgressCompile(element, attrs) {
	      element.addClass('progress').attr('role', 'progressbar');
	
	      attrs.type = attrs.type || 'determinate';
	      attrs.display = attrs.display || false;
	      attrs.labelPosition = attrs.labelPosition || 'inside';
	
	      return {
	        pre: function pre(scope, element, attrs) {
	          attrs.$observe('type', function (v) {
	            angular.element(element).removeClass('determinate indeterminate').addClass(v);
	          });
	          attrs.$observe('labelPosition', function (v) {
	            angular.element(element).removeClass('inside outside').addClass(v);
	          });
	
	          attrs.$observe('display', function (v) {
	            angular.element(element).addClass(v);
	          });
	
	          scope.min = scope.assignZero(attrs.min);
	          attrs.$observe('min', function (v) {
	            scope.min = scope.assignZero(v);
	            element.attr('aria-valuemin', scope.min);
	          });
	
	          var updateValues = function updateValues(v) {
	            scope.value = scope.assignZero(attrs.value);
	            scope.max = scope.assignMax(attrs.max, scope.value);
	            element.attr('aria-valuemax', scope.max);
	            element.attr('aria-valuenow', scope.value);
	          };
	
	          updateValues();
	          attrs.$observe('value', updateValues);
	          attrs.$observe('max', updateValues);
	        },
	        post: DelegateResponder(phxProgressDelegateConstant, function (scope, element, attrs) {})
	      };
	    }
	  };
	}).service('phxProgressDelegate', function phxProgressDelegate(DelegateController, phxProgressDelegateConstant) {
	  DelegateController(this, phxProgressDelegateConstant);
	});

/***/ }),
/* 444 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(1045);
	__webpack_require__(1046);
	__webpack_require__(1047);
	
	// module.exports = 'ui-ng-sibling';

/***/ }),
/* 445 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(12);
	
	// module.exports = 'ui-ng-smooth-scroll';
	
	angular.module('ui-ng-smooth-scroll', []).service('smoothScroll', function ($document, $window, $timeout) {
	  // from http://jsfiddle.net/alansouzati/6L7tA/
	
	  var document, window;
	
	  document = $document[0];
	  window = $window;
	
	  function getCurrentPagePosition(window, document) {
	    if (window.pageYOffset) return window.pageYOffset; // FF, Chrome, Opera, Safari
	    return 0;
	  }
	
	  function getElementY(document, element) {
	    var y = element.offsetTop;
	    var node = element;
	    while (node.offsetParent && node.offsetParent != document.body) {
	      node = node.offsetParent;
	      y += node.offsetTop;
	    }
	    return y;
	  }
	
	  this.scrollDown = function (startY, stopY, speed, distance) {
	    var timer = 0;
	
	    var step = Math.round(distance / 25);
	    var leapY = startY + step;
	
	    for (var i = startY; i < stopY; i += step) {
	      setTimeout('window.scrollTo(0, ' + leapY + ')', timer * speed);
	      leapY += step;
	      if (leapY > stopY) leapY = stopY;
	      timer++;
	    }
	  };
	
	  this.scrollUp = function (startY, stopY, speed, distance) {
	    var timer = 0;
	
	    var step = Math.round(distance / 25);
	    var leapY = startY - step;
	
	    for (var i = startY; i > stopY; i -= step) {
	      setTimeout('window.scrollTo(0, ' + leapY + ')', timer * speed);
	      leapY -= step;
	      if (leapY < stopY) leapY = stopY;
	      timer++;
	    }
	  };
	
	  this.scrollToTop = function (stopY) {
	    scrollTo(0, stopY);
	  };
	
	  this.scrollTo = function (elementId, speed) {
	    var self = this;
	    // This scrolling function
	    // is from http://www.itnewb.com/tutorial/Creating-the-Smooth-Scroll-Effect-with-JavaScript
	
	    $timeout(function () {
	      var element = document.getElementById(elementId);
	
	      if (element) {
	        var startY = getCurrentPagePosition(window, document);
	        var stopY = getElementY(document, element);
	
	        var distance = stopY > startY ? stopY - startY : startY - stopY;
	
	        if (distance < 100) {
	          self.scrollToTop(stopY);
	        } else {
	          var defaultSpeed = Math.round(distance / 100);
	          speed = speed || (defaultSpeed > 20 ? 20 : defaultSpeed);
	
	          if (stopY > startY) {
	            self.scrollDown(startY, stopY, speed, distance);
	          } else {
	            self.scrollUp(startY, stopY, speed, distance);
	          }
	        }
	      }
	    });
	  };
	}); /**
	     * @ui-ng-smooth-scroll
	     */

/***/ }),
/* 446 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(12);
	
	__webpack_require__(16);
	
	/**
	 * @ui-ng-sticky
	 */
	__webpack_require__(1048);
	
	angular.module('ui-ng-sticky', ['ui-ng-delegate', 'sticky']);
	
	// module.exports = 'ui-ng-sticky';

/***/ }),
/* 447 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(115);
	
	__webpack_require__(1052);
	__webpack_require__(1053);

/***/ }),
/* 448 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(66);
	__webpack_require__(1054);
	
	module.exports = angular.module('ui-ng-tooltip', ['mgcrea.ngStrap.tooltip', 'ui-ng-core-bootstrap']);

/***/ }),
/* 449 */
/***/ (function(module, exports) {

	"use strict";
	
	/** UI-Router Extras v.0.1.3 Module: core http://christopherthielen.github.io/ui-router-extras/ - MIT License */
	!function (r, n) {
	  "use strict";
	  function t(r, n) {
	    var t = [];for (var e in r.path) {
	      if (r.path[e] !== n.path[e]) break;t.push(r.path[e]);
	    }return t;
	  }function e(n) {
	    if (Object.keys) return Object.keys(n);var t = [];return r.forEach(n, function (r, n) {
	      t.push(n);
	    }), t;
	  }function i(r, n) {
	    var t = [];for (var e in r) {
	      n && -1 !== n.indexOf(e) || t.push(e);
	    }return t;
	  }function u(r, n) {
	    if (Array.prototype.indexOf) return r.indexOf(n, Number(arguments[2]) || 0);var t = r.length >>> 0,
	        e = Number(arguments[2]) || 0;for (e = 0 > e ? Math.ceil(e) : Math.floor(e), 0 > e && (e += t); t > e; e++) {
	      if (e in r && r[e] === n) return e;
	    }return -1;
	  }function a(r, n, i, a) {
	    var o,
	        f = t(i, a),
	        c = {},
	        s = [];for (var h in f) {
	      if (f[h].params && (o = l(f[h].params) ? f[h].params : e(f[h].params), o.length)) for (var p in o) {
	        u(s, o[p]) >= 0 || (s.push(o[p]), c[o[p]] = r[o[p]]);
	      }
	    }return v({}, c, n);
	  }function o(r, n) {
	    return v(new (v(function () {}, { prototype: r }))(), n);
	  }function f(r) {
	    h.push(r);
	  }var c = r.module("ct.ui.router.extras.core", ["ui.router"]),
	      s = {},
	      h = [];c.config(["$stateProvider", "$injector", function (n, t) {
	    n.decorator("parent", function (n, t) {
	      return s[n.self.name] = n, n.self.$$state = function () {
	        return s[n.self.name];
	      }, r.forEach(h, function (r) {
	        r(n);
	      }), t(n);
	    });
	  }]);var p = r.forEach,
	      v = r.extend,
	      l = r.isArray,
	      d = function d(r, n) {
	    var t = [];return p(r, function (r, e) {
	      t.push(n(r, e));
	    }), t;
	  },
	      m = function m(r) {
	    return d(r, function (r, n) {
	      return n;
	    });
	  },
	      y = function y(r, n) {
	    var t = [];return p(r, function (r, e) {
	      n(r, e) && t.push(r);
	    }), t;
	  },
	      x = function x(r, n) {
	    var t = {};return p(r, function (r, e) {
	      n(r, e) && (t[e] = r);
	    }), t;
	  };c.provider("uirextras_core", function () {
	    var n = { internalStates: s, onStateRegistered: f, forEach: p, extend: v, isArray: l, map: d, keys: m, filter: y, filterObj: x, ancestors: t, objectKeys: e, protoKeys: i, arraySearch: u, inheritParams: a, inherit: o };r.extend(this, n), this.$get = function () {
	      return n;
	    };
	  });
	}(angular);

/***/ }),
/* 450 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MicroNavAp3Controller = /** @class */ (function () {
	    function MicroNavAp3Controller(accountModel, ngUserModesService) {
	        this.accountModel = accountModel;
	        this.ngUserModesService = ngUserModesService;
	    }
	    MicroNavAp3Controller.prototype.isAdvisor = function () {
	        return this.ngUserModesService.isAdvisorOnly;
	    };
	    return MicroNavAp3Controller;
	}());
	exports.MicroNavAp3Controller = MicroNavAp3Controller;
	var SGDAp3Controller = /** @class */ (function () {
	    function SGDAp3Controller(ngUserModesService) {
	        this.ngUserModesService = ngUserModesService;
	    }
	    SGDAp3Controller.prototype.isAdvisor = function () {
	        return this.ngUserModesService.isAdvisorOnly;
	    };
	    SGDAp3Controller.prototype.$onInit = function () {
	        if (this.isAdvisor()) {
	            window.location.assign('#/my/ap3/advisor/');
	        }
	        else {
	            window.location.assign('#/my/ap3/student/');
	        }
	    };
	    return SGDAp3Controller;
	}());
	exports.SGDAp3Controller = SGDAp3Controller;
	exports.MicroNavAp3Directive = {
	    restrict: 'E',
	    replace: false,
	    // we want to pollute the scope to save the micro and shut it down on element.destroy
	    //
	    scope: true,
	    controller: 'MicroNavAp3Controller',
	    link: function (scope, element, attrs, controller) {
	        var studentNk = window.sessionStorage.getItem('external_id');
	        var appEl = element[0];
	        var accountModel = controller.accountModel;
	        var hasUserLoggedIn = accountModel.id > 0;
	        if (!hasUserLoggedIn) {
	            return;
	        }
	        window['$ip']
	            .requires([
	            './ad694d3a72cc6b21/micros/nav/ap3/bin/index.js?resource_type=module',
	            './ad694d3a72cc6b21/micros/nav/ap3/bin/index.css'
	        ])
	            .then(function (_a) {
	            var microDelegate = _a[0];
	            var advisorAccountOptions = {
	                student_nk: studentNk,
	                user_mode: 'advisor'
	            };
	            var studentAccountOptions = {
	                user_mode: 'student'
	            };
	            var isAdvisor = controller.isAdvisor();
	            var authorizationType = isAdvisor ? 'digest' : 'csrf';
	            var accountOptions = isAdvisor ? advisorAccountOptions : studentAccountOptions;
	            scope.microDelegate = microDelegate;
	            return microDelegate.startup(appEl, {
	                routes: {
	                    uri: '/my/ap3'
	                },
	                view: {
	                    configuration: {
	                        account: accountOptions,
	                        endpoints: {
	                            host: {
	                                application_name: 'sgd',
	                                server: '/'
	                            },
	                            authorization: {
	                                type: authorizationType,
	                                token: accountModel.token
	                            }
	                        }
	                    }
	                }
	            });
	        });
	        scope.$on('$destroy', function () {
	            if (scope.microDelegate) {
	                scope.microDelegate.shutdown();
	            }
	        });
	    }
	};


/***/ }),
/* 451 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var AppNotificationDelegate = /** @class */ (function () {
	    function AppNotificationDelegate(phxNotificationDelegate) {
	        this.phxNotificationDelegate = phxNotificationDelegate;
	        this.__appNotification = this.phxNotificationDelegate.restrictTo('app-alerts');
	    }
	    AppNotificationDelegate.prototype._config = function (config, content) {
	        var DEFAULTS = {
	            showIcon: true
	        };
	        config = _.merge({}, DEFAULTS, config);
	        if (config.status === 'error') {
	            config.dismissOnTimeout = false;
	        }
	        config.content = content;
	        return config;
	    };
	    // create content helper, but we can make it concatenate text (or make it standard)
	    // OR [header, content] and we can support an array of text...
	    // OR (string, string, string, object) and we collect all strings into one array; does not work well with TypeScript
	    // OR (header, body, config) and we expand the contract permanently - Campus always has title/text and we have to split it out
	    // OR (config) and you have to load all properties on config and we always merge
	    AppNotificationDelegate.prototype.content = function (header, message) {
	        return "<h5 class=\"h5\">" + header + "</h5><p class=\"text\">" + message + "</p>";
	    };
	    AppNotificationDelegate.prototype.create = function (content, config) {
	        this.__appNotification.create(this._config(config, content), config.status);
	    };
	    AppNotificationDelegate.prototype.error = function (content, config) {
	        this.__appNotification.error(this._config(tslib_1.__assign(tslib_1.__assign({}, config), { status: 'error' }), content));
	    };
	    AppNotificationDelegate.prototype.success = function (content, config) {
	        this.__appNotification.success(this._config(tslib_1.__assign(tslib_1.__assign({}, config), { status: 'success' }), content));
	    };
	    AppNotificationDelegate.prototype.info = function (content, config) {
	        this.__appNotification.info(this._config(tslib_1.__assign(tslib_1.__assign({}, config), { status: 'info' }), content));
	    };
	    AppNotificationDelegate.prototype.warn = function (content, config) {
	        this.__appNotification.warn(this._config(tslib_1.__assign(tslib_1.__assign({}, config), { status: 'warn' }), content));
	    };
	    return AppNotificationDelegate;
	}());
	exports.AppNotificationDelegate = AppNotificationDelegate;


/***/ }),
/* 452 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var NewPersonalReminderController = /** @class */ (function () {
	    function NewPersonalReminderController($state, createReminderCommand, editReminderCommand, ngReminderQuery, phxNotificationDelegate, $stateParams, ngTypeUtility, deleteReminderCommand, ngNavigationHistoryStack, ngPopupService) {
	        this.$state = $state;
	        this.createReminderCommand = createReminderCommand;
	        this.editReminderCommand = editReminderCommand;
	        this.ngReminderQuery = ngReminderQuery;
	        this.phxNotificationDelegate = phxNotificationDelegate;
	        this.$stateParams = $stateParams;
	        this.ngTypeUtility = ngTypeUtility;
	        this.deleteReminderCommand = deleteReminderCommand;
	        this.ngNavigationHistoryStack = ngNavigationHistoryStack;
	        this.ngPopupService = ngPopupService;
	        this.YYYY_MM_DD = 'YYYY-MM-DD';
	        this.isOpened = true;
	        this.showValidationAlert = false;
	        this.validationMessage = 'Please fill the required fields.';
	        this.maxNotesLength = 1000;
	        this.maxTitleLength = 60;
	        this.personalReminder = {};
	        this.isEditingMode = !_4.isUndefined(this.$stateParams.personalTodoID);
	        this.deleteReminder = this.deleteReminder.bind(this);
	        this.initializeTime();
	    }
	    NewPersonalReminderController.prototype.$onInit = function () {
	        this.isEditingMode ? this.setExistingReminderData() : this.initializeDefaultSettings();
	    };
	    NewPersonalReminderController.prototype.closeModal = function (reload) {
	        if (reload === void 0) { reload = false; }
	        var previousState = this.ngNavigationHistoryStack.previousState;
	        this.$state.go(previousState.name, previousState.params, { reload: reload });
	    };
	    NewPersonalReminderController.prototype.showDialog = function () {
	        this.isOpened = false;
	    };
	    NewPersonalReminderController.prototype.sanitizeAndSaveReminderTitle = function (evt) {
	        this.personalReminder.reminderTitle = this.sanitizeText(_4.get(evt, 'detail.value', ''), this.maxTitleLength);
	    };
	    NewPersonalReminderController.prototype.sanitizeAndSaveReminderNotes = function (evt) {
	        this.personalReminder.reminderNotes = this.sanitizeText(_4.get(evt, 'target.value', ''), this.maxNotesLength);
	    };
	    NewPersonalReminderController.prototype.sanitizeText = function (text, length) {
	        if (text.length > length) {
	            text = text.substring(0, length);
	        }
	        text = this.ngTypeUtility.string.sanitizeString(text);
	        return text;
	    };
	    NewPersonalReminderController.prototype.isReminderFormValid = function () {
	        if (_4.isEmpty(this.personalReminder.reminderTitle)) {
	            this.validationMessage = 'Please enter a reminder title for the reminder.';
	            return false;
	        }
	        if (!this.isDateTimeCorrectlySet()) {
	            this.validationMessage = 'Please select a valid due date for the reminder.';
	            return false;
	        }
	        return true;
	    };
	    NewPersonalReminderController.prototype.isDateTimeCorrectlySet = function () {
	        if (this.personalReminder.isAllDayReminder) {
	            return !_4.isEmpty(this.personalReminder.selectedDate);
	        }
	        return !_4.isEmpty(this.personalReminder.selectedDate) && !_4.isEmpty(this.personalReminder.selectedTime);
	    };
	    NewPersonalReminderController.prototype.confirmReminderSubmission = function () {
	        var _this = this;
	        if (!this.isReminderFormValid()) {
	            this.showValidationAlert = true;
	            return;
	        }
	        if (this.isEditingMode) {
	            this.showValidationAlert = false;
	            this.editReminderCommand(this.$stateParams.personalTodoID, this.getReminderAPIValues())
	                .then(function (response) {
	                _this.submissionSuccess('updated');
	            })
	                .catch(function (error) {
	                _this.notify('Something went wrong. Please try again!', true);
	            });
	        }
	        else {
	            this.showValidationAlert = false;
	            this.createReminderCommand(this.getReminderAPIValues())
	                .then(function (response) {
	                _this.submissionSuccess('created');
	            })
	                .catch(function (error) {
	                _this.notify('Something went wrong. Please try again!', true);
	            });
	        }
	    };
	    NewPersonalReminderController.prototype.deleteReminder = function () {
	        var _this = this;
	        this.deleteReminderCommand(this.$stateParams.personalTodoID)
	            .then(function (response) {
	            _this.submissionSuccess('deleted');
	        })
	            .catch(function (error) {
	            _this.notify(error, true);
	        });
	    };
	    NewPersonalReminderController.prototype.submissionSuccess = function (type) {
	        this.notify("Personal to-do " + type + " successfully!", false);
	        type === 'deleted' ? this.ngNavigationHistoryStack.deleteAndGoBack() : this.closeModal(true);
	    };
	    NewPersonalReminderController.prototype.getReminderAPIValues = function () {
	        return {
	            title: this.personalReminder.reminderTitle,
	            description: this.personalReminder.reminderNotes || '',
	            due_dt: this.getDueDateTime().due_dt,
	            due_tm: this.getDueDateTime().due_tm,
	            status: 'ACTIVE'
	        };
	    };
	    NewPersonalReminderController.prototype.getDueDateTime = function () {
	        var selectedDateTime = this.personalReminder.isAllDayReminder
	            ? this.personalReminder.selectedDate
	            : this.personalReminder.selectedDate + " " + this.personalReminder.selectedTime.name;
	        return {
	            due_dt: moment(selectedDateTime, 'YYYY-MM-DD hh:mm A').format(this.YYYY_MM_DD),
	            due_tm: moment(selectedDateTime, 'YYYY-MM-DD hh:mm A').format('HH:mm:ss.SSSS')
	        };
	    };
	    NewPersonalReminderController.prototype.initializeTime = function () {
	        var _this = this;
	        var STARTTIME = '08:00';
	        var INTERVAL = 15;
	        var PERIOD = 'm';
	        var periodsInADay = moment.duration(1, 'day').as(PERIOD) / INTERVAL;
	        var startTime = moment(STARTTIME, 'hh:mm');
	        this.timingArray = [];
	        _4.times(periodsInADay, function (key) {
	            startTime.add(key === 0 ? 0 : INTERVAL, PERIOD);
	            _this.timingArray.push({ name: startTime.format('hh:mm A') });
	        });
	    };
	    NewPersonalReminderController.prototype.notify = function (message, isError) {
	        var notificationDelegate = this.phxNotificationDelegate.restrictTo('app-alerts');
	        if (isError) {
	            notificationDelegate.error({
	                content: message,
	                showIcon: true,
	                dismissButton: true,
	                dismissOnTimeout: true
	            });
	        }
	        else {
	            notificationDelegate.success({
	                content: message,
	                showIcon: true,
	                dismissButton: true,
	                dismissOnTimeout: true
	            });
	        }
	    };
	    NewPersonalReminderController.prototype.getDisplayDate = function () {
	        return moment(this.personalReminder.selectedDate).format('MMM DD, YYYY');
	    };
	    NewPersonalReminderController.prototype.setSelectedDate = function (evt) {
	        this.personalReminder.selectedDate = evt.detail.value;
	        this.personalReminder.displayDate = this.getDisplayDate();
	    };
	    NewPersonalReminderController.prototype.setSelectedTime = function (evt) {
	        this.personalReminder.selectedTime = {
	            name: evt.detail.value
	        };
	    };
	    NewPersonalReminderController.prototype.setExistingReminderData = function () {
	        var reminderData = this.ngReminderQuery.result;
	        this.personalReminder.reminderTitle = reminderData.title;
	        this.personalReminder.reminderNotes = reminderData.description;
	        this.personalReminder.selectedDate = reminderData.due_dt;
	        this.personalReminder.displayDate = this.getDisplayDate();
	        var dateTime = moment(reminderData.due_tm, 'HH:mm:ss');
	        this.personalReminder.isAllDayReminder = dateTime.hours() === 0 && dateTime.minutes() === 0;
	        if (!this.personalReminder.isAllDayReminder) {
	            this.personalReminder.selectedTime = { name: dateTime.format('hh:mm A') };
	            this.personalReminder.initialSelectedTime = dateTime.format('HH:mm');
	        }
	    };
	    NewPersonalReminderController.prototype.initializeDefaultSettings = function () {
	        this.personalReminder.isAllDayReminder = false;
	        var currentDateTime = moment();
	        this.personalReminder.selectedDate = currentDateTime.format(this.YYYY_MM_DD);
	        this.personalReminder.displayDate = this.getDisplayDate();
	        var baseTime = currentDateTime.minutes(Math.ceil(currentDateTime.minute() / 15) * 15);
	        this.personalReminder.selectedTime = {
	            name: baseTime.format('hh:mm A')
	        };
	        this.personalReminder.initialSelectedTime = baseTime.format('HH:mm');
	    };
	    NewPersonalReminderController.prototype.deleteConfirmationAlert = function () {
	        var self = this;
	        this.ngPopupService.show({
	            title: 'Delete Personal To-Do',
	            body: 'Are you sure you want to delete this personal to-do? This cannot be undone.',
	            completeButtonText: 'Delete',
	            cancelButtonText: 'Cancel',
	            completeCallback: self.deleteReminder,
	            cancelCallback: angular.noop
	        });
	    };
	    return NewPersonalReminderController;
	}());
	exports.NewPersonalReminderController = NewPersonalReminderController;


/***/ }),
/* 453 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var channel_builder_servant_ts_1 = __webpack_require__(2189);
	var ApplicationConfiguration = /** @class */ (function () {
	    function ApplicationConfiguration(Interface) {
	        this.Interface = Interface;
	        this.model = {
	            member_features: {},
	            member_configs: {},
	            institution_media_paths: {},
	            LOGIN_HELP: {
	                nk: '',
	                title: '',
	                description: '',
	                footer: '',
	                details: []
	            },
	            ADVISING_HELP: {
	                nk: '',
	                title: '',
	                description: '',
	                footer: '',
	                details: []
	            },
	            TECHNICAL_HELP: {
	                nk: '',
	                title: '',
	                description: '',
	                footer: '',
	                details: []
	            },
	            SELF_ALERT_HELP: {
	                nk: '',
	                title: '',
	                description: '',
	                footer: '',
	                details: []
	            }
	        };
	        this.AppConfigDTD = {
	            member_features: 'object',
	            institution_media_paths: 'object',
	            member_configs: {
	                type: 'builder',
	                typeDef: 'MemberConfigsBuilder'
	            },
	            LOGIN_HELP: 'object',
	            ADVISING_HELP: 'object',
	            TECHNICAL_HELP: 'object',
	            SELF_ALERT_HELP: 'object'
	        };
	        this.initialize();
	    }
	    ApplicationConfiguration.prototype.initialize = function () {
	        this.Interface.implement(this.AppConfigDTD, {}, this.model);
	        this.model.member_configs.HIPIconTheme = 'blue';
	        return this.model;
	    };
	    ApplicationConfiguration.prototype.updateStudentHelp = function () {
	        _4.forEach(this.model.LOGIN_HELP.details, this.buildChannelmetadata);
	        _4.forEach(this.model.ADVISING_HELP.details, this.buildChannelmetadata);
	        _4.forEach(this.model.TECHNICAL_HELP.details, this.buildChannelmetadata);
	        _4.forEach(this.model.SELF_ALERT_HELP.details, this.buildChannelmetadata);
	    };
	    ApplicationConfiguration.prototype.buildChannelmetadata = function (val) {
	        val.metadata = channel_builder_servant_ts_1.ChannelBuilderServant.build(val.channel, val.contact_display_value, val.contact_value);
	    };
	    ApplicationConfiguration.prototype.update = function (data) {
	        this.Interface.implement(this.AppConfigDTD, data, this.model);
	        this.model.member_configs.HIPIconTheme = 'blue';
	        this.updateStudentHelp();
	        return this.model;
	    };
	    ApplicationConfiguration.prototype.isConfigLoaded = function () {
	        return !_4.isEmpty(this.model.member_configs) && !_4.isEmpty(this.model.member_features);
	    };
	    ApplicationConfiguration.prototype.isFeatureEnabled = function (key) {
	        return _4.has(this.model.member_features, key) ? this.model.member_features[key] : false;
	    };
	    ApplicationConfiguration.prototype.getConfigProperty = function (key) {
	        return _4.has(this.model.member_configs, key) ? this.model.member_configs[key] : '';
	    };
	    ApplicationConfiguration.prototype.useIntakePoll = function () {
	        return !_4.isEmpty(this.getConfigProperty('poll-intake_survey_id'));
	    };
	    ApplicationConfiguration.prototype.useFirstTermPoll = function () {
	        return this.isFeatureEnabled('cat-first_term') && this.userIsFirstTermSource();
	    };
	    ApplicationConfiguration.prototype.userIsFirstTermSource = function () {
	        return this.getConfigProperty('cat-first_term_source') === 'cat.FirstTerm';
	    };
	    ApplicationConfiguration.prototype.intakeOrFirstTermID = function () {
	        return this.getConfigProperty('poll-intake_survey_id');
	    };
	    ApplicationConfiguration.prototype.productName = function () {
	        return this.getConfigProperty('product');
	    };
	    ApplicationConfiguration.prototype.isProductFeatureEnabled = function (key) {
	        return this.isFeatureEnabled(key);
	    };
	    ApplicationConfiguration.prototype.getInstitutionMediaPath = function (key) {
	        return _4.has(this.model.institution_media_paths, key) ? this.model.institution_media_paths[key] : '';
	    };
	    ApplicationConfiguration.prototype.supportEmail = function () {
	        return "NavigateStudentTechSupport@eab.com";
	    };
	    ApplicationConfiguration.prototype.navIconTheme = function () {
	        return this.getConfigProperty('HIPIconTheme');
	    };
	    return ApplicationConfiguration;
	}());
	exports.ApplicationConfiguration = ApplicationConfiguration;
	var ApplicationConfigurationModel = /** @class */ (function () {
	    function ApplicationConfigurationModel() {
	    }
	    ApplicationConfigurationModel.prototype.$get = function (Interface) {
	        return new ApplicationConfiguration(Interface);
	    };
	    return ApplicationConfigurationModel;
	}());
	exports.ApplicationConfigurationModel = ApplicationConfigurationModel;
	var ApplicationDetails = /** @class */ (function () {
	    function ApplicationDetails() {
	    }
	    Object.defineProperty(ApplicationDetails.prototype, "details", {
	        get: function () {
	            return {
	                ci: this.ciDetails,
	                deployment: this.deploymentDetails,
	                environment: this.environmentDetails,
	                repository: this.repositoryDetails
	            };
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ApplicationDetails.prototype, "ci", {
	        get: function () {
	            return this.ciDetails;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ApplicationDetails.prototype, "deployment", {
	        get: function () {
	            return this.deploymentDetails;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ApplicationDetails.prototype, "environment", {
	        get: function () {
	            return this.environmentDetails;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ApplicationDetails.prototype, "repository", {
	        get: function () {
	            return this.repositoryDetails;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    ApplicationDetails.prototype.setDetails = function (config) {
	        var ci = config.ci, deployment = config.deployment, environment = config.environment, repository = config.repository;
	        this.ciDetails = ci;
	        this.deploymentDetails = deployment;
	        this.environmentDetails = environment;
	        this.repositoryDetails = repository;
	    };
	    return ApplicationDetails;
	}());
	exports.ApplicationDetails = ApplicationDetails;


/***/ }),
/* 454 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	/**
	 *
	 */
	var ResponsiveNavigationController = /** @class */ (function () {
	    function ResponsiveNavigationController($state, openOpenableElementCommand, loadStudentMenuCommand, ngStudentMenuQuery) {
	        this.$state = $state;
	        this.openOpenableElementCommand = openOpenableElementCommand;
	        this.loadStudentMenuCommand = loadStudentMenuCommand;
	        this.ngStudentMenuQuery = ngStudentMenuQuery;
	    }
	    ResponsiveNavigationController.prototype.$onInit = function () {
	        this.loadStudentMenuCommand();
	        this.setDomControl();
	    };
	    ResponsiveNavigationController.prototype.setDomControl = function () {
	        this.dom = window['$ip'].use('@eab-pip/pi-dom');
	    };
	    ResponsiveNavigationController.prototype.goTo = function (event) {
	        var _this = this;
	        var prop = event.detail.value;
	        if (prop.nk === 'HELP') {
	            this.openOpenableElementCommand('appSupportDrawer');
	            event.preventDefault();
	            return false;
	        }
	        else {
	            setTimeout(function () { return _this.dom.focusOnMain(); }, 750);
	        }
	    };
	    return ResponsiveNavigationController;
	}());
	exports.ResponsiveNavigationController = ResponsiveNavigationController;
	var ResponsiveNavigationComponent = /** @class */ (function () {
	    function ResponsiveNavigationComponent() {
	        this.templateUrl = 'lib/responsive_navigation/views/responsive_navigation/responsive_navigation.html';
	        this.controller = ResponsiveNavigationController;
	        this.bindings = {};
	    }
	    return ResponsiveNavigationComponent;
	}());
	exports.ResponsiveNavigationComponent = ResponsiveNavigationComponent;


/***/ }),
/* 455 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PlacementGroup = /** @class */ (function () {
	    function PlacementGroup(phxFeatureConfiguration) {
	        this.phxFeatureConfiguration = phxFeatureConfiguration;
	        this.graphs = [];
	    }
	    PlacementGroup.prototype.$onInit = function () {
	        this.initializeGraphs();
	    };
	    PlacementGroup.prototype.hasCourses = function () {
	        return !_4.isEmpty(this.section._courses_by_group_nk[this.nk]);
	    };
	    PlacementGroup.prototype.hasTests = function () {
	        return !_4.isEmpty(this.section._tests);
	    };
	    PlacementGroup.prototype.numCoursesInSection = function () {
	        return _4.flatten(_4.values(this.section._courses_by_group_nk)).length;
	    };
	    PlacementGroup.prototype.isHighestBand = function () {
	        return _4.isEmpty(this.section.next_highest_path_entry_by_group_nk[this.nk]);
	    };
	    PlacementGroup.prototype.numPlacementGroups = function () {
	        return _4.keys(this.section._courses_by_group_nk).length;
	    };
	    PlacementGroup.prototype.hasTestsOnPath = function () {
	        return !_4.isEmpty(this.section._tests_on_path);
	    };
	    PlacementGroup.prototype.isTestOnPath = function (test) {
	        return _4.includes(this.section._tests_on_path, test);
	    };
	    PlacementGroup.prototype.scoresToDegrees = function (score, maxScore) {
	        return -Math.round((score / maxScore) * 360);
	    };
	    PlacementGroup.prototype.hasBestTestsOffPath = function () {
	        var _this = this;
	        var testsExist = false;
	        angular.forEach(this.section._best_tests_by_nk, function (test) {
	            testsExist = testsExist || _4.includes(_this.section._tests_off_path, test);
	        });
	        return testsExist;
	    };
	    /*tslint:disable:cognitive-complexity*/
	    PlacementGroup.prototype.initializeGraphs = function () {
	        var _this = this;
	        // If there are no tests, return an empty array...
	        if (!this.hasTests()) {
	            return this.graphs;
	        }
	        var isHighestBand = this.isHighestBand();
	        var hasCourses = this.hasCourses();
	        var numPlacementGroups = this.numPlacementGroups();
	        _4.each(this.section._best_tests_by_nk[this.nk], function (test) {
	            var name = test.name;
	            var score = test.score;
	            var maxScore = test.max_score;
	            var bands = [];
	            // Check if test is on the path...
	            var isTestOnPath = _this.isTestOnPath(test);
	            // If the student is in the highest placement band for the specified section, he should see
	            // a green graph.
	            if (isHighestBand || !hasCourses) {
	                bands.push({
	                    degrees: _this.scoresToDegrees(score, maxScore),
	                    color: numPlacementGroups === 1 ? 'college-ready' : 'dev-req'
	                });
	            }
	            // If the student is not in the highest placement band, and the test is not on the path out,
	            // then he should see a blue graph.
	            else if (!(isHighestBand || !hasCourses) && !isTestOnPath) {
	                bands.push({
	                    degrees: _this.scoresToDegrees(score, maxScore),
	                    color: 'dev-req'
	                });
	            }
	            // If the student is not in the highest placement band and the test is on the path out, he
	            // see a graph with an orange band and a blue band.
	            else {
	                var entry = _this.section.next_highest_path_entry_by_group_nk[_this.nk];
	                bands.push({
	                    degrees: _this.scoresToDegrees(entry.min_score, maxScore),
	                    color: 'next-band'
	                });
	                bands.push({
	                    degrees: _this.scoresToDegrees(score, maxScore),
	                    color: 'dev-req'
	                });
	            }
	            // Build graph data...
	            _this.graphs.push({
	                name: name,
	                score: _4.parseInt(score),
	                bands: bands,
	                test: test
	            });
	        });
	        // Check if we need separate graph to show the next highest path entry...
	        if ((!isHighestBand && !this.hasTestsOnPath()) ||
	            (!isHighestBand && this.hasBestTestsOffPath() && this.hasTestsOnPath())) {
	            var entry = this.section.next_highest_path_entry_by_group_nk[this.nk];
	            var bands = [
	                {
	                    degrees: this.scoresToDegrees(entry.min_score, entry.test_max_score),
	                    color: 'next-band'
	                }
	            ];
	            var entryTest = _4.find(this.section._tests, {
	                id: entry.test_id
	            });
	            if (entryTest) {
	                bands.push({
	                    degrees: this.scoresToDegrees(entryTest.score, entry.test_max_score),
	                    color: 'dev-req'
	                });
	            }
	            this.graphs.push({
	                name: entry.test_name,
	                score: _4.parseInt(entry.min_score),
	                bands: bands,
	                test: undefined
	            });
	        }
	        return this.graphs;
	    };
	    return PlacementGroup;
	}());
	exports.PlacementGroup = PlacementGroup;
	angular.module('biz-ng-path-placement').component('placementGroup', {
	    bindings: {
	        section: '<',
	        nk: '<'
	    },
	    controller: PlacementGroup,
	    templateUrl: 'biz-ng-path-placement/src/components/placement_group/placement_group.html'
	});


/***/ }),
/* 456 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PlacementTestScoresTile = /** @class */ (function () {
	    function PlacementTestScoresTile(phxFeatureConfiguration) {
	        this.phxFeatureConfiguration = phxFeatureConfiguration;
	        this.isScoreVisible = false;
	    }
	    PlacementTestScoresTile.prototype.$onInit = function () {
	        this.courses = this.getCoursesInSection();
	        this.otherTestScoresData = this.otherTestScores();
	        this.showScores = this.showScores ? this.showScores : true;
	        this.messageConditions = {
	            0: ' developmental courses',
	            one: 'a developmental course',
	            other: ' developmental courses'
	        };
	        this.developmentalCoursesModalContent = "<p class=\"mbs\"> Developmental Courses prepare you for college level work.When planning your schedule, take these courses first to be eligible to take you major courses.</p>\n        <p class=\"text\">These courses do not count towards your degree requirements and will add time in school.\n            Contact an academic  " + this.phxFeatureConfiguration.read('student-platform.roles.advisor-title.lowercase').assignContent + "\n             to talk about your required developmental courses.</p>";
	    };
	    PlacementTestScoresTile.prototype.numPlacementGroups = function () {
	        return _4.keys(this.section._courses_by_group_nk).length;
	    };
	    PlacementTestScoresTile.prototype.hasCoursesInSection = function () {
	        return !_4.isEmpty(_4.flatten(_4.values(this.section._courses_by_group_nk)));
	    };
	    PlacementTestScoresTile.prototype.showDevelopmentalCoursesDesc = function () {
	        this.modalData = {
	            data: {
	                title: 'Developmental Courses',
	                content: this.developmentalCoursesModalContent
	            },
	            isOpen: true
	        };
	    };
	    PlacementTestScoresTile.prototype.showNoscoresYetDesc = function () {
	        this.modalData = {
	            data: {
	                title: 'Take the Placement Test!',
	                content: "<p class=\"text mbs\">Colleges use placement tests in subjects like Math and English to check the academic skill levels of entering students. Then the college can place each student in classes at the right level.</p>"
	            },
	            isOpen: true
	        };
	    };
	    PlacementTestScoresTile.prototype.getCoursesInSection = function () {
	        return _4.union(_4.flatten(_4.values(this.section._courses_by_group_nk)));
	    };
	    PlacementTestScoresTile.prototype.hasTests = function () {
	        return !_4.isEmpty(this.section._tests);
	    };
	    PlacementTestScoresTile.prototype.hasTestsOnPath = function () {
	        return !_4.isEmpty(this.section._tests_on_path);
	    };
	    PlacementTestScoresTile.prototype.hasBestTestsOffPath = function () {
	        var _this = this;
	        var testsExist = false;
	        _4.each(this.section._best_tests_by_nk, function (test) {
	            testsExist = testsExist || _4.includes(_this.section._tests_off_path, test);
	        });
	        return testsExist;
	    };
	    PlacementTestScoresTile.prototype.otherTests = function () {
	        var allTests = this.section._tests;
	        var bestTests = _4.flatten(_4.values(this.section._best_tests_by_nk));
	        return _4.difference(allTests, bestTests);
	    };
	    PlacementTestScoresTile.prototype.hasOtherTests = function () {
	        return !_4.isEmpty(this.otherTests());
	    };
	    PlacementTestScoresTile.prototype.otherTestScores = function () {
	        return _4.map(this.otherTests(), function (test) {
	            return { name: test.name, score: test.score };
	        });
	    };
	    PlacementTestScoresTile.prototype.isTestOnPath = function (test) {
	        return _4.includes(this.section._tests_on_path, test);
	    };
	    PlacementTestScoresTile.prototype.isTestOffPath = function (test) {
	        return _4.includes(this.section._tests_off_path, test);
	    };
	    PlacementTestScoresTile.prototype.scoresToDegrees = function (score, maxScore) {
	        return -Math.round((score / maxScore) * 360);
	    };
	    PlacementTestScoresTile.prototype.isEmptyTest = function (test) {
	        return _4.isEmpty(test);
	    };
	    PlacementTestScoresTile.prototype.iconClass = function () {
	        if (!this.hasCoursesInSection() && !this.hasTests()) {
	            return 'eab-icon-book';
	        }
	        return this.hasCoursesInSection() ? 'eab-icon-book' : 'eab-icon-smile-o';
	    };
	    PlacementTestScoresTile.prototype.tileClass = function () {
	        return this.section.isScoreVisible ? 'pbm' : '';
	    };
	    PlacementTestScoresTile.prototype.onClick_showScores = function () {
	        this.isScoreVisible = !this.isScoreVisible;
	    };
	    return PlacementTestScoresTile;
	}());
	exports.PlacementTestScoresTile = PlacementTestScoresTile;
	angular.module('biz-ng-path-placement').component('placementTestScoresTile', {
	    bindings: {
	        section: '<',
	        showScores: '<'
	    },
	    controller: PlacementTestScoresTile,
	    templateUrl: 'biz-ng-path-placement/src/components/placement_test_scores_tile/placement_test_scores_tile.html'
	});


/***/ }),
/* 457 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var TestScoresGraph = /** @class */ (function () {
	    function TestScoresGraph(phxFeatureConfiguration) {
	        this.phxFeatureConfiguration = phxFeatureConfiguration;
	    }
	    TestScoresGraph.prototype.$onInit = function () {
	        this.sectors = this.initializeSectors();
	        this.messageConditions = {
	            0: ' developmental courses',
	            one: 'a developmental course',
	            other: ' developmental courses'
	        };
	    };
	    TestScoresGraph.prototype.numCoursesInSection = function () {
	        return _4.flatten(_4.values(this.section._courses_by_group_nk)).length;
	    };
	    TestScoresGraph.prototype.hasCourses = function () {
	        return !_4.isEmpty(this.section._courses_by_group_nk[this.nk]);
	    };
	    TestScoresGraph.prototype.numPlacementGroups = function () {
	        return _4.keys(this.section._courses_by_group_nk).length;
	    };
	    TestScoresGraph.prototype.rotate = function (degrees) {
	        return {
	            transform: 'rotate(' + degrees.toString() + 'deg)'
	        };
	    };
	    TestScoresGraph.prototype.initializeSectors = function () {
	        var sectorsAll = [];
	        angular.forEach(this.graph.bands, function (band) {
	            if (band.degrees < -180) {
	                sectorsAll.push({
	                    sectorClipClass: 'clip-l',
	                    targetClipClass: 'clip-r',
	                    sectorRotation: 0,
	                    targetRotation: -180,
	                    color: band.color
	                });
	                sectorsAll.push({
	                    sectorClipClass: 'clip-r',
	                    targetClipClass: 'clip-l',
	                    sectorRotation: 0,
	                    targetRotation: 180 + band.degrees,
	                    color: band.color
	                });
	            }
	            else {
	                sectorsAll.push({
	                    sectorClipClass: 'clip-l',
	                    targetClipClass: 'clip-r',
	                    sectorRotation: 0,
	                    targetRotation: band.degrees,
	                    color: band.color
	                });
	            }
	        });
	        return sectorsAll;
	    };
	    TestScoresGraph.prototype.isTestOnPath = function (test) {
	        return _4.includes(this.section._tests_on_path, test);
	    };
	    TestScoresGraph.prototype.intMinScore = function () {
	        return this.section.next_highest_path_entry_by_group_nk[this.nk]
	            ? _4.parseInt(this.section.next_highest_path_entry_by_group_nk[this.nk].min_score)
	            : 0;
	    };
	    TestScoresGraph.prototype.getGraphScore = function (graphs, filterFn) {
	        var graph = _4.first(_4.filter(graphs, filterFn));
	        return !!graph ? this.graph.score : '--';
	    };
	    return TestScoresGraph;
	}());
	exports.TestScoresGraph = TestScoresGraph;
	angular.module('biz-ng-path-placement').component('testScoresGraph', {
	    bindings: {
	        section: '<',
	        nk: '<',
	        graph: '<'
	    },
	    controller: TestScoresGraph,
	    templateUrl: 'biz-ng-path-placement/src/components/test_score_graph/test_score_graph.html'
	});


/***/ }),
/* 458 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_platform_1 = __webpack_require__(8);
	var PlacementTestTileModalController = /** @class */ (function () {
	    function PlacementTestTileModalController() {
	        this.isOpen = false;
	        this.isMobile = false;
	        this.isMobile = utility_ts_platform_1.PlatformUtility.isMobile();
	    }
	    PlacementTestTileModalController.prototype.hideModal = function () {
	        this.isOpen = false;
	    };
	    return PlacementTestTileModalController;
	}());
	exports.PlacementTestTileModalController = PlacementTestTileModalController;
	var PlacementTestTileModalComponent = /** @class */ (function () {
	    function PlacementTestTileModalComponent() {
	        this.templateUrl = 'biz-ng-path-placement/src/modals/placement_test_tile_modal.html';
	        this.controller = PlacementTestTileModalController;
	        this.bindings = {
	            modalData: '<',
	            isOpen: '='
	        };
	    }
	    return PlacementTestTileModalComponent;
	}());
	exports.PlacementTestTileModalComponent = PlacementTestTileModalComponent;


/***/ }),
/* 459 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var course_requirement_tree_1 = __webpack_require__(118);
	var RequisiteServant = /** @class */ (function () {
	    function RequisiteServant() {
	    }
	    RequisiteServant.getRequisiteTitle = function (reqNode, associatedCourses) {
	        if (reqNode.type === 'COURSE' || reqNode.type === 'GRADE') {
	            var requisiteCourse = associatedCourses[reqNode.course];
	            var rangeText = !!reqNode.range ? "required class grade not met (" + reqNode.range + ")" : '';
	            if (requisiteCourse) {
	                // TODO: Check with Sravan for this
	                // reqNode._course = requisiteCourse;
	                reqNode.title = "<span class=\"text text-sz-s\">" + requisiteCourse.cd + " " + requisiteCourse.title + " " + rangeText + "</span> ";
	            }
	        }
	        if (RequisiteServant.isTestTypeRequisite(reqNode)) {
	            var range = !!reqNode.range ? "(" + reqNode.range + ")" : '';
	            var displayTitle = !_4.isNil(reqNode.title) ? reqNode.title : reqNode.test;
	            reqNode.title = "<span class=\"text text-sz-s\">" + displayTitle + " " + range + "</span>";
	        }
	        return reqNode.title;
	    };
	    RequisiteServant.isTestTypeRequisite = function (reqNode) {
	        return reqNode.type === 'TEST';
	    };
	    RequisiteServant.formChildrenReqList = function (reqNode, associatedCourses) {
	        var nonCompactedReqList = reqNode.childrens.map(function (child) {
	            return RequisiteServant.formRequisiteList(child, associatedCourses);
	        });
	        return _4.compact(nonCompactedReqList);
	    };
	    RequisiteServant.formRequisiteList = function (reqNode, associatedCourses) {
	        if (_4.isEmpty(reqNode.childrens)) {
	            var title = RequisiteServant.getRequisiteTitle(reqNode, associatedCourses);
	            if (_4.isEmpty(title)) {
	                return "";
	            }
	            return "<hi-leaf class=\"text text-sz-m pbsx\">" + title + "</hi-leaf>";
	        }
	        else {
	            var reqList = RequisiteServant.formChildrenReqList(reqNode, associatedCourses);
	            var hasOneEntry = reqList.length === 1;
	            if (hasOneEntry) {
	                return "<hi-leaf class=\"text text-sz-m pbsx\">" + reqList.join(' ') + "</hi-leaf>";
	            }
	            return "\n          <hi-sub-tree heading=\"" + RequisiteServant.getRequisiteTitle(reqNode, associatedCourses) + "\">\n            " + reqList.join(' ') + "\n          </hi-sub-tree>";
	        }
	    };
	    RequisiteServant.getRequisiteTree = function (_requisites, associatedCourses) {
	        var requisites = _4.toArray(_requisites);
	        var reqTree = new course_requirement_tree_1.RequisiteTree();
	        reqTree.insert(requisites[0]);
	        var lastNode = reqTree.root;
	        requisites.slice(1).forEach(function (req) {
	            lastNode = reqTree.insertData(req, lastNode);
	            return lastNode;
	        });
	        return "\n      <hi-tree>\n        " + RequisiteServant.formRequisiteList(reqTree.root, associatedCourses) + "\n      </hi-tree>\n      ";
	    };
	    RequisiteServant.openFirstLadderOfTree = function (tree) {
	        var subTreeTagName = 'hi-sub-tree';
	        var firstLadder = tree.search(subTreeTagName);
	        var firstIndex = 0;
	        if (firstLadder < firstIndex) {
	            return tree;
	        }
	        var indexAfterSubtree = firstLadder + subTreeTagName.length;
	        var untilSubTreeNodeText = tree.slice(firstIndex, indexAfterSubtree);
	        var afterSubTreeNodeText = tree.slice(indexAfterSubtree);
	        return untilSubTreeNodeText + " add-attr=\"{'timeout': 500, 'attribute': 'opened'}\" " + afterSubTreeNodeText;
	    };
	    RequisiteServant.getRequisiteHtml = function (requisites, associatedCourses) {
	        var reqTree = RequisiteServant.getRequisiteTree(requisites, associatedCourses);
	        return RequisiteServant.openFirstLadderOfTree(reqTree);
	    };
	    RequisiteServant.getPreRequisiteIssueText = function () {
	        return "Please make sure that all prerequisite courses meet the grade requirements before taking this course.";
	    };
	    RequisiteServant.hasTestPreRequisite = function (preReqs) {
	        return _4.some(preReqs, function (req) { return req.type === 'TEST'; });
	    };
	    RequisiteServant.hasPreRequisiteIssues = function (preReqs) {
	        return _4.some(preReqs, function (req) { return req.is_grade_satisfied !== null && !req.is_grade_satisfied; });
	    };
	    RequisiteServant.getPreRequisiteTestIssueText = function (advisorTitle) {
	        if (advisorTitle === void 0) { advisorTitle = 'advisor'; }
	        return "Passing test score may also satisfy the prerequisite(s) for this course. \n    Please see your " + advisorTitle + " for details on testing and score requirements.";
	    };
	    return RequisiteServant;
	}());
	exports.RequisiteServant = RequisiteServant;


/***/ }),
/* 460 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	exports.externalRegistrationLinkNk = 'SIS_REGISTRATION_URL';
	angular.module('capability-ng-academic-planner').factory('ngExternalRegistrationLinkModel', function () {
	    return new utility_ts_orm_1.Model({
	        nk: exports.externalRegistrationLinkNk,
	        text: undefined
	    });
	});


/***/ }),
/* 461 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APAlternatePlanNonExistingCourse = /** @class */ (function () {
	    function APAlternatePlanNonExistingCourse(alternatePlanNonExistingCourse) {
	        _4.merge(this, alternatePlanNonExistingCourse);
	    }
	    APAlternatePlanNonExistingCourse.build = function (alternatePlanNonExistingCourse) {
	        return new APAlternatePlanNonExistingCourse(alternatePlanNonExistingCourse);
	    };
	    return APAlternatePlanNonExistingCourse;
	}());
	exports.APAlternatePlanNonExistingCourse = APAlternatePlanNonExistingCourse;


/***/ }),
/* 462 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_type_1 = __webpack_require__(17);
	var APChangelog = /** @class */ (function () {
	    function APChangelog(change) {
	        var TIME_FORMAT = 'MMMM Do, YYYY - h:mmA';
	        _4.merge(change, {
	            _formattedCommittedTime: utility_ts_type_1.TimeUtility.formatTime(TIME_FORMAT, change.committed_ts || ''),
	            _formattedCreatedTime: utility_ts_type_1.TimeUtility.formatTime(TIME_FORMAT, change.created_ts || ''),
	            _formattedEditedTime: utility_ts_type_1.TimeUtility.formatTime(TIME_FORMAT, change.edited_ts || ''),
	            _formattedLastChangeTime: utility_ts_type_1.TimeUtility.formatTime(TIME_FORMAT, change.last_change_time || ''),
	            _changelogDisplay: []
	        });
	        _4.merge(this, change);
	    }
	    APChangelog.build = function (change) {
	        return new APChangelog(change);
	    };
	    return APChangelog;
	}());
	exports.APChangelog = APChangelog;


/***/ }),
/* 463 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_strategy_1 = __webpack_require__(6);
	var ap_changelog_servant_1 = __webpack_require__(120);
	exports.SuggestionTypeStrategy = new utility_ts_strategy_1.StrategySafe({
	    ADVISOR: {
	        css: 'clr-green_50-txt',
	        title: 'Accepted',
	        type: 'accept',
	        items: []
	    },
	    STUDENT: {
	        css: 'clr-red_30-txt',
	        title: 'Declined',
	        type: 'decline',
	        items: []
	    },
	    UNDECIDED: {
	        title: 'Pending',
	        css: '',
	        type: 'pending',
	        items: []
	    },
	    CONFLICTING: {
	        title: 'Conflicting',
	        css: '',
	        type: 'conflicting',
	        items: []
	    }
	});
	exports.PROPOSER = {
	    advisor: "ADVISOR",
	    student: "STUDENT"
	};
	var isMoveSuggestedPlanItem = function (changes) {
	    if (changes.length !== 2) {
	        return false;
	    }
	    if (_4.isEmpty(changes[0].term)) {
	        return false;
	    }
	    var hasTermChanged = !_4.isEqual(_4.first(changes).term.id, _4.last(changes).term.id);
	    // it is weird that api is sending the comment only update for flagged transaction like this
	    var onlyCommentChanged = !hasTermChanged && !_4.isEqual(_4.first(changes).comment, _4.last(changes).comment);
	    return hasTermChanged || onlyCommentChanged;
	};
	var isTemplateTransaction = function (changes, _proposer) {
	    if (changes.length !== 1) {
	        return false;
	    }
	    var transaction = _4.first(changes);
	    if (transaction.slot_status !== 'MET') {
	        return false;
	    }
	    return transaction.proposer === _proposer;
	};
	exports.ChangeTypeStrategy = new utility_ts_strategy_1.ConditionalStrategySafe({
	    MOVE: function (changes) { return isMoveSuggestedPlanItem(changes); },
	    MET: function (changes) { return isTemplateTransaction(changes, 'ADVISOR'); },
	    UNMET: function (changes) { return isTemplateTransaction(changes, 'STUDENT'); },
	    COMMENT_ONLY: function (changes) {
	        return changes.length === 2 && _4.first(changes).slot_status === 'COMMENT_ONLY';
	    },
	    ADD: function (changes) { return !ap_changelog_servant_1.APChangelogServant.getProposerChange(changes, exports.PROPOSER.student); },
	    REMOVE: function (changes) { return !ap_changelog_servant_1.APChangelogServant.getProposerChange(changes, exports.PROPOSER.advisor); },
	    DEFAULT: function () { return true; }
	});
	var lockedText = function (isLocked) { return (isLocked ? 'locked' : 'unlocked'); };
	var getLockedTemplate = function (suggestedChanges) {
	    var lockChanged = ap_changelog_servant_1.APChangelogServant.hasPropertyChanged("is_locked", suggestedChanges);
	    var hasAdvisorLock = ap_changelog_servant_1.APChangelogServant.getProposerChangeProperty(suggestedChanges, exports.PROPOSER.advisor, "is_locked");
	    if (!lockChanged) {
	        return "";
	    }
	    return "was " + lockedText(!!hasAdvisorLock);
	};
	var getSlotTitle = function (courseForTemplate) {
	    var courseTemplateForDataMissing = "<span class='text-italic'>Missing course data</span>";
	    if (!courseForTemplate) {
	        return "";
	    }
	    if (ap_changelog_servant_1.APChangelogServant.isCourse(courseForTemplate)) {
	        var cd = _4.get(courseForTemplate, 'course.cd', courseTemplateForDataMissing);
	        var title = _4.get(courseForTemplate, 'course.title', '');
	        return cd + " " + title;
	    }
	    var _slotTile = ap_changelog_servant_1.APChangelogServant.getSlotTitle(courseForTemplate);
	    return _4.isEmpty(_slotTile) ? "" + courseTemplateForDataMissing : _slotTile;
	};
	exports.ChangeTypeTemplateStrategy = new utility_ts_strategy_1.StrategySafe({
	    MOVE: {
	        commentTemplate: function (suggestedChanges) {
	            var advisorChange = ap_changelog_servant_1.APChangelogServant.getProposerChange(suggestedChanges, exports.PROPOSER.advisor);
	            var studentChange = ap_changelog_servant_1.APChangelogServant.getProposerChange(suggestedChanges, exports.PROPOSER.student);
	            var hasAdvisorComment = ap_changelog_servant_1.APChangelogServant.hasComment(advisorChange);
	            if (!ap_changelog_servant_1.APChangelogServant.hasTermChanged(suggestedChanges)) {
	                return {
	                    comment: hasAdvisorComment ? advisorChange.comment : '',
	                    prefix: "edited",
	                    hasFlag: true
	                };
	            }
	            else {
	                return {
	                    comment: hasAdvisorComment ? advisorChange.comment : studentChange.comment,
	                    prefix: hasAdvisorComment ? "new" : "removed",
	                    hasFlag: hasAdvisorComment
	                };
	            }
	        },
	        courseTemplate: function (suggestedChanges) {
	            var courseForTemplate = ap_changelog_servant_1.APChangelogServant.getProposerChange(suggestedChanges, exports.PROPOSER.advisor);
	            var courseTitle = getSlotTitle(courseForTemplate);
	            var suffixText = '';
	            var fromTerm = _4.get(ap_changelog_servant_1.APChangelogServant.getProposerChangeProperty(suggestedChanges, exports.PROPOSER.student, "term"), 'name');
	            var toTerm = _4.get(ap_changelog_servant_1.APChangelogServant.getProposerChangeProperty(suggestedChanges, exports.PROPOSER.advisor, "term"), 'name');
	            suffixText = !ap_changelog_servant_1.APChangelogServant.hasTermChanged(suggestedChanges) ? '' : "moved from " + fromTerm + " to " + toTerm;
	            return [courseTitle, "" + suffixText];
	        },
	        lockTemplate: function (suggestedChanges) { return getLockedTemplate(suggestedChanges); }
	    },
	    ADD: {
	        commentTemplate: function (suggestedChanges) {
	            var advisorChange = ap_changelog_servant_1.APChangelogServant.getProposerChange(suggestedChanges, exports.PROPOSER.advisor);
	            var hasAdvisorComment = ap_changelog_servant_1.APChangelogServant.hasComment(advisorChange);
	            return {
	                comment: hasAdvisorComment ? advisorChange.comment : '',
	                prefix: "new",
	                hasFlag: true
	            };
	        },
	        courseTemplate: function (suggestedChanges) {
	            var courseForTemplate = ap_changelog_servant_1.APChangelogServant.getProposerChange(suggestedChanges, exports.PROPOSER.advisor);
	            var courseTitle = getSlotTitle(courseForTemplate);
	            var suffixText = "added to " + courseForTemplate.term.name; // toTerm?;
	            return ["" + courseTitle, "" + suffixText];
	        },
	        lockTemplate: function (suggestedChanges) {
	            var hasAdvisorLock = ap_changelog_servant_1.APChangelogServant.getProposerChangeProperty(suggestedChanges, exports.PROPOSER.advisor, "is_locked");
	            return hasAdvisorLock ? "was locked" : "";
	        }
	    },
	    REMOVE: {
	        commentTemplate: function (suggestedChanges) {
	            var studentChange = ap_changelog_servant_1.APChangelogServant.getProposerChange(suggestedChanges, exports.PROPOSER.student);
	            return {
	                comment: ap_changelog_servant_1.APChangelogServant.hasComment(studentChange) ? studentChange.comment : '',
	                prefix: "removed",
	                hasFlag: false
	            };
	        },
	        courseTemplate: function (suggestedChanges) {
	            var courseForTemplate = ap_changelog_servant_1.APChangelogServant.getProposerChange(suggestedChanges, exports.PROPOSER.student);
	            var courseTitle = getSlotTitle(courseForTemplate);
	            var suffixText = "removed from " + courseForTemplate.term.name; // fromTerm?
	            return ["" + courseTitle, "" + suffixText];
	        },
	        lockTemplate: function (suggestedChanges) {
	            var hasAdvisorLock = ap_changelog_servant_1.APChangelogServant.getProposerChangeProperty(suggestedChanges, exports.PROPOSER.advisor, "is_locked");
	            return hasAdvisorLock ? "was unlocked" : "";
	        }
	    },
	    DEFAULT: {
	        commentTemplate: function (suggestedChanges) {
	            return {
	                comment: '',
	                prefix: "new",
	                hasFlag: false
	            };
	        },
	        courseTemplate: function (suggestedChanges) {
	            var courseForTemplate = ap_changelog_servant_1.APChangelogServant.getProposerChange(suggestedChanges, exports.PROPOSER.advisor);
	            return ["" + getSlotTitle(courseForTemplate)];
	        },
	        lockTemplate: function (suggestedChanges) { return getLockedTemplate(suggestedChanges); }
	    }
	});


/***/ }),
/* 464 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	/* tslint:disable:max-classes-per-file  */
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var CommentMeta = /** @class */ (function () {
	    function CommentMeta() {
	    }
	    return CommentMeta;
	}());
	exports.CommentMeta = CommentMeta;
	var BaseComment = /** @class */ (function () {
	    function BaseComment(slot) {
	        _4.merge(this, {}, slot);
	        return this;
	    }
	    return BaseComment;
	}());
	exports.BaseComment = BaseComment;
	var CourseComment = /** @class */ (function (_super) {
	    tslib_1.__extends(CourseComment, _super);
	    function CourseComment() {
	        return _super !== null && _super.apply(this, arguments) || this;
	    }
	    return CourseComment;
	}(BaseComment));
	exports.CourseComment = CourseComment;
	var SlotComment = /** @class */ (function (_super) {
	    tslib_1.__extends(SlotComment, _super);
	    function SlotComment() {
	        return _super !== null && _super.apply(this, arguments) || this;
	    }
	    return SlotComment;
	}(BaseComment));
	exports.SlotComment = SlotComment;
	var PlanComment = /** @class */ (function (_super) {
	    tslib_1.__extends(PlanComment, _super);
	    function PlanComment() {
	        return _super !== null && _super.apply(this, arguments) || this;
	    }
	    return PlanComment;
	}(BaseComment));
	exports.PlanComment = PlanComment;
	var CommentBuilder = /** @class */ (function () {
	    function CommentBuilder(slot) {
	        _4.merge(this, {}, slot);
	        return this;
	    }
	    CommentBuilder.build = function (slot) {
	        if (slot.content_type === null) {
	            return new PlanComment(slot);
	        }
	        else if (slot.content_type === 'cat.Course') {
	            return new CourseComment(slot);
	        }
	        else {
	            return new SlotComment(slot);
	        }
	    };
	    return CommentBuilder;
	}());
	exports.CommentBuilder = CommentBuilder;


/***/ }),
/* 465 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(7);
	var APCustomText = /** @class */ (function () {
	    function APCustomText(customText) {
	        this.id = customText.id || customText.nk;
	        _4.merge(this, customText);
	        return this;
	    }
	    APCustomText.build = function (customText) {
	        return new APCustomText(customText);
	    };
	    return APCustomText;
	}());
	exports.APCustomText = APCustomText;


/***/ }),
/* 466 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APAvailableTerm = /** @class */ (function () {
	    function APAvailableTerm(availableTerm) {
	        _4.merge(this, {}, availableTerm);
	    }
	    APAvailableTerm.build = function (availableTerm) {
	        return new APAvailableTerm(availableTerm);
	    };
	    return APAvailableTerm;
	}());
	exports.APAvailableTerm = APAvailableTerm;


/***/ }),
/* 467 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APCourseGroup = /** @class */ (function () {
	    function APCourseGroup(courseGroup) {
	        _4.merge(this, {}, courseGroup);
	    }
	    APCourseGroup.build = function (courseGroup) {
	        return new APCourseGroup(courseGroup);
	    };
	    return APCourseGroup;
	}());
	exports.APCourseGroup = APCourseGroup;


/***/ }),
/* 468 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APGoalSets = /** @class */ (function () {
	    function APGoalSets(goalSet) {
	        _4.merge(this, {}, goalSet);
	    }
	    APGoalSets.build = function (goalSet) {
	        return new APGoalSets(goalSet);
	    };
	    return APGoalSets;
	}());
	exports.APGoalSets = APGoalSets;


/***/ }),
/* 469 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APGoal = /** @class */ (function () {
	    function APGoal(goal) {
	        _4.merge(this, {}, goal);
	    }
	    APGoal.build = function (goal) {
	        return new APGoal(goal);
	    };
	    return APGoal;
	}());
	exports.APGoal = APGoal;


/***/ }),
/* 470 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APGradeConfig = /** @class */ (function () {
	    function APGradeConfig(gradeConfig) {
	        _4.merge(this, {}, gradeConfig);
	    }
	    APGradeConfig.build = function (gradeConfig) {
	        return new APGradeConfig(gradeConfig);
	    };
	    return APGradeConfig;
	}());
	exports.APGradeConfig = APGradeConfig;


/***/ }),
/* 471 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APMmFavoriteCourse = /** @class */ (function () {
	    function APMmFavoriteCourse(favoriteCourse) {
	        _4.merge(this, {}, favoriteCourse);
	    }
	    APMmFavoriteCourse.build = function (favoriteCourse) {
	        return new APMmFavoriteCourse(favoriteCourse);
	    };
	    return APMmFavoriteCourse;
	}());
	exports.APMmFavoriteCourse = APMmFavoriteCourse;


/***/ }),
/* 472 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APMmDevReqTemplateSlot = /** @class */ (function () {
	    function APMmDevReqTemplateSlot(slot) {
	        _4.merge(this, { slotType: 'DEV_REQ_COURSE' }, slot);
	    }
	    APMmDevReqTemplateSlot.build = function (slot) {
	        return new APMmDevReqTemplateSlot(slot);
	    };
	    return APMmDevReqTemplateSlot;
	}());
	exports.APMmDevReqTemplateSlot = APMmDevReqTemplateSlot;


/***/ }),
/* 473 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APMmTemplateSlot = /** @class */ (function () {
	    function APMmTemplateSlot(slot) {
	        _4.merge(this, slot);
	    }
	    APMmTemplateSlot.build = function (slot) {
	        return new APMmTemplateSlot(slot);
	    };
	    return APMmTemplateSlot;
	}());
	exports.APMmTemplateSlot = APMmTemplateSlot;


/***/ }),
/* 474 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APMultiTerm = /** @class */ (function () {
	    function APMultiTerm(slot) {
	        _4.merge(this, {}, slot);
	    }
	    APMultiTerm.build = function (slot) {
	        return new APMultiTerm(slot);
	    };
	    return APMultiTerm;
	}());
	exports.APMultiTerm = APMultiTerm;


/***/ }),
/* 475 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APPlannedCourse = /** @class */ (function () {
	    function APPlannedCourse(plannedCourse) {
	        if (_4.isNull(plannedCourse.status)) {
	            plannedCourse.status = '';
	        }
	        _4.merge(this, {}, plannedCourse);
	    }
	    APPlannedCourse.build = function (plannedCourse) {
	        return new APPlannedCourse(plannedCourse);
	    };
	    return APPlannedCourse;
	}());
	exports.APPlannedCourse = APPlannedCourse;


/***/ }),
/* 476 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APProgramInfo = /** @class */ (function () {
	    function APProgramInfo(programInfo) {
	        this.short_plan_instructions = '';
	        _4.merge(this, {}, programInfo);
	    }
	    APProgramInfo.build = function (programInfo) {
	        return new APProgramInfo(programInfo);
	    };
	    return APProgramInfo;
	}());
	exports.APProgramInfo = APProgramInfo;


/***/ }),
/* 477 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var ap_program_slot_servant_1 = __webpack_require__(15);
	var ProgramSlot = /** @class */ (function () {
	    function ProgramSlot() {
	    }
	    return ProgramSlot;
	}());
	exports.ProgramSlot = ProgramSlot;
	var SingleCourseProgramSlot = /** @class */ (function (_super) {
	    tslib_1.__extends(SingleCourseProgramSlot, _super);
	    function SingleCourseProgramSlot(programSlot) {
	        var _this = _super.call(this) || this;
	        _this.total_courses = 1;
	        _4.merge(_this, {}, programSlot);
	        return _this;
	    }
	    return SingleCourseProgramSlot;
	}(ProgramSlot));
	exports.SingleCourseProgramSlot = SingleCourseProgramSlot;
	var CourseGroupProgramSlot = /** @class */ (function (_super) {
	    tslib_1.__extends(CourseGroupProgramSlot, _super);
	    function CourseGroupProgramSlot(courseGroupProgramSlot) {
	        var _this = _super.call(this) || this;
	        _4.merge(_this, {}, courseGroupProgramSlot);
	        return _this;
	    }
	    return CourseGroupProgramSlot;
	}(ProgramSlot));
	exports.CourseGroupProgramSlot = CourseGroupProgramSlot;
	var WildcardProgramSlot = /** @class */ (function (_super) {
	    tslib_1.__extends(WildcardProgramSlot, _super);
	    function WildcardProgramSlot(wildcardProgramSlot) {
	        var _this = _super.call(this) || this;
	        _4.merge(_this, {}, wildcardProgramSlot);
	        return _this;
	    }
	    return WildcardProgramSlot;
	}(ProgramSlot));
	exports.WildcardProgramSlot = WildcardProgramSlot;
	var NCRProgramSlot = /** @class */ (function (_super) {
	    tslib_1.__extends(NCRProgramSlot, _super);
	    function NCRProgramSlot(ncrProgramSlot) {
	        var _this = _super.call(this) || this;
	        _4.merge(_this, {}, ncrProgramSlot);
	        return _this;
	    }
	    return NCRProgramSlot;
	}(ProgramSlot));
	exports.NCRProgramSlot = NCRProgramSlot;
	var ProgramSlotMeta = /** @class */ (function () {
	    function ProgramSlotMeta() {
	    }
	    return ProgramSlotMeta;
	}());
	exports.ProgramSlotMeta = ProgramSlotMeta;
	var SingleCourseProgramSlotMeta = /** @class */ (function (_super) {
	    tslib_1.__extends(SingleCourseProgramSlotMeta, _super);
	    function SingleCourseProgramSlotMeta() {
	        return _super !== null && _super.apply(this, arguments) || this;
	    }
	    return SingleCourseProgramSlotMeta;
	}(ProgramSlotMeta));
	exports.SingleCourseProgramSlotMeta = SingleCourseProgramSlotMeta;
	var CourseGroupProgramSlotMeta = /** @class */ (function (_super) {
	    tslib_1.__extends(CourseGroupProgramSlotMeta, _super);
	    function CourseGroupProgramSlotMeta() {
	        return _super !== null && _super.apply(this, arguments) || this;
	    }
	    return CourseGroupProgramSlotMeta;
	}(ProgramSlotMeta));
	exports.CourseGroupProgramSlotMeta = CourseGroupProgramSlotMeta;
	var WildcardProgramSlotMeta = /** @class */ (function (_super) {
	    tslib_1.__extends(WildcardProgramSlotMeta, _super);
	    function WildcardProgramSlotMeta() {
	        return _super !== null && _super.apply(this, arguments) || this;
	    }
	    return WildcardProgramSlotMeta;
	}(ProgramSlotMeta));
	exports.WildcardProgramSlotMeta = WildcardProgramSlotMeta;
	var APProgramSlotBuilder = /** @class */ (function () {
	    function APProgramSlotBuilder(programSlot) {
	        _4.merge(this, {}, programSlot);
	        return this;
	    }
	    APProgramSlotBuilder.build = function (programSlot) {
	        if (ap_program_slot_servant_1.APProgramSlotServant.isCourseProgramSlot(programSlot)) {
	            return new SingleCourseProgramSlot(programSlot);
	        }
	        else if (ap_program_slot_servant_1.APProgramSlotServant.isWildcardProgramSlot(programSlot)) {
	            return new WildcardProgramSlot(programSlot);
	        }
	        else if (ap_program_slot_servant_1.APProgramSlotServant.isCourseGroupProgramSlot(programSlot)) {
	            return new CourseGroupProgramSlot(programSlot);
	        }
	        else {
	            return new NCRProgramSlot(programSlot);
	        }
	    };
	    return APProgramSlotBuilder;
	}());
	exports.APProgramSlotBuilder = APProgramSlotBuilder;


/***/ }),
/* 478 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	/**
	 * old name was PlannerCourseBuilder
	 */
	var APSectionType = /** @class */ (function () {
	    function APSectionType(sectionType) {
	        _4.merge(this, {
	            name: sectionType.cd
	        }, sectionType);
	    }
	    APSectionType.build = function (sectionType) {
	        return new APSectionType(sectionType);
	    };
	    return APSectionType;
	}());
	exports.APSectionType = APSectionType;


/***/ }),
/* 479 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(7);
	var utility_ts_type_1 = __webpack_require__(17);
	var ap_term_status_strategy_1 = __webpack_require__(123);
	/**
	 * old name was PlannerTermBuilder
	 */
	var APTerm = /** @class */ (function () {
	    function APTerm(term) {
	        this._showLockAllCourses = false;
	        this._showUnLockAllCourses = false;
	        _4.merge(this, term, {
	            registration_start_dt: utility_ts_type_1.TimeUtility.parseYearMonthDay(term.registration_start_dt),
	            registration_end_dt: utility_ts_type_1.TimeUtility.parseYearMonthDay(term.registration_end_dt),
	            term_start_dt: utility_ts_type_1.TimeUtility.parseYearMonthDay(term.term_start_dt),
	            term_end_dt: utility_ts_type_1.TimeUtility.parseYearMonthDay(term.term_end_dt)
	        });
	        this._termStatus = this.__calculateTermStatus(this);
	        this._pastCourses = [];
	    }
	    APTerm.prototype.__calculateTermStatus = function (_a) {
	        var registration_start_dt = _a.registration_start_dt, registration_end_dt = _a.registration_end_dt, term_start_dt = _a.term_start_dt, term_end_dt = _a.term_end_dt, priority_registration_start_dt = _a.priority_registration_start_dt, priority_registration_end_dt = _a.priority_registration_end_dt;
	        return ap_term_status_strategy_1.APTermStatusStrategy.getByKey(ap_term_status_strategy_1.APTermStatusConditionalStrategy.evaluate({
	            registration_start_dt: registration_start_dt,
	            registration_end_dt: registration_end_dt,
	            term_start_dt: term_start_dt,
	            term_end_dt: term_end_dt,
	            priority_registration_start_dt: priority_registration_start_dt,
	            priority_registration_end_dt: priority_registration_end_dt
	        }, 'DEFAULT'));
	    };
	    APTerm.build = function (block) {
	        return new APTerm(block);
	    };
	    return APTerm;
	}());
	exports.APTerm = APTerm;


/***/ }),
/* 480 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APTermSlotGroup = /** @class */ (function () {
	    function APTermSlotGroup(slot) {
	        _4.merge(this, {}, slot);
	    }
	    APTermSlotGroup.build = function (slot) {
	        return new APTermSlotGroup(slot);
	    };
	    return APTermSlotGroup;
	}());
	exports.APTermSlotGroup = APTermSlotGroup;


/***/ }),
/* 481 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APYearSlotGroup = /** @class */ (function () {
	    function APYearSlotGroup(slot) {
	        _4.merge(this, {}, slot);
	    }
	    APYearSlotGroup.build = function (slot) {
	        return new APYearSlotGroup(slot);
	    };
	    return APYearSlotGroup;
	}());
	exports.APYearSlotGroup = APYearSlotGroup;


/***/ }),
/* 482 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var lodash4_1 = __webpack_require__(1);
	var utility_ts_type_1 = __webpack_require__(17);
	var PlannedTerm = /** @class */ (function () {
	    function PlannedTerm(plannedTerm) {
	        lodash4_1.merge(plannedTerm.term, {
	            registration_start_dt: utility_ts_type_1.TimeUtility.parseYearMonthDay(plannedTerm.term.registration_start_dt),
	            registration_end_dt: utility_ts_type_1.TimeUtility.parseYearMonthDay(plannedTerm.term.registration_end_dt),
	            term_start_dt: utility_ts_type_1.TimeUtility.parseYearMonthDay(plannedTerm.term.term_start_dt),
	            term_end_dt: utility_ts_type_1.TimeUtility.parseYearMonthDay(plannedTerm.term.term_end_dt)
	        });
	        lodash4_1.merge(this, plannedTerm);
	    }
	    PlannedTerm.build = function (block) {
	        return new PlannedTerm(block);
	    };
	    return PlannedTerm;
	}());
	exports.PlannedTerm = PlannedTerm;


/***/ }),
/* 483 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.SHOW_BUSY_INDICATOR_EVENT = 'SHOW_BUSY_INDICATOR';
	exports.HIDE_BUSY_INDICATOR_EVENT = 'HIDE_BUSY_INDICATOR';
	var BusyIndicatorService = /** @class */ (function () {
	    function BusyIndicatorService(ngComponentCommunicatorService) {
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	    }
	    BusyIndicatorService.prototype.show = function (message) {
	        this.message = message;
	        this.ngComponentCommunicatorService.publish(exports.SHOW_BUSY_INDICATOR_EVENT);
	    };
	    BusyIndicatorService.prototype.hide = function () {
	        this.message = '';
	        this.ngComponentCommunicatorService.publish(exports.HIDE_BUSY_INDICATOR_EVENT);
	    };
	    return BusyIndicatorService;
	}());
	exports.BusyIndicatorService = BusyIndicatorService;
	angular.module('capability-ng-academic-planner').service('ngBusyIndicatorService', BusyIndicatorService);


/***/ }),
/* 484 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var course_req_tree_1 = __webpack_require__(485);
	var ReqServant = /** @class */ (function () {
	    function ReqServant() {
	    }
	    ReqServant.getReqTitle = function (reqNode, associatedCourses) {
	        if (reqNode.type === 'COURSE' || reqNode.type === 'GRADE') {
	            var requisiteCourse = associatedCourses[reqNode.course];
	            var rangeText = !!reqNode.range ? "required class grade not met (" + reqNode.range + ")" : '';
	            if (requisiteCourse) {
	                // TODO: Check with Sravan for this
	                // reqNode._course = requisiteCourse;
	                reqNode.title = "<span class=\"text text-sz-s\">" + requisiteCourse.cd + " " + requisiteCourse.title + "</span> " + rangeText;
	            }
	        }
	        if (ReqServant.isTestTypeRequisite(reqNode)) {
	            var range = !!reqNode.range ? "(" + reqNode.range + ")" : '';
	            var displayTitle = !_4.isNil(reqNode.title) ? reqNode.title : reqNode.test;
	            reqNode.title = "<span class=\"text text-sz-s\">" + displayTitle + "</span> " + range;
	        }
	        return reqNode.title;
	    };
	    ReqServant.isTestTypeRequisite = function (reqNode) {
	        return reqNode.type === 'TEST';
	    };
	    ReqServant.formChildrenReqList = function (reqNode, associatedCourses) {
	        var nonCompactedReqList = reqNode.childrens.map(function (child) { return ReqServant.formReqList(child, associatedCourses); });
	        return _4.compact(nonCompactedReqList);
	    };
	    ReqServant.formReqList = function (reqNode, associatedCourses) {
	        if (_4.isEmpty(reqNode.childrens)) {
	            var title = ReqServant.getReqTitle(reqNode, associatedCourses);
	            if (_4.isEmpty(title)) {
	                return "";
	            }
	            return "<hi-leaf class=\"text text-sz-m pbsx\">" + title + "</hi-leaf>";
	        }
	        else {
	            var reqList = ReqServant.formChildrenReqList(reqNode, associatedCourses);
	            var hasOneEntry = reqList.length === 1;
	            if (hasOneEntry) {
	                return "<hi-leaf class=\"text text-sz-m pbsx\">" + reqList.join(' ') + "</hi-leaf>";
	            }
	            return "\n          <hi-sub-tree heading=\"" + ReqServant.getReqTitle(reqNode, associatedCourses) + "\">\n          <hi-text slot=\"heading\" allow-ellipsis>" + ReqServant.getReqTitle(reqNode, associatedCourses) + "</hi-text>\n            " + reqList.join(' ') + "\n          </hi-sub-tree>";
	        }
	    };
	    ReqServant.getReqTree = function (_requisites, associatedCourses) {
	        var requisites = _4.toArray(_requisites);
	        var reqTree = new course_req_tree_1.ReqTree();
	        reqTree.insert(requisites[0]);
	        var lastNode = reqTree.root;
	        requisites.slice(1).forEach(function (req) {
	            lastNode = reqTree.insertData(req, lastNode);
	            return lastNode;
	        });
	        return "\n      <hi-tree>\n        " + ReqServant.formReqList(reqTree.root, associatedCourses) + "\n      </hi-tree>\n      ";
	    };
	    ReqServant.openFirstLadderOfTree = function (tree) {
	        var subTreeTagName = 'hi-sub-tree';
	        var firstLadder = tree.search(subTreeTagName);
	        var firstIndex = 0;
	        if (firstLadder < firstIndex) {
	            return tree;
	        }
	        var indexAfterSubtree = firstLadder + subTreeTagName.length;
	        var untilSubTreeNodeText = tree.slice(firstIndex, indexAfterSubtree);
	        var afterSubTreeNodeText = tree.slice(indexAfterSubtree);
	        return (untilSubTreeNodeText + " ap-add-attr-after=\"{'timeout': 500, 'attribute': 'opened'}\" " + afterSubTreeNodeText);
	    };
	    ReqServant.getReqHtml = function (requisites, associatedCourses) {
	        var reqTree = ReqServant.getReqTree(requisites, associatedCourses);
	        return ReqServant.openFirstLadderOfTree(reqTree);
	    };
	    return ReqServant;
	}());
	exports.ReqServant = ReqServant;


/***/ }),
/* 485 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ReqNode = /** @class */ (function () {
	    function ReqNode(reqNode) {
	        _4.merge(this, reqNode);
	        this.childrens = [];
	        this.parent = undefined;
	    }
	    return ReqNode;
	}());
	exports.ReqNode = ReqNode;
	var ReqTree = /** @class */ (function () {
	    function ReqTree() {
	        this.root = undefined;
	    }
	    ReqTree.prototype.insert = function (reqNode) {
	        var newNode = new ReqNode(reqNode);
	        if (this.root === undefined) {
	            this.root = newNode;
	        }
	        else {
	            this.insertData(reqNode, this.root);
	        }
	    };
	    ReqTree.prototype.insertData = function (newNodeData, node) {
	        var newNode = new ReqNode(newNodeData);
	        if (newNode.level > node.level) {
	            var lastChildren = _4.last(node.childrens);
	            if (!lastChildren || !lastChildren.level || lastChildren.level === newNode.level) {
	                node.childrens.push(newNode);
	                newNode.parent = node;
	                return newNode;
	            }
	            else {
	                return this.insertData(newNodeData, lastChildren);
	            }
	        }
	        else {
	            return this.insertData(newNodeData, node.parent);
	        }
	    };
	    return ReqTree;
	}());
	exports.ReqTree = ReqTree;


/***/ }),
/* 486 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	exports.CommentContentTypeStrategy = new utility_ts_strategy_1.Strategy({
	    course: 'cat.Course',
	    plan: ''
	});


/***/ }),
/* 487 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APMarkAsMetStatus = /** @class */ (function () {
	    function APMarkAsMetStatus(markAsMetStatus) {
	        _4.merge(this, {}, markAsMetStatus);
	        return this;
	    }
	    APMarkAsMetStatus.build = function (markAsMetStatus) {
	        return new APMarkAsMetStatus(markAsMetStatus);
	    };
	    return APMarkAsMetStatus;
	}());
	exports.APMarkAsMetStatus = APMarkAsMetStatus;


/***/ }),
/* 488 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APSectionTypeServant = /** @class */ (function () {
	    function APSectionTypeServant() {
	    }
	    APSectionTypeServant.writeMultiSectionTypeLabel = function (sectionTypeName, labelColor) {
	        return "<span class='section-type-badge display-inline-block text-uppercase bdr-round-e mbs bas bdr-solid clr-gray_100-txt text-sz-s plsx prsx mrsxx " + labelColor + "' title='" + sectionTypeName + "'>" + _4.truncate(sectionTypeName, { length: 20 }) + "</span>";
	    };
	    return APSectionTypeServant;
	}());
	exports.APSectionTypeServant = APSectionTypeServant;


/***/ }),
/* 489 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	var plan_feedback_servant_1 = __webpack_require__(13);
	exports.AdvisorInitRedirectStrategy = new utility_ts_strategy_1.FastConditionalStrategy([
	    ['ap-advisor.retain_suggestions.blocked_suggestions', plan_feedback_servant_1.PlanFeedbackServant.isPlanBlocked],
	    ['.edit.default', plan_feedback_servant_1.PlanFeedbackServant.isPlanEditing],
	    ['ap-advisor.student-plan-progress', plan_feedback_servant_1.PlanFeedbackServant.isPlanSentToStudent],
	    ['.view.default', plan_feedback_servant_1.PlanFeedbackServant.isPlanReadOnlyMode]
	]);


/***/ }),
/* 490 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	exports.APCourseRequisiteReminderStrategy = new utility_ts_strategy_1.Strategy({
	    prereq_outoforder: {
	        title: 'prereq_outoforder',
	        reminder_template: function (course) {
	            return "A prerequisite to <strong class=\"text-bold\">" + course.cd + " " + course.title + "</strong> is currently planned in a future term and needs to be completed before this course.";
	        }
	    },
	    prereq_miss: {
	        title: 'prereq_miss',
	        reminder_template: function (course) {
	            return "<strong class=\"text-bold\">" + course.cd + " " + course.title + "</strong> has a prerequisite course that needs to be planned before this course.";
	        }
	    },
	    coreq_outoforder: {
	        title: 'coreq_outoforder',
	        reminder_template: function (course) {
	            return "A co-requisite to <strong class=\"text-bold\">" + course.cd + " " + course.title + "</strong> is currently planned in a future term and needs to be completed at the same time as this course.";
	        }
	    },
	    coreq_miss: {
	        title: 'coreq_miss',
	        reminder_template: function (course) {
	            return "<strong class=\"text-bold\">" + course.cd + " " + course.title + "</strong> has a co-requisite course that must be taken at the same time.";
	        }
	    }
	});


/***/ }),
/* 491 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ap_term_servant_1 = __webpack_require__(20);
	var MyPlannerTermBoxButton = /** @class */ (function () {
	    function MyPlannerTermBoxButton($scope, $state, $modal, appConfigModel, ngAPUserModeConfig) {
	        this.$scope = $scope;
	        this.$state = $state;
	        this.$modal = $modal;
	        this.appConfigModel = appConfigModel;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.showconflictReminder = false;
	        this.showNoSectionAvailablePopup = false;
	        this.courseOfferedProblem = [];
	    }
	    MyPlannerTermBoxButton.prototype.initialize = function () {
	        this.showNoSectionAvailablePopup = false;
	        var termStatus = this.term._termStatus.value || this.term._termStatus;
	        this.buttonLabel = termStatus.button_label || 'Pick Times';
	        this.buttonTitle = !ap_term_servant_1.APTermServant.isRegistrationButtonDisabled(this.term)
	            ? termStatus.button_title || 'Times are available'
	            : termStatus.button_title || 'Times not yet available';
	    };
	    MyPlannerTermBoxButton.prototype.$onInit = function () {
	        this.initialize();
	    };
	    MyPlannerTermBoxButton.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    MyPlannerTermBoxButton.prototype.showRegButton = function () {
	        return (!ap_term_servant_1.APTermServant.isCompleted(this.term) &&
	            !this.isPast &&
	            !!this.term._genericSlots.length &&
	            !this.ngAPUserModeConfig.isAdvisor() &&
	            this.appConfigModel.isFeatureEnabled('reg-scheduler'));
	    };
	    MyPlannerTermBoxButton.prototype.goTo = function () {
	        var noSectionsAvailable = this.term._disablePickTimes;
	        if (noSectionsAvailable) {
	            this.showNoSectionAvailablePopup = true;
	            return;
	        }
	        this.coursesMissingRequisites = ap_term_servant_1.APTermServant.coursesMissingRequisites(this.term);
	        if (this.term._plannedCourses) {
	            this.courseOfferedProblem = this.term._plannedCourses.filter(function (course) { return course.is_course_offered === false; });
	        }
	        if ((this.appConfigModel.isFeatureEnabled('reg-requisite_reminder') && this.coursesMissingRequisites.length > 0) ||
	            this.courseOfferedProblem.length > 0) {
	            this.showconflictReminder = true;
	        }
	        else {
	            this.continue();
	        }
	    };
	    MyPlannerTermBoxButton.prototype.showNoSectionAvailableOpenedChanged = function ($event) {
	        this.showNoSectionAvailablePopup = $event.detail.value;
	    };
	    MyPlannerTermBoxButton.prototype.hide = function () {
	        this.showconflictReminder = false;
	    };
	    MyPlannerTermBoxButton.prototype.continue = function () {
	        this.hide();
	        this.$state.go('my.schedule.registration', {
	            termId: this.term.id
	        }, { reload: true });
	    };
	    return MyPlannerTermBoxButton;
	}());
	exports.MyPlannerTermBoxButton = MyPlannerTermBoxButton;
	var MyPlannerTermBoxButtonComponent = /** @class */ (function () {
	    function MyPlannerTermBoxButtonComponent() {
	        this.bindings = {
	            term: '<',
	            isPast: '<?',
	            credits: '@'
	        };
	        this.controller = MyPlannerTermBoxButton;
	        this.templateUrl = 'capability-ng-academic-planner/src/plan/components/term_box_button/term_box_button.html';
	    }
	    return MyPlannerTermBoxButtonComponent;
	}());
	angular
	    .module('capability-ng-academic-planner')
	    .component('eabMyPlannerTermBoxButton', new MyPlannerTermBoxButtonComponent());


/***/ }),
/* 492 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var InTakeSurveyAnswer = /** @class */ (function () {
	    function InTakeSurveyAnswer(inTakeSurveyAnswer) {
	        _4.merge(this, inTakeSurveyAnswer);
	    }
	    InTakeSurveyAnswer.build = function (inTakeSurveyPoll) {
	        return new InTakeSurveyAnswer(inTakeSurveyPoll);
	    };
	    return InTakeSurveyAnswer;
	}());
	exports.InTakeSurveyAnswer = InTakeSurveyAnswer;


/***/ }),
/* 493 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var InTakeSurveyQuestion = /** @class */ (function () {
	    function InTakeSurveyQuestion(question) {
	        _4.merge(this, question);
	    }
	    InTakeSurveyQuestion.build = function (question) {
	        return new InTakeSurveyQuestion(question);
	    };
	    return InTakeSurveyQuestion;
	}());
	exports.InTakeSurveyQuestion = InTakeSurveyQuestion;
	var InTakeSurveyPoll = /** @class */ (function () {
	    function InTakeSurveyPoll(inTakeSurveyPoll) {
	        _4.merge(this, inTakeSurveyPoll);
	    }
	    InTakeSurveyPoll.build = function (inTakeSurveyPoll) {
	        return new InTakeSurveyPoll(inTakeSurveyPoll);
	    };
	    return InTakeSurveyPoll;
	}());
	exports.InTakeSurveyPoll = InTakeSurveyPoll;
	// export class InTakeSurveyAnswer {
	//   readonly id: number;
	//   value: string;
	//   question_id: number;
	//   resources: number[]; // we don't need or using this attr in poll
	//   constructor(inTakeSurveyAnswer: Partial<InTakeSurveyAnswer>) {
	//     _4.merge(this, inTakeSurveyAnswer);
	//   }
	//   static build(inTakeSurveyPoll: Partial<InTakeSurveyAnswer>): InTakeSurveyAnswer {
	//     return new InTakeSurveyAnswer(inTakeSurveyPoll);
	//   }
	// }


/***/ }),
/* 494 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var InTakeSurveyQuestionChoice = /** @class */ (function () {
	    function InTakeSurveyQuestionChoice(choice) {
	        _4.merge(this, choice);
	    }
	    InTakeSurveyQuestionChoice.build = function (choice) {
	        return new InTakeSurveyQuestionChoice(choice);
	    };
	    return InTakeSurveyQuestionChoice;
	}());
	exports.InTakeSurveyQuestionChoice = InTakeSurveyQuestionChoice;


/***/ }),
/* 495 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_strategy_1 = __webpack_require__(6);
	var ap_intake_survey_default_answer_strategy_1 = __webpack_require__(496);
	var intake_survey_answer_strategy_1 = __webpack_require__(497);
	function findAnswerForQuestion(question, choices, answers) {
	    var answer = intake_survey_answer_strategy_1.IntakeSurveyAnswerStrategy[question._question_type](question, choices, answers);
	    if (_4.isEmpty(answer) && question._computedNK) {
	        answer = ap_intake_survey_default_answer_strategy_1.ApIntakeSurveyDefaultAnswerStrategy[question._computedNK](choices);
	    }
	    return answer;
	}
	exports.ApIntakeSurveyAnswerStrategy = new utility_ts_strategy_1.Strategy({
	    radio: findAnswerForQuestion,
	    checkbox: findAnswerForQuestion
	});


/***/ }),
/* 496 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var utility_ts_strategy_1 = __webpack_require__(6);
	// as agreed during the KO meetinga assigning the default values
	// https://workflow.advisory.com/browse/NAV-5520
	var timeCommitmentDefaultAnswer = function (choices) { return (tslib_1.__assign({}, _4.find(choices, { nk: 'FULL_TIME' }))); };
	var planExperienceDefaultAnswer = function (choices) { return (tslib_1.__assign({}, _4.find(choices, { nk: 'GENERATE_PLAN' }))); };
	var preferenceDefaultAnswer = function (choices) { return tslib_1.__spreadArrays(_4.filter(choices, function (choice) { return _4.includes(['SPRING', 'FALL'], _4.toUpper(choice.nk)); })); };
	exports.ApIntakeSurveyDefaultAnswerStrategy = new utility_ts_strategy_1.Strategy({
	    AP_TIME_COMMITMENT: timeCommitmentDefaultAnswer,
	    AP_GENERATE_PLAN: planExperienceDefaultAnswer,
	    AP_TERM_PREFERENCE: preferenceDefaultAnswer
	});


/***/ }),
/* 497 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var utility_ts_strategy_1 = __webpack_require__(6);
	var radioInputQuestionAnswer = function (question, choices, answers) {
	    var _answersGroupByQuesID = _4.groupBy(answers, 'question_id');
	    var answerForQuestion = _answersGroupByQuesID[question.id];
	    return tslib_1.__assign({}, _4.find(choices, { nk: _4.get(answerForQuestion, '[0]value') }));
	};
	var checkboxInputQuestionAnswer = function (question, choices, answers) {
	    var _answersGroupByQuesID = _4.groupBy(answers, 'question_id');
	    var _answersForQuestion = _answersGroupByQuesID[question.id];
	    var answersForQuestion = [];
	    answersForQuestion = _4.map(_answersForQuestion, function (answer) { return (tslib_1.__assign({}, _4.find(choices, { nk: answer.value }))); });
	    return answersForQuestion;
	};
	exports.IntakeSurveyAnswerStrategy = new utility_ts_strategy_1.Strategy({
	    radio: radioInputQuestionAnswer,
	    checkbox: checkboxInputQuestionAnswer
	});


/***/ }),
/* 498 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	var radioQuestionAnswerMapping = function (question) { return ({
	    value: question._answer['nk']
	}); };
	var checkboxQuestionAnswerMapping = function (question) {
	    return question._answer.map(function (choice) { return ({ value: choice['nk'] }); });
	};
	exports.IntakeSurveyApiQuesAnswerStrategy = new utility_ts_strategy_1.Strategy({
	    radio: radioQuestionAnswerMapping,
	    checkbox: checkboxQuestionAnswerMapping
	});


/***/ }),
/* 499 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var ap_alternate_plan_routes_1 = __webpack_require__(128);
	var advisorAlternatePlan = tslib_1.__assign(tslib_1.__assign({}, ap_alternate_plan_routes_1.AlternatePlanRoute), { template: "\n  <advisor-header-view-plan></advisor-header-view-plan>\n  <div class=\"clr-white-bkg pbmxxx\"></div>\n  <alternate-plans></alternate-plans>\n  " });
	exports.APAdvisorAlternatePlanRoutes = {
	    'ap-advisor.alternate-plans': tslib_1.__assign({}, advisorAlternatePlan),
	    'ap-advisor.alternate-plans.change-plan': tslib_1.__assign(tslib_1.__assign({}, ap_alternate_plan_routes_1.AlternatePlanChangePlanPopupRoute), { views: {
	            'modal@ap-advisor': {
	                template: "<alternate-plan-change-plan-popup></alternate-plan-change-plan-popup>"
	            }
	        } })
	};


/***/ }),
/* 500 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var advisorChangelogState = {
	    url: 'changelog/',
	    data: {
	        pageTitle: 'Feedback history'
	    },
	    template: "\n  <advisor-edit-plan-header ng-if=\"$resolve.showEditHeader\"></advisor-edit-plan-header>\n  <advisor-header-view-plan ng-if=\"!$resolve.showEditHeader\"></advisor-header-view-plan>\n  <changelog></changelog>\n  "
	};
	exports.ApAdvisorChangelogRoutes = {
	    'ap-advisor.changelog': tslib_1.__assign({}, advisorChangelogState)
	};


/***/ }),
/* 501 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var ap_plan_routes_1 = __webpack_require__(42);
	var ap_advisor_alternate_plans_routes_1 = __webpack_require__(499);
	var ap_advisor_flag_course_popup_routes_1 = __webpack_require__(503);
	var ap_advisor_lock_course_popup_routes_1 = __webpack_require__(504);
	var ap_advisor_mark_as_met_popup_routes_1 = __webpack_require__(505);
	var ap_advisor_planner_edit_routes_1 = __webpack_require__(506);
	var ap_advisor_planner_view_routes_1 = __webpack_require__(507);
	var ap_advisor_suggestion_blocked_state_routes_1 = __webpack_require__(508);
	exports.ApPlanAdvisorRoutes = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({ 'ap-advisor': {
	        url: 'advisor/',
	        sticky: true,
	        template: "\n      <div class=\"ap-advisor-module\">\n        <busy-indicator></busy-indicator>\n        <ui-view></ui-view>\n        <ui-view name='modal'></ui-view>\n      </div>",
	        resolve: {
	            setupUser: function (setupUserCommand) { return setupUserCommand(); }
	        }
	    }, 'ap-advisor.student-plan-progress': {
	        url: 'student-plan-progress/',
	        data: {
	            pageTitle: 'Student progressing with plan'
	        },
	        template: "<student-plan-progress></student-plan-progress>",
	        resolve: {
	            allowToProceed: function (navigateIfPlanBlockedCommand) { return navigateIfPlanBlockedCommand(); },
	            termsAndProgram: function (loadProgramAndTermsDataCommand) {
	                return loadProgramAndTermsDataCommand();
	            },
	            feedbackPlan: function (loadPlanFeedbackCommand) { return loadPlanFeedbackCommand(); },
	            flaggedCourses: function (loadCommentCommand, ngApStudentDetailsModel) {
	                return loadCommentCommand("academicplan/student_comments/");
	            }
	        }
	    }, 'ap-advisor.no-plan': {
	        data: {
	            pageTitle: 'No plan configured'
	        },
	        template: '<advisor-student-no-plan-configured></advisor-student-no-plan-configured>'
	    }, 'ap-advisor.plan': tslib_1.__assign(tslib_1.__assign({}, ap_plan_routes_1.myPlanState), { views: {
	            '': {
	                template: "<ui-view></ui-view>"
	            }
	        }, data: {
	            pageTitle: 'My Planner'
	        }, resolve: tslib_1.__assign(tslib_1.__assign({}, ap_plan_routes_1.planResolve), { academicPlan: function () { return true; }, studentNk: function () { return window.sessionStorage.getItem('external_id'); }, studentDetails: function (loadAdvisorStudentDetailsCommand, studentNk) {
	                return loadAdvisorStudentDetailsCommand(studentNk);
	            }, studentValue: function (loadStudentValueCommand) { return loadStudentValueCommand(); }, userActivityInitialize: function (initializeUserActivityTrackingCommand, studentDetails, accountIdentity) { return initializeUserActivityTrackingCommand(); }, suggestedPlanStatus: function (loadSuggestedPlanStatusCommand, ngFeedbackSuggestedPlanModel) {
	                return loadSuggestedPlanStatusCommand().catch(function (er) {
	                    if (er.status === 400) {
	                        ngFeedbackSuggestedPlanModel.clear();
	                        return true;
	                    }
	                    return false;
	                });
	            } }), onEnter: function (suggestedPlanStatus, reRouteAdvisorPlanAccessCommand) {
	            return reRouteAdvisorPlanAccessCommand();
	        } }) }, ap_advisor_suggestion_blocked_state_routes_1.AdvisorSuggestionBlockedStateRoutes), ap_advisor_planner_view_routes_1.AdvisorPlannerViewRoutes), ap_advisor_planner_edit_routes_1.AdvisorPlannerEditRoutes), ap_advisor_flag_course_popup_routes_1.ApAdvisorFlagCourseDetailRoutes), ap_advisor_lock_course_popup_routes_1.ApAdvisorLockCourseDetailRoutes), ap_advisor_alternate_plans_routes_1.APAdvisorAlternatePlanRoutes), ap_advisor_mark_as_met_popup_routes_1.ApAdvisorMarkAsMetRoutes);


/***/ }),
/* 502 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var ap_course_details_routes_1 = __webpack_require__(37);
	var ap_advisor_course_detail_routes_1 = __webpack_require__(127);
	var AdvisorPreviewPlanCourseDetailState = tslib_1.__assign(tslib_1.__assign({}, ap_course_details_routes_1.courseDetailState), { views: {
	        'right-panel-popout@ap-advisor.preview_plan': {
	            template: ap_advisor_course_detail_routes_1.COURSE_DETAIL_TEMPLATE
	        }
	    } });
	exports.AdvisorPreviewPlanRoutes = {
	    'ap-advisor.preview_plan': {
	        url: 'preview_plan/',
	        template: '<ui-view></ui-view><ui-view name="right-panel-popout"></ui-view>',
	        resolve: {
	            clearCurrentResult: function (clearTermPreviewPlanCommand) { return clearTermPreviewPlanCommand(); },
	            intakeSurveyPoll: function (loadInTakeSurveyPollCommand) { return loadInTakeSurveyPollCommand(); },
	            intakeSurveyPollAnswers: function (loadInTakeSurveyAnswerCommand) { return loadInTakeSurveyAnswerCommand(); },
	            termPreviewAPIParams: function (intakeSurveyPoll, intakeSurveyPollAnswers, ngGetIntakeSurveyQuestionsQuery, ngAPIntakeSurveyNKHelper) {
	                var questions = ngGetIntakeSurveyQuestionsQuery.result.questions;
	                var termCommitment = _4.find(questions, { nk: ngAPIntakeSurveyNKHelper.intakeSurveyTimeCommitmentNK })._answer
	                    .nk;
	                var termPreference = _4.map(_4.find(questions, { nk: ngAPIntakeSurveyNKHelper.intakeSurveyTermPreferenceNK })._answer, 'nk');
	                return {
	                    termCommitment: termCommitment,
	                    termPreference: termPreference
	                };
	            }
	        }
	    },
	    'ap-advisor.preview_plan.auto_generated': {
	        url: 'auto_generated/',
	        template: "\n            <auto-generated-plan-header></auto-generated-plan-header>\n            <preview-auto-generated-terms \n                l-kind l-justify=\"center\"\n                term-commitment=\"$resolve.termCommitmentAndPreference.termCommitment\"\n                term-preference=\"$resolve.termCommitmentAndPreference.termPreference\" \n                terms=\"$resolve.terms\">\n            </preview-auto-generated-terms>",
	        data: {
	            pageTitle: 'Autoloader'
	        },
	        resolve: {
	            academicPlan: function (loadAcademicPlanCommand) { return loadAcademicPlanCommand(); },
	            previewPlan: function (termPreviewAPIParams, loadTermPreviewPlanCommand) {
	                return loadTermPreviewPlanCommand(termPreviewAPIParams.termCommitment, termPreviewAPIParams.termPreference);
	            },
	            terms: function (previewPlan, ngTermPlanPreviewQuery, academicPlan) {
	                return ngTermPlanPreviewQuery.result.terms;
	            },
	            termCommitmentAndPreference: function (termPreviewAPIParams) { return termPreviewAPIParams; },
	            allowToProceed: function (terms, preventAccessToAdvisorAutoGeneratedPlanCommand) { return preventAccessToAdvisorAutoGeneratedPlanCommand(terms); }
	        }
	    },
	    'ap-advisor.preview_plan.auto_generated.course_details': tslib_1.__assign({}, AdvisorPreviewPlanCourseDetailState),
	    'ap-advisor.preview_plan.edit_preference': {
	        url: 'edit_preference/',
	        data: {
	            pageTitle: 'Edit preference'
	        },
	        resolve: {
	            clearTermPreviewPlan: function (clearTermPreviewPlanCommand) { return clearTermPreviewPlanCommand(); },
	            academicPlan: function (loadAcademicPlanForAdvisor) { return loadAcademicPlanForAdvisor(); },
	            questions: function (termPreviewAPIParams, ngGetIntakeSurveyQuestionsQuery) {
	                return ngGetIntakeSurveyQuestionsQuery.result.questions;
	            },
	            showEditHeader: function (academicPlan, ngAPAdvisorHeaderDetailsQuery) {
	                return ngAPAdvisorHeaderDetailsQuery.result.hasAdvisorPlan;
	            }
	        },
	        template: "\n            <advisor-edit-plan-header></advisor-edit-plan-header>\n            <preview-terms-plan l-kind=\"hort\" l-justify=\"center\" questions=\"$resolve.questions\"></preview-terms-plan>\n        "
	    },
	    'ap-advisor.preview_plan.edit_preference.course_details': tslib_1.__assign({}, AdvisorPreviewPlanCourseDetailState)
	};


/***/ }),
/* 503 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var advisorCourseFlagdialogState = {
	    resolve: {
	        genericSlot: function ($stateParams) { return $stateParams.genericSlot; }
	    },
	    views: {
	        'modal@ap-advisor': {
	            template: "<course-flag-dialog generic-slot=\"$resolve.genericSlot\"></course-flag-dialog>"
	        }
	    },
	    data: {
	        pageTitle: 'Flag course'
	    },
	    params: {
	        genericSlot: null
	    }
	};
	exports.ApAdvisorFlagCourseDetailRoutes = {
	    'ap-advisor.plan.edit.default.course_flag_dialog': tslib_1.__assign({}, advisorCourseFlagdialogState),
	    'ap-advisor.plan.edit.coursegroup.course_flag_dialog': tslib_1.__assign({}, advisorCourseFlagdialogState)
	};


/***/ }),
/* 504 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var advisorLockCoursePopupState = {
	    resolve: {
	        genericSlot: function ($stateParams) { return $stateParams.genericSlot; },
	        type: function ($stateParams) { return $stateParams.type; }
	    },
	    views: {
	        'modal@ap-advisor': {
	            template: "<course-lock-dialog generic-slot=\"$resolve.genericSlot\" type=\"$resolve.type\"></course-lock-dialog>"
	        }
	    },
	    data: {
	        pageTitle: 'Lock course'
	    },
	    params: {
	        genericSlot: null,
	        type: 'lock'
	    }
	};
	exports.ApAdvisorLockCourseDetailRoutes = {
	    'ap-advisor.plan.edit.default.lock_course': tslib_1.__assign({}, advisorLockCoursePopupState),
	    'ap-advisor.plan.edit.coursegroup.lock_course': tslib_1.__assign({}, advisorLockCoursePopupState)
	};


/***/ }),
/* 505 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var mark_as_met_unmet_routes_1 = __webpack_require__(129);
	var advisorMarkAsMetState = tslib_1.__assign(tslib_1.__assign({}, mark_as_met_unmet_routes_1.markAsMetState), { views: {
	        'modal@ap-advisor': {
	            template: "<mark-as-met-dialog></mark-as-met-dialog>"
	        }
	    } });
	var advisorMarkAsUnMetState = tslib_1.__assign(tslib_1.__assign({}, mark_as_met_unmet_routes_1.markAsUnMetState), { views: {
	        'modal@ap-advisor': {
	            template: "<mark-as-unmet-dialog generic-slot=\"$resolve.genericSlot\"></mark-as-unmet-dialog>"
	        }
	    } });
	exports.ApAdvisorMarkAsMetRoutes = {
	    'ap-advisor.plan.edit.default.mark_as_met': tslib_1.__assign({}, advisorMarkAsMetState),
	    'ap-advisor.plan.edit.coursegroup.mark_as_met': tslib_1.__assign({}, advisorMarkAsMetState),
	    'ap-advisor.plan.edit.default.mark_as_unmet': tslib_1.__assign({}, advisorMarkAsUnMetState),
	    'ap-advisor.plan.edit.coursegroup.mark_as_unmet': tslib_1.__assign({}, advisorMarkAsUnMetState)
	};


/***/ }),
/* 506 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var ap_plan_routes_1 = __webpack_require__(42);
	var ap_smart_catalog_routes_1 = __webpack_require__(71);
	exports.AdvisorPlannerEditRoutes = {
	    'ap-advisor.plan.edit': {
	        url: 'edit/',
	        views: {
	            '@ap-advisor': {
	                template: "<ap-planner is-editable=\"true\"></ap-planner>"
	            },
	            'terms@ap-advisor.plan.edit': {
	                template: "<ap-planner-terms is-editable=\"true\"></ap-planner-terms>"
	            },
	            'advisor-imp-student-banner@ap-advisor.plan.edit': {
	                template: "<advisor-edit-plan-header></advisor-edit-plan-header>"
	            }
	        },
	        resolve: {
	            flaggedCourses: function (loadCommentCommand, academicPlan, ngFeedbackSuggestedPlanModel) { return loadCommentCommand("/academicplan/suggested_plan/" + ngFeedbackSuggestedPlanModel.read().id + "/comment/"); }
	        }
	    },
	    'ap-advisor.plan.edit.default': {
	        url: 'default/',
	        data: {
	            academicPlanUrl: 'reg/advisorplan',
	            pageTitle: 'Edit plan'
	        },
	        views: {
	            'default@ap-advisor.plan.edit': {
	                template: '<ap-planner-resources is-editable="true"></ap-planner-resources>'
	            }
	        }
	    },
	    'ap-advisor.plan.edit.coursegroup': tslib_1.__assign(tslib_1.__assign({}, ap_plan_routes_1.largeCourseGroupCommonState), { views: {
	            'largeCourseGroup@ap-advisor.plan.edit': {
	                template: '<large-course-group query="$resolve.query" is-editable="true"></large-course-group>'
	            },
	            'advisor-imp-student-banner@ap-advisor.plan.edit': {
	                template: "<advisor-edit-plan-header></advisor-edit-plan-header>"
	            }
	        } }),
	    'ap-advisor.plan.edit.compare': {
	        url: 'compare/',
	        views: {
	            '@ap-advisor': {
	                template: '<student-plan-comparison></student-plan-comparison>'
	            },
	            'advisor-imp-student-banner@ap-advisor.plan.edit.compare': {
	                template: "<advisor-edit-plan-header return-to-edit-button=\"true\"></advisor-edit-plan-header>"
	            }
	        },
	        data: {
	            pageTitle: 'Compare'
	        }
	    },
	    'ap-advisor.plan.edit.default.smart_course_details': tslib_1.__assign({}, ap_smart_catalog_routes_1.AdvisorSmartCatalogRoutes['ap-advisor.plan.edit.default.smart_course_details'])
	};


/***/ }),
/* 507 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var ap_plan_routes_1 = __webpack_require__(42);
	var ap_smart_catalog_routes_1 = __webpack_require__(71);
	exports.AdvisorPlannerViewRoutes = {
	    'ap-advisor.plan.view': {
	        url: 'view/',
	        sticky: true,
	        views: {
	            '@ap-advisor': {
	                template: "<ap-planner is-editable=\"false\"></ap-planner>"
	            },
	            'terms@ap-advisor.plan.view': {
	                template: "<ap-planner-terms is-editable=\"false\"></ap-planner-terms>"
	            },
	            'advisor-imp-student-banner@ap-advisor.plan.view': {
	                template: "<advisor-header-view-plan></advisor-header-view-plan>"
	            }
	        },
	        resolve: {
	            flaggedCourses: function (loadCommentCommand, ngApStudentDetailsModel) {
	                return loadCommentCommand("academicplan/student_comments/");
	            }
	        }
	    },
	    'ap-advisor.plan.view.default': {
	        url: 'default/',
	        sticky: true,
	        data: {
	            academicPlanUrl: 'reg/academicplan',
	            pageTitle: 'My Planner | My Academic Plan'
	        },
	        views: {
	            'default@ap-advisor.plan.view': {
	                template: '<ap-planner-resources is-editable="false"></ap-planner-resources>'
	            }
	        }
	    },
	    'ap-advisor.plan.view.coursegroup': tslib_1.__assign(tslib_1.__assign({}, ap_plan_routes_1.largeCourseGroupCommonState), { views: {
	            'largeCourseGroup@ap-advisor.plan.view': {
	                template: '<large-course-group query="$resolve.query" is-editable="false"></large-course-group>'
	            }
	        } }),
	    'ap-advisor.plan.view.default.smart_course_details': tslib_1.__assign({}, ap_smart_catalog_routes_1.AdvisorSmartCatalogRoutes['ap-advisor.plan.view.default.smart_course_details'])
	};


/***/ }),
/* 508 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var ap_course_details_routes_1 = __webpack_require__(37);
	var ap_plan_routes_1 = __webpack_require__(42);
	exports.AdvisorSuggestionBlockedStateRoutes = {
	    'ap-advisor.retain_suggestions': {
	        url: 'retain_suggestions/',
	        sticky: true,
	        resolve: {
	            advisorPlan: function (loadAdvisorSuggestedPlanCommand) { return loadAdvisorSuggestedPlanCommand(); }
	        },
	        template: "\n            <advisor-blocked-header></advisor-blocked-header>\n            <ui-view></ui-view>\n            <ui-view name=\"right-panel-popout\" id=\"advisor-retain-suggestions\"></ui-view>\n        "
	    },
	    'ap-advisor.retain_suggestions.suggested_plan': {
	        url: 'suggested_plan/',
	        template: '<ui-view></ui-view>'
	    },
	    'ap-advisor.retain_suggestions.suggested_plan.default': {
	        url: 'default/',
	        template: "\n      <advisor-retain-suggestions-suggested-plan></advisor-retain-suggestions-suggested-plan>\n    "
	    },
	    'ap-advisor.retain_suggestions.suggested_plan.default.course_details': tslib_1.__assign(tslib_1.__assign({}, ap_course_details_routes_1.courseDetailState), { views: {
	            'right-panel-popout@ap-advisor.retain_suggestions': {
	                template: "<ap-course-details hide-actions=\"true\"></ap-course-details>"
	            }
	        } }),
	    'ap-advisor.retain_suggestions.suggested_plan.coursegroup': tslib_1.__assign(tslib_1.__assign({}, ap_plan_routes_1.largeCourseGroupCommonState), { sticky: true, views: {
	            '': {
	                template: "\n          <advisor-retain-suggestions-suggested-plan>\n          </advisor-retain-suggestions-suggested-plan>\n        "
	            },
	            'right-panel-popout@ap-advisor.retain_suggestions': {
	                template: "<blocked-suggested-plan-large-course-group></blocked-suggested-plan-large-course-group>"
	            }
	        } }),
	    'ap-advisor.retain_suggestions.blocked_suggestions': {
	        url: 'blocked_suggestions/',
	        resolve: {
	            blockedSuggestions: function (loadBlockedSuggestionsCommand) { return loadBlockedSuggestionsCommand(); }
	        },
	        data: {
	            pageTitle: 'Blocked suggestions'
	        },
	        template: "\n            <advisor-blocked-suggestions></advisor-blocked-suggestions>\n        "
	    }
	};


/***/ }),
/* 509 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var studentChangelogState = {
	    url: 'changelog/',
	    template: '<changelog></changelog>',
	    data: {
	        pageTitle: 'Feedback History'
	    }
	};
	exports.ApChangelogRoutes = {
	    'my.planner.changelog': tslib_1.__assign({}, studentChangelogState)
	};


/***/ }),
/* 510 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.ApDefaultRootRoutes = {
	    'my.planner': {
	        url: 'planner/',
	        abstract: true,
	        sticky: true,
	        template: "<ui-view></ui-view>\n      <busy-indicator></busy-indicator>\n      <phx-notification handle=\"ap-alerts\"\n        horizontal-position=\"right\"\n        respect-eab-header=\"true\">\n      </phx-notification>",
	        resolve: {
	            studentNk: function () { return undefined; },
	            studentValue: function (loadStudentValueCommand) { return loadStudentValueCommand(); },
	            allowToProceed: function (preventAccessAndRedirectToAp3Command) { return preventAccessAndRedirectToAp3Command(); }
	        }
	    },
	    'my.planner.default': {
	        url: 'default/',
	        onEnter: function ($state, $timeout, appConfigModel) {
	            var shouldLoadMultiPlan = appConfigModel.isFeatureEnabled('cat-multitemplate_planner');
	            var plannerDefaultState = shouldLoadMultiPlan ? 'my.planner.multiplan.default' : 'my.planner.plan.default';
	            $timeout(function () { return $state.go(plannerDefaultState, {}, { reload: true }); }, 10);
	        }
	    }
	};


/***/ }),
/* 511 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	var _a, _b;
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var plan_feedback_servant_1 = __webpack_require__(13);
	var ap_course_details_routes_1 = __webpack_require__(37);
	var modalStudentView = 'modal@my.planner.suggestions';
	exports.ApPlanFeedbackRoutes = {
	    'my.planner.suggestions': {
	        url: 'suggestions/',
	        template: "\n            <div class=\"plan-feedback-section clr-gray_20-bkg\">\n            <plan-feedback l-size=\"grow\" l-hug=\"center\"></plan-feedback>\n            <ui-view name=\"right-panel-popout\" class=\"right-drawer\"></ui-view>\n            <ui-view name=\"modal\"></ui-view>\n          </div>\n            ",
	        onEnter: function (ngAPComponentStateModel) {
	            ngAPComponentStateModel.studentFeedbackTerms.splice(0);
	        },
	        data: {
	            pageTitle: 'Suggestions'
	        },
	        resolve: {
	            accountModeConfig: function (loadAccountCommand) { return loadAccountCommand(); },
	            termsAndProgram: function (loadProgramAndTermsDataCommand) {
	                return loadProgramAndTermsDataCommand();
	            },
	            comment: function (advisorSuggestedPlan, loadCommentCommand, ngFeedbackSuggestedPlanModel) {
	                return loadCommentCommand("/academicplan/suggested_plan/" + ngFeedbackSuggestedPlanModel.read().id + "/comment/?modified=true");
	            },
	            advisorSuggestedPlan: function (accountModeConfig, loadSuggestedPlanStatusCommand) {
	                return loadSuggestedPlanStatusCommand();
	            },
	            loadConflicts: function (advisorSuggestedPlan, loadBlockedSuggestionsCommand, loadPlanFeedbackCommand, ngFeedbackSuggestedPlanModel) {
	                return plan_feedback_servant_1.PlanFeedbackServant.isPlanBlocked(ngFeedbackSuggestedPlanModel.read())
	                    ? loadBlockedSuggestionsCommand()
	                    : loadPlanFeedbackCommand();
	            }
	        }
	    },
	    'my.planner.suggestions.course_details': tslib_1.__assign(tslib_1.__assign({}, ap_course_details_routes_1.courseDetailState), { views: {
	            'right-panel-popout@my.planner.suggestions': {
	                template: "<ap-course-details></ap-course-details>"
	            }
	        } }),
	    'my.planner.suggestions.linked_suggestions': {
	        views: (_a = {},
	            _a[modalStudentView] = {
	                template: "<linked-suggestion-action-popup></linked-suggestion-action-popup>"
	            },
	            _a)
	    },
	    'my.planner.suggestions.advisor_revoked_changes': {
	        data: {
	            pageTitle: 'Advisor revoked suggestions'
	        },
	        views: (_b = {},
	            _b[modalStudentView] = {
	                template: "<plan-feedback-revoked-popup></plan-feedback-revoked-popup>"
	            },
	            _b)
	    }
	};


/***/ }),
/* 512 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var ap_course_details_routes_1 = __webpack_require__(37);
	var APPreviewPlanCourseDetailsState = tslib_1.__assign(tslib_1.__assign({}, ap_course_details_routes_1.courseDetailState), { views: {
	        'right-panel-popout@my.planner.preview_plan': {
	            template: "<ap-course-details></ap-course-details>"
	        }
	    } });
	exports.ApPreviewPlanRoutes = {
	    'my.planner.preview_plan': {
	        url: 'preview_plan/',
	        template: "\n            <div l-kind=\"hort\" l-no-wrap l-width-fixed>\n              <ui-view l-size=\"grow\" l-hug=\"center\"></ui-view>\n              <ui-view name=\"right-panel-popout\" class=\"right-drawer mtl\"></ui-view>\n              <ui-view name=\"modal\"></ui-view>\n            </div>\n            ",
	        resolve: {
	            intakeSurveyPoll: function (loadInTakeSurveyPollCommand) { return loadInTakeSurveyPollCommand(); },
	            intakeSurveyPollAnswers: function (loadInTakeSurveyAnswerCommand) { return loadInTakeSurveyAnswerCommand(); },
	            termPreviewAPIParams: function (intakeSurveyPoll, intakeSurveyPollAnswers, ngGetIntakeSurveyQuestionsQuery, ngAPIntakeSurveyNKHelper) {
	                var questions = ngGetIntakeSurveyQuestionsQuery.result.questions;
	                var termCommitment = _4.find(questions, { nk: ngAPIntakeSurveyNKHelper.intakeSurveyTimeCommitmentNK })._answer
	                    .nk;
	                var termPreference = _4.map(_4.find(questions, { nk: ngAPIntakeSurveyNKHelper.intakeSurveyTermPreferenceNK })._answer, 'nk');
	                return {
	                    termCommitment: termCommitment,
	                    termPreference: termPreference
	                };
	            }
	        }
	    },
	    'my.planner.preview_plan.edit_preference': {
	        url: 'edit_preference/',
	        data: {
	            pageTitle: 'Edit preference'
	        },
	        template: '<preview-terms-plan l-kind l-justify="center" questions="$resolve.questions"></preview-terms-plan>',
	        resolve: {
	            clearTermPreviewPlan: function (clearTermPreviewPlanCommand) { return clearTermPreviewPlanCommand(); },
	            academicPlan: function (loadAcademicPlanCommand) { return loadAcademicPlanCommand(); },
	            questions: function (termPreviewAPIParams, ngGetIntakeSurveyQuestionsQuery) {
	                return ngGetIntakeSurveyQuestionsQuery.result.questions;
	            }
	        },
	        params: {
	            source: null
	        }
	    },
	    'my.planner.preview_plan.edit_preference.course_details': tslib_1.__assign({}, APPreviewPlanCourseDetailsState),
	    'my.planner.preview_plan.auto_generated': {
	        url: 'auto_generated/',
	        template: "<preview-auto-generated-terms \n                l-kind l-justify=\"center\"\n                term-commitment=\"$resolve.termCommitmentAndPreference.termCommitment\"\n                term-preference=\"$resolve.termCommitmentAndPreference.termPreference\" \n                terms=\"$resolve.terms\">\n            </preview-auto-generated-terms>",
	        data: {
	            pageTitle: 'Autoloader'
	        },
	        resolve: {
	            academicPlan: function (loadAcademicPlanCommand) { return loadAcademicPlanCommand(); },
	            previewPlan: function (termPreviewAPIParams, loadTermPreviewPlanCommand) {
	                return loadTermPreviewPlanCommand(termPreviewAPIParams.termCommitment, termPreviewAPIParams.termPreference);
	            },
	            terms: function (previewPlan, ngTermPlanPreviewQuery, academicPlan) {
	                return ngTermPlanPreviewQuery.result.terms;
	            },
	            termCommitmentAndPreference: function (termPreviewAPIParams) { return termPreviewAPIParams; },
	            allowToProceed: function (terms, $q, completedAutoGeneratedPreviewPlanShowingCommand, log, ngStudentValueModel, ngPreviewTermPlanConstant, $state, $timeout) {
	                var deferred = $q.defer();
	                if (_4.isEmpty(terms)) {
	                    $timeout(function () {
	                        log.enable();
	                        completedAutoGeneratedPreviewPlanShowingCommand().then(function () {
	                            var currentStudentValue = {};
	                            ngStudentValueModel
	                                .keys()
	                                .forEach(function (key) { return (currentStudentValue[key] = ngStudentValueModel.getValueByKey(key)); });
	                            currentStudentValue[ngPreviewTermPlanConstant['AP_PREVIEW_AUTO_GENERATED_TERM_PLAN_SHOWN']] = 'True';
	                            ngStudentValueModel.update(currentStudentValue);
	                            deferred.reject();
	                            $state.go('my.planner.default', {}, { reload: true });
	                        });
	                    }, 10);
	                    log.disable();
	                }
	                else {
	                    deferred.resolve();
	                }
	                return deferred.promise;
	            }
	        },
	        onErrorState: function (event, toState, toParams, fromState, fromParams, rejection) { return 'my.planner.preview_plan.auto_generated_error'; }
	    },
	    'my.planner.preview_plan.auto_generated.course_details': tslib_1.__assign({}, APPreviewPlanCourseDetailsState),
	    'my.planner.preview_plan.auto_generated_error': {
	        url: 'auto_generated_error/',
	        data: {
	            pageTitle: 'Autoloader error page'
	        },
	        template: '<preview-plan-auto-generated-failure l-kind l-justify="center"></preview-plan-auto-generated-failure>'
	    }
	};


/***/ }),
/* 513 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APSclOptionsItem = /** @class */ (function () {
	    function APSclOptionsItem(apSclOptionsItem) {
	        _4.merge(this, apSclOptionsItem);
	    }
	    APSclOptionsItem.build = function (apSclOptionsItem) {
	        return new APSclOptionsItem(apSclOptionsItem);
	    };
	    return APSclOptionsItem;
	}());
	exports.APSclOptionsItem = APSclOptionsItem;


/***/ }),
/* 514 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var ap_smart_search_servant_1 = __webpack_require__(72);
	var search_prefab_configuration_1 = __webpack_require__(130);
	var courseGroupSearchActions = function (actions, CourseGroupSearchInfo) {
	    var _courseGroupSearchActions = tslib_1.__assign({}, actions);
	    var isLocked = ap_smart_search_servant_1.ApSmartSearchServant.isCoursegroupLocked(CourseGroupSearchInfo);
	    var planButtonTitle = ap_smart_search_servant_1.ApSmartSearchServant.isInSwapMode(CourseGroupSearchInfo) ? 'Swap' : 'Plan';
	    if (ap_smart_search_servant_1.ApSmartSearchServant.isPlanningFromTerm(CourseGroupSearchInfo) && !isLocked) {
	        _courseGroupSearchActions['Plan_to_term'] = {
	            name: 'Plan_to_term',
	            $widget: {
	                $behavior: 'operation',
	                title: planButtonTitle,
	                kind: 'secondary',
	                $region: 'course_plan_region',
	                input_mode: 'singular'
	            },
	            $do: '(( plan_to_term_action ))'
	        };
	        _courseGroupSearchActions['plan_to_term_action'] = {
	            kind: 'plan_to_term_action'
	        };
	    }
	    return _courseGroupSearchActions;
	};
	exports.largeCourseGroupSmartSearchConfiguration = function (userMode, CourseGroupSearchInfo) {
	    var courseGroupValue = CourseGroupSearchInfo.courseGroupValue;
	    var basicSmartSearchConfiguration = search_prefab_configuration_1.smartCatalogConfiguration(userMode);
	    var _largeCourseGroupSmartSearchConfiguration = tslib_1.__assign({}, basicSmartSearchConfiguration);
	    _largeCourseGroupSmartSearchConfiguration.action = courseGroupSearchActions(_largeCourseGroupSmartSearchConfiguration.action, CourseGroupSearchInfo);
	    var context = _largeCourseGroupSmartSearchConfiguration.bucket.context;
	    context.$reactive_values['results_title'] = "results found for " + _4.get(CourseGroupSearchInfo, 'parentCourse.programSlot.desc', '');
	    var configuration = _largeCourseGroupSmartSearchConfiguration.configuration;
	    if (!ap_smart_search_servant_1.ApSmartSearchServant.isWildcardSmartSearch(CourseGroupSearchInfo)) {
	        configuration['course_group_value'] = { course_groups: courseGroupValue };
	    }
	    if (!ap_smart_search_servant_1.ApSmartSearchServant.isWildcardSmartSearch(CourseGroupSearchInfo)) {
	        var _finishEvents = _largeCourseGroupSmartSearchConfiguration.life_cycle.initialize.$finish;
	        _finishEvents.push('=>> ((search_action)) <=< configuration.course_group_value');
	    }
	    return _largeCourseGroupSmartSearchConfiguration;
	};


/***/ }),
/* 515 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var ap_smart_search_servant_1 = __webpack_require__(72);
	var getSourceObject = function (f) {
	    var withoutSourceOption = {};
	    var withSourceOption = {
	        $source: {
	            uri: f.options
	        }
	    };
	    var replaceOptions = _4.includes(['combobox', 'dropdown'], f.render_type) && _4.isString(f.options);
	    return replaceOptions ? withSourceOption : withoutSourceOption;
	};
	var getGroupObject = function (f) {
	    var withoutGroupOption = {};
	    var withGroupOption = {
	        $tag: f.group
	    };
	    return _4.isString(f.group) ? withGroupOption : withoutGroupOption;
	};
	var SmartSearchPlugins = /** @class */ (function () {
	    function SmartSearchPlugins(courseGroupInfo) {
	        this.courseGroupInfo = courseGroupInfo;
	        this.courseGroupValue = courseGroupInfo.courseGroupValue;
	    }
	    SmartSearchPlugins.prototype._addMapModifier = function (node, method) {
	        node.$modifiers = node.$modifiers || [];
	        node.$modifiers.push({
	            kind: 'di/fn/map',
	            attributes: {
	                kind: 'object',
	                host: 'user_space',
	                method: method
	            }
	        });
	        return node;
	    };
	    SmartSearchPlugins.prototype._customKind = function (node, method) {
	        node.kind = 'api';
	        node.$is = 'definition';
	        node = this._addMapModifier(node, method);
	        return node;
	    };
	    SmartSearchPlugins.prototype.addLargeCourseGroupFields = function (fields) {
	        if (fields === void 0) { fields = []; }
	        var largeCourseGroupFieldType = [
	            {
	                group: null,
	                initial_value: this.courseGroupValue,
	                is_active: true,
	                is_available: true,
	                name: 'course_groups',
	                render_type: 'hidden',
	                required: false,
	                readonly: true,
	                title: 'Course Group'
	            }
	        ];
	        var newFields = _4.unionBy(fields, largeCourseGroupFieldType, 'name');
	        _4.find(newFields, { name: 'course_groups' }).initial_value = this.courseGroupValue;
	        return newFields;
	    };
	    SmartSearchPlugins.prototype.runMetadataFieldsPlugin = function () {
	        var _this = this;
	        document.body.dispatchEvent(new CustomEvent("hil.transpiler.upgrade", {
	            detail: {
	                value: {
	                    id: 'sgd_metadata_fields',
	                    visitEnter: {
	                        sgd_metadata_fields: function (node) {
	                            return _this._customKind(node, 'mapFToHIL');
	                        }
	                    },
	                    hijack: {
	                        prePostCompile: function (language) {
	                            language.user_space = language.user_space || {};
	                            language.user_space.mapFToHIL = function (o) {
	                                if (ap_smart_search_servant_1.ApSmartSearchServant.isLargeCourseGroupSmartSearch(_this.courseGroupInfo) &&
	                                    !ap_smart_search_servant_1.ApSmartSearchServant.isWildcardSmartSearch(_this.courseGroupInfo)) {
	                                    o.fields = _this.addLargeCourseGroupFields(o.fields);
	                                }
	                                var partialHIL = {
	                                    type: {
	                                        form_fields: {
	                                            properties: {}
	                                        }
	                                    },
	                                    tag: {}
	                                };
	                                partialHIL.type.form_fields.properties = _4.keyBy(_4.map(o.fields || [], function (f) {
	                                    var optionEntry = window['$INJ']
	                                        .get('ngAPSclOptionsDatasource')
	                                        .values()
	                                        .find(function (optionDetails) { return optionDetails.name === f.name; });
	                                    if (optionEntry) {
	                                        f.options = optionEntry.options;
	                                        f.attributes = {
	                                            values: JSON.stringify([])
	                                        };
	                                    }
	                                    var sourceOptions = getSourceObject(f);
	                                    var groupTags = getGroupObject(f);
	                                    return tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, f), sourceOptions), groupTags);
	                                }), 'name');
	                                partialHIL.tag = _4.keyBy(_4.map(o.groups || [], function (f) { return (tslib_1.__assign(tslib_1.__assign({}, f), { render_type: 'accordion' })); }), 'nk');
	                                return partialHIL;
	                            };
	                            return language;
	                        }
	                    }
	                }
	            }
	        }));
	    };
	    SmartSearchPlugins.prototype.runMetadataColumnsPlugin = function () {
	        var _this = this;
	        document.body.dispatchEvent(new CustomEvent("hil.transpiler.upgrade", {
	            detail: {
	                value: {
	                    id: 'sgd_metadata_columns',
	                    visitEnter: {
	                        sgd_metadata_columns: function (node) {
	                            return _this._customKind(node, 'mapRToHIL');
	                        }
	                    },
	                    hijack: {
	                        prePostCompile: function (language) {
	                            language.user_space = language.user_space || {};
	                            language.user_space.mapRToHIL = function (o) {
	                                var partialHIL = {
	                                    type: {
	                                        results: {
	                                            properties: {}
	                                        }
	                                    }
	                                };
	                                partialHIL.type.results.properties = _4.keyBy(o.columns, 'name');
	                                partialHIL.type.results.properties = tslib_1.__assign(tslib_1.__assign({}, partialHIL.type.results.properties), { details_action: {
	                                        render_type: 'tasks',
	                                        title: 'Actions',
	                                        $region: 'details_region',
	                                        sortable: false,
	                                        order: 1000
	                                    }, add_to_term: {
	                                        render_type: 'tasks',
	                                        title: 'Plan actions',
	                                        hidden: ap_smart_search_servant_1.ApSmartSearchServant.shouldHideAddToTermAction(_this.courseGroupInfo),
	                                        $region: 'add_to_term_region',
	                                        sortable: false,
	                                        order: 1000
	                                    } });
	                                if (ap_smart_search_servant_1.ApSmartSearchServant.isPlanningFromTerm(_this.courseGroupInfo) &&
	                                    !ap_smart_search_servant_1.ApSmartSearchServant.isCoursegroupLocked(_this.courseGroupInfo)) {
	                                    partialHIL.type.results.properties = tslib_1.__assign(tslib_1.__assign({}, partialHIL.type.results.properties), { plan_action: {
	                                            render_type: 'tasks',
	                                            title: 'Plan action',
	                                            $region: 'course_plan_region',
	                                            sortable: false,
	                                            order: 999
	                                        } });
	                                }
	                                // Set Icons for co-req & pre-req
	                                ['has_coreqs', 'has_prereqs'].forEach(function (key) {
	                                    if (partialHIL.type.results.properties[key]) {
	                                        var iconType = _4.get(partialHIL.type.results.properties[key], 'icon', 'check');
	                                        partialHIL.type.results.properties[key] = tslib_1.__assign(tslib_1.__assign({}, partialHIL.type.results.properties[key]), { hidden: ap_smart_search_servant_1.ApSmartSearchServant.isLargeCourseGroupSmartSearch(_this.courseGroupInfo), render_type: 'template', template: "<template><hi-if comparator='==' value-left='[[object." + key + "]]' value-right='true'><hi-icon kind='" + iconType + "'></hi-icon></hi-if></template>" });
	                                    }
	                                });
	                                return partialHIL;
	                            };
	                            return language;
	                        }
	                    }
	                }
	            }
	        }));
	    };
	    SmartSearchPlugins.prototype.runMultiFormPlugin = function () {
	        var _this = this;
	        document.body.dispatchEvent(new CustomEvent("hil.transpiler.upgrade", {
	            detail: {
	                value: {
	                    id: 'sgd_multi_form',
	                    visitEnter: {
	                        sgd_multi_form: function (node) {
	                            node = _this._addMapModifier(node, 'convertArraysToString');
	                            return node;
	                        }
	                    },
	                    hijack: {
	                        prePostCompile: function (language) {
	                            language.user_space = language.user_space || {};
	                            language.user_space.convertArraysToString = function (o) {
	                                for (var key in o) {
	                                    if (o[key] === '--NULL--' || o[key] === '') {
	                                        delete o[key];
	                                    }
	                                }
	                                return o;
	                            };
	                            return language;
	                        }
	                    }
	                }
	            }
	        }));
	    };
	    SmartSearchPlugins.prototype.runPlanToTermActionPlugin = function () {
	        var _this = this;
	        document.body.dispatchEvent(new CustomEvent("hil.transpiler.upgrade", {
	            detail: {
	                value: {
	                    id: 'plan_to_term_action',
	                    visitEnter: {
	                        plan_to_term_action: function (node) {
	                            node = _this._addMapModifier(node, 'planToTermAction');
	                            return node;
	                        }
	                    },
	                    hijack: {
	                        prePostCompile: function (language) {
	                            var source = 'SMART_CATALOG';
	                            var closeSmartSearch = function () {
	                                window['$INJ'].get('ngComponentCommunicatorService').publish('CLOSE_LARGE_COURSE_GROUP_PANEL');
	                                window['$INJ'].get('setSelectedPlannerResourceTabCommand')('MAP');
	                            };
	                            language.user_space = language.user_space || {};
	                            language.user_space.planToTermAction = function (o) {
	                                if (ap_smart_search_servant_1.ApSmartSearchServant.isInSwapMode(_this.courseGroupInfo)) {
	                                    var courseNk = o['nk'];
	                                    var _a = ap_smart_search_servant_1.ApSmartSearchServant.getSwapCommandParams(_this.courseGroupInfo), courseToRemove = _a.courseToRemove, courseToAdd = _a.courseToAdd, programSlotToAdd = _a.programSlotToAdd, termId = _a.termId;
	                                    window['$INJ'].get('ngAPNotificationDelegate').info({
	                                        content: "<div l-kind=\"hort\" l-align=\"center\" l-width-fixed><hi-indicator theme=\"white\" size='small' class=\"mrm\"></hi-indicator>Swapping a course</div>",
	                                        name: 'swapping'
	                                    });
	                                    window['$INJ']
	                                        .get('removeCourseFromTermAndAddCourseCommand')(courseToRemove, courseToAdd, programSlotToAdd, termId, termId, courseNk, source)
	                                        .then(function (data) {
	                                        window['$INJ'].get('ngAPNotificationDelegate').dismissAlertByName('swapping');
	                                        closeSmartSearch();
	                                    });
	                                }
	                                else {
	                                    var courseNk = o['nk'];
	                                    var _b = ap_smart_search_servant_1.ApSmartSearchServant.getPlanCommandParams(_this.courseGroupInfo), programSlot = _b.programSlot, courseGroup = _b.courseGroup, courseToPlan = _b.courseToPlan;
	                                    window['$INJ'].get('ngAPNotificationDelegate').info({
	                                        content: "<div l-kind=\"hort\" l-align=\"center\" l-width-fixed><hi-indicator theme=\"white\" size='small' class=\"mrm\"></hi-indicator>Planning a course</div>",
	                                        name: 'planning'
	                                    });
	                                    window['$INJ']
	                                        .get('removeCourseGroupFromTermAndAddCourseCommand')(programSlot, courseGroup, courseToPlan, courseNk, source)
	                                        .then(function (data) {
	                                        window['$INJ'].get('ngAPNotificationDelegate').dismissAlertByName('planning');
	                                        closeSmartSearch();
	                                    });
	                                }
	                                return o;
	                            };
	                            return language;
	                        }
	                    }
	                }
	            }
	        }));
	    };
	    return SmartSearchPlugins;
	}());
	exports.SmartSearchPlugins = SmartSearchPlugins;


/***/ }),
/* 516 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var smart_search_plugins_1 = __webpack_require__(515);
	var HIPModifier = /** @class */ (function () {
	    function HIPModifier(courseDetailsRoute, courseDetailsState, courseGroupInfo) {
	        this.rootRoute = 'my/planner/plan/default/smart_course_details';
	        this.rootState = 'my.planner.plan.default.smart_course_details';
	        this.rootRoute = courseDetailsRoute;
	        this.rootState = courseDetailsState;
	        this.smartSearchPlugins = new smart_search_plugins_1.SmartSearchPlugins(courseGroupInfo);
	    }
	    /* tslint:disable:cyclomatic-complexity */
	    /* tslint:disable:cognitive-complexity */
	    HIPModifier.prototype.invoke = function () {
	        this.smartSearchPlugins.runMetadataFieldsPlugin();
	        this.smartSearchPlugins.runMetadataColumnsPlugin();
	        this.smartSearchPlugins.runMultiFormPlugin();
	        this.smartSearchPlugins.runPlanToTermActionPlugin();
	        // TODO: remove this code after fix the ai-prefab-search sink to page-index-changed
	        ['goToPage', 'goToPrevious', 'goToNext', 'goToFirst', 'goToLast'].forEach(function (methodName) {
	            window.HIP.aop.pointCut('hi-pagination', methodName, function (orginalMethod) {
	                return function (methodArgs) {
	                    this._dispatchEvent('tap-ended', {
	                        value: this.pageIndex
	                    });
	                    return orginalMethod.call(this, methodArgs);
	                };
	            });
	        });
	    };
	    return HIPModifier;
	}());
	exports.HIPModifier = HIPModifier;


/***/ }),
/* 517 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	/*
	  Extracted code from $http $$CookieReader
	  https://github.com/angular/angular.js/blob/26a5779cddf70944b7548e3a6410d35237a516e5/src/ng/cookieReader.js
	*/
	var CookieReaderHelper = /** @class */ (function () {
	    function CookieReaderHelper() {
	        this.rawDocument = window.document;
	        this.lastCookies = {};
	        this.lastCookieString = '';
	        var cookieArray = [];
	        var cookie = '';
	        var i = 0;
	        var index = -1;
	        var name;
	        var currentCookieString = CookieReaderHelper.safeGetCookie(this.rawDocument);
	        if (currentCookieString !== this.lastCookieString) {
	            this.lastCookieString = currentCookieString;
	            cookieArray = this.lastCookieString.split('; ');
	            this.lastCookies = {};
	            for (i = 0; i < cookieArray.length; i++) {
	                cookie = cookieArray[i];
	                index = cookie.indexOf('=');
	                if (index > 0) {
	                    // ignore nameless cookies
	                    name = CookieReaderHelper.safeDecodeURIComponent(cookie.substring(0, index));
	                    // the first value that is seen for a cookie is the most
	                    // specific one.  values for the same cookie name that
	                    // follow are for less specific paths.
	                    if (this.lastCookies[name] === undefined) {
	                        this.lastCookies[name] = CookieReaderHelper.safeDecodeURIComponent(cookie.substring(index + 1));
	                    }
	                }
	            }
	        }
	        return this;
	    }
	    CookieReaderHelper.prototype.getCookies = function () {
	        return this.lastCookies;
	    };
	    CookieReaderHelper.prototype.getCookie = function (cookieName) {
	        return this.lastCookies[cookieName];
	    };
	    CookieReaderHelper.safeGetCookie = function (rawDoc) {
	        try {
	            return rawDoc.cookie || '';
	        }
	        catch (e) {
	            return '';
	        }
	    };
	    CookieReaderHelper.safeDecodeURIComponent = function (str) {
	        try {
	            return decodeURIComponent(str);
	        }
	        catch (e) {
	            return str;
	        }
	    };
	    return CookieReaderHelper;
	}());
	exports.CookieReaderHelper = CookieReaderHelper;


/***/ }),
/* 518 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var cookie_reader_helper_1 = __webpack_require__(517);
	var SearchRequestResponseHeaders = /** @class */ (function () {
	    function SearchRequestResponseHeaders(userMode) {
	        this._postRequestHeaders = {};
	        this._getRequestHeaders = {};
	        this._getRequestHeaders = {
	            'user-mode': userMode
	        };
	        this._postRequestHeaders = tslib_1.__assign({ 'user-mode': userMode }, this.csrfHeader);
	    }
	    Object.defineProperty(SearchRequestResponseHeaders.prototype, "postRequestHeaders", {
	        get: function () {
	            return this._postRequestHeaders;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(SearchRequestResponseHeaders.prototype, "getRequestHeaders", {
	        get: function () {
	            return this._getRequestHeaders;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(SearchRequestResponseHeaders.prototype, "csrfHeader", {
	        get: function () {
	            var csrfToken = new cookie_reader_helper_1.CookieReaderHelper().getCookie('csrftoken');
	            return {
	                'X-CSRFToken': csrfToken
	            };
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return SearchRequestResponseHeaders;
	}());
	exports.SearchRequestResponseHeaders = SearchRequestResponseHeaders;


/***/ }),
/* 519 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var lodash4_1 = __webpack_require__(1);
	var PlanFeedbackCourse = /** @class */ (function () {
	    function PlanFeedbackCourse(planFeedbackCourse) {
	        lodash4_1.merge(this, planFeedbackCourse);
	    }
	    PlanFeedbackCourse.build = function (inTakeSurveyPoll) {
	        return new PlanFeedbackCourse(inTakeSurveyPoll);
	    };
	    return PlanFeedbackCourse;
	}());
	exports.PlanFeedbackCourse = PlanFeedbackCourse;


/***/ }),
/* 520 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var lodash4_1 = __webpack_require__(1);
	var PlanFeedbackCourseGroup = /** @class */ (function () {
	    function PlanFeedbackCourseGroup(planFeedbackCourseGroup) {
	        lodash4_1.merge(this, planFeedbackCourseGroup);
	    }
	    PlanFeedbackCourseGroup.build = function (inTakeSurveyPoll) {
	        return new PlanFeedbackCourseGroup(inTakeSurveyPoll);
	    };
	    return PlanFeedbackCourseGroup;
	}());
	exports.PlanFeedbackCourseGroup = PlanFeedbackCourseGroup;


/***/ }),
/* 521 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PlanFeedbackProgramSlot = /** @class */ (function () {
	    function PlanFeedbackProgramSlot(planFeedbackProgramSlot) {
	        _4.merge(this, planFeedbackProgramSlot);
	    }
	    PlanFeedbackProgramSlot.build = function (planFeedbackProgramSlot) {
	        return new PlanFeedbackProgramSlot(planFeedbackProgramSlot);
	    };
	    return PlanFeedbackProgramSlot;
	}());
	exports.PlanFeedbackProgramSlot = PlanFeedbackProgramSlot;


/***/ }),
/* 522 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var lodash4_1 = __webpack_require__(1);
	var PlanFeedbackTerm = /** @class */ (function () {
	    function PlanFeedbackTerm(planFeedbackTerm) {
	        lodash4_1.merge(this, planFeedbackTerm);
	        if (this.diff === 'REMOVE') {
	            this.term = this.from_term;
	        }
	    }
	    PlanFeedbackTerm.build = function (inTakeSurveyPoll) {
	        return new PlanFeedbackTerm(inTakeSurveyPoll);
	    };
	    return PlanFeedbackTerm;
	}());
	exports.PlanFeedbackTerm = PlanFeedbackTerm;


/***/ }),
/* 523 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PlanFeedbackTransactionBuilder = /** @class */ (function () {
	    function PlanFeedbackTransactionBuilder(transactionNK, transactionText, longTransactionText, transactionType, type, isForcedToAccept, resolution, acceptEnabled, declineEnabled, acceptButtonText, declineButtonText, slotNk, comment, flagToShow) {
	        this.transactionNK = transactionNK;
	        this.transactionText = transactionText;
	        this.longTransactionText = longTransactionText;
	        this.transactionType = transactionType;
	        this.type = type;
	        this.isForcedToAccept = isForcedToAccept;
	        this.resolution = resolution;
	        this.acceptEnabled = acceptEnabled;
	        this.declineEnabled = declineEnabled;
	        this.acceptButtonText = acceptButtonText;
	        this.declineButtonText = declineButtonText;
	        this.slotNk = slotNk;
	        this.comment = comment;
	        this.flagToShow = flagToShow;
	    }
	    PlanFeedbackTransactionBuilder.build = function (transactionNK, transactionText, longTransactionText, transactionType, type, isForcedToAccept, resolution, slotNk, fromComment, toComment) {
	        var flagChanged = fromComment !== toComment;
	        var acceptEnabled = true;
	        var declineEnabled = !isForcedToAccept && (!flagChanged || transactionType !== 'NONE');
	        var acceptButtonText = isForcedToAccept || flagChanged ? 'Got it' : 'Accept';
	        var declineButtonText = declineEnabled ? 'Decline' : '';
	        var flagToShow = flagChanged && !_4.isEmpty(toComment);
	        return new PlanFeedbackTransactionBuilder(transactionNK, transactionText, longTransactionText, transactionType, type, isForcedToAccept, resolution, acceptEnabled, declineEnabled, acceptButtonText, declineButtonText, slotNk, toComment, flagToShow);
	    };
	    return PlanFeedbackTransactionBuilder;
	}());
	exports.PlanFeedbackTransactionBuilder = PlanFeedbackTransactionBuilder;


/***/ }),
/* 524 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var plan_feedback_course_group_builder_1 = __webpack_require__(520);
	var plan_feedback_transaction_types_query_strategy_1 = __webpack_require__(43);
	exports.fillTermInfo = function (feedbackDataSource, termAttr, feedbackEntryInDS) {
	    var _fieldTerm = plan_feedback_transaction_types_query_strategy_1.PlanFeedbackTermFieldIdentifierStrategy[feedbackEntryInDS.diff].validTermFields;
	    if (!_fieldTerm.includes(termAttr)) {
	        return undefined;
	    }
	    return _4.get(_4.find(feedbackDataSource.values(), function (planFeebackTerm) { return planFeebackTerm.term.id === feedbackEntryInDS[termAttr]; }), 'term');
	};
	// TODO: Refactor
	angular
	    .module('capability-ng-academic-planner')
	    .factory('ngPlanFeebackCourseGroupsDatasource', function (ngPlanFeebackTermsDatasource, ngPlanFeedbackProgramSlotsDatasource, ngAPProgramSlotDatasource) {
	    return new utility_ts_orm_1.Datasource({
	        builderType: plan_feedback_course_group_builder_1.PlanFeedbackCourseGroup
	    }).includeMetasource(function (datasource) {
	        return new utility_ts_orm_1.Metasource(datasource)
	            .includeAttribute('_from_term', function (feedbackCourseGroup) {
	            return exports.fillTermInfo(ngPlanFeebackTermsDatasource, 'from_term', feedbackCourseGroup);
	        })
	            .includeAttribute('_term', function (feedbackCourseGroup) {
	            return exports.fillTermInfo(ngPlanFeebackTermsDatasource, 'term', feedbackCourseGroup);
	        })
	            .includeAttribute('_programSlot', function (feedbackCourseGroup) {
	            return _4.find(ngAPProgramSlotDatasource.metasource().derived(), {
	                id: feedbackCourseGroup['program_slot']
	            });
	        })
	            .includeAttribute('_feedbackProgramSlot', function (feedbackCourseGroup) {
	            return _4.first(ngPlanFeedbackProgramSlotsDatasource.query(function (p) { return p.program_slot === feedbackCourseGroup['program_slot']; }));
	        });
	    });
	});


/***/ }),
/* 525 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	exports.ActionMessageStringStrategy = new utility_ts_strategy_1.Strategy({
	    ACCEPT: 'accepted',
	    REJECT: 'declined'
	});


/***/ }),
/* 526 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_strategy_1 = __webpack_require__(6);
	var plan_feedback_servant_1 = __webpack_require__(13);
	var ApSuggestionFlagTransactionTextStrategy = new utility_ts_strategy_1.FastConditionalStrategy([
	    [
	        'removed flag',
	        function (suggestion) { return !_4.isEmpty(suggestion.from_comment) && _4.isEmpty(suggestion.comment); }
	    ],
	    [
	        'flagged',
	        function (suggestion) { return _4.isEmpty(suggestion.from_comment) && !_4.isEmpty(suggestion.comment); }
	    ],
	    ['', function (suggestion) { return _4.isEmpty(suggestion.from_comment) && _4.isEmpty(suggestion.comment); }],
	    [
	        'updated flag',
	        function (suggestion) {
	            return !_4.isEmpty(suggestion.from_comment) &&
	                !_4.isEmpty(suggestion.comment) &&
	                !_4.isEqual(suggestion.from_comment, suggestion.comment);
	        }
	    ]
	]);
	var termField = '_term.name';
	var fromTermField = '_from_term.name';
	var ApSuggestionLockTransactionTextStrategy = new utility_ts_strategy_1.Strategy({
	    REMOVE: function (suggestion) {
	        return suggestion.lock_modified ? (suggestion.is_locked ? '' : 'unlocked') : '';
	    },
	    ADD: function (suggestion) { return (suggestion.lock_modified ? 'locked' : ''); },
	    NONE: function (suggestion) {
	        return suggestion.lock_modified ? (suggestion.is_locked ? '' : 'un') + 'locked' : '';
	    },
	    MOVE: function (suggestion) {
	        return suggestion.lock_modified ? (suggestion.is_locked ? '' : 'un') + 'locked' : '';
	    }
	});
	var processNoneFeedbackSuggestion = function (suggestion) {
	    var emptyTransactionText = "";
	    if (!plan_feedback_servant_1.PlanFeedbackServant.isNoneSuggestion(suggestion)) {
	        return emptyTransactionText;
	    }
	    if (plan_feedback_servant_1.PlanFeedbackServant.isNoneSuggestion(suggestion)) {
	        var noChangeInTransaction = (_4.isEmpty(suggestion.from_comment) && _4.isEmpty(suggestion.comment)) ||
	            suggestion.from_comment === suggestion.comment;
	        if (noChangeInTransaction) {
	            return emptyTransactionText;
	        }
	        else {
	            return "reason changed";
	        }
	    }
	    return emptyTransactionText;
	};
	var ApPlanFeedbackDiffTextStrategy = new utility_ts_strategy_1.Strategy({
	    MET: function (suggestion) { return "marked as met"; },
	    UNMET: function (suggestion) { return "marked as unmet"; },
	    REMOVE: function (suggestion) { return "removed"; },
	    ADD: function (suggestion) { return "added"; },
	    NONE: function (suggestion) { return processNoneFeedbackSuggestion(suggestion); },
	    MOVE: function (suggestion) {
	        var placeHolderChanged = _4.get(suggestion.from_program_slot_obj, 'id') !==
	            _4.get(suggestion.program_slot_obj, 'id');
	        var placeHolderText = placeHolderChanged ? "into " + _4.get(suggestion.program_slot_obj, 'desc') : "";
	        return "moved to " + _4.get(suggestion, termField) + " " + placeHolderText;
	    }
	});
	var ApPlanSuggestionSourceTermInfo = new utility_ts_strategy_1.Strategy({
	    REMOVE: function (suggestion) { return "from " + _4.get(suggestion, fromTermField); },
	    ADD: function (suggestion) { return "to " + _4.get(suggestion, termField); },
	    NONE: function (suggestion) { return "in " + _4.get(suggestion, termField); },
	    MOVE: function (suggestion) { return "from " + _4.get(suggestion, fromTermField); }
	});
	exports.ApPlanSuggestionTransactionTextStrategy = new utility_ts_strategy_1.Strategy({
	    COURSE: function (feedbackCourse, includeSourceTermInfo) {
	        if (includeSourceTermInfo === void 0) { includeSourceTermInfo = false; }
	        var flagText = ApSuggestionFlagTransactionTextStrategy.evaluate(feedbackCourse);
	        var lockText = ApSuggestionLockTransactionTextStrategy[feedbackCourse.diff](feedbackCourse);
	        var courseText = "<span class='text-bold'> " + feedbackCourse.course.cd + " </span>";
	        var diffText = ApPlanFeedbackDiffTextStrategy[feedbackCourse.diff](feedbackCourse);
	        var transactionText = "";
	        if (!_4.isEmpty(lockText) && !_4.isEmpty(flagText)) {
	            transactionText = lockText + " and " + flagText;
	        }
	        if (!_4.isEmpty(lockText) && _4.isEmpty(flagText)) {
	            transactionText = "" + lockText;
	        }
	        if (_4.isEmpty(lockText) && !_4.isEmpty(flagText)) {
	            transactionText = "" + flagText;
	        }
	        transactionText = _4.isEmpty(diffText)
	            ? transactionText
	            : !_4.isEmpty(transactionText)
	                ? transactionText + " and " + diffText
	                : "" + diffText;
	        if (includeSourceTermInfo) {
	            transactionText = transactionText + (" " + ApPlanSuggestionSourceTermInfo[feedbackCourse.diff](feedbackCourse));
	        }
	        return "" + courseText + transactionText;
	    },
	    PROGRAM_SLOT: function (planFeedbackProgramSlot) { return "\n    <span class='text-bold'>\n      " + plan_feedback_servant_1.PlanFeedbackServant.getTextForFeedbackProgramSlot(planFeedbackProgramSlot) + "\n    </span>\n    " + ApPlanFeedbackDiffTextStrategy[planFeedbackProgramSlot.diff](planFeedbackProgramSlot) + "\n  "; },
	    COURSE_GROUP: function (feedbackCourseGroup, includeSourceTermInfo) {
	        if (includeSourceTermInfo === void 0) { includeSourceTermInfo = false; }
	        return "\n        <span class='text-bold'>\n            " + (!_4.isEmpty(feedbackCourseGroup.program_slot_obj.desc)
	            ? feedbackCourseGroup.program_slot_obj.desc
	            : 'Course Group') + "\n        </span>\n        " + ApPlanFeedbackDiffTextStrategy[feedbackCourseGroup.diff](feedbackCourseGroup) + " \n        " + (includeSourceTermInfo ? ApPlanSuggestionSourceTermInfo[feedbackCourseGroup.diff](feedbackCourseGroup) : '') + "\n        ";
	    }
	});


/***/ }),
/* 527 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var appointment_info_servant_1 = __webpack_require__(30);
	var AppointmentCard = /** @class */ (function (_super) {
	    tslib_1.__extends(AppointmentCard, _super);
	    function AppointmentCard($scope, accountModel, $attrs) {
	        var _this = _super.call(this) || this;
	        _this.$scope = $scope;
	        _this.accountModel = accountModel;
	        _this.$attrs = $attrs;
	        return _this;
	    }
	    AppointmentCard.prototype.$onInit = function () {
	        this.initilize();
	        this.showCancelButton = !_4.isNil(this.$attrs.cancelButtonCallback);
	    };
	    AppointmentCard.prototype.$onChanges = function () {
	        this.initilize();
	    };
	    AppointmentCard.prototype.initilize = function () {
	        this.isPastAppointment = !!this.isPastAppointment;
	        this.card = this.generateCardInfo(this.appointment);
	        this.appointmentDetails = this.generateAppointmentDetails(this.appointment, this.accountModel.fullname);
	        this.isCancelButtonDisabled =
	            this.isPastAppointment || !this.appointment.student_can_cancel || this.card.isCancelled;
	        this.isAppointmentCancelled = false;
	    };
	    AppointmentCard.prototype.isCancelEnabled = function () {
	        return !this.appointment.is_cancelled && this.showCancelButton;
	    };
	    AppointmentCard.prototype.isCancelDisabled = function () {
	        return !this.appointment.student_can_cancel;
	    };
	    AppointmentCard.prototype.openCancelForm = function () {
	        this.cancelButtonCallback();
	    };
	    return AppointmentCard;
	}(appointment_info_servant_1.AppointmentInfoServant));
	exports.AppointmentCard = AppointmentCard;
	angular.module('capability-ng-appointments').component('appointmentCard', {
	    bindings: {
	        appointment: '<',
	        isPastAppointment: '<',
	        cancelButtonCallback: '&'
	    },
	    controller: AppointmentCard,
	    templateUrl: 'capability-ng-appointments/src/components/appointment_card/appointment_card.html'
	});


/***/ }),
/* 528 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var AppointmentFooterButtonController = /** @class */ (function () {
	    function AppointmentFooterButtonController(ngAppointmentButtonServant, ngAppointmentSchedulingConfiguration) {
	        this.ngAppointmentButtonServant = ngAppointmentButtonServant;
	        this.ngAppointmentSchedulingConfiguration = ngAppointmentSchedulingConfiguration;
	    }
	    return AppointmentFooterButtonController;
	}());
	exports.AppointmentFooterButtonController = AppointmentFooterButtonController;


/***/ }),
/* 529 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ScheduleAppointmentsLink = /** @class */ (function () {
	    function ScheduleAppointmentsLink(appConfigModel, FEATURE_APPOINTMENTS, ngAppointmentSchedulingConfiguration, $state) {
	        this.appConfigModel = appConfigModel;
	        this.FEATURE_APPOINTMENTS = FEATURE_APPOINTMENTS;
	        this.ngAppointmentSchedulingConfiguration = ngAppointmentSchedulingConfiguration;
	        this.$state = $state;
	        this.aesthetic = 'button';
	        this.appointmentScheduling = {
	            icon: {
	                type: 'calender',
	                theme: 'tertiary-9'
	            },
	            text: {
	                title: 'Talk to an advisor',
	                subTitle: 'Any questions? Schedule some time to meet with an advisor.'
	            },
	            action: {
	                state: 'my.appointments',
	                params: {}
	            }
	        };
	    }
	    ScheduleAppointmentsLink.prototype.$onInit = function () {
	        this.buttonText = this.buttonText || 'Schedule an Appointment';
	        this.aesthetic = this.aesthetic || 'button';
	        this.flags = {
	            isAppointmentsFeatureEnabled: this.appConfigModel.isFeatureEnabled(this.FEATURE_APPOINTMENTS)
	        };
	        this.showPrefixText = !!this.showPrefixText;
	    };
	    ScheduleAppointmentsLink.prototype.isFixed = function () {
	        return !this.showPrefixText;
	    };
	    ScheduleAppointmentsLink.prototype.goToAppointments = function () {
	        this.$state.go('my.appointments');
	    };
	    Object.defineProperty(ScheduleAppointmentsLink.prototype, "isAestheticButton", {
	        get: function () {
	            return _4.toLower(this.aesthetic) === 'button';
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ScheduleAppointmentsLink.prototype, "isAestheticLink", {
	        get: function () {
	            return !this.isAestheticButton;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return ScheduleAppointmentsLink;
	}());
	exports.ScheduleAppointmentsLink = ScheduleAppointmentsLink;
	angular
	    .module('capability-ng-appointments')
	    .component('scheduleAppointmentsLink', {
	    bindings: {
	        buttonText: '@',
	        showPrefixText: '<',
	        aesthetic: '@'
	    },
	    templateUrl: 'capability-ng-appointments/src/components/appointments_link/appointments_link.html',
	    controller: 'scheduleAppointmentsLinkController'
	})
	    .controller('scheduleAppointmentsLinkController', ScheduleAppointmentsLink);


/***/ }),
/* 530 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var appointment_cancel_form_1 = __webpack_require__(132);
	var appointment_details_1 = __webpack_require__(133);
	var appointment_footer_button_1 = __webpack_require__(528);
	var appointment_request_1 = __webpack_require__(134);
	var my_appointments_1 = __webpack_require__(73);
	angular
	    .module('capability-ng-appointments')
	    .controller('ngMyAppointmentsContoller', my_appointments_1.MyAppointmentsContoller)
	    .component('myAppointments', {
	    controller: my_appointments_1.MyAppointmentsContoller,
	    templateUrl: 'capability-ng-appointments/src/components/my_appointments/my_appointments.html'
	})
	    .controller('ngAppointmentDetails', appointment_details_1.AppointmentDetails)
	    .component('appointmentDetails', {
	    controller: appointment_details_1.AppointmentDetails,
	    templateUrl: 'capability-ng-appointments/src/components/appointment_details/appointment_details.html'
	})
	    .component('appointmentDetailsHeader', {
	    templateUrl: 'capability-ng-appointments/src/components/appointment_details_header/appointment_details_header.html'
	})
	    .component('appointmentCancelForm', {
	    bindings: {
	        appointment: '<',
	        closeCancelForm: '&',
	        onCancel: '&'
	    },
	    controller: appointment_cancel_form_1.AppointmentCancelForm,
	    templateUrl: 'capability-ng-appointments/src/components/appointment_cancel_form/appointment_cancel_form.html'
	})
	    .component('appointmentRequest', {
	    controller: appointment_request_1.AppointmentRequest,
	    templateUrl: 'capability-ng-appointments/src/components/appointment_request/appointment_request.html'
	})
	    .component('appointmentRequestHeader', {
	    templateUrl: 'capability-ng-appointments/src/components/appointment_request_header/appointment_request_header.html'
	})
	    .component('confettiIcon', {
	    templateUrl: 'capability-ng-appointments/src/components/confetti/confetti.html'
	})
	    .controller('AppointmentFooterButtonController', appointment_footer_button_1.AppointmentFooterButtonController)
	    .component('appointmentFooterButton', {
	    controller: appointment_footer_button_1.AppointmentFooterButtonController,
	    templateUrl: 'capability-ng-appointments/src/components/appointment_footer_button/appointment_footer_button.html'
	});
	tslib_1.__exportStar(__webpack_require__(135), exports);
	tslib_1.__exportStar(__webpack_require__(132), exports);
	tslib_1.__exportStar(__webpack_require__(133), exports);
	tslib_1.__exportStar(__webpack_require__(73), exports);
	tslib_1.__exportStar(__webpack_require__(134), exports);


/***/ }),
/* 531 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ScrollContentController = /** @class */ (function () {
	    function ScrollContentController() {
	    }
	    ScrollContentController.prototype.$onInit = function () {
	        this.scrollTo();
	    };
	    ScrollContentController.prototype.$onChanges = function () {
	        this.scrollTo();
	    };
	    ScrollContentController.prototype.scrollTo = function () {
	        var ele = document.getElementById(this.id);
	        var yCoord = _4.get(ele, 'offsetTop', undefined);
	        if (yCoord) {
	            ele.scrollTo(0, yCoord);
	        }
	    };
	    return ScrollContentController;
	}());
	exports.ScrollContentController = ScrollContentController;
	var ScrollContentComponent = /** @class */ (function () {
	    function ScrollContentComponent() {
	        this.templateUrl = 'capability-ng-appointments/src/components/scroll_content/scroll_content.html';
	        this.controller = ScrollContentController;
	        this.transclude = true;
	        this.bindings = {
	            id: '@',
	            length: '<'
	        };
	    }
	    return ScrollContentComponent;
	}());
	exports.ScrollContentComponent = ScrollContentComponent;
	angular
	    .module('capability-ng-appointments')
	    .component('scrollContent', new ScrollContentComponent())
	    .controller('ScrollContentController', ScrollContentController);


/***/ }),
/* 532 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var appointments_available_times_datasource_1 = __webpack_require__(137);
	var appointments_locations_datasource_1 = __webpack_require__(138);
	var cancellation_reasons_datasource_1 = __webpack_require__(75);
	var upcoming_appointments_datasource_1 = __webpack_require__(76);
	angular
	    .module('capability-ng-appointments')
	    .service('ngUpcomingAppointmentsDatasource', upcoming_appointments_datasource_1.UpcomingAppointmentsDatasource)
	    .service('ngCancellationReasonsDatasource', cancellation_reasons_datasource_1.CancellationReasonsDatasource)
	    .service('ngAppointmentsLocationsDatasource', appointments_locations_datasource_1.AppointmentsLocationsDatasource)
	    .service('ngAppointmentsAvailableTimesDatasource', appointments_available_times_datasource_1.AppointmentsAvailableTimesDatasource);
	tslib_1.__exportStar(__webpack_require__(137), exports);
	tslib_1.__exportStar(__webpack_require__(138), exports);
	tslib_1.__exportStar(__webpack_require__(75), exports);
	tslib_1.__exportStar(__webpack_require__(76), exports);


/***/ }),
/* 533 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var appointments_tab_enum_1 = __webpack_require__(77);
	angular.module('capability-ng-appointments').factory('AppointmentTabEnum', appointments_tab_enum_1.AppointmentTabEnum);
	tslib_1.__exportStar(__webpack_require__(77), exports);


/***/ }),
/* 534 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var reminder_enum_1 = __webpack_require__(139);
	var ConfirmAppointmentModel = /** @class */ (function () {
	    function ConfirmAppointmentModel(ngAppointmentReasonUsersource) {
	        this.ngAppointmentReasonUsersource = ngAppointmentReasonUsersource;
	        this._comments = '';
	        this._phoneNumber = '';
	        this._initialize();
	    }
	    ConfirmAppointmentModel.prototype.saveSendEmail = function (value) {
	        this._confirmAppointmentReminderOptions.isSendEmail = value;
	    };
	    ConfirmAppointmentModel.prototype.saveSendTextMessage = function (value) {
	        this._confirmAppointmentReminderOptions.isSendTextMessage = value;
	    };
	    ConfirmAppointmentModel.prototype.saveComments = function (comments) {
	        this._comments = comments;
	    };
	    ConfirmAppointmentModel.prototype.savePhoneNumber = function (phoneNumber) {
	        this._phoneNumber = phoneNumber;
	    };
	    Object.defineProperty(ConfirmAppointmentModel.prototype, "Comments", {
	        get: function () {
	            return this._comments;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ConfirmAppointmentModel.prototype, "phoneNumber", {
	        get: function () {
	            return this._phoneNumber;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ConfirmAppointmentModel.prototype, "confirmAppointmentReminderOptions", {
	        get: function () {
	            return this._confirmAppointmentReminderOptions;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    ConfirmAppointmentModel.prototype._initialize = function () {
	        var _a = this._initializeConfirmAppointmentReminderValues(this.ngAppointmentReasonUsersource.read().selectedType.send_email_reminder), isSendEmail = _a.isSendReminder, isSendEmailReminderEnabled = _a.isReminderOptionEnable;
	        var _b = this._initializeConfirmAppointmentReminderValues(this.ngAppointmentReasonUsersource.read().selectedType.send_sms_reminder), isSendTextMessage = _b.isSendReminder, isSendTextMessageReminderEnabled = _b.isReminderOptionEnable;
	        this._confirmAppointmentReminderOptions = {
	            isSendEmail: isSendEmail,
	            isSendEmailReminderEnabled: isSendEmailReminderEnabled,
	            isSendTextMessage: isSendTextMessage,
	            isSendTextMessageReminderEnabled: isSendTextMessageReminderEnabled
	        };
	        this._comments = '';
	    };
	    ConfirmAppointmentModel.prototype.initializeConfirmAppointmentReminderOptions = function () {
	        this._initialize();
	    };
	    ConfirmAppointmentModel.prototype._initializeConfirmAppointmentReminderValues = function (reminderChoice) {
	        var isSendReminder = false;
	        var isReminderOptionEnable = true;
	        switch (reminderChoice) {
	            case reminder_enum_1.ConfirmAppointmentReminderOptions.ON:
	                isSendReminder = true;
	                isReminderOptionEnable = true;
	                break;
	            case reminder_enum_1.ConfirmAppointmentReminderOptions.DISABLED:
	                isSendReminder = false;
	                isReminderOptionEnable = false;
	                break;
	            case reminder_enum_1.ConfirmAppointmentReminderOptions.ENABLED:
	                isSendReminder = true;
	                isReminderOptionEnable = false;
	                break;
	            default:
	                isSendReminder = false;
	                isReminderOptionEnable = true;
	        }
	        return { isSendReminder: isSendReminder, isReminderOptionEnable: isReminderOptionEnable };
	    };
	    return ConfirmAppointmentModel;
	}());
	exports.ConfirmAppointmentModel = ConfirmAppointmentModel;
	angular.module('capability-ng-appointments').service('ngConfirmAppointmentModel', ConfirmAppointmentModel);


/***/ }),
/* 535 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var appointments_available_times_query_1 = __webpack_require__(140);
	var appointments_confirm_query_1 = __webpack_require__(141);
	var appointments_courses_query_1 = __webpack_require__(142);
	var appointments_locations_query_1 = __webpack_require__(143);
	var appointments_organizers_query_1 = __webpack_require__(144);
	var appointments_reason_query_1 = __webpack_require__(145);
	var appointments_service_categories_query_1 = __webpack_require__(146);
	var appointments_service_query_1 = __webpack_require__(147);
	var cancellation_reasons_query_1 = __webpack_require__(78);
	var upcoming_appointments_query_1 = __webpack_require__(79);
	angular
	    .module('capability-ng-appointments')
	    .service('ngCancellationReasonsQuery', cancellation_reasons_query_1.CancellationReasonsQuery)
	    .service('ngUpcomingAppointmentsQuery', upcoming_appointments_query_1.UpcomingAppointmentsQuery)
	    .service('ngAppointmentsAvailableTimesQuery', appointments_available_times_query_1.AppointmentsAvailableTimesQuery)
	    .service('ngAppointmentsConfirmQuery', appointments_confirm_query_1.AppointmentsConfirmQuery)
	    .service('ngAppointmentsCoursesQuery', appointments_courses_query_1.AppointmentsCoursesQuery)
	    .service('ngAppointmentsLocationsQuery', appointments_locations_query_1.AppointmentsLocationsQuery)
	    .service('ngAppointmentsOrganizersQuery1', appointments_organizers_query_1.AppointmentsOrganizersQuery1)
	    .service('ngAppointmentsReasonsQuery', appointments_reason_query_1.AppointmentsReasonQuery)
	    .service('ngAppointmentsServiceCategoriesQuery', appointments_service_categories_query_1.AppointmentsServiceCategoriesQuery)
	    .service('ngAppointmentsServiceQuery', appointments_service_query_1.AppointmentsServiceQuery);
	tslib_1.__exportStar(__webpack_require__(140), exports);
	tslib_1.__exportStar(__webpack_require__(141), exports);
	tslib_1.__exportStar(__webpack_require__(142), exports);
	tslib_1.__exportStar(__webpack_require__(143), exports);
	tslib_1.__exportStar(__webpack_require__(144), exports);
	tslib_1.__exportStar(__webpack_require__(145), exports);
	tslib_1.__exportStar(__webpack_require__(146), exports);
	tslib_1.__exportStar(__webpack_require__(147), exports);
	tslib_1.__exportStar(__webpack_require__(78), exports);
	tslib_1.__exportStar(__webpack_require__(79), exports);


/***/ }),
/* 536 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var AppointmentsChoiceSelectorServant = /** @class */ (function () {
	    function AppointmentsChoiceSelectorServant() {
	        this.refresh();
	    }
	    AppointmentsChoiceSelectorServant.prototype.refresh = function () {
	        this.choiceSelectors = [];
	    };
	    AppointmentsChoiceSelectorServant.prototype.add = function (choiceSelectorItem) {
	        this.choiceSelectors.push(choiceSelectorItem);
	    };
	    AppointmentsChoiceSelectorServant.prototype.remove = function (choiceSelectorItem) {
	        var idx = this.choiceSelectors.indexOf(choiceSelectorItem);
	        this.choiceSelectors.splice(idx, 1);
	    };
	    AppointmentsChoiceSelectorServant.prototype.next = function (choiceSelectorItem) {
	        var nextChoiceSelector = this.choiceSelectors.slice(-1)[0];
	        choiceSelectorItem.toggleChoice();
	        if (choiceSelectorItem !== nextChoiceSelector) {
	            nextChoiceSelector.toggleChoice();
	        }
	    };
	    return AppointmentsChoiceSelectorServant;
	}());
	exports.AppointmentsChoiceSelectorServant = AppointmentsChoiceSelectorServant;


/***/ }),
/* 537 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var appointment_button_servant_1 = __webpack_require__(148);
	var appointment_info_servant_1 = __webpack_require__(30);
	var appointment_reminders_servant_1 = __webpack_require__(80);
	var appointments_available_times_servant_1 = __webpack_require__(81);
	var appointments_choice_selector_servant_1 = __webpack_require__(536);
	var appointments_command_servant_1 = __webpack_require__(82);
	var appointments_confirm_servant_1 = __webpack_require__(83);
	var appointments_tabs_configuration_1 = __webpack_require__(84);
	var appointments_usersource_servant_1 = __webpack_require__(85);
	var current_user_appointments_servant_1 = __webpack_require__(86);
	var local_storage_servant_1 = __webpack_require__(87);
	var prepare_appointment_campaign_request_servant_1 = __webpack_require__(88);
	angular
	    .module('capability-ng-appointments')
	    .service('ngAppointmentsCommandServant', appointments_command_servant_1.AppointmentsCommandServant)
	    .service('ngAppointmentsconfirmServent', appointments_confirm_servant_1.AppointmentsconfirmServant)
	    .service('ngAppointmentUsersourceServant', appointments_usersource_servant_1.AppointmentUsersourceServant)
	    .service('ngAppointmentsAvailableTimesServant', appointments_available_times_servant_1.AppointmentsAvailableTimesServant)
	    .service('ngAppointmentRemindersServant', appointment_reminders_servant_1.AppointmentRemindersServant)
	    .provider('ngAppointmentsTabsConfiguration', appointments_tabs_configuration_1.AppointmentsTabsConfiguration)
	    .service('ngCurrentUserAppointmentsServant', current_user_appointments_servant_1.CurrentUserAppointmentsServant)
	    .service('ngPrepareAppointmentCampaignServant', prepare_appointment_campaign_request_servant_1.PrepareAppointmentCampaignServant)
	    .service('ngLocalStorageServant', local_storage_servant_1.LocalStorageServant)
	    .service('ngAppointmentInfoServant', appointment_info_servant_1.AppointmentInfoServant)
	    .service('ngAppointmentsChoiceSelectorServant', appointments_choice_selector_servant_1.AppointmentsChoiceSelectorServant)
	    .service('ngAppointmentButtonServant', appointment_button_servant_1.AppointmentButtonServant);
	tslib_1.__exportStar(__webpack_require__(80), exports);
	tslib_1.__exportStar(__webpack_require__(81), exports);
	tslib_1.__exportStar(__webpack_require__(82), exports);
	tslib_1.__exportStar(__webpack_require__(83), exports);
	tslib_1.__exportStar(__webpack_require__(84), exports);
	tslib_1.__exportStar(__webpack_require__(85), exports);
	tslib_1.__exportStar(__webpack_require__(86), exports);
	tslib_1.__exportStar(__webpack_require__(87), exports);
	tslib_1.__exportStar(__webpack_require__(88), exports);
	tslib_1.__exportStar(__webpack_require__(30), exports);
	tslib_1.__exportStar(__webpack_require__(148), exports);


/***/ }),
/* 538 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var my_appointment_state_service_1 = __webpack_require__(149);
	var my_appointments_service_1 = __webpack_require__(89);
	angular
	    .module('capability-ng-appointments')
	    .service('ngMyAppointmentsService', my_appointments_service_1.MyAppointmentsService)
	    .service('ngMyAppointmentsStateService', my_appointment_state_service_1.default);
	tslib_1.__exportStar(__webpack_require__(89), exports);


/***/ }),
/* 539 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var alternate_appointment_times_usersource_1 = __webpack_require__(90);
	var appointment_available_times_usersource_1 = __webpack_require__(91);
	var appointment_location_staff_usersource_1 = __webpack_require__(92);
	var appointment_reason_usersource_1 = __webpack_require__(93);
	angular
	    .module('capability-ng-appointments')
	    .factory('ngAlternateAppointmentTimesUsersource', alternate_appointment_times_usersource_1.AlternateAppointmentTimesUsersourceFactory)
	    .factory('ngAppointmentAvailableTimesUsersource', appointment_available_times_usersource_1.AppointmentAvailableTimesUsersourceFactory)
	    .factory('ngAppointmentLocationsOrganizersUsersource', appointment_location_staff_usersource_1.AppointmentLocationsOrganizersUsersourceFactory)
	    .factory('ngAppointmentReasonUsersource', appointment_reason_usersource_1.AppointmentReasonUsersourceFactory);
	tslib_1.__exportStar(__webpack_require__(90), exports);
	tslib_1.__exportStar(__webpack_require__(91), exports);
	tslib_1.__exportStar(__webpack_require__(92), exports);
	tslib_1.__exportStar(__webpack_require__(93), exports);


/***/ }),
/* 540 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var AppointmentReasonController = /** @class */ (function () {
	    function AppointmentReasonController(loadAppointmentTypeConfigurationServiceCommand, AppointmentsServiceSelectedCommand, ngAppointmentsReasonsQuery, AppointmentSchedulingTypeSelectedCommand, AppointmentsServiceCategorySelectedCommand, ngAppointmentReasonUsersource, ngAppointmentsServiceCategoriesQuery, ngAppointmentsServiceQuery, ngMyAppointmentsStateService, ngAppointmentsChoiceSelectorServant, ngAppointmentButtonServant) {
	        this.loadAppointmentTypeConfigurationServiceCommand = loadAppointmentTypeConfigurationServiceCommand;
	        this.AppointmentsServiceSelectedCommand = AppointmentsServiceSelectedCommand;
	        this.ngAppointmentsReasonsQuery = ngAppointmentsReasonsQuery;
	        this.AppointmentSchedulingTypeSelectedCommand = AppointmentSchedulingTypeSelectedCommand;
	        this.AppointmentsServiceCategorySelectedCommand = AppointmentsServiceCategorySelectedCommand;
	        this.ngAppointmentReasonUsersource = ngAppointmentReasonUsersource;
	        this.ngAppointmentsServiceCategoriesQuery = ngAppointmentsServiceCategoriesQuery;
	        this.ngAppointmentsServiceQuery = ngAppointmentsServiceQuery;
	        this.ngMyAppointmentsStateService = ngMyAppointmentsStateService;
	        this.ngAppointmentsChoiceSelectorServant = ngAppointmentsChoiceSelectorServant;
	        this.ngAppointmentButtonServant = ngAppointmentButtonServant;
	        this.isLoading = true;
	        this.backText = "Back to " + this.ngMyAppointmentsStateService.currentStep.title;
	        this.setSelectedType = this.setSelectedType.bind(this);
	        this.setSelectedCategory = this.setSelectedCategory.bind(this);
	        this.setSelectedService = this.setSelectedService.bind(this);
	        this.isLoading = true;
	    }
	    AppointmentReasonController.prototype.$onInit = function () {
	        var _this = this;
	        this.ngAppointmentsChoiceSelectorServant.refresh();
	        this.ngAppointmentButtonServant.setDefaults();
	        this.ngAppointmentButtonServant.buttonText = 'Continue to Location & Staff';
	        if (!this.ngAppointmentReasonUsersource.read().selectedType.id) {
	            this.loadAppointmentTypeConfigurationServiceCommand().then(function () {
	                _this.setValues();
	                _this.ngMyAppointmentsStateService.stateLoaded();
	            });
	        }
	        else {
	            this.setValues();
	            this.ngMyAppointmentsStateService.stateLoaded();
	        }
	    };
	    AppointmentReasonController.prototype.setValues = function () {
	        this.isLoading = false;
	        this.selectedTypeName = _4.get(this.ngAppointmentReasonUsersource.read().selectedType, 'name', '');
	        this.selectedCategoryName = _4.get(this.ngAppointmentReasonUsersource.read().selectedCategory, 'name', '');
	        this.selectedServiceName = _4.get(this.ngAppointmentReasonUsersource.read().selectedService, 'name', '');
	    };
	    AppointmentReasonController.prototype.setSelectedType = function (selectedType) {
	        this.selectedTypeName = selectedType.name;
	        this.selectedCategoryName = '';
	        this.selectedServiceName = '';
	        this.AppointmentSchedulingTypeSelectedCommand(selectedType);
	    };
	    AppointmentReasonController.prototype.setSelectedCategory = function (selectedCategory) {
	        this.selectedCategoryName = selectedCategory.name;
	        this.selectedServiceName = '';
	        this.AppointmentsServiceCategorySelectedCommand(selectedCategory);
	    };
	    AppointmentReasonController.prototype.setSelectedService = function (selectedService) {
	        this.selectedServiceName = selectedService.name;
	        this.AppointmentsServiceSelectedCommand(selectedService);
	    };
	    return AppointmentReasonController;
	}());
	exports.AppointmentReasonController = AppointmentReasonController;
	angular.module('capability-ng-appointments').controller('ngAppointmentReasonController', AppointmentReasonController);


/***/ }),
/* 541 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var my_appointments_children_controller_1 = __webpack_require__(156);
	exports.MyAppointmentsChildrenController = my_appointments_children_controller_1.MyAppointmentsChildrenController;
	var scheduled_1 = __webpack_require__(157);
	angular
	    .module('capability-ng-appointments')
	    .controller('ngMyAppointmentsChildrenController', my_appointments_children_controller_1.MyAppointmentsChildrenController)
	    .controller('ngAppointmentsScheduledController', scheduled_1.AppointmentsScheduledController);


/***/ }),
/* 542 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var LogoutLinkController = /** @class */ (function () {
	    function LogoutLinkController(ngAuthenticationQueryModel, logoutCommand) {
	        this.ngAuthenticationQueryModel = ngAuthenticationQueryModel;
	        this.logoutCommand = logoutCommand;
	        this.disableLogoutButton = false;
	    }
	    LogoutLinkController.prototype.initialize = function () {
	        this.disableLogoutButton = false;
	    };
	    LogoutLinkController.prototype.logoutOutUser = function () {
	        this.logoutCommand();
	        this.disableLogoutButton = true;
	    };
	    LogoutLinkController.prototype.$onInit = function () {
	        this.initialize();
	    };
	    LogoutLinkController.prototype.$onChange = function () {
	        this.initialize();
	    };
	    return LogoutLinkController;
	}());
	exports.LogoutLinkController = LogoutLinkController;
	var LogoutLinkComponent = /** @class */ (function () {
	    function LogoutLinkComponent() {
	        this.templateUrl = 'capability-ng-authentication/src/components/logout_link/logout_link.html';
	        this.controller = LogoutLinkController;
	    }
	    return LogoutLinkComponent;
	}());
	exports.LogoutLinkComponent = LogoutLinkComponent;


/***/ }),
/* 543 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var AuthenticationController = /** @class */ (function () {
	    function AuthenticationController($state, $injector, ngRoutingRuleset, accountModel, ngMemberConfigurationDatastore, ngAuthenticationQueryModel, authenticationConfiguration, ngLoginHelpModalService) {
	        this.$state = $state;
	        this.$injector = $injector;
	        this.ngRoutingRuleset = ngRoutingRuleset;
	        this.accountModel = accountModel;
	        this.ngMemberConfigurationDatastore = ngMemberConfigurationDatastore;
	        this.ngAuthenticationQueryModel = ngAuthenticationQueryModel;
	        this.authenticationConfiguration = authenticationConfiguration;
	        this.ngLoginHelpModalService = ngLoginHelpModalService;
	        this.models = {
	            authentication: this.ngAuthenticationQueryModel.read(),
	            configuration: this.authenticationConfiguration.read(),
	            helpModal: this.ngLoginHelpModalService
	        };
	        this.queryModels = {
	            authentication: this.ngAuthenticationQueryModel
	        };
	        this.flags = {
	            showTermsOfUseModalLink: this.models.configuration.metadata.termsOfUseModal.enable,
	            backgroundImageURL: this.ngAuthenticationQueryModel.getBackgroundImageURL(),
	            showModal: this.ngLoginHelpModalService.shouldShow,
	            showDialog: false
	        };
	        this.styles = {
	            backgroundUrl: !!this.flags.backgroundImageURL
	                ? { 'background-image': "url(" + this.flags.backgroundImageURL + ")" }
	                : {}
	        };
	        if (!this.accountModel.isLoggedIn()) {
	            // Prevent another redirect to 'authentication.remote' as this CAS failure route is coming from server
	            if (!this.$state.is('authentication.remote.failure')) {
	                var loginConfig = this.ngMemberConfigurationDatastore.read(function (a) { return a; });
	                this.$state.go(loginConfig.auth_type.loginInterface, {}, { location: 'replace' });
	            }
	        }
	        else if (this.$injector.has(this.models.configuration.onLoggedInConfirmation)) {
	            this.$injector.get(this.models.configuration.onLoggedInConfirmation)($state, accountModel);
	        }
	        this.ngRoutingRuleset.transitionWhenLoggedOut();
	        this.ngRoutingRuleset.transitionWhenLoggedIn();
	    }
	    AuthenticationController.prototype.showLoginHelp = function () {
	        this.flags.showDialog = true;
	    };
	    return AuthenticationController;
	}());
	exports.AuthenticationController = AuthenticationController;


/***/ }),
/* 544 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var LoginFormController = /** @class */ (function () {
	    function LoginFormController($state, loginCommand, $injector, authenticationConfiguration, ngAuthenticationQueryModel, accountModel, appConfigModel) {
	        this.$state = $state;
	        this.loginCommand = loginCommand;
	        this.$injector = $injector;
	        this.authenticationConfiguration = authenticationConfiguration;
	        this.ngAuthenticationQueryModel = ngAuthenticationQueryModel;
	        this.accountModel = accountModel;
	        this.appConfigModel = appConfigModel;
	        this.loginHelpButtonLabel = 'Need help logging in?';
	        this.models = {
	            credentials: {
	                username: '',
	                password: ''
	            },
	            loginLabel: this.ngAuthenticationQueryModel.read().member.user_id_label
	        };
	        this.customLoginFieldPlaceholder = _4.isEmpty(_4.trim(this.models.loginLabel))
	            ? 'Enter your User ID'
	            : this.models.loginLabel;
	        this.loginHelpButtonLabel = _4.get(appConfigModel, 'model.member_configs.auth-login_help_button_label', this.loginHelpButtonLabel);
	    }
	    LoginFormController.prototype.requestAuthentication = function () {
	        var _this = this;
	        this.loginCommand(this.models.credentials)
	            .then(function () {
	            if (_this.authenticationConfiguration.read().onLoggedInFormSuccess) {
	                _this.$injector.get(_this.authenticationConfiguration.read().onLoggedInFormSuccess)(_this.$state, _this.accountModel);
	            }
	        })
	            .catch(function (loginFailure) {
	            var explicitErrorReason = loginFailure.reason || _this.$state.current.data.defaultErrorMessage;
	            _this.$state.go("authentication.form.failure", { explicitErrorReason: explicitErrorReason });
	        });
	    };
	    LoginFormController.prototype.formHasData = function () {
	        var authenticationCredentials = this.models.credentials;
	        return (_4.isString(authenticationCredentials.username) &&
	            _4.isString(authenticationCredentials.password) &&
	            authenticationCredentials.username.length > 0 &&
	            authenticationCredentials.password.length > 0);
	    };
	    return LoginFormController;
	}());
	exports.LoginFormController = LoginFormController;


/***/ }),
/* 545 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var LoginRemoteController = /** @class */ (function () {
	    function LoginRemoteController(ngAuthenticationQueryModel, $state, ngDeeplinkConfig, appConfigModel) {
	        this.ngAuthenticationQueryModel = ngAuthenticationQueryModel;
	        this.$state = $state;
	        this.ngDeeplinkConfig = ngDeeplinkConfig;
	        this.appConfigModel = appConfigModel;
	        this.logged_in_default_url = '';
	        this.sso_login_url = '';
	        this.loginButtonlabel = 'Login with your school account';
	        this.return_to_url = '';
	        this.storedDeeplink = '';
	        this.loginHelpButtonLabel = 'Need help logging in?';
	        this.storedDeeplink = this.ngDeeplinkConfig.getOriginalDeeplink();
	        this.logged_in_default_url = this.$state.href(this.ngDeeplinkConfig.getDefaultState(), {}, { absolute: true });
	        this.return_to_url = encodeURIComponent(!_4.isEmpty(this.storedDeeplink) ? this.storedDeeplink : this.logged_in_default_url);
	        this.sso_login_url = _4.get(ngAuthenticationQueryModel.read(), 'member.login_url') + "?return_to=" + this.return_to_url;
	        this.loginButtonlabel = _4.get(appConfigModel, 'model.member_configs.auth-login_button_label', this.loginButtonlabel);
	        this.loginHelpButtonLabel = _4.get(appConfigModel, 'model.member_configs.auth-login_help_button_label', this.loginHelpButtonLabel);
	    }
	    return LoginRemoteController;
	}());
	exports.LoginRemoteController = LoginRemoteController;


/***/ }),
/* 546 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var moment = __webpack_require__(2);
	var Conversation = /** @class */ (function () {
	    function Conversation(conversation) {
	        conversation.sent_timestamp = moment(conversation.sent_timestamp);
	        _4.merge(this, conversation);
	    }
	    Conversation.build = function (conversation) {
	        return new Conversation(conversation);
	    };
	    return Conversation;
	}());
	exports.Conversation = Conversation;


/***/ }),
/* 547 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ConversationThread = /** @class */ (function () {
	    function ConversationThread(conversationThread) {
	        _4.merge(this, conversationThread);
	    }
	    ConversationThread.build = function (conversationThread) {
	        return new ConversationThread(conversationThread);
	    };
	    return ConversationThread;
	}());
	exports.ConversationThread = ConversationThread;


/***/ }),
/* 548 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_type_1 = __webpack_require__(17);
	var ConversationCardController = /** @class */ (function () {
	    function ConversationCardController($state) {
	        this.$state = $state;
	    }
	    ConversationCardController.prototype.$onInit = function () {
	        this.model = {
	            email_message: this.htmlToPlainText(this.conversation.email_message),
	            conversationDate: utility_ts_type_1.TimeUtility.getDateMonthDay(this.conversation.sent_timestamp),
	            initials: utility_ts_type_1.StringUtility.getAcronym.apply(utility_ts_type_1.StringUtility, this.conversation.friendly_sender_name.split(' '))
	        };
	        this.flags = {
	            hasFlaggedThreads: this.conversation.flagged > 0,
	            hasMultipleThreads: this.conversation.total > 1,
	            hasUnreads: this.conversation.unread > 0
	        };
	    };
	    ConversationCardController.prototype.goToConversationThreads = function () {
	        this.$state.go('my.conversations.threads', {
	            id: this.conversation.id
	        });
	    };
	    ConversationCardController.prototype.htmlToPlainText = function (htmlText) {
	        var tempNode = document.createElement('DIV');
	        tempNode.innerHTML = htmlText;
	        return tempNode.textContent || tempNode.innerText || '';
	    };
	    return ConversationCardController;
	}());
	exports.ConversationCardController = ConversationCardController;
	var ConversationCardComponent = /** @class */ (function () {
	    function ConversationCardComponent() {
	        this.templateUrl = 'capability-ng-conversations/src/components/conversation_card/conversation_card.html';
	        this.controller = ConversationCardController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            conversation: '<'
	        };
	    }
	    return ConversationCardComponent;
	}());
	exports.ConversationCardComponent = ConversationCardComponent;


/***/ }),
/* 549 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var conversation_filter_strategy_1 = __webpack_require__(55);
	var ConversationFilterController = /** @class */ (function () {
	    function ConversationFilterController(ngConversationsCapabilityConfiguration, $state) {
	        this.ngConversationsCapabilityConfiguration = ngConversationsCapabilityConfiguration;
	        this.$state = $state;
	        this.filterExpanded = false;
	        this.conversationFilters = conversation_filter_strategy_1.ConversationFilterStrategy;
	        this.headerTheme = this.ngConversationsCapabilityConfiguration.config.navIconTheme;
	    }
	    ConversationFilterController.prototype.toggleFilter = function () {
	        this.filterExpanded = !this.filterExpanded;
	    };
	    ConversationFilterController.prototype.isFilteringActive = function () {
	        return (!_4.isEmpty(this.filter) &&
	            conversation_filter_strategy_1.ConversationFilterStrategy.getByKey(this.filter) !== conversation_filter_strategy_1.ConversationFilterStrategy.getByOrdinal(0));
	    };
	    ConversationFilterController.prototype.updateFilter = function (filter) {
	        this.$state.go('my.conversations', { filter: filter });
	    };
	    return ConversationFilterController;
	}());
	exports.ConversationFilterController = ConversationFilterController;
	var ConversationFilterComponent = /** @class */ (function () {
	    function ConversationFilterComponent() {
	        this.templateUrl = 'capability-ng-conversations/src/components/conversation_filter/conversation_filter.html';
	        this.controller = ConversationFilterController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            filter: '<?'
	        };
	    }
	    return ConversationFilterComponent;
	}());
	exports.ConversationFilterComponent = ConversationFilterComponent;


/***/ }),
/* 550 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var conversation_filter_strategy_1 = __webpack_require__(55);
	var ConversationListContentController = /** @class */ (function () {
	    function ConversationListContentController(loadConversationsCommand, ngConversationsQuery, ngConversationDatastore, $state) {
	        this.loadConversationsCommand = loadConversationsCommand;
	        this.ngConversationsQuery = ngConversationsQuery;
	        this.ngConversationDatastore = ngConversationDatastore;
	        this.$state = $state;
	        this.isLoading = true;
	        this.isLoadingMore = false;
	        this.isFiltering = false;
	        this.filterName = '';
	        this.emptyNotificationString = '';
	        this.conversations = [];
	    }
	    ConversationListContentController.prototype.$onInit = function () {
	        var _this = this;
	        this.loadConversationsCommand(1, this.filter).then(function () {
	            _this.isLoading = false;
	            _this.initialize();
	        });
	    };
	    ConversationListContentController.prototype.$OnChanges = function (changes) {
	        if (_4.isEmpty(changes)) {
	            this.initialize();
	        }
	    };
	    ConversationListContentController.prototype.initialize = function () {
	        this.conversations = conversation_filter_strategy_1.ConversationFilterStrategy.getByKey(this.filter).filter(this.ngConversationsQuery.result.conversations);
	        this.emptyNotificationString = _4.get(conversation_filter_strategy_1.ConversationFilterStrategy.getByKey(this.filter), 'notificationType', '');
	        this.filterName = _4.get(conversation_filter_strategy_1.ConversationFilterStrategy.getByKey(this.filter), 'name', '');
	        this.isFiltering = this.isFilteringActive();
	    };
	    ConversationListContentController.prototype.isFilteringActive = function () {
	        var activeFilter = conversation_filter_strategy_1.ConversationFilterStrategy.getByKey(this.filter);
	        return (!_4.isEmpty(activeFilter) &&
	            conversation_filter_strategy_1.ConversationFilterStrategy.getByKey(this.filter) !== conversation_filter_strategy_1.ConversationFilterStrategy.getByOrdinal(0));
	    };
	    ConversationListContentController.prototype.hasConversations = function () {
	        return !_4.isEmpty(this.conversations);
	    };
	    ConversationListContentController.prototype.loadMoreConversations = function () {
	        var _this = this;
	        if (!this.isLoadingMore) {
	            this.isLoadingMore = true;
	            this.ngConversationDatastore.model.page++;
	            this.loadConversationsCommand(this.ngConversationDatastore.model.page, this.filter).then(function () {
	                _this.initialize();
	                _this.isLoadingMore = false;
	            });
	        }
	    };
	    ConversationListContentController.prototype.clearFilter = function () {
	        this.$state.go('my.conversations', { filter: 'all' });
	    };
	    return ConversationListContentController;
	}());
	exports.ConversationListContentController = ConversationListContentController;
	var ConversationListContentComponent = /** @class */ (function () {
	    function ConversationListContentComponent() {
	        this.templateUrl = 'capability-ng-conversations/src/components/conversation_list_content/conversation_list_content.html';
	        this.controller = ConversationListContentController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            filter: '<?'
	        };
	    }
	    return ConversationListContentComponent;
	}());
	exports.ConversationListContentComponent = ConversationListContentComponent;


/***/ }),
/* 551 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var utility_ts_type_1 = __webpack_require__(17);
	var ConversationThreadCardController = /** @class */ (function () {
	    function ConversationThreadCardController(ngConversationThreadsQuery, ngConversationsQuery, deleteConversationThreadCommand, updateConversationThreadStatusCommand, ConversationThreadStatusEnum, ngNavigationHistoryStack, ngPopupService, $state, $stateParams, ngConversationsCapabilityConfiguration) {
	        this.ngConversationThreadsQuery = ngConversationThreadsQuery;
	        this.ngConversationsQuery = ngConversationsQuery;
	        this.deleteConversationThreadCommand = deleteConversationThreadCommand;
	        this.updateConversationThreadStatusCommand = updateConversationThreadStatusCommand;
	        this.ConversationThreadStatusEnum = ConversationThreadStatusEnum;
	        this.ngNavigationHistoryStack = ngNavigationHistoryStack;
	        this.ngPopupService = ngPopupService;
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	        this.ngConversationsCapabilityConfiguration = ngConversationsCapabilityConfiguration;
	        this.reviewLinkText = 'Resolve Suggestion(s)';
	        this.deleteThread = this.deleteThread.bind(this);
	    }
	    ConversationThreadCardController.prototype.$onInit = function () {
	        this.__setReviewLinkText();
	        this.flags = {
	            hasMobileNotes: !utility_ts_platform_1.PlatformUtility.isDesktop() &&
	                !_4.isEmpty(_4.get(this.conversationThread, 'source_properties.mobile_postfix', '')),
	            hasDesktopNotes: utility_ts_platform_1.PlatformUtility.isDesktop() &&
	                !_4.isEmpty(_4.get(this.conversationThread, 'source_properties.desktop_postfix', '')),
	            showActionLink: !_4.isEmpty(this.conversationThread.callback_url) &&
	                (this.isAPNotification() ? utility_ts_platform_1.PlatformUtility.isDesktop() : true),
	            isUnread: this.ConversationThreadStatusEnum.isUnread(this.conversationThread.status),
	            isFlagged: this.ConversationThreadStatusEnum.isFlagged(this.conversationThread.status)
	        };
	        this.model = {
	            conversationDate: utility_ts_type_1.TimeUtility.formatMonthDayYear(this.conversationThread.sent_timestamp),
	            initials: this.isAPNotification()
	                ? utility_ts_type_1.StringUtility.getAcronym.apply(utility_ts_type_1.StringUtility, this.conversationThread.friendly_sender_name.split(' ')) : 'NS',
	            email_message: this.conversationThread.email_message
	                ? this.conversationThread.email_message.replace(/\n/g, '<br />')
	                : ''
	        };
	    };
	    ConversationThreadCardController.prototype.$onChanges = function () {
	        this.__setReviewLinkText();
	    };
	    ConversationThreadCardController.prototype.__setReviewLinkText = function () {
	        var defaultText = 'Resolve Suggestion(s)';
	        this.reviewLinkText = _4.get(this.conversationThread, 'ui_action_text', defaultText);
	        if (_4.isEmpty(this.reviewLinkText)) {
	            this.reviewLinkText = defaultText;
	        }
	    };
	    ConversationThreadCardController.prototype.isAPNotification = function () {
	        return this.conversationThread.source_name === 'AP';
	    };
	    ConversationThreadCardController.prototype.isMobile = function () {
	        return utility_ts_platform_1.PlatformUtility.isMobile();
	    };
	    ConversationThreadCardController.prototype.goToActionButtonState = function () {
	        if (this.conversationThread.callback_url.includes('/dl/study')) {
	            if (this.ngConversationsCapabilityConfiguration.config.isNeiEnabled) {
	                window.location.assign('#/my/native/features/study/sections');
	            }
	            else {
	                this.$state.go('my.studyGroups');
	            }
	        }
	        if (this.conversationThread.callback_url.includes('/dl/holdslist')) {
	            this.$state.go('my.holdscenter');
	        }
	        if (this.conversationThread.callback_url.includes('/dl/surveys')) {
	            this.$state.go('my.survey-intro', {
	                surveyID: _4.get(this.conversationThread, 'source_properties.survey_id', 0)
	            });
	        }
	        if (this.conversationThread.callback_url.includes('/dl/event')) {
	            this.$state.go('my.todos.details', {
	                eventId: _4.get(this.conversationThread, 'source_properties.event', 0),
	                repeatedBy: _4.get(this.conversationThread, 'source_properties.repeated_by', 0)
	            });
	        }
	        if (this.conversationThread.callback_url.includes('/dl/ptd')) {
	            this.$state.go('my.todos.reminder', {
	                personalTodoID: _4.get(this.conversationThread, 'source_properties.personaltodo_id', 0)
	            });
	        }
	        // Journeys feature is a micro app and not part of angular app, so we are not using angular routing
	        if (this.conversationThread.callback_url.includes('/dl/journeys_journey')) {
	            var journey_id = _4.get(this.conversationThread, 'source_properties.journey_id', 0);
	            var journeysRouteinNei = "#/my/native/features/event/journey/" + journey_id + "/review";
	            return window.location.assign(journeysRouteinNei);
	        }
	        if (this.conversationThread.callback_url.includes('/dl/journeys_step')) {
	            var step_id = _4.get(this.conversationThread, 'source_properties.step_id', 0);
	            var journeyStepRouteinNei = "#/my/native/features/checklist/item/Step/" + step_id;
	            return window.location.assign(journeyStepRouteinNei);
	        }
	    };
	    ConversationThreadCardController.prototype.deleteThread = function () {
	        var _this = this;
	        this.deleteConversationThreadCommand(this.conversationThread).then(function () {
	            if (_4.isEmpty(_this.ngConversationThreadsQuery.result)) {
	                _this.ngNavigationHistoryStack.goBack();
	            }
	        });
	    };
	    ConversationThreadCardController.prototype.deleteThreadAlert = function () {
	        this.ngPopupService.show({
	            title: 'Delete Notification',
	            body: 'Are you sure you want to delete this notification? This cannot be undone.',
	            completeButtonText: 'Delete',
	            cancelButtonText: 'Cancel',
	            completeCallback: this.deleteThread,
	            cancelCallback: angular.noop
	        });
	    };
	    ConversationThreadCardController.prototype.toggleFlaggedStatus = function () {
	        var _this = this;
	        this.updateConversationThreadStatusCommand(this.conversationThread).then(function () {
	            _this.flags.isFlagged = _this.ConversationThreadStatusEnum.isFlagged(_this.conversationThread.status);
	            var conversation = _4.find(_this.ngConversationsQuery.result.conversations, function (conv) { return conv.id === _this.$stateParams.id; });
	            if (!_4.isEmpty(conversation)) {
	                conversation.flagged = _this.flags.isFlagged ? ++conversation.flagged : --conversation.flagged;
	            }
	        });
	    };
	    return ConversationThreadCardController;
	}());
	exports.ConversationThreadCardController = ConversationThreadCardController;
	var ConversationThreadCardComponent = /** @class */ (function () {
	    function ConversationThreadCardComponent() {
	        this.templateUrl = 'capability-ng-conversations/src/components/conversation_thread_card/conversation_thread_card.html';
	        this.controller = ConversationThreadCardController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            conversationThread: '<'
	        };
	    }
	    return ConversationThreadCardComponent;
	}());
	exports.ConversationThreadCardComponent = ConversationThreadCardComponent;


/***/ }),
/* 552 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ConversationThreadsContentController = /** @class */ (function () {
	    function ConversationThreadsContentController($stateParams, loadConversationThreadsCommand, updateConversationStatusCommand, ngConversationThreadServant, ngConversationThreadsQuery, ngConversationsQuery, ConversationThreadStatusEnum) {
	        this.$stateParams = $stateParams;
	        this.loadConversationThreadsCommand = loadConversationThreadsCommand;
	        this.updateConversationStatusCommand = updateConversationStatusCommand;
	        this.ngConversationThreadServant = ngConversationThreadServant;
	        this.ngConversationThreadsQuery = ngConversationThreadsQuery;
	        this.ngConversationsQuery = ngConversationsQuery;
	        this.ConversationThreadStatusEnum = ConversationThreadStatusEnum;
	        this.isLoading = true;
	        this.isIntermediateThreadsOpen = false;
	    }
	    ConversationThreadsContentController.prototype.$onInit = function () {
	        var _this = this;
	        this.loadConversationThreadsCommand(this.$stateParams.id).then(function () {
	            _this.isLoading = false;
	            var unReadIDs = _this.ngConversationThreadServant.unreadThreadIDs;
	            if (!_4.isEmpty(unReadIDs)) {
	                _this.updateConversationStatusCommand(_this.ngConversationThreadServant.unreadThreadIDs, _this.ConversationThreadStatusEnum.READ.value);
	                var conv = _4.findLast(_this.ngConversationsQuery.result.conversations, function (con) { return con.id === _this.$stateParams.id; });
	                _4.set(conv, 'unread', 0);
	            }
	        });
	    };
	    ConversationThreadsContentController.prototype.toggleIntermediateThreads = function () {
	        this.isIntermediateThreadsOpen = !this.isIntermediateThreadsOpen;
	    };
	    return ConversationThreadsContentController;
	}());
	exports.ConversationThreadsContentController = ConversationThreadsContentController;
	var ConversationThreadsContentComponent = /** @class */ (function () {
	    function ConversationThreadsContentComponent() {
	        this.templateUrl = 'capability-ng-conversations/src/components/conversation_threads_content/conversation_threads_content.html';
	        this.controller = ConversationThreadsContentController;
	        this.controllerAs = '$ctrl';
	    }
	    return ConversationThreadsContentComponent;
	}());
	exports.ConversationThreadsContentComponent = ConversationThreadsContentComponent;


/***/ }),
/* 553 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var ConversationThreadsQuery = /** @class */ (function () {
	    function ConversationThreadsQuery(ngConversationThreadDatastore) {
	        this.ngConversationThreadDatastore = ngConversationThreadDatastore;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngConversationThreadDatastore);
	    }
	    ConversationThreadsQuery.prototype.run = function () {
	        this._result = this.ngConversationThreadDatastore.values();
	        return this;
	    };
	    Object.defineProperty(ConversationThreadsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return ConversationThreadsQuery;
	}());
	exports.ConversationThreadsQuery = ConversationThreadsQuery;


/***/ }),
/* 554 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var ConversationsQuery = /** @class */ (function () {
	    function ConversationsQuery(ngConversationDatastore) {
	        this.ngConversationDatastore = ngConversationDatastore;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngConversationDatastore);
	    }
	    ConversationsQuery.prototype.run = function () {
	        var conversations = _4.orderBy(this.ngConversationDatastore.values(), 'sent_timestamp', 'desc');
	        var hasMoreConversations = !_4.isEmpty(this.ngConversationDatastore.model.nextPageURL);
	        this._result = {
	            conversations: conversations,
	            hasMoreConversations: hasMoreConversations
	        };
	        return this;
	    };
	    Object.defineProperty(ConversationsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return ConversationsQuery;
	}());
	exports.ConversationsQuery = ConversationsQuery;


/***/ }),
/* 555 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	function ConversationsRoutes($stateProvider) {
	    var conversationRouteResolve = {
	        accountModelData: function (accountModel, loadAccountCommand) {
	            if (_4.isEmpty(accountModel.student_nk)) {
	                loadAccountCommand();
	            }
	        }
	    };
	    $stateProvider
	        .state('my.conversations', {
	        url: 'conversations/:filter/',
	        templateUrl: "capability-ng-conversations/src/views/conversation_list/conversation_list.html",
	        controller: 'ConversationListController',
	        controllerAs: '$ctrl',
	        params: {
	            filter: {
	                value: 'all'
	            }
	        },
	        data: {
	            viewTitle: 'Notifications',
	            hasMainMenu: true,
	            ignoredInHistory: false
	        },
	        resolve: conversationRouteResolve
	    })
	        .state('my.conversations.threads', {
	        url: 'threads/{id:int}',
	        views: {
	            '@my': {
	                templateUrl: 'capability-ng-conversations/src/views/conversation_threads/conversation_threads.html'
	            }
	        },
	        data: {
	            viewTitle: 'Notification Details',
	            ignoredInHistory: false
	        },
	        resolve: conversationRouteResolve
	    });
	}
	exports.ConversationsRoutes = ConversationsRoutes;


/***/ }),
/* 556 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ConversationThreadServant = /** @class */ (function () {
	    function ConversationThreadServant(ngConversationThreadsQuery, ConversationThreadStatusEnum) {
	        this.ngConversationThreadsQuery = ngConversationThreadsQuery;
	        this.ConversationThreadStatusEnum = ConversationThreadStatusEnum;
	    }
	    Object.defineProperty(ConversationThreadServant.prototype, "firstThread", {
	        get: function () {
	            return _4.first(this.ngConversationThreadsQuery.result);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ConversationThreadServant.prototype, "lastThread", {
	        get: function () {
	            return _4.size(this.ngConversationThreadsQuery.result) > 1
	                ? _4.last(this.ngConversationThreadsQuery.result)
	                : undefined;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ConversationThreadServant.prototype, "intermediateThreads", {
	        get: function () {
	            return _4.slice(this.ngConversationThreadsQuery.result, 1, -1);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ConversationThreadServant.prototype, "unreadThreadIDs", {
	        get: function () {
	            var _this = this;
	            return _4.reduce(this.ngConversationThreadsQuery.result, function (ids, thread) {
	                if (_this.ConversationThreadStatusEnum.isUnread(thread.status)) {
	                    ids.push(thread.id);
	                }
	                return ids;
	            }, []);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    ConversationThreadServant.prototype.hasIntermediateThreads = function () {
	        return _4.size(this.intermediateThreads) > 0;
	    };
	    return ConversationThreadServant;
	}());
	exports.ConversationThreadServant = ConversationThreadServant;


/***/ }),
/* 557 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	exports.ConversationPriorityFeedStrategy = new utility_ts_strategy_1.StrategySafe({
	    THREAD: {
	        title: function (count) { return 'You have an unread notification'; },
	        subTitle: 'Check it out',
	        state: 'my.conversations',
	        params: {
	            filter: 'unread'
	        }
	    },
	    CONVERSATION: {
	        title: function (count) { return "You have " + count + " unread notifications"; },
	        subTitle: 'Check them out',
	        state: 'my.conversations',
	        params: {
	            filter: 'unread'
	        }
	    }
	});


/***/ }),
/* 558 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var conversation_filter_strategy_1 = __webpack_require__(55);
	var ConversationListController = /** @class */ (function () {
	    function ConversationListController($stateParams, appConfigModel) {
	        this.$stateParams = $stateParams;
	        this.appConfigModel = appConfigModel;
	        this.activeFilter = this.$stateParams.filter;
	        this.title = conversation_filter_strategy_1.ConversationFilterStrategy.getByKey(this.activeFilter).name + " Notifications";
	        this.showNotificationSettingsLink = this.appConfigModel.isFeatureEnabled('notification-settings');
	    }
	    return ConversationListController;
	}());
	exports.ConversationListController = ConversationListController;


/***/ }),
/* 559 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var lodash4_1 = __webpack_require__(1);
	var ScheduleCourse = /** @class */ (function () {
	    function ScheduleCourse(course) {
	        lodash4_1.merge(this, course);
	    }
	    ScheduleCourse.build = function (course) {
	        return new ScheduleCourse(course);
	    };
	    return ScheduleCourse;
	}());
	exports.ScheduleCourse = ScheduleCourse;


/***/ }),
/* 560 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	function DisplayDataBuilderFunction(ngNumsToDayNamesService, DayOfTheWeekEnum) {
	    var DisplayDataBuilderClass = /** @class */ (function () {
	        function DisplayDataBuilderClass() {
	        }
	        DisplayDataBuilderClass.prototype.getCourseType = function (sectionTime) {
	            return _4.some(sectionTime, {
	                day_of_week: DayOfTheWeekEnum.ONLINE.value.ordinal
	            })
	                ? DayOfTheWeekEnum.ONLINE.value.shortname
	                : 'campus';
	        };
	        DisplayDataBuilderClass.prototype.getLocationText = function (location) {
	            return !_4.isEmpty(location.name) ? location.name : location.address;
	        };
	        DisplayDataBuilderClass.prototype.hasLocation = function (location) {
	            return (!(_4.isEmpty(location.longitude) || _4.isEmpty(location.latitude)) &&
	                location.longitude !== 0 &&
	                location.latitude !== 0);
	        };
	        DisplayDataBuilderClass.prototype.buildLocationLink = function (location) {
	            var locationAppend = '';
	            var iosQueryParam = '';
	            if (!_4.isEmpty(location.address)) {
	                iosQueryParam = "q=";
	                locationAppend = "" + location.address;
	            }
	            else if (this.hasLocation(location)) {
	                iosQueryParam = "ll=";
	                locationAppend = location.latitude + "," + location.longitude;
	            }
	            return {
	                desktop: _4.isEmpty(locationAppend) ? '' : "https://maps.google.com/?q=" + locationAppend,
	                android: _4.isEmpty(locationAppend) ? '' : "https://maps.google.com/?q=" + locationAppend,
	                ios: _4.isEmpty(locationAppend) ? '' : "maps://maps.apple.com/?" + iosQueryParam + locationAppend
	            };
	        };
	        DisplayDataBuilderClass.prototype.buildDisplayData = function (data) {
	            var _this = this;
	            var isOnline = function (sectionTime) { return sectionTime.day_of_week > 7; };
	            return _4.map(_4.groupBy(_4.each(data, function (sectionTime) {
	                if (!isOnline(sectionTime) && !_4.isEmpty(sectionTime.from_tm) && !_4.isEmpty(sectionTime.to_tm)) {
	                    sectionTime._time = moment(sectionTime.from_tm, 'HH:mm:ss').format('h:mm A') + " - " + moment(sectionTime.to_tm, 'HH:mm:ss').format('h:mm A');
	                }
	                else {
	                    sectionTime._time = '';
	                }
	            }), function (sectionTime) {
	                return sectionTime._time + sectionTime.location;
	            }), function (sectionTimeGroup) {
	                var defaultLocation = {
	                    id: -1,
	                    campus: 0,
	                    campus_name: undefined,
	                    name: undefined,
	                    address: undefined,
	                    comments: undefined,
	                    latitude: undefined,
	                    longitude: undefined
	                };
	                var location = _4.first(sectionTimeGroup)._location;
	                if (_4.isEmpty(location)) {
	                    location = defaultLocation;
	                }
	                return {
	                    courseType: _this.getCourseType(sectionTimeGroup),
	                    days_of_week: ngNumsToDayNamesService.numsToDayNames(_4.sortBy(_4.map(sectionTimeGroup, function (sectionTime) {
	                        return sectionTime.day_of_week;
	                    })), 'shortname'),
	                    time: _4.get(_4.first(sectionTimeGroup), '_time', ''),
	                    location: location.address,
	                    locationText: _this.getLocationText(location),
	                    locationLink: _this.buildLocationLink(location)
	                };
	            });
	        };
	        return DisplayDataBuilderClass;
	    }());
	    return new DisplayDataBuilderClass();
	}
	exports.DisplayDataBuilderFunction = DisplayDataBuilderFunction;


/***/ }),
/* 561 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var schedule_labels_builder_1 = __webpack_require__(1560);
	var section_time_builder_1 = __webpack_require__(562);
	var Schedule = /** @class */ (function () {
	    function Schedule(schedule) {
	        _4.forEach(schedule.section_time, function (section_time) { return (section_time = new section_time_builder_1.ScheduleSectionTime(section_time)); });
	        _4.forEach(schedule.section_labels, function (section_labels) { return (section_labels = new schedule_labels_builder_1.ScheduleSectionLabels(section_labels)); });
	        _4.merge(this, schedule);
	    }
	    Schedule.build = function (schedule) {
	        return new Schedule(schedule);
	    };
	    return Schedule;
	}());
	exports.Schedule = Schedule;


/***/ }),
/* 562 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ScheduleSectionTime = /** @class */ (function () {
	    function ScheduleSectionTime(sectionTime) {
	        // This is a _HACK_ to solve for some bad data feeds that are setting what should be 8
	        // to 0 instead. Also, this is intentionally made all encompassing outside of [1-7]
	        // to prevent this issue from happening again.
	        if (sectionTime.day_of_week > 7 || sectionTime.day_of_week < 1) {
	            sectionTime.day_of_week = 8;
	        }
	        _4.merge(this, sectionTime);
	    }
	    ScheduleSectionTime.build = function (sectionTime) {
	        return new ScheduleSectionTime(sectionTime);
	    };
	    return ScheduleSectionTime;
	}());
	exports.ScheduleSectionTime = ScheduleSectionTime;


/***/ }),
/* 563 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MyScheduleCourseController = /** @class */ (function () {
	    function MyScheduleCourseController($state, appConfigModel) {
	        this.$state = $state;
	        this.appConfigModel = appConfigModel;
	        this.sectionLabel = 'Section';
	        this.VIEWABLE_THRESHOLD = 8;
	    }
	    MyScheduleCourseController.prototype.$onInit = function () {
	        this.sectionLabel = this.appConfigModel.getConfigProperty('section_label') || 'Section';
	        this.models = {
	            course: this.course,
	            courseAction: {
	                state: 'my.courseSchedule.detail',
	                params: {
	                    id: this.course.id
	                }
	            }
	        };
	        this.showMoreSectionLabels = this.models.course._sectionLabels.section_label.length > this.VIEWABLE_THRESHOLD;
	    };
	    return MyScheduleCourseController;
	}());
	exports.MyScheduleCourseController = MyScheduleCourseController;
	var ScheduleCourseComponent = /** @class */ (function () {
	    function ScheduleCourseComponent() {
	        this.templateUrl = 'capability-ng-course-schedule/src/components/my_schedule_course/my_schedule_course.html';
	        this.controller = MyScheduleCourseController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            course: '<'
	        };
	    }
	    return ScheduleCourseComponent;
	}());
	exports.ScheduleCourseComponent = ScheduleCourseComponent;


/***/ }),
/* 564 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var lodash4_1 = __webpack_require__(1);
	var MyScheduleCourseListController = /** @class */ (function () {
	    function MyScheduleCourseListController(ngScheduleQuery) {
	        this.ngScheduleQuery = ngScheduleQuery;
	    }
	    MyScheduleCourseListController.prototype.getNoAvailableClassesText = function () {
	        return lodash4_1.isEmpty(this.ngScheduleQuery.getTermText(this.term))
	            ? "Your course schedule will be available once the term starts."
	            : "You currently are not registered for any classes for " + this.ngScheduleQuery.getTermText(this.term) + ".";
	    };
	    return MyScheduleCourseListController;
	}());
	exports.MyScheduleCourseListController = MyScheduleCourseListController;
	var ScheduleCourseListComponent = /** @class */ (function () {
	    function ScheduleCourseListComponent() {
	        this.templateUrl = 'capability-ng-course-schedule/src/components/my_schedule_course_list/my_schedule_course_list.html';
	        this.controller = MyScheduleCourseListController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            courseList: '<',
	            term: '<'
	        };
	    }
	    return ScheduleCourseListComponent;
	}());
	exports.ScheduleCourseListComponent = ScheduleCourseListComponent;


/***/ }),
/* 565 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var my_schedule_detail_controller_1 = __webpack_require__(94);
	var MyScheduleDetailComponent = /** @class */ (function () {
	    function MyScheduleDetailComponent() {
	        this.templateUrl = 'capability-ng-course-schedule/src/components/my_schedule_detail/my_schedule_detail.html';
	        this.controller = my_schedule_detail_controller_1.MyScheduleDetailController;
	        this.bindings = {
	            course: '<'
	        };
	    }
	    return MyScheduleDetailComponent;
	}());
	exports.MyScheduleDetailComponent = MyScheduleDetailComponent;


/***/ }),
/* 566 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var my_schedule_list_controller_1 = __webpack_require__(95);
	var MyScheduleListComponent = /** @class */ (function () {
	    function MyScheduleListComponent() {
	        this.templateUrl = 'capability-ng-course-schedule/src/components/my_schedule_list/my_schedule_list.html';
	        this.controller = my_schedule_list_controller_1.MyScheduleListController;
	        this.bindings = {
	            term: '<'
	        };
	    }
	    return MyScheduleListComponent;
	}());
	exports.MyScheduleListComponent = MyScheduleListComponent;


/***/ }),
/* 567 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var CourseScheduleCapabilityConfiguration = /** @class */ (function () {
	    function CourseScheduleCapabilityConfiguration() {
	        this._config = {
	            isMobile: false,
	            navIconTheme: 'blue'
	        };
	    }
	    Object.defineProperty(CourseScheduleCapabilityConfiguration.prototype, "config", {
	        get: function () {
	            return this._config;
	        },
	        set: function (configs) {
	            this._config = tslib_1.__assign(tslib_1.__assign({}, this._config), configs);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    CourseScheduleCapabilityConfiguration.prototype.setConfig = function (key, value) {
	        this._config[key] = value;
	    };
	    return CourseScheduleCapabilityConfiguration;
	}());
	exports.CourseScheduleCapabilityConfiguration = CourseScheduleCapabilityConfiguration;


/***/ }),
/* 568 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var lodash4_1 = __webpack_require__(1);
	var MyScheduleHelperFunction = /** @class */ (function () {
	    function MyScheduleHelperFunction() {
	        this.MEMOIZED_COLOR_NKS = {};
	        this.cssCounter = 1;
	    }
	    MyScheduleHelperFunction.build = function () {
	        return new MyScheduleHelperFunction();
	    };
	    MyScheduleHelperFunction.prototype.getScheduleCSSClass = function (nk, colorLocation) {
	        if (this.cssCounter > 12) {
	            this.cssCounter = 1;
	        }
	        if (!this.MEMOIZED_COLOR_NKS[nk]) {
	            this.MEMOIZED_COLOR_NKS[nk] = "clr-" + this.cssCounter;
	            this.cssCounter++;
	        }
	        return this.MEMOIZED_COLOR_NKS[nk] + "-" + (lodash4_1.isString(colorLocation) ? colorLocation : 'txt');
	    };
	    MyScheduleHelperFunction.prototype.convertScheduleTimesForCalendar = function (schedule, isThisWeek) {
	        var calendarSchedule = [];
	        var self = this;
	        var weekStart = moment().startOf('week').subtract(1, 'day');
	        var weekEnd = moment().endOf('week');
	        lodash4_1.forEach(schedule, function (course) {
	            var _course = course._course;
	            calendarSchedule = calendarSchedule.concat(lodash4_1.map(lodash4_1.filter(course._sectionTime, function (_a) {
	                var day_of_week = _a.day_of_week;
	                if (!isThisWeek) {
	                    return true;
	                }
	                return course.class_end_dt.isAfter(weekStart) && course.class_start_dt.isBefore(weekEnd);
	            }), function (_a) {
	                var day_of_week = _a.day_of_week, from_tm = _a.from_tm, to_tm = _a.to_tm;
	                return {
	                    appId: course.id,
	                    content: _course.cd,
	                    bkgColorClass: self.getScheduleCSSClass(_course.nk, 'bkg'),
	                    day_of_week: day_of_week,
	                    from_tm: from_tm,
	                    to_tm: to_tm
	                };
	            }));
	        });
	        return calendarSchedule;
	    };
	    return MyScheduleHelperFunction;
	}());
	exports.MyScheduleHelperFunction = MyScheduleHelperFunction;


/***/ }),
/* 569 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var moment = __webpack_require__(2);
	var utility_ts_orm_1 = __webpack_require__(3);
	var SchedulePriorityFeedQuery = /** @class */ (function () {
	    function SchedulePriorityFeedQuery(ngScheduleQuery, ngScheduleSectionDatastore, ngScheduleTermsDatastore) {
	        this.ngScheduleQuery = ngScheduleQuery;
	        this.ngScheduleSectionDatastore = ngScheduleSectionDatastore;
	        this.ngScheduleTermsDatastore = ngScheduleTermsDatastore;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngScheduleSectionDatastore, this.ngScheduleTermsDatastore);
	    }
	    SchedulePriorityFeedQuery.prototype._calculateClasses = function (courses, now) {
	        var nextClass;
	        var nextClassTime = moment().endOf('day');
	        var numClassesToday = 0;
	        _4.forEach(courses, function (course) {
	            _4.forEach(course._sectionTime, function (sectionTime) {
	                // Now +1 because moment is 0 index, server is not
	                var endTime = moment(sectionTime.to_tm, 'HH:mm:ss');
	                if (sectionTime.day_of_week === now.day() + 1 && endTime.isAfter(now)) {
	                    if (nextClassTime.isAfter(endTime)) {
	                        nextClassTime = moment(sectionTime.from_tm, 'HH:mm:ss');
	                        nextClass = course._course;
	                    }
	                    numClassesToday++;
	                }
	            });
	        });
	        if (numClassesToday === 0 || !nextClass) {
	            return { isActive: false, text: { title: '', subTitle: '' } };
	        }
	        var classWord = numClassesToday === 1 ? 'class' : 'classes';
	        return {
	            isActive: true,
	            text: {
	                title: numClassesToday + " " + classWord + " today",
	                subTitle: "Next class: " + nextClass.cd + " at " + nextClassTime.format('h:mma')
	            }
	        };
	    };
	    SchedulePriorityFeedQuery.prototype.run = function () {
	        var _this = this;
	        var now = moment();
	        var currentTerm = _4.first(this.ngScheduleTermsDatastore.query(function (term) { return term.term_end_dt > now && term.term_start_dt <= now; }));
	        var courses = _4.filter(this.ngScheduleSectionDatastore.query(function (section) { return section.class_end_dt > now && section.class_start_dt <= now; }), function (course) { return _this.ngScheduleQuery.isRegisteredCourse(course); });
	        var _a = this._calculateClasses(courses, now), isActive = _a.isActive, text = _a.text;
	        this._result = {
	            icon: { type: 'book_with_watch', theme: 'purple' },
	            action: { state: 'my.courseSchedule.term', params: { termId: currentTerm ? currentTerm.id : '' } },
	            isOverdue: false,
	            text: text,
	            isActive: isActive
	        };
	        return this;
	    };
	    Object.defineProperty(SchedulePriorityFeedQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return SchedulePriorityFeedQuery;
	}());
	exports.SchedulePriorityFeedQuery = SchedulePriorityFeedQuery;


/***/ }),
/* 570 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var FavoriteCapabilityConfiguration = /** @class */ (function () {
	    function FavoriteCapabilityConfiguration() {
	        this._config = {
	            isMajorExplorerEnabled: false,
	            isResourcesEnabled: false
	        };
	    }
	    Object.defineProperty(FavoriteCapabilityConfiguration.prototype, "config", {
	        get: function () {
	            return this._config;
	        },
	        set: function (configs) {
	            this._config = tslib_1.__assign(tslib_1.__assign({}, this._config), configs);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    FavoriteCapabilityConfiguration.prototype.setConfig = function (key, value) {
	        this._config[key] = value;
	    };
	    return FavoriteCapabilityConfiguration;
	}());
	exports.FavoriteCapabilityConfiguration = FavoriteCapabilityConfiguration;


/***/ }),
/* 571 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	function MyFavoritesRoutes($stateProvider) {
	    $stateProvider.state('my.favorites', {
	        url: 'favorites/',
	        templateUrl: 'capability-ng-favorites/src/views/my_favorites_category/my_favorites_category.html',
	        controller: 'MyFavoritesCategoryController',
	        controllerAs: '$ctrl',
	        data: {
	            viewTitle: 'My Favorites',
	            hasMainMenu: true,
	            ignoredInHistory: false
	        }
	    });
	}
	exports.MyFavoritesRoutes = MyFavoritesRoutes;


/***/ }),
/* 572 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MyFavoritesCategoryController = /** @class */ (function () {
	    function MyFavoritesCategoryController(ngFavoriteCapabilityConfiguration, phxAxTitleAnnouncerDelegate, ngResourceListServant, ngMajorProgramsQuery, loadFavoritesCommand, log) {
	        var _this = this;
	        this.ngFavoriteCapabilityConfiguration = ngFavoriteCapabilityConfiguration;
	        this.phxAxTitleAnnouncerDelegate = phxAxTitleAnnouncerDelegate;
	        this.ngResourceListServant = ngResourceListServant;
	        this.ngMajorProgramsQuery = ngMajorProgramsQuery;
	        this.loadFavoritesCommand = loadFavoritesCommand;
	        this.log = log;
	        this.flags = {
	            showFavoritedMajors: this.ngFavoriteCapabilityConfiguration.config.isMajorExplorerEnabled,
	            showFavoritedResources: this.ngFavoriteCapabilityConfiguration.config.isResourcesEnabled,
	            isLoading: true
	        };
	        this.loadFavoritesCommand()
	            .then(function () {
	            _this.initializeModel();
	            _this.flags.isLoading = false;
	        })
	            .catch(function (error) {
	            _this.flags.isLoading = false;
	            _this.log.user.error(error);
	        });
	    }
	    MyFavoritesCategoryController.prototype.initializeModel = function () {
	        this.models = {
	            resources: this.ngResourceListServant.getFavoriteResources(),
	            majors: this.ngMajorProgramsQuery.result
	        };
	    };
	    MyFavoritesCategoryController.prototype.hasMajorFavorites = function () {
	        return !_4.isEmpty(this.models.majors);
	    };
	    MyFavoritesCategoryController.prototype.hasResourcesFavorites = function () {
	        return !_4.isEmpty(this.models.resources);
	    };
	    MyFavoritesCategoryController.prototype.onClickUnfavorite = function (title, type) {
	        this.phxAxTitleAnnouncerDelegate.announceChange(title + " " + type + " was removed from favorites.");
	        this.models.resources = this.ngResourceListServant.getFavoriteResources();
	        this.models.majors = _4.filter(this.ngMajorProgramsQuery.result, function (major) { return major.is_favorite; });
	    };
	    return MyFavoritesCategoryController;
	}());
	exports.MyFavoritesCategoryController = MyFavoritesCategoryController;


/***/ }),
/* 573 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var holds_list_query_1 = __webpack_require__(97);
	var holds_priority_feed_query_1 = __webpack_require__(98);
	angular
	    .module('capability-ng-holds')
	    .service('ngHoldPriorityFeedQuery', holds_priority_feed_query_1.HoldPriorityFeedQuery)
	    .service('ngHoldListQuery', holds_list_query_1.HoldListQuery);
	tslib_1.__exportStar(__webpack_require__(97), exports);
	tslib_1.__exportStar(__webpack_require__(98), exports);


/***/ }),
/* 574 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MajorCourseMapViewContentController = /** @class */ (function () {
	    function MajorCourseMapViewContentController(ngMajorCourseMapQuery) {
	        this.ngMajorCourseMapQuery = ngMajorCourseMapQuery;
	        this.courseMap = this.ngMajorCourseMapQuery.result;
	    }
	    MajorCourseMapViewContentController.prototype.isCourseMapEmpty = function () {
	        return _4.isEmpty(this.courseMap);
	    };
	    MajorCourseMapViewContentController.prototype.getCourseCode = function (course) {
	        return !_4.isEmpty(course.code) ? course.code + " " : "";
	    };
	    return MajorCourseMapViewContentController;
	}());
	exports.MajorCourseMapViewContentController = MajorCourseMapViewContentController;
	var MajorCourseMapViewContentComponent = /** @class */ (function () {
	    function MajorCourseMapViewContentComponent() {
	        this.templateUrl = 'capability-ng-major-explorer/src/components/major_coursemap_view_content/major_coursemap_view_content.html';
	        this.controller = MajorCourseMapViewContentController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            major: '<'
	        };
	    }
	    return MajorCourseMapViewContentComponent;
	}());
	exports.MajorCourseMapViewContentComponent = MajorCourseMapViewContentComponent;


/***/ }),
/* 575 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MajorCredentialsViewContentController = /** @class */ (function () {
	    function MajorCredentialsViewContentController(ngMajorCredentialsQuery) {
	        this.ngMajorCredentialsQuery = ngMajorCredentialsQuery;
	    }
	    MajorCredentialsViewContentController.prototype.hasMajorCredentials = function () {
	        return !_4.isEmpty(this.ngMajorCredentialsQuery.result);
	    };
	    return MajorCredentialsViewContentController;
	}());
	exports.MajorCredentialsViewContentController = MajorCredentialsViewContentController;
	var MajorCredentialsViewContentComponent = /** @class */ (function () {
	    function MajorCredentialsViewContentComponent() {
	        this.templateUrl = 'capability-ng-major-explorer/src/components/major_credentials_view_content/major_credentials_view_content.html';
	        this.controller = MajorCredentialsViewContentController;
	        this.controllerAs = '$ctrl';
	    }
	    return MajorCredentialsViewContentComponent;
	}());
	exports.MajorCredentialsViewContentComponent = MajorCredentialsViewContentComponent;


/***/ }),
/* 576 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MajorDetailViewContentController = /** @class */ (function () {
	    function MajorDetailViewContentController($state, majorTileFn, majorDataToggleService, ngMajorService, loadRelatedCareersCommand) {
	        this.$state = $state;
	        this.majorTileFn = majorTileFn;
	        this.majorDataToggleService = majorDataToggleService;
	        this.ngMajorService = ngMajorService;
	        this.loadRelatedCareersCommand = loadRelatedCareersCommand;
	    }
	    MajorDetailViewContentController.prototype.$onInit = function () {
	        var _this = this;
	        this.model = {
	            careers: undefined,
	            loadingMessage: 'Loading related careers...',
	            banner: this.ngMajorService.isCurrentMajor(this.major.id) ? 'Current Major' : ''
	        };
	        this.flags = {
	            hasMeaningfulInterests: !_4.isEmpty(_4.compact(this.major._interests)),
	            showSalary: this.majorDataToggleService.toggles.salary,
	            showJobDemand: this.majorDataToggleService.toggles.hiringDemand,
	            showTuition: this.majorDataToggleService.toggles.tution,
	            showDevCourses: this.majorDataToggleService.toggles.devCourses,
	            showCourseMaps: this.majorDataToggleService.toggles.courseMaps,
	            showCredits: this.majorDataToggleService.toggles.credits,
	            showCredentials: !_4.isEmpty(this.major.short_credential)
	        };
	        this.loadRelatedCareersCommand(this.major.id).then(function (careerResults) {
	            _this.majorTileFn.buildCareers(careerResults);
	            _this.model.loadingMessage = '';
	            _this.model.careers = careerResults;
	        });
	    };
	    Object.defineProperty(MajorDetailViewContentController.prototype, "majorSalary", {
	        get: function () {
	            return this.ngMajorService.getMajorSalaryString(this.major);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    MajorDetailViewContentController.prototype.goToCourseMap = function () {
	        this.$state.go('my.coursemap', {
	            id: this.major.id,
	            selectedMajor: this.major
	        });
	    };
	    MajorDetailViewContentController.prototype.hasInterests = function () {
	        return !!this.flags.hasMeaningfulInterests && !_4.isEmpty(this.major._interests);
	    };
	    return MajorDetailViewContentController;
	}());
	exports.MajorDetailViewContentController = MajorDetailViewContentController;
	var MajorDetailViewContentComponent = /** @class */ (function () {
	    function MajorDetailViewContentComponent() {
	        this.templateUrl = 'capability-ng-major-explorer/src/components/major_detail_view_content/major_detail_view_content.html';
	        this.controller = MajorDetailViewContentController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            major: '<'
	        };
	    }
	    return MajorDetailViewContentComponent;
	}());
	exports.MajorDetailViewContentComponent = MajorDetailViewContentComponent;


/***/ }),
/* 577 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MajorDevCoursesViewContentController = /** @class */ (function () {
	    function MajorDevCoursesViewContentController(ngMajorDevCoursesQuery) {
	        this.ngMajorDevCoursesQuery = ngMajorDevCoursesQuery;
	        this.devCourses = this.ngMajorDevCoursesQuery.result;
	    }
	    return MajorDevCoursesViewContentController;
	}());
	exports.MajorDevCoursesViewContentController = MajorDevCoursesViewContentController;
	var MajorDevCoursesViewContentComponent = /** @class */ (function () {
	    function MajorDevCoursesViewContentComponent() {
	        this.templateUrl = 'capability-ng-major-explorer/src/components/major_dev_courses_view_content/major_dev_courses_view_content.html';
	        this.controller = MajorDevCoursesViewContentController;
	        this.controllerAs = '$ctrl';
	    }
	    return MajorDevCoursesViewContentComponent;
	}());
	exports.MajorDevCoursesViewContentComponent = MajorDevCoursesViewContentComponent;


/***/ }),
/* 578 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MajorSearchViewContentController = /** @class */ (function () {
	    function MajorSearchViewContentController($state, ngMajorSearchService, ngMajorExplorerCapabilityConfiguration) {
	        this.$state = $state;
	        this.ngMajorSearchService = ngMajorSearchService;
	        this.ngMajorExplorerCapabilityConfiguration = ngMajorExplorerCapabilityConfiguration;
	    }
	    MajorSearchViewContentController.prototype.goBack = function () {
	        this.ngMajorSearchService.reset();
	        this.$state.go('my.survey');
	    };
	    MajorSearchViewContentController.prototype.search = function () {
	        return this.ngMajorSearchService.setSearch();
	    };
	    MajorSearchViewContentController.prototype.hasSearchQuery = function () {
	        return !_4.isEmpty(this.ngMajorSearchService.query);
	    };
	    MajorSearchViewContentController.prototype.doesNotHaveResults = function () {
	        return !this.hasNotSearched() && !this.ngMajorSearchService.hasSearchResults;
	    };
	    MajorSearchViewContentController.prototype.hasNotSearched = function () {
	        return !this.ngMajorSearchService.searchedPerformed && !this.hasSearchQuery();
	    };
	    MajorSearchViewContentController.prototype.isMobile = function () {
	        return this.ngMajorExplorerCapabilityConfiguration.config.isMobile;
	    };
	    return MajorSearchViewContentController;
	}());
	exports.MajorSearchViewContentController = MajorSearchViewContentController;
	var MajorSearchViewContentComponent = /** @class */ (function () {
	    function MajorSearchViewContentComponent() {
	        this.templateUrl = 'capability-ng-major-explorer/src/components/major_search_view_content/major_search_view_content.html';
	        this.controller = MajorSearchViewContentController;
	        this.controllerAs = '$ctrl';
	    }
	    return MajorSearchViewContentComponent;
	}());
	exports.MajorSearchViewContentComponent = MajorSearchViewContentComponent;


/***/ }),
/* 579 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MajorSortFilterController = /** @class */ (function () {
	    function MajorSortFilterController(ngSurveyStepService, programSortEnum, ngMajorExplorerCapabilityConfiguration) {
	        this.ngSurveyStepService = ngSurveyStepService;
	        this.programSortEnum = programSortEnum;
	        this.ngMajorExplorerCapabilityConfiguration = ngMajorExplorerCapabilityConfiguration;
	        this.filterExpanded = false;
	        this.configureSortFilters();
	        if (this.ngMajorExplorerCapabilityConfiguration.config.navIconTheme) {
	            this.headerTheme = this.ngMajorExplorerCapabilityConfiguration.config.navIconTheme;
	        }
	    }
	    MajorSortFilterController.prototype.configureSortFilters = function () {
	        var _this = this;
	        this.filteredProgramEnum = [];
	        _4.forEach(this.programSortEnum.iterator(), function (sortEnum) {
	            if (sortEnum.enabled()) {
	                _this.filteredProgramEnum.push(sortEnum);
	            }
	        });
	        this.sortFilters = _4.map(this.filteredProgramEnum, function (sortEnum) { return sortEnum.actionSheetText; });
	    };
	    MajorSortFilterController.prototype.changeFilter = function (index) {
	        this.ngSurveyStepService.sortPrograms(this.filteredProgramEnum[index].key);
	    };
	    MajorSortFilterController.prototype.toggleFilter = function () {
	        this.filterExpanded = !this.filterExpanded;
	    };
	    return MajorSortFilterController;
	}());
	exports.MajorSortFilterController = MajorSortFilterController;
	var MajorSortFilterComponent = /** @class */ (function () {
	    function MajorSortFilterComponent() {
	        this.templateUrl = 'capability-ng-major-explorer/src/components/major_sort_filter/major_sort_filter.html';
	        this.controller = MajorSortFilterController;
	        this.controllerAs = '$ctrl';
	    }
	    return MajorSortFilterComponent;
	}());
	exports.MajorSortFilterComponent = MajorSortFilterComponent;


/***/ }),
/* 580 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MajorTileController = /** @class */ (function () {
	    function MajorTileController($state, majorDataToggleService, majorTileFn, ngMajorService) {
	        this.$state = $state;
	        this.majorDataToggleService = majorDataToggleService;
	        this.majorTileFn = majorTileFn;
	        this.ngMajorService = ngMajorService;
	    }
	    MajorTileController.prototype.$onInit = function () {
	        this.bannerColorStyle = this.bannerColor ? { 'background-color': this.bannerColor } : {};
	        this.flags = {
	            showSalary: this.majorDataToggleService.toggles.salary,
	            showJobDemand: this.majorDataToggleService.toggles.hiringDemand,
	            showTuition: this.majorDataToggleService.toggles.tution,
	            showDevCourses: this.majorDataToggleService.toggles.devCourses,
	            showCourseMaps: this.majorDataToggleService.toggles.courseMaps,
	            showCredits: this.majorDataToggleService.toggles.credits,
	            showCredentials: !_4.isEmpty(this.major.short_credential)
	        };
	    };
	    Object.defineProperty(MajorTileController.prototype, "majorSalary", {
	        get: function () {
	            return this.ngMajorService.getMajorSalaryString(this.major);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    MajorTileController.prototype.goToDetail = function () {
	        this.$state.go('my.majorDetail', {
	            id: this.major.id,
	            isFavorite: !!this.favoriteCallback
	        });
	    };
	    return MajorTileController;
	}());
	exports.MajorTileController = MajorTileController;
	var MajorTileComponent = /** @class */ (function () {
	    function MajorTileComponent() {
	        this.templateUrl = 'capability-ng-major-explorer/src/components/major_tile/major_tile.html';
	        this.controller = MajorTileController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            banner: '@',
	            bannerColor: '@',
	            major: '<',
	            favoriteCallback: '&?'
	        };
	    }
	    return MajorTileComponent;
	}());
	exports.MajorTileComponent = MajorTileComponent;


/***/ }),
/* 581 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_type_1 = __webpack_require__(17);
	var MajorTileCareerController = /** @class */ (function () {
	    function MajorTileCareerController(majorDataToggleService) {
	        this.majorDataToggleService = majorDataToggleService;
	    }
	    MajorTileCareerController.prototype.$onInit = function () {
	        this.flags = {
	            showSalary: this.majorDataToggleService.toggles.salary,
	            showJobDemand: this.majorDataToggleService.toggles.hiringDemand,
	            showTuition: this.majorDataToggleService.toggles.tution,
	            showDevCourses: this.majorDataToggleService.toggles.devCourses,
	            showCourseMaps: this.majorDataToggleService.toggles.courseMaps,
	            showCredits: false
	        };
	        this.career.shortDesc = utility_ts_type_1.StringUtility.truncateString(100, this.career.desc);
	    };
	    MajorTileCareerController.prototype.getNumberInThousands = function (number) {
	        return '$' + Math.round(number / 1000) + 'K';
	    };
	    MajorTileCareerController.prototype.showAverageSalary = function () {
	        return this.career && this.career.salaryMax !== '$0k';
	    };
	    MajorTileCareerController.prototype.hasChildren = function (list) {
	        return !_4.isEmpty(list);
	    };
	    MajorTileCareerController.prototype.isNotLargest = function (compareItem, list) {
	        var isLargest = true;
	        list.forEach(function (item) {
	            if (compareItem.value < item.value) {
	                isLargest = false;
	            }
	        });
	        return !isLargest;
	    };
	    MajorTileCareerController.prototype.showEmployerInfo = function () {
	        return this.hasChildren(this.career.education) && this.hasChildren(this.career.experience);
	    };
	    return MajorTileCareerController;
	}());
	exports.MajorTileCareerController = MajorTileCareerController;
	var MajorTileCareerComponent = /** @class */ (function () {
	    function MajorTileCareerComponent() {
	        this.templateUrl = 'capability-ng-major-explorer/src/components/major_tile_career/major_tile_career.html';
	        this.controller = MajorTileCareerController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            career: '<'
	        };
	    }
	    return MajorTileCareerComponent;
	}());
	exports.MajorTileCareerComponent = MajorTileCareerComponent;


/***/ }),
/* 582 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MajorTileCareersListController = /** @class */ (function () {
	    function MajorTileCareersListController() {
	    }
	    MajorTileCareersListController.prototype.containsNoCareerData = function () {
	        return (_4.isEmpty(_4.get(this.careerList, 'allCareers', {})) &&
	            !_4.isUndefined(_4.get(this.careerList, 'allCareers', {})));
	    };
	    return MajorTileCareersListController;
	}());
	exports.MajorTileCareersListController = MajorTileCareersListController;
	var MajorTileCareersListComponent = /** @class */ (function () {
	    function MajorTileCareersListComponent() {
	        this.templateUrl = 'capability-ng-major-explorer/src/components/major_tile_careers_list/major_tile_careers_list.html';
	        this.controller = MajorTileCareersListController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            careerList: '<'
	        };
	    }
	    return MajorTileCareersListComponent;
	}());
	exports.MajorTileCareersListComponent = MajorTileCareersListComponent;


/***/ }),
/* 583 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SurveyBeginViewContentController = /** @class */ (function () {
	    function SurveyBeginViewContentController($stateParams, accountModel, ngMajorCurrentMajorsQuery, myIntakeModel, majorDataToggleService, ngMajorExplorerCapabilityConfiguration) {
	        this.$stateParams = $stateParams;
	        this.accountModel = accountModel;
	        this.ngMajorCurrentMajorsQuery = ngMajorCurrentMajorsQuery;
	        this.myIntakeModel = myIntakeModel;
	        this.majorDataToggleService = majorDataToggleService;
	        this.ngMajorExplorerCapabilityConfiguration = ngMajorExplorerCapabilityConfiguration;
	    }
	    SurveyBeginViewContentController.prototype.$onInit = function () {
	        var SERVER_PLACEMENT_BAND_STRATEGY = "PlacementBand";
	        this.model = {
	            name: this.accountModel.firstName
	        };
	        this.flags = {
	            majorExplorerCompleted: this.intakeItem.source.task.status === 'COMPLETED',
	            hasPlacementBands: this.ngMajorExplorerCapabilityConfiguration.config.devReqStrategy === SERVER_PLACEMENT_BAND_STRATEGY
	        };
	        this.configureContentTileSettings();
	    };
	    SurveyBeginViewContentController.prototype.hasCurrentMajors = function () {
	        return (this.ngMajorCurrentMajorsQuery.result.length > 0 &&
	            _4.first(this.ngMajorCurrentMajorsQuery.result).nk !== '*UNDECLARED*');
	    };
	    SurveyBeginViewContentController.prototype.configureContentTileSettings = function () {
	        var DEFAULT_STATE = 'my.majorexplorer-step';
	        this.surveyTakenConfig = {
	            icon: {
	                type: 'graduation',
	                theme: 'teal'
	            },
	            text: {
	                title: 'Take the Major Explorer survey again',
	                subTitle: 'Update your goals and interests to explore different potential majors'
	            },
	            action: {
	                state: DEFAULT_STATE,
	                params: {
	                    pageIndex: 0,
	                    fromState: this.$stateParams.fromState
	                }
	            }
	        };
	        this.surveyBeginNoMajorConfig = {
	            icon: {
	                type: 'graduation',
	                theme: 'teal'
	            },
	            text: {
	                title: 'Take the Major Explorer survey',
	                subTitle: 'Enter your goals and interests to explore potential majors'
	            },
	            action: {
	                state: DEFAULT_STATE,
	                params: {
	                    pageIndex: 0,
	                    fromState: this.$stateParams.fromState
	                }
	            }
	        };
	        this.surveyCompletedConfig = {
	            icon: {
	                type: 'check',
	                theme: 'green'
	            },
	            text: {
	                title: 'View your Major Explorer survey results',
	                subTitle: 'Look at majors and careers that might fit your interests'
	            },
	            action: {
	                state: DEFAULT_STATE,
	                params: {
	                    pageIndex: this.myIntakeModel.progression.size() - 1,
	                    fromState: this.$stateParams.fromState
	                }
	            }
	        };
	        this.placementScoreConfig = {
	            icon: {
	                type: 'apple_and_checkmark',
	                theme: 'blue'
	            },
	            text: {
	                title: 'View your Placement Test results',
	                subTitle: 'Placement tests can determine if you need to take developmental courses'
	            },
	            action: {
	                state: 'my.placementscores',
	                params: {}
	            }
	        };
	    };
	    return SurveyBeginViewContentController;
	}());
	exports.SurveyBeginViewContentController = SurveyBeginViewContentController;
	var SurveyBeginViewContentComponent = /** @class */ (function () {
	    function SurveyBeginViewContentComponent() {
	        this.templateUrl = 'capability-ng-major-explorer/src/components/survey_begin_view_content/survey_begin_view_content.html';
	        this.controller = SurveyBeginViewContentController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            intakeItem: '<'
	        };
	    }
	    return SurveyBeginViewContentComponent;
	}());
	exports.SurveyBeginViewContentComponent = SurveyBeginViewContentComponent;


/***/ }),
/* 584 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SurveyQuestionChoiceController = /** @class */ (function () {
	    function SurveyQuestionChoiceController($scope, choiceQuestionFn) {
	        this.$scope = $scope;
	        this.choiceQuestionFn = choiceQuestionFn;
	    }
	    SurveyQuestionChoiceController.prototype.$onInit = function () {
	        var _this = this;
	        this.delegateHandle = this.item._parent.nk + 'second';
	        this.choiceQuestionFn.initialize(this.item);
	        this.validationCondition = {
	            isValid: function () {
	                return _this.choiceQuestionFn.validate(_this.item);
	            }
	        };
	    };
	    SurveyQuestionChoiceController.prototype.isOptionSelected = function (optionId) {
	        var selectedOption = _4.first(this.choiceQuestionFn.models._userSelected);
	        return _4.get(selectedOption, 'id', undefined) === optionId;
	    };
	    SurveyQuestionChoiceController.prototype.updateOption = function (evt) {
	        this.choiceQuestionFn.item_onChange(this.item, _4.toNumber(evt.detail.value) ? _4.toNumber(evt.detail.value) : -1);
	    };
	    // tslint:disable-next-line:no-empty
	    SurveyQuestionChoiceController.prototype.save = function () { };
	    return SurveyQuestionChoiceController;
	}());
	exports.SurveyQuestionChoiceController = SurveyQuestionChoiceController;
	var SurveyQuestionChoiceComponent = /** @class */ (function () {
	    function SurveyQuestionChoiceComponent() {
	        this.templateUrl = 'capability-ng-major-explorer/src/components/survey_question_choice/survey_question_choice.html';
	        this.controller = SurveyQuestionChoiceController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            mode: '@',
	            item: '='
	        };
	    }
	    return SurveyQuestionChoiceComponent;
	}());
	exports.SurveyQuestionChoiceComponent = SurveyQuestionChoiceComponent;


/***/ }),
/* 585 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var SurveyQuestionGenericController = /** @class */ (function () {
	    function SurveyQuestionGenericController() {
	    }
	    return SurveyQuestionGenericController;
	}());
	exports.SurveyQuestionGenericController = SurveyQuestionGenericController;
	var SurveyQuestionGenericComponent = /** @class */ (function () {
	    function SurveyQuestionGenericComponent() {
	        this.templateUrl = 'capability-ng-major-explorer/src/components/survey_question_generic/survey_question_generic.html';
	        this.controller = SurveyQuestionGenericController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            mode: '@',
	            item: '='
	        };
	    }
	    return SurveyQuestionGenericComponent;
	}());
	exports.SurveyQuestionGenericComponent = SurveyQuestionGenericComponent;


/***/ }),
/* 586 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var SurveyQuestionListSelectionController = /** @class */ (function () {
	    function SurveyQuestionListSelectionController($scope, listselectionQuestionFn, myIntakeModel) {
	        var _this = this;
	        this.$scope = $scope;
	        this.listselectionQuestionFn = listselectionQuestionFn;
	        this.myIntakeModel = myIntakeModel;
	        this.delegateHandle = '';
	        this.isSecondPage = false;
	        this.save = function () {
	            return _this.listselectionQuestionFn.item_onChange();
	        };
	    }
	    SurveyQuestionListSelectionController.prototype.$onInit = function () {
	        var _this = this;
	        this.isSecondPage = this.myIntakeModel.progression.isSecondListSelectionPage();
	        this.delegateHandle = this.item._parent.nk + (this.isSecondPage ? 'second' : 'first');
	        this.listselectionQuestionFn.initialize();
	        this.validationCondition = {
	            isValid: function () {
	                return _this.listselectionQuestionFn.validate(_this.isSecondPage);
	            }
	        };
	    };
	    SurveyQuestionListSelectionController.prototype.isListDisabled = function (interest) {
	        return (this.listselectionQuestionFn.hasSelectedMaximumInterests(this.listselectionQuestionFn.models.questionList) &&
	            !interest._selected);
	    };
	    SurveyQuestionListSelectionController.prototype.isInterestSelected = function (interest) {
	        return interest._selected;
	    };
	    SurveyQuestionListSelectionController.prototype.updateSelection = function (interest) {
	        if (!this.isListDisabled(interest)) {
	            interest._selected = !interest._selected;
	        }
	    };
	    return SurveyQuestionListSelectionController;
	}());
	exports.SurveyQuestionListSelectionController = SurveyQuestionListSelectionController;
	var SurveyQuestionListSelectionComponent = /** @class */ (function () {
	    function SurveyQuestionListSelectionComponent() {
	        this.templateUrl = 'capability-ng-major-explorer/src/components/survey_question_listselection/survey_question_listselection.html';
	        this.controller = SurveyQuestionListSelectionController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            mode: '@',
	            item: '='
	        };
	    }
	    return SurveyQuestionListSelectionComponent;
	}());
	exports.SurveyQuestionListSelectionComponent = SurveyQuestionListSelectionComponent;


/***/ }),
/* 587 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SurveyQuestionMetarankingController = /** @class */ (function () {
	    function SurveyQuestionMetarankingController($scope, metaRankingQuestionFn, ngMetaRankingModalService) {
	        var _this = this;
	        this.$scope = $scope;
	        this.metaRankingQuestionFn = metaRankingQuestionFn;
	        this.ngMetaRankingModalService = ngMetaRankingModalService;
	        this.modalIndex = -1;
	        this.isModalOpen = false;
	        this.save = function () {
	            return _this.metaRankingQuestionFn.itemList_onChange(_this.item);
	        };
	    }
	    SurveyQuestionMetarankingController.prototype.$onInit = function () {
	        var _this = this;
	        this.metaRankingQuestionFn.initialize(this.item);
	        this.validationCondition = {
	            isValid: function () {
	                return _this.metaRankingQuestionFn.validate(_this.item);
	            }
	        };
	    };
	    SurveyQuestionMetarankingController.prototype.showModal = function (index) {
	        this.ngMetaRankingModalService.currentIndex = index;
	        this.ngMetaRankingModalService.item = this.item;
	        this.ngMetaRankingModalService.isOpen = true;
	    };
	    SurveyQuestionMetarankingController.prototype.valuesChanged = function () {
	        this.metaRankingQuestionFn.item_onChange(this.item);
	    };
	    SurveyQuestionMetarankingController.prototype.updateItemList = function (element) {
	        if (!this.isElementDisabled(element)) {
	            element._isRanked = !element._isRanked;
	            this.metaRankingQuestionFn.updateItemList(this.item);
	        }
	    };
	    SurveyQuestionMetarankingController.prototype.hasSelectedMaximumInterests = function () {
	        return (_4.filter(this.item.custom.masterList, function (element) {
	            return element._isRanked;
	        }).length >= this.item.custom._max);
	    };
	    SurveyQuestionMetarankingController.prototype.isElementDisabled = function (element) {
	        return this.hasSelectedMaximumInterests() && !element._isRanked;
	    };
	    return SurveyQuestionMetarankingController;
	}());
	exports.SurveyQuestionMetarankingController = SurveyQuestionMetarankingController;
	var SurveyQuestionMetarankingComponent = /** @class */ (function () {
	    function SurveyQuestionMetarankingComponent() {
	        this.templateUrl = 'capability-ng-major-explorer/src/components/survey_question_metaranking/survey_question_metaranking.html';
	        this.controller = SurveyQuestionMetarankingController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            mode: '@',
	            item: '='
	        };
	    }
	    return SurveyQuestionMetarankingComponent;
	}());
	exports.SurveyQuestionMetarankingComponent = SurveyQuestionMetarankingComponent;


/***/ }),
/* 588 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SurveyQuestionProgramsController = /** @class */ (function () {
	    function SurveyQuestionProgramsController(programsQuestionFn, ngSurveyStepService, majorDataToggleService, ngMajorSearchService, ngMajorCurrentMajorsQuery, ProgramsPresenterViewState, programSortEnum) {
	        this.programsQuestionFn = programsQuestionFn;
	        this.ngSurveyStepService = ngSurveyStepService;
	        this.majorDataToggleService = majorDataToggleService;
	        this.ngMajorSearchService = ngMajorSearchService;
	        this.ngMajorCurrentMajorsQuery = ngMajorCurrentMajorsQuery;
	        this.ProgramsPresenterViewState = ProgramsPresenterViewState;
	        this.programSortEnum = programSortEnum;
	    }
	    SurveyQuestionProgramsController.prototype.$onInit = function () {
	        var _this = this;
	        this.flags = {
	            showSorting: this.majorDataToggleService.toggles.salary || this.majorDataToggleService.toggles.hiringDemand,
	            isLoading: true
	        };
	        this.programsQuestionFn.coreInitialize();
	        this.programsQuestionFn.loadMajorExplorer().then(function (programs) {
	            _this.flags.isLoading = false;
	            _this.item.custom = programs;
	        });
	    };
	    SurveyQuestionProgramsController.prototype.hasSavedPrograms = function () {
	        return !!this.programsQuestionFn.favoritePrograms ? _4.size(this.programsQuestionFn.favoritePrograms) > 0 : false;
	    };
	    SurveyQuestionProgramsController.prototype.toggleProgram = function (program, save) {
	        return save
	            ? this.programsQuestionFn.favoritePrograms.push(program)
	            : _4.remove(this.programsQuestionFn.favoritePrograms, { id: program.id });
	    };
	    SurveyQuestionProgramsController.prototype.isSorted = function (sortType) {
	        return this.ngSurveyStepService.activeSortType === sortType;
	    };
	    SurveyQuestionProgramsController.prototype.getFilteredMajors = function () {
	        var sortOrder = this.ngSurveyStepService.sortOrder;
	        var customSortMethod = this.programSortEnum.key(this.ngSurveyStepService.activeSortType).customSortMethod;
	        var iteratee = this.ngSurveyStepService.activeSortType;
	        if (_4.isFunction(customSortMethod)) {
	            iteratee = customSortMethod;
	        }
	        return this.ngMajorSearchService.getFilteredMajors([iteratee], sortOrder);
	    };
	    SurveyQuestionProgramsController.prototype.currentView = function () {
	        return ('capability-ng-major-explorer/src/components/survey_question_programs/survey_question_views/' +
	            this.ProgramsPresenterViewState.PROGRAMS.key +
	            '.html');
	    };
	    SurveyQuestionProgramsController.prototype.getSortingText = function (value) {
	        return this.programSortEnum[value.toUpperCase()].displayText;
	    };
	    SurveyQuestionProgramsController.prototype.hasCurrentMajor = function () {
	        return (this.ngMajorCurrentMajorsQuery.result.length > 0 &&
	            _4.first(this.ngMajorCurrentMajorsQuery.result).nk !== '*UNDECLARED*');
	    };
	    SurveyQuestionProgramsController.prototype.showRankedMajor = function () {
	        return !this.ngMajorSearchService.isLoading && this.ngMajorSearchService.hasResults;
	    };
	    return SurveyQuestionProgramsController;
	}());
	exports.SurveyQuestionProgramsController = SurveyQuestionProgramsController;
	var SurveyQuestionProgramsComponent = /** @class */ (function () {
	    function SurveyQuestionProgramsComponent() {
	        this.templateUrl = 'capability-ng-major-explorer/src/components/survey_question_programs/survey_question_programs.html';
	        this.controller = SurveyQuestionProgramsController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            mode: '@',
	            item: '='
	        };
	    }
	    return SurveyQuestionProgramsComponent;
	}());
	exports.SurveyQuestionProgramsComponent = SurveyQuestionProgramsComponent;


/***/ }),
/* 589 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SurveyQuestionRankController = /** @class */ (function () {
	    function SurveyQuestionRankController(myIntakeHistoryModel, ItemPresenterEnum, saveItemCommand) {
	        var _this = this;
	        this.myIntakeHistoryModel = myIntakeHistoryModel;
	        this.ItemPresenterEnum = ItemPresenterEnum;
	        this.saveItemCommand = saveItemCommand;
	        this.selectedGoals = [];
	        this.validationCondition = {
	            isValid: function () {
	                return !_4.isEmpty(_this.filterSelected());
	            }
	        };
	        this.save = function () {
	            _this.setSelectedGoals();
	            _this.myIntakeHistoryModel.update(_this.ItemPresenterEnum.RANK.key, _this.selectedGoals);
	            _this.saveItemCommand(_this.item);
	        };
	    }
	    SurveyQuestionRankController.prototype.$onInit = function () {
	        this.initializeGoals();
	    };
	    SurveyQuestionRankController.prototype.initializeGoals = function () {
	        this.goals = this.item._options;
	        this.delegateHandle = this.item._parent.nk;
	        this.identifySelectedGoals();
	    };
	    SurveyQuestionRankController.prototype.filterSelected = function () {
	        return _4.filter(this.goals, function (goal) {
	            return goal._selected;
	        });
	    };
	    SurveyQuestionRankController.prototype.updateSelection = function (goal) {
	        goal._selected = !goal._selected;
	    };
	    SurveyQuestionRankController.prototype.identifySelectedGoals = function () {
	        _4.map(this.goals, function (goal) {
	            if (goal._action.value > 0) {
	                return (goal._selected = true);
	            }
	            else {
	                return (goal._selected = false);
	            }
	        });
	    };
	    SurveyQuestionRankController.prototype.setSelectedGoals = function () {
	        var _this = this;
	        this.selectedGoals = this.filterSelected();
	        _4.each(this.goals, function (goal) {
	            goal._selected ? (_this.goals[goal.id]._action.value = 1) : (_this.goals[goal.id]._action.value = 0);
	        });
	    };
	    return SurveyQuestionRankController;
	}());
	exports.SurveyQuestionRankController = SurveyQuestionRankController;
	var SurveyQuestionRankComponent = /** @class */ (function () {
	    function SurveyQuestionRankComponent() {
	        this.templateUrl = 'capability-ng-major-explorer/src/components/survey_question_rank/survey_question_rank.html';
	        this.controller = SurveyQuestionRankController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            mode: '@',
	            item: '='
	        };
	    }
	    return SurveyQuestionRankComponent;
	}());
	exports.SurveyQuestionRankComponent = SurveyQuestionRankComponent;


/***/ }),
/* 590 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_platform_1 = __webpack_require__(8);
	var SurveyStepFooterController = /** @class */ (function () {
	    function SurveyStepFooterController(myIntakeModel, $state, ngSurveyStepService, updateTaskStatusCommand, TaskStatusEnum, log) {
	        this.myIntakeModel = myIntakeModel;
	        this.$state = $state;
	        this.ngSurveyStepService = ngSurveyStepService;
	        this.updateTaskStatusCommand = updateTaskStatusCommand;
	        this.TaskStatusEnum = TaskStatusEnum;
	        this.log = log;
	    }
	    SurveyStepFooterController.prototype.completeSurvey = function () {
	        var _this = this;
	        this.updateTaskStatusCommand(this.myIntakeModel.source.source.task, this.TaskStatusEnum.COMPLETED).then(function () {
	            _this.log.user.success('Major Explorer Completed');
	            _this.$state.go('my.majorexplorer');
	        });
	    };
	    SurveyStepFooterController.prototype.isDesktop = function () {
	        return utility_ts_platform_1.PlatformUtility.isDesktop();
	    };
	    return SurveyStepFooterController;
	}());
	exports.SurveyStepFooterController = SurveyStepFooterController;
	var SurveyStepFooterComponent = /** @class */ (function () {
	    function SurveyStepFooterComponent() {
	        this.templateUrl = 'capability-ng-major-explorer/src/components/survey_step_footer/survey_step_footer.html';
	        this.controller = SurveyStepFooterController;
	        this.controllerAs = '$ctrl';
	    }
	    return SurveyStepFooterComponent;
	}());
	exports.SurveyStepFooterComponent = SurveyStepFooterComponent;


/***/ }),
/* 591 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var SurveyStepViewContentController = /** @class */ (function () {
	    function SurveyStepViewContentController(myIntakeModel, $state, ngSurveyStepService) {
	        this.myIntakeModel = myIntakeModel;
	        this.$state = $state;
	        this.ngSurveyStepService = ngSurveyStepService;
	    }
	    SurveyStepViewContentController.prototype.$onInit = function () {
	        this.currentStepTitle = this.myIntakeModel.getCurrentPage().title;
	    };
	    SurveyStepViewContentController.prototype.getPage = function (index) {
	        return this.myIntakeModel.pages[index];
	    };
	    SurveyStepViewContentController.prototype.gotoStep = function (step) {
	        if (step < this.myIntakeModel.progression.index) {
	            this.$state.go('my.majorexplorer-step', {
	                pageIndex: step
	            });
	        }
	    };
	    SurveyStepViewContentController.prototype.onFormSubmit = function (event) {
	        if (event.key === 'Enter') {
	            this.ngSurveyStepService.requestMoveToNext();
	        }
	    };
	    return SurveyStepViewContentController;
	}());
	exports.SurveyStepViewContentController = SurveyStepViewContentController;
	var SurveyStepViewContentComponent = /** @class */ (function () {
	    function SurveyStepViewContentComponent() {
	        this.templateUrl = 'capability-ng-major-explorer/src/components/survey_step_view_content/survey_step_view_content.html';
	        this.controller = SurveyStepViewContentController;
	        this.controllerAs = '$ctrl';
	    }
	    return SurveyStepViewContentComponent;
	}());
	exports.SurveyStepViewContentComponent = SurveyStepViewContentComponent;


/***/ }),
/* 592 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('major-explorer-data')
	    .service('deleteMetaRankingCommand', function ($http, defineCommand) {
	    return defineCommand('deleteMetaRankingCommand', function (deferred, majors) {
	        var payload = {
	            unranked_metamajor_nks: []
	        };
	        _4.forEach(majors, function (major) {
	            payload.unranked_metamajor_nks.push(major.nk);
	        });
	        $http
	            .delete('/programpicker/student/metamajor/', {
	            headers: {
	                'Content-Type': 'application/json'
	            },
	            data: payload
	        })
	            .then(function (response) {
	            deferred.resolve(response.data);
	        }, function (response) {
	            deferred.reject(response.data);
	        });
	    });
	});


/***/ }),
/* 593 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('major-explorer-data')
	    .factory('getReminderAboutMajorsCommand', function (defineCommand, $http) {
	    return defineCommand('getReminderAboutMajorsCommand', function (deferred) {
	        $http
	            .get('core/studentvalue/')
	            .then(function (response) {
	            deferred.resolve(response.data.has_advisor_reminder_about_majors === 'True'); // its a dictionary value on server
	        })
	            .catch(function (reject) {
	            deferred.resolve(reject);
	        });
	    });
	});


/***/ }),
/* 594 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('major-explorer-data')
	    .service('loadDevelopmentalCoursesCommand', function ($http, defineCommand, ngMajorDevCourseDatastore, log) {
	    return defineCommand('loadDevelopmentalCoursesCommand', function (deferred, programId) {
	        $http
	            .get("reg/program/" + programId + "/devreq")
	            .then(function (_a) {
	            var data = _a.data;
	            ngMajorDevCourseDatastore.write(_4.toArray(data.course));
	            utility_ts_orm_1.ORM.run();
	            deferred.resolve(data);
	        })
	            .catch(function (error) {
	            log.issue('failed to load developmental courses for this program');
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 595 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('major-explorer-data')
	    .service('loadFavoriteProgramsCommand', function ($http, defineCommand, ngMajorProgramDatastore, ngMajorCredentialDatastore, ngMajorProgramModel, log) {
	    return defineCommand('loadFavoriteProgramsCommand', function (deferred) {
	        $http
	            .get('/programpicker/program/favorites')
	            .then(function (_a) {
	            var data = _a.data;
	            ngMajorProgramModel.write(data);
	            ngMajorProgramDatastore.clear().write(data.program);
	            ngMajorCredentialDatastore.write(data.program_credential);
	            deferred.resolve(data);
	            utility_ts_orm_1.ORM.run();
	        })
	            .catch(function (error) {
	            log.issue('failed to load favorite programs');
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 596 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var major_listselection_builder_1 = __webpack_require__(189);
	angular
	    .module('major-explorer-data')
	    .service('loadListSelectionCommand', function ($http, defineCommand, $q) {
	    return defineCommand('loadListSelectionCommand', function (deferred) {
	        $q.all({
	            listselections: $http.get('programpicker/student/interests'),
	            interests: $http.get('programpicker/interests')
	        })
	            .then(function (result) {
	            var interests = result.interests.data;
	            var listselections = result.listselections.data;
	            deferred.resolve(new major_listselection_builder_1.MajorListSelectionBuilder({ interests: interests, listselections: listselections }));
	        })
	            .catch(function (error) {
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 597 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('major-explorer-data')
	    .factory('loadMajorDetailCommand', function (defineCommand, ngMajorService) {
	    return defineCommand('loadMajorDetailCommand', function (deferred, id) {
	        var currentMajor = ngMajorService.getMajor(parseInt(id, 10));
	        deferred.resolve(currentMajor);
	    });
	});


/***/ }),
/* 598 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('major-explorer-data')
	    .factory('loadMajorExplorerIntakeCommand', function (defineCommand, PathItemBuilder, $http) {
	    return defineCommand('loadMajorExplorerIntakeCommand', function (deferred) {
	        $http
	            .get('event/task/event_nk/E_INTAKE/repeated_by/0/')
	            .then(function (_a) {
	            var data = _a.data;
	            deferred.resolve(new PathItemBuilder(data));
	        })
	            .catch(function () {
	            deferred.reject('failed to load data, please attempt again');
	        });
	    });
	});


/***/ }),
/* 599 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var major_metaranking_builder_1 = __webpack_require__(190);
	angular
	    .module('major-explorer-data')
	    .service('loadMetaRankingCommand', function ($http, defineCommand) {
	    return defineCommand('loadMetaRankingCommand', function (deferred) {
	        $http.get('/programpicker/student/metamajor/').then(function (_a) {
	            var data = _a.data;
	            deferred.resolve(new major_metaranking_builder_1.MetaRankingBuilder(data));
	        }, function (_a) {
	            var data = _a.data;
	            deferred.reject(data);
	        });
	    });
	});


/***/ }),
/* 600 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('major-explorer-data')
	    .service('loadProgramProgramslotCommand', function ($http, defineCommand, ngMajorCourseMapProgramDatastore, ngMajorCourseMapCourseDatastore, log) {
	    return defineCommand('loadProgramProgramslotCommand', function (deferred, programId) {
	        $http
	            .get("reg/program/" + programId + "/slots")
	            .then(function (_a) {
	            var data = _a.data;
	            ngMajorCourseMapProgramDatastore.write(data.program_slot);
	            ngMajorCourseMapCourseDatastore.write(data.course);
	            utility_ts_orm_1.ORM.run();
	            deferred.resolve(data);
	        })
	            .catch(function (error) {
	            log.issue('failed to load next part of sequence');
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 601 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('major-explorer-data')
	    .service('loadProgramsCommand', function ($http, defineCommand, ngMajorProgramDatastore, ngMajorCredentialDatastore, ngMajorProgramModel, log) {
	    return defineCommand('loadProgramsCommand', function (deferred) {
	        $http
	            .get('programpicker/program/ranked')
	            .then(function (_a) {
	            var data = _a.data;
	            ngMajorProgramModel.write(data);
	            ngMajorProgramDatastore.clear().write(data.program);
	            ngMajorCredentialDatastore.write(data.program_credential);
	            deferred.resolve(data);
	            utility_ts_orm_1.ORM.run();
	        })
	            .catch(function (error) {
	            log.issue('failed to load next part of sequence');
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 602 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('major-explorer-data')
	    .service('loadRelatedCareersCommand', function ($http, defineCommand, RelatedCareersBuilder) {
	    return defineCommand('loadRelatedCareersCommand', function (deferred, programId) {
	        $http
	            .get("programpicker/program/" + programId + "/careers/")
	            .then(function (_a) {
	            var data = _a.data;
	            deferred.resolve(new RelatedCareersBuilder(data));
	        })
	            .catch(function (reason) {
	            deferred.reject(reason);
	        });
	    });
	});


/***/ }),
/* 603 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('major-explorer-data')
	    .service('loadSearchProgramsCommand', function ($http, defineCommand, ngMajorProgramDatastore, ngMajorCredentialDatastore, ngMajorProgramModel, log) {
	    return defineCommand('loadSearchProgramsCommand', function (deferred, searchTerm) {
	        $http
	            .get('cat/program/search', { params: { query: searchTerm } })
	            .then(function (_a) {
	            var data = _a.data;
	            ngMajorProgramModel.write(data);
	            ngMajorProgramDatastore.clear().write(data.program);
	            ngMajorCredentialDatastore.write(data.program_credential);
	            deferred.resolve(data);
	            utility_ts_orm_1.ORM.run();
	        })
	            .catch(function (error) {
	            log.issue('failed to load next part of sequence');
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 604 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('major-explorer-data')
	    .factory('loadStudentCurrentMajorCommand', function (defineCommand, $http, ngMajorCurrentMajorsDatastore, ngMajorCredentialDatastore, ngMajorProgramModel) {
	    return defineCommand('loadStudentCurrentMajorCommand', function (deferred) {
	        $http
	            .get('programpicker/program/current/')
	            .then(function (_a) {
	            var data = _a.data;
	            ngMajorProgramModel.write(data);
	            ngMajorCurrentMajorsDatastore.clear().write(data.program);
	            ngMajorCredentialDatastore.write(data.program_credential);
	            deferred.resolve(data);
	            utility_ts_orm_1.ORM.run();
	        })
	            .catch(function (_a) {
	            var error = _a.error;
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 605 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('major-explorer-data')
	    .service('saveChoiceQuestionCommand', function ($http, defineCommand) {
	    return defineCommand('saveChoiceQuestionCommand', function (deferred, item) {
	        var options = item._options || item.options;
	        var payload = {
	            actions: {}
	        };
	        _4.forEach(_4.filter(options, function (opt) { return parseInt(opt._action.value, 10) === 1; }), function (option, key) {
	            payload.actions[option.id] = option._action;
	            payload.actions[option.id].option = option.id;
	        });
	        $http.post("item/" + item.id + "/", payload).then(function (_a) {
	            var data = _a.data;
	            deferred.resolve(data);
	        });
	    });
	});


/***/ }),
/* 606 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('major-explorer-data')
	    .factory('saveItemCommand', function (defineCommand, $http) {
	    return defineCommand('saveItemCommand', function (deferred, item) {
	        var options = item._options || item.options;
	        var payload = {
	            actions: {}
	        };
	        _4.forEach(options, function (option) {
	            payload.actions[option.id] = option._action;
	        });
	        $http
	            .post("item/" + item.id + "/", payload)
	            .then(function (_a) {
	            var data = _a.data;
	            deferred.resolve(data);
	        })
	            .catch(function () {
	            deferred.reject('failed to save action, please attempt again');
	        });
	    });
	});


/***/ }),
/* 607 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('major-explorer-data')
	    .service('saveListSelectionActivityCommand', function ($http, defineCommand) {
	    return defineCommand('saveListSelectionActivityCommand', function (deferred, activityinterestSorted) {
	        var payload = {
	            activityinterest: {}
	        };
	        _4.forEach(activityinterestSorted, function (interest, key) {
	            payload.activityinterest[interest.id] = {
	                id: interest.id,
	                selected: _4.isUndefined(interest._selected) ? false : interest._selected
	            };
	        });
	        $http.post('/programpicker/student/activity/', payload).then(function (_a) {
	            var data = _a.data;
	            deferred.resolve(data);
	        }, function (_a) {
	            var data = _a.data;
	            deferred.reject(data);
	        });
	    });
	});


/***/ }),
/* 608 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('major-explorer-data')
	    .service('saveListSelectionSubjectCommand', function ($http, defineCommand) {
	    return defineCommand('saveListSelectionSubjectCommand', function (deferred, subjectinterestSorted) {
	        var payload = {
	            subjectinterest: {}
	        };
	        _4.forEach(subjectinterestSorted, function (interest, key) {
	            payload.subjectinterest[interest.id] = {
	                id: interest.id,
	                selected: _4.isUndefined(interest._selected) ? false : interest._selected
	            };
	        });
	        $http.post('/programpicker/student/subject/', payload).then(function (_a) {
	            var data = _a.data;
	            deferred.resolve(data);
	        }, function (_a) {
	            var data = _a.data;
	            deferred.reject(data);
	        });
	    });
	});


/***/ }),
/* 609 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('major-explorer-data')
	    .service('saveMajorCommand', function ($http, defineCommand, log) {
	    return defineCommand('saveMajorCommand', function (deferred, major) {
	        $http
	            .post('favorite/favoriteitem/', { content_type: 'cat.program', object_id: major.id })
	            .then(function (_a) {
	            var data = _a.data;
	            major.favorite_id = data.id;
	            deferred.resolve(major);
	        })
	            .catch(function (error) {
	            log.issue('failed to save major');
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 610 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('major-explorer-data')
	    .service('saveMetaRankingCommand', function ($http, defineCommand) {
	    return defineCommand('saveMetaRankingCommand', function (deferred, majors) {
	        var payload = {
	            rank_by_metamajor_nk: {}
	        };
	        _4.forEach(_4.toArray(majors), function (major, index) {
	            payload.rank_by_metamajor_nk[major.nk] = index;
	        });
	        $http.post('/programpicker/student/metamajor/', payload).then(function (_a) {
	            var data = _a.data;
	            deferred.resolve(data);
	        }, function (_a) {
	            var data = _a.data;
	            deferred.reject(data);
	        });
	    });
	});


/***/ }),
/* 611 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('major-explorer-data')
	    .factory('saveReminderAboutMajorsCommand', function (defineCommand, $http, log) {
	    return defineCommand('saveReminderAboutMajorsCommand', function (deferred, flag) {
	        var payload = { has_advisor_reminder_about_majors: flag };
	        $http
	            .post('core/studentvalue/', payload)
	            .then(function () {
	            deferred.resolve(payload);
	        })
	            .catch(function (response) {
	            log.issue('Unable to udpate reminder, Please try again.');
	            deferred.reject(response);
	        });
	    });
	});


/***/ }),
/* 612 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('major-explorer-data')
	    .service('unsaveMajorCommand', function (defineCommand, $http, log) {
	    return defineCommand('unsaveMajorCommand', function (deferred, major) {
	        $http
	            .delete("favorite/favoriteitem/" + major.favorite_id, {})
	            .then(function (response) {
	            log.info('major saved');
	            deferred.resolve();
	        })
	            .catch(function (error) {
	            log.issue('failed to unsave major');
	            deferred.resolve(error);
	        });
	    });
	});


/***/ }),
/* 613 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	function MyIntakeModelConfiguration(myIntakeModelProvider, ItemPresenterEnum, ngProgression) {
	    myIntakeModelProvider.configure({
	        createProgression: function (model) {
	            var pageCount = [];
	            _4.forEach(model.pages, function (item, index) {
	                var countOfListSelectionQuestionsOnPage = _4.reduce(item.children, function (count, child) {
	                    return count + (ItemPresenterEnum.isEqual(child.presenter, ItemPresenterEnum.LISTSELECTION) ? 1 : 0);
	                }, 0);
	                pageCount.push(index);
	                if (countOfListSelectionQuestionsOnPage > 0) {
	                    pageCount.push(index);
	                }
	            });
	            var extendedProgression = new ngProgression(pageCount);
	            extendedProgression.isSecondListSelectionPage = function isSecondListSelectionPage() {
	                return this.current() === this.peekPrevious();
	            };
	            return extendedProgression;
	        }
	    });
	}
	exports.MyIntakeModelConfiguration = MyIntakeModelConfiguration;


/***/ }),
/* 614 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var major_course_map_course_builder_1 = __webpack_require__(185);
	angular
	    .module('major-explorer-data')
	    .factory('ngMajorCourseMapCourseDatastore', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: major_course_map_course_builder_1.MajorCourseMapCourse,
	        autoId: true
	    });
	});


/***/ }),
/* 615 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var major_course_map_program_builder_1 = __webpack_require__(186);
	angular
	    .module('major-explorer-data')
	    .factory('ngMajorCourseMapProgramDatastore', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: major_course_map_program_builder_1.MajorCourseMapProgram,
	        autoId: true
	    });
	});


/***/ }),
/* 616 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var major_credential_builder_1 = __webpack_require__(187);
	angular
	    .module('major-explorer-data')
	    .factory('ngMajorCredentialDatastore', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: major_credential_builder_1.MajorCredential,
	        autoId: true
	    });
	});


/***/ }),
/* 617 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var major_programs_builder_1 = __webpack_require__(57);
	angular
	    .module('major-explorer-data')
	    .factory('ngMajorCurrentMajorsDatastore', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: major_programs_builder_1.MajorProgram,
	        autoId: true
	    });
	});


/***/ }),
/* 618 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var major_dev_course_builder_1 = __webpack_require__(188);
	angular.module('major-explorer-data').factory('ngMajorDevCourseDatastore', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: major_dev_course_builder_1.MajorDevCourse,
	        autoId: true
	    });
	});


/***/ }),
/* 619 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var major_programs_builder_1 = __webpack_require__(57);
	angular.module('major-explorer-data').factory('ngMajorProgramDatastore', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: major_programs_builder_1.MajorProgram,
	        autoId: true
	    });
	});


/***/ }),
/* 620 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ChoiceQuestionFunction = /** @class */ (function () {
	    function ChoiceQuestionFunction(saveChoiceQuestionCommand, myIntakeHistoryModel, ItemPresenterEnum) {
	        this.saveChoiceQuestionCommand = saveChoiceQuestionCommand;
	        this.myIntakeHistoryModel = myIntakeHistoryModel;
	        this.ItemPresenterEnum = ItemPresenterEnum;
	    }
	    ChoiceQuestionFunction.prototype.initialize = function (item) {
	        var _this = this;
	        this.models = {
	            selected: undefined,
	            _userSelected: []
	        };
	        item._options = _4.sortBy(item._options, 'rank');
	        _4.forEach(item._options, function (option) {
	            if (!_4.isUndefined(option._action.value) && option._action.value === 1) {
	                _this.models.selected = option._action;
	                _this.models._userSelected[0] = option;
	            }
	        });
	        this.myIntakeHistoryModel.update(this.ItemPresenterEnum.CHOICE.key, this.models._userSelected);
	    };
	    ChoiceQuestionFunction.prototype.validate = function (item) {
	        if (_4.isEmpty(item._options)) {
	            return true;
	        }
	        else {
	            return (_4.find(item._options, function (option) {
	                return option._action.value > 0;
	            }) !== undefined);
	        }
	    };
	    ChoiceQuestionFunction.prototype.item_onChange = function (item, optionId) {
	        var _this = this;
	        _4.each(item._options, function (option) {
	            if (option.id === optionId) {
	                option._action.value = 1;
	                _this.models._userSelected[0] = option;
	            }
	            else {
	                option._action.value = 0;
	            }
	        });
	        if (optionId !== -1) {
	            this.myIntakeHistoryModel.update(this.ItemPresenterEnum.CHOICE.key, this.models._userSelected);
	            this.saveChoiceQuestionCommand(item);
	        }
	    };
	    return ChoiceQuestionFunction;
	}());
	exports.ChoiceQuestionFunction = ChoiceQuestionFunction;
	angular.module('major-explorer-data').service('choiceQuestionFn', ChoiceQuestionFunction);


/***/ }),
/* 621 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ListselectionQuestionFunction = /** @class */ (function () {
	    function ListselectionQuestionFunction(loadListSelectionCommand, saveListSelectionSubjectCommand, saveListSelectionActivityCommand, myIntakeHistoryModel, ItemPresenterEnum, myIntakeModel, $q) {
	        this.loadListSelectionCommand = loadListSelectionCommand;
	        this.saveListSelectionSubjectCommand = saveListSelectionSubjectCommand;
	        this.saveListSelectionActivityCommand = saveListSelectionActivityCommand;
	        this.myIntakeHistoryModel = myIntakeHistoryModel;
	        this.ItemPresenterEnum = ItemPresenterEnum;
	        this.myIntakeModel = myIntakeModel;
	        this.$q = $q;
	    }
	    ListselectionQuestionFunction.prototype.initialize = function () {
	        var _this = this;
	        this.isSecondPage = this.myIntakeModel.progression.isSecondListSelectionPage();
	        this.models = {};
	        if (!this.programsCache) {
	            this.loadListSelectionCommand().then(function (model) {
	                _this.models.programs = model;
	                _this.programsCache = model;
	                _this.getInterestViewModel(model);
	                var selected = _this.filterSelected(model.subjectinterestSorted, model.activityinterestSorted);
	                _this.myIntakeHistoryModel.update(_this.ItemPresenterEnum.LISTSELECTION.key, selected.selectedsubject.concat(selected.selectedactivity));
	            });
	        }
	        else {
	            this.models.programs = this.programsCache;
	            this.getInterestViewModel(this.programsCache);
	        }
	    };
	    ListselectionQuestionFunction.prototype.validate = function (brokenUpAndPageTwo) {
	        // only check if there are options to validate, else presenter defaults to valid
	        if (_4.isUndefined(this.models.programs) ||
	            _4.isEmpty(this.sortedActivityInterests) ||
	            _4.isEmpty(this.sortedSubjectInterests)) {
	            return true;
	        }
	        var selectedsubject = _4.find(this.sortedSubjectInterests, { _selected: true });
	        var selectedactivity = _4.find(this.sortedActivityInterests, { _selected: true });
	        var isValid = false;
	        if (_4.isUndefined(brokenUpAndPageTwo)) {
	            isValid = !_4.isEmpty(selectedsubject) && !_4.isEmpty(selectedactivity);
	        }
	        else if (!brokenUpAndPageTwo) {
	            isValid = !_4.isEmpty(selectedsubject);
	        }
	        else if (brokenUpAndPageTwo) {
	            isValid = !_4.isEmpty(selectedactivity);
	        }
	        return isValid;
	    };
	    ListselectionQuestionFunction.prototype.item_onChange = function () {
	        var selected = this.filterSelected(this.sortedSubjectInterests, this.sortedActivityInterests);
	        this.myIntakeHistoryModel.update(this.ItemPresenterEnum.LISTSELECTION.key, selected.selectedsubject.concat(selected.selectedactivity));
	        return this.$q.all([
	            this.saveListSelectionSubjectCommand(this.sortedSubjectInterests),
	            this.saveListSelectionActivityCommand(this.sortedActivityInterests)
	        ]);
	    };
	    ListselectionQuestionFunction.prototype.hasSelectedMaximumInterests = function (collection) {
	        var maxInterests = this.models.programs ? this.models.programs.listselections.max_interests : 3;
	        if (!this.models.programs || !maxInterests) {
	            return false;
	        }
	        return (_4.size(_4.filter(collection, function (interest) {
	            return interest._selected;
	        })) >
	            maxInterests - 1);
	    };
	    ListselectionQuestionFunction.prototype.isActivityDisabled = function (interest) {
	        return this.hasSelectedMaximumInterests(this.sortedActivityInterests) && !interest._selected;
	    };
	    ListselectionQuestionFunction.prototype.isSubjectDisabled = function (interest) {
	        return this.hasSelectedMaximumInterests(this.sortedSubjectInterests) && !interest._selected;
	    };
	    ListselectionQuestionFunction.prototype.getInterestViewModel = function (model) {
	        this.models.questionList = [];
	        if (!_4.isUndefined(this.isSecondPage) && this.isSecondPage) {
	            this.models.questionList = model.activityinterestSorted;
	        }
	        else if (!_4.isUndefined(this.isSecondPage)) {
	            this.models.questionList = model.subjectinterestSorted;
	        }
	    };
	    ListselectionQuestionFunction.prototype.filterSelected = function (subjectinterestSorted, activityinterestSorted) {
	        return {
	            selectedsubject: _4.filter(subjectinterestSorted, function (item) { return item._selected; }),
	            selectedactivity: _4.filter(activityinterestSorted, function (item) { return item._selected; })
	        };
	    };
	    Object.defineProperty(ListselectionQuestionFunction.prototype, "sortedSubjectInterests", {
	        get: function () {
	            return _4.get(this.models, 'programs.subjectinterestSorted', []);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ListselectionQuestionFunction.prototype, "sortedActivityInterests", {
	        get: function () {
	            return _4.get(this.models, 'programs.activityinterestSorted', []);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return ListselectionQuestionFunction;
	}());
	exports.ListselectionQuestionFunction = ListselectionQuestionFunction;
	angular.module('major-explorer-data').service('listselectionQuestionFn', ListselectionQuestionFunction);


/***/ }),
/* 622 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MajorExplorerUserActivityFunction = /** @class */ (function () {
	    function MajorExplorerUserActivityFunction(majorExplorerUserActivityNameEnum) {
	        this.majorExplorerUserActivityNameEnum = majorExplorerUserActivityNameEnum;
	    }
	    MajorExplorerUserActivityFunction.prototype.nameResolver = function (key, appendFirstPage) {
	        return this.majorExplorerUserActivityNameEnum["" + key + (appendFirstPage ? '_PART_1' : '')].value.viewTitle;
	    };
	    return MajorExplorerUserActivityFunction;
	}());
	exports.MajorExplorerUserActivityFunction = MajorExplorerUserActivityFunction;
	angular.module('major-explorer-data').service('majorExplorerUserActivityFn', MajorExplorerUserActivityFunction);


/***/ }),
/* 623 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MetaRankingQuestionFunction = /** @class */ (function () {
	    function MetaRankingQuestionFunction(saveMetaRankingCommand, loadMetaRankingCommand, deleteMetaRankingCommand, myIntakeHistoryModel, ItemPresenterEnum, $q) {
	        this.saveMetaRankingCommand = saveMetaRankingCommand;
	        this.loadMetaRankingCommand = loadMetaRankingCommand;
	        this.deleteMetaRankingCommand = deleteMetaRankingCommand;
	        this.myIntakeHistoryModel = myIntakeHistoryModel;
	        this.ItemPresenterEnum = ItemPresenterEnum;
	        this.$q = $q;
	    }
	    MetaRankingQuestionFunction.prototype.initialize = function (item) {
	        var _this = this;
	        item.custom = {};
	        this.loadMetaRankingCommand().then(function (model) {
	            item.custom = model;
	            _this.myIntakeHistoryModel.update(_this.ItemPresenterEnum.METARANKING.key, model.toList);
	        });
	    };
	    MetaRankingQuestionFunction.prototype.validate = function (item) {
	        var itemData;
	        var noItemsToSelect;
	        var toList;
	        var toListSize;
	        var maxList;
	        if (!item.custom) {
	            return false;
	        }
	        itemData = item.custom;
	        noItemsToSelect = _4.isEmpty(itemData.fromList);
	        toList = itemData.toList;
	        toListSize = _4.size(toList);
	        maxList = itemData._max;
	        if (noItemsToSelect) {
	            return true;
	        }
	        else {
	            return !_4.isEmpty(toList) && toListSize <= maxList && toListSize >= 1;
	        }
	    };
	    MetaRankingQuestionFunction.prototype.validate_itemList = function (item) {
	        var maxList;
	        var selectedList;
	        maxList = item.custom._max;
	        selectedList = _4.filter(item.custom.masterList, function (element) {
	            return element._isRanked;
	        });
	        return !_4.isEmpty(selectedList) && selectedList.length <= maxList;
	    };
	    MetaRankingQuestionFunction.prototype.item_onChange = function (item) {
	        item.custom.toList = _4.filter(item.custom.toList, 'id');
	        item.custom.fromList = _4.filter(item.custom.fromList, 'id');
	        this.myIntakeHistoryModel.update(this.ItemPresenterEnum.METARANKING.key, item.custom.toList);
	        this.saveMetaRankingCommand(item.custom.toList);
	        this.deleteMetaRankingCommand(item.custom.fromList);
	    };
	    MetaRankingQuestionFunction.prototype.updateItemList = function (item) {
	        item.custom.toList = _4.filter(item.custom.masterList, function (element) {
	            return element._isRanked;
	        });
	        item.custom.fromList = _4.filter(item.custom.masterList, function (element) {
	            return !element._isRanked;
	        });
	    };
	    MetaRankingQuestionFunction.prototype.itemList_onChange = function (item) {
	        var _this = this;
	        var deferred = this.$q.defer();
	        this.updateItemList(item);
	        this.myIntakeHistoryModel.update(this.ItemPresenterEnum.METARANKING.key, item.custom.toList);
	        this.deleteMetaRankingCommand(item.custom.fromList).then(function () {
	            _this.saveMetaRankingCommand(item.custom.toList).then(function () {
	                deferred.resolve();
	            });
	        });
	        return deferred.promise;
	    };
	    return MetaRankingQuestionFunction;
	}());
	exports.MetaRankingQuestionFunction = MetaRankingQuestionFunction;
	angular.module('major-explorer-data').service('metaRankingQuestionFn', MetaRankingQuestionFunction);


/***/ }),
/* 624 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ProgramsQuestionFunction = /** @class */ (function () {
	    function ProgramsQuestionFunction(loadProgramsCommand, loadFavoriteProgramsCommand) {
	        this.loadProgramsCommand = loadProgramsCommand;
	        this.loadFavoriteProgramsCommand = loadFavoriteProgramsCommand;
	    }
	    ProgramsQuestionFunction.prototype.loadMajorExplorer = function () {
	        var _this = this;
	        return this.loadProgramsCommand().then(function (programsResponse) {
	            _this.programs = programsResponse;
	            return programsResponse;
	        });
	    };
	    ProgramsQuestionFunction.prototype.loadFavorites = function () {
	        var _this = this;
	        return this.loadFavoriteProgramsCommand().then(function (favoriteResponse) {
	            _this.favoritePrograms = _4.toArray(favoriteResponse.program);
	            return favoriteResponse;
	        });
	    };
	    ProgramsQuestionFunction.prototype.coreInitialize = function () {
	        return true;
	    };
	    return ProgramsQuestionFunction;
	}());
	exports.ProgramsQuestionFunction = ProgramsQuestionFunction;
	angular.module('major-explorer-data').service('programsQuestionFn', ProgramsQuestionFunction);


/***/ }),
/* 625 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var my_intake_model_configuration_1 = __webpack_require__(613);
	var major_tile_fn_1 = __webpack_require__(99);
	var major_builder_servant_1 = __webpack_require__(632);
	var major_data_toggle_service_1 = __webpack_require__(192);
	var major_search_service_1 = __webpack_require__(193);
	var major_service_1 = __webpack_require__(633);
	var program_sort_enum_1 = __webpack_require__(636);
	angular
	    .module('major-explorer-data', [])
	    .service('majorDataToggleService', major_data_toggle_service_1.MajorDataToggleService)
	    .service('ngMajorSearchService', major_search_service_1.MajorSearchService)
	    .service('ngMajorService', major_service_1.MajorService)
	    .service('ngMajorBuilderServant', major_builder_servant_1.MajorBuilderServant)
	    .service('majorTileFn', major_tile_fn_1.MajorTileFunction)
	    .factory('programSortEnum', program_sort_enum_1.ProgramSortEnum)
	    .config(my_intake_model_configuration_1.MyIntakeModelConfiguration);
	// COMMANDS
	__webpack_require__(592);
	__webpack_require__(593);
	__webpack_require__(594);
	__webpack_require__(595);
	__webpack_require__(596);
	__webpack_require__(597);
	__webpack_require__(598);
	__webpack_require__(599);
	__webpack_require__(600);
	__webpack_require__(601);
	__webpack_require__(602);
	__webpack_require__(603);
	__webpack_require__(604);
	__webpack_require__(605);
	__webpack_require__(606);
	__webpack_require__(607);
	__webpack_require__(608);
	__webpack_require__(609);
	__webpack_require__(610);
	__webpack_require__(611);
	__webpack_require__(612);
	// TYPES
	__webpack_require__(634);
	__webpack_require__(635);
	__webpack_require__(637);
	// FUNCTIONS
	__webpack_require__(620);
	__webpack_require__(621);
	__webpack_require__(622);
	__webpack_require__(99);
	__webpack_require__(623);
	__webpack_require__(624);
	// MODELS
	__webpack_require__(284);
	__webpack_require__(626);
	__webpack_require__(627);
	// BUILDERS
	__webpack_require__(185);
	__webpack_require__(186);
	__webpack_require__(187);
	__webpack_require__(188);
	__webpack_require__(189);
	__webpack_require__(190);
	__webpack_require__(57);
	// DATSOURCE
	__webpack_require__(614);
	__webpack_require__(615);
	__webpack_require__(616);
	__webpack_require__(617);
	__webpack_require__(618);
	__webpack_require__(619);
	// QUERIES
	__webpack_require__(628);
	__webpack_require__(629);
	__webpack_require__(630);
	__webpack_require__(631);
	__webpack_require__(191);


/***/ }),
/* 626 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MajorProgramModel = /** @class */ (function () {
	    function MajorProgramModel() {
	    }
	    MajorProgramModel.prototype.write = function (model) {
	        this.fill(model);
	        return this;
	    };
	    MajorProgramModel.prototype.update = function (model) {
	        this.fill(model);
	        return this;
	    };
	    MajorProgramModel.prototype.clear = function () {
	        this.in_state_credit_cost = 0;
	        this.saved_programs = [];
	        this.subject = [];
	        this.activity = [];
	        return this;
	    };
	    MajorProgramModel.prototype.read = function () {
	        return this;
	    };
	    MajorProgramModel.prototype.fill = function (model) {
	        this.in_state_credit_cost = model.in_state_credit_cost;
	        this.saved_programs = !_4.isEmpty(model.saved_programs) ? model.saved_programs : this.saved_programs;
	        this.subject = model.subject;
	        this.activity = model.activity;
	    };
	    return MajorProgramModel;
	}());
	exports.MajorProgramModel = MajorProgramModel;
	angular.module('major-explorer-data').service('ngMajorProgramModel', MajorProgramModel);


/***/ }),
/* 627 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MyIntakeHistoryModel = /** @class */ (function () {
	    function MyIntakeHistoryModel() {
	        this.model = {};
	    }
	    MyIntakeHistoryModel.prototype.update = function (item, selectedItems) {
	        _4.set(this.model, item, selectedItems);
	    };
	    return MyIntakeHistoryModel;
	}());
	angular.module('major-explorer-data').provider('myIntakeHistoryModel', function () {
	    return {
	        $get: function () {
	            return new MyIntakeHistoryModel();
	        }
	    };
	});


/***/ }),
/* 628 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var MajorCourseMapQuery = /** @class */ (function () {
	    function MajorCourseMapQuery(ngMajorCourseMapProgramDatastore, ngMajorCourseMapCourseDatastore) {
	        this.ngMajorCourseMapProgramDatastore = ngMajorCourseMapProgramDatastore;
	        this.ngMajorCourseMapCourseDatastore = ngMajorCourseMapCourseDatastore;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngMajorCourseMapProgramDatastore, this.ngMajorCourseMapCourseDatastore);
	    }
	    MajorCourseMapQuery.prototype.run = function () {
	        this.__result = this.createCourseMap();
	        return this;
	    };
	    Object.defineProperty(MajorCourseMapQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    MajorCourseMapQuery.prototype.createCourseMap = function () {
	        var _this = this;
	        var programSlot = _4.sortBy(this.ngMajorCourseMapProgramDatastore.values(), function (_programSlot) { return _programSlot.slot; });
	        return _4.map(programSlot, function (program_slot) {
	            var courseMapObject = {};
	            if (_4.size(program_slot.courses) === 1) {
	                var course = _4.find(_this.ngMajorCourseMapCourseDatastore.values(), function (_course) { return _course.id === _4.get(_4.first(program_slot.courses), 'course_id', 0); });
	                courseMapObject.isGroup = false;
	                courseMapObject.title = course.title;
	                courseMapObject.code = course.cd;
	                courseMapObject.nk = course.nk;
	                courseMapObject.description = course.desc;
	                courseMapObject.credits = course.credits;
	                courseMapObject.hasPreReq = course.has_prereq;
	                courseMapObject.hasCoReq = course.has_coreq;
	            }
	            else {
	                courseMapObject.isGroup = true;
	                courseMapObject.code = '';
	                courseMapObject.title = program_slot.desc;
	                courseMapObject.description = program_slot.desc;
	                courseMapObject.hasPreReq = false;
	                courseMapObject.hasCoReq = false;
	            }
	            return courseMapObject;
	        });
	    };
	    return MajorCourseMapQuery;
	}());
	exports.MajorCourseMapQuery = MajorCourseMapQuery;
	angular.module('major-explorer-data').service('ngMajorCourseMapQuery', MajorCourseMapQuery);


/***/ }),
/* 629 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var MajorCredentialsQuery = /** @class */ (function () {
	    function MajorCredentialsQuery(ngMajorCredentialDatastore) {
	        this.ngMajorCredentialDatastore = ngMajorCredentialDatastore;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngMajorCredentialDatastore);
	    }
	    MajorCredentialsQuery.prototype.run = function () {
	        this.__result = this.ngMajorCredentialDatastore.values();
	        return this;
	    };
	    Object.defineProperty(MajorCredentialsQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return MajorCredentialsQuery;
	}());
	exports.MajorCredentialsQuery = MajorCredentialsQuery;
	angular.module('major-explorer-data').service('ngMajorCredentialsQuery', MajorCredentialsQuery);


/***/ }),
/* 630 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var MajorCurrentMajorsQuery = /** @class */ (function () {
	    function MajorCurrentMajorsQuery(ngMajorCurrentMajorsDatastore, numberFormatterFn, ngMajorProgramModel, ngMajorBuilderServant) {
	        this.ngMajorCurrentMajorsDatastore = ngMajorCurrentMajorsDatastore;
	        this.numberFormatterFn = numberFormatterFn;
	        this.ngMajorProgramModel = ngMajorProgramModel;
	        this.ngMajorBuilderServant = ngMajorBuilderServant;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngMajorCurrentMajorsDatastore);
	    }
	    MajorCurrentMajorsQuery.prototype.run = function () {
	        var _this = this;
	        this.__result = _4.map(this.ngMajorCurrentMajorsDatastore.values(), function (program) {
	            return _this.ngMajorBuilderServant.buildMajor(program);
	        });
	        this.calculateTuition(this.result);
	        this.assignSubjectsActivities(this.result);
	        return this;
	    };
	    Object.defineProperty(MajorCurrentMajorsQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    MajorCurrentMajorsQuery.prototype.calculateTuition = function (programs) {
	        var _this = this;
	        _4.forEach(programs, function (program) {
	            program._in_state_tuition = _this.numberFormatterFn.convertToDollars(program.credits * _this.ngMajorProgramModel.in_state_credit_cost);
	        });
	    };
	    MajorCurrentMajorsQuery.prototype.assignSubjectsActivities = function (programs) {
	        var _this = this;
	        _4.forEach(programs, function (program) {
	            _4.forEach(program.student_program_activity, function (majoractivity) {
	                program._interests.push(_4.find(_this.ngMajorProgramModel.activity, {
	                    id: majoractivity
	                }));
	            });
	            _4.forEach(program.student_program_subject, function (majorsubject) {
	                program._interests.push(_4.find(_this.ngMajorProgramModel.subject, {
	                    id: majorsubject
	                }));
	            });
	            program._has_interests = !_4.isEmpty(_4.compact(program._interests));
	        });
	    };
	    return MajorCurrentMajorsQuery;
	}());
	exports.MajorCurrentMajorsQuery = MajorCurrentMajorsQuery;
	angular.module('major-explorer-data').service('ngMajorCurrentMajorsQuery', MajorCurrentMajorsQuery);


/***/ }),
/* 631 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var MajorDevCoursesQuery = /** @class */ (function () {
	    function MajorDevCoursesQuery(ngMajorDevCourseDatastore) {
	        this.ngMajorDevCourseDatastore = ngMajorDevCourseDatastore;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngMajorDevCourseDatastore);
	    }
	    MajorDevCoursesQuery.prototype.run = function () {
	        this.__result = this.ngMajorDevCourseDatastore.values();
	        return this;
	    };
	    Object.defineProperty(MajorDevCoursesQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return MajorDevCoursesQuery;
	}());
	exports.MajorDevCoursesQuery = MajorDevCoursesQuery;
	angular.module('major-explorer-data').service('ngMajorDevCoursesQuery', MajorDevCoursesQuery);


/***/ }),
/* 632 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MajorBuilderServant = /** @class */ (function () {
	    function MajorBuilderServant(numberFormatterFn, HiringTrendEnum) {
	        this.numberFormatterFn = numberFormatterFn;
	        this.HiringTrendEnum = HiringTrendEnum;
	    }
	    MajorBuilderServant.prototype.buildMajor = function (major) {
	        _4.merge(major, this.getFormattedMajorData(major));
	        this.assignHiringTrendStatus(major);
	        this.assignDevReqArray(major);
	        return major;
	    };
	    MajorBuilderServant.prototype.getFormattedMajorData = function (major) {
	        return {
	            salary_trend_min_raw: major.salary_trend_min,
	            salary_trend_max_raw: major.salary_trend_max,
	            _salary_trend_min_sort: major.salary_trend_min || 0,
	            _has_salary_information: !!major.salary_trend_min && !!major.salary_trend_max,
	            _has_bachelor_salary_information: !!major.bachelor_salary_trend_min && !!major.bachelor_salary_trend_max,
	            _has_masters_salary_information: !!major.masters_salary_trend_min && !!major.masters_salary_trend_max,
	            salary_trend_min: this.numberFormatterFn.convertToThousandsOfDollars(major.salary_trend_min),
	            salary_trend_max: this.numberFormatterFn.convertToThousandsOfDollars(major.salary_trend_max),
	            salary_trend_average: this.numberFormatterFn.convertToThousandsOfDollars(major.salary_trend_average),
	            estimated_tuition: this.numberFormatterFn.convertToThousandsOfDollars(major.estimated_tuition),
	            bachelor_salary_trend_min: this.numberFormatterFn.convertToThousandsOfDollars(major.bachelor_salary_trend_min),
	            bachelor_salary_trend_max: this.numberFormatterFn.convertToThousandsOfDollars(major.bachelor_salary_trend_max),
	            masters_salary_trend_min: this.numberFormatterFn.convertToThousandsOfDollars(major.masters_salary_trend_min),
	            masters_salary_trend_max: this.numberFormatterFn.convertToThousandsOfDollars(major.masters_salary_trend_max),
	            credits: this.numberFormatterFn.formatNumber(major.credits),
	            _interests: []
	        };
	    };
	    MajorBuilderServant.prototype.assignHiringTrendStatus = function (major) {
	        major.hiringTrend = this.HiringTrendEnum.get(major.hiring_demand);
	        major.hiring_demand = _4.get(major.hiringTrend, 'value.message', '');
	        major._hiring_demand_ranking = _4.get(major.hiringTrend, 'ordinal', 0);
	    };
	    MajorBuilderServant.prototype.assignDevReqArray = function (major) {
	        major._has_dev_req = major.min_dev_course > 0;
	        major._has_no_dev_req = !major._has_dev_req;
	        major._dev_req_array = new Array(major.min_dev_course);
	    };
	    return MajorBuilderServant;
	}());
	exports.MajorBuilderServant = MajorBuilderServant;


/***/ }),
/* 633 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MajorService = /** @class */ (function () {
	    function MajorService(ngMajorProgramsQuery, ngMajorCurrentMajorsQuery) {
	        this.ngMajorProgramsQuery = ngMajorProgramsQuery;
	        this.ngMajorCurrentMajorsQuery = ngMajorCurrentMajorsQuery;
	    }
	    MajorService.prototype.isCurrentMajor = function (id) {
	        return !_4.isEmpty(_4.find(this.ngMajorCurrentMajorsQuery.result, function (major) { return major.id === id; }));
	    };
	    MajorService.prototype.getMajor = function (id) {
	        var source = this.isCurrentMajor(id) ? this.ngMajorCurrentMajorsQuery : this.ngMajorProgramsQuery;
	        return _4.find(source.result, function (major) { return major.id === id; });
	    };
	    MajorService.prototype.getMajorSalaryString = function (major) {
	        var minSalary = _4.isNull(major.salary_trend_min_raw) ? 'N/A' : major.salary_trend_min;
	        var maxSalary = _4.isNull(major.salary_trend_max_raw) ? 'N/A' : major.salary_trend_max;
	        return minSalary === 'N/A' && maxSalary === 'N/A' ? 'N/A' : minSalary + " - " + maxSalary;
	    };
	    return MajorService;
	}());
	exports.MajorService = MajorService;


/***/ }),
/* 634 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var HiringTrendEnum = {
	    '': {
	        percentile: '',
	        textPlacement: '',
	        css: '',
	        message: ''
	    },
	    'VERY LOW': {
	        percentile: '23%',
	        textPlacement: '25%',
	        css: 'value--low',
	        message: 'Very Low'
	    },
	    LOW: {
	        percentile: '23%',
	        textPlacement: '25%',
	        css: 'value--low',
	        message: 'Low'
	    },
	    MEDIUM: {
	        percentile: '45%',
	        css: 'value--medium',
	        message: 'Medium'
	    },
	    HIGH: {
	        percentile: '70%',
	        css: 'value--high',
	        message: 'High'
	    },
	    'VERY HIGH': {
	        percentile: '90%',
	        css: 'value--high',
	        message: 'Very High'
	    }
	};
	angular.module('major-explorer-data').constant('HiringTrendEnum', Enumeration('HiringTrendEnum', HiringTrendEnum));


/***/ }),
/* 635 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MajorExplorerUserActivityNameEnum = {
	    EI_INTAKE_INTERESTS_PART_1: {
	        viewTitle: 'Major Explorer Survey - Select Activities'
	    },
	    EI_INTAKE_INTERESTS: {
	        viewTitle: 'Major Explorer Survey - Select Subjects'
	    },
	    EI_INTAKE_GOALS: {
	        viewTitle: 'Major Explorer Survey - Select Goals'
	    },
	    EI_INTAKE_META_MAJORS: {
	        viewTitle: 'Major Explorer Survey - Select Career Fields'
	    },
	    EI_INTAKE_PROGRAM_PICKER: {
	        viewTitle: 'Major Explorer Results - Results Page'
	    }
	};
	angular
	    .module('major-explorer-data')
	    .constant('majorExplorerUserActivityNameEnum', Enumeration('majorExplorerUserActivityNameEnum', MajorExplorerUserActivityNameEnum));


/***/ }),
/* 636 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var customSortPartial = function (key, rank) { return function (major) { return rank[major[key]]; }; };
	function ProgramSortEnum(majorDataToggleService) {
	    return Enumeration.useDefinitionAsEnum({
	        rank: {
	            actionSheetText: 'Fit (Best Match)',
	            displayText: 'Best Match',
	            sortOrder: 'asc',
	            enabled: function () {
	                return true;
	            }
	        },
	        name: {
	            actionSheetText: 'Name',
	            displayText: 'Name',
	            sortOrder: 'asc',
	            enabled: function () {
	                return true;
	            }
	        },
	        credits: {
	            actionSheetText: 'Credits',
	            displayText: 'Credits',
	            sortOrder: 'desc',
	            enabled: function () {
	                return majorDataToggleService.toggles.credits;
	            }
	        },
	        _salary_trend_min_sort: {
	            actionSheetText: 'Salary',
	            displayText: 'Salary',
	            sortOrder: 'desc',
	            enabled: function () {
	                return majorDataToggleService.toggles.salary;
	            }
	        },
	        hiring_demand: {
	            actionSheetText: 'Hiring Demand',
	            displayText: 'Hiring Demand',
	            sortOrder: 'desc',
	            customSortMethod: customSortPartial('hiring_demand', {
	                'Very High': 5,
	                High: 4,
	                Medium: 3,
	                Low: 2,
	                'Very Low': 1,
	                '': 0
	            }),
	            enabled: function () {
	                return majorDataToggleService.toggles.hiringDemand;
	            }
	        }
	    });
	}
	exports.ProgramSortEnum = ProgramSortEnum;


/***/ }),
/* 637 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ProgramsPresenterViewState = {
	    COMPARE: {
	        currentSortType: ''
	    },
	    FAVORITES: {
	        currentSortType: 'name'
	    },
	    PROGRAMS: {
	        currentSortType: 'rank'
	    },
	    SEARCH: {
	        currentSortType: 'rank'
	    }
	};
	angular
	    .module('major-explorer-data')
	    .constant('ProgramsPresenterViewState', Enumeration('ProgramsPresenterViewState', ProgramsPresenterViewState));


/***/ }),
/* 638 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var SurveyAboutDataModalController = /** @class */ (function () {
	    function SurveyAboutDataModalController(ngMajorExplorerCapabilityConfiguration) {
	        this.ngMajorExplorerCapabilityConfiguration = ngMajorExplorerCapabilityConfiguration;
	    }
	    return SurveyAboutDataModalController;
	}());
	exports.SurveyAboutDataModalController = SurveyAboutDataModalController;
	var SurveyAboutDataModalComponent = /** @class */ (function () {
	    function SurveyAboutDataModalComponent() {
	        this.templateUrl = 'capability-ng-major-explorer/src/modals/about_data_modal/survey_about_our_data_modal.html';
	        this.controller = SurveyAboutDataModalController;
	        this.controllerAs = '$ctrl';
	    }
	    return SurveyAboutDataModalComponent;
	}());
	exports.SurveyAboutDataModalComponent = SurveyAboutDataModalComponent;


/***/ }),
/* 639 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var SurveyProgramResultModalController = /** @class */ (function () {
	    function SurveyProgramResultModalController(ngMajorExplorerCapabilityConfiguration) {
	        this.ngMajorExplorerCapabilityConfiguration = ngMajorExplorerCapabilityConfiguration;
	    }
	    return SurveyProgramResultModalController;
	}());
	exports.SurveyProgramResultModalController = SurveyProgramResultModalController;
	var SurveyProgramResultModalComponent = /** @class */ (function () {
	    function SurveyProgramResultModalComponent() {
	        this.templateUrl = 'capability-ng-major-explorer/src/modals/about_program_results_modal/survey_about_program_results_modal.html';
	        this.controller = SurveyProgramResultModalController;
	        this.controllerAs = '$ctrl';
	    }
	    return SurveyProgramResultModalComponent;
	}());
	exports.SurveyProgramResultModalComponent = SurveyProgramResultModalComponent;


/***/ }),
/* 640 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SurveyMetarankingModalController = /** @class */ (function () {
	    function SurveyMetarankingModalController(ngMajorExplorerCapabilityConfiguration, ngMetaRankingModalService) {
	        this.ngMajorExplorerCapabilityConfiguration = ngMajorExplorerCapabilityConfiguration;
	        this.ngMetaRankingModalService = ngMetaRankingModalService;
	    }
	    SurveyMetarankingModalController.prototype.$onInit = function () {
	        this.initialize();
	    };
	    SurveyMetarankingModalController.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    SurveyMetarankingModalController.prototype.initialize = function () {
	        var _a = _4.get(this.ngMetaRankingModalService.item, "custom.masterList[" + this.ngMetaRankingModalService.currentIndex + "]", { title: '', desc: '' }), title = _a.title, desc = _a.desc;
	        this.model = { title: title, desc: desc };
	    };
	    SurveyMetarankingModalController.prototype.hideModal = function () {
	        this.ngMetaRankingModalService.isOpen = false;
	    };
	    return SurveyMetarankingModalController;
	}());
	exports.SurveyMetarankingModalController = SurveyMetarankingModalController;
	var SurveyMetarankingModalComponent = /** @class */ (function () {
	    function SurveyMetarankingModalComponent() {
	        this.templateUrl = 'capability-ng-major-explorer/src/modals/metaranking_modal/survey_metaranking_modal.html';
	        this.controller = SurveyMetarankingModalController;
	        this.controllerAs = '$ctrl';
	    }
	    return SurveyMetarankingModalComponent;
	}());
	exports.SurveyMetarankingModalComponent = SurveyMetarankingModalComponent;


/***/ }),
/* 641 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var SurveyInterestModalController = /** @class */ (function () {
	    function SurveyInterestModalController(myIntakeHistoryModel, ngMajorExplorerCapabilityConfiguration) {
	        this.myIntakeHistoryModel = myIntakeHistoryModel;
	        this.ngMajorExplorerCapabilityConfiguration = ngMajorExplorerCapabilityConfiguration;
	    }
	    return SurveyInterestModalController;
	}());
	exports.SurveyInterestModalController = SurveyInterestModalController;
	var SurveyInterestModalComponent = /** @class */ (function () {
	    function SurveyInterestModalComponent() {
	        this.templateUrl = 'capability-ng-major-explorer/src/modals/view_interests_modal/survey_view_your_interests_modal.html';
	        this.controller = SurveyInterestModalController;
	        this.controllerAs = '$ctrl';
	    }
	    return SurveyInterestModalComponent;
	}());
	exports.SurveyInterestModalComponent = SurveyInterestModalComponent;


/***/ }),
/* 642 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ROOTSTATE = 'my.majorexplorer';
	var loadMEContentResolve = {
	    _studentMajors: function (loadStudentCurrentMajorCommand) {
	        return loadStudentCurrentMajorCommand();
	    },
	    _intakeItem: function (loadMajorExplorerIntakeCommand) {
	        return loadMajorExplorerIntakeCommand();
	    }
	};
	function MyMajorExplorerRoutes($stateProvider) {
	    $stateProvider
	        .state('my.majorSearch', {
	        url: 'search/',
	        templateUrl: 'capability-ng-major-explorer/src/views/major_search/major_search.html',
	        data: {
	            viewTitle: 'Major Search Page',
	            hasMainMenu: true,
	            ignoredInHistory: false
	        }
	    })
	        .state(ROOTSTATE, {
	        url: 'begin/',
	        templateUrl: 'capability-ng-major-explorer/src/views/major_survey_begin/major_survey_begin.html',
	        controller: 'MajorSurveyBeginController',
	        controllerAs: '$ctrl',
	        sticky: true,
	        data: {
	            viewTitle: 'Major Explorer Survey Landing Page',
	            forcePathVisibility: false,
	            hasMainMenu: true,
	            ignoredInHistory: false
	        },
	        params: {
	            fromState: ROOTSTATE
	        },
	        cache: false,
	        resolve: loadMEContentResolve
	    })
	        .state('my.majorexplorer-step', {
	        url: 'step/:pageIndex/',
	        templateUrl: 'capability-ng-major-explorer/src/views/major_survey_step/major_survey_step.html',
	        controller: 'MajorSurveyStepController',
	        controllerAs: '$ctrl',
	        resolve: loadMEContentResolve,
	        onEnter: function (_intakeItem, myIntakeModel, $stateParams) {
	            if (_.isEmpty(myIntakeModel.pages)) {
	                myIntakeModel.initialize(_intakeItem);
	                myIntakeModel.splitOutRankPage();
	            }
	            myIntakeModel.setCurrentPageIndex($stateParams.pageIndex);
	        },
	        data: {
	            viewTitle: 'Major Explorer Survey',
	            suppressTrackingPage: true,
	            ignoredInHistory: false
	        },
	        params: {
	            fromState: ROOTSTATE
	        },
	        cache: false
	    })
	        .state('my.majorDetail', {
	        url: 'major/detail/:id',
	        cache: false,
	        templateUrl: 'capability-ng-major-explorer/src/views/major_detail/major_detail.html',
	        controller: 'MajorDetailController',
	        controllerAs: '$ctrl',
	        data: {
	            viewTitle: 'Major Explorer Results - Major Detail',
	            forcePathVisibility: false,
	            ignoredInHistory: false
	        },
	        params: {
	            isFavorite: false
	        },
	        resolve: {
	            chosenMajor: function (loadMajorDetailCommand, $stateParams, $state) {
	                return loadMajorDetailCommand($stateParams.id, $stateParams.isFavorite).then(function (major) {
	                    if (_.isEmpty(major)) {
	                        $state.go(ROOTSTATE);
	                    }
	                    else {
	                        return major;
	                    }
	                });
	            }
	        }
	    })
	        .state('my.devCourses', {
	        url: 'major/devcourses/:id',
	        cache: false,
	        templateUrl: 'capability-ng-major-explorer/src/views/major_dev_courses/major_dev_courses.html',
	        data: {
	            viewTitle: 'Developmental Courses',
	            ignoredInHistory: false
	        },
	        resolve: {
	            devCourses: function (loadDevelopmentalCoursesCommand, $stateParams) {
	                return loadDevelopmentalCoursesCommand($stateParams.id);
	            }
	        }
	    })
	        .state('my.coursemap', {
	        url: 'major/coursemap/:id',
	        cache: false,
	        templateUrl: 'capability-ng-major-explorer/src/views/major_course_map/major_course_map.html',
	        controller: 'MajorCourseMapController',
	        controllerAs: '$ctrl',
	        data: {
	            viewTitle: 'Academic Plan',
	            ignoredInHistory: false
	        },
	        params: {
	            selectedMajor: undefined
	        },
	        resolve: {
	            courseMap: function (loadProgramProgramslotCommand, $stateParams) {
	                return loadProgramProgramslotCommand($stateParams.id);
	            }
	        }
	    })
	        .state('my.placementscores', {
	        url: 'placementscores/',
	        templateUrl: 'capability-ng-major-explorer/src/views/major_placement_scores/major_placement_scores.html',
	        controller: 'MajorPlacementscoresController',
	        controllerAs: '$ctrl',
	        resolve: {
	            placementTestScores: function (loadPlacementTestScoresCommand) {
	                return loadPlacementTestScoresCommand();
	            }
	        },
	        data: {
	            viewTitle: 'Placement Scores',
	            ignoredInHistory: false
	        }
	    })
	        .state('my.majorcredentials', {
	        url: 'majorcredentials/',
	        templateUrl: 'capability-ng-major-explorer/src/views/major_credentials/major_credentials.html',
	        data: {
	            viewTitle: 'Major Credentials',
	            ignoredInHistory: false
	        }
	    });
	}
	exports.MyMajorExplorerRoutes = MyMajorExplorerRoutes;


/***/ }),
/* 643 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MajorCourseMapController = /** @class */ (function () {
	    function MajorCourseMapController($stateParams) {
	        this.$stateParams = $stateParams;
	        this.major = this.$stateParams.selectedMajor;
	    }
	    return MajorCourseMapController;
	}());
	exports.MajorCourseMapController = MajorCourseMapController;


/***/ }),
/* 644 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MajorDetailController = /** @class */ (function () {
	    function MajorDetailController(chosenMajor, majorTileFn, ngMajorExplorerCapabilityConfiguration) {
	        this.chosenMajor = chosenMajor;
	        this.majorTileFn = majorTileFn;
	        this.ngMajorExplorerCapabilityConfiguration = ngMajorExplorerCapabilityConfiguration;
	        this.iconTheme = this.ngMajorExplorerCapabilityConfiguration.config.navIconTheme;
	    }
	    return MajorDetailController;
	}());
	exports.MajorDetailController = MajorDetailController;


/***/ }),
/* 645 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MajorPlacementscoresController = /** @class */ (function () {
	    function MajorPlacementscoresController(placementTestScores, ngMajorExplorerCapabilityConfiguration) {
	        this.placementTestScores = placementTestScores;
	        this.ngMajorExplorerCapabilityConfiguration = ngMajorExplorerCapabilityConfiguration;
	        this.hasPlacementBands = false;
	        var SERVER_PLACEMENT_BAND_STRATEGY = "PlacementBand";
	        this.hasPlacementBands =
	            this.ngMajorExplorerCapabilityConfiguration.config.devReqStrategy === SERVER_PLACEMENT_BAND_STRATEGY;
	    }
	    MajorPlacementscoresController.prototype.hasPlacementScores = function () {
	        return !_4.isEmpty(this.placementTestScores);
	    };
	    return MajorPlacementscoresController;
	}());
	exports.MajorPlacementscoresController = MajorPlacementscoresController;


/***/ }),
/* 646 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MajorSurveyBeginController = /** @class */ (function () {
	    function MajorSurveyBeginController($state, ngMajorExplorerCapabilityConfiguration, myIntakeModel, _intakeItem) {
	        this.$state = $state;
	        this.ngMajorExplorerCapabilityConfiguration = ngMajorExplorerCapabilityConfiguration;
	        this.myIntakeModel = myIntakeModel;
	        this._intakeItem = _intakeItem;
	        this.iconTheme = this.ngMajorExplorerCapabilityConfiguration.config.navIconTheme;
	        this.myIntakeModel.initialize(_intakeItem);
	        this.myIntakeModel.splitOutRankPage();
	    }
	    MajorSurveyBeginController.prototype.goToSearch = function () {
	        this.$state.go('my.majorSearch');
	    };
	    return MajorSurveyBeginController;
	}());
	exports.MajorSurveyBeginController = MajorSurveyBeginController;


/***/ }),
/* 647 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var MajorSurveyStepController = /** @class */ (function () {
	    function MajorSurveyStepController($state, $stateParams, ngSurveyStepService, ngMajorExplorerCapabilityConfiguration, myIntakeModel) {
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	        this.ngSurveyStepService = ngSurveyStepService;
	        this.ngMajorExplorerCapabilityConfiguration = ngMajorExplorerCapabilityConfiguration;
	        this.myIntakeModel = myIntakeModel;
	        this.ngSurveyStepService.initialize(this.$stateParams.pageIndex);
	        this.iconTheme = this.ngMajorExplorerCapabilityConfiguration.config.navIconTheme;
	        this.isMobile = this.ngMajorExplorerCapabilityConfiguration.config.isMobile;
	    }
	    MajorSurveyStepController.prototype.getPageTitle = function () {
	        // convert <br> to spaces and remove any other HTML tags
	        var fetchedPageTitle = this.myIntakeModel
	            .getCurrentPage()
	            .sub_title.replace(/(<br\/?>)/gi, ' ')
	            .replace(/(<([^>]+)>)/gi, '');
	        return _4.isEmpty(fetchedPageTitle) ? 'Major Explorer' : fetchedPageTitle;
	    };
	    MajorSurveyStepController.prototype.exitSurvey = function () {
	        this.$state.go('my.majorexplorer');
	    };
	    MajorSurveyStepController.prototype.isDesktop = function () {
	        return utility_ts_platform_1.PlatformUtility.isDesktop();
	    };
	    return MajorSurveyStepController;
	}());
	exports.MajorSurveyStepController = MajorSurveyStepController;


/***/ }),
/* 648 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var EmailContactDetailsController = /** @class */ (function () {
	    function EmailContactDetailsController(notificationSettingEnum) {
	        this.notificationSettingEnum = notificationSettingEnum;
	    }
	    EmailContactDetailsController.prototype.$onInit = function () {
	        this.contactInfo = this.notificationSettingEnum.EMAIL;
	        this.email = this.notificationSettingEnum.EMAIL.getDisplayContactInformation();
	    };
	    return EmailContactDetailsController;
	}());
	exports.EmailContactDetailsController = EmailContactDetailsController;
	var EmailContactDetailsComponent = /** @class */ (function () {
	    function EmailContactDetailsComponent() {
	        this.templateUrl = 'capability-ng-notification-settings/src/components/email_contact_details/email_contact_details.html';
	        this.controller = EmailContactDetailsController;
	    }
	    return EmailContactDetailsComponent;
	}());
	exports.EmailContactDetailsComponent = EmailContactDetailsComponent;


/***/ }),
/* 649 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var NotificationSettingsCkecklistController = /** @class */ (function () {
	    function NotificationSettingsCkecklistController(notificationSettingEnum, notificationSettingsModel, ngEditPhoneNumberService, ngNotifyUserService) {
	        this.notificationSettingEnum = notificationSettingEnum;
	        this.notificationSettingsModel = notificationSettingsModel;
	        this.ngEditPhoneNumberService = ngEditPhoneNumberService;
	        this.ngNotifyUserService = ngNotifyUserService;
	        this.hasVerifiedPhoneNumber = true;
	        this.showDisabledMsg = [];
	    }
	    NotificationSettingsCkecklistController.prototype.$onInit = function () {
	        this.isDesktop = utility_ts_platform_1.PlatformUtility.isDesktop();
	    };
	    NotificationSettingsCkecklistController.prototype.showPreference = function (preference) {
	        if (this.isPushNotification(preference)) {
	            return !_4.isUndefined(preference.status) && !this.isDesktop;
	        }
	        return !_4.isUndefined(preference.status);
	    };
	    NotificationSettingsCkecklistController.prototype.isPushNotification = function (preference) {
	        return _4.isEqual(_4.toLower(preference.preferenceType.key), 'push');
	    };
	    NotificationSettingsCkecklistController.prototype.isTextMessage = function (preference) {
	        return _4.isEqual(_4.toLower(preference.preferenceType.key), 'text');
	    };
	    NotificationSettingsCkecklistController.prototype.initializeToggle = function (preferenceObj) {
	        preferenceObj.status = preferenceObj.option === 'FORCE' || preferenceObj.status;
	    };
	    NotificationSettingsCkecklistController.prototype.isPreferencePrevented = function (preferenceObj) {
	        return preferenceObj.option === 'PREVENT';
	    };
	    NotificationSettingsCkecklistController.prototype.isValidEmail = function (preferenceObj) {
	        return (this.notificationSettingEnum.isEmail(preferenceObj.preferenceType) &&
	            !preferenceObj.preferenceType.hasContactInformation());
	    };
	    NotificationSettingsCkecklistController.prototype.isToggleDisabled = function (preferenceObj) {
	        return preferenceObj.option === 'FORCE';
	    };
	    NotificationSettingsCkecklistController.prototype.openEditPhoneDialog = function () {
	        this.ngEditPhoneNumberService.contactConfig = {};
	        this.ngEditPhoneNumberService.toggleOpen(true);
	    };
	    NotificationSettingsCkecklistController.prototype.showDisabledErrorMsg = function (preferenceObj) {
	        return _4.includes(this.showDisabledMsg, _4.toLower(preferenceObj.preferenceType.key));
	    };
	    NotificationSettingsCkecklistController.prototype.togglePreference = function (evt, categoryNk, preferenceObj) {
	        if (this.isToggleDisabled(preferenceObj)) {
	            var preferenceKey = _4.toLower(preferenceObj.preferenceType.key);
	            if (!_4.includes(this.showDisabledMsg, preferenceKey)) {
	                this.showDisabledMsg.push(preferenceKey);
	            }
	            return;
	        }
	        this.showDisabledMsg = [];
	        if (preferenceObj.preferenceType.hasContactInformation() && preferenceObj.preferenceType.isVerified()) {
	            preferenceObj.status = !preferenceObj.status;
	            preferenceObj.category_nk = categoryNk;
	            this.notificationSettingsModel.addUpdatedPreference(preferenceObj);
	            this.hasVerifiedPhoneNumber = true;
	        }
	        else {
	            evt.originalEvent.target.on = preferenceObj.status;
	            var config = {
	                id: categoryNk,
	                preferenceObj: preferenceObj,
	                callbackFromToggle: true
	            };
	            this.ngEditPhoneNumberService.contactConfig = config;
	            if (this.isTextMessage(preferenceObj)) {
	                this.hasVerifiedPhoneNumber = false;
	            }
	        }
	        return;
	    };
	    NotificationSettingsCkecklistController.prototype.updateOnEnterKeypress = function (event) {
	        if (event.key === 'Enter' && _4.isFunction(this.submitCallback)) {
	            this.submitCallback();
	        }
	    };
	    return NotificationSettingsCkecklistController;
	}());
	exports.NotificationSettingsCkecklistController = NotificationSettingsCkecklistController;
	var NotificationSettingsCkecklistComponent = /** @class */ (function () {
	    function NotificationSettingsCkecklistComponent() {
	        this.templateUrl = 'capability-ng-notification-settings/src/components/notification_settings_checklist/notification_settings_checklist.html';
	        this.controller = NotificationSettingsCkecklistController;
	        this.bindings = {
	            category: '<',
	            submitCallback: '<'
	        };
	    }
	    return NotificationSettingsCkecklistComponent;
	}());
	exports.NotificationSettingsCkecklistComponent = NotificationSettingsCkecklistComponent;


/***/ }),
/* 650 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var NotificationSettingsDetailsController = /** @class */ (function () {
	    function NotificationSettingsDetailsController($state, notificationSettingsModel, updateAllNotificationSettingsCommand) {
	        this.$state = $state;
	        this.notificationSettingsModel = notificationSettingsModel;
	        this.updateAllNotificationSettingsCommand = updateAllNotificationSettingsCommand;
	    }
	    NotificationSettingsDetailsController.prototype.$onInit = function () {
	        var _this = this;
	        this.categories = _4.sortBy(this.notificationSettingsModel.getAllCategories(), 'rank');
	        this.contactInfoConfig = undefined;
	        this.formSubmitCallback = function () {
	            _this.updateAllCommand();
	        };
	    };
	    NotificationSettingsDetailsController.prototype.goToEditContactInformation = function () {
	        this.$state.go('my.contactInformation');
	    };
	    NotificationSettingsDetailsController.prototype.updateAllCommand = function () {
	        this.updateAllNotificationSettingsCommand();
	    };
	    return NotificationSettingsDetailsController;
	}());
	exports.NotificationSettingsDetailsController = NotificationSettingsDetailsController;
	var NotificationSettingsDetailsComponent = /** @class */ (function () {
	    function NotificationSettingsDetailsComponent() {
	        this.templateUrl = 'capability-ng-notification-settings/src/components/notification_settings_details.html';
	        this.controller = NotificationSettingsDetailsController;
	        this.controllerAs = '$ctrl';
	    }
	    return NotificationSettingsDetailsComponent;
	}());
	exports.NotificationSettingsDetailsComponent = NotificationSettingsDetailsComponent;


/***/ }),
/* 651 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PhoneContactDetailsController = /** @class */ (function () {
	    function PhoneContactDetailsController(notificationSettingEnum, ngEditPhoneNumberService) {
	        this.notificationSettingEnum = notificationSettingEnum;
	        this.ngEditPhoneNumberService = ngEditPhoneNumberService;
	    }
	    PhoneContactDetailsController.prototype.$onInit = function () {
	        this.contactInfo = this.notificationSettingEnum.TEXT;
	    };
	    PhoneContactDetailsController.prototype.modalCallback = function () {
	        this.ngEditPhoneNumberService.contactConfig = {};
	        this.ngEditPhoneNumberService.toggleOpen(true);
	    };
	    return PhoneContactDetailsController;
	}());
	exports.PhoneContactDetailsController = PhoneContactDetailsController;
	var PhoneContactDetailsComponent = /** @class */ (function () {
	    function PhoneContactDetailsComponent() {
	        this.templateUrl = 'capability-ng-notification-settings/src/components/phone_contact_details/phone_contact_details.html';
	        this.controller = PhoneContactDetailsController;
	    }
	    return PhoneContactDetailsComponent;
	}());
	exports.PhoneContactDetailsComponent = PhoneContactDetailsComponent;


/***/ }),
/* 652 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var NotificationSettingsDTDs = /** @class */ (function () {
	    function NotificationSettingsDTDs() {
	    }
	    Object.defineProperty(NotificationSettingsDTDs, "Settings", {
	        get: function () {
	            return {
	                preferences: {
	                    type: 'ngObject',
	                    typeDef: 'PreferenceBuilder'
	                },
	                categories: {
	                    type: 'object',
	                    typeDef: {
	                        description: 'string',
	                        title: 'string',
	                        id: 'integer',
	                        nk: 'string',
	                        rank: 'integer',
	                        email_send: 'string',
	                        push_send: 'string',
	                        sms_send: 'string',
	                        preferences: {
	                            postprocessor: 'side-load-lookup',
	                            hint: {
	                                lookupKey: 'preferences'
	                            },
	                            type: 'key'
	                        }
	                    }
	                }
	            };
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(NotificationSettingsDTDs, "Preference", {
	        get: function () {
	            return {
	                PUSH: {
	                    type: 'tri-state',
	                    defaultValue: undefined
	                },
	                TEXT: {
	                    type: 'tri-state',
	                    defaultValue: undefined
	                },
	                EMAIL: {
	                    type: 'tri-state',
	                    defaultValue: undefined
	                }
	            };
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return NotificationSettingsDTDs;
	}());
	exports.NotificationSettingsDTDs = NotificationSettingsDTDs;


/***/ }),
/* 653 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var email_contact_details_controller_1 = __webpack_require__(648);
	var notification_settings_checklist_controller_1 = __webpack_require__(649);
	var notification_settings_details_controller_1 = __webpack_require__(650);
	var phone_contact_details_controller_1 = __webpack_require__(651);
	var notification_settings_dtds_1 = __webpack_require__(652);
	var contact_channel_explaination_1 = __webpack_require__(654);
	var edit_phone_number_1 = __webpack_require__(655);
	var contact_information_model_1 = __webpack_require__(656);
	var notification_settings_model_1 = __webpack_require__(657);
	var confirmation_number_service_1 = __webpack_require__(658);
	var contact_channel_explanation_service_1 = __webpack_require__(195);
	var edit_phone_number_service_1 = __webpack_require__(659);
	var notify_user_service_1 = __webpack_require__(660);
	var phone_number_service_1 = __webpack_require__(661);
	var notification_setings_enum_1 = __webpack_require__(662);
	angular
	    .module('capability-ng-notification-settings', [])
	    .component('contactChannelModal', new contact_channel_explaination_1.ContactChannelModalComponent())
	    .component('editPhoneNumberModal', new edit_phone_number_1.EditPhoneNumberModalComponent())
	    .component('emailContactDetails', new email_contact_details_controller_1.EmailContactDetailsComponent())
	    .component('phoneContactDetails', new phone_contact_details_controller_1.PhoneContactDetailsComponent())
	    .component('notificationSettingsDetails', new notification_settings_details_controller_1.NotificationSettingsDetailsComponent())
	    .component('notificationChecklist', new notification_settings_checklist_controller_1.NotificationSettingsCkecklistComponent())
	    .constant('NotificationSettingsDTD', notification_settings_dtds_1.NotificationSettingsDTDs.Settings)
	    .constant('PreferenceDTD', notification_settings_dtds_1.NotificationSettingsDTDs.Preference)
	    .service('ngContactChannelExplanationService', contact_channel_explanation_service_1.ContactChannelExplanationService)
	    .service('ngEditPhoneNumberService', edit_phone_number_service_1.EditPhoneNumberService)
	    .service('ngNotifyUserService', notify_user_service_1.NotifyUserService)
	    .service('ngPhoneNumberService', phone_number_service_1.PhoneNumberService)
	    .service('ngConfirmationNumberService', confirmation_number_service_1.ConfirmationNumberService)
	    .service('notificationSettingsModel', notification_settings_model_1.NotificationSettingsModel)
	    .service('contactInformationModel', contact_information_model_1.ContactInformationModel)
	    .factory('notificationSettingEnum', notification_setings_enum_1.NotificationSettingEnum);
	tslib_1.__exportStar(__webpack_require__(195), exports);
	__webpack_require__(1609);


/***/ }),
/* 654 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_platform_1 = __webpack_require__(8);
	var ContactChannelModalController = /** @class */ (function () {
	    function ContactChannelModalController(ngContactChannelExplanationService) {
	        this.ngContactChannelExplanationService = ngContactChannelExplanationService;
	        this.isMobile = false;
	        this.isMobile = utility_ts_platform_1.PlatformUtility.isMobile();
	    }
	    return ContactChannelModalController;
	}());
	exports.ContactChannelModalController = ContactChannelModalController;
	var ContactChannelModalComponent = /** @class */ (function () {
	    function ContactChannelModalComponent() {
	        this.templateUrl = 'capability-ng-notification-settings/src/modals/contact_channel_explanation.html';
	        this.controller = ContactChannelModalController;
	        this.controllerAs = '$ctrl';
	    }
	    return ContactChannelModalComponent;
	}());
	exports.ContactChannelModalComponent = ContactChannelModalComponent;


/***/ }),
/* 655 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var EditPhoneNumberModalController = /** @class */ (function () {
	    function EditPhoneNumberModalController(ngEditPhoneNumberService, ngNotifyUserService, $timeout, updatePhoneNumberCommand, ngConfirmationNumberService, updateConfirmationNumberCommand, updateNotificationSettingsCommand, $element) {
	        this.ngEditPhoneNumberService = ngEditPhoneNumberService;
	        this.ngNotifyUserService = ngNotifyUserService;
	        this.$timeout = $timeout;
	        this.updatePhoneNumberCommand = updatePhoneNumberCommand;
	        this.ngConfirmationNumberService = ngConfirmationNumberService;
	        this.updateConfirmationNumberCommand = updateConfirmationNumberCommand;
	        this.updateNotificationSettingsCommand = updateNotificationSettingsCommand;
	        this.$element = $element;
	    }
	    EditPhoneNumberModalController.prototype.$onInit = function () {
	        this.resetData();
	    };
	    EditPhoneNumberModalController.prototype.resetData = function () {
	        this.errorMsg = '';
	        this.confirmationNumber = '';
	        this.flags = {
	            phoneNumberValid: false,
	            confirmationValid: false,
	            confirmationReady: false,
	            confirmationError: false
	        };
	    };
	    EditPhoneNumberModalController.prototype.isDesktop = function () {
	        return utility_ts_platform_1.PlatformUtility.isMobile() ? undefined : true;
	    };
	    EditPhoneNumberModalController.prototype.finishAndExit = function () {
	        this.$element[0].querySelector('#phone-number-form')['reset']();
	        this.resetData();
	        this.ngEditPhoneNumberService.toggleOpen(false);
	    };
	    EditPhoneNumberModalController.prototype.sendPhoneNumber = function ($event) {
	        var _this = this;
	        if ($event) {
	            this.phoneNumber = $event.detail.value.phoneNumber;
	        }
	        this.updatePhoneNumberCommand(this.phoneNumber).then(function (response) {
	            _this.flags.confirmationReady = response;
	        });
	    };
	    EditPhoneNumberModalController.prototype.sendConfirmationNumber = function ($event) {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            var confirmationNumber, callbackInformation, err_1;
	            var _this = this;
	            return tslib_1.__generator(this, function (_a) {
	                switch (_a.label) {
	                    case 0:
	                        confirmationNumber = $event.detail.value.confirmationNumber;
	                        callbackInformation = this.ngEditPhoneNumberService.contactConfig;
	                        this.flags.confirmationError = false;
	                        _a.label = 1;
	                    case 1:
	                        _a.trys.push([1, 3, , 4]);
	                        return [4 /*yield*/, this.updateConfirmationNumberCommand(confirmationNumber)];
	                    case 2:
	                        _a.sent();
	                        if (!_4.isEmpty(callbackInformation) && callbackInformation.callbackFromToggle) {
	                            this.updateNotificationSettings(callbackInformation);
	                        }
	                        else {
	                            this.finishAndExit();
	                            this.ngNotifyUserService.notifySuccess('Phone number successfully updated.');
	                        }
	                        return [3 /*break*/, 4];
	                    case 3:
	                        err_1 = _a.sent();
	                        this.$timeout(function () {
	                            _this.flags.confirmationError = true;
	                            _this.errorMsg = err_1.detail;
	                        }, 0);
	                        return [3 /*break*/, 4];
	                    case 4: return [2 /*return*/];
	                }
	            });
	        });
	    };
	    EditPhoneNumberModalController.prototype.updateNotificationSettings = function (callbackInformation) {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            var response, message, err_2;
	            return tslib_1.__generator(this, function (_a) {
	                switch (_a.label) {
	                    case 0:
	                        _a.trys.push([0, 2, , 3]);
	                        return [4 /*yield*/, this.updateNotificationSettingsCommand(callbackInformation.id, !callbackInformation.preferenceObj.status, callbackInformation.preferenceObj.preferenceType.key.toUpperCase())];
	                    case 1:
	                        response = _a.sent();
	                        this.flags.confirmationError = false;
	                        this.ngNotifyUserService.notifySuccess('Phone number successfully updated.');
	                        message = "Updated your " + response.updatedCategory.title + " " + _4.capitalize(response.channel) + " settings.";
	                        this.ngNotifyUserService.notifySuccess(message);
	                        this.finishAndExit();
	                        return [3 /*break*/, 3];
	                    case 2:
	                        err_2 = _a.sent();
	                        this.ngNotifyUserService.notifyError('Error in updating notification settings.');
	                        callbackInformation.preferenceObj.status = !callbackInformation.preferenceObj.status;
	                        this.flags.confirmationError = true;
	                        this.errorMsg = err_2.data;
	                        return [3 /*break*/, 3];
	                    case 3: return [2 /*return*/];
	                }
	            });
	        });
	    };
	    return EditPhoneNumberModalController;
	}());
	exports.EditPhoneNumberModalController = EditPhoneNumberModalController;
	var EditPhoneNumberModalComponent = /** @class */ (function () {
	    function EditPhoneNumberModalComponent() {
	        this.templateUrl = 'capability-ng-notification-settings/src/modals/edit_phone_number.html';
	        this.controller = EditPhoneNumberModalController;
	        this.controllerAs = '$ctrl';
	    }
	    return EditPhoneNumberModalComponent;
	}());
	exports.EditPhoneNumberModalComponent = EditPhoneNumberModalComponent;


/***/ }),
/* 656 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ContactInformationModel = /** @class */ (function () {
	    function ContactInformationModel(accountModel, ngPhoneNumberService) {
	        this.accountModel = accountModel;
	        this.ngPhoneNumberService = ngPhoneNumberService;
	        // tslint:disable-next-line:no-unused-expression
	        this.model = {
	            email: accountModel.email,
	            phoneNumber: {
	                target: undefined,
	                is_verified: false
	            }
	        };
	    }
	    ContactInformationModel.prototype.initialize = function (channelsObj) {
	        var emailAddress = this.accountModel.email;
	        if (_4.isEmpty(emailAddress)) {
	            emailAddress = _4.result(channelsObj, 'phone.student');
	        }
	        if (!_4.isUndefined(channelsObj.phone)) {
	            this.model.phoneNumber = channelsObj.phone;
	        }
	        this.model.email = emailAddress;
	    };
	    ContactInformationModel.prototype.updateEmail = function (newEmail) {
	        return (this.model.email = this.accountModel.email = newEmail);
	    };
	    ContactInformationModel.prototype.preparePhoneNumber = function (newNumber) {
	        this.storedNumber = this.ngPhoneNumberService.sanitizePhoneNumber(newNumber);
	        this.model.phoneNumber = {
	            target: this.storedNumber,
	            is_verified: false
	        };
	        return this.storedNumber;
	    };
	    ContactInformationModel.prototype.checkResponseNumber = function (responseData) {
	        var responseNumber = _4(responseData.channel).values().first().target;
	        return this.storedNumber === responseNumber;
	    };
	    ContactInformationModel.prototype.hasPreparedNumber = function () {
	        return !_4.isUndefined(this.storedNumber);
	    };
	    ContactInformationModel.prototype.isVerifiedNumberFromServer = function (responseData) {
	        var responseNumber = _4(responseData.channel).values().first();
	        if (this.storedNumber === responseNumber.target && responseNumber.is_verified) {
	            this.model.phoneNumber = responseNumber;
	            this.storedNumber = undefined;
	            return responseNumber;
	        }
	        else {
	            return false;
	        }
	    };
	    ContactInformationModel.prototype.isStoredNumber = function (testNumber) {
	        return testNumber === this.storedNumber;
	    };
	    ContactInformationModel.prototype.isVerifiedPhoneNumber = function () {
	        return this.model.phoneNumber.is_verified;
	    };
	    ContactInformationModel.prototype.getEmail = function () {
	        return this.model.email;
	    };
	    ContactInformationModel.prototype.updateWithAccountModelEmail = function () {
	        this.model.email = this.accountModel.email;
	        return this.model.email;
	    };
	    ContactInformationModel.prototype.getPhoneNumber = function () {
	        return this.model.phoneNumber.target;
	    };
	    ContactInformationModel.prototype.getDisplayPhoneNumber = function () {
	        return this.ngPhoneNumberService.getDisplayNumber(this.model.phoneNumber.target) || '';
	    };
	    return ContactInformationModel;
	}());
	exports.ContactInformationModel = ContactInformationModel;


/***/ }),
/* 657 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var NotificationSettingsModel = /** @class */ (function () {
	    function NotificationSettingsModel(NotificationSettingsBuilder) {
	        this.NotificationSettingsBuilder = NotificationSettingsBuilder;
	        this.trackedUpdates = new Map();
	    }
	    NotificationSettingsModel.prototype.update = function (data) {
	        var builderData = new this.NotificationSettingsBuilder(data);
	        builderData.categories = _4.keyBy(builderData.categories, 'nk');
	        this.model = builderData;
	    };
	    NotificationSettingsModel.prototype.getAllCategories = function () {
	        return _4.values(this.model.categories);
	    };
	    NotificationSettingsModel.prototype.resetTrackedUpdates = function () {
	        this.trackedUpdates.clear();
	    };
	    NotificationSettingsModel.prototype.addUpdatedPreference = function (prefObj) {
	        if (this.trackedUpdates.has(prefObj.category_nk + prefObj.preferenceType.key)) {
	            this.trackedUpdates.delete(prefObj.category_nk + prefObj.preferenceType.key);
	        }
	        else {
	            this.trackedUpdates.set(prefObj.category_nk + prefObj.preferenceType.key, prefObj);
	        }
	    };
	    NotificationSettingsModel.prototype.updateCategoryPreference = function (newPreference) {
	        var updated = this.model.categories[newPreference.category];
	        if (updated) {
	            updated.preferences[newPreference.channel].status = newPreference.is_active;
	        }
	        return updated;
	    };
	    NotificationSettingsModel.prototype.updatePreferenceFromServer = function (serverData) {
	        return this.updateCategoryPreference(serverData.preference[_4.first(_4.keys(serverData.preference))]);
	    };
	    return NotificationSettingsModel;
	}());
	exports.NotificationSettingsModel = NotificationSettingsModel;


/***/ }),
/* 658 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ConfirmationNumberService = /** @class */ (function () {
	    function ConfirmationNumberService() {
	        this.confirmationFormat = /\b\d{6}\b/g;
	    }
	    ConfirmationNumberService.prototype.isValidConfirmationNumber = function (confirmNum) {
	        return !_4.isUndefined(confirmNum) && !_4.isNull(confirmNum.match(this.confirmationFormat));
	    };
	    ConfirmationNumberService.prototype.sanitizeConfirmationNumber = function (confirmNum) {
	        return _4.first(confirmNum.match(this.confirmationFormat));
	    };
	    return ConfirmationNumberService;
	}());
	exports.ConfirmationNumberService = ConfirmationNumberService;


/***/ }),
/* 659 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var EditPhoneNumberService = /** @class */ (function () {
	    function EditPhoneNumberService() {
	        this._isOpen = false;
	        this._contactConfig = {};
	    }
	    Object.defineProperty(EditPhoneNumberService.prototype, "isOpen", {
	        get: function () {
	            return this._isOpen;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    EditPhoneNumberService.prototype.toggleOpen = function (state) {
	        this._isOpen = state;
	    };
	    Object.defineProperty(EditPhoneNumberService.prototype, "contactConfig", {
	        get: function () {
	            return this._contactConfig;
	        },
	        set: function (config) {
	            this._contactConfig = config;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return EditPhoneNumberService;
	}());
	exports.EditPhoneNumberService = EditPhoneNumberService;


/***/ }),
/* 660 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var utility_ts_platform_1 = __webpack_require__(8);
	var NotifyUserService = /** @class */ (function () {
	    function NotifyUserService(phxNotificationDelegate, log) {
	        this.phxNotificationDelegate = phxNotificationDelegate;
	        this.log = log;
	        this.__notificationSettingsNotification = this.phxNotificationDelegate.restrictTo('app-alerts');
	        this.isDesktop = utility_ts_platform_1.PlatformUtility.isDesktop();
	        this.notificationConfig = {
	            content: '',
	            timeout: 4000,
	            dismissOnTimeout: true
	        };
	    }
	    NotifyUserService.prototype.notifySuccess = function (message) {
	        this.notificationConfig.content = message;
	        this.isDesktop
	            ? this.__notificationSettingsNotification.success(tslib_1.__assign(tslib_1.__assign({}, this.notificationConfig), { content: message }))
	            : this.log.user.success(message);
	    };
	    NotifyUserService.prototype.notifyError = function (message) {
	        this.notificationConfig.content = message;
	        this.isDesktop
	            ? this.__notificationSettingsNotification.error(tslib_1.__assign(tslib_1.__assign({}, this.notificationConfig), { content: message }))
	            : this.log.user.error(message);
	    };
	    return NotifyUserService;
	}());
	exports.NotifyUserService = NotifyUserService;


/***/ }),
/* 661 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PhoneNumberService = /** @class */ (function () {
	    function PhoneNumberService() {
	        this.phoneRegex = /\b(\+*\d{1,})*([ |\(.-])*(\d{3})[^\d]*(\d{3})[^\d]*(\d{4})\b/g;
	        this.digits = /\d/g;
	    }
	    PhoneNumberService.prototype.isValidPhoneNumber = function (phoneNum) {
	        return (!_4.isEmpty(phoneNum) &&
	            !_4.isNull(phoneNum.match(this.phoneRegex)) &&
	            _4.inRange(phoneNum.match(this.digits).length, 10, 12));
	    };
	    PhoneNumberService.prototype.sanitizePhoneNumber = function (phoneNum) {
	        if (_4.isEmpty(phoneNum)) {
	            return false;
	        }
	        var sanitizedNum = !_4.isNull(phoneNum.match(this.digits))
	            ? phoneNum.match(this.digits).splice(0, 11).join('')
	            : '';
	        if (sanitizedNum.length === 10) {
	            sanitizedNum = "1" + sanitizedNum;
	        }
	        return sanitizedNum;
	    };
	    PhoneNumberService.prototype.getDisplayNumber = function (uglyPhoneNum) {
	        if (_4.isUndefined(uglyPhoneNum)) {
	            return uglyPhoneNum;
	        }
	        if (!this.sanitizePhoneNumber(uglyPhoneNum)) {
	            return uglyPhoneNum;
	        }
	        uglyPhoneNum = this.sanitizePhoneNumber(uglyPhoneNum);
	        return "(" + uglyPhoneNum.slice(1, 4) + ") " + uglyPhoneNum.slice(4, 7) + "-" + uglyPhoneNum.slice(7, 11);
	    };
	    return PhoneNumberService;
	}());
	exports.PhoneNumberService = PhoneNumberService;


/***/ }),
/* 662 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	function NotificationSettingEnum(contactInformationModel, accountModel) {
	    var Settings = {
	        PUSH: {
	            label: 'Push Notifications',
	            contact: 'cell phone',
	            hasContactInformation: function () {
	                return true;
	            },
	            getContactInformation: function () {
	                return false;
	            },
	            getDisplayContactInformation: function () {
	                return false;
	            },
	            isVerified: function () {
	                return true;
	            },
	            isPrepared: function () {
	                return true;
	            }
	        },
	        TEXT: {
	            label: 'Text Messages',
	            contact: 'phone number',
	            hasContactInformation: function () {
	                return !_.isEmpty(contactInformationModel.getPhoneNumber());
	            },
	            getContactInformation: function () {
	                return contactInformationModel.getPhoneNumber();
	            },
	            getDisplayContactInformation: function () {
	                return contactInformationModel.getDisplayPhoneNumber();
	            },
	            isVerified: function () {
	                return contactInformationModel.isVerifiedPhoneNumber();
	            },
	            isPrepared: function () {
	                return contactInformationModel.hasPreparedNumber();
	            }
	        },
	        EMAIL: {
	            label: 'Email',
	            contact: 'email address',
	            hasContactInformation: function () {
	                return !_.isEmpty(accountModel.email);
	            },
	            getContactInformation: function () {
	                return accountModel.email;
	            },
	            getDisplayContactInformation: function () {
	                return accountModel.email;
	            },
	            isVerified: function () {
	                return !_.isEmpty(accountModel.email);
	            },
	            isPrepared: function () {
	                return contactInformationModel.hasPreparedNumber();
	            }
	        }
	    };
	    return Enumeration.useDefinitionAsEnum(Settings);
	}
	exports.NotificationSettingEnum = NotificationSettingEnum;


/***/ }),
/* 663 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ChoiceBuilderDTO = /** @class */ (function () {
	    function ChoiceBuilderDTO(data) {
	        ChoiceBuilderDTO._Interface.gateway(ChoiceBuilderDTO._ChoiceBuilderDTD, data, this);
	    }
	    return ChoiceBuilderDTO;
	}());
	exports.ChoiceBuilderDTO = ChoiceBuilderDTO;
	angular
	    .module('capability-ng-poll')
	    .constant('ChoiceBuilderDTD', {
	    id: 'key',
	    nk: 'string',
	    text: 'string'
	})
	    .factory('ChoiceBuilder', function (Interface, ChoiceBuilderDTD) {
	    ChoiceBuilderDTO._Interface = Interface;
	    ChoiceBuilderDTO._ChoiceBuilderDTD = ChoiceBuilderDTD;
	    return ChoiceBuilderDTO;
	});


/***/ }),
/* 664 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PollBuilderDTO = /** @class */ (function () {
	    function PollBuilderDTO(data) {
	        PollBuilderDTO._Interface.gateway(PollBuilderDTO._PollBuilderDTD, data, this);
	    }
	    return PollBuilderDTO;
	}());
	exports.PollBuilderDTO = PollBuilderDTO;
	angular
	    .module('capability-ng-poll')
	    .constant('PollBuilderDTD', {
	    id: 'key',
	    active_questions: 'array',
	    is_active: 'boolean',
	    name: 'string',
	    nk: 'string',
	    questions: 'array',
	    show_results_page: 'boolean',
	    answered_questions: 'array'
	})
	    .factory('PollBuilder', function (Interface, PollBuilderDTD) {
	    PollBuilderDTO._Interface = Interface;
	    PollBuilderDTO._PollBuilderDTD = PollBuilderDTD;
	    return PollBuilderDTO;
	});


/***/ }),
/* 665 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var QuestionBuilderDTO = /** @class */ (function () {
	    function QuestionBuilderDTO(data) {
	        QuestionBuilderDTO._Interface.gateway(QuestionBuilderDTO._QuestionBuilderDTD, data, this);
	    }
	    return QuestionBuilderDTO;
	}());
	exports.QuestionBuilderDTO = QuestionBuilderDTO;
	angular
	    .module('capability-ng-poll')
	    .constant('QuestionBuilderDTD', {
	    id: 'integer',
	    active_choices: 'array',
	    prompt: 'string',
	    nk: 'string',
	    question_type: {
	        type: 'enum',
	        typeDef: 'QuestionTypesEnum'
	    }
	})
	    .factory('QuestionBuilder', function (Interface, QuestionBuilderDTD) {
	    QuestionBuilderDTO._Interface = Interface;
	    QuestionBuilderDTO._QuestionBuilderDTD = QuestionBuilderDTD;
	    return QuestionBuilderDTO;
	});


/***/ }),
/* 666 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var QuestionXChoiceBuilderDTO = /** @class */ (function () {
	    function QuestionXChoiceBuilderDTO(data) {
	        QuestionXChoiceBuilderDTO._Interface.gateway(QuestionXChoiceBuilderDTO._QuestionXChoiceBuilderDTD, data, this);
	    }
	    return QuestionXChoiceBuilderDTO;
	}());
	exports.QuestionXChoiceBuilderDTO = QuestionXChoiceBuilderDTO;
	angular
	    .module('capability-ng-poll')
	    .constant('QuestionXChoiceBuilderDTD', {
	    id: 'key',
	    choice: 'number',
	    question: 'number'
	})
	    .factory('QuestionXChoiceBuilder', function (Interface, QuestionXChoiceBuilderDTD) {
	    QuestionXChoiceBuilderDTO._Interface = Interface;
	    QuestionXChoiceBuilderDTO._QuestionXChoiceBuilderDTD = QuestionXChoiceBuilderDTD;
	    return QuestionXChoiceBuilderDTO;
	});


/***/ }),
/* 667 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var QuestionXChoiceXResourceBuilderDTO = /** @class */ (function () {
	    function QuestionXChoiceXResourceBuilderDTO(data) {
	        QuestionXChoiceXResourceBuilderDTO._Interface.gateway(QuestionXChoiceXResourceBuilderDTO._QuestionXChoiceXResourceBuilderDTD, data, this);
	    }
	    return QuestionXChoiceXResourceBuilderDTO;
	}());
	exports.QuestionXChoiceXResourceBuilderDTO = QuestionXChoiceXResourceBuilderDTO;
	angular
	    .module('capability-ng-poll')
	    .constant('QuestionXChoiceXResourceBuilderDTD', {
	    id: 'key',
	    choice: 'number',
	    question: 'number',
	    resources: 'array'
	})
	    .factory('QuestionXChoiceXResourceBuilder', function (Interface, QuestionXChoiceXResourceBuilderDTD) {
	    QuestionXChoiceXResourceBuilderDTO._Interface = Interface;
	    QuestionXChoiceXResourceBuilderDTO._QuestionXChoiceXResourceBuilderDTD = QuestionXChoiceXResourceBuilderDTD;
	    return QuestionXChoiceXResourceBuilderDTO;
	});


/***/ }),
/* 668 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var RedirectAfterPollForSurveyCommand = /** @class */ (function () {
	    function RedirectAfterPollForSurveyCommand(loadActiveSurveysCommand, ngSurveyPriorityFeedQuery, $state, ngCheckScheduledPollsServant) {
	        this.loadActiveSurveysCommand = loadActiveSurveysCommand;
	        this.ngSurveyPriorityFeedQuery = ngSurveyPriorityFeedQuery;
	        this.$state = $state;
	        this.ngCheckScheduledPollsServant = ngCheckScheduledPollsServant;
	    }
	    RedirectAfterPollForSurveyCommand.prototype.redirect = function () {
	        var _this = this;
	        var getQuickPollOnly = true;
	        this.loadActiveSurveysCommand(getQuickPollOnly).then(function () {
	            var noQPSurveyExist = _4.isEmpty(_this.ngSurveyPriorityFeedQuery.result);
	            if (noQPSurveyExist) {
	                return _this.$state.go(_this.ngCheckScheduledPollsServant.defaultRoute);
	            }
	            var firstSurveyAction = _this.ngSurveyPriorityFeedQuery.result[0].action;
	            return _this.$state.go(firstSurveyAction.state, firstSurveyAction.params);
	        });
	    };
	    return RedirectAfterPollForSurveyCommand;
	}());
	exports.RedirectAfterPollForSurveyCommand = RedirectAfterPollForSurveyCommand;


/***/ }),
/* 669 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var FreeTextPollComponent = /** @class */ (function () {
	    function FreeTextPollComponent() {
	        this.templateUrl = 'capability-ng-poll/src/components/free_text_poll/free_text_poll.html';
	        this.controller = 'FreeTextPollController';
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            question: '<',
	            validationCallback: '<?',
	            labelledBy: '@'
	        };
	    }
	    return FreeTextPollComponent;
	}());
	exports.FreeTextPollComponent = FreeTextPollComponent;
	var FreeTextPollController = /** @class */ (function () {
	    function FreeTextPollController() {
	        this.refresh();
	    }
	    FreeTextPollController.prototype.$onInit = function () {
	        this.validationCallback = _.isFunction(this.validationCallback) ? this.validationCallback : angular.noop;
	        this.refresh();
	    };
	    FreeTextPollController.prototype.$onChanges = function (changes) {
	        this.refresh();
	    };
	    FreeTextPollController.prototype.setFocus = function (evt) {
	        evt.originalEvent.target.focus();
	    };
	    FreeTextPollController.prototype.refresh = function () {
	        this.flags = {
	            hasFocus: false
	        };
	        this.models = {
	            text: ''
	        };
	    };
	    FreeTextPollController.prototype.updateText = function (evt) {
	        this.textSanitizerAndValidator(evt.originalEvent.detail.value);
	    };
	    FreeTextPollController.prototype.textSanitizerAndValidator = function (text) {
	        text = text.replace(/[\\/<>\[\]`\|\/]|\$[a-z]{1,}|\);|\?[a-z]{1,}=[a-z]{1,}|%[a-z0-9]{1,}|&&/gim, '');
	        this.models.text = text.trim();
	        var textExistsAndIsSaneLength = text.length < 2500 && text.length > 1;
	        this.validationCallback({
	            isValid: textExistsAndIsSaneLength,
	            selectedResponse: { nk: text, id: undefined }
	        });
	    };
	    return FreeTextPollController;
	}());
	exports.FreeTextPollController = FreeTextPollController;


/***/ }),
/* 670 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MultiplePollComponent = /** @class */ (function () {
	    function MultiplePollComponent() {
	        this.templateUrl = 'capability-ng-poll/src/components/multiple_poll/multiple_poll.html';
	        this.controller = 'MultiplePollController';
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            question: '<',
	            validationCallback: '<?',
	            labelledBy: '@'
	        };
	    }
	    return MultiplePollComponent;
	}());
	exports.MultiplePollComponent = MultiplePollComponent;
	var MultiplePollController = /** @class */ (function () {
	    function MultiplePollController() {
	        this.models = {
	            choices: []
	        };
	    }
	    MultiplePollController.prototype.$onInit = function () {
	        this.validationCallback = _4.isFunction(this.validationCallback) ? this.validationCallback : angular.noop;
	        this.validate();
	    };
	    MultiplePollController.prototype.$onChanges = function (changeObj) {
	        if (!_4.isEmpty(changeObj)) {
	            _4.map(changeObj.question.currentValue._active_choices, function (choice) { return (choice.isSelected = !!choice.answered); });
	            this.validate();
	        }
	    };
	    MultiplePollController.prototype.setChoice = function (evt, choice) {
	        choice.isSelected = evt.originalEvent.target.checked;
	        this.validate();
	    };
	    MultiplePollController.prototype._getChoicesNk = function () {
	        return _4.isEmpty(this.question)
	            ? undefined
	            : _4.filter(this.question._active_choices, function (choice) { return choice.isSelected; });
	    };
	    MultiplePollController.prototype.validate = function () {
	        this.models.choices = this._getChoicesNk();
	        this.validationCallback({
	            isValid: !_4.isEmpty(this.models.choices),
	            selectedResponse: this.models.choices
	        });
	    };
	    return MultiplePollController;
	}());
	exports.MultiplePollController = MultiplePollController;


/***/ }),
/* 671 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PollContainerComponent = /** @class */ (function () {
	    function PollContainerComponent() {
	        this.templateUrl = 'capability-ng-poll/src/components/poll_container/poll_container.html';
	        this.controller = 'PollContainterController';
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            poll: '<',
	            isComplete: '<',
	            afterComplete: '&',
	            markComplete: '&'
	        };
	    }
	    return PollContainerComponent;
	}());
	exports.PollContainerComponent = PollContainerComponent;


/***/ }),
/* 672 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PollResultsComponent = /** @class */ (function () {
	    function PollResultsComponent() {
	        this.templateUrl = 'capability-ng-poll/src/components/results/poll_results/poll_results.html';
	        this.controller = 'PollResultsController';
	        this.controllerAs = '$ctrl';
	    }
	    return PollResultsComponent;
	}());
	exports.PollResultsComponent = PollResultsComponent;


/***/ }),
/* 673 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PollResultsController = /** @class */ (function () {
	    function PollResultsController($state, ngPollQueryModel, ngPollResultsQueryModel, ngPollPlatformServant) {
	        this.$state = $state;
	        this.ngPollQueryModel = ngPollQueryModel;
	        this.ngPollResultsQueryModel = ngPollResultsQueryModel;
	        this.ngPollPlatformServant = ngPollPlatformServant;
	        this.favCallback = function (resource) { return undefined; };
	    }
	    PollResultsController.prototype.hasResources = function () {
	        return _4.get(this.ngPollResultsQueryModel.resultsPageFlags, 'hasResources', false);
	    };
	    PollResultsController.prototype.shouldShowResults = function () {
	        return _4.get(this.ngPollResultsQueryModel.resultsPageFlags, 'showResults', false);
	    };
	    /**
	     * @deprecated not called anymore
	     */
	    PollResultsController.prototype.getBrandingTint = function () {
	        return "color:var(--hi-clr--university-3);";
	    };
	    return PollResultsController;
	}());
	exports.PollResultsController = PollResultsController;


/***/ }),
/* 674 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PollResultsPieComponent = /** @class */ (function () {
	    function PollResultsPieComponent() {
	        this.templateUrl = 'capability-ng-poll/src/components/results/poll_results_pie/poll_results_pie.html';
	        this.controller = 'PollResultsPieController';
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            question: '<'
	        };
	    }
	    return PollResultsPieComponent;
	}());
	exports.PollResultsPieComponent = PollResultsPieComponent;
	var PollResultsPieController = /** @class */ (function () {
	    function PollResultsPieController(QuestionTypesEnum) {
	        this.QuestionTypesEnum = QuestionTypesEnum;
	        this._tertiary_color_array = [
	            '#007FAA',
	            '#DB0A5B',
	            '#3B853B',
	            '#802200',
	            '#098387',
	            '#9459D4',
	            '#B02779',
	            '#003366',
	            '#8F10A2',
	            '#B36200',
	            '#D43900',
	            '#B36200'
	        ];
	    }
	    PollResultsPieController.prototype.$onInit = function () {
	        this.update();
	    };
	    PollResultsPieController.prototype.$onChanges = function (changes) {
	        this.update();
	    };
	    PollResultsPieController.prototype.update = function () {
	        var _this = this;
	        if (_4.isEmpty(this.question)) {
	            return;
	        }
	        _4.forEach(this.question._active_choices, function (choice, index) {
	            choice.colorIndex = index;
	        });
	        this.question.choice_values = _4.toArray(_4.mapValues(this.question._active_choices, 'answered_percent'));
	        this.showResults =
	            !this.QuestionTypesEnum.isFreeText(this.question.question_type) || !_4.isNumber(this.question.choice_values);
	        var resultLen = this.question.choice_values.length;
	        if (resultLen <= this._tertiary_color_array.length) {
	            this.pie_tertiary_color_array = this._tertiary_color_array.slice(0, this.question.choice_values.length);
	        }
	        else {
	            var finishColorArrayThisManyTimes = Math.floor(resultLen / this._tertiary_color_array.length);
	            var leftOverColors = resultLen % this._tertiary_color_array.length;
	            var combinedArrayOfColors = _4.flatten(_4.times(finishColorArrayThisManyTimes, function () { return _this._tertiary_color_array; }));
	            this.pie_tertiary_color_array = _4.concat(combinedArrayOfColors, this._tertiary_color_array.slice(0, leftOverColors));
	        }
	    };
	    PollResultsPieController.prototype.colorString = function (index) {
	        return "color: " + this._tertiary_color_array[index % this._tertiary_color_array.length];
	    };
	    PollResultsPieController.prototype.answerCollectionText = function () {
	        if (this.QuestionTypesEnum.isMultiple(this.question.question_type)) {
	            return "We have " + this.question.total_answers + " responses so far.";
	        }
	        return this.question.total_answers + " students have answered this so far.";
	    };
	    return PollResultsPieController;
	}());
	exports.PollResultsPieController = PollResultsPieController;


/***/ }),
/* 675 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var StandAloneChoicePoll = /** @class */ (function () {
	    function StandAloneChoicePoll() {
	        this.templateUrl = 'capability-ng-poll/src/components/stand_alone_choice/stand_alone_choice.html';
	        this.controller = 'StandAloneChoicePollController';
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            question: '<',
	            validationCallback: '<?',
	            labelledBy: '@'
	        };
	    }
	    return StandAloneChoicePoll;
	}());
	exports.StandAloneChoicePoll = StandAloneChoicePoll;
	var StandAloneChoicePollController = /** @class */ (function () {
	    function StandAloneChoicePollController($state) {
	        this.models = {
	            choiceNk: { nk: '' }
	        };
	    }
	    StandAloneChoicePollController.prototype.refresh = function () {
	        this.models = {
	            choiceNk: this._getChoiceNk()
	        };
	        this.validate();
	    };
	    StandAloneChoicePollController.prototype.$onInit = function () {
	        this.validationCallback = _4.isFunction(this.validationCallback) ? this.validationCallback : angular.noop;
	        this.refresh();
	    };
	    StandAloneChoicePollController.prototype.$onChanges = function (changeObj) {
	        if (!_4.isEmpty(changeObj)) {
	            this.refresh();
	        }
	    };
	    StandAloneChoicePollController.prototype.updateChoice = function (evt, choice) {
	        var selectedChoice = JSON.parse(_4.get(evt, 'originalEvent.detail.value', 'false'));
	        this.setChoice(selectedChoice ? choice : { nk: '' });
	    };
	    StandAloneChoicePollController.prototype.setChoice = function (selectedChoice) {
	        var _this = this;
	        _4.forEach(this.question._active_choices, function (choice) {
	            if (choice.nk === selectedChoice.nk) {
	                choice.answered = true;
	                _this.refresh();
	            }
	            else {
	                choice.answered = false;
	            }
	        });
	        this.validate();
	    };
	    StandAloneChoicePollController.prototype._getChoiceNk = function () {
	        return _4.isEmpty(this.question)
	            ? undefined
	            : _4.find(this.question._active_choices, function (choice) { return !_4.isUndefined(choice.answered) && choice.answered; });
	    };
	    StandAloneChoicePollController.prototype.validate = function () {
	        var repsonse = _4.get(this.models, 'choiceNk');
	        this.validationCallback({
	            isValid: !_4.isEmpty(repsonse),
	            selectedResponse: repsonse
	        });
	    };
	    return StandAloneChoicePollController;
	}());
	exports.StandAloneChoicePollController = StandAloneChoicePollController;


/***/ }),
/* 676 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PollAnswerDataStore = /** @class */ (function () {
	    function PollAnswerDataStore(Interface, PollAnswerDatastoreDTD) {
	        this.Interface = Interface;
	        this.PollAnswerDatastoreDTD = PollAnswerDatastoreDTD;
	        this.id = 'pollAnswer';
	        this.store = {
	            answer: {},
	            resource: undefined
	        };
	    }
	    PollAnswerDataStore.prototype.write = function (data) {
	        this.store = this.Interface.make(this.PollAnswerDatastoreDTD, data);
	        return this;
	    };
	    PollAnswerDataStore.prototype.add = function (data) {
	        this.store = this.Interface.merge(this.PollAnswerDatastoreDTD, data);
	        return this;
	    };
	    PollAnswerDataStore.prototype.initialize = function () {
	        this.store = this.Interface.generate(this.PollAnswerDatastoreDTD);
	        return this;
	    };
	    PollAnswerDataStore.prototype.read = function () {
	        return this.store;
	    };
	    PollAnswerDataStore.prototype.report = function (fn) {
	        return fn(this.store);
	    };
	    PollAnswerDataStore.prototype.updateAnswer = function (answerObj) {
	        this.store.answer[answerObj.choiceID] = {
	            id: answerObj.choiceID,
	            value: answerObj.response,
	            question_id: answerObj.questionID
	        };
	    };
	    return PollAnswerDataStore;
	}());
	exports.PollAnswerDataStore = PollAnswerDataStore;
	var AnswerBuilderDTO = /** @class */ (function () {
	    function AnswerBuilderDTO(data) {
	        AnswerBuilderDTO.Interface.gateway(AnswerBuilderDTO.AnswerBuilderDTD, data, this);
	    }
	    return AnswerBuilderDTO;
	}());
	exports.AnswerBuilderDTO = AnswerBuilderDTO;
	angular
	    .module('capability-ng-poll')
	    .constant('PollAnswerDatastoreDTD', {
	    resource: {
	        type: 'object'
	    },
	    answer: {
	        type: 'ngObject',
	        typeDef: 'AnswerBuilder'
	    }
	})
	    .constant('AnswerBuilderDTD', {
	    id: 'key',
	    value: 'string',
	    question_id: 'number'
	})
	    .factory('AnswerBuilder', function (Interface, AnswerBuilderDTD) {
	    AnswerBuilderDTO.Interface = Interface;
	    AnswerBuilderDTO.AnswerBuilderDTD = AnswerBuilderDTD;
	    return AnswerBuilderDTO;
	})
	    .factory('ngPollAnswerDataStore', function (Interface, PollAnswerDatastoreDTD) {
	    return new PollAnswerDataStore(Interface, PollAnswerDatastoreDTD).initialize();
	});


/***/ }),
/* 677 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PollDataStore = /** @class */ (function () {
	    function PollDataStore(Interface, PollDataStoreDTD) {
	        this.Interface = Interface;
	        this.PollDataStoreDTD = PollDataStoreDTD;
	        this.id = 'poll';
	        this.store = {};
	    }
	    PollDataStore.prototype.write = function (data) {
	        this.store = this.Interface.make(this.PollDataStoreDTD, data);
	        return this;
	    };
	    PollDataStore.prototype.initialize = function () {
	        this.store = this.Interface.generate(this.PollDataStoreDTD);
	        return this;
	    };
	    PollDataStore.prototype.read = function () {
	        return this.store;
	    };
	    PollDataStore.prototype.report = function (fn) {
	        return fn(this.store);
	    };
	    PollDataStore.prototype.addBuiltQuestions = function (questions) {
	        return (this.store.question = questions);
	    };
	    PollDataStore.prototype.answerQuestion = function (answer) {
	        return this.store.poll.answered_questions.push(answer);
	    };
	    PollDataStore.prototype.addQuestionXChoice = function (questionXChoice) {
	        return (this.store.question_x_choice = questionXChoice);
	    };
	    return PollDataStore;
	}());
	exports.PollDataStore = PollDataStore;
	angular
	    .module('capability-ng-poll')
	    .constant('PollDataStoreDTD', {
	    poll: {
	        type: 'ngObject',
	        typeDef: 'PollBuilder'
	    },
	    question: {
	        type: 'ngObject',
	        typeDef: 'QuestionBuilder'
	    },
	    choice: {
	        type: 'ngObject',
	        typeDef: 'ChoiceBuilder'
	    },
	    question_x_choice_x_resource: {
	        type: 'ngObject',
	        typeDef: 'QuestionXChoiceXResourceBuilder'
	    },
	    question_x_choice: {
	        type: 'object'
	    },
	    resource: {
	        type: 'object'
	    },
	    first_question_id: 'number'
	})
	    .factory('ngPollDataStore', function (Interface, PollDataStoreDTD) {
	    return new PollDataStore(Interface, PollDataStoreDTD).initialize();
	});


/***/ }),
/* 678 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PollStudentDataStore = /** @class */ (function () {
	    function PollStudentDataStore() {
	        this.id = 'poll_student';
	        this.store = {};
	    }
	    PollStudentDataStore.prototype.write = function (data) {
	        this.store = data;
	        return this;
	    };
	    PollStudentDataStore.prototype.initialize = function () {
	        this.store = {
	            is_anonymous: false,
	            is_completed: false
	        };
	        return this;
	    };
	    PollStudentDataStore.prototype.read = function () {
	        return this.store;
	    };
	    PollStudentDataStore.prototype.report = function (fn) {
	        return fn(this.store);
	    };
	    return PollStudentDataStore;
	}());
	exports.PollStudentDataStore = PollStudentDataStore;
	angular.module('capability-ng-poll').factory('ngPollStudentDataStore', function () {
	    return new PollStudentDataStore().initialize();
	});


/***/ }),
/* 679 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var redirect_after_poll_for_survey_command_1 = __webpack_require__(668);
	var poll_container_controller_1 = __webpack_require__(196);
	var scheduled_poll_datastore_1 = __webpack_require__(197);
	var poll_configuration_1 = __webpack_require__(198);
	var poll_routes_1 = __webpack_require__(680);
	var poll_query_model_1 = __webpack_require__(199);
	var poll_results_query_model_1 = __webpack_require__(200);
	var scheduled_poll_query_1 = __webpack_require__(201);
	var check_scheduled_poll_servant_1 = __webpack_require__(202);
	var poll_platform_servant_1 = __webpack_require__(203);
	var poll_results_servant_1 = __webpack_require__(204);
	angular.module('capability-ng-poll', [
	    'ui-ng-delegate',
	    'utility-ng-kernel',
	    'utility-ng-enumeration',
	    'ngSanitize',
	    'ngAria',
	    'ui.router'
	]);
	__webpack_require__(1620);
	angular
	    .module('capability-ng-poll')
	    .factory('ngScheduledPollDatastore', function () {
	    return new scheduled_poll_datastore_1.ScheduledPollDatastore().initialize();
	})
	    .service('ngScheduledPollQuery', scheduled_poll_query_1.ScheduledPollQuery)
	    .service('ngCheckScheduledPollsServant', check_scheduled_poll_servant_1.CheckScheduledPollsServant)
	    .service('ngPollResultsServant', poll_results_servant_1.PollResultsServant)
	    .service('ngPollPlatformServant', poll_platform_servant_1.PollPlatformServant)
	    .service('ngPollCapabilityConfiguration', poll_configuration_1.PollCapabilityConfiguration)
	    .service('ngRedirectAfterPollForSurvey', redirect_after_poll_for_survey_command_1.RedirectAfterPollForSurveyCommand)
	    .service('ngPollQueryModel', poll_query_model_1.PollQueryModel)
	    .service('ngPollResultsQueryModel', poll_results_query_model_1.PollResultsQueryModel)
	    .controller('PollContainterController', poll_container_controller_1.PollContainterController)
	    .config(poll_routes_1.PollRoutes);
	tslib_1.__exportStar(__webpack_require__(663), exports);
	tslib_1.__exportStar(__webpack_require__(664), exports);
	tslib_1.__exportStar(__webpack_require__(665), exports);
	tslib_1.__exportStar(__webpack_require__(666), exports);
	tslib_1.__exportStar(__webpack_require__(667), exports);
	tslib_1.__exportStar(__webpack_require__(668), exports);
	tslib_1.__exportStar(__webpack_require__(196), exports);
	tslib_1.__exportStar(__webpack_require__(676), exports);
	tslib_1.__exportStar(__webpack_require__(677), exports);
	tslib_1.__exportStar(__webpack_require__(678), exports);
	tslib_1.__exportStar(__webpack_require__(197), exports);
	tslib_1.__exportStar(__webpack_require__(199), exports);
	tslib_1.__exportStar(__webpack_require__(200), exports);
	tslib_1.__exportStar(__webpack_require__(201), exports);
	tslib_1.__exportStar(__webpack_require__(202), exports);
	tslib_1.__exportStar(__webpack_require__(204), exports);
	tslib_1.__exportStar(__webpack_require__(203), exports);
	tslib_1.__exportStar(__webpack_require__(198), exports);
	exports.DNPI = 'capability-ng-poll';


/***/ }),
/* 680 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	function PollRoutes($stateProvider) {
	    var getScheduledPoll = function (id) {
	        return {
	            id: id,
	            poll_id: id,
	            rank: 0,
	            mandatory: true,
	            isIntakeOrFirstTerm: true
	        };
	    };
	    var INTAKE_POLL_ROUTE_CONFIG = {
	        url: '/intake-poll/',
	        templateUrl: 'capability-ng-poll/src/views/poll/poll.html',
	        controllerAs: '$ctrl',
	        controller: 'PollController',
	        data: {
	            viewTitle: 'Intake Survey',
	            hasMainMenu: false,
	            ignoredInHistory: true,
	            isIntakeUpdateMode: true
	        },
	        resolve: {
	            poll: function ($state, ngPollCapabilityConfiguration, ngScheduledPollDatastore, QueryMediator) {
	                if (ngPollCapabilityConfiguration.config.hasIntakePoll) {
	                    var intakeOrTermID = _4.parseInt(ngPollCapabilityConfiguration.config.intakeOrFirstTermID);
	                    return QueryMediator.runQueries(ngScheduledPollDatastore.write({
	                        scheduledpoll: [getScheduledPoll(intakeOrTermID)]
	                    }));
	                }
	                else {
	                    return $state.go(ngPollCapabilityConfiguration.config.defaultRoute);
	                }
	            }
	        }
	    };
	    var FIRSTTERM_POLL_ROUTE_CONFIG = {
	        url: '/first-term-poll/',
	        templateUrl: 'capability-ng-poll/src/views/poll/poll.html',
	        controllerAs: '$ctrl',
	        controller: 'PollController',
	        data: {
	            viewTitle: 'Intake Survey',
	            hasMainMenu: false,
	            ignoredInHistory: true,
	            isIntakeUpdateMode: true
	        },
	        resolve: {
	            poll: function ($state, ngPollCapabilityConfiguration, ngScheduledPollDatastore, QueryMediator) {
	                if (ngPollCapabilityConfiguration.config.hasFirstTerm) {
	                    var intakeOrTermID = _4.parseInt(ngPollCapabilityConfiguration.config.intakeOrFirstTermID);
	                    return QueryMediator.runQueries(ngScheduledPollDatastore.write({
	                        scheduledpoll: [getScheduledPoll(intakeOrTermID)]
	                    }));
	                }
	                else {
	                    return $state.go(ngPollCapabilityConfiguration.config.defaultRoute);
	                }
	            }
	        }
	    };
	    $stateProvider
	        .state('poll', {
	        url: '/poll/',
	        templateUrl: 'capability-ng-poll/src/views/poll/poll.html',
	        data: {
	            viewTitle: 'We Have Some Questions',
	            hasMainMenu: false,
	            ignoredInHistory: true
	        },
	        controller: 'PollController',
	        controllerAs: '$ctrl',
	        resolve: {
	            _checkPoll: function (ngCheckScheduledPollsServant, $state, ngPollCapabilityConfiguration, accountModel) {
	                if (ngPollCapabilityConfiguration.config.isMobile) {
	                    return true;
	                }
	                if (!accountModel.isLoggedIn()) {
	                    $state.go('startup');
	                }
	                if (ngCheckScheduledPollsServant.hasScheduledPolls()) {
	                    return true;
	                }
	                return ngCheckScheduledPollsServant.load().then(function () {
	                    if (!ngCheckScheduledPollsServant.hasScheduledPolls()) {
	                        $state.go(ngPollCapabilityConfiguration.config.defaultRoute);
	                    }
	                });
	            }
	        }
	    })
	        .state('intake-poll', INTAKE_POLL_ROUTE_CONFIG)
	        .state('first-term-poll', FIRSTTERM_POLL_ROUTE_CONFIG)
	        .state('my.intake-poll', tslib_1.__assign(tslib_1.__assign({}, INTAKE_POLL_ROUTE_CONFIG), { url: 'intake-poll/' }))
	        .state('my.first-term-poll', tslib_1.__assign(tslib_1.__assign({}, FIRSTTERM_POLL_ROUTE_CONFIG), { url: 'first-term-poll/' }));
	}
	exports.PollRoutes = PollRoutes;


/***/ }),
/* 681 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var PollController = /** @class */ (function () {
	    function PollController(ngNavigationHistoryStack, $state, ngTodoRefreshService, ngScheduledPollQuery, loadPathPollCommand, loadActiveSurveysCommand, ngSurveyPriorityFeedQuery, ngCheckScheduledPollsServant, ngPollQueryModel, ngRedirectAfterPollForSurvey, appConfigModel) {
	        this.ngNavigationHistoryStack = ngNavigationHistoryStack;
	        this.$state = $state;
	        this.ngTodoRefreshService = ngTodoRefreshService;
	        this.ngScheduledPollQuery = ngScheduledPollQuery;
	        this.loadPathPollCommand = loadPathPollCommand;
	        this.loadActiveSurveysCommand = loadActiveSurveysCommand;
	        this.ngSurveyPriorityFeedQuery = ngSurveyPriorityFeedQuery;
	        this.ngCheckScheduledPollsServant = ngCheckScheduledPollsServant;
	        this.ngPollQueryModel = ngPollQueryModel;
	        this.ngRedirectAfterPollForSurvey = ngRedirectAfterPollForSurvey;
	        this.isLoading = true;
	        this.isMobile = false;
	        this.isMobile = utility_ts_platform_1.PlatformUtility.isMobile();
	        this._currentPoll = this.ngScheduledPollQuery.currentScheduledPoll;
	        this.loadPoll();
	        this.theme = appConfigModel.navIconTheme();
	        this._intakePollID = appConfigModel.intakeOrFirstTermID();
	        this.returningFromResourceDetailFix();
	    }
	    PollController.prototype.isMandatory = function () {
	        return this.ngScheduledPollQuery.isMandatory();
	    };
	    PollController.prototype.isOptional = function () {
	        return !this.ngScheduledPollQuery.isMandatory();
	    };
	    PollController.prototype.loadPoll = function () {
	        var _this = this;
	        if (this.ngScheduledPollQuery.continueScheduledPollsWorkflow()) {
	            this.loadPathPollCommand(this._currentPoll).then(function () {
	                _this.poll = _this.ngPollQueryModel.result;
	                _this.returningFromResourceDetailFix();
	            });
	        }
	    };
	    PollController.prototype.returningFromResourceDetailFix = function () {
	        if (this.ngScheduledPollQuery.isShowResult()) {
	            this.ngPollQueryModel.markPollAsFinished();
	        }
	    };
	    PollController.prototype.dismiss = function () {
	        this.ngScheduledPollQuery.dismissCurrentScheduledPoll().finally(this._handlePollCommands());
	    };
	    PollController.prototype.markComplete = function () {
	        this.ngScheduledPollQuery.markPollAsFinished();
	        this.ngPollQueryModel.markPollAsFinished();
	    };
	    PollController.prototype.afterComplete = function () {
	        this.ngScheduledPollQuery.completeCurrentScheduledPoll().finally(this._handlePollCommands());
	        if (this.isUpdatingIntakePoll()) {
	            this.ngTodoRefreshService.showWithText('Updating your profile may have changed your To-Dos');
	        }
	    };
	    PollController.prototype.redirectAfterPoll = function () {
	        this.ngRedirectAfterPollForSurvey.redirect();
	    };
	    PollController.prototype._handlePollCommands = function () {
	        this.ngScheduledPollQuery.nextScheduledPoll();
	        if (this.isUpdatingIntakePoll()) {
	            this.ngNavigationHistoryStack.goBack();
	        }
	        else if (this.ngScheduledPollQuery.finishedScheduledPolls() || this._currentPollIsIntake()) {
	            this.redirectAfterPoll();
	        }
	        else {
	            this._currentPoll = this.ngScheduledPollQuery.currentScheduledPoll;
	            this.loadPoll();
	        }
	    };
	    PollController.prototype._currentPollIsIntake = function () {
	        return this.poll.poll.id === _4.toNumber(this._intakePollID);
	    };
	    PollController.prototype.isUpdatingIntakePoll = function () {
	        return _4.get(this.$state, 'current.data.isIntakeUpdateMode', false);
	    };
	    return PollController;
	}());
	exports.PollController = PollController;


/***/ }),
/* 682 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var OpenableElement = /** @class */ (function () {
	    function OpenableElement(element) {
	        _4.merge(this, element);
	    }
	    OpenableElement.build = function (element) {
	        return new OpenableElement(element);
	    };
	    return OpenableElement;
	}());
	exports.OpenableElement = OpenableElement;


/***/ }),
/* 683 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SelfAlertCourse = /** @class */ (function () {
	    function SelfAlertCourse(apiAlertCourse) {
	        _4.merge(this, apiAlertCourse);
	    }
	    SelfAlertCourse.build = function (apiAlertCourse) {
	        return new SelfAlertCourse(apiAlertCourse);
	    };
	    return SelfAlertCourse;
	}());
	exports.SelfAlertCourse = SelfAlertCourse;


/***/ }),
/* 684 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SelfAlertReason = /** @class */ (function () {
	    function SelfAlertReason(apiAlertReason) {
	        _4.merge(this, apiAlertReason);
	    }
	    SelfAlertReason.build = function (apiAlertReason) {
	        return new SelfAlertReason(apiAlertReason);
	    };
	    return SelfAlertReason;
	}());
	exports.SelfAlertReason = SelfAlertReason;


/***/ }),
/* 685 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_type_1 = __webpack_require__(17);
	var AccountAvatarController = /** @class */ (function () {
	    function AccountAvatarController($state, $scope, accountModel, loginConfigModel, ngSettingsLogoutConfigurationService, logoutCommand, ngPriorityFeedCapabilityConfiguration) {
	        this.$state = $state;
	        this.$scope = $scope;
	        this.accountModel = accountModel;
	        this.loginConfigModel = loginConfigModel;
	        this.ngSettingsLogoutConfigurationService = ngSettingsLogoutConfigurationService;
	        this.logoutCommand = logoutCommand;
	        this.ngPriorityFeedCapabilityConfiguration = ngPriorityFeedCapabilityConfiguration;
	        this.isAccountMenuOpen = false;
	        this.isMobile = this.ngPriorityFeedCapabilityConfiguration.config.isMobile;
	        this.getInitial();
	        $scope.avatarMenuGid = 'avatar-menu-' + _4.uniqueId();
	        $scope.avatarButtonGid = 'avatar-button-' + _4.uniqueId();
	    }
	    AccountAvatarController.prototype.getInitial = function () {
	        this.initial = utility_ts_type_1.StringUtility.getAcronym.apply(utility_ts_type_1.StringUtility, this.accountModel.fullname.split(' '));
	    };
	    AccountAvatarController.prototype.resetAccountMenu = function () {
	        this.isAccountMenuOpen = false;
	    };
	    AccountAvatarController.prototype.toggleAccountMenu = function () {
	        this.isAccountMenuOpen = !this.isAccountMenuOpen;
	    };
	    AccountAvatarController.prototype.goToAccount = function () {
	        this.resetAccountMenu();
	        this.$state.go('my.settings');
	    };
	    AccountAvatarController.prototype.goToFavorite = function () {
	        this.resetAccountMenu();
	        this.$state.go('my.favorites');
	    };
	    AccountAvatarController.prototype.logout = function () {
	        if (this.isMobile) {
	            if (RenderTypeEnum.isButtonOnlyLogin(this.loginConfigModel.render_type)) {
	                this.$state.go('account-login-cas-auth');
	            }
	            else if (RenderTypeEnum.isUserPassLogin(this.loginConfigModel.render_type)) {
	                this.$state.go('account-login-ldap-auth');
	            }
	            else {
	                this.ngSettingsLogoutConfigurationService.invokeLogout('institution-landing');
	            }
	        }
	        else {
	            this.logoutCommand();
	        }
	    };
	    return AccountAvatarController;
	}());
	exports.AccountAvatarController = AccountAvatarController;
	var AccountAvatarComponent = /** @class */ (function () {
	    function AccountAvatarComponent() {
	        this.controller = AccountAvatarController;
	        this.templateUrl = 'capability-ng-priority-feed/src/components/account_avatar/account_avatar.html';
	        this.controllerAs = '$ctrl';
	    }
	    return AccountAvatarComponent;
	}());
	exports.AccountAvatarComponent = AccountAvatarComponent;


/***/ }),
/* 686 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var AppSupportController = /** @class */ (function () {
	    function AppSupportController(ngPriorityFeedCapabilityConfiguration, $location, $state, appConfigModel, accountModel, ngCustomContentsServant, ngOpenableElementsQuery, openOpenableElementCommand, closeOpenableElementCommand, ngSTCConfigsModel, $scope) {
	        this.ngPriorityFeedCapabilityConfiguration = ngPriorityFeedCapabilityConfiguration;
	        this.$location = $location;
	        this.$state = $state;
	        this.appConfigModel = appConfigModel;
	        this.accountModel = accountModel;
	        this.ngCustomContentsServant = ngCustomContentsServant;
	        this.ngOpenableElementsQuery = ngOpenableElementsQuery;
	        this.openOpenableElementCommand = openOpenableElementCommand;
	        this.closeOpenableElementCommand = closeOpenableElementCommand;
	        this.ngSTCConfigsModel = ngSTCConfigsModel;
	        this.$scope = $scope;
	        this.defaultContactLabel = 'Schedule an Appointment';
	    }
	    AppSupportController.prototype.$onInit = function () {
	        var _this = this;
	        this.advising = this.appConfigModel.model.ADVISING_HELP;
	        this.technical = this.appConfigModel.model.TECHNICAL_HELP;
	        this.selfAlert = this.appConfigModel.model.SELF_ALERT_HELP;
	        if (!this.isStudentPreview) {
	            this.ngCustomContentsServant.getButtonLabel(this.defaultContactLabel).then(function (label) {
	                _this.contactButtonLabel = label;
	                //this forces angular to check the diff on updated elements
	                _this.$scope.$apply();
	            });
	        }
	        else {
	            this.contactButtonLabel = this.defaultContactLabel;
	        }
	    };
	    Object.defineProperty(AppSupportController.prototype, "isStudentPreview", {
	        get: function () {
	            var FAKE_STUDENT_PREFIX = "FAKE";
	            return _4.isEqual(_4.first(_4.split(this.accountModel.student_nk, '_')), FAKE_STUDENT_PREFIX);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    AppSupportController.prototype.gotoAppointmentScheduling = function () {
	        this.$state.go('my.appointments');
	        this.closeAppSupport();
	    };
	    AppSupportController.prototype.hasAppointmentScheduling = function () {
	        return this.ngPriorityFeedCapabilityConfiguration.config.isAppointmentEnabled;
	    };
	    AppSupportController.prototype.hasSelfAlert = function () {
	        return this.ngPriorityFeedCapabilityConfiguration.config.isSelfAlertEnabled;
	    };
	    AppSupportController.prototype.openSelfAlert = function () {
	        return this.openOpenableElementCommand('selfAlertDialog');
	    };
	    AppSupportController.prototype.getSelfAlertLabel = function () {
	        return this.ngSTCConfigsModel.read().self_alert_label;
	    };
	    AppSupportController.prototype.closeAppSupport = function () {
	        return this.closeOpenableElementCommand('appSupportDrawer');
	    };
	    return AppSupportController;
	}());
	exports.AppSupportController = AppSupportController;
	var AppSupportComponent = /** @class */ (function () {
	    function AppSupportComponent() {
	        this.controller = AppSupportController;
	        this.templateUrl = 'capability-ng-priority-feed/src/components/app_support/app_support.html';
	        this.controllerAs = '$ctrl';
	    }
	    return AppSupportComponent;
	}());
	exports.AppSupportComponent = AppSupportComponent;


/***/ }),
/* 687 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var FeedContainerController = /** @class */ (function () {
	    function FeedContainerController(loadPriorityFeedDataCommand, $timeout, ngPriorityFeedCapabilityConfiguration, ngReportConfigService, ngCustomTextQuery, initOpenableElementsCommand, loadKBNameCommand) {
	        this.loadPriorityFeedDataCommand = loadPriorityFeedDataCommand;
	        this.$timeout = $timeout;
	        this.ngPriorityFeedCapabilityConfiguration = ngPriorityFeedCapabilityConfiguration;
	        this.ngReportConfigService = ngReportConfigService;
	        this.ngCustomTextQuery = ngCustomTextQuery;
	        this.initOpenableElementsCommand = initOpenableElementsCommand;
	        this.loadKBNameCommand = loadKBNameCommand;
	        this.isTogglingMore = undefined;
	        this.reminderEnabled = this.ngPriorityFeedCapabilityConfiguration.config.isReminderEnabled;
	        this.isMobile = this.ngPriorityFeedCapabilityConfiguration.config.isMobile;
	        this.isKnowledgeBotEnabled = this.ngPriorityFeedCapabilityConfiguration.config.isKnowledgeBotEnabled;
	    }
	    FeedContainerController.prototype.$onInit = function () {
	        if (this.isKnowledgeBotEnabled) {
	            this.loadKBNameCommand();
	        }
	        this.initOpenableElementsCommand();
	        this.holdsCount = 0;
	        this.hasHoldsThatNeedAttention = false;
	        return;
	    };
	    return FeedContainerController;
	}());
	exports.FeedContainerController = FeedContainerController;
	var FeedContainerComponent = /** @class */ (function () {
	    function FeedContainerComponent() {
	        this.templateUrl = 'capability-ng-priority-feed/src/components/feed_container/feed_container.html';
	        this.controller = FeedContainerController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            studyBuddies: '<',
	            schedule: '<',
	            holds: '<',
	            conversations: '<',
	            appointments: '<',
	            appointmentReqs: '<',
	            reminders: '<',
	            events: '<',
	            todos: '<',
	            surveys: '<',
	            holdsCount: '<',
	            hasHoldsThatNeedAttention: '<'
	        };
	    }
	    return FeedContainerComponent;
	}());
	exports.FeedContainerComponent = FeedContainerComponent;


/***/ }),
/* 688 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PersonalGreetingController = /** @class */ (function () {
	    function PersonalGreetingController(accountModel, ngPriorityFeedCapabilityConfiguration, loadPronounsCommand, getSTCConfigsCommand, openOpenableElementCommand, ngPronounsQuery, ngCustomTextQuery, ngCustomContentsServant) {
	        this.accountModel = accountModel;
	        this.ngPriorityFeedCapabilityConfiguration = ngPriorityFeedCapabilityConfiguration;
	        this.loadPronounsCommand = loadPronounsCommand;
	        this.getSTCConfigsCommand = getSTCConfigsCommand;
	        this.openOpenableElementCommand = openOpenableElementCommand;
	        this.ngPronounsQuery = ngPronounsQuery;
	        this.ngCustomTextQuery = ngCustomTextQuery;
	        this.ngCustomContentsServant = ngCustomContentsServant;
	        this.possibleMessages = {
	            noItems: 'Your day is free. Enjoy!',
	            oneItem: 'Looks like you have something to do today.',
	            manyItems: "You've got a few things going on today.",
	            hasHoldsThatNeedAttention: 'Heads up! You have a hold needing attention.'
	        };
	        this.defaultGreeting = 'Hey';
	        this.showFreeDay = false;
	        this.isMobile = this.ngPriorityFeedCapabilityConfiguration.config.isMobile;
	    }
	    PersonalGreetingController.prototype.updateHeader = function () {
	        this.showFreeDay = this.numberItems === 0;
	        if (this.hasHoldsThatNeedAttention && this.numberHolds > 1) {
	            this.message = "Heads up! You have " + this.numberHolds + " holds needing attention.";
	        }
	        else if (this.hasHoldsThatNeedAttention) {
	            this.message = this.possibleMessages.hasHoldsThatNeedAttention;
	        }
	        else if (this.numberItems === 0) {
	            this.message = this.possibleMessages.noItems;
	        }
	        else if (this.numberItems === 1) {
	            this.message = this.possibleMessages.oneItem;
	        }
	        else {
	            this.message = this.possibleMessages.manyItems;
	        }
	    };
	    PersonalGreetingController.prototype.getStudentPronouns = function () {
	        var _this = this;
	        this.getSTCConfigsCommand().then(function (response) {
	            if (response.show_pronouns) {
	                _this.loadPronounsCommand(_4.get(_this.accountModel, 'student_nk', ''));
	            }
	        });
	    };
	    PersonalGreetingController.prototype.openHelp = function () {
	        this.openOpenableElementCommand('appSupportDrawer');
	    };
	    PersonalGreetingController.prototype.$onInit = function () {
	        this.name = _4.get(this.accountModel, 'firstName', '');
	        this.heroUrl = this.isMobile ? undefined : this.ngPriorityFeedCapabilityConfiguration.config.institutionMediaURL;
	        this.heroImg = "url(" + (this.heroUrl ? this.heroUrl : 'res/dashboard-new.jpg') + ")";
	        this.hasHoldsThatNeedAttention = false;
	        this.getStudentPronouns();
	        this.ngCustomContentsServant.getButtonLabel('Schedule an Appointment');
	    };
	    return PersonalGreetingController;
	}());
	exports.PersonalGreetingController = PersonalGreetingController;
	var PersonalGreetingComponent = /** @class */ (function () {
	    function PersonalGreetingComponent() {
	        this.templateUrl = 'capability-ng-priority-feed/src/components/personal_greeting/personal_greeting.html';
	        this.controller = PersonalGreetingController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            hasHoldsThatNeedAttention: '<',
	            numberHolds: '<',
	            numberItems: '<'
	        };
	    }
	    return PersonalGreetingComponent;
	}());
	exports.PersonalGreetingComponent = PersonalGreetingComponent;


/***/ }),
/* 689 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var QuickAddController = /** @class */ (function () {
	    function QuickAddController($state, $scope, ngPriorityFeedCapabilityConfiguration, openOpenableElementCommand, ngSelfAlertIconDetailsQuery, ngSTCConfigsModel) {
	        this.$state = $state;
	        this.$scope = $scope;
	        this.ngPriorityFeedCapabilityConfiguration = ngPriorityFeedCapabilityConfiguration;
	        this.openOpenableElementCommand = openOpenableElementCommand;
	        this.ngSelfAlertIconDetailsQuery = ngSelfAlertIconDetailsQuery;
	        this.ngSTCConfigsModel = ngSTCConfigsModel;
	        this.isQuickAddMenuOpen = false;
	        this.showQuickAdd = false;
	        this.showSelfAlert = false;
	        this.isMobile = this.ngPriorityFeedCapabilityConfiguration.config.isMobile;
	        this.isAppointmentEnabled = this.ngPriorityFeedCapabilityConfiguration.config.isAppointmentEnabled;
	        this.isReminderEnabled = this.ngPriorityFeedCapabilityConfiguration.config.isReminderEnabled;
	        // As we add more features to quick add, modify this check
	        this.showQuickAdd = this.isAppointmentEnabled || this.isReminderEnabled;
	        this.isSelfAlertEnabled = this.ngPriorityFeedCapabilityConfiguration.config.isSelfAlertEnabled;
	        this.isStudentFeedbackEnabled = this.ngPriorityFeedCapabilityConfiguration.config.isStudentFeedbackEnabled;
	        $scope.quickAddButtonGid = 'quick-add-button-' + _4.uniqueId();
	    }
	    QuickAddController.prototype.resetQuickAddMenu = function () {
	        this.isQuickAddMenuOpen = false;
	    };
	    QuickAddController.prototype.toggleQuickAddMenu = function () {
	        this.isQuickAddMenuOpen = !this.isQuickAddMenuOpen;
	    };
	    QuickAddController.prototype.goToScheduleAppointment = function () {
	        this.resetQuickAddMenu();
	        this.$state.go('my.appointments');
	    };
	    QuickAddController.prototype.goToAddPersonalToDo = function () {
	        this.resetQuickAddMenu();
	        this.$state.go('my.newreminder');
	    };
	    QuickAddController.prototype.openSelfAlert = function () {
	        this.resetQuickAddMenu();
	        this.openOpenableElementCommand('selfAlertDialog');
	    };
	    QuickAddController.prototype.openStudentFeedback = function () {
	        this.resetQuickAddMenu();
	        this.openOpenableElementCommand('studentFeedbackDialog');
	    };
	    QuickAddController.prototype.getSelfAlertLabel = function () {
	        return this.ngSTCConfigsModel.read().self_alert_label;
	    };
	    return QuickAddController;
	}());
	exports.QuickAddController = QuickAddController;
	var QuickAddComponent = /** @class */ (function () {
	    function QuickAddComponent() {
	        this.controller = QuickAddController;
	        this.templateUrl = 'capability-ng-priority-feed/src/components/quick_add/quick_add.html';
	        this.controllerAs = '$ctrl';
	    }
	    return QuickAddComponent;
	}());
	exports.QuickAddComponent = QuickAddComponent;


/***/ }),
/* 690 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SelfAlertDialogController = /** @class */ (function () {
	    function SelfAlertDialogController(ngPriorityFeedCapabilityConfiguration, ngOpenableElementsQuery, ngSTCConfigsModel, getSelfAlertDataCommand, ngSelfAlertDialogQuery, closeOpenableElementCommand, submitSelfAlertCommand, $element, $state, loadSelfAlertIconDetailsCommand, ngSelfAlertIconDetailsQuery, appConfigModel) {
	        this.ngPriorityFeedCapabilityConfiguration = ngPriorityFeedCapabilityConfiguration;
	        this.ngOpenableElementsQuery = ngOpenableElementsQuery;
	        this.ngSTCConfigsModel = ngSTCConfigsModel;
	        this.getSelfAlertDataCommand = getSelfAlertDataCommand;
	        this.ngSelfAlertDialogQuery = ngSelfAlertDialogQuery;
	        this.closeOpenableElementCommand = closeOpenableElementCommand;
	        this.submitSelfAlertCommand = submitSelfAlertCommand;
	        this.$element = $element;
	        this.$state = $state;
	        this.loadSelfAlertIconDetailsCommand = loadSelfAlertIconDetailsCommand;
	        this.ngSelfAlertIconDetailsQuery = ngSelfAlertIconDetailsQuery;
	        this.appConfigModel = appConfigModel;
	        this.showSelfAlert = false;
	    }
	    SelfAlertDialogController.prototype.closeSelfAlert = function () {
	        var dialog = this.$element[0].querySelector('#self-alert-dialog');
	        if (dialog) {
	            dialog.removeAttribute('opened');
	        }
	        return this.closeOpenableElementCommand('selfAlertDialog');
	    };
	    SelfAlertDialogController.prototype.getSelfAlertLabel = function () {
	        return this.ngSTCConfigsModel.read().self_alert_label;
	    };
	    SelfAlertDialogController.prototype.$onInit = function () {
	        this.selfAlert = this.appConfigModel.model.SELF_ALERT_HELP;
	        if (this.appConfigModel.isFeatureEnabled('ssccampus-self_alert_create')) {
	            this.getSelfAlertDataCommand();
	            this.loadSelfAlertIconDetailsCommand();
	        }
	    };
	    SelfAlertDialogController.prototype.clearAndCloseDialog = function () {
	        this.$element[0].querySelector('#self-alert-form')['reset']();
	        this.closeSelfAlert();
	    };
	    SelfAlertDialogController.prototype.onSelfAlertFormSubmitted = function ($event) {
	        var _this = this;
	        var submitButton = this.$element[0].querySelector('#self-alert-dialog-save');
	        if (submitButton) {
	            submitButton.setAttribute('locked', '');
	        }
	        var selfAlertFormData = _4.get($event, 'detail.value', {});
	        this.submitSelfAlertCommand(selfAlertFormData)
	            .then(function () {
	            _this.clearAndCloseDialog();
	        })
	            .finally(function () {
	            if (submitButton) {
	                submitButton.removeAttribute('locked');
	            }
	        });
	    };
	    return SelfAlertDialogController;
	}());
	exports.SelfAlertDialogController = SelfAlertDialogController;
	var SelfAlertDialogComponent = /** @class */ (function () {
	    function SelfAlertDialogComponent() {
	        this.controller = SelfAlertDialogController;
	        this.templateUrl = 'capability-ng-priority-feed/src/components/self_alert_dialog/self_alert_dialog.html';
	        this.controllerAs = '$ctrl';
	    }
	    return SelfAlertDialogComponent;
	}());
	exports.SelfAlertDialogComponent = SelfAlertDialogComponent;


/***/ }),
/* 691 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var KnowledgeBotQuery = /** @class */ (function () {
	    function KnowledgeBotQuery(ngKnowledgeBotModel) {
	        this.ngKnowledgeBotModel = ngKnowledgeBotModel;
	        utility_ts_orm_1.Query.registerQuery(this, ngKnowledgeBotModel);
	    }
	    KnowledgeBotQuery.prototype.run = function () {
	        this._result = this.ngKnowledgeBotModel.read();
	        return this;
	    };
	    Object.defineProperty(KnowledgeBotQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return KnowledgeBotQuery;
	}());
	exports.KnowledgeBotQuery = KnowledgeBotQuery;
	angular.module('capability-ng-priority-feed').service('ngKnowledgeBotQuery', KnowledgeBotQuery);


/***/ }),
/* 692 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var OpenableElementsQuery = /** @class */ (function () {
	    function OpenableElementsQuery(ngOpenableElementsDatastore) {
	        this.ngOpenableElementsDatastore = ngOpenableElementsDatastore;
	        utility_ts_orm_1.Query.registerQuery(this, ngOpenableElementsDatastore);
	    }
	    OpenableElementsQuery.prototype.run = function () {
	        this._result = {
	            selfAlertDialog: false,
	            appSupportDrawer: false,
	            studentFeedbackDialog: false
	        };
	        var openableElements = this.ngOpenableElementsDatastore.read();
	        if (!_4.isEmpty(openableElements)) {
	            for (var _i = 0, _a = Object.entries(openableElements); _i < _a.length; _i++) {
	                var _b = _a[_i], key = _b[0], value = _b[1];
	                this._result[key] = value.isOpen;
	            }
	        }
	        return this;
	    };
	    Object.defineProperty(OpenableElementsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return OpenableElementsQuery;
	}());
	exports.OpenableElementsQuery = OpenableElementsQuery;
	angular.module('capability-ng-priority-feed').service('ngOpenableElementsQuery', OpenableElementsQuery);


/***/ }),
/* 693 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var PronounsQuery = /** @class */ (function () {
	    function PronounsQuery(ngPronounsModel) {
	        this.ngPronounsModel = ngPronounsModel;
	        utility_ts_orm_1.Query.registerQuery(this, ngPronounsModel);
	    }
	    PronounsQuery.prototype.run = function () {
	        this._result = this.ngPronounsModel.read();
	        var isPronounsEmpty = this._result.user_id && !this._result.selected_pronouns;
	        if (isPronounsEmpty) {
	            this._result.selected_pronouns = 'None - do not show';
	        }
	        return this;
	    };
	    Object.defineProperty(PronounsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return PronounsQuery;
	}());
	exports.PronounsQuery = PronounsQuery;
	angular.module('data-ng-staff-todos').service('ngPronounsQuery', PronounsQuery);


/***/ }),
/* 694 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var SelfAlertIconDetailsQuery = /** @class */ (function () {
	    function SelfAlertIconDetailsQuery(ngSelfAlertIconDetailsModel) {
	        this.ngSelfAlertIconDetailsModel = ngSelfAlertIconDetailsModel;
	        utility_ts_orm_1.Query.registerQuery(this, ngSelfAlertIconDetailsModel);
	    }
	    SelfAlertIconDetailsQuery.prototype.run = function () {
	        this._result = this.ngSelfAlertIconDetailsModel.read();
	        return this;
	    };
	    Object.defineProperty(SelfAlertIconDetailsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return SelfAlertIconDetailsQuery;
	}());
	exports.SelfAlertIconDetailsQuery = SelfAlertIconDetailsQuery;
	angular.module('capability-ng-priority-feed').service('ngSelfAlertIconDetailsQuery', SelfAlertIconDetailsQuery);


/***/ }),
/* 695 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var SumBadgeCountQuery = /** @class */ (function () {
	    function SumBadgeCountQuery(ngConversationsPriorityFeedQuery, ngAppointmentRequestPriorityFeedQuery, ngHoldPriorityFeedQuery, ngStudyGroupsPriorityFeedQuery, ngSurveyPriorityFeedQuery, ngToDoPriorityFeedQuery, ngReportsPriorityFeedQuery, ngConversationDatastore, ngPathItemDatastore, ngPathTaskDatastore, ngHoldDatastore, ngStudygroupsPriorityFeedDatasource, ngSurveyDatastore, staffTodoListDatastore, reminderListDatastore, ngApptSummariesDatasource, ngNotesDatasource, ngProgressReportsDatasource) {
	        this.ngConversationsPriorityFeedQuery = ngConversationsPriorityFeedQuery;
	        this.ngAppointmentRequestPriorityFeedQuery = ngAppointmentRequestPriorityFeedQuery;
	        this.ngHoldPriorityFeedQuery = ngHoldPriorityFeedQuery;
	        this.ngStudyGroupsPriorityFeedQuery = ngStudyGroupsPriorityFeedQuery;
	        this.ngSurveyPriorityFeedQuery = ngSurveyPriorityFeedQuery;
	        this.ngToDoPriorityFeedQuery = ngToDoPriorityFeedQuery;
	        this.ngReportsPriorityFeedQuery = ngReportsPriorityFeedQuery;
	        this.ngConversationDatastore = ngConversationDatastore;
	        this.ngPathItemDatastore = ngPathItemDatastore;
	        this.ngPathTaskDatastore = ngPathTaskDatastore;
	        this.ngHoldDatastore = ngHoldDatastore;
	        this.ngStudygroupsPriorityFeedDatasource = ngStudygroupsPriorityFeedDatasource;
	        this.ngSurveyDatastore = ngSurveyDatastore;
	        this.staffTodoListDatastore = staffTodoListDatastore;
	        this.reminderListDatastore = reminderListDatastore;
	        this.ngApptSummariesDatasource = ngApptSummariesDatasource;
	        this.ngNotesDatasource = ngNotesDatasource;
	        this.ngProgressReportsDatasource = ngProgressReportsDatasource;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngConversationDatastore, this.ngPathItemDatastore, this.ngPathTaskDatastore, this.ngHoldDatastore, this.ngStudygroupsPriorityFeedDatasource, this.ngSurveyDatastore, this.staffTodoListDatastore, this.reminderListDatastore, this.ngApptSummariesDatasource, this.ngNotesDatasource, this.ngProgressReportsDatasource);
	    }
	    SumBadgeCountQuery.prototype.run = function () {
	        this.ngConversationsPriorityFeedQuery.run();
	        this.ngAppointmentRequestPriorityFeedQuery.run();
	        this.ngHoldPriorityFeedQuery.run();
	        this.ngStudyGroupsPriorityFeedQuery.run();
	        this.ngSurveyPriorityFeedQuery.run();
	        this.ngToDoPriorityFeedQuery.run();
	        this.ngReportsPriorityFeedQuery.run();
	        this._result = {
	            count: this.ngConversationsPriorityFeedQuery.count +
	                this.ngAppointmentRequestPriorityFeedQuery.count +
	                this.ngHoldPriorityFeedQuery.count +
	                this.ngStudyGroupsPriorityFeedQuery.count +
	                this.ngSurveyPriorityFeedQuery.count +
	                this.ngToDoPriorityFeedQuery.count +
	                this.ngReportsPriorityFeedQuery.count
	        };
	        return this;
	    };
	    Object.defineProperty(SumBadgeCountQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return SumBadgeCountQuery;
	}());
	exports.SumBadgeCountQuery = SumBadgeCountQuery;
	angular.module('capability-ng-priority-feed').service('ngSumBadgeCountQuery', SumBadgeCountQuery);


/***/ }),
/* 696 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	function PriorityFeedRoutes($stateProvider) {
	    $stateProvider.state('my.feed', {
	        url: 'priority-feed/',
	        templateUrl: 'capability-ng-priority-feed/src/views/priority_feed/priority_feed.html',
	        controller: 'PriorityFeedController',
	        controllerAs: '$ctrl',
	        sticky: true,
	        onEnter: function (loadPriorityFeedDataCommand, accountModel, loadAccountCommand, loadAllCustomTextCommand) {
	            if (_4.isEmpty(accountModel.student_nk)) {
	                loadAccountCommand().then(function () {
	                    loadPriorityFeedDataCommand();
	                    loadAllCustomTextCommand();
	                });
	            }
	            else {
	                loadPriorityFeedDataCommand();
	                loadAllCustomTextCommand();
	            }
	        },
	        data: {
	            ignoredInHistory: false,
	            pageTitle: 'Home'
	        }
	    });
	}
	exports.PriorityFeedRoutes = PriorityFeedRoutes;


/***/ }),
/* 697 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PriorityFeedController = /** @class */ (function () {
	    function PriorityFeedController(ngSchedulePriorityFeedQuery, ngStudyGroupsPriorityFeedQuery, ngHoldPriorityFeedQuery, ngToDoPriorityFeedQuery, ngConversationsPriorityFeedQuery, ngAppointmentPriorityFeedQuery, ngAppointmentRequestPriorityFeedQuery, ngEventPriorityFeedQuery, ngReminderPriorityFeedQuery, ngSurveyPriorityFeedQuery, ngPriorityFeedCapabilityConfiguration) {
	        this.ngSchedulePriorityFeedQuery = ngSchedulePriorityFeedQuery;
	        this.ngStudyGroupsPriorityFeedQuery = ngStudyGroupsPriorityFeedQuery;
	        this.ngHoldPriorityFeedQuery = ngHoldPriorityFeedQuery;
	        this.ngToDoPriorityFeedQuery = ngToDoPriorityFeedQuery;
	        this.ngConversationsPriorityFeedQuery = ngConversationsPriorityFeedQuery;
	        this.ngAppointmentPriorityFeedQuery = ngAppointmentPriorityFeedQuery;
	        this.ngAppointmentRequestPriorityFeedQuery = ngAppointmentRequestPriorityFeedQuery;
	        this.ngEventPriorityFeedQuery = ngEventPriorityFeedQuery;
	        this.ngReminderPriorityFeedQuery = ngReminderPriorityFeedQuery;
	        this.ngSurveyPriorityFeedQuery = ngSurveyPriorityFeedQuery;
	        this.ngPriorityFeedCapabilityConfiguration = ngPriorityFeedCapabilityConfiguration;
	    }
	    return PriorityFeedController;
	}());
	exports.default = PriorityFeedController;


/***/ }),
/* 698 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var ReportsPriorityFeedQuery = /** @class */ (function () {
	    function ReportsPriorityFeedQuery(ngApptSummariesDatasource, ngNotesDatasource, ngProgressReportsDatasource) {
	        this.ngApptSummariesDatasource = ngApptSummariesDatasource;
	        this.ngNotesDatasource = ngNotesDatasource;
	        this.ngProgressReportsDatasource = ngProgressReportsDatasource;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngApptSummariesDatasource, this.ngNotesDatasource, this.ngProgressReportsDatasource);
	    }
	    ReportsPriorityFeedQuery.prototype.run = function () {
	        this._result = {};
	        var unreadApptSummaries = this.ngApptSummariesDatasource.query(function (report) { return report.status === 'unread'; });
	        var unreadNotes = this.ngNotesDatasource.query(function (report) { return report.status === 'unread'; });
	        var unreadProgressReports = this.ngProgressReportsDatasource.query(function (report) { return report.status === 'unread'; });
	        this._count = unreadApptSummaries.length + unreadNotes.length + unreadProgressReports.length;
	        return this;
	    };
	    Object.defineProperty(ReportsPriorityFeedQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ReportsPriorityFeedQuery.prototype, "count", {
	        get: function () {
	            return this._count;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return ReportsPriorityFeedQuery;
	}());
	exports.ReportsPriorityFeedQuery = ReportsPriorityFeedQuery;
	angular.module('capability-ng-reports').service('ngReportsPriorityFeedQuery', ReportsPriorityFeedQuery);


/***/ }),
/* 699 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var Contact = /** @class */ (function () {
	    function Contact(contact) {
	        _4.merge(this, contact);
	        // This is required for backward compatibility.
	        this.id = this.id + "-" + this.relationship;
	        this.relationship = _4.get(this, 'relationship_type', this.relationship);
	    }
	    Contact.build = function (contact) {
	        return new Contact(contact);
	    };
	    return Contact;
	}());
	exports.Contact = Contact;


/***/ }),
/* 700 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ContactCardController = /** @class */ (function () {
	    function ContactCardController(ngContactsService, $state) {
	        this.ngContactsService = ngContactsService;
	        this.$state = $state;
	    }
	    Object.defineProperty(ContactCardController.prototype, "initials", {
	        get: function () {
	            return this.ngContactsService.createInitials(this.contact);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    ContactCardController.prototype.goToContactsDetail = function () {
	        this.$state.go('my.contactDetail', {
	            contactId: this.contact.id,
	            relationship: this.contact.relationship
	        });
	    };
	    return ContactCardController;
	}());
	exports.ContactCardController = ContactCardController;
	var ContactCardComponent = /** @class */ (function () {
	    function ContactCardComponent() {
	        this.templateUrl = 'capability-ng-resources/src/components/people/contact_card/contact_card.html';
	        this.controller = ContactCardController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            contact: '<'
	        };
	    }
	    return ContactCardComponent;
	}());
	exports.ContactCardComponent = ContactCardComponent;


/***/ }),
/* 701 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ContactDetailController = /** @class */ (function () {
	    function ContactDetailController(ngContactsService, $window, $state, ngContactToggleService, ngEmailManagementService) {
	        this.ngContactsService = ngContactsService;
	        this.$window = $window;
	        this.$state = $state;
	        this.ngContactToggleService = ngContactToggleService;
	        this.ngEmailManagementService = ngEmailManagementService;
	    }
	    ContactDetailController.prototype.$onInit = function () {
	        this.termNames = _4.uniq(_4.map(this.contact.courses, 'term_name'));
	    };
	    ContactDetailController.prototype.$onChanges = function (changes) {
	        if (_4.isEmpty(changes)) {
	            return;
	        }
	        this.update();
	    };
	    ContactDetailController.prototype.update = function () {
	        this.setAvailableLocation();
	        this.termNames = _4.uniq(_4.map(this.contact.courses, 'term_name'));
	    };
	    ContactDetailController.prototype.isCallButtonDisabled = function () {
	        return _4.isEmpty(_4.get(this, 'contact.work_phone', ''));
	    };
	    ContactDetailController.prototype.isEmailButtonDisabled = function () {
	        return _4.isEmpty(_4.get(this, 'contact.email', ''));
	    };
	    ContactDetailController.prototype.showAppointmentButton = function () {
	        return (!_4.isEmpty(_4.get(this, 'contact.availability', [])) && this.ngContactToggleService.toggles.appointmentScheduling);
	    };
	    ContactDetailController.prototype.setAvailableLocation = function () {
	        this.availableLocation = _4.groupBy(_4.get(this, 'contact.availability', []), 'location.name');
	    };
	    ContactDetailController.prototype.getAvailableLocation = function () {
	        return this.availableLocation;
	    };
	    ContactDetailController.prototype.getLocationForAvailabilityList = function (availabilityList) {
	        return _4.get(_4.head(availabilityList), 'location.name', '');
	    };
	    ContactDetailController.prototype.isAllContactInformationEmpty = function () {
	        return (this.contact &&
	            _4.isEmpty(this.contact.email) &&
	            _4.isEmpty(this.contact.work_phone) &&
	            _4.isEmpty(this.contact.availability) &&
	            _4.isEmpty(this.contact.courses));
	    };
	    Object.defineProperty(ContactDetailController.prototype, "initials", {
	        get: function () {
	            return this.ngContactsService.createInitials(this.contact);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    ContactDetailController.prototype.openLink = function (type, link) {
	        this.$window.open(type + ":" + link, '_system');
	    };
	    ContactDetailController.prototype.sendEmail = function () {
	        if (this.contact) {
	            this.ngEmailManagementService.sendEmail({ to: this.contact.email });
	        }
	    };
	    ContactDetailController.prototype.gotoAppointmentScheduling = function () {
	        this.$state.go('my.appointments');
	    };
	    return ContactDetailController;
	}());
	exports.ContactDetailController = ContactDetailController;
	var ContactDetailComponent = /** @class */ (function () {
	    function ContactDetailComponent() {
	        this.templateUrl = 'capability-ng-resources/src/components/people/contact_detail/contact_detail.html';
	        this.controller = ContactDetailController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            contact: '<'
	        };
	    }
	    return ContactDetailComponent;
	}());
	exports.ContactDetailComponent = ContactDetailComponent;


/***/ }),
/* 702 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ContactListController = /** @class */ (function () {
	    function ContactListController(ngContactListService, ngContactsSearchQuery, $state) {
	        this.ngContactListService = ngContactListService;
	        this.ngContactsSearchQuery = ngContactsSearchQuery;
	        this.$state = $state;
	    }
	    ContactListController.prototype.isContactListEmpty = function () {
	        return _4.isEmpty(this.ngContactListService.activeContacts);
	    };
	    ContactListController.prototype.hasSearchResults = function () {
	        return !_4.isEmpty(this.ngContactsSearchQuery.result);
	    };
	    return ContactListController;
	}());
	exports.ContactListController = ContactListController;
	var ContactListComponent = /** @class */ (function () {
	    function ContactListComponent() {
	        this.templateUrl = 'capability-ng-resources/src/components/people/contact_list/contact_list.html';
	        this.controller = ContactListController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            search: '<'
	        };
	    }
	    return ContactListComponent;
	}());
	exports.ContactListComponent = ContactListComponent;


/***/ }),
/* 703 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var AvailabilityTileContactController = /** @class */ (function () {
	    function AvailabilityTileContactController() {
	        this.availabilityList = this.availabilityList || {};
	    }
	    AvailabilityTileContactController.prototype.$onInit = function () {
	        this.update();
	    };
	    AvailabilityTileContactController.prototype.$onChanges = function (changes) {
	        if (_4.isEmpty(changes)) {
	            return;
	        }
	        this.update();
	    };
	    AvailabilityTileContactController.prototype.update = function () {
	        this.availabilityList = this.createAvailableDaysArray(this.availabilityList);
	        this.availabilityByService = this.setAvailabilityByPurpose(this.availabilityList);
	    };
	    AvailabilityTileContactController.prototype.getAvailabilityPurpose = function (availabilityArr) {
	        return _4.get(_4.head(availabilityArr), 'purpose', '');
	    };
	    AvailabilityTileContactController.prototype.showContactDaysTimeSection = function (availableByService) {
	        return availableByService.dates.toLowerCase() !== 'forever';
	    };
	    AvailabilityTileContactController.prototype.getContactServicesString = function (availability) {
	        return _4.isEmpty(availability) ? '' : _4.map(availability.services, 'name').join(', ');
	    };
	    AvailabilityTileContactController.prototype.setAvailabilityByPurpose = function (availability) {
	        return _4.groupBy(availability, function (available) {
	            return available.purpose;
	        });
	    };
	    AvailabilityTileContactController.prototype.createAvailableDaysArray = function (availability) {
	        _4.forEach(availability, function (currentAvailability) {
	            currentAvailability.days_array = _4.map(currentAvailability.days.split(','), function (day) { return _4.trim(day); });
	        });
	        return availability;
	    };
	    AvailabilityTileContactController.prototype.getFullDayName = function (dayNameShort) {
	        var monthNames = {
	            Sun: 'Sundays',
	            Mon: 'Mondays',
	            Tue: 'Tuesdays',
	            Wed: 'Wednesdays',
	            Thu: 'Thursdays',
	            Fri: 'Fridays',
	            Sat: 'Saturdays'
	        };
	        return monthNames[dayNameShort];
	    };
	    return AvailabilityTileContactController;
	}());
	exports.AvailabilityTileContactController = AvailabilityTileContactController;
	var ContactTileAvailabilityComponent = /** @class */ (function () {
	    function ContactTileAvailabilityComponent() {
	        this.templateUrl = 'capability-ng-resources/src/components/people/contact_tile_availability/contact_tile_availability.html';
	        this.controller = AvailabilityTileContactController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            availabilityList: '<'
	        };
	    }
	    return ContactTileAvailabilityComponent;
	}());
	exports.ContactTileAvailabilityComponent = ContactTileAvailabilityComponent;


/***/ }),
/* 704 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ResourceDetailContentController = /** @class */ (function () {
	    function ResourceDetailContentController(ResourceLinksEnum, favoriteResourceCommand, unfavoriteResourceCommand, log) {
	        this.ResourceLinksEnum = ResourceLinksEnum;
	        this.favoriteResourceCommand = favoriteResourceCommand;
	        this.unfavoriteResourceCommand = unfavoriteResourceCommand;
	        this.log = log;
	    }
	    ResourceDetailContentController.prototype.$onInit = function () {
	        this.refresh();
	    };
	    ResourceDetailContentController.prototype.refresh = function () {
	        var _this = this;
	        if (!!this.resource) {
	            this.location = this.ResourceLinksEnum.get('location').buildDisplay(this.resource.location);
	            this.resourceDetails = _4.map(this.resource.resource_detail, function (resourceDetail) {
	                return _this.ResourceLinksEnum.get(resourceDetail.resource_display_type.key).buildDisplay(resourceDetail);
	            });
	            this.sortedResources = this.sortResources();
	        }
	    };
	    ResourceDetailContentController.prototype.sortResources = function () {
	        var _this = this;
	        var getTimeResources = _4.filter(this.resourceDetails, function (rsrcDetail) { return rsrcDetail.description.resource_display_type === _this.ResourceLinksEnum.TIME; });
	        var getTimeArray = _4.map(getTimeResources, 'description.value');
	        var getOtherResources = _4.filter(this.resourceDetails, function (rsrcDetail) { return rsrcDetail.description.resource_display_type !== _this.ResourceLinksEnum.TIME; });
	        if (getTimeResources.length > 0) {
	            var resource = _4.first(getTimeResources);
	            resource.timeArray = getTimeArray;
	            getOtherResources.push(resource);
	        }
	        return _4.sortBy(getOtherResources, function (resourceDtl) {
	            return resourceDtl.description.order;
	        });
	    };
	    ResourceDetailContentController.prototype.toggleFavorite = function () {
	        var _this = this;
	        this.resource.favorite_id
	            ? this.unfavoriteResourceCommand(this.resource).catch(function () {
	                return _this.log.user.error("Looks like I couldn't unfavorite that.");
	            })
	            : this.favoriteResourceCommand(this.resource).catch(function () {
	                return _this.log.user.error("Looks like I couldn't favorite that.");
	            });
	    };
	    ResourceDetailContentController.prototype.isTimeInfo = function (resourceDetail) {
	        return resourceDetail.description.resource_display_type === this.ResourceLinksEnum.TIME;
	    };
	    return ResourceDetailContentController;
	}());
	exports.ResourceDetailContentController = ResourceDetailContentController;
	var ResourceDetailContentComponent = /** @class */ (function () {
	    function ResourceDetailContentComponent() {
	        this.templateUrl = 'capability-ng-resources/src/components/places/resource_detail_content/resource_detail_content.html';
	        this.controller = ResourceDetailContentController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            resource: '<'
	        };
	    }
	    return ResourceDetailContentComponent;
	}());
	exports.ResourceDetailContentComponent = ResourceDetailContentComponent;


/***/ }),
/* 705 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var ResourceDetailItemController = /** @class */ (function () {
	    function ResourceDetailItemController($window, ResourceLinks, utilityConstant, locationLinkBuilderServant, ngEmailManagementService) {
	        this.$window = $window;
	        this.ResourceLinks = ResourceLinks;
	        this.utilityConstant = utilityConstant;
	        this.locationLinkBuilderServant = locationLinkBuilderServant;
	        this.ngEmailManagementService = ngEmailManagementService;
	        this.isLocation = false;
	        this.isResourceLinkInactive = false;
	    }
	    ResourceDetailItemController.prototype.$onInit = function () {
	        this.refresh();
	    };
	    ResourceDetailItemController.prototype.$onChanges = function () {
	        this.refresh();
	    };
	    ResourceDetailItemController.prototype.refresh = function () {
	        this.isResourceLinkInactive = this.isLocation && _4.isEmpty(_4.get(this.resourceDetail, 'description.address', ''));
	        this.hasLocationInfo = this.resourceDetail ? !_4.isEmpty(this.resourceDetail.description) : false;
	        this.resourceUrl = this.resourceDetail.link;
	        this.isMobile = utility_ts_platform_1.PlatformUtility.isMobile();
	    };
	    ResourceDetailItemController.prototype.isEmail = function () {
	        return this.resourceDetail.type === this.ResourceLinks.EMAIL;
	    };
	    ResourceDetailItemController.prototype.openLink = function () {
	        if (this.isEmail()) {
	            this.ngEmailManagementService.sendEmail({
	                to: _4.get(this.resourceDetail, 'description.value', '')
	            });
	        }
	        else if (utility_ts_platform_1.PlatformUtility.isDesktop() || this.resourceDetail.link.indexOf('http') === -1) {
	            if (utility_ts_platform_1.PlatformUtility.isAndroid()) {
	                this.$window.open(this.resourceDetail.link, '_system');
	            }
	            else {
	                this.$window.open(this.resourceDetail.link);
	            }
	        }
	        else {
	            this.$window.open(this.resourceDetail.link, '_blank', this.utilityConstant.APP_BROWSER_ARGUMENTS);
	        }
	    };
	    ResourceDetailItemController.prototype.getCopyText = function () {
	        return this.isLocation ? this.locationLinkBuilderServant.getSubURL(this.resourceDetail.description) : '';
	    };
	    ResourceDetailItemController.prototype.getLabelText = function () {
	        //only urls should get a non-empty display attribute, if it exists display it instead
	        return this.resourceDetail.description.display
	            ? this.resourceDetail.description.display
	            : this.resourceDetail.description.value;
	    };
	    return ResourceDetailItemController;
	}());
	exports.ResourceDetailItemController = ResourceDetailItemController;
	var ResourceDetailItemComponent = /** @class */ (function () {
	    function ResourceDetailItemComponent() {
	        this.templateUrl = 'capability-ng-resources/src/components/places/resource_detail_item/resource_detail_item.html';
	        this.controller = ResourceDetailItemController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            resourceDetail: '<',
	            isLocation: '<'
	        };
	    }
	    return ResourceDetailItemComponent;
	}());
	exports.ResourceDetailItemComponent = ResourceDetailItemComponent;


/***/ }),
/* 706 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var ContactsListQuery = /** @class */ (function () {
	    function ContactsListQuery(ngContactsDatastore) {
	        this.ngContactsDatastore = ngContactsDatastore;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngContactsDatastore);
	    }
	    ContactsListQuery.prototype.run = function () {
	        this._result = this.ngContactsDatastore.values();
	        return this;
	    };
	    Object.defineProperty(ContactsListQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return ContactsListQuery;
	}());
	exports.ContactsListQuery = ContactsListQuery;


/***/ }),
/* 707 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var ContactsSearchQuery = /** @class */ (function () {
	    function ContactsSearchQuery(ngContactsSearchModel, ngContactsDatastore, ngContactSearchService) {
	        this.ngContactsSearchModel = ngContactsSearchModel;
	        this.ngContactsDatastore = ngContactsDatastore;
	        this.ngContactSearchService = ngContactSearchService;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngContactsSearchModel);
	    }
	    ContactsSearchQuery.prototype.clear = function () {
	        this._result = [];
	    };
	    ContactsSearchQuery.prototype.run = function () {
	        var searchTerm = this.ngContactsSearchModel.read().searchTerm;
	        this.ngContactSearchService.search(searchTerm);
	        this._result = this.ngContactSearchService.allResults;
	        return this;
	    };
	    Object.defineProperty(ContactsSearchQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return ContactsSearchQuery;
	}());
	exports.ContactsSearchQuery = ContactsSearchQuery;


/***/ }),
/* 708 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var ResourceSearchQuery = /** @class */ (function () {
	    function ResourceSearchQuery(ngResourceSearchModel, ngResourceDatastore, ngResourceSearchService) {
	        this.ngResourceSearchModel = ngResourceSearchModel;
	        this.ngResourceDatastore = ngResourceDatastore;
	        this.ngResourceSearchService = ngResourceSearchService;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngResourceSearchModel);
	    }
	    ResourceSearchQuery.prototype.clear = function () {
	        this._result = [];
	    };
	    ResourceSearchQuery.prototype.run = function () {
	        var searchTerm = this.ngResourceSearchModel.read().searchTerm;
	        this.ngResourceSearchService.search(searchTerm);
	        this._result = this.ngResourceSearchService.allResults;
	        return this;
	    };
	    Object.defineProperty(ResourceSearchQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return ResourceSearchQuery;
	}());
	exports.ResourceSearchQuery = ResourceSearchQuery;


/***/ }),
/* 709 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var LocationLinkBuilderServant = /** @class */ (function () {
	    function LocationLinkBuilderServant() {
	    }
	    LocationLinkBuilderServant.prototype.createLocationLink = function (locationObject) {
	        return "" + this.getBaseURL() + this.getSubURL(locationObject);
	    };
	    LocationLinkBuilderServant.prototype.getSubURL = function (locationObject) {
	        var subURL = '';
	        if (!_4.isEmpty(locationObject) && !_4.isEmpty(locationObject.address)) {
	            subURL = locationObject.address;
	        }
	        else if (!_4.isEmpty(locationObject) && locationObject.longitude !== 0 && locationObject.latitude !== 0) {
	            subURL = locationObject.latitude + "," + locationObject.longitude;
	        }
	        return subURL;
	    };
	    LocationLinkBuilderServant.prototype.getBaseURL = function () {
	        if (utility_ts_platform_1.PlatformUtility.isAndroid()) {
	            return 'geo://maps.google.com/?q=';
	        }
	        else if (utility_ts_platform_1.PlatformUtility.isIOS()) {
	            return 'maps://maps.apple.com/?q=';
	        }
	        else {
	            return 'https://maps.google.com/?q=';
	        }
	    };
	    return LocationLinkBuilderServant;
	}());
	exports.LocationLinkBuilderServant = LocationLinkBuilderServant;


/***/ }),
/* 710 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ContactSearchService = /** @class */ (function () {
	    function ContactSearchService(ngContactsDatastore) {
	        this.ngContactsDatastore = ngContactsDatastore;
	        this.MIN_SEARCH_TERM_LENGTH = 1;
	        this.MAX_SEARCH_RESULTS = 75;
	        this._searchTerm = '';
	        this._results = [];
	        this._isSearching = false;
	    }
	    ContactSearchService.prototype.__cleanString = function (str) {
	        return _4
	            .trim(str)
	            .toLowerCase()
	            .replace(/[^\w\s]/g, '');
	    };
	    ContactSearchService.prototype.search = function (term) {
	        var _this = this;
	        if (_4.isEmpty(term)) {
	            this.reset();
	            return;
	        }
	        term = this.__cleanString(term);
	        this._searchTerm = term;
	        this._isSearching = true;
	        if (this._searchTerm.length >= this.MIN_SEARCH_TERM_LENGTH) {
	            this._results = _4.filter(this.ngContactsDatastore.values(), function (contact) {
	                var cleanedFirstName = _this.__cleanString(contact.first_name);
	                var cleanedLastName = _this.__cleanString(contact.last_name);
	                return cleanedFirstName.indexOf(term) > -1 || cleanedLastName.indexOf(term) > -1;
	            });
	        }
	        else {
	            this._results = [];
	        }
	    };
	    ContactSearchService.prototype.reset = function () {
	        this._searchTerm = '';
	        this._isSearching = false;
	    };
	    ContactSearchService.prototype.isValidSearchTerm = function () {
	        return !_4.isEmpty(this._searchTerm) && this._searchTerm.length >= this.MIN_SEARCH_TERM_LENGTH;
	    };
	    Object.defineProperty(ContactSearchService.prototype, "allResults", {
	        get: function () {
	            return this._results;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ContactSearchService.prototype, "isSearching", {
	        get: function () {
	            return this._isSearching;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ContactSearchService.prototype, "searchTerm", {
	        get: function () {
	            return this._searchTerm;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return ContactSearchService;
	}());
	exports.ContactSearchService = ContactSearchService;


/***/ }),
/* 711 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ResourceSearchService = /** @class */ (function () {
	    function ResourceSearchService(ngResourceDatastore) {
	        this.ngResourceDatastore = ngResourceDatastore;
	        this.MIN_SEARCH_TERM_LENGTH = 1;
	        this.MAX_SEARCH_RESULTS = 75;
	        this._searchTerm = '';
	        this._results = [];
	        this._isSearching = false;
	    }
	    ResourceSearchService.prototype.__cleanString = function (str) {
	        return _4
	            .trim(str)
	            .toLowerCase()
	            .replace(/[^\w\s]/g, '');
	    };
	    ResourceSearchService.prototype.search = function (term) {
	        var _this = this;
	        if (_4.isEmpty(term)) {
	            this.reset();
	            return;
	        }
	        term = this.__cleanString(term);
	        this._searchTerm = term;
	        this._isSearching = true;
	        if (this._searchTerm.length >= this.MIN_SEARCH_TERM_LENGTH) {
	            this._results = _4.filter(this.ngResourceDatastore.values(), function (resource) {
	                var cleanedName = _this.__cleanString(resource.name);
	                return cleanedName.indexOf(term) > -1;
	            });
	        }
	        else {
	            this._results = [];
	        }
	    };
	    ResourceSearchService.prototype.reset = function () {
	        this._searchTerm = '';
	        this._isSearching = false;
	    };
	    ResourceSearchService.prototype.isValidSearchTerm = function () {
	        return !_4.isEmpty(this._searchTerm) && this._searchTerm.length >= this.MIN_SEARCH_TERM_LENGTH;
	    };
	    Object.defineProperty(ResourceSearchService.prototype, "allResults", {
	        get: function () {
	            return this._results;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ResourceSearchService.prototype, "isSearching", {
	        get: function () {
	            return this._isSearching;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ResourceSearchService.prototype, "searchTerm", {
	        get: function () {
	            return this._searchTerm;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return ResourceSearchService;
	}());
	exports.ResourceSearchService = ResourceSearchService;


/***/ }),
/* 712 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.PlannerConstants = {
	    AP3_FT: 'ap3-academic_planner_v3',
	    AP1_FT: 'reg-academic_planner'
	};


/***/ }),
/* 713 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	exports.SectionActionStrategy = new utility_ts_strategy_1.Strategy({
	    VIEW_DETAILS: {
	        action: 'view_section_details',
	        title: 'Section Details'
	    },
	    ADD_SECTION: {
	        action: 'schedule_section',
	        title: 'Add Section'
	    },
	    ADD_TO_WAITLIST: {
	        action: 'add_to_waitlist',
	        title: 'Add to Waitlist'
	    },
	    SWAP_SECTION: {
	        action: 'swap_section',
	        title: 'Swap Section'
	    }
	});


/***/ }),
/* 714 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var CrossCourseCorequisites = /** @class */ (function () {
	    function CrossCourseCorequisites(crossCourseCorequisites) {
	        _4.merge(this, crossCourseCorequisites);
	    }
	    CrossCourseCorequisites.build = function (crossCourseCorequisites) {
	        return new CrossCourseCorequisites(crossCourseCorequisites);
	    };
	    return CrossCourseCorequisites;
	}());
	exports.CrossCourseCorequisites = CrossCourseCorequisites;


/***/ }),
/* 715 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	exports.SectionAddCoreqButtonStrategy = new utility_ts_strategy_1.Strategy({
	    COURSE: {
	        title: 'Add to my term plan',
	        disabled: false,
	        hide: false,
	        satisfiedText: 'Planned'
	    },
	    ONE_TO_ONE: {
	        title: 'Add to my schedule',
	        disabled: false,
	        hide: false,
	        satisfiedText: 'Scheduled'
	    },
	    ONE_TO_MANY: {
	        title: 'View Times',
	        disabled: false,
	        hide: false,
	        satisfiedText: 'Scheduled'
	    },
	    CONFLICTING: {
	        title: 'Conflict',
	        disabled: true,
	        hide: false
	    },
	    REGISTERED: {
	        title: 'Registered',
	        disabled: true,
	        hide: false,
	        satisfiedText: 'Registered'
	    },
	    SECTION_PICKED: {
	        title: 'Scheduled',
	        disabled: false,
	        hide: false,
	        satisfiedText: 'Scheduled'
	    }
	});


/***/ }),
/* 716 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	exports.TimelineThemeStrategy = new utility_ts_strategy_1.Strategy({
	    'clr-1-bkg': {
	        theme: 'red'
	    },
	    'clr-2-bkg': {
	        theme: 'orange'
	    },
	    'clr-3-bkg': {
	        theme: 'yellow'
	    },
	    'clr-4-bkg': {
	        theme: 'green'
	    },
	    'clr-5-bkg': {
	        theme: 'teal'
	    },
	    'clr-6-bkg': {
	        theme: 'blue'
	    },
	    'clr-7-bkg': {
	        theme: 'cyan'
	    },
	    'clr-8-bkg': {
	        theme: 'purple'
	    },
	    'clr-9-bkg': {
	        theme: 'magenta'
	    },
	    'clr-10-bkg': {
	        theme: 'white'
	    }
	});


/***/ }),
/* 717 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var SchedulerCalendarConfiguration = /** @class */ (function () {
	    function SchedulerCalendarConfiguration() {
	        this.enableCalendar = true;
	    }
	    SchedulerCalendarConfiguration.prototype.configure = function (config) {
	        this.enableCalendar = !!config.enableCalendar;
	    };
	    SchedulerCalendarConfiguration.prototype.$get = function () {
	        return {
	            enableCalendar: this.enableCalendar
	        };
	    };
	    return SchedulerCalendarConfiguration;
	}());
	exports.SchedulerCalendarConfiguration = SchedulerCalendarConfiguration;
	angular.module('capability-ng-scheduler').provider('schedulerCalendarConfiguration', SchedulerCalendarConfiguration);


/***/ }),
/* 718 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var SchedulerConfigModel = /** @class */ (function () {
	    function SchedulerConfigModel(appConfigModel) {
	        this.appConfigModel = appConfigModel;
	    }
	    SchedulerConfigModel.prototype.isFeatureEnabled = function (key) {
	        return this.appConfigModel ? this.appConfigModel.isFeatureEnabled(key) : true;
	    };
	    SchedulerConfigModel.prototype.getConfigProperty = function (key) {
	        return this.appConfigModel ? this.appConfigModel.getConfigProperty(key) : '';
	    };
	    return SchedulerConfigModel;
	}());
	exports.SchedulerConfigModel = SchedulerConfigModel;


/***/ }),
/* 719 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var state_configuration_1 = __webpack_require__(733);
	var state_configuration_2 = __webpack_require__(731);
	var _4 = __webpack_require__(1);
	var unscheduleCourseInfo = {
	    url: 'course/:courseId/section_type/:sectionTypeId/',
	    views: {
	        'aside@my.schedule.registration': {
	            template: '<unscheduled-sections></unscheduled-sections>',
	            controller: function ($timeout, phxFocusDelegate) {
	                $timeout(function () {
	                    phxFocusDelegate.focus('schedule-section-rail');
	                }, 500);
	            }
	        }
	    },
	    params: {
	        sectionsFilter: 'available',
	        sectionTypeId: '0'
	    },
	    onEnter: function (getTermCoursesandScheduledSectionsCommand, $stateParams, ngTermCoursesDatasource, getUnscheduledSectionsandAvailabilityCommand, ngSectionSwapServant, ngUnscheduledSectionsQuery) {
	        ngUnscheduledSectionsQuery.clear();
	        if (ngTermCoursesDatasource.size() === 0) {
	            getTermCoursesandScheduledSectionsCommand($stateParams.termId);
	        }
	        var sectionTypeId = $stateParams.sectionTypeId, courseId = $stateParams.courseId, termId = $stateParams.termId;
	        // Need to update this, when in swap mode, dont get availability
	        if (!$stateParams.ignoreConflicts) {
	            getUnscheduledSectionsandAvailabilityCommand(termId, courseId, sectionTypeId);
	        }
	    },
	    onExit: function (clearSectionFiltersCommand) { return clearSectionFiltersCommand(); },
	    data: {
	        activeTab: 'course_info',
	        viewTitle: 'Schedule Course Information'
	    }
	};
	var SchedulerStateConfiguration = /** @class */ (function () {
	    function SchedulerStateConfiguration($stateProvider) {
	        this.$stateProvider = $stateProvider;
	    }
	    /* tslint:disable:no-big-function */
	    SchedulerStateConfiguration.prototype.state = function (state) {
	        if (state === void 0) { state = {}; }
	        this.$stateProvider
	            .state('my.schedule', _4.merge({
	            url: 'schedule/:termId/',
	            template: '<ui-view/>',
	            controller: function ($state, $stateParams) {
	                if ($state.current.name === 'my.schedule') {
	                    $state.go('my.schedule.registration', { termId: $stateParams.termId }, {
	                        location: 'replace'
	                    });
	                }
	            },
	            sticky: true,
	            data: {
	                viewTitle: 'Scheduler'
	            },
	            resolve: {
	                appConfigModel_: function (appConfigModel, $q, loadAppConfigCommand) {
	                    if (appConfigModel.isConfigLoaded()) {
	                        return $q.resolve();
	                    }
	                    return loadAppConfigCommand();
	                },
	                schedulerConfig: function (getSchedulerConfigCommand) { return getSchedulerConfigCommand(); }
	            },
	            onEnter: function (pusherService, accountModel, appConfigModel, fetchSchedulerAvailableTermsCommand) {
	                pusherService.startChannel(accountModel.username, {
	                    key: appConfigModel.getConfigProperty('PUSHER_KEY'),
	                    cluster: 'mt1'
	                });
	                fetchSchedulerAvailableTermsCommand();
	            }
	        }, state['my.schedule']))
	            .state('my.schedule.transactions', {
	            url: 'transactions/',
	            template: '<registration-transactions></registration-transactions>',
	            data: {
	                viewTitle: 'Registration Transaction History'
	            },
	            resolve: {
	                programTermInfo: function ($stateParams, loadProgramTermInfoCommand) { return loadProgramTermInfoCommand($stateParams.termId); },
	                _registrationActivity: function (registrationActivityCommand, $stateParams) {
	                    return registrationActivityCommand($stateParams.termId);
	                }
	            }
	        })
	            .state('my.schedule.registration', _4.merge({
	            url: 'registration/',
	            views: {
	                '': {
	                    template: "<scheduler-registration-container></scheduler-registration-container>"
	                },
	                'aside@my.schedule.registration': {
	                    template: '<term-info></term-info>'
	                },
	                'header@my.schedule.registration': {
	                    template: '<registration-header></registration-header>'
	                },
	                'calendar@my.schedule.registration': {
	                    template: '<scheduler-calendar></scheduler-calendar>'
	                },
	                'sections@my.schedule.registration': {
	                    template: "<scheduled-sections></scheduled-sections>\n                  <phx-calendar-color-key-full></phx-calendar-color-key-full>"
	                },
	                'footer@my.schedule.registration': {
	                    template: "<registration-controls term-id=\"$ctrl.termId\"></registration-controls>"
	                }
	            },
	            resolve: {
	                _termAndProgramInfo: function ($stateParams, loadProgramTermInfoCommand) {
	                    return loadProgramTermInfoCommand($stateParams.termId);
	                },
	                clearSelectedSections: function (clearAllRegistrationSectionsCommand) {
	                    return clearAllRegistrationSectionsCommand();
	                },
	                _registrationActivity: function (registrationActivityCommand, $stateParams) {
	                    return registrationActivityCommand($stateParams.termId);
	                },
	                campusList: function (loadCampusListCommand) { return loadCampusListCommand(); },
	                // combined call
	                coursesAndScheduledSections: function (getTermCoursesandScheduledSectionsCommand, $stateParams, campusList, getSwapCommand, loadTermLocationPreferencesCommand, ngPreferencesSelectionModel, ngTermScheduleFlags, clearSelectedSections, _termAndProgramInfo) {
	                    return getTermCoursesandScheduledSectionsCommand($stateParams.termId).then(function () {
	                        return loadTermLocationPreferencesCommand($stateParams.termId);
	                    });
	                },
	                selectScheduledSectionsForRegistration: function (coursesAndScheduledSections, markSelectedFlagForScheduledSectionsCommand) { return markSelectedFlagForScheduledSectionsCommand(); },
	                studentPlans: function (fetchStudentActivePlanDetailsCommand) {
	                    return fetchStudentActivePlanDetailsCommand();
	                }
	            },
	            data: {
	                viewTitle: 'Scheduler | Registration'
	            },
	            onEnter: function ($stateParams, ngScreenDeviceQuery) {
	                // handler to remove intermediate uri from NEI history
	                if (!ngScreenDeviceQuery.result.isScreenMobile) {
	                    return;
	                }
	                var navigationState = window['$ip'].di.inject('native-services', 'navigation_state');
	                if (_4.isEmpty(navigationState)) {
	                    return;
	                }
	                var lastSavedUri = navigationState.history[navigationState.history.length - 1];
	                if (lastSavedUri === '#/my/standalonescheduler/' ||
	                    lastSavedUri === "#/my/schedule/" + $stateParams.termId + "/") {
	                    navigationState.history.pop();
	                }
	            }
	        }, state['my.schedule.registration']))
	            .state('my.schedule.registration.preferences', {
	            url: 'preferences/',
	            resolve: {
	                unavailability: function (loadStudentUnavailabilityCommand, $stateParams) {
	                    return loadStudentUnavailabilityCommand($stateParams.termId);
	                }
	            },
	            data: {
	                viewTitle: 'Scheduler Preferences'
	            },
	            views: {
	                'modal@my.schedule.registration': {
	                    template: '<schedule-preferences ng-hide="allCoursesSelected()"></schedule-preferences>'
	                }
	            }
	        })
	            .state('my.schedule.registration.courseSections', _4.merge(unscheduleCourseInfo, state['my.schedule.registration.courseSections']))
	            .state('my.schedule.registration.swap', {
	            url: 'swap/swap_course/:swapCourse',
	            params: {
	                courseId: -1
	            },
	            data: {
	                viewTitle: 'Swap Course List'
	            },
	            views: {
	                'header@my.schedule.registration': {
	                    template: '<registration-header></registration-header>'
	                },
	                'secondary-header@my.schedule.registration': {
	                    template: '<swap-header></swap-header>'
	                },
	                'sections@my.schedule.registration': {
	                    template: "<section-swap-preview></section-swap-preview>\n                      <swap-confirmation-modal></swap-confirmation-modal>"
	                },
	                'calendar@my.schedule.registration': {
	                    template: '<scheduler-calendar mode="swap"></scheduler-calendar>'
	                }
	            },
	            template: "<ui-view/>"
	        })
	            .state('my.schedule.registration.swap.courseSections', tslib_1.__assign(tslib_1.__assign({}, unscheduleCourseInfo), { url: '/course/:courseId/section_type/:sectionTypeId/ignore_conflicts/:ignoreConflicts', onEnter: function (getUnscheduledSectionsandAvailabilityCommand, $stateParams, ngSectionSwapServant, ngCourseSectionSwapModel) {
	                getUnscheduledSectionsandAvailabilityCommand($stateParams.termId, $stateParams.courseId, $stateParams.sectionTypeId, ngSectionSwapServant.getSwapFromIds(ngCourseSectionSwapModel), ngSectionSwapServant.getSwapToIds(ngCourseSectionSwapModel));
	            }, data: {
	                viewTitle: 'Swap Section'
	            }, views: tslib_1.__assign(tslib_1.__assign({}, unscheduleCourseInfo.views), { 'header@my.schedule.registration': {
	                    template: '<registration-header></registration-header>'
	                }, 'secondary-header@my.schedule.registration': {
	                    template: '<swap-header></swap-header>'
	                }, 'calendar@my.schedule.registration': {
	                    template: '<scheduler-calendar mode="swap"></scheduler-calendar>'
	                }, 'sections@my.schedule.registration': {
	                    template: "<section-swap-preview></section-swap-preview>\n                      <swap-confirmation-modal></swap-confirmation-modal>"
	                } }) }))
	            .state('my.schedule.registration.swap.sectionTypeList', {
	            url: '/course/:courseId/',
	            data: {
	                viewTitle: 'Swap Section Type List'
	            },
	            views: {
	                'aside@my.schedule.registration': {
	                    template: "\n            <div class=\"hide-print relative term-info\" sibling-mediator>\n              <multi-section-course-tile opened=\"true\" ignore-full-status=\"true\" course=\"getMultiSectionCourse()\"></multi-section-course-tile>\n            </div>\n              ",
	                    controller: function ($scope, ngTermCourseQuery, $stateParams) {
	                        $scope.getMultiSectionCourse = function () {
	                            return _4.find(ngTermCourseQuery.result.planned, { id: parseInt($stateParams.courseId, 10) });
	                        };
	                    }
	                },
	                'header@my.schedule.registration': {
	                    template: '<registration-header></registration-header>'
	                },
	                'secondary-header@my.schedule.registration': {
	                    template: '<swap-header></swap-header>'
	                },
	                'calendar@my.schedule.registration': {
	                    template: '<scheduler-calendar mode="swap"></scheduler-calendar>'
	                },
	                'sections@my.schedule.registration': {
	                    template: "<section-swap-preview></section-swap-preview>\n                      <swap-confirmation-modal></swap-confirmation-modal>"
	                }
	            }
	        })
	            .state('my.schedule.registration.reschedule.sections', {
	            url: 'section_type/:sectionTypeId/ignore_conflicts/:ignoreConflicts',
	            onEnter: function (getUnscheduledSectionsandAvailabilityCommand, $stateParams) {
	                getUnscheduledSectionsandAvailabilityCommand($stateParams.termId, $stateParams.courseId, $stateParams.sectionTypeId);
	            },
	            params: {
	                sectionTypeId: '0'
	            },
	            views: {
	                'aside@my.schedule.registration': {
	                    template: '<unscheduled-sections></unscheduled-sections>'
	                },
	                'header@my.schedule.registration': {
	                    template: '<registration-header></registration-header>'
	                },
	                'calendar@my.schedule.registration': {
	                    template: '<scheduler-calendar></scheduler-calendar>'
	                },
	                'sections@my.schedule.registration': {
	                    template: "<scheduled-sections></scheduled-sections>\n              <phx-calendar-color-key-full></phx-calendar-color-key-full>"
	                },
	                'footer@my.schedule.registration': {
	                    template: "<registration-controls term-id=\"$ctrl.termId\"></registration-controls>"
	                }
	            }
	        })
	            .state('my.schedule.registration.reschedule', {
	            url: 'reschedule/course/:courseId/',
	            views: {
	                'aside@my.schedule.registration': {
	                    template: "\n            <div class=\"hide-print relative term-info\" sibling-mediator>\n              <multi-section-course-tile opened=\"true\" is-rescheduling=\"true\" ignore-full-status=\"true\" course=\"getMultiSectionCourse()\"></multi-section-course-tile>\n            </div>\n              ",
	                    controller: function ($scope, ngTermCourseQuery, $stateParams) {
	                        $scope.getMultiSectionCourse = function () {
	                            return _4.find(ngTermCourseQuery.result.planned, { id: _4.toNumber($stateParams.courseId) });
	                        };
	                    }
	                },
	                'header@my.schedule.registration': {
	                    template: '<registration-header></registration-header>'
	                },
	                'calendar@my.schedule.registration': {
	                    template: '<scheduler-calendar></scheduler-calendar>'
	                },
	                'sections@my.schedule.registration': {
	                    template: "<scheduled-sections></scheduled-sections>\n              <phx-calendar-color-key-full></phx-calendar-color-key-full>"
	                },
	                'footer@my.schedule.registration': {
	                    template: '<registration-controls term-id="$ctrl.termId"></registration-controls>'
	                }
	            }
	        })
	            .state('my.schedule.registration.search', _4.merge({
	            views: {
	                'aside@my.schedule.registration': {
	                    template: '<crn-search></crn-search>'
	                }
	            },
	            data: {
	                viewTitle: 'Scheduler Class Search',
	                preventResetFocus: true
	            }
	        }, state['my.schedule.registration.search']))
	            .state('my.standalonescheduler', state_configuration_1.standAloneSchedulerState)
	            .state('my.schedule.searchandaddcourses', state_configuration_2.searchAndAddCourses)
	            .state('my.schedule.quickscheduler', {
	            url: 'quickscheduler/',
	            templateUrl: 'capability-ng-scheduler/src/views/course_scheduler/modals/suggestions/suggestions.html',
	            controller: 'scheduleSuggestionsController',
	            resolve: {
	                programTermInfo: function ($stateParams, loadProgramTermInfoCommand) { return loadProgramTermInfoCommand($stateParams.termId); },
	                suggestions: function ($stateParams, loadSuggestionsCommand) {
	                    return loadSuggestionsCommand($stateParams.termId);
	                }
	            }
	        })
	            .state('my.schedule.registration.unselected', _4.merge({
	            url: 'unselected/',
	            data: {
	                viewTitle: 'Friendly Reminder'
	            },
	            templateUrl: 'capability-ng-scheduler/src/views/course_scheduler/modals/unselected/unselected.html',
	            controller: 'scheduleUnselectedController'
	        }, state['my.schedule.registration.unselected']))
	            .state('my.schedule.registration.remove_from_waitlist', _4.merge({
	            url: 'remove_from_waitlist/',
	            data: {
	                viewTitle: 'Remove From Waitlist'
	            },
	            templateUrl: 'capability-ng-scheduler/src/views/course_scheduler/modals/drop_course/drop_course.html',
	            controller: 'scheduleDropCourseController'
	        }, state['my.schedule.registration.remove_from_waitlist']))
	            .state('my.schedule.availability', _4.merge({
	            url: 'availability/',
	            templateUrl: 'capability-ng-scheduler/src/views/course_scheduler/modals/availability_preferences/availability_preferences.html',
	            controller: 'schedulePreferencesController'
	        }, state['my.schedule.availability']))
	            .state('my.schedule.registration.sectionCoreqs', {
	            abstract: true
	        })
	            .state('my.schedule.registration.withdraw', {
	            url: 'withdraw/:sectionId',
	            views: {
	                'modal@my.schedule.registration': {
	                    template: '<withdraw-modal></withdraw-modal>'
	                }
	            }
	        })
	            .state('my.schedule.registration.sectionCoreqs.sections', _4.merge(tslib_1.__assign(tslib_1.__assign({}, unscheduleCourseInfo), { data: {
	                viewTitle: 'Section Corequisites'
	            }, views: tslib_1.__assign(tslib_1.__assign({}, unscheduleCourseInfo.views), { 'header@my.schedule.registration': {
	                    template: '<registration-header></registration-header>'
	                }, 'calendar@my.schedule.registration': {
	                    template: '<scheduler-calendar></scheduler-calendar>'
	                }, 'sections@my.schedule.registration': {
	                    template: "<scheduled-sections></scheduled-sections>\n              <phx-calendar-color-key-full></phx-calendar-color-key-full>"
	                }, 'footer@my.schedule.registration': {
	                    template: "<registration-controls term-id=\"$ctrl.termId\"></registration-controls>"
	                } }) }), state['my.schedule.registration.sectionCoreqs.sections']));
	    };
	    SchedulerStateConfiguration.prototype.$get = function () {
	        return {
	            state: this.state
	        };
	    };
	    return SchedulerStateConfiguration;
	}());
	exports.SchedulerStateConfiguration = SchedulerStateConfiguration;
	angular.module('capability-ng-scheduler').provider('schedulerStateConfiguration', SchedulerStateConfiguration);


/***/ }),
/* 720 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var scheduled_section_servant_1 = __webpack_require__(19);
	var term_course_servant_1 = __webpack_require__(14);
	var unscheduled_section_servant_1 = __webpack_require__(788);
	var term_schedule_flags_1 = __webpack_require__(229);
	var scheduler_config_model_1 = __webpack_require__(718);
	var calendar_scheduled_section_servant_1 = __webpack_require__(735);
	var scheduled_section_status_servant_1 = __webpack_require__(227);
	var scheduled_section_tile_servant_1 = __webpack_require__(228);
	var multi_section_servant_1 = __webpack_require__(226);
	var cross_course_linked_section_servant_1 = __webpack_require__(225);
	var section_swap_servant_1 = __webpack_require__(734);
	var timeline_servant_1 = __webpack_require__(219);
	var request_action_servant_1 = __webpack_require__(1950);
	angular.module('capability-ng-scheduler').service('ngUnscheduledSectionServant', unscheduled_section_servant_1.UnscheduledSectionServant);
	angular.module('capability-ng-scheduler').service('ngTermScheduleFlags', term_schedule_flags_1.TermScheduleFlags);
	angular.module('capability-ng-scheduler').service('schedulerConfigModel', scheduler_config_model_1.SchedulerConfigModel);
	angular.module('capability-ng-scheduler').service('ngCalendarScheduledSectionServant', calendar_scheduled_section_servant_1.CalendarScheduledSectionServant);
	angular.module('capability-ng-scheduler').service('ngScheduledSectionStatusServant', scheduled_section_status_servant_1.ScheduledSectionStatusServant);
	angular.module('capability-ng-scheduler').service('ngScheduledSectionTileServant', scheduled_section_tile_servant_1.ScheduledSectionTileServant);
	angular.module('capability-ng-scheduler').service('ngMultiSectionServant', multi_section_servant_1.MultiSectionServant);
	angular.module('capability-ng-scheduler').service('ngSectionSwapServant', section_swap_servant_1.SectionSwapServant);
	angular.module('capability-ng-scheduler').service('ngTermCourseServant', term_course_servant_1.TermCourseServant);
	angular.module('capability-ng-scheduler').service('ngScheduledSectionServant', scheduled_section_servant_1.ScheduledSectionServant);
	angular.module('capability-ng-scheduler').service('ngTimelineServant', timeline_servant_1.TimelineServant);
	angular.module('capability-ng-scheduler').service('ngCrossCourseLinkedSectionServant', cross_course_linked_section_servant_1.CrossCourseLinkedSectionServant);
	angular.module('capability-ng-scheduler').service('ngRequestActionServant', request_action_servant_1.RequestActionServant);


/***/ }),
/* 721 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SectionRegistrationAttribute = /** @class */ (function () {
	    function SectionRegistrationAttribute() {
	    }
	    return SectionRegistrationAttribute;
	}());
	exports.SectionRegistrationAttribute = SectionRegistrationAttribute;
	var SectionRegistrationAttributes = /** @class */ (function () {
	    function SectionRegistrationAttributes(registrationAttributes) {
	        _4.merge(this, registrationAttributes);
	        return this;
	    }
	    SectionRegistrationAttributes.build = function (registrationAttributes) {
	        return new SectionRegistrationAttributes(registrationAttributes);
	    };
	    return SectionRegistrationAttributes;
	}());
	exports.SectionRegistrationAttributes = SectionRegistrationAttributes;


/***/ }),
/* 722 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	exports.RegistrationActivityErrorTextStrategy = new utility_ts_strategy_1.Strategy({
	    ADD: {
	        text: 'could not be registered'
	    },
	    DROP: {
	        text: 'could not be dropped'
	    },
	    SWAP: {
	        text: 'could not be swapped'
	    },
	    WAITLIST: {
	        text: 'could not be added to the waitlist'
	    }
	});


/***/ }),
/* 723 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular.module('capability-ng-scheduler').factory('registrationRecieptCommand', function (defineCommandORM, ngRegistrationReceiptModel) {
	    return defineCommandORM('registrationRecieptCommand', function (deferred, receiptData, showReceipt) {
	        if (receiptData === void 0) { receiptData = []; }
	        if (showReceipt === void 0) { showReceipt = false; }
	        ngRegistrationReceiptModel.clear().write({
	            receiptData: receiptData,
	            showReceipt: showReceipt
	        });
	        deferred.resolve();
	    });
	});


/***/ }),
/* 724 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngRegistrationReceiptModel', function () {
	    return new utility_ts_orm_1.Model({
	        showReceipt: false,
	        receiptData: []
	    });
	});


/***/ }),
/* 725 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var RegistrationReceiptQuery = /** @class */ (function () {
	    function RegistrationReceiptQuery(ngRegistrationReceiptModel) {
	        this.ngRegistrationReceiptModel = ngRegistrationReceiptModel;
	        utility_ts_orm_1.Query.registerQuery(this, ngRegistrationReceiptModel);
	    }
	    RegistrationReceiptQuery.prototype.run = function () {
	        this._result = this.ngRegistrationReceiptModel.read();
	        return this;
	    };
	    Object.defineProperty(RegistrationReceiptQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return RegistrationReceiptQuery;
	}());
	exports.RegistrationReceiptQuery = RegistrationReceiptQuery;
	angular.module('capability-ng-scheduler').service('ngRegistrationReceiptQuery', RegistrationReceiptQuery);


/***/ }),
/* 726 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SchedulerAvailableTerm = /** @class */ (function () {
	    function SchedulerAvailableTerm(sectionLabel) {
	        _4.merge(this, sectionLabel);
	        return this;
	    }
	    SchedulerAvailableTerm.build = function (sectionLabel) {
	        return new SchedulerAvailableTerm(sectionLabel);
	    };
	    return SchedulerAvailableTerm;
	}());
	exports.SchedulerAvailableTerm = SchedulerAvailableTerm;


/***/ }),
/* 727 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SchedulerStudentPlan = /** @class */ (function () {
	    function SchedulerStudentPlan(sectionLabel) {
	        _4.merge(this, sectionLabel);
	        return this;
	    }
	    SchedulerStudentPlan.build = function (sectionLabel) {
	        return new SchedulerStudentPlan(sectionLabel);
	    };
	    return SchedulerStudentPlan;
	}());
	exports.SchedulerStudentPlan = SchedulerStudentPlan;


/***/ }),
/* 728 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.CourseSearchViewTemplate = {
	    hil: 3,
	    render: {
	        templates: ['cached://search_results_list_template'],
	        view_template: '@eab-aip/ai-template-entity/ai-template-entity-list-filter'
	    },
	    runtime: {
	        startup: [
	            '[reference]{ /view }',
	            '[reference]{ /entities }',
	            '[reference]{ /entity_filters }',
	            '[reference]{ /entities_bulk_actions }'
	        ],
	        tasks: {
	            view: {
	                $is: 'task',
	                model: {
	                    title: 'Search for Courses',
	                    filter_heading: 'Search Preferences',
	                    list_heading: 'Search Results'
	                },
	                settings: {
	                    workflow: {
	                        disallow_borders: false,
	                        settings: {
	                            hidden: {
	                                visibility_control_left: false
	                            }
	                        }
	                    }
	                }
	            },
	            entity_filters: {
	                $is: 'task',
	                model: '[reference]{ /filter_preferences/value }',
	                type: {
	                    fields: {
	                        $is: 'drf_api',
	                        settings: {
	                            uri: '/api/v1/cat/course_search/fields/?application=scheduler',
	                            request: {
	                                headers: {
	                                    'user-mode': 'student'
	                                }
	                            },
	                            options: {
	                                authorization: {
	                                    type: 'csrf'
	                                }
	                            },
	                            interceptors: ['/api/request/authorization']
	                        },
	                        after_modifiers: [
	                            {
	                                $is: 'series',
	                                model_override: {
	                                    settings: {
	                                        $is: 'condition',
	                                        settings: {
	                                            if: {
	                                                left: '[value]{ /render_type }',
	                                                comparator: '==',
	                                                right: 'combobox'
	                                            },
	                                            is_true: {
	                                                $is: 'f1',
	                                                settings: {
	                                                    method: 'merge',
	                                                    arguments: [
	                                                        'onto',
	                                                        {
	                                                            $is: 'f1',
	                                                            settings: {
	                                                                method: 'read',
	                                                                arguments: ['/settings', {}]
	                                                            }
	                                                        },
	                                                        { multiple: true }
	                                                    ]
	                                                }
	                                            }
	                                        }
	                                    }
	                                }
	                            }
	                        ]
	                    }
	                }
	            },
	            add_course_to_term: {
	                $is: 'api',
	                before_modifiers: [],
	                settings: {
	                    uri: "/api/v1/ap3/studentplans/studentplanitems-infer-term/",
	                    request: {
	                        manual: true,
	                        method: 'POST',
	                        headers: {
	                            'user-mode': 'student'
	                        }
	                    },
	                    options: {
	                        authorization: {
	                            type: 'csrf'
	                        }
	                    },
	                    interceptors: ['/api/request/authorization']
	                },
	                failure: [
	                    {
	                        $is: 'exec',
	                        settings: {
	                            path: '/hip/fn/notify',
	                            argument: {
	                                status: 'warning',
	                                title: "Error with adding course(s) happened, please try again"
	                            }
	                        }
	                    }
	                ],
	                success: [
	                    {
	                        $is: 'exec',
	                        before_guards: [
	                            {
	                                $is: 'guard',
	                                settings: {
	                                    comparator: '>=',
	                                    left: '[value]{/success/length}',
	                                    right: 1
	                                }
	                            }
	                        ],
	                        model_fallback: true,
	                        settings: {
	                            path: '/hip/fn/notify',
	                            argument: {
	                                title: 'Successfully added&nbsp;[value]{/success/length} &nbsp;course(s)',
	                                status: 'success',
	                                details: {
	                                    $is: 'condition',
	                                    settings: {
	                                        if: {
	                                            comparator: '>=',
	                                            left: '[value]{/success/length}',
	                                            right: 1
	                                        },
	                                        is_false: '',
	                                        is_true: {
	                                            $is: 'join',
	                                            operator: 'append',
	                                            tokens: [
	                                                "<ul style=\"margin-top: 0rem; padding-left: 1rem\">",
	                                                {
	                                                    $is: 'series',
	                                                    settings: {
	                                                        path: '/success'
	                                                    },
	                                                    model: '<li>[value]{/course_title}</li>',
	                                                    after_modifiers: [
	                                                        {
	                                                            $is: 'f1',
	                                                            settings: {
	                                                                method: 'join',
	                                                                arguments: ['']
	                                                            }
	                                                        }
	                                                    ]
	                                                },
	                                                '</ul>'
	                                            ]
	                                        }
	                                    }
	                                }
	                            }
	                        }
	                    },
	                    {
	                        $is: 'exec',
	                        model_fallback: true,
	                        before_guards: [
	                            {
	                                $is: 'guard',
	                                settings: {
	                                    comparator: '>=',
	                                    left: '[value]{ /failures/length }',
	                                    right: 1
	                                }
	                            }
	                        ],
	                        settings: {
	                            path: '/hip/fn/notify',
	                            argument: {
	                                title: "Failed to add&nbsp;[value]{/failures/length} &nbsp;course(s)",
	                                status: 'warning',
	                                details: {
	                                    $is: 'join',
	                                    operator: 'append',
	                                    tokens: [
	                                        "<ul style=\"margin-top: 0rem; padding-left: 1rem\">",
	                                        {
	                                            $is: 'series',
	                                            settings: {
	                                                path: '/failures'
	                                            },
	                                            model: '<li>[value]{/message}</li>',
	                                            after_modifiers: [
	                                                {
	                                                    $is: 'f1',
	                                                    settings: {
	                                                        method: 'join',
	                                                        arguments: ['']
	                                                    }
	                                                }
	                                            ]
	                                        },
	                                        '</ul>'
	                                    ]
	                                }
	                            }
	                        }
	                    }
	                ]
	            },
	            filter_api: {
	                $is: 'api',
	                before_modifiers: [
	                    {
	                        $is: 'f1',
	                        settings: {
	                            method: 'filter',
	                            arguments: [function (c) { return c !== ''; }]
	                        }
	                    },
	                    '[assignment]{ /filter_preferences }'
	                ],
	                settings: {
	                    uri: "/api/v1/cat/course_search/",
	                    request: {
	                        manual: true,
	                        method: 'GET',
	                        headers: {
	                            'user-mode': 'student'
	                        }
	                    },
	                    options: {
	                        authorization: {
	                            type: 'csrf'
	                        }
	                    },
	                    interceptors: ['/api/request/authorization', '/api/request/query', '/api/response/query'],
	                    include_field: ''
	                },
	                failure: [
	                    {
	                        $is: 'exec',
	                        settings: {
	                            path: '/hip/fn/notify',
	                            argument: {
	                                status: 'warning',
	                                title: "Error with Course Search, please try again"
	                            }
	                        }
	                    },
	                    '[invocation]{ /entity_filters }'
	                ],
	                success: ['[invocation]{ /entity_filters }', '[assignment]{ /entities }']
	            },
	            filter_preferences: {
	                $is: 'task'
	            },
	            entities_bulk_actions: {
	                $is: 'task',
	                type: {
	                    fields: {
	                        add_course_to_term: {
	                            title: 'Add Courses To Term',
	                            value: {
	                                in: '[reference] { /add_course_to_term }'
	                            }
	                        }
	                    }
	                }
	            },
	            entities: {
	                $is: 'task',
	                settings: {
	                    mode: 'item',
	                    template: 'cached://search_results_list_template',
	                    allow_preprocessed_input: true,
	                    list: {
	                        hidden: {
	                            add_row: true,
	                            clear_all_limits: true,
	                            global_search: true,
	                            pagination_controls: false,
	                            pagination_row_size: false,
	                            pagination_row_message: false
	                        },
	                        subtitle: 'Courses',
	                        allow: {
	                            row_selections: true
	                        },
	                        messages: {
	                            bulk_actions: {
	                                title: 'Add to Term',
	                                description: 'Perform bulk add on selected row(s)'
	                            },
	                            state_initial: {
	                                title: 'Enter your search criteria to find courses offered this term',
	                                description: 'Note that not all courses offered are guaranteed to have availability'
	                            },
	                            state_loading: {
	                                title: 'Fetching Course Results',
	                                description: ''
	                            },
	                            state_empty: {
	                                title: 'No Courses Found',
	                                description: '0 courses found. Adjust your filter preferences to view courses.'
	                            }
	                        }
	                    }
	                }
	            }
	        }
	    }
	};


/***/ }),
/* 729 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.SearchAndCoursesConstants = {
	    FEATURE_TOGGLE_NAME: 'reg-standalone_scheduler'
	};


/***/ }),
/* 730 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var search_and_add_courses_constants_1 = __webpack_require__(729);
	var SearchAndCourseFeatureFacade = /** @class */ (function () {
	    function SearchAndCourseFeatureFacade(appConfigModel) {
	        this.appConfigModel = appConfigModel;
	    }
	    Object.defineProperty(SearchAndCourseFeatureFacade.prototype, "isFeatureEnabled", {
	        get: function () {
	            return this.appConfigModel.isFeatureEnabled(search_and_add_courses_constants_1.SearchAndCoursesConstants.FEATURE_TOGGLE_NAME);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return SearchAndCourseFeatureFacade;
	}());
	exports.SearchAndCourseFeatureFacade = SearchAndCourseFeatureFacade;
	angular.module('capability-ng-scheduler').service('ngSearchAndCourseFeatureFacade', SearchAndCourseFeatureFacade);


/***/ }),
/* 731 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.searchAndAddCourses = {
	    url: 'searchandaddcourses/',
	    template: '<search-and-add-courses></search-and-add-courses>',
	    resolve: {
	        authorization: function (getCourseSearchAuthorizationCommand) {
	            return getCourseSearchAuthorizationCommand();
	        },
	        activeTerm: function ($stateParams, loadProgramTermInfoCommand) {
	            return loadProgramTermInfoCommand($stateParams.termId);
	        },
	        sections: function ($stateParams, getTermCoursesandScheduledSectionsCommand) {
	            return getTermCoursesandScheduledSectionsCommand($stateParams.termId);
	        },
	        studentPlans: function (fetchStudentActivePlanDetailsCommand, schedulerConfig) { return fetchStudentActivePlanDetailsCommand(); }
	    }
	};


/***/ }),
/* 732 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var StandaloneSchedulerDetailsQuery = /** @class */ (function () {
	    function StandaloneSchedulerDetailsQuery(QueryMediator, ngStandaloneNavigationModel) {
	        this.QueryMediator = QueryMediator;
	        this.ngStandaloneNavigationModel = ngStandaloneNavigationModel;
	        QueryMediator.registerQuery(this, ngStandaloneNavigationModel);
	    }
	    StandaloneSchedulerDetailsQuery.prototype.run = function () {
	        var standaloneNavDetails = this.ngStandaloneNavigationModel.read();
	        this._result = {
	            userId: standaloneNavDetails.userId,
	            apiCurrentTerm: standaloneNavDetails.apiCurrentTerm,
	            isStandaloneSchedulerActive: _4.isNumber(standaloneNavDetails.userId)
	        };
	        return this;
	    };
	    Object.defineProperty(StandaloneSchedulerDetailsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return StandaloneSchedulerDetailsQuery;
	}());
	exports.StandaloneSchedulerDetailsQuery = StandaloneSchedulerDetailsQuery;
	angular.module('capability-ng-scheduler').service('ngStandaloneSchedulerDetailsQuery', StandaloneSchedulerDetailsQuery);


/***/ }),
/* 733 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.standAloneSchedulerState = {
	    url: 'standalonescheduler/',
	    resolve: {
	        redirectToScheduler: function (navigateToSchedulerCommand, _Account) {
	            return navigateToSchedulerCommand();
	        }
	    }
	};


/***/ }),
/* 734 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var term_course_servant_1 = __webpack_require__(14);
	var SectionSwapServant = /** @class */ (function () {
	    function SectionSwapServant($state, $stateParams, ngCourseSectionSwapModel, ngTermCoursesDatasource, appConfigModel) {
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	        this.ngCourseSectionSwapModel = ngCourseSectionSwapModel;
	        this.ngTermCoursesDatasource = ngTermCoursesDatasource;
	        this.appConfigModel = appConfigModel;
	    }
	    SectionSwapServant.prototype.isSwapFeatureEnabled = function () {
	        return this.appConfigModel.model.member_features['reg-section_swap'];
	    };
	    SectionSwapServant.prototype.isPermissionPinsFeatureEnabled = function () {
	        return this.appConfigModel.model.member_features['reg-class_permission'];
	    };
	    SectionSwapServant.prototype.isInSwapMode = function () {
	        return _4.includes(this.$state.current.name || '', 'swap');
	    };
	    SectionSwapServant.prototype.isInSwapCourseMode = function () {
	        return this.isInSwapMode() && _4.isEqual(_4.get(this.$stateParams, 'swapCourse'), 'true');
	    };
	    SectionSwapServant.prototype.isInSectionTypeListUrl = function () {
	        return _4.includes(this.$state.current.name || '', 'sectionTypeList');
	    };
	    SectionSwapServant.prototype.isInCourseSectionsUrl = function () {
	        return _4.includes(this.$state.current.name || '', 'courseSections');
	    };
	    SectionSwapServant.prototype.isInCourseListUrl = function (currentStateName) {
	        if (currentStateName === void 0) { currentStateName = ''; }
	        return currentStateName === 'my.schedule.registration.swap';
	    };
	    SectionSwapServant.prototype.isPreviousStateSectionTypeList = function () {
	        return _4.includes(_4.get(this.$state, '__previousRoute__.state.name') || '', 'sectionTypeList');
	    };
	    SectionSwapServant.prototype.sectionSwapType = function (section) {
	        var FROM_VALUE = 'from';
	        var TO_VALUE = 'to';
	        if (_4.find(this.ngCourseSectionSwapModel.read().swap_from_section_ids, { id: section.id })) {
	            return FROM_VALUE;
	        }
	        if (_4.find(this.ngCourseSectionSwapModel.read().swap_to_section_ids, { id: section.id })) {
	            return TO_VALUE;
	        }
	        return '';
	    };
	    SectionSwapServant.prototype.gotoSwapSectionMode = function (section) {
	        var course = _4.find(this.ngTermCoursesDatasource.read(), { id: section.course });
	        if (term_course_servant_1.TermCourseServant.isMultiSectionCourse(course)) {
	            this.$state.go("my.schedule.registration.swap.sectionTypeList", {
	                courseId: section.course,
	                sectionTypeId: section.section_type,
	                ignoreConflicts: true,
	                swapCourse: false
	            });
	        }
	        else {
	            this.$state.go("my.schedule.registration.swap.courseSections", {
	                courseId: section.course,
	                sectionTypeId: section.section_type,
	                ignoreConflicts: true,
	                swapCourse: false
	            });
	        }
	    };
	    SectionSwapServant.prototype.gotoSwapCourseMode = function (course) {
	        this.$state.go("my.schedule.registration.swap", {
	            courseId: course.id,
	            ignoreConflicts: true,
	            swapCourse: true
	        });
	    };
	    SectionSwapServant.prototype.showSwapBackButton = function (swapCourse) {
	        var showButton = true;
	        if (swapCourse === 'true' && this.isInCourseListUrl(this.$state.current.name)) {
	            showButton = false;
	        }
	        else if (swapCourse === 'false') {
	            showButton = false;
	            if (this.isPreviousStateSectionTypeList()) {
	                showButton = true;
	            }
	        }
	        return showButton;
	    };
	    SectionSwapServant.prototype.getPreviousSwapState = function (swapCourse) {
	        var backState = '';
	        var swappingCourse = swapCourse === 'true';
	        var swapRoot = 'my.schedule.registration.swap';
	        if (swappingCourse) {
	            if (this.isInCourseSectionsUrl() && !this.isPreviousStateSectionTypeList()) {
	                backState = swapRoot;
	            }
	            if (this.isInCourseSectionsUrl() && this.isPreviousStateSectionTypeList()) {
	                backState = swapRoot + ".sectionTypeList";
	            }
	            if (this.isInSectionTypeListUrl()) {
	                backState = swapRoot;
	            }
	        }
	        else {
	            if (this.isInCourseSectionsUrl()) {
	                backState = swapRoot + ".sectionTypeList";
	            }
	        }
	        return backState;
	    };
	    SectionSwapServant.prototype.getSwapFromIds = function (model) {
	        return _4.compact(_4.map(model.read().swap_from_section_ids, function (item) { return item.id; }));
	    };
	    SectionSwapServant.prototype.getSwapToIds = function (model) {
	        return _4.compact(_4.map(model.read().swap_to_section_ids, function (item) { return item.id; }));
	    };
	    return SectionSwapServant;
	}());
	exports.SectionSwapServant = SectionSwapServant;


/***/ }),
/* 735 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var CalendarScheduledSectionServant = /** @class */ (function () {
	    function CalendarScheduledSectionServant(ngUnscheduledSectionServant, getCSSClassForString, CampusLocationEnum, ngScheduledSectionStatusServant, ngTermCourseServant, ngSectionTypeFilters, ngAllSectionsQuery, ngCourseSectionSwapModel) {
	        this.ngUnscheduledSectionServant = ngUnscheduledSectionServant;
	        this.getCSSClassForString = getCSSClassForString;
	        this.CampusLocationEnum = CampusLocationEnum;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.ngTermCourseServant = ngTermCourseServant;
	        this.ngSectionTypeFilters = ngSectionTypeFilters;
	        this.ngAllSectionsQuery = ngAllSectionsQuery;
	        this.ngCourseSectionSwapModel = ngCourseSectionSwapModel;
	    }
	    CalendarScheduledSectionServant.prototype.buildUnavailableTimes = function (unavailableTimes) {
	        return _4.compact(_4.map(unavailableTimes, function (unavailableTime) { return ({
	            id: unavailableTime.id,
	            day_of_week: unavailableTime.day.value.ordinal,
	            from_tm: unavailableTime.from.format('HH:mm:ss'),
	            to_tm: unavailableTime.to.format('HH:mm:ss'),
	            repeats_every: 1,
	            bkgColorClass: 'clr-tertiary-color_6_bkg',
	            content: '',
	            isLocked: false
	        }); }));
	    };
	    // TODO: Refactor large function
	    /* tslint:disable:cognitive-complexity */
	    CalendarScheduledSectionServant.prototype.buildCalendarSections = function (scheduledSections) {
	        var _this = this;
	        var NOT_SURE_DAY = 8;
	        var calendarSections = [];
	        _4.each(scheduledSections, function (scheduledSection) {
	            var sectionName = _4.get(scheduledSection, '_course.cd', '');
	            var sectionDays = _4.map(scheduledSection._section_times, 'day_of_week');
	            var hasOnlineSection = _4.get(scheduledSection, '_campus.is_online', false);
	            var hasOneDayMinimum = _4.size(_4.uniq(sectionDays)) > 0;
	            var isWaitlisted = _this.ngScheduledSectionStatusServant.isStatusWaitlisted(scheduledSection);
	            var isRegistered = _this.ngScheduledSectionStatusServant.isStatusRegistered(scheduledSection) ||
	                _this.ngScheduledSectionStatusServant.isStatusCompleted(scheduledSection) ||
	                _this.ngScheduledSectionStatusServant.isStatusInProgress(scheduledSection);
	            var isWithdrawn = _this.ngScheduledSectionStatusServant.isStatusWithdrawn(scheduledSection);
	            // FIXME: Conflicting info not available from server.
	            var isConflicting = !_4.isEmpty(scheduledSection._availability) &&
	                _this.ngUnscheduledSectionServant.isSectionConflicting(scheduledSection);
	            var hasWarning = _this.showWarningIcon(scheduledSection);
	            var isSwapFrom = _4.some(_this.ngCourseSectionSwapModel.read().swap_from_section_ids, {
	                id: scheduledSection.id
	            });
	            var isSwapTo = _4.some(_this.ngCourseSectionSwapModel.read().swap_to_section_ids, { id: scheduledSection.id });
	            var isShortSection = _this.ngSectionTypeFilters.isSectionDurationShorterThanTerm(scheduledSection);
	            var iconsMap = {
	                warning: isConflicting || hasWarning,
	                laptop: hasOnlineSection && !hasOneDayMinimum,
	                blended: hasOnlineSection && hasOneDayMinimum,
	                users: isWaitlisted,
	                skating: isShortSection
	            };
	            var hoverContent = {
	                title: scheduledSection._course
	                    ? scheduledSection._course.cd + " - " + scheduledSection._course.title
	                    : "" + scheduledSection.cd,
	                hoverContent: "<div class=\"pam min-w-360\"><calendar-scheduled-section section-id=\"" + scheduledSection.id + "\"></calendar-scheduled-section></div>"
	            };
	            var courseColor = _this.getCSSClassForString(_4.get(scheduledSection, '_course.nk', ''));
	            var sectionsWithTimes = _4.filter(scheduledSection._section_times, function (c) { return c.day_of_week < 8 && c.to_tm && c.from_tm; });
	            var section = scheduledSection;
	            _4.each(sectionsWithTimes, function (sectionTime) {
	                calendarSections.push({
	                    id: scheduledSection.id,
	                    day_of_week: sectionTime.day_of_week,
	                    from_tm: sectionTime.from_tm || '00:00:00',
	                    to_tm: sectionTime.to_tm || '00:00:00',
	                    from_dt: sectionTime.from_dt || '',
	                    to_dt: sectionTime.to_dt || '',
	                    repeats_every: 1,
	                    bkgColorClass: courseColor,
	                    content: sectionName,
	                    hover: hoverContent,
	                    isLocked: true,
	                    isWithdrawn: isWithdrawn,
	                    isRegistered: isRegistered,
	                    isWaitlisted: isWaitlisted,
	                    isSwapFrom: isSwapFrom,
	                    isSwapTo: isSwapTo,
	                    isWarning: hasWarning || isConflicting,
	                    icons: _4.keys(_4.pickBy(iconsMap, function (value, key) { return value; })),
	                    section: section
	                });
	            });
	            if (hasOnlineSection) {
	                var onlineSectionIcon = 'laptop';
	                calendarSections.push({
	                    id: scheduledSection.id,
	                    day_of_week: NOT_SURE_DAY,
	                    from_tm: '00:00:00',
	                    to_tm: '00:00:00',
	                    repeats_every: 1,
	                    bkgColorClass: courseColor,
	                    content: sectionName,
	                    hover: hoverContent,
	                    isLocked: true,
	                    isRegistered: isRegistered,
	                    isWithdrawn: isWithdrawn,
	                    isWarning: hasWarning || isConflicting,
	                    isWaitlisted: isWaitlisted,
	                    isSwapFrom: isSwapFrom,
	                    isSwapTo: isSwapTo,
	                    icons: hasWarning || isConflicting ? ['warning', onlineSectionIcon] : [onlineSectionIcon],
	                    section: section
	                });
	            }
	        });
	        var nonWithdrawnOfflineOnlineCourses = _4.partition(_4.filter(calendarSections, function (calSection) { return !calSection.isWithdrawn; }), function (o) { return o.day_of_week !== NOT_SURE_DAY; });
	        return _4.compact(tslib_1.__spreadArrays(nonWithdrawnOfflineOnlineCourses[0], _4.uniqBy(nonWithdrawnOfflineOnlineCourses[1], 'id')));
	    };
	    CalendarScheduledSectionServant.prototype.removeInvalidTime = function (times) {
	        return _4.remove(times, function (item) { return item.day_of_week !== 8 && item.to_tm === '00:00:00'; });
	    };
	    CalendarScheduledSectionServant.prototype.showWarningIcon = function (section) {
	        // Show warning when missing coreq or prereq.
	        var isMissingCoReqOrPreReq = !_4.isEmpty(_4.get(section, '_course._missing_prereqs')) ||
	            !_4.isEmpty(_4.get(section, '_course._missing_coreqs'));
	        return isMissingCoReqOrPreReq;
	    };
	    return CalendarScheduledSectionServant;
	}());
	exports.CalendarScheduledSectionServant = CalendarScheduledSectionServant;


/***/ }),
/* 736 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var section_builder_1 = __webpack_require__(233);
	var _4 = __webpack_require__(1);
	var RegistrationSection = /** @class */ (function (_super) {
	    tslib_1.__extends(RegistrationSection, _super);
	    function RegistrationSection(regSection) {
	        var _this = _super.call(this, regSection) || this;
	        _4.merge(_this, regSection);
	        return _this;
	    }
	    RegistrationSection.build = function (regSection) {
	        return new RegistrationSection(regSection);
	    };
	    return RegistrationSection;
	}(section_builder_1.Section));
	exports.RegistrationSection = RegistrationSection;


/***/ }),
/* 737 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var scheduled_section_servant_1 = __webpack_require__(19);
	var _4 = __webpack_require__(1);
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	// TODO: Loop over all sections and drop each
	angular
	    .module('capability-ng-scheduler')
	    .service('dropCourseSectionsCommand', function dropCourseSectionsCommand($http, defineCommand, log, $q, $timeout, ngSectionsDatasource, getCourseSchedulerCommand, ngScheduledSectionServant, pusherService, ngSchedulerModel, ngTermCoursesDatasource, QueryMediator, ngRegistrationAlertsServant, ngRegistrationActivityDatasource, ngRegistrationFailureModel, ngRegisterSectionsDatasource, ngRegistrationCallbackServant, ngRegistrationReceiptServant, registrationActivityCommand, ngTermSectionTypesDatasource, registrationRecieptCommand, updateCalendarSectionTimesCommand, ngSchedulerNotificationDelegate, removeSectionSelectionCommand) {
	    'use strict';
	    return defineCommand('dropCourseSectionsCommand', function (deferred, termId, courseIds, isWaitlist, sessionId, section_pins, sectionIds, student_credentials) {
	        if (sessionId === void 0) { sessionId = -1; }
	        if (section_pins === void 0) { section_pins = {}; }
	        if (sectionIds === void 0) { sectionIds = []; }
	        // If no courseIds, drop action is coming from non-pin multi-drop so do NOT do any checks
	        var skipChecks = _4.isEmpty(courseIds);
	        var statusCheck = function (section) {
	            return isWaitlist
	                ? scheduled_section_servant_1.ScheduledSectionServant.isSectionWaitListed(section)
	                : ngScheduledSectionServant.isSectionRegistered(section);
	        };
	        var sectionsEligibleForDrop = !skipChecks
	            ? _4.filter(ngSectionsDatasource.read(), function (section) { return _4.includes(courseIds, section.course) && statusCheck(section); })
	            : [];
	        if (!skipChecks && sessionId && _4.toString(sessionId) !== '-1') {
	            var sectionTypeIdsForSession_1 = _4.compact(_4.map(_4.filter(ngTermSectionTypesDatasource.read(), function (sectionType) { return _4.toString(sectionType.session) === _4.toString(sessionId); }), 'id'));
	            _4.remove(sectionsEligibleForDrop, function (section) { return !_4.includes(sectionTypeIdsForSession_1, section.section_type); });
	        }
	        var sectionIdsToDrop = _4.isEmpty(sectionIds)
	            ? _4.map(sectionsEligibleForDrop, function (section) { return section['id']; })
	            : sectionIds;
	        var sectionStatusesBeforeRegistration = {};
	        _4.each(sectionIdsToDrop, function (sectionId) {
	            var sctn = ngSectionsDatasource.get(sectionId);
	            if (sctn) {
	                sectionStatusesBeforeRegistration[sectionId] = sctn.status;
	            }
	        });
	        if (_4.isEmpty(sectionIdsToDrop)) {
	            deferred.reject();
	            return;
	        }
	        var callback_function = function (data) {
	            registrationActivityCommand(termId).then(function (d) {
	                var sectionsReceiptData = _4.filter(ngRegistrationReceiptServant.getReceiptData(sectionIdsToDrop), 'isActiveRecord');
	                registrationRecieptCommand(sectionsReceiptData, true);
	            });
	            ngRegistrationAlertsServant.hidePendingAlert();
	            var dropOutcomeData = _4.compact(_4.map(sectionIdsToDrop, function (id) { return data[id]; }));
	            var sectionDropOutcome = _4.partition(dropOutcomeData, function (sectionOutcome) { return sectionOutcome.success; });
	            // if success
	            _4.each(sectionDropOutcome[0], function (sectionOutcome) {
	                var section = ngSectionsDatasource.get(sectionOutcome.id);
	                if (section) {
	                    section.status = scheduled_section_status_enum_1.ScheduledSectionStatus.UNSCHEDULED;
	                    ngSectionsDatasource.put(section);
	                }
	                var removeSectionFromReg = ngRegisterSectionsDatasource.get(sectionOutcome.id);
	                if (removeSectionFromReg) {
	                    ngRegisterSectionsDatasource.del(sectionOutcome.id);
	                }
	                removeSectionSelectionCommand(sectionOutcome.id);
	                // Get and refresh sections
	                getCourseSchedulerCommand(termId);
	                ngRegistrationCallbackServant.removeSectionError(sectionOutcome.id);
	            });
	            // if failed
	            _4.each(sectionDropOutcome[1], function (sectionOutcome) {
	                var section = ngSectionsDatasource.get(sectionOutcome.id);
	                if (section) {
	                    section.status = sectionStatusesBeforeRegistration[sectionOutcome.id];
	                    ngSectionsDatasource.put(section);
	                }
	                ngRegistrationFailureModel.put({
	                    type: isWaitlist ? 'WAITLIST_DROP' : 'DROP',
	                    id: sectionOutcome.id,
	                    message: sectionOutcome.message
	                });
	            });
	            // TODO: TECHDEBT
	            var RUN_QUERY_DELAY = 350;
	            $timeout(function () {
	                QueryMediator.runQueries(ngSectionsDatasource);
	            }, RUN_QUERY_DELAY);
	            updateCalendarSectionTimesCommand();
	            deferred.resolve(QueryMediator.runQueries(ngSectionsDatasource, ngTermCoursesDatasource, ngRegisterSectionsDatasource));
	            // Show info alerts for non registered sections
	            ngRegistrationAlertsServant.showOtherRequiredSectionsAlert(dropOutcomeData);
	        };
	        _4.each(sectionIdsToDrop, function (id) {
	            var section = ngSectionsDatasource.get(id);
	            if (section) {
	                section.status = scheduled_section_status_enum_1.ScheduledSectionStatus.PENDING;
	                ngSectionsDatasource.put(section);
	            }
	        });
	        QueryMediator.runQueries(ngSectionsDatasource, ngTermCoursesDatasource);
	        ngRegistrationAlertsServant.showPendingAlert();
	        // Call drop HTTP request
	        var SECONDS_60 = 60000;
	        var timeout = $q.defer();
	        $timeout(function () {
	            timeout.resolve();
	        }, SECONDS_60);
	        $http({
	            method: 'POST',
	            url: "/reg/register/term/" + termId + "/",
	            data: tslib_1.__assign({ method: 'DROP', sections: sectionIdsToDrop, section_pins: section_pins }, student_credentials),
	            cache: false,
	            timeout: timeout.promise
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            pusherService.bindToPusherEvent(ngSchedulerModel.read().channel_name, 'registration_outcome_drop', callback_function);
	        })
	            .catch(function (_a) {
	            var data = _a.data;
	            log.issue('failed to register courses, please try again');
	            if (_4.has(data, 'detail')) {
	                ngSchedulerNotificationDelegate.warn(data.detail);
	            }
	            _4.each(sectionIdsToDrop, function (id) {
	                var section = ngSectionsDatasource.get(id);
	                if (section) {
	                    section.status = scheduled_section_status_enum_1.ScheduledSectionStatus.REGISTERED;
	                    ngSectionsDatasource.put(section);
	                }
	            });
	            QueryMediator.runQueries(ngSectionsDatasource, ngTermCoursesDatasource);
	            deferred.reject(data);
	        });
	    });
	});


/***/ }),
/* 738 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .factory('getCourseSchedulerCommand', function ($http, defineCommand, QueryMediator, ngCampusesDatasource, ngLocationsDatasource, ngSectionTimesDatasource, ngSectionsDatasource, ngSchedulerModel, ngWaitlistStatusDatasource, ngTermCoursesDatasource, ngSectionLabelsDatasource, ngRegisterSectionsDatasource, ngRegistrationWaitlistPositionModel, ngSectionAvailabilityDatasource, ngLinkedSectionsModel, $q, ngLoadCrossCourseLinkedSectionsFacade, log) {
	    return defineCommand('getCourseSchedulerCommand', function (deferred, termId) {
	        return $http({
	            method: 'GET',
	            url: "reg/course_schedule/term/" + termId + "/"
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            ngCampusesDatasource.write(data.campus);
	            ngLocationsDatasource.write(data.location);
	            ngLinkedSectionsModel.clear().write(data.section_link);
	            ngSectionTimesDatasource.write(data.section_time);
	            ngSectionLabelsDatasource.write(data.section_labels);
	            ngWaitlistStatusDatasource.write(data.section_status);
	            ngSectionAvailabilityDatasource.clear().write(data.section_status);
	            ngRegistrationWaitlistPositionModel.clear();
	            ngSectionsDatasource.write(data.section);
	            _4.each(data.waitlist_position, function (position) {
	                ngRegistrationWaitlistPositionModel.put({
	                    place_in_waitlist: position.place_in_waitlist,
	                    waitlist_position: position.position,
	                    section: position.section
	                });
	            });
	            var missingSections = ngLoadCrossCourseLinkedSectionsFacade.loadCrossCourseLinkedSections(data.section_link);
	            $q.all(missingSections).then(function () {
	                deferred.resolve(QueryMediator.runQueries(ngSchedulerModel));
	            });
	        })
	            .catch(function (e) {
	            log.issue('Failed to get scheduled sections for this term');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 739 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .factory('getPusherSeatsAvailableCommand', function ($http, $timeout, ngSectionsDatasource, ngScheduledSectionsQuery, defineCommandORM, QueryMediator, ngSchedulerModel, ngWaitlistStatusDatasource, ngSectionAvailabilityDatasource, pusherService, ngTermScheduleFlags, $stateParams, ngCalendarTimesModel, ngComponentCommunicatorService, updateCalendarSectionTimesCommand, log) {
	    return defineCommandORM('getPusherSeatsAvailableCommand', function (deferred, sectionIds) {
	        if (!ngTermScheduleFlags.isOneClickRegistrationEnabled()) {
	            return deferred.resolve();
	        }
	        var termId = parseInt($stateParams.termId, 10);
	        var seatsNeededSectionIds;
	        if (sectionIds) {
	            seatsNeededSectionIds = sectionIds;
	        }
	        else {
	            var seatsNeededSections = tslib_1.__spreadArrays(ngScheduledSectionsQuery.result.scheduledSections, ngScheduledSectionsQuery.result.scheduledMultiSections, ngScheduledSectionsQuery.result.multiSectionsWithTiedUnscheduledSectionTypes, ngScheduledSectionsQuery.result.waitlistedSections);
	            seatsNeededSectionIds = _4.map(seatsNeededSections, 'id');
	        }
	        if (_4.isEmpty(seatsNeededSectionIds)) {
	            deferred.resolve();
	        }
	        var pusher_callback_function = function (data) {
	            // Typescript is giving trouble using _4.each();
	            for (var key in data) {
	                var sectionId = parseInt(key, 10);
	                var section_waitlist_availability = ngWaitlistStatusDatasource.get(sectionId);
	                var section_availability = ngSectionAvailabilityDatasource.get(sectionId);
	                if (section_waitlist_availability) {
	                    section_waitlist_availability.avail_seats = data[key].avail_seats;
	                    section_waitlist_availability.is_seat_available = data[key].is_seat_available;
	                    ngWaitlistStatusDatasource.put(section_waitlist_availability);
	                }
	                else {
	                    ngWaitlistStatusDatasource.put({
	                        avail_seats: data[key].avail_seats,
	                        id: sectionId,
	                        is_waitlist_allowed: false,
	                        is_waitlist_full: undefined,
	                        is_seat_available: true,
	                        is_auto_waitlist: _4.get(data[key], 'is_auto_waitlist', false),
	                        last_refresh_ts: _4.get(data[key], 'last_refresh_ts', ''),
	                        linked_section_coreqs_satisfied: _4.get(data[key], 'linked_section_coreqs_satisfied', true),
	                        has_linked_section_coreqs: _4.get(data[key], 'has_linked_section_coreqs', false)
	                    });
	                }
	                if (section_availability) {
	                    section_availability.avail_seats = data[key].avail_seats;
	                    section_availability.is_seat_available = data[key].is_seat_available;
	                    ngSectionAvailabilityDatasource.put(section_availability);
	                }
	            }
	            updateCalendarSectionTimesCommand().finally(function () {
	                QueryMediator.runQueries(ngSectionsDatasource, ngWaitlistStatusDatasource, ngSectionAvailabilityDatasource, ngCalendarTimesModel);
	                deferred.resolve();
	                ngComponentCommunicatorService.publish('SEATS_INFO_UPDATED');
	            });
	        };
	        pusherService.bindToPusherEvent(ngSchedulerModel.read().channel_name, 'seats_available', pusher_callback_function);
	        $http
	            .post('reg/seatavailability/', {
	            term: termId,
	            sections: seatsNeededSectionIds
	        })
	            .catch(function (_a) {
	            var data = _a.data;
	            log.issue('failed to update available seats');
	            deferred.reject(data);
	        });
	    });
	});


/***/ }),
/* 740 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .factory('getSchedulerConfigCommand', function ($http, defineCommandORM, ngSchedulerModel, log) {
	    return defineCommandORM('getSchedulerConfigCommand', function (deferred, termId) {
	        return $http({
	            method: 'GET',
	            url: "item/customtext"
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            ngSchedulerModel.write({
	                customtext: _4.keyBy(data, 'nk')
	            });
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue('Failed to get scheduler configuration');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 741 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	var registration_alert_messages_1 = __webpack_require__(32);
	var registration_waitlist_outcome_status_strategy_1 = __webpack_require__(44);
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .factory('registerScheduledSectionsCommand', function ($http, $q, $timeout, ngRegistrationAlertsServant, ngSectionsDatasource, ngTermCoursesDatasource, ngRegisterSectionsDatasource, ngRegisterSectionsQuery, ngScheduledSectionServant, defineCommand, QueryMediator, ngSchedulerModel, ngRegistrationFailureModel, ngRequisiteCourseServant, ngWaitlistCallbackServant, ngRegistrationCallbackServant, ngRegistrationReceiptServant, ngRegisterWaitlistOutcomeFilters, registrationActivityCommand, registrationRecieptCommand, updateCalendarSectionTimesCommand, appConfigModel, pusherService, log, ngSchedulerNotificationDelegate, removeSectionSelectionCommand) {
	    return defineCommand('registerScheduledSectionsCommand', function (deferred, termId, sectionIdsToRegister, auto_waitlist_sections, section_pins, regAttributesForSections, student_credentials) {
	        if (section_pins === void 0) { section_pins = {}; }
	        if (regAttributesForSections === void 0) { regAttributesForSections = {}; }
	        var SECONDS_60 = 60000;
	        var timeout = $q.defer();
	        $timeout(function () {
	            timeout.resolve();
	        }, SECONDS_60);
	        if (_4.isEmpty(sectionIdsToRegister)) {
	            deferred.reject();
	            return;
	        }
	        var sectionStatusesBeforeRegistration = {};
	        _4.each(sectionIdsToRegister, function (sectionId) {
	            var sctn = ngSectionsDatasource.get(sectionId);
	            if (sctn) {
	                sectionStatusesBeforeRegistration[sectionId] = sctn.status;
	            }
	        });
	        var showWaitlistMessage = appConfigModel.model.member_features['reg-auto_waitlist_message'];
	        var pusher_callback_function = function (data) {
	            registrationActivityCommand(termId).then(function () {
	                var sectionsReceiptData = _4.filter(ngRegistrationReceiptServant.getReceiptData(sectionIdsToRegister), 'isActiveRecord');
	                registrationRecieptCommand(sectionsReceiptData, true);
	            });
	            var registrationOutcomeData = _4.compact(_4.map(sectionIdsToRegister, function (id) { return data[id]; }));
	            var sectionRegistrationOutcome = _4.partition(registrationOutcomeData, function (sectionOutcome) { return sectionOutcome.success; });
	            var selectedSections = ngRegisterSectionsQuery.result.selectedSections;
	            var pusherOutcomes = _4.map(registrationOutcomeData, function (registrationWaitlistOutc) {
	                return {
	                    id: registrationWaitlistOutc.id,
	                    message: registrationWaitlistOutc.message,
	                    request_type: 'ADD',
	                    success: registrationWaitlistOutc.success,
	                    is_registered: registrationWaitlistOutc.is_registered,
	                    is_waitlisted: registrationWaitlistOutc.is_waitlisted
	                };
	            });
	            var registerRequestRegistered = ngRegisterWaitlistOutcomeFilters.getFiltered(pusherOutcomes, registration_waitlist_outcome_status_strategy_1.OUTCOME_STATUS_TYPES.REGISTRATION_REQUEST_REGISTERED);
	            var registerRequestWaitlisted = ngRegisterWaitlistOutcomeFilters.getFiltered(pusherOutcomes, registration_waitlist_outcome_status_strategy_1.OUTCOME_STATUS_TYPES.REGISTRATION_REQUEST_WAITLISTED);
	            var registerRequestFailed = ngRegisterWaitlistOutcomeFilters.getFiltered(pusherOutcomes, registration_waitlist_outcome_status_strategy_1.OUTCOME_STATUS_TYPES.REGISTRATION_REQUEST_FAILED);
	            // handle each request group
	            _4.each(registerRequestRegistered, function (sectionOutcome) {
	                ngRegistrationCallbackServant.setRegisteredStatus(sectionOutcome);
	                ngRegisterSectionsDatasource.del(sectionOutcome.id);
	                removeSectionSelectionCommand(sectionOutcome.id);
	            });
	            _4.each(registerRequestWaitlisted, function (sectionOutcome) {
	                ngWaitlistCallbackServant.waitlistSuccess(sectionOutcome);
	                ngRegisterSectionsDatasource.del(sectionOutcome.id);
	                removeSectionSelectionCommand(sectionOutcome.id);
	            });
	            ngRegistrationCallbackServant.showEnforcedCoreqsDropReminderAlerts(registerRequestRegistered);
	            ngRegistrationCallbackServant.handlePusherFailedResponse(registerRequestFailed, sectionStatusesBeforeRegistration);
	            ngRegistrationAlertsServant.hidePendingAlert();
	            updateCalendarSectionTimesCommand();
	            // TODO: TECHDEBT
	            // this timeout gives calendar times query an additional run after it is delayed by debounce in scheduled sections query,
	            // with enough time to allow the calendar to get updated statuses after sections are updated by this callback and calendar model is written
	            var RUN_QUERY_DELAY = 350;
	            $timeout(function () {
	                QueryMediator.runQueries(ngSectionsDatasource);
	            }, RUN_QUERY_DELAY);
	            deferred.resolve(QueryMediator.runQueries(ngSectionsDatasource, ngTermCoursesDatasource));
	            // Show info alerts for non registered sections that are required by these successfully registered sections
	            ngRegistrationAlertsServant.showOtherRequiredSectionsAlert(sectionRegistrationOutcome[0]);
	        };
	        _4.each(sectionIdsToRegister, function (id) {
	            var section = ngSectionsDatasource.get(id);
	            if (section) {
	                section.status = scheduled_section_status_enum_1.ScheduledSectionStatus.PENDING;
	                ngSectionsDatasource.put(section);
	            }
	        });
	        $http({
	            method: 'POST',
	            url: "/reg/register/term/" + termId + "/",
	            data: tslib_1.__assign(tslib_1.__assign({ method: 'ADD', sections: sectionIdsToRegister, section_pins: section_pins }, regAttributesForSections), student_credentials),
	            cache: false,
	            timeout: timeout.promise
	        })
	            .then(function (response) {
	            if (showWaitlistMessage) {
	                ngRegistrationAlertsServant.showPendingAlert(registration_alert_messages_1.RegistrationAlertMessages.PENDING_AUTO_WAITLIST_REGISTERED_TEXT);
	            }
	            else {
	                ngRegistrationAlertsServant.showPendingAlert();
	            }
	            pusherService.bindToPusherEvent(ngSchedulerModel.read().channel_name, 'registration_outcome_add', pusher_callback_function);
	        })
	            .catch(function (_a) {
	            var data = _a.data;
	            log.issue('failed to register courses, please try again');
	            if (_4.has(data, 'detail')) {
	                ngSchedulerNotificationDelegate.warn(data.detail);
	            }
	            _4.each(sectionIdsToRegister, function (id) {
	                var section = ngSectionsDatasource.get(id);
	                if (section) {
	                    section.status = scheduled_section_status_enum_1.ScheduledSectionStatus.SECTION_PICKED;
	                    ngSectionsDatasource.put(section);
	                }
	            });
	            QueryMediator.runQueries(ngSectionsDatasource, ngTermCoursesDatasource);
	            deferred.reject(data);
	        });
	    });
	});


/***/ }),
/* 742 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .service('selectAllRegistrationSectionsCommand', function selectAllRegistrationSectionsCommand($q, defineCommandORM, ngRegisterSectionsDatasource, updateSectionSelectionsCommand) {
	    return defineCommandORM('selectAllRegistrationSectionsCommand', function (deferred) {
	        var registrationSections = _4.map(ngRegisterSectionsDatasource.values(), function (registrationSection) { return (tslib_1.__assign(tslib_1.__assign({}, registrationSection), { is_selected: _4.get(registrationSection, '_isEligibleForRegistration', true) })); });
	        ngRegisterSectionsDatasource.write(registrationSections);
	        var updateSectionSelectionPromises = registrationSections.map(function (section) {
	            return updateSectionSelectionsCommand(section.id, section.is_selected);
	        });
	        $q.all(updateSectionSelectionPromises).then(deferred.resolve);
	    });
	});


/***/ }),
/* 743 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .service('unscheduleCourseSectionsCommand', function unscheduleCourseSectionsCommand($http, defineCommandORM, $q, SectionStatusCollectionBuilder, ngSectionsDatasource, ngTermCoursesDatasource, ngScheduledSectionStatusServant, QueryMediator, ngRegisterSectionsDatasource, ngRegistrationAlertsServant, ngTermSectionTypesDatasource, removeSectionSelectionCommand) {
	    'use strict';
	    return defineCommandORM('unscheduleCourseSectionsCommand', function (deferred, termId, courseId, sessionId) {
	        var scheduledSections = _4.filter(ngSectionsDatasource.read(), function (section) {
	            return section.course === courseId && ngScheduledSectionStatusServant.isSectionScheduled(section);
	        });
	        var courseDeleteUrl = "/reg/schedule/term/" + termId + "/course/" + courseId + "/";
	        if (sessionId && _4.toString(sessionId) !== '-1') {
	            var sectionTypeIdsForSession_1 = _4.compact(_4.map(_4.filter(ngTermSectionTypesDatasource.read(), function (sectionType) { return sectionType.session === sessionId; }), 'id'));
	            _4.remove(scheduledSections, function (section) { return !_4.includes(sectionTypeIdsForSession_1, section.section_type); });
	            courseDeleteUrl = courseDeleteUrl + "session/" + sessionId;
	        }
	        return $http
	            .delete("" + courseDeleteUrl)
	            .then(function (_a) {
	            var data = _a.data;
	            _4.each(scheduledSections, function (section) {
	                var scheduledSection = ngSectionsDatasource.get(section.id);
	                if (scheduledSection) {
	                    scheduledSection.status = scheduled_section_status_enum_1.ScheduledSectionStatus.UNSCHEDULED;
	                    ngSectionsDatasource.put(scheduledSection);
	                }
	                var removeSectionFromReg = ngRegisterSectionsDatasource.get(section.id);
	                if (removeSectionFromReg) {
	                    ngRegisterSectionsDatasource.del(section.id);
	                    removeSectionSelectionCommand(section.id);
	                }
	            });
	            var updateSectionSelectionPromises = [];
	            scheduledSections.map(function (section) {
	                var scheduledSection = ngSectionsDatasource.get(section.id);
	                if (scheduledSection) {
	                    scheduledSection.status = scheduled_section_status_enum_1.ScheduledSectionStatus.UNSCHEDULED;
	                    ngSectionsDatasource.put(scheduledSection);
	                }
	                var removeSectionFromReg = ngRegisterSectionsDatasource.get(section.id);
	                if (removeSectionFromReg) {
	                    ngRegisterSectionsDatasource.del(section.id);
	                    updateSectionSelectionPromises.push(removeSectionSelectionCommand(section.id));
	                }
	            });
	            $q.all(updateSectionSelectionPromises).then(function () {
	                return deferred.resolve(QueryMediator.runQueries(ngSectionsDatasource, ngTermCoursesDatasource));
	            });
	        })
	            .catch(function (_a) {
	            var data = _a.data;
	            ngRegistrationAlertsServant.showUnScheduleAllSectionsFailAlert(scheduledSections);
	            deferred.reject(data);
	        });
	    });
	});


/***/ }),
/* 744 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	angular
	    .module('capability-ng-scheduler')
	    .service('unscheduleSectionCommand', function unscheduleSectionCommand($http, defineCommandORM, SectionStatusCollectionBuilder, ngSectionsDatasource, QueryMediator, ngTermCoursesDatasource, registrationActivityCommand, ngRegisterSectionsDatasource, ngRegistrationAlertsServant, ngRegistrationFailureModel, updateCalendarSectionTimesCommand, removeSectionSelectionCommand, log) {
	    'use strict';
	    return defineCommandORM('unscheduleSectionCommand', function (deferred, termId, sectionId) {
	        $http
	            .delete("reg/course_schedule/term/" + termId + "/section/" + sectionId + "/")
	            .then(function (_a) {
	            var data = _a.data;
	            var sectionToUnSchedule = ngSectionsDatasource.get(sectionId);
	            if (sectionToUnSchedule) {
	                sectionToUnSchedule.status = scheduled_section_status_enum_1.ScheduledSectionStatus.UNSCHEDULED;
	                ngSectionsDatasource.put(sectionToUnSchedule);
	                ngRegistrationFailureModel.del(sectionToUnSchedule.id);
	            }
	            var removeSectionFromReg = ngRegisterSectionsDatasource.get(sectionId);
	            if (removeSectionFromReg) {
	                ngRegisterSectionsDatasource.del(sectionId);
	                removeSectionSelectionCommand(sectionId);
	            }
	            return updateCalendarSectionTimesCommand();
	        })
	            .then(function () {
	            deferred.resolve();
	            registrationActivityCommand(termId);
	        })
	            .catch(function (_a) {
	            var data = _a.data;
	            ngRegistrationAlertsServant.showUnScheduleFailAlert(sectionId);
	            deferred.reject(data);
	        });
	    });
	});


/***/ }),
/* 745 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var CalendarPlaceholderAlert = /** @class */ (function () {
	    function CalendarPlaceholderAlert($state) {
	        this.$state = $state;
	    }
	    CalendarPlaceholderAlert.prototype.closePlaceholder = function () {
	        this.close();
	    };
	    CalendarPlaceholderAlert.prototype.viewPreferences = function () {
	        this.$state.go('my.schedule.registration.preferences');
	    };
	    return CalendarPlaceholderAlert;
	}());
	var CalendarPlaceholderAlertComponent = /** @class */ (function () {
	    function CalendarPlaceholderAlertComponent() {
	        this.bindings = {
	            times: '<',
	            close: '&',
	            term: '<'
	        };
	        this.controller = CalendarPlaceholderAlert;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/course_scheduler/components/calendar_placeholder_alert/calendar_placeholder_alert.html';
	    }
	    return CalendarPlaceholderAlertComponent;
	}());
	angular
	    .module('capability-ng-scheduler')
	    .component('calendarPlaceholderAlert', new CalendarPlaceholderAlertComponent());


/***/ }),
/* 746 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var OpenModalFlag = /** @class */ (function () {
	    function OpenModalFlag() {
	    }
	    OpenModalFlag.prototype.setFlag = function (isOpen) {
	        this.isModalOpenFlag = isOpen;
	    };
	    OpenModalFlag.prototype.isModalOpen = function () {
	        return this.isModalOpenFlag;
	    };
	    return OpenModalFlag;
	}());
	exports.OpenModalFlag = OpenModalFlag;
	angular.module('capability-ng-scheduler').service('ngOpenModalFlag', OpenModalFlag);


/***/ }),
/* 747 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var LinkedSectionMessage = /** @class */ (function () {
	    function LinkedSectionMessage(ngScheduledSectionServant, ngScheduledSectionsQuery, ngSectionInfoServant) {
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.ngScheduledSectionsQuery = ngScheduledSectionsQuery;
	        this.ngSectionInfoServant = ngSectionInfoServant;
	    }
	    LinkedSectionMessage.prototype.initialize = function () {
	        var _this = this;
	        var registeredLinkedSections = this.ngScheduledSectionServant.getRegisteredLinkedSections(this.section.id, this.ngScheduledSectionsQuery.result.list);
	        this.hasRegisteredLinkedSections = _4.size(registeredLinkedSections) > 0;
	        var plural = _4.size(registeredLinkedSections) > 1 ? "courses" : "course";
	        var linkedSections = _4.map(registeredLinkedSections, function (section) {
	            return section._course.cd + " " + section._course.title + " (" + _this.ngSectionInfoServant.getSectionLabel(section) + ")";
	        });
	        this.linkedSectionMessage = "This course is linked to the following " + plural + ": " + linkedSections.join(', ');
	    };
	    LinkedSectionMessage.prototype.$onInit = function () {
	        this.initialize();
	    };
	    LinkedSectionMessage.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    return LinkedSectionMessage;
	}());
	var LinkedSectionMessageComponent = /** @class */ (function () {
	    function LinkedSectionMessageComponent() {
	        this.bindings = {
	            section: '<'
	        };
	        this.controller = LinkedSectionMessage;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/course_scheduler/components/linked_section_message/linked_section_message.html';
	    }
	    return LinkedSectionMessageComponent;
	}());
	angular.module('capability-ng-scheduler').component('linkedSectionMessage', new LinkedSectionMessageComponent());


/***/ }),
/* 748 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var term_course_servant_1 = __webpack_require__(14);
	var _4 = __webpack_require__(1);
	var MultiSectionMessage = /** @class */ (function () {
	    function MultiSectionMessage(getCSSClassForString, ngTermCourseServant, ngMultiSectionServant) {
	        this.getCSSClassForString = getCSSClassForString;
	        this.ngTermCourseServant = ngTermCourseServant;
	        this.ngMultiSectionServant = ngMultiSectionServant;
	    }
	    MultiSectionMessage.prototype.initialize = function () {
	        var _this = this;
	        this.isMultiSection = term_course_servant_1.TermCourseServant.isMultiSectionCourse(this.section._course);
	        if (this.isMultiSection) {
	            var siblingSectionsIDs_1 = _4.map(this.ngMultiSectionServant.getScheduledSiblingSections(this.section), 'section_type');
	            this.requiredSectionTypes = _4.uniqBy(_4.filter(this.section._course._section_types, function (section_type) {
	                return !_4.includes(siblingSectionsIDs_1, section_type.id) &&
	                    section_type.is_required &&
	                    section_type.session === _this.section._section_type.session;
	            }), 'name');
	            this.courseColor = this.getCSSClassForString(this.section._course.nk, 'txt');
	        }
	    };
	    MultiSectionMessage.prototype.$onInit = function () {
	        this.initialize();
	    };
	    MultiSectionMessage.prototype.$onChanges = function (changes) {
	        this.initialize();
	    };
	    return MultiSectionMessage;
	}());
	var MultiSectionMessageComponent = /** @class */ (function () {
	    function MultiSectionMessageComponent() {
	        this.bindings = {
	            section: '<',
	            additionalSectionsRequiredText: '<?',
	            additionalSectionsRequiredErrorMessage: '@?'
	        };
	        this.controller = MultiSectionMessage;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/course_scheduler/components/multi_section_message/multi_section_message.html';
	    }
	    return MultiSectionMessageComponent;
	}());
	angular.module('capability-ng-scheduler').component('multiSectionMessage', new MultiSectionMessageComponent());


/***/ }),
/* 749 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var scheduled_section_servant_1 = __webpack_require__(19);
	var MultiSectionSectionsRequiredTileMessage = /** @class */ (function () {
	    function MultiSectionSectionsRequiredTileMessage(ngMultiSectionServant, ngScheduledSectionServant, ngTermScheduleFlags, ngScheduledSectionsQuery, ngScheduledSectionStatusServant) {
	        this.ngMultiSectionServant = ngMultiSectionServant;
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.ngTermScheduleFlags = ngTermScheduleFlags;
	        this.ngScheduledSectionsQuery = ngScheduledSectionsQuery;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.waitlistedSectionDisplayText = '(Waitlisted)';
	        this.codeRequiredSectionDisplayText = '(Code Required)';
	    }
	    MultiSectionSectionsRequiredTileMessage.prototype.getSectionTypeNameForRegisteredSection = function (section) {
	        var _this = this;
	        // Sibling Sections of not same status.
	        var siblingSections = this.ngMultiSectionServant.getTiedNonRegisteredRequiredSections(section, this.ngScheduledSectionsQuery.result.list);
	        var getSectionMessage = function (regSection, isWaitlisted) {
	            var requiredMessage = isWaitlisted ? _this.waitlistedSectionDisplayText : "";
	            return "" + regSection._section_type.name + requiredMessage;
	        };
	        var regSections = _4.compact(tslib_1.__spreadArrays(siblingSections));
	        return _4(regSections)
	            .sortBy(function (sec) { return sec._section_type.rank; })
	            .uniqBy('section_type')
	            .map(function (sec) { return getSectionMessage(sec, scheduled_section_servant_1.ScheduledSectionServant.isSectionWaitListed(sec)); })
	            .value()
	            .join(', ');
	    };
	    MultiSectionSectionsRequiredTileMessage.prototype.getSectionTypeNameForScheduledSection = function (section) {
	        var _this = this;
	        var sections = this.ngMultiSectionServant.getSiblingWaitlistedSections(section, this.ngScheduledSectionsQuery.result.waitlistedSections);
	        return _4(sections)
	            .uniqBy('section_type')
	            .map('_section_type')
	            .compact()
	            .sortBy('rank')
	            .map(function (sectionType) { return sectionType.name + " " + _this.waitlistedSectionDisplayText; })
	            .value()
	            .join(", ");
	    };
	    MultiSectionSectionsRequiredTileMessage.prototype.getSectionTypeNames = function (section) {
	        if (this.ngMultiSectionServant.isRegisteredMultiSection(section)) {
	            return this.getSectionTypeNameForRegisteredSection(section);
	        }
	        // SCHEDULED, we need to show waitlisted section types in this case
	        else if (scheduled_section_servant_1.ScheduledSectionServant.isSectionWaitListed(section)) {
	            return "";
	        }
	        else {
	            var sectionTypeNames = this.getSectionTypeNameForScheduledSection(section);
	            return sectionTypeNames;
	        }
	    };
	    MultiSectionSectionsRequiredTileMessage.prototype.initialize = function () {
	        var isStatusRegisteredOrCompleteOrInProgress = this.ngScheduledSectionStatusServant.isStatusRegisteredOrCompleteOrInProgress(this.section);
	        if (this.ngMultiSectionServant.isRegisteredMultiSection(this.section)) {
	            this.message = 'Register all required sections promptly to avoid automatic drop of this course.';
	        }
	        var areAllMultiSectionsRegistered = this.ngMultiSectionServant.areAllMultiSectionsRegistered(this.section, this.ngScheduledSectionsQuery.result.list);
	        var hasUnscheduledRequiredSiblingSections = this.ngMultiSectionServant.hasUnscheduledRequiredSiblingSections(this.section, this.ngScheduledSectionsQuery.result.list);
	        this.showSectionsRequired =
	            isStatusRegisteredOrCompleteOrInProgress &&
	                hasUnscheduledRequiredSiblingSections &&
	                !areAllMultiSectionsRegistered;
	    };
	    MultiSectionSectionsRequiredTileMessage.prototype.$onInit = function () {
	        this.initialize();
	    };
	    MultiSectionSectionsRequiredTileMessage.prototype.$onChanges = function (changes) {
	        this.initialize();
	    };
	    return MultiSectionSectionsRequiredTileMessage;
	}());
	var MultiSectionSectionsRequiredTile = /** @class */ (function () {
	    function MultiSectionSectionsRequiredTile() {
	        this.bindings = {
	            section: '<'
	        };
	        this.controller = MultiSectionSectionsRequiredTileMessage;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/course_scheduler/components/multi_section_sections_required_tile/multi_section_sections_required_tile.html';
	    }
	    return MultiSectionSectionsRequiredTile;
	}());
	angular
	    .module('capability-ng-scheduler')
	    .component('multiSectionSectionsRequiredTile', new MultiSectionSectionsRequiredTile());


/***/ }),
/* 750 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var RegisterSectionsButton = /** @class */ (function () {
	    function RegisterSectionsButton(ngTermProgramInfoModel, ngRegistrationFacade, ngRegistrationOneClickQuery, ngRequestStateQuery) {
	        this.ngTermProgramInfoModel = ngTermProgramInfoModel;
	        this.ngRegistrationFacade = ngRegistrationFacade;
	        this.ngRegistrationOneClickQuery = ngRegistrationOneClickQuery;
	        this.ngRequestStateQuery = ngRequestStateQuery;
	    }
	    RegisterSectionsButton.prototype.$onInit = function () {
	        this.ngRegistrationFacade.reCalculateFlags();
	    };
	    RegisterSectionsButton.prototype.$onChanges = function (changes) {
	        this.ngRegistrationFacade.reCalculateFlags();
	    };
	    RegisterSectionsButton.prototype.isValidRegistrationPeriod = function () {
	        var termInfo = this.ngTermProgramInfoModel.read();
	        var registrationStart = _4.get(termInfo, 'term.registration_start_dt', '');
	        var registrationEnd = _4.get(termInfo, 'term.registration_end_dt', '');
	        var registrationStartDate = moment(registrationStart.split(',')[0], 'MM-DD-YYYY').toDate();
	        var registrationEndDate = moment(registrationEnd.split(',')[0], 'MM-DD-YYYY').toDate();
	        return moment(moment()).isBetween(registrationStartDate, registrationEndDate);
	    };
	    return RegisterSectionsButton;
	}());
	var RegisterSectionsButtonComponent = /** @class */ (function () {
	    function RegisterSectionsButtonComponent() {
	        this.bindings = {
	            registerAction: '&'
	        };
	        this.controller = RegisterSectionsButton;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/course_scheduler/components/register_sections_button/register_sections_button.html';
	    }
	    return RegisterSectionsButtonComponent;
	}());
	angular.module('capability-ng-scheduler').component('registerSectionsButton', new RegisterSectionsButtonComponent());


/***/ }),
/* 751 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ScheduledSectionCoreqPrereqMessage = /** @class */ (function () {
	    function ScheduledSectionCoreqPrereqMessage(ngScheduledSectionStatusServant, $state, ngCourseDetailsFacade, ngScheduledSectionServant) {
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.$state = $state;
	        this.ngCourseDetailsFacade = ngCourseDetailsFacade;
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.hasCourseLevelCoreq = false;
	        this.openDialog = false;
	        this.hasCrossCourseCoReq = false;
	        this.showViewCoreqButton = false;
	    }
	    ScheduledSectionCoreqPrereqMessage.prototype.initialize = function () {
	        this.isRegistered = this.ngScheduledSectionStatusServant.isStatusRegistered(this.section);
	        this.isWaitlisted = this.ngScheduledSectionStatusServant.isStatusWaitlisted(this.section);
	        this.isScheduled = this.ngScheduledSectionStatusServant.isSectionScheduled(this.section);
	        this.isCoreqEnforcementEnabled = this.ngScheduledSectionStatusServant.isCoreqEnforcementEnabled();
	        this.numberOfCoreq = _4.get(this.section, '_course._missing_coreqs.length');
	        this.numberOfPrereq = _4.get(this.section, '_course._missing_prereqs.length');
	        this.hasCrossCourseCoReq = this.ngScheduledSectionServant.hasUnsatisfiedCrossCourseCoReq(this.section);
	        this.courseNk = _4.get(this.section, '_course.nk');
	        this.hasCoreq = this.numberOfCoreq > 0 || this.hasCrossCourseCoReq;
	        if (this.hasCrossCourseCoReq) {
	            var courseRequisites = this.ngScheduledSectionStatusServant.getCrossCourseCorequisites(this.section);
	            this.numberOfCoreq = this.numberOfCoreq + courseRequisites.length;
	        }
	        this.hasPrereq = this.numberOfPrereq > 0;
	        this.backgroundColor = this.isRegistered ? "red_30" : "yellow_30";
	        this.iconColor = this.isRegistered ? "white" : "black";
	        this.textColor = this.isRegistered ? "clr-white-txt" : "clr-gray_100-txt";
	        this.pluralCourses = this.numberOfCoreq > 1 ? 'courses' : 'course';
	        this.showViewCoreqButton = (this.hasCoreq && this.isCoreqEnforcementEnabled) || this.hasCrossCourseCoReq;
	        this.hasCourseLevelCoreq = this.numberOfCoreq > 0;
	    };
	    ScheduledSectionCoreqPrereqMessage.prototype.$onInit = function () {
	        this.initialize();
	    };
	    ScheduledSectionCoreqPrereqMessage.prototype.$onChanges = function (changes) {
	        this.initialize();
	    };
	    ScheduledSectionCoreqPrereqMessage.prototype.viewCorequisites = function () {
	        this.ngCourseDetailsFacade.openCourseDetails(this.courseNk, this.section);
	    };
	    return ScheduledSectionCoreqPrereqMessage;
	}());
	var ScheduledSectionCoreqPrereqMessageComponent = /** @class */ (function () {
	    function ScheduledSectionCoreqPrereqMessageComponent() {
	        this.bindings = {
	            section: '<'
	        };
	        this.controller = ScheduledSectionCoreqPrereqMessage;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/course_scheduler/components/scheduled_section_coreq_prereq_message/scheduled_section_coreq_prereq_message.html';
	    }
	    return ScheduledSectionCoreqPrereqMessageComponent;
	}());
	angular
	    .module('capability-ng-scheduler')
	    .component('scheduledSectionCoreqPrereqMessage', new ScheduledSectionCoreqPrereqMessageComponent());


/***/ }),
/* 752 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var section_tile_error_strategy_1 = __webpack_require__(231);
	var _4 = __webpack_require__(1);
	var ScheduledSectionNotification = /** @class */ (function () {
	    function ScheduledSectionNotification(ngRegistrationFailureModel, ngScheduledSectionStatusServant) {
	        this.ngRegistrationFailureModel = ngRegistrationFailureModel;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	    }
	    ScheduledSectionNotification.prototype.initialize = function () {
	        this.errorMessages = [];
	        this.isStatusPending = this.ngScheduledSectionStatusServant.isStatusPending(this.section);
	        var failedSectionDetails = this.ngRegistrationFailureModel.get(this.section.id);
	        var isValidFailureForCurrentStatus = this.ngScheduledSectionStatusServant.isValidFailureForCurrentStatus(this.section, _4.get(failedSectionDetails, 'type', ''));
	        if (failedSectionDetails && isValidFailureForCurrentStatus) {
	            this.errorMessages = [
	                tslib_1.__assign(tslib_1.__assign({}, failedSectionDetails), section_tile_error_strategy_1.TileErrorMessageTypesAndMessagesStrategy[failedSectionDetails.type])
	            ];
	        }
	    };
	    ScheduledSectionNotification.prototype.$onInit = function () {
	        this.initialize();
	    };
	    ScheduledSectionNotification.prototype.$onChanges = function (changes) {
	        this.initialize();
	    };
	    return ScheduledSectionNotification;
	}());
	var ScheduledSectionNotificationComponent = /** @class */ (function () {
	    function ScheduledSectionNotificationComponent() {
	        this.bindings = {
	            section: '<'
	        };
	        this.controller = ScheduledSectionNotification;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/course_scheduler/components/scheduled_section_notification/scheduled_section_notification.html';
	    }
	    return ScheduledSectionNotificationComponent;
	}());
	angular
	    .module('capability-ng-scheduler')
	    .component('scheduledSectionNotification', new ScheduledSectionNotificationComponent());


/***/ }),
/* 753 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var section_status_label_strategy_1 = __webpack_require__(230);
	var _4 = __webpack_require__(1);
	var ScheduledSectionStatusLabel = /** @class */ (function () {
	    function ScheduledSectionStatusLabel(ngScheduledSectionServant, ngScheduledSectionStatusServant, ngRegistrationFailureModel, ngSectionSwapServant) {
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.ngRegistrationFailureModel = ngRegistrationFailureModel;
	        this.ngSectionSwapServant = ngSectionSwapServant;
	        this.hideStatusLabel = false;
	    }
	    ScheduledSectionStatusLabel.prototype.$onInit = function () {
	        this.hideStatusLabel = _4.get(this.section, '_swap_type') === 'to' && this.ngSectionSwapServant.isInSwapMode();
	    };
	    ScheduledSectionStatusLabel.prototype.getSectionStatusLabel = function () {
	        var canAddFromWaitlist = this.ngScheduledSectionServant.canAddFromWaitlist(this.section);
	        var hasStatus = this.ngScheduledSectionStatusServant.hasStatus(this.section);
	        var isPending = this.ngScheduledSectionStatusServant.isStatusPending(this.section);
	        var failedSectionDetails = this.ngRegistrationFailureModel.get(this.section.id);
	        var status = this.section.status;
	        var labelByStatus = section_status_label_strategy_1.SectionStatusLabelStrategy[status];
	        var isValidFailureForCurrentStatus = this.ngScheduledSectionStatusServant.isValidFailureForCurrentStatus(this.section, _4.get(failedSectionDetails, 'type', ''));
	        // Get Style
	        var style = hasStatus ? labelByStatus.style + " " + labelByStatus.marker_color : 'clr-gray_40-txt';
	        // Get Text
	        var text = hasStatus ? labelByStatus.text : 'Not Registered';
	        // Get Icon
	        var icon = '';
	        // Failed
	        if (failedSectionDetails && isValidFailureForCurrentStatus) {
	            text = "" + text;
	            icon = "<i class=\"icon eab-icon-caution clr-red-txt\"></i>";
	        }
	        else if (isPending) {
	            // Pending
	            icon = "<i class=\"icon eab-icon-sync\"></i>";
	        }
	        else if (canAddFromWaitlist) {
	            text = "" + text;
	        }
	        return "" + icon + text + "<span class=\"marker " + style + "\"></span>";
	    };
	    return ScheduledSectionStatusLabel;
	}());
	var ScheduledSectionStatusComponent = /** @class */ (function () {
	    function ScheduledSectionStatusComponent() {
	        this.bindings = {
	            section: '<'
	        };
	        this.controller = ScheduledSectionStatusLabel;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/course_scheduler/components/scheduled_section_status_label/scheduled_section_status_label.html';
	    }
	    return ScheduledSectionStatusComponent;
	}());
	angular.module('capability-ng-scheduler').component('scheduledSectionStatus', new ScheduledSectionStatusComponent());


/***/ }),
/* 754 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var scheduled_section_servant_1 = __webpack_require__(19);
	var _4 = __webpack_require__(1);
	var ScheduledSectionWaitlistMessage = /** @class */ (function () {
	    function ScheduledSectionWaitlistMessage(ngScheduledSectionTileServant, ngScheduledSectionStatusServant, waitlistSectionCommand, getTermPinCommand, $stateParams, $state, ngRegistrationWaitlistPositionModel, ngTermScheduleFlags, ngScheduledSectionServant, ngSchedulerModel, updateSeatAvailabilityCommand, getSectionDetailsCommand, ngComponentCommunicatorService) {
	        this.ngScheduledSectionTileServant = ngScheduledSectionTileServant;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.waitlistSectionCommand = waitlistSectionCommand;
	        this.getTermPinCommand = getTermPinCommand;
	        this.$stateParams = $stateParams;
	        this.$state = $state;
	        this.ngRegistrationWaitlistPositionModel = ngRegistrationWaitlistPositionModel;
	        this.ngTermScheduleFlags = ngTermScheduleFlags;
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.ngSchedulerModel = ngSchedulerModel;
	        this.updateSeatAvailabilityCommand = updateSeatAvailabilityCommand;
	        this.getSectionDetailsCommand = getSectionDetailsCommand;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.showWaitlistSeatAvailableMessage = false;
	        this.openWaitListPrompt = false;
	        this.serverWaitlistAvailableText = '';
	    }
	    ScheduledSectionWaitlistMessage.prototype.initialize = function () {
	        this.isWaitlistEnabled = this.ngTermScheduleFlags.isWaitlistEnabled();
	        this.isBatchRegisterWaitlistedStudentsEnabled = this.ngTermScheduleFlags.isBatchRegisterWaitlistedStudentsEnabled();
	        var isSectionWaitlisted = this.ngScheduledSectionStatusServant.isStatusWaitlisted(this.section);
	        var isSectionScheduled = this.ngScheduledSectionStatusServant.isSectionScheduled(this.section);
	        this.canBeRegistered = this.ngScheduledSectionServant.canBeRegistered(this.section);
	        this.canAddFromWaitlist = this.ngScheduledSectionServant.canAddFromWaitlist(this.section);
	        this.isStatusPending = this.ngScheduledSectionStatusServant.isStatusPending(this.section);
	        this.waitlistPositionProps = this.ngRegistrationWaitlistPositionModel.get(this.section.id);
	        this.placeInWaitlist = _4.get(this.waitlistPositionProps, 'place_in_waitlist', 0);
	        this.isWaitlisted = this.isWaitlistEnabled && isSectionWaitlisted;
	        this.isAutoWaitlistedHidePos = this.ngScheduledSectionServant.isAutoWaitlistedHidePosition(this.section);
	        this.serverWaitlistAvailableText = _4.get(this.ngSchedulerModel.read(), 'customtext.WAITLIST_SEAT_AVAILABLE.text', '');
	        // is_seat_available property take care of waitlist queues. So dont rely on available seats.
	        this.showJoinWaitlistOption =
	            !this.isStatusPending &&
	                isSectionScheduled &&
	                this.isWaitlistEnabled &&
	                !this.ngScheduledSectionServant.isSeatAvailable(this.section) &&
	                this.canBeRegistered;
	        this.waitlistPositionText = this.getWaitlistText(this.section);
	        this.hasSeatsAvailable = scheduled_section_servant_1.ScheduledSectionServant.hasAvailableSeats(this.section);
	        this.showWaitlistSeatAvailableMessage =
	            !_4.isEmpty(this.serverWaitlistAvailableText) &&
	                !this.isBatchRegisterWaitlistedStudentsEnabled &&
	                this.canAddFromWaitlist &&
	                !this.isStatusPending &&
	                !this.isAutoWaitlistedHidePos &&
	                this.hasSeatsAvailable;
	    };
	    ScheduledSectionWaitlistMessage.prototype.$onInit = function () {
	        this.initialize();
	    };
	    ScheduledSectionWaitlistMessage.prototype.$onChanges = function (changes) {
	        this.initialize();
	    };
	    ScheduledSectionWaitlistMessage.prototype.addToWaitlist = function () {
	        var _this = this;
	        this.getTermPinCommand(this.$stateParams.termId).then(function () {
	            _this.getSectionDetailsCommand(_this.section.id).then(function () {
	                _this.ngComponentCommunicatorService.publish('OPEN_WAITLIST_PROMPT');
	            });
	        });
	    };
	    ScheduledSectionWaitlistMessage.prototype.getWaitlistText = function (section) {
	        var hasSeatsAvailable = scheduled_section_servant_1.ScheduledSectionServant.hasAvailableSeats(section); // section._section_status.avail_seats === 0
	        // calculated 'place_in_waitlist' when server doesn't know all students on waitlist
	        if (!this.waitlistPositionProps) {
	            return "";
	        }
	        if (_4.isNull(this.placeInWaitlist) || this.placeInWaitlist === 0) {
	            return "Added To Waitlist";
	        }
	        else {
	            var positionInWaitlist = this.waitlistPositionProps
	                ? this.placeInWaitlist - 1 - _4.get(section, '_availability.avail_seats', -1)
	                : -1;
	            var text = positionInWaitlist > 0 ? ' Students ahead of you' : ' Student ahead of you';
	            if (positionInWaitlist < 0) {
	                return 'Seat Available';
	            }
	            else if (positionInWaitlist === 0 && !hasSeatsAvailable) {
	                return 'Next in line, but there are no seats open yet!';
	            }
	            else {
	                return positionInWaitlist + text;
	            }
	        }
	    };
	    return ScheduledSectionWaitlistMessage;
	}());
	var ScheduledSectionWaitlistMessageComponent = /** @class */ (function () {
	    function ScheduledSectionWaitlistMessageComponent() {
	        this.bindings = {
	            section: '<'
	        };
	        this.controller = ScheduledSectionWaitlistMessage;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/course_scheduler/components/scheduled_section_waitlist_message/scheduled_section_waitlist_message.html';
	    }
	    return ScheduledSectionWaitlistMessageComponent;
	}());
	angular
	    .module('capability-ng-scheduler')
	    .component('scheduledSectionWaitlistMessage', new ScheduledSectionWaitlistMessageComponent());


/***/ }),
/* 755 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ScheduledSections = /** @class */ (function () {
	    function ScheduledSections(ngScheduledSectionsQuery, ngRegistrationReceiptQuery, ngCourseSchedulerConstant, ngTermScheduleFlags, ngSelectedSectionActionsMenuQuery, ngComponentCommunicatorService, $element) {
	        this.ngScheduledSectionsQuery = ngScheduledSectionsQuery;
	        this.ngRegistrationReceiptQuery = ngRegistrationReceiptQuery;
	        this.ngCourseSchedulerConstant = ngCourseSchedulerConstant;
	        this.ngTermScheduleFlags = ngTermScheduleFlags;
	        this.ngSelectedSectionActionsMenuQuery = ngSelectedSectionActionsMenuQuery;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.$element = $element;
	        this.submitScheduledSectionsFormBound = this.onFormSubmission.bind(this);
	    }
	    ScheduledSections.prototype.$onInit = function () {
	        this.oneClickEnabled = this.ngTermScheduleFlags.isOneClickRegistrationEnabled();
	        this.isBatchRegisterWaitlistedStudentsEnabled = this.ngTermScheduleFlags.isBatchRegisterWaitlistedStudentsEnabled();
	        this.headersDescriptionDialog = this.getHeadersDescriptionDialog();
	        this.ngComponentCommunicatorService.subscribe('SUBMIT_SCHEDULED_SECTIONS_FORM', this.submitScheduledSectionsFormBound);
	    };
	    ScheduledSections.prototype.$onDestroy = function () {
	        this.ngComponentCommunicatorService.release('SUBMIT_SCHEDULED_SECTIONS_FORM', this.submitScheduledSectionsFormBound);
	    };
	    ScheduledSections.prototype.onFormSubmission = function () {
	        var scheduledSectionsForm = this.$element[0].querySelector("hi-form[name=\"" + this.ngCourseSchedulerConstant.scheduledSectionFormId + "\"]");
	        if (!scheduledSectionsForm) {
	            return;
	        }
	        scheduledSectionsForm.submit();
	    };
	    ScheduledSections.prototype.getHeadersDescriptionDialog = function () {
	        return {
	            waitlistedCourses: {
	                heading: 'Waitlisted Courses',
	                description: 'These courses are pending on a waitlist status and are not yet registered',
	                content: this.getWaitlistedCoursesDescription()
	            },
	            courseSectionsNeeded: {
	                heading: 'Course Sections Needed',
	                description: 'Plan requires additional course sections to register.'
	            },
	            scheduledCourses: {
	                heading: 'Scheduled Courses (Not Registered)',
	                description: 'You have scheduled these courses, but still need to register for them. Click the "Register" button to do so.'
	            },
	            registeredCourses: {
	                heading: 'Registered Courses',
	                description: 'You may drop or withdraw from here.'
	            },
	            widthdrawnCourses: {
	                heading: 'Withdrawn Courses',
	                description: 'These courses have been withdrawn.'
	            }
	        };
	    };
	    ScheduledSections.prototype.getWaitlistedCoursesDescription = function () {
	        var waitlistDescription = this.isBatchRegisterWaitlistedStudentsEnabled
	            ? '<p>You may add yourself to the waitlist if a class has no seats left. If a seat becomes available, you will be automatically registered in the order of your position on the waitlist.</p>'
	            : '<p>You may add yourself to the waitlist if a class has no seats left. If a seat becomes available, your school will notify you to register, you may do so from here.</p>';
	        return '<h3 class="ptsxx">What is Waitlist?</h3>' + waitlistDescription;
	    };
	    return ScheduledSections;
	}());
	angular.module('capability-ng-scheduler').component('scheduledSections', {
	    templateUrl: 'capability-ng-scheduler/src/views/course_scheduler/components/scheduled_sections/scheduled_sections_component.html',
	    controller: ScheduledSections
	});


/***/ }),
/* 756 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SectionGroup = /** @class */ (function () {
	    function SectionGroup(ngScheduledSectionServant, ngRegisterSectionsQuery) {
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.ngRegisterSectionsQuery = ngRegisterSectionsQuery;
	    }
	    SectionGroup.prototype.getCurrentSectionListCourseId = function (sectionList, sectionIndex) {
	        return _4.get(sectionList[sectionIndex], '_course.id', -1);
	    };
	    SectionGroup.prototype.getPreviousSectionListCourseId = function (sectionList, sectionIndex) {
	        return _4.get(sectionList[sectionIndex - 1], '_course.id', -2);
	    };
	    SectionGroup.prototype.$onChanges = function () {
	        this.sections = _4.orderBy(this.sections, ['course', '_section_type.session']);
	    };
	    SectionGroup.prototype.showLineSeparator = function (sectionList, sectionIndex) {
	        if (!sectionIndex) {
	            return false;
	        }
	        var areSectionsNotEqual = !_4.isEqual(this.getCurrentSectionListCourseId(sectionList, sectionIndex), this.getPreviousSectionListCourseId(sectionList, sectionIndex));
	        if (areSectionsNotEqual) {
	            return false;
	        }
	        return true;
	    };
	    SectionGroup.prototype.shouldBreakCourseList = function (sectionList, sectionIndex, isLastSection) {
	        var areSessionsEqual = _4.isEqual(_4.get(sectionList[sectionIndex], '_section_type.session', '-1'), _4.get(sectionList[sectionIndex + 1], '_section_type.session', '-2'));
	        var areOfSameCourse = _4.isEqual(_4.get(sectionList[sectionIndex], '_course.id'), _4.get(sectionList[sectionIndex + 1], '_course.id'));
	        var hasUnsatisfiedCrossCourseLinkedSection = this.ngScheduledSectionServant.hasUnsatisfiedCrossCourseCoReq(sectionList[sectionIndex]);
	        return (isLastSection ||
	            (!isLastSection && (!areSessionsEqual || !areOfSameCourse)) ||
	            hasUnsatisfiedCrossCourseLinkedSection);
	    };
	    SectionGroup.prototype.shouldShowCreditsInTheTile = function (sectionList, sectionIndex, isLastSection) {
	        var isFirstOfList = _4.isEqual(sectionIndex, 0);
	        var notMatchingWithPreviousTile = !isFirstOfList &&
	            !_4.isEqual(this.getCurrentSectionListCourseId(sectionList, sectionIndex), this.getPreviousSectionListCourseId(sectionList, sectionIndex));
	        return isFirstOfList || notMatchingWithPreviousTile;
	    };
	    SectionGroup.prototype.showCourseSectionRequired = function (sectionList, sectionIndex, isLastSection) {
	        return this.shouldBreakCourseList(sectionList, sectionIndex, isLastSection) || isLastSection;
	    };
	    return SectionGroup;
	}());
	angular.module('capability-ng-scheduler').component('sectionGroup', {
	    templateUrl: 'capability-ng-scheduler/src/views/course_scheduler/components/section_group/section_group_component.html',
	    bindings: {
	        parentForm: '@?',
	        sections: '<',
	        sectionKind: '@' // waitlist, registered, scheduled
	    },
	    controller: SectionGroup
	});


/***/ }),
/* 757 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var SectionTileCheckbox = /** @class */ (function () {
	    function SectionTileCheckbox(ngScheduledSectionStatusServant, ngScheduledSectionServant, processSelectedRegisterableSectionCommand, updateSectionSelectionsCommand, ngSectionSwapServant, ngSectionSelectionsQuery, ngSectionSelectionsServant) {
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.processSelectedRegisterableSectionCommand = processSelectedRegisterableSectionCommand;
	        this.updateSectionSelectionsCommand = updateSectionSelectionsCommand;
	        this.ngSectionSwapServant = ngSectionSwapServant;
	        this.ngSectionSelectionsQuery = ngSectionSelectionsQuery;
	        this.ngSectionSelectionsServant = ngSectionSelectionsServant;
	        this.showCheckbox = false;
	        this.showLock = false;
	        this.isInSwapMode = false;
	    }
	    SectionTileCheckbox.prototype.initialize = function () {
	        this.isInSwapMode = this.ngSectionSwapServant.isInSwapMode();
	        this.canBeRegistered = this.ngScheduledSectionServant.canBeRegistered(this.section);
	        this.isRegisteredOrCompleteOrInProgress =
	            this.ngScheduledSectionStatusServant.isStatusRegisteredOrCompleteOrInProgress(this.section);
	        if (this.isRegisteredOrCompleteOrInProgress) {
	            this.canBeRegistered = false;
	        }
	        this.showCheckbox = this.shouldShowCheckbox();
	        this.showLock = this.shouldShowLock();
	    };
	    SectionTileCheckbox.prototype.$onInit = function () {
	        this.initialize();
	    };
	    SectionTileCheckbox.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    SectionTileCheckbox.prototype.canAddFromWaitlist = function () {
	        return this.ngScheduledSectionServant.canAddFromWaitlist(this.section);
	    };
	    SectionTileCheckbox.prototype.getListTypeLabel = function () {
	        if (this.canAddFromWaitlist()) {
	            return 'register and drop lists';
	        }
	        if (this.canBeRegistered) {
	            return 'register list';
	        }
	        return this.section.can_withdraw ? 'withdraw list' : 'drop list';
	    };
	    SectionTileCheckbox.prototype.sectionCheckboxToggleEnded = function (event) {
	        var _this = this;
	        var sectionId = this.section.id;
	        if (!event.target) {
	            return;
	        }
	        var isChecked = event.target.checked;
	        this.updateSectionSelectionsCommand(sectionId, isChecked).then(function () {
	            return _this.processSelectedRegisterableSectionCommand(sectionId, isChecked);
	        });
	    };
	    SectionTileCheckbox.prototype.shouldShowCheckbox = function () {
	        var isWithdrawnSection = this.ngScheduledSectionStatusServant.isStatusWithdrawn(this.section);
	        var canBeSelectedForRegister = this.ngSectionSelectionsServant.canBeSelectedForRegister(this.section);
	        var canBeSelectedForWaitlist = this.ngSectionSelectionsServant.canBeSelectedForWaitlist(this.section);
	        var canBeSelectedForDrop = this.ngSectionSelectionsServant.canBeSelectedForDrop(this.section);
	        var canBeSelectedForWithdraw = this.ngSectionSelectionsServant.canBeSelectedForWithdraw(this.section);
	        // No checkbox
	        if (this.isInSwapMode || isWithdrawnSection) {
	            return false;
	        }
	        // Show checkbox
	        else if (canBeSelectedForRegister || canBeSelectedForWaitlist || canBeSelectedForDrop || canBeSelectedForWithdraw) {
	            return true;
	        }
	        // Fallback
	        return false;
	    };
	    SectionTileCheckbox.prototype.shouldShowLock = function () {
	        var isSectionScheduled = this.ngScheduledSectionServant.isSectionScheduled_(this.section);
	        var canBeRegistered = isSectionScheduled && this.ngScheduledSectionServant.canBeRegistered(this.section);
	        var canBeSelectedForWaitlist = this.ngSectionSelectionsServant.canBeSelectedForWaitlist(this.section);
	        if (canBeRegistered && !this.section._isEligibleForRegistration && !canBeSelectedForWaitlist) {
	            return true;
	        }
	        return false;
	    };
	    return SectionTileCheckbox;
	}());
	var SectionTileCheckboxComponent = /** @class */ (function () {
	    function SectionTileCheckboxComponent() {
	        this.bindings = {
	            section: '<'
	        };
	        this.controller = SectionTileCheckbox;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/course_scheduler/components/section_tile_checkbox/section_tile_checkbox.html';
	    }
	    return SectionTileCheckboxComponent;
	}());
	angular.module('capability-ng-scheduler').component('sectionTileCheckbox', new SectionTileCheckboxComponent());


/***/ }),
/* 758 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ScheduledSectionErrorMessage = /** @class */ (function () {
	    function ScheduledSectionErrorMessage() {
	        this.isExpanded = false;
	    }
	    return ScheduledSectionErrorMessage;
	}());
	exports.ScheduledSectionErrorMessage = ScheduledSectionErrorMessage;
	var SectionTileErrorComponent = /** @class */ (function () {
	    function SectionTileErrorComponent() {
	        this.bindings = {
	            errorTitle: '@',
	            errorMsg: '<',
	            showIcon: '<'
	        };
	        this.controller = ScheduledSectionErrorMessage;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/course_scheduler/components/section_tile_error/section_tile_error.html';
	    }
	    return SectionTileErrorComponent;
	}());
	angular.module('capability-ng-scheduler').component('sectionTileError', new SectionTileErrorComponent());


/***/ }),
/* 759 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var SectionTileErrorSectionRequired = /** @class */ (function () {
	    function SectionTileErrorSectionRequired() {
	        this.sections = '';
	    }
	    return SectionTileErrorSectionRequired;
	}());
	exports.SectionTileErrorSectionRequired = SectionTileErrorSectionRequired;
	var SectionTileErrorSectionRequiredComponent = /** @class */ (function () {
	    function SectionTileErrorSectionRequiredComponent() {
	        this.bindings = {
	            errorTitle: '@',
	            sections: '<',
	            errorMsg: '@'
	        };
	        this.controller = SectionTileErrorSectionRequired;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/course_scheduler/components/section_tile_error_section_required/section_tile_error_section_required.html';
	    }
	    return SectionTileErrorSectionRequiredComponent;
	}());
	angular
	    .module('capability-ng-scheduler')
	    .component('sectionTileErrorSectionRequired', new SectionTileErrorSectionRequiredComponent());


/***/ }),
/* 760 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var registration_section_builder_1 = __webpack_require__(736);
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngRegisterSectionsDatasource', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: registration_section_builder_1.RegistrationSection,
	        updateMode: 'merge'
	    });
	});


/***/ }),
/* 761 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var waitlist_status_builder_1 = __webpack_require__(222);
	angular.module('capability-ng-scheduler').factory('ngWaitlistStatusDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: waitlist_status_builder_1.WaitlistStatus
	    });
	});


/***/ }),
/* 762 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var term_course_servant_1 = __webpack_require__(14);
	var scheduled_section_servant_1 = __webpack_require__(19);
	var _4 = __webpack_require__(1);
	var RegisterSectionFilters = /** @class */ (function () {
	    function RegisterSectionFilters(ngScheduledSectionServant, ngMultiSectionServant, ngTermCourseServant, ngScheduledSectionStatusServant) {
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.ngMultiSectionServant = ngMultiSectionServant;
	        this.ngTermCourseServant = ngTermCourseServant;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	    }
	    RegisterSectionFilters.prototype.getScheduledSelectableSections = function (sections) {
	        return this.getRegistrableSections(sections).map(function (section) {
	            var isAllowedToRegister = !_4.get(section, 'is_waitlisted', false) && _4.get(section, '_isEligibleForRegistration', false);
	            var isSectionSelected = _4.isUndefined(_4.get(section, 'is_selected'))
	                ? isAllowedToRegister
	                : _4.get(section, 'is_selected', false);
	            return tslib_1.__assign(tslib_1.__assign({}, section), { is_selected: isSectionSelected });
	        });
	    };
	    RegisterSectionFilters.prototype.getRegistrableSections = function (sections) {
	        var _this = this;
	        // Multisection course sections with missing section from group.
	        var inCompleteMultiSections = _4.filter(sections, function (section) {
	            return _this.ngMultiSectionServant.hasUnscheduledRequiredSiblingSections(section, sections) &&
	                !_this.ngMultiSectionServant.isRegisteredMultiSection(section);
	        });
	        // Section is Scheduled and has no pin missing && not multi-section or is multisection with pin requirement.
	        var isSectionRegistrable = function (section) {
	            var isMultiSection = term_course_servant_1.TermCourseServant.isMultiSectionCourse(section._course);
	            var isPending = _this.ngScheduledSectionStatusServant.isStatusPending(section);
	            var canAddFromWaitlist = _this.ngScheduledSectionServant.canAddFromWaitlist(section);
	            var isScheduled = canAddFromWaitlist ||
	                (isMultiSection
	                    ? _this.ngScheduledSectionServant.isSectionScheduledMultiSection(section)
	                    : scheduled_section_servant_1.ScheduledSectionServant.isSectionScheduled(section));
	            var hasDependingWaitlistSections = isMultiSection && _this.ngMultiSectionServant.hasWaitlistedSiblingSections(section, sections);
	            var isStatusRegisteredOrCompleteOrInProgress = _this.ngScheduledSectionStatusServant.isStatusRegisteredOrCompleteOrInProgress(section);
	            return !isStatusRegisteredOrCompleteOrInProgress && !isPending && isScheduled && !hasDependingWaitlistSections;
	        };
	        return _4.filter(sections, function (section) { return isSectionRegistrable(section) && !_4.includes(inCompleteMultiSections, section); });
	    };
	    return RegisterSectionFilters;
	}());
	exports.RegisterSectionFilters = RegisterSectionFilters;
	angular.module('capability-ng-scheduler').service('ngRegisterSectionFilters', RegisterSectionFilters);


/***/ }),
/* 763 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var registration_waitlist_outcome_status_strategy_1 = __webpack_require__(44);
	var _4 = __webpack_require__(1);
	var RegisterWaitlistOutcomeFilters = /** @class */ (function () {
	    function RegisterWaitlistOutcomeFilters() {
	    }
	    RegisterWaitlistOutcomeFilters.prototype.getFiltered = function (pusherOutcome, outcomeTypeToFilterBy) {
	        return _4.filter(pusherOutcome, function (pusherOutc) {
	            var outcomeType = registration_waitlist_outcome_status_strategy_1.RegistrationWaitlistOutcomeStatusStrategy.getByKey(registration_waitlist_outcome_status_strategy_1.RegistrationWaitlistOutcomeStatusConditionalStrategy.evaluate(pusherOutc));
	            return _4.isEqual(outcomeTypeToFilterBy, outcomeType.name);
	        });
	    };
	    return RegisterWaitlistOutcomeFilters;
	}());
	exports.RegisterWaitlistOutcomeFilters = RegisterWaitlistOutcomeFilters;
	angular.module('capability-ng-scheduler').service('ngRegisterWaitlistOutcomeFilters', RegisterWaitlistOutcomeFilters);


/***/ }),
/* 764 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var scheduled_section_servant_1 = __webpack_require__(19);
	var _4 = __webpack_require__(1);
	var ScheduledSectionFilters = /** @class */ (function () {
	    function ScheduledSectionFilters(ngScheduledSectionServant, ngMultiSectionServant, ngTermCourseServant) {
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.ngMultiSectionServant = ngMultiSectionServant;
	        this.ngTermCourseServant = ngTermCourseServant;
	    }
	    ScheduledSectionFilters.prototype.getScheduledSections = function (sections) {
	        return _4.filter(sections, function (section) { return scheduled_section_servant_1.ScheduledSectionServant.isSectionScheduled(section); });
	    };
	    ScheduledSectionFilters.prototype.getScheduledMultiSections = function (sections) {
	        var _this = this;
	        return _4.sortBy(_4.filter(sections, function (section) {
	            return _this.ngScheduledSectionServant.isSectionScheduledMultiSection(section) &&
	                !_this.ngMultiSectionServant.hasUnscheduledRequiredSiblingSections(section, sections);
	        }), [function (section) { return section.course; }, function (section) { return _4.get(section, '_section_type.rank', 0); }]);
	    };
	    ScheduledSectionFilters.prototype.getRegisteredSections = function (sections) {
	        var _this = this;
	        return _4.filter(sections, function (section) {
	            return _this.ngScheduledSectionServant.isNonMultiSectionRegistered(section);
	        });
	    };
	    ScheduledSectionFilters.prototype.getRegisteredMultiSections = function (sections) {
	        var _this = this;
	        return _4.sortBy(_4.filter(sections, function (section) { return _this.ngScheduledSectionServant.isMultiSectionRegistered(section); }), [function (section) { return section.course; }, function (section) { return _4.get(section, '_section_type.rank', 0); }]);
	    };
	    ScheduledSectionFilters.prototype.getMultiSectionsWithSiblingUnscheduledSections = function (sections) {
	        var _this = this;
	        return _4.sortBy(_4.filter(sections, function (section) {
	            return _this.ngMultiSectionServant.hasUnscheduledRequiredSiblingSections(section, sections) &&
	                !_this.ngScheduledSectionServant.isSectionWithdrawn(section) &&
	                !_this.ngMultiSectionServant.isRegisteredMultiSection(section) &&
	                !scheduled_section_servant_1.ScheduledSectionServant.isSectionWaitListed(section);
	        }), [function (section) { return section.course; }, function (section) { return _4.get(section, '_section_type.rank', 0); }]);
	    };
	    ScheduledSectionFilters.prototype.getWaitlistedSections = function (sections) {
	        return _4.filter(sections, function (section) { return scheduled_section_servant_1.ScheduledSectionServant.isSectionWaitListed(section); });
	    };
	    ScheduledSectionFilters.prototype.getWithdrawnSections = function (sections) {
	        var _this = this;
	        return _4.filter(sections, function (section) { return _this.ngScheduledSectionServant.isSectionWithdrawn(section); });
	    };
	    ScheduledSectionFilters.prototype.getInProgressSections = function (sections) {
	        var _this = this;
	        return _4.filter(sections, function (section) { return _this.ngScheduledSectionServant.isSectionInProgress(section); });
	    };
	    return ScheduledSectionFilters;
	}());
	exports.ScheduledSectionFilters = ScheduledSectionFilters;
	angular.module('capability-ng-scheduler').service('ngScheduledSectionFilters', ScheduledSectionFilters);


/***/ }),
/* 765 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	angular
	    .module('capability-ng-scheduler')
	    .service('saveSuggestionsCommand', function saveSuggestionsCommandDefinition($http, defineCommandORM, ngWaitlistStatusDatasource, ngSectionsDatasource, ngTermCoursesDatasource, QueryMediator, ngSectionAvailabilityDatasource, log) {
	    return defineCommandORM('saveSuggestionsCommand', function (deferred, termId, sectionIds) {
	        $http
	            .post('/reg/scheduler/term/' + termId + '/', {
	            schedule: sectionIds
	        })
	            .then(function () {
	            sectionIds.forEach(function (sectionId) {
	                var section = ngSectionsDatasource.get(sectionId);
	                if (!section) {
	                    return;
	                }
	                section.status = scheduled_section_status_enum_1.ScheduledSectionStatus.SECTION_PICKED;
	                var sectionToScheduleAvailability = ngSectionAvailabilityDatasource.get(section.id);
	                if (!sectionToScheduleAvailability) {
	                    return;
	                }
	                var id = sectionToScheduleAvailability.id, is_seat_available = sectionToScheduleAvailability.is_seat_available, is_waitlist_allowed = sectionToScheduleAvailability.is_waitlist_allowed, is_waitlist_full = sectionToScheduleAvailability.is_waitlist_full, is_auto_waitlist = sectionToScheduleAvailability.is_auto_waitlist, avail_seats = sectionToScheduleAvailability.avail_seats, last_refresh_ts = sectionToScheduleAvailability.last_refresh_ts, linked_section_coreqs_satisfied = sectionToScheduleAvailability.linked_section_coreqs_satisfied, has_linked_section_coreqs = sectionToScheduleAvailability.has_linked_section_coreqs;
	                ngWaitlistStatusDatasource.put({
	                    id: id,
	                    is_seat_available: is_seat_available,
	                    is_waitlist_allowed: is_waitlist_allowed,
	                    is_waitlist_full: is_waitlist_full,
	                    is_auto_waitlist: is_auto_waitlist,
	                    avail_seats: avail_seats,
	                    last_refresh_ts: last_refresh_ts,
	                    linked_section_coreqs_satisfied: linked_section_coreqs_satisfied,
	                    has_linked_section_coreqs: has_linked_section_coreqs
	                });
	            });
	            return QueryMediator.runQueries(ngTermCoursesDatasource);
	        })
	            .then(function () { return deferred.resolve(); })
	            .catch(function (e) {
	            log.issue('failed to save suggestions');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 766 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var Autolinker = __webpack_require__(281);
	var RegistrationFailureModel = /** @class */ (function () {
	    function RegistrationFailureModel() {
	        this._model = {
	            failed_sections: {}
	        };
	    }
	    RegistrationFailureModel.prototype.clear = function () {
	        this._model.failed_sections = {};
	        return this;
	    };
	    RegistrationFailureModel.prototype.put = function (failedSection) {
	        failedSection.message = Autolinker.link(failedSection.message, {
	            newWindow: true,
	            stripPrefix: true,
	            truncate: 30,
	            urls: {
	                tldMatches: false
	            },
	            className: 'text-link'
	        });
	        this._model.failed_sections[failedSection.id] = failedSection;
	        return this;
	    };
	    RegistrationFailureModel.prototype.del = function (sectionId) {
	        this._model.failed_sections = _4.omit(this._model.failed_sections, sectionId);
	        return this;
	    };
	    RegistrationFailureModel.prototype.read = function () {
	        return this._model;
	    };
	    RegistrationFailureModel.prototype.get = function (sectionId) {
	        return this._model.failed_sections[sectionId];
	    };
	    return RegistrationFailureModel;
	}());
	exports.RegistrationFailureModel = RegistrationFailureModel;
	angular.module('capability-ng-scheduler').service('ngRegistrationFailureModel', RegistrationFailureModel);


/***/ }),
/* 767 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var RegistrationWaitlistPositionModel = /** @class */ (function () {
	    function RegistrationWaitlistPositionModel() {
	        this._model = {
	            waitlist_positions: {}
	        };
	    }
	    RegistrationWaitlistPositionModel.prototype.clear = function () {
	        this._model.waitlist_positions = {};
	        return this;
	    };
	    RegistrationWaitlistPositionModel.prototype.write = function () {
	        return this;
	    };
	    RegistrationWaitlistPositionModel.prototype.put = function (sectionWaitlistPosition) {
	        this._model.waitlist_positions[sectionWaitlistPosition.section] = sectionWaitlistPosition;
	        return this;
	    };
	    RegistrationWaitlistPositionModel.prototype.read = function () {
	        return this._model;
	    };
	    RegistrationWaitlistPositionModel.prototype.get = function (sectionId) {
	        return _4.find(this._model.waitlist_positions, function (position) { return position.section === sectionId; });
	    };
	    RegistrationWaitlistPositionModel.prototype.refresh = function () {
	        return this;
	    };
	    RegistrationWaitlistPositionModel.prototype.update = function () {
	        return this;
	    };
	    return RegistrationWaitlistPositionModel;
	}());
	exports.RegistrationWaitlistPositionModel = RegistrationWaitlistPositionModel;
	angular
	    .module('capability-ng-scheduler')
	    .service('ngRegistrationWaitlistPositionModel', RegistrationWaitlistPositionModel);


/***/ }),
/* 768 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngSchedulerModel', function () {
	    return new utility_ts_orm_1.Model({
	        channel_name: '',
	        in_state_credit_cost: 0,
	        customtext: {
	            SECTION_PIN_TEXT: {
	                text: 'Section PIN',
	                nk: 'SECTION_PIN_TEXT'
	            },
	            PAY_TUITION_URL: {
	                text: '',
	                nk: 'PAY_TUITION_URL'
	            },
	            SIS_REGISTRATION_URL: {
	                text: '',
	                nk: 'SIS_REGISTRATION_URL'
	            },
	            INSTITUTION_NAME: {
	                text: '',
	                nk: 'INSTITUTION_NAME'
	            },
	            LAST_DAY_TO_DROP: {
	                text: 'Last day to drop without penalty:',
	                nk: 'LAST_DAY_TO_DROP'
	            },
	            NO_TIMES_AVAILABLE: {
	                text: 'No times available. Times are not yet loaded for this course. Check back soon.',
	                nk: 'NO_TIMES_AVAILABLE'
	            }
	        },
	        precheck_pass: false
	    });
	});


/***/ }),
/* 769 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var RegisterSectionsQuery = /** @class */ (function () {
	    function RegisterSectionsQuery(QueryMediator, ngSectionsDatasource, ngRegisterSectionFilters, ngRegisterSectionsDatasource, ngRequisiteCourseServant, ngScheduledSectionStatusServant, ngRegistrationWaitlistPositionModel, registrationRTRSvc) {
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngRegisterSectionFilters = ngRegisterSectionFilters;
	        this.ngRegisterSectionsDatasource = ngRegisterSectionsDatasource;
	        this.ngRequisiteCourseServant = ngRequisiteCourseServant;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.ngRegistrationWaitlistPositionModel = ngRegistrationWaitlistPositionModel;
	        this.registrationRTRSvc = registrationRTRSvc;
	        QueryMediator.registerQuery(this, ngSectionsDatasource, ngRegisterSectionsDatasource, ngRegistrationWaitlistPositionModel);
	    }
	    RegisterSectionsQuery.prototype.run = function () {
	        var _this = this;
	        var scheduledSections = this.ngRegisterSectionFilters.getScheduledSelectableSections(this.ngRegisterSectionsDatasource.values().filter(function (section) { return section._course; }));
	        var selectedSections = _4.filter(scheduledSections, function (section) { return section.is_selected && section._isEligibleForRegistration; });
	        var unselectedSections = _4.filter(scheduledSections, function (section) { return !section.is_selected || !section._isEligibleForRegistration; });
	        var coReqMissingSections = _4.filter(selectedSections, function (section) {
	            return _this.ngRequisiteCourseServant.isCoReqMissing(section);
	        });
	        var preReqMissingSections = _4.filter(selectedSections, function (section) {
	            return _this.ngRequisiteCourseServant.isPreReqMissing(section);
	        });
	        var waitlistedSections = _4.filter(this.ngRegisterSectionsDatasource.values(), function (section) {
	            return _this.ngScheduledSectionStatusServant.isStatusWaitlisted(section);
	        });
	        this._result = {
	            scheduledSections: scheduledSections,
	            selectedSections: selectedSections,
	            unselectedSections: unselectedSections,
	            coReqMissingSections: coReqMissingSections,
	            preReqMissingSections: preReqMissingSections,
	            waitlistedSections: waitlistedSections
	        };
	        this.registrationRTRSvc.updateCRNs(scheduledSections);
	        return this;
	    };
	    Object.defineProperty(RegisterSectionsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return RegisterSectionsQuery;
	}());
	exports.RegisterSectionsQuery = RegisterSectionsQuery;
	angular.module('capability-ng-scheduler').service('ngRegisterSectionsQuery', RegisterSectionsQuery);


/***/ }),
/* 770 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	var _4 = __webpack_require__(1);
	var ScheduledSectionsQuery = /** @class */ (function () {
	    function ScheduledSectionsQuery(QueryMediator, ngCampusesDatasource, ngLocationsDatasource, ngSectionTimesDatasource, ngSectionsDatasource, ngTermCoursesDatasource, ngScheduledSectionFilters, ngWaitlistStatusDatasource, ngRegistrationWaitlistPositionModel, ngRegisterSectionsDatasource, ngSelectedTimeSliceModel) {
	        this.QueryMediator = QueryMediator;
	        this.ngCampusesDatasource = ngCampusesDatasource;
	        this.ngLocationsDatasource = ngLocationsDatasource;
	        this.ngSectionTimesDatasource = ngSectionTimesDatasource;
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngTermCoursesDatasource = ngTermCoursesDatasource;
	        this.ngScheduledSectionFilters = ngScheduledSectionFilters;
	        this.ngWaitlistStatusDatasource = ngWaitlistStatusDatasource;
	        this.ngRegistrationWaitlistPositionModel = ngRegistrationWaitlistPositionModel;
	        this.ngRegisterSectionsDatasource = ngRegisterSectionsDatasource;
	        this.ngSelectedTimeSliceModel = ngSelectedTimeSliceModel;
	        QueryMediator.registerQuery(this, ngCampusesDatasource, ngLocationsDatasource, ngSectionTimesDatasource, ngTermCoursesDatasource, ngSectionsDatasource, ngRegisterSectionsDatasource, ngWaitlistStatusDatasource, ngSelectedTimeSliceModel, ngRegistrationWaitlistPositionModel);
	    }
	    // Relation ship
	    // Location -> campus -> is_online
	    // section_time -> location
	    // section_time -> section
	    // section -> campus
	    // section ->  course
	    // Mapping transformation
	    // location <- _Campus
	    // section_time <- _location
	    // section <- section_time
	    // section <-  course
	    /* TODO: Refactor reduce complexity */
	    /* tslint:disable */
	    ScheduledSectionsQuery.prototype.run = function () {
	        var sectionsWithStatus = _4.filter(this.ngSectionsDatasource.read(), function (section) { return section.status !== scheduled_section_status_enum_1.ScheduledSectionStatus.UNSCHEDULED; });
	        var builtScheduledSections = this.ngSectionsDatasource.metasource().composes(sectionsWithStatus);
	        var scheduledSections = this.ngScheduledSectionFilters.getScheduledSections(builtScheduledSections);
	        var scheduledMultiSections = this.ngScheduledSectionFilters.getScheduledMultiSections(builtScheduledSections);
	        var combinedScheduledSections = _4.concat(scheduledSections, scheduledMultiSections);
	        var registeredSections = this.ngScheduledSectionFilters.getRegisteredSections(builtScheduledSections);
	        var registeredMultiSections = this.ngScheduledSectionFilters.getRegisteredMultiSections(builtScheduledSections);
	        var combinedRegisteredSections = _4.concat(registeredSections, registeredMultiSections);
	        this._result = {
	            list: builtScheduledSections,
	            scheduledSections: scheduledSections,
	            scheduledMultiSections: scheduledMultiSections,
	            registeredSections: registeredSections,
	            registeredMultiSections: registeredMultiSections,
	            multiSectionsWithTiedUnscheduledSectionTypes: this.ngScheduledSectionFilters.getMultiSectionsWithSiblingUnscheduledSections(builtScheduledSections),
	            waitlistedSections: this.ngScheduledSectionFilters.getWaitlistedSections(builtScheduledSections),
	            withdrawnSections: this.ngScheduledSectionFilters.getWithdrawnSections(builtScheduledSections),
	            inProgressSections: this.ngScheduledSectionFilters.getInProgressSections(builtScheduledSections),
	            creditsScheduled: _4.reduce(_4.uniqBy(combinedScheduledSections, 'course'), function (sum, n) { return sum + _4.get(n, '_course.credits', 0); }, 0),
	            creditsRegistered: _4.reduce(_4.uniqBy(combinedRegisteredSections, 'course'), function (sum, n) { return sum + _4.get(n, '_course.credits', 0); }, 0)
	        };
	        return this;
	    };
	    Object.defineProperty(ScheduledSectionsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return ScheduledSectionsQuery;
	}());
	exports.ScheduledSectionsQuery = ScheduledSectionsQuery;
	angular.module('capability-ng-scheduler').service('ngScheduledSectionsQuery', ScheduledSectionsQuery);


/***/ }),
/* 771 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var term_course_servant_1 = __webpack_require__(14);
	var registration_alert_messages_1 = __webpack_require__(32);
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	var _4 = __webpack_require__(1);
	var RegistrationAlertsServant = /** @class */ (function () {
	    function RegistrationAlertsServant(ngTermScheduleFlags, phxNotificationDelegate, ngTermCoursesDatasource, ngScheduledSectionServant, ngMultiSectionServant, ngSectionsDatasource, ngTermCourseServant, ngScheduledSectionsQuery, ngScheduledSectionStatusServant) {
	        this.ngTermScheduleFlags = ngTermScheduleFlags;
	        this.phxNotificationDelegate = phxNotificationDelegate;
	        this.ngTermCoursesDatasource = ngTermCoursesDatasource;
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.ngMultiSectionServant = ngMultiSectionServant;
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngTermCourseServant = ngTermCourseServant;
	        this.ngScheduledSectionsQuery = ngScheduledSectionsQuery;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.showingPending = false;
	        this.notificationDelegate = this.phxNotificationDelegate.restrictTo('reg-alerts');
	    }
	    RegistrationAlertsServant.prototype.showPendingAlert = function (pendingMessage) {
	        if (pendingMessage === void 0) { pendingMessage = registration_alert_messages_1.RegistrationAlertMessages.PENDING_DEFAULT_TEXT; }
	        if (!this.showingPending) {
	            this.notificationDelegate.info({
	                content: pendingMessage,
	                showIcon: true,
	                name: 'PendingAlert',
	                dismissOnTimeout: false,
	                dismissButton: false,
	                timeout: 10000,
	                iconClass: 'eab-icon-sync'
	            });
	            this.showingPending = true;
	        }
	    };
	    RegistrationAlertsServant.prototype.hidePendingAlert = function () {
	        if (this.showingPending) {
	            this.notificationDelegate.dismissAlertByName('PendingAlert');
	            this.showingPending = false;
	        }
	    };
	    RegistrationAlertsServant.prototype.getCoursesAsTemplate = function (courses) {
	        var _this = this;
	        var coursesIds = _4.map(courses, 'id');
	        var newCourses = _4.map(coursesIds, function (courseId) { return _this.ngTermCoursesDatasource.get(courseId); });
	        var MAX_NUM_OF_CHAR_SECTION_TYPE = 18;
	        var names = _4.map(newCourses, function (course) {
	            var _message = course.cd + " " + course.title;
	            return _4.template("<p class=\"text-sz-m-sz-m mbz\"> " + _message + " </p>")({
	                course: course
	            });
	        });
	        return names.join('');
	    };
	    RegistrationAlertsServant.prototype.getPluralText = function (courseArray) {
	        return _4.size(courseArray) > 1 ? ' these courses:' : ' this course:';
	    };
	    RegistrationAlertsServant.prototype.createGenericNotification = function (content, status) {
	        var config = {
	            content: content,
	            showIcon: true,
	            status: status,
	            dismissButton: true
	        };
	        if (status !== 'error') {
	            config.dismissButton = false;
	        }
	        this.notificationDelegate.create(config);
	    };
	    RegistrationAlertsServant.prototype.createNotification = function (courseArray, status, message) {
	        var contentTemplate = "<p class=\"text-sz-m-sz-m\">" + message + "</p>";
	        this.createGenericNotification(contentTemplate + " " + this.getCoursesAsTemplate(courseArray), status);
	    };
	    RegistrationAlertsServant.prototype.createNonWaitlistNotification = function (coursesArray, status, message) {
	        var composedMsg = message;
	        if (!_4.isEmpty(coursesArray)) {
	            composedMsg = composedMsg + this.getPluralText(coursesArray);
	        }
	        if (status === 'error') {
	            composedMsg = _4.endsWith(composedMsg, ':') ? composedMsg : composedMsg + ' Try again';
	        }
	        this.createNotification(coursesArray, status, composedMsg);
	    };
	    RegistrationAlertsServant.prototype.invokeAlerts = function (course_reg_statuses, successMsg, failedMsg) {
	        var courses_registered = course_reg_statuses.courses_registered;
	        var courses_failed_to_register = course_reg_statuses.courses_failed_to_register;
	        this.hidePendingAlert();
	        if (!_4.isEmpty(courses_registered)) {
	            this.createNonWaitlistNotification(courses_registered, 'success', successMsg);
	        }
	        if (!_4.isEmpty(courses_failed_to_register)) {
	            this.createNonWaitlistNotification(courses_failed_to_register, 'error', failedMsg);
	        }
	    };
	    RegistrationAlertsServant.prototype.updateDropAlerts = function (course_reg_statuses) {
	        this.invokeAlerts(course_reg_statuses, registration_alert_messages_1.RegistrationAlertMessages.SUCCESS_DROPPED_TEXT, registration_alert_messages_1.RegistrationAlertMessages.FAILED_DROPPED_TEXT);
	    };
	    RegistrationAlertsServant.prototype.updateWaitlistRemoveAlerts = function (course_reg_statuses) {
	        var courses_registered = course_reg_statuses.courses_registered;
	        var courses_failed_to_register = course_reg_statuses.courses_failed_to_register;
	        this.hidePendingAlert();
	        if (!_4.isEmpty(courses_registered)) {
	            this.createNonWaitlistNotification(courses_registered, 'success', registration_alert_messages_1.RegistrationAlertMessages.WAITLIST_REMOVE_SUCCESS_TEXT);
	        }
	        if (!_4.isEmpty(courses_failed_to_register)) {
	            this.createNonWaitlistNotification(courses_failed_to_register, 'error', registration_alert_messages_1.RegistrationAlertMessages.WAITLIST_REMOVE_FAIL_TEXT);
	        }
	    };
	    RegistrationAlertsServant.prototype.getActionRequiredForCourses = function (courses) {
	        var _this = this;
	        var content = '';
	        var _courses = _4.uniq(courses);
	        _courses.forEach(function (course) {
	            if (course._has_multi_section_types) {
	                var requiredAndWaitlistedSections = _this.ngMultiSectionServant.getRequiredNonScheduledAndWaitlistedSections(course);
	                if (requiredAndWaitlistedSections.length > 0) {
	                    var _courseWithoutRegisteredSections_1 = [];
	                    requiredAndWaitlistedSections.forEach(function (section) {
	                        var _course = _4.cloneDeep(course);
	                        _courseWithoutRegisteredSections_1.push(_course);
	                    });
	                    content += _this.getCoursesAsTemplate(_courseWithoutRegisteredSections_1);
	                }
	            }
	        });
	        return content;
	    };
	    RegistrationAlertsServant.prototype.showPendingActionsForSection = function (courses) {
	        var actions = this.getActionRequiredForCourses(courses);
	        if (!_4.isEmpty(actions)) {
	            this.notificationDelegate.info({
	                content: "<p class='text-sz-m text-bold'> " + registration_alert_messages_1.RegistrationAlertMessages.ADDITIONAL_SECTIONS_ARE_REQUIRED_TEXT + " </p> " + actions,
	                showIcon: true,
	                dismissOnTimeout: false,
	                iconClass: 'eab-icon-information'
	            });
	        }
	    };
	    RegistrationAlertsServant.prototype.showUnscheduleSectionSuccessAlert = function (sectionId) {
	        var section = _4.find(this.ngSectionsDatasource.metasource().derived(), { id: sectionId });
	        var content = "<p class=\"text-sz-m-sz-m text-bold\">" + registration_alert_messages_1.RegistrationAlertMessages.SUCCESSFUL_UNSCHEDULED_TEXT + "</p>";
	        if (section) {
	            content += _4.get(section, '_course.cd', '') + " " + _4.get(section, '_course.title', '');
	        }
	        var config = {
	            content: content,
	            showIcon: true,
	            status: 'info'
	        };
	        this.notificationDelegate.create(config);
	    };
	    RegistrationAlertsServant.prototype.showScheduledAlerts = function (sections) {
	        var _this = this;
	        var _sections = _4.filter(sections, function (section) {
	            var sectionToCheck = _this.ngSectionsDatasource.get(section.id);
	            if (sectionToCheck) {
	                return _this.ngScheduledSectionStatusServant.isSectionScheduled(sectionToCheck);
	            }
	            return false;
	        });
	        this.showScheduledGrowler(_sections);
	    };
	    RegistrationAlertsServant.prototype.showScheduledGrowler = function (sections) {
	        var _this = this;
	        var contentTemplate = "<p class=\"text-sz-m-sz-m text-bold\">" + registration_alert_messages_1.RegistrationAlertMessages.SUCCESSFUL_SCHEDULED_TEXT + "</p>";
	        var alertMessage = sections.map(function (section) {
	            var isMultiSection = term_course_servant_1.TermCourseServant.isMultiSectionCourse(section._course);
	            var sectionType = isMultiSection ? _this.ngMultiSectionServant.getTruncatedSectionTypeName(section, 18) : "";
	            return section._course.cd + " " + section._course.title + " " + sectionType;
	        });
	        var config = {
	            content: contentTemplate + " " + alertMessage,
	            showIcon: true,
	            status: 'success'
	        };
	        this.notificationDelegate.create(config);
	    };
	    RegistrationAlertsServant.prototype.showAddedCoreqAlerts = function (coreq) {
	        this.showAddedCoreqGrowler(coreq);
	    };
	    RegistrationAlertsServant.prototype.showAddedCoreqGrowler = function (coreq) {
	        var contentTemplate = "<p class=\"text-sz-m-sz-m text-bold\">" + registration_alert_messages_1.RegistrationAlertMessages.SUCCESSFUL_ADDED_COREQ_TEXT + "</p>";
	        var alertMessage = coreq.cd + " " + coreq.title;
	        var config = {
	            content: contentTemplate + " " + alertMessage,
	            showIcon: true,
	            status: 'success'
	        };
	        this.notificationDelegate.create(config);
	    };
	    RegistrationAlertsServant.prototype.updateAddAlerts = function (course_reg_statuses) {
	        this.invokeAlerts(course_reg_statuses, registration_alert_messages_1.RegistrationAlertMessages.SUCCESS_REGISTERED_TEXT, registration_alert_messages_1.RegistrationAlertMessages.FAILED_REGISTERED_TEXT);
	        var courses_registered = course_reg_statuses.courses_registered;
	        if (!_4.isEmpty(courses_registered)) {
	            this.notificationDelegate.info({
	                content: "<p class=\"text-sz-m\">" + registration_alert_messages_1.RegistrationAlertMessages.PAY_TUITION_TEXT + "</p>",
	                showIcon: true,
	                dismissOnTimeout: false
	            });
	        }
	    };
	    RegistrationAlertsServant.prototype.showWaitlistAlert = function (section, status, message) {
	        var isError = status === 'error';
	        var composedMsg = isError
	            ? "" + registration_alert_messages_1.RegistrationAlertMessages.WAITLIST_FAIL_TEXT
	            : "" + registration_alert_messages_1.RegistrationAlertMessages.WAITLIST_SUCCESS_TEXT;
	        this.hidePendingAlert();
	        var alertMessage = this.courseTemplate(section);
	        var contentTemplate = "<p class=\"text-sz-m text-bold\">" + composedMsg + " this course</p>";
	        var config = {
	            content: contentTemplate + " " + alertMessage + " <p class=\"text-sz-m\">" + message + "</p>",
	            showIcon: true,
	            status: status,
	            dismissButton: !isError
	        };
	        this.notificationDelegate.create(config);
	        if (!isError && this.ngTermScheduleFlags.isBatchRegisterWaitlistedStudentsEnabled()) {
	            this.showAutoRegisterWaitlistedReminder();
	        }
	    };
	    RegistrationAlertsServant.prototype.showDropSuccessGrowler = function (dropPusherOutcome, isWaitlisted) {
	        var alertMessage = this.courseTemplateFromPusherStatus(dropPusherOutcome);
	        var pluralCourses = _4.size(dropPusherOutcome) > 1 ? ' these courses:' : ' this course:';
	        var contentTemplate = "<p class=\"text-sz-m text-bold\">" + (isWaitlisted
	            ? registration_alert_messages_1.RegistrationAlertMessages.WAITLIST_REMOVE_SUCCESS_TEXT
	            : registration_alert_messages_1.RegistrationAlertMessages.SUCCESS_DROPPED_TEXT) + " " + pluralCourses + "</p>";
	        var config = {
	            content: contentTemplate + " " + alertMessage,
	            showIcon: true,
	            status: 'success',
	            dismissButton: true
	        };
	        this.notificationDelegate.create(config);
	    };
	    RegistrationAlertsServant.prototype.showDropErrorGrowler = function (dropPusherOutcome, isWaitlisted) {
	        var alertMessage = this.courseTemplateFromPusherStatus(dropPusherOutcome);
	        var pluralCourses = _4.size(dropPusherOutcome) > 1 ? ' these courses:' : ' this course:';
	        var contentTemplate = "<p class=\"text-sz-m text-bold\">" + (isWaitlisted ? registration_alert_messages_1.RegistrationAlertMessages.WAITLIST_REMOVE_FAIL_TEXT : registration_alert_messages_1.RegistrationAlertMessages.FAILED_DROPPED_TEXT) + " " + pluralCourses + "</p>";
	        var config = {
	            content: contentTemplate + " " + alertMessage,
	            showIcon: true,
	            status: 'error',
	            dismissButton: false
	        };
	        this.notificationDelegate.create(config);
	    };
	    RegistrationAlertsServant.prototype.showSuccessRegistrationAlerts = function (registrationPusherOutcome) {
	        var alertMessage = this.courseTemplateFromPusherStatus(registrationPusherOutcome);
	        var pluralCourses = _4.size(registrationPusherOutcome) > 1 ? ' these courses:' : ' this course:';
	        var contentTemplate = "<p class=\"text-sz-m text-bold\">" + registration_alert_messages_1.RegistrationAlertMessages.SUCCESS_REGISTERED_TEXT + " " + pluralCourses + "</p>";
	        var config = {
	            content: contentTemplate + " " + alertMessage,
	            showIcon: true,
	            status: 'success',
	            dismissButton: true
	        };
	        this.notificationDelegate.create(config);
	        // Show pay tuition alert
	        if (!_4.isEmpty(registrationPusherOutcome)) {
	            this.notificationDelegate.info({
	                content: "<p class=\"text-sz-m\">" + registration_alert_messages_1.RegistrationAlertMessages.PAY_TUITION_TEXT + "</p>",
	                showIcon: true,
	                dismissOnTimeout: false
	            });
	        }
	    };
	    RegistrationAlertsServant.prototype.showFailedRegistrationAlerts = function (registrationPusherOutcome) {
	        var alertMessage = this.courseTemplateFromPusherStatus(registrationPusherOutcome);
	        var pluralCourses = _4.size(registrationPusherOutcome) > 1 ? ' these courses:' : ' this course:';
	        var contentTemplate = "<p class=\"text-sz-m text-bold\">" + registration_alert_messages_1.RegistrationAlertMessages.FAILED_REGISTERED_TEXT + " " + pluralCourses + "</p>";
	        var config = {
	            content: contentTemplate + " " + alertMessage,
	            showIcon: true,
	            status: 'error',
	            dismissButton: false
	        };
	        this.notificationDelegate.create(config);
	    };
	    RegistrationAlertsServant.prototype.showAutoWaitlistSectionWaitlistedAlerts = function (registrationPusherOutcome, waitlistPosition) {
	        var section = _4.find(this.ngScheduledSectionsQuery.result.list, function (sec) {
	            return _4.isEqual(sec.id, registrationPusherOutcome.id);
	        });
	        var waitlistPositionMsg = !_4.isUndefined(waitlistPosition) && _4.gt(waitlistPosition, 0)
	            ? _4.gt(waitlistPosition, 1)
	                ? "<p class=\"text-sz-m\">There are " + waitlistPosition + " students ahead of you.</p>"
	                : "<p class=\"text-sz-m\">You are first in line.</p>"
	            : "";
	        var contentTemplate = "<p class=\"text-sz-m bold\">" + section._course.cd + " " + section._course.title + "</p>\n                          <p class=\"text-sz-m\"> " + registration_alert_messages_1.RegistrationAlertMessages.AUTO_WAITLIST_WAITLISTED_TEXT + "</p>\n                          " + waitlistPositionMsg;
	        var config = {
	            content: "" + contentTemplate,
	            showIcon: true,
	            status: 'warn',
	            dismissButton: false
	        };
	        this.notificationDelegate.create(config);
	    };
	    RegistrationAlertsServant.prototype.showAutoWaitlistSectionRegisteredAlerts = function (registrationPusherOutcome) {
	        var section = _4.find(this.ngScheduledSectionsQuery.result.list, function (sec) {
	            return _4.isEqual(sec.id, registrationPusherOutcome.id);
	        });
	        var contentTemplate = "<p class=\"text-sz-m text-bold\">Successfully registered</p>\n     <p class=\"text-sz-m text-bold\">" + section._course.cd + " " + section._course.title + "</p> <p class=\"text-sz-m\"> " + registration_alert_messages_1.RegistrationAlertMessages.AUTO_WAITLIST_REGISTERED_TEXT + "</p>";
	        var config = {
	            content: "" + contentTemplate,
	            showIcon: true,
	            status: 'success',
	            dismissButton: false
	        };
	        this.notificationDelegate.create(config);
	    };
	    /* tslint:disable:cognitive-complexity */
	    RegistrationAlertsServant.prototype.showOtherRequiredSectionTypesAlert = function (section) {
	        var _this = this;
	        var course = section._course;
	        // from commands, usually they will be passing the ngSectionDatasource entry
	        if (_4.isUndefined(course)) {
	            var _section = _4.find(this.ngScheduledSectionsQuery.result.list, { id: section.id });
	            if (_section) {
	                course = _section._course;
	            }
	            // if we don't find section in the query, then there is a fundamental problem in the way this function got called
	            // try to run the query before making the call to this function
	        }
	        var isMultiSection = term_course_servant_1.TermCourseServant.isMultiSectionCourse(course);
	        if (!isMultiSection) {
	            return;
	        }
	        var sectionTypesForCourse = _4.sortBy(_4.filter(course._section_types, function (sectionType) { return sectionType.session === section._section_type.session; }), 'rank');
	        var scheduledSectionsForCourse = _4.filter(this.ngScheduledSectionsQuery.result.list, function (schedSection) {
	            return schedSection.course === course.id && schedSection._section_type.session === section._section_type.session;
	        });
	        var scheduledSectionTypes = _4.map(scheduledSectionsForCourse, 'section_type');
	        var unScheduledSectionTypeIDsForCourse = _4(sectionTypesForCourse)
	            .reject(function (sectionType) { return _4.includes(scheduledSectionTypes, sectionType.id); })
	            .map('id')
	            .value();
	        // it will not have section which is just waitlisted
	        var waitListedSectionTypeIDs = _4(scheduledSectionsForCourse)
	            .filter(function (sec) { return _this.ngScheduledSectionStatusServant.isStatusWaitlisted(sec) && sec.id !== section.id; })
	            .map('section_type')
	            .value();
	        var getTemplateForRequiredSection = function (sectionType, additionalText) {
	            if (additionalText === void 0) { additionalText = ''; }
	            var sectionTypeString = "" + _4.truncate(sectionType.name, { length: 25 }) + (sectionType.is_required ? ' (required) ' : '');
	            return sectionTypeString || additionalText
	                ? "<p class=\"text-sz-m mbz\"> - " + sectionTypeString + " " + additionalText + " </p>"
	                : "";
	        };
	        var alertContent = _4.reduce(sectionTypesForCourse, function (concat, sectionType) {
	            if (_4.includes(waitListedSectionTypeIDs, sectionType.id)) {
	                return concat + getTemplateForRequiredSection(sectionType, '(Waitlisted)');
	            }
	            if (_4.includes(unScheduledSectionTypeIDsForCourse, sectionType.id)) {
	                return concat + getTemplateForRequiredSection(sectionType);
	            }
	            return concat;
	        }, "");
	        if (!_4.isEmpty(alertContent)) {
	            this.notificationDelegate.info({
	                content: "<p class='text-sz-m text-bold'> " + registration_alert_messages_1.RegistrationAlertMessages.ADDITIONAL_SECTIONS_ARE_REQUIRED_TEXT + " </p> " + course.cd + " " + course.title + " " + alertContent,
	                showIcon: true,
	                dismissOnTimeout: false,
	                iconClass: 'eab-icon-information'
	            });
	        }
	    };
	    RegistrationAlertsServant.prototype.showOtherRequiredSectionsAlert = function (pusherOutcome) {
	        var _this = this;
	        var sectionsInPusherOutcome = _4.compact(_4.map(pusherOutcome, function (outcome) {
	            var section = _4.find(_this.ngScheduledSectionsQuery.result.list, function (sec) { return sec.id === outcome.id; });
	            return section;
	        }));
	        var coursesInPusherOutcome = _4.uniq(_4.map(sectionsInPusherOutcome, function (section) { return section._course; }));
	        var alertContent = _4.compact(_4.map(coursesInPusherOutcome, function (course) {
	            if (term_course_servant_1.TermCourseServant.isMultiSectionCourse(course)) {
	                var sectionsForCourse = _4.filter(_this.ngScheduledSectionsQuery.result.list, function (section) {
	                    return _4.isEqual(section.course, course.id);
	                });
	                var sectionTypesNotRegistered = _4(sectionsForCourse)
	                    .filter(function (section) {
	                    return _4.includes([
	                        scheduled_section_status_enum_1.ScheduledSectionStatus.UNSCHEDULED,
	                        scheduled_section_status_enum_1.ScheduledSectionStatus.SECTION_PICKED,
	                        scheduled_section_status_enum_1.ScheduledSectionStatus.WAITLISTED
	                    ], section.status);
	                })
	                    .uniqBy('section_type')
	                    .sortBy('_section_type.rank')
	                    .value();
	                if (_4.size(sectionTypesNotRegistered) > 0) {
	                    return _4.reduce(sectionTypesNotRegistered, function (concat, section) {
	                        return concat + " <p class=\"text-sz-m mbz\">" + _this.sectionTypeTemplate(section) + "</p>";
	                    }, "" + _this.courseTemplate(sectionTypesNotRegistered[0]));
	                }
	                else {
	                    return '';
	                }
	            }
	            else {
	                return '';
	            }
	        }));
	        if (!_4.isEmpty(alertContent)) {
	            this.notificationDelegate.info({
	                content: "<p class='text-sz-m text-bold'> " + registration_alert_messages_1.RegistrationAlertMessages.ADDITIONAL_SECTIONS_ARE_REQUIRED_TEXT + " </p> " + alertContent.join(' '),
	                showIcon: true,
	                dismissOnTimeout: false,
	                iconClass: 'eab-icon-information'
	            });
	        }
	    };
	    RegistrationAlertsServant.prototype.showHasRequisitesRegistrationAlerts = function (courseRequisites) {
	        this.showRequisiteAlerts(courseRequisites);
	    };
	    RegistrationAlertsServant.prototype.showHasRequisitesWaitlistAlert = function (courseRequisite) {
	        this.showRequisiteAlerts(courseRequisite);
	    };
	    RegistrationAlertsServant.prototype.showEnforcedCoreqsDropReminder = function (sections) {
	        var sectionsCoreqs = _4.map(sections, this.courseTemplate);
	        this.notificationDelegate.info({
	            content: "<p class='text-sz-m'>" + sectionsCoreqs.join(' and ') + " " + registration_alert_messages_1.RegistrationAlertMessages.ENFORCED_CO_REQUISITES_DROP_REMINDER_TEXT + "</p>",
	            showIcon: true,
	            dismissOnTimeout: true,
	            iconClass: 'eab-icon-information'
	        });
	    };
	    RegistrationAlertsServant.prototype.showAutoRegisterWaitlistedReminder = function () {
	        this.notificationDelegate.info({
	            content: "<p class='text-sz-m text-bold'> " + registration_alert_messages_1.RegistrationAlertMessages.AUTO_REGISTER_WAITLISTED_TEXT + " </p>",
	            showIcon: true,
	            dismissOnTimeout: false,
	            iconClass: 'eab-icon-information'
	        });
	    };
	    RegistrationAlertsServant.prototype.showUnScheduleFailAlert = function (sectionId) {
	        var section = _4.find(this.ngScheduledSectionsQuery.result.list, function (sec) { return sec.id === sectionId; });
	        var alertMessage = "<p class=\"text-sz-m mbz\"> " + this.courseTemplate(section) + " " + this.sectionTypeTemplate(section) + " </p>";
	        var contentTemplate = "<p class=\"text-sz-m\">" + registration_alert_messages_1.RegistrationAlertMessages.UNSCHEDULE_SECTION_FAIL_TEXT + " </p>";
	        var config = {
	            content: contentTemplate + " " + alertMessage + " please try again.",
	            showIcon: true,
	            status: 'error',
	            dismissButton: false
	        };
	        this.notificationDelegate.create(config);
	    };
	    RegistrationAlertsServant.prototype.showUnScheduleAllSectionsFailAlert = function (sections) {
	        var _this = this;
	        var alertMessage = _4.reduce(sections, function (concat, section) {
	            return concat + " <p class=\"text-sz-m mbz\"> " + _this.sectionTypeTemplate(section) + " </p>";
	        }, "" + this.courseTemplate(sections[0]));
	        var contentTemplate = "<p class=\"text-sz-m\">" + registration_alert_messages_1.RegistrationAlertMessages.UNSCHEDULE_SECTION_FAIL_TEXT + " </p>";
	        var config = {
	            content: contentTemplate + " " + alertMessage + " please try again.",
	            showIcon: true,
	            status: 'error',
	            dismissButton: false
	        };
	        this.notificationDelegate.create(config);
	    };
	    RegistrationAlertsServant.prototype.courseTemplate = function (section) {
	        if (!section) {
	            return '';
	        }
	        return section._course ? section._course.cd + " " + section._course.title : "";
	    };
	    RegistrationAlertsServant.prototype.courseTemplateFromCourse = function (course) {
	        if (!course) {
	            return '';
	        }
	        return course.cd + " " + course.title;
	    };
	    RegistrationAlertsServant.prototype.sectionTypeTemplate = function (section) {
	        var isMultiSection = term_course_servant_1.TermCourseServant.isMultiSectionCourse(section._course);
	        var isWaitlisted = this.ngScheduledSectionStatusServant.isStatusWaitlisted(section);
	        var waitlistedMessage = isWaitlisted ? "(Waitlisted)" : "";
	        var sectionType = isMultiSection ? this.ngMultiSectionServant.getTruncatedSectionTypeName(section, 18) : "";
	        var optional = isMultiSection && !section._section_type.is_required ? " (optional) " : " ";
	        return sectionType || waitlistedMessage ? "- " + sectionType + optional + waitlistedMessage : "";
	    };
	    RegistrationAlertsServant.prototype.courseTemplateFromPusherStatus = function (dropPusherOutcome) {
	        var _this = this;
	        // SORT by section type rank
	        var mappedSections = _4.sortBy(_4.compact(_4.map(dropPusherOutcome, function (outcome) {
	            var section = _4.find(_this.ngScheduledSectionsQuery.result.list, function (sec) { return sec.id === outcome.id; });
	            return section;
	        })), [
	            function (section) { return section.course; },
	            function (section) { return (section._section_type ? section._section_type.rank : 0); }
	        ]);
	        var courses = _4.uniq(_4.compact(_4.map(mappedSections, '_course')));
	        var alertMessage = '';
	        alertMessage = _4.reduce(courses, function (msg, course) {
	            msg += "<p class=\"text-sz-m mbz\"> " + _this.courseTemplateFromCourse(course) + " </p>";
	            var sections = _4.filter(mappedSections, function (section) { return _4.get(section, '_course.id') === course.id; });
	            var sectonsTemplate = _4.reduce(sections, function (result, section) {
	                return (result += "<p class=\"text-sz-m mbz\"> " + _this.sectionTypeTemplate(section) + " </p>");
	            }, '');
	            msg += sectonsTemplate;
	            return msg;
	        }, '');
	        return alertMessage;
	    };
	    RegistrationAlertsServant.prototype.getContentListForRequisites = function (requisites) {
	        var requisiteList = _4.map(requisites, function (requisite) {
	            return "<div class='text-sz-m'>- " + requisite.cd + " " + requisite.title + "</div>";
	        });
	        return requisiteList.join(' ');
	    };
	    RegistrationAlertsServant.prototype.getAlertContentForRequisite = function (requisite) {
	        var missingCoReqs = requisite && !_4.isEmpty(requisite.missing_coreqs)
	            ? "<p class='text-sz-m'> " + registration_alert_messages_1.RegistrationAlertMessages.CO_REQUISITES_REQUIRED_TEXT + " " + requisite.fullTitle + " </p>\n    " + this.getContentListForRequisites(requisite.missing_coreqs) + " "
	            : "";
	        var missingPreReqs = requisite && !_4.isEmpty(requisite.missing_prereqs)
	            ? "<p class='text-sz-m'> " + registration_alert_messages_1.RegistrationAlertMessages.PRE_REQUISITES_REQUIRED_TEXT + " " + requisite.fullTitle + " </p>\n    " + this.getContentListForRequisites(requisite.missing_prereqs) + " "
	            : "";
	        return "" + missingCoReqs + missingPreReqs;
	    };
	    RegistrationAlertsServant.prototype.showRequisiteAlerts = function (courseRequisites) {
	        var _this = this;
	        var courseReqs = _4.isArray(courseRequisites) ? courseRequisites : [courseRequisites];
	        var alertContent = _4(courseReqs)
	            .uniqBy('courseId')
	            .map(function (courseReq) { return _this.getAlertContentForRequisite(courseReq); })
	            .compact()
	            .value()
	            .join(' ');
	        if (!_4.isEmpty(alertContent)) {
	            this.notificationDelegate.info({
	                content: "" + alertContent,
	                showIcon: true,
	                dismissOnTimeout: false,
	                iconClass: 'eab-icon-information'
	            });
	        }
	    };
	    return RegistrationAlertsServant;
	}());
	exports.RegistrationAlertsServant = RegistrationAlertsServant;
	angular.module('capability-ng-scheduler').service('ngRegistrationAlertsServant', RegistrationAlertsServant);


/***/ }),
/* 772 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	var _4 = __webpack_require__(1);
	var RegistrationCallbackServant = /** @class */ (function () {
	    function RegistrationCallbackServant(ngSectionsDatasource, ngRegistrationAlertsServant, ngRequisiteCourseServant, ngRegisterSectionsDatasource, ngRegistrationFailureModel, ngScheduledSectionServant, ngRegisterSectionsQuery, updateSeatAvailabilityCommand) {
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngRegistrationAlertsServant = ngRegistrationAlertsServant;
	        this.ngRequisiteCourseServant = ngRequisiteCourseServant;
	        this.ngRegisterSectionsDatasource = ngRegisterSectionsDatasource;
	        this.ngRegistrationFailureModel = ngRegistrationFailureModel;
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.ngRegisterSectionsQuery = ngRegisterSectionsQuery;
	        this.updateSeatAvailabilityCommand = updateSeatAvailabilityCommand;
	    }
	    RegistrationCallbackServant.prototype.setRegisteredStatus = function (successfulSectionOutcome) {
	        // pusher returns successful registration
	        var section = this.ngSectionsDatasource.get(successfulSectionOutcome.id);
	        if (section) {
	            section.status = scheduled_section_status_enum_1.ScheduledSectionStatus.REGISTERED;
	            this.ngSectionsDatasource.put(section);
	        }
	        this.removeSectionError(successfulSectionOutcome.id);
	    };
	    RegistrationCallbackServant.prototype.removeSectionError = function (sectionId) {
	        this.ngRegistrationFailureModel.del(sectionId);
	    };
	    RegistrationCallbackServant.prototype.showSuccessfulRegistrationAlerts = function (successfulRegistrationsOutcome) {
	        var _this = this;
	        var hasSuccessfulRegistrations = successfulRegistrationsOutcome.length > 0;
	        if (hasSuccessfulRegistrations) {
	            this.ngRegistrationAlertsServant.showSuccessRegistrationAlerts(successfulRegistrationsOutcome);
	        }
	        var getRequisitesForAlert = function (regOutcome) {
	            var sectionRequisites = _4.map(regOutcome, function (registrationOutcome) {
	                var sectionIdFromOutcome = registrationOutcome.id;
	                var matchingFullSection = _4.find(_this.ngRegisterSectionsDatasource.values(), function (section) { return _4.isEqual(section.id, sectionIdFromOutcome); });
	                return _this.ngRequisiteCourseServant.getRequisitesForSection(sectionIdFromOutcome, matchingFullSection._course);
	            });
	            return _4.filter(sectionRequisites, function (sectionRequisite) {
	                return !_4.isEmpty(sectionRequisite.missing_prereqs) || !_4.isEmpty(sectionRequisite.missing_coreqs);
	            });
	        };
	        var requisitesForAlert = hasSuccessfulRegistrations ? getRequisitesForAlert(successfulRegistrationsOutcome) : [];
	        if (!_4.isEmpty(requisitesForAlert)) {
	            this.ngRegistrationAlertsServant.showHasRequisitesRegistrationAlerts(requisitesForAlert);
	        }
	    };
	    RegistrationCallbackServant.prototype.showAutoRegisteredAlert = function (successfulRegistrationsOutcome) {
	        this.ngRegistrationAlertsServant.showAutoWaitlistSectionRegisteredAlerts(successfulRegistrationsOutcome);
	    };
	    RegistrationCallbackServant.prototype.handlePusherFailedResponse = function (failedRegistrationsOutcome, sectionStatusesBeforeRegistration) {
	        var _this = this;
	        // Get updated seats for all failed sections
	        var sectionIds = _4.map(failedRegistrationsOutcome, function (sectionOutcome) { return sectionOutcome.id; });
	        this.updateSeatAvailabilityCommand(sectionIds);
	        // pusher returns failed registration
	        _4.each(failedRegistrationsOutcome, function (sectionOutcome) {
	            var section = _this.ngSectionsDatasource.get(sectionOutcome.id);
	            var isAutoWaitlistStatus = section ? _4.get(section, '_availability.is_auto_waitlist', false) : false;
	            if (isAutoWaitlistStatus) {
	                if (section) {
	                    section.status = scheduled_section_status_enum_1.ScheduledSectionStatus.WAITLISTED;
	                    _this.ngSectionsDatasource.put(section);
	                }
	            }
	            else {
	                if (section) {
	                    section.status = sectionStatusesBeforeRegistration[section.id];
	                    _this.ngSectionsDatasource.put(section);
	                }
	                _this.ngRegistrationFailureModel.put({
	                    type: 'ADD',
	                    id: sectionOutcome.id,
	                    message: sectionOutcome.message
	                });
	            }
	        });
	    };
	    RegistrationCallbackServant.prototype.showFailedRegistrationAlerts = function (failedRegistrationsOutcome, selectedSections) {
	        var _this = this;
	        var auto_waitlist_sections = this.ngScheduledSectionServant.getAutoWaitlistSections(selectedSections);
	        // show failed alerts
	        if (failedRegistrationsOutcome.length > 0) {
	            if (_4.size(auto_waitlist_sections) > 0) {
	                var sectionRegistrationOutcomesByAutoWailist = _4.partition(failedRegistrationsOutcome, function (sectionRegistrationOutc) { return _4.includes(auto_waitlist_sections, sectionRegistrationOutc.id); });
	                var autoWaitlistOutcome = _4.get(sectionRegistrationOutcomesByAutoWailist, '[0]', []);
	                var nonAutoWaitlistOutcome = _4.get(sectionRegistrationOutcomesByAutoWailist, '[1]', []);
	                // autowaitlist outcome
	                _4.each(sectionRegistrationOutcomesByAutoWailist[0], function (autoWaitlistedSection) {
	                    // TODO: verify pusher outcome to get position and pass it to method // There are 3 students ahead of you. We will automatically register you when a seat becomes available.
	                    _this.ngRegistrationAlertsServant.showAutoWaitlistSectionWaitlistedAlerts(autoWaitlistedSection);
	                });
	                // non autowaitlist outcome
	                if (_4.size(sectionRegistrationOutcomesByAutoWailist[1]) > 0) {
	                    this.ngRegistrationAlertsServant.showFailedRegistrationAlerts(sectionRegistrationOutcomesByAutoWailist[1]);
	                }
	            }
	            else {
	                this.ngRegistrationAlertsServant.showFailedRegistrationAlerts(failedRegistrationsOutcome);
	            }
	        }
	    };
	    RegistrationCallbackServant.prototype.showRegistrationAutoWaitlistedAlerts = function (autowaitlistedSections) {
	        var _this = this;
	        _4.each(autowaitlistedSections, function (autoWaitlistedSection) {
	            // TODO: verify pusher outcome to get position and pass it to method // There are 3 students ahead of you. We will automatically register you when a seat becomes available.
	            _this.ngRegistrationAlertsServant.showAutoWaitlistSectionWaitlistedAlerts(autoWaitlistedSection);
	        });
	    };
	    RegistrationCallbackServant.prototype.showEnforcedCoreqsDropReminderAlerts = function (successfulRegistrationsOutcome) {
	        var _this = this;
	        var hasSuccessfulRegistrations = successfulRegistrationsOutcome.length > 0;
	        var getSectionsWithRegisteredCoreqs = function (regOutcome) {
	            var sectionsWithCoreqsRegistered = [];
	            _4.forEach(regOutcome, function (registrationOutcome) {
	                var sectionIdFromOutcome = registrationOutcome.id;
	                var matchingFullSection = _this.ngRegisterSectionsDatasource.get(sectionIdFromOutcome);
	                if (matchingFullSection) {
	                    var sectionRegisteredCoreqs = _this.ngScheduledSectionServant.getRegisteredCoreqsRelated(matchingFullSection, _this.ngRegisterSectionsDatasource.values());
	                    if (sectionRegisteredCoreqs.length > 0) {
	                        sectionsWithCoreqsRegistered.push(matchingFullSection);
	                    }
	                }
	            });
	            return _4.filter(sectionsWithCoreqsRegistered, !_4.isEmpty);
	        };
	        var sectionsWithCoreqs = hasSuccessfulRegistrations
	            ? getSectionsWithRegisteredCoreqs(successfulRegistrationsOutcome)
	            : [];
	        if (!_4.isEmpty(sectionsWithCoreqs)) {
	            this.ngRegistrationAlertsServant.showEnforcedCoreqsDropReminder(sectionsWithCoreqs);
	        }
	    };
	    return RegistrationCallbackServant;
	}());
	exports.RegistrationCallbackServant = RegistrationCallbackServant;
	angular.module('capability-ng-scheduler').service('ngRegistrationCallbackServant', RegistrationCallbackServant);


/***/ }),
/* 773 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var RegistrationReceiptServant = /** @class */ (function () {
	    function RegistrationReceiptServant(ngRegistrationActivityDatasource) {
	        this.ngRegistrationActivityDatasource = ngRegistrationActivityDatasource;
	    }
	    RegistrationReceiptServant.prototype.getReceiptData = function (sections) {
	        if (sections === void 0) { sections = []; }
	        var registrationActivityData = this.ngRegistrationActivityDatasource.values();
	        var receiptData = _4.map(registrationActivityData, function (activity) {
	            var sectionId = -1;
	            var sectionName = '';
	            var context = activity.context;
	            var message = activity.message;
	            var success = activity.alert_type === 'success';
	            var isActiveRecord = activity.is_active;
	            var transactionId = activity.transaction_id;
	            var transactionDate = moment(activity.created_ts).format('MMM DD, YYYY LT');
	            var action = '';
	            if (context) {
	                var sectionType = _4.get(context, 'section_type', '');
	                sectionId = context.section_id;
	                var sectionTypeAppend = !_4.isEmpty(sectionType) ? " - " + sectionType : '';
	                sectionName = "" + context.section_name + sectionTypeAppend;
	                action = context.action;
	            }
	            return {
	                id: activity.id,
	                section_id: sectionId,
	                title: "" + sectionName,
	                message: message,
	                success: success,
	                action: action,
	                transactionDate: transactionDate,
	                isActiveRecord: isActiveRecord,
	                transactionId: transactionId
	            };
	        });
	        if (!_4.isEmpty(sections)) {
	            return _4.filter(receiptData, function (receipt) { return _4.includes(sections, receipt.section_id) && receipt.isActiveRecord; });
	        }
	        return receiptData;
	    };
	    return RegistrationReceiptServant;
	}());
	exports.RegistrationReceiptServant = RegistrationReceiptServant;
	angular.module('capability-ng-scheduler').service('ngRegistrationReceiptServant', RegistrationReceiptServant);


/***/ }),
/* 774 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var RequisiteCourseServant = /** @class */ (function () {
	    function RequisiteCourseServant() {
	    }
	    RequisiteCourseServant.prototype.getRequisitesForSection = function (sectionId, course) {
	        return {
	            sectionId: sectionId,
	            courseId: course.id,
	            fullTitle: course.cd + " " + course.title,
	            missing_coreqs: course._missing_coreqs,
	            missing_prereqs: course._missing_prereqs
	        };
	    };
	    RequisiteCourseServant.prototype.isCoReqMissing = function (section) {
	        return !_4.isEmpty(section._course._missing_coreqs);
	    };
	    RequisiteCourseServant.prototype.isPreReqMissing = function (section) {
	        return !_4.isEmpty(section._course._missing_prereqs);
	    };
	    return RequisiteCourseServant;
	}());
	exports.RequisiteCourseServant = RequisiteCourseServant;
	angular.module('capability-ng-scheduler').service('ngRequisiteCourseServant', RequisiteCourseServant);


/***/ }),
/* 775 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var scheduled_section_servant_1 = __webpack_require__(19);
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	var registration_waitlist_outcome_status_strategy_1 = __webpack_require__(44);
	var _4 = __webpack_require__(1);
	var WaitlistCallbackServant = /** @class */ (function () {
	    function WaitlistCallbackServant(ngRegisterSectionsDatasource, ngScheduledSectionsQuery, ngSectionsDatasource, ngRequisiteCourseServant, ngSectionAvailabilityDatasource, $stateParams, $state, ngWaitlistStatusDatasource, ngRegistrationAlertsServant, ngScheduledSectionServant, ngRegistrationWaitlistPositionModel, unscheduleSectionCommand, ngTermScheduleFlags, ngScheduledSectionStatusServant, getSectionAvailabilityCommand, updateSectionSelectionsCommand) {
	        this.ngRegisterSectionsDatasource = ngRegisterSectionsDatasource;
	        this.ngScheduledSectionsQuery = ngScheduledSectionsQuery;
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngRequisiteCourseServant = ngRequisiteCourseServant;
	        this.ngSectionAvailabilityDatasource = ngSectionAvailabilityDatasource;
	        this.$stateParams = $stateParams;
	        this.$state = $state;
	        this.ngWaitlistStatusDatasource = ngWaitlistStatusDatasource;
	        this.ngRegistrationAlertsServant = ngRegistrationAlertsServant;
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.ngRegistrationWaitlistPositionModel = ngRegistrationWaitlistPositionModel;
	        this.unscheduleSectionCommand = unscheduleSectionCommand;
	        this.ngTermScheduleFlags = ngTermScheduleFlags;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.getSectionAvailabilityCommand = getSectionAvailabilityCommand;
	        this.updateSectionSelectionsCommand = updateSectionSelectionsCommand;
	    }
	    WaitlistCallbackServant.prototype.isWaitlistRequestResultByType = function (pusherOutc, outcomeTypeToFilterBy) {
	        var outcomeType = registration_waitlist_outcome_status_strategy_1.RegistrationWaitlistOutcomeStatusStrategy.getByKey(registration_waitlist_outcome_status_strategy_1.RegistrationWaitlistOutcomeStatusConditionalStrategy.evaluate(pusherOutc));
	        return _4.isEqual(outcomeTypeToFilterBy, outcomeType.name);
	    };
	    WaitlistCallbackServant.prototype.waitlistSuccess = function (outcomeData) {
	        var sectionId = outcomeData.id;
	        var sectionToWaitlist = _4.find(tslib_1.__spreadArrays(this.ngScheduledSectionsQuery.result.list, _4.toArray(this.ngSectionsDatasource.read())), function (section) { return section.id === sectionId; });
	        var isAutoWaitlistStatus = this.ngScheduledSectionServant.isAutoWailistSection(sectionToWaitlist);
	        var isSectionWithStatus = this.ngScheduledSectionStatusServant.hasStatus(sectionToWaitlist);
	        this.ngRegistrationAlertsServant.hidePendingAlert();
	        var sectionToScheduleAvailability = this.ngSectionAvailabilityDatasource.get(sectionId);
	        if (sectionToScheduleAvailability) {
	            var id = sectionToScheduleAvailability.id, is_seat_available = sectionToScheduleAvailability.is_seat_available, is_waitlist_allowed = sectionToScheduleAvailability.is_waitlist_allowed, is_waitlist_full = sectionToScheduleAvailability.is_waitlist_full, is_auto_waitlist = sectionToScheduleAvailability.is_auto_waitlist, avail_seats = sectionToScheduleAvailability.avail_seats, last_refresh_ts = sectionToScheduleAvailability.last_refresh_ts, linked_section_coreqs_satisfied = sectionToScheduleAvailability.linked_section_coreqs_satisfied, has_linked_section_coreqs = sectionToScheduleAvailability.has_linked_section_coreqs;
	            this.ngWaitlistStatusDatasource.put({
	                id: id,
	                is_seat_available: is_seat_available,
	                is_waitlist_allowed: is_waitlist_allowed,
	                is_waitlist_full: is_waitlist_full,
	                is_auto_waitlist: is_auto_waitlist,
	                avail_seats: avail_seats,
	                last_refresh_ts: last_refresh_ts,
	                linked_section_coreqs_satisfied: linked_section_coreqs_satisfied,
	                has_linked_section_coreqs: has_linked_section_coreqs
	            });
	        }
	        // TODO: recheck this condition, what are the scenarios for this?
	        if (sectionToWaitlist) {
	            sectionToWaitlist.status = scheduled_section_status_enum_1.ScheduledSectionStatus.WAITLISTED;
	            this.ngSectionsDatasource.put(sectionToWaitlist);
	        }
	        var regSection = this.ngSectionsDatasource.metasource().compose(sectionToWaitlist);
	        var isSelected = scheduled_section_servant_1.ScheduledSectionServant.canBeSelected(regSection, this.ngTermScheduleFlags);
	        regSection.is_selected = isSelected;
	        this.ngRegisterSectionsDatasource.put(regSection);
	        this.updateSectionSelectionsCommand(regSection.id, isSelected);
	        this.ngRegistrationWaitlistPositionModel.put({
	            place_in_waitlist: _4.get(outcomeData, 'place_in_waitlist', 0),
	            waitlist_position: _4.get(outcomeData, 'waitlist_position', 0),
	            section: outcomeData.id
	        });
	        this.ngRegistrationAlertsServant.showWaitlistAlert(sectionToWaitlist, 'success', '');
	        // show co-pre requisites growler
	        var matchingFullSection = _4.find(this.ngRegisterSectionsDatasource.values(), function (section) {
	            return _4.isEqual(section.id, sectionId);
	        });
	        var courseRequisitesForAlert = this.ngRequisiteCourseServant.getRequisitesForSection(sectionId, matchingFullSection._course);
	        if (!_4.isEmpty([courseRequisitesForAlert])) {
	            this.ngRegistrationAlertsServant.showHasRequisitesWaitlistAlert(courseRequisitesForAlert);
	        }
	        // TODO: verify if this should be executed after running query mediator
	        if (sectionToWaitlist) {
	            this.ngRegistrationAlertsServant.showOtherRequiredSectionTypesAlert(sectionToWaitlist);
	        }
	    };
	    WaitlistCallbackServant.prototype.waitlistFails = function (outcomeData) {
	        var _this = this;
	        var sectionId = outcomeData.id;
	        var sectionToWaitlist = _4.find(tslib_1.__spreadArrays(this.ngScheduledSectionsQuery.result.list, _4.toArray(this.ngSectionsDatasource.read())), function (section) { return section.id === sectionId; });
	        var isAutoWaitlistStatus = this.ngScheduledSectionServant.isAutoWailistSection(sectionToWaitlist);
	        var isSectionWithStatus = this.ngScheduledSectionStatusServant.hasStatus(sectionToWaitlist);
	        this.ngRegistrationAlertsServant.hidePendingAlert();
	        // waitlist fails AND it's autowaitlist: REGISTER
	        if (isAutoWaitlistStatus) {
	            this.ngRegistrationAlertsServant.showAutoWaitlistSectionRegisteredAlerts(outcomeData[sectionToWaitlist.id]);
	            if (sectionToWaitlist) {
	                sectionToWaitlist.status = scheduled_section_status_enum_1.ScheduledSectionStatus.REGISTERED;
	                this.ngSectionsDatasource.put(sectionToWaitlist);
	            }
	        }
	        else {
	            // if waitlist fails and if course is full. Also unschedule it.
	            if (sectionToWaitlist) {
	                sectionToWaitlist.status = scheduled_section_status_enum_1.ScheduledSectionStatus.UNSCHEDULED;
	                this.ngSectionsDatasource.put(sectionToWaitlist);
	            }
	            this.ngRegistrationAlertsServant.showWaitlistAlert(sectionToWaitlist, 'error', outcomeData.message);
	            if (isSectionWithStatus) {
	                this.unscheduleSectionCommand(this.$stateParams.termId, sectionId).then(function () {
	                    if (_this.$state.is('my.schedule.registration.courseSections')) {
	                        _this.getSectionAvailabilityCommand(_this.$stateParams.termId, _this.$stateParams.courseId, _this.$stateParams.sectionTypeId || 0);
	                    }
	                });
	            }
	        }
	        // TODO: verify if this should be executed after running query mediator
	        if (sectionToWaitlist) {
	            this.ngRegistrationAlertsServant.showOtherRequiredSectionTypesAlert(sectionToWaitlist);
	        }
	    };
	    return WaitlistCallbackServant;
	}());
	exports.WaitlistCallbackServant = WaitlistCallbackServant;
	angular.module('capability-ng-scheduler').service('ngWaitlistCallbackServant', WaitlistCallbackServant);


/***/ }),
/* 776 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var RegistrationActivity = /** @class */ (function () {
	    function RegistrationActivity(registrationActivity) {
	        var activityContext = {
	            section_id: -1,
	            action: 'N/A',
	            section_name: '',
	            section_type: ''
	        };
	        _4.merge(this, { context: activityContext }, registrationActivity);
	        return this;
	    }
	    RegistrationActivity.build = function (registrationError) {
	        return new RegistrationActivity(registrationError);
	    };
	    return RegistrationActivity;
	}());
	exports.RegistrationActivity = RegistrationActivity;


/***/ }),
/* 777 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	exports.TransactionRequestType = new utility_ts_strategy_1.Strategy({
	    ADD: 'Registration',
	    DROP: 'Drop',
	    SWAP: 'Swap',
	    WAITLIST: 'Waitlist',
	    WITHDRAW: 'Withdraw'
	});


/***/ }),
/* 778 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var Campus = /** @class */ (function () {
	    function Campus(campus) {
	        _4.merge(this, {
	            id: -1,
	            name: 'TBD',
	            is_online: true
	        }, campus);
	        return this;
	    }
	    Campus.build = function (campus) {
	        return new Campus(campus);
	    };
	    return Campus;
	}());
	exports.Campus = Campus;


/***/ }),
/* 779 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var Location = /** @class */ (function () {
	    function Location(location) {
	        var NULLABLE_DEFAULTS = {
	            campus_name: '',
	            name: '',
	            address: '',
	            comments: '',
	            latitude: '',
	            longitude: ''
	        };
	        _4.merge(this, NULLABLE_DEFAULTS, location);
	        return this;
	    }
	    Location.build = function (location) {
	        return new Location(location);
	    };
	    return Location;
	}());
	exports.Location = Location;


/***/ }),
/* 780 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SectionAvailability = /** @class */ (function () {
	    function SectionAvailability(sectionType) {
	        _4.merge(this, sectionType);
	        return this;
	    }
	    SectionAvailability.build = function (sectionType) {
	        return new SectionAvailability(sectionType);
	    };
	    return SectionAvailability;
	}());
	exports.SectionAvailability = SectionAvailability;


/***/ }),
/* 781 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SectionLabel = /** @class */ (function () {
	    function SectionLabel(sectionLabel) {
	        _4.merge(this, sectionLabel);
	        return this;
	    }
	    SectionLabel.build = function (sectionLabel) {
	        return new SectionLabel(sectionLabel);
	    };
	    return SectionLabel;
	}());
	exports.SectionLabel = SectionLabel;


/***/ }),
/* 782 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SectionTime = /** @class */ (function () {
	    function SectionTime(sectionTime) {
	        _4.merge(this, sectionTime);
	        return this;
	    }
	    SectionTime.build = function (sectionTime) {
	        return new SectionTime(sectionTime);
	    };
	    return SectionTime;
	}());
	exports.SectionTime = SectionTime;


/***/ }),
/* 783 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var TermCourse = /** @class */ (function () {
	    function TermCourse(course) {
	        _4.merge(this, course);
	        return this;
	    }
	    TermCourse.build = function (course) {
	        return new TermCourse(course);
	    };
	    return TermCourse;
	}());
	exports.TermCourse = TermCourse;


/***/ }),
/* 784 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var TermSectionType = /** @class */ (function () {
	    function TermSectionType(sectionType) {
	        this.session = '-1';
	        _4.merge(this, sectionType, {
	            name: _4.isEmpty(_4.get(sectionType, 'name', ''))
	                ? _4.get(sectionType, 'cd', '')
	                : _4.get(sectionType, 'name', ''),
	            session: sectionType.session ? sectionType.session : '-1'
	        });
	        return this;
	    }
	    TermSectionType.build = function (sectionType) {
	        return new TermSectionType(sectionType);
	    };
	    return TermSectionType;
	}());
	exports.TermSectionType = TermSectionType;


/***/ }),
/* 785 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var TermPlannedCourse = /** @class */ (function () {
	    function TermPlannedCourse(plannedCourse) {
	        _4.merge(this, plannedCourse);
	        return this;
	    }
	    TermPlannedCourse.build = function (plannedCourse) {
	        return new TermPlannedCourse(plannedCourse);
	    };
	    return TermPlannedCourse;
	}());
	exports.TermPlannedCourse = TermPlannedCourse;


/***/ }),
/* 786 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var TermSession = /** @class */ (function () {
	    function TermSession(session) {
	        _4.merge(this, session);
	        return this;
	    }
	    TermSession.build = function (session) {
	        return new TermSession(session);
	    };
	    return TermSession;
	}());
	exports.TermSession = TermSession;


/***/ }),
/* 787 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(7);
	var utility_ts_type_1 = __webpack_require__(17);
	var UnscheduledSectionsByCampus = /** @class */ (function () {
	    function UnscheduledSectionsByCampus(calendarPreviewSetOnDrag, calendarPreviewSetOnOver, calendarPreviewDragEnd, calendarPreviewSetSections, phxDraggableService, ngTermScheduleFlags, appConfigModel, calendarPreviewRemoveSections, ngScheduledSectionsQuery, ngUnscheduledSectionServant, ngRegistrationAlertsServant, ngSectionSwapServant, ngMultiSectionServant, $state, $stateParams, $modal, ngSectionInfoServant, scheduleSectionCommand, getCourseSchedulerCommand, waitlistSectionCommand, saveTermPinCommand, updateSeatAvailabilityCommand, loadStudentUnavailabilityCommand, viewMoreTimesCommand, getTermCoursesCommand, getTermPinCommand, getSectionDetailsCommand, ngComponentCommunicatorService, saveSelectedUnscheduledSectionCommand, removeSelectedUnscheduledSectionCommand, ngSwapFacade, ngScheduleSectionFacade) {
	        this.calendarPreviewSetOnDrag = calendarPreviewSetOnDrag;
	        this.calendarPreviewSetOnOver = calendarPreviewSetOnOver;
	        this.calendarPreviewDragEnd = calendarPreviewDragEnd;
	        this.calendarPreviewSetSections = calendarPreviewSetSections;
	        this.phxDraggableService = phxDraggableService;
	        this.ngTermScheduleFlags = ngTermScheduleFlags;
	        this.appConfigModel = appConfigModel;
	        this.calendarPreviewRemoveSections = calendarPreviewRemoveSections;
	        this.ngScheduledSectionsQuery = ngScheduledSectionsQuery;
	        this.ngUnscheduledSectionServant = ngUnscheduledSectionServant;
	        this.ngRegistrationAlertsServant = ngRegistrationAlertsServant;
	        this.ngSectionSwapServant = ngSectionSwapServant;
	        this.ngMultiSectionServant = ngMultiSectionServant;
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	        this.$modal = $modal;
	        this.ngSectionInfoServant = ngSectionInfoServant;
	        this.scheduleSectionCommand = scheduleSectionCommand;
	        this.getCourseSchedulerCommand = getCourseSchedulerCommand;
	        this.waitlistSectionCommand = waitlistSectionCommand;
	        this.saveTermPinCommand = saveTermPinCommand;
	        this.updateSeatAvailabilityCommand = updateSeatAvailabilityCommand;
	        this.loadStudentUnavailabilityCommand = loadStudentUnavailabilityCommand;
	        this.viewMoreTimesCommand = viewMoreTimesCommand;
	        this.getTermCoursesCommand = getTermCoursesCommand;
	        this.getTermPinCommand = getTermPinCommand;
	        this.getSectionDetailsCommand = getSectionDetailsCommand;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.saveSelectedUnscheduledSectionCommand = saveSelectedUnscheduledSectionCommand;
	        this.removeSelectedUnscheduledSectionCommand = removeSelectedUnscheduledSectionCommand;
	        this.ngSwapFacade = ngSwapFacade;
	        this.ngScheduleSectionFacade = ngScheduleSectionFacade;
	    }
	    UnscheduledSectionsByCampus.prototype.$onInit = function () {
	        this.isSearchPage = _4.includes(this.$state.current.name || '', 'search');
	        this.openedIndex = 0;
	        this.isPermissionPinsFeatureEnabled = this.appConfigModel.model.member_features['reg-class_permission'];
	    };
	    UnscheduledSectionsByCampus.prototype.getAccordionTitle = function (campus) {
	        return campus.name === 'Online Classes'
	            ? "Online Classes (" + campus.sections.length + ")"
	            : utility_ts_type_1.StringUtility.truncateString(25, campus.name) + " (" + campus.sections.length + ")";
	    };
	    UnscheduledSectionsByCampus.prototype.canDragSection = function (section) {
	        return this.ngUnscheduledSectionServant.canDragSection(section);
	    };
	    UnscheduledSectionsByCampus.prototype.selectedIndexChanged = function (event) {
	        var index = event.target.selectedIndex;
	        var sections = _4.get(this.sectionGroups[index], 'sections', false);
	        if (sections) {
	            this.toggleCampus(sections);
	        }
	    };
	    UnscheduledSectionsByCampus.prototype.isSectionReadyForWaitListing = function (section) {
	        if (!this.ngUnscheduledSectionServant.isSectionFull(section)) {
	            return false;
	        }
	        if (this.ngTermScheduleFlags.isFullSectionsSchedulingEnabled()) {
	            return false;
	        }
	        return this.ngUnscheduledSectionServant.canAddToWaitlist(section);
	    };
	    /* tslint:disable:cognitive-complexity */
	    UnscheduledSectionsByCampus.prototype.moveSectionTile = function (draggableElements) {
	        var _this = this;
	        var target = draggableElements[1];
	        if (!target.className.includes('drag-area')) {
	            return;
	        }
	        var scope = angular.element(_4.first(draggableElements)).scope();
	        scope.$ctrl = this;
	        var isConflictingSection = this.ngUnscheduledSectionServant.isSectionConflicting(scope.section);
	        var isWaitlistSection = this.isSectionReadyForWaitListing(scope.section);
	        scope.resetSections = function () {
	            if (_this.isSearchPage) {
	                _this.$state.go('my.schedule.registration.search');
	            }
	            else {
	                _this.$state.go('my.schedule.registration.courseSections', { courseId: scope.section._course.id, sectionTypeId: scope.section.section_type }, { reload: true });
	            }
	        };
	        this.completeSectionMovement = function () {
	            if (_this.ngSectionSwapServant.isInSwapMode()) {
	                _this.addSectionForSwap();
	            }
	            else {
	                _this.scheduleSection();
	            }
	        };
	        this.addSectionForSwap = function () {
	            _this.ngSwapFacade.saveSwapToAndRedirect(scope.section);
	        };
	        this.scheduleSection = function () {
	            _this.ngScheduleSectionFacade.scheduleSection(scope.section);
	        };
	        if (isConflictingSection) {
	            this.phxDraggableService.getDrake('unscheduledSectionsBag').cancel();
	            this.getSectionDetailsCommand(scope.section.id).then(function () {
	                _this.ngComponentCommunicatorService.publish('OPEN_CONFLICT_PROMPT');
	            });
	        }
	        else if (isWaitlistSection) {
	            this.phxDraggableService.getDrake('unscheduledSectionsBag').cancel();
	            this.getTermPinCommand(this.$stateParams.termId).then(function () {
	                _this.getSectionDetailsCommand(scope.section.id).then(function () {
	                    _this.ngComponentCommunicatorService.publish('OPEN_WAITLIST_PROMPT');
	                });
	            });
	        }
	        else {
	            this.completeSectionMovement();
	        }
	    };
	    UnscheduledSectionsByCampus.prototype.hideAddWaitlistPrompt = function (confirmAdd) {
	        this.addWaitlistModal.hide();
	        this.calendarPreviewDragEnd();
	        this.calendarPreviewRemoveSections();
	        if (!confirmAdd) {
	            this.$state.reload();
	        }
	    };
	    UnscheduledSectionsByCampus.prototype.toggleCampus = function (campus) {
	        this.updateInitialSeats(campus);
	    };
	    UnscheduledSectionsByCampus.prototype.updateInitialSeats = function (campus) {
	        if (this.ngTermScheduleFlags.getNumberOfSeatsRequestsPerCourse() !== 0) {
	            var SectionIdsForInitialOpen = _4.compact(_4.map(_4.take(campus.sections, this.ngTermScheduleFlags.getNumberOfSeatsRequestsPerCourse()), 'id'));
	            this.updateSeatAvailabilityCommand(SectionIdsForInitialOpen);
	        }
	    };
	    UnscheduledSectionsByCampus.prototype.updateFirsOpenedCampuSeats = function (campus, index) {
	        if (index === 0) {
	            this.updateInitialSeats(campus);
	        }
	    };
	    UnscheduledSectionsByCampus.prototype.viewMoreTimes = function (campus) {
	        this.viewMoreTimesCommand(campus);
	        if (this.ngTermScheduleFlags.getNumberOfSeatsRequestsPerCourse() !== 0) {
	            var sectionsLength = Math.min(campus.limitedSections.length + this.ngTermScheduleFlags.getNumberOfSeatsRequestsPerCourse(), campus.sections.length);
	            var nextSectionIds = _4.compact(_4.map(campus.sections.slice(campus.limitedSections.length, sectionsLength), 'id'));
	            this.updateSeatAvailabilityCommand(nextSectionIds);
	        }
	    };
	    UnscheduledSectionsByCampus.prototype.areAllSectionsDisplayed = function (campus, displayedFlags) {
	        return _4.isEqual(campus.sections.length, campus.limitedSections.length);
	    };
	    return UnscheduledSectionsByCampus;
	}());
	exports.UnscheduledSectionsByCampus = UnscheduledSectionsByCampus;
	var UnscheduledSectionsByCampusComponent = /** @class */ (function () {
	    function UnscheduledSectionsByCampusComponent() {
	        this.bindings = {
	            sectionGroups: '<',
	            campus: '<',
	            sectionKind: '@',
	            allDisplayedFlags: '<'
	        };
	        this.controller = UnscheduledSectionsByCampus;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/unscheduled_sections/components/unscheduled_sections_by_campus/unscheduled_sections_by_campus.html';
	    }
	    return UnscheduledSectionsByCampusComponent;
	}());
	angular
	    .module('capability-ng-scheduler')
	    .component('unscheduledSectionsByCampus', new UnscheduledSectionsByCampusComponent());


/***/ }),
/* 788 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	var _4 = __webpack_require__(1);
	var UnscheduledSectionServant = /** @class */ (function () {
	    function UnscheduledSectionServant(ngTermScheduleFlags) {
	        this.ngTermScheduleFlags = ngTermScheduleFlags;
	    }
	    UnscheduledSectionServant.prototype.isSectionFull = function (unscheduledSection) {
	        return (!this.isSectionConflicting(unscheduledSection) &&
	            !_4.isUndefined(unscheduledSection._availability) &&
	            !unscheduledSection._availability.is_seat_available);
	    };
	    UnscheduledSectionServant.prototype.isSectionConflicting = function (unscheduledSection) {
	        return _4.isUndefined(unscheduledSection._availability)
	            ? false
	            : unscheduledSection._availability.is_conflicting_with_linked_section ||
	                unscheduledSection._availability.is_conflicting_with_selected_section ||
	                unscheduledSection._availability.is_conflicting_with_student_time ||
	                unscheduledSection._availability.is_conflicting_with_student_campus;
	    };
	    UnscheduledSectionServant.prototype.isSectionConflictingWithBusyTimes = function (unscheduledSection) {
	        return _4.get(unscheduledSection, '_availability.is_conflicting_with_student_time', false);
	    };
	    UnscheduledSectionServant.prototype.isSectionConflictingWithCampusPreferences = function (unscheduledSection) {
	        return _4.get(unscheduledSection, '_availability.is_conflicting_with_student_campus', false);
	    };
	    UnscheduledSectionServant.prototype.isSectionAvailable = function (unscheduledSection) {
	        var sectionAvailability = _4.get(unscheduledSection, '_availability');
	        var isSectionConflicting = this.isSectionConflicting(unscheduledSection);
	        return (!isSectionConflicting &&
	            sectionAvailability &&
	            sectionAvailability.is_seat_available &&
	            !sectionAvailability.is_withdrawn);
	    };
	    UnscheduledSectionServant.prototype.hasWaitlist = function (section) {
	        return section._availability.is_waitlist_allowed;
	    };
	    UnscheduledSectionServant.prototype.isWaitlistFull = function (section) {
	        return section._availability.is_waitlist_allowed && section._availability.is_waitlist_full;
	    };
	    UnscheduledSectionServant.prototype.isWaitlisted = function (section) {
	        return section.status === scheduled_section_status_enum_1.ScheduledSectionStatus.WAITLISTED;
	    };
	    UnscheduledSectionServant.prototype.canAddToWaitlist = function (section) {
	        // waitlist feature enabled && is Full Section && has waitlist && is waitlist full?
	        return (this.ngTermScheduleFlags.isWaitlistEnabled() &&
	            this.isSectionFull(section) &&
	            !this.isWaitlisted(section) &&
	            this.hasWaitlist(section) &&
	            !this.isWaitlistFull(section));
	    };
	    UnscheduledSectionServant.prototype.allowedToScheduledFullSections = function (section) {
	        return this.ngTermScheduleFlags.isFullSectionsSchedulingEnabled();
	    };
	    UnscheduledSectionServant.prototype.isOnlineSection = function (section) {
	        return _4.get(section, '_campus.is_online', false);
	    };
	    UnscheduledSectionServant.prototype.canDragToSchedule = function (section) {
	        return (this.isSectionAvailable(section) &&
	            (!this.isSectionFull(section) || (this.isSectionFull(section) && this.canAddToWaitlist(section))));
	    };
	    UnscheduledSectionServant.prototype.canDragSection = function (section) {
	        if (this.isConflictingAndNotAllowedToSchedule(section)) {
	            return false;
	        }
	        else if (this.allowedToScheduledFullSections(section) && this.isSectionFull(section)) {
	            return true;
	        }
	        else if (!this.allowedToScheduledFullSections(section) &&
	            this.isSectionFull(section) &&
	            !this.canAddToWaitlist(section)) {
	            return false;
	        }
	        else {
	            return true;
	        }
	    };
	    UnscheduledSectionServant.prototype.getSectionAvailabilityText = function (availableTimes, threshold, divider) {
	        if (divider === void 0) { divider = false; }
	        var areAvailableSectionsGreaterThanThreshold = availableTimes > threshold;
	        var hasSectionsAvailable = availableTimes > 0;
	        var plural = availableTimes > 1 ? 's' : '';
	        var pipeDivider = divider ? "| " : "";
	        if (areAvailableSectionsGreaterThanThreshold) {
	            return hasSectionsAvailable ? "" + pipeDivider + threshold + "+ available time" + plural : "";
	        }
	        else {
	            return hasSectionsAvailable
	                ? "" + pipeDivider + availableTimes + "  available time" + plural
	                : pipeDivider + "no times available";
	        }
	    };
	    UnscheduledSectionServant.prototype.isConflictingAndNotAllowedToSchedule = function (unscheduledSection) {
	        return (unscheduledSection._availability.is_conflicting_with_linked_section ||
	            unscheduledSection._availability.is_conflicting_with_selected_section);
	    };
	    return UnscheduledSectionServant;
	}());
	exports.UnscheduledSectionServant = UnscheduledSectionServant;


/***/ }),
/* 789 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var about_routes_1 = __webpack_require__(790);
	var about_home_1 = __webpack_require__(794);
	var about_config_1 = __webpack_require__(792);
	var about_release_1 = __webpack_require__(795);
	var about_toggles_1 = __webpack_require__(796);
	var about_device_1 = __webpack_require__(793);
	angular
	    .module('about', [])
	    .component('aboutHome', new about_home_1.AboutHomeComponent())
	    .component('aboutConfig', new about_config_1.AboutConfigComponent())
	    .component('aboutRelease', new about_release_1.AboutReleaseComponent())
	    .component('aboutToggles', new about_toggles_1.AboutTogglesComponent())
	    .component('aboutDevice', new about_device_1.AboutDeviceComponent())
	    .provider('ngAboutRoutesConfiguration', about_routes_1.AboutRoutesConfiguration);
	__webpack_require__(791);


/***/ }),
/* 790 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var AboutRoutesConfiguration = /** @class */ (function () {
	    function AboutRoutesConfiguration($stateProvider) {
	        this.$stateProvider = $stateProvider;
	    }
	    AboutRoutesConfiguration.prototype.state = function (prefix) {
	        if (prefix === void 0) { prefix = 'about'; }
	        this.$stateProvider
	            .state("" + prefix, {
	            url: 'about/',
	            template: '<about/>',
	            data: {
	                pageTitle: 'About'
	            },
	            resolve: {
	                _AuthenticationQueryModel: function (loginConfigurationCommand, loadAccountCommand) {
	                    return loginConfigurationCommand().then(function (login_config) {
	                        if (!_4.isEmpty(login_config.user_data)) {
	                            return loadAccountCommand();
	                        }
	                        else {
	                            return false;
	                        }
	                    });
	                }
	            }
	        })
	            .state(prefix + ".default", {
	            url: 'default/',
	            template: '<about-home/>',
	            data: {
	                pageTitle: 'About',
	                ignoredInHistory: false
	            }
	        })
	            .state(prefix + ".config", {
	            url: 'config/',
	            template: '<about-config/>',
	            data: {
	                pageTitle: 'Application Configuration'
	            }
	        })
	            .state(prefix + ".toggles", {
	            url: 'toggles/',
	            template: '<about-toggles/>',
	            data: {
	                pageTitle: 'Feature Toggles'
	            }
	        })
	            .state(prefix + ".release", {
	            url: 'release/',
	            template: '<about-release/>',
	            data: {
	                pageTitle: 'Release Information'
	            }
	        })
	            .state(prefix + ".device", {
	            url: 'device/',
	            template: '<about-device/>',
	            data: {
	                pageTitle: 'Device Information'
	            }
	        });
	    };
	    AboutRoutesConfiguration.prototype.$get = function () {
	        return {
	            state: this.state
	        };
	    };
	    return AboutRoutesConfiguration;
	}());
	exports.AboutRoutesConfiguration = AboutRoutesConfiguration;


/***/ }),
/* 791 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('about')
	    .service('getServerDeployDetails', function ($http, defineCommand, appConfigModel, log) {
	    return defineCommand('getServerDeployDetails', function (deferred) {
	        $http
	            .get('/static/about_server.json')
	            .then(function (envConfig) {
	            deferred.resolve(envConfig);
	        })
	            .catch(function (err) {
	            deferred.reject(err);
	            log.error(err);
	        });
	    });
	});


/***/ }),
/* 792 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var parse_dictionary_servant_1 = __webpack_require__(101);
	var AboutConfigController = /** @class */ (function () {
	    function AboutConfigController(appConfigModel) {
	        this.appConfigModel = appConfigModel;
	        this.memberConfigs = parse_dictionary_servant_1.ParseDictionaryServant.transformKeys(appConfigModel.model.member_configs);
	    }
	    return AboutConfigController;
	}());
	exports.AboutConfigController = AboutConfigController;
	var AboutConfigComponent = /** @class */ (function () {
	    function AboutConfigComponent() {
	        this.controller = AboutConfigController;
	        this.templateUrl = 'capability-ng-settings/src/about/components/about_config/about_config.html';
	        this.controllerAs = '$ctrl';
	    }
	    return AboutConfigComponent;
	}());
	exports.AboutConfigComponent = AboutConfigComponent;


/***/ }),
/* 793 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var parse_dictionary_servant_1 = __webpack_require__(101);
	var AboutDeviceController = /** @class */ (function () {
	    function AboutDeviceController() {
	        this.deviceInfo = {};
	    }
	    AboutDeviceController.prototype.$onInit = function () {
	        var ionicPlatformDeviceProps = {};
	        if (window.ionic.Platform) {
	            ionicPlatformDeviceProps = tslib_1.__assign(tslib_1.__assign({}, _4.omit(tslib_1.__assign({}, window.ionic.Platform.device()), ['available', 'isVirtual'])), { grade: _4.get(window.ionic.Platform, 'grade', 'unknown'), user_agent: _4.get(window.ionic.Platform, 'ua', 'unknown'), connection: _4.get(window.ionic.Platform, 'navigator.connection.type', 'unknown'), language: _4.get(window.ionic.Platform, 'navigator.language', 'en-US') });
	        }
	        this.deviceInfo = parse_dictionary_servant_1.ParseDictionaryServant.transformKeys(ionicPlatformDeviceProps);
	    };
	    AboutDeviceController.prototype.isMobile = function () {
	        return utility_ts_platform_1.PlatformUtility.isMobile();
	    };
	    AboutDeviceController.prototype.isIOS = function () {
	        return utility_ts_platform_1.PlatformUtility.isIOS();
	    };
	    return AboutDeviceController;
	}());
	exports.AboutDeviceController = AboutDeviceController;
	var AboutDeviceComponent = /** @class */ (function () {
	    function AboutDeviceComponent() {
	        this.controller = AboutDeviceController;
	        this.templateUrl = 'capability-ng-settings/src/about/components/about_device/about_device.html';
	        this.controllerAs = '$ctrl';
	    }
	    return AboutDeviceComponent;
	}());
	exports.AboutDeviceComponent = AboutDeviceComponent;


/***/ }),
/* 794 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var AboutHomeController = /** @class */ (function () {
	    function AboutHomeController(appConfigModel, Configuration, $state) {
	        this.appConfigModel = appConfigModel;
	        this.Configuration = Configuration;
	        this.$state = $state;
	        this.memberConfigs = appConfigModel.model.member_configs;
	        this.memberFeatures = appConfigModel.model.member_features;
	        this.appVersion = this.Configuration.read('about').version;
	        this.target = _4.get(this.Configuration.read('target'), 'environment', '');
	        this.browser = this.detectBrowser();
	    }
	    AboutHomeController.prototype.isMobile = function () {
	        return utility_ts_platform_1.PlatformUtility.isMobile();
	    };
	    AboutHomeController.prototype.isIOS = function () {
	        return utility_ts_platform_1.PlatformUtility.isIOS();
	    };
	    AboutHomeController.prototype.getImageSource = function () {
	        if (this.isMobile()) {
	            return 'res/navigate.png';
	        }
	        else {
	            return './ad694d3a72cc6b21/res/navigate.png';
	        }
	    };
	    AboutHomeController.prototype.detectBrowser = function () {
	        // https://stackoverflow.com/questions/5916900/how-can-you-detect-the-version-of-a-browser?answertab=active#tab-top
	        var ua = navigator.userAgent;
	        var tem;
	        var M = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || [];
	        if (/trident/i.test(M[1])) {
	            tem = /\brv[ :]+(\d+)/g.exec(ua) || [];
	            return 'IE ' + (tem[1] || '');
	        }
	        if (M[1] === 'Chrome') {
	            tem = ua.match(/\b(OPR|Edge)\/(\d+)/);
	            if (tem !== undefined && tem !== null) {
	                return tem.slice(1).join(' ').replace('OPR', 'Opera');
	            }
	        }
	        M = M[2] ? [M[1], M[2]] : [navigator.appName, navigator.appVersion, '-?'];
	        // tslint:disable-next-line:triple-equals
	        if ((tem = ua.match(/version\/(\d+)/i)) != undefined) {
	            M.splice(1, 1, tem[1]);
	        }
	        return M.join(' ');
	    };
	    return AboutHomeController;
	}());
	exports.AboutHomeController = AboutHomeController;
	var AboutHomeComponent = /** @class */ (function () {
	    function AboutHomeComponent() {
	        this.controller = AboutHomeController;
	        this.templateUrl = 'capability-ng-settings/src/about/components/about_home/about_home.html';
	        this.controllerAs = '$ctrl';
	    }
	    return AboutHomeComponent;
	}());
	exports.AboutHomeComponent = AboutHomeComponent;


/***/ }),
/* 795 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var AboutReleaseController = /** @class */ (function () {
	    function AboutReleaseController(appDetails) {
	        this.appDetails = appDetails;
	        this.aboutConfigValues = appDetails.details;
	    }
	    return AboutReleaseController;
	}());
	exports.AboutReleaseController = AboutReleaseController;
	var AboutReleaseComponent = /** @class */ (function () {
	    function AboutReleaseComponent() {
	        this.controller = AboutReleaseController;
	        this.templateUrl = 'capability-ng-settings/src/about/components/about_release/about_release.html';
	        this.controllerAs = '$ctrl';
	    }
	    return AboutReleaseComponent;
	}());
	exports.AboutReleaseComponent = AboutReleaseComponent;


/***/ }),
/* 796 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var parse_dictionary_servant_1 = __webpack_require__(101);
	var AboutTogglesController = /** @class */ (function () {
	    function AboutTogglesController(appConfigModel) {
	        this.appConfigModel = appConfigModel;
	        this.memberFeatures = parse_dictionary_servant_1.ParseDictionaryServant.transformKeys(appConfigModel.model.member_features);
	    }
	    return AboutTogglesController;
	}());
	exports.AboutTogglesController = AboutTogglesController;
	var AboutTogglesComponent = /** @class */ (function () {
	    function AboutTogglesComponent() {
	        this.controller = AboutTogglesController;
	        this.templateUrl = 'capability-ng-settings/src/about/components/about_toggles/about_toggles.html';
	        this.controllerAs = '$ctrl';
	    }
	    return AboutTogglesComponent;
	}());
	exports.AboutTogglesComponent = AboutTogglesComponent;


/***/ }),
/* 797 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var settings_feature_list_controller_1 = __webpack_require__(234);
	var SettingsFeatureListComponent = /** @class */ (function () {
	    function SettingsFeatureListComponent() {
	        this.templateUrl = 'capability-ng-settings/src/components/settings_feature_list/settings_feature_list.html';
	        this.controller = settings_feature_list_controller_1.SettingsFeatureListController;
	        this.controllerAs = '$ctrl';
	    }
	    return SettingsFeatureListComponent;
	}());
	exports.SettingsFeatureListComponent = SettingsFeatureListComponent;


/***/ }),
/* 798 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var settings_welcome_controller_1 = __webpack_require__(235);
	var SettingsWelcomeComponent = /** @class */ (function () {
	    function SettingsWelcomeComponent() {
	        this.templateUrl = 'capability-ng-settings/src/components/settings_welcome/settings_welcome.html';
	        this.controller = settings_welcome_controller_1.SettingsWelcomeController;
	        this.controllerAs = '$ctrl';
	    }
	    return SettingsWelcomeComponent;
	}());
	exports.SettingsWelcomeComponent = SettingsWelcomeComponent;


/***/ }),
/* 799 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var main_1 = __webpack_require__(61);
	var EditPronounsService = /** @class */ (function () {
	    function EditPronounsService(ngPronounsQuery, ngPronounsListQuery) {
	        this.ngPronounsQuery = ngPronounsQuery;
	        this.ngPronounsListQuery = ngPronounsListQuery;
	        this._isOpen = false;
	        this._selectedPronoun = _4.get(this.ngPronounsQuery.result, 'selected_pronouns');
	    }
	    Object.defineProperty(EditPronounsService.prototype, "isOpen", {
	        get: function () {
	            return this._isOpen;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(EditPronounsService.prototype, "isStudentPronounCustom", {
	        get: function () {
	            return this._isStudentPronounCustom;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    EditPronounsService.prototype.checkIsStudentPronounCustom = function () {
	        var studentPronoun = _4.get(this.ngPronounsQuery.result, 'selected_pronouns');
	        this._selectedPronoun = studentPronoun === main_1.NO_PRONOUNS_STRING ? '' : studentPronoun;
	        this._isStudentPronounCustom = this.ngPronounsListQuery.isPronounsCustom(this._selectedPronoun);
	    };
	    EditPronounsService.prototype.setPronounsInitialValue = function () {
	        var selectElement = document.querySelector('#pronounsSelect');
	        if (this._isStudentPronounCustom) {
	            selectElement.setAttribute('value', 'custom');
	        }
	        else {
	            selectElement.setAttribute('value', this._selectedPronoun);
	        }
	    };
	    EditPronounsService.prototype.toggleOpen = function (state) {
	        if (state) {
	            this.checkIsStudentPronounCustom();
	            this.setPronounsInitialValue();
	        }
	        this._isOpen = state;
	    };
	    return EditPronounsService;
	}());
	exports.EditPronounsService = EditPronounsService;


/***/ }),
/* 800 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var StudentSchedulingConfiguration = /** @class */ (function () {
	    function StudentSchedulingConfiguration() {
	        this._config = {
	            isMobile: false,
	            storage: 'sessionStorage'
	        };
	    }
	    Object.defineProperty(StudentSchedulingConfiguration.prototype, "config", {
	        get: function () {
	            return this._config;
	        },
	        set: function (configs) {
	            this._config = tslib_1.__assign(tslib_1.__assign({}, this._config), configs);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    StudentSchedulingConfiguration.prototype.setConfig = function (key, value) {
	        this._config[key] = value;
	    };
	    return StudentSchedulingConfiguration;
	}());
	exports.StudentSchedulingConfiguration = StudentSchedulingConfiguration;


/***/ }),
/* 801 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var StudyGroupMembersBuilder = /** @class */ (function () {
	    function StudyGroupMembersBuilder(source) {
	        this.name = '';
	        this.email = '';
	        this.selected_pronouns = '';
	        this.formatted_pronouns = '';
	        this._isChecked = false;
	        return _4.merge(this, { _isChecked: false }, source);
	    }
	    StudyGroupMembersBuilder.build = function (source) {
	        return new StudyGroupMembersBuilder(source);
	    };
	    return StudyGroupMembersBuilder;
	}());
	exports.StudyGroupMembersBuilder = StudyGroupMembersBuilder;


/***/ }),
/* 802 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var StudyGroupBuddiesController = /** @class */ (function () {
	    function StudyGroupBuddiesController(ngStudyGroupModalService, $state, accountModel, deleteUserFromStudyGroupCommand, selectUserCommand, clearAllSelectedUsersCommand, selectAllUsersCommand, ngStudyGroupMembersQuery, ngCustomTextService, ngCustomTextModel) {
	        this.ngStudyGroupModalService = ngStudyGroupModalService;
	        this.$state = $state;
	        this.accountModel = accountModel;
	        this.deleteUserFromStudyGroupCommand = deleteUserFromStudyGroupCommand;
	        this.selectUserCommand = selectUserCommand;
	        this.clearAllSelectedUsersCommand = clearAllSelectedUsersCommand;
	        this.selectAllUsersCommand = selectAllUsersCommand;
	        this.ngStudyGroupMembersQuery = ngStudyGroupMembersQuery;
	        this.ngCustomTextService = ngCustomTextService;
	        this.ngCustomTextModel = ngCustomTextModel;
	        this.isShowingResults = true;
	        this.isShowingAllBuddies = true;
	        this.shouldAutoFocus = false;
	        this.enableSelection = false;
	        this.customIntro = 'Get in touch with other students you would like to form a study group with.';
	        this.canSelectAll = true;
	    }
	    StudyGroupBuddiesController.prototype.$onInit = function () {
	        this.filteredBuddies = this.ngStudyGroupMembersQuery.result.buddies;
	        this.updateSearchStudent = this.filterBuddies.bind(this);
	        this.getCustomIntro();
	    };
	    StudyGroupBuddiesController.prototype.getCustomIntro = function () {
	        var _this = this;
	        if (_4.isEmpty(this.ngCustomTextModel.read())) {
	            this.ngCustomTextService.loadCustomText().then(function () {
	                _this.setCustomIntro();
	            });
	        }
	        else {
	            this.setCustomIntro();
	        }
	    };
	    StudyGroupBuddiesController.prototype.setCustomIntro = function () {
	        this.customIntro =
	            _4.get(_4.find(this.ngCustomTextModel.read(), { nk: 'STUDY_BUDDY_INSTR_GROUP_INTRO' }), 'text') ||
	                this.customIntro;
	    };
	    StudyGroupBuddiesController.prototype.selectBuddy = function (buddy) {
	        this.selectUserCommand(buddy.id);
	        this.canSelectAll =
	            !this.ngStudyGroupMembersQuery.result.isAllUsersSelected && !this.isAllFilteredBuddiesSelected();
	    };
	    StudyGroupBuddiesController.prototype.selectFilteredBuddies = function () {
	        var _this = this;
	        _4.filter(this.filteredBuddies, function (buddy) { return !buddy._isChecked; }).forEach(function (member) {
	            return _this.selectBuddy(member);
	        });
	    };
	    StudyGroupBuddiesController.prototype.selectAll = function () {
	        this.canSelectAll = false;
	        if (this.isShowingAllBuddies) {
	            return this.selectAllUsersCommand();
	        }
	        else {
	            return this.selectFilteredBuddies();
	        }
	    };
	    StudyGroupBuddiesController.prototype.isAllFilteredBuddiesSelected = function () {
	        var _this = this;
	        return this.filteredBuddies.every(function (buddy) {
	            return _4.includes(_this.ngStudyGroupMembersQuery.result.selectedBuddies, buddy);
	        });
	    };
	    StudyGroupBuddiesController.prototype.filterBuddies = function (value) {
	        var _this = this;
	        this.searchStudent = value;
	        this.filteredBuddies = _4.filter(this.ngStudyGroupMembersQuery.result.buddies, function (buddy) {
	            return _4.includes(_4.toLower(buddy.name), _4.toLower(_this.searchStudent));
	        });
	        this.isShowingResults = this.filteredBuddies.length > 0;
	        this.isShowingAllBuddies = this.filteredBuddies.length === this.ngStudyGroupMembersQuery.result.buddiesCount;
	        this.canSelectAll =
	            !this.ngStudyGroupMembersQuery.result.isAllUsersSelected && !this.isAllFilteredBuddiesSelected();
	    };
	    StudyGroupBuddiesController.prototype.clearSelection = function () {
	        this.canSelectAll = true;
	        this.clearAllSelectedUsersCommand();
	    };
	    StudyGroupBuddiesController.prototype.changeSelection = function () {
	        this.ngStudyGroupMembersQuery.result.isAllUsersSelected || this.isAllFilteredBuddiesSelected()
	            ? this.clearSelection()
	            : this.selectAll();
	    };
	    StudyGroupBuddiesController.prototype.getselectionLabelText = function () {
	        return this.canSelectAll ? 'Select All' : 'Clear All';
	    };
	    StudyGroupBuddiesController.prototype.leaveStudyGroup = function () {
	        var _this = this;
	        this.ngStudyGroupModalService.showBusySpinner = true;
	        this.deleteUserFromStudyGroupCommand(this.section.id).then(function () {
	            _this.ngStudyGroupModalService.showBusySpinner = false;
	            _this.ngStudyGroupModalService.hide();
	            _this.$state.go('my.studyGroups');
	        });
	    };
	    StudyGroupBuddiesController.prototype.confirmRemoving = function () {
	        this.ngStudyGroupModalService.show({
	            heading: 'Remove from Group?',
	            prompt: 'Are you sure you want to remove yourself from the',
	            className: " " + this.section.courseTitle + "-" + this.section.cd + " Study Buddies group?",
	            cancelButtonText: "Nevermind",
	            confirmButtonText: "Yes, Leave",
	            invertButtonStyles: true,
	            confirmationCallBack: this.leaveStudyGroup.bind(this)
	        });
	    };
	    return StudyGroupBuddiesController;
	}());
	exports.StudyGroupBuddiesController = StudyGroupBuddiesController;
	var StudyGroupBuddiesComponent = /** @class */ (function () {
	    function StudyGroupBuddiesComponent() {
	        this.templateUrl = 'capability-ng-study-groups/src/components/study_group_buddies/study_group_buddies.html';
	        this.controller = StudyGroupBuddiesController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            section: '<',
	            enableSelection: '<'
	        };
	    }
	    return StudyGroupBuddiesComponent;
	}());
	exports.StudyGroupBuddiesComponent = StudyGroupBuddiesComponent;


/***/ }),
/* 803 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var StudyGroupJoinController = /** @class */ (function () {
	    function StudyGroupJoinController(ngStudyGroupModalService, addUserToStudyGroupCommand) {
	        this.ngStudyGroupModalService = ngStudyGroupModalService;
	        this.addUserToStudyGroupCommand = addUserToStudyGroupCommand;
	    }
	    StudyGroupJoinController.prototype.joinStudyGroup = function () {
	        var _this = this;
	        this.ngStudyGroupModalService.showBusySpinner = true;
	        this.addUserToStudyGroupCommand(this.section.id).then(function () {
	            _this.section.is_buddy = true;
	            _this.ngStudyGroupModalService.showBusySpinner = false;
	            _this.ngStudyGroupModalService.hide();
	            if (_4.isFunction(_this.onJoin)) {
	                _this.onJoin();
	            }
	        });
	    };
	    StudyGroupJoinController.prototype.confirmJoining = function () {
	        this.ngStudyGroupModalService.show({
	            heading: 'Join Group',
	            prompt: 'Interested in joining the group of Study Buddies for',
	            className: " " + this.section.courseTitle + "-" + this.section.cd + "?",
	            content: "Other students in your class section will be able to see your email address and reach out to you via email. Is that OK?",
	            cancelButtonText: "Nevermind",
	            confirmButtonText: "Yes",
	            confirmationCallBack: this.joinStudyGroup.bind(this)
	        });
	    };
	    return StudyGroupJoinController;
	}());
	exports.StudyGroupJoinController = StudyGroupJoinController;
	var StudyGroupJoinComponent = /** @class */ (function () {
	    function StudyGroupJoinComponent() {
	        this.templateUrl = 'capability-ng-study-groups/src/components/study_group_join/study_group_join.html';
	        this.controller = StudyGroupJoinController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            section: '=',
	            stretched: '<?',
	            onJoin: '&?'
	        };
	    }
	    return StudyGroupJoinComponent;
	}());
	exports.StudyGroupJoinComponent = StudyGroupJoinComponent;


/***/ }),
/* 804 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_platform_1 = __webpack_require__(8);
	var StudyGroupSectionTileController = /** @class */ (function () {
	    function StudyGroupSectionTileController($state, appConfigModel) {
	        this.$state = $state;
	        this.appConfigModel = appConfigModel;
	    }
	    StudyGroupSectionTileController.prototype.$onInit = function () {
	        this.sectionLabel = this.appConfigModel.getConfigProperty('section_label') || 'Section';
	        this.determineStudyBuddiesCountText();
	        this.isMobile = utility_ts_platform_1.PlatformUtility.isMobile();
	        this.detailsState = "my.studyGroupMembers";
	        this.detailsStateParams = { sectionId: this.section.id };
	    };
	    StudyGroupSectionTileController.prototype.$onChanges = function () {
	        this.determineStudyBuddiesCountText();
	    };
	    StudyGroupSectionTileController.prototype.determineStudyBuddiesCountText = function () {
	        switch (this.section.study_buddy_count) {
	            case 0: {
	                this.studyBuddiesCountText = 'Be the first to join';
	                break;
	            }
	            case 1: {
	                this.studyBuddiesCountText = this.section.is_buddy ? 'Waiting for buddies' : '1 buddy';
	                break;
	            }
	            case 2: {
	                this.studyBuddiesCountText = this.section.is_buddy ? '1 other buddy' : '2 buddies';
	                break;
	            }
	            default: {
	                this.studyBuddiesCountText = this.section.is_buddy
	                    ? this.section.study_buddy_count - 1 + " buddies"
	                    : this.section.study_buddy_count + " buddies";
	            }
	        }
	    };
	    StudyGroupSectionTileController.prototype.goToDetails = function () {
	        this.$state.go(this.detailsState, this.detailsStateParams);
	    };
	    return StudyGroupSectionTileController;
	}());
	exports.StudyGroupSectionTileController = StudyGroupSectionTileController;
	var StudyGroupSectionTileComponent = /** @class */ (function () {
	    function StudyGroupSectionTileComponent() {
	        this.templateUrl = 'capability-ng-study-groups/src/components/study_group_section_tile/study_group_section_tile.html';
	        this.controller = StudyGroupSectionTileController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            section: '<'
	        };
	    }
	    return StudyGroupSectionTileComponent;
	}());
	exports.StudyGroupSectionTileComponent = StudyGroupSectionTileComponent;


/***/ }),
/* 805 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var StudyGroupTermsController = /** @class */ (function () {
	    function StudyGroupTermsController() {
	        this.hasTerms = true;
	    }
	    StudyGroupTermsController.prototype.$onInit = function () {
	        this.hasTerms = !_4.isEmpty(this.sections);
	    };
	    return StudyGroupTermsController;
	}());
	exports.StudyGroupTermsController = StudyGroupTermsController;
	var StudyGroupTermsComponent = /** @class */ (function () {
	    function StudyGroupTermsComponent() {
	        this.templateUrl = 'capability-ng-study-groups/src/components/study_group_terms/study_group_terms.html';
	        this.controller = StudyGroupTermsController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            termName: '<',
	            sections: '<'
	        };
	    }
	    return StudyGroupTermsComponent;
	}());
	exports.StudyGroupTermsComponent = StudyGroupTermsComponent;


/***/ }),
/* 806 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_platform_1 = __webpack_require__(8);
	var StudyGroupDescriptionModalController = /** @class */ (function () {
	    function StudyGroupDescriptionModalController(ngStudyGroupModalService, ngStudyGroupsCapabilityConfiguration) {
	        this.ngStudyGroupModalService = ngStudyGroupModalService;
	        this.ngStudyGroupsCapabilityConfiguration = ngStudyGroupsCapabilityConfiguration;
	        this.studyBuddiesValueList = [
	            {
	                icon: 'edit',
	                text: 'Help With Homework'
	            },
	            {
	                icon: 'open_book',
	                text: 'Study For Exams'
	            },
	            {
	                icon: 'sync',
	                text: 'Share Study Materials'
	            }
	            // ,{
	            //   icon: 'smiley',
	            //   text: 'Meet with Classmates'
	            // }
	        ];
	    }
	    StudyGroupDescriptionModalController.prototype.$onInit = function () {
	        this.isDesktop = utility_ts_platform_1.PlatformUtility.isDesktop();
	        this.applyDesktopStyle = !this.ngStudyGroupsCapabilityConfiguration.config.isMobile || undefined;
	        this.applyMobileStyle = this.ngStudyGroupsCapabilityConfiguration.config.isMobile;
	    };
	    StudyGroupDescriptionModalController.prototype.closeModal = function () {
	        this.ngStudyGroupModalService.hideDescriptionModal();
	    };
	    return StudyGroupDescriptionModalController;
	}());
	exports.StudyGroupDescriptionModalController = StudyGroupDescriptionModalController;
	var StudyGroupDescriptionModalComponent = /** @class */ (function () {
	    function StudyGroupDescriptionModalComponent() {
	        this.templateUrl = 'capability-ng-study-groups/src/modals/study_group_description_modal/study_group_description_modal.html';
	        this.controller = StudyGroupDescriptionModalController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            opened: '='
	        };
	    }
	    return StudyGroupDescriptionModalComponent;
	}());
	exports.StudyGroupDescriptionModalComponent = StudyGroupDescriptionModalComponent;


/***/ }),
/* 807 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var StudyGroupEmailingModalController = /** @class */ (function () {
	    function StudyGroupEmailingModalController(ngStudyGroupModalService, ngStudyGroupsCapabilityConfiguration, ngCustomTextService, ngCustomTextModel) {
	        this.ngStudyGroupModalService = ngStudyGroupModalService;
	        this.ngStudyGroupsCapabilityConfiguration = ngStudyGroupsCapabilityConfiguration;
	        this.ngCustomTextService = ngCustomTextService;
	        this.ngCustomTextModel = ngCustomTextModel;
	        this.customEmailInstr = 'You will be taken to an external email application to compose and send this email. Before you send the email, please be mindful about what you communicate to other students.';
	    }
	    StudyGroupEmailingModalController.prototype.$onInit = function () {
	        this.isDesktop = utility_ts_platform_1.PlatformUtility.isDesktop();
	        this.applyDesktopStyle = !this.ngStudyGroupsCapabilityConfiguration.config.isMobile || undefined;
	        this.applyMobileStyle = this.ngStudyGroupsCapabilityConfiguration.config.isMobile;
	        this.getCustomEmailInstr();
	    };
	    StudyGroupEmailingModalController.prototype.getCustomEmailInstr = function () {
	        var _this = this;
	        if (_4.isEmpty(this.ngCustomTextModel.read())) {
	            this.ngCustomTextService.loadCustomText().then(function () {
	                _this.setCustomEmailInstr();
	            });
	        }
	        else {
	            this.setCustomEmailInstr();
	        }
	    };
	    StudyGroupEmailingModalController.prototype.setCustomEmailInstr = function () {
	        this.customEmailInstr =
	            _4.get(_4.find(this.ngCustomTextModel.read(), { nk: 'STUDY_BUDDY_INSTR_EMAIL' }), 'text') ||
	                this.customEmailInstr;
	    };
	    StudyGroupEmailingModalController.prototype.closeModal = function () {
	        this.ngStudyGroupModalService.hideEmailingModal();
	    };
	    StudyGroupEmailingModalController.prototype.confirmEmailing = function () {
	        this.ngStudyGroupModalService.sendEmail();
	    };
	    return StudyGroupEmailingModalController;
	}());
	exports.StudyGroupEmailingModalController = StudyGroupEmailingModalController;
	var StudyGroupEmailingModalComponent = /** @class */ (function () {
	    function StudyGroupEmailingModalComponent() {
	        this.templateUrl = 'capability-ng-study-groups/src/modals/study_group_emailing_modal/study_group_emailing_modal.html';
	        this.controller = StudyGroupEmailingModalController;
	        this.controllerAs = '$ctrl';
	    }
	    return StudyGroupEmailingModalComponent;
	}());
	exports.StudyGroupEmailingModalComponent = StudyGroupEmailingModalComponent;


/***/ }),
/* 808 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_platform_1 = __webpack_require__(8);
	var StudyGroupJoiningModalController = /** @class */ (function () {
	    function StudyGroupJoiningModalController(ngStudyGroupModalService, ngStudyGroupsCapabilityConfiguration) {
	        this.ngStudyGroupModalService = ngStudyGroupModalService;
	        this.ngStudyGroupsCapabilityConfiguration = ngStudyGroupsCapabilityConfiguration;
	    }
	    StudyGroupJoiningModalController.prototype.$onInit = function () {
	        this.isDesktop = utility_ts_platform_1.PlatformUtility.isDesktop();
	        this.applyDesktopStyle = !this.ngStudyGroupsCapabilityConfiguration.config.isMobile || undefined;
	        this.applyMobileStyle = this.ngStudyGroupsCapabilityConfiguration.config.isMobile;
	    };
	    StudyGroupJoiningModalController.prototype.confirm = function () {
	        this.ngStudyGroupModalService.modelContent.confirmationCallBack();
	    };
	    StudyGroupJoiningModalController.prototype.closeModal = function () {
	        this.ngStudyGroupModalService.hide();
	    };
	    return StudyGroupJoiningModalController;
	}());
	exports.StudyGroupJoiningModalController = StudyGroupJoiningModalController;
	var StudyGroupJoiningModalComponent = /** @class */ (function () {
	    function StudyGroupJoiningModalComponent() {
	        this.templateUrl = 'capability-ng-study-groups/src/modals/study_group_joining_modal/study_group_joining_modal.html';
	        this.controller = StudyGroupJoiningModalController;
	        this.controllerAs = '$ctrl';
	    }
	    return StudyGroupJoiningModalComponent;
	}());
	exports.StudyGroupJoiningModalComponent = StudyGroupJoiningModalComponent;


/***/ }),
/* 809 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var StudyGroupModalService = /** @class */ (function () {
	    function StudyGroupModalService($state, ngStudyGroupsCapabilityConfiguration, ngStudyGroupsEmailServant, phxNotificationDelegate) {
	        this.$state = $state;
	        this.ngStudyGroupsCapabilityConfiguration = ngStudyGroupsCapabilityConfiguration;
	        this.ngStudyGroupsEmailServant = ngStudyGroupsEmailServant;
	        this.phxNotificationDelegate = phxNotificationDelegate;
	        this._isStudyGroupDescriptionModalOpen = false;
	        this._isStudyGroupEmailingModalOpen = false;
	        this.showBusySpinner = false;
	        this._isStudyGroupJoiningModalOpen = false;
	        this._modalContent = {
	            heading: '',
	            prompt: '',
	            className: '',
	            content: '',
	            cancelButtonText: 'Cancel',
	            confirmButtonText: 'Ok',
	            invertButtonStyles: false
	        };
	        this.notificationDelegate = this.phxNotificationDelegate.restrictTo(this.ngStudyGroupsCapabilityConfiguration.config.notificationHandle);
	    }
	    StudyGroupModalService.prototype.generateNoneSelectedNotification = function () {
	        this.notificationDelegate.create({
	            status: 'warn',
	            showIcon: true,
	            iconClass: 'eab-icon eab-icon-caution',
	            content: 'Please select at least one student from the list to email.',
	            dismissOnTimeout: false
	        });
	    };
	    Object.defineProperty(StudyGroupModalService.prototype, "trigger", {
	        get: function () {
	            return this.notificationDelegate;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(StudyGroupModalService.prototype, "isStudyGroupDescriptionModalOpen", {
	        get: function () {
	            return this._isStudyGroupDescriptionModalOpen;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(StudyGroupModalService.prototype, "isStudyGroupJoiningModalOpen", {
	        get: function () {
	            return this._isStudyGroupJoiningModalOpen;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(StudyGroupModalService.prototype, "isStudyGroupEmailingModalOpen", {
	        get: function () {
	            return this._isStudyGroupEmailingModalOpen;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    StudyGroupModalService.prototype.show = function (modalContent) {
	        this._modalContent = modalContent;
	        this._isStudyGroupJoiningModalOpen = true;
	    };
	    StudyGroupModalService.prototype.hide = function () {
	        this._isStudyGroupJoiningModalOpen = false;
	    };
	    StudyGroupModalService.prototype.hideDescriptionModal = function () {
	        this._isStudyGroupDescriptionModalOpen = false;
	    };
	    StudyGroupModalService.prototype.showDescriptionModal = function () {
	        this._isStudyGroupDescriptionModalOpen = true;
	    };
	    StudyGroupModalService.prototype.hideEmailingModal = function () {
	        this._isStudyGroupEmailingModalOpen = false;
	    };
	    StudyGroupModalService.prototype.showEmailingModal = function (sectionInfo) {
	        this.section = sectionInfo;
	        this._isStudyGroupEmailingModalOpen = true;
	    };
	    StudyGroupModalService.prototype.sendEmail = function () {
	        if (this.ngStudyGroupsCapabilityConfiguration.config.emailService) {
	            var _a = this.ngStudyGroupsEmailServant.getEmailData(this.section), mailTo = _a.mailTo, subject = _a.subject, body = _a.body;
	            this.ngStudyGroupsCapabilityConfiguration.config.emailService.sendEmail({ to: mailTo, subject: subject, body: body });
	            this.hideEmailingModal();
	        }
	    };
	    Object.defineProperty(StudyGroupModalService.prototype, "modelContent", {
	        get: function () {
	            return this._modalContent;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return StudyGroupModalService;
	}());
	exports.StudyGroupModalService = StudyGroupModalService;


/***/ }),
/* 810 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var StudyGroupsQuery = /** @class */ (function () {
	    function StudyGroupsQuery(ngStudyGroupCoursesDatasource, ngStudyGroupSectionsDatasource, ngStudyGroupTermsDatasource) {
	        this.ngStudyGroupCoursesDatasource = ngStudyGroupCoursesDatasource;
	        this.ngStudyGroupSectionsDatasource = ngStudyGroupSectionsDatasource;
	        this.ngStudyGroupTermsDatasource = ngStudyGroupTermsDatasource;
	        utility_ts_orm_1.ORM.registerQuery(this, ngStudyGroupCoursesDatasource, ngStudyGroupSectionsDatasource, ngStudyGroupTermsDatasource);
	    }
	    StudyGroupsQuery.prototype.run = function () {
	        var terms = this.constructSectionsData();
	        var hasTerms = terms.length > 0;
	        var allSections = this.composeSections();
	        var hasNotParticipated = allSections.length > 0 && this.hasNotParticipated(allSections);
	        this._result = { terms: terms, hasTerms: hasTerms, allSections: allSections, hasNotParticipated: hasNotParticipated };
	        return this;
	    };
	    StudyGroupsQuery.prototype.constructSectionsData = function () {
	        // combine allsections(section with courses) data with terms data.
	        return this.constructTermsSections(this.composeSections());
	    };
	    StudyGroupsQuery.prototype.hasNotParticipated = function (sections) {
	        return sections && !_4.some(sections, 'is_buddy');
	    };
	    StudyGroupsQuery.prototype.composeSections = function () {
	        var _this = this;
	        // Remove any sections that doesn't have associated course
	        var sections = _4.filter(this.ngStudyGroupSectionsDatasource.read(), function (section) { return !_4.isEmpty(_this.getCourseForSection(section)); });
	        // combine courses data with sections data.
	        return _4.map(sections, function (section) {
	            var course = _this.getCourseForSection(section);
	            return tslib_1.__assign({ courseNk: course.cd, courseId: course.id, courseTitle: course.title }, section);
	        });
	    };
	    StudyGroupsQuery.prototype.constructTermsSections = function (courseSections) {
	        var _this = this;
	        var terms = this.ngStudyGroupTermsDatasource.read();
	        // terms(from API) have courses data. so we are mapping courses data with sections data (which has courses inside).
	        return _4.map(terms, function (term) {
	            var courseIds = term.courses;
	            var sectionsAssociatedWithCourse = _4.flatMap(courseIds, function (courseID) {
	                return _4.get(_this.ngStudyGroupCoursesDatasource.get(courseID), 'sections', []);
	            });
	            var sections = _4.compact(_4.map(sectionsAssociatedWithCourse, function (sectionId) {
	                return _4.find(courseSections, function (coursesection) { return _4.isEqual(coursesection.id, sectionId); });
	            }));
	            return {
	                termName: term.name,
	                sections: sections
	            };
	        });
	    };
	    StudyGroupsQuery.prototype.getCourseForSection = function (section) {
	        return this.ngStudyGroupCoursesDatasource.get(section.course);
	    };
	    Object.defineProperty(StudyGroupsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return StudyGroupsQuery;
	}());
	exports.StudyGroupsQuery = StudyGroupsQuery;


/***/ }),
/* 811 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	function MyStudyGroupsRoutes($stateProvider) {
	    $stateProvider
	        .state('my.studyGroups', {
	        url: 'study-groups',
	        templateUrl: 'capability-ng-study-groups/src/views/study_groups/study_groups.html',
	        controller: 'StudyGroupsController',
	        controllerAs: '$ctrl',
	        data: {
	            viewTitle: 'Study Buddies',
	            hasMainMenu: true,
	            ignoredInHistory: false
	        }
	    })
	        .state('my.studyGroupMembers', {
	        url: 'study-group-members/:sectionId',
	        templateUrl: 'capability-ng-study-groups/src/views/study_group_members/study_group_members.html',
	        controller: 'StudyGroupMembersController',
	        controllerAs: '$ctrl',
	        data: {
	            viewTitle: 'Study Group Members',
	            hasMainMenu: false,
	            ignoredInHistory: false
	        }
	    });
	}
	exports.MyStudyGroupsRoutes = MyStudyGroupsRoutes;


/***/ }),
/* 812 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var StudyGroupMembersController = /** @class */ (function () {
	    function StudyGroupMembersController($stateParams, $state, ngStudyGroupMembersQuery, ngStudyGroupsQuery, loadStudyGroupMembersCommand, ngStudyGroupsCapabilityConfiguration, ngStudyGroupsEmailServant, ngStudyGroupModalService, deleteUserFromStudyGroupCommand, selectUserCommand, clearAllSelectedUsersCommand, selectAllUsersCommand, log) {
	        var _this = this;
	        this.$stateParams = $stateParams;
	        this.$state = $state;
	        this.ngStudyGroupMembersQuery = ngStudyGroupMembersQuery;
	        this.ngStudyGroupsQuery = ngStudyGroupsQuery;
	        this.loadStudyGroupMembersCommand = loadStudyGroupMembersCommand;
	        this.ngStudyGroupsCapabilityConfiguration = ngStudyGroupsCapabilityConfiguration;
	        this.ngStudyGroupsEmailServant = ngStudyGroupsEmailServant;
	        this.ngStudyGroupModalService = ngStudyGroupModalService;
	        this.deleteUserFromStudyGroupCommand = deleteUserFromStudyGroupCommand;
	        this.selectUserCommand = selectUserCommand;
	        this.clearAllSelectedUsersCommand = clearAllSelectedUsersCommand;
	        this.selectAllUsersCommand = selectAllUsersCommand;
	        this.log = log;
	        this.isLoading = true;
	        this.hasSearchResults = false;
	        this.shouldAutoFocus = false;
	        this.updateSection();
	        if (this.section && this.section.id) {
	            this.loadStudyGroupMembersCommand(this.section.id).then(function () {
	                _this.isLoading = false;
	                _this.filteredBuddies = _this.ngStudyGroupMembersQuery.result.buddies;
	            });
	        }
	        this.updateSearchStudent = this.filterBuddies.bind(this);
	    }
	    Object.defineProperty(StudyGroupMembersController.prototype, "section", {
	        get: function () {
	            return this.__section;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    StudyGroupMembersController.prototype.updateSection = function () {
	        this.__section = _4.find(this.ngStudyGroupsQuery.result.allSections, {
	            id: parseInt(this.$stateParams.sectionId, 10)
	        });
	    };
	    StudyGroupMembersController.prototype.joined = function () {
	        this.updateSection();
	    };
	    StudyGroupMembersController.prototype.selectBuddy = function (buddy) {
	        this.selectUserCommand(buddy.id);
	    };
	    StudyGroupMembersController.prototype.selectAll = function () {
	        return this.selectAllUsersCommand();
	    };
	    StudyGroupMembersController.prototype.filterBuddies = function (value) {
	        var _this = this;
	        this.hasSearchResults = !_4.isEmpty(value);
	        this.searchStudent = value;
	        this.filteredBuddies = _4.filter(this.ngStudyGroupMembersQuery.result.buddies, function (buddy) {
	            return _4.includes(_4.toLower(buddy.name), _4.toLower(_this.searchStudent));
	        });
	    };
	    StudyGroupMembersController.prototype.clearSelection = function () {
	        this.clearAllSelectedUsersCommand();
	    };
	    StudyGroupMembersController.prototype.changeSelection = function () {
	        this.ngStudyGroupMembersQuery.result.isAllUsersSelected ? this.clearSelection() : this.selectAll();
	    };
	    StudyGroupMembersController.prototype.leaveStudyGroup = function () {
	        var _this = this;
	        this.ngStudyGroupModalService.showBusySpinner = true;
	        this.deleteUserFromStudyGroupCommand(this.section.id).then(function () {
	            _this.ngStudyGroupModalService.showBusySpinner = false;
	            _this.ngStudyGroupModalService.hide();
	            _this.$state.go('my.studyGroups');
	        });
	    };
	    StudyGroupMembersController.prototype.confirmRemoving = function () {
	        this.ngStudyGroupModalService.show({
	            heading: 'Remove from Group?',
	            prompt: 'Are you sure you want to remove yourself from the',
	            className: " " + this.section.courseTitle + "-" + this.section.cd + " Study Buddies group?",
	            cancelButtonText: "Nevermind",
	            confirmButtonText: "Yes, Leave",
	            invertButtonStyles: true,
	            confirmationCallBack: this.leaveStudyGroup.bind(this)
	        });
	    };
	    StudyGroupMembersController.prototype.showEmailingModal = function (sectionInfo) {
	        if (this.ngStudyGroupMembersQuery.result.selectedBuddiesCount > 0) {
	            this.ngStudyGroupModalService.showEmailingModal(this.__section);
	        }
	        else {
	            this.ngStudyGroupModalService.generateNoneSelectedNotification();
	            this.log.user.issue('Please select at least one student from the list to email.');
	        }
	    };
	    StudyGroupMembersController.prototype.hideEmailingModal = function () {
	        this.ngStudyGroupModalService.hideEmailingModal();
	    };
	    return StudyGroupMembersController;
	}());
	exports.StudyGroupMembersController = StudyGroupMembersController;


/***/ }),
/* 813 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var StudyGroupsController = /** @class */ (function () {
	    function StudyGroupsController(ngStudyGroupsQuery, loadStudyGroupsCommand, ngStudyGroupModalService, $state, dismissStudyBuddyTileCommand, ngStudyGroupsPriorityFeedQuery, appConfigModel) {
	        var _this = this;
	        this.ngStudyGroupsQuery = ngStudyGroupsQuery;
	        this.loadStudyGroupsCommand = loadStudyGroupsCommand;
	        this.ngStudyGroupModalService = ngStudyGroupModalService;
	        this.$state = $state;
	        this.dismissStudyBuddyTileCommand = dismissStudyBuddyTileCommand;
	        this.ngStudyGroupsPriorityFeedQuery = ngStudyGroupsPriorityFeedQuery;
	        this.appConfigModel = appConfigModel;
	        this.isLoading = true;
	        this.isNotificationEnabled = false;
	        this.loadStudyGroupsCommand().then(function () {
	            _this.isLoading = false;
	            if (_this.ngStudyGroupsQuery.result.hasNotParticipated) {
	                _this.showDescriptionModal();
	            }
	            _this.dismissPriorityFeedNotification();
	        });
	        this.isNotificationEnabled = this.appConfigModel.isFeatureEnabled('notification-settings');
	    }
	    StudyGroupsController.prototype.dismissPriorityFeedNotification = function () {
	        if (this.ngStudyGroupsPriorityFeedQuery.hasFeedNotification) {
	            this.dismissStudyBuddyTileCommand();
	        }
	    };
	    StudyGroupsController.prototype.showDescriptionModal = function () {
	        this.ngStudyGroupModalService.showDescriptionModal();
	    };
	    StudyGroupsController.prototype.hideDescriptionModal = function () {
	        this.ngStudyGroupModalService.hideDescriptionModal();
	    };
	    return StudyGroupsController;
	}());
	exports.StudyGroupsController = StudyGroupsController;


/***/ }),
/* 814 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var Survey = /** @class */ (function () {
	    function Survey(survey) {
	        // Survey has 2 statuses, 1 at root level is student status, nested survey has status which reflects publishing status.
	        var studentSurveyStatus = survey.combined_status;
	        _4.merge(this, survey, survey.survey);
	        survey.status = studentSurveyStatus; // reset status as its clobbered.
	        this._is_survey_in_progress = studentSurveyStatus === 'IN_PROGRESS';
	    }
	    Survey.build = function (survey) {
	        return new Survey(survey);
	    };
	    return Survey;
	}());
	exports.Survey = Survey;


/***/ }),
/* 815 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SurveyQuestion = /** @class */ (function () {
	    function SurveyQuestion(surveyQuestion) {
	        _4.merge(this, surveyQuestion);
	    }
	    SurveyQuestion.build = function (surveyQuestion) {
	        return new SurveyQuestion(surveyQuestion);
	    };
	    return SurveyQuestion;
	}());
	exports.SurveyQuestion = SurveyQuestion;


/***/ }),
/* 816 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SurveyIntroductionContentController = /** @class */ (function () {
	    function SurveyIntroductionContentController(ngSurveyQuery, $stateParams, $state, updateSurveyCommand, updateSurveyRecipientTrackingCommand, utilityConstant) {
	        this.ngSurveyQuery = ngSurveyQuery;
	        this.$stateParams = $stateParams;
	        this.$state = $state;
	        this.updateSurveyCommand = updateSurveyCommand;
	        this.updateSurveyRecipientTrackingCommand = updateSurveyRecipientTrackingCommand;
	        this.utilityConstant = utilityConstant;
	        this.isUpdatingConsent = false;
	        this.surveyNotAvailable = false;
	        this.showWelcomeText = false;
	        this.showWelcomeBackText = false;
	    }
	    SurveyIntroductionContentController.prototype.$onInit = function () {
	        var _a = this.$stateParams, surveyID = _a.surveyID, methodType = _a.methodType, recipientID = _a.recipientID;
	        if (!_4.isUndefined(surveyID) && !_4.isUndefined(methodType) && !_4.isUndefined(recipientID)) {
	            this.updateSurveyRecipientTrackingCommand(surveyID, methodType, recipientID);
	        }
	        this.surveyNotAvailable = !_4.isNull(this.survey.unavailable_explanation);
	        this.showWelcomeText = !this.survey._is_survey_in_progress && !this.surveyNotAvailable;
	        this.showWelcomeBackText = this.survey._is_survey_in_progress && !this.surveyNotAvailable;
	    };
	    Object.defineProperty(SurveyIntroductionContentController.prototype, "survey", {
	        get: function () {
	            var _this = this;
	            return _4.find(this.ngSurveyQuery.result, function (survey) { return survey.id === _this.$stateParams.surveyID; });
	        },
	        enumerable: true,
	        configurable: true
	    });
	    SurveyIntroductionContentController.prototype.exitSurvey = function () {
	        this.$state.go(this.utilityConstant.DEFAULT_ROUTE);
	    };
	    SurveyIntroductionContentController.prototype.startSurvey = function () {
	        var _this = this;
	        var surveyID = _4.get(this, 'survey.id');
	        if (this.isUpdatingConsent || _4.isUndefined(surveyID)) {
	            return;
	        }
	        this.isUpdatingConsent = true;
	        this.updateSurveyCommand(surveyID, { status: 'IN_PROGRESS' })
	            .then(function () {
	            _this.$state.go('my.survey-question', { surveyID: surveyID });
	        })
	            .catch(function () { return (_this.isUpdatingConsent = false); });
	    };
	    return SurveyIntroductionContentController;
	}());
	exports.SurveyIntroductionContentController = SurveyIntroductionContentController;
	var SurveyIntroductionContentComponent = /** @class */ (function () {
	    function SurveyIntroductionContentComponent() {
	        this.templateUrl = 'capability-ng-survey/src/components/survey_intro_content/survey_intro_content.html';
	        this.controller = SurveyIntroductionContentController;
	        this.controllerAs = '$ctrl';
	    }
	    return SurveyIntroductionContentComponent;
	}());
	exports.SurveyIntroductionContentComponent = SurveyIntroductionContentComponent;


/***/ }),
/* 817 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var survey_question_direction_strategy_1 = __webpack_require__(244);
	var survey_question_type_strategy_1 = __webpack_require__(245);
	var SurveyQuestionContentController = /** @class */ (function () {
	    function SurveyQuestionContentController(ngSurveyQuestionQuery, ngSurveyQuery, loadSurveyQuestionCommand, saveSurveyQuestionResponseCommand, $state, $stateParams, ngComponentCommunicatorService) {
	        this.ngSurveyQuestionQuery = ngSurveyQuestionQuery;
	        this.ngSurveyQuery = ngSurveyQuery;
	        this.loadSurveyQuestionCommand = loadSurveyQuestionCommand;
	        this.saveSurveyQuestionResponseCommand = saveSurveyQuestionResponseCommand;
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.flags = {
	            isLoading: false,
	            isSubmitting: false,
	            hasFormError: false
	        };
	    }
	    SurveyQuestionContentController.prototype.$onInit = function () {
	        this.gotoPriorQuestionBound = this.gotoPriorQuestion.bind(this);
	        this.loadQuestion(survey_question_direction_strategy_1.SurveyQuestionDirectionStrategy.getByKey('RESUME'));
	        this.ngComponentCommunicatorService.subscribe('SURVEY_QUESTION_GOTO_PRIOR', this.gotoPriorQuestionBound);
	    };
	    Object.defineProperty(SurveyQuestionContentController.prototype, "survey", {
	        get: function () {
	            var _this = this;
	            return _4.find(this.ngSurveyQuery.result, function (survey) { return survey.id === _this.$stateParams.surveyID; });
	        },
	        enumerable: true,
	        configurable: true
	    });
	    SurveyQuestionContentController.prototype.submitQuestionResponse = function (event) {
	        var _this = this;
	        if (this.flags.isLoading || this.flags.isSubmitting) {
	            return;
	        }
	        var question = this.ngSurveyQuestionQuery.result.question.question;
	        var formResponse = _4.get(event, "originalEvent.detail.value[question-" + question.id + "]", []);
	        this.flags.hasFormError = false;
	        var response = survey_question_type_strategy_1.SurveyQuestionTypeStrategy.getByKey(question.question_type).buildResponse(formResponse);
	        var surveyID = _4.get(this, 'survey.id');
	        this.publishSubmitting(true);
	        this.saveSurveyQuestionResponseCommand(surveyID, question.id, response)
	            .then(function () {
	            _this.loadQuestion(survey_question_direction_strategy_1.SurveyQuestionDirectionStrategy.getByKey('NEXT'));
	            _this.publishSubmitting(false);
	        })
	            .catch(function () {
	            _this.publishSubmitting(false);
	        });
	    };
	    SurveyQuestionContentController.prototype.showFormError = function (event) {
	        if (this.flags.isLoading || this.flags.isSubmitting) {
	            return;
	        }
	        var question = this.ngSurveyQuestionQuery.result.question.question;
	        var formResponse = _4.get(event, "originalEvent.detail.value[question-" + question.id + "]", []);
	        var isRequiredQuestion = question.response_required;
	        if (!_4.isNumber(formResponse) && _4.isEmpty(formResponse) && isRequiredQuestion) {
	            this.flags.hasFormError = true;
	        }
	    };
	    SurveyQuestionContentController.prototype.publishSubmitting = function (isSubmitting) {
	        this.flags.isSubmitting = isSubmitting;
	        if (isSubmitting) {
	            this.ngComponentCommunicatorService.publish('SURVEY_QUESTION_IS_SUBMITTING');
	        }
	        else {
	            this.ngComponentCommunicatorService.publish('SURVEY_QUESTION_NOT_SUBMITTING');
	        }
	    };
	    SurveyQuestionContentController.prototype.loadPreviousQuestion = function () {
	        this.loadQuestion(survey_question_direction_strategy_1.SurveyQuestionDirectionStrategy.getByKey('PRIOR'));
	    };
	    SurveyQuestionContentController.prototype.loadQuestion = function (direction) {
	        var _this = this;
	        if (this.flags.isLoading) {
	            return;
	        }
	        var surveyID = _4.get(this, 'survey.id');
	        this.flags.isLoading = true;
	        this.loadSurveyQuestionCommand(surveyID, direction.queryName)
	            .then(function () {
	            _this.flags.isLoading = false;
	            _this.clearFormValidation();
	            _this.manageStateTransition(direction);
	        })
	            .catch(function () {
	            _this.flags.isLoading = false;
	        });
	    };
	    SurveyQuestionContentController.prototype.gotoPriorQuestion = function () {
	        this.clearFormValidation();
	    };
	    SurveyQuestionContentController.prototype.clearFormValidation = function () {
	        this.flags.hasFormError = false;
	    };
	    SurveyQuestionContentController.prototype.manageStateTransition = function (direction) {
	        var question = this.ngSurveyQuestionQuery.result.question;
	        var surveyID = _4.get(this, 'survey.id');
	        if (_4.isEmpty(question)) {
	            this.$state.go(direction.newState, { surveyID: surveyID });
	        }
	    };
	    return SurveyQuestionContentController;
	}());
	exports.SurveyQuestionContentController = SurveyQuestionContentController;
	var SurveyQuestionContentComponent = /** @class */ (function () {
	    function SurveyQuestionContentComponent() {
	        this.templateUrl = 'capability-ng-survey/src/components/survey_question_content/survey_question_content.html';
	        this.controller = SurveyQuestionContentController;
	        this.controllerAs = '$ctrl';
	    }
	    return SurveyQuestionContentComponent;
	}());
	exports.SurveyQuestionContentComponent = SurveyQuestionContentComponent;


/***/ }),
/* 818 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var survey_question_direction_strategy_1 = __webpack_require__(244);
	var SurveyQuestionFooterController = /** @class */ (function () {
	    function SurveyQuestionFooterController(ngComponentCommunicatorService, ngSurveyQuestionQuery, ngSurveyQuery, loadSurveyQuestionCommand, $state, $stateParams) {
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngSurveyQuestionQuery = ngSurveyQuestionQuery;
	        this.ngSurveyQuery = ngSurveyQuery;
	        this.loadSurveyQuestionCommand = loadSurveyQuestionCommand;
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	        this.flags = {
	            isLoading: false,
	            isSubmitting: false,
	            hasFormError: false
	        };
	        this.isDesktop = utility_ts_platform_1.PlatformUtility.isDesktop();
	    }
	    SurveyQuestionFooterController.prototype.$onInit = function () {
	        this.isSubmittingBound = this.isSubmitting.bind(this);
	        this.isNotSubmittingBound = this.isNotSubmitting.bind(this);
	        this.ngComponentCommunicatorService.subscribe('SURVEY_QUESTION_IS_SUBMITTING', this.isSubmittingBound);
	        this.ngComponentCommunicatorService.subscribe('SURVEY_QUESTION_NOT_SUBMITTING', this.isNotSubmittingBound);
	    };
	    Object.defineProperty(SurveyQuestionFooterController.prototype, "survey", {
	        get: function () {
	            var _this = this;
	            return _4.find(this.ngSurveyQuery.result, function (survey) { return survey.id === _this.$stateParams.surveyID; });
	        },
	        enumerable: true,
	        configurable: true
	    });
	    SurveyQuestionFooterController.prototype.isSubmitting = function () {
	        this.flags.isSubmitting = true;
	    };
	    SurveyQuestionFooterController.prototype.isNotSubmitting = function () {
	        this.flags.isSubmitting = false;
	    };
	    SurveyQuestionFooterController.prototype.submit = function () {
	        var form = _4.first(angular.element('#survey-question-form'));
	        if (!_4.isUndefined(form) && form.submit) {
	            form.submit();
	        }
	    };
	    SurveyQuestionFooterController.prototype.loadPreviousQuestion = function () {
	        var _this = this;
	        var surveyID = _4.get(this, 'survey.id');
	        var direction = survey_question_direction_strategy_1.SurveyQuestionDirectionStrategy.getByKey('PRIOR');
	        if (!_4.isUndefined(surveyID)) {
	            this.loadSurveyQuestionCommand(surveyID, direction.queryName).then(function () {
	                _this.ngComponentCommunicatorService.publish('SURVEY_QUESTION_GOTO_PRIOR');
	                if (_4.isEmpty(_this.ngSurveyQuestionQuery.result.question)) {
	                    _this.$state.go(direction.newState, { surveyID: surveyID });
	                }
	            });
	        }
	    };
	    return SurveyQuestionFooterController;
	}());
	exports.SurveyQuestionFooterController = SurveyQuestionFooterController;
	var SurveyQuestionFooterComponent = /** @class */ (function () {
	    function SurveyQuestionFooterComponent() {
	        this.templateUrl = 'capability-ng-survey/src/components/survey_question_footer/survey_question_footer.html';
	        this.controller = SurveyQuestionFooterController;
	        this.controllerAs = '$ctrl';
	    }
	    return SurveyQuestionFooterComponent;
	}());
	exports.SurveyQuestionFooterComponent = SurveyQuestionFooterComponent;


/***/ }),
/* 819 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SurveySummaryContentController = /** @class */ (function () {
	    function SurveySummaryContentController(ngSurveyQuery, $state, $stateParams, loadSurveyResourcesCommand, updateSurveyCommand, ngResourceListQuery) {
	        this.ngSurveyQuery = ngSurveyQuery;
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	        this.loadSurveyResourcesCommand = loadSurveyResourcesCommand;
	        this.updateSurveyCommand = updateSurveyCommand;
	        this.ngResourceListQuery = ngResourceListQuery;
	    }
	    SurveySummaryContentController.prototype.$onInit = function () {
	        var surveyID = _4.get(this, 'survey.id');
	        var surveyResources = _4.get(this, 'survey.resources');
	        if (!_4.isUndefined(surveyID)) {
	            this.updateSurveyCommand(surveyID, { status: 'COMPLETED' });
	        }
	        if (!_4.isEmpty(surveyResources)) {
	            this.loadSurveyResourcesCommand(surveyResources);
	        }
	    };
	    Object.defineProperty(SurveySummaryContentController.prototype, "survey", {
	        get: function () {
	            var _this = this;
	            return _4.find(this.ngSurveyQuery.result, function (survey) { return survey.id === _this.$stateParams.surveyID; });
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(SurveySummaryContentController.prototype, "resources", {
	        get: function () {
	            var surveyResources = _4.get(this, 'survey.resources', []);
	            var resourceDetails = this.ngResourceListQuery.result;
	            return _4.filter(resourceDetails, function (resource) { return !_4.isEmpty(_4.intersection([resource.id], surveyResources)); });
	        },
	        enumerable: true,
	        configurable: true
	    });
	    SurveySummaryContentController.prototype.hasResources = function () {
	        return !_4.isEmpty(this.resources);
	    };
	    SurveySummaryContentController.prototype.completeSurvey = function () {
	        this.$state.go('my.feed', {}, { reload: true });
	    };
	    return SurveySummaryContentController;
	}());
	exports.SurveySummaryContentController = SurveySummaryContentController;
	var SurveySummaryContentComponent = /** @class */ (function () {
	    function SurveySummaryContentComponent() {
	        this.templateUrl = 'capability-ng-survey/src/components/survey_summary_content/survey_summary_content.html';
	        this.controller = SurveySummaryContentController;
	        this.controllerAs = '$ctrl';
	    }
	    return SurveySummaryContentComponent;
	}());
	exports.SurveySummaryContentComponent = SurveySummaryContentComponent;


/***/ }),
/* 820 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	function SurveyRoutes($stateProvider) {
	    var surveyRouteResolve = {
	        accountModelData: function (accountModel, loadAccountCommand, loadSurveyCommand, $stateParams) {
	            if (_4.isEmpty(accountModel.student_nk)) {
	                return loadAccountCommand().then(function () { return loadSurveyCommand($stateParams.surveyID); });
	            }
	            else {
	                return loadSurveyCommand($stateParams.surveyID);
	            }
	        }
	    };
	    $stateProvider
	        .state('my.survey-intro', {
	        url: 'surveys/{surveyID:int}/survey-intro',
	        templateUrl: 'capability-ng-survey/src/views/survey_introduction/survey_introduction.html',
	        controller: 'SurveyIntroductionController',
	        controllerAs: '$ctrl',
	        params: {
	            methodType: undefined,
	            recipientID: undefined
	        },
	        data: {
	            viewTitle: 'Survey Introduction',
	            ignoredInHistory: true
	        },
	        resolve: surveyRouteResolve
	    })
	        .state('my.survey-question', {
	        url: 'surveys/{surveyID:int}/survey-question',
	        templateUrl: 'capability-ng-survey/src/views/survey_question/survey_question.html',
	        controller: 'SurveyQuestionController',
	        controllerAs: '$ctrl',
	        data: {
	            viewTitle: 'Survey Question',
	            ignoredInHistory: true
	        },
	        resolve: surveyRouteResolve
	    })
	        .state('my.survey-summary', {
	        url: 'surveys/{surveyID:int}/survey-summary',
	        templateUrl: 'capability-ng-survey/src/views/survey_summary/survey_summary.html',
	        controller: 'SurveySummaryController',
	        controllerAs: '$ctrl',
	        data: {
	            viewTitle: 'Survey Summary'
	        },
	        resolve: surveyRouteResolve
	    });
	}
	exports.SurveyRoutes = SurveyRoutes;


/***/ }),
/* 821 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var SurveyIntroductionController = /** @class */ (function () {
	    function SurveyIntroductionController(ngSurveyQuery, $state, $stateParams, appConfigModel) {
	        this.ngSurveyQuery = ngSurveyQuery;
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	        this.appConfigModel = appConfigModel;
	        this.matchBackButton = undefined;
	        if (utility_ts_platform_1.PlatformUtility.isMobile()) {
	            this.matchBackButton = this.appConfigModel.navIconTheme() || 'primary';
	        }
	    }
	    Object.defineProperty(SurveyIntroductionController.prototype, "survey", {
	        get: function () {
	            var _this = this;
	            return _4.find(this.ngSurveyQuery.result, function (survey) { return survey.id === _this.$stateParams.surveyID; });
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(SurveyIntroductionController.prototype, "surveyTitle", {
	        get: function () {
	            return this.survey.external_title;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    SurveyIntroductionController.prototype.isMobile = function () {
	        return utility_ts_platform_1.PlatformUtility.isMobile();
	    };
	    return SurveyIntroductionController;
	}());
	exports.SurveyIntroductionController = SurveyIntroductionController;


/***/ }),
/* 822 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var SurveyQuestionController = /** @class */ (function () {
	    function SurveyQuestionController(ngSurveyQuestionQuery, ngSurveyQuery, $stateParams, appConfigModel) {
	        this.ngSurveyQuestionQuery = ngSurveyQuestionQuery;
	        this.ngSurveyQuery = ngSurveyQuery;
	        this.$stateParams = $stateParams;
	        this.appConfigModel = appConfigModel;
	        this.showExitDialog = false;
	        this.matchBackButton = undefined;
	        if (utility_ts_platform_1.PlatformUtility.isMobile()) {
	            this.matchBackButton = this.appConfigModel.navIconTheme() || 'primary';
	        }
	    }
	    Object.defineProperty(SurveyQuestionController.prototype, "survey", {
	        get: function () {
	            var _this = this;
	            return _4.find(this.ngSurveyQuery.result, function (survey) { return survey.id === _this.$stateParams.surveyID; });
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(SurveyQuestionController.prototype, "surveyProgress", {
	        get: function () {
	            var completionFactor = _4.get(this.ngSurveyQuestionQuery.result, 'question.completion_factor') || 0;
	            var progressPercentage = completionFactor * 100;
	            return parseInt("" + progressPercentage, 10);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(SurveyQuestionController.prototype, "surveyTitle", {
	        get: function () {
	            return this.survey.external_title;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    SurveyQuestionController.prototype.displayExitDialog = function () {
	        this.showExitDialog = true;
	    };
	    SurveyQuestionController.prototype.hideExitDialog = function () {
	        this.showExitDialog = false;
	    };
	    SurveyQuestionController.prototype.isMobile = function () {
	        return utility_ts_platform_1.PlatformUtility.isMobile();
	    };
	    return SurveyQuestionController;
	}());
	exports.SurveyQuestionController = SurveyQuestionController;


/***/ }),
/* 823 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SurveySummaryController = /** @class */ (function () {
	    function SurveySummaryController(ngSurveyQuery, $state, $stateParams) {
	        this.ngSurveyQuery = ngSurveyQuery;
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	    }
	    Object.defineProperty(SurveySummaryController.prototype, "survey", {
	        get: function () {
	            var _this = this;
	            return _4.find(this.ngSurveyQuery.result, function (survey) { return survey.id === _this.$stateParams.surveyID; });
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(SurveySummaryController.prototype, "surveyTitle", {
	        get: function () {
	            return this.survey.external_title;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return SurveySummaryController;
	}());
	exports.SurveySummaryController = SurveySummaryController;


/***/ }),
/* 824 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var AppointmentInfoController = /** @class */ (function () {
	    function AppointmentInfoController() {
	    }
	    AppointmentInfoController.prototype.$onInit = function () {
	        this.appointmentInfo = this._generateAppointmentInformation();
	    };
	    AppointmentInfoController.prototype.addToCalendar = function () {
	        this.addToCalendarCallbck();
	    };
	    AppointmentInfoController.prototype.isPhoneNumber = function (rawLink) {
	        return /^\d/g.test(rawLink);
	    };
	    AppointmentInfoController.prototype.generateWhy = function (appointment) {
	        var service = _4.map(appointment.student_services, 'name').join(', ');
	        return appointment.course ? service + " " + appointment.course : service;
	    };
	    AppointmentInfoController.prototype._generateAppointmentInformation = function () {
	        var startTimestamp = moment.unix(this.appointment.start_timestamp);
	        var date = startTimestamp.format('ddd MMM DD') + " at " + startTimestamp.format('hh:mm a');
	        var organizerName = _4
	            .map(this.appointment.organizers, function (organizer) { return organizer.first_name + " " + organizer.last_name; })
	            .join(', ');
	        var organizerString = this.appointment.attendees.length > 1
	            ? organizerName + " + " + (this.appointment.attendees.length - 1) + " more"
	            : organizerName;
	        var location = this.appointment.location.name;
	        var additionalDetails = this.appointment.additional_details;
	        var comments = this.appointment.comments;
	        var service = this.generateWhy(this.appointment);
	        var type = this.appointment.appointment_type;
	        var meetingURLOrPhone = _4.get(this.appointment, 'meeting_url_or_phone', '');
	        return {
	            timeDetails: date + " with " + organizerString,
	            location: location,
	            additionalDetails: additionalDetails,
	            comments: comments,
	            service: service,
	            type: type,
	            meetingURLOrPhone: meetingURLOrPhone
	        };
	    };
	    return AppointmentInfoController;
	}());
	exports.AppointmentInfoController = AppointmentInfoController;
	var AppointmentInfoComponent = /** @class */ (function () {
	    function AppointmentInfoComponent() {
	        this.templateUrl = 'capability-ng-todos/src/components/appointment_info/appointment_info.html';
	        this.controller = AppointmentInfoController;
	        this.bindings = {
	            appointment: '<',
	            isSyncedToCalendar: '<?',
	            addToCalendarCallbck: '&?'
	        };
	    }
	    return AppointmentInfoComponent;
	}());
	exports.AppointmentInfoComponent = AppointmentInfoComponent;


/***/ }),
/* 825 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var moment = __webpack_require__(2);
	var AppointmentRequestInfoController = /** @class */ (function () {
	    function AppointmentRequestInfoController() {
	    }
	    AppointmentRequestInfoController.prototype.$onInit = function () {
	        this.appointmentRequestInfo = this._generateAppointmentRequestInformation();
	    };
	    AppointmentRequestInfoController.prototype.isPhoneNumber = function (rawLink) {
	        return /^\d/g.test(rawLink);
	    };
	    AppointmentRequestInfoController.prototype._generateAppointmentRequestInformation = function () {
	        var why = _4.get(this.appointment, 'student_service.name', '');
	        var where = _4.get(this.appointment, 'location.name', '');
	        var when = "Schedule your appointment by " + moment(this.appointment.end_date).format('MMM DD');
	        var details = _4.get(this.appointment, 'campaign_note', '');
	        var meetingLink = _4.get(this.appointment, 'meeting_url_or_phone', '');
	        var who = _4.get(this.appointment, 'creator.first_name', '') + " " + _4.get(this.appointment, 'creator.last_name', '');
	        return {
	            why: why,
	            when: when,
	            where: where,
	            details: details,
	            who: who,
	            meetingLink: meetingLink
	        };
	    };
	    return AppointmentRequestInfoController;
	}());
	exports.AppointmentRequestInfoController = AppointmentRequestInfoController;
	var AppointmentRequestInfoComponent = /** @class */ (function () {
	    function AppointmentRequestInfoComponent() {
	        this.templateUrl = 'capability-ng-todos/src/components/appointment_request_info/appointment_request_info.html';
	        this.controller = AppointmentRequestInfoController;
	        this.bindings = {
	            appointment: '<'
	        };
	    }
	    return AppointmentRequestInfoComponent;
	}());
	exports.AppointmentRequestInfoComponent = AppointmentRequestInfoComponent;


/***/ }),
/* 826 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var CarouselComponent = /** @class */ (function () {
	    function CarouselComponent() {
	        this.templateUrl = 'capability-ng-todos/src/components/carousel/carousel.html';
	        this.controllerAs = '$ctrl';
	        this.transclude = true;
	    }
	    return CarouselComponent;
	}());
	exports.CarouselComponent = CarouselComponent;


/***/ }),
/* 827 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ConsiderTodoCardController = /** @class */ (function () {
	    function ConsiderTodoCardController($state, ngPathTaskFormatter, pathTitleColorService) {
	        this.$state = $state;
	        this.ngPathTaskFormatter = ngPathTaskFormatter;
	        this.pathTitleColorService = pathTitleColorService;
	    }
	    ConsiderTodoCardController.prototype.$onInit = function () {
	        this.titleColorClass = this.pathTitleColorService.getTextColorClass(this.getSuperTitle());
	        this.uniqId = _4.uniqueId();
	    };
	    ConsiderTodoCardController.prototype.getSuperTitle = function () {
	        return !_4.isEmpty(this.topic) ? this.topic.name : '';
	    };
	    ConsiderTodoCardController.prototype.getTitle = function () {
	        if (this.task.substitute_text_by_field_by_item && this.task.substitute_text_by_field_by_item[this.item.id]) {
	            return this.task.substitute_text_by_field_by_item[this.item.id].title;
	        }
	        return this.item.title;
	    };
	    ConsiderTodoCardController.prototype.isAppointment = function () {
	        return this.ngPathTaskFormatter.isAppointment(this.task, this.item);
	    };
	    ConsiderTodoCardController.prototype.isAppointmentRequest = function () {
	        return this.ngPathTaskFormatter.isAppointmentRequest(this.task, this.item);
	    };
	    ConsiderTodoCardController.prototype.isArticle = function () {
	        return this.ngPathTaskFormatter.isArticle(this.task, this.item);
	    };
	    ConsiderTodoCardController.prototype.isPlacementTest = function () {
	        return this.ngPathTaskFormatter.isPlacementTest(this.task, this.item);
	    };
	    Object.defineProperty(ConsiderTodoCardController.prototype, "stateUri", {
	        get: function () {
	            var data = {
	                eventId: this.task.event,
	                repeatedBy: this.task.repeated_by,
	                topic: _4.get(this.topic, 'name')
	            };
	            return this.getStateName() + "(" + JSON.stringify(data) + ")";
	        },
	        enumerable: true,
	        configurable: true
	    });
	    ConsiderTodoCardController.prototype.getStateName = function () {
	        if (this.isAppointment()) {
	            return 'my.todos.appointment';
	        }
	        else if (this.isAppointmentRequest()) {
	            return 'my.todos.appointmentRequest';
	        }
	        else if (this.isPlacementTest()) {
	            return 'my.todos.placement';
	        }
	        else {
	            return 'my.todos.details';
	        }
	    };
	    return ConsiderTodoCardController;
	}());
	exports.ConsiderTodoCardController = ConsiderTodoCardController;
	var ConsiderTodoComponent = /** @class */ (function () {
	    function ConsiderTodoComponent() {
	        this.templateUrl = 'capability-ng-todos/src/components/consider_todo_card/consider_todo_card.html';
	        this.controller = ConsiderTodoCardController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            task: '<',
	            item: '<',
	            topic: '<'
	        };
	    }
	    return ConsiderTodoComponent;
	}());
	exports.ConsiderTodoComponent = ConsiderTodoComponent;


/***/ }),
/* 828 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var CustomCarouselController = /** @class */ (function () {
	    function CustomCarouselController($element, $timeout) {
	        this.$element = $element;
	        this.$timeout = $timeout;
	        this.totalDistanceScrolled = 0;
	        this.totalVisitedDistance = 0;
	        this.isShowLeftButton = false;
	        this.isShowRightButton = true;
	    }
	    CustomCarouselController.prototype.$postLink = function () {
	        var _this = this;
	        this.$timeout(function () {
	            _this.scrollItemsContainer = _this.$element.find('div.items')[0];
	            var scrollItem = _this.$element.find('.scroll-item')[0];
	            _this.childWidth = (scrollItem && scrollItem.getBoundingClientRect().width) || 0;
	            if (_this.scrollItemsContainer.clientWidth >= _this.scrollItemsContainer.scrollWidth) {
	                _this.isShowLeftButton = false;
	                _this.isShowRightButton = false;
	            }
	        }, 100);
	    };
	    CustomCarouselController.prototype.scrollLeft = function () {
	        this.isShowLeftButton = true;
	        if (this.totalDistanceScrolled < this.scrollItemsContainer.scrollWidth) {
	            this.totalVisitedDistance =
	                this.scrollItemsContainer.scrollWidth -
	                    (this.totalDistanceScrolled + this._containerWidth(this.scrollItemsContainer));
	            if (this.totalVisitedDistance < 0) {
	                return;
	            }
	            if (this.totalVisitedDistance < this._containerWidth(this.scrollItemsContainer)) {
	                this.totalDistanceScrolled += this.totalVisitedDistance;
	                this._scrollContent(this.scrollItemsContainer, this.totalDistanceScrolled);
	                this.isShowRightButton = false;
	            }
	            else {
	                this.totalDistanceScrolled += this._containerWidth(this.scrollItemsContainer);
	                this._scrollContent(this.scrollItemsContainer, this.totalDistanceScrolled);
	            }
	        }
	    };
	    CustomCarouselController.prototype.scrollRight = function () {
	        this.isShowRightButton = true;
	        var portionOfContainerWidthMoved = this.totalDistanceScrolled % this._containerWidth(this.scrollItemsContainer);
	        if (portionOfContainerWidthMoved === 0) {
	            var noOfStepsMoved = this.totalDistanceScrolled / this._containerWidth(this.scrollItemsContainer) - 1;
	            if (noOfStepsMoved === 0) {
	                this.isShowLeftButton = false;
	            }
	            var distanceToScroll = noOfStepsMoved * this._containerWidth(this.scrollItemsContainer);
	            this.totalDistanceScrolled -= this._containerWidth(this.scrollItemsContainer);
	            this._scrollContent(this.scrollItemsContainer, distanceToScroll);
	        }
	        else {
	            this.totalDistanceScrolled -= portionOfContainerWidthMoved;
	            this._scrollContent(this.scrollItemsContainer, this.totalDistanceScrolled);
	            if (this.totalDistanceScrolled === 0) {
	                this.isShowLeftButton = false;
	            }
	        }
	    };
	    CustomCarouselController.prototype._containerWidth = function (container) {
	        var containerWidth = container.getBoundingClientRect().width;
	        var unusedContainerWidth = (this.childWidth && containerWidth % this.childWidth) || 0;
	        return containerWidth - unusedContainerWidth;
	    };
	    CustomCarouselController.prototype._scrollContent = function (element, distanceToScroll) {
	        element.style.transform = "translateX(-" + distanceToScroll + "px)";
	    };
	    return CustomCarouselController;
	}());
	exports.CustomCarouselController = CustomCarouselController;
	var CustomCarouselComponent = /** @class */ (function () {
	    function CustomCarouselComponent() {
	        this.templateUrl = 'capability-ng-todos/src/components/custom_carousel/custom_carousel.html';
	        this.controller = CustomCarouselController;
	        this.controllerAs = '$ctrl';
	        this.transclude = true;
	    }
	    return CustomCarouselComponent;
	}());
	exports.CustomCarouselComponent = CustomCarouselComponent;


/***/ }),
/* 829 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PathDetailChildrenController = /** @class */ (function () {
	    function PathDetailChildrenController(pathDetailLocationService) {
	        this.pathDetailLocationService = pathDetailLocationService;
	    }
	    PathDetailChildrenController.prototype.$onInit = function () {
	        if (_4.isUndefined(this.locationGroups)) {
	            return;
	        }
	        this.update();
	    };
	    PathDetailChildrenController.prototype.$onChanges = function (changes) {
	        if (_4.isEmpty(changes)) {
	            return;
	        }
	        this.update();
	    };
	    PathDetailChildrenController.prototype.update = function () {
	        this.formatLocationGroups();
	    };
	    PathDetailChildrenController.prototype.isLocationAvailable = function (child) {
	        return !_4.isUndefined(child.location_group);
	    };
	    PathDetailChildrenController.prototype.getChildLocations = function (locationGroupID) {
	        return _4.result(_4.find(this.locationGroups, {
	            id: locationGroupID
	        }), 'locations');
	    };
	    PathDetailChildrenController.prototype.formatLocationGroups = function () {
	        var _this = this;
	        _4.forEach(this.locationGroups, function (locationGroup) {
	            locationGroup.locations = _this.pathDetailLocationService.getFormattedLocations(locationGroup.locations);
	        });
	    };
	    return PathDetailChildrenController;
	}());
	exports.PathDetailChildrenController = PathDetailChildrenController;
	var PathDetailChildrenComponent = /** @class */ (function () {
	    function PathDetailChildrenComponent() {
	        this.templateUrl = 'capability-ng-todos/src/components/my_path_task_detail_child/my_path_task_detail_child.html';
	        this.controller = PathDetailChildrenController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            children: '<',
	            locationGroups: '<'
	        };
	    }
	    return PathDetailChildrenComponent;
	}());
	exports.PathDetailChildrenComponent = PathDetailChildrenComponent;


/***/ }),
/* 830 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var PathDetailHeaderController = /** @class */ (function () {
	    function PathDetailHeaderController(taskUpdateFn, EventCategoryEnum, ngPathTaskFormatter, log, $scope, calendarFacade, updateTaskStatusAndModelsCommand, pathTitleColorService, ngPathModalService, editReminderCommand) {
	        this.taskUpdateFn = taskUpdateFn;
	        this.EventCategoryEnum = EventCategoryEnum;
	        this.ngPathTaskFormatter = ngPathTaskFormatter;
	        this.log = log;
	        this.$scope = $scope;
	        this.calendarFacade = calendarFacade;
	        this.updateTaskStatusAndModelsCommand = updateTaskStatusAndModelsCommand;
	        this.pathTitleColorService = pathTitleColorService;
	        this.ngPathModalService = ngPathModalService;
	        this.editReminderCommand = editReminderCommand;
	    }
	    PathDetailHeaderController.prototype.$onInit = function () {
	        this.models = {
	            taskTopic: !_4.isUndefined(this.topic) ? this.topic : '',
	            task: this.pathTaskDetail.source.task,
	            taskTopicClass: !_4.isEmpty(this.topic)
	                ? this.pathTitleColorService.getTextColorClass(this.topic)
	                : this.pathTitleColorService.getTextColorClass(''),
	            dateAddedToCalendar: this.pathTaskDetail.source.task.calendar_synced
	                ? this.pathTaskDetail.source.task.calendar_synced.format('ddd MMM D').toUpperCase()
	                : '',
	            subtitle: this.subTitle(this.pathTaskDetail.source.task)
	        };
	        this.flags = {
	            isCompletable: this.models.task.is_completable,
	            isDismissible: this.models.task.is_dismissible,
	            isPendingComplete: this.isPendingComplete(this.models.task),
	            hasTopic: !_4.isEmpty(this.models.topic),
	            isOverdue: this.isOverdue(this.models.task),
	            isDateMarkerEvent: this.EventCategoryEnum.isDateMarker(this.models.task.category),
	            isSyncedToCalendar: !!this.models.task.calendar_synced,
	            isCompleted: this.isCompleted(this.models.task),
	            isAutoCompletable: this.isAutoCompletable(this.models.task),
	            isDateMarkerTask: this.isDateMarkerTask(this.models.task)
	        };
	        this.format = this.ngPathTaskFormatter;
	    };
	    PathDetailHeaderController.prototype.$onChanges = function () {
	        if (this.models) {
	            this.models.subtitle = this.subTitle(this.pathTaskDetail.source.task);
	        }
	    };
	    PathDetailHeaderController.prototype.showCalendarButton = function () {
	        return this.flags.isDateMarkerEvent && utility_ts_platform_1.PlatformUtility.isMobile();
	    };
	    PathDetailHeaderController.prototype.subTitle = function (task) {
	        return this.ngPathTaskFormatter.getPathItemDateText(task, this.isOverdue(task), false);
	    };
	    PathDetailHeaderController.prototype.isCompleted = function (task) {
	        return this.taskUpdateFn.isCompleted(task);
	    };
	    PathDetailHeaderController.prototype.isOverdue = function (task) {
	        return this.taskUpdateFn.isOverdue(task);
	    };
	    PathDetailHeaderController.prototype.isDismissed = function () {
	        return this.taskUpdateFn.isDismissed(this.models.task);
	    };
	    PathDetailHeaderController.prototype.isPersonalReminder = function () {
	        return this.taskUpdateFn.isPersonalReminder(this.models.task);
	    };
	    PathDetailHeaderController.prototype.isDismissible = function (task) {
	        return task.is_dismissible && !this.taskUpdateFn.isCompleted(task);
	    };
	    PathDetailHeaderController.prototype.isPendingComplete = function (task) {
	        return this.taskUpdateFn.isPendingComplete(task);
	    };
	    PathDetailHeaderController.prototype.isAutoCompletable = function (task) {
	        return this.taskUpdateFn.isAutoCompletable(task);
	    };
	    PathDetailHeaderController.prototype.isDateMarkerTask = function (task) {
	        return this.taskUpdateFn.isDateMarker(task);
	    };
	    PathDetailHeaderController.prototype.showWhatIsAutoCompleteModal = function ($event) {
	        $event.stopPropagation();
	        this.ngPathModalService.toggleAutoCompleteModal(true);
	    };
	    PathDetailHeaderController.prototype.toggleDismissed = function () {
	        var _this = this;
	        var task = this.models.task;
	        var initialStatus = task.status;
	        task.status = this.taskUpdateFn.getNewStatusAsString(task, initialStatus, true);
	        this.taskUpdateFn.toggleDismissed(task, initialStatus, false).then(function (updatedTask) {
	            _this.models.task = updatedTask;
	        }, function (err) {
	            _this.models.task.status = initialStatus;
	            _this.log.user.error(err);
	        });
	    };
	    PathDetailHeaderController.prototype.addToCalendar = function () {
	        var _this = this;
	        this.calendarFacade
	            .registerEvent({
	            title: this.models.task._title,
	            location: undefined,
	            notes: undefined,
	            startDate: _4.isEmpty(this.models.task.start_ts)
	                ? this.models.task.end_ts.toDate()
	                : this.models.task.start_ts.toDate(),
	            endDate: this.models.task.end_ts.toDate()
	        })
	            .then(function (eventIds) {
	            if (!_.isEmpty(eventIds)) {
	                var isAutoComplete = _this.isAutoCompletable(_this.models.task);
	                _this.updateTaskStatusAndModelsCommand(_this.models.task.status, _this.models.task, isAutoComplete, true).then(function () {
	                    _this.models.dateAddedToCalendar = 'Just Now';
	                    _this.flags.isSyncedToCalendar = true;
	                    _this.models.task.calendar_synced = moment();
	                });
	            }
	        });
	    };
	    PathDetailHeaderController.prototype.updateReminderStatus = function () {
	        var status = _4.isEqual(this.models.task.status, 'ACTIVE') ? 'COMPLETED' : 'ACTIVE';
	        this.editReminderCommand(this.models.task.id, { status: status });
	    };
	    PathDetailHeaderController.prototype.updateStatus = function () {
	        console.log(this.isDismissed());
	        if (this.isDismissed()) {
	            this.toggleDismissed();
	        }
	        else {
	            this.isPersonalReminder() ? this.updateReminderStatus() : this.toggleComplete();
	        }
	    };
	    PathDetailHeaderController.prototype.toggleComplete = function () {
	        var _this = this;
	        var task = this.models.task;
	        var initialStatus = task.status;
	        if (!this.isAutoCompletable(task)) {
	            task.status = this.taskUpdateFn.getNewStatusAsString(task, initialStatus, false);
	        }
	        else {
	            task.is_pending_complete = !task.is_pending_complete;
	        }
	        this.taskUpdateFn.toggleComplete(task, initialStatus, task.is_pending_complete).then(function (updatedTask) {
	            _this.models.task = updatedTask;
	            _this.flags.isCompleted = _this.isCompleted(_this.models.task);
	            _this.flags.isOverdue = _this.isOverdue(_this.models.task);
	            _this.flags.isPendingComplete = _this.isPendingComplete(_this.models.task);
	            _this.models.subtitle = _this.subTitle(updatedTask);
	        }, function (err) {
	            _this.models.task.status = initialStatus;
	            _this.log.user.error(err);
	        });
	    };
	    return PathDetailHeaderController;
	}());
	exports.PathDetailHeaderController = PathDetailHeaderController;
	var PathDetailHeaderComponent = /** @class */ (function () {
	    function PathDetailHeaderComponent() {
	        this.templateUrl = 'capability-ng-todos/src/components/my_path_task_detail_header/my_path_task_detail_header.html';
	        this.controller = PathDetailHeaderController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            pathTaskDetail: '<',
	            topic: '<'
	        };
	    }
	    return PathDetailHeaderComponent;
	}());
	exports.PathDetailHeaderComponent = PathDetailHeaderComponent;


/***/ }),
/* 831 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var TodosContentController = /** @class */ (function () {
	    function TodosContentController(ngTodosContentService, ngTodoRefreshService, ngTodoDateRangeService, loadAllPathStatusCommand, loadAllReminderDateRangeCommand, loadStaffTodoCommand, $q) {
	        this.ngTodosContentService = ngTodosContentService;
	        this.ngTodoRefreshService = ngTodoRefreshService;
	        this.ngTodoDateRangeService = ngTodoDateRangeService;
	        this.loadAllPathStatusCommand = loadAllPathStatusCommand;
	        this.loadAllReminderDateRangeCommand = loadAllReminderDateRangeCommand;
	        this.loadStaffTodoCommand = loadStaffTodoCommand;
	        this.$q = $q;
	        this.isRefreshing = false;
	        this.refreshTodos();
	    }
	    Object.defineProperty(TodosContentController.prototype, "showMoreText", {
	        get: function () {
	            var _a = this.ngTodoDateRangeService.getShowMoreDateRangeText(), start = _a.start, end = _a.end;
	            return "Show To-Dos from " + start + " to " + end;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    TodosContentController.prototype.refreshTodos = function () {
	        var _this = this;
	        if (!this.isRefreshing) {
	            this.isRefreshing = true;
	            var dateRange = this.ngTodoDateRangeService.getCurrentDateRange();
	            this.$q
	                .all([
	                this.loadAllPathStatusCommand(dateRange),
	                this.loadAllReminderDateRangeCommand(dateRange),
	                this.loadStaffTodoCommand(dateRange)
	            ])
	                .finally(function () {
	                _this.ngTodosContentService.loadTodosAndReminders();
	                _this.isRefreshing = false;
	            });
	        }
	    };
	    return TodosContentController;
	}());
	exports.TodosContentController = TodosContentController;
	var TodosContentComponent = /** @class */ (function () {
	    function TodosContentComponent() {
	        this.templateUrl = 'capability-ng-todos/src/components/my_todos_content/my_todos_content.html';
	        this.controller = TodosContentController;
	        this.controllerAs = '$ctrl';
	    }
	    return TodosContentComponent;
	}());
	exports.TodosContentComponent = TodosContentComponent;


/***/ }),
/* 832 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PathCheckboxController = /** @class */ (function () {
	    function PathCheckboxController() {
	    }
	    PathCheckboxController.prototype.updateStyle = function () {
	        if (this.overdue && !this.pendingComplete) {
	            this.theme = 'red';
	        }
	        else if (this.completed) {
	            this.theme = 'primary';
	        }
	        else {
	            this.theme = 'gray-dark';
	        }
	    };
	    PathCheckboxController.prototype.preformAction = function ($event) {
	        this.stopPropagation($event);
	        this.action();
	    };
	    PathCheckboxController.prototype.stopPropagation = function ($event) {
	        $event.stopPropagation();
	    };
	    PathCheckboxController.prototype.$onInit = function () {
	        this.title = this.title ? this.title : '';
	        this.isDetail = this.isDetail ? this.isDetail : false;
	        this.size = this.isDetail ? 'large' : 'large-xx';
	        this.updateStyle();
	    };
	    PathCheckboxController.prototype.$onChanges = function (changes) {
	        this.updateStyle();
	    };
	    return PathCheckboxController;
	}());
	exports.PathCheckboxController = PathCheckboxController;
	var PathCheckboxComponent = /** @class */ (function () {
	    function PathCheckboxComponent() {
	        this.templateUrl = 'capability-ng-todos/src/components/path_checkbox/path_checkbox.html';
	        this.controller = PathCheckboxController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            status: '<',
	            overdue: '<',
	            completed: '<',
	            pendingComplete: '<',
	            title: '<?',
	            isDetail: '<?',
	            action: '&',
	            labelId: '@'
	        };
	    }
	    return PathCheckboxComponent;
	}());
	exports.PathCheckboxComponent = PathCheckboxComponent;


/***/ }),
/* 833 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var PathTaskCardController = /** @class */ (function () {
	    function PathTaskCardController($state, ngPathTaskFormatter, taskUpdateFn, TaskStatusEnum, editReminderCommand, completeStaffTodoCommand, $scope, ngTypeUtility, pathTitleColorService, ngPathModalService) {
	        this.$state = $state;
	        this.ngPathTaskFormatter = ngPathTaskFormatter;
	        this.taskUpdateFn = taskUpdateFn;
	        this.TaskStatusEnum = TaskStatusEnum;
	        this.editReminderCommand = editReminderCommand;
	        this.completeStaffTodoCommand = completeStaffTodoCommand;
	        this.$scope = $scope;
	        this.ngTypeUtility = ngTypeUtility;
	        this.pathTitleColorService = pathTitleColorService;
	        this.ngPathModalService = ngPathModalService;
	    }
	    PathTaskCardController.prototype.isPersonalReminder = function () {
	        return this.taskUpdateFn.isPersonalReminder(this.task);
	    };
	    PathTaskCardController.prototype.isCompleted = function () {
	        return this.taskUpdateFn.isCompleted(this.task);
	    };
	    PathTaskCardController.prototype.isDismissed = function () {
	        return this.taskUpdateFn.isDismissed(this.task);
	    };
	    PathTaskCardController.prototype.isPendingComplete = function () {
	        return this.taskUpdateFn.isPendingComplete(this.task);
	    };
	    PathTaskCardController.prototype.isDateMarkerTask = function () {
	        return this.taskUpdateFn.isDateMarker(this.task);
	    };
	    PathTaskCardController.prototype.isActive = function () {
	        return this.task.show;
	    };
	    PathTaskCardController.prototype.isAutoCompletable = function () {
	        return this.taskUpdateFn.isAutoCompletable(this.task);
	    };
	    PathTaskCardController.prototype.isOverdue = function () {
	        return !this.isAppointment() && !this.isAppointmentRequest() && this.taskUpdateFn.isOverdue(this.task);
	    };
	    PathTaskCardController.prototype.isAppointment = function () {
	        return this.ngPathTaskFormatter.isAppointment(this.task, this.item);
	    };
	    PathTaskCardController.prototype.isAppointmentRequest = function () {
	        return this.ngPathTaskFormatter.isAppointmentRequest(this.task, this.item);
	    };
	    PathTaskCardController.prototype.isArticle = function () {
	        return this.ngPathTaskFormatter.isArticle(this.task, this.item);
	    };
	    PathTaskCardController.prototype.isPlacementTest = function () {
	        return this.ngPathTaskFormatter.isPlacementTest(this.task, this.item);
	    };
	    PathTaskCardController.prototype.isStaffDrivenToDo = function () {
	        return this.taskUpdateFn.isStaffDrivenToDo(this.task);
	    };
	    PathTaskCardController.prototype.showCalendar = function () {
	        return this.isAppointment() || this.isDateMarkerTask();
	    };
	    PathTaskCardController.prototype.getSuperTitle = function () {
	        if (this.isPersonalReminder()) {
	            return 'PERSONAL TO-DO';
	        }
	        return !_4.isEmpty(this.topic) ? this.topic.name : '';
	    };
	    PathTaskCardController.prototype.setTaskTitleClass = function () {
	        this.taskTitleClass = this.pathTitleColorService.getTextColorClass(this.getSuperTitle());
	    };
	    PathTaskCardController.prototype.getTitle = function () {
	        if (this.isPersonalReminder()) {
	            return this.task.title;
	        }
	        if (this.isStaffDrivenToDo()) {
	            return this.task.name;
	        }
	        if (this.task.substitute_text_by_field_by_item[this.item.id]) {
	            return this.task.substitute_text_by_field_by_item[this.item.id].title;
	        }
	        return this.item.title;
	    };
	    PathTaskCardController.prototype.getStaffLabel = function () {
	        return "Sent by " + this.task.created_by_name;
	    };
	    PathTaskCardController.prototype.getDateLabel = function () {
	        return this.format.getPathItemDateText(this.task, this.isOverdue(), false);
	    };
	    PathTaskCardController.prototype.getAXDateLabel = function () {
	        return this.format.getPathItemDateText(this.task, this.isOverdue(), true);
	    };
	    Object.defineProperty(PathTaskCardController.prototype, "taskTitleId", {
	        get: function () {
	            return "taskTitle" + this.task.id;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(PathTaskCardController.prototype, "stateParams", {
	        get: function () {
	            if (this.isPersonalReminder()) {
	                return {
	                    personalTodoID: this.task.id
	                };
	            }
	            if (this.isStaffDrivenToDo()) {
	                return {
	                    staffTodoID: this.task.id
	                };
	            }
	            return {
	                eventId: this.task.event,
	                repeatedBy: this.task.repeated_by,
	                topic: _4.get(this.topic, 'name')
	            };
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(PathTaskCardController.prototype, "stateUri", {
	        get: function () {
	            if (this.isPersonalReminder()) {
	                return "my.todos.reminder";
	            }
	            if (this.isStaffDrivenToDo()) {
	                return "my.todos.stafftodo";
	            }
	            if (this.isAppointment()) {
	                return "my.todos.appointment";
	            }
	            else if (this.isAppointmentRequest()) {
	                return "my.todos.appointmentRequest";
	            }
	            else if (this.isPlacementTest()) {
	                return "my.todos.placement";
	            }
	            else {
	                return "my.todos.details";
	            }
	        },
	        enumerable: true,
	        configurable: true
	    });
	    PathTaskCardController.prototype.goToStateOnMobileOnly = function () {
	        if (this.isMobile) {
	            this.$state.go(this.stateUri, this.stateParams);
	        }
	    };
	    PathTaskCardController.prototype.updateStatus = function () {
	        if (this.isDismissed()) {
	            this.toggleDismissed();
	        }
	        else if (this.isPersonalReminder()) {
	            this.updateReminderStatus();
	        }
	        else if (this.isStaffDrivenToDo()) {
	            this.updateStaffTodoStatus();
	        }
	        else {
	            this.updatePathTask();
	        }
	    };
	    PathTaskCardController.prototype.updatePathTask = function () {
	        var initialStatus = this.task.status;
	        if (this.isAutoCompletable()) {
	            this.task.is_pending_complete = !this.task.is_pending_complete;
	        }
	        this.taskUpdateFn.toggleComplete(this.task, initialStatus, this.task.is_pending_complete);
	    };
	    PathTaskCardController.prototype.updateReminderStatus = function () {
	        var status = _4.isEqual(this.task.status, 'ACTIVE') ? 'COMPLETED' : 'ACTIVE';
	        this.editReminderCommand(this.task.id, { status: status });
	    };
	    PathTaskCardController.prototype.updateStaffTodoStatus = function () {
	        var _this = this;
	        this.completeStaffTodoCommand(this.task.id, this.isCompleted()).then(function (response) {
	            _this.task.cleared_date = _this.isCompleted() ? '' : moment().format('YYYY-MM-DD');
	        });
	    };
	    PathTaskCardController.prototype.toggleDismissed = function () {
	        var initialStatus = this.task.status;
	        this.task.status = this.taskUpdateFn.getNewStatusAsString(this.task, initialStatus, true);
	        this.taskUpdateFn.toggleDismissed(this.task, initialStatus, false);
	    };
	    PathTaskCardController.prototype.showWhatIsAutoCompleteModal = function ($event) {
	        $event.stopPropagation();
	        this.ngPathModalService.toggleAutoCompleteModal(true);
	    };
	    PathTaskCardController.prototype.getIconDate = function () {
	        return this.format.getCalendarDay(this.task);
	    };
	    PathTaskCardController.prototype.$onInit = function () {
	        this.format = this.ngPathTaskFormatter;
	        this.setTaskTitleClass();
	        this.isMobile = utility_ts_platform_1.PlatformUtility.isMobile();
	    };
	    PathTaskCardController.prototype.$onChanges = function (changes) {
	        this.setTaskTitleClass();
	    };
	    return PathTaskCardController;
	}());
	exports.PathTaskCardController = PathTaskCardController;
	var PathTaskCardComponent = /** @class */ (function () {
	    function PathTaskCardComponent() {
	        this.templateUrl = 'capability-ng-todos/src/components/path_task_card/path_task_card.html';
	        this.controller = PathTaskCardController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            task: '<',
	            item: '<',
	            topic: '<'
	        };
	    }
	    return PathTaskCardComponent;
	}());
	exports.PathTaskCardComponent = PathTaskCardComponent;


/***/ }),
/* 834 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var TipCardController = /** @class */ (function () {
	    function TipCardController($state) {
	        this.$state = $state;
	    }
	    Object.defineProperty(TipCardController.prototype, "stateUri", {
	        get: function () {
	            var params = {
	                eventId: this.task.event,
	                repeatedBy: this.task.repeated_by
	            };
	            return "my.todos.tip(" + JSON.stringify(params) + ")";
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return TipCardController;
	}());
	exports.TipCardController = TipCardController;
	var TipCardComponent = /** @class */ (function () {
	    function TipCardComponent() {
	        this.templateUrl = 'capability-ng-todos/src/components/tip_card/tip_card.html';
	        this.controller = TipCardController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            task: '<',
	            item: '<'
	        };
	    }
	    return TipCardComponent;
	}());
	exports.TipCardComponent = TipCardComponent;


/***/ }),
/* 835 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var TipDetailsController = /** @class */ (function () {
	    function TipDetailsController() {
	    }
	    TipDetailsController.prototype.$onInit = function () {
	        this.models = {
	            item: this.tipDetail.root,
	            task: this.tipDetail.source.task,
	            resources: this.tipDetail.resource,
	            locationGroups: this.tipDetail.source.locationGroups
	        };
	        this.flags = {
	            hasResources: !_4.isEmpty(this.models.resources),
	            hasChildren: !_4.isEmpty(this.tipDetail.root.children)
	        };
	    };
	    return TipDetailsController;
	}());
	exports.TipDetailsController = TipDetailsController;
	var TipDetailsComponent = /** @class */ (function () {
	    function TipDetailsComponent() {
	        this.templateUrl = 'capability-ng-todos/src/components/tip_details/tip_details.html';
	        this.controller = TipDetailsController;
	        this.bindings = {
	            tipDetail: '<'
	        };
	    }
	    return TipDetailsComponent;
	}());
	exports.TipDetailsComponent = TipDetailsComponent;


/***/ }),
/* 836 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var TodoDetailsController = /** @class */ (function () {
	    function TodoDetailsController($state) {
	        this.$state = $state;
	        this.hasResources = false;
	        this.hasChildren = false;
	    }
	    TodoDetailsController.prototype.$onInit = function () {
	        this.task = this.taskDetails.source.task;
	        this.hasResources = !_4.isEmpty(this.resources);
	        this.hasChildren = !_4.isEmpty(this.taskDetails.root.children);
	    };
	    TodoDetailsController.prototype.goToMajorSurvey = function () {
	        this.$state.go(this.specialPresenter.stateName, this.specialPresenter.stateParams);
	    };
	    return TodoDetailsController;
	}());
	exports.TodoDetailsController = TodoDetailsController;
	var TodoDetailsComponent = /** @class */ (function () {
	    function TodoDetailsComponent() {
	        this.templateUrl = 'capability-ng-todos/src/components/todo_details/todo_details.html';
	        this.controller = TodoDetailsController;
	        this.bindings = {
	            taskDetails: '<',
	            specialPresenter: '<',
	            resources: '<',
	            topics: '<',
	            topic: '<'
	        };
	    }
	    return TodoDetailsComponent;
	}());
	exports.TodoDetailsComponent = TodoDetailsComponent;


/***/ }),
/* 837 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var TodoPlacementTestController = /** @class */ (function () {
	    function TodoPlacementTestController(appConfigModel) {
	        this.appConfigModel = appConfigModel;
	        var SERVER_PLACEMENT_BAND_STRATEGY = "PlacementBand";
	        this.hasPlacementBands =
	            this.appConfigModel.getConfigProperty('cat-devreq_assignment_strategy') === SERVER_PLACEMENT_BAND_STRATEGY;
	    }
	    return TodoPlacementTestController;
	}());
	exports.TodoPlacementTestController = TodoPlacementTestController;
	var TodoPlacementTestComponent = /** @class */ (function () {
	    function TodoPlacementTestComponent() {
	        this.templateUrl = 'capability-ng-todos/src/components/todo_placement_test/todo_placement_test.html';
	        this.controller = TodoPlacementTestController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            taskDetails: '<',
	            placementTask: '<',
	            placementData: '<',
	            placementLocations: '<',
	            expectItem: '<'
	        };
	    }
	    return TodoPlacementTestComponent;
	}());
	exports.TodoPlacementTestComponent = TodoPlacementTestComponent;


/***/ }),
/* 838 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var TodoRefreshButtonController = /** @class */ (function () {
	    function TodoRefreshButtonController(ngTodoDateRangeService, loadAllPathStatusCommand, loadAllReminderDateRangeCommand, ngTodosContentService, ngTodoRefreshService, $q) {
	        this.ngTodoDateRangeService = ngTodoDateRangeService;
	        this.loadAllPathStatusCommand = loadAllPathStatusCommand;
	        this.loadAllReminderDateRangeCommand = loadAllReminderDateRangeCommand;
	        this.ngTodosContentService = ngTodosContentService;
	        this.ngTodoRefreshService = ngTodoRefreshService;
	        this.$q = $q;
	        this.isRefreshing = false;
	    }
	    TodoRefreshButtonController.prototype.refresh = function () {
	        var _this = this;
	        this.isRefreshing = true;
	        var dateRange = this.ngTodoDateRangeService.getCurrentDateRange();
	        this.$q
	            .all([this.loadAllPathStatusCommand(dateRange), this.loadAllReminderDateRangeCommand(dateRange)])
	            .then(function () {
	            _this.ngTodosContentService.loadTodosAndReminders();
	            _this.isRefreshing = false;
	            _this.ngTodoRefreshService.reset();
	        });
	    };
	    return TodoRefreshButtonController;
	}());
	exports.TodoRefreshButtonController = TodoRefreshButtonController;
	var TodoRefreshButtonComponent = /** @class */ (function () {
	    function TodoRefreshButtonComponent() {
	        this.templateUrl = 'capability-ng-todos/src/components/todo_refresh_button/todo_refresh_button.html';
	        this.controller = TodoRefreshButtonController;
	        this.controllerAs = '$ctrl';
	    }
	    return TodoRefreshButtonComponent;
	}());
	exports.TodoRefreshButtonComponent = TodoRefreshButtonComponent;


/***/ }),
/* 839 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var TodoReminderDetailsController = /** @class */ (function () {
	    function TodoReminderDetailsController($state, ngReminderQuery, ngTypeUtility, editReminderCommand, EventCategoryEnum, log, pathTitleColorService, ngPathTaskFormatter) {
	        var _this = this;
	        this.$state = $state;
	        this.ngReminderQuery = ngReminderQuery;
	        this.ngTypeUtility = ngTypeUtility;
	        this.editReminderCommand = editReminderCommand;
	        this.EventCategoryEnum = EventCategoryEnum;
	        this.log = log;
	        this.pathTitleColorService = pathTitleColorService;
	        this.ngPathTaskFormatter = ngPathTaskFormatter;
	        this.goToEditReminder = function () {
	            _this.$state.go('my.newreminder', {
	                personalTodoID: _this.reminderData.id
	            });
	        };
	        this.reminderData = this.ngReminderQuery.result;
	        this.model = {
	            class: this.pathTitleColorService.getTextColorClass('PERSONAL TO-DO'),
	            showNotes: !_4.isEmpty(this.reminderData.description),
	            subTitle: this.ngPathTaskFormatter.getReminderText(this.reminderData)
	        };
	    }
	    TodoReminderDetailsController.prototype.isReminderCompleted = function (reminder) {
	        return _4.isEqual(reminder.status, 'COMPLETED');
	    };
	    TodoReminderDetailsController.prototype.updateReminderStatus = function () {
	        var _this = this;
	        var newStatus = _4.isEqual(this.reminderData.status, 'ACTIVE') ? 'COMPLETED' : 'ACTIVE';
	        this.editReminderCommand(this.reminderData.id, { status: newStatus })
	            .then(function (response) {
	            _this.reminderData.status = newStatus;
	        })
	            .catch(function (error) {
	            _this.log.user.error('Something went wrong. Please try again!');
	        });
	    };
	    return TodoReminderDetailsController;
	}());
	exports.TodoReminderDetailsController = TodoReminderDetailsController;
	var TodoReminderDetailsComponent = /** @class */ (function () {
	    function TodoReminderDetailsComponent() {
	        this.templateUrl = 'capability-ng-todos/src/components/todo_reminder_details/todo_reminder_details.html';
	        this.controller = TodoReminderDetailsController;
	    }
	    return TodoReminderDetailsComponent;
	}());
	exports.TodoReminderDetailsComponent = TodoReminderDetailsComponent;


/***/ }),
/* 840 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var TodoTaskFilterController = /** @class */ (function () {
	    function TodoTaskFilterController($scope, $state, FEATURE_PERSONAL_REMINDERS, TodoFilterEnum, appConfigModel) {
	        this.$scope = $scope;
	        this.$state = $state;
	        this.FEATURE_PERSONAL_REMINDERS = FEATURE_PERSONAL_REMINDERS;
	        this.TodoFilterEnum = TodoFilterEnum;
	        this.appConfigModel = appConfigModel;
	        this.filterExpanded = false;
	        this.taskFilters = TodoFilterEnum.__keys__;
	        if (!appConfigModel.isFeatureEnabled(FEATURE_PERSONAL_REMINDERS)) {
	            this.taskFilters = _4.omit(this.taskFilters, 'REMINDER');
	        }
	        this.isFilterOpen = false;
	        if (appConfigModel.navIconTheme) {
	            this.headerTheme = appConfigModel.navIconTheme();
	        }
	    }
	    TodoTaskFilterController.prototype.toggleFilter = function () {
	        this.filterExpanded = !this.filterExpanded;
	    };
	    TodoTaskFilterController.prototype.changeFilter = function (filter) {
	        var title = filter.name;
	        this.$state.get('my.todos').data.viewTitle = "To-Dos | " + title;
	        this.$state.go('my.todos', { filterBy: filter.stateParam });
	    };
	    TodoTaskFilterController.prototype.isFilteringActive = function () {
	        return !_4.isEmpty(this.filter) && this.filter !== this.TodoFilterEnum.ALL_TODO_AND_EVENT;
	    };
	    return TodoTaskFilterController;
	}());
	exports.TodoTaskFilterController = TodoTaskFilterController;
	var TodoTaskFilterComponent = /** @class */ (function () {
	    function TodoTaskFilterComponent() {
	        this.templateUrl = 'capability-ng-todos/src/components/todo_task_filter/todo_task_filter.html';
	        this.controller = TodoTaskFilterController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            filter: '<?'
	        };
	    }
	    return TodoTaskFilterComponent;
	}());
	exports.TodoTaskFilterComponent = TodoTaskFilterComponent;


/***/ }),
/* 841 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var TopicContainerController = /** @class */ (function () {
	    function TopicContainerController(ngTodoRefreshService, updateTopicOptInsCommand) {
	        this.ngTodoRefreshService = ngTodoRefreshService;
	        this.updateTopicOptInsCommand = updateTopicOptInsCommand;
	        this.topics = [];
	        this.showValidationAlert = false;
	        this.showValidationTheme = 'warning';
	        this.validationMessage = 'You have not changed your selections.';
	        this.trackTopicsModel = {
	            initial_topics_by_id: {},
	            updated_topics_by_id: {}
	        };
	    }
	    TopicContainerController.prototype.$onChanges = function () {
	        this.clearTrackedTopics();
	        this.trackTopicsModel.initial_topics_by_id = _4.keyBy(_4.cloneDeep(this.topics), 'id');
	    };
	    TopicContainerController.prototype.clearTrackedTopics = function () {
	        this.trackTopicsModel = {
	            initial_topics_by_id: {},
	            updated_topics_by_id: {}
	        };
	    };
	    TopicContainerController.prototype.onSubmitTopics = function () {
	        var _this = this;
	        var updatedTopics = [];
	        updatedTopics = _4.compact(_4.map(this.trackTopicsModel.updated_topics_by_id, function (updatedtopic) {
	            var initialTopic = _this.trackTopicsModel.initial_topics_by_id[updatedtopic.id];
	            if (updatedtopic.has_opted_in !== initialTopic.has_opted_in) {
	                return updatedtopic;
	            }
	            else {
	                return;
	            }
	        }));
	        if (updatedTopics.length > 0) {
	            this.showValidationAlert = false;
	            this.updateTopicOptInsCommand(updatedTopics)
	                .then(function () {
	                _this.showValidationAlert = true;
	                _this.showValidationTheme = 'success';
	                _this.validationMessage = 'Topic updates have changed your To-Dos';
	                setTimeout(function () {
	                    _this.showValidationAlert = false;
	                }, 3000);
	                _this.ngTodoRefreshService.showWithText('Topic updates have changed your To-Dos');
	            })
	                .catch(function (e) {
	                // TODO: Add a message for the user.
	            });
	        }
	        else {
	            this.showValidationTheme = 'warning';
	            this.validationMessage = 'You have not changed your selections.';
	            this.showValidationAlert = true;
	        }
	    };
	    TopicContainerController.prototype.optInTopic = function (topic) {
	        this.trackTopicsModel.updated_topics_by_id[topic.id] = topic;
	    };
	    return TopicContainerController;
	}());
	exports.TopicContainerController = TopicContainerController;
	var TopicContainerComponent = /** @class */ (function () {
	    function TopicContainerComponent() {
	        this.templateUrl = 'capability-ng-todos/src/components/topic_container/topic_container.html';
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            topics: '<',
	            isDisabled: '<'
	        };
	        this.controller = TopicContainerController;
	    }
	    return TopicContainerComponent;
	}());
	exports.TopicContainerComponent = TopicContainerComponent;


/***/ }),
/* 842 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var TopicTileController = /** @class */ (function () {
	    function TopicTileController() {
	    }
	    TopicTileController.prototype.optIn = function (topic) {
	        if (!this.isDisabled) {
	            topic.has_opted_in = !topic.has_opted_in;
	            this.optInCallback(topic);
	        }
	    };
	    return TopicTileController;
	}());
	exports.TopicTileController = TopicTileController;
	var TopicTileComponent = /** @class */ (function () {
	    function TopicTileComponent() {
	        this.templateUrl = 'capability-ng-todos/src/components/topic_tile/topic_tile.html';
	        this.controller = TopicTileController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            topic: '<',
	            isDisabled: '<?',
	            optInCallback: '&'
	        };
	    }
	    return TopicTileComponent;
	}());
	exports.TopicTileComponent = TopicTileComponent;


/***/ }),
/* 843 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var AppointmentPriorityFeedQuery = /** @class */ (function () {
	    function AppointmentPriorityFeedQuery(ngPathItemDatastore, ngPathTaskDatastore) {
	        this.ngPathItemDatastore = ngPathItemDatastore;
	        this.ngPathTaskDatastore = ngPathTaskDatastore;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngPathItemDatastore, this.ngPathTaskDatastore);
	    }
	    AppointmentPriorityFeedQuery.prototype.__isToday = function (time) {
	        var today = moment();
	        return time.isBefore(today.endOf('day')) && time.isAfter(today.startOf('day'));
	    };
	    AppointmentPriorityFeedQuery.prototype.__iPriorityFeedObjBuilder = function (currentTasks) {
	        var currentTask = _.first(currentTasks);
	        var time = '';
	        if (!_.isEmpty(currentTask)) {
	            time =
	                !_.isEmpty(currentTask.start_ts) && currentTask.start_ts.isValid()
	                    ? currentTask.start_ts.format('h:mma')
	                    : currentTask.end_ts.format('h:mma');
	        }
	        var title = currentTasks.length === 1 ? 'Advisor Appointment' : "You have " + currentTasks.length + " appointments today";
	        var subTitle = currentTasks.length === 1 ? "Today at " + time : 'Check them out';
	        var action = currentTasks.length === 1
	            ? {
	                state: 'my.todos.appointment',
	                params: {
	                    eventId: currentTask.event,
	                    repeatedBy: currentTask.repeated_by
	                }
	            }
	            : { state: 'my.myAppointments' };
	        return { text: { title: title, subTitle: subTitle }, action: action };
	    };
	    AppointmentPriorityFeedQuery.prototype.run = function () {
	        var _this = this;
	        var apptTask = _.first(this.ngPathItemDatastore.query(function (item) { return item.presenter === 'APPOINTMENT'; }));
	        var currentTasks = this.ngPathTaskDatastore.query(function (task) {
	            return task.item === _.get(apptTask, 'id') && (_this.__isToday(task.start_ts) || _this.__isToday(task.end_ts));
	        });
	        this._count = currentTasks.length;
	        var isActive = currentTasks.length > 0;
	        var _a = this.__iPriorityFeedObjBuilder(currentTasks), action = _a.action, text = _a.text;
	        this._result = {
	            icon: { type: 'calender', theme: 'magenta' },
	            action: action,
	            text: text,
	            isOverdue: false,
	            isActive: isActive
	        };
	        return this;
	    };
	    Object.defineProperty(AppointmentPriorityFeedQuery.prototype, "count", {
	        get: function () {
	            return this._count;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(AppointmentPriorityFeedQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return AppointmentPriorityFeedQuery;
	}());
	exports.AppointmentPriorityFeedQuery = AppointmentPriorityFeedQuery;


/***/ }),
/* 844 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var CurrentTopicsQuery = /** @class */ (function () {
	    function CurrentTopicsQuery(ngPathCurrentTopicDatastore) {
	        this.ngPathCurrentTopicDatastore = ngPathCurrentTopicDatastore;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngPathCurrentTopicDatastore);
	    }
	    CurrentTopicsQuery.prototype.run = function () {
	        this._result = _.sortBy(this.ngPathCurrentTopicDatastore.query(function (topic) { return !!topic.id; }), 'rank');
	        this._count = this._result.length;
	        return this;
	    };
	    Object.defineProperty(CurrentTopicsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(CurrentTopicsQuery.prototype, "count", {
	        get: function () {
	            return this._count;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return CurrentTopicsQuery;
	}());
	exports.CurrentTopicsQuery = CurrentTopicsQuery;
	angular.module('data-ng-todos').service('ngCurrentTopicsQuery', CurrentTopicsQuery);


/***/ }),
/* 845 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var time_formatter_fn_1 = __webpack_require__(104);
	var EventPriorityFeedQuery = /** @class */ (function () {
	    function EventPriorityFeedQuery(ngPathTaskFormatter, ngPathItemDatastore, ngPathTaskDatastore, ngTypeUtility, EventCategoryEnum, TaskStatusEnum) {
	        this.ngPathTaskFormatter = ngPathTaskFormatter;
	        this.ngPathItemDatastore = ngPathItemDatastore;
	        this.ngPathTaskDatastore = ngPathTaskDatastore;
	        this.ngTypeUtility = ngTypeUtility;
	        this.EventCategoryEnum = EventCategoryEnum;
	        this.TaskStatusEnum = TaskStatusEnum;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngPathItemDatastore, this.ngPathTaskDatastore);
	    }
	    EventPriorityFeedQuery.prototype.run = function () {
	        var _this = this;
	        var apptItem = _.first(this.ngPathItemDatastore.query(function (item) { return item.presenter === 'APPOINTMENT'; }));
	        var eventsToday = this.ngPathTaskDatastore.query(function (task) {
	            return _this.__getActiveEventsForToday(task, apptItem);
	        });
	        var isActive = (this._isActive = !_.isEmpty(eventsToday));
	        var text = this.getEventText(eventsToday);
	        var action = this.getEventState(eventsToday);
	        var firstTask = _.first(eventsToday);
	        var date = firstTask ? this.ngPathTaskFormatter.getCalendarDay(firstTask) : "" + moment().date();
	        var icon = {
	            type: 'empty_calendar',
	            theme: 'blue',
	            config: {
	                isEventIcon: true,
	                date: date
	            }
	        };
	        this._result = {
	            icon: icon,
	            text: text,
	            action: action,
	            isOverdue: false,
	            isActive: isActive
	        };
	        return this;
	    };
	    EventPriorityFeedQuery.prototype.__getActiveEventsForToday = function (task, apptItem) {
	        var endOfDay = moment().endOf('day');
	        var apptId = apptItem ? apptItem.id : undefined;
	        return (this.TaskStatusEnum.isActive(task.status) &&
	            task.show &&
	            task.mandatory &&
	            this.EventCategoryEnum.isDateMarker(task.category) &&
	            (task.start_ts.isBefore(endOfDay) || task.end_ts.isBefore(endOfDay)) &&
	            task.item !== apptId);
	    };
	    EventPriorityFeedQuery.prototype.getEventText = function (eventList) {
	        if (eventList.length > 1 || !this._isActive) {
	            return {
	                title: "You have " + eventList.length + " events happening today",
	                subTitle: 'Check them out'
	            };
	        }
	        var priorityEventTask = _.first(eventList);
	        var priorityEventItem = _.first(this.ngPathItemDatastore.query(function (item) { return item.id === priorityEventTask.item; }));
	        return {
	            title: this.ngPathTaskFormatter.getToDoTitle(priorityEventTask, priorityEventItem),
	            subTitle: this.getDateMessage(priorityEventTask)
	        };
	    };
	    EventPriorityFeedQuery.prototype.getDateMessage = function (task) {
	        var today = moment();
	        var validStart = !_.isEmpty(task.start_ts) && task.start_ts.isValid();
	        var date = validStart ? task.start_ts : task.end_ts;
	        var isToday = date.isAfter(today.startOf('day')) && date.isBefore(today.endOf('day'));
	        var sameEndDate = moment(task.start_ts).diff(task.end_ts, 'days') === 0;
	        if (isToday && sameEndDate) {
	            return 'Today';
	        }
	        if (isToday && validStart) {
	            return "Today - " + this.getEndDateMessage(task);
	        }
	        if (sameEndDate) {
	            return "" + time_formatter_fn_1.TimeFormatterFunction.defaultTime(task.start_ts);
	        }
	        if (!validStart) {
	            return "Due on " + this.getEndDateMessage(task);
	        }
	        return time_formatter_fn_1.TimeFormatterFunction.defaultTime(task.start_ts) + " - " + this.getEndDateMessage(task);
	    };
	    EventPriorityFeedQuery.prototype.getEndDateMessage = function (task) {
	        if (moment().diff(task.end_ts, 'days') === 0) {
	            return 'Today';
	        }
	        return time_formatter_fn_1.TimeFormatterFunction.defaultTime(task.end_ts);
	    };
	    EventPriorityFeedQuery.prototype.getEventState = function (eventList) {
	        if (eventList.length > 1 || !this._isActive) {
	            return {
	                state: 'my.todos',
	                params: {
	                    filterBy: 'eventstoday'
	                }
	            };
	        }
	        var priorityEventTask = _.first(eventList);
	        return {
	            state: 'my.todos.details',
	            params: {
	                eventId: priorityEventTask.event,
	                repeatedBy: priorityEventTask.repeated_by
	            }
	        };
	    };
	    Object.defineProperty(EventPriorityFeedQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return EventPriorityFeedQuery;
	}());
	exports.EventPriorityFeedQuery = EventPriorityFeedQuery;


/***/ }),
/* 846 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ToDoBuilderServant = /** @class */ (function () {
	    function ToDoBuilderServant(ngPathItemDatastore, ngPathTopicDatastore, EventCategoryEnum) {
	        this.ngPathItemDatastore = ngPathItemDatastore;
	        this.ngPathTopicDatastore = ngPathTopicDatastore;
	        this.EventCategoryEnum = EventCategoryEnum;
	    }
	    ToDoBuilderServant.prototype.buildTodo = function (task) {
	        task.category = this.EventCategoryEnum.get(task.category);
	        var topic = _.first(this.ngPathTopicDatastore.query(function (currentTopic) { return currentTopic.id === task.topic_id; }));
	        var item = _.first(this.ngPathItemDatastore.query(function (currentItem) { return currentItem.id === task.item; }));
	        return {
	            task: task,
	            item: item,
	            topic: topic
	        };
	    };
	    return ToDoBuilderServant;
	}());
	exports.ToDoBuilderServant = ToDoBuilderServant;
	angular.module('data-ng-todos').service('ngToDoBuilderServant', ToDoBuilderServant);


/***/ }),
/* 847 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var PathTaskUpdateService = /** @class */ (function () {
	    function PathTaskUpdateService(ngPathTaskDatastore, ngOverduePathTaskDatastore, TaskStatusEnum) {
	        this.ngPathTaskDatastore = ngPathTaskDatastore;
	        this.ngOverduePathTaskDatastore = ngOverduePathTaskDatastore;
	        this.TaskStatusEnum = TaskStatusEnum;
	    }
	    PathTaskUpdateService.prototype.updatePathTask = function (task, taskUpdate) {
	        if (this.ngOverduePathTaskDatastore.contains([tslib_1.__assign(tslib_1.__assign({}, task), taskUpdate)])) {
	            this.ngOverduePathTaskDatastore.put(taskUpdate);
	            this.updatePathTaskDataSource(task, taskUpdate);
	        }
	        else {
	            this.ngPathTaskDatastore.put(taskUpdate);
	        }
	    };
	    PathTaskUpdateService.prototype.updatePathTaskDataSource = function (task, taskUpdate) {
	        if (this.TaskStatusEnum.isActive(taskUpdate.status)) {
	            this.ngPathTaskDatastore.del(tslib_1.__assign(tslib_1.__assign({}, task), taskUpdate));
	        }
	        else {
	            this.ngPathTaskDatastore.put(tslib_1.__assign(tslib_1.__assign({}, task), taskUpdate));
	        }
	    };
	    return PathTaskUpdateService;
	}());
	exports.PathTaskUpdateService = PathTaskUpdateService;


/***/ }),
/* 848 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PathAutoCompleteModalController = /** @class */ (function () {
	    function PathAutoCompleteModalController(ngPathModalService, appConfigModel) {
	        this.ngPathModalService = ngPathModalService;
	        this.appConfigModel = appConfigModel;
	    }
	    PathAutoCompleteModalController.prototype.$onInit = function () {
	        this.institutionName = _4.isEmpty(this.appConfigModel.getConfigProperty('core-inst_name'))
	            ? 'the school'
	            : this.appConfigModel.getConfigProperty('core-inst_name');
	    };
	    return PathAutoCompleteModalController;
	}());
	exports.PathAutoCompleteModalController = PathAutoCompleteModalController;
	var PathAutoCompleteModalComponent = /** @class */ (function () {
	    function PathAutoCompleteModalComponent() {
	        this.templateUrl = 'capability-ng-todos/src/modals/path_auto_complete_modal/what_is_auto_complete_modal.html';
	        this.controller = PathAutoCompleteModalController;
	        this.controllerAs = '$ctrl';
	    }
	    return PathAutoCompleteModalComponent;
	}());
	exports.PathAutoCompleteModalComponent = PathAutoCompleteModalComponent;


/***/ }),
/* 849 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(7);
	var ReminderDatePickerModalController = /** @class */ (function () {
	    function ReminderDatePickerModalController(ngPathModalService, personalReminderService) {
	        this.ngPathModalService = ngPathModalService;
	        this.personalReminderService = personalReminderService;
	    }
	    ReminderDatePickerModalController.prototype.saveDateTime = function () {
	        if (this.personalReminderService.isModalDateTimeValid()) {
	            this.personalReminderService.saveFinalizedDayAndTime();
	            this.ngPathModalService.toggleReminderModal(false);
	        }
	    };
	    Object.defineProperty(ReminderDatePickerModalController.prototype, "isAllDayReminder", {
	        get: function () {
	            return _4.get(this.personalReminderService, 'personalReminderData.isAllDayReminder', false);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    ReminderDatePickerModalController.prototype.toggleAllDaySwitch = function () {
	        this.personalReminderService.toggleAllDaySwitch(!this.isAllDayReminder);
	    };
	    return ReminderDatePickerModalController;
	}());
	exports.ReminderDatePickerModalController = ReminderDatePickerModalController;
	var ReminderDatePickerModalComponent = /** @class */ (function () {
	    function ReminderDatePickerModalComponent() {
	        this.templateUrl = 'capability-ng-todos/src/modals/path_reminder_modal/reminder_date_picker_modal.html';
	        this.controller = ReminderDatePickerModalController;
	        this.controllerAs = '$ctrl';
	    }
	    return ReminderDatePickerModalComponent;
	}());
	exports.ReminderDatePickerModalComponent = ReminderDatePickerModalComponent;


/***/ }),
/* 850 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var AuthenticationQueryModel = /** @class */ (function () {
	    function AuthenticationQueryModel(authenticationConfiguration, ngAccountIdentityDatastore, ngAccountStatusDatastore, ngMemberConfigurationDatastore, appConfigModel) {
	        this.authenticationConfiguration = authenticationConfiguration;
	        this.ngAccountIdentityDatastore = ngAccountIdentityDatastore;
	        this.ngAccountStatusDatastore = ngAccountStatusDatastore;
	        this.ngMemberConfigurationDatastore = ngMemberConfigurationDatastore;
	        this.appConfigModel = appConfigModel;
	    }
	    AuthenticationQueryModel.prototype.isAccountLoggedOut = function () {
	        return _4.isEmpty(this.ngAccountIdentityDatastore.store.username);
	    };
	    AuthenticationQueryModel.prototype.isAccountLoggedIn = function () {
	        return !this.isAccountLoggedOut();
	    };
	    AuthenticationQueryModel.prototype.isAccountValid = function () {
	        return this.isAccountLoggedIn();
	    };
	    AuthenticationQueryModel.prototype.isMemberValid = function () {
	        return !_4.isEmpty(this.ngMemberConfigurationDatastore.store.login_url);
	    };
	    // NOTE this was used in a view - ready for what?
	    AuthenticationQueryModel.prototype.isReady = function () {
	        return this.isMemberValid();
	    };
	    AuthenticationQueryModel.prototype.hasAssignedInstitution = function () {
	        return !!this.ngMemberConfigurationDatastore.store.inst_name;
	    };
	    // NOTE replace backgroundUrl
	    AuthenticationQueryModel.prototype.getBackgroundImageURL = function () {
	        var logonConfigurationStore = this.ngMemberConfigurationDatastore.store;
	        var authenticationConfiguration = this.authenticationConfiguration.read();
	        return (logonConfigurationStore.login_header_url ||
	            this.appConfigModel.getInstitutionMediaPath('core_login') ||
	            authenticationConfiguration.defaultBackgroundImageUrl);
	    };
	    AuthenticationQueryModel.prototype.read = function () {
	        return {
	            identity: this.ngAccountIdentityDatastore.store,
	            status: this.ngAccountStatusDatastore.store,
	            member: this.ngMemberConfigurationDatastore.store
	        };
	    };
	    AuthenticationQueryModel.prototype.report = function (fn) {
	        return fn(this.read());
	    };
	    return AuthenticationQueryModel;
	}());
	exports.AuthenticationQueryModel = AuthenticationQueryModel;
	angular
	    .module('data-ng-authentication')
	    .factory('ngAuthenticationQueryModel', function (authenticationConfiguration, ngAccountIdentityDatastore, ngAccountStatusDatastore, ngMemberConfigurationDatastore, appConfigModel) {
	    return new AuthenticationQueryModel(authenticationConfiguration, ngAccountIdentityDatastore, ngAccountStatusDatastore, ngMemberConfigurationDatastore, appConfigModel);
	});


/***/ }),
/* 851 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var URLQueryModel = /** @class */ (function () {
	    function URLQueryModel($injector, authenticationConfiguration, ngMemberConfigurationDatastore) {
	        this.$injector = $injector;
	        this.authenticationConfiguration = authenticationConfiguration;
	        this.ngMemberConfigurationDatastore = ngMemberConfigurationDatastore;
	    }
	    URLQueryModel.prototype.getLoginUrl = function () {
	        return (this.authenticationConfiguration.read().authenticationApiPrefix +
	            this.ngMemberConfigurationDatastore.read(function (store) { return store.login_url; }));
	    };
	    URLQueryModel.prototype.getLogoutUrl = function () {
	        return (this.authenticationConfiguration.read().authenticationApiPrefix +
	            this.ngMemberConfigurationDatastore.read(function (store) { return store.logout_url; }));
	    };
	    URLQueryModel.prototype.getLoginConfigurationUrl = function () {
	        var c = this.authenticationConfiguration.read();
	        return c ? c.authenticationApiPrefix + 'login' : '';
	    };
	    URLQueryModel.prototype.getLogoutRequestMethod = function () {
	        return this.ngMemberConfigurationDatastore.store.auth_type.logoutMethod;
	    };
	    URLQueryModel.prototype.getAccountUrl = function () {
	        return this.authenticationConfiguration.read().authenticationApiPrefix + 'account';
	    };
	    /**
	     * will transition to state, if it exists
	     */
	    URLQueryModel.prototype.transitionToLogoutState = function () {
	        var goToStateOnLogout = this.authenticationConfiguration.read().goToStateOnLogout;
	        var state = this.$injector.get('$state');
	        if (state && state.get(goToStateOnLogout) !== null) {
	            state.go(goToStateOnLogout, {}, { location: 'replace' });
	        }
	    };
	    return URLQueryModel;
	}());
	exports.URLQueryModel = URLQueryModel;
	angular
	    .module('data-ng-authentication')
	    .factory('ngURLQueryModel', function ($injector, authenticationConfiguration, ngMemberConfigurationDatastore) { return new URLQueryModel($injector, authenticationConfiguration, ngMemberConfigurationDatastore); });


/***/ }),
/* 852 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var UserActivityActivationQuery = /** @class */ (function () {
	    function UserActivityActivationQuery(Configuration, ngAccountIdentityDatastore, ngMemberConfigurationDatastore) {
	        this.Configuration = Configuration;
	        this.ngAccountIdentityDatastore = ngAccountIdentityDatastore;
	        this.ngMemberConfigurationDatastore = ngMemberConfigurationDatastore;
	        this._QUERY_DEFAULT = {
	            about: {},
	            personRegistration: {
	                properties: {}
	            }
	        };
	        this.query = _4.clone(this._QUERY_DEFAULT);
	    }
	    Object.defineProperty(UserActivityActivationQuery.prototype, "result", {
	        get: function () {
	            return this.query;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    UserActivityActivationQuery.prototype.run = function () {
	        var tracking = this.Configuration.read('tracking');
	        this.query = _4.clone(this._QUERY_DEFAULT);
	        if (!tracking) {
	            return this.query;
	        }
	        this.query.about = this.Configuration.read('about');
	        this.query.about.member = this.ngMemberConfigurationDatastore.read(function (store) { return store.inst_name; });
	        this.query.personRegistration = {
	            id: this.ngAccountIdentityDatastore.read(function (store) { return store.tracking_id; }),
	            email: this.ngAccountIdentityDatastore.read(function (store) { return store.email; }),
	            properties: {}
	        };
	        return this.query;
	    };
	    return UserActivityActivationQuery;
	}());
	exports.UserActivityActivationQuery = UserActivityActivationQuery;
	angular
	    .module('data-ng-authentication')
	    .factory('ngUserActivityActivationQuery', function (Configuration, ngAccountIdentityDatastore, ngMemberConfigurationDatastore) { return new UserActivityActivationQuery(Configuration, ngAccountIdentityDatastore, ngMemberConfigurationDatastore); });


/***/ }),
/* 853 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var CustomTextQuery = /** @class */ (function () {
	    function CustomTextQuery(ngCustomTextModel) {
	        this.ngCustomTextModel = ngCustomTextModel;
	        utility_ts_orm_1.Query.registerQuery(this, ngCustomTextModel);
	    }
	    CustomTextQuery.prototype.run = function () {
	        var customText = this.ngCustomTextModel.read();
	        this._result = _4.zipObject(_4.map(customText, 'nk'), _4.map(customText, 'text'));
	        return this;
	    };
	    Object.defineProperty(CustomTextQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return CustomTextQuery;
	}());
	exports.CustomTextQuery = CustomTextQuery;
	angular.module('data-ng-custom-text').service('ngCustomTextQuery', CustomTextQuery);


/***/ }),
/* 854 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var ReportConfigsQuery = /** @class */ (function () {
	    function ReportConfigsQuery(ngApptSummaryConfigModel, ngHandRaiseConfigModel, ngNotesConfigModel, ngProgressReportsConfigModel) {
	        this.ngApptSummaryConfigModel = ngApptSummaryConfigModel;
	        this.ngHandRaiseConfigModel = ngHandRaiseConfigModel;
	        this.ngNotesConfigModel = ngNotesConfigModel;
	        this.ngProgressReportsConfigModel = ngProgressReportsConfigModel;
	        utility_ts_orm_1.Query.registerQuery(this, ngApptSummaryConfigModel, ngHandRaiseConfigModel, ngNotesConfigModel, ngProgressReportsConfigModel);
	    }
	    ReportConfigsQuery.prototype.run = function () {
	        var apptSummaryConfig = this.ngApptSummaryConfigModel.read();
	        var handRaiseConfig = this.ngHandRaiseConfigModel.read();
	        var notesConfig = this.ngNotesConfigModel.read();
	        var progressReportsConfig = this.ngProgressReportsConfigModel.read();
	        //assuming the feature toggle boolean from appconfig is identical to command api call enabled attribute
	        this._result = [apptSummaryConfig, handRaiseConfig, notesConfig, progressReportsConfig];
	        localStorage.setItem('eab.navigate.report_config', JSON.stringify(this._result));
	        return this;
	    };
	    Object.defineProperty(ReportConfigsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return ReportConfigsQuery;
	}());
	exports.ReportConfigsQuery = ReportConfigsQuery;
	angular.module('data-ng-custom-text').service('ngReportConfigsQuery', ReportConfigsQuery);


/***/ }),
/* 855 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var AppointmentSchedulingServant = /** @class */ (function () {
	    function AppointmentSchedulingServant(loadStcScheduleConfigCommand, ngStcSchedulingConfigModel, appConfigModel) {
	        this.loadStcScheduleConfigCommand = loadStcScheduleConfigCommand;
	        this.ngStcSchedulingConfigModel = ngStcSchedulingConfigModel;
	        this.appConfigModel = appConfigModel;
	    }
	    AppointmentSchedulingServant.prototype.getSchedulingConfig = function () {
	        var _this = this;
	        var APPOINTMENT_SCHEDULE_FEATURE = 'model.member_features.ssccampus-appointment_scheduling';
	        var shouldLoadConfig = _4.isUndefined(this.ngStcSchedulingConfigModel.read().v3_student_scheduler_flag) &&
	            _4.get(this.appConfigModel, APPOINTMENT_SCHEDULE_FEATURE, false);
	        return new Promise(function (resolve, reject) {
	            if (shouldLoadConfig) {
	                _this.loadStcScheduleConfigCommand()
	                    .then(function () { return resolve(); })
	                    .catch(function (err) { return reject(err); });
	            }
	            else {
	                resolve();
	            }
	        });
	    };
	    return AppointmentSchedulingServant;
	}());
	exports.AppointmentSchedulingServant = AppointmentSchedulingServant;


/***/ }),
/* 856 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var cancelledStatus;
	(function (cancelledStatus) {
	    cancelledStatus["CANCELLED"] = "cancelled";
	})(cancelledStatus || (cancelledStatus = {}));
	var AppointmentPathItemFn = /** @class */ (function () {
	    function AppointmentPathItemFn() {
	    }
	    AppointmentPathItemFn.prototype.generateAppointmentDetails = function (appointmentDetails) {
	        return {
	            end_timestamp: moment(appointmentDetails.end_time).unix(),
	            attendees: appointmentDetails.attendees,
	            start_timestamp: moment(appointmentDetails.start_time).unix(),
	            organizers: this._organizerDetails(appointmentDetails.staff),
	            student_services: _4.map(_4.split(appointmentDetails.name), function (service, key) { return ({
	                id: key,
	                name: service
	            }); }),
	            location: { id: -1, name: appointmentDetails.location },
	            additional_details: _4.get(appointmentDetails, 'details', ''),
	            comments: appointmentDetails.comments,
	            is_cancelled: this._isCancelled(_4.get(appointmentDetails, 'status', '')),
	            student_can_cancel: appointmentDetails.can_cancel,
	            appointment_type: this._appointmentType(_4.get(appointmentDetails, 'recurrs', false)),
	            calendar_instance_id: appointmentDetails.instance_id,
	            cancellation_lead_time_hours: appointmentDetails.cancellation_lead_time_hours,
	            will_be_no_show: appointmentDetails.will_be_no_show,
	            course: appointmentDetails.course,
	            meeting_url_or_phone: appointmentDetails.meeting_url_or_phone
	        };
	    };
	    AppointmentPathItemFn.prototype._organizerDetails = function (organizers) {
	        return _4.map(organizers, function (organizer, key) { return ({
	            id: _4.get(organizer, 'id', key),
	            first_name: organizer.name,
	            last_name: _4.get(organizer, 'last_name', '')
	        }); });
	    };
	    AppointmentPathItemFn.prototype._isCancelled = function (status) {
	        return _4.lowerCase(status) === cancelledStatus.CANCELLED;
	    };
	    AppointmentPathItemFn.prototype._appointmentType = function (isRecurring) {
	        return isRecurring ? 'Recurring Appointment' : 'One Time Appointment';
	    };
	    AppointmentPathItemFn.prototype.generateAppointmentRequestDetails = function (appointmentRequest) {
	        return {
	            id: appointmentRequest.id,
	            campaign_note: appointmentRequest.campaign_note,
	            appointments_scheduled_so_far: appointmentRequest.total_uses,
	            remaining_appointments_for_student: appointmentRequest.remaining_uses,
	            creator: { id: appointmentRequest.creator.id, first_name: appointmentRequest.creator.name, last_name: '' },
	            end_date: appointmentRequest.end_time,
	            start_date: appointmentRequest.start_time,
	            appointment_type: _4.get(appointmentRequest, 'type', ''),
	            student_service: _4.head(appointmentRequest.services),
	            service_category: null,
	            location: appointmentRequest.location,
	            organizers: _4.map(appointmentRequest.staff, function (staff) { return ({
	                id: staff.id,
	                first_name: staff.name,
	                last_name: ''
	            }); }),
	            cancellation_lead_time_hours: appointmentRequest.cancellation_lead_time_hours,
	            will_be_no_show: appointmentRequest.will_be_no_show,
	            course: appointmentRequest.course,
	            meeting_url_or_phone: appointmentRequest.meeting_url_or_phone
	        };
	    };
	    return AppointmentPathItemFn;
	}());
	exports.AppointmentPathItemFn = AppointmentPathItemFn;
	angular.module('data-ng-path-item').service('appointmentPathItemFn', AppointmentPathItemFn);


/***/ }),
/* 857 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	/**
	 * @data-ng-path-item
	 */
	__webpack_require__(12);
	__webpack_require__(22);
	__webpack_require__(21);
	__webpack_require__(970);
	__webpack_require__(968);
	__webpack_require__(964);
	__webpack_require__(965);
	__webpack_require__(966);
	__webpack_require__(967);
	__webpack_require__(969);
	__webpack_require__(974);
	tslib_1.__exportStar(__webpack_require__(856), exports);
	__webpack_require__(971);
	__webpack_require__(972);
	__webpack_require__(973);
	__webpack_require__(856);
	__webpack_require__(975);
	__webpack_require__(976);
	__webpack_require__(977);
	__webpack_require__(978);
	exports.dataPathItem = 'data-ng-path-item';


/***/ }),
/* 858 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ReminderConfirmDatasource = /** @class */ (function () {
	    function ReminderConfirmDatasource() {
	        this.initialize();
	    }
	    ReminderConfirmDatasource.prototype.initialize = function () {
	        this.sourceReminderData = {};
	        return this;
	    };
	    ReminderConfirmDatasource.prototype.write = function (newReminderData) {
	        this.sourceReminderData = _4.assign(this.sourceReminderData, newReminderData);
	        return this;
	    };
	    ReminderConfirmDatasource.prototype.read = function () {
	        return this.sourceReminderData;
	    };
	    ReminderConfirmDatasource.prototype.clear = function () {
	        this.initialize();
	    };
	    ReminderConfirmDatasource.prototype.isEmpty = function () {
	        return _4.isEmpty(this.sourceReminderData);
	    };
	    ReminderConfirmDatasource.prototype.report = function (fn) {
	        return fn(this.sourceReminderData);
	    };
	    return ReminderConfirmDatasource;
	}());
	exports.ReminderConfirmDatasource = ReminderConfirmDatasource;
	angular.module('data-ng-personal-reminders').service('reminderConfirmDatasource', ReminderConfirmDatasource);


/***/ }),
/* 859 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ReminderListDatastore = /** @class */ (function () {
	    function ReminderListDatastore() {
	        this.initialize();
	    }
	    ReminderListDatastore.prototype.initialize = function () {
	        this._source = [];
	        return this;
	    };
	    ReminderListDatastore.prototype.write = function (reminderList) {
	        this._source = _4.filter(reminderList, function (reminder) {
	            var dateTime = moment(reminder.due_ts);
	            if (dateTime.hours() === 0 && dateTime.minutes() === 0) {
	                return dateTime.endOf('day').isAfter(moment().startOf('day'));
	            }
	            return dateTime.isAfter(moment());
	        });
	        return this;
	    };
	    ReminderListDatastore.prototype.read = function () {
	        return this._source;
	    };
	    ReminderListDatastore.prototype.clear = function () {
	        this.initialize();
	    };
	    ReminderListDatastore.prototype.isEmpty = function () {
	        return _4.isEmpty(this._source);
	    };
	    ReminderListDatastore.prototype.report = function (fn) {
	        return fn(this._source);
	    };
	    ReminderListDatastore.prototype.updateReminder = function (reminder) {
	        var outdated = _4.remove(this._source, function (current) {
	            return reminder.id === current.id;
	        });
	        if (!_4.isEmpty(outdated)) {
	            this._source.push(reminder);
	        }
	    };
	    ReminderListDatastore.prototype.addReminder = function (reminder) {
	        this._source.push(reminder);
	    };
	    ReminderListDatastore.prototype.deleteReminder = function (reminderID) {
	        _4.remove(this._source, function (current) {
	            return reminderID === current.id;
	        });
	    };
	    return ReminderListDatastore;
	}());
	exports.ReminderListDatastore = ReminderListDatastore;
	angular.module('data-ng-personal-reminders').service('reminderListDatastore', ReminderListDatastore);


/***/ }),
/* 860 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var _4 = __webpack_require__(1);
	var ReminderListQuery = /** @class */ (function () {
	    function ReminderListQuery(reminderListDatastore, EventCategoryEnum) {
	        this.reminderListDatastore = reminderListDatastore;
	        this.EventCategoryEnum = EventCategoryEnum;
	        utility_ts_orm_1.ORM.registerQuery(this, reminderListDatastore);
	    }
	    ReminderListQuery.prototype.run = function () {
	        this._result = this.reminderListDatastore.read();
	        this.setUpRemindersFields();
	        return this;
	    };
	    Object.defineProperty(ReminderListQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    ReminderListQuery.prototype.setUpRemindersFields = function () {
	        var _this = this;
	        _4.forEach(this._result, function (reminder) {
	            var dateTime = moment(reminder.due_ts);
	            reminder.category = _this.EventCategoryEnum.PERSONAL_REMINDER;
	            reminder.isAllDayReminder = dateTime.hours() === 0 && dateTime.minutes() === 0;
	            reminder.show = true;
	        });
	    };
	    ReminderListQuery.prototype.removeReminder = function (reminder) {
	        _4.remove(this._result, function (currReminder) {
	            return reminder.id === currReminder.id;
	        });
	    };
	    return ReminderListQuery;
	}());
	exports.ReminderListQuery = ReminderListQuery;


/***/ }),
/* 861 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var _4 = __webpack_require__(1);
	var ReminderPriorityFeedQuery = /** @class */ (function () {
	    function ReminderPriorityFeedQuery(reminderListDatastore, ngTypeUtility, TaskStatusEnum) {
	        this.reminderListDatastore = reminderListDatastore;
	        this.ngTypeUtility = ngTypeUtility;
	        this.TaskStatusEnum = TaskStatusEnum;
	        utility_ts_orm_1.Query.registerQuery(this, this.reminderListDatastore);
	    }
	    ReminderPriorityFeedQuery.prototype.run = function () {
	        var _this = this;
	        var endOfToday = moment().endOf('day');
	        var remindersDueToday = _4.filter(this.reminderListDatastore.read(), function (reminder) {
	            if (_this.isAllDayReminder(reminder)) {
	                return (_this.TaskStatusEnum.isActive(_this.TaskStatusEnum.get(reminder.status)) &&
	                    moment(reminder.due_dt).isSame(moment(), 'day'));
	            }
	            return (_this.TaskStatusEnum.isActive(_this.TaskStatusEnum.get(reminder.status)) &&
	                moment(reminder.due_ts).isAfter(moment.now()) &&
	                moment(reminder.due_ts).isBefore(endOfToday));
	        });
	        this._count = remindersDueToday.length;
	        var isActive = remindersDueToday.length > 0;
	        var singleReminderDueToday = _4.first(remindersDueToday);
	        var text = remindersDueToday.length === 1
	            ? { title: singleReminderDueToday.title, subTitle: this.getReminderDateTime(singleReminderDueToday) }
	            : {
	                title: "You have " + remindersDueToday.length + " personal to-dos today",
	                subTitle: 'Check them out'
	            };
	        var action = remindersDueToday.length === 1
	            ? { state: 'my.todos.reminder', params: { personalTodoID: singleReminderDueToday.id } }
	            : { state: 'my.todos', params: { filterBy: 'reminders' } };
	        this._result = {
	            icon: { type: 'alarm_clock', theme: 'tertiary-3' },
	            text: text,
	            action: action,
	            isOverdue: false,
	            isActive: isActive
	        };
	        return this;
	    };
	    ReminderPriorityFeedQuery.prototype.getReminderDateTime = function (reminder) {
	        var dateTime = moment(reminder.due_dt + " " + reminder.due_tm);
	        var noTime = dateTime.hours() === 0 && dateTime.minutes() === 0;
	        var dueToday = moment().diff(dateTime, 'days') === 0;
	        if (dueToday && noTime) {
	            return 'Due today';
	        }
	        if (dueToday) {
	            return "Due today at " + dateTime.format('h:mm a');
	        }
	        if (noTime) {
	            return "Due on " + this.ngTypeUtility.time.getWeekDayMonthDay(dateTime);
	        }
	        return "Due on " + this.ngTypeUtility.time.getWeekDayMonthDay(dateTime) + " at " + dateTime.format('h:mm a');
	    };
	    ReminderPriorityFeedQuery.prototype.isAllDayReminder = function (reminder) {
	        var dateTime = moment(reminder.due_ts);
	        return dateTime.hours() === 0 && dateTime.minutes() === 0;
	    };
	    Object.defineProperty(ReminderPriorityFeedQuery.prototype, "count", {
	        get: function () {
	            return this._count;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(ReminderPriorityFeedQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return ReminderPriorityFeedQuery;
	}());
	exports.ReminderPriorityFeedQuery = ReminderPriorityFeedQuery;


/***/ }),
/* 862 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ReminderQuery = /** @class */ (function () {
	    function ReminderQuery(QueryMediator, reminderConfirmDatasource) {
	        this.reminderConfirmDatasource = reminderConfirmDatasource;
	        QueryMediator.registerQuery(this, reminderConfirmDatasource);
	    }
	    ReminderQuery.prototype.run = function () {
	        this._result = this.reminderConfirmDatasource.read();
	        if (!_4.isEmpty(this._result.description)) {
	            this._result.HTML_description = this._result.description.replace(/\n/g, '<br>');
	        }
	        return this;
	    };
	    Object.defineProperty(ReminderQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return ReminderQuery;
	}());
	exports.ReminderQuery = ReminderQuery;


/***/ }),
/* 863 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PersonalReminderService = /** @class */ (function () {
	    function PersonalReminderService(accountModel, ngTypeUtility, ngReminderQuery) {
	        this.accountModel = accountModel;
	        this.ngTypeUtility = ngTypeUtility;
	        this.ngReminderQuery = ngReminderQuery;
	        this.personalReminderData = {};
	        this.personalReminderData.isAllDayReminder = false;
	        this.isTitleValid = false;
	        // Initialize dates for modal and the modal itself
	        this.tempSelectedDay = this.personalReminderData.selectedDay;
	        this.tempSelectedTime = this.personalReminderData.selectedTime;
	    }
	    PersonalReminderService.prototype.setTitleAndValidate = function (titleText, isValid) {
	        this.personalReminderData.reminderTitle = titleText;
	        this.isTitleValid = isValid;
	    };
	    PersonalReminderService.prototype.toggleAllDaySwitch = function (currentState) {
	        this.personalReminderData.isAllDayReminder = currentState;
	        this.updateReminderDueDate();
	    };
	    PersonalReminderService.prototype.textSanitizerAndValidator = function (currentTitleText, maxTitleLength) {
	        if (currentTitleText.length > maxTitleLength) {
	            currentTitleText = currentTitleText.substring(0, maxTitleLength);
	        }
	        currentTitleText = this.ngTypeUtility.string.sanitizeString(currentTitleText);
	        currentTitleText = currentTitleText.trim();
	        var isValidTitleText = currentTitleText.length >= 1 && currentTitleText.length <= maxTitleLength;
	        this.setTitleAndValidate(currentTitleText, isValidTitleText);
	    };
	    PersonalReminderService.prototype.saveFinalizedDayAndTime = function () {
	        if (!_4.isEmpty(this.tempSelectedDay)) {
	            this.personalReminderData.selectedDay = this.tempSelectedDay;
	        }
	        if (!_4.isEmpty(this.tempSelectedTime)) {
	            this.personalReminderData.selectedTime = this.tempSelectedTime;
	        }
	        this.updateReminderDueDate();
	    };
	    PersonalReminderService.prototype.saveTempSelectedDayAndTime = function (selectedDay, selectedTime) {
	        if (!_4.isEmpty(selectedDay)) {
	            this.tempSelectedDay = selectedDay;
	        }
	        if (!_4.isEmpty(selectedTime)) {
	            this.tempSelectedTime = selectedTime;
	        }
	    };
	    PersonalReminderService.prototype.updateReminderDueDate = function () {
	        if (_4.isEmpty(this.personalReminderData.selectedDay)) {
	            return;
	        }
	        var selectedDateTimeString = this.personalReminderData.selectedDay.month + "\n        " + this.personalReminderData.selectedDay.displayDate + ",\n        " + this.personalReminderData.selectedDay.year;
	        if (!_4.isEmpty(this.personalReminderData.selectedTime) && !this.personalReminderData.isAllDayReminder) {
	            selectedDateTimeString = selectedDateTimeString + " " + this.personalReminderData.selectedTime.time;
	        }
	        this.personalReminderData.reminderDueDate = moment(selectedDateTimeString, 'MMM DD, YYYY HH:mmA').toISOString();
	    };
	    PersonalReminderService.prototype.isDateTimeCorrectlySet = function () {
	        if (this.personalReminderData.isAllDayReminder) {
	            return !_4.isEmpty(this.personalReminderData.selectedDay);
	        }
	        return !_4.isEmpty(this.personalReminderData.selectedDay) && !_4.isEmpty(this.personalReminderData.selectedTime);
	    };
	    PersonalReminderService.prototype.setReminderNotes = function (notesText) {
	        this.personalReminderData.reminderNotes = notesText;
	    };
	    PersonalReminderService.prototype.read = function () {
	        return this.personalReminderData;
	    };
	    PersonalReminderService.prototype.seperateTimeAndDate = function (momentObj) {
	        return {
	            due_dt: momentObj.format('YYYY-MM-DD'),
	            due_tm: momentObj.format('HH:mm:ss.SSSS')
	        };
	    };
	    PersonalReminderService.prototype.getReminderAPIValues = function () {
	        var seperatedTime = this.seperateTimeAndDate(moment(this.personalReminderData.reminderDueDate));
	        return {
	            title: this.personalReminderData.reminderTitle,
	            description: this.personalReminderData.reminderNotes || '',
	            due_dt: seperatedTime.due_dt,
	            due_tm: seperatedTime.due_tm,
	            status: 'ACTIVE'
	        };
	    };
	    PersonalReminderService.prototype.setExistingReminderData = function () {
	        var reminderData = this.ngReminderQuery.result;
	        this.personalReminderData.reminderID = reminderData.id || '';
	        this.personalReminderData.reminderTitle = reminderData.title;
	        this.personalReminderData.reminderNotes = reminderData.description;
	        this.personalReminderData.reminderDueDate = reminderData.due_ts;
	        this.isTitleValid = true;
	        var dateTime = moment(reminderData.due_ts);
	        this.personalReminderData.isAllDayReminder = dateTime.hours() === 0 && dateTime.minutes() === 0;
	        this.initializeSelectedDateAndTime(dateTime);
	    };
	    PersonalReminderService.prototype.initializeSelectedDateAndTime = function (dateTime) {
	        this.personalReminderData.selectedDay = {
	            date: dateTime,
	            displayDate: dateTime.format('DD'),
	            day: dateTime.format('ddd'),
	            month: dateTime.format('MMM'),
	            year: dateTime.format('YYYY'),
	            show: true,
	            day_week: dateTime.weekday()
	        };
	        this.personalReminderData.selectedTime = {
	            date: dateTime,
	            displayDate: dateTime.format('DD'),
	            day: dateTime.format('ddd'),
	            day_week: dateTime.weekday(),
	            time: dateTime.minutes(Math.ceil(dateTime.minute() / 15) * 15).format('hh:mm A'),
	            am: dateTime.format('A') === 'AM',
	            selected: true
	        };
	    };
	    PersonalReminderService.prototype.getReminderDefaultDate = function () {
	        var defaultDate = moment();
	        this.initializeSelectedDateAndTime(defaultDate);
	        this.updateReminderDueDate();
	        this.tempSelectedDay = this.personalReminderData.selectedDay;
	        this.tempSelectedTime = this.personalReminderData.selectedTime;
	        return defaultDate.format('MMM DD, YYYY') + " at " + defaultDate.format('hh:mm A');
	    };
	    PersonalReminderService.prototype.getDateTimeString = function (fromModal) {
	        if (!this.isDateTimeCorrectlySet()) {
	            return this.getReminderDefaultDate();
	        }
	        var day = fromModal && !_4.isEmpty(this.tempSelectedDay) ? this.tempSelectedDay : this.personalReminderData.selectedDay;
	        var time = fromModal && !_4.isEmpty(this.tempSelectedTime) ? this.tempSelectedTime : this.personalReminderData.selectedTime;
	        var date = day.month + "\n                    " + day.displayDate + ",\n                    " + day.year;
	        if (this.personalReminderData.isAllDayReminder) {
	            return date;
	        }
	        else {
	            return date + " at " + time.time;
	        }
	    };
	    PersonalReminderService.prototype.isModalDateTimeValid = function () {
	        if (this.personalReminderData.isAllDayReminder) {
	            return !_4.isEmpty(this.tempSelectedDay);
	        }
	        return !_4.isEmpty(this.tempSelectedDay) && !_4.isEmpty(this.tempSelectedTime);
	    };
	    PersonalReminderService.prototype.clear = function () {
	        this.personalReminderData = {};
	        this.isTitleValid = false;
	    };
	    return PersonalReminderService;
	}());
	exports.PersonalReminderService = PersonalReminderService;
	angular.module('data-ng-personal-reminders').service('personalReminderService', PersonalReminderService);


/***/ }),
/* 864 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	var _4 = __webpack_require__(1);
	var ReminderFilterServant = /** @class */ (function () {
	    function ReminderFilterServant(ngReminderListQuery, TaskStatusEnum) {
	        this.ngReminderListQuery = ngReminderListQuery;
	        this.TaskStatusEnum = TaskStatusEnum;
	        this.strategy = new utility_ts_strategy_1.StrategySafe({
	            allReminders: this.allReminders,
	            remindersForToday: this.remindersForToday,
	            upcomingReminders: this.upcomingReminders
	        });
	    }
	    Object.defineProperty(ReminderFilterServant.prototype, "filterStrategy", {
	        get: function () {
	            return this.strategy;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    ReminderFilterServant.prototype.allReminders = function () {
	        var _this = this;
	        var reminders = _4.filter(this.ngReminderListQuery.result, function (reminder) {
	            return _this.TaskStatusEnum.isActive(_this.TaskStatusEnum.get(reminder.status));
	        });
	        return _4.map(reminders, function (reminder) {
	            return {
	                task: reminder
	            };
	        });
	    };
	    ReminderFilterServant.prototype.remindersForToday = function () {
	        var _this = this;
	        var endofDay = moment().endOf('day');
	        var currentTime = moment();
	        var reminders = _4.filter(this.ngReminderListQuery.result, function (reminder) {
	            if (reminder.isAllDayReminder) {
	                return (_this.TaskStatusEnum.isActive(_this.TaskStatusEnum.get(reminder.status)) &&
	                    moment(reminder.due_dt).isSame(moment(), 'day'));
	            }
	            return (_this.TaskStatusEnum.isActive(_this.TaskStatusEnum.get(reminder.status)) &&
	                moment(reminder.due_ts || '').isBefore(endofDay) &&
	                moment(reminder.due_ts || '').isAfter(currentTime));
	        });
	        return _4.map(reminders, function (reminder) { return ({
	            task: reminder
	        }); });
	    };
	    ReminderFilterServant.prototype.upcomingReminders = function () {
	        var _this = this;
	        var endofDay = moment().endOf('day');
	        var reminders = _4.filter(this.ngReminderListQuery.result, function (reminder) {
	            return _this.TaskStatusEnum.isActive(_this.TaskStatusEnum.get(reminder.status)) &&
	                moment(reminder.due_ts || '').isAfter(endofDay);
	        });
	        return _4.map(reminders, function (reminder) { return ({
	            task: reminder
	        }); });
	    };
	    return ReminderFilterServant;
	}());
	exports.ReminderFilterServant = ReminderFilterServant;
	angular.module('data-ng-personal-reminders').service('ngReminderFilterServant', ReminderFilterServant);


/***/ }),
/* 865 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var StaffTodoListDatastore = /** @class */ (function () {
	    function StaffTodoListDatastore() {
	        this.initialize();
	    }
	    StaffTodoListDatastore.prototype.initialize = function () {
	        this._source = [];
	        return this;
	    };
	    StaffTodoListDatastore.prototype.write = function (staffTodoList) {
	        this._source = staffTodoList;
	        return this;
	    };
	    StaffTodoListDatastore.prototype.read = function () {
	        return this._source;
	    };
	    StaffTodoListDatastore.prototype.clear = function () {
	        this.initialize();
	    };
	    StaffTodoListDatastore.prototype.isEmpty = function () {
	        return _4.isEmpty(this._source);
	    };
	    StaffTodoListDatastore.prototype.report = function (fn) {
	        return fn(this._source);
	    };
	    StaffTodoListDatastore.prototype.updateStaffTodo = function (staffTodo) {
	        var outdated = _4.remove(this._source, function (current) {
	            return staffTodo.id === current.id;
	        });
	        if (!_4.isEmpty(outdated)) {
	            this._source.push(staffTodo);
	        }
	    };
	    return StaffTodoListDatastore;
	}());
	exports.StaffTodoListDatastore = StaffTodoListDatastore;
	angular.module('data-ng-staff-todos').service('staffTodoListDatastore', StaffTodoListDatastore);


/***/ }),
/* 866 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var _4 = __webpack_require__(1);
	var StaffTodoListQuery = /** @class */ (function () {
	    function StaffTodoListQuery(staffTodoListDatastore, EventCategoryEnum) {
	        this.staffTodoListDatastore = staffTodoListDatastore;
	        this.EventCategoryEnum = EventCategoryEnum;
	        utility_ts_orm_1.ORM.registerQuery(this, staffTodoListDatastore);
	    }
	    StaffTodoListQuery.prototype.run = function () {
	        this._result = this.staffTodoListDatastore.read();
	        this.setUpStaffTodoFields();
	        return this;
	    };
	    Object.defineProperty(StaffTodoListQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    StaffTodoListQuery.prototype.setUpStaffTodoFields = function () {
	        var _this = this;
	        _4.forEach(this._result, function (staffTodo) {
	            staffTodo.category = _this.EventCategoryEnum.STAFF_DRIVEN_TO_DO;
	            staffTodo.show = true;
	            staffTodo.status = 'ACTIVE';
	            staffTodo.due_date = moment(staffTodo.due_date).format();
	        });
	    };
	    return StaffTodoListQuery;
	}());
	exports.StaffTodoListQuery = StaffTodoListQuery;
	angular.module('data-ng-staff-todos').service('ngStaffTodoListQuery', StaffTodoListQuery);


/***/ }),
/* 867 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	var _4 = __webpack_require__(1);
	var StaffTodoFilterServant = /** @class */ (function () {
	    function StaffTodoFilterServant(ngStaffTodoListQuery) {
	        this.ngStaffTodoListQuery = ngStaffTodoListQuery;
	        this.strategy = new utility_ts_strategy_1.StrategySafe({
	            upcomingStaffTodos: this.upcomingStaffTodos,
	            staffTodosForToday: this.staffTodosForToday,
	            completedStaffTodos: this.completedStaffTodos,
	            overdueStaffTodos: this.overdueStaffTodos
	        });
	    }
	    Object.defineProperty(StaffTodoFilterServant.prototype, "filterStrategy", {
	        get: function () {
	            return this.strategy;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    StaffTodoFilterServant.prototype.upcomingStaffTodos = function () {
	        var todos = _4.filter(this.ngStaffTodoListQuery.result, function (todo) {
	            return _4.isEmpty(todo.cleared_date) && moment(todo.due_date || '').isAfter(moment(), 'day');
	        });
	        return _4.map(todos, function (todo) {
	            return { task: todo };
	        });
	    };
	    StaffTodoFilterServant.prototype.staffTodosForToday = function () {
	        var todos = _4.filter(this.ngStaffTodoListQuery.result, function (todo) {
	            return _4.isEmpty(todo.cleared_date) && moment(todo.due_date || '').isSame(moment(), 'day');
	        });
	        return _4.map(todos, function (todo) {
	            return { task: todo };
	        });
	    };
	    StaffTodoFilterServant.prototype.completedStaffTodos = function () {
	        var todos = _4.filter(this.ngStaffTodoListQuery.result, function (todo) {
	            return !_4.isEmpty(todo.cleared_date);
	        });
	        return _4.map(todos, function (todo) { return ({
	            task: todo
	        }); });
	    };
	    StaffTodoFilterServant.prototype.overdueStaffTodos = function () {
	        var todos = _4.filter(this.ngStaffTodoListQuery.result, function (todo) {
	            return _4.isEmpty(todo.cleared_date) && moment(todo.due_date || '').isBefore(moment(), 'day');
	        });
	        return _4.map(todos, function (todo) { return ({
	            task: todo
	        }); });
	    };
	    return StaffTodoFilterServant;
	}());
	exports.StaffTodoFilterServant = StaffTodoFilterServant;
	angular.module('data-ng-staff-todos').service('ngStaffTodoFilterServant', StaffTodoFilterServant);


/***/ }),
/* 868 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var StaffTodoService = /** @class */ (function () {
	    function StaffTodoService(loadStaffTodoCommand, staffTodoListDatastore) {
	        this.loadStaffTodoCommand = loadStaffTodoCommand;
	        this.staffTodoListDatastore = staffTodoListDatastore;
	    }
	    StaffTodoService.prototype.loadStaffTodos = function (dateRange) {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            var _this = this;
	            return tslib_1.__generator(this, function (_a) {
	                if (!_4.isEmpty(this.staffTodoListDatastore.read())) {
	                    return [2 /*return*/, this.staffTodoListDatastore.read()];
	                }
	                this.loadStaffTodoCommand(dateRange)
	                    .then(function () {
	                    return _this.staffTodoListDatastore.read();
	                })
	                    .catch(function () {
	                    console.warn('Unable to get staff to-dos');
	                    return {};
	                });
	                return [2 /*return*/, {}];
	            });
	        });
	    };
	    return StaffTodoService;
	}());
	exports.StaffTodoService = StaffTodoService;
	angular.module('data-ng-staff-todos').service('ngStaffTodoService', StaffTodoService);


/***/ }),
/* 869 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var validations_1 = __webpack_require__(2124);
	exports.nestedKeyLookUp = function (theObject, path, separator) {
	    if (separator === void 0) { separator = '.'; }
	    return path
	        .replace('[', separator)
	        .replace(']', '')
	        .split(separator)
	        .reduce(function (obj, property) { return obj[property]; }, theObject);
	};
	var Validator = /** @class */ (function () {
	    function Validator() {
	        this.__reportingPlatforms = new Set();
	    }
	    Validator.prototype.addReportingPlatform = function (fn) {
	        this.__reportingPlatforms.add(fn);
	    };
	    Validator.prototype.removeReportingPlatform = function (fn) {
	        this.__reportingPlatforms.delete(fn);
	    };
	    Object.defineProperty(Validator.prototype, "reportingPlatforms", {
	        get: function () {
	            return this.__reportingPlatforms;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Validator.prototype.performValidations = function (sourceDataObject, toObject) {
	        var validations = new validations_1.Validations();
	        var validationErrors = [];
	        var targetKeys = Object.keys(toObject);
	        var validSourceKeys = Object.keys(sourceDataObject).filter(function (sourceKey) { return targetKeys.includes(sourceKey); });
	        validSourceKeys.map(function (_sourceKey) {
	            var isSourceArray = sourceDataObject[_sourceKey] instanceof Array;
	            var values = isSourceArray ? sourceDataObject[_sourceKey] : [sourceDataObject[_sourceKey]];
	            values.forEach(function (value, index) {
	                var sourceKey = isSourceArray ? _sourceKey + "[" + index + "]" : _sourceKey;
	                if (!validations.validate(sourceDataObject, sourceKey, toObject[_sourceKey])) {
	                    validationErrors.push(validations.getErrorDetails(sourceDataObject, sourceKey, toObject[_sourceKey]));
	                }
	            });
	        });
	        return validationErrors;
	    };
	    Validator.prototype.validate = function (records, toObject, nameOfTheValidation) {
	        var _this = this;
	        return new Promise(function (resolve, reject) {
	            try {
	                var recordList = records instanceof Array ? records : [records];
	                var errors_1 = recordList.reduce(function (errors, entry, index, _records) {
	                    var entryErrors = _this.performValidations(entry, toObject);
	                    if (entryErrors.length > 0) {
	                        errors = errors.concat(entryErrors);
	                    }
	                    return errors;
	                }, []);
	                if (errors_1.length) {
	                    _this.__reportingPlatforms.forEach(function (fn) { return fn(errors_1, nameOfTheValidation); });
	                }
	                resolve(errors_1);
	            }
	            catch (e) {
	                console.warn('Validation library failed');
	                _this.__reportingPlatforms.forEach(function (fn) { return fn(e, nameOfTheValidation); });
	                reject(e);
	            }
	        });
	    };
	    return Validator;
	}());
	exports.Validator = Validator;


/***/ }),
/* 870 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	angular.module('ng-screen-query', []);
	__webpack_require__(871);
	__webpack_require__(2125);
	__webpack_require__(2126);
	__webpack_require__(873);
	__webpack_require__(872);
	tslib_1.__exportStar(__webpack_require__(873), exports);
	tslib_1.__exportStar(__webpack_require__(872), exports);
	tslib_1.__exportStar(__webpack_require__(871), exports);
	exports.default = 'ng-screen-query';


/***/ }),
/* 871 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var ScreenDeviceQuery = /** @class */ (function () {
	    function ScreenDeviceQuery(ngScreenDeviceModel) {
	        this.ngScreenDeviceModel = ngScreenDeviceModel;
	        utility_ts_orm_1.Query.registerQuery(this, ngScreenDeviceModel);
	    }
	    ScreenDeviceQuery.prototype.run = function () {
	        var currentScreenDevice = this.ngScreenDeviceModel.read().screen_device;
	        this._result = {
	            screenDevice: currentScreenDevice,
	            isScreenDesktop: currentScreenDevice === 'desktop',
	            isScreenMobile: currentScreenDevice === 'mobile'
	        };
	        return this;
	    };
	    Object.defineProperty(ScreenDeviceQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return ScreenDeviceQuery;
	}());
	exports.ScreenDeviceQuery = ScreenDeviceQuery;
	angular.module('ng-screen-query').service('ngScreenDeviceQuery', ScreenDeviceQuery);


/***/ }),
/* 872 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ScreenDeviceSubscriptionServant = /** @class */ (function () {
	    function ScreenDeviceSubscriptionServant(updateScreenDeviceCommand) {
	        var _this = this;
	        this.updateScreenDeviceCommand = updateScreenDeviceCommand;
	        window['HIP'].factory.queryOne('yi-layout-screen-query').instance.subscribe({
	            mediaDeviceHook: function (device) {
	                _this.updateScreenDeviceCommand(device);
	            }
	        });
	    }
	    return ScreenDeviceSubscriptionServant;
	}());
	exports.ScreenDeviceSubscriptionServant = ScreenDeviceSubscriptionServant;
	angular.module('ng-screen-query').service('ngScreenDeviceSubscriptionServant', ScreenDeviceSubscriptionServant);


/***/ }),
/* 873 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ScreenQueryServant = /** @class */ (function () {
	    function ScreenQueryServant() {
	        this.screenQueryInstance = window['HIP'].factory.queryOne('yi-layout-screen-query').instance;
	    }
	    ScreenQueryServant.prototype.isScreenDesktop = function () {
	        if (!this.screenQueryInstance || !this.screenQueryInstance.isDesktop) {
	            return true;
	        }
	        return this.screenQueryInstance.isDesktop();
	    };
	    ScreenQueryServant.prototype.isScreenMobile = function () {
	        if (!this.screenQueryInstance || !this.screenQueryInstance.isMobile) {
	            return false;
	        }
	        return this.screenQueryInstance.isMobile();
	    };
	    return ScreenQueryServant;
	}());
	exports.ScreenQueryServant = ScreenQueryServant;
	angular.module('ng-screen-query').service('ngScreenQueryServant', ScreenQueryServant);


/***/ }),
/* 874 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var app_content_1 = __webpack_require__(2127);
	angular.module('ui-ng-app-content', []).component('appContent', new app_content_1.AppContentComponent());


/***/ }),
/* 875 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var CalendarController = /** @class */ (function () {
	    function CalendarController(loadTimesCommand, resetTimesStoreCommand, getDayEnums, ngUnlockedTimeQuery, ngPhxCalendarConfiguration) {
	        this.loadTimesCommand = loadTimesCommand;
	        this.resetTimesStoreCommand = resetTimesStoreCommand;
	        this.getDayEnums = getDayEnums;
	        this.ngUnlockedTimeQuery = ngUnlockedTimeQuery;
	        this.ngPhxCalendarConfiguration = ngPhxCalendarConfiguration;
	    }
	    CalendarController.prototype.$onChanges = function (changes) {
	        if (!_.isUndefined(changes.ngModel) &&
	            !angular.equals(changes.ngModel.previousValue, changes.ngModel.currentValue)) {
	            this.resetTimesStoreCommand();
	            this.loadTimesCommand(changes.ngModel.currentValue);
	            this.onTimesLoaded();
	        }
	        if (changes.hourBegin && !angular.equals(changes.hourBegin.previousValue, changes.hourBegin.currentValue)) {
	            this.ngPhxCalendarConfiguration.hourBegin = this.hourBegin;
	        }
	        if (changes.hourEnd && !angular.equals(changes.hourEnd.previousValue, changes.hourEnd.currentValue)) {
	            this.ngPhxCalendarConfiguration.hourEnd = this.hourEnd;
	        }
	        if (changes.onSaveTime && !angular.equals(changes.onSaveTime.previousValue, changes.onSaveTime.currentValue)) {
	            this.ngPhxCalendarConfiguration.save = this.onSaveTime;
	        }
	        if (changes.onDeleteTime &&
	            !angular.equals(changes.onDeleteTime.previousValue, changes.onDeleteTime.currentValue)) {
	            this.ngPhxCalendarConfiguration.delete = this.onDeleteTime;
	        }
	        if (changes.onEditTime && !angular.equals(changes.onEditTime.previousValue, changes.onEditTime.currentValue)) {
	            this.ngPhxCalendarConfiguration.edit = this.onEditTime;
	        }
	        if (changes.includeWeekends &&
	            !angular.equals(changes.includeWeekends.previousValue, changes.includeWeekends.currentValue)) {
	            this.enums = this.getDayEnums(this.includeWeekends, this.microheaders);
	        }
	        if (changes.microheaders &&
	            !angular.equals(changes.microheaders.previousValue, changes.microheaders.currentValue)) {
	            this.enums = this.getDayEnums(this.includeWeekends, this.microheaders);
	        }
	        if (changes.showListView &&
	            !angular.equals(changes.showListView.previousValue, changes.showListView.currentValue)) {
	            this.showListView = _.isUndefined(this.showListView) ? false : this.showListView;
	        }
	    };
	    CalendarController.prototype.$onInit = function () {
	        // Q: Why was this called in old code? Calling this make two instances of each busy times.
	        // this.loadTimesCommand(this.ngModel);
	        this.ngPhxCalendarConfiguration.hourBegin = this.hourBegin;
	        this.ngPhxCalendarConfiguration.hourEnd = this.hourEnd;
	        this.ngPhxCalendarConfiguration.save = this.onSaveTime;
	        this.ngPhxCalendarConfiguration.delete = this.onDeleteTime;
	        this.ngPhxCalendarConfiguration.edit = this.onEditTime;
	        this.enums = this.getDayEnums(this.includeWeekends, this.microheaders);
	        this.showListView = _.isUndefined(this.showListView) ? false : this.showListView;
	    };
	    return CalendarController;
	}());
	exports.CalendarController = CalendarController;
	angular
	    .module('ui-ng-calendar')
	    .controller('phxCalendarController', CalendarController)
	    .constant('phxCalendarDelegateConfiguration', function () {
	    return;
	})
	    .component('phxCalendar', {
	    bindings: {
	        ngModel: '<',
	        onSaveTime: '&',
	        onDeleteTime: '&',
	        onEditTime: '&',
	        onTimesLoaded: '&',
	        hourBegin: '@',
	        hourEnd: '@',
	        showListView: '<',
	        prefsModeActive: '<',
	        includeWeekends: '@',
	        microheaders: '@',
	        mode: '<'
	    },
	    templateUrl: 'ui-ng-calendar/src/component/calendar.html',
	    controller: 'phxCalendarController'
	});


/***/ }),
/* 876 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PhxCalendarConfiguration = /** @class */ (function () {
	    function PhxCalendarConfiguration() {
	    }
	    return PhxCalendarConfiguration;
	}());
	exports.PhxCalendarConfiguration = PhxCalendarConfiguration;
	angular.module('ui-ng-calendar').factory('ngPhxCalendarConfiguration', function () {
	    return new PhxCalendarConfiguration();
	});


/***/ }),
/* 877 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var TimeOccurrenceDataSource = /** @class */ (function () {
	    function TimeOccurrenceDataSource(Interface, TimeOccurrenceDTD, TimeOccurrenceBuilder, ngTimeOccurrenceEngine, ngTimeOccurrenceServant, timeConfigValidator) {
	        this.Interface = Interface;
	        this.TimeOccurrenceDTD = TimeOccurrenceDTD;
	        this.TimeOccurrenceBuilder = TimeOccurrenceBuilder;
	        this.ngTimeOccurrenceEngine = ngTimeOccurrenceEngine;
	        this.ngTimeOccurrenceServant = ngTimeOccurrenceServant;
	        this.timeConfigValidator = timeConfigValidator;
	        this.store = [];
	        this.memento = [];
	        this.saveValidators = [];
	        this.workValidators = [];
	        this.isInTransaction = false;
	    }
	    TimeOccurrenceDataSource.prototype.report = function (reportFn) {
	        return reportFn(this.store);
	    };
	    TimeOccurrenceDataSource.prototype.write = function (store) {
	        return this;
	    };
	    TimeOccurrenceDataSource.prototype.initialize = function () {
	        return this;
	    };
	    TimeOccurrenceDataSource.prototype.read = function () {
	        return this.store;
	    };
	    TimeOccurrenceDataSource.prototype.startTransaction = function (validators) {
	        this.saveValidators = [this.timeConfigValidator];
	        this.addWorkValidators(validators);
	        this.isInTransaction = true;
	        this.memento = _.clone(this.store);
	    };
	    TimeOccurrenceDataSource.prototype.endTransaction = function (validators) {
	        this.workValidators = [];
	        this.addSaveValidators(validators);
	        if (!this.validate(this.saveValidators)) {
	            this.revert();
	        }
	        this.isInTransaction = false;
	    };
	    TimeOccurrenceDataSource.prototype.addWorkValidators = function (validators) {
	        if (!_.isUndefined(validators)) {
	            this.workValidators = this.workValidators.concat(validators);
	        }
	    };
	    TimeOccurrenceDataSource.prototype.addSaveValidators = function (validators) {
	        if (!_.isUndefined(validators)) {
	            this.saveValidators = this.saveValidators.concat(validators);
	        }
	    };
	    TimeOccurrenceDataSource.prototype.validate = function (validators) {
	        var _this = this;
	        return _.reduceRight(validators, function (result, validator) {
	            var validation = validator(_this.store);
	            if (validation.isValid && _.isFunction(validation.corrector)) {
	                _this.store = validation.corrector(_this.store);
	            }
	            return result && validation.isValid;
	        }, true);
	    };
	    TimeOccurrenceDataSource.prototype.revert = function () {
	        this.store = _.clone(this.memento);
	    };
	    TimeOccurrenceDataSource.prototype.addTime = function (timeOccurrence, index) {
	        if (_.isUndefined(index)) {
	            this.store.push(timeOccurrence);
	        }
	        else {
	            this.store.splice(index, 0, timeOccurrence);
	        }
	        if (!this.validate(this.workValidators)) {
	            this.revert();
	        }
	    };
	    TimeOccurrenceDataSource.prototype.deleteTime = function (timeOccurrence) {
	        _.remove(this.store, function (timeBlock) { return timeBlock.trackingId === timeOccurrence.trackingId; });
	        if (!this.validate(this.workValidators)) {
	            this.revert();
	            return;
	        }
	    };
	    TimeOccurrenceDataSource.prototype.buildTime = function (rawTimeOccurrence) {
	        return new this.TimeOccurrenceBuilder(rawTimeOccurrence);
	    };
	    TimeOccurrenceDataSource.prototype.buildTimes = function (rawTimeOccurrences) {
	        var _this = this;
	        return _.map(rawTimeOccurrences, function (rawTimeOccurrence) { return _this.buildTime(rawTimeOccurrence); });
	    };
	    TimeOccurrenceDataSource.prototype.serializeTime = function (timeOccurrence) {
	        var timeOccurrenceSource = {
	            appId: undefined,
	            day_of_week: timeOccurrence.day._ordinal,
	            from_tm: moment(timeOccurrence.from).format('HH:mm:ss'),
	            to_tm: moment(timeOccurrence.to).format('HH:mm:ss'),
	            repeats_every: timeOccurrence.repeats_every,
	            trackingId: timeOccurrence.trackingId,
	            beginMinutes: timeOccurrence.beginMinutes,
	            endMinutes: timeOccurrence.endMinutes,
	            bkgColorClass: timeOccurrence.bkgColorClass,
	            content: timeOccurrence.content,
	            group: timeOccurrence.group,
	            type: timeOccurrence.type,
	            isLocked: timeOccurrence.isLocked,
	            isWarning: timeOccurrence.isWarning,
	            isPreview: timeOccurrence.isPreview,
	            isWaitlisted: timeOccurrence.isWaitlisted,
	            isRegistered: timeOccurrence.isRegistered,
	            icons: timeOccurrence.icons,
	            hover: timeOccurrence.hover
	        };
	        return timeOccurrenceSource;
	        // return this.Interface.serialize(this.TimeOccurrenceDTD, timeOccurrence);
	        /*
	        appId:undefined
	        beginMinutes:0
	        bkgColorClass:""
	        content:""
	        day_of_week:2
	        endMinutes:0
	        from_tm:"19:0:0"
	        group:""
	        hover:Object
	        icons:Array(0)
	        id:null
	        isLocked:false
	        isPreview:false
	        isRegistered:false
	        isWaitlisted:false
	        isWarning:false
	        repeats_every:1
	        to_tm:"19:15:0"
	        trackingId:"258"
	        type:""
	        */
	    };
	    TimeOccurrenceDataSource.prototype.serializeTimes = function (timeOccurrences) {
	        var _this = this;
	        return _.map(timeOccurrences, function (timeOccurrence) { return _this.serializeTime(timeOccurrence); });
	    };
	    return TimeOccurrenceDataSource;
	}());
	exports.TimeOccurrenceDataSource = TimeOccurrenceDataSource;
	angular
	    .module('ui-ng-calendar')
	    .factory('ngTimeOccurrenceDataSource', function (Interface, TimeOccurrenceDTD, TimeOccurrenceBuilder, ngTimeOccurrenceEngine, ngTimeOccurrenceServant, timeConfigValidator) {
	    return new TimeOccurrenceDataSource(Interface, TimeOccurrenceDTD, TimeOccurrenceBuilder, ngTimeOccurrenceEngine, ngTimeOccurrenceServant, timeConfigValidator);
	});


/***/ }),
/* 878 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var CalendarTimeInputDelegate = /** @class */ (function () {
	    function CalendarTimeInputDelegate(DelegateController, calendarTimeInputDelegateConstant) {
	        DelegateController(this, calendarTimeInputDelegateConstant);
	    }
	    return CalendarTimeInputDelegate;
	}());
	var CalendarTimeInputController = /** @class */ (function () {
	    function CalendarTimeInputController($scope) {
	        var _this = this;
	        this.$scope = $scope;
	        this.saveValidTime = function () {
	            _this.lastValidTime.hours = _this.models.hours;
	            _this.lastValidTime.minutes = _this.models.minutes;
	        };
	        this.revertTime = function () {
	            _this.models.hours = _this.lastValidTime.hours;
	            _this.models.minutes = _this.lastValidTime.minutes;
	        };
	        this.getTimeChangeParams = function () {
	            var getTimeUnitString = function (timeUnit) { return (timeUnit > 9 ? timeUnit.toString() : "0" + timeUnit.toString()); };
	            var updatedTimeString = getTimeUnitString(_this.models.hours) + ":" + getTimeUnitString(_this.models.minutes);
	            return {
	                originalTime: _this.$scope.timeOccurrence,
	                updatedTimeString: updatedTimeString,
	                timeProperty: _this.$scope.timeProperty
	            };
	        };
	        this.models = {
	            hours: 0,
	            minutes: 0,
	            displayHours: 0,
	            displayMinutes: 0,
	            displayPeriod: 'AM'
	        };
	        this.previousTime = {};
	        this.lastValidTime = {
	            hours: 0,
	            minutes: 0
	        };
	        if (this.$scope.startBlank) {
	            this.isStartBlank = true;
	        }
	        this.$scope.$watch('ngModel', function (newVal, oldVal) {
	            if (!moment(newVal).isSame(_this.previousTime)) {
	                _this.previousTime = newVal;
	                _this.$scope.setTime(newVal, _this);
	            }
	        });
	    }
	    CalendarTimeInputController.prototype.updatedModel = function () {
	        if (_.isUndefined(this.$scope.ngModel)) {
	            return;
	        }
	        this.displayHours();
	        this.displayMinutes();
	        this.displayPeriod();
	    };
	    CalendarTimeInputController.prototype.changedModel = function () {
	        if (this.isValidTime() && _.isFunction(this.$scope.onChanged)) {
	            this.saveValidTime();
	            this.$scope.onChanged({ timeParams: this.getTimeChangeParams() });
	        }
	        else {
	            this.revertTime();
	        }
	        this.updatedModel();
	    };
	    CalendarTimeInputController.prototype.isValidTime = function () {
	        var _this = this;
	        if (_.isBoolean(this.$scope.validate) && this.$scope.validate === false) {
	            return true;
	        }
	        var isValidRange = this.models.hours >= this.$scope.hourBegin && this.models.hours <= this.$scope.hourEnd;
	        var checkIfValidTimePair = function () {
	            var isValidTimePair = false;
	            var toSimpleMilitaryTime = function (timeString) {
	                var militaryTimeNumber = timeString.slice(0, -2);
	                militaryTimeNumber = militaryTimeNumber.replace(/\:/g, '');
	                return parseInt(militaryTimeNumber, 10);
	            };
	            if (!_.isEmpty(_this.$scope.timeOccurrence)) {
	                var timeOccurrenceToTime = toSimpleMilitaryTime(_this.$scope.timeOccurrence.toInput);
	                var comparisonTimeModel = _this.models.hours * 100 + _this.models.minutes;
	                if (_this.$scope.timeProperty === 'from_tm') {
	                    isValidTimePair = comparisonTimeModel < timeOccurrenceToTime;
	                }
	                else {
	                    isValidTimePair = comparisonTimeModel > timeOccurrenceToTime;
	                }
	            }
	            return isValidTimePair;
	        };
	        var isValidTimePair = checkIfValidTimePair();
	        return isValidRange;
	    };
	    CalendarTimeInputController.prototype.switchPeriod = function () {
	        this.models.hours = this.models.hours >= 12 ? this.models.hours - 12 : this.models.hours + 12;
	        this.changedModel();
	    };
	    CalendarTimeInputController.prototype.displayHours = function () {
	        var hoursToDisplay = this.models.hours;
	        if (this.models.hours > 12) {
	            hoursToDisplay = this.models.hours - 12;
	        }
	        if (hoursToDisplay === 0) {
	            hoursToDisplay = 12;
	        }
	        this.models.displayHours = hoursToDisplay;
	        return hoursToDisplay;
	    };
	    CalendarTimeInputController.prototype.displayMinutes = function () {
	        this.models.displayMinutes = this.models.minutes > 9 ? this.models.minutes : "0" + this.models.minutes;
	        return this.models.displayMinutes;
	    };
	    CalendarTimeInputController.prototype.displayPeriod = function () {
	        this.models.displayPeriod = this.models.hours >= 12 ? 'PM' : 'AM';
	        return this.models.displayPeriod;
	    };
	    CalendarTimeInputController.prototype.onChangeHours = function (HH) {
	        var hours = parseInt(HH, 10);
	        if (_.isNumber(hours) && !_.isNaN(hours) && hours < 25) {
	            this.models.hours = hours % 12;
	            if (this.models.displayPeriod === 'PM') {
	                this.models.hours += 12;
	            }
	        }
	        this.changedModel();
	    };
	    CalendarTimeInputController.prototype.onChangeMinutes = function (MM) {
	        var minutes = parseInt(MM, 10);
	        if (_.isNumber(minutes) && !_.isNaN(minutes) && minutes < 61) {
	            this.models.minutes = minutes % 60;
	        }
	        this.changedModel();
	    };
	    CalendarTimeInputController.prototype.onChangePeriod = function (period) {
	        if (!period) {
	            period = this.displayPeriod();
	        }
	        period = period.toUpperCase();
	        if (!(period === 'AM' || period === 'PM')) {
	            period = this.displayPeriod();
	        }
	        if (period === 'AM' && this.models.hours >= 12) {
	            this.models.hours -= 12;
	        }
	        else if (period === 'PM' && this.models.hours < 12) {
	            this.models.hours += 12;
	        }
	        this.changedModel();
	    };
	    CalendarTimeInputController.prototype.onFocus = function () {
	        this.isStartBlank = false;
	    };
	    return CalendarTimeInputController;
	}());
	exports.CalendarTimeInputController = CalendarTimeInputController;
	angular
	    .module('ui-ng-calendar')
	    .controller('calendarTimeInputController', CalendarTimeInputController)
	    .constant('calendarTimeInputDelegateConstant', {
	    uniqueComponent: 'calendar-time-input',
	    vocabulary: {
	        setTime: function setTime_calendarTimeInput(scope, element, attrs, event, time, context) {
	            var newTime = moment(time);
	            context.models.hours = newTime.hour();
	            context.models.minutes = newTime.minutes();
	            context.saveValidTime();
	            context.updatedModel();
	        }
	    }
	})
	    .directive('calendarTimeInput', function calendarTimeInput(DelegateResponder, calendarTimeInputDelegateConstant) {
	    return {
	        restrict: 'E',
	        replace: false,
	        require: '?ngModel',
	        templateUrl: 'ui-ng-calendar/src/directives/calendar_time_input/calendar_time_input.html',
	        controller: 'calendarTimeInputController',
	        controllerAs: '$ctrl',
	        scope: {
	            ngModel: '=?',
	            timeOccurrence: '=',
	            timeProperty: '@',
	            hourBegin: '=?',
	            hourEnd: '=?',
	            validate: '=?',
	            startBlank: '=?',
	            onChanged: '&?'
	        },
	        compile: function calendarTimeInputCompile(element, attrs) {
	            return DelegateResponder(calendarTimeInputDelegateConstant, function (scope, element, attrs) { });
	        }
	    };
	})
	    .service('calendarTimeInputDelegate', CalendarTimeInputDelegate);


/***/ }),
/* 879 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var TimeOccurrenceEngine = /** @class */ (function () {
	    function TimeOccurrenceEngine(TimeOccurrenceBuilder, ngTimeOccurrenceServant, ngPhxCalendarConfiguration) {
	        this.TimeOccurrenceBuilder = TimeOccurrenceBuilder;
	        this.ngTimeOccurrenceServant = ngTimeOccurrenceServant;
	        this.ngPhxCalendarConfiguration = ngPhxCalendarConfiguration;
	    }
	    // snapClosestTimeBoundary(timeBlock: ITimeOccurrenceDatatype, boundaryType: string): ITimeOccurrenceDatatype {
	    //   // May not have to use this method
	    //   let boundary = parseInt(boundaryType) || 15;
	    //   let toMinutes = timeBlock.to.minutes();
	    //   let fromMinutes = timeBlock.from.minutes();
	    //   timeBlock.to.minutes(Math.round(toMinutes/boundary)*boundary);
	    //   timeBlock.from.minutes(Math.round(fromMinutes/boundary)*boundary);
	    //   let rawTimeOccurrence = this.Interface.serialize(this.TimeOccurrenceDTD, timeBlock);
	    //   // FIXME engine should not call datasource
	    //   return this.ngTimeOccurrenceDataSource.buildTime(rawTimeOccurrence);
	    // }
	    TimeOccurrenceEngine.prototype.areTimesFullyOverlapping = function (timeBlock1, timeBlock2) {
	        return (timeBlock1.day.isEqual(timeBlock2.day) &&
	            timeBlock1.from.isSame(timeBlock2.from) &&
	            timeBlock1.to.isSame(timeBlock2.to));
	    };
	    TimeOccurrenceEngine.prototype.isTimeWithinTime = function (timeBlock1, timeBlock2) {
	        return (timeBlock1.day.isEqual(timeBlock2.day) &&
	            timeBlock1.from.isSameOrAfter(timeBlock2.from) &&
	            timeBlock1.to.isSameOrBefore(timeBlock2.to));
	    };
	    TimeOccurrenceEngine.prototype.diffTimes = function (timeBlock1, timeBlock2) {
	        return undefined;
	    };
	    TimeOccurrenceEngine.prototype.getTimesDistance = function (timeBlock1, timeBlock2) {
	        return undefined;
	    };
	    TimeOccurrenceEngine.prototype.areTimesPartiallyOverlapping = function (timeBlock1, timeBlock2) {
	        return (timeBlock1.day === timeBlock2.day &&
	            timeBlock1.from.isBefore(timeBlock2.to) &&
	            timeBlock1.to.isAfter(timeBlock2.from));
	    };
	    TimeOccurrenceEngine.prototype.findEarlierTime = function (timeBlock1, timeBlock2) {
	        return timeBlock1.from.isSameOrBefore(timeBlock2.from) ? timeBlock1 : timeBlock2;
	    };
	    TimeOccurrenceEngine.prototype.findLaterTime = function (timeBlock1, timeBlock2) {
	        return timeBlock1.to.isSameOrAfter(timeBlock2.to) ? timeBlock1 : timeBlock2;
	    };
	    TimeOccurrenceEngine.prototype.isTimeEarlier = function (timeBlock1, timeBlock2) {
	        // is timeBlock1 earlier than timeBlock2
	        return this.findEarlierTime(timeBlock1, timeBlock2) === timeBlock1;
	    };
	    TimeOccurrenceEngine.prototype.isTimeLater = function (timeBlock1, timeBlock2) {
	        // is timeBlock1 later than timeBlock2
	        return this.findLaterTime(timeBlock1, timeBlock2) === timeBlock1;
	    };
	    TimeOccurrenceEngine.prototype.getTimeStartOrEnd = function (timeBlock1, timeBlock2) {
	        // see if timeBlock1 is at the start or end of timeBlock2; the threshold is in MinimumTimeBoundaryDifference
	        if (Math.abs(timeBlock1.from.diff(timeBlock2.from)) < 480001 /* MinimumTimeBoundaryDifference */) {
	            return 0 /* Start */;
	        }
	        else if (Math.abs(timeBlock1.to.diff(timeBlock2.to)) < 480001 /* MinimumTimeBoundaryDifference */) {
	            return 1 /* End */;
	        }
	        else {
	            return undefined;
	        }
	    };
	    TimeOccurrenceEngine.prototype.createMergedTime = function (timeBlock1, timeBlock2) {
	        var earlierTime = this.findEarlierTime(timeBlock1, timeBlock2);
	        var laterTime = this.findLaterTime(timeBlock1, timeBlock2);
	        var rawMergedTimeObj = {
	            day_of_week: timeBlock1.day.ordinal,
	            from_tm: earlierTime.from.format('HH:mm:ss'),
	            to_tm: laterTime.to.format('HH:mm:ss')
	        };
	        // mergedTime = this.ngTimeOccurrenceDataSource.buildTime(rawMergedTimeObj);
	        return new this.TimeOccurrenceBuilder(rawMergedTimeObj);
	    };
	    // Given a range of days (DayOfWeekEnum ordinal values) and a range of times, generate all possible one-hour
	    // TimeOccurrence blocks.
	    TimeOccurrenceEngine.prototype.createAllPossibleHourTimeOccurrencesInRange = function (dayRange, timeRange) {
	        var _this = this;
	        var timeOccurrences = [];
	        _.forEach(dayRange, function (dayValue) {
	            _.forEach(timeRange, function (timeValue) {
	                var rawTimeOccurrenceObj = {
	                    day_of_week: dayValue,
	                    from_tm: timeValue + ':00:00',
	                    to_tm: timeValue + 2 /* DurationHours */ + ':00:00'
	                };
	                // timeOccurrences.push(this.ngTimeOccurrenceDataSource.buildTime(rawTimeOccurrenceObj));
	                timeOccurrences.push(new _this.TimeOccurrenceBuilder(rawTimeOccurrenceObj));
	            });
	        });
	        return timeOccurrences;
	    };
	    // Given an array of TimeOccurrence DTO's, find the first hour that doesn't overlap with any in the given array.
	    TimeOccurrenceEngine.prototype.findEmptyHourInTimes = function (allExistingTimeOccurrences) {
	        var _this = this;
	        var hourBegin = parseInt(this.ngPhxCalendarConfiguration.hourBegin, 10);
	        var hourEnd = parseInt(this.ngPhxCalendarConfiguration.hourEnd, 10);
	        var allPotentialTimeOccurrence = this.createAllPossibleHourTimeOccurrencesInRange(_.range(2 /* StartDay */, 7 /* EndDay */), _.range(hourBegin, hourEnd));
	        var emptyHour = _.find(allPotentialTimeOccurrence, function (potentialTime) {
	            return !_this.doesTimeOverlapWithTimes(potentialTime, allExistingTimeOccurrences);
	        });
	        return !!emptyHour ? emptyHour : undefined;
	    };
	    TimeOccurrenceEngine.prototype.createNewHourTimeOccurrence = function (allExistingTimeOccurrences, potentialTime) {
	        var _this = this;
	        var timeOccurrences = [];
	        var rawTimeOccurrenceObj = {
	            day_of_week: potentialTime.day_of_week,
	            from_tm: potentialTime.from_tm + ':00',
	            to_tm: potentialTime.to_tm + ':00'
	        };
	        timeOccurrences.push(new this.TimeOccurrenceBuilder(rawTimeOccurrenceObj));
	        var newTimeOccurrence = _.find(timeOccurrences, function (_potentialTime) {
	            return !_this.doesTimeOverlapWithTimes(_potentialTime, allExistingTimeOccurrences);
	        });
	        return !!newTimeOccurrence ? newTimeOccurrence : undefined;
	    };
	    TimeOccurrenceEngine.prototype.createDefaultTimeOccurrence = function () {
	        var timeOccurrences = [];
	        var rawTimeOccurrenceObj = {
	            day_of_week: 2 /* StartDay */,
	            from_tm: '00:00:00',
	            to_tm: '00:00:00'
	        };
	        timeOccurrences.push(new this.TimeOccurrenceBuilder(rawTimeOccurrenceObj));
	        var newTimeOccurrence = new this.TimeOccurrenceBuilder(rawTimeOccurrenceObj);
	        return newTimeOccurrence;
	    };
	    // Given a TimeOccurrence and an array of TimeOccurrences, see if the target block overlaps with any in the array.
	    TimeOccurrenceEngine.prototype.doesTimeOverlapWithTimes = function (targetTb, allTimes) {
	        var _this = this;
	        var result = _.map(allTimes, function (tb) {
	            return _this.areTimesPartiallyOverlapping(targetTb, tb) && targetTb.trackingId !== tb.trackingId;
	        });
	        return _.some(result);
	    };
	    TimeOccurrenceEngine.prototype.findOverlappingTimes = function (targetTb, allTimes) {
	        var _this = this;
	        return _.filter(allTimes, function (timeOccurrence) {
	            return _this.areTimesPartiallyOverlapping(targetTb, timeOccurrence);
	        });
	    };
	    TimeOccurrenceEngine.prototype.createSplitTimes = function (timeToSplit, overlappingTimes) {
	        var _this = this;
	        var splitTimes = [];
	        if (_.isEmpty(_.map(overlappingTimes, _.curry(this.areTimesPartiallyOverlapping)(timeToSplit)))) {
	            return splitTimes.concat(timeToSplit);
	        }
	        overlappingTimes = _.sortBy(overlappingTimes, 'fromInput');
	        var workTime = _.cloneDeep(timeToSplit);
	        workTime.from = timeToSplit.from.clone();
	        var firstTime = _.first(overlappingTimes);
	        var lastTime = _.last(overlappingTimes);
	        if (this.isTimeEarlier(firstTime, timeToSplit)) {
	            overlappingTimes = _.tail(overlappingTimes);
	            workTime.from = firstTime.to;
	        }
	        _.each(overlappingTimes, function (overlappingTime) {
	            workTime.to = overlappingTime.from;
	            splitTimes.push(workTime);
	            workTime = _.cloneDeep(timeToSplit);
	            workTime.from = overlappingTime.to;
	        });
	        if (this.isTimeLater(timeToSplit, lastTime)) {
	            workTime.to = timeToSplit.to;
	            splitTimes.push(workTime);
	        }
	        var noAdditionalProperties = {};
	        return _.map(splitTimes, function (time) {
	            return _this.ngTimeOccurrenceServant.copyTimeOccurrenceWithProperties(time, noAdditionalProperties);
	        });
	    };
	    return TimeOccurrenceEngine;
	}());
	exports.TimeOccurrenceEngine = TimeOccurrenceEngine;
	angular
	    .module('ui-ng-calendar')
	    .factory('ngTimeOccurrenceEngine', function (TimeOccurrenceBuilder, ngTimeOccurrenceServant, ngPhxCalendarConfiguration) {
	    return new TimeOccurrenceEngine(TimeOccurrenceBuilder, ngTimeOccurrenceServant, ngPhxCalendarConfiguration);
	});


/***/ }),
/* 880 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });


/***/ }),
/* 881 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var TransactionTypeEnum;
	(function (TransactionTypeEnum) {
	    TransactionTypeEnum[TransactionTypeEnum["SAVE"] = 0] = "SAVE";
	    TransactionTypeEnum[TransactionTypeEnum["DELETE"] = 1] = "DELETE";
	    TransactionTypeEnum[TransactionTypeEnum["EDIT"] = 2] = "EDIT";
	})(TransactionTypeEnum = exports.TransactionTypeEnum || (exports.TransactionTypeEnum = {}));


/***/ }),
/* 882 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var BlendedTimesQueryModel = /** @class */ (function () {
	    function BlendedTimesQueryModel(ngTimeOccurrenceDataSource, QueryMediator) {
	        this.ngTimeOccurrenceDataSource = ngTimeOccurrenceDataSource;
	        QueryMediator.registerQuery(this, ngTimeOccurrenceDataSource);
	        this.model = [];
	    }
	    BlendedTimesQueryModel.prototype.run = function () {
	        this.model = _.filter(this.ngTimeOccurrenceDataSource.store, function (timeBlock) {
	            return _.includes(timeBlock.icons || '', 'adjust');
	        });
	        return this;
	    };
	    BlendedTimesQueryModel.prototype.getTimes = function () {
	        return this.model;
	    };
	    Object.defineProperty(BlendedTimesQueryModel.prototype, "result", {
	        get: function () {
	            return this.model;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return BlendedTimesQueryModel;
	}());
	exports.BlendedTimesQueryModel = BlendedTimesQueryModel;
	angular
	    .module('ui-ng-calendar')
	    .factory('ngBlendedTimesQueryModel', function (ngTimeOccurrenceDataSource, QueryMediator) {
	    return new BlendedTimesQueryModel(ngTimeOccurrenceDataSource, QueryMediator);
	});


/***/ }),
/* 883 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var OnlineTimesQueryModel = /** @class */ (function () {
	    function OnlineTimesQueryModel(ngTimeOccurrenceDataSource, QueryMediator) {
	        this.ngTimeOccurrenceDataSource = ngTimeOccurrenceDataSource;
	        QueryMediator.registerQuery(this, ngTimeOccurrenceDataSource);
	        this.model = [];
	    }
	    OnlineTimesQueryModel.prototype.run = function () {
	        this.model = _.filter(this.ngTimeOccurrenceDataSource.store, function (timeBlock) {
	            return _.includes(timeBlock.icons || '', 'laptop');
	        });
	        return this;
	    };
	    OnlineTimesQueryModel.prototype.getTimes = function () {
	        return this.model;
	    };
	    Object.defineProperty(OnlineTimesQueryModel.prototype, "result", {
	        get: function () {
	            return this.model;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return OnlineTimesQueryModel;
	}());
	exports.OnlineTimesQueryModel = OnlineTimesQueryModel;
	angular
	    .module('ui-ng-calendar')
	    .factory('ngOnlineTimesQueryModel', function (ngTimeOccurrenceDataSource, QueryMediator) {
	    return new OnlineTimesQueryModel(ngTimeOccurrenceDataSource, QueryMediator);
	});


/***/ }),
/* 884 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var OrderedTimeQueryModel = /** @class */ (function () {
	    function OrderedTimeQueryModel(ngTimeOccurrenceDataSource, QueryMediator) {
	        this.ngTimeOccurrenceDataSource = ngTimeOccurrenceDataSource;
	        QueryMediator.registerQuery(this, ngTimeOccurrenceDataSource);
	        this.model = [];
	    }
	    OrderedTimeQueryModel.prototype.run = function () {
	        this.model = _(this.ngTimeOccurrenceDataSource.store).sortBy('fromInput').sortBy('day.ordinal').value();
	        return this;
	    };
	    OrderedTimeQueryModel.prototype.getTimes = function () {
	        return this.model;
	    };
	    Object.defineProperty(OrderedTimeQueryModel.prototype, "result", {
	        get: function () {
	            return this.model;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return OrderedTimeQueryModel;
	}());
	exports.OrderedTimeQueryModel = OrderedTimeQueryModel;
	angular
	    .module('ui-ng-calendar')
	    .factory('ngOrderedTimeQueryModel', function (ngTimeOccurrenceDataSource, QueryMediator) {
	    return new OrderedTimeQueryModel(ngTimeOccurrenceDataSource, QueryMediator);
	});


/***/ }),
/* 885 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var _4 = __webpack_require__(1);
	var UnlockedTimeQuery = /** @class */ (function () {
	    function UnlockedTimeQuery(ngTimeOccurrenceDataSource, ngChangedBusyTimeDatasource) {
	        this.ngTimeOccurrenceDataSource = ngTimeOccurrenceDataSource;
	        this.ngChangedBusyTimeDatasource = ngChangedBusyTimeDatasource;
	        utility_ts_orm_1.ORMMediator.registerQuery(this, ngTimeOccurrenceDataSource, ngChangedBusyTimeDatasource);
	    }
	    UnlockedTimeQuery.prototype.run = function () {
	        var changedBusyTimes = this.ngChangedBusyTimeDatasource.read();
	        var times = _4
	            .chain(this.ngTimeOccurrenceDataSource.store)
	            .filter(function (time) { return !time.isLocked; })
	            .filter(function (time) { return !time.isPreview; })
	            .sortBy('fromInput')
	            .sortBy('day.ordinal')
	            .value();
	        var editing_time = _4.get(_4.find(changedBusyTimes, function (item) { return item.is_new_time === false; }), 'tracking_id', '');
	        //_isCurrentlyEditing used by ui to determine control visibility
	        _4.each(times, function (time) {
	            time.trackingId === editing_time ? (time._isCurrentlyEditing = true) : (time._isCurrentlyEditing = false);
	        });
	        this._result = {
	            times: times,
	            editing_time: editing_time
	        };
	        return this;
	    };
	    Object.defineProperty(UnlockedTimeQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return UnlockedTimeQuery;
	}());
	exports.UnlockedTimeQuery = UnlockedTimeQuery;
	angular.module('ui-ng-calendar').service('ngUnlockedTimeQuery', UnlockedTimeQuery);


/***/ }),
/* 886 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var busy_time_strategy_1 = __webpack_require__(45);
	var TimeOccurrenceServant = /** @class */ (function () {
	    function TimeOccurrenceServant(TimeOccurrenceDTD, Interface, ngPhxCalendarConfiguration, TimeOccurrenceBuilder, DayOfTheWeekEnum) {
	        this.TimeOccurrenceDTD = TimeOccurrenceDTD;
	        this.Interface = Interface;
	        this.ngPhxCalendarConfiguration = ngPhxCalendarConfiguration;
	        this.TimeOccurrenceBuilder = TimeOccurrenceBuilder;
	        this.DayOfTheWeekEnum = DayOfTheWeekEnum;
	    }
	    // Given a TimeOccurrence, take a property object and use that to return a raw TimeOccurrence (not DTO) object.
	    TimeOccurrenceServant.prototype.copyTimeOccurrenceWithProperties = function (timeOccurrence, propertyObj) {
	        var rawTimeOccurrenceData = {
	            appId: undefined,
	            day_of_week: timeOccurrence.day._ordinal,
	            from_tm: moment(timeOccurrence.from).format('HH:mm:ss'),
	            to_tm: moment(timeOccurrence.to).format('HH:mm:ss'),
	            repeats_every: timeOccurrence.repeats_every,
	            trackingId: timeOccurrence.trackingId,
	            beginMinutes: timeOccurrence.beginMinutes,
	            endMinutes: timeOccurrence.endMinutes,
	            bkgColorClass: timeOccurrence.bkgColorClass,
	            content: timeOccurrence.content,
	            group: timeOccurrence.group,
	            type: timeOccurrence.type,
	            isLocked: timeOccurrence.isLocked,
	            isWarning: timeOccurrence.isWarning,
	            isPreview: timeOccurrence.isPreview,
	            isWaitlisted: timeOccurrence.isWaitlisted,
	            isRegistered: timeOccurrence.isRegistered,
	            icons: timeOccurrence.icons,
	            hover: timeOccurrence.hover,
	            isSwapFrom: timeOccurrence.isSwapFrom,
	            isSwapTo: timeOccurrence.isSwapTo
	        };
	        _.forEach(propertyObj, function (value, key) {
	            rawTimeOccurrenceData[key] = value;
	        });
	        return new this.TimeOccurrenceBuilder(rawTimeOccurrenceData);
	    };
	    TimeOccurrenceServant.prototype.getTimeOccurrenceDuration = function (timeOccurrence) {
	        return timeOccurrence.to.diff(timeOccurrence.from);
	    };
	    TimeOccurrenceServant.prototype.isTimeOccurrenceValid = function (timeOccurrence) {
	        return (!!this.isTimeOccurrenceInBeginAndEndWindow(timeOccurrence) &&
	            !!this.isTimeOccurrenceStartBeforeEnd(timeOccurrence));
	    };
	    TimeOccurrenceServant.prototype.isTimeOccurrenceOnWeekend = function (timeOccurrence) {
	        return this.DayOfTheWeekEnum.SA.isEqual(timeOccurrence.day) || this.DayOfTheWeekEnum.SU.isEqual(timeOccurrence.day);
	    };
	    TimeOccurrenceServant.prototype.isTimeOccurrenceInBeginWindow = function (timeOccurrence) {
	        var configFromHours = parseInt(this.ngPhxCalendarConfiguration.hourBegin, 10);
	        var fromMomentObj = timeOccurrence.from.clone();
	        fromMomentObj.set({ hour: configFromHours, minutes: 0 });
	        return timeOccurrence.from.isSameOrAfter(fromMomentObj);
	    };
	    TimeOccurrenceServant.prototype.isTimeOccurrenceInEndWindow = function (timeOccurrence) {
	        var configToHours = parseInt(this.ngPhxCalendarConfiguration.hourEnd, 10) + 1;
	        var toMomentObj = timeOccurrence.to.clone();
	        toMomentObj.set({ hour: configToHours, minutes: 0 });
	        return timeOccurrence.to.isSameOrBefore(toMomentObj);
	    };
	    TimeOccurrenceServant.prototype.isTimeOccurrenceInBeginAndEndWindow = function (timeOccurrence) {
	        return this.isTimeOccurrenceInBeginWindow(timeOccurrence) && this.isTimeOccurrenceInEndWindow(timeOccurrence);
	    };
	    TimeOccurrenceServant.prototype.isTimeOccurrenceStartBeforeEnd = function (timeOccurrence) {
	        return timeOccurrence.from.isSameOrBefore(timeOccurrence.to);
	    };
	    TimeOccurrenceServant.prototype.isTimeInSwap = function (timeOccurrence) {
	        if (!timeOccurrence) {
	            return false;
	        }
	        return timeOccurrence.isSwapFrom || timeOccurrence.isSwapTo;
	    };
	    TimeOccurrenceServant.prototype.shiftTimeOccurrenceToBound = function (timeOccurrence, timeBoundary, timeBoundaryValue) {
	        var duration = this.getTimeOccurrenceDuration(timeOccurrence);
	        // TODO moment wants a number, but our typings are outdated so Typescript wants a string
	        var newTimeBoundary = timeBoundary === 1 /* End */
	            ? moment(timeBoundaryValue, 'hh').subtract(duration, 'ms')
	            : moment(timeBoundaryValue, 'hh').add(duration, 'ms');
	        var newTimeObj = timeBoundary === 1 /* End */
	            ? { from_tm: newTimeBoundary.format('HH:mm:ss'), to_tm: timeBoundaryValue }
	            : { from_tm: timeBoundaryValue, to_tm: newTimeBoundary.format('HH:mm:ss') };
	        var newTime = this.copyTimeOccurrenceWithProperties(timeOccurrence, newTimeObj);
	        return newTime;
	    };
	    TimeOccurrenceServant.prototype.getNewTime = function (changedBusyTimeDatasource) {
	        return _4.find(changedBusyTimeDatasource.read(), function (item) { return item.is_new_time === true; }) || {};
	    };
	    TimeOccurrenceServant.prototype.getUpdatedTimes = function (changedBusyTimeDatasource) {
	        return _4.find(changedBusyTimeDatasource.read(), function (item) { return item.is_new_time === false; });
	    };
	    TimeOccurrenceServant.prototype.momentToString = function (momentTimeObj) {
	        return momentTimeObj.format('HH:mm');
	    };
	    TimeOccurrenceServant.prototype.validatePotentialTime = function (potentialTime, errors, timeRange) {
	        var _this = this;
	        _4.remove(errors.found, undefined);
	        var toSimpleMilitaryTime = function (timeString) { return parseInt(moment(timeString, 'hh:mm a').format('HHmm')); };
	        var isStartTimeAfterEndTime = function (timeObj) {
	            var from = !_4.isString(timeObj.from_tm) ? _this.momentToString(timeObj.from_tm) : timeObj.from_tm;
	            var to = !_4.isString(timeObj.to_tm) ? _this.momentToString(timeObj.to_tm) : timeObj.to_tm;
	            return toSimpleMilitaryTime(to) <= toSimpleMilitaryTime(from);
	        };
	        var isOutOfTimeWindow = function (timeObj) {
	            var from = !_4.isString(timeObj.from_tm) ? _this.momentToString(timeObj.from_tm) : timeObj.from_tm;
	            var to = !_4.isString(timeObj.to_tm) ? _this.momentToString(timeObj.to_tm) : timeObj.to_tm;
	            from = toSimpleMilitaryTime(from);
	            to = toSimpleMilitaryTime(to);
	            var hourBegin = timeRange.hourBegin * 100;
	            var hourEnd = timeRange.hourEnd * 100 + 59;
	            return from < hourBegin || from > hourEnd || to < hourBegin || to > hourEnd;
	        };
	        var errorList = {
	            isAnyPropertyNotSet: _4.some(potentialTime, function (timeProperty) { return timeProperty === 'Invalid date'; }),
	            isStartTimeAfterEnd: isStartTimeAfterEndTime(potentialTime),
	            isOutOfTimeWindow: isOutOfTimeWindow(potentialTime)
	        };
	        var errorKeys = _4.keys(_4.pickBy(errorList, function (val) { return val === true; }));
	        _4.each(errorKeys, function (errorKey) {
	            if (!_4.isUndefined(busy_time_strategy_1.BusyTimeErrorMessage[errorKey])) {
	                errors.found.push(busy_time_strategy_1.BusyTimeErrorMessage[errorKey].message);
	            }
	        });
	        return errors.found;
	    };
	    return TimeOccurrenceServant;
	}());
	exports.TimeOccurrenceServant = TimeOccurrenceServant;
	angular
	    .module('ui-ng-calendar')
	    .factory('ngTimeOccurrenceServant', function (Interface, TimeOccurrenceDTD, ngPhxCalendarConfiguration, TimeOccurrenceBuilder, DayOfTheWeekEnum) {
	    return new TimeOccurrenceServant(TimeOccurrenceDTD, Interface, ngPhxCalendarConfiguration, TimeOccurrenceBuilder, DayOfTheWeekEnum);
	});


/***/ }),
/* 887 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var WeekCalendarCellServant = /** @class */ (function () {
	    function WeekCalendarCellServant(ngTimeOccurrenceEngine, DayOfTheWeekEnum, ngTimeOccurrenceDataSource, ngPhxCalendarConfiguration) {
	        this.ngTimeOccurrenceEngine = ngTimeOccurrenceEngine;
	        this.DayOfTheWeekEnum = DayOfTheWeekEnum;
	        this.ngTimeOccurrenceDataSource = ngTimeOccurrenceDataSource;
	        this.ngPhxCalendarConfiguration = ngPhxCalendarConfiguration;
	    }
	    WeekCalendarCellServant.prototype.createTimeOccurrenceForCell = function (cell) {
	        var rawTime = this.createRawTimeOccurrenceForCell(cell);
	        return this.ngTimeOccurrenceDataSource.buildTime(rawTime);
	    };
	    WeekCalendarCellServant.prototype.createRawTimeOccurrenceForCell = function (cell) {
	        var to_hour = cell.minutes === '45' ? parseInt(cell.hour, 10) + 1 : cell.hour;
	        var to_minutes = cell.minutes === '45' ? '00' : parseInt(cell.minutes, 10) + 15;
	        return {
	            day_of_week: this.DayOfTheWeekEnum.get(cell.day).ordinal,
	            from_tm: cell.hour + ':' + _.padLeft(cell.minutes, 2, '0'),
	            to_tm: to_hour + ':' + to_minutes + ':00'
	        };
	    };
	    WeekCalendarCellServant.prototype.isCellOpen = function (cell, timeOccurrences) {
	        return !this.findTimeOccurrenceForCell(cell, timeOccurrences);
	    };
	    WeekCalendarCellServant.prototype.findTimeOccurrenceForCell = function (cell, timeOccurrences) {
	        var _this = this;
	        var builtCell = this.createTimeOccurrenceForCell(cell);
	        return _.find(timeOccurrences, function (timeOccurrence) {
	            return _this.ngTimeOccurrenceEngine.areTimesPartiallyOverlapping(timeOccurrence, builtCell);
	        }, {});
	    };
	    WeekCalendarCellServant.prototype.createTimeOccurrenceFromCellAndExistingTime = function (cell, timeOccurrence, originalTimeOccurrence, deletedTimeOccurrence) {
	        var duration = timeOccurrence.to.diff(timeOccurrence.from);
	        var cellWithDragOffset = calculateCellOffset(cell, originalTimeOccurrence, deletedTimeOccurrence);
	        var cellTime = this.createTimeOccurrenceForCell(cellWithDragOffset);
	        var cellRawTime = this.ngTimeOccurrenceDataSource.serializeTime(cellTime);
	        var originalRawTime = this.ngTimeOccurrenceDataSource.serializeTime(timeOccurrence);
	        var savedCellStartTime = cellRawTime.from_tm;
	        var savedCellDay = cellRawTime.day_of_week;
	        _.forEach(originalRawTime, function (value, key) {
	            cellRawTime[key] = value;
	        });
	        cellRawTime.from_tm = savedCellStartTime;
	        cellRawTime.day_of_week = savedCellDay;
	        var newTimeOccurrence = this.ngTimeOccurrenceDataSource.buildTime(cellRawTime);
	        newTimeOccurrence.to = moment(newTimeOccurrence.from);
	        newTimeOccurrence.to.add(duration, 'milliseconds');
	        var hourBeginMoment = moment({ hour: _4.get(this.ngPhxCalendarConfiguration, 'hourBegin', 7), minutes: 0 });
	        var hourEndMoment = moment({ hour: _4.get(this.ngPhxCalendarConfiguration, 'hourEnd', 22), minutes: 59 });
	        if (hourBeginMoment.isAfter(newTimeOccurrence.from)) {
	            newTimeOccurrence.from = hourBeginMoment;
	            newTimeOccurrence.to = moment(hourBeginMoment).add(duration, 'milliseconds');
	        }
	        if (hourEndMoment.isBefore(newTimeOccurrence.to)) {
	            newTimeOccurrence.to = hourEndMoment;
	            newTimeOccurrence.from = moment(hourEndMoment).subtract(duration, 'milliseconds');
	        }
	        return this.ngTimeOccurrenceDataSource.serializeTime(newTimeOccurrence);
	        function calculateCellOffset(cellObj, originalTime, deletedTime) {
	            var cellTimeInput = { hour: parseInt(cellObj.hour, 10), minute: parseInt(cellObj.minutes, 10) };
	            var cellTimeMoment = moment(cellTimeInput);
	            var deletedTimeFrom = moment(deletedTime.fromInput, 'hh:mm');
	            var hourOffsetByAreaClicked = getHourOffsetByDragArea(originalTime, deletedTimeFrom);
	            var offsetHourByArea = parseInt(cellObj.hour, 10) - hourOffsetByAreaClicked;
	            cellObj.hour = offsetHourByArea.toString();
	            return cellObj;
	            function getHourOffsetByDragArea(origTime, delTimeFrom) {
	                var draggedCellMovingTimeDiffMins = cellTimeMoment.diff(delTimeFrom, 'minutes');
	                draggedCellMovingTimeDiffMins = Math.abs(draggedCellMovingTimeDiffMins);
	                var originalTimeDuration = origTime.to.diff(origTime.from, 'minutes');
	                var durationThird = originalTimeDuration / 3;
	                var topRange = [0, durationThird];
	                var midRange = [durationThird + 1, durationThird * 2];
	                var lowRange = [durationThird * 2 + 1, durationThird * 3];
	                var selectedRange = 0;
	                var rangeClicked = {
	                    top: false,
	                    mid: false,
	                    low: false
	                };
	                if (_.inRange(draggedCellMovingTimeDiffMins, topRange[0], topRange[1])) {
	                    selectedRange = durationThird / 2;
	                    rangeClicked.top = true;
	                }
	                else if (_.inRange(draggedCellMovingTimeDiffMins, midRange[0], midRange[1])) {
	                    selectedRange = durationThird + durationThird / 2;
	                    rangeClicked.mid = true;
	                }
	                else {
	                    selectedRange = durationThird * 2 + durationThird / 2;
	                    rangeClicked.low = true;
	                }
	                var hourOffsetByRange = Math.floor(selectedRange / 60);
	                if (_.inRange(originalTimeDuration, 130, 240)) {
	                    if (rangeClicked.low || rangeClicked.mid) {
	                        hourOffsetByRange = 2;
	                    }
	                    else if (rangeClicked.top) {
	                        hourOffsetByRange = 0;
	                    }
	                }
	                return hourOffsetByRange;
	            }
	        }
	    };
	    WeekCalendarCellServant.prototype.createCellFromEvent = function (event) {
	        var target = event.target;
	        if (!target.hasAttribute('data-day')) {
	            return;
	        }
	        return {
	            day: target.attributes['data-day'].value,
	            hour: target.attributes['data-hour'].value,
	            minutes: target.attributes['data-minutes'].value
	        };
	    };
	    return WeekCalendarCellServant;
	}());
	exports.WeekCalendarCellServant = WeekCalendarCellServant;
	angular
	    .module('ui-ng-calendar')
	    .factory('ngWeekCalendarCellServant', function (ngTimeOccurrenceEngine, DayOfTheWeekEnum, ngTimeOccurrenceDataSource, ngPhxCalendarConfiguration) {
	    return new WeekCalendarCellServant(ngTimeOccurrenceEngine, DayOfTheWeekEnum, ngTimeOccurrenceDataSource, ngPhxCalendarConfiguration);
	});


/***/ }),
/* 888 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var timeLowerBoundCorrector = /** @class */ (function () {
	    function timeLowerBoundCorrector(ngTimeOccurrenceEngine, ngPhxCalendarConfiguration, ngTimeOccurrenceServant) {
	        this.ngTimeOccurrenceEngine = ngTimeOccurrenceEngine;
	        this.ngPhxCalendarConfiguration = ngPhxCalendarConfiguration;
	        this.ngTimeOccurrenceServant = ngTimeOccurrenceServant;
	    }
	    timeLowerBoundCorrector.prototype.timeStartEndCorrector = function (storeToCorrect) {
	        var _this = this;
	        if (!_.isUndefined(this.adjustedTime)) {
	            _.remove(storeToCorrect, this.adjustedTime);
	        }
	        var hourEnd = parseInt(this.ngPhxCalendarConfiguration.hourEnd, 10) + 1;
	        var timeToCorrect = _.find(storeToCorrect, function (time) {
	            return (!_this.ngTimeOccurrenceServant.isTimeOccurrenceStartBeforeEnd(time) ||
	                !_this.ngTimeOccurrenceServant.isTimeOccurrenceInEndWindow(time));
	        });
	        if (!!timeToCorrect) {
	            _.remove(storeToCorrect, timeToCorrect);
	            var newTime = this.ngTimeOccurrenceServant.shiftTimeOccurrenceToBound(timeToCorrect, 1 /* End */, hourEnd);
	            this.adjustedTime = newTime;
	            storeToCorrect.push(this.adjustedTime);
	        }
	        return storeToCorrect;
	    };
	    return timeLowerBoundCorrector;
	}());
	exports.timeLowerBoundCorrector = timeLowerBoundCorrector;
	angular
	    .module('ui-ng-calendar')
	    .factory('timeLowerBoundCorrector', function (ngTimeOccurrenceEngine, ngPhxCalendarConfiguration, ngTimeOccurrenceServant) { return new timeLowerBoundCorrector(ngTimeOccurrenceEngine, ngPhxCalendarConfiguration, ngTimeOccurrenceServant); });


/***/ }),
/* 889 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var timeUpperBoundCorrector = /** @class */ (function () {
	    function timeUpperBoundCorrector(ngTimeOccurrenceEngine, ngPhxCalendarConfiguration, ngTimeOccurrenceServant) {
	        this.ngTimeOccurrenceEngine = ngTimeOccurrenceEngine;
	        this.ngPhxCalendarConfiguration = ngPhxCalendarConfiguration;
	        this.ngTimeOccurrenceServant = ngTimeOccurrenceServant;
	    }
	    timeUpperBoundCorrector.prototype.timeStartEndCorrector = function (storeToCorrect) {
	        var _this = this;
	        if (!_.isUndefined(this.adjustedTime)) {
	            _.remove(storeToCorrect, this.adjustedTime);
	        }
	        var hourBegin = parseInt(this.ngPhxCalendarConfiguration.hourBegin, 10);
	        var timeToCorrect = _.find(storeToCorrect, function (time) {
	            return !_this.ngTimeOccurrenceServant.isTimeOccurrenceInBeginWindow(time);
	        });
	        if (!!timeToCorrect) {
	            _.remove(storeToCorrect, timeToCorrect);
	            var newTime = this.ngTimeOccurrenceServant.shiftTimeOccurrenceToBound(timeToCorrect, 0 /* Start */, hourBegin);
	            this.adjustedTime = newTime;
	            storeToCorrect.push(this.adjustedTime);
	        }
	        return storeToCorrect;
	    };
	    return timeUpperBoundCorrector;
	}());
	exports.timeUpperBoundCorrector = timeUpperBoundCorrector;
	angular
	    .module('ui-ng-calendar')
	    .factory('timeUpperBoundCorrector', function (ngTimeOccurrenceEngine, ngPhxCalendarConfiguration, ngTimeOccurrenceServant) { return new timeUpperBoundCorrector(ngTimeOccurrenceEngine, ngPhxCalendarConfiguration, ngTimeOccurrenceServant); });


/***/ }),
/* 890 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var busy_time_strategy_1 = __webpack_require__(45);
	var AddEmptyTimeController = /** @class */ (function () {
	    function AddEmptyTimeController(DayOfTheWeekEnum, ngUnlockedTimeQuery, ngTimeOccurrenceServant, addNewPotentialTimeCommand, createDefaultTimeCommand, phxNotificationDelegate, ngChangedBusyTimeDatasource, ngPhxCalendarConfiguration, startTimeDatasourceTransactionCommand, endTimeDatasourceTransactionCommand, deleteChangedBusyTimeCommand, saveChangedBusyTimeCommand, timeLockValidatorFactory) {
	        this.DayOfTheWeekEnum = DayOfTheWeekEnum;
	        this.ngUnlockedTimeQuery = ngUnlockedTimeQuery;
	        this.ngTimeOccurrenceServant = ngTimeOccurrenceServant;
	        this.addNewPotentialTimeCommand = addNewPotentialTimeCommand;
	        this.createDefaultTimeCommand = createDefaultTimeCommand;
	        this.phxNotificationDelegate = phxNotificationDelegate;
	        this.ngChangedBusyTimeDatasource = ngChangedBusyTimeDatasource;
	        this.ngPhxCalendarConfiguration = ngPhxCalendarConfiguration;
	        this.startTimeDatasourceTransactionCommand = startTimeDatasourceTransactionCommand;
	        this.endTimeDatasourceTransactionCommand = endTimeDatasourceTransactionCommand;
	        this.deleteChangedBusyTimeCommand = deleteChangedBusyTimeCommand;
	        this.saveChangedBusyTimeCommand = saveChangedBusyTimeCommand;
	        this.timeLockValidatorFactory = timeLockValidatorFactory;
	        this.newTime = {
	            defaultTime: {},
	            potentialTime: {
	                day_of_week: 2,
	                from_tm: null,
	                to_tm: null
	            }
	        };
	        this.inputInnerValidation = false;
	        this.isSavingNewTime = false;
	        this.isValidTime = true;
	        this.errors = {
	            found: []
	        };
	        var defaultRangeLimits = {
	            hourBegin: 7,
	            hourEnd: 22
	        };
	        this.timeRange = {
	            hourBegin: parseInt(ngPhxCalendarConfiguration.hourBegin, 10) || defaultRangeLimits.hourBegin,
	            hourEnd: parseInt(ngPhxCalendarConfiguration.hourEnd, 10) || defaultRangeLimits.hourEnd
	        };
	        this.uniqueId = _4.uniqueId();
	    }
	    AddEmptyTimeController.prototype.$onChanges = function (changes) {
	        this.notificationDelegate = this.phxNotificationDelegate.restrictTo(changes.notificationRestrictTo.currentValue);
	    };
	    AddEmptyTimeController.prototype.showAddNewTime = function () {
	        var isSavingNewTime = this.isSavingNewTime;
	        var noNewTime = _4.isEmpty(this.ngTimeOccurrenceServant.getNewTime(this.ngChangedBusyTimeDatasource));
	        var updatingExistingTime = !_4.isEmpty(this.ngTimeOccurrenceServant.getUpdatedTimes(this.ngChangedBusyTimeDatasource));
	        return !isSavingNewTime && noNewTime && !updatingExistingTime;
	    };
	    AddEmptyTimeController.prototype.onValueChange = function (event) {
	        this.onTimeChanged({
	            timeParams: {
	                originalTime: undefined,
	                timeProperty: event.target.getAttribute('time-property'),
	                updatedTimeString: event.detail.value
	            }
	        });
	    };
	    AddEmptyTimeController.prototype.$onDestroy = function () {
	        this.onCancel();
	    };
	    AddEmptyTimeController.prototype.onTimeChanged = function (timeChangeParams) {
	        if (_4.isUndefined(timeChangeParams) && _4.isEmpty(timeChangeParams)) {
	            return;
	        }
	        var militaryTime = moment(timeChangeParams.timeParams.updatedTimeString, 'hh:mm a').format('HH:mm');
	        this.newTime.potentialTime[timeChangeParams.timeParams.timeProperty] = militaryTime;
	        timeChangeParams.timeParams.timeProperty === 'from_tm'
	            ? this.updateNewTime(this.newTime.defaultTime.trackingId, { from_tm: militaryTime })
	            : this.updateNewTime(this.newTime.defaultTime.trackingId, { to_tm: militaryTime });
	    };
	    AddEmptyTimeController.prototype.onDayChangedEvent = function (event) {
	        var dayObj = this.DayOfTheWeekEnum.get(event.target.value.substring(2, 0));
	        if (dayObj) {
	            this.onDayChanged(dayObj);
	        }
	    };
	    AddEmptyTimeController.prototype.onDayChanged = function (DayObj) {
	        this.newTime.potentialTime['day_of_week'] = DayObj.ordinal;
	        this.updateNewTime(this.newTime.defaultTime.trackingId, { day_of_week: DayObj.ordinal });
	    };
	    AddEmptyTimeController.prototype.updateNewTime = function (id, timeObj) {
	        var record = _4.find(this.ngChangedBusyTimeDatasource.read(), { tracking_id: id });
	        if (record) {
	            _4.merge(record, timeObj);
	        }
	    };
	    AddEmptyTimeController.prototype.onAdd = function () {
	        var _this = this;
	        this.createDefaultTimeCommand().then(function (newEmptyTime) {
	            _this.saveChangedBusyTimeCommand({
	                tracking_id: newEmptyTime.trackingId,
	                day_of_week: newEmptyTime.day,
	                from_tm: newEmptyTime.from,
	                to_tm: newEmptyTime.to,
	                is_new_time: true
	            });
	            _this.newTime.defaultTime = newEmptyTime;
	            _this.isSavingNewTime = true;
	        });
	    };
	    AddEmptyTimeController.prototype.onSave = function () {
	        var _this = this;
	        var newTime = this.ngTimeOccurrenceServant.getNewTime(this.ngChangedBusyTimeDatasource);
	        if (!_4.isEmpty(newTime)) {
	            this.validatePotentialTime(newTime);
	        }
	        if (!_4.isEmpty(newTime) && this.isValidTime) {
	            this.startTimeDatasourceTransactionCommand();
	            this.addNewPotentialTimeCommand(newTime).then(function (addNewResult) {
	                if (_4.isUndefined(addNewResult)) {
	                    _this.displaySpecificError(busy_time_strategy_1.BusyTimeErrorMessage['isTimeOverlap'].message);
	                }
	                else {
	                    _this.deleteChangedBusyTimeCommand(newTime.tracking_id);
	                    _this.isSavingNewTime = false;
	                    _this.execCb();
	                }
	                _this.endTimeDatasourceTransactionCommand();
	            });
	        }
	    };
	    AddEmptyTimeController.prototype.validatePotentialTime = function (newTime) {
	        this.errors.found = this.ngTimeOccurrenceServant.validatePotentialTime(newTime, this.errors, this.timeRange);
	        this.isValidTime = _4.isEmpty(this.errors.found);
	        this.createErrorNotification();
	    };
	    AddEmptyTimeController.prototype.displaySpecificError = function (errorMsg) {
	        this.errors.found.push(errorMsg);
	        this.isValidTime = false;
	        this.createErrorNotification();
	    };
	    AddEmptyTimeController.prototype.createErrorNotification = function () {
	        var _this = this;
	        _4.each(this.errors.found, function (errorMsg) {
	            _this.notificationDelegate.error({
	                content: errorMsg,
	                showIcon: true,
	                name: 'PendingAlert',
	                dismissOnTimeout: true,
	                dismissButton: true,
	                timeout: 5000,
	                iconClass: 'eab-icon-sync'
	            });
	        });
	    };
	    AddEmptyTimeController.prototype.onCancel = function () {
	        _4.remove(this.errors.found, undefined);
	        this.deleteChangedBusyTimeCommand(this.newTime.defaultTime.trackingId);
	        this.isSavingNewTime = false;
	        this.execCb();
	    };
	    AddEmptyTimeController.prototype.execCb = function () {
	        return this.outerCb();
	    };
	    return AddEmptyTimeController;
	}());
	exports.AddEmptyTimeController = AddEmptyTimeController;
	angular
	    .module('ui-ng-calendar')
	    .controller('phxAddEmptyTimeController', AddEmptyTimeController)
	    .component('phxAddEmptyTime', {
	    bindings: {
	        enums: '<',
	        hourStep: '@',
	        hourBegin: '@',
	        notificationRestrictTo: '@',
	        outerCb: '&'
	    },
	    templateUrl: 'ui-ng-calendar/src/views/add_empty_time/add_empty_time_component.html',
	    controller: 'phxAddEmptyTimeController'
	});


/***/ }),
/* 891 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var CalendarColorKeyController = /** @class */ (function () {
	    function CalendarColorKeyController() {
	        this.openDialog = false;
	        this.models = {
	            colorKeys: ['busy', 'waitlisted', 'not-registered']
	        };
	    }
	    CalendarColorKeyController.prototype.openDialogFn = function () {
	        this.openDialog = true;
	    };
	    CalendarColorKeyController.prototype.closeModal = function () {
	        this.openDialog = false;
	    };
	    return CalendarColorKeyController;
	}());
	exports.CalendarColorKeyController = CalendarColorKeyController;
	angular
	    .module('ui-ng-calendar')
	    .controller('phxCalendarColorKeyController', CalendarColorKeyController)
	    .component('phxCalendarColorKey', {
	    templateUrl: 'ui-ng-calendar/src/views/calendar_color_key/calendar_color_key.html',
	    controller: 'phxCalendarColorKeyController'
	});


/***/ }),
/* 892 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MODES = {
	    SWAP: 'swap'
	};
	var Drag = /** @class */ (function () {
	    function Drag(startTimeDatasourceTransactionCommand, ngWeekCalendarCellServant, addBuiltTimeCommand, updateTimeCommand, timeLockValidatorFactory, timeEndValidatorFactory, timeStartValidatorFactory, timeOverlapValidatorFactory, endTimeDatasourceTransactionCommand, ngTimeOccurrenceEngine, deleteTimeCommand, copyTimePropCommand, copyTimeOccurrenceToCellCommand, ngTimeOccurrenceDataSource) {
	        this.startTimeDatasourceTransactionCommand = startTimeDatasourceTransactionCommand;
	        this.ngWeekCalendarCellServant = ngWeekCalendarCellServant;
	        this.addBuiltTimeCommand = addBuiltTimeCommand;
	        this.updateTimeCommand = updateTimeCommand;
	        this.timeLockValidatorFactory = timeLockValidatorFactory;
	        this.timeEndValidatorFactory = timeEndValidatorFactory;
	        this.timeStartValidatorFactory = timeStartValidatorFactory;
	        this.timeOverlapValidatorFactory = timeOverlapValidatorFactory;
	        this.endTimeDatasourceTransactionCommand = endTimeDatasourceTransactionCommand;
	        this.ngTimeOccurrenceEngine = ngTimeOccurrenceEngine;
	        this.deleteTimeCommand = deleteTimeCommand;
	        this.copyTimePropCommand = copyTimePropCommand;
	        this.copyTimeOccurrenceToCellCommand = copyTimeOccurrenceToCellCommand;
	        this.ngTimeOccurrenceDataSource = ngTimeOccurrenceDataSource;
	        this.isPainting = false;
	        this.isCreating = false;
	        this.isMoving = false;
	        this.isResizing = false;
	        this.isDragging = false;
	        this.isDraggable = false;
	        this.hoveredCell = undefined;
	        this.extendUp = false;
	        this.extendDown = false;
	        this.clickedCell = undefined;
	        this.hoveredTimeOccurrenceTrackingId = undefined;
	        this.originalTimeOccurrence = undefined;
	        this.currentTimeOccurrence = undefined;
	    }
	    Drag.prototype.startPainting = function ($event) {
	        var _this = this;
	        this.startTimeDatasourceTransactionCommand();
	        if (this.isPainting && this.currentTimeOccurrence) {
	            return;
	        }
	        this.isPainting = true;
	        this.clickedCell = this.ngWeekCalendarCellServant.createCellFromEvent($event);
	        if (this.ngWeekCalendarCellServant.isCellOpen(this.clickedCell, this.ngTimeOccurrenceDataSource.store)) {
	            this.isCreating = true;
	            var newTimeOccurrence = this.ngWeekCalendarCellServant.createTimeOccurrenceForCell(this.clickedCell);
	            this.addBuiltTimeCommand(newTimeOccurrence).then(function (addedBuiltTime) {
	                _this.currentTimeOccurrence = _this.originalTimeOccurrence = addedBuiltTime;
	            });
	        }
	        else {
	            this.isCreating = false;
	            this.currentTimeOccurrence = this.originalTimeOccurrence =
	                this.ngWeekCalendarCellServant.findTimeOccurrenceForCell(this.clickedCell, this.ngTimeOccurrenceDataSource.store);
	            this.isMoving = !this.isResizing && !this.originalTimeOccurrence.isLocked;
	            if (!this.isResizing) {
	                // is there a better solution than calling startTransaction twice?
	                var boundTimeLockValidator = this.timeLockValidatorFactory(this.originalTimeOccurrence);
	                this.startTimeDatasourceTransactionCommand([
	                    boundTimeLockValidator,
	                    this.timeEndValidatorFactory,
	                    this.timeStartValidatorFactory
	                ]);
	                this.updateTimeCommand(this.originalTimeOccurrence, { isPreview: true }).then(function (builtTime) {
	                    _this.originalTimeOccurrence = builtTime;
	                });
	            }
	        }
	    };
	    Drag.prototype.endPainting = function ($event) {
	        if (this.isCreating || this.isResizing || this.isMoving) {
	            var boundOverlapValidator = this.timeOverlapValidatorFactory(this.originalTimeOccurrence, this.currentTimeOccurrence);
	            this.endTimeDatasourceTransactionCommand(boundOverlapValidator);
	        }
	        this.currentTimeOccurrence = undefined;
	        this.originalTimeOccurrence = undefined;
	        this.isPainting = false;
	        this.isCreating = false;
	        this.isMoving = false;
	        this.clickedCell = undefined;
	        this.extendUp = false;
	        this.extendDown = false;
	        this.isResizing = false;
	        // this.isDraggable = false;
	    };
	    Drag.prototype.hoverCell = function ($event) {
	        var _this = this;
	        // TechDebt: Why try catch?
	        // TODO: Fix how the calendar grid is drawn so that the actual calendar workspace doesn't bleed to the right
	        var hoveredCell;
	        try {
	            hoveredCell = this.ngWeekCalendarCellServant.createCellFromEvent($event);
	        }
	        catch (err) {
	            return;
	        }
	        if (_4.isEqual(this.clickedCell, hoveredCell)) {
	            return;
	        }
	        var hoveredCellTimeOccurrence = this.ngWeekCalendarCellServant.createTimeOccurrenceForCell(hoveredCell);
	        var hoveredCellExistingTimeOccurrence = this.ngWeekCalendarCellServant.findTimeOccurrenceForCell(hoveredCell, this.ngTimeOccurrenceDataSource.store);
	        // find out if we're resizing or not:
	        var hoveredOverStartOrEnd;
	        if (hoveredCellExistingTimeOccurrence) {
	            hoveredOverStartOrEnd = this.ngTimeOccurrenceEngine.getTimeStartOrEnd(hoveredCellTimeOccurrence, hoveredCellExistingTimeOccurrence);
	            this.isDraggable = !hoveredCellExistingTimeOccurrence.isLocked;
	            this.hoveredTimeOccurrenceTrackingId = hoveredCellExistingTimeOccurrence.trackingId;
	        }
	        else {
	            this.isDraggable = false;
	            this.hoveredTimeOccurrenceTrackingId = undefined;
	        }
	        if (hoveredOverStartOrEnd === 0 /* Start */ &&
	            !this.isResizing &&
	            !this.isMoving &&
	            !hoveredCellExistingTimeOccurrence.isLocked) {
	            this.extendUp = true;
	            this.isResizing = true;
	        }
	        else if (hoveredOverStartOrEnd === 1 /* End */ &&
	            !this.isResizing &&
	            !this.isMoving &&
	            !hoveredCellExistingTimeOccurrence.isLocked) {
	            this.extendDown = true;
	            this.isResizing = true;
	        }
	        else if (!hoveredOverStartOrEnd && !this.clickedCell) {
	            this.extendUp = false;
	            this.extendDown = false;
	            this.isResizing = false;
	        }
	        if (this.isMoving) {
	            this.isDraggable = true;
	            var deletedTimeCopy = {};
	            // ghost original time occurrence here
	            // delete time that is being dragged
	            if (this.currentTimeOccurrence !== this.originalTimeOccurrence) {
	                deletedTimeCopy = _.clone(this.currentTimeOccurrence);
	                this.deleteTimeCommand(this.currentTimeOccurrence);
	            }
	            // add new time occurrence with adjusted time here
	            this.copyTimeOccurrenceToCellCommand(hoveredCell, this.currentTimeOccurrence, this.originalTimeOccurrence, deletedTimeCopy).then(function (builtTime) {
	                _this.currentTimeOccurrence = builtTime;
	            });
	        }
	        if (this.isCreating) {
	            var propHash = {};
	            var property = void 0;
	            if (this.ngTimeOccurrenceEngine.isTimeEarlier(this.originalTimeOccurrence, hoveredCellTimeOccurrence)) {
	                property = 'to_tm';
	            }
	            else {
	                property = 'from_tm';
	            }
	            this.copyTimePropCommand(propHash, property, hoveredCellTimeOccurrence, this.currentTimeOccurrence).then(function (builtTime) {
	                _this.currentTimeOccurrence = builtTime;
	            });
	        }
	        if (this.isResizing && this.currentTimeOccurrence && !this.isMoving && !this.isCreating) {
	            var propHash = {};
	            var property = void 0;
	            property = !!this.extendUp ? 'from_tm' : 'to_tm';
	            this.copyTimePropCommand(propHash, property, hoveredCellTimeOccurrence, this.currentTimeOccurrence).then(function (builtTime) {
	                _this.currentTimeOccurrence = builtTime;
	            });
	        }
	    };
	    return Drag;
	}());
	exports.Drag = Drag;
	var WeekCalendarViewController = /** @class */ (function () {
	    function WeekCalendarViewController(DayOfTheWeekEnum, ngWeekCalendarCellServant, ngTimeOccurrenceServant, ngTimeOccurrenceEngine, ngTimeOccurrenceDataSource, copyTimeOccurrenceToCellCommand, deleteTimeCommand, updateTimeCommand, addBuiltTimeCommand, copyTimePropCommand, startTimeDatasourceTransactionCommand, endTimeDatasourceTransactionCommand, ngOrderedTimeQueryModel, timeOverlapValidatorFactory, timeLockValidatorFactory, timeEndValidatorFactory, timeStartValidatorFactory) {
	        this.DayOfTheWeekEnum = DayOfTheWeekEnum;
	        this.ngWeekCalendarCellServant = ngWeekCalendarCellServant;
	        this.ngTimeOccurrenceServant = ngTimeOccurrenceServant;
	        this.ngTimeOccurrenceEngine = ngTimeOccurrenceEngine;
	        this.ngTimeOccurrenceDataSource = ngTimeOccurrenceDataSource;
	        this.copyTimeOccurrenceToCellCommand = copyTimeOccurrenceToCellCommand;
	        this.deleteTimeCommand = deleteTimeCommand;
	        this.updateTimeCommand = updateTimeCommand;
	        this.addBuiltTimeCommand = addBuiltTimeCommand;
	        this.copyTimePropCommand = copyTimePropCommand;
	        this.startTimeDatasourceTransactionCommand = startTimeDatasourceTransactionCommand;
	        this.endTimeDatasourceTransactionCommand = endTimeDatasourceTransactionCommand;
	        this.ngOrderedTimeQueryModel = ngOrderedTimeQueryModel;
	        this.timeOverlapValidatorFactory = timeOverlapValidatorFactory;
	        this.timeLockValidatorFactory = timeLockValidatorFactory;
	        this.timeEndValidatorFactory = timeEndValidatorFactory;
	        this.timeStartValidatorFactory = timeStartValidatorFactory;
	        this.__onMouseLeaveWindowBound = this.__onMouseLeaveWindow.bind(this);
	        this.hourHeightPx = 29;
	    }
	    WeekCalendarViewController.prototype.initialize = function () {
	        var _this = this;
	        this.specification = {
	            hourStep: parseInt(this.hourStep || '1', 10),
	            hourBegin: parseInt(this.hourBegin || '8', 10),
	            hourEnd: parseInt(this.hourEnd || '22', 10),
	            colorIndex: 0
	        };
	        var hourDivisions = (this.specification.hourEnd - this.specification.hourBegin) / this.specification.hourStep + 1;
	        this.visualization = {
	            hourDivisions: hourDivisions,
	            hourPercentageHeight: 100 / hourDivisions,
	            hourRange: _4.times(hourDivisions, function (i) {
	                return {
	                    humanFormat: moment()
	                        .hour(_this.specification.hourBegin + i)
	                        .minute(0)
	                        .format('h a'),
	                    val: _this.specification.hourBegin + i
	                };
	            }),
	            getOnlineClasses: function () {
	                return _4.filter(_this.queries.times.model, function (time) {
	                    return _this.DayOfTheWeekEnum.isEqual(time.day, _this.DayOfTheWeekEnum.ONLINE);
	                });
	            },
	            getOfflineClasses: function () {
	                var offlineClassTimes = _4.filter(_this.queries.times.model, function (time) {
	                    return !_this.DayOfTheWeekEnum.isEqual(time.day, _this.DayOfTheWeekEnum.ONLINE);
	                });
	                _4.each(offlineClassTimes, function (time) {
	                    time.top = _this.timeUnitTop(time);
	                    time.height = _this.timeUnitHeight(time);
	                });
	                return offlineClassTimes;
	            }
	        };
	    };
	    WeekCalendarViewController.prototype.__onMouseLeaveWindow = function ($event) {
	        this.drag.endPainting($event);
	    };
	    WeekCalendarViewController.prototype.createDrag = function () {
	        this.drag = new Drag(this.startTimeDatasourceTransactionCommand, this.ngWeekCalendarCellServant, this.addBuiltTimeCommand, this.updateTimeCommand, this.timeLockValidatorFactory, this.timeEndValidatorFactory, this.timeStartValidatorFactory, this.timeOverlapValidatorFactory, this.endTimeDatasourceTransactionCommand, this.ngTimeOccurrenceEngine, this.deleteTimeCommand, this.copyTimePropCommand, this.copyTimeOccurrenceToCellCommand, this.ngTimeOccurrenceDataSource);
	        window.removeEventListener('mouseup', this.__onMouseLeaveWindowBound);
	        window.addEventListener('mouseup', this.__onMouseLeaveWindowBound);
	    };
	    WeekCalendarViewController.prototype.alignTimesColumnLeft = function (alignTimes) {
	        return alignTimes === 'left';
	    };
	    WeekCalendarViewController.prototype.$onInit = function () {
	        this.inPrefMode = false;
	        this.queries = {
	            times: this.ngOrderedTimeQueryModel
	        };
	        this.createDrag();
	    };
	    WeekCalendarViewController.prototype.$onDestroy = function () {
	        window.removeEventListener('mouseup', this.__onMouseLeaveWindowBound);
	    };
	    WeekCalendarViewController.prototype.$onChanges = function (changes) {
	        if (!_4.isUndefined(changes.prefsModeActive)) {
	            this.inPrefMode = changes.prefsModeActive.currentValue;
	        }
	        this.initialize();
	    };
	    WeekCalendarViewController.prototype.getOnlineClassColSpan = function (includeWeekends) {
	        return includeWeekends === 'false' ? 5 : 7;
	    };
	    WeekCalendarViewController.prototype.isDayOnWeekend = function (timeOccurrence) {
	        return this.ngTimeOccurrenceServant.isTimeOccurrenceOnWeekend(timeOccurrence);
	    };
	    WeekCalendarViewController.prototype.dimTile = function (timeOccurrence) {
	        if (this.mode !== 'swap') {
	            return false;
	        }
	        return !this.ngTimeOccurrenceServant.isTimeInSwap(timeOccurrence);
	    };
	    WeekCalendarViewController.prototype.timeToPercentage = function (time) {
	        return this.visualization.hourPercentageHeight * time;
	    };
	    WeekCalendarViewController.prototype.calculateSpatialTime = function (hour, minutes) {
	        return hour - this.specification.hourBegin + this.convertMinutesToHours(minutes);
	    };
	    WeekCalendarViewController.prototype.convertMinutesToHours = function (minutes) {
	        return minutes / 60;
	    };
	    // FIXME: Style recalculation every digest cycle create expensive layout reflow.
	    // FIXME: Set bounds for top and bottom. top is min of 0, and max of hourEnd - fromtime
	    WeekCalendarViewController.prototype.timeUnitTop = function (time) {
	        var hour = time.from.hour() - this.specification.hourBegin;
	        var minutes = this.convertMinutesToHours(time.from.minutes());
	        return this.timeToPercentage(hour + minutes) + '%';
	    };
	    WeekCalendarViewController.prototype.timeUnitHeight = function (time) {
	        var to = this.calculateSpatialTime(time.to.hour(), time.to.minutes());
	        var from = this.calculateSpatialTime(time.from.hour(), time.from.minutes());
	        return this.timeToPercentage(to - from) + '%';
	    };
	    WeekCalendarViewController.prototype.canDeleteTime = function (time) {
	        return !time.isLocked && this.drag.isDraggable && time.trackingId === this.drag.hoveredTimeOccurrenceTrackingId;
	    };
	    WeekCalendarViewController.prototype.deleteTime = function (time) {
	        if (!time.isLocked) {
	            this.startTimeDatasourceTransactionCommand();
	            this.deleteTimeCommand(time);
	            this.endTimeDatasourceTransactionCommand();
	        }
	    };
	    return WeekCalendarViewController;
	}());
	exports.WeekCalendarViewController = WeekCalendarViewController;
	angular
	    .module('ui-ng-calendar')
	    .component('phxWeekCalendarView', {
	    bindings: {
	        enums: '<',
	        includeWeekends: '@',
	        microheaders: '@',
	        hourStep: '@',
	        hourBegin: '@',
	        hourEnd: '@',
	        hour: '@',
	        prefsModeActive: '<',
	        mode: '<'
	    },
	    templateUrl: 'ui-ng-calendar/src/views/week_calendar_view/week_calendar_view.html',
	    controller: 'WeekCalendarViewController'
	})
	    .controller('WeekCalendarViewController', WeekCalendarViewController);


/***/ }),
/* 893 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var CommunicatorService = /** @class */ (function () {
	    function CommunicatorService() {
	        this.events = new Map();
	    }
	    CommunicatorService.prototype.__getEvents = function (eventName) {
	        return this.events.get(eventName);
	    };
	    CommunicatorService.prototype.subscribe = function (eventName, callBack) {
	        if (!this.events.has(eventName)) {
	            this.events.set(eventName, new Set());
	        }
	        this.__getEvents(eventName).add(callBack);
	        return {
	            release: this.release.bind(this, eventName, callBack)
	        };
	    };
	    CommunicatorService.prototype.release = function (eventName, callBack) {
	        this.__getEvents(eventName).delete(callBack);
	    };
	    CommunicatorService.prototype.publish = function (eventName) {
	        if (this.__getEvents(eventName) instanceof Set) {
	            this.__getEvents(eventName).forEach(function (callBack) { return callBack(); });
	        }
	        else {
	            console.warn('Communicator service: publish method got called before registering the event');
	        }
	    };
	    return CommunicatorService;
	}());
	exports.CommunicatorService = CommunicatorService;


/***/ }),
/* 894 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var content_tab_view_1 = __webpack_require__(2168);
	angular
	    .module('ui-ng-content-tabs', [])
	    .component('contentTabView', new content_tab_view_1.ContentTabViewComponent())
	    .controller('ContentTabViewController', content_tab_view_1.ContentTabViewController);


/***/ }),
/* 895 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var content_tile_1 = __webpack_require__(2169);
	angular
	    .module('ui-ng-content-tile', ['ngSanitize', 'ngAria'])
	    .controller('ContentTileController', content_tile_1.ContentTileController)
	    .component('contentTile', new content_tile_1.ContentTileComponent());


/***/ }),
/* 896 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var NavigationBarAlertService = /** @class */ (function () {
	    function NavigationBarAlertService() {
	        this.isInAlertMode = false;
	    }
	    NavigationBarAlertService.prototype.putInAlertState = function () {
	        this.isInAlertMode = true;
	    };
	    NavigationBarAlertService.prototype.toggleStateTo = function (bool) {
	        this.isInAlertMode = !!bool;
	    };
	    NavigationBarAlertService.prototype.reset = function () {
	        this.isInAlertMode = false;
	    };
	    Object.defineProperty(NavigationBarAlertService.prototype, "alertStatus", {
	        get: function () {
	            return this.isInAlertMode;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return NavigationBarAlertService;
	}());
	exports.NavigationBarAlertService = NavigationBarAlertService;


/***/ }),
/* 897 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var NavigationHistoryStack = /** @class */ (function () {
	    function NavigationHistoryStack($timeout, $state) {
	        this.$timeout = $timeout;
	        this.$state = $state;
	        this._navigationHistoryStack = [];
	        this._shouldStateBeAdded = false;
	        this._isInTransition = false;
	    }
	    NavigationHistoryStack.prototype._addState = function (state) {
	        if (_4.isEmpty(state.name)) {
	            return;
	        }
	        var ifNoHistoryAndStateIgnored = this.isNavigationHistoryEmpty && this.isHistoryDisabled(state);
	        var nextState = ifNoHistoryAndStateIgnored ? this._defaultState : state;
	        this._navigationHistoryStack.push(nextState);
	        return nextState;
	    };
	    NavigationHistoryStack.prototype._deleteState = function () {
	        this._navigationHistoryStack.pop();
	    };
	    Object.defineProperty(NavigationHistoryStack.prototype, "navigationHistory", {
	        get: function () {
	            return this._navigationHistoryStack;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(NavigationHistoryStack.prototype, "isTransitioning", {
	        set: function (val) {
	            var _this = this;
	            if (!val) {
	                // this is to prevent a weird dual event firing bug from occuring when
	                // a user hits the back button after the app has been activated by an
	                // outside link from a deep link or push notification.
	                // This ONLY occurs on back button, and the outside link function somehow
	                // causes the events to fire before our app-based mitigations for dual eventing.
	                this.$timeout(function () {
	                    _this._isInTransition = false;
	                }, 64);
	            }
	            else {
	                this._isInTransition = val;
	            }
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(NavigationHistoryStack.prototype, "isNavigationHistoryEmpty", {
	        get: function () {
	            return _4.isEmpty(this.navigationHistory);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(NavigationHistoryStack.prototype, "defaultStateName", {
	        set: function (state) {
	            this._defaultState = {
	                name: state
	            };
	        },
	        enumerable: true,
	        configurable: true
	    });
	    NavigationHistoryStack.prototype.changeStateStatus = function (fromState, toState) {
	        if (!this.isHistoryDisabled(fromState)) {
	            this._shouldStateBeAdded = _4.get(_4.last(this.navigationHistory), 'name') !== toState.name;
	        }
	    };
	    NavigationHistoryStack.prototype.changeNavigatioHistoryStack = function (fromState, toState) {
	        if (!this.isHistoryDisabled(fromState) && this._shouldStateBeAdded) {
	            this._addState(fromState);
	        }
	    };
	    Object.defineProperty(NavigationHistoryStack.prototype, "previousState", {
	        get: function () {
	            if (this._isInTransition) {
	                // this is the second part, where we lie to the controllers
	                // and tell them they are at the root of the stack if we are mid change
	                return {};
	            }
	            return this.__getPreviousState();
	        },
	        enumerable: true,
	        configurable: true
	    });
	    NavigationHistoryStack.prototype.deleteAndGoBack = function () {
	        this._deleteState();
	        this.goBack();
	    };
	    /**
	     * go to last state through angular routing, but use href if we have a native
	     */
	    NavigationHistoryStack.prototype.goBack = function () {
	        var previousState = this.previousState;
	        if (_4.isEmpty(previousState)) {
	            return;
	        }
	        var name = previousState.name;
	        var isNative = name === 'my.native.active';
	        var params = (previousState.params || { path: '' });
	        if (isNative) {
	            location.href = "#/my/native/" + params.path + "/";
	        }
	        else {
	            this.$state.go(previousState.name, previousState.params);
	        }
	    };
	    NavigationHistoryStack.prototype.goBackLink = function () {
	        if (this.previousState.name === 'my.ap3.active') {
	            return 'my.ap3-restart';
	        }
	        return this.previousState.name + "(" + JSON.stringify(this.previousState.params) + ")";
	    };
	    Object.defineProperty(NavigationHistoryStack.prototype, "goBackLinkText", {
	        get: function () {
	            var viewTitle = _4.get(this.previousState, 'data.viewTitle');
	            var pageTitle = _4.get(this.previousState, 'data.pageTitle');
	            var DEFAULT_TITLE = "Go Back";
	            return viewTitle || pageTitle || DEFAULT_TITLE;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    NavigationHistoryStack.prototype.__getPreviousState = function () {
	        if (this.isNavigationHistoryEmpty) {
	            return this._defaultState;
	        }
	        var prevState = _4.last(this.navigationHistory);
	        if (prevState.name === this.$state.current.name) {
	            this._deleteState();
	            return this.__getPreviousState();
	        }
	        else {
	            return prevState;
	        }
	    };
	    NavigationHistoryStack.prototype.isHistoryDisabled = function (state) {
	        return _4.get(state, 'abstract', false) || _4.get(state, 'data.ignoredInHistory', false);
	    };
	    NavigationHistoryStack.prototype.clearHistory = function () {
	        this._navigationHistoryStack = [];
	        if (this.$state.current.name) {
	            this._addState({
	                name: this.$state.current.name,
	                params: this.$state.current.params,
	                data: this.$state.current.data
	            });
	        }
	    };
	    return NavigationHistoryStack;
	}());
	exports.NavigationHistoryStack = NavigationHistoryStack;


/***/ }),
/* 898 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PopoverController = /** @class */ (function () {
	    function PopoverController() {
	    }
	    PopoverController.prototype.$onInit = function () {
	        var smallMediaBreakpoint = 640;
	        this.visibleArrow = window.innerWidth > smallMediaBreakpoint;
	    };
	    return PopoverController;
	}());
	var PopoverComponent = /** @class */ (function () {
	    function PopoverComponent() {
	        this.templateUrl = 'ui-ng-popup/src/components/popover/popover.html';
	        this.controller = PopoverController;
	        this.controllerAs = '$ctrl';
	        this.transclude = true;
	        this.bindings = {
	            isOpen: '<',
	            anchorId: '<'
	        };
	    }
	    return PopoverComponent;
	}());
	exports.PopoverComponent = PopoverComponent;


/***/ }),
/* 899 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PopupController = /** @class */ (function () {
	    function PopupController($element, $timeout) {
	        this.$element = $element;
	        this.$timeout = $timeout;
	    }
	    PopupController.prototype.$onChanges = function () {
	        if (this.isActive) {
	            var popupEl_1 = this.$element.find('hi-tile')[0];
	            if (popupEl_1) {
	                this.$timeout(function () {
	                    popupEl_1.focus();
	                }, 200);
	            }
	        }
	    };
	    return PopupController;
	}());
	var PopupComponent = /** @class */ (function () {
	    function PopupComponent() {
	        this.templateUrl = 'ui-ng-popup/src/components/popup/popup.html';
	        this.controller = PopupController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            isActive: '<',
	            title: '<',
	            body: '<?',
	            completeButtonText: '<?',
	            cancelButtonText: '<?',
	            completeCallback: '&?',
	            cancelCallback: '&?',
	            acceptOnly: '<?'
	        };
	    }
	    return PopupComponent;
	}());
	exports.PopupComponent = PopupComponent;


/***/ }),
/* 900 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PopupContainerController = /** @class */ (function () {
	    function PopupContainerController(ngPopupService) {
	        this.ngPopupService = ngPopupService;
	    }
	    return PopupContainerController;
	}());
	var PopupContainerComponent = /** @class */ (function () {
	    function PopupContainerComponent() {
	        this.templateUrl = 'ui-ng-popup/src/components/popup_container/popup_container.html';
	        this.controller = PopupContainerController;
	        this.controllerAs = '$ctrl';
	    }
	    return PopupContainerComponent;
	}());
	exports.PopupContainerComponent = PopupContainerComponent;


/***/ }),
/* 901 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	__webpack_require__(65);
	__webpack_require__(39);
	angular.module('ui-ng-popup', ['ngSanitize', 'ngAria', 'ui-ng-ax']);
	__webpack_require__(2176);


/***/ }),
/* 902 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var PopupConfigService = /** @class */ (function () {
	    function PopupConfigService(phxMobileTrapFocus) {
	        this.phxMobileTrapFocus = phxMobileTrapFocus;
	        this.clearPopupObject();
	    }
	    PopupConfigService.prototype.getPopupObject = function () {
	        return this._popupObject;
	    };
	    Object.defineProperty(PopupConfigService.prototype, "isActive", {
	        get: function () {
	            return this._isActive;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(PopupConfigService.prototype, "title", {
	        get: function () {
	            return this._popupObject.title;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(PopupConfigService.prototype, "body", {
	        get: function () {
	            return this._popupObject.body;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(PopupConfigService.prototype, "acceptOnly", {
	        get: function () {
	            return this._popupObject.acceptOnly;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(PopupConfigService.prototype, "completeButtonText", {
	        get: function () {
	            return this._popupObject.completeButtonText;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(PopupConfigService.prototype, "cancelButtonText", {
	        get: function () {
	            return this._popupObject.cancelButtonText;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    PopupConfigService.prototype.accept = function () {
	        if (this._popupObject.completeCallback) {
	            this._popupObject.completeCallback();
	        }
	        this.activate();
	    };
	    PopupConfigService.prototype.cancel = function () {
	        if (this._popupObject.cancelCallback) {
	            this._popupObject.cancelCallback();
	        }
	        this.activate();
	    };
	    PopupConfigService.prototype.show = function (newPopupObject) {
	        this.setPopupObject(newPopupObject);
	        this.activate();
	    };
	    PopupConfigService.prototype.clearPopupObject = function () {
	        this._isActive = false;
	        this._popupObject = {
	            title: '',
	            body: undefined,
	            completeButtonText: 'Accept',
	            cancelButtonText: 'Cancel',
	            completeCallback: undefined,
	            cancelCallback: undefined,
	            acceptOnly: false
	        };
	    };
	    PopupConfigService.prototype.setPopupObject = function (newPopupObject) {
	        this.clearPopupObject();
	        this._popupObject = tslib_1.__assign(tslib_1.__assign({}, this._popupObject), newPopupObject);
	    };
	    PopupConfigService.prototype.activate = function () {
	        this._isActive = !this._isActive;
	        if (this.isActive) {
	            this.phxMobileTrapFocus.enableTrapFocus('popup-container');
	        }
	        else {
	            this.phxMobileTrapFocus.disableTrapFocus('popup-container');
	        }
	    };
	    return PopupConfigService;
	}());
	exports.PopupConfigService = PopupConfigService;


/***/ }),
/* 903 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	/**
	 * @phxWeekTimes
	 */
	var _4 = __webpack_require__(1);
	var PhxWeekTimesController = /** @class */ (function () {
	    function PhxWeekTimesController() {
	        this.availableTimeSlots = {
	            am: [],
	            pm: [],
	            all: []
	        };
	    }
	    PhxWeekTimesController.prototype.$onInit = function () {
	        this.data = this.constructDates(this.timings);
	        var start_of_week = _4.size(this.data) > 0 ? moment(this.data[0].date).startOf('week') : moment().startOf('week');
	        this.week = this.getWeek(start_of_week);
	        if (_4.isEmpty(this.selectedTime)) {
	            this.autoSelectFirstAvailableDateInCurrentWeek();
	        }
	        else {
	            this.autoSelectSelectedDateTime(this.selectedTime);
	        }
	    };
	    // Definitely a Time utility Function
	    // date is always the start if the week.
	    PhxWeekTimesController.prototype.getWeek = function (date) {
	        var week = [];
	        for (var i = 0; i < 7; i++) {
	            var dayMoment = moment(date).add(i, 'days');
	            week.push({
	                date: dayMoment.format('DD'),
	                day: dayMoment.format('dddd'),
	                short_day: dayMoment.format('ddd'),
	                month: dayMoment.format('MMMM'),
	                short_month: dayMoment.format('MMM'),
	                show: dayMoment.isoWeekday() < 6,
	                day_week: i
	            });
	        }
	        this.previous_week_first_day = moment(date).subtract(7, 'days');
	        this.next_week_first_day = moment(date).add(7, 'days');
	        return week;
	    };
	    PhxWeekTimesController.prototype.constructDates = function (dates) {
	        return _4.map(dates, function (date) { return ({
	            date: date,
	            day: date.format('ddd'),
	            day_week: date.day(),
	            time: date.format('hh:mm A'),
	            am: date.format('A') === 'AM',
	            selected: false
	        }); });
	    };
	    PhxWeekTimesController.prototype.getTimesForDay = function (day) {
	        return _4.filter(this.data, { day_week: day });
	    };
	    PhxWeekTimesController.prototype.availabeTimesForDay = function (day) {
	        return this.getTimesForDay(day).length;
	    };
	    PhxWeekTimesController.prototype.hasTimeAvailableByDay = function (day) {
	        return this.availabeTimesForDay(day) > 0;
	    };
	    PhxWeekTimesController.prototype.buildAvailableSlotsForDay = function (day) {
	        var allSlots = this.getTimesForDay(day);
	        var partitionSlots = _4.partition(allSlots, { am: true });
	        this.availableTimeSlots = {
	            am: partitionSlots[0],
	            pm: partitionSlots[1],
	            all: allSlots
	        };
	        return this.availableTimeSlots;
	    };
	    PhxWeekTimesController.prototype.selectDay = function (day) {
	        this.selectedDay = day;
	        this.showNextAvailableTimes(day);
	    };
	    PhxWeekTimesController.prototype.autoSelectFirstAvailableDateInCurrentWeek = function () {
	        this.selectedDay = -1;
	        var firstAvailableTime = _4.first(this.data);
	        if (firstAvailableTime) {
	            this.selectDay(firstAvailableTime.day_week);
	        }
	    };
	    PhxWeekTimesController.prototype.showNextAvailableTimes = function (selectedDay) {
	        var availableSlots = this.buildAvailableSlotsForDay(selectedDay);
	        var hasAMTimes = availableSlots.am.length > 0;
	        var hasPMTimes = availableSlots.pm.length > 0;
	        if (hasAMTimes) {
	            this.currentDayPart = 'AM';
	        }
	        else if (hasPMTimes) {
	            this.currentDayPart = 'PM';
	        }
	    };
	    PhxWeekTimesController.prototype.autoSelectSelectedDateTime = function (selectedTime) {
	        this.buildAvailableSlotsForDay(this.selectedTime.day_week);
	        this.__selectedDayPart = selectedTime.am ? 'AM' : 'PM';
	        this.selectedDay = selectedTime.day_week;
	    };
	    Object.defineProperty(PhxWeekTimesController.prototype, "currentDayPart", {
	        get: function () {
	            return this.__selectedDayPart;
	        },
	        set: function (day_part) {
	            this.__selectedDayPart = day_part;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    PhxWeekTimesController.prototype.isPreviousWeekEnabled = function () {
	        var diff = this.next_week_first_day.startOf('week').diff(moment().startOf('week'), 'week');
	        return diff >= 2;
	    };
	    PhxWeekTimesController.prototype.resetAvailableDayTimes = function () {
	        this.availableTimeSlots = {
	            am: [],
	            pm: [],
	            all: []
	        };
	    };
	    PhxWeekTimesController.prototype.nextWeek = function () {
	        var _this = this;
	        this.selectedTime = {};
	        this.selected_Time = {};
	        this.onNextWeekSelection().then(function (times) {
	            _this.data = _this.constructDates(times);
	            var start_of_week = _4.size(_this.data) === 0 ? _this.next_week_first_day : moment(_this.data[0].date).startOf('week');
	            _this.week = _this.getWeek(start_of_week);
	            _this.resetAvailableDayTimes();
	            _this.autoSelectFirstAvailableDateInCurrentWeek();
	            _this.isPreviousWeekEnabled();
	        });
	    };
	    PhxWeekTimesController.prototype.previousWeek = function () {
	        var _this = this;
	        this.selectedTime = {};
	        this.selected_Time = {};
	        this.onPreviousWeekSelection().then(function (times) {
	            _this.data = _this.constructDates(times);
	            var start_of_week = _4.size(_this.data) === 0 ? _this.previous_week_first_day : moment(_this.data[0].date).startOf('week');
	            _this.week = _this.getWeek(start_of_week);
	            _this.resetAvailableDayTimes();
	            _this.autoSelectFirstAvailableDateInCurrentWeek();
	            _this.isPreviousWeekEnabled();
	        });
	    };
	    PhxWeekTimesController.prototype.selectTime = function (time) {
	        if (time.selected) {
	            return;
	        }
	        time.selected = true;
	        _4.forEach(_4.filter(this.data, { selected: true }), function (day) {
	            day.selected = day !== time ? false : day.selected;
	        });
	        this.selected_Time = _4.first(_4.filter(this.data, { selected: true }));
	        this.selected_Date = time.day_week;
	        this.onSelect({ item: this.selected_Time });
	    };
	    PhxWeekTimesController.prototype.amTimeSelected = function (day) {
	        if (this.selectedTime && this.selectedTime.am) {
	            return day === this.selectedTime.day_week;
	        }
	        else if (this.selected_Time && this.selected_Time.am) {
	            return day === this.selected_Date;
	        }
	        else {
	            return false;
	        }
	    };
	    PhxWeekTimesController.prototype.pmTimeSelected = function (day) {
	        if (this.selectedTime && !this.selectedTime.am) {
	            return day === this.selectedTime.day_week;
	        }
	        else if (this.selected_Time && !this.selected_Time.am) {
	            return day === this.selected_Date;
	        }
	        else {
	            return false;
	        }
	    };
	    return PhxWeekTimesController;
	}());
	exports.PhxWeekTimesController = PhxWeekTimesController;
	angular
	    .module('ui-ng-week-times', [])
	    .controller('ngPhxWeekTimesController', PhxWeekTimesController)
	    .component('phxWeekTimes', {
	    templateUrl: 'ui-ng-week-times/src/templates/phx-week-times.html',
	    controller: 'ngPhxWeekTimesController',
	    controllerAs: '$ctrl',
	    bindings: {
	        date: '<',
	        timings: '<',
	        onSelect: '&',
	        selectedTime: '<',
	        onNextWeekSelection: '&',
	        onPreviousWeekSelection: '&'
	    }
	});
	exports.b = 'ui-ng-week-times';


/***/ }),
/* 904 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var NetworkFailureConfiguration = /** @class */ (function () {
	    function NetworkFailureConfiguration($httpProvider) {
	        this.$httpProvider = $httpProvider;
	        this.configuration;
	        this.requestFailures = [];
	        this.responseFailures = {};
	    }
	    NetworkFailureConfiguration.prototype.onRequestFailure = function (fn) {
	        this.requestFailures.push(fn);
	        return this;
	    };
	    NetworkFailureConfiguration.prototype.onResponseFailure = function (status, fn) {
	        this.responseFailures[status] = this.responseFailures[status] || [];
	        this.responseFailures[status].push(fn);
	        return this;
	    };
	    NetworkFailureConfiguration.prototype.configure = function (userConfig) {
	        if (!!userConfig) {
	            this.configuration = _4.defaults({}, userConfig);
	        }
	        return this.configuration;
	    };
	    NetworkFailureConfiguration.prototype.activate = function (userConfig) {
	        this.configure(userConfig);
	        var self = this;
	        this.$httpProvider.interceptors.push(function ($q) {
	            return {
	                requestError: function (rejection) {
	                    if (!rejection) {
	                        return $q.defer();
	                    }
	                    _4.each(self.requestFailures, function (fn) { return fn(rejection); });
	                    return $q.reject(rejection);
	                },
	                responseError: function (rejection) {
	                    if (!rejection) {
	                        return $q.defer();
	                    }
	                    _4.each(self.responseFailures[rejection.status], function (fn) { return fn(rejection); });
	                    return $q.reject(rejection);
	                }
	            };
	        });
	        return this.configuration;
	    };
	    NetworkFailureConfiguration.prototype.$get = function () {
	        return this;
	    };
	    return NetworkFailureConfiguration;
	}());
	exports.NetworkFailureConfiguration = NetworkFailureConfiguration;


/***/ }),
/* 905 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var utility_ts_orm_1 = __webpack_require__(3);
	tslib_1.__exportStar(__webpack_require__(3), exports);
	/**
	 * @what mediate query calling between sources and queries
	 * @why we only want to execute queries once
	 */
	var QueryMediator = /** @class */ (function () {
	    function QueryMediator() {
	    }
	    /**
	     * call once one `run` to register all Queries
	     * @deprecated
	     */
	    QueryMediator.prototype.initialize = function () {
	        // leave the method because we have to be backwards compatible
	    };
	    /**
	     * @deprecated use QueryMediator#run
	     */
	    QueryMediator.prototype.runQueries = function () {
	        var sources = [];
	        for (var _i = 0; _i < arguments.length; _i++) {
	            sources[_i] = arguments[_i];
	        }
	        return utility_ts_orm_1.ORM.run.apply(utility_ts_orm_1.ORM, sources);
	    };
	    /**
	     *
	     * @param query query that needs to execute in response to a command
	     * @param sources {Array} all sources
	     * @returns {*} datasource
	     */
	    QueryMediator.prototype.registerQuery = function (query) {
	        var sources = [];
	        for (var _i = 1; _i < arguments.length; _i++) {
	            sources[_i - 1] = arguments[_i];
	        }
	        utility_ts_orm_1.ORM.registerQuery.apply(utility_ts_orm_1.ORM, tslib_1.__spreadArrays([query], sources));
	        return this;
	    };
	    return QueryMediator;
	}());
	exports.QueryMediator = QueryMediator;


/***/ }),
/* 906 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	/**
	 * @utility-ng-progression
	 */
	var utility_js_progression_1 = __webpack_require__(2195);
	angular.module('utility-ng-progression', []).constant('ngProgression', utility_js_progression_1.Progression).constant('ngReflow', utility_js_progression_1.Reflow);


/***/ }),
/* 907 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.getElement = function (db, k) {
	    return k.hasOwnProperty('id') ? db[k['id']] : !!db[k] ? db[k] : undefined;
	};
	exports.safeCompact = function (v) {
	    return v;
	};


/***/ }),
/* 908 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var db_utilities_1 = __webpack_require__(907);
	var _4 = __webpack_require__(7);
	var Metasource = /** @class */ (function () {
	    function Metasource(__source) {
	        this.__source = __source;
	        this._db = {};
	        this._definitions = [];
	    }
	    /**
	     * erase all meta objects
	     * @deprecated this component auto-writes itself
	     */
	    Metasource.prototype.clear = function () {
	        this._db = {};
	        return this;
	    };
	    /**
	     * get entire meta set
	     */
	    Metasource.prototype.read = function () {
	        return this._db;
	    };
	    /**
	     * @param k
	     */
	    Metasource.prototype.get = function (source) {
	        return !!source['id'] ? this._db[source['id']] : this._db[source];
	    };
	    /**
	     * @param source an element from the datasource
	     */
	    Metasource.prototype.compose = function (source) {
	        var sourceObject = !!source['id'] ? source : this.__source.get(source);
	        return tslib_1.__assign(tslib_1.__assign({}, this.get(source)), sourceObject);
	    };
	    /**
	     * @param source an element from the datasource
	     */
	    Metasource.prototype.composes = function (sources) {
	        var _this = this;
	        return _4.map(sources, function (o) {
	            return _this.compose(o);
	        });
	    };
	    /**
	     * extract a set of meta-objects to match datasource elements
	     * @param lookup an array of T or keys of Datasource<T>
	     */
	    Metasource.prototype.slice = function (lookup) {
	        var _this = this;
	        return _4.compact(_4.map(lookup, function (o) { return db_utilities_1.getElement(_this._db, o); }));
	    };
	    /**
	     * mix all meta objects in to a each of the datasource elements
	     * @param elements optional elements or the entire datasoure
	     */
	    Metasource.prototype.derived = function (fn) {
	        return this.cursor(this.__source.read(), fn);
	    };
	    /**
	     * mix all meta objects in to a subset of the datasource elements
	     * @param elements optional elements or the entire datasoure
	     */
	    Metasource.prototype.cursor = function (elements, fn) {
	        var _this = this;
	        return _4.compact(_4.map(_4.map(elements, function (element) { return _this.compose(element); }), fn));
	    };
	    /**
	     * return a filtered set
	     * @param qry
	     */
	    Metasource.prototype.query = function (qry, iterator) {
	        if (qry === void 0) { qry = function (_0) { return true; }; }
	        return _4.map(_4.filter(this._db, qry), iterator);
	    };
	    /**
	     *
	     * @param attribute key on all elements
	     * @param calculation calculation of the key values
	     */
	    Metasource.prototype.includeAttribute = function (attribute, calculation) {
	        this._definitions.push({
	            attribute: attribute,
	            calculation: calculation,
	            resultType: 'single'
	        });
	        return this;
	    };
	    /**
	     *
	     * @param calculation calculation of multiple metasource key values
	     */
	    Metasource.prototype.includeAttributes = function (calculation) {
	        this._definitions.push({
	            calculation: calculation,
	            resultType: 'multiple'
	        });
	        return this;
	    };
	    /**
	     * @pre d1 has a property with an array of id's. d2 has the id reference
	     * @post d1 has a new property with an underscore prefix of the objects, that exist
	     * @param computeAttribute array of id keys mapped to d2
	     */
	    Metasource.prototype.includeManyToMany = function (attribute, lookupSource, computeAttribute, iterator) {
	        if (iterator === void 0) { iterator = function (_0, v2) { return v2; }; }
	        this._definitions.push({
	            attribute: attribute,
	            calculation: function (entry) {
	                var v1 = entry[computeAttribute];
	                if (!v1) {
	                    return undefined;
	                }
	                return _4.compact(_4.map(_4.compact(_4.map(v1, function (id) {
	                    return lookupSource.get(id);
	                })), function (u) {
	                    return iterator(entry, u);
	                }));
	            },
	            resultType: 'single'
	        });
	        return this;
	    };
	    /**
	     *
	     * @pre d1 has a property with an array of id's. d2 has the id reference
	     * @param attribute array of id keys mapped to d2
	     */
	    Metasource.prototype.includeOneToMany = function (attribute, lookupSource, computeAttribute, iterator) {
	        if (iterator === void 0) { iterator = function (_0, v2) { return v2; }; }
	        this._definitions.push({
	            attribute: attribute,
	            calculation: function (entry) {
	                var v1 = entry[computeAttribute];
	                var v2 = lookupSource.get(v1);
	                return v1 && v2 ? iterator(entry, v2) : undefined;
	            },
	            resultType: 'single'
	        });
	        return this;
	    };
	    /**
	     * calculate all elements
	     */
	    Metasource.prototype.run = function () {
	        var _this = this;
	        this.clear();
	        _4.each(this.__source.read(), function (datasourceEntry) {
	            var entryMetasource = (_this._db[datasourceEntry.id] = {
	                id: datasourceEntry.id
	            });
	            var fullEntry = Object.assign({}, datasourceEntry, entryMetasource);
	            var updateMetaSourceProps = function (entry, definition) {
	                var _a;
	                return definition.resultType === 'multiple'
	                    ? definition.calculation(entry)
	                    : (_a = {}, _a[definition.attribute] = definition.calculation(entry), _a);
	            };
	            _4.each(_this._definitions, function (definition) {
	                _4.merge(fullEntry, updateMetaSourceProps(fullEntry, definition));
	                _4.merge(entryMetasource, updateMetaSourceProps(fullEntry, definition));
	            });
	        });
	        return this;
	    };
	    return Metasource;
	}());
	exports.Metasource = Metasource;


/***/ }),
/* 909 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(7);
	var QUERY_KEY = "__queries__";
	var Query = /** @class */ (function () {
	    function Query() {
	        var sources = [];
	        for (var _i = 0; _i < arguments.length; _i++) {
	            sources[_i] = arguments[_i];
	        }
	        this.register.apply(this, sources);
	    }
	    Object.defineProperty(Query.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    /**
	     *
	     * @param sources
	     */
	    Query.prototype.register = function () {
	        var sources = [];
	        for (var _i = 0; _i < arguments.length; _i++) {
	            sources[_i] = arguments[_i];
	        }
	        Query.registerQuery.apply(Query, tslib_1.__spreadArrays([this], sources));
	    };
	    /**
	     * @param query query that needs to execute in response to a command
	     * @param sources {Array} all sources
	     */
	    Query.registerQuery = function (query) {
	        var sources = [];
	        for (var _i = 1; _i < arguments.length; _i++) {
	            sources[_i - 1] = arguments[_i];
	        }
	        _4.each(sources, function (source) {
	            source[QUERY_KEY] = source[QUERY_KEY] || [];
	            source[QUERY_KEY].push(query);
	        });
	        return query.run();
	    };
	    return Query;
	}());
	exports.Query = Query;


/***/ }),
/* 910 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	/**
	 * A B-tree is a tree with n children at every node
	 */
	var BTreeServant = /** @class */ (function () {
	    function BTreeServant() {
	    }
	    /**
	     * useful for converting a tree to a list to store in a Datasource
	     * @param root top-level list of children
	     * @param options configuration of the key which holds children
	     */
	    BTreeServant.flatten = function (root, options) {
	        return BTreeServant.__flatten(root, _.merge({}, BTreeServant.OPTIONS, options));
	    };
	    BTreeServant.__flatten = function (root, options) {
	        return _4.reduce(root, function (list, node) {
	            return (_4.isArray(node[options.children])
	                ? tslib_1.__spreadArrays(list, [node], BTreeServant.toList(node[options.children], options)) : tslib_1.__spreadArrays(list, [node]));
	        }, []);
	    };
	    /**
	     * loop over each node element
	     * @param root top-level list of children
	     * @param options configuration of the key which holds children
	     */
	    BTreeServant.each = function (root, cb, options) {
	        BTreeServant.__each(root, cb, _.merge({}, BTreeServant.OPTIONS, options));
	        return root;
	    };
	    BTreeServant.__each = function (root, cb, options) {
	        _4.each(root, function (node) {
	            if (_4.isArray(node[options.children])) {
	                BTreeServant.toList(node[options.children], options);
	            }
	            else {
	                cb(node);
	            }
	        });
	    };
	    BTreeServant.OPTIONS = {
	        children: 'children'
	    };
	    /**
	     * @deprecated use BTreeServant.flatten
	     */
	    BTreeServant.toList = BTreeServant.flatten;
	    return BTreeServant;
	}());
	exports.BTreeServant = BTreeServant;


/***/ }),
/* 911 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var string_1 = __webpack_require__(280);
	var regular_expression_1 = __webpack_require__(109);
	var _4 = __webpack_require__(1);
	var ColorRGBType;
	(function (ColorRGBType) {
	    ColorRGBType[ColorRGBType["R"] = 0] = "R";
	    ColorRGBType[ColorRGBType["G"] = 1] = "G";
	    ColorRGBType[ColorRGBType["B"] = 2] = "B";
	})(ColorRGBType || (ColorRGBType = {}));
	var ColorTransformation;
	(function (ColorTransformation) {
	    ColorTransformation[ColorTransformation["shade"] = -1] = "shade";
	    ColorTransformation[ColorTransformation["tint"] = 1] = "tint";
	})(ColorTransformation || (ColorTransformation = {}));
	var ColorUtility = /** @class */ (function () {
	    function ColorUtility() {
	    }
	    ColorUtility.mapWordToTertiaryColor = function (word, colorRule) {
	        if (colorRule === void 0) { colorRule = 'bkg'; }
	        return "clr-" + ((string_1.StringUtility.toNumericHash(word) % 12) + 1) + "-" + colorRule;
	    };
	    /**
	     * Convert three colors to a rgb color
	     * @param r red (0, 255)
	     * @param g green (0, 255)
	     * @param b blue (0, 255)
	     * @returns a color object for r, g, b
	     */
	    ColorUtility.buildColorRGB = function (r, g, b) {
	        return {
	            r: ColorUtility.__clipColor(r),
	            g: ColorUtility.__clipColor(g),
	            b: ColorUtility.__clipColor(b)
	        };
	    };
	    ColorUtility.__clipColor = function (color) {
	        return Math.max(0, Math.min(255, color));
	    };
	    ColorUtility._decimalToHex = function (decimal) {
	        var hex = decimal.toString(16);
	        return hex.length === 1 ? '0' + hex : hex;
	    };
	    ColorUtility._hexToDecimal = function (hex) {
	        return parseInt(hex, 16);
	    };
	    ColorUtility._colorToColorNumber = function (value) {
	        return typeof value === 'number' && value === value ? value : parseInt(value, 10);
	    };
	    ColorUtility.__transformColorByPercentage = function (percent, color) {
	        var _color = ColorUtility.__clipColor(color);
	        return percent < 0 ? ColorUtility.__shadeColor(percent * -1, _color) : ColorUtility.__tintColor(percent, _color);
	    };
	    /**
	     * @param percent is > 0
	     * @param color (0 <= n <= 255)
	     */
	    ColorUtility.__shadeColor = function (percent, color) {
	        return color * (1 - percent);
	    };
	    /**
	     * @param percent is > 0
	     */
	    ColorUtility.__tintColor = function (percent, color) {
	        return color + (255 - color) * Math.abs(percent);
	    };
	    /**
	     * Uses the background color to determine whether the text color should
	     * be black or white. The formula used is W3C guidelines compliant.
	     * https://www.w3.org/TR/WCAG20/#relativeluminancedef
	     * @param bgHexColor background color
	     */
	    ColorUtility.getTextColorForBackgroundColor = function (bgHexColor) {
	        var rgb = this.hexToRgb(bgHexColor);
	        var backgroundUIColor = [rgb.r / 255, rgb.b / 255, rgb.g / 255];
	        var W3CRelativeRGB = _4.map(backgroundUIColor, function (color) {
	            return color <= 0.03928 ? color / 12.92 : Math.pow((color + 0.055) / 1.055, 2.4);
	        });
	        var relativeLuminance = 0.2126 * W3CRelativeRGB[0] + 0.7152 * W3CRelativeRGB[1] + 0.0722 * W3CRelativeRGB[2];
	        return relativeLuminance > 0.179 ? 'black' : 'white';
	    };
	    ColorUtility.convertHexToRgb = function (hexValue) {
	        var color = this.hexRegex.exec(hexValue).slice(1, 4);
	        return [this.hexToDecimal(color[0]), this.hexToDecimal(color[1]), this.hexToDecimal(color[2])];
	    };
	    ColorUtility.convertRgbToHex = function (rgbValue) {
	        return '#' + this.decimalToHex(rgbValue[0]) + this.decimalToHex(rgbValue[1]) + this.decimalToHex(rgbValue[2]) + '';
	    };
	    ColorUtility.transformHexToHex = function (hexValue, percent) {
	        return this.convertRgbToHex(this.transformColor2(this.convertHexToRgb(hexValue), percent));
	    };
	    ColorUtility.transformRgbToRgb = function (rgbValue, percent) {
	        if (_4.isString(rgbValue)) {
	            rgbValue = (rgbValue + '').split(',');
	        }
	        return this.transformColor2(rgbValue, percent);
	    };
	    ColorUtility.transformRgbToHex = function (rgbValue, percent) {
	        if (_4.isString(rgbValue)) {
	            rgbValue = (rgbValue + '').split(',');
	        }
	        return this.convertRgbToHex(this.transformColor2(rgbValue, percent));
	    };
	    ColorUtility.transformHexToRgb = function (hexValue, percent) {
	        return this.transformColor2(this.convertHexToRgb(hexValue), percent);
	    };
	    ColorUtility.getAllTintsOfHex = function (hexValue) {
	        return {
	            tint_10: this.transformHexToHex(hexValue, 0.9),
	            tint_20: this.transformHexToHex(hexValue, 0.8),
	            tint_30: this.transformHexToHex(hexValue, 0.7),
	            tint_40: this.transformHexToHex(hexValue, 0.6),
	            tint_50: this.transformHexToHex(hexValue, 0.5),
	            tint_60: this.transformHexToHex(hexValue, 0.4),
	            tint_70: this.transformHexToHex(hexValue, 0.3),
	            tint_80: this.transformHexToHex(hexValue, 0.2),
	            tint_90: this.transformHexToHex(hexValue, 0.1)
	        };
	    };
	    ColorUtility.getAllTintsOfRgb = function (rgbValue) {
	        return {
	            tint_10: this.transformRgbToRgb(rgbValue, 0.9),
	            tint_20: this.transformRgbToRgb(rgbValue, 0.8),
	            tint_30: this.transformRgbToRgb(rgbValue, 0.7),
	            tint_40: this.transformRgbToRgb(rgbValue, 0.6),
	            tint_50: this.transformRgbToRgb(rgbValue, 0.5),
	            tint_60: this.transformRgbToRgb(rgbValue, 0.4),
	            tint_70: this.transformRgbToRgb(rgbValue, 0.3),
	            tint_80: this.transformRgbToRgb(rgbValue, 0.2),
	            tint_90: this.transformRgbToRgb(rgbValue, 0.1)
	        };
	    };
	    ColorUtility.getAllShadesOfHex = function (hexValue) {
	        return {
	            shade_10: this.transformHexToHex(hexValue, -0.1),
	            shade_20: this.transformHexToHex(hexValue, -0.2),
	            shade_30: this.transformHexToHex(hexValue, -0.3),
	            shade_40: this.transformHexToHex(hexValue, -0.4),
	            shade_50: this.transformHexToHex(hexValue, -0.5),
	            shade_60: this.transformHexToHex(hexValue, -0.6),
	            shade_70: this.transformHexToHex(hexValue, -0.7),
	            shade_80: this.transformHexToHex(hexValue, -0.8),
	            shade_90: this.transformHexToHex(hexValue, -0.9)
	        };
	    };
	    ColorUtility.getAllShadesOfRgb = function (rgbValue) {
	        return {
	            shade_10: this.transformRgbToRgb(rgbValue, -0.1),
	            shade_20: this.transformRgbToRgb(rgbValue, -0.2),
	            shade_30: this.transformRgbToRgb(rgbValue, -0.3),
	            shade_40: this.transformRgbToRgb(rgbValue, -0.4),
	            shade_50: this.transformRgbToRgb(rgbValue, -0.5),
	            shade_60: this.transformRgbToRgb(rgbValue, -0.6),
	            shade_70: this.transformRgbToRgb(rgbValue, -0.7),
	            shade_80: this.transformRgbToRgb(rgbValue, -0.8),
	            shade_90: this.transformRgbToRgb(rgbValue, -0.9)
	        };
	    };
	    ColorUtility.universityStyles = {};
	    /**
	     * Convert a rgb color to a hexadecimal string
	     */
	    ColorUtility.rgbToHex = _4.curry(function (colorRGB) {
	        var r = ColorUtility._decimalToHex(colorRGB.r);
	        var g = ColorUtility._decimalToHex(colorRGB.g);
	        var b = ColorUtility._decimalToHex(colorRGB.b);
	        return "#" + r + g + b;
	    });
	    /**
	     * Convert a hexadecimal string to a rgb color
	     */
	    ColorUtility.hexToRgb = _4.curry(function (colorHex) {
	        var color = regular_expression_1.RegularExpression.exec(regular_expression_1.RegularExpression.COLOR_HEX, colorHex).slice(1, 4);
	        return ColorUtility.buildColorRGB(ColorUtility._hexToDecimal(color[ColorRGBType.R]), ColorUtility._hexToDecimal(color[ColorRGBType.G]), ColorUtility._hexToDecimal(color[ColorRGBType.B]));
	    });
	    /**
	     * Convert a css rgb string to a rgb color
	     */
	    ColorUtility.cssRgbToRgb = _4.curry(function (colorCssRGB) {
	        var colorRGB = regular_expression_1.RegularExpression.split(regular_expression_1.RegularExpression.COLOR_CSS_RGBA, colorCssRGB).slice(1);
	        return ColorUtility.buildColorRGB(parseInt(colorRGB[ColorRGBType.R], 10), parseInt(colorRGB[ColorRGBType.G], 10), parseInt(colorRGB[ColorRGBType.B], 10));
	    });
	    /**
	     * Convert a rgb array to a rgb color
	     */
	    ColorUtility.listRgbToRgb = _4.curry(function (colorRawRGB) {
	        return ColorUtility.buildColorRGB(ColorUtility._colorToColorNumber(colorRawRGB[ColorRGBType.R]), ColorUtility._colorToColorNumber(colorRawRGB[ColorRGBType.R]), ColorUtility._colorToColorNumber(colorRawRGB[ColorRGBType.R]));
	    });
	    /**
	     * Tint a rgb color by a percentage between -1 and 1
	     * @param percent is negative or positive tint
	     */
	    ColorUtility.transformColor = _4.curry(function (percent, colorRGB) {
	        return ColorUtility.buildColorRGB(ColorUtility.__transformColorByPercentage(percent, colorRGB.r), ColorUtility.__transformColorByPercentage(percent, colorRGB.g), ColorUtility.__transformColorByPercentage(percent, colorRGB.b));
	    });
	    /**
	     * transform
	     */
	    ColorUtility.buildColorSet = _4.curry(function (colorTransformation, colorRGB) {
	        return {
	            _10: ColorUtility.transformColor(colorTransformation * 0.1, colorRGB),
	            _20: ColorUtility.transformColor(colorTransformation * 0.2, colorRGB),
	            _30: ColorUtility.transformColor(colorTransformation * 0.3, colorRGB),
	            _40: ColorUtility.transformColor(colorTransformation * 0.4, colorRGB),
	            _50: ColorUtility.transformColor(colorTransformation * 0.5, colorRGB),
	            _60: ColorUtility.transformColor(colorTransformation * 0.6, colorRGB),
	            _70: ColorUtility.transformColor(colorTransformation * 0.7, colorRGB),
	            _80: ColorUtility.transformColor(colorTransformation * 0.8, colorRGB),
	            _90: ColorUtility.transformColor(colorTransformation * 0.9, colorRGB)
	        };
	    });
	    ColorUtility.buildShades = ColorUtility.buildColorSet(ColorTransformation.shade);
	    ColorUtility.buildTints = ColorUtility.buildColorSet(ColorTransformation.tint);
	    // OLD COLOR UTILITY
	    ColorUtility.hexRegex = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;
	    ColorUtility.transformColor2 = function (primaries, percent) {
	        var baseNumber = percent < 0 ? 0 : 255; //if given a negative, make darker, positive makes lighter
	        var percentChange = percent < 0 ? percent * -1 : percent;
	        var R = parseInt(primaries[0]);
	        var G = parseInt(primaries[1]);
	        var B = parseInt(primaries[2]);
	        var calculateNewValue = function (primaryColor) {
	            return Math.round((baseNumber - primaryColor) * percentChange) + primaryColor;
	        };
	        return [calculateNewValue(R), calculateNewValue(G), calculateNewValue(B)];
	    };
	    ColorUtility.decimalToHex = function (decimal) {
	        var hex = decimal.toString(16);
	        if (hex.length === 1) {
	            hex = '0' + hex;
	        }
	        return hex;
	    };
	    ColorUtility.hexToDecimal = function (hex) {
	        return parseInt(hex, 16);
	    };
	    return ColorUtility;
	}());
	exports.ColorUtility = ColorUtility;


/***/ }),
/* 912 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var IteratorUtility = /** @class */ (function () {
	    function IteratorUtility(arr) {
	        this.__iterable = arr[Symbol.iterator]();
	        this.__current = this.__iterable.next();
	    }
	    Object.defineProperty(IteratorUtility.prototype, "currentValue", {
	        get: function () {
	            return this.__current.value;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(IteratorUtility.prototype, "isDone", {
	        get: function () {
	            return !!this.__current.done;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    IteratorUtility.prototype.next = function () {
	        this.__current = this.__iterable.next();
	        return this.__current.value;
	    };
	    return IteratorUtility;
	}());
	exports.IteratorUtility = IteratorUtility;


/***/ }),
/* 913 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var NumberUtility = /** @class */ (function () {
	    function NumberUtility() {
	    }
	    NumberUtility.formatNumber = _4.curry(function (formatFunction, numberToFormat) {
	        return formatFunction(parseFloat(numberToFormat));
	    });
	    NumberUtility.stripTrailingZeroes = NumberUtility.formatNumber(function (number) {
	        return number === 0 ? String(0) : String(number).replace(/\.+$/, '');
	    });
	    return NumberUtility;
	}());
	exports.NumberUtility = NumberUtility;


/***/ }),
/* 914 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var regular_expression_1 = __webpack_require__(109);
	var _4 = __webpack_require__(1);
	/**
	 * handles a phonenumber {string}
	 */
	var PhoneNumberUtility = /** @class */ (function () {
	    function PhoneNumberUtility() {
	    }
	    PhoneNumberUtility.isValidPhoneNumber = function (phoneNum) {
	        return (!_4.isUndefined(phoneNum) &&
	            !_4.isNull(phoneNum.match(regular_expression_1.RegularExpression.PHONE_NUMBER)) &&
	            _4.inRange(phoneNum.match(regular_expression_1.RegularExpression.DIGITS).length, 10, 12));
	    };
	    PhoneNumberUtility.sanitizeStandard = function (phoneNumber) {
	        var phoneNumberDigits = (phoneNumber + '').match(regular_expression_1.RegularExpression.DIGITS);
	        var truncatedPhoneNumber = !!phoneNumberDigits ? phoneNumberDigits.splice(0, 11).join('') : '';
	        return truncatedPhoneNumber.length === 10 ? "1" + truncatedPhoneNumber : truncatedPhoneNumber;
	    };
	    PhoneNumberUtility.formatStandard = function (phoneNumber) {
	        return phoneNumber.slice(0, 1) + "." + phoneNumber.slice(1, 4) + "." + phoneNumber.slice(4, 7) + "." + phoneNumber.slice(7, 11);
	    };
	    PhoneNumberUtility.getDisplayNumber = function (cleanPhoneNumber) {
	        return PhoneNumberUtility.formatStandard(PhoneNumberUtility.sanitizeStandard(cleanPhoneNumber));
	    };
	    PhoneNumberUtility.sanitizePhoneNumber = PhoneNumberUtility.sanitizeStandard;
	    return PhoneNumberUtility;
	}());
	exports.PhoneNumberUtility = PhoneNumberUtility;


/***/ }),
/* 915 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var TimeUtility = /** @class */ (function () {
	    function TimeUtility() {
	    }
	    /**
	     * @deprecated __parseTime internally or parseTime externally
	     */
	    TimeUtility.getMoment = function (_time) {
	        if (typeof _time === 'number') {
	            return moment.unix(_time);
	        }
	        else if (moment.isMoment(_time)) {
	            return _time;
	        }
	        else {
	            return moment(_time);
	        }
	    };
	    /**
	     * @deprecated formatTime
	     */
	    TimeUtility.getDateFormatted = _4.curry(function (format, _time) {
	        return TimeUtility.__parseTime(_time).format(format);
	    });
	    /**
	     * @deprecated formatMonthDayYear
	     */
	    TimeUtility.getDateMonthDayYear = TimeUtility.getDateFormatted('MMM D, YYYY');
	    /**
	     * @deprecated formatWeekdayMonthDay
	     */
	    TimeUtility.getWeekDayMonthDay = TimeUtility.getDateFormatted('ddd, MMM D');
	    /**
	     * @deprecated formatMonthDay
	     */
	    TimeUtility.getDateMonthDay = TimeUtility.getDateFormatted('MMM D');
	    TimeUtility.formatTime = _4.curry(function (format, _time) {
	        return TimeUtility.__parseTime(_time).format(format);
	    });
	    TimeUtility.parseTime = _4.curry(function (format, _time) {
	        return TimeUtility.__parseTime(_time, format);
	    });
	    TimeUtility.__parseTime = function (_time, format) {
	        if (format === void 0) { format = ''; }
	        if (typeof _time === 'number') {
	            return moment.unix(_time);
	        }
	        else if (moment.isMoment(_time)) {
	            return _time;
	        }
	        else {
	            return moment(_time, format);
	        }
	    };
	    // formatters
	    TimeUtility.formatMonthDayYear = TimeUtility.getDateFormatted('MMM D, YYYY');
	    TimeUtility.formatWeekdayMonthDay = TimeUtility.getDateFormatted('ddd, MMM D');
	    TimeUtility.formatMonthDay = TimeUtility.getDateFormatted('MMM D');
	    // parsers
	    TimeUtility.parseYearMonthDay = TimeUtility.parseTime("YYYY-MM-DD");
	    // calculations
	    TimeUtility.isAfterDate = _4.curry(function (time1, time2) {
	        var _time1 = TimeUtility.__parseTime(time1);
	        var _time2 = TimeUtility.__parseTime(time2);
	        return _time2.isAfter(_time1);
	    });
	    TimeUtility.isBeforeDate = _4.curry(function (time1, time2) {
	        var _time1 = TimeUtility.__parseTime(time1);
	        var _time2 = TimeUtility.__parseTime(time2);
	        return _time2.isBefore(_time1);
	    });
	    TimeUtility.isBeforeNow = _4.curry(function (_time) { return TimeUtility.isBeforeDate(moment(), _time); });
	    TimeUtility.isAfterNow = _4.curry(function (_time) { return TimeUtility.isAfterDate(moment(), _time); });
	    TimeUtility.isBeforeEndOfToday = _4.curry(function (_time) {
	        return TimeUtility.isBeforeDate(moment(), TimeUtility.__parseTime(_time).endOf('day'));
	    });
	    TimeUtility.isAfterEndOfToday = _4.curry(function (_time) {
	        return TimeUtility.isAfterDate(moment(), TimeUtility.__parseTime(_time).endOf('day'));
	    });
	    TimeUtility.getDurationByUnit = _4.curry(function (unit, diff) { return moment.duration(diff, unit); });
	    TimeUtility.getDurationMilliseconds = TimeUtility.getDurationByUnit('milliseconds');
	    TimeUtility.getDiffBetweenTimes = _4.curry(function (unit, time1, time2) {
	        var _time1 = TimeUtility.__parseTime(time1);
	        var _time2 = TimeUtility.__parseTime(time2);
	        return _time1.diff(_time2, unit);
	    });
	    TimeUtility.getDiffBetweenTimesMilliseconds = TimeUtility.getDiffBetweenTimes('milliseconds');
	    TimeUtility.getDiffBetweenTimesDays = TimeUtility.getDiffBetweenTimes('days');
	    TimeUtility.getDaysBetweenNowAndTime = _4.curry(function (_time) { return TimeUtility.getDiffBetweenTimesDays(moment(), _time); });
	    TimeUtility.getHumanTimeDiff = _4.curry(function (time1, time2) {
	        return TimeUtility.getDurationMilliseconds(TimeUtility.getDiffBetweenTimesMilliseconds(time1, time2)).humanize();
	    });
	    TimeUtility.isSameByUnit = _4.curry(function (unit, time1, time2) {
	        var _time1 = TimeUtility.__parseTime(time1);
	        var _time2 = TimeUtility.__parseTime(time2);
	        return _time1.isSame(_time2, unit);
	    });
	    TimeUtility.isSameMillisecond = TimeUtility.isSameByUnit('millisecond');
	    TimeUtility.isSameYear = TimeUtility.isSameByUnit('year');
	    TimeUtility.isCurrentYear = _4.curry(function (_time) { return TimeUtility.isSameYear(moment(), _time); });
	    return TimeUtility;
	}());
	exports.TimeUtility = TimeUtility;


/***/ }),
/* 916 */
/***/ (function(module, exports, __webpack_require__) {

	var map = {
		"./af": 302,
		"./af.js": 302,
		"./ar": 310,
		"./ar-dz": 303,
		"./ar-dz.js": 303,
		"./ar-kw": 304,
		"./ar-kw.js": 304,
		"./ar-ly": 305,
		"./ar-ly.js": 305,
		"./ar-ma": 306,
		"./ar-ma.js": 306,
		"./ar-ps": 307,
		"./ar-ps.js": 307,
		"./ar-sa": 308,
		"./ar-sa.js": 308,
		"./ar-tn": 309,
		"./ar-tn.js": 309,
		"./ar.js": 310,
		"./az": 311,
		"./az.js": 311,
		"./be": 312,
		"./be.js": 312,
		"./bg": 313,
		"./bg.js": 313,
		"./bm": 314,
		"./bm.js": 314,
		"./bn": 316,
		"./bn-bd": 315,
		"./bn-bd.js": 315,
		"./bn.js": 316,
		"./bo": 317,
		"./bo.js": 317,
		"./br": 318,
		"./br.js": 318,
		"./bs": 319,
		"./bs.js": 319,
		"./ca": 320,
		"./ca.js": 320,
		"./cs": 321,
		"./cs.js": 321,
		"./cv": 322,
		"./cv.js": 322,
		"./cy": 323,
		"./cy.js": 323,
		"./da": 324,
		"./da.js": 324,
		"./de": 327,
		"./de-at": 325,
		"./de-at.js": 325,
		"./de-ch": 326,
		"./de-ch.js": 326,
		"./de.js": 327,
		"./dv": 328,
		"./dv.js": 328,
		"./el": 329,
		"./el.js": 329,
		"./en-au": 330,
		"./en-au.js": 330,
		"./en-ca": 331,
		"./en-ca.js": 331,
		"./en-gb": 332,
		"./en-gb.js": 332,
		"./en-ie": 333,
		"./en-ie.js": 333,
		"./en-il": 334,
		"./en-il.js": 334,
		"./en-in": 335,
		"./en-in.js": 335,
		"./en-nz": 336,
		"./en-nz.js": 336,
		"./en-sg": 337,
		"./en-sg.js": 337,
		"./eo": 338,
		"./eo.js": 338,
		"./es": 342,
		"./es-do": 339,
		"./es-do.js": 339,
		"./es-mx": 340,
		"./es-mx.js": 340,
		"./es-us": 341,
		"./es-us.js": 341,
		"./es.js": 342,
		"./et": 343,
		"./et.js": 343,
		"./eu": 344,
		"./eu.js": 344,
		"./fa": 345,
		"./fa.js": 345,
		"./fi": 346,
		"./fi.js": 346,
		"./fil": 347,
		"./fil.js": 347,
		"./fo": 348,
		"./fo.js": 348,
		"./fr": 351,
		"./fr-ca": 349,
		"./fr-ca.js": 349,
		"./fr-ch": 350,
		"./fr-ch.js": 350,
		"./fr.js": 351,
		"./fy": 352,
		"./fy.js": 352,
		"./ga": 353,
		"./ga.js": 353,
		"./gd": 354,
		"./gd.js": 354,
		"./gl": 355,
		"./gl.js": 355,
		"./gom-deva": 356,
		"./gom-deva.js": 356,
		"./gom-latn": 357,
		"./gom-latn.js": 357,
		"./gu": 358,
		"./gu.js": 358,
		"./he": 359,
		"./he.js": 359,
		"./hi": 360,
		"./hi.js": 360,
		"./hr": 361,
		"./hr.js": 361,
		"./hu": 362,
		"./hu.js": 362,
		"./hy-am": 363,
		"./hy-am.js": 363,
		"./id": 364,
		"./id.js": 364,
		"./is": 365,
		"./is.js": 365,
		"./it": 367,
		"./it-ch": 366,
		"./it-ch.js": 366,
		"./it.js": 367,
		"./ja": 368,
		"./ja.js": 368,
		"./jv": 369,
		"./jv.js": 369,
		"./ka": 370,
		"./ka.js": 370,
		"./kk": 371,
		"./kk.js": 371,
		"./km": 372,
		"./km.js": 372,
		"./kn": 373,
		"./kn.js": 373,
		"./ko": 374,
		"./ko.js": 374,
		"./ku": 376,
		"./ku-kmr": 375,
		"./ku-kmr.js": 375,
		"./ku.js": 376,
		"./ky": 377,
		"./ky.js": 377,
		"./lb": 378,
		"./lb.js": 378,
		"./lo": 379,
		"./lo.js": 379,
		"./lt": 380,
		"./lt.js": 380,
		"./lv": 381,
		"./lv.js": 381,
		"./me": 382,
		"./me.js": 382,
		"./mi": 383,
		"./mi.js": 383,
		"./mk": 384,
		"./mk.js": 384,
		"./ml": 385,
		"./ml.js": 385,
		"./mn": 386,
		"./mn.js": 386,
		"./mr": 387,
		"./mr.js": 387,
		"./ms": 389,
		"./ms-my": 388,
		"./ms-my.js": 388,
		"./ms.js": 389,
		"./mt": 390,
		"./mt.js": 390,
		"./my": 391,
		"./my.js": 391,
		"./nb": 392,
		"./nb.js": 392,
		"./ne": 393,
		"./ne.js": 393,
		"./nl": 395,
		"./nl-be": 394,
		"./nl-be.js": 394,
		"./nl.js": 395,
		"./nn": 396,
		"./nn.js": 396,
		"./oc-lnc": 397,
		"./oc-lnc.js": 397,
		"./pa-in": 398,
		"./pa-in.js": 398,
		"./pl": 399,
		"./pl.js": 399,
		"./pt": 401,
		"./pt-br": 400,
		"./pt-br.js": 400,
		"./pt.js": 401,
		"./ro": 402,
		"./ro.js": 402,
		"./ru": 403,
		"./ru.js": 403,
		"./sd": 404,
		"./sd.js": 404,
		"./se": 405,
		"./se.js": 405,
		"./si": 406,
		"./si.js": 406,
		"./sk": 407,
		"./sk.js": 407,
		"./sl": 408,
		"./sl.js": 408,
		"./sq": 409,
		"./sq.js": 409,
		"./sr": 411,
		"./sr-cyrl": 410,
		"./sr-cyrl.js": 410,
		"./sr.js": 411,
		"./ss": 412,
		"./ss.js": 412,
		"./sv": 413,
		"./sv.js": 413,
		"./sw": 414,
		"./sw.js": 414,
		"./ta": 415,
		"./ta.js": 415,
		"./te": 416,
		"./te.js": 416,
		"./tet": 417,
		"./tet.js": 417,
		"./tg": 418,
		"./tg.js": 418,
		"./th": 419,
		"./th.js": 419,
		"./tk": 420,
		"./tk.js": 420,
		"./tl-ph": 421,
		"./tl-ph.js": 421,
		"./tlh": 422,
		"./tlh.js": 422,
		"./tr": 423,
		"./tr.js": 423,
		"./tzl": 424,
		"./tzl.js": 424,
		"./tzm": 426,
		"./tzm-latn": 425,
		"./tzm-latn.js": 425,
		"./tzm.js": 426,
		"./ug-cn": 427,
		"./ug-cn.js": 427,
		"./uk": 428,
		"./uk.js": 428,
		"./ur": 429,
		"./ur.js": 429,
		"./uz": 431,
		"./uz-latn": 430,
		"./uz-latn.js": 430,
		"./uz.js": 431,
		"./vi": 432,
		"./vi.js": 432,
		"./x-pseudo": 433,
		"./x-pseudo.js": 433,
		"./yo": 434,
		"./yo.js": 434,
		"./zh-cn": 435,
		"./zh-cn.js": 435,
		"./zh-hk": 436,
		"./zh-hk.js": 436,
		"./zh-mo": 437,
		"./zh-mo.js": 437,
		"./zh-tw": 438,
		"./zh-tw.js": 438
	};
	function webpackContext(req) {
		return __webpack_require__(webpackContextResolve(req));
	};
	function webpackContextResolve(req) {
		return map[req] || (function() { throw new Error("Cannot find module '" + req + "'.") }());
	};
	webpackContext.keys = function webpackContextKeys() {
		return Object.keys(map);
	};
	webpackContext.resolve = webpackContextResolve;
	module.exports = webpackContext;
	webpackContext.id = 916;


/***/ }),
/* 917 */
/***/ (function(module, exports) {

	'use strict';
	
	/**
	 * @license AngularJS v1.8.2
	 * (c) 2010-2020 Google LLC. http://angularjs.org
	 * License: MIT
	 */
	(function (window, angular) {
	  'use strict';
	
	  /**
	   * @ngdoc module
	   * @name ngAria
	   * @description
	   *
	   * The `ngAria` module provides support for common
	   * [<abbr title="Accessible Rich Internet Applications">ARIA</abbr>](http://www.w3.org/TR/wai-aria/)
	   * attributes that convey state or semantic information about the application for users
	   * of assistive technologies, such as screen readers.
	   *
	   * ## Usage
	   *
	   * For ngAria to do its magic, simply include the module `ngAria` as a dependency. The following
	   * directives are supported:
	   * `ngModel`, `ngChecked`, `ngReadonly`, `ngRequired`, `ngValue`, `ngDisabled`, `ngShow`, `ngHide`,
	   * `ngClick`, `ngDblClick`, and `ngMessages`.
	   *
	   * Below is a more detailed breakdown of the attributes handled by ngAria:
	   *
	   * | Directive                                   | Supported Attributes                                                                                |
	   * |---------------------------------------------|-----------------------------------------------------------------------------------------------------|
	   * | {@link ng.directive:ngModel ngModel}        | aria-checked, aria-valuemin, aria-valuemax, aria-valuenow, aria-invalid, aria-required, input roles |
	   * | {@link ng.directive:ngDisabled ngDisabled}  | aria-disabled                                                                                       |
	   * | {@link ng.directive:ngRequired ngRequired}  | aria-required                                                                                       |
	   * | {@link ng.directive:ngChecked ngChecked}    | aria-checked                                                                                        |
	   * | {@link ng.directive:ngReadonly ngReadonly}  | aria-readonly                                                                                       |
	   * | {@link ng.directive:ngValue ngValue}        | aria-checked                                                                                        |
	   * | {@link ng.directive:ngShow ngShow}          | aria-hidden                                                                                         |
	   * | {@link ng.directive:ngHide ngHide}          | aria-hidden                                                                                         |
	   * | {@link ng.directive:ngDblclick ngDblclick}  | tabindex                                                                                            |
	   * | {@link module:ngMessages ngMessages}        | aria-live                                                                                           |
	   * | {@link ng.directive:ngClick ngClick}        | tabindex, keydown event, button role                                                                |
	   *
	   * Find out more information about each directive by reading the
	   * {@link guide/accessibility ngAria Developer Guide}.
	   *
	   * ## Example
	   * Using ngDisabled with ngAria:
	   * ```html
	   * <md-checkbox ng-disabled="disabled">
	   * ```
	   * Becomes:
	   * ```html
	   * <md-checkbox ng-disabled="disabled" aria-disabled="true">
	   * ```
	   *
	   * ## Disabling Specific Attributes
	   * It is possible to disable individual attributes added by ngAria with the
	   * {@link ngAria.$ariaProvider#config config} method. For more details, see the
	   * {@link guide/accessibility Developer Guide}.
	   *
	   * ## Disabling `ngAria` on Specific Elements
	   * It is possible to make `ngAria` ignore a specific element, by adding the `ng-aria-disable`
	   * attribute on it. Note that only the element itself (and not its child elements) will be ignored.
	   */
	
	  var ARIA_DISABLE_ATTR = 'ngAriaDisable';
	
	  var ngAriaModule = angular.module('ngAria', ['ng']).info({ angularVersion: '1.8.2' }).provider('$aria', $AriaProvider);
	
	  /**
	  * Internal Utilities
	  */
	  var nativeAriaNodeNames = ['BUTTON', 'A', 'INPUT', 'TEXTAREA', 'SELECT', 'DETAILS', 'SUMMARY'];
	
	  var isNodeOneOf = function isNodeOneOf(elem, nodeTypeArray) {
	    if (nodeTypeArray.indexOf(elem[0].nodeName) !== -1) {
	      return true;
	    }
	  };
	  /**
	   * @ngdoc provider
	   * @name $ariaProvider
	   * @this
	   *
	   * @description
	   *
	   * Used for configuring the ARIA attributes injected and managed by ngAria.
	   *
	   * ```js
	   * angular.module('myApp', ['ngAria'], function config($ariaProvider) {
	   *   $ariaProvider.config({
	   *     ariaValue: true,
	   *     tabindex: false
	   *   });
	   * });
	   *```
	   *
	   * ## Dependencies
	   * Requires the {@link ngAria} module to be installed.
	   *
	   */
	  function $AriaProvider() {
	    var _config = {
	      ariaHidden: true,
	      ariaChecked: true,
	      ariaReadonly: true,
	      ariaDisabled: true,
	      ariaRequired: true,
	      ariaInvalid: true,
	      ariaValue: true,
	      tabindex: true,
	      bindKeydown: true,
	      bindRoleForClick: true
	    };
	
	    /**
	     * @ngdoc method
	     * @name $ariaProvider#config
	     *
	     * @param {object} config object to enable/disable specific ARIA attributes
	     *
	     *  - **ariaHidden** – `{boolean}` – Enables/disables aria-hidden tags
	     *  - **ariaChecked** – `{boolean}` – Enables/disables aria-checked tags
	     *  - **ariaReadonly** – `{boolean}` – Enables/disables aria-readonly tags
	     *  - **ariaDisabled** – `{boolean}` – Enables/disables aria-disabled tags
	     *  - **ariaRequired** – `{boolean}` – Enables/disables aria-required tags
	     *  - **ariaInvalid** – `{boolean}` – Enables/disables aria-invalid tags
	     *  - **ariaValue** – `{boolean}` – Enables/disables aria-valuemin, aria-valuemax and
	     *    aria-valuenow tags
	     *  - **tabindex** – `{boolean}` – Enables/disables tabindex tags
	     *  - **bindKeydown** – `{boolean}` – Enables/disables keyboard event binding on non-interactive
	     *    elements (such as `div` or `li`) using ng-click, making them more accessible to users of
	     *    assistive technologies
	     *  - **bindRoleForClick** – `{boolean}` – Adds role=button to non-interactive elements (such as
	     *    `div` or `li`) using ng-click, making them more accessible to users of assistive
	     *    technologies
	     *
	     * @description
	     * Enables/disables various ARIA attributes
	     */
	    this.config = function (newConfig) {
	      _config = angular.extend(_config, newConfig);
	    };
	
	    function watchExpr(attrName, ariaAttr, nativeAriaNodeNames, negate) {
	      return function (scope, elem, attr) {
	        if (attr.hasOwnProperty(ARIA_DISABLE_ATTR)) return;
	
	        var ariaCamelName = attr.$normalize(ariaAttr);
	        if (_config[ariaCamelName] && !isNodeOneOf(elem, nativeAriaNodeNames) && !attr[ariaCamelName]) {
	          scope.$watch(attr[attrName], function (boolVal) {
	            // ensure boolean value
	            boolVal = negate ? !boolVal : !!boolVal;
	            elem.attr(ariaAttr, boolVal);
	          });
	        }
	      };
	    }
	    /**
	     * @ngdoc service
	     * @name $aria
	     *
	     * @description
	     *
	     * The $aria service contains helper methods for applying common
	     * [ARIA](http://www.w3.org/TR/wai-aria/) attributes to HTML directives.
	     *
	     * ngAria injects common accessibility attributes that tell assistive technologies when HTML
	     * elements are enabled, selected, hidden, and more. To see how this is performed with ngAria,
	     * let's review a code snippet from ngAria itself:
	     *
	     *```js
	     * ngAriaModule.directive('ngDisabled', ['$aria', function($aria) {
	     *   return $aria.$$watchExpr('ngDisabled', 'aria-disabled', nativeAriaNodeNames, false);
	     * }])
	     *```
	     * Shown above, the ngAria module creates a directive with the same signature as the
	     * traditional `ng-disabled` directive. But this ngAria version is dedicated to
	     * solely managing accessibility attributes on custom elements. The internal `$aria` service is
	     * used to watch the boolean attribute `ngDisabled`. If it has not been explicitly set by the
	     * developer, `aria-disabled` is injected as an attribute with its value synchronized to the
	     * value in `ngDisabled`.
	     *
	     * Because ngAria hooks into the `ng-disabled` directive, developers do not have to do
	     * anything to enable this feature. The `aria-disabled` attribute is automatically managed
	     * simply as a silent side-effect of using `ng-disabled` with the ngAria module.
	     *
	     * The full list of directives that interface with ngAria:
	     * * **ngModel**
	     * * **ngChecked**
	     * * **ngReadonly**
	     * * **ngRequired**
	     * * **ngDisabled**
	     * * **ngValue**
	     * * **ngShow**
	     * * **ngHide**
	     * * **ngClick**
	     * * **ngDblclick**
	     * * **ngMessages**
	     *
	     * Read the {@link guide/accessibility ngAria Developer Guide} for a thorough explanation of each
	     * directive.
	     *
	     *
	     * ## Dependencies
	     * Requires the {@link ngAria} module to be installed.
	     */
	    this.$get = function () {
	      return {
	        config: function config(key) {
	          return _config[key];
	        },
	        $$watchExpr: watchExpr
	      };
	    };
	  }
	
	  ngAriaModule.directive('ngShow', ['$aria', function ($aria) {
	    return $aria.$$watchExpr('ngShow', 'aria-hidden', [], true);
	  }]).directive('ngHide', ['$aria', function ($aria) {
	    return $aria.$$watchExpr('ngHide', 'aria-hidden', [], false);
	  }]).directive('ngValue', ['$aria', function ($aria) {
	    return $aria.$$watchExpr('ngValue', 'aria-checked', nativeAriaNodeNames, false);
	  }]).directive('ngChecked', ['$aria', function ($aria) {
	    return $aria.$$watchExpr('ngChecked', 'aria-checked', nativeAriaNodeNames, false);
	  }]).directive('ngReadonly', ['$aria', function ($aria) {
	    return $aria.$$watchExpr('ngReadonly', 'aria-readonly', nativeAriaNodeNames, false);
	  }]).directive('ngRequired', ['$aria', function ($aria) {
	    return $aria.$$watchExpr('ngRequired', 'aria-required', nativeAriaNodeNames, false);
	  }]).directive('ngModel', ['$aria', function ($aria) {
	
	    function shouldAttachAttr(attr, normalizedAttr, elem, allowNonAriaNodes) {
	      return $aria.config(normalizedAttr) && !elem.attr(attr) && (allowNonAriaNodes || !isNodeOneOf(elem, nativeAriaNodeNames)) && (elem.attr('type') !== 'hidden' || elem[0].nodeName !== 'INPUT');
	    }
	
	    function shouldAttachRole(role, elem) {
	      // if element does not have role attribute
	      // AND element type is equal to role (if custom element has a type equaling shape) <-- remove?
	      // AND element is not in nativeAriaNodeNames
	      return !elem.attr('role') && elem.attr('type') === role && !isNodeOneOf(elem, nativeAriaNodeNames);
	    }
	
	    function getShape(attr, elem) {
	      var type = attr.type,
	          role = attr.role;
	
	      return (type || role) === 'checkbox' || role === 'menuitemcheckbox' ? 'checkbox' : (type || role) === 'radio' || role === 'menuitemradio' ? 'radio' : type === 'range' || role === 'progressbar' || role === 'slider' ? 'range' : '';
	    }
	
	    return {
	      restrict: 'A',
	      require: 'ngModel',
	      priority: 200, //Make sure watches are fired after any other directives that affect the ngModel value
	      compile: function compile(elem, attr) {
	        if (attr.hasOwnProperty(ARIA_DISABLE_ATTR)) return;
	
	        var shape = getShape(attr, elem);
	
	        return {
	          post: function post(scope, elem, attr, ngModel) {
	            var needsTabIndex = shouldAttachAttr('tabindex', 'tabindex', elem, false);
	
	            function ngAriaWatchModelValue() {
	              return ngModel.$modelValue;
	            }
	
	            function getRadioReaction(newVal) {
	              // Strict comparison would cause a BC
	              // eslint-disable-next-line eqeqeq
	              var boolVal = attr.value == ngModel.$viewValue;
	              elem.attr('aria-checked', boolVal);
	            }
	
	            function getCheckboxReaction() {
	              elem.attr('aria-checked', !ngModel.$isEmpty(ngModel.$viewValue));
	            }
	
	            switch (shape) {
	              case 'radio':
	              case 'checkbox':
	                if (shouldAttachRole(shape, elem)) {
	                  elem.attr('role', shape);
	                }
	                if (shouldAttachAttr('aria-checked', 'ariaChecked', elem, false)) {
	                  scope.$watch(ngAriaWatchModelValue, shape === 'radio' ? getRadioReaction : getCheckboxReaction);
	                }
	                if (needsTabIndex) {
	                  elem.attr('tabindex', 0);
	                }
	                break;
	              case 'range':
	                if (shouldAttachRole(shape, elem)) {
	                  elem.attr('role', 'slider');
	                }
	                if ($aria.config('ariaValue')) {
	                  var needsAriaValuemin = !elem.attr('aria-valuemin') && (attr.hasOwnProperty('min') || attr.hasOwnProperty('ngMin'));
	                  var needsAriaValuemax = !elem.attr('aria-valuemax') && (attr.hasOwnProperty('max') || attr.hasOwnProperty('ngMax'));
	                  var needsAriaValuenow = !elem.attr('aria-valuenow');
	
	                  if (needsAriaValuemin) {
	                    attr.$observe('min', function ngAriaValueMinReaction(newVal) {
	                      elem.attr('aria-valuemin', newVal);
	                    });
	                  }
	                  if (needsAriaValuemax) {
	                    attr.$observe('max', function ngAriaValueMinReaction(newVal) {
	                      elem.attr('aria-valuemax', newVal);
	                    });
	                  }
	                  if (needsAriaValuenow) {
	                    scope.$watch(ngAriaWatchModelValue, function ngAriaValueNowReaction(newVal) {
	                      elem.attr('aria-valuenow', newVal);
	                    });
	                  }
	                }
	                if (needsTabIndex) {
	                  elem.attr('tabindex', 0);
	                }
	                break;
	            }
	
	            if (!attr.hasOwnProperty('ngRequired') && ngModel.$validators.required && shouldAttachAttr('aria-required', 'ariaRequired', elem, false)) {
	              // ngModel.$error.required is undefined on custom controls
	              attr.$observe('required', function () {
	                elem.attr('aria-required', !!attr['required']);
	              });
	            }
	
	            if (shouldAttachAttr('aria-invalid', 'ariaInvalid', elem, true)) {
	              scope.$watch(function ngAriaInvalidWatch() {
	                return ngModel.$invalid;
	              }, function ngAriaInvalidReaction(newVal) {
	                elem.attr('aria-invalid', !!newVal);
	              });
	            }
	          }
	        };
	      }
	    };
	  }]).directive('ngDisabled', ['$aria', function ($aria) {
	    return $aria.$$watchExpr('ngDisabled', 'aria-disabled', nativeAriaNodeNames, false);
	  }]).directive('ngMessages', function () {
	    return {
	      restrict: 'A',
	      require: '?ngMessages',
	      link: function link(scope, elem, attr, ngMessages) {
	        if (attr.hasOwnProperty(ARIA_DISABLE_ATTR)) return;
	
	        if (!elem.attr('aria-live')) {
	          elem.attr('aria-live', 'assertive');
	        }
	      }
	    };
	  }).directive('ngClick', ['$aria', '$parse', function ($aria, $parse) {
	    return {
	      restrict: 'A',
	      compile: function compile(elem, attr) {
	        if (attr.hasOwnProperty(ARIA_DISABLE_ATTR)) return;
	
	        var fn = $parse(attr.ngClick);
	        return function (scope, elem, attr) {
	
	          if (!isNodeOneOf(elem, nativeAriaNodeNames)) {
	
	            if ($aria.config('bindRoleForClick') && !elem.attr('role')) {
	              elem.attr('role', 'button');
	            }
	
	            if ($aria.config('tabindex') && !elem.attr('tabindex')) {
	              elem.attr('tabindex', 0);
	            }
	
	            if ($aria.config('bindKeydown') && !attr.ngKeydown && !attr.ngKeypress && !attr.ngKeyup) {
	              elem.on('keydown', function (event) {
	                var keyCode = event.which || event.keyCode;
	
	                if (keyCode === 13 || keyCode === 32) {
	                  // If the event is triggered on a non-interactive element ...
	                  if (nativeAriaNodeNames.indexOf(event.target.nodeName) === -1 && !event.target.isContentEditable) {
	                    // ... prevent the default browser behavior (e.g. scrolling when pressing spacebar)
	                    // See https://github.com/angular/angular.js/issues/16664
	                    event.preventDefault();
	                  }
	                  scope.$apply(callback);
	                }
	
	                function callback() {
	                  fn(scope, { $event: event });
	                }
	              });
	            }
	          }
	        };
	      }
	    };
	  }]).directive('ngDblclick', ['$aria', function ($aria) {
	    return function (scope, elem, attr) {
	      if (attr.hasOwnProperty(ARIA_DISABLE_ATTR)) return;
	
	      if ($aria.config('tabindex') && !elem.attr('tabindex') && !isNodeOneOf(elem, nativeAriaNodeNames)) {
	        elem.attr('tabindex', 0);
	      }
	    };
	  }]);
	})(window, window.angular);

/***/ }),
/* 918 */
/***/ (function(module, exports) {

	'use strict';
	
	/**
	 * @license AngularJS v1.8.2
	 * (c) 2010-2020 Google LLC. http://angularjs.org
	 * License: MIT
	 */
	(function (window, angular) {
	  'use strict';
	
	  /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
	   *     Any commits to this file should be reviewed with security in mind.  *
	   *   Changes to this file can potentially create security vulnerabilities. *
	   *          An approval from 2 Core members with history of modifying      *
	   *                         this file is required.                          *
	   *                                                                         *
	   *  Does the change somehow allow for arbitrary javascript to be executed? *
	   *    Or allows for someone to change the prototype of built-in objects?   *
	   *     Or gives undesired access to variables likes document or window?    *
	   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
	
	  var $sanitizeMinErr = angular.$$minErr('$sanitize');
	  var bind;
	  var extend;
	  var forEach;
	  var isArray;
	  var isDefined;
	  var lowercase;
	  var noop;
	  var nodeContains;
	  var htmlParser;
	  var htmlSanitizeWriter;
	
	  /**
	   * @ngdoc module
	   * @name ngSanitize
	   * @description
	   *
	   * The `ngSanitize` module provides functionality to sanitize HTML.
	   *
	   * See {@link ngSanitize.$sanitize `$sanitize`} for usage.
	   */
	
	  /**
	   * @ngdoc service
	   * @name $sanitize
	   * @kind function
	   *
	   * @description
	   *   Sanitizes an html string by stripping all potentially dangerous tokens.
	   *
	   *   The input is sanitized by parsing the HTML into tokens. All safe tokens (from a trusted URI list) are
	   *   then serialized back to a properly escaped HTML string. This means that no unsafe input can make
	   *   it into the returned string.
	   *
	   *   The trusted URIs for URL sanitization of attribute values is configured using the functions
	   *   `aHrefSanitizationTrustedUrlList` and `imgSrcSanitizationTrustedUrlList` of {@link $compileProvider}.
	   *
	   *   The input may also contain SVG markup if this is enabled via {@link $sanitizeProvider}.
	   *
	   * @param {string} html HTML input.
	   * @returns {string} Sanitized HTML.
	   *
	   * @example
	     <example module="sanitizeExample" deps="angular-sanitize.js" name="sanitize-service">
	     <file name="index.html">
	       <script>
	           angular.module('sanitizeExample', ['ngSanitize'])
	             .controller('ExampleController', ['$scope', '$sce', function($scope, $sce) {
	               $scope.snippet =
	                 '<p style="color:blue">an html\n' +
	                 '<em onmouseover="this.textContent=\'PWN3D!\'">click here</em>\n' +
	                 'snippet</p>';
	               $scope.deliberatelyTrustDangerousSnippet = function() {
	                 return $sce.trustAsHtml($scope.snippet);
	               };
	             }]);
	       </script>
	       <div ng-controller="ExampleController">
	          Snippet: <textarea ng-model="snippet" cols="60" rows="3"></textarea>
	         <table>
	           <tr>
	             <td>Directive</td>
	             <td>How</td>
	             <td>Source</td>
	             <td>Rendered</td>
	           </tr>
	           <tr id="bind-html-with-sanitize">
	             <td>ng-bind-html</td>
	             <td>Automatically uses $sanitize</td>
	             <td><pre>&lt;div ng-bind-html="snippet"&gt;<br/>&lt;/div&gt;</pre></td>
	             <td><div ng-bind-html="snippet"></div></td>
	           </tr>
	           <tr id="bind-html-with-trust">
	             <td>ng-bind-html</td>
	             <td>Bypass $sanitize by explicitly trusting the dangerous value</td>
	             <td>
	             <pre>&lt;div ng-bind-html="deliberatelyTrustDangerousSnippet()"&gt;
	  &lt;/div&gt;</pre>
	             </td>
	             <td><div ng-bind-html="deliberatelyTrustDangerousSnippet()"></div></td>
	           </tr>
	           <tr id="bind-default">
	             <td>ng-bind</td>
	             <td>Automatically escapes</td>
	             <td><pre>&lt;div ng-bind="snippet"&gt;<br/>&lt;/div&gt;</pre></td>
	             <td><div ng-bind="snippet"></div></td>
	           </tr>
	         </table>
	         </div>
	     </file>
	     <file name="protractor.js" type="protractor">
	       it('should sanitize the html snippet by default', function() {
	         expect(element(by.css('#bind-html-with-sanitize div')).getAttribute('innerHTML')).
	           toBe('<p>an html\n<em>click here</em>\nsnippet</p>');
	       });
	  
	       it('should inline raw snippet if bound to a trusted value', function() {
	         expect(element(by.css('#bind-html-with-trust div')).getAttribute('innerHTML')).
	           toBe("<p style=\"color:blue\">an html\n" +
	                "<em onmouseover=\"this.textContent='PWN3D!'\">click here</em>\n" +
	                "snippet</p>");
	       });
	  
	       it('should escape snippet without any filter', function() {
	         expect(element(by.css('#bind-default div')).getAttribute('innerHTML')).
	           toBe("&lt;p style=\"color:blue\"&gt;an html\n" +
	                "&lt;em onmouseover=\"this.textContent='PWN3D!'\"&gt;click here&lt;/em&gt;\n" +
	                "snippet&lt;/p&gt;");
	       });
	  
	       it('should update', function() {
	         element(by.model('snippet')).clear();
	         element(by.model('snippet')).sendKeys('new <b onclick="alert(1)">text</b>');
	         expect(element(by.css('#bind-html-with-sanitize div')).getAttribute('innerHTML')).
	           toBe('new <b>text</b>');
	         expect(element(by.css('#bind-html-with-trust div')).getAttribute('innerHTML')).toBe(
	           'new <b onclick="alert(1)">text</b>');
	         expect(element(by.css('#bind-default div')).getAttribute('innerHTML')).toBe(
	           "new &lt;b onclick=\"alert(1)\"&gt;text&lt;/b&gt;");
	       });
	     </file>
	     </example>
	   */
	
	  /**
	   * @ngdoc provider
	   * @name $sanitizeProvider
	   * @this
	   *
	   * @description
	   * Creates and configures {@link $sanitize} instance.
	   */
	  function $SanitizeProvider() {
	    var hasBeenInstantiated = false;
	    var svgEnabled = false;
	
	    this.$get = ['$$sanitizeUri', function ($$sanitizeUri) {
	      hasBeenInstantiated = true;
	      if (svgEnabled) {
	        extend(validElements, svgElements);
	      }
	      return function (html) {
	        var buf = [];
	        htmlParser(html, htmlSanitizeWriter(buf, function (uri, isImage) {
	          return !/^unsafe:/.test($$sanitizeUri(uri, isImage));
	        }));
	        return buf.join('');
	      };
	    }];
	
	    /**
	     * @ngdoc method
	     * @name $sanitizeProvider#enableSvg
	     * @kind function
	     *
	     * @description
	     * Enables a subset of svg to be supported by the sanitizer.
	     *
	     * <div class="alert alert-warning">
	     *   <p>By enabling this setting without taking other precautions, you might expose your
	     *   application to click-hijacking attacks. In these attacks, sanitized svg elements could be positioned
	     *   outside of the containing element and be rendered over other elements on the page (e.g. a login
	     *   link). Such behavior can then result in phishing incidents.</p>
	     *
	     *   <p>To protect against these, explicitly setup `overflow: hidden` css rule for all potential svg
	     *   tags within the sanitized content:</p>
	     *
	     *   <br>
	     *
	     *   <pre><code>
	     *   .rootOfTheIncludedContent svg {
	     *     overflow: hidden !important;
	     *   }
	     *   </code></pre>
	     * </div>
	     *
	     * @param {boolean=} flag Enable or disable SVG support in the sanitizer.
	     * @returns {boolean|$sanitizeProvider} Returns the currently configured value if called
	     *    without an argument or self for chaining otherwise.
	     */
	    this.enableSvg = function (enableSvg) {
	      if (isDefined(enableSvg)) {
	        svgEnabled = enableSvg;
	        return this;
	      } else {
	        return svgEnabled;
	      }
	    };
	
	    /**
	     * @ngdoc method
	     * @name $sanitizeProvider#addValidElements
	     * @kind function
	     *
	     * @description
	     * Extends the built-in lists of valid HTML/SVG elements, i.e. elements that are considered safe
	     * and are not stripped off during sanitization. You can extend the following lists of elements:
	     *
	     * - `htmlElements`: A list of elements (tag names) to extend the current list of safe HTML
	     *   elements. HTML elements considered safe will not be removed during sanitization. All other
	     *   elements will be stripped off.
	     *
	     * - `htmlVoidElements`: This is similar to `htmlElements`, but marks the elements as
	     *   "void elements" (similar to HTML
	     *   [void elements](https://rawgit.com/w3c/html/html5.1-2/single-page.html#void-elements)). These
	     *   elements have no end tag and cannot have content.
	     *
	     * - `svgElements`: This is similar to `htmlElements`, but for SVG elements. This list is only
	     *   taken into account if SVG is {@link ngSanitize.$sanitizeProvider#enableSvg enabled} for
	     *   `$sanitize`.
	     *
	     * <div class="alert alert-info">
	     *   This method must be called during the {@link angular.Module#config config} phase. Once the
	     *   `$sanitize` service has been instantiated, this method has no effect.
	     * </div>
	     *
	     * <div class="alert alert-warning">
	     *   Keep in mind that extending the built-in lists of elements may expose your app to XSS or
	     *   other vulnerabilities. Be very mindful of the elements you add.
	     * </div>
	     *
	     * @param {Array<String>|Object} elements - A list of valid HTML elements or an object with one or
	     *   more of the following properties:
	     *   - **htmlElements** - `{Array<String>}` - A list of elements to extend the current list of
	     *     HTML elements.
	     *   - **htmlVoidElements** - `{Array<String>}` - A list of elements to extend the current list of
	     *     void HTML elements; i.e. elements that do not have an end tag.
	     *   - **svgElements** - `{Array<String>}` - A list of elements to extend the current list of SVG
	     *     elements. The list of SVG elements is only taken into account if SVG is
	     *     {@link ngSanitize.$sanitizeProvider#enableSvg enabled} for `$sanitize`.
	     *
	     * Passing an array (`[...]`) is equivalent to passing `{htmlElements: [...]}`.
	     *
	     * @return {$sanitizeProvider} Returns self for chaining.
	     */
	    this.addValidElements = function (elements) {
	      if (!hasBeenInstantiated) {
	        if (isArray(elements)) {
	          elements = { htmlElements: elements };
	        }
	
	        addElementsTo(svgElements, elements.svgElements);
	        addElementsTo(voidElements, elements.htmlVoidElements);
	        addElementsTo(validElements, elements.htmlVoidElements);
	        addElementsTo(validElements, elements.htmlElements);
	      }
	
	      return this;
	    };
	
	    /**
	     * @ngdoc method
	     * @name $sanitizeProvider#addValidAttrs
	     * @kind function
	     *
	     * @description
	     * Extends the built-in list of valid attributes, i.e. attributes that are considered safe and are
	     * not stripped off during sanitization.
	     *
	     * **Note**:
	     * The new attributes will not be treated as URI attributes, which means their values will not be
	     * sanitized as URIs using `$compileProvider`'s
	     * {@link ng.$compileProvider#aHrefSanitizationTrustedUrlList aHrefSanitizationTrustedUrlList} and
	     * {@link ng.$compileProvider#imgSrcSanitizationTrustedUrlList imgSrcSanitizationTrustedUrlList}.
	     *
	     * <div class="alert alert-info">
	     *   This method must be called during the {@link angular.Module#config config} phase. Once the
	     *   `$sanitize` service has been instantiated, this method has no effect.
	     * </div>
	     *
	     * <div class="alert alert-warning">
	     *   Keep in mind that extending the built-in list of attributes may expose your app to XSS or
	     *   other vulnerabilities. Be very mindful of the attributes you add.
	     * </div>
	     *
	     * @param {Array<String>} attrs - A list of valid attributes.
	     *
	     * @returns {$sanitizeProvider} Returns self for chaining.
	     */
	    this.addValidAttrs = function (attrs) {
	      if (!hasBeenInstantiated) {
	        extend(validAttrs, arrayToMap(attrs, true));
	      }
	      return this;
	    };
	
	    //////////////////////////////////////////////////////////////////////////////////////////////////
	    // Private stuff
	    //////////////////////////////////////////////////////////////////////////////////////////////////
	
	    bind = angular.bind;
	    extend = angular.extend;
	    forEach = angular.forEach;
	    isArray = angular.isArray;
	    isDefined = angular.isDefined;
	    lowercase = angular.$$lowercase;
	    noop = angular.noop;
	
	    htmlParser = htmlParserImpl;
	    htmlSanitizeWriter = htmlSanitizeWriterImpl;
	
	    nodeContains = window.Node.prototype.contains || /** @this */function (arg) {
	      // eslint-disable-next-line no-bitwise
	      return !!(this.compareDocumentPosition(arg) & 16);
	    };
	
	    // Regular Expressions for parsing tags and attributes
	    var SURROGATE_PAIR_REGEXP = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g,
	
	    // Match everything outside of normal chars and " (quote character)
	    NON_ALPHANUMERIC_REGEXP = /([^#-~ |!])/g;
	
	    // Good source of info about elements and attributes
	    // http://dev.w3.org/html5/spec/Overview.html#semantics
	    // http://simon.html5.org/html-elements
	
	    // Safe Void Elements - HTML5
	    // http://dev.w3.org/html5/spec/Overview.html#void-elements
	    var voidElements = stringToMap('area,br,col,hr,img,wbr');
	
	    // Elements that you can, intentionally, leave open (and which close themselves)
	    // http://dev.w3.org/html5/spec/Overview.html#optional-tags
	    var optionalEndTagBlockElements = stringToMap('colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr'),
	        optionalEndTagInlineElements = stringToMap('rp,rt'),
	        optionalEndTagElements = extend({}, optionalEndTagInlineElements, optionalEndTagBlockElements);
	
	    // Safe Block Elements - HTML5
	    var blockElements = extend({}, optionalEndTagBlockElements, stringToMap('address,article,' + 'aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,' + 'h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul'));
	
	    // Inline Elements - HTML5
	    var inlineElements = extend({}, optionalEndTagInlineElements, stringToMap('a,abbr,acronym,b,' + 'bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,' + 'samp,small,span,strike,strong,sub,sup,time,tt,u,var'));
	
	    // SVG Elements
	    // https://wiki.whatwg.org/wiki/Sanitization_rules#svg_Elements
	    // Note: the elements animate,animateColor,animateMotion,animateTransform,set are intentionally omitted.
	    // They can potentially allow for arbitrary javascript to be executed. See #11290
	    var svgElements = stringToMap('circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,' + 'hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,' + 'radialGradient,rect,stop,svg,switch,text,title,tspan');
	
	    // Blocked Elements (will be stripped)
	    var blockedElements = stringToMap('script,style');
	
	    var validElements = extend({}, voidElements, blockElements, inlineElements, optionalEndTagElements);
	
	    //Attributes that have href and hence need to be sanitized
	    var uriAttrs = stringToMap('background,cite,href,longdesc,src,xlink:href,xml:base');
	
	    var htmlAttrs = stringToMap('abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,' + 'color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,' + 'ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,' + 'scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,' + 'valign,value,vspace,width');
	
	    // SVG attributes (without "id" and "name" attributes)
	    // https://wiki.whatwg.org/wiki/Sanitization_rules#svg_Attributes
	    var svgAttrs = stringToMap('accent-height,accumulate,additive,alphabetic,arabic-form,ascent,' + 'baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,' + 'cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,' + 'font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,' + 'height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,' + 'marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,' + 'max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,' + 'path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,' + 'requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,' + 'stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,' + 'stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,' + 'stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,' + 'underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,' + 'width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,' + 'xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan', true);
	
	    var validAttrs = extend({}, uriAttrs, svgAttrs, htmlAttrs);
	
	    function stringToMap(str, lowercaseKeys) {
	      return arrayToMap(str.split(','), lowercaseKeys);
	    }
	
	    function arrayToMap(items, lowercaseKeys) {
	      var obj = {},
	          i;
	      for (i = 0; i < items.length; i++) {
	        obj[lowercaseKeys ? lowercase(items[i]) : items[i]] = true;
	      }
	      return obj;
	    }
	
	    function addElementsTo(elementsMap, newElements) {
	      if (newElements && newElements.length) {
	        extend(elementsMap, arrayToMap(newElements));
	      }
	    }
	
	    /**
	     * Create an inert document that contains the dirty HTML that needs sanitizing.
	     * We use the DOMParser API by default and fall back to createHTMLDocument if DOMParser is not
	     * available.
	     */
	    var getInertBodyElement /* function(html: string): HTMLBodyElement */ = function (window, document) {
	      if (isDOMParserAvailable()) {
	        return getInertBodyElement_DOMParser;
	      }
	
	      if (!document || !document.implementation) {
	        throw $sanitizeMinErr('noinert', 'Can\'t create an inert html document');
	      }
	      var inertDocument = document.implementation.createHTMLDocument('inert');
	      var inertBodyElement = (inertDocument.documentElement || inertDocument.getDocumentElement()).querySelector('body');
	      return getInertBodyElement_InertDocument;
	
	      function isDOMParserAvailable() {
	        try {
	          return !!getInertBodyElement_DOMParser('');
	        } catch (e) {
	          return false;
	        }
	      }
	
	      function getInertBodyElement_DOMParser(html) {
	        // We add this dummy element to ensure that the rest of the content is parsed as expected
	        // e.g. leading whitespace is maintained and tags like `<meta>` do not get hoisted to the `<head>` tag.
	        html = '<remove></remove>' + html;
	        try {
	          var body = new window.DOMParser().parseFromString(html, 'text/html').body;
	          body.firstChild.remove();
	          return body;
	        } catch (e) {
	          return undefined;
	        }
	      }
	
	      function getInertBodyElement_InertDocument(html) {
	        inertBodyElement.innerHTML = html;
	
	        // Support: IE 9-11 only
	        // strip custom-namespaced attributes on IE<=11
	        if (document.documentMode) {
	          stripCustomNsAttrs(inertBodyElement);
	        }
	
	        return inertBodyElement;
	      }
	    }(window, window.document);
	
	    /**
	     * @example
	     * htmlParser(htmlString, {
	     *     start: function(tag, attrs) {},
	     *     end: function(tag) {},
	     *     chars: function(text) {},
	     *     comment: function(text) {}
	     * });
	     *
	     * @param {string} html string
	     * @param {object} handler
	     */
	    function htmlParserImpl(html, handler) {
	      if (html === null || html === undefined) {
	        html = '';
	      } else if (typeof html !== 'string') {
	        html = '' + html;
	      }
	
	      var inertBodyElement = getInertBodyElement(html);
	      if (!inertBodyElement) return '';
	
	      //mXSS protection
	      var mXSSAttempts = 5;
	      do {
	        if (mXSSAttempts === 0) {
	          throw $sanitizeMinErr('uinput', 'Failed to sanitize html because the input is unstable');
	        }
	        mXSSAttempts--;
	
	        // trigger mXSS if it is going to happen by reading and writing the innerHTML
	        html = inertBodyElement.innerHTML;
	        inertBodyElement = getInertBodyElement(html);
	      } while (html !== inertBodyElement.innerHTML);
	
	      var node = inertBodyElement.firstChild;
	      while (node) {
	        switch (node.nodeType) {
	          case 1:
	            // ELEMENT_NODE
	            handler.start(node.nodeName.toLowerCase(), attrToMap(node.attributes));
	            break;
	          case 3:
	            // TEXT NODE
	            handler.chars(node.textContent);
	            break;
	        }
	
	        var nextNode;
	        if (!(nextNode = node.firstChild)) {
	          if (node.nodeType === 1) {
	            handler.end(node.nodeName.toLowerCase());
	          }
	          nextNode = getNonDescendant('nextSibling', node);
	          if (!nextNode) {
	            while (nextNode == null) {
	              node = getNonDescendant('parentNode', node);
	              if (node === inertBodyElement) break;
	              nextNode = getNonDescendant('nextSibling', node);
	              if (node.nodeType === 1) {
	                handler.end(node.nodeName.toLowerCase());
	              }
	            }
	          }
	        }
	        node = nextNode;
	      }
	
	      while (node = inertBodyElement.firstChild) {
	        inertBodyElement.removeChild(node);
	      }
	    }
	
	    function attrToMap(attrs) {
	      var map = {};
	      for (var i = 0, ii = attrs.length; i < ii; i++) {
	        var attr = attrs[i];
	        map[attr.name] = attr.value;
	      }
	      return map;
	    }
	
	    /**
	     * Escapes all potentially dangerous characters, so that the
	     * resulting string can be safely inserted into attribute or
	     * element text.
	     * @param value
	     * @returns {string} escaped text
	     */
	    function encodeEntities(value) {
	      return value.replace(/&/g, '&amp;').replace(SURROGATE_PAIR_REGEXP, function (value) {
	        var hi = value.charCodeAt(0);
	        var low = value.charCodeAt(1);
	        return '&#' + ((hi - 0xD800) * 0x400 + (low - 0xDC00) + 0x10000) + ';';
	      }).replace(NON_ALPHANUMERIC_REGEXP, function (value) {
	        return '&#' + value.charCodeAt(0) + ';';
	      }).replace(/</g, '&lt;').replace(/>/g, '&gt;');
	    }
	
	    /**
	     * create an HTML/XML writer which writes to buffer
	     * @param {Array} buf use buf.join('') to get out sanitized html string
	     * @returns {object} in the form of {
	     *     start: function(tag, attrs) {},
	     *     end: function(tag) {},
	     *     chars: function(text) {},
	     *     comment: function(text) {}
	     * }
	     */
	    function htmlSanitizeWriterImpl(buf, uriValidator) {
	      var ignoreCurrentElement = false;
	      var out = bind(buf, buf.push);
	      return {
	        start: function start(tag, attrs) {
	          tag = lowercase(tag);
	          if (!ignoreCurrentElement && blockedElements[tag]) {
	            ignoreCurrentElement = tag;
	          }
	          if (!ignoreCurrentElement && validElements[tag] === true) {
	            out('<');
	            out(tag);
	            forEach(attrs, function (value, key) {
	              var lkey = lowercase(key);
	              var isImage = tag === 'img' && lkey === 'src' || lkey === 'background';
	              if (validAttrs[lkey] === true && (uriAttrs[lkey] !== true || uriValidator(value, isImage))) {
	                out(' ');
	                out(key);
	                out('="');
	                out(encodeEntities(value));
	                out('"');
	              }
	            });
	            out('>');
	          }
	        },
	        end: function end(tag) {
	          tag = lowercase(tag);
	          if (!ignoreCurrentElement && validElements[tag] === true && voidElements[tag] !== true) {
	            out('</');
	            out(tag);
	            out('>');
	          }
	          // eslint-disable-next-line eqeqeq
	          if (tag == ignoreCurrentElement) {
	            ignoreCurrentElement = false;
	          }
	        },
	        chars: function chars(_chars) {
	          if (!ignoreCurrentElement) {
	            out(encodeEntities(_chars));
	          }
	        }
	      };
	    }
	
	    /**
	     * When IE9-11 comes across an unknown namespaced attribute e.g. 'xlink:foo' it adds 'xmlns:ns1' attribute to declare
	     * ns1 namespace and prefixes the attribute with 'ns1' (e.g. 'ns1:xlink:foo'). This is undesirable since we don't want
	     * to allow any of these custom attributes. This method strips them all.
	     *
	     * @param node Root element to process
	     */
	    function stripCustomNsAttrs(node) {
	      while (node) {
	        if (node.nodeType === window.Node.ELEMENT_NODE) {
	          var attrs = node.attributes;
	          for (var i = 0, l = attrs.length; i < l; i++) {
	            var attrNode = attrs[i];
	            var attrName = attrNode.name.toLowerCase();
	            if (attrName === 'xmlns:ns1' || attrName.lastIndexOf('ns1:', 0) === 0) {
	              node.removeAttributeNode(attrNode);
	              i--;
	              l--;
	            }
	          }
	        }
	
	        var nextNode = node.firstChild;
	        if (nextNode) {
	          stripCustomNsAttrs(nextNode);
	        }
	
	        node = getNonDescendant('nextSibling', node);
	      }
	    }
	
	    function getNonDescendant(propName, node) {
	      // An element is clobbered if its `propName` property points to one of its descendants
	      var nextNode = node[propName];
	      if (nextNode && nodeContains.call(node, nextNode)) {
	        throw $sanitizeMinErr('elclob', 'Failed to sanitize html because the element is clobbered: {0}', node.outerHTML || node.outerText);
	      }
	      return nextNode;
	    }
	  }
	
	  function sanitizeText(chars) {
	    var buf = [];
	    var writer = htmlSanitizeWriter(buf, noop);
	    writer.chars(chars);
	    return buf.join('');
	  }
	
	  // define ngSanitize module and register $sanitize service
	  angular.module('ngSanitize', []).provider('$sanitize', $SanitizeProvider).info({ angularVersion: '1.8.2' });
	
	  /**
	   * @ngdoc filter
	   * @name linky
	   * @kind function
	   *
	   * @description
	   * Finds links in text input and turns them into html links. Supports `http/https/ftp/sftp/mailto` and
	   * plain email address links.
	   *
	   * Requires the {@link ngSanitize `ngSanitize`} module to be installed.
	   *
	   * @param {string} text Input text.
	   * @param {string} [target] Window (`_blank|_self|_parent|_top`) or named frame to open links in.
	   * @param {object|function(url)} [attributes] Add custom attributes to the link element.
	   *
	   *    Can be one of:
	   *
	   *    - `object`: A map of attributes
	   *    - `function`: Takes the url as a parameter and returns a map of attributes
	   *
	   *    If the map of attributes contains a value for `target`, it overrides the value of
	   *    the target parameter.
	   *
	   *
	   * @returns {string} Html-linkified and {@link $sanitize sanitized} text.
	   *
	   * @usage
	     <span ng-bind-html="linky_expression | linky"></span>
	   *
	   * @example
	     <example module="linkyExample" deps="angular-sanitize.js" name="linky-filter">
	       <file name="index.html">
	         <div ng-controller="ExampleController">
	         Snippet: <textarea ng-model="snippet" cols="60" rows="3"></textarea>
	         <table>
	           <tr>
	             <th>Filter</th>
	             <th>Source</th>
	             <th>Rendered</th>
	           </tr>
	           <tr id="linky-filter">
	             <td>linky filter</td>
	             <td>
	               <pre>&lt;div ng-bind-html="snippet | linky"&gt;<br>&lt;/div&gt;</pre>
	             </td>
	             <td>
	               <div ng-bind-html="snippet | linky"></div>
	             </td>
	           </tr>
	           <tr id="linky-target">
	            <td>linky target</td>
	            <td>
	              <pre>&lt;div ng-bind-html="snippetWithSingleURL | linky:'_blank'"&gt;<br>&lt;/div&gt;</pre>
	            </td>
	            <td>
	              <div ng-bind-html="snippetWithSingleURL | linky:'_blank'"></div>
	            </td>
	           </tr>
	           <tr id="linky-custom-attributes">
	            <td>linky custom attributes</td>
	            <td>
	              <pre>&lt;div ng-bind-html="snippetWithSingleURL | linky:'_self':{rel: 'nofollow'}"&gt;<br>&lt;/div&gt;</pre>
	            </td>
	            <td>
	              <div ng-bind-html="snippetWithSingleURL | linky:'_self':{rel: 'nofollow'}"></div>
	            </td>
	           </tr>
	           <tr id="escaped-html">
	             <td>no filter</td>
	             <td><pre>&lt;div ng-bind="snippet"&gt;<br>&lt;/div&gt;</pre></td>
	             <td><div ng-bind="snippet"></div></td>
	           </tr>
	         </table>
	       </file>
	       <file name="script.js">
	         angular.module('linkyExample', ['ngSanitize'])
	           .controller('ExampleController', ['$scope', function($scope) {
	             $scope.snippet =
	               'Pretty text with some links:\n' +
	               'http://angularjs.org/,\n' +
	               'mailto:us@somewhere.org,\n' +
	               'another@somewhere.org,\n' +
	               'and one more: ftp://127.0.0.1/.';
	             $scope.snippetWithSingleURL = 'http://angularjs.org/';
	           }]);
	       </file>
	       <file name="protractor.js" type="protractor">
	         it('should linkify the snippet with urls', function() {
	           expect(element(by.id('linky-filter')).element(by.binding('snippet | linky')).getText()).
	               toBe('Pretty text with some links: http://angularjs.org/, us@somewhere.org, ' +
	                    'another@somewhere.org, and one more: ftp://127.0.0.1/.');
	           expect(element.all(by.css('#linky-filter a')).count()).toEqual(4);
	         });
	  
	         it('should not linkify snippet without the linky filter', function() {
	           expect(element(by.id('escaped-html')).element(by.binding('snippet')).getText()).
	               toBe('Pretty text with some links: http://angularjs.org/, mailto:us@somewhere.org, ' +
	                    'another@somewhere.org, and one more: ftp://127.0.0.1/.');
	           expect(element.all(by.css('#escaped-html a')).count()).toEqual(0);
	         });
	  
	         it('should update', function() {
	           element(by.model('snippet')).clear();
	           element(by.model('snippet')).sendKeys('new http://link.');
	           expect(element(by.id('linky-filter')).element(by.binding('snippet | linky')).getText()).
	               toBe('new http://link.');
	           expect(element.all(by.css('#linky-filter a')).count()).toEqual(1);
	           expect(element(by.id('escaped-html')).element(by.binding('snippet')).getText())
	               .toBe('new http://link.');
	         });
	  
	         it('should work with the target property', function() {
	          expect(element(by.id('linky-target')).
	              element(by.binding("snippetWithSingleURL | linky:'_blank'")).getText()).
	              toBe('http://angularjs.org/');
	          expect(element(by.css('#linky-target a')).getAttribute('target')).toEqual('_blank');
	         });
	  
	         it('should optionally add custom attributes', function() {
	          expect(element(by.id('linky-custom-attributes')).
	              element(by.binding("snippetWithSingleURL | linky:'_self':{rel: 'nofollow'}")).getText()).
	              toBe('http://angularjs.org/');
	          expect(element(by.css('#linky-custom-attributes a')).getAttribute('rel')).toEqual('nofollow');
	         });
	       </file>
	     </example>
	   */
	  angular.module('ngSanitize').filter('linky', ['$sanitize', function ($sanitize) {
	    var LINKY_URL_REGEXP = /((s?ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,
	        MAILTO_REGEXP = /^mailto:/i;
	
	    var linkyMinErr = angular.$$minErr('linky');
	    var isDefined = angular.isDefined;
	    var isFunction = angular.isFunction;
	    var isObject = angular.isObject;
	    var isString = angular.isString;
	
	    return function (text, target, attributes) {
	      if (text == null || text === '') return text;
	      if (!isString(text)) throw linkyMinErr('notstring', 'Expected string but received: {0}', text);
	
	      var attributesFn = isFunction(attributes) ? attributes : isObject(attributes) ? function getAttributesObject() {
	        return attributes;
	      } : function getEmptyAttributesObject() {
	        return {};
	      };
	
	      var match;
	      var raw = text;
	      var html = [];
	      var url;
	      var i;
	      while (match = raw.match(LINKY_URL_REGEXP)) {
	        // We can not end in these as they are sometimes found at the end of the sentence
	        url = match[0];
	        // if we did not match ftp/http/www/mailto then assume mailto
	        if (!match[2] && !match[4]) {
	          url = (match[3] ? 'http://' : 'mailto:') + url;
	        }
	        i = match.index;
	        addText(raw.substr(0, i));
	        addLink(url, match[0].replace(MAILTO_REGEXP, ''));
	        raw = raw.substring(i + match[0].length);
	      }
	      addText(raw);
	      return $sanitize(html.join(''));
	
	      function addText(text) {
	        if (!text) {
	          return;
	        }
	        html.push(sanitizeText(text));
	      }
	
	      function addLink(url, text) {
	        var key,
	            linkAttributes = attributesFn(url);
	        html.push('<a ');
	
	        for (key in linkAttributes) {
	          html.push(key + '="' + linkAttributes[key] + '" ');
	        }
	
	        if (isDefined(target) && !('target' in linkAttributes)) {
	          html.push('target="', target, '" ');
	        }
	        html.push('href="', url.replace(/"/g, '&quot;'), '">');
	        addText(text);
	        html.push('</a>');
	      }
	    };
	  }]);
	})(window, window.angular);

/***/ }),
/* 919 */
/***/ (function(module, exports) {

	'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	/**
	 * angular-strap
	 * @version v2.3.12 - 2017-01-26
	 * @link http://mgcrea.github.io/angular-strap
	 * @author Olivier Louvignes <olivier@mg-crea.com> (https://github.com/mgcrea)
	 * @license MIT License, http://www.opensource.org/licenses/MIT
	 */
	(function (window, document, undefined) {
	  'use strict';
	
	  bsCompilerService.$inject = ['$q', '$http', '$injector', '$compile', '$controller', '$templateCache'];
	  angular.module('mgcrea.ngStrap.typeahead', ['mgcrea.ngStrap.tooltip', 'mgcrea.ngStrap.helpers.parseOptions']).provider('$typeahead', function () {
	    var defaults = this.defaults = {
	      animation: 'am-fade',
	      prefixClass: 'typeahead',
	      prefixEvent: '$typeahead',
	      placement: 'bottom-left',
	      templateUrl: 'typeahead/typeahead.tpl.html',
	      trigger: 'focus',
	      container: false,
	      keyboard: true,
	      html: false,
	      delay: 0,
	      minLength: 1,
	      filter: 'bsAsyncFilter',
	      limit: 6,
	      autoSelect: false,
	      comparator: '',
	      trimValue: true
	    };
	    this.$get = ['$window', '$rootScope', '$tooltip', '$$rAF', '$timeout', function ($window, $rootScope, $tooltip, $$rAF, $timeout) {
	      function TypeaheadFactory(element, controller, config) {
	        var $typeahead = {};
	        var options = angular.extend({}, defaults, config);
	        $typeahead = $tooltip(element, options);
	        var parentScope = config.scope;
	        var scope = $typeahead.$scope;
	        scope.$resetMatches = function () {
	          scope.$matches = [];
	          scope.$activeIndex = options.autoSelect ? 0 : -1;
	        };
	        scope.$resetMatches();
	        scope.$activate = function (index) {
	          scope.$$postDigest(function () {
	            $typeahead.activate(index);
	          });
	        };
	        scope.$select = function (index, evt) {
	          scope.$$postDigest(function () {
	            $typeahead.select(index);
	          });
	        };
	        scope.$isVisible = function () {
	          return $typeahead.$isVisible();
	        };
	        $typeahead.update = function (matches) {
	          scope.$matches = matches;
	          if (scope.$activeIndex >= matches.length) {
	            scope.$activeIndex = options.autoSelect ? 0 : -1;
	          }
	          safeDigest(scope);
	          $$rAF($typeahead.$applyPlacement);
	        };
	        $typeahead.activate = function (index) {
	          scope.$activeIndex = index;
	        };
	        $typeahead.select = function (index) {
	          if (index === -1) return;
	          var value = scope.$matches[index].value;
	          controller.$setViewValue(value);
	          controller.$render();
	          scope.$resetMatches();
	          if (parentScope) parentScope.$digest();
	          scope.$emit(options.prefixEvent + '.select', value, index, $typeahead);
	          if (angular.isDefined(options.onSelect) && angular.isFunction(options.onSelect)) {
	            options.onSelect(value, index, $typeahead);
	          }
	        };
	        $typeahead.$isVisible = function () {
	          if (!options.minLength || !controller) {
	            return !!scope.$matches.length;
	          }
	          return scope.$matches.length && angular.isString(controller.$viewValue) && controller.$viewValue.length >= options.minLength;
	        };
	        $typeahead.$getIndex = function (value) {
	          var index;
	          for (index = scope.$matches.length; index--;) {
	            if (angular.equals(scope.$matches[index].value, value)) break;
	          }
	          return index;
	        };
	        $typeahead.$onMouseDown = function (evt) {
	          evt.preventDefault();
	          evt.stopPropagation();
	        };
	        $typeahead.$$updateScrollTop = function (container, index) {
	          if (index > -1 && index < container.children.length) {
	            var active = container.children[index];
	            var clientTop = active.offsetTop;
	            var clientBottom = active.offsetTop + active.clientHeight;
	            var highWatermark = container.scrollTop;
	            var lowWatermark = container.scrollTop + container.clientHeight;
	            if (clientBottom >= highWatermark && clientTop < highWatermark) {
	              container.scrollTop = Math.max(0, container.scrollTop - container.clientHeight);
	            } else if (clientBottom > lowWatermark) {
	              container.scrollTop = clientTop;
	            }
	          }
	        };
	        $typeahead.$onKeyDown = function (evt) {
	          if (!/(38|40|13)/.test(evt.keyCode)) return;
	          if ($typeahead.$isVisible() && !(evt.keyCode === 13 && scope.$activeIndex === -1)) {
	            evt.preventDefault();
	            evt.stopPropagation();
	          }
	          if (evt.keyCode === 13 && scope.$matches.length) {
	            $typeahead.select(scope.$activeIndex);
	          } else if (evt.keyCode === 38 && scope.$activeIndex > 0) {
	            scope.$activeIndex--;
	          } else if (evt.keyCode === 40 && scope.$activeIndex < scope.$matches.length - 1) {
	            scope.$activeIndex++;
	          } else if (angular.isUndefined(scope.$activeIndex)) {
	            scope.$activeIndex = 0;
	          }
	          $typeahead.$$updateScrollTop($typeahead.$element[0], scope.$activeIndex);
	          scope.$digest();
	        };
	        var show = $typeahead.show;
	        $typeahead.show = function () {
	          show();
	          $timeout(function () {
	            if ($typeahead.$element) {
	              $typeahead.$element.on('mousedown', $typeahead.$onMouseDown);
	              if (options.keyboard) {
	                if (element) element.on('keydown', $typeahead.$onKeyDown);
	              }
	            }
	          }, 0, false);
	        };
	        var hide = $typeahead.hide;
	        $typeahead.hide = function () {
	          if ($typeahead.$element) $typeahead.$element.off('mousedown', $typeahead.$onMouseDown);
	          if (options.keyboard) {
	            if (element) element.off('keydown', $typeahead.$onKeyDown);
	          }
	          if (!options.autoSelect) {
	            $typeahead.activate(-1);
	          }
	          hide();
	        };
	        return $typeahead;
	      }
	      function safeDigest(scope) {
	        scope.$$phase || scope.$root && scope.$root.$$phase || scope.$digest();
	      }
	      TypeaheadFactory.defaults = defaults;
	      return TypeaheadFactory;
	    }];
	  }).filter('bsAsyncFilter', ['$filter', function ($filter) {
	    return function (array, expression, comparator) {
	      if (array && angular.isFunction(array.then)) {
	        return array.then(function (results) {
	          return $filter('filter')(results, expression, comparator);
	        });
	      }
	      return $filter('filter')(array, expression, comparator);
	    };
	  }]).directive('bsTypeahead', ['$window', '$parse', '$q', '$typeahead', '$parseOptions', function ($window, $parse, $q, $typeahead, $parseOptions) {
	    var defaults = $typeahead.defaults;
	    return {
	      restrict: 'EAC',
	      require: 'ngModel',
	      link: function postLink(scope, element, attr, controller) {
	        element.off('change');
	        var options = {
	          scope: scope
	        };
	        angular.forEach(['template', 'templateUrl', 'controller', 'controllerAs', 'placement', 'container', 'delay', 'trigger', 'keyboard', 'html', 'animation', 'filter', 'limit', 'minLength', 'watchOptions', 'selectMode', 'autoSelect', 'comparator', 'id', 'prefixEvent', 'prefixClass'], function (key) {
	          if (angular.isDefined(attr[key])) options[key] = attr[key];
	        });
	        var falseValueRegExp = /^(false|0|)$/i;
	        angular.forEach(['html', 'container', 'trimValue', 'filter'], function (key) {
	          if (angular.isDefined(attr[key]) && falseValueRegExp.test(attr[key])) options[key] = false;
	        });
	        angular.forEach(['onBeforeShow', 'onShow', 'onBeforeHide', 'onHide', 'onSelect'], function (key) {
	          var bsKey = 'bs' + key.charAt(0).toUpperCase() + key.slice(1);
	          if (angular.isDefined(attr[bsKey])) {
	            options[key] = scope.$eval(attr[bsKey]);
	          }
	        });
	        if (!element.attr('autocomplete')) element.attr('autocomplete', 'off');
	        var filter = angular.isDefined(options.filter) ? options.filter : defaults.filter;
	        var limit = options.limit || defaults.limit;
	        var comparator = options.comparator || defaults.comparator;
	        var bsOptions = attr.bsOptions;
	        if (filter) {
	          bsOptions += ' | ' + filter + ':$viewValue';
	          if (comparator) bsOptions += ':' + comparator;
	        }
	        if (limit) bsOptions += ' | limitTo:' + limit;
	        var parsedOptions = $parseOptions(bsOptions);
	        var typeahead = $typeahead(element, controller, options);
	        if (options.watchOptions) {
	          var watchedOptions = parsedOptions.$match[7].replace(/\|.+/, '').replace(/\(.*\)/g, '').trim();
	          scope.$watchCollection(watchedOptions, function (newValue, oldValue) {
	            parsedOptions.valuesFn(scope, controller).then(function (values) {
	              typeahead.update(values);
	              controller.$render();
	            });
	          });
	        }
	        scope.$watch(attr.ngModel, function (newValue, oldValue) {
	          scope.$modelValue = newValue;
	          parsedOptions.valuesFn(scope, controller).then(function (values) {
	            if (options.selectMode && !values.length && newValue.length > 0) {
	              controller.$setViewValue(controller.$viewValue.substring(0, controller.$viewValue.length - 1));
	              return;
	            }
	            if (values.length > limit) values = values.slice(0, limit);
	            typeahead.update(values);
	            controller.$render();
	          });
	        });
	        controller.$formatters.push(function (modelValue) {
	          var displayValue = parsedOptions.displayValue(modelValue);
	          if (displayValue) {
	            return displayValue;
	          }
	          if (angular.isDefined(modelValue) && (typeof modelValue === 'undefined' ? 'undefined' : _typeof(modelValue)) !== 'object') {
	            return modelValue;
	          }
	          return '';
	        });
	        controller.$render = function () {
	          if (controller.$isEmpty(controller.$viewValue)) {
	            return element.val('');
	          }
	          var index = typeahead.$getIndex(controller.$modelValue);
	          var selected = index !== -1 ? typeahead.$scope.$matches[index].label : controller.$viewValue;
	          selected = angular.isObject(selected) ? parsedOptions.displayValue(selected) : selected;
	          var value = selected ? selected.toString().replace(/<(?:.|\n)*?>/gm, '') : '';
	          var ss = element[0].selectionStart;
	          var sd = element[0].selectionEnd;
	          element.val(options.trimValue === false ? value : value.trim());
	          element[0].setSelectionRange(ss, sd);
	        };
	        scope.$on('$destroy', function () {
	          if (typeahead) typeahead.destroy();
	          options = null;
	          typeahead = null;
	        });
	      }
	    };
	  }]);
	  angular.module('mgcrea.ngStrap.tooltip', ['mgcrea.ngStrap.core', 'mgcrea.ngStrap.helpers.dimensions']).provider('$tooltip', function () {
	    var defaults = this.defaults = {
	      animation: 'am-fade',
	      customClass: '',
	      prefixClass: 'tooltip',
	      prefixEvent: 'tooltip',
	      container: false,
	      target: false,
	      placement: 'top',
	      templateUrl: 'tooltip/tooltip.tpl.html',
	      template: '',
	      titleTemplate: false,
	      trigger: 'hover focus',
	      keyboard: false,
	      html: false,
	      show: false,
	      title: '',
	      type: '',
	      delay: 0,
	      autoClose: false,
	      bsEnabled: true,
	      mouseDownPreventDefault: true,
	      mouseDownStopPropagation: true,
	      viewport: {
	        selector: 'body',
	        padding: 0
	      }
	    };
	    this.$get = ['$window', '$rootScope', '$bsCompiler', '$q', '$templateCache', '$http', '$animate', '$sce', 'dimensions', '$$rAF', '$timeout', function ($window, $rootScope, $bsCompiler, $q, $templateCache, $http, $animate, $sce, dimensions, $$rAF, $timeout) {
	      var isNative = /(ip[ao]d|iphone|android)/gi.test($window.navigator.userAgent);
	      var isTouch = 'createTouch' in $window.document && isNative;
	      var $body = angular.element($window.document);
	      function TooltipFactory(element, config) {
	        var $tooltip = {};
	        var options = $tooltip.$options = angular.extend({}, defaults, config);
	        var promise = $tooltip.$promise = $bsCompiler.compile(options);
	        var scope = $tooltip.$scope = options.scope && options.scope.$new() || $rootScope.$new();
	        var nodeName = element[0].nodeName.toLowerCase();
	        if (options.delay && angular.isString(options.delay)) {
	          var split = options.delay.split(',').map(parseFloat);
	          options.delay = split.length > 1 ? {
	            show: split[0],
	            hide: split[1]
	          } : split[0];
	        }
	        $tooltip.$id = options.id || element.attr('id') || '';
	        if (options.title) {
	          scope.title = $sce.trustAsHtml(options.title);
	        }
	        scope.$setEnabled = function (isEnabled) {
	          scope.$$postDigest(function () {
	            $tooltip.setEnabled(isEnabled);
	          });
	        };
	        scope.$hide = function () {
	          scope.$$postDigest(function () {
	            $tooltip.hide();
	          });
	        };
	        scope.$show = function () {
	          scope.$$postDigest(function () {
	            $tooltip.show();
	          });
	        };
	        scope.$toggle = function () {
	          scope.$$postDigest(function () {
	            $tooltip.toggle();
	          });
	        };
	        $tooltip.$isShown = scope.$isShown = false;
	        var timeout;
	        var hoverState;
	        var compileData;
	        var tipElement;
	        var tipContainer;
	        var tipScope;
	        promise.then(function (data) {
	          compileData = data;
	          $tooltip.init();
	        });
	        $tooltip.init = function () {
	          if (options.delay && angular.isNumber(options.delay)) {
	            options.delay = {
	              show: options.delay,
	              hide: options.delay
	            };
	          }
	          if (options.container === 'self') {
	            tipContainer = element;
	          } else if (angular.isElement(options.container)) {
	            tipContainer = options.container;
	          } else if (options.container) {
	            tipContainer = findElement(options.container);
	          }
	          bindTriggerEvents();
	          if (options.target) {
	            options.target = angular.isElement(options.target) ? options.target : findElement(options.target);
	          }
	          if (options.show) {
	            scope.$$postDigest(function () {
	              if (options.trigger === 'focus') {
	                element[0].focus();
	              } else {
	                $tooltip.show();
	              }
	            });
	          }
	        };
	        $tooltip.destroy = function () {
	          unbindTriggerEvents();
	          destroyTipElement();
	          scope.$destroy();
	        };
	        $tooltip.enter = function () {
	          clearTimeout(timeout);
	          hoverState = 'in';
	          if (!options.delay || !options.delay.show) {
	            return $tooltip.show();
	          }
	          timeout = setTimeout(function () {
	            if (hoverState === 'in') $tooltip.show();
	          }, options.delay.show);
	        };
	        $tooltip.show = function () {
	          if (!options.bsEnabled || $tooltip.$isShown) return;
	          scope.$emit(options.prefixEvent + '.show.before', $tooltip);
	          if (angular.isDefined(options.onBeforeShow) && angular.isFunction(options.onBeforeShow)) {
	            options.onBeforeShow($tooltip);
	          }
	          var parent;
	          var after;
	          if (options.container) {
	            parent = tipContainer;
	            if (tipContainer[0].lastChild) {
	              after = angular.element(tipContainer[0].lastChild);
	            } else {
	              after = null;
	            }
	          } else {
	            parent = null;
	            after = element;
	          }
	          if (tipElement) destroyTipElement();
	          tipScope = $tooltip.$scope.$new();
	          tipElement = $tooltip.$element = compileData.link(tipScope, function (clonedElement, scope) {});
	          tipElement.css({
	            top: '-9999px',
	            left: '-9999px',
	            right: 'auto',
	            display: 'block',
	            visibility: 'hidden'
	          });
	          if (options.animation) tipElement.addClass(options.animation);
	          if (options.type) tipElement.addClass(options.prefixClass + '-' + options.type);
	          if (options.customClass) tipElement.addClass(options.customClass);
	          if (after) {
	            after.after(tipElement);
	          } else {
	            parent.prepend(tipElement);
	          }
	          $tooltip.$isShown = scope.$isShown = true;
	          safeDigest(scope);
	          $tooltip.$applyPlacement();
	          if (angular.version.minor <= 2) {
	            $animate.enter(tipElement, parent, after, enterAnimateCallback);
	          } else {
	            $animate.enter(tipElement, parent, after).then(enterAnimateCallback);
	          }
	          safeDigest(scope);
	          $$rAF(function () {
	            if (tipElement) tipElement.css({
	              visibility: 'visible'
	            });
	            if (options.keyboard) {
	              if (options.trigger !== 'focus') {
	                $tooltip.focus();
	              }
	              bindKeyboardEvents();
	            }
	          });
	          if (options.autoClose) {
	            bindAutoCloseEvents();
	          }
	        };
	        function enterAnimateCallback() {
	          scope.$emit(options.prefixEvent + '.show', $tooltip);
	          if (angular.isDefined(options.onShow) && angular.isFunction(options.onShow)) {
	            options.onShow($tooltip);
	          }
	        }
	        $tooltip.leave = function () {
	          clearTimeout(timeout);
	          hoverState = 'out';
	          if (!options.delay || !options.delay.hide) {
	            return $tooltip.hide();
	          }
	          timeout = setTimeout(function () {
	            if (hoverState === 'out') {
	              $tooltip.hide();
	            }
	          }, options.delay.hide);
	        };
	        var _blur;
	        var _tipToHide;
	        $tooltip.hide = function (blur) {
	          if (!$tooltip.$isShown) return;
	          scope.$emit(options.prefixEvent + '.hide.before', $tooltip);
	          if (angular.isDefined(options.onBeforeHide) && angular.isFunction(options.onBeforeHide)) {
	            options.onBeforeHide($tooltip);
	          }
	          _blur = blur;
	          _tipToHide = tipElement;
	          if (tipElement !== null) {
	            if (angular.version.minor <= 2) {
	              $animate.leave(tipElement, leaveAnimateCallback);
	            } else {
	              $animate.leave(tipElement).then(leaveAnimateCallback);
	            }
	          }
	          $tooltip.$isShown = scope.$isShown = false;
	          safeDigest(scope);
	          if (options.keyboard && tipElement !== null) {
	            unbindKeyboardEvents();
	          }
	          if (options.autoClose && tipElement !== null) {
	            unbindAutoCloseEvents();
	          }
	        };
	        function leaveAnimateCallback() {
	          scope.$emit(options.prefixEvent + '.hide', $tooltip);
	          if (angular.isDefined(options.onHide) && angular.isFunction(options.onHide)) {
	            options.onHide($tooltip);
	          }
	          if (tipElement === _tipToHide) {
	            if (_blur && options.trigger === 'focus') {
	              return element[0].blur();
	            }
	            destroyTipElement();
	          }
	        }
	        $tooltip.toggle = function (evt) {
	          if (evt) {
	            evt.preventDefault();
	          }
	          if ($tooltip.$isShown) {
	            $tooltip.leave();
	          } else {
	            $tooltip.enter();
	          }
	        };
	        $tooltip.focus = function () {
	          tipElement[0].focus();
	        };
	        $tooltip.setEnabled = function (isEnabled) {
	          options.bsEnabled = isEnabled;
	        };
	        $tooltip.setViewport = function (viewport) {
	          options.viewport = viewport;
	        };
	        $tooltip.$applyPlacement = function () {
	          if (!tipElement) return;
	          var placement = options.placement;
	          var autoToken = /\s?auto?\s?/i;
	          var autoPlace = autoToken.test(placement);
	          if (autoPlace) {
	            placement = placement.replace(autoToken, '') || defaults.placement;
	          }
	          tipElement.addClass(options.placement);
	          var elementPosition = getPosition();
	          var tipWidth = tipElement.prop('offsetWidth');
	          var tipHeight = tipElement.prop('offsetHeight');
	          $tooltip.$viewport = options.viewport && findElement(options.viewport.selector || options.viewport);
	          if (autoPlace) {
	            var originalPlacement = placement;
	            var viewportPosition = getPosition($tooltip.$viewport);
	            if (/bottom/.test(originalPlacement) && elementPosition.bottom + tipHeight > viewportPosition.bottom) {
	              placement = originalPlacement.replace('bottom', 'top');
	            } else if (/top/.test(originalPlacement) && elementPosition.top - tipHeight < viewportPosition.top) {
	              placement = originalPlacement.replace('top', 'bottom');
	            }
	            if (/left/.test(originalPlacement) && elementPosition.left - tipWidth < viewportPosition.left) {
	              placement = placement.replace('left', 'right');
	            } else if (/right/.test(originalPlacement) && elementPosition.right + tipWidth > viewportPosition.width) {
	              placement = placement.replace('right', 'left');
	            }
	            tipElement.removeClass(originalPlacement).addClass(placement);
	          }
	          var tipPosition = getCalculatedOffset(placement, elementPosition, tipWidth, tipHeight);
	          applyPlacement(tipPosition, placement);
	        };
	        $tooltip.$onKeyUp = function (evt) {
	          if (evt.which === 27 && $tooltip.$isShown) {
	            $tooltip.hide();
	            evt.stopPropagation();
	          }
	        };
	        $tooltip.$onFocusKeyUp = function (evt) {
	          if (evt.which === 27) {
	            element[0].blur();
	            evt.stopPropagation();
	          }
	        };
	        $tooltip.$onFocusElementMouseDown = function (evt) {
	          if (options.mouseDownPreventDefault) {
	            evt.preventDefault();
	          }
	          if (options.mouseDownStopPropagation) {
	            evt.stopPropagation();
	          }
	          if ($tooltip.$isShown) {
	            element[0].blur();
	          } else {
	            element[0].focus();
	          }
	        };
	        function bindTriggerEvents() {
	          var triggers = options.trigger.split(' ');
	          angular.forEach(triggers, function (trigger) {
	            if (trigger === 'click' || trigger === 'contextmenu') {
	              element.on(trigger, $tooltip.toggle);
	            } else if (trigger !== 'manual') {
	              element.on(trigger === 'hover' ? 'mouseenter' : 'focus', $tooltip.enter);
	              element.on(trigger === 'hover' ? 'mouseleave' : 'blur', $tooltip.leave);
	              if (nodeName === 'button' && trigger !== 'hover') {
	                element.on(isTouch ? 'touchstart' : 'mousedown', $tooltip.$onFocusElementMouseDown);
	              }
	            }
	          });
	        }
	        function unbindTriggerEvents() {
	          var triggers = options.trigger.split(' ');
	          for (var i = triggers.length; i--;) {
	            var trigger = triggers[i];
	            if (trigger === 'click' || trigger === 'contextmenu') {
	              element.off(trigger, $tooltip.toggle);
	            } else if (trigger !== 'manual') {
	              element.off(trigger === 'hover' ? 'mouseenter' : 'focus', $tooltip.enter);
	              element.off(trigger === 'hover' ? 'mouseleave' : 'blur', $tooltip.leave);
	              if (nodeName === 'button' && trigger !== 'hover') {
	                element.off(isTouch ? 'touchstart' : 'mousedown', $tooltip.$onFocusElementMouseDown);
	              }
	            }
	          }
	        }
	        function bindKeyboardEvents() {
	          if (options.trigger !== 'focus') {
	            tipElement.on('keyup', $tooltip.$onKeyUp);
	          } else {
	            element.on('keyup', $tooltip.$onFocusKeyUp);
	          }
	        }
	        function unbindKeyboardEvents() {
	          if (options.trigger !== 'focus') {
	            tipElement.off('keyup', $tooltip.$onKeyUp);
	          } else {
	            element.off('keyup', $tooltip.$onFocusKeyUp);
	          }
	        }
	        var _autoCloseEventsBinded = false;
	        function bindAutoCloseEvents() {
	          $timeout(function () {
	            tipElement.on('click', stopEventPropagation);
	            $body.on('click', $tooltip.hide);
	            _autoCloseEventsBinded = true;
	          }, 0, false);
	        }
	        function unbindAutoCloseEvents() {
	          if (_autoCloseEventsBinded) {
	            tipElement.off('click', stopEventPropagation);
	            $body.off('click', $tooltip.hide);
	            _autoCloseEventsBinded = false;
	          }
	        }
	        function stopEventPropagation(event) {
	          event.stopPropagation();
	        }
	        function getPosition($element) {
	          $element = $element || options.target || element;
	          var el = $element[0];
	          var isBody = el.tagName === 'BODY';
	          var elRect = el.getBoundingClientRect();
	          var rect = {};
	          for (var p in elRect) {
	            rect[p] = elRect[p];
	          }
	          if (rect.width === null) {
	            rect = angular.extend({}, rect, {
	              width: elRect.right - elRect.left,
	              height: elRect.bottom - elRect.top
	            });
	          }
	          var elOffset = isBody ? {
	            top: 0,
	            left: 0
	          } : dimensions.offset(el);
	          var scroll = {
	            scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.prop('scrollTop') || 0
	          };
	          var outerDims = isBody ? {
	            width: document.documentElement.clientWidth,
	            height: $window.innerHeight
	          } : null;
	          return angular.extend({}, rect, scroll, outerDims, elOffset);
	        }
	        function getCalculatedOffset(placement, position, actualWidth, actualHeight) {
	          var offset;
	          var split = placement.split('-');
	          switch (split[0]) {
	            case 'right':
	              offset = {
	                top: position.top + position.height / 2 - actualHeight / 2,
	                left: position.left + position.width
	              };
	              break;
	
	            case 'bottom':
	              offset = {
	                top: position.top + position.height,
	                left: position.left + position.width / 2 - actualWidth / 2
	              };
	              break;
	
	            case 'left':
	              offset = {
	                top: position.top + position.height / 2 - actualHeight / 2,
	                left: position.left - actualWidth
	              };
	              break;
	
	            default:
	              offset = {
	                top: position.top - actualHeight,
	                left: position.left + position.width / 2 - actualWidth / 2
	              };
	              break;
	          }
	          if (!split[1]) {
	            return offset;
	          }
	          if (split[0] === 'top' || split[0] === 'bottom') {
	            switch (split[1]) {
	              case 'left':
	                offset.left = position.left;
	                break;
	
	              case 'right':
	                offset.left = position.left + position.width - actualWidth;
	                break;
	
	              default:
	                break;
	            }
	          } else if (split[0] === 'left' || split[0] === 'right') {
	            switch (split[1]) {
	              case 'top':
	                offset.top = position.top - actualHeight + position.height;
	                break;
	
	              case 'bottom':
	                offset.top = position.top;
	                break;
	
	              default:
	                break;
	            }
	          }
	          return offset;
	        }
	        function applyPlacement(offset, placement) {
	          var tip = tipElement[0];
	          var width = tip.offsetWidth;
	          var height = tip.offsetHeight;
	          var marginTop = parseInt(dimensions.css(tip, 'margin-top'), 10);
	          var marginLeft = parseInt(dimensions.css(tip, 'margin-left'), 10);
	          if (isNaN(marginTop)) marginTop = 0;
	          if (isNaN(marginLeft)) marginLeft = 0;
	          offset.top = offset.top + marginTop;
	          offset.left = offset.left + marginLeft;
	          dimensions.setOffset(tip, angular.extend({
	            using: function using(props) {
	              tipElement.css({
	                top: Math.round(props.top) + 'px',
	                left: Math.round(props.left) + 'px',
	                right: ''
	              });
	            }
	          }, offset), 0);
	          var actualWidth = tip.offsetWidth;
	          var actualHeight = tip.offsetHeight;
	          if (placement === 'top' && actualHeight !== height) {
	            offset.top = offset.top + height - actualHeight;
	          }
	          if (/top-left|top-right|bottom-left|bottom-right/.test(placement)) return;
	          var delta = getViewportAdjustedDelta(placement, offset, actualWidth, actualHeight);
	          if (delta.left) {
	            offset.left += delta.left;
	          } else {
	            offset.top += delta.top;
	          }
	          dimensions.setOffset(tip, offset);
	          if (/top|right|bottom|left/.test(placement)) {
	            var isVertical = /top|bottom/.test(placement);
	            var arrowDelta = isVertical ? delta.left * 2 - width + actualWidth : delta.top * 2 - height + actualHeight;
	            var arrowOffsetPosition = isVertical ? 'offsetWidth' : 'offsetHeight';
	            replaceArrow(arrowDelta, tip[arrowOffsetPosition], isVertical);
	          }
	        }
	        function getViewportAdjustedDelta(placement, position, actualWidth, actualHeight) {
	          var delta = {
	            top: 0,
	            left: 0
	          };
	          if (!$tooltip.$viewport) return delta;
	          var viewportPadding = options.viewport && options.viewport.padding || 0;
	          var viewportDimensions = getPosition($tooltip.$viewport);
	          if (/right|left/.test(placement)) {
	            var topEdgeOffset = position.top - viewportPadding - viewportDimensions.scroll;
	            var bottomEdgeOffset = position.top + viewportPadding - viewportDimensions.scroll + actualHeight;
	            if (topEdgeOffset < viewportDimensions.top) {
	              delta.top = viewportDimensions.top - topEdgeOffset;
	            } else if (bottomEdgeOffset > viewportDimensions.top + viewportDimensions.height) {
	              delta.top = viewportDimensions.top + viewportDimensions.height - bottomEdgeOffset;
	            }
	          } else {
	            var leftEdgeOffset = position.left - viewportPadding;
	            var rightEdgeOffset = position.left + viewportPadding + actualWidth;
	            if (leftEdgeOffset < viewportDimensions.left) {
	              delta.left = viewportDimensions.left - leftEdgeOffset;
	            } else if (rightEdgeOffset > viewportDimensions.right) {
	              delta.left = viewportDimensions.left + viewportDimensions.width - rightEdgeOffset;
	            }
	          }
	          return delta;
	        }
	        function replaceArrow(delta, dimension, isHorizontal) {
	          var $arrow = findElement('.tooltip-arrow, .arrow', tipElement[0]);
	          $arrow.css(isHorizontal ? 'left' : 'top', 50 * (1 - delta / dimension) + '%').css(isHorizontal ? 'top' : 'left', '');
	        }
	        function destroyTipElement() {
	          clearTimeout(timeout);
	          if ($tooltip.$isShown && tipElement !== null) {
	            if (options.autoClose) {
	              unbindAutoCloseEvents();
	            }
	            if (options.keyboard) {
	              unbindKeyboardEvents();
	            }
	          }
	          if (tipScope) {
	            tipScope.$destroy();
	            tipScope = null;
	          }
	          if (tipElement) {
	            tipElement.remove();
	            tipElement = $tooltip.$element = null;
	          }
	        }
	        return $tooltip;
	      }
	      function safeDigest(scope) {
	        scope.$$phase || scope.$root && scope.$root.$$phase || scope.$digest();
	      }
	      function findElement(query, element) {
	        return angular.element((element || document).querySelectorAll(query));
	      }
	      return TooltipFactory;
	    }];
	  }).directive('bsTooltip', ['$window', '$location', '$sce', '$parse', '$tooltip', '$$rAF', function ($window, $location, $sce, $parse, $tooltip, $$rAF) {
	    return {
	      restrict: 'EAC',
	      scope: true,
	      link: function postLink(scope, element, attr, transclusion) {
	        var tooltip;
	        var options = {
	          scope: scope
	        };
	        angular.forEach(['template', 'templateUrl', 'controller', 'controllerAs', 'titleTemplate', 'placement', 'container', 'delay', 'trigger', 'html', 'animation', 'backdropAnimation', 'type', 'customClass', 'id'], function (key) {
	          if (angular.isDefined(attr[key])) options[key] = attr[key];
	        });
	        var falseValueRegExp = /^(false|0|)$/i;
	        angular.forEach(['html', 'container'], function (key) {
	          if (angular.isDefined(attr[key]) && falseValueRegExp.test(attr[key])) {
	            options[key] = false;
	          }
	        });
	        angular.forEach(['onBeforeShow', 'onShow', 'onBeforeHide', 'onHide'], function (key) {
	          var bsKey = 'bs' + key.charAt(0).toUpperCase() + key.slice(1);
	          if (angular.isDefined(attr[bsKey])) {
	            options[key] = scope.$eval(attr[bsKey]);
	          }
	        });
	        var dataTarget = element.attr('data-target');
	        if (angular.isDefined(dataTarget)) {
	          if (falseValueRegExp.test(dataTarget)) {
	            options.target = false;
	          } else {
	            options.target = dataTarget;
	          }
	        }
	        if (!scope.hasOwnProperty('title')) {
	          scope.title = '';
	        }
	        attr.$observe('title', function (newValue) {
	          if (angular.isDefined(newValue) || !scope.hasOwnProperty('title')) {
	            var oldValue = scope.title;
	            scope.title = $sce.trustAsHtml(newValue);
	            if (angular.isDefined(oldValue)) {
	              $$rAF(function () {
	                if (tooltip) tooltip.$applyPlacement();
	              });
	            }
	          }
	        });
	        attr.$observe('disabled', function (newValue) {
	          if (newValue && tooltip.$isShown) {
	            tooltip.hide();
	          }
	        });
	        if (attr.bsTooltip) {
	          scope.$watch(attr.bsTooltip, function (newValue, oldValue) {
	            if (angular.isObject(newValue)) {
	              angular.extend(scope, newValue);
	            } else {
	              scope.title = newValue;
	            }
	            if (angular.isDefined(oldValue)) {
	              $$rAF(function () {
	                if (tooltip) tooltip.$applyPlacement();
	              });
	            }
	          }, true);
	        }
	        if (attr.bsShow) {
	          scope.$watch(attr.bsShow, function (newValue, oldValue) {
	            if (!tooltip || !angular.isDefined(newValue)) return;
	            if (angular.isString(newValue)) newValue = !!newValue.match(/true|,?(tooltip),?/i);
	            if (newValue === true) {
	              tooltip.show();
	            } else {
	              tooltip.hide();
	            }
	          });
	        }
	        if (attr.bsEnabled) {
	          scope.$watch(attr.bsEnabled, function (newValue, oldValue) {
	            if (!tooltip || !angular.isDefined(newValue)) return;
	            if (angular.isString(newValue)) newValue = !!newValue.match(/true|1|,?(tooltip),?/i);
	            if (newValue === false) {
	              tooltip.setEnabled(false);
	            } else {
	              tooltip.setEnabled(true);
	            }
	          });
	        }
	        if (attr.viewport) {
	          scope.$watch(attr.viewport, function (newValue) {
	            if (!tooltip || !angular.isDefined(newValue)) return;
	            tooltip.setViewport(newValue);
	          });
	        }
	        tooltip = $tooltip(element, options);
	        scope.$on('$destroy', function () {
	          if (tooltip) tooltip.destroy();
	          options = null;
	          tooltip = null;
	        });
	      }
	    };
	  }]);
	  angular.module('mgcrea.ngStrap.timepicker', ['mgcrea.ngStrap.helpers.dateParser', 'mgcrea.ngStrap.helpers.dateFormatter', 'mgcrea.ngStrap.tooltip']).provider('$timepicker', function () {
	    var defaults = this.defaults = {
	      animation: 'am-fade',
	      defaultDate: 'auto',
	      prefixClass: 'timepicker',
	      placement: 'bottom-left',
	      templateUrl: 'timepicker/timepicker.tpl.html',
	      trigger: 'focus',
	      container: false,
	      keyboard: true,
	      html: false,
	      delay: 0,
	      useNative: true,
	      timeType: 'date',
	      timeFormat: 'shortTime',
	      timezone: null,
	      modelTimeFormat: null,
	      autoclose: false,
	      minTime: -Infinity,
	      maxTime: +Infinity,
	      length: 5,
	      hourStep: 1,
	      minuteStep: 5,
	      secondStep: 5,
	      roundDisplay: false,
	      iconUp: 'glyphicon glyphicon-chevron-up',
	      iconDown: 'glyphicon glyphicon-chevron-down',
	      arrowBehavior: 'pager'
	    };
	    this.$get = ['$window', '$document', '$rootScope', '$sce', '$dateFormatter', '$tooltip', '$timeout', function ($window, $document, $rootScope, $sce, $dateFormatter, $tooltip, $timeout) {
	      var isNative = /(ip[ao]d|iphone|android)/gi.test($window.navigator.userAgent);
	      var isTouch = 'createTouch' in $window.document && isNative;
	      if (!defaults.lang) {
	        defaults.lang = $dateFormatter.getDefaultLocale();
	      }
	      function timepickerFactory(element, controller, config) {
	        var $timepicker = $tooltip(element, angular.extend({}, defaults, config));
	        var parentScope = config.scope;
	        var options = $timepicker.$options;
	        var scope = $timepicker.$scope;
	        var lang = options.lang;
	        var formatDate = function formatDate(date, format, timezone) {
	          return $dateFormatter.formatDate(date, format, lang, timezone);
	        };
	        function floorMinutes(time) {
	          var coeff = 1e3 * 60 * options.minuteStep;
	          return new Date(Math.floor(time.getTime() / coeff) * coeff);
	        }
	        var selectedIndex = 0;
	        var defaultDate = options.roundDisplay ? floorMinutes(new Date()) : new Date();
	        var startDate = controller.$dateValue || defaultDate;
	        var viewDate = {
	          hour: startDate.getHours(),
	          meridian: startDate.getHours() < 12,
	          minute: startDate.getMinutes(),
	          second: startDate.getSeconds(),
	          millisecond: startDate.getMilliseconds()
	        };
	        var format = $dateFormatter.getDatetimeFormat(options.timeFormat, lang);
	        var hoursFormat = $dateFormatter.hoursFormat(format);
	        var timeSeparator = $dateFormatter.timeSeparator(format);
	        var minutesFormat = $dateFormatter.minutesFormat(format);
	        var secondsFormat = $dateFormatter.secondsFormat(format);
	        var showSeconds = $dateFormatter.showSeconds(format);
	        var showAM = $dateFormatter.showAM(format);
	        scope.$iconUp = options.iconUp;
	        scope.$iconDown = options.iconDown;
	        scope.$select = function (date, index) {
	          $timepicker.select(date, index);
	        };
	        scope.$moveIndex = function (value, index) {
	          $timepicker.$moveIndex(value, index);
	        };
	        scope.$switchMeridian = function (date) {
	          $timepicker.switchMeridian(date);
	        };
	        $timepicker.update = function (date) {
	          if (angular.isDate(date) && !isNaN(date.getTime())) {
	            $timepicker.$date = date;
	            angular.extend(viewDate, {
	              hour: date.getHours(),
	              minute: date.getMinutes(),
	              second: date.getSeconds(),
	              millisecond: date.getMilliseconds()
	            });
	            $timepicker.$build();
	          } else if (!$timepicker.$isBuilt) {
	            $timepicker.$build();
	          }
	        };
	        $timepicker.select = function (date, index, keep) {
	          if (!controller.$dateValue || isNaN(controller.$dateValue.getTime())) {
	            controller.$dateValue = options.defaultDate === 'today' ? new Date() : new Date(1970, 0, 1);
	          }
	          if (!angular.isDate(date)) date = new Date(date);
	          if (index === 0) controller.$dateValue.setHours(date.getHours());else if (index === 1) controller.$dateValue.setMinutes(date.getMinutes());else if (index === 2) controller.$dateValue.setSeconds(date.getSeconds());
	          controller.$setViewValue(angular.copy(controller.$dateValue));
	          controller.$render();
	          if (options.autoclose && !keep) {
	            $timeout(function () {
	              $timepicker.hide(true);
	            });
	          }
	        };
	        $timepicker.switchMeridian = function (date) {
	          if (!controller.$dateValue || isNaN(controller.$dateValue.getTime())) {
	            return;
	          }
	          var hours = (date || controller.$dateValue).getHours();
	          controller.$dateValue.setHours(hours < 12 ? hours + 12 : hours - 12);
	          controller.$setViewValue(angular.copy(controller.$dateValue));
	          controller.$render();
	        };
	        $timepicker.$build = function () {
	          var i;
	          var midIndex = scope.midIndex = parseInt(options.length / 2, 10);
	          var hours = [];
	          var hour;
	          for (i = 0; i < options.length; i++) {
	            hour = new Date(1970, 0, 1, viewDate.hour - (midIndex - i) * options.hourStep);
	            hours.push({
	              date: hour,
	              label: formatDate(hour, hoursFormat),
	              selected: $timepicker.$date && $timepicker.$isSelected(hour, 0),
	              disabled: $timepicker.$isDisabled(hour, 0)
	            });
	          }
	          var minutes = [];
	          var minute;
	          for (i = 0; i < options.length; i++) {
	            minute = new Date(1970, 0, 1, 0, viewDate.minute - (midIndex - i) * options.minuteStep);
	            minutes.push({
	              date: minute,
	              label: formatDate(minute, minutesFormat),
	              selected: $timepicker.$date && $timepicker.$isSelected(minute, 1),
	              disabled: $timepicker.$isDisabled(minute, 1)
	            });
	          }
	          var seconds = [];
	          var second;
	          for (i = 0; i < options.length; i++) {
	            second = new Date(1970, 0, 1, 0, 0, viewDate.second - (midIndex - i) * options.secondStep);
	            seconds.push({
	              date: second,
	              label: formatDate(second, secondsFormat),
	              selected: $timepicker.$date && $timepicker.$isSelected(second, 2),
	              disabled: $timepicker.$isDisabled(second, 2)
	            });
	          }
	          var rows = [];
	          for (i = 0; i < options.length; i++) {
	            if (showSeconds) {
	              rows.push([hours[i], minutes[i], seconds[i]]);
	            } else {
	              rows.push([hours[i], minutes[i]]);
	            }
	          }
	          scope.rows = rows;
	          scope.showSeconds = showSeconds;
	          scope.showAM = showAM;
	          scope.isAM = ($timepicker.$date || hours[midIndex].date).getHours() < 12;
	          scope.timeSeparator = timeSeparator;
	          $timepicker.$isBuilt = true;
	        };
	        $timepicker.$isSelected = function (date, index) {
	          if (!$timepicker.$date) return false;else if (index === 0) {
	            return date.getHours() === $timepicker.$date.getHours();
	          } else if (index === 1) {
	            return date.getMinutes() === $timepicker.$date.getMinutes();
	          } else if (index === 2) {
	            return date.getSeconds() === $timepicker.$date.getSeconds();
	          }
	        };
	        $timepicker.$isDisabled = function (date, index) {
	          var selectedTime;
	          if (index === 0) {
	            selectedTime = date.getTime() + viewDate.minute * 6e4 + viewDate.second * 1e3;
	          } else if (index === 1) {
	            selectedTime = date.getTime() + viewDate.hour * 36e5 + viewDate.second * 1e3;
	          } else if (index === 2) {
	            selectedTime = date.getTime() + viewDate.hour * 36e5 + viewDate.minute * 6e4;
	          }
	          return selectedTime < options.minTime * 1 || selectedTime > options.maxTime * 1;
	        };
	        scope.$arrowAction = function (value, index) {
	          if (options.arrowBehavior === 'picker') {
	            $timepicker.$setTimeByStep(value, index);
	          } else {
	            $timepicker.$moveIndex(value, index);
	          }
	        };
	        $timepicker.$setTimeByStep = function (value, index) {
	          var newDate = new Date($timepicker.$date || startDate);
	          var hours = newDate.getHours();
	          var minutes = newDate.getMinutes();
	          var seconds = newDate.getSeconds();
	          if (index === 0) {
	            newDate.setHours(hours - parseInt(options.hourStep, 10) * value);
	          } else if (index === 1) {
	            newDate.setMinutes(minutes - parseInt(options.minuteStep, 10) * value);
	          } else if (index === 2) {
	            newDate.setSeconds(seconds - parseInt(options.secondStep, 10) * value);
	          }
	          $timepicker.select(newDate, index, true);
	        };
	        $timepicker.$moveIndex = function (value, index) {
	          var targetDate;
	          if (index === 0) {
	            targetDate = new Date(1970, 0, 1, viewDate.hour + value * options.length, viewDate.minute, viewDate.second);
	            angular.extend(viewDate, {
	              hour: targetDate.getHours()
	            });
	          } else if (index === 1) {
	            targetDate = new Date(1970, 0, 1, viewDate.hour, viewDate.minute + value * options.length * options.minuteStep, viewDate.second);
	            angular.extend(viewDate, {
	              minute: targetDate.getMinutes()
	            });
	          } else if (index === 2) {
	            targetDate = new Date(1970, 0, 1, viewDate.hour, viewDate.minute, viewDate.second + value * options.length * options.secondStep);
	            angular.extend(viewDate, {
	              second: targetDate.getSeconds()
	            });
	          }
	          $timepicker.$build();
	        };
	        $timepicker.$onMouseDown = function (evt) {
	          if (evt.target.nodeName.toLowerCase() !== 'input') evt.preventDefault();
	          evt.stopPropagation();
	          if (isTouch) {
	            var targetEl = angular.element(evt.target);
	            if (targetEl[0].nodeName.toLowerCase() !== 'button') {
	              targetEl = targetEl.parent();
	            }
	            targetEl.triggerHandler('click');
	          }
	        };
	        $timepicker.$onKeyDown = function (evt) {
	          if (!/(38|37|39|40|13)/.test(evt.keyCode) || evt.shiftKey || evt.altKey) return;
	          evt.preventDefault();
	          evt.stopPropagation();
	          if (evt.keyCode === 13) {
	            $timepicker.hide(true);
	            return;
	          }
	          var newDate = new Date($timepicker.$date);
	          var hours = newDate.getHours();
	          var hoursLength = formatDate(newDate, hoursFormat).length;
	          var minutes = newDate.getMinutes();
	          var minutesLength = formatDate(newDate, minutesFormat).length;
	          var seconds = newDate.getSeconds();
	          var secondsLength = formatDate(newDate, secondsFormat).length;
	          var sepLength = 1;
	          var lateralMove = /(37|39)/.test(evt.keyCode);
	          var count = 2 + showSeconds * 1 + showAM * 1;
	          if (lateralMove) {
	            if (evt.keyCode === 37) selectedIndex = selectedIndex < 1 ? count - 1 : selectedIndex - 1;else if (evt.keyCode === 39) selectedIndex = selectedIndex < count - 1 ? selectedIndex + 1 : 0;
	          }
	          var selectRange = [0, hoursLength];
	          var incr = 0;
	          if (evt.keyCode === 38) incr = -1;
	          if (evt.keyCode === 40) incr = +1;
	          var isSeconds = selectedIndex === 2 && showSeconds;
	          var isMeridian = selectedIndex === 2 && !showSeconds || selectedIndex === 3 && showSeconds;
	          if (selectedIndex === 0) {
	            newDate.setHours(hours + incr * parseInt(options.hourStep, 10));
	            hoursLength = formatDate(newDate, hoursFormat).length;
	            selectRange = [0, hoursLength];
	          } else if (selectedIndex === 1) {
	            newDate.setMinutes(minutes + incr * parseInt(options.minuteStep, 10));
	            minutesLength = formatDate(newDate, minutesFormat).length;
	            selectRange = [hoursLength + sepLength, minutesLength];
	          } else if (isSeconds) {
	            newDate.setSeconds(seconds + incr * parseInt(options.secondStep, 10));
	            secondsLength = formatDate(newDate, secondsFormat).length;
	            selectRange = [hoursLength + sepLength + minutesLength + sepLength, secondsLength];
	          } else if (isMeridian) {
	            if (!lateralMove) $timepicker.switchMeridian();
	            selectRange = [hoursLength + sepLength + minutesLength + sepLength + (secondsLength + sepLength) * showSeconds, 2];
	          }
	          $timepicker.select(newDate, selectedIndex, true);
	          createSelection(selectRange[0], selectRange[1]);
	          parentScope.$digest();
	        };
	        function createSelection(start, length) {
	          var end = start + length;
	          if (element[0].createTextRange) {
	            var selRange = element[0].createTextRange();
	            selRange.collapse(true);
	            selRange.moveStart('character', start);
	            selRange.moveEnd('character', end);
	            selRange.select();
	          } else if (element[0].setSelectionRange) {
	            element[0].setSelectionRange(start, end);
	          } else if (angular.isUndefined(element[0].selectionStart)) {
	            element[0].selectionStart = start;
	            element[0].selectionEnd = end;
	          }
	        }
	        function focusElement() {
	          element[0].focus();
	        }
	        var _init = $timepicker.init;
	        $timepicker.init = function () {
	          if (isNative && options.useNative) {
	            element.prop('type', 'time');
	            element.css('-webkit-appearance', 'textfield');
	            return;
	          } else if (isTouch) {
	            element.prop('type', 'text');
	            element.attr('readonly', 'true');
	            element.on('click', focusElement);
	          }
	          _init();
	        };
	        var _destroy = $timepicker.destroy;
	        $timepicker.destroy = function () {
	          if (isNative && options.useNative) {
	            element.off('click', focusElement);
	          }
	          _destroy();
	        };
	        var _show = $timepicker.show;
	        $timepicker.show = function () {
	          if (!isTouch && element.attr('readonly') || element.attr('disabled')) return;
	          _show();
	          $timeout(function () {
	            if ($timepicker.$element) $timepicker.$element.on(isTouch ? 'touchstart' : 'mousedown', $timepicker.$onMouseDown);
	            if (options.keyboard) {
	              if (element) element.on('keydown', $timepicker.$onKeyDown);
	            }
	          }, 0, false);
	        };
	        var _hide = $timepicker.hide;
	        $timepicker.hide = function (blur) {
	          if (!$timepicker.$isShown) return;
	          if ($timepicker.$element) $timepicker.$element.off(isTouch ? 'touchstart' : 'mousedown', $timepicker.$onMouseDown);
	          if (options.keyboard) {
	            if (element) element.off('keydown', $timepicker.$onKeyDown);
	          }
	          _hide(blur);
	        };
	        return $timepicker;
	      }
	      timepickerFactory.defaults = defaults;
	      return timepickerFactory;
	    }];
	  }).directive('bsTimepicker', ['$window', '$parse', '$q', '$dateFormatter', '$dateParser', '$timepicker', function ($window, $parse, $q, $dateFormatter, $dateParser, $timepicker) {
	    var defaults = $timepicker.defaults;
	    var isNative = /(ip[ao]d|iphone|android)/gi.test($window.navigator.userAgent);
	    return {
	      restrict: 'EAC',
	      require: 'ngModel',
	      link: function postLink(scope, element, attr, controller) {
	        var options = {
	          scope: scope
	        };
	        angular.forEach(['template', 'templateUrl', 'controller', 'controllerAs', 'placement', 'container', 'delay', 'trigger', 'keyboard', 'html', 'animation', 'autoclose', 'timeType', 'timeFormat', 'timezone', 'modelTimeFormat', 'useNative', 'hourStep', 'minuteStep', 'secondStep', 'length', 'arrowBehavior', 'iconUp', 'iconDown', 'roundDisplay', 'id', 'prefixClass', 'prefixEvent', 'defaultDate'], function (key) {
	          if (angular.isDefined(attr[key])) options[key] = attr[key];
	        });
	        var falseValueRegExp = /^(false|0|)$/i;
	        angular.forEach(['html', 'container', 'autoclose', 'useNative', 'roundDisplay'], function (key) {
	          if (angular.isDefined(attr[key]) && falseValueRegExp.test(attr[key])) {
	            options[key] = false;
	          }
	        });
	        angular.forEach(['onBeforeShow', 'onShow', 'onBeforeHide', 'onHide'], function (key) {
	          var bsKey = 'bs' + key.charAt(0).toUpperCase() + key.slice(1);
	          if (angular.isDefined(attr[bsKey])) {
	            options[key] = scope.$eval(attr[bsKey]);
	          }
	        });
	        if (isNative && (options.useNative || defaults.useNative)) options.timeFormat = 'HH:mm';
	        var timepicker = $timepicker(element, controller, options);
	        options = timepicker.$options;
	        var lang = options.lang;
	        var formatDate = function formatDate(date, format, timezone) {
	          return $dateFormatter.formatDate(date, format, lang, timezone);
	        };
	        if (attr.bsShow) {
	          scope.$watch(attr.bsShow, function (newValue, oldValue) {
	            if (!timepicker || !angular.isDefined(newValue)) return;
	            if (angular.isString(newValue)) newValue = !!newValue.match(/true|,?(timepicker),?/i);
	            if (newValue === true) {
	              timepicker.show();
	            } else {
	              timepicker.hide();
	            }
	          });
	        }
	        var dateParser = $dateParser({
	          format: options.timeFormat,
	          lang: lang
	        });
	        angular.forEach(['minTime', 'maxTime'], function (key) {
	          if (angular.isDefined(attr[key])) {
	            attr.$observe(key, function (newValue) {
	              timepicker.$options[key] = dateParser.getTimeForAttribute(key, newValue);
	              if (!isNaN(timepicker.$options[key])) timepicker.$build();
	              validateAgainstMinMaxTime(controller.$dateValue);
	            });
	          }
	        });
	        scope.$watch(attr.ngModel, function (newValue, oldValue) {
	          timepicker.update(controller.$dateValue);
	        }, true);
	        function validateAgainstMinMaxTime(parsedTime) {
	          if (!angular.isDate(parsedTime)) return;
	          var isMinValid = isNaN(options.minTime) || new Date(parsedTime.getTime()).setFullYear(1970, 0, 1) >= options.minTime;
	          var isMaxValid = isNaN(options.maxTime) || new Date(parsedTime.getTime()).setFullYear(1970, 0, 1) <= options.maxTime;
	          var isValid = isMinValid && isMaxValid;
	          controller.$setValidity('date', isValid);
	          controller.$setValidity('min', isMinValid);
	          controller.$setValidity('max', isMaxValid);
	          if (!isValid) {
	            return;
	          }
	          controller.$dateValue = parsedTime;
	        }
	        controller.$parsers.unshift(function (viewValue) {
	          var date;
	          if (!viewValue) {
	            controller.$setValidity('date', true);
	            return null;
	          }
	          var parsedTime = angular.isDate(viewValue) ? viewValue : dateParser.parse(viewValue, controller.$dateValue);
	          if (!parsedTime || isNaN(parsedTime.getTime())) {
	            controller.$setValidity('date', false);
	            return undefined;
	          }
	          validateAgainstMinMaxTime(parsedTime);
	          if (options.timeType === 'string') {
	            date = dateParser.timezoneOffsetAdjust(parsedTime, options.timezone, true);
	            return formatDate(date, options.modelTimeFormat || options.timeFormat);
	          }
	          date = dateParser.timezoneOffsetAdjust(controller.$dateValue, options.timezone, true);
	          if (options.timeType === 'number') {
	            return date.getTime();
	          } else if (options.timeType === 'unix') {
	            return date.getTime() / 1e3;
	          } else if (options.timeType === 'iso') {
	            return date.toISOString();
	          }
	          return new Date(date);
	        });
	        controller.$formatters.push(function (modelValue) {
	          var date;
	          if (angular.isUndefined(modelValue) || modelValue === null) {
	            date = NaN;
	          } else if (angular.isDate(modelValue)) {
	            date = modelValue;
	          } else if (options.timeType === 'string') {
	            date = dateParser.parse(modelValue, null, options.modelTimeFormat);
	          } else if (options.timeType === 'unix') {
	            date = new Date(modelValue * 1e3);
	          } else {
	            date = new Date(modelValue);
	          }
	          controller.$dateValue = dateParser.timezoneOffsetAdjust(date, options.timezone);
	          return getTimeFormattedString();
	        });
	        controller.$render = function () {
	          element.val(getTimeFormattedString());
	        };
	        function getTimeFormattedString() {
	          return !controller.$dateValue || isNaN(controller.$dateValue.getTime()) ? '' : formatDate(controller.$dateValue, options.timeFormat);
	        }
	        scope.$on('$destroy', function () {
	          if (timepicker) timepicker.destroy();
	          options = null;
	          timepicker = null;
	        });
	      }
	    };
	  }]);
	  angular.module('mgcrea.ngStrap.tab', []).provider('$tab', function () {
	    var defaults = this.defaults = {
	      animation: 'am-fade',
	      template: 'tab/tab.tpl.html',
	      navClass: 'nav-tabs',
	      activeClass: 'active'
	    };
	    var controller = this.controller = function ($scope, $element, $attrs) {
	      var self = this;
	      self.$options = angular.copy(defaults);
	      angular.forEach(['animation', 'navClass', 'activeClass'], function (key) {
	        if (angular.isDefined($attrs[key])) self.$options[key] = $attrs[key];
	      });
	      $scope.$navClass = self.$options.navClass;
	      $scope.$activeClass = self.$options.activeClass;
	      self.$panes = $scope.$panes = [];
	      self.$activePaneChangeListeners = self.$viewChangeListeners = [];
	      self.$push = function (pane) {
	        if (angular.isUndefined(self.$panes.$active)) {
	          $scope.$setActive(pane.name || 0);
	        }
	        self.$panes.push(pane);
	      };
	      self.$remove = function (pane) {
	        var index = self.$panes.indexOf(pane);
	        var active = self.$panes.$active;
	        var activeIndex;
	        if (angular.isString(active)) {
	          activeIndex = self.$panes.map(function (pane) {
	            return pane.name;
	          }).indexOf(active);
	        } else {
	          activeIndex = self.$panes.$active;
	        }
	        self.$panes.splice(index, 1);
	        if (index < activeIndex) {
	          activeIndex--;
	        } else if (index === activeIndex && activeIndex === self.$panes.length) {
	          activeIndex--;
	        }
	        if (activeIndex >= 0 && activeIndex < self.$panes.length) {
	          self.$setActive(self.$panes[activeIndex].name || activeIndex);
	        } else {
	          self.$setActive();
	        }
	      };
	      self.$setActive = $scope.$setActive = function (value) {
	        self.$panes.$active = value;
	        self.$activePaneChangeListeners.forEach(function (fn) {
	          fn();
	        });
	      };
	      self.$isActive = $scope.$isActive = function ($pane, $index) {
	        return self.$panes.$active === $pane.name || self.$panes.$active === $index;
	      };
	    };
	    this.$get = function () {
	      var $tab = {};
	      $tab.defaults = defaults;
	      $tab.controller = controller;
	      return $tab;
	    };
	  }).directive('bsTabs', ['$window', '$animate', '$tab', '$parse', function ($window, $animate, $tab, $parse) {
	    var defaults = $tab.defaults;
	    return {
	      require: ['?ngModel', 'bsTabs'],
	      transclude: true,
	      scope: true,
	      controller: ['$scope', '$element', '$attrs', $tab.controller],
	      templateUrl: function templateUrl(element, attr) {
	        return attr.template || defaults.template;
	      },
	      link: function postLink(scope, element, attrs, controllers) {
	        var ngModelCtrl = controllers[0];
	        var bsTabsCtrl = controllers[1];
	        if (ngModelCtrl) {
	          bsTabsCtrl.$activePaneChangeListeners.push(function () {
	            ngModelCtrl.$setViewValue(bsTabsCtrl.$panes.$active);
	          });
	          ngModelCtrl.$formatters.push(function (modelValue) {
	            bsTabsCtrl.$setActive(modelValue);
	            return modelValue;
	          });
	        }
	        if (attrs.bsActivePane) {
	          var parsedBsActivePane = $parse(attrs.bsActivePane);
	          bsTabsCtrl.$activePaneChangeListeners.push(function () {
	            parsedBsActivePane.assign(scope, bsTabsCtrl.$panes.$active);
	          });
	          scope.$watch(attrs.bsActivePane, function (newValue, oldValue) {
	            bsTabsCtrl.$setActive(newValue);
	          }, true);
	        }
	      }
	    };
	  }]).directive('bsPane', ['$window', '$animate', '$sce', function ($window, $animate, $sce) {
	    return {
	      require: ['^?ngModel', '^bsTabs'],
	      scope: true,
	      link: function postLink(scope, element, attrs, controllers) {
	        var bsTabsCtrl = controllers[1];
	        element.addClass('tab-pane');
	        attrs.$observe('title', function (newValue, oldValue) {
	          scope.title = $sce.trustAsHtml(newValue);
	        });
	        scope.name = attrs.name;
	        if (bsTabsCtrl.$options.animation) {
	          element.addClass(bsTabsCtrl.$options.animation);
	        }
	        attrs.$observe('disabled', function (newValue, oldValue) {
	          scope.disabled = scope.$eval(newValue);
	        });
	        bsTabsCtrl.$push(scope);
	        scope.$on('$destroy', function () {
	          bsTabsCtrl.$remove(scope);
	        });
	        function render() {
	          var index = bsTabsCtrl.$panes.indexOf(scope);
	          $animate[bsTabsCtrl.$isActive(scope, index) ? 'addClass' : 'removeClass'](element, bsTabsCtrl.$options.activeClass);
	        }
	        bsTabsCtrl.$activePaneChangeListeners.push(function () {
	          render();
	        });
	        render();
	      }
	    };
	  }]);
	  angular.module('mgcrea.ngStrap.select', ['mgcrea.ngStrap.tooltip', 'mgcrea.ngStrap.helpers.parseOptions']).provider('$select', function () {
	    var defaults = this.defaults = {
	      animation: 'am-fade',
	      prefixClass: 'select',
	      prefixEvent: '$select',
	      placement: 'bottom-left',
	      templateUrl: 'select/select.tpl.html',
	      trigger: 'focus',
	      container: false,
	      keyboard: true,
	      html: false,
	      delay: 0,
	      multiple: false,
	      allNoneButtons: false,
	      sort: true,
	      caretHtml: '&nbsp;<span class="caret"></span>',
	      placeholder: 'Choose among the following...',
	      allText: 'All',
	      noneText: 'None',
	      maxLength: 3,
	      maxLengthHtml: 'selected',
	      iconCheckmark: 'glyphicon glyphicon-ok',
	      toggle: false
	    };
	    this.$get = ['$window', '$document', '$rootScope', '$tooltip', '$timeout', function ($window, $document, $rootScope, $tooltip, $timeout) {
	      var isNative = /(ip[ao]d|iphone|android)/gi.test($window.navigator.userAgent);
	      var isTouch = 'createTouch' in $window.document && isNative;
	      function SelectFactory(element, controller, config) {
	        var $select = {};
	        var options = angular.extend({}, defaults, config);
	        $select = $tooltip(element, options);
	        var scope = $select.$scope;
	        scope.$matches = [];
	        if (options.multiple) {
	          scope.$activeIndex = [];
	        } else {
	          scope.$activeIndex = -1;
	        }
	        scope.$isMultiple = options.multiple;
	        scope.$showAllNoneButtons = options.allNoneButtons && options.multiple;
	        scope.$iconCheckmark = options.iconCheckmark;
	        scope.$allText = options.allText;
	        scope.$noneText = options.noneText;
	        scope.$activate = function (index) {
	          scope.$$postDigest(function () {
	            $select.activate(index);
	          });
	        };
	        scope.$select = function (index, evt) {
	          scope.$$postDigest(function () {
	            $select.select(index);
	          });
	        };
	        scope.$isVisible = function () {
	          return $select.$isVisible();
	        };
	        scope.$isActive = function (index) {
	          return $select.$isActive(index);
	        };
	        scope.$selectAll = function () {
	          for (var i = 0; i < scope.$matches.length; i++) {
	            if (!scope.$isActive(i)) {
	              scope.$select(i);
	            }
	          }
	        };
	        scope.$selectNone = function () {
	          for (var i = 0; i < scope.$matches.length; i++) {
	            if (scope.$isActive(i)) {
	              scope.$select(i);
	            }
	          }
	        };
	        $select.update = function (matches) {
	          scope.$matches = matches;
	          $select.$updateActiveIndex();
	        };
	        $select.activate = function (index) {
	          if (options.multiple) {
	            if ($select.$isActive(index)) {
	              scope.$activeIndex.splice(scope.$activeIndex.indexOf(index), 1);
	            } else {
	              scope.$activeIndex.push(index);
	            }
	            if (options.sort) scope.$activeIndex.sort(function (a, b) {
	              return a - b;
	            });
	          } else {
	            scope.$activeIndex = index;
	          }
	          return scope.$activeIndex;
	        };
	        $select.select = function (index) {
	          if (angular.isUndefined(index) || index < 0 || index >= scope.$matches.length) {
	            return;
	          }
	          var value = scope.$matches[index].value;
	          scope.$apply(function () {
	            $select.activate(index);
	            if (options.multiple) {
	              controller.$setViewValue(scope.$activeIndex.map(function (index) {
	                if (angular.isUndefined(scope.$matches[index])) {
	                  return null;
	                }
	                return scope.$matches[index].value;
	              }));
	            } else {
	              if (options.toggle) {
	                controller.$setViewValue(value === controller.$modelValue ? undefined : value);
	              } else {
	                controller.$setViewValue(value);
	              }
	              $select.hide();
	            }
	          });
	          scope.$emit(options.prefixEvent + '.select', value, index, $select);
	          if (angular.isDefined(options.onSelect) && angular.isFunction(options.onSelect)) {
	            options.onSelect(value, index, $select);
	          }
	        };
	        $select.$updateActiveIndex = function () {
	          if (options.multiple) {
	            if (angular.isArray(controller.$modelValue)) {
	              scope.$activeIndex = controller.$modelValue.map(function (value) {
	                return $select.$getIndex(value);
	              });
	            } else {
	              scope.$activeIndex = [];
	            }
	          } else {
	            if (angular.isDefined(controller.$modelValue) && scope.$matches.length) {
	              scope.$activeIndex = $select.$getIndex(controller.$modelValue);
	            } else {
	              scope.$activeIndex = -1;
	            }
	          }
	        };
	        $select.$isVisible = function () {
	          if (!options.minLength || !controller) {
	            return scope.$matches.length;
	          }
	          return scope.$matches.length && controller.$viewValue.length >= options.minLength;
	        };
	        $select.$isActive = function (index) {
	          if (options.multiple) {
	            return scope.$activeIndex.indexOf(index) !== -1;
	          }
	          return scope.$activeIndex === index;
	        };
	        $select.$getIndex = function (value) {
	          var index;
	          for (index = scope.$matches.length; index--;) {
	            if (angular.equals(scope.$matches[index].value, value)) break;
	          }
	          return index;
	        };
	        $select.$onMouseDown = function (evt) {
	          evt.preventDefault();
	          evt.stopPropagation();
	          if (isTouch) {
	            var targetEl = angular.element(evt.target);
	            var anchor;
	            if (evt.target.nodeName !== 'A') {
	              var anchorCandidate = targetEl.parent();
	              while (!anchor && anchorCandidate.length > 0) {
	                if (anchorCandidate[0].nodeName === 'A') {
	                  anchor = anchorCandidate;
	                }
	                anchorCandidate = anchorCandidate.parent();
	              }
	            }
	            if (anchor) {
	              angular.element(anchor).triggerHandler('click');
	            } else {
	              targetEl.triggerHandler('click');
	            }
	          }
	        };
	        $select.$onKeyDown = function (evt) {
	          if (!/(9|13|38|40)/.test(evt.keyCode)) return;
	          if (evt.keyCode !== 9) {
	            evt.preventDefault();
	            evt.stopPropagation();
	          }
	          if (options.multiple && evt.keyCode === 9) {
	            return $select.hide();
	          }
	          if (!options.multiple && (evt.keyCode === 13 || evt.keyCode === 9)) {
	            return $select.select(scope.$activeIndex);
	          }
	          if (!options.multiple) {
	            if (evt.keyCode === 38 && scope.$activeIndex > 0) scope.$activeIndex--;else if (evt.keyCode === 38 && scope.$activeIndex < 0) scope.$activeIndex = scope.$matches.length - 1;else if (evt.keyCode === 40 && scope.$activeIndex < scope.$matches.length - 1) scope.$activeIndex++;else if (angular.isUndefined(scope.$activeIndex)) scope.$activeIndex = 0;
	            scope.$digest();
	          }
	        };
	        $select.$isIE = function () {
	          var ua = $window.navigator.userAgent;
	          return ua.indexOf('MSIE ') > 0 || ua.indexOf('Trident/') > 0 || ua.indexOf('Edge/') > 0;
	        };
	        $select.$selectScrollFix = function (e) {
	          if ($document[0].activeElement.tagName === 'UL') {
	            e.preventDefault();
	            e.stopImmediatePropagation();
	            e.target.focus();
	          }
	        };
	        var _show = $select.show;
	        $select.show = function () {
	          _show();
	          if (options.multiple) {
	            $select.$element.addClass('select-multiple');
	          }
	          $timeout(function () {
	            $select.$element.on(isTouch ? 'touchstart' : 'mousedown', $select.$onMouseDown);
	            if (options.keyboard) {
	              element.on('keydown', $select.$onKeyDown);
	            }
	          }, 0, false);
	        };
	        var _hide = $select.hide;
	        $select.hide = function () {
	          if (!options.multiple && angular.isUndefined(controller.$modelValue)) {
	            scope.$activeIndex = -1;
	          }
	          $select.$element.off(isTouch ? 'touchstart' : 'mousedown', $select.$onMouseDown);
	          if (options.keyboard) {
	            element.off('keydown', $select.$onKeyDown);
	          }
	          _hide(true);
	        };
	        return $select;
	      }
	      SelectFactory.defaults = defaults;
	      return SelectFactory;
	    }];
	  }).directive('bsSelect', ['$window', '$parse', '$q', '$select', '$parseOptions', function ($window, $parse, $q, $select, $parseOptions) {
	    var defaults = $select.defaults;
	    return {
	      restrict: 'EAC',
	      require: 'ngModel',
	      link: function postLink(scope, element, attr, controller) {
	        var options = {
	          scope: scope,
	          placeholder: defaults.placeholder
	        };
	        angular.forEach(['template', 'templateUrl', 'controller', 'controllerAs', 'placement', 'container', 'delay', 'trigger', 'keyboard', 'html', 'animation', 'placeholder', 'allNoneButtons', 'maxLength', 'maxLengthHtml', 'allText', 'noneText', 'iconCheckmark', 'autoClose', 'id', 'sort', 'caretHtml', 'prefixClass', 'prefixEvent', 'toggle'], function (key) {
	          if (angular.isDefined(attr[key])) options[key] = attr[key];
	        });
	        var falseValueRegExp = /^(false|0|)$/i;
	        angular.forEach(['html', 'container', 'allNoneButtons', 'sort'], function (key) {
	          if (angular.isDefined(attr[key]) && falseValueRegExp.test(attr[key])) {
	            options[key] = false;
	          }
	        });
	        angular.forEach(['onBeforeShow', 'onShow', 'onBeforeHide', 'onHide', 'onSelect'], function (key) {
	          var bsKey = 'bs' + key.charAt(0).toUpperCase() + key.slice(1);
	          if (angular.isDefined(attr[bsKey])) {
	            options[key] = scope.$eval(attr[bsKey]);
	          }
	        });
	        var dataMultiple = element.attr('data-multiple');
	        if (angular.isDefined(dataMultiple)) {
	          if (falseValueRegExp.test(dataMultiple)) {
	            options.multiple = false;
	          } else {
	            options.multiple = dataMultiple;
	          }
	        }
	        if (element[0].nodeName.toLowerCase() === 'select') {
	          var inputEl = element;
	          inputEl.css('display', 'none');
	          element = angular.element('<button type="button" class="btn btn-default"></button>');
	          inputEl.after(element);
	        }
	        var parsedOptions = $parseOptions(attr.bsOptions);
	        var select = $select(element, controller, options);
	        if (select.$isIE()) {
	          element[0].addEventListener('blur', select.$selectScrollFix);
	        }
	        var watchedOptions = parsedOptions.$match[7].replace(/\|.+/, '').trim();
	        scope.$watch(watchedOptions, function (newValue, oldValue) {
	          parsedOptions.valuesFn(scope, controller).then(function (values) {
	            select.update(values);
	            controller.$render();
	          });
	        }, true);
	        scope.$watch(attr.ngModel, function (newValue, oldValue) {
	          select.$updateActiveIndex();
	          controller.$render();
	        }, true);
	        controller.$render = function () {
	          var selected;
	          var index;
	          if (options.multiple && angular.isArray(controller.$modelValue)) {
	            selected = controller.$modelValue.map(function (value) {
	              index = select.$getIndex(value);
	              return index !== -1 ? select.$scope.$matches[index].label : false;
	            }).filter(angular.isDefined);
	            if (selected.length > (options.maxLength || defaults.maxLength)) {
	              selected = selected.length + ' ' + (options.maxLengthHtml || defaults.maxLengthHtml);
	            } else {
	              selected = selected.join(', ');
	            }
	          } else {
	            index = select.$getIndex(controller.$modelValue);
	            selected = index !== -1 ? select.$scope.$matches[index].label : false;
	          }
	          element.html((selected || options.placeholder) + (options.caretHtml || defaults.caretHtml));
	        };
	        if (options.multiple) {
	          controller.$isEmpty = function (value) {
	            return !value || value.length === 0;
	          };
	        }
	        scope.$on('$destroy', function () {
	          if (select) select.destroy();
	          options = null;
	          select = null;
	        });
	      }
	    };
	  }]);
	  angular.module('mgcrea.ngStrap.scrollspy', ['mgcrea.ngStrap.helpers.debounce', 'mgcrea.ngStrap.helpers.dimensions']).provider('$scrollspy', function () {
	    var spies = this.$$spies = {};
	    var defaults = this.defaults = {
	      debounce: 150,
	      throttle: 100,
	      offset: 100
	    };
	    this.$get = ['$window', '$document', '$rootScope', 'dimensions', 'debounce', 'throttle', function ($window, $document, $rootScope, dimensions, debounce, throttle) {
	      var windowEl = angular.element($window);
	      var docEl = angular.element($document.prop('documentElement'));
	      var bodyEl = angular.element($window.document.body);
	      function nodeName(element, name) {
	        return element[0].nodeName && element[0].nodeName.toLowerCase() === name.toLowerCase();
	      }
	      function ScrollSpyFactory(config) {
	        var options = angular.extend({}, defaults, config);
	        if (!options.element) options.element = bodyEl;
	        var isWindowSpy = nodeName(options.element, 'body');
	        var scrollEl = isWindowSpy ? windowEl : options.element;
	        var scrollId = isWindowSpy ? 'window' : options.id;
	        if (spies[scrollId]) {
	          spies[scrollId].$$count++;
	          return spies[scrollId];
	        }
	        var $scrollspy = {};
	        var unbindViewContentLoaded;
	        var unbindIncludeContentLoaded;
	        var trackedElements = $scrollspy.$trackedElements = [];
	        var sortedElements = [];
	        var activeTarget;
	        var debouncedCheckPosition;
	        var throttledCheckPosition;
	        var debouncedCheckOffsets;
	        var viewportHeight;
	        var scrollTop;
	        $scrollspy.init = function () {
	          this.$$count = 1;
	          debouncedCheckPosition = debounce(this.checkPosition, options.debounce);
	          throttledCheckPosition = throttle(this.checkPosition, options.throttle);
	          scrollEl.on('click', this.checkPositionWithEventLoop);
	          windowEl.on('resize', debouncedCheckPosition);
	          scrollEl.on('scroll', throttledCheckPosition);
	          debouncedCheckOffsets = debounce(this.checkOffsets, options.debounce);
	          unbindViewContentLoaded = $rootScope.$on('$viewContentLoaded', debouncedCheckOffsets);
	          unbindIncludeContentLoaded = $rootScope.$on('$includeContentLoaded', debouncedCheckOffsets);
	          debouncedCheckOffsets();
	          if (scrollId) {
	            spies[scrollId] = $scrollspy;
	          }
	        };
	        $scrollspy.destroy = function () {
	          this.$$count--;
	          if (this.$$count > 0) {
	            return;
	          }
	          scrollEl.off('click', this.checkPositionWithEventLoop);
	          windowEl.off('resize', debouncedCheckPosition);
	          scrollEl.off('scroll', throttledCheckPosition);
	          unbindViewContentLoaded();
	          unbindIncludeContentLoaded();
	          if (scrollId) {
	            delete spies[scrollId];
	          }
	        };
	        $scrollspy.checkPosition = function () {
	          if (!sortedElements.length) return;
	          scrollTop = (isWindowSpy ? $window.pageYOffset : scrollEl.prop('scrollTop')) || 0;
	          viewportHeight = Math.max($window.innerHeight, docEl.prop('clientHeight'));
	          if (scrollTop < sortedElements[0].offsetTop && activeTarget !== sortedElements[0].target) {
	            return $scrollspy.$activateElement(sortedElements[0]);
	          }
	          for (var i = sortedElements.length; i--;) {
	            if (angular.isUndefined(sortedElements[i].offsetTop) || sortedElements[i].offsetTop === null) continue;
	            if (activeTarget === sortedElements[i].target) continue;
	            if (scrollTop < sortedElements[i].offsetTop) continue;
	            if (sortedElements[i + 1] && scrollTop > sortedElements[i + 1].offsetTop) continue;
	            return $scrollspy.$activateElement(sortedElements[i]);
	          }
	        };
	        $scrollspy.checkPositionWithEventLoop = function () {
	          setTimeout($scrollspy.checkPosition, 1);
	        };
	        $scrollspy.$activateElement = function (element) {
	          if (activeTarget) {
	            var activeElement = $scrollspy.$getTrackedElement(activeTarget);
	            if (activeElement) {
	              activeElement.source.removeClass('active');
	              if (nodeName(activeElement.source, 'li') && nodeName(activeElement.source.parent().parent(), 'li')) {
	                activeElement.source.parent().parent().removeClass('active');
	              }
	            }
	          }
	          activeTarget = element.target;
	          element.source.addClass('active');
	          if (nodeName(element.source, 'li') && nodeName(element.source.parent().parent(), 'li')) {
	            element.source.parent().parent().addClass('active');
	          }
	        };
	        $scrollspy.$getTrackedElement = function (target) {
	          return trackedElements.filter(function (obj) {
	            return obj.target === target;
	          })[0];
	        };
	        $scrollspy.checkOffsets = function () {
	          angular.forEach(trackedElements, function (trackedElement) {
	            var targetElement = document.querySelector(trackedElement.target);
	            trackedElement.offsetTop = targetElement ? dimensions.offset(targetElement).top : null;
	            if (options.offset && trackedElement.offsetTop !== null) trackedElement.offsetTop -= options.offset * 1;
	          });
	          sortedElements = trackedElements.filter(function (el) {
	            return el.offsetTop !== null;
	          }).sort(function (a, b) {
	            return a.offsetTop - b.offsetTop;
	          });
	          debouncedCheckPosition();
	        };
	        $scrollspy.trackElement = function (target, source) {
	          trackedElements.push({
	            target: target,
	            source: source
	          });
	        };
	        $scrollspy.untrackElement = function (target, source) {
	          var toDelete;
	          for (var i = trackedElements.length; i--;) {
	            if (trackedElements[i].target === target && trackedElements[i].source === source) {
	              toDelete = i;
	              break;
	            }
	          }
	          trackedElements.splice(toDelete, 1);
	        };
	        $scrollspy.activate = function (i) {
	          trackedElements[i].addClass('active');
	        };
	        $scrollspy.init();
	        return $scrollspy;
	      }
	      return ScrollSpyFactory;
	    }];
	  }).directive('bsScrollspy', ['$rootScope', 'debounce', 'dimensions', '$scrollspy', function ($rootScope, debounce, dimensions, $scrollspy) {
	    return {
	      restrict: 'EAC',
	      link: function postLink(scope, element, attr) {
	        var options = {
	          scope: scope
	        };
	        angular.forEach(['offset', 'target'], function (key) {
	          if (angular.isDefined(attr[key])) options[key] = attr[key];
	        });
	        var scrollspy = $scrollspy(options);
	        scrollspy.trackElement(options.target, element);
	        scope.$on('$destroy', function () {
	          if (scrollspy) {
	            scrollspy.untrackElement(options.target, element);
	            scrollspy.destroy();
	          }
	          options = null;
	          scrollspy = null;
	        });
	      }
	    };
	  }]).directive('bsScrollspyList', ['$rootScope', 'debounce', 'dimensions', '$scrollspy', function ($rootScope, debounce, dimensions, $scrollspy) {
	    return {
	      restrict: 'A',
	      compile: function postLink(element, attr) {
	        var children = element[0].querySelectorAll('li > a[href]');
	        angular.forEach(children, function (child) {
	          var childEl = angular.element(child);
	          childEl.parent().attr('bs-scrollspy', '').attr('data-target', childEl.attr('href'));
	        });
	      }
	    };
	  }]);
	  angular.module('mgcrea.ngStrap.popover', ['mgcrea.ngStrap.tooltip']).provider('$popover', function () {
	    var defaults = this.defaults = {
	      animation: 'am-fade',
	      customClass: '',
	      container: false,
	      target: false,
	      placement: 'right',
	      templateUrl: 'popover/popover.tpl.html',
	      contentTemplate: false,
	      trigger: 'click',
	      keyboard: true,
	      html: false,
	      title: '',
	      content: '',
	      delay: 0,
	      autoClose: false
	    };
	    this.$get = ['$tooltip', function ($tooltip) {
	      function PopoverFactory(element, config) {
	        var options = angular.extend({}, defaults, config);
	        var $popover = $tooltip(element, options);
	        if (options.content) {
	          $popover.$scope.content = options.content;
	        }
	        return $popover;
	      }
	      return PopoverFactory;
	    }];
	  }).directive('bsPopover', ['$window', '$sce', '$popover', function ($window, $sce, $popover) {
	    var requestAnimationFrame = $window.requestAnimationFrame || $window.setTimeout;
	    return {
	      restrict: 'EAC',
	      scope: true,
	      link: function postLink(scope, element, attr) {
	        var popover;
	        var options = {
	          scope: scope
	        };
	        angular.forEach(['template', 'templateUrl', 'controller', 'controllerAs', 'contentTemplate', 'placement', 'container', 'delay', 'trigger', 'html', 'animation', 'customClass', 'autoClose', 'id', 'prefixClass', 'prefixEvent', 'bsEnabled'], function (key) {
	          if (angular.isDefined(attr[key])) options[key] = attr[key];
	        });
	        var falseValueRegExp = /^(false|0|)$/i;
	        angular.forEach(['html', 'container', 'autoClose'], function (key) {
	          if (angular.isDefined(attr[key]) && falseValueRegExp.test(attr[key])) options[key] = false;
	        });
	        angular.forEach(['onBeforeShow', 'onShow', 'onBeforeHide', 'onHide'], function (key) {
	          var bsKey = 'bs' + key.charAt(0).toUpperCase() + key.slice(1);
	          if (angular.isDefined(attr[bsKey])) {
	            options[key] = scope.$eval(attr[bsKey]);
	          }
	        });
	        var dataTarget = element.attr('data-target');
	        if (angular.isDefined(dataTarget)) {
	          if (falseValueRegExp.test(dataTarget)) {
	            options.target = false;
	          } else {
	            options.target = dataTarget;
	          }
	        }
	        angular.forEach(['title', 'content'], function (key) {
	          if (attr[key]) {
	            attr.$observe(key, function (newValue, oldValue) {
	              scope[key] = $sce.trustAsHtml(newValue);
	              if (angular.isDefined(oldValue)) {
	                requestAnimationFrame(function () {
	                  if (popover) popover.$applyPlacement();
	                });
	              }
	            });
	          }
	        });
	        if (attr.bsPopover) {
	          scope.$watch(attr.bsPopover, function (newValue, oldValue) {
	            if (angular.isObject(newValue)) {
	              angular.extend(scope, newValue);
	            } else {
	              scope.content = newValue;
	            }
	            if (angular.isDefined(oldValue)) {
	              requestAnimationFrame(function () {
	                if (popover) popover.$applyPlacement();
	              });
	            }
	          }, true);
	        }
	        if (attr.bsShow) {
	          scope.$watch(attr.bsShow, function (newValue, oldValue) {
	            if (!popover || !angular.isDefined(newValue)) return;
	            if (angular.isString(newValue)) newValue = !!newValue.match(/true|,?(popover),?/i);
	            if (newValue === true) {
	              popover.show();
	            } else {
	              popover.hide();
	            }
	          });
	        }
	        if (attr.bsEnabled) {
	          scope.$watch(attr.bsEnabled, function (newValue) {
	            if (!popover || !angular.isDefined(newValue)) return;
	            if (angular.isString(newValue)) newValue = !!newValue.match(/true|1|,?(popover),?/i);
	            if (newValue === false) {
	              popover.setEnabled(false);
	            } else {
	              popover.setEnabled(true);
	            }
	          });
	        }
	        if (attr.viewport) {
	          scope.$watch(attr.viewport, function (newValue) {
	            if (!popover || !angular.isDefined(newValue)) return;
	            popover.setViewport(newValue);
	          });
	        }
	        popover = $popover(element, options);
	        scope.$on('$destroy', function () {
	          if (popover) popover.destroy();
	          options = null;
	          popover = null;
	        });
	      }
	    };
	  }]);
	  angular.module('mgcrea.ngStrap.navbar', []).provider('$navbar', function () {
	    var defaults = this.defaults = {
	      activeClass: 'active',
	      routeAttr: 'data-match-route',
	      strict: false
	    };
	    this.$get = function () {
	      return {
	        defaults: defaults
	      };
	    };
	  }).directive('bsNavbar', ['$window', '$location', '$navbar', function ($window, $location, $navbar) {
	    var defaults = $navbar.defaults;
	    return {
	      restrict: 'A',
	      link: function postLink(scope, element, attr, controller) {
	        var options = angular.copy(defaults);
	        angular.forEach(Object.keys(defaults), function (key) {
	          if (angular.isDefined(attr[key])) options[key] = attr[key];
	        });
	        scope.$watch(function () {
	          return $location.path();
	        }, function (newValue, oldValue) {
	          var liElements = element[0].querySelectorAll('li[' + options.routeAttr + ']');
	          angular.forEach(liElements, function (li) {
	            var liElement = angular.element(li);
	            var pattern = liElement.attr(options.routeAttr).replace('/', '\\/');
	            if (options.strict) {
	              pattern = '^' + pattern + '$';
	            }
	            var regexp = new RegExp(pattern, 'i');
	            if (regexp.test(newValue)) {
	              liElement.addClass(options.activeClass);
	            } else {
	              liElement.removeClass(options.activeClass);
	            }
	          });
	        });
	      }
	    };
	  }]);
	  angular.module('mgcrea.ngStrap.modal', ['mgcrea.ngStrap.core', 'mgcrea.ngStrap.helpers.dimensions']).provider('$modal', function () {
	    var defaults = this.defaults = {
	      animation: 'am-fade',
	      backdropAnimation: 'am-fade',
	      customClass: '',
	      prefixClass: 'modal',
	      prefixEvent: 'modal',
	      placement: 'top',
	      templateUrl: 'modal/modal.tpl.html',
	      template: '',
	      contentTemplate: false,
	      container: false,
	      element: null,
	      backdrop: true,
	      keyboard: true,
	      html: false,
	      show: true,
	      size: null,
	      zIndex: null
	    };
	    this.$get = ['$window', '$rootScope', '$bsCompiler', '$animate', '$timeout', '$sce', 'dimensions', function ($window, $rootScope, $bsCompiler, $animate, $timeout, $sce, dimensions) {
	      var forEach = angular.forEach;
	      var requestAnimationFrame = $window.requestAnimationFrame || $window.setTimeout;
	      var bodyElement = angular.element($window.document.body);
	      var backdropCount = 0;
	      var dialogBaseZindex = 1050;
	      var backdropBaseZindex = 1040;
	      var validSizes = {
	        lg: 'modal-lg',
	        sm: 'modal-sm'
	      };
	      function ModalFactory(config) {
	        var $modal = {};
	        var options = $modal.$options = angular.extend({}, defaults, config);
	        var promise = $modal.$promise = $bsCompiler.compile(options);
	        var scope = $modal.$scope = options.scope && options.scope.$new() || $rootScope.$new();
	        if (!options.element && !options.container) {
	          options.container = 'body';
	        }
	        if (options.zIndex) {
	          dialogBaseZindex = parseInt(options.zIndex, 10);
	          backdropBaseZindex = dialogBaseZindex - 10;
	        }
	        $modal.$id = options.id || options.element && options.element.attr('id') || '';
	        forEach(['title', 'content'], function (key) {
	          if (options[key]) scope[key] = $sce.trustAsHtml(options[key]);
	        });
	        scope.$hide = function () {
	          scope.$$postDigest(function () {
	            $modal.hide();
	          });
	        };
	        scope.$show = function () {
	          scope.$$postDigest(function () {
	            $modal.show();
	          });
	        };
	        scope.$toggle = function () {
	          scope.$$postDigest(function () {
	            $modal.toggle();
	          });
	        };
	        $modal.$isShown = scope.$isShown = false;
	        var compileData;
	        var modalElement;
	        var modalScope;
	        var backdropElement = angular.element('<div class="' + options.prefixClass + '-backdrop"/>');
	        backdropElement.css({
	          position: 'fixed',
	          top: '0px',
	          left: '0px',
	          bottom: '0px',
	          right: '0px'
	        });
	        promise.then(function (data) {
	          compileData = data;
	          $modal.init();
	        });
	        $modal.init = function () {
	          if (options.show) {
	            scope.$$postDigest(function () {
	              $modal.show();
	            });
	          }
	        };
	        $modal.destroy = function () {
	          destroyModalElement();
	          if (backdropElement) {
	            backdropElement.remove();
	            backdropElement = null;
	          }
	          scope.$destroy();
	        };
	        $modal.show = function () {
	          if ($modal.$isShown) return;
	          var parent;
	          var after;
	          if (angular.isElement(options.container)) {
	            parent = options.container;
	            after = options.container[0].lastChild ? angular.element(options.container[0].lastChild) : null;
	          } else {
	            if (options.container) {
	              parent = findElement(options.container);
	              after = parent[0] && parent[0].lastChild ? angular.element(parent[0].lastChild) : null;
	            } else {
	              parent = null;
	              after = options.element;
	            }
	          }
	          if (modalElement) destroyModalElement();
	          modalScope = $modal.$scope.$new();
	          modalElement = $modal.$element = compileData.link(modalScope, function (clonedElement, scope) {});
	          if (options.backdrop) {
	            modalElement.css({
	              'z-index': dialogBaseZindex + backdropCount * 20
	            });
	            backdropElement.css({
	              'z-index': backdropBaseZindex + backdropCount * 20
	            });
	            backdropCount++;
	          }
	          if (scope.$emit(options.prefixEvent + '.show.before', $modal).defaultPrevented) {
	            return;
	          }
	          if (angular.isDefined(options.onBeforeShow) && angular.isFunction(options.onBeforeShow)) {
	            options.onBeforeShow($modal);
	          }
	          modalElement.css({
	            display: 'block'
	          }).addClass(options.placement);
	          if (options.customClass) {
	            modalElement.addClass(options.customClass);
	          }
	          if (options.size && validSizes[options.size]) {
	            angular.element(findElement('.modal-dialog', modalElement[0])).addClass(validSizes[options.size]);
	          }
	          if (options.animation) {
	            if (options.backdrop) {
	              backdropElement.addClass(options.backdropAnimation);
	            }
	            modalElement.addClass(options.animation);
	          }
	          if (options.backdrop) {
	            $animate.enter(backdropElement, bodyElement, null);
	          }
	          if (angular.version.minor <= 2) {
	            $animate.enter(modalElement, parent, after, enterAnimateCallback);
	          } else {
	            $animate.enter(modalElement, parent, after).then(enterAnimateCallback);
	          }
	          $modal.$isShown = scope.$isShown = true;
	          safeDigest(scope);
	          var el = modalElement[0];
	          requestAnimationFrame(function () {
	            el.focus();
	          });
	          bodyElement.addClass(options.prefixClass + '-open');
	          if (options.animation) {
	            bodyElement.addClass(options.prefixClass + '-with-' + options.animation);
	          }
	          bindBackdropEvents();
	          bindKeyboardEvents();
	        };
	        function enterAnimateCallback() {
	          scope.$emit(options.prefixEvent + '.show', $modal);
	          if (angular.isDefined(options.onShow) && angular.isFunction(options.onShow)) {
	            options.onShow($modal);
	          }
	        }
	        $modal.hide = function () {
	          if (!$modal.$isShown) return;
	          if (scope.$emit(options.prefixEvent + '.hide.before', $modal).defaultPrevented) {
	            return;
	          }
	          if (angular.isDefined(options.onBeforeHide) && angular.isFunction(options.onBeforeHide)) {
	            options.onBeforeHide($modal);
	          }
	          if (angular.version.minor <= 2) {
	            $animate.leave(modalElement, leaveAnimateCallback);
	          } else {
	            $animate.leave(modalElement).then(leaveAnimateCallback);
	          }
	          if (options.backdrop) {
	            backdropCount--;
	            $animate.leave(backdropElement);
	          }
	          $modal.$isShown = scope.$isShown = false;
	          safeDigest(scope);
	          unbindBackdropEvents();
	          unbindKeyboardEvents();
	        };
	        function leaveAnimateCallback() {
	          scope.$emit(options.prefixEvent + '.hide', $modal);
	          if (angular.isDefined(options.onHide) && angular.isFunction(options.onHide)) {
	            options.onHide($modal);
	          }
	          if (findElement('.modal').length <= 0) {
	            bodyElement.removeClass(options.prefixClass + '-open');
	          }
	          if (options.animation) {
	            bodyElement.removeClass(options.prefixClass + '-with-' + options.animation);
	          }
	        }
	        $modal.toggle = function () {
	          if ($modal.$isShown) {
	            $modal.hide();
	          } else {
	            $modal.show();
	          }
	        };
	        $modal.focus = function () {
	          modalElement[0].focus();
	        };
	        $modal.$onKeyUp = function (evt) {
	          if (evt.which === 27 && $modal.$isShown) {
	            $modal.hide();
	            evt.stopPropagation();
	          }
	        };
	        function bindBackdropEvents() {
	          if (options.backdrop) {
	            modalElement.on('click', hideOnBackdropClick);
	            backdropElement.on('click', hideOnBackdropClick);
	            backdropElement.on('wheel', preventEventDefault);
	          }
	        }
	        function unbindBackdropEvents() {
	          if (options.backdrop) {
	            modalElement.off('click', hideOnBackdropClick);
	            backdropElement.off('click', hideOnBackdropClick);
	            backdropElement.off('wheel', preventEventDefault);
	          }
	        }
	        function bindKeyboardEvents() {
	          if (options.keyboard) {
	            modalElement.on('keyup', $modal.$onKeyUp);
	          }
	        }
	        function unbindKeyboardEvents() {
	          if (options.keyboard) {
	            modalElement.off('keyup', $modal.$onKeyUp);
	          }
	        }
	        function hideOnBackdropClick(evt) {
	          if (evt.target !== evt.currentTarget) return;
	          if (options.backdrop === 'static') {
	            $modal.focus();
	          } else {
	            $modal.hide();
	          }
	        }
	        function preventEventDefault(evt) {
	          evt.preventDefault();
	        }
	        function destroyModalElement() {
	          if ($modal.$isShown && modalElement !== null) {
	            unbindBackdropEvents();
	            unbindKeyboardEvents();
	          }
	          if (modalScope) {
	            modalScope.$destroy();
	            modalScope = null;
	          }
	          if (modalElement) {
	            modalElement.remove();
	            modalElement = $modal.$element = null;
	          }
	        }
	        return $modal;
	      }
	      function safeDigest(scope) {
	        scope.$$phase || scope.$root && scope.$root.$$phase || scope.$digest();
	      }
	      function findElement(query, element) {
	        return angular.element((element || document).querySelectorAll(query));
	      }
	      return ModalFactory;
	    }];
	  }).directive('bsModal', ['$window', '$sce', '$parse', '$modal', function ($window, $sce, $parse, $modal) {
	    return {
	      restrict: 'EAC',
	      scope: true,
	      link: function postLink(scope, element, attr, transclusion) {
	        var options = {
	          scope: scope,
	          element: element,
	          show: false
	        };
	        angular.forEach(['template', 'templateUrl', 'controller', 'controllerAs', 'contentTemplate', 'placement', 'backdrop', 'keyboard', 'html', 'container', 'animation', 'backdropAnimation', 'id', 'prefixEvent', 'prefixClass', 'customClass', 'modalClass', 'size', 'zIndex'], function (key) {
	          if (angular.isDefined(attr[key])) options[key] = attr[key];
	        });
	        if (options.modalClass) {
	          options.customClass = options.modalClass;
	        }
	        var falseValueRegExp = /^(false|0|)$/i;
	        angular.forEach(['backdrop', 'keyboard', 'html', 'container'], function (key) {
	          if (angular.isDefined(attr[key]) && falseValueRegExp.test(attr[key])) options[key] = false;
	        });
	        angular.forEach(['onBeforeShow', 'onShow', 'onBeforeHide', 'onHide'], function (key) {
	          var bsKey = 'bs' + key.charAt(0).toUpperCase() + key.slice(1);
	          if (angular.isDefined(attr[bsKey])) {
	            options[key] = scope.$eval(attr[bsKey]);
	          }
	        });
	        angular.forEach(['title', 'content'], function (key) {
	          if (attr[key]) {
	            attr.$observe(key, function (newValue, oldValue) {
	              scope[key] = $sce.trustAsHtml(newValue);
	            });
	          }
	        });
	        if (attr.bsModal) {
	          scope.$watch(attr.bsModal, function (newValue, oldValue) {
	            if (angular.isObject(newValue)) {
	              angular.extend(scope, newValue);
	            } else {
	              scope.content = newValue;
	            }
	          }, true);
	        }
	        var modal = $modal(options);
	        element.on(attr.trigger || 'click', modal.toggle);
	        scope.$on('$destroy', function () {
	          if (modal) modal.destroy();
	          options = null;
	          modal = null;
	        });
	      }
	    };
	  }]);
	  if (angular.version.minor < 3 && angular.version.dot < 14) {
	    angular.module('ng').factory('$$rAF', ['$window', '$timeout', function ($window, $timeout) {
	      var requestAnimationFrame = $window.requestAnimationFrame || $window.webkitRequestAnimationFrame || $window.mozRequestAnimationFrame;
	      var cancelAnimationFrame = $window.cancelAnimationFrame || $window.webkitCancelAnimationFrame || $window.mozCancelAnimationFrame || $window.webkitCancelRequestAnimationFrame;
	      var rafSupported = !!requestAnimationFrame;
	      var raf = rafSupported ? function (fn) {
	        var id = requestAnimationFrame(fn);
	        return function () {
	          cancelAnimationFrame(id);
	        };
	      } : function (fn) {
	        var timer = $timeout(fn, 16.66, false);
	        return function () {
	          $timeout.cancel(timer);
	        };
	      };
	      raf.supported = rafSupported;
	      return raf;
	    }]);
	  }
	  angular.module('mgcrea.ngStrap.helpers.parseOptions', []).provider('$parseOptions', function () {
	    var defaults = this.defaults = {
	      regexp: /^\s*(.*?)(?:\s+as\s+(.*?))?(?:\s+group\s+by\s+(.*))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+(.*?)(?:\s+track\s+by\s+(.*?))?$/
	    };
	    this.$get = ['$parse', '$q', function ($parse, $q) {
	      function ParseOptionsFactory(attr, config) {
	        var $parseOptions = {};
	        var options = angular.extend({}, defaults, config);
	        $parseOptions.$values = [];
	        var match;
	        var displayFn;
	        var valueName;
	        var keyName;
	        var groupByFn;
	        var valueFn;
	        var valuesFn;
	        $parseOptions.init = function () {
	          $parseOptions.$match = match = attr.match(options.regexp);
	          displayFn = $parse(match[2] || match[1]);
	          valueName = match[4] || match[6];
	          keyName = match[5];
	          groupByFn = $parse(match[3] || '');
	          valueFn = $parse(match[2] ? match[1] : valueName);
	          valuesFn = $parse(match[7]);
	        };
	        $parseOptions.valuesFn = function (scope, controller) {
	          return $q.when(valuesFn(scope, controller)).then(function (values) {
	            if (!angular.isArray(values)) {
	              values = [];
	            }
	            $parseOptions.$values = values.length ? parseValues(values, scope) : [];
	            return $parseOptions.$values;
	          });
	        };
	        $parseOptions.displayValue = function (modelValue) {
	          var scope = {};
	          scope[valueName] = modelValue;
	          return displayFn(scope);
	        };
	        function parseValues(values, scope) {
	          return values.map(function (match, index) {
	            var locals = {};
	            var label;
	            var value;
	            locals[valueName] = match;
	            label = displayFn(scope, locals);
	            value = valueFn(scope, locals);
	            return {
	              label: label,
	              value: value,
	              index: index
	            };
	          });
	        }
	        $parseOptions.init();
	        return $parseOptions;
	      }
	      return ParseOptionsFactory;
	    }];
	  });
	  angular.module('mgcrea.ngStrap.helpers.dimensions', []).factory('dimensions', function () {
	    var fn = {};
	    var nodeName = fn.nodeName = function (element, name) {
	      return element.nodeName && element.nodeName.toLowerCase() === name.toLowerCase();
	    };
	    fn.css = function (element, prop, extra) {
	      var value;
	      if (element.currentStyle) {
	        value = element.currentStyle[prop];
	      } else if (window.getComputedStyle) {
	        value = window.getComputedStyle(element)[prop];
	      } else {
	        value = element.style[prop];
	      }
	      return extra === true ? parseFloat(value) || 0 : value;
	    };
	    fn.offset = function (element) {
	      var boxRect = element.getBoundingClientRect();
	      var docElement = element.ownerDocument;
	      return {
	        width: boxRect.width || element.offsetWidth,
	        height: boxRect.height || element.offsetHeight,
	        top: boxRect.top + (window.pageYOffset || docElement.documentElement.scrollTop) - (docElement.documentElement.clientTop || 0),
	        left: boxRect.left + (window.pageXOffset || docElement.documentElement.scrollLeft) - (docElement.documentElement.clientLeft || 0)
	      };
	    };
	    fn.setOffset = function (element, options, i) {
	      var curPosition;
	      var curLeft;
	      var curCSSTop;
	      var curTop;
	      var curOffset;
	      var curCSSLeft;
	      var calculatePosition;
	      var position = fn.css(element, 'position');
	      var curElem = angular.element(element);
	      var props = {};
	      if (position === 'static') {
	        element.style.position = 'relative';
	      }
	      curOffset = fn.offset(element);
	      curCSSTop = fn.css(element, 'top');
	      curCSSLeft = fn.css(element, 'left');
	      calculatePosition = (position === 'absolute' || position === 'fixed') && (curCSSTop + curCSSLeft).indexOf('auto') > -1;
	      if (calculatePosition) {
	        curPosition = fn.position(element);
	        curTop = curPosition.top;
	        curLeft = curPosition.left;
	      } else {
	        curTop = parseFloat(curCSSTop) || 0;
	        curLeft = parseFloat(curCSSLeft) || 0;
	      }
	      if (angular.isFunction(options)) {
	        options = options.call(element, i, curOffset);
	      }
	      if (options.top !== null) {
	        props.top = options.top - curOffset.top + curTop;
	      }
	      if (options.left !== null) {
	        props.left = options.left - curOffset.left + curLeft;
	      }
	      if ('using' in options) {
	        options.using.call(curElem, props);
	      } else {
	        curElem.css({
	          top: props.top + 'px',
	          left: props.left + 'px'
	        });
	      }
	    };
	    fn.position = function (element) {
	      var offsetParentRect = {
	        top: 0,
	        left: 0
	      };
	      var offsetParentEl;
	      var offset;
	      if (fn.css(element, 'position') === 'fixed') {
	        offset = element.getBoundingClientRect();
	      } else {
	        offsetParentEl = offsetParentElement(element);
	        offset = fn.offset(element);
	        if (!nodeName(offsetParentEl, 'html')) {
	          offsetParentRect = fn.offset(offsetParentEl);
	        }
	        offsetParentRect.top += fn.css(offsetParentEl, 'borderTopWidth', true);
	        offsetParentRect.left += fn.css(offsetParentEl, 'borderLeftWidth', true);
	      }
	      return {
	        width: element.offsetWidth,
	        height: element.offsetHeight,
	        top: offset.top - offsetParentRect.top - fn.css(element, 'marginTop', true),
	        left: offset.left - offsetParentRect.left - fn.css(element, 'marginLeft', true)
	      };
	    };
	    function offsetParentElement(element) {
	      var docElement = element.ownerDocument;
	      var offsetParent = element.offsetParent || docElement;
	      if (nodeName(offsetParent, '#document')) return docElement.documentElement;
	      while (offsetParent && !nodeName(offsetParent, 'html') && fn.css(offsetParent, 'position') === 'static') {
	        offsetParent = offsetParent.offsetParent;
	      }
	      return offsetParent || docElement.documentElement;
	    }
	    fn.height = function (element, outer) {
	      var value = element.offsetHeight;
	      if (outer) {
	        value += fn.css(element, 'marginTop', true) + fn.css(element, 'marginBottom', true);
	      } else {
	        value -= fn.css(element, 'paddingTop', true) + fn.css(element, 'paddingBottom', true) + fn.css(element, 'borderTopWidth', true) + fn.css(element, 'borderBottomWidth', true);
	      }
	      return value;
	    };
	    fn.width = function (element, outer) {
	      var value = element.offsetWidth;
	      if (outer) {
	        value += fn.css(element, 'marginLeft', true) + fn.css(element, 'marginRight', true);
	      } else {
	        value -= fn.css(element, 'paddingLeft', true) + fn.css(element, 'paddingRight', true) + fn.css(element, 'borderLeftWidth', true) + fn.css(element, 'borderRightWidth', true);
	      }
	      return value;
	    };
	    return fn;
	  });
	  angular.module('mgcrea.ngStrap.helpers.debounce', []).factory('debounce', ['$timeout', function ($timeout) {
	    return function (func, wait, immediate) {
	      var timeout = null;
	      return function () {
	        var context = this;
	        var args = arguments;
	        var callNow = immediate && !timeout;
	        if (timeout) {
	          $timeout.cancel(timeout);
	        }
	        timeout = $timeout(function later() {
	          timeout = null;
	          if (!immediate) {
	            func.apply(context, args);
	          }
	        }, wait, false);
	        if (callNow) {
	          func.apply(context, args);
	        }
	        return timeout;
	      };
	    };
	  }]).factory('throttle', ['$timeout', function ($timeout) {
	    return function (func, wait, options) {
	      var timeout = null;
	      if (!options) options = {};
	      return function () {
	        var context = this;
	        var args = arguments;
	        if (!timeout) {
	          if (options.leading !== false) {
	            func.apply(context, args);
	          }
	          timeout = $timeout(function later() {
	            timeout = null;
	            if (options.trailing !== false) {
	              func.apply(context, args);
	            }
	          }, wait, false);
	        }
	      };
	    };
	  }]);
	  angular.module('mgcrea.ngStrap.helpers.dateParser', []).provider('$dateParser', ['$localeProvider', function ($localeProvider) {
	    function ParseDate() {
	      this.year = 1970;
	      this.month = 0;
	      this.day = 1;
	      this.hours = 0;
	      this.minutes = 0;
	      this.seconds = 0;
	      this.milliseconds = 0;
	    }
	    ParseDate.prototype.setMilliseconds = function (value) {
	      this.milliseconds = value;
	    };
	    ParseDate.prototype.setSeconds = function (value) {
	      this.seconds = value;
	    };
	    ParseDate.prototype.setMinutes = function (value) {
	      this.minutes = value;
	    };
	    ParseDate.prototype.setHours = function (value) {
	      this.hours = value;
	    };
	    ParseDate.prototype.getHours = function () {
	      return this.hours;
	    };
	    ParseDate.prototype.setDate = function (value) {
	      this.day = value;
	    };
	    ParseDate.prototype.setMonth = function (value) {
	      this.month = value;
	    };
	    ParseDate.prototype.setFullYear = function (value) {
	      this.year = value;
	    };
	    ParseDate.prototype.fromDate = function (value) {
	      this.year = value.getFullYear();
	      this.month = value.getMonth();
	      this.day = value.getDate();
	      this.hours = value.getHours();
	      this.minutes = value.getMinutes();
	      this.seconds = value.getSeconds();
	      this.milliseconds = value.getMilliseconds();
	      return this;
	    };
	    ParseDate.prototype.toDate = function () {
	      return new Date(this.year, this.month, this.day, this.hours, this.minutes, this.seconds, this.milliseconds);
	    };
	    var proto = ParseDate.prototype;
	    function noop() {}
	    function isNumeric(n) {
	      return !isNaN(parseFloat(n)) && isFinite(n);
	    }
	    function indexOfCaseInsensitive(array, value) {
	      var len = array.length;
	      var str = value.toString().toLowerCase();
	      for (var i = 0; i < len; i++) {
	        if (array[i].toLowerCase() === str) {
	          return i;
	        }
	      }
	      return -1;
	    }
	    var defaults = this.defaults = {
	      format: 'shortDate',
	      strict: false
	    };
	    this.$get = ['$locale', 'dateFilter', function ($locale, dateFilter) {
	      var DateParserFactory = function DateParserFactory(config) {
	        var options = angular.extend({}, defaults, config);
	        var $dateParser = {};
	        var regExpMap = {
	          sss: '[0-9]{3}',
	          ss: '[0-5][0-9]',
	          s: options.strict ? '[1-5]?[0-9]' : '[0-9]|[0-5][0-9]',
	          mm: '[0-5][0-9]',
	          m: options.strict ? '[1-5]?[0-9]' : '[0-9]|[0-5][0-9]',
	          HH: '[01][0-9]|2[0-3]',
	          H: options.strict ? '1?[0-9]|2[0-3]' : '[01]?[0-9]|2[0-3]',
	          hh: '[0][1-9]|[1][012]',
	          h: options.strict ? '[1-9]|1[012]' : '0?[1-9]|1[012]',
	          a: 'AM|PM',
	          EEEE: $locale.DATETIME_FORMATS.DAY.join('|'),
	          EEE: $locale.DATETIME_FORMATS.SHORTDAY.join('|'),
	          dd: '0[1-9]|[12][0-9]|3[01]',
	          d: options.strict ? '[1-9]|[1-2][0-9]|3[01]' : '0?[1-9]|[1-2][0-9]|3[01]',
	          MMMM: $locale.DATETIME_FORMATS.MONTH.join('|'),
	          MMM: $locale.DATETIME_FORMATS.SHORTMONTH.join('|'),
	          MM: '0[1-9]|1[012]',
	          M: options.strict ? '[1-9]|1[012]' : '0?[1-9]|1[012]',
	          yyyy: '[1]{1}[0-9]{3}|[2]{1}[0-9]{3}',
	          yy: '[0-9]{2}',
	          y: options.strict ? '-?(0|[1-9][0-9]{0,3})' : '-?0*[0-9]{1,4}'
	        };
	        var setFnMap = {
	          sss: proto.setMilliseconds,
	          ss: proto.setSeconds,
	          s: proto.setSeconds,
	          mm: proto.setMinutes,
	          m: proto.setMinutes,
	          HH: proto.setHours,
	          H: proto.setHours,
	          hh: proto.setHours,
	          h: proto.setHours,
	          EEEE: noop,
	          EEE: noop,
	          dd: proto.setDate,
	          d: proto.setDate,
	          a: function a(value) {
	            var hours = this.getHours() % 12;
	            return this.setHours(value.match(/pm/i) ? hours + 12 : hours);
	          },
	          MMMM: function MMMM(value) {
	            return this.setMonth(indexOfCaseInsensitive($locale.DATETIME_FORMATS.MONTH, value));
	          },
	          MMM: function MMM(value) {
	            return this.setMonth(indexOfCaseInsensitive($locale.DATETIME_FORMATS.SHORTMONTH, value));
	          },
	          MM: function MM(value) {
	            return this.setMonth(1 * value - 1);
	          },
	          M: function M(value) {
	            return this.setMonth(1 * value - 1);
	          },
	          yyyy: proto.setFullYear,
	          yy: function yy(value) {
	            return this.setFullYear(2e3 + 1 * value);
	          },
	          y: function y(value) {
	            return 1 * value <= 50 && value.length === 2 ? this.setFullYear(2e3 + 1 * value) : this.setFullYear(1 * value);
	          }
	        };
	        var regex;
	        var setMap;
	        $dateParser.init = function () {
	          $dateParser.$format = $locale.DATETIME_FORMATS[options.format] || options.format;
	          regex = regExpForFormat($dateParser.$format);
	          setMap = setMapForFormat($dateParser.$format);
	        };
	        $dateParser.isValid = function (date) {
	          if (angular.isDate(date)) return !isNaN(date.getTime());
	          return regex.test(date);
	        };
	        $dateParser.parse = function (value, baseDate, format, timezone) {
	          if (format) format = $locale.DATETIME_FORMATS[format] || format;
	          if (angular.isDate(value)) value = dateFilter(value, format || $dateParser.$format, timezone);
	          var formatRegex = format ? regExpForFormat(format) : regex;
	          var formatSetMap = format ? setMapForFormat(format) : setMap;
	          var matches = formatRegex.exec(value);
	          if (!matches) return false;
	          var date = baseDate && !isNaN(baseDate.getTime()) ? new ParseDate().fromDate(baseDate) : new ParseDate().fromDate(new Date(1970, 0, 1, 0));
	          for (var i = 0; i < matches.length - 1; i++) {
	            if (formatSetMap[i]) formatSetMap[i].call(date, matches[i + 1]);
	          }
	          var newDate = date.toDate();
	          if (parseInt(date.day, 10) !== newDate.getDate()) {
	            return false;
	          }
	          return newDate;
	        };
	        $dateParser.getDateForAttribute = function (key, value) {
	          var date;
	          if (value === 'today') {
	            var today = new Date();
	            date = new Date(today.getFullYear(), today.getMonth(), today.getDate() + (key === 'maxDate' ? 1 : 0), 0, 0, 0, key === 'minDate' ? 0 : -1);
	          } else if (angular.isString(value) && value.match(/^".+"$/)) {
	            date = new Date(value.substr(1, value.length - 2));
	          } else if (isNumeric(value)) {
	            date = new Date(parseInt(value, 10));
	          } else if (angular.isString(value) && value.length === 0) {
	            date = key === 'minDate' ? -Infinity : +Infinity;
	          } else {
	            date = new Date(value);
	          }
	          return date;
	        };
	        $dateParser.getTimeForAttribute = function (key, value) {
	          var time;
	          if (value === 'now') {
	            time = new Date().setFullYear(1970, 0, 1);
	          } else if (angular.isString(value) && value.match(/^".+"$/)) {
	            time = new Date(value.substr(1, value.length - 2)).setFullYear(1970, 0, 1);
	          } else if (isNumeric(value)) {
	            time = new Date(parseInt(value, 10)).setFullYear(1970, 0, 1);
	          } else if (angular.isString(value) && value.length === 0) {
	            time = key === 'minTime' ? -Infinity : +Infinity;
	          } else {
	            time = $dateParser.parse(value, new Date(1970, 0, 1, 0));
	          }
	          return time;
	        };
	        $dateParser.daylightSavingAdjust = function (date) {
	          if (!date) {
	            return null;
	          }
	          date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0);
	          return date;
	        };
	        $dateParser.timezoneOffsetAdjust = function (date, timezone, undo) {
	          if (!date) {
	            return null;
	          }
	          if (timezone && timezone === 'UTC') {
	            date = new Date(date.getTime());
	            date.setMinutes(date.getMinutes() + (undo ? -1 : 1) * date.getTimezoneOffset());
	          }
	          return date;
	        };
	        function regExpForFormat(format) {
	          var re = buildDateAbstractRegex(format);
	          return buildDateParseRegex(re);
	        }
	        function buildDateAbstractRegex(format) {
	          var escapedFormat = escapeReservedSymbols(format);
	          var escapedLiteralFormat = escapedFormat.replace(/''/g, '\\\'');
	          var literalRegex = /('(?:\\'|.)*?')/;
	          var formatParts = escapedLiteralFormat.split(literalRegex);
	          var dateElements = Object.keys(regExpMap);
	          var dateRegexParts = [];
	          angular.forEach(formatParts, function (part) {
	            if (isFormatStringLiteral(part)) {
	              part = trimLiteralEscapeChars(part);
	            } else {
	              for (var i = 0; i < dateElements.length; i++) {
	                part = part.split(dateElements[i]).join('${' + i + '}');
	              }
	            }
	            dateRegexParts.push(part);
	          });
	          return dateRegexParts.join('');
	        }
	        function escapeReservedSymbols(text) {
	          return text.replace(/\\/g, '[\\\\]').replace(/-/g, '[-]').replace(/\./g, '[.]').replace(/\*/g, '[*]').replace(/\+/g, '[+]').replace(/\?/g, '[?]').replace(/\$/g, '[$]').replace(/\^/g, '[^]').replace(/\//g, '[/]').replace(/\\s/g, '[\\s]');
	        }
	        function isFormatStringLiteral(text) {
	          return (/^'.*'$/.test(text)
	          );
	        }
	        function trimLiteralEscapeChars(text) {
	          return text.replace(/^'(.*)'$/, '$1');
	        }
	        function buildDateParseRegex(abstractRegex) {
	          var dateElements = Object.keys(regExpMap);
	          var re = abstractRegex;
	          for (var i = 0; i < dateElements.length; i++) {
	            re = re.split('${' + i + '}').join('(' + regExpMap[dateElements[i]] + ')');
	          }
	          return new RegExp('^' + re + '$', ['i']);
	        }
	        function setMapForFormat(format) {
	          var re = buildDateAbstractRegex(format);
	          return buildDateParseValuesMap(re);
	        }
	        function buildDateParseValuesMap(abstractRegex) {
	          var dateElements = Object.keys(regExpMap);
	          var valuesRegex = new RegExp('\\${(\\d+)}', 'g');
	          var valuesMatch;
	          var keyIndex;
	          var valueKey;
	          var valueFunction;
	          var valuesFunctionMap = [];
	          while ((valuesMatch = valuesRegex.exec(abstractRegex)) !== null) {
	            keyIndex = valuesMatch[1];
	            valueKey = dateElements[keyIndex];
	            valueFunction = setFnMap[valueKey];
	            valuesFunctionMap.push(valueFunction);
	          }
	          return valuesFunctionMap;
	        }
	        $dateParser.init();
	        return $dateParser;
	      };
	      return DateParserFactory;
	    }];
	  }]);
	  angular.module('mgcrea.ngStrap.helpers.dateFormatter', []).service('$dateFormatter', ['$locale', 'dateFilter', function ($locale, dateFilter) {
	    this.getDefaultLocale = function () {
	      return $locale.id;
	    };
	    this.getDatetimeFormat = function (format, lang) {
	      return $locale.DATETIME_FORMATS[format] || format;
	    };
	    this.weekdaysShort = function (lang) {
	      return $locale.DATETIME_FORMATS.SHORTDAY;
	    };
	    function splitTimeFormat(format) {
	      return (/(h+)([:\.])?(m+)([:\.])?(s*)[ ]?(a?)/i.exec(format).slice(1)
	      );
	    }
	    this.hoursFormat = function (timeFormat) {
	      return splitTimeFormat(timeFormat)[0];
	    };
	    this.minutesFormat = function (timeFormat) {
	      return splitTimeFormat(timeFormat)[2];
	    };
	    this.secondsFormat = function (timeFormat) {
	      return splitTimeFormat(timeFormat)[4];
	    };
	    this.timeSeparator = function (timeFormat) {
	      return splitTimeFormat(timeFormat)[1];
	    };
	    this.showSeconds = function (timeFormat) {
	      return !!splitTimeFormat(timeFormat)[4];
	    };
	    this.showAM = function (timeFormat) {
	      return !!splitTimeFormat(timeFormat)[5];
	    };
	    this.formatDate = function (date, format, lang, timezone) {
	      return dateFilter(date, format, timezone);
	    };
	  }]);
	  angular.module('mgcrea.ngStrap.core', []).service('$bsCompiler', bsCompilerService);
	  function bsCompilerService($q, $http, $injector, $compile, $controller, $templateCache) {
	    this.compile = function (options) {
	      if (options.template && /\.html$/.test(options.template)) {
	        console.warn('Deprecated use of `template` option to pass a file. Please use the `templateUrl` option instead.');
	        options.templateUrl = options.template;
	        options.template = '';
	      }
	      var templateUrl = options.templateUrl;
	      var template = options.template || '';
	      var controller = options.controller;
	      var controllerAs = options.controllerAs;
	      var resolve = options.resolve || {};
	      var locals = options.locals || {};
	      var transformTemplate = options.transformTemplate || angular.identity;
	      var bindToController = options.bindToController;
	      angular.forEach(resolve, function (value, key) {
	        if (angular.isString(value)) {
	          resolve[key] = $injector.get(value);
	        } else {
	          resolve[key] = $injector.invoke(value);
	        }
	      });
	      angular.extend(resolve, locals);
	      if (template) {
	        resolve.$template = $q.when(template);
	      } else if (templateUrl) {
	        resolve.$template = fetchTemplate(templateUrl);
	      } else {
	        throw new Error('Missing `template` / `templateUrl` option.');
	      }
	      if (options.titleTemplate) {
	        resolve.$template = $q.all([resolve.$template, fetchTemplate(options.titleTemplate)]).then(function (templates) {
	          var templateEl = angular.element(templates[0]);
	          findElement('[ng-bind="title"]', templateEl[0]).removeAttr('ng-bind').html(templates[1]);
	          return templateEl[0].outerHTML;
	        });
	      }
	      if (options.contentTemplate) {
	        resolve.$template = $q.all([resolve.$template, fetchTemplate(options.contentTemplate)]).then(function (templates) {
	          var templateEl = angular.element(templates[0]);
	          var contentEl = findElement('[ng-bind="content"]', templateEl[0]).removeAttr('ng-bind').html(templates[1]);
	          if (!options.templateUrl) contentEl.next().remove();
	          return templateEl[0].outerHTML;
	        });
	      }
	      return $q.all(resolve).then(function (locals) {
	        var template = transformTemplate(locals.$template);
	        if (options.html) {
	          template = template.replace(/ng-bind="/gi, 'ng-bind-html="');
	        }
	        var element = angular.element('<div>').html(template.trim()).contents();
	        var linkFn = $compile(element);
	        return {
	          locals: locals,
	          element: element,
	          link: function link(scope) {
	            locals.$scope = scope;
	            if (controller) {
	              var invokeCtrl = $controller(controller, locals, true);
	              if (bindToController) {
	                angular.extend(invokeCtrl.instance, locals);
	              }
	              var ctrl = angular.isObject(invokeCtrl) ? invokeCtrl : invokeCtrl();
	              element.data('$ngControllerController', ctrl);
	              element.children().data('$ngControllerController', ctrl);
	              if (controllerAs) {
	                scope[controllerAs] = ctrl;
	              }
	            }
	            return linkFn.apply(null, arguments);
	          }
	        };
	      });
	    };
	    function findElement(query, element) {
	      return angular.element((element || document).querySelectorAll(query));
	    }
	    var fetchPromises = {};
	    function fetchTemplate(template) {
	      if (fetchPromises[template]) return fetchPromises[template];
	      return fetchPromises[template] = $http.get(template, {
	        cache: $templateCache
	      }).then(function (res) {
	        return res.data;
	      });
	    }
	  }
	  angular.module('mgcrea.ngStrap.dropdown', ['mgcrea.ngStrap.tooltip']).provider('$dropdown', function () {
	    var defaults = this.defaults = {
	      animation: 'am-fade',
	      prefixClass: 'dropdown',
	      prefixEvent: 'dropdown',
	      placement: 'bottom-left',
	      templateUrl: 'dropdown/dropdown.tpl.html',
	      trigger: 'click',
	      container: false,
	      keyboard: true,
	      html: false,
	      delay: 0
	    };
	    this.$get = ['$window', '$rootScope', '$tooltip', '$timeout', function ($window, $rootScope, $tooltip, $timeout) {
	      var bodyEl = angular.element($window.document.body);
	      var matchesSelector = Element.prototype.matchesSelector || Element.prototype.webkitMatchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.oMatchesSelector;
	      function DropdownFactory(element, config) {
	        var $dropdown = {};
	        var options = angular.extend({}, defaults, config);
	        $dropdown.$scope = options.scope && options.scope.$new() || $rootScope.$new();
	        $dropdown = $tooltip(element, options);
	        var parentEl = element.parent();
	        $dropdown.$onKeyDown = function (evt) {
	          if (!/(38|40)/.test(evt.keyCode)) return;
	          evt.preventDefault();
	          evt.stopPropagation();
	          var items = angular.element($dropdown.$element[0].querySelectorAll('li:not(.divider) a'));
	          if (!items.length) return;
	          var index;
	          angular.forEach(items, function (el, i) {
	            if (matchesSelector && matchesSelector.call(el, ':focus')) index = i;
	          });
	          if (evt.keyCode === 38 && index > 0) index--;else if (evt.keyCode === 40 && index < items.length - 1) index++;else if (angular.isUndefined(index)) index = 0;
	          items.eq(index)[0].focus();
	        };
	        var show = $dropdown.show;
	        $dropdown.show = function () {
	          show();
	          $timeout(function () {
	            if (options.keyboard && $dropdown.$element) $dropdown.$element.on('keydown', $dropdown.$onKeyDown);
	            bodyEl.on('click', onBodyClick);
	          }, 0, false);
	          if (parentEl.hasClass('dropdown')) parentEl.addClass('open');
	        };
	        var hide = $dropdown.hide;
	        $dropdown.hide = function () {
	          if (!$dropdown.$isShown) return;
	          if (options.keyboard && $dropdown.$element) $dropdown.$element.off('keydown', $dropdown.$onKeyDown);
	          bodyEl.off('click', onBodyClick);
	          if (parentEl.hasClass('dropdown')) parentEl.removeClass('open');
	          hide();
	        };
	        var destroy = $dropdown.destroy;
	        $dropdown.destroy = function () {
	          bodyEl.off('click', onBodyClick);
	          destroy();
	        };
	        function onBodyClick(evt) {
	          if (evt.target === element[0]) return;
	          return evt.target !== element[0] && $dropdown.hide();
	        }
	        return $dropdown;
	      }
	      return DropdownFactory;
	    }];
	  }).directive('bsDropdown', ['$window', '$sce', '$dropdown', function ($window, $sce, $dropdown) {
	    return {
	      restrict: 'EAC',
	      scope: true,
	      compile: function compile(tElement, tAttrs) {
	        if (!tAttrs.bsDropdown) {
	          var nextSibling = tElement[0].nextSibling;
	          while (nextSibling && nextSibling.nodeType !== 1) {
	            nextSibling = nextSibling.nextSibling;
	          }
	          if (nextSibling && nextSibling.className.split(' ').indexOf('dropdown-menu') >= 0) {
	            tAttrs.template = nextSibling.outerHTML;
	            tAttrs.templateUrl = undefined;
	            nextSibling.parentNode.removeChild(nextSibling);
	          }
	        }
	        return function postLink(scope, element, attr) {
	          var options = {
	            scope: scope
	          };
	          angular.forEach(['template', 'templateUrl', 'controller', 'controllerAs', 'placement', 'container', 'delay', 'trigger', 'keyboard', 'html', 'animation', 'id', 'autoClose'], function (key) {
	            if (angular.isDefined(tAttrs[key])) options[key] = tAttrs[key];
	          });
	          var falseValueRegExp = /^(false|0|)$/i;
	          angular.forEach(['html', 'container'], function (key) {
	            if (angular.isDefined(attr[key]) && falseValueRegExp.test(attr[key])) options[key] = false;
	          });
	          angular.forEach(['onBeforeShow', 'onShow', 'onBeforeHide', 'onHide'], function (key) {
	            var bsKey = 'bs' + key.charAt(0).toUpperCase() + key.slice(1);
	            if (angular.isDefined(attr[bsKey])) {
	              options[key] = scope.$eval(attr[bsKey]);
	            }
	          });
	          if (attr.bsDropdown) {
	            scope.$watch(attr.bsDropdown, function (newValue, oldValue) {
	              scope.content = newValue;
	            }, true);
	          }
	          var dropdown = $dropdown(element, options);
	          if (attr.bsShow) {
	            scope.$watch(attr.bsShow, function (newValue, oldValue) {
	              if (!dropdown || !angular.isDefined(newValue)) return;
	              if (angular.isString(newValue)) newValue = !!newValue.match(/true|,?(dropdown),?/i);
	              if (newValue === true) {
	                dropdown.show();
	              } else {
	                dropdown.hide();
	              }
	            });
	          }
	          scope.$on('$destroy', function () {
	            if (dropdown) dropdown.destroy();
	            options = null;
	            dropdown = null;
	          });
	        };
	      }
	    };
	  }]);
	  angular.module('mgcrea.ngStrap.button', []).provider('$button', function () {
	    var defaults = this.defaults = {
	      activeClass: 'active',
	      toggleEvent: 'click'
	    };
	    this.$get = function () {
	      return {
	        defaults: defaults
	      };
	    };
	  }).directive('bsCheckboxGroup', function () {
	    return {
	      restrict: 'A',
	      require: 'ngModel',
	      compile: function postLink(element, attr) {
	        element.attr('data-toggle', 'buttons');
	        element.removeAttr('ng-model');
	        var children = element[0].querySelectorAll('input[type="checkbox"]');
	        angular.forEach(children, function (child) {
	          var childEl = angular.element(child);
	          childEl.attr('bs-checkbox', '');
	          childEl.attr('ng-model', attr.ngModel + '.' + childEl.attr('value'));
	        });
	      }
	    };
	  }).directive('bsCheckbox', ['$button', '$$rAF', function ($button, $$rAF) {
	    var defaults = $button.defaults;
	    var constantValueRegExp = /^(true|false|\d+)$/;
	    return {
	      restrict: 'A',
	      require: 'ngModel',
	      link: function postLink(scope, element, attr, controller) {
	        var options = defaults;
	        var isInput = element[0].nodeName === 'INPUT';
	        var activeElement = isInput ? element.parent() : element;
	        var trueValue = angular.isDefined(attr.trueValue) ? attr.trueValue : true;
	        if (constantValueRegExp.test(attr.trueValue)) {
	          trueValue = scope.$eval(attr.trueValue);
	        }
	        var falseValue = angular.isDefined(attr.falseValue) ? attr.falseValue : false;
	        if (constantValueRegExp.test(attr.falseValue)) {
	          falseValue = scope.$eval(attr.falseValue);
	        }
	        var hasExoticValues = typeof trueValue !== 'boolean' || typeof falseValue !== 'boolean';
	        if (hasExoticValues) {
	          controller.$parsers.push(function (viewValue) {
	            return viewValue ? trueValue : falseValue;
	          });
	          controller.$formatters.push(function (modelValue) {
	            return angular.equals(modelValue, trueValue);
	          });
	        }
	        controller.$render = function () {
	          var isActive = !!controller.$viewValue;
	          $$rAF(function () {
	            if (isInput) element[0].checked = isActive;
	            activeElement.toggleClass(options.activeClass, isActive);
	          });
	        };
	        element.bind(options.toggleEvent, function () {
	          scope.$apply(function () {
	            if (!isInput) {
	              controller.$setViewValue(!activeElement.hasClass('active'));
	            }
	            controller.$render();
	          });
	        });
	      }
	    };
	  }]).directive('bsRadioGroup', function () {
	    return {
	      restrict: 'A',
	      require: 'ngModel',
	      compile: function postLink(element, attr) {
	        element.attr('data-toggle', 'buttons');
	        element.removeAttr('ng-model');
	        var children = element[0].querySelectorAll('input[type="radio"]');
	        angular.forEach(children, function (child) {
	          angular.element(child).attr('bs-radio', '');
	          angular.element(child).attr('ng-model', attr.ngModel);
	        });
	      }
	    };
	  }).directive('bsRadio', ['$button', '$$rAF', function ($button, $$rAF) {
	    var defaults = $button.defaults;
	    var constantValueRegExp = /^(true|false|\d+)$/;
	    return {
	      restrict: 'A',
	      require: 'ngModel',
	      link: function postLink(scope, element, attr, controller) {
	        var options = defaults;
	        var isInput = element[0].nodeName === 'INPUT';
	        var activeElement = isInput ? element.parent() : element;
	        var value;
	        attr.$observe('value', function (v) {
	          if (typeof v !== 'boolean' && constantValueRegExp.test(v)) {
	            value = scope.$eval(v);
	          } else {
	            value = v;
	          }
	          controller.$render();
	        });
	        controller.$render = function () {
	          var isActive = angular.equals(controller.$viewValue, value);
	          $$rAF(function () {
	            if (isInput) element[0].checked = isActive;
	            activeElement.toggleClass(options.activeClass, isActive);
	          });
	        };
	        element.bind(options.toggleEvent, function () {
	          scope.$apply(function () {
	            controller.$setViewValue(value);
	            controller.$render();
	          });
	        });
	      }
	    };
	  }]);
	  angular.module('mgcrea.ngStrap.datepicker', ['mgcrea.ngStrap.helpers.dateParser', 'mgcrea.ngStrap.helpers.dateFormatter', 'mgcrea.ngStrap.tooltip']).provider('$datepicker', function () {
	    var defaults = this.defaults = {
	      animation: 'am-fade',
	      prefixClass: 'datepicker',
	      placement: 'bottom-left',
	      templateUrl: 'datepicker/datepicker.tpl.html',
	      trigger: 'focus',
	      container: false,
	      keyboard: true,
	      html: false,
	      delay: 0,
	      useNative: false,
	      dateType: 'date',
	      dateFormat: 'shortDate',
	      timezone: null,
	      modelDateFormat: null,
	      dayFormat: 'dd',
	      monthFormat: 'MMM',
	      yearFormat: 'yyyy',
	      monthTitleFormat: 'MMMM yyyy',
	      yearTitleFormat: 'yyyy',
	      strictFormat: false,
	      autoclose: false,
	      minDate: -Infinity,
	      maxDate: +Infinity,
	      startView: 0,
	      minView: 0,
	      startWeek: 0,
	      daysOfWeekDisabled: '',
	      hasToday: false,
	      hasClear: false,
	      iconLeft: 'glyphicon glyphicon-chevron-left',
	      iconRight: 'glyphicon glyphicon-chevron-right'
	    };
	    this.$get = ['$window', '$document', '$rootScope', '$sce', '$dateFormatter', 'datepickerViews', '$tooltip', '$timeout', function ($window, $document, $rootScope, $sce, $dateFormatter, datepickerViews, $tooltip, $timeout) {
	      var isNative = /(ip[ao]d|iphone|android)/gi.test($window.navigator.userAgent);
	      var isTouch = 'createTouch' in $window.document && isNative;
	      if (!defaults.lang) defaults.lang = $dateFormatter.getDefaultLocale();
	      function DatepickerFactory(element, controller, config) {
	        var $datepicker = $tooltip(element, angular.extend({}, defaults, config));
	        var parentScope = config.scope;
	        var options = $datepicker.$options;
	        var scope = $datepicker.$scope;
	        if (options.startView) options.startView -= options.minView;
	        var pickerViews = datepickerViews($datepicker);
	        $datepicker.$views = pickerViews.views;
	        var viewDate = pickerViews.viewDate;
	        scope.$mode = options.startView;
	        scope.$iconLeft = options.iconLeft;
	        scope.$iconRight = options.iconRight;
	        scope.$hasToday = options.hasToday;
	        scope.$hasClear = options.hasClear;
	        var $picker = $datepicker.$views[scope.$mode];
	        scope.$select = function (date, disabled) {
	          if (disabled) return;
	          $datepicker.select(date);
	        };
	        scope.$selectPane = function (value) {
	          $datepicker.$selectPane(value);
	        };
	        scope.$toggleMode = function () {
	          $datepicker.setMode((scope.$mode + 1) % $datepicker.$views.length);
	        };
	        scope.$setToday = function () {
	          if (options.autoclose) {
	            $datepicker.setMode(0);
	            $datepicker.select(new Date());
	          } else {
	            $datepicker.select(new Date(), true);
	          }
	        };
	        scope.$clear = function () {
	          if (options.autoclose) {
	            $datepicker.setMode(0);
	            $datepicker.select(null);
	          } else {
	            $datepicker.select(null, true);
	          }
	        };
	        $datepicker.update = function (date) {
	          if (angular.isDate(date) && !isNaN(date.getTime())) {
	            $datepicker.$date = date;
	            $picker.update.call($picker, date);
	          }
	          $datepicker.$build(true);
	        };
	        $datepicker.updateDisabledDates = function (dateRanges) {
	          options.disabledDateRanges = dateRanges;
	          for (var i = 0, l = scope.rows.length; i < l; i++) {
	            angular.forEach(scope.rows[i], $datepicker.$setDisabledEl);
	          }
	        };
	        $datepicker.select = function (date, keep) {
	          if (angular.isDate(date)) {
	            if (!angular.isDate(controller.$dateValue) || isNaN(controller.$dateValue.getTime())) {
	              controller.$dateValue = new Date(date);
	            }
	          } else {
	            controller.$dateValue = null;
	          }
	          if (!scope.$mode || keep) {
	            controller.$setViewValue(angular.copy(date));
	            controller.$render();
	            if (options.autoclose && !keep) {
	              $timeout(function () {
	                $datepicker.hide(true);
	              });
	            }
	          } else {
	            angular.extend(viewDate, {
	              year: date.getFullYear(),
	              month: date.getMonth(),
	              date: date.getDate()
	            });
	            $datepicker.setMode(scope.$mode - 1);
	            $datepicker.$build();
	          }
	        };
	        $datepicker.setMode = function (mode) {
	          scope.$mode = mode;
	          $picker = $datepicker.$views[scope.$mode];
	          $datepicker.$build();
	        };
	        $datepicker.$build = function (pristine) {
	          if (pristine === true && $picker.built) return;
	          if (pristine === false && !$picker.built) return;
	          $picker.build.call($picker);
	        };
	        $datepicker.$updateSelected = function () {
	          for (var i = 0, l = scope.rows.length; i < l; i++) {
	            angular.forEach(scope.rows[i], updateSelected);
	          }
	        };
	        $datepicker.$isSelected = function (date) {
	          return $picker.isSelected(date);
	        };
	        $datepicker.$setDisabledEl = function (el) {
	          el.disabled = $picker.isDisabled(el.date);
	        };
	        $datepicker.$selectPane = function (value) {
	          var steps = $picker.steps;
	          var targetDate = new Date(Date.UTC(viewDate.year + (steps.year || 0) * value, viewDate.month + (steps.month || 0) * value, 1));
	          angular.extend(viewDate, {
	            year: targetDate.getUTCFullYear(),
	            month: targetDate.getUTCMonth(),
	            date: targetDate.getUTCDate()
	          });
	          $datepicker.$build();
	        };
	        $datepicker.$onMouseDown = function (evt) {
	          evt.preventDefault();
	          evt.stopPropagation();
	          if (isTouch) {
	            var targetEl = angular.element(evt.target);
	            if (targetEl[0].nodeName.toLowerCase() !== 'button') {
	              targetEl = targetEl.parent();
	            }
	            targetEl.triggerHandler('click');
	          }
	        };
	        $datepicker.$onKeyDown = function (evt) {
	          if (!/(38|37|39|40|13)/.test(evt.keyCode) || evt.shiftKey || evt.altKey) return;
	          evt.preventDefault();
	          evt.stopPropagation();
	          if (evt.keyCode === 13) {
	            if (!scope.$mode) {
	              $datepicker.hide(true);
	            } else {
	              scope.$apply(function () {
	                $datepicker.setMode(scope.$mode - 1);
	              });
	            }
	            return;
	          }
	          $picker.onKeyDown(evt);
	          parentScope.$digest();
	        };
	        function updateSelected(el) {
	          el.selected = $datepicker.$isSelected(el.date);
	        }
	        function focusElement() {
	          element[0].focus();
	        }
	        var _init = $datepicker.init;
	        $datepicker.init = function () {
	          if (isNative && options.useNative) {
	            element.prop('type', 'date');
	            element.css('-webkit-appearance', 'textfield');
	            return;
	          } else if (isTouch) {
	            element.prop('type', 'text');
	            element.attr('readonly', 'true');
	            element.on('click', focusElement);
	          }
	          _init();
	        };
	        var _destroy = $datepicker.destroy;
	        $datepicker.destroy = function () {
	          if (isNative && options.useNative) {
	            element.off('click', focusElement);
	          }
	          _destroy();
	        };
	        var _show = $datepicker.show;
	        $datepicker.show = function () {
	          if (!isTouch && element.attr('readonly') || element.attr('disabled')) return;
	          _show();
	          $timeout(function () {
	            if (!$datepicker.$isShown) return;
	            $datepicker.$element.on(isTouch ? 'touchstart' : 'mousedown', $datepicker.$onMouseDown);
	            if (options.keyboard) {
	              element.on('keydown', $datepicker.$onKeyDown);
	            }
	          }, 0, false);
	        };
	        var _hide = $datepicker.hide;
	        $datepicker.hide = function (blur) {
	          if (!$datepicker.$isShown) return;
	          $datepicker.$element.off(isTouch ? 'touchstart' : 'mousedown', $datepicker.$onMouseDown);
	          if (options.keyboard) {
	            element.off('keydown', $datepicker.$onKeyDown);
	          }
	          _hide(blur);
	        };
	        return $datepicker;
	      }
	      DatepickerFactory.defaults = defaults;
	      return DatepickerFactory;
	    }];
	  }).directive('bsDatepicker', ['$window', '$parse', '$q', '$dateFormatter', '$dateParser', '$datepicker', function ($window, $parse, $q, $dateFormatter, $dateParser, $datepicker) {
	    var isNative = /(ip[ao]d|iphone|android)/gi.test($window.navigator.userAgent);
	    return {
	      restrict: 'EAC',
	      require: 'ngModel',
	      link: function postLink(scope, element, attr, controller) {
	        var options = {
	          scope: scope
	        };
	        angular.forEach(['template', 'templateUrl', 'controller', 'controllerAs', 'placement', 'container', 'delay', 'trigger', 'html', 'animation', 'autoclose', 'dateType', 'dateFormat', 'timezone', 'modelDateFormat', 'dayFormat', 'strictFormat', 'startWeek', 'startDate', 'useNative', 'lang', 'startView', 'minView', 'iconLeft', 'iconRight', 'daysOfWeekDisabled', 'id', 'prefixClass', 'prefixEvent', 'hasToday', 'hasClear'], function (key) {
	          if (angular.isDefined(attr[key])) options[key] = attr[key];
	        });
	        var falseValueRegExp = /^(false|0|)$/i;
	        angular.forEach(['html', 'container', 'autoclose', 'useNative', 'hasToday', 'hasClear'], function (key) {
	          if (angular.isDefined(attr[key]) && falseValueRegExp.test(attr[key])) {
	            options[key] = false;
	          }
	        });
	        angular.forEach(['onBeforeShow', 'onShow', 'onBeforeHide', 'onHide'], function (key) {
	          var bsKey = 'bs' + key.charAt(0).toUpperCase() + key.slice(1);
	          if (angular.isDefined(attr[bsKey])) {
	            options[key] = scope.$eval(attr[bsKey]);
	          }
	        });
	        var datepicker = $datepicker(element, controller, options);
	        options = datepicker.$options;
	        if (isNative && options.useNative) options.dateFormat = 'yyyy-MM-dd';
	        var lang = options.lang;
	        var formatDate = function formatDate(date, format) {
	          return $dateFormatter.formatDate(date, format, lang);
	        };
	        var dateParser = $dateParser({
	          format: options.dateFormat,
	          lang: lang,
	          strict: options.strictFormat
	        });
	        if (attr.bsShow) {
	          scope.$watch(attr.bsShow, function (newValue, oldValue) {
	            if (!datepicker || !angular.isDefined(newValue)) return;
	            if (angular.isString(newValue)) newValue = !!newValue.match(/true|,?(datepicker),?/i);
	            if (newValue === true) {
	              datepicker.show();
	            } else {
	              datepicker.hide();
	            }
	          });
	        }
	        angular.forEach(['minDate', 'maxDate'], function (key) {
	          if (angular.isDefined(attr[key])) {
	            attr.$observe(key, function (newValue) {
	              datepicker.$options[key] = dateParser.getDateForAttribute(key, newValue);
	              if (!isNaN(datepicker.$options[key])) datepicker.$build(false);
	              validateAgainstMinMaxDate(controller.$dateValue);
	            });
	          }
	        });
	        if (angular.isDefined(attr.dateFormat)) {
	          attr.$observe('dateFormat', function (newValue) {
	            datepicker.$options.dateFormat = newValue;
	          });
	        }
	        scope.$watch(attr.ngModel, function (newValue, oldValue) {
	          datepicker.update(controller.$dateValue);
	        }, true);
	        function normalizeDateRanges(ranges) {
	          if (!ranges || !ranges.length) return null;
	          return ranges;
	        }
	        if (angular.isDefined(attr.disabledDates)) {
	          scope.$watch(attr.disabledDates, function (disabledRanges, previousValue) {
	            disabledRanges = normalizeDateRanges(disabledRanges);
	            previousValue = normalizeDateRanges(previousValue);
	            if (disabledRanges) {
	              datepicker.updateDisabledDates(disabledRanges);
	            }
	          });
	        }
	        function validateAgainstMinMaxDate(parsedDate) {
	          if (!angular.isDate(parsedDate)) return;
	          var isMinValid = isNaN(datepicker.$options.minDate) || parsedDate.getTime() >= datepicker.$options.minDate;
	          var isMaxValid = isNaN(datepicker.$options.maxDate) || parsedDate.getTime() <= datepicker.$options.maxDate;
	          var isValid = isMinValid && isMaxValid;
	          controller.$setValidity('date', isValid);
	          controller.$setValidity('min', isMinValid);
	          controller.$setValidity('max', isMaxValid);
	          if (isValid) controller.$dateValue = parsedDate;
	        }
	        controller.$parsers.unshift(function (viewValue) {
	          var date;
	          if (!viewValue) {
	            controller.$setValidity('date', true);
	            return null;
	          }
	          var parsedDate = dateParser.parse(viewValue, controller.$dateValue);
	          if (!parsedDate || isNaN(parsedDate.getTime())) {
	            controller.$setValidity('date', false);
	            return;
	          }
	          validateAgainstMinMaxDate(parsedDate);
	          if (options.dateType === 'string') {
	            date = dateParser.timezoneOffsetAdjust(parsedDate, options.timezone, true);
	            return formatDate(date, options.modelDateFormat || options.dateFormat);
	          }
	          date = dateParser.timezoneOffsetAdjust(controller.$dateValue, options.timezone, true);
	          if (options.dateType === 'number') {
	            return date.getTime();
	          } else if (options.dateType === 'unix') {
	            return date.getTime() / 1e3;
	          } else if (options.dateType === 'iso') {
	            return date.toISOString();
	          }
	          return new Date(date);
	        });
	        controller.$formatters.push(function (modelValue) {
	          var date;
	          if (angular.isUndefined(modelValue) || modelValue === null) {
	            date = NaN;
	          } else if (angular.isDate(modelValue)) {
	            date = modelValue;
	          } else if (options.dateType === 'string') {
	            date = dateParser.parse(modelValue, null, options.modelDateFormat);
	          } else if (options.dateType === 'unix') {
	            date = new Date(modelValue * 1e3);
	          } else {
	            date = new Date(modelValue);
	          }
	          controller.$dateValue = dateParser.timezoneOffsetAdjust(date, options.timezone);
	          return getDateFormattedString();
	        });
	        controller.$render = function () {
	          element.val(getDateFormattedString());
	        };
	        function getDateFormattedString() {
	          return !controller.$dateValue || isNaN(controller.$dateValue.getTime()) ? '' : formatDate(controller.$dateValue, options.dateFormat);
	        }
	        scope.$on('$destroy', function () {
	          if (datepicker) datepicker.destroy();
	          options = null;
	          datepicker = null;
	        });
	      }
	    };
	  }]).provider('datepickerViews', function () {
	    function split(arr, size) {
	      var arrays = [];
	      while (arr.length > 0) {
	        arrays.push(arr.splice(0, size));
	      }
	      return arrays;
	    }
	    function mod(n, m) {
	      return (n % m + m) % m;
	    }
	    this.$get = ['$dateFormatter', '$dateParser', '$sce', function ($dateFormatter, $dateParser, $sce) {
	      return function (picker) {
	        var scope = picker.$scope;
	        var options = picker.$options;
	        var lang = options.lang;
	        var formatDate = function formatDate(date, format) {
	          return $dateFormatter.formatDate(date, format, lang);
	        };
	        var dateParser = $dateParser({
	          format: options.dateFormat,
	          lang: lang,
	          strict: options.strictFormat
	        });
	        var weekDaysMin = $dateFormatter.weekdaysShort(lang);
	        var weekDaysLabels = weekDaysMin.slice(options.startWeek).concat(weekDaysMin.slice(0, options.startWeek));
	        var weekDaysLabelsHtml = $sce.trustAsHtml('<th class="dow text-center">' + weekDaysLabels.join('</th><th class="dow text-center">') + '</th>');
	        var startDate = picker.$date || (options.startDate ? dateParser.getDateForAttribute('startDate', options.startDate) : new Date());
	        var viewDate = {
	          year: startDate.getFullYear(),
	          month: startDate.getMonth(),
	          date: startDate.getDate()
	        };
	        var views = [{
	          format: options.dayFormat,
	          split: 7,
	          steps: {
	            month: 1
	          },
	          update: function update(date, force) {
	            if (!this.built || force || date.getFullYear() !== viewDate.year || date.getMonth() !== viewDate.month) {
	              angular.extend(viewDate, {
	                year: picker.$date.getFullYear(),
	                month: picker.$date.getMonth(),
	                date: picker.$date.getDate()
	              });
	              picker.$build();
	            } else if (date.getDate() !== viewDate.date || date.getDate() === 1) {
	              viewDate.date = picker.$date.getDate();
	              picker.$updateSelected();
	            }
	          },
	          build: function build() {
	            var firstDayOfMonth = new Date(viewDate.year, viewDate.month, 1);
	            var firstDayOfMonthOffset = firstDayOfMonth.getTimezoneOffset();
	            var firstDate = new Date(+firstDayOfMonth - mod(firstDayOfMonth.getDay() - options.startWeek, 7) * 864e5);
	            var firstDateOffset = firstDate.getTimezoneOffset();
	            var today = dateParser.timezoneOffsetAdjust(new Date(), options.timezone).toDateString();
	            if (firstDateOffset !== firstDayOfMonthOffset) firstDate = new Date(+firstDate + (firstDateOffset - firstDayOfMonthOffset) * 6e4);
	            var days = [];
	            var day;
	            for (var i = 0; i < 42; i++) {
	              day = dateParser.daylightSavingAdjust(new Date(firstDate.getFullYear(), firstDate.getMonth(), firstDate.getDate() + i));
	              days.push({
	                date: day,
	                isToday: day.toDateString() === today,
	                label: formatDate(day, this.format),
	                selected: picker.$date && this.isSelected(day),
	                muted: day.getMonth() !== viewDate.month,
	                disabled: this.isDisabled(day)
	              });
	            }
	            scope.title = formatDate(firstDayOfMonth, options.monthTitleFormat);
	            scope.showLabels = true;
	            scope.labels = weekDaysLabelsHtml;
	            scope.rows = split(days, this.split);
	            scope.isTodayDisabled = this.isDisabled(new Date());
	            this.built = true;
	          },
	          isSelected: function isSelected(date) {
	            return picker.$date && date.getFullYear() === picker.$date.getFullYear() && date.getMonth() === picker.$date.getMonth() && date.getDate() === picker.$date.getDate();
	          },
	          isDisabled: function isDisabled(date) {
	            var time = date.getTime();
	            if (time < options.minDate || time > options.maxDate) return true;
	            if (options.daysOfWeekDisabled.indexOf(date.getDay()) !== -1) return true;
	            if (options.disabledDateRanges) {
	              for (var i = 0; i < options.disabledDateRanges.length; i++) {
	                if (time >= options.disabledDateRanges[i].start && time <= options.disabledDateRanges[i].end) {
	                  return true;
	                }
	              }
	            }
	            return false;
	          },
	          onKeyDown: function onKeyDown(evt) {
	            if (!picker.$date) {
	              return;
	            }
	            var actualTime = picker.$date.getTime();
	            var newDate;
	            if (evt.keyCode === 37) newDate = new Date(actualTime - 1 * 864e5);else if (evt.keyCode === 38) newDate = new Date(actualTime - 7 * 864e5);else if (evt.keyCode === 39) newDate = new Date(actualTime + 1 * 864e5);else if (evt.keyCode === 40) newDate = new Date(actualTime + 7 * 864e5);
	            if (!this.isDisabled(newDate)) picker.select(newDate, true);
	          }
	        }, {
	          name: 'month',
	          format: options.monthFormat,
	          split: 4,
	          steps: {
	            year: 1
	          },
	          update: function update(date, force) {
	            if (!this.built || date.getFullYear() !== viewDate.year) {
	              angular.extend(viewDate, {
	                year: picker.$date.getFullYear(),
	                month: picker.$date.getMonth(),
	                date: picker.$date.getDate()
	              });
	              picker.$build();
	            } else if (date.getMonth() !== viewDate.month) {
	              angular.extend(viewDate, {
	                month: picker.$date.getMonth(),
	                date: picker.$date.getDate()
	              });
	              picker.$updateSelected();
	            }
	          },
	          build: function build() {
	            var months = [];
	            var month;
	            for (var i = 0; i < 12; i++) {
	              month = new Date(viewDate.year, i, 1);
	              months.push({
	                date: month,
	                label: formatDate(month, this.format),
	                selected: picker.$isSelected(month),
	                disabled: this.isDisabled(month)
	              });
	            }
	            scope.title = formatDate(month, options.yearTitleFormat);
	            scope.showLabels = false;
	            scope.rows = split(months, this.split);
	            this.built = true;
	          },
	          isSelected: function isSelected(date) {
	            return picker.$date && date.getFullYear() === picker.$date.getFullYear() && date.getMonth() === picker.$date.getMonth();
	          },
	          isDisabled: function isDisabled(date) {
	            var lastDate = +new Date(date.getFullYear(), date.getMonth() + 1, 0);
	            return lastDate < options.minDate || date.getTime() > options.maxDate;
	          },
	          onKeyDown: function onKeyDown(evt) {
	            if (!picker.$date) {
	              return;
	            }
	            var actualMonth = picker.$date.getMonth();
	            var newDate = new Date(picker.$date);
	            if (evt.keyCode === 37) newDate.setMonth(actualMonth - 1);else if (evt.keyCode === 38) newDate.setMonth(actualMonth - 4);else if (evt.keyCode === 39) newDate.setMonth(actualMonth + 1);else if (evt.keyCode === 40) newDate.setMonth(actualMonth + 4);
	            if (!this.isDisabled(newDate)) picker.select(newDate, true);
	          }
	        }, {
	          name: 'year',
	          format: options.yearFormat,
	          split: 4,
	          steps: {
	            year: 12
	          },
	          update: function update(date, force) {
	            if (!this.built || force || parseInt(date.getFullYear() / 20, 10) !== parseInt(viewDate.year / 20, 10)) {
	              angular.extend(viewDate, {
	                year: picker.$date.getFullYear(),
	                month: picker.$date.getMonth(),
	                date: picker.$date.getDate()
	              });
	              picker.$build();
	            } else if (date.getFullYear() !== viewDate.year) {
	              angular.extend(viewDate, {
	                year: picker.$date.getFullYear(),
	                month: picker.$date.getMonth(),
	                date: picker.$date.getDate()
	              });
	              picker.$updateSelected();
	            }
	          },
	          build: function build() {
	            var firstYear = viewDate.year - viewDate.year % (this.split * 3);
	            var years = [];
	            var year;
	            for (var i = 0; i < 12; i++) {
	              year = new Date(firstYear + i, 0, 1);
	              years.push({
	                date: year,
	                label: formatDate(year, this.format),
	                selected: picker.$isSelected(year),
	                disabled: this.isDisabled(year)
	              });
	            }
	            scope.title = years[0].label + '-' + years[years.length - 1].label;
	            scope.showLabels = false;
	            scope.rows = split(years, this.split);
	            this.built = true;
	          },
	          isSelected: function isSelected(date) {
	            return picker.$date && date.getFullYear() === picker.$date.getFullYear();
	          },
	          isDisabled: function isDisabled(date) {
	            var lastDate = +new Date(date.getFullYear() + 1, 0, 0);
	            return lastDate < options.minDate || date.getTime() > options.maxDate;
	          },
	          onKeyDown: function onKeyDown(evt) {
	            if (!picker.$date) {
	              return;
	            }
	            var actualYear = picker.$date.getFullYear();
	            var newDate = new Date(picker.$date);
	            if (evt.keyCode === 37) newDate.setYear(actualYear - 1);else if (evt.keyCode === 38) newDate.setYear(actualYear - 4);else if (evt.keyCode === 39) newDate.setYear(actualYear + 1);else if (evt.keyCode === 40) newDate.setYear(actualYear + 4);
	            if (!this.isDisabled(newDate)) picker.select(newDate, true);
	          }
	        }];
	        return {
	          views: options.minView ? Array.prototype.slice.call(views, options.minView) : views,
	          viewDate: viewDate
	        };
	      };
	    }];
	  });
	  angular.module('mgcrea.ngStrap.collapse', []).provider('$collapse', function () {
	    var defaults = this.defaults = {
	      animation: 'am-collapse',
	      disallowToggle: false,
	      activeClass: 'in',
	      startCollapsed: false,
	      allowMultiple: false
	    };
	    var controller = this.controller = function ($scope, $element, $attrs) {
	      var self = this;
	      self.$options = angular.copy(defaults);
	      angular.forEach(['animation', 'disallowToggle', 'activeClass', 'startCollapsed', 'allowMultiple'], function (key) {
	        if (angular.isDefined($attrs[key])) self.$options[key] = $attrs[key];
	      });
	      var falseValueRegExp = /^(false|0|)$/i;
	      angular.forEach(['disallowToggle', 'startCollapsed', 'allowMultiple'], function (key) {
	        if (angular.isDefined($attrs[key]) && falseValueRegExp.test($attrs[key])) {
	          self.$options[key] = false;
	        }
	      });
	      self.$toggles = [];
	      self.$targets = [];
	      self.$viewChangeListeners = [];
	      self.$registerToggle = function (element) {
	        self.$toggles.push(element);
	      };
	      self.$registerTarget = function (element) {
	        self.$targets.push(element);
	      };
	      self.$unregisterToggle = function (element) {
	        var index = self.$toggles.indexOf(element);
	        self.$toggles.splice(index, 1);
	      };
	      self.$unregisterTarget = function (element) {
	        var index = self.$targets.indexOf(element);
	        self.$targets.splice(index, 1);
	        if (self.$options.allowMultiple) {
	          deactivateItem(element);
	        }
	        fixActiveItemIndexes(index);
	        self.$viewChangeListeners.forEach(function (fn) {
	          fn();
	        });
	      };
	      self.$targets.$active = !self.$options.startCollapsed ? [0] : [];
	      self.$setActive = $scope.$setActive = function (value) {
	        if (angular.isArray(value)) {
	          self.$targets.$active = value;
	        } else if (!self.$options.disallowToggle && isActive(value)) {
	          deactivateItem(value);
	        } else {
	          activateItem(value);
	        }
	        self.$viewChangeListeners.forEach(function (fn) {
	          fn();
	        });
	      };
	      self.$activeIndexes = function () {
	        if (self.$options.allowMultiple) {
	          return self.$targets.$active;
	        }
	        return self.$targets.$active.length === 1 ? self.$targets.$active[0] : -1;
	      };
	      function fixActiveItemIndexes(index) {
	        var activeIndexes = self.$targets.$active;
	        for (var i = 0; i < activeIndexes.length; i++) {
	          if (index < activeIndexes[i]) {
	            activeIndexes[i] = activeIndexes[i] - 1;
	          }
	          if (activeIndexes[i] === self.$targets.length) {
	            activeIndexes[i] = self.$targets.length - 1;
	          }
	        }
	      }
	      function isActive(value) {
	        var activeItems = self.$targets.$active;
	        return activeItems.indexOf(value) !== -1;
	      }
	      function deactivateItem(value) {
	        var index = self.$targets.$active.indexOf(value);
	        if (index !== -1) {
	          self.$targets.$active.splice(index, 1);
	        }
	      }
	      function activateItem(value) {
	        if (!self.$options.allowMultiple) {
	          self.$targets.$active.splice(0, 1);
	        }
	        if (self.$targets.$active.indexOf(value) === -1) {
	          self.$targets.$active.push(value);
	        }
	      }
	    };
	    this.$get = function () {
	      var $collapse = {};
	      $collapse.defaults = defaults;
	      $collapse.controller = controller;
	      return $collapse;
	    };
	  }).directive('bsCollapse', ['$window', '$animate', '$collapse', function ($window, $animate, $collapse) {
	    return {
	      require: ['?ngModel', 'bsCollapse'],
	      controller: ['$scope', '$element', '$attrs', $collapse.controller],
	      link: function postLink(scope, element, attrs, controllers) {
	        var ngModelCtrl = controllers[0];
	        var bsCollapseCtrl = controllers[1];
	        if (ngModelCtrl) {
	          bsCollapseCtrl.$viewChangeListeners.push(function () {
	            ngModelCtrl.$setViewValue(bsCollapseCtrl.$activeIndexes());
	          });
	          ngModelCtrl.$formatters.push(function (modelValue) {
	            if (angular.isArray(modelValue)) {
	              bsCollapseCtrl.$setActive(modelValue);
	            } else {
	              var activeIndexes = bsCollapseCtrl.$activeIndexes();
	              if (angular.isArray(activeIndexes)) {
	                if (activeIndexes.indexOf(modelValue * 1) === -1) {
	                  bsCollapseCtrl.$setActive(modelValue * 1);
	                }
	              } else if (activeIndexes !== modelValue * 1) {
	                bsCollapseCtrl.$setActive(modelValue * 1);
	              }
	            }
	            return modelValue;
	          });
	        }
	      }
	    };
	  }]).directive('bsCollapseToggle', function () {
	    return {
	      require: ['^?ngModel', '^bsCollapse'],
	      link: function postLink(scope, element, attrs, controllers) {
	        var bsCollapseCtrl = controllers[1];
	        element.attr('data-toggle', 'collapse');
	        bsCollapseCtrl.$registerToggle(element);
	        scope.$on('$destroy', function () {
	          bsCollapseCtrl.$unregisterToggle(element);
	        });
	        element.on('click', function () {
	          if (!attrs.disabled) {
	            var index = attrs.bsCollapseToggle && attrs.bsCollapseToggle !== 'bs-collapse-toggle' ? attrs.bsCollapseToggle : bsCollapseCtrl.$toggles.indexOf(element);
	            bsCollapseCtrl.$setActive(index * 1);
	            scope.$apply();
	          }
	        });
	      }
	    };
	  }).directive('bsCollapseTarget', ['$animate', function ($animate) {
	    return {
	      require: ['^?ngModel', '^bsCollapse'],
	      link: function postLink(scope, element, attrs, controllers) {
	        var bsCollapseCtrl = controllers[1];
	        element.addClass('collapse');
	        if (bsCollapseCtrl.$options.animation) {
	          element.addClass(bsCollapseCtrl.$options.animation);
	        }
	        bsCollapseCtrl.$registerTarget(element);
	        scope.$on('$destroy', function () {
	          bsCollapseCtrl.$unregisterTarget(element);
	        });
	        function render() {
	          var index = bsCollapseCtrl.$targets.indexOf(element);
	          var active = bsCollapseCtrl.$activeIndexes();
	          var action = 'removeClass';
	          if (angular.isArray(active)) {
	            if (active.indexOf(index) !== -1) {
	              action = 'addClass';
	            }
	          } else if (index === active) {
	            action = 'addClass';
	          }
	          $animate[action](element, bsCollapseCtrl.$options.activeClass);
	        }
	        bsCollapseCtrl.$viewChangeListeners.push(function () {
	          render();
	        });
	        render();
	      }
	    };
	  }]);
	  angular.module('mgcrea.ngStrap.aside', ['mgcrea.ngStrap.modal']).provider('$aside', function () {
	    var defaults = this.defaults = {
	      animation: 'am-fade-and-slide-right',
	      prefixClass: 'aside',
	      prefixEvent: 'aside',
	      placement: 'right',
	      templateUrl: 'aside/aside.tpl.html',
	      contentTemplate: false,
	      container: false,
	      element: null,
	      backdrop: true,
	      keyboard: true,
	      html: false,
	      show: true
	    };
	    this.$get = ['$modal', function ($modal) {
	      function AsideFactory(config) {
	        var $aside = {};
	        var options = angular.extend({}, defaults, config);
	        $aside = $modal(options);
	        return $aside;
	      }
	      return AsideFactory;
	    }];
	  }).directive('bsAside', ['$window', '$sce', '$aside', function ($window, $sce, $aside) {
	    return {
	      restrict: 'EAC',
	      scope: true,
	      link: function postLink(scope, element, attr, transclusion) {
	        var options = {
	          scope: scope,
	          element: element,
	          show: false
	        };
	        angular.forEach(['template', 'templateUrl', 'controller', 'controllerAs', 'contentTemplate', 'placement', 'backdrop', 'keyboard', 'html', 'container', 'animation'], function (key) {
	          if (angular.isDefined(attr[key])) options[key] = attr[key];
	        });
	        var falseValueRegExp = /^(false|0|)$/i;
	        angular.forEach(['backdrop', 'keyboard', 'html', 'container'], function (key) {
	          if (angular.isDefined(attr[key]) && falseValueRegExp.test(attr[key])) options[key] = false;
	        });
	        angular.forEach(['onBeforeShow', 'onShow', 'onBeforeHide', 'onHide'], function (key) {
	          var bsKey = 'bs' + key.charAt(0).toUpperCase() + key.slice(1);
	          if (angular.isDefined(attr[bsKey])) {
	            options[key] = scope.$eval(attr[bsKey]);
	          }
	        });
	        angular.forEach(['title', 'content'], function (key) {
	          if (attr[key]) {
	            attr.$observe(key, function (newValue, oldValue) {
	              scope[key] = $sce.trustAsHtml(newValue);
	            });
	          }
	        });
	        if (attr.bsAside) {
	          scope.$watch(attr.bsAside, function (newValue, oldValue) {
	            if (angular.isObject(newValue)) {
	              angular.extend(scope, newValue);
	            } else {
	              scope.content = newValue;
	            }
	          }, true);
	        }
	        var aside = $aside(options);
	        element.on(attr.trigger || 'click', aside.toggle);
	        scope.$on('$destroy', function () {
	          if (aside) aside.destroy();
	          options = null;
	          aside = null;
	        });
	      }
	    };
	  }]);
	  angular.module('mgcrea.ngStrap.alert', ['mgcrea.ngStrap.modal']).provider('$alert', function () {
	    var defaults = this.defaults = {
	      animation: 'am-fade',
	      prefixClass: 'alert',
	      prefixEvent: 'alert',
	      placement: null,
	      templateUrl: 'alert/alert.tpl.html',
	      container: false,
	      element: null,
	      backdrop: false,
	      keyboard: true,
	      show: true,
	      duration: false,
	      type: false,
	      dismissable: true
	    };
	    this.$get = ['$modal', '$timeout', function ($modal, $timeout) {
	      function AlertFactory(config) {
	        var $alert = {};
	        var options = angular.extend({}, defaults, config);
	        $alert = $modal(options);
	        $alert.$scope.dismissable = !!options.dismissable;
	        if (options.type) {
	          $alert.$scope.type = options.type;
	        }
	        var show = $alert.show;
	        if (options.duration) {
	          $alert.show = function () {
	            show();
	            $timeout(function () {
	              $alert.hide();
	            }, options.duration * 1e3);
	          };
	        }
	        return $alert;
	      }
	      return AlertFactory;
	    }];
	  }).directive('bsAlert', ['$window', '$sce', '$alert', function ($window, $sce, $alert) {
	    return {
	      restrict: 'EAC',
	      scope: true,
	      link: function postLink(scope, element, attr, transclusion) {
	        var options = {
	          scope: scope,
	          element: element,
	          show: false
	        };
	        angular.forEach(['template', 'templateUrl', 'controller', 'controllerAs', 'placement', 'keyboard', 'html', 'container', 'animation', 'duration', 'dismissable'], function (key) {
	          if (angular.isDefined(attr[key])) options[key] = attr[key];
	        });
	        var falseValueRegExp = /^(false|0|)$/i;
	        angular.forEach(['keyboard', 'html', 'container', 'dismissable'], function (key) {
	          if (angular.isDefined(attr[key]) && falseValueRegExp.test(attr[key])) options[key] = false;
	        });
	        angular.forEach(['onBeforeShow', 'onShow', 'onBeforeHide', 'onHide'], function (key) {
	          var bsKey = 'bs' + key.charAt(0).toUpperCase() + key.slice(1);
	          if (angular.isDefined(attr[bsKey])) {
	            options[key] = scope.$eval(attr[bsKey]);
	          }
	        });
	        if (!scope.hasOwnProperty('title')) {
	          scope.title = '';
	        }
	        angular.forEach(['title', 'content', 'type'], function (key) {
	          if (attr[key]) {
	            attr.$observe(key, function (newValue, oldValue) {
	              scope[key] = $sce.trustAsHtml(newValue);
	            });
	          }
	        });
	        if (attr.bsAlert) {
	          scope.$watch(attr.bsAlert, function (newValue, oldValue) {
	            if (angular.isObject(newValue)) {
	              angular.extend(scope, newValue);
	            } else {
	              scope.content = newValue;
	            }
	          }, true);
	        }
	        var alert = $alert(options);
	        element.on(attr.trigger || 'click', alert.toggle);
	        scope.$on('$destroy', function () {
	          if (alert) alert.destroy();
	          options = null;
	          alert = null;
	        });
	      }
	    };
	  }]);
	  angular.module('mgcrea.ngStrap.affix', ['mgcrea.ngStrap.helpers.dimensions', 'mgcrea.ngStrap.helpers.debounce']).provider('$affix', function () {
	    var defaults = this.defaults = {
	      offsetTop: 'auto',
	      inlineStyles: true,
	      setWidth: true
	    };
	    this.$get = ['$window', 'debounce', 'dimensions', function ($window, debounce, dimensions) {
	      var bodyEl = angular.element($window.document.body);
	      var windowEl = angular.element($window);
	      function AffixFactory(element, config) {
	        var $affix = {};
	        var options = angular.extend({}, defaults, config);
	        var targetEl = options.target;
	        var reset = 'affix affix-top affix-bottom';
	        var setWidth = false;
	        var initialAffixTop = 0;
	        var initialOffsetTop = 0;
	        var offsetTop = 0;
	        var offsetBottom = 0;
	        var affixed = null;
	        var unpin = null;
	        var parent = element.parent();
	        if (options.offsetParent) {
	          if (options.offsetParent.match(/^\d+$/)) {
	            for (var i = 0; i < options.offsetParent * 1 - 1; i++) {
	              parent = parent.parent();
	            }
	          } else {
	            parent = angular.element(options.offsetParent);
	          }
	        }
	        $affix.init = function () {
	          this.$parseOffsets();
	          initialOffsetTop = dimensions.offset(element[0]).top + initialAffixTop;
	          setWidth = options.setWidth && !element[0].style.width;
	          targetEl.on('scroll', this.checkPosition);
	          targetEl.on('click', this.checkPositionWithEventLoop);
	          windowEl.on('resize', this.$debouncedOnResize);
	          this.checkPosition();
	          this.checkPositionWithEventLoop();
	        };
	        $affix.destroy = function () {
	          targetEl.off('scroll', this.checkPosition);
	          targetEl.off('click', this.checkPositionWithEventLoop);
	          windowEl.off('resize', this.$debouncedOnResize);
	        };
	        $affix.checkPositionWithEventLoop = function () {
	          setTimeout($affix.checkPosition, 1);
	        };
	        $affix.checkPosition = function () {
	          var scrollTop = getScrollTop();
	          var position = dimensions.offset(element[0]);
	          var elementHeight = dimensions.height(element[0]);
	          var affix = getRequiredAffixClass(unpin, position, elementHeight);
	          if (affixed === affix) return;
	          affixed = affix;
	          if (affix === 'top') {
	            unpin = null;
	            if (setWidth) {
	              element.css('width', '');
	            }
	            if (options.inlineStyles) {
	              element.css('position', options.offsetParent ? '' : 'relative');
	              element.css('top', '');
	            }
	          } else if (affix === 'bottom') {
	            if (options.offsetUnpin) {
	              unpin = -(options.offsetUnpin * 1);
	            } else {
	              unpin = position.top - scrollTop;
	            }
	            if (setWidth) {
	              element.css('width', '');
	            }
	            if (options.inlineStyles) {
	              element.css('position', options.offsetParent ? '' : 'relative');
	              element.css('top', options.offsetParent ? '' : bodyEl[0].offsetHeight - offsetBottom - elementHeight - initialOffsetTop + 'px');
	            }
	          } else {
	            unpin = null;
	            if (setWidth) {
	              element.css('width', element[0].offsetWidth + 'px');
	            }
	            if (options.inlineStyles) {
	              element.css('position', 'fixed');
	              element.css('top', initialAffixTop + 'px');
	            }
	          }
	          element.removeClass(reset).addClass('affix' + (affix !== 'middle' ? '-' + affix : ''));
	        };
	        $affix.$onResize = function () {
	          $affix.$parseOffsets();
	          $affix.checkPosition();
	        };
	        $affix.$debouncedOnResize = debounce($affix.$onResize, 50);
	        $affix.$parseOffsets = function () {
	          var initialPosition = element[0].style.position;
	          var initialTop = element[0].style.top;
	          if (options.inlineStyles) {
	            element.css('position', options.offsetParent ? '' : 'relative');
	            element.css('top', '');
	          }
	          if (options.offsetTop) {
	            if (options.offsetTop === 'auto') {
	              options.offsetTop = '+0';
	            }
	            if (options.offsetTop.match(/^[-+]\d+$/)) {
	              initialAffixTop = -options.offsetTop * 1;
	              if (options.offsetParent) {
	                offsetTop = dimensions.offset(parent[0]).top + options.offsetTop * 1;
	              } else {
	                offsetTop = dimensions.offset(element[0]).top - dimensions.css(element[0], 'marginTop', true) + options.offsetTop * 1;
	              }
	            } else {
	              offsetTop = options.offsetTop * 1;
	            }
	          }
	          if (options.offsetBottom) {
	            if (options.offsetParent && options.offsetBottom.match(/^[-+]\d+$/)) {
	              offsetBottom = getScrollHeight() - (dimensions.offset(parent[0]).top + dimensions.height(parent[0])) + options.offsetBottom * 1 + 1;
	            } else {
	              offsetBottom = options.offsetBottom * 1;
	            }
	          }
	          if (options.inlineStyles) {
	            element.css('position', initialPosition);
	            element.css('top', initialTop);
	          }
	        };
	        function getRequiredAffixClass(_unpin, position, elementHeight) {
	          var scrollTop = getScrollTop();
	          var scrollHeight = getScrollHeight();
	          if (scrollTop <= offsetTop) {
	            return 'top';
	          } else if (_unpin !== null) {
	            return scrollTop + _unpin <= position.top ? 'middle' : 'bottom';
	          } else if (offsetBottom !== null && position.top + elementHeight + initialAffixTop >= scrollHeight - offsetBottom) {
	            return 'bottom';
	          }
	          return 'middle';
	        }
	        function getScrollTop() {
	          return targetEl[0] === $window ? $window.pageYOffset : targetEl[0].scrollTop;
	        }
	        function getScrollHeight() {
	          return targetEl[0] === $window ? $window.document.body.scrollHeight : targetEl[0].scrollHeight;
	        }
	        $affix.init();
	        return $affix;
	      }
	      return AffixFactory;
	    }];
	  }).directive('bsAffix', ['$affix', '$window', '$timeout', function ($affix, $window, $timeout) {
	    return {
	      restrict: 'EAC',
	      require: '^?bsAffixTarget',
	      link: function postLink(scope, element, attr, affixTarget) {
	        var options = {
	          scope: scope,
	          target: affixTarget ? affixTarget.$element : angular.element($window)
	        };
	        angular.forEach(['offsetTop', 'offsetBottom', 'offsetParent', 'offsetUnpin', 'inlineStyles', 'setWidth'], function (key) {
	          if (angular.isDefined(attr[key])) {
	            var option = attr[key];
	            if (/true/i.test(option)) option = true;
	            if (/false/i.test(option)) option = false;
	            options[key] = option;
	          }
	        });
	        var affix;
	        $timeout(function () {
	          affix = $affix(element, options);
	        });
	        scope.$on('$destroy', function () {
	          if (affix) affix.destroy();
	          options = null;
	          affix = null;
	        });
	      }
	    };
	  }]).directive('bsAffixTarget', function () {
	    return {
	      controller: ['$element', function ($element) {
	        this.$element = $element;
	      }]
	    };
	  });
	  angular.module('mgcrea.ngStrap', ['mgcrea.ngStrap.modal', 'mgcrea.ngStrap.aside', 'mgcrea.ngStrap.alert', 'mgcrea.ngStrap.button', 'mgcrea.ngStrap.select', 'mgcrea.ngStrap.datepicker', 'mgcrea.ngStrap.timepicker', 'mgcrea.ngStrap.navbar', 'mgcrea.ngStrap.tooltip', 'mgcrea.ngStrap.popover', 'mgcrea.ngStrap.dropdown', 'mgcrea.ngStrap.typeahead', 'mgcrea.ngStrap.scrollspy', 'mgcrea.ngStrap.affix', 'mgcrea.ngStrap.tab', 'mgcrea.ngStrap.collapse']);
	})(window, document);

/***/ }),
/* 920 */
/***/ (function(module, exports) {

	'use strict';
	
	/**
	 * angular-strap
	 * @version v2.3.12 - 2017-01-26
	 * @link http://mgcrea.github.io/angular-strap
	 * @author Olivier Louvignes <olivier@mg-crea.com> (https://github.com/mgcrea)
	 * @license MIT License, http://www.opensource.org/licenses/MIT
	 */
	!function (t, e, n) {
	  'use strict';
	  angular.module('mgcrea.ngStrap.alert').run(['$templateCache', function (t) {
	    t.put('alert/alert.tpl.html', '<div class="alert" ng-class="[type ? \'alert-\' + type : null]"><button type="button" class="close" ng-if="dismissable" ng-click="$hide()">&times;</button> <span ng-if="title"><strong ng-bind="title"></strong>&nbsp;<span ng-bind-html="content"></span> </span><span ng-if="!title" ng-bind-html="content"></span></div>');
	  }]), angular.module('mgcrea.ngStrap.aside').run(['$templateCache', function (t) {
	    t.put('aside/aside.tpl.html', '<div class="aside" tabindex="-1" role="dialog"><div class="aside-dialog"><div class="aside-content"><div class="aside-header" ng-show="title"><button type="button" class="close" ng-click="$hide()">&times;</button><h4 class="aside-title" ng-bind="title"></h4></div><div class="aside-body" ng-bind="content"></div><div class="aside-footer"><button type="button" class="btn btn-default" ng-click="$hide()">Close</button></div></div></div></div>');
	  }]), angular.module('mgcrea.ngStrap.datepicker').run(['$templateCache', function (t) {
	    t.put('datepicker/datepicker.tpl.html', '<div class="dropdown-menu datepicker" ng-class="\'datepicker-mode-\' + $mode" style="max-width: 320px"><table style="table-layout: fixed; height: 100%; width: 100%"><thead><tr class="text-center"><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$selectPane(-1)"><i class="{{$iconLeft}}"></i></button></th><th colspan="{{ rows[0].length - 2 }}"><button tabindex="-1" type="button" class="btn btn-default btn-block text-strong" ng-click="$toggleMode()"><strong style="text-transform: capitalize" ng-bind="title"></strong></button></th><th><button tabindex="-1" type="button" class="btn btn-default pull-right" ng-click="$selectPane(+1)"><i class="{{$iconRight}}"></i></button></th></tr><tr ng-if="showLabels" ng-bind-html="labels"></tr></thead><tbody><tr ng-repeat="(i, row) in rows" height="{{ 100 / rows.length }}%"><td class="text-center" ng-repeat="(j, el) in row"><button tabindex="-1" type="button" class="btn btn-default" style="width: 100%" ng-class="{\'btn-primary\': el.selected, \'btn-info btn-today\': el.isToday && !el.selected}" ng-click="$select(el.date, el.disabled)" ng-disabled="el.disabled"><span ng-class="{\'text-muted\': el.muted}" ng-bind="el.label"></span></button></td></tr></tbody><tfoot><tr><td colspan="{{ rows[0].length }}"><div class="btn-group btn-group-justified" role="group"><div class="btn-group" role="group" ng-if="$hasToday"><button type="button" class="btn btn-default today" ng-click="$setToday()" ng-disabled="isTodayDisabled"><strong style="text-transform: capitalize">Today</strong></button></div><div class="btn-group" role="group" ng-if="$hasClear"><button type="button" class="btn btn-default clear" ng-click="$clear()"><strong style="text-transform: capitalize">Clear</strong></button></div></div></td></tr></tfoot></table></div>');
	  }]), angular.module('mgcrea.ngStrap.dropdown').run(['$templateCache', function (t) {
	    t.put('dropdown/dropdown.tpl.html', '<ul tabindex="-1" class="dropdown-menu" role="menu" ng-show="content && content.length"><li role="presentation" ng-class="{divider: item.divider, active: item.active}" ng-repeat="item in content"><a role="menuitem" tabindex="-1" ng-href="{{item.href}}" ng-if="!item.divider && item.href" target="{{item.target || \'\'}}" ng-bind="item.text"></a> <a role="menuitem" tabindex="-1" href="javascript:void(0)" ng-if="!item.divider && item.click" ng-click="$eval(item.click);$hide()" ng-bind="item.text"></a></li></ul>');
	  }]), angular.module('mgcrea.ngStrap.modal').run(['$templateCache', function (t) {
	    t.put('modal/modal.tpl.html', '<div class="modal" tabindex="-1" role="dialog" aria-hidden="true"><div class="modal-dialog"><div class="modal-content"><div class="modal-header" ng-show="title"><button type="button" class="close" aria-label="Close" ng-click="$hide()"><span aria-hidden="true">&times;</span></button><h4 class="modal-title" ng-bind="title"></h4></div><div class="modal-body" ng-bind="content"></div><div class="modal-footer"><button type="button" class="btn btn-default" ng-click="$hide()">Close</button></div></div></div></div>');
	  }]), angular.module('mgcrea.ngStrap.popover').run(['$templateCache', function (t) {
	    t.put('popover/popover.tpl.html', '<div class="popover" tabindex="-1"><div class="arrow"></div><h3 class="popover-title" ng-bind="title" ng-show="title"></h3><div class="popover-content" ng-bind="content"></div></div>');
	  }]), angular.module('mgcrea.ngStrap.select').run(['$templateCache', function (t) {
	    t.put('select/select.tpl.html', '<ul tabindex="-1" class="select dropdown-menu" ng-show="$isVisible()" role="select"><li ng-if="$showAllNoneButtons"><div class="btn-group" style="margin-bottom: 5px; margin-left: 5px"><button type="button" class="btn btn-default btn-xs" ng-click="$selectAll()">{{$allText}}</button> <button type="button" class="btn btn-default btn-xs" ng-click="$selectNone()">{{$noneText}}</button></div></li><li role="presentation" ng-repeat="match in $matches" ng-class="{active: $isActive($index)}"><a style="cursor: default" role="menuitem" tabindex="-1" ng-click="$select($index, $event)"><i class="{{$iconCheckmark}} pull-right" ng-if="$isMultiple && $isActive($index)"></i> <span ng-bind="match.label"></span></a></li></ul>');
	  }]), angular.module('mgcrea.ngStrap.tab').run(['$templateCache', function (t) {
	    t.put('tab/tab.tpl.html', '<ul class="nav" ng-class="$navClass" role="tablist"><li role="presentation" ng-repeat="$pane in $panes track by $index" ng-class="[ $isActive($pane, $index) ? $activeClass : \'\', $pane.disabled ? \'disabled\' : \'\' ]"><a role="tab" data-toggle="tab" ng-click="!$pane.disabled && $setActive($pane.name || $index)" data-index="{{ $index }}" ng-bind-html="$pane.title" aria-controls="$pane.title" href=""></a></li></ul><div ng-transclude class="tab-content"></div>');
	  }]), angular.module('mgcrea.ngStrap.timepicker').run(['$templateCache', function (t) {
	    t.put('timepicker/timepicker.tpl.html', '<div class="dropdown-menu timepicker" style="min-width: 0px;width: auto"><table height="100%"><thead><tr class="text-center"><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(-1, 0)"><i class="{{ $iconUp }}"></i></button></th><th>&nbsp;</th><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(-1, 1)"><i class="{{ $iconUp }}"></i></button></th><th ng-if="showSeconds">&nbsp;</th><th ng-if="showSeconds"><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(-1, 2)"><i class="{{ $iconUp }}"></i></button></th></tr></thead><tbody><tr ng-repeat="(i, row) in rows"><td class="text-center"><button tabindex="-1" style="width: 100%" type="button" class="btn btn-default" ng-class="{\'btn-primary\': row[0].selected}" ng-click="$select(row[0].date, 0)" ng-disabled="row[0].disabled"><span ng-class="{\'text-muted\': row[0].muted}" ng-bind="row[0].label"></span></button></td><td><span ng-bind="i == midIndex ? timeSeparator : \' \'"></span></td><td class="text-center"><button tabindex="-1" ng-if="row[1].date" style="width: 100%" type="button" class="btn btn-default" ng-class="{\'btn-primary\': row[1].selected}" ng-click="$select(row[1].date, 1)" ng-disabled="row[1].disabled"><span ng-class="{\'text-muted\': row[1].muted}" ng-bind="row[1].label"></span></button></td><td ng-if="showSeconds"><span ng-bind="i == midIndex ? timeSeparator : \' \'"></span></td><td ng-if="showSeconds" class="text-center"><button tabindex="-1" ng-if="row[2].date" style="width: 100%" type="button" class="btn btn-default" ng-class="{\'btn-primary\': row[2].selected}" ng-click="$select(row[2].date, 2)" ng-disabled="row[2].disabled"><span ng-class="{\'text-muted\': row[2].muted}" ng-bind="row[2].label"></span></button></td><td ng-if="showAM">&nbsp;</td><td ng-if="showAM"><button tabindex="-1" ng-show="i == midIndex - !isAM * 1" style="width: 100%" type="button" ng-class="{\'btn-primary\': !!isAM}" class="btn btn-default" ng-click="$switchMeridian()" ng-disabled="el.disabled">AM</button> <button tabindex="-1" ng-show="i == midIndex + 1 - !isAM * 1" style="width: 100%" type="button" ng-class="{\'btn-primary\': !isAM}" class="btn btn-default" ng-click="$switchMeridian()" ng-disabled="el.disabled">PM</button></td></tr></tbody><tfoot><tr class="text-center"><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(1, 0)"><i class="{{ $iconDown }}"></i></button></th><th>&nbsp;</th><th><button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(1, 1)"><i class="{{ $iconDown }}"></i></button></th><th ng-if="showSeconds">&nbsp;</th><th ng-if="showSeconds"><button ng-if="showSeconds" tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(1, 2)"><i class="{{ $iconDown }}"></i></button></th></tr></tfoot></table></div>');
	  }]), angular.module('mgcrea.ngStrap.tooltip').run(['$templateCache', function (t) {
	    t.put('tooltip/tooltip.tpl.html', '<div class="tooltip in" ng-show="title"><div class="tooltip-arrow"></div><div class="tooltip-inner" ng-bind="title"></div></div>');
	  }]), angular.module('mgcrea.ngStrap.typeahead').run(['$templateCache', function (t) {
	    t.put('typeahead/typeahead.tpl.html', '<ul tabindex="-1" class="typeahead dropdown-menu" ng-show="$isVisible()" role="select"><li role="presentation" ng-repeat="match in $matches" ng-class="{active: $index == $activeIndex}"><a role="menuitem" tabindex="-1" ng-click="$select($index, $event)" ng-bind="match.label"></a></li></ul>');
	  }]);
	}(window, document);

/***/ }),
/* 921 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(919);
	__webpack_require__(920);
	module.exports = 'mgcrea.ngStrap';

/***/ }),
/* 922 */
/***/ (function(module, exports) {

	'use strict';
	
	/*!
	 * angular-ui-event
	 * https://github.com/angular-ui/ui-event
	 * Version: 1.0.0 - 2015-06-30T08:34:06.369Z
	 * License: MIT
	 */
	
	(function () {
	  'use strict';
	  /**
	   * General-purpose Event binding. Bind any event not natively supported by Angular
	   * Pass an object with keynames for events to ui-event
	   * Allows $event object and $params object to be passed
	   *
	   * @example <input ui-event="{ focus : 'counter++', blur : 'someCallback()' }">
	   * @example <input ui-event="{ myCustomEvent : 'myEventHandler($event, $params)'}">
	   *
	   * @param ui-event {string|object literal} The event to bind to as a string or a hash of events with their callbacks
	   */
	
	  angular.module('ui.event', []).directive('uiEvent', ['$parse', function ($parse) {
	    return function ($scope, elm, attrs) {
	      var events = $scope.$eval(attrs.uiEvent);
	      angular.forEach(events, function (uiEvent, eventName) {
	        var fn = $parse(uiEvent);
	        elm.bind(eventName, function (evt) {
	          var params = Array.prototype.slice.call(arguments);
	          //Take out first paramater (event object);
	          params = params.splice(1);
	          fn($scope, { $event: evt, $params: params });
	          if (!$scope.$$phase) {
	            $scope.$apply();
	          }
	        });
	      });
	    };
	  }]);
	})();

/***/ }),
/* 923 */
/***/ (function(module, exports) {

	'use strict';
	
	/*!
	 * angular-ui-indeterminate
	 * https://github.com/angular-ui/ui-indeterminate
	 * Version: 1.0.0 - 2015-06-30T09:28:55.152Z
	 * License: MIT
	 */
	
	(function () {
	  'use strict';
	  /**
	   * Provides an easy way to toggle a checkboxes indeterminate property
	   *
	   * @example <input type="checkbox" ui-indeterminate="isUnkown">
	   */
	
	  angular.module('ui.indeterminate', []).directive('uiIndeterminate', [function () {
	    return {
	      compile: function compile(tElm, tAttrs) {
	        if (!tAttrs.type || tAttrs.type.toLowerCase() !== 'checkbox') {
	          return angular.noop;
	        }
	
	        return function ($scope, elm, attrs) {
	          $scope.$watch(attrs.uiIndeterminate, function (newVal) {
	            elm[0].indeterminate = !!newVal;
	          });
	        };
	      }
	    };
	  }]);
	})();

/***/ }),
/* 924 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	//https://github.com/angular/angular.js/pull/10732
	
	var angular = __webpack_require__(29);
	var mask = __webpack_require__(925);
	
	module.exports = 'ui.mask';

/***/ }),
/* 925 */
/***/ (function(module, exports) {

	'use strict';
	
	/*!
	 * angular-ui-mask
	 * https://github.com/angular-ui/ui-mask
	 * Version: 1.8.7 - 2016-07-26T15:59:07.992Z
	 * License: MIT
	 */
	
	(function () {
	  'use strict';
	  /*
	  Attaches input mask onto input element
	  */
	
	  angular.module('ui.mask', []).value('uiMaskConfig', {
	    maskDefinitions: {
	      9: /\d/,
	      A: /[a-zA-Z]/,
	      '*': /[a-zA-Z0-9]/
	    },
	    clearOnBlur: true,
	    clearOnBlurPlaceholder: false,
	    escChar: '\\',
	    eventsToHandle: ['input', 'keyup', 'click', 'focus'],
	    addDefaultPlaceholder: true,
	    allowInvalidValue: false
	  }).provider('uiMask.Config', function () {
	    var options = {};
	
	    this.maskDefinitions = function (maskDefinitions) {
	      return options.maskDefinitions = maskDefinitions;
	    };
	    this.clearOnBlur = function (clearOnBlur) {
	      return options.clearOnBlur = clearOnBlur;
	    };
	    this.clearOnBlurPlaceholder = function (clearOnBlurPlaceholder) {
	      return options.clearOnBlurPlaceholder = clearOnBlurPlaceholder;
	    };
	    this.eventsToHandle = function (eventsToHandle) {
	      return options.eventsToHandle = eventsToHandle;
	    };
	    this.addDefaultPlaceholder = function (addDefaultPlaceholder) {
	      return options.addDefaultPlaceholder = addDefaultPlaceholder;
	    };
	    this.allowInvalidValue = function (allowInvalidValue) {
	      return options.allowInvalidValue = allowInvalidValue;
	    };
	    this.$get = ['uiMaskConfig', function (uiMaskConfig) {
	      var tempOptions = uiMaskConfig;
	      for (var prop in options) {
	        if (angular.isObject(options[prop]) && !angular.isArray(options[prop])) {
	          angular.extend(tempOptions[prop], options[prop]);
	        } else {
	          tempOptions[prop] = options[prop];
	        }
	      }
	
	      return tempOptions;
	    }];
	  }).directive('uiMask', ['uiMask.Config', function (maskConfig) {
	    function isFocused(elem) {
	      return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
	    }
	
	    return {
	      priority: 100,
	      require: 'ngModel',
	      restrict: 'A',
	      compile: function uiMaskCompilingFunction() {
	        var options = angular.copy(maskConfig);
	
	        return function uiMaskLinkingFunction(scope, iElement, iAttrs, controller) {
	          var maskProcessed = false,
	              eventsBound = false,
	              maskCaretMap,
	              maskPatterns,
	              maskPlaceholder,
	              maskComponents,
	
	          // Minimum required length of the value to be considered valid
	          minRequiredLength,
	              value,
	              valueMasked,
	              isValid,
	
	          // Vars for initializing/uninitializing
	          originalPlaceholder = iAttrs.placeholder,
	              originalMaxlength = iAttrs.maxlength,
	
	          // Vars used exclusively in eventHandler()
	          oldValue,
	              oldValueUnmasked,
	              oldCaretPosition,
	              oldSelectionLength,
	
	          // Used for communicating if a backspace operation should be allowed between
	          // keydownHandler and eventHandler
	          preventBackspace;
	
	          var originalIsEmpty = controller.$isEmpty;
	          controller.$isEmpty = function (value) {
	            if (maskProcessed) {
	              return originalIsEmpty(unmaskValue(value || ''));
	            } else {
	              return originalIsEmpty(value);
	            }
	          };
	
	          function initialize(maskAttr) {
	            if (!angular.isDefined(maskAttr)) {
	              return uninitialize();
	            }
	            processRawMask(maskAttr);
	            if (!maskProcessed) {
	              return uninitialize();
	            }
	            initializeElement();
	            bindEventListeners();
	            return true;
	          }
	
	          function initPlaceholder(placeholderAttr) {
	            if (!placeholderAttr) {
	              return;
	            }
	
	            maskPlaceholder = placeholderAttr;
	
	            // If the mask is processed, then we need to update the value
	            // but don't set the value if there is nothing entered into the element
	            // and there is a placeholder attribute on the element because that
	            // will only set the value as the blank maskPlaceholder
	            // and override the placeholder on the element
	            if (maskProcessed && !(iElement.val().length === 0 && angular.isDefined(iAttrs.placeholder))) {
	              iElement.val(maskValue(unmaskValue(iElement.val())));
	            }
	          }
	
	          function initPlaceholderChar() {
	            return initialize(iAttrs.uiMask);
	          }
	
	          var modelViewValue = false;
	          iAttrs.$observe('modelViewValue', function (val) {
	            if (val === 'true') {
	              modelViewValue = true;
	            }
	          });
	
	          iAttrs.$observe('allowInvalidValue', function (val) {
	            linkOptions.allowInvalidValue = val === '' ? true : !!val;
	            formatter(controller.$modelValue);
	          });
	
	          function formatter(fromModelValue) {
	            if (!maskProcessed) {
	              return fromModelValue;
	            }
	            value = unmaskValue(fromModelValue || '');
	            isValid = validateValue(value);
	            controller.$setValidity('mask', isValid);
	
	            if (!value.length) return undefined;
	            if (isValid || linkOptions.allowInvalidValue) {
	              return maskValue(value);
	            } else {
	              return undefined;
	            }
	          }
	
	          function parser(fromViewValue) {
	            if (!maskProcessed) {
	              return fromViewValue;
	            }
	            value = unmaskValue(fromViewValue || '');
	            isValid = validateValue(value);
	            // We have to set viewValue manually as the reformatting of the input
	            // value performed by eventHandler() doesn't happen until after
	            // this parser is called, which causes what the user sees in the input
	            // to be out-of-sync with what the controller's $viewValue is set to.
	            controller.$viewValue = value.length ? maskValue(value) : '';
	            controller.$setValidity('mask', isValid);
	
	            if (isValid || linkOptions.allowInvalidValue) {
	              return modelViewValue ? controller.$viewValue : value;
	            }
	          }
	
	          var linkOptions = {};
	
	          if (iAttrs.uiOptions) {
	            linkOptions = scope.$eval('[' + iAttrs.uiOptions + ']');
	            if (angular.isObject(linkOptions[0])) {
	              // we can't use angular.copy nor angular.extend, they lack the power to do a deep merge
	              linkOptions = function (original, current) {
	                for (var i in original) {
	                  if (Object.prototype.hasOwnProperty.call(original, i)) {
	                    if (current[i] === undefined) {
	                      current[i] = angular.copy(original[i]);
	                    } else {
	                      if (angular.isObject(current[i]) && !angular.isArray(current[i])) {
	                        current[i] = angular.extend({}, original[i], current[i]);
	                      }
	                    }
	                  }
	                }
	                return current;
	              }(options, linkOptions[0]);
	            } else {
	              linkOptions = options; //gotta be a better way to do this..
	            }
	          } else {
	            linkOptions = options;
	          }
	
	          iAttrs.$observe('uiMask', initialize);
	          if (angular.isDefined(iAttrs.uiMaskPlaceholder)) {
	            iAttrs.$observe('uiMaskPlaceholder', initPlaceholder);
	          } else {
	            iAttrs.$observe('placeholder', initPlaceholder);
	          }
	          if (angular.isDefined(iAttrs.uiMaskPlaceholderChar)) {
	            iAttrs.$observe('uiMaskPlaceholderChar', initPlaceholderChar);
	          }
	
	          controller.$formatters.unshift(formatter);
	          controller.$parsers.unshift(parser);
	
	          function uninitialize() {
	            maskProcessed = false;
	            unbindEventListeners();
	
	            if (angular.isDefined(originalPlaceholder)) {
	              iElement.attr('placeholder', originalPlaceholder);
	            } else {
	              iElement.removeAttr('placeholder');
	            }
	
	            if (angular.isDefined(originalMaxlength)) {
	              iElement.attr('maxlength', originalMaxlength);
	            } else {
	              iElement.removeAttr('maxlength');
	            }
	
	            iElement.val(controller.$modelValue);
	            controller.$viewValue = controller.$modelValue;
	            return false;
	          }
	
	          function initializeElement() {
	            value = oldValueUnmasked = unmaskValue(controller.$modelValue || '');
	            valueMasked = oldValue = maskValue(value);
	            isValid = validateValue(value);
	            if (iAttrs.maxlength) {
	              // Double maxlength to allow pasting new val at end of mask
	              iElement.attr('maxlength', maskCaretMap[maskCaretMap.length - 1] * 2);
	            }
	            if (!originalPlaceholder && linkOptions.addDefaultPlaceholder) {
	              iElement.attr('placeholder', maskPlaceholder);
	            }
	            var viewValue = controller.$modelValue;
	            var idx = controller.$formatters.length;
	            while (idx--) {
	              viewValue = controller.$formatters[idx](viewValue);
	            }
	            controller.$viewValue = viewValue || '';
	            controller.$render();
	            // Not using $setViewValue so we don't clobber the model value and dirty the form
	            // without any kind of user interaction.
	          }
	
	          function bindEventListeners() {
	            if (eventsBound) {
	              return;
	            }
	            iElement.bind('blur', blurHandler);
	            iElement.bind('mousedown mouseup', mouseDownUpHandler);
	            iElement.bind('keydown', keydownHandler);
	            iElement.bind(linkOptions.eventsToHandle.join(' '), eventHandler);
	            eventsBound = true;
	          }
	
	          function unbindEventListeners() {
	            if (!eventsBound) {
	              return;
	            }
	            iElement.unbind('blur', blurHandler);
	            iElement.unbind('mousedown', mouseDownUpHandler);
	            iElement.unbind('mouseup', mouseDownUpHandler);
	            iElement.unbind('keydown', keydownHandler);
	            iElement.unbind('input', eventHandler);
	            iElement.unbind('keyup', eventHandler);
	            iElement.unbind('click', eventHandler);
	            iElement.unbind('focus', eventHandler);
	            eventsBound = false;
	          }
	
	          function validateValue(value) {
	            // Zero-length value validity is ngRequired's determination
	            return value.length ? value.length >= minRequiredLength : true;
	          }
	
	          function unmaskValue(value) {
	            var valueUnmasked = '',
	                input = iElement[0],
	                maskPatternsCopy = maskPatterns.slice(),
	                selectionStart = oldCaretPosition,
	                selectionEnd = selectionStart + getSelectionLength(input),
	                valueOffset,
	                valueDelta,
	                tempValue = '';
	            // Preprocess by stripping mask components from value
	            value = value.toString();
	            valueOffset = 0;
	            valueDelta = value.length - maskPlaceholder.length;
	            angular.forEach(maskComponents, function (component) {
	              var position = component.position;
	              //Only try and replace the component if the component position is not within the selected range
	              //If component was in selected range then it was removed with the user input so no need to try and remove that component
	              if (!(position >= selectionStart && position < selectionEnd)) {
	                if (position >= selectionStart) {
	                  position += valueDelta;
	                }
	                if (value.substring(position, position + component.value.length) === component.value) {
	                  tempValue += value.slice(valueOffset, position); // + value.slice(position + component.value.length);
	                  valueOffset = position + component.value.length;
	                }
	              }
	            });
	            value = tempValue + value.slice(valueOffset);
	            angular.forEach(value.split(''), function (chr) {
	              if (maskPatternsCopy.length && maskPatternsCopy[0].test(chr)) {
	                valueUnmasked += chr;
	                maskPatternsCopy.shift();
	              }
	            });
	
	            return valueUnmasked;
	          }
	
	          function maskValue(unmaskedValue) {
	            var valueMasked = '',
	                maskCaretMapCopy = maskCaretMap.slice();
	
	            angular.forEach(maskPlaceholder.split(''), function (chr, i) {
	              if (unmaskedValue.length && i === maskCaretMapCopy[0]) {
	                valueMasked += unmaskedValue.charAt(0) || '_';
	                unmaskedValue = unmaskedValue.substr(1);
	                maskCaretMapCopy.shift();
	              } else {
	                valueMasked += chr;
	              }
	            });
	            return valueMasked;
	          }
	
	          function getPlaceholderChar(i) {
	            var placeholder = angular.isDefined(iAttrs.uiMaskPlaceholder) ? iAttrs.uiMaskPlaceholder : iAttrs.placeholder,
	                defaultPlaceholderChar;
	
	            if (angular.isDefined(placeholder) && placeholder[i]) {
	              return placeholder[i];
	            } else {
	              defaultPlaceholderChar = angular.isDefined(iAttrs.uiMaskPlaceholderChar) && iAttrs.uiMaskPlaceholderChar ? iAttrs.uiMaskPlaceholderChar : '_';
	              return defaultPlaceholderChar.toLowerCase() === 'space' ? ' ' : defaultPlaceholderChar[0];
	            }
	          }
	
	          // Generate array of mask components that will be stripped from a masked value
	          // before processing to prevent mask components from being added to the unmasked value.
	          // E.g., a mask pattern of '+7 9999' won't have the 7 bleed into the unmasked value.
	          function getMaskComponents() {
	            var maskPlaceholderChars = maskPlaceholder.split(''),
	                maskPlaceholderCopy,
	                components;
	
	            //maskCaretMap can have bad values if the input has the ui-mask attribute implemented as an obversable property, e.g. the demo page
	            if (maskCaretMap && !isNaN(maskCaretMap[0])) {
	              //Instead of trying to manipulate the RegEx based on the placeholder characters
	              //we can simply replace the placeholder characters based on the already built
	              //maskCaretMap to underscores and leave the original working RegEx to get the proper
	              //mask components
	              angular.forEach(maskCaretMap, function (value) {
	                maskPlaceholderChars[value] = '_';
	              });
	            }
	            maskPlaceholderCopy = maskPlaceholderChars.join('');
	            components = maskPlaceholderCopy.replace(/[_]+/g, '_').split('_');
	            components = components.filter(function (s) {
	              return s !== '';
	            });
	
	            // need a string search offset in cases where the mask contains multiple identical components
	            // E.g., a mask of 99.99.99-999.99
	            var offset = 0;
	            return components.map(function (c) {
	              var componentPosition = maskPlaceholderCopy.indexOf(c, offset);
	              offset = componentPosition + 1;
	              return {
	                value: c,
	                position: componentPosition
	              };
	            });
	          }
	
	          function processRawMask(mask) {
	            var characterCount = 0;
	
	            maskCaretMap = [];
	            maskPatterns = [];
	            maskPlaceholder = '';
	
	            if (angular.isString(mask)) {
	              minRequiredLength = 0;
	
	              var isOptional = false,
	                  numberOfOptionalCharacters = 0,
	                  splitMask = mask.split('');
	
	              var inEscape = false;
	              angular.forEach(splitMask, function (chr, i) {
	                if (inEscape) {
	                  inEscape = false;
	                  maskPlaceholder += chr;
	                  characterCount++;
	                } else if (linkOptions.escChar === chr) {
	                  inEscape = true;
	                } else if (linkOptions.maskDefinitions[chr]) {
	                  maskCaretMap.push(characterCount);
	
	                  maskPlaceholder += getPlaceholderChar(i - numberOfOptionalCharacters);
	                  maskPatterns.push(linkOptions.maskDefinitions[chr]);
	
	                  characterCount++;
	                  if (!isOptional) {
	                    minRequiredLength++;
	                  }
	
	                  isOptional = false;
	                } else if (chr === '?') {
	                  isOptional = true;
	                  numberOfOptionalCharacters++;
	                } else {
	                  maskPlaceholder += chr;
	                  characterCount++;
	                }
	              });
	            }
	            // Caret position immediately following last position is valid.
	            maskCaretMap.push(maskCaretMap.slice().pop() + 1);
	
	            maskComponents = getMaskComponents();
	            maskProcessed = maskCaretMap.length > 1 ? true : false;
	          }
	
	          var prevValue = iElement.val();
	          function blurHandler() {
	            if (linkOptions.clearOnBlur || linkOptions.clearOnBlurPlaceholder && value.length === 0 && iAttrs.placeholder) {
	              oldCaretPosition = 0;
	              oldSelectionLength = 0;
	              if (!isValid || value.length === 0) {
	                valueMasked = '';
	                iElement.val('');
	                scope.$apply(function () {
	                  //only $setViewValue when not $pristine to avoid changing $pristine state.
	                  if (!controller.$pristine) {
	                    controller.$setViewValue('');
	                  }
	                });
	              }
	            }
	            //Check for different value and trigger change.
	            //Check for different value and trigger change.
	            if (value !== prevValue) {
	              // #157 Fix the bug from the trigger when backspacing exactly on the first letter (emptying the field)
	              // and then blurring out.
	              // Angular uses html element and calls setViewValue(element.value.trim()), setting it to the trimmed mask
	              // when it should be empty
	              var currentVal = iElement.val();
	              var isTemporarilyEmpty = value === '' && currentVal && angular.isDefined(iAttrs.uiMaskPlaceholderChar) && iAttrs.uiMaskPlaceholderChar === 'space';
	              if (isTemporarilyEmpty) {
	                iElement.val('');
	              }
	              triggerChangeEvent(iElement[0]);
	              if (isTemporarilyEmpty) {
	                iElement.val(currentVal);
	              }
	            }
	            prevValue = value;
	          }
	
	          function triggerChangeEvent(element) {
	            var change;
	            if (angular.isFunction(window.Event) && !element.fireEvent) {
	              // modern browsers and Edge
	              try {
	                change = new Event('change', {
	                  view: window,
	                  bubbles: true,
	                  cancelable: false
	                });
	              } catch (ex) {
	                //this is for certain mobile browsers that have the Event object
	                //but don't support the Event constructor #168
	                change = document.createEvent('HTMLEvents');
	                change.initEvent('change', false, true);
	              } finally {
	                element.dispatchEvent(change);
	              }
	            } else if ('createEvent' in document) {
	              // older browsers
	              change = document.createEvent('HTMLEvents');
	              change.initEvent('change', false, true);
	              element.dispatchEvent(change);
	            } else if (element.fireEvent) {
	              // IE <= 11
	              element.fireEvent('onchange');
	            }
	          }
	
	          function mouseDownUpHandler(e) {
	            if (e.type === 'mousedown') {
	              iElement.bind('mouseout', mouseoutHandler);
	            } else {
	              iElement.unbind('mouseout', mouseoutHandler);
	            }
	          }
	
	          iElement.bind('mousedown mouseup', mouseDownUpHandler);
	
	          function mouseoutHandler() {
	            /*jshint validthis: true */
	            oldSelectionLength = getSelectionLength(this);
	            iElement.unbind('mouseout', mouseoutHandler);
	          }
	
	          function keydownHandler(e) {
	            /*jshint validthis: true */
	            var isKeyBackspace = e.which === 8,
	                caretPos = getCaretPosition(this) - 1 || 0,
	                //value in keydown is pre change so bump caret position back to simulate post change
	            isCtrlZ = e.which === 90 && e.ctrlKey; //ctrl+z pressed
	
	            if (isKeyBackspace) {
	              while (caretPos >= 0) {
	                if (isValidCaretPosition(caretPos)) {
	                  //re-adjust the caret position.
	                  //Increment to account for the initial decrement to simulate post change caret position
	                  setCaretPosition(this, caretPos + 1);
	                  break;
	                }
	                caretPos--;
	              }
	              preventBackspace = caretPos === -1;
	            }
	
	            if (isCtrlZ) {
	              // prevent IE bug - value should be returned to initial state
	              iElement.val('');
	              e.preventDefault();
	            }
	          }
	
	          function eventHandler(e) {
	            /*jshint validthis: true */
	            e = e || {};
	            // Allows more efficient minification
	            var eventWhich = e.which,
	                eventType = e.type;
	
	            // Prevent shift and ctrl from mucking with old values
	            if (eventWhich === 16 || eventWhich === 91) {
	              return;
	            }
	
	            var val = iElement.val(),
	                valOld = oldValue,
	                valMasked,
	                valAltered = false,
	                valUnmasked = unmaskValue(val),
	                valUnmaskedOld = oldValueUnmasked,
	                caretPos = getCaretPosition(this) || 0,
	                caretPosOld = oldCaretPosition || 0,
	                caretPosDelta = caretPos - caretPosOld,
	                caretPosMin = maskCaretMap[0],
	                caretPosMax = maskCaretMap[valUnmasked.length] || maskCaretMap.slice().shift(),
	                selectionLenOld = oldSelectionLength || 0,
	                isSelected = getSelectionLength(this) > 0,
	                wasSelected = selectionLenOld > 0,
	
	            // Case: Typing a character to overwrite a selection
	            isAddition = val.length > valOld.length || selectionLenOld && val.length > valOld.length - selectionLenOld,
	
	            // Case: Delete and backspace behave identically on a selection
	            isDeletion = val.length < valOld.length || selectionLenOld && val.length === valOld.length - selectionLenOld,
	                isSelection = eventWhich >= 37 && eventWhich <= 40 && e.shiftKey,
	                // Arrow key codes
	            isKeyLeftArrow = eventWhich === 37,
	
	            // Necessary due to "input" event not providing a key code
	            isKeyBackspace = eventWhich === 8 || eventType !== 'keyup' && isDeletion && caretPosDelta === -1,
	                isKeyDelete = eventWhich === 46 || eventType !== 'keyup' && isDeletion && caretPosDelta === 0 && !wasSelected,
	
	            // Handles cases where caret is moved and placed in front of invalid maskCaretMap position. Logic below
	            // ensures that, on click or leftward caret placement, caret is moved leftward until directly right of
	            // non-mask character. Also applied to click since users are (arguably) more likely to backspace
	            // a character when clicking within a filled input.
	            caretBumpBack = (isKeyLeftArrow || isKeyBackspace || eventType === 'click') && caretPos > caretPosMin;
	
	            oldSelectionLength = getSelectionLength(this);
	
	            // These events don't require any action
	            if (isSelection || isSelected && (eventType === 'click' || eventType === 'keyup' || eventType === 'focus')) {
	              return;
	            }
	
	            if (isKeyBackspace && preventBackspace) {
	              iElement.val(maskPlaceholder);
	              // This shouldn't be needed but for some reason after aggressive backspacing the controller $viewValue is incorrect.
	              // This keeps the $viewValue updated and correct.
	              scope.$apply(function () {
	                controller.$setViewValue(''); // $setViewValue should be run in angular context, otherwise the changes will be invisible to angular and user code.
	              });
	              setCaretPosition(this, caretPosOld);
	              return;
	            }
	
	            // Value Handling
	            // ==============
	
	            // User attempted to delete but raw value was unaffected--correct this grievous offense
	            if (eventType === 'input' && isDeletion && !wasSelected && valUnmasked === valUnmaskedOld) {
	              while (isKeyBackspace && caretPos > caretPosMin && !isValidCaretPosition(caretPos)) {
	                caretPos--;
	              }
	              while (isKeyDelete && caretPos < caretPosMax && maskCaretMap.indexOf(caretPos) === -1) {
	                caretPos++;
	              }
	              var charIndex = maskCaretMap.indexOf(caretPos);
	              // Strip out non-mask character that user would have deleted if mask hadn't been in the way.
	              valUnmasked = valUnmasked.substring(0, charIndex) + valUnmasked.substring(charIndex + 1);
	
	              // If value has not changed, don't want to call $setViewValue, may be caused by IE raising input event due to placeholder
	              if (valUnmasked !== valUnmaskedOld) valAltered = true;
	            }
	
	            // Update values
	            valMasked = maskValue(valUnmasked);
	
	            oldValue = valMasked;
	            oldValueUnmasked = valUnmasked;
	
	            //additional check to fix the problem where the viewValue is out of sync with the value of the element.
	            //better fix for commit 2a83b5fb8312e71d220a497545f999fc82503bd9 (I think)
	            if (!valAltered && val.length > valMasked.length) valAltered = true;
	
	            iElement.val(valMasked);
	
	            //we need this check.  What could happen if you don't have it is that you'll set the model value without the user
	            //actually doing anything.  Meaning, things like pristine and touched will be set.
	            if (valAltered) {
	              scope.$apply(function () {
	                controller.$setViewValue(valMasked); // $setViewValue should be run in angular context, otherwise the changes will be invisible to angular and user code.
	              });
	            }
	
	            // Caret Repositioning
	            // ===================
	
	            // Ensure that typing always places caret ahead of typed character in cases where the first char of
	            // the input is a mask char and the caret is placed at the 0 position.
	            if (isAddition && caretPos <= caretPosMin) {
	              caretPos = caretPosMin + 1;
	            }
	
	            if (caretBumpBack) {
	              caretPos--;
	            }
	
	            // Make sure caret is within min and max position limits
	            caretPos = caretPos > caretPosMax ? caretPosMax : caretPos < caretPosMin ? caretPosMin : caretPos;
	
	            // Scoot the caret back or forth until it's in a non-mask position and within min/max position limits
	            while (!isValidCaretPosition(caretPos) && caretPos > caretPosMin && caretPos < caretPosMax) {
	              caretPos += caretBumpBack ? -1 : 1;
	            }
	
	            if (caretBumpBack && caretPos < caretPosMax || isAddition && !isValidCaretPosition(caretPosOld)) {
	              caretPos++;
	            }
	            oldCaretPosition = caretPos;
	            setCaretPosition(this, caretPos);
	          }
	
	          function isValidCaretPosition(pos) {
	            return maskCaretMap.indexOf(pos) > -1;
	          }
	
	          function getCaretPosition(input) {
	            if (!input) return 0;
	            if (input.selectionStart !== undefined) {
	              return input.selectionStart;
	            } else if (document.selection) {
	              if (isFocused(iElement[0])) {
	                // Curse you IE
	                input.focus();
	                var selection = document.selection.createRange();
	                selection.moveStart('character', input.value ? -input.value.length : 0);
	                return selection.text.length;
	              }
	            }
	            return 0;
	          }
	
	          function setCaretPosition(input, pos) {
	            if (!input) return 0;
	            if (input.offsetWidth === 0 || input.offsetHeight === 0) {
	              return; // Input's hidden
	            }
	            if (input.setSelectionRange) {
	              if (isFocused(iElement[0])) {
	                input.focus();
	                input.setSelectionRange(pos, pos);
	              }
	            } else if (input.createTextRange) {
	              // Curse you IE
	              var range = input.createTextRange();
	              range.collapse(true);
	              range.moveEnd('character', pos);
	              range.moveStart('character', pos);
	              range.select();
	            }
	          }
	
	          function getSelectionLength(input) {
	            if (!input) return 0;
	            if (input.selectionStart !== undefined) {
	              return input.selectionEnd - input.selectionStart;
	            }
	            if (window.getSelection) {
	              return window.getSelection().toString().length;
	            }
	            if (document.selection) {
	              return document.selection.createRange().text.length;
	            }
	            return 0;
	          }
	
	          // https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/indexOf
	          if (!Array.prototype.indexOf) {
	            Array.prototype.indexOf = function (searchElement /*, fromIndex */) {
	              if (this === null) {
	                throw new TypeError();
	              }
	              var t = Object(this);
	              var len = t.length >>> 0;
	              if (len === 0) {
	                return -1;
	              }
	              var n = 0;
	              if (arguments.length > 1) {
	                n = Number(arguments[1]);
	                if (n !== n) {
	                  // shortcut for verifying if it's NaN
	                  n = 0;
	                } else if (n !== 0 && n !== Infinity && n !== -Infinity) {
	                  n = (n > 0 || -1) * Math.floor(Math.abs(n));
	                }
	              }
	              if (n >= len) {
	                return -1;
	              }
	              var k = n >= 0 ? n : Math.max(len - Math.abs(n), 0);
	              for (; k < len; k++) {
	                if (k in t && t[k] === searchElement) {
	                  return k;
	                }
	              }
	              return -1;
	            };
	          }
	        };
	      }
	    };
	  }]);
	})();

/***/ }),
/* 926 */
/***/ (function(module, exports) {

	'use strict';
	
	var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	/*!
	 * angular-ui-scroll
	 * https://github.com/angular-ui/ui-scroll
	 * Version: 1.9.1 -- 2023-05-17T15:38:46.936Z
	 * License: MIT
	 */
	/******/(function () {
	  // webpackBootstrap
	  /******/'use strict';
	
	  var __webpack_exports__ = {}; // CONCATENATED MODULE: ./src/modules/jqLiteExtras.js
	
	  function _typeof(obj) {
	    '@babel/helpers - typeof';
	
	    return _typeof = 'function' == typeof Symbol && 'symbol' == _typeof2(Symbol.iterator) ? function (obj) {
	      return typeof obj === 'undefined' ? 'undefined' : _typeof2(obj);
	    } : function (obj) {
	      return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? 'symbol' : typeof obj === 'undefined' ? 'undefined' : _typeof2(obj);
	    }, _typeof(obj);
	  }
	  function _slicedToArray(arr, i) {
	    return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
	  }
	  function _nonIterableRest() {
	    throw new TypeError('Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
	  }
	  function _unsupportedIterableToArray(o, minLen) {
	    if (!o) return;
	    if (typeof o === 'string') return _arrayLikeToArray(o, minLen);
	    var n = Object.prototype.toString.call(o).slice(8, -1);
	    if (n === 'Object' && o.constructor) n = o.constructor.name;
	    if (n === 'Map' || n === 'Set') return Array.from(o);
	    if (n === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
	  }
	  function _arrayLikeToArray(arr, len) {
	    if (len == null || len > arr.length) len = arr.length;
	    for (var i = 0, arr2 = new Array(len); i < len; i++) {
	      arr2[i] = arr[i];
	    }return arr2;
	  }
	  function _iterableToArrayLimit(arr, i) {
	    var _i = null == arr ? null : 'undefined' != typeof Symbol && arr[Symbol.iterator] || arr['@@iterator'];
	    if (null != _i) {
	      var _s,
	          _e,
	          _x,
	          _r,
	          _arr = [],
	          _n = !0,
	          _d = !1;
	      try {
	        if (_x = (_i = _i.call(arr)).next, 0 === i) {
	          if (Object(_i) !== _i) return;
	          _n = !1;
	        } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {}
	      } catch (err) {
	        _d = !0, _e = err;
	      } finally {
	        try {
	          if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
	        } finally {
	          if (_d) throw _e;
	        }
	      }
	      return _arr;
	    }
	  }
	  function _arrayWithHoles(arr) {
	    if (Array.isArray(arr)) return arr;
	  }
	  function _classCallCheck(instance, Constructor) {
	    if (!(instance instanceof Constructor)) {
	      throw new TypeError('Cannot call a class as a function');
	    }
	  }
	  function _defineProperties(target, props) {
	    for (var i = 0; i < props.length; i++) {
	      var descriptor = props[i];
	      descriptor.enumerable = descriptor.enumerable || false;
	      descriptor.configurable = true;
	      if ('value' in descriptor) descriptor.writable = true;
	      Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
	    }
	  }
	  function _createClass(Constructor, protoProps, staticProps) {
	    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
	    if (staticProps) _defineProperties(Constructor, staticProps);
	    Object.defineProperty(Constructor, 'prototype', { writable: false });
	    return Constructor;
	  }
	  function _toPropertyKey(arg) {
	    var key = _toPrimitive(arg, 'string');
	    return _typeof(key) === 'symbol' ? key : String(key);
	  }
	  function _toPrimitive(input, hint) {
	    if (_typeof(input) !== 'object' || input === null) return input;
	    var prim = input[Symbol.toPrimitive];
	    if (prim !== undefined) {
	      var res = prim.call(input, hint || 'default');
	      if (_typeof(res) !== 'object') return res;
	      throw new TypeError('@@toPrimitive must return a primitive value.');
	    }
	    return (hint === 'string' ? String : Number)(input);
	  }
	  /*!
	  globals: angular, window
	  List of used element methods available in JQuery but not in JQuery Lite
	  element.before(elem)
	  element.height()
	  element.outerHeight(true)
	  element.height(value) = only for Top/Bottom padding elements
	  element.scrollTop()
	  element.scrollTop(value)
	  */
	  var JQLiteExtras = /*#__PURE__*/function () {
	    function JQLiteExtras() {
	      _classCallCheck(this, JQLiteExtras);
	    }
	    _createClass(JQLiteExtras, [{
	      key: 'registerFor',
	      value: function registerFor(element) {
	        var convertToPx, css, getStyle, isWindow;
	        // angular implementation blows up if elem is the window
	        css = angular.element.prototype.css;
	        element.prototype.css = function (name, value) {
	          var self = this;
	          var elem = self[0];
	          if (!(!elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style)) {
	            return css.call(self, name, value);
	          }
	        };
	
	        // as defined in angularjs v1.0.5
	        isWindow = function isWindow(obj) {
	          return obj && obj.document && obj.location && obj.alert && obj.setInterval;
	        };
	        function scrollTo(self, direction, value) {
	          var elem = self[0];
	          var _top$left$direction = _slicedToArray({
	            top: ['scrollTop', 'pageYOffset', 'scrollLeft'],
	            left: ['scrollLeft', 'pageXOffset', 'scrollTop']
	          }[direction], 3),
	              method = _top$left$direction[0],
	              prop = _top$left$direction[1],
	              preserve = _top$left$direction[2];
	          var isValueDefined = typeof value !== 'undefined';
	          if (isWindow(elem)) {
	            if (isValueDefined) {
	              return elem.scrollTo(self[preserve].call(self), value);
	            }
	            return prop in elem ? elem[prop] : elem.document.documentElement[method];
	          } else {
	            if (isValueDefined) {
	              elem[method] = value;
	            }
	            return elem[method];
	          }
	        }
	        if (window.getComputedStyle) {
	          getStyle = function getStyle(elem) {
	            return window.getComputedStyle(elem, null);
	          };
	          convertToPx = function convertToPx(elem, value) {
	            return parseFloat(value);
	          };
	        } else {
	          getStyle = function getStyle(elem) {
	            return elem.currentStyle;
	          };
	          convertToPx = function convertToPx(elem, value) {
	            var left, result, rs, rsLeft, style;
	            var core_pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source;
	            var rnumnonpx = new RegExp('^(' + core_pnum + ')(?!px)[a-z%]+$', 'i');
	            if (!rnumnonpx.test(value)) {
	              return parseFloat(value);
	            }
	
	            // ported from JQuery
	            style = elem.style;
	            left = style.left;
	            rs = elem.runtimeStyle;
	            rsLeft = rs && rs.left;
	            if (rs) {
	              rs.left = style.left;
	            }
	            // put in the new values to get a computed style out
	            style.left = value;
	            result = style.pixelLeft;
	            style.left = left;
	            if (rsLeft) {
	              rs.left = rsLeft;
	            }
	            return result;
	          };
	        }
	        function getMeasurements(elem, measure) {
	          var base, borderA, borderB, computedMarginA, computedMarginB, computedStyle, dirA, dirB, marginA, marginB, paddingA, paddingB;
	          if (isWindow(elem)) {
	            base = document.documentElement[{
	              height: 'clientHeight',
	              width: 'clientWidth'
	            }[measure]];
	            return {
	              base: base,
	              padding: 0,
	              border: 0,
	              margin: 0
	            };
	          }
	
	          // Start with offset property
	          var _width$height$measure = _slicedToArray({
	            width: [elem.offsetWidth, 'Left', 'Right'],
	            height: [elem.offsetHeight, 'Top', 'Bottom']
	          }[measure], 3);
	          base = _width$height$measure[0];
	          dirA = _width$height$measure[1];
	          dirB = _width$height$measure[2];
	          computedStyle = getStyle(elem);
	          paddingA = convertToPx(elem, computedStyle['padding' + dirA]) || 0;
	          paddingB = convertToPx(elem, computedStyle['padding' + dirB]) || 0;
	          borderA = convertToPx(elem, computedStyle['border' + dirA + 'Width']) || 0;
	          borderB = convertToPx(elem, computedStyle['border' + dirB + 'Width']) || 0;
	          computedMarginA = computedStyle['margin' + dirA];
	          computedMarginB = computedStyle['margin' + dirB];
	
	          // I do not care for width for now, so this hack is irrelevant
	          // if ( !supportsPercentMargin )
	          // computedMarginA = hackPercentMargin( elem, computedStyle, computedMarginA )
	          // computedMarginB = hackPercentMargin( elem, computedStyle, computedMarginB )
	          marginA = convertToPx(elem, computedMarginA) || 0;
	          marginB = convertToPx(elem, computedMarginB) || 0;
	          return {
	            base: base,
	            padding: paddingA + paddingB,
	            border: borderA + borderB,
	            margin: marginA + marginB
	          };
	        }
	        function getWidthHeight(elem, direction, measure) {
	          var computedStyle, result;
	          var measurements = getMeasurements(elem, direction);
	          if (measurements.base > 0) {
	            return {
	              base: measurements.base - measurements.padding - measurements.border,
	              outer: measurements.base,
	              outerfull: measurements.base + measurements.margin
	            }[measure];
	          }
	
	          // Fall back to computed then uncomputed css if necessary
	          computedStyle = getStyle(elem);
	          result = computedStyle[direction];
	          if (result < 0 || result === null) {
	            result = elem.style[direction] || 0;
	          }
	
	          // Normalize "", auto, and prepare for extra
	          result = parseFloat(result) || 0;
	          return {
	            base: result - measurements.padding - measurements.border,
	            outer: result,
	            outerfull: result + measurements.padding + measurements.border + measurements.margin
	          }[measure];
	        }
	
	        // define missing methods
	        return angular.forEach({
	          before: function before(newElem) {
	            var children, elem, i, j, parent, ref, self;
	            self = this;
	            elem = self[0];
	            parent = self.parent();
	            children = parent.contents();
	            if (children[0] === elem) {
	              return parent.prepend(newElem);
	            } else {
	              for (i = j = 1, ref = children.length - 1; 1 <= ref ? j <= ref : j >= ref; i = 1 <= ref ? ++j : --j) {
	                if (children[i] === elem) {
	                  angular.element(children[i - 1]).after(newElem);
	                  return;
	                }
	              }
	              throw new Error('invalid DOM structure ' + elem.outerHTML);
	            }
	          },
	          height: function height(value) {
	            var self;
	            self = this;
	            if (typeof value !== 'undefined') {
	              if (angular.isNumber(value)) {
	                value = value + 'px';
	              }
	              return css.call(self, 'height', value);
	            } else {
	              return getWidthHeight(this[0], 'height', 'base');
	            }
	          },
	          outerHeight: function outerHeight(option) {
	            return getWidthHeight(this[0], 'height', option ? 'outerfull' : 'outer');
	          },
	          outerWidth: function outerWidth(option) {
	            return getWidthHeight(this[0], 'width', option ? 'outerfull' : 'outer');
	          },
	          /*
	          The offset setter method is not implemented
	          */
	          offset: function offset(value) {
	            var docElem, win;
	            var self = this;
	            var box = {
	              top: 0,
	              left: 0
	            };
	            var elem = self[0];
	            var doc = elem && elem.ownerDocument;
	            if (arguments.length) {
	              if (value === undefined) {
	                return self;
	              }
	              // TODO: implement setter
	              throw new Error('offset setter method is not implemented');
	            }
	            if (!doc) {
	              return;
	            }
	            docElem = doc.documentElement;
	
	            // TODO: Make sure it's not a disconnected DOM node
	
	            if (elem.getBoundingClientRect != null) {
	              box = elem.getBoundingClientRect();
	            }
	            win = doc.defaultView || doc.parentWindow;
	            return {
	              top: box.top + (win.pageYOffset || docElem.scrollTop) - (docElem.clientTop || 0),
	              left: box.left + (win.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || 0)
	            };
	          },
	          scrollTop: function scrollTop(value) {
	            return scrollTo(this, 'top', value);
	          },
	          scrollLeft: function scrollLeft(value) {
	            return scrollTo(this, 'left', value);
	          }
	        }, function (value, key) {
	          if (!element.prototype[key]) {
	            return element.prototype[key] = value;
	          }
	        });
	      }
	    }]);
	    return JQLiteExtras;
	  }(); // CONCATENATED MODULE: ./src/modules/elementRoutines.js
	
	  function elementRoutines_typeof(obj) {
	    '@babel/helpers - typeof';
	
	    return elementRoutines_typeof = 'function' == typeof Symbol && 'symbol' == _typeof2(Symbol.iterator) ? function (obj) {
	      return typeof obj === 'undefined' ? 'undefined' : _typeof2(obj);
	    } : function (obj) {
	      return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? 'symbol' : typeof obj === 'undefined' ? 'undefined' : _typeof2(obj);
	    }, elementRoutines_typeof(obj);
	  }
	  function elementRoutines_classCallCheck(instance, Constructor) {
	    if (!(instance instanceof Constructor)) {
	      throw new TypeError('Cannot call a class as a function');
	    }
	  }
	  function elementRoutines_defineProperties(target, props) {
	    for (var i = 0; i < props.length; i++) {
	      var descriptor = props[i];
	      descriptor.enumerable = descriptor.enumerable || false;
	      descriptor.configurable = true;
	      if ('value' in descriptor) descriptor.writable = true;
	      Object.defineProperty(target, elementRoutines_toPropertyKey(descriptor.key), descriptor);
	    }
	  }
	  function elementRoutines_createClass(Constructor, protoProps, staticProps) {
	    if (protoProps) elementRoutines_defineProperties(Constructor.prototype, protoProps);
	    if (staticProps) elementRoutines_defineProperties(Constructor, staticProps);
	    Object.defineProperty(Constructor, 'prototype', { writable: false });
	    return Constructor;
	  }
	  function elementRoutines_toPropertyKey(arg) {
	    var key = elementRoutines_toPrimitive(arg, 'string');
	    return elementRoutines_typeof(key) === 'symbol' ? key : String(key);
	  }
	  function elementRoutines_toPrimitive(input, hint) {
	    if (elementRoutines_typeof(input) !== 'object' || input === null) return input;
	    var prim = input[Symbol.toPrimitive];
	    if (prim !== undefined) {
	      var res = prim.call(input, hint || 'default');
	      if (elementRoutines_typeof(res) !== 'object') return res;
	      throw new TypeError('@@toPrimitive must return a primitive value.');
	    }
	    return (hint === 'string' ? String : Number)(input);
	  }
	  var hideClassToken = 'ng-ui-scroll-hide';
	  var ElementRoutines = /*#__PURE__*/function () {
	    function ElementRoutines($injector, $q) {
	      elementRoutines_classCallCheck(this, ElementRoutines);
	      this.$animate = $injector.has && $injector.has('$animate') ? $injector.get('$animate') : null;
	      this.isAngularVersionLessThen1_3 = angular.version.major === 1 && angular.version.minor < 3;
	      this.$q = $q;
	    }
	    elementRoutines_createClass(ElementRoutines, [{
	      key: 'hideElement',
	      value: function hideElement(wrapper) {
	        wrapper.element.addClass(hideClassToken);
	      }
	    }, {
	      key: 'showElement',
	      value: function showElement(wrapper) {
	        wrapper.element.removeClass(hideClassToken);
	      }
	    }, {
	      key: 'insertElement',
	      value: function insertElement(newElement, previousElement) {
	        previousElement.after(newElement);
	        return [];
	      }
	    }, {
	      key: 'removeElement',
	      value: function removeElement(wrapper) {
	        wrapper.element.remove();
	        wrapper.scope.$destroy();
	        return [];
	      }
	    }, {
	      key: 'insertElementAnimated',
	      value: function insertElementAnimated(newElement, previousElement) {
	        if (!this.$animate) {
	          return this.insertElement(newElement, previousElement);
	        }
	        if (this.isAngularVersionLessThen1_3) {
	          var deferred = this.$q.defer();
	          // no need for parent - previous element is never null
	          this.$animate.enter(newElement, null, previousElement, function () {
	            return deferred.resolve();
	          });
	          return [deferred.promise];
	        }
	
	        // no need for parent - previous element is never null
	        return [this.$animate.enter(newElement, null, previousElement)];
	      }
	    }, {
	      key: 'removeElementAnimated',
	      value: function removeElementAnimated(wrapper) {
	        if (!this.$animate) {
	          return this.removeElement(wrapper);
	        }
	        if (this.isAngularVersionLessThen1_3) {
	          var deferred = this.$q.defer();
	          this.$animate.leave(wrapper.element, function () {
	            wrapper.scope.$destroy();
	            return deferred.resolve();
	          });
	          return [deferred.promise];
	        }
	        return [this.$animate.leave(wrapper.element).then(function () {
	          return wrapper.scope.$destroy();
	        })];
	      }
	    }], [{
	      key: 'addCSSRules',
	      value: function addCSSRules() {
	        var selector = '.' + hideClassToken;
	        var rules = 'display: none';
	        var sheet = document.styleSheets[0];
	        var index;
	        try {
	          index = sheet.cssRules.length;
	        } catch (err) {
	          index = 0;
	        }
	        if ('insertRule' in sheet) {
	          sheet.insertRule(selector + '{' + rules + '}', index);
	        } else if ('addRule' in sheet) {
	          sheet.addRule(selector, rules, index);
	        }
	      }
	    }]);
	    return ElementRoutines;
	  }(); // CONCATENATED MODULE: ./src/modules/utils.js
	
	  var OPERATIONS = {
	    PREPEND: 'prepend',
	    APPEND: 'append',
	    INSERT: 'insert',
	    REMOVE: 'remove',
	    NONE: 'none'
	  }; // CONCATENATED MODULE: ./src/modules/buffer.js
	  function ScrollBuffer(elementRoutines, bufferSize, startIndex) {
	    var buffer = Object.create(Array.prototype);
	    angular.extend(buffer, {
	      size: bufferSize,
	      reset: function reset(startIndex) {
	        buffer.remove(0, buffer.length);
	        buffer.eof = false;
	        buffer.bof = false;
	        buffer.first = startIndex;
	        buffer.next = startIndex;
	        buffer.minIndex = startIndex;
	        buffer.maxIndex = startIndex;
	        buffer.minIndexUser = null;
	        buffer.maxIndexUser = null;
	      },
	      append: function append(items) {
	        items.forEach(function (item) {
	          ++buffer.next;
	          buffer.insert(OPERATIONS.APPEND, item);
	        });
	        buffer.maxIndex = buffer.eof ? buffer.next - 1 : Math.max(buffer.next - 1, buffer.maxIndex);
	      },
	      prepend: function prepend(items, immutableTop) {
	        items.reverse().forEach(function (item) {
	          if (immutableTop) {
	            ++buffer.next;
	          } else {
	            --buffer.first;
	          }
	          buffer.insert(OPERATIONS.PREPEND, item);
	        });
	        buffer.minIndex = buffer.bof ? buffer.minIndex = buffer.first : Math.min(buffer.first, buffer.minIndex);
	      },
	      /**
	       * inserts wrapped element in the buffer
	       * the first argument is either operation keyword (see below) or a number for operation 'insert'
	       * for insert the number is the index for the buffer element the new one have to be inserted after
	       * operations: 'append', 'prepend', 'insert', 'remove', 'none'
	       */
	      insert: function insert(operation, item, shiftTop) {
	        var wrapper = {
	          item: item
	        };
	        if (operation % 1 === 0) {
	          // it is an insert
	          wrapper.op = OPERATIONS.INSERT;
	          buffer.splice(operation, 0, wrapper);
	          if (shiftTop) {
	            buffer.first--;
	          } else {
	            buffer.next++;
	          }
	        } else {
	          wrapper.op = operation;
	          switch (operation) {
	            case OPERATIONS.APPEND:
	              buffer.push(wrapper);
	              break;
	            case OPERATIONS.PREPEND:
	              buffer.unshift(wrapper);
	              break;
	          }
	        }
	      },
	      // removes elements from buffer
	      remove: function remove(arg1, arg2) {
	        if (angular.isNumber(arg1)) {
	          // removes items from arg1 (including) through arg2 (excluding)
	          for (var i = arg1; i < arg2; i++) {
	            elementRoutines.removeElement(buffer[i]);
	          }
	          return buffer.splice(arg1, arg2 - arg1);
	        }
	        // removes single item (wrapper) from the buffer
	        buffer.splice(buffer.indexOf(arg1), 1);
	        if (arg1.shiftTop && buffer.first === this.getAbsMinIndex()) {
	          this.incrementMinIndex();
	        } else {
	          this.decrementMaxIndex();
	        }
	        if (arg1.shiftTop) {
	          buffer.first++;
	        } else {
	          buffer.next--;
	        }
	        if (!buffer.length) {
	          buffer.minIndex = Math.min(buffer.maxIndex, buffer.minIndex);
	        }
	        return elementRoutines.removeElementAnimated(arg1);
	      },
	      incrementMinIndex: function incrementMinIndex() {
	        if (buffer.minIndexUser !== null) {
	          if (buffer.minIndex > buffer.minIndexUser) {
	            buffer.minIndexUser++;
	            return;
	          }
	          if (buffer.minIndex === buffer.minIndexUser) {
	            buffer.minIndexUser++;
	          }
	        }
	        buffer.minIndex++;
	      },
	      decrementMaxIndex: function decrementMaxIndex() {
	        if (buffer.maxIndexUser !== null && buffer.maxIndex <= buffer.maxIndexUser) {
	          buffer.maxIndexUser--;
	        }
	        buffer.maxIndex--;
	      },
	      getAbsMinIndex: function getAbsMinIndex() {
	        if (buffer.minIndexUser !== null) {
	          return Math.min(buffer.minIndexUser, buffer.minIndex);
	        }
	        return buffer.minIndex;
	      },
	      getAbsMaxIndex: function getAbsMaxIndex() {
	        if (buffer.maxIndexUser !== null) {
	          return Math.max(buffer.maxIndexUser, buffer.maxIndex);
	        }
	        return buffer.maxIndex;
	      },
	      effectiveHeight: function effectiveHeight(elements) {
	        if (!elements.length) {
	          return 0;
	        }
	        var top = Number.MAX_VALUE;
	        var bottom = Number.NEGATIVE_INFINITY;
	        elements.forEach(function (wrapper) {
	          if (wrapper.element[0].offsetParent) {
	            // element style is not display:none
	            top = Math.min(top, wrapper.element.offset().top);
	            bottom = Math.max(bottom, wrapper.element.offset().top + wrapper.element.outerHeight(true));
	          }
	        });
	        return Math.max(0, bottom - top);
	      },
	      getItems: function getItems() {
	        return buffer.filter(function (item) {
	          return item.op === OPERATIONS.NONE;
	        });
	      },
	      getFirstItem: function getFirstItem() {
	        var list = buffer.getItems();
	        if (!list.length) {
	          return null;
	        }
	        return list[0].item;
	      },
	      getLastItem: function getLastItem() {
	        var list = buffer.getItems();
	        if (!list.length) {
	          return null;
	        }
	        return list[list.length - 1].item;
	      }
	    });
	    buffer.reset(startIndex);
	    return buffer;
	  } // CONCATENATED MODULE: ./src/modules/padding.js
	  function padding_typeof(obj) {
	    '@babel/helpers - typeof';
	
	    return padding_typeof = 'function' == typeof Symbol && 'symbol' == _typeof2(Symbol.iterator) ? function (obj) {
	      return typeof obj === 'undefined' ? 'undefined' : _typeof2(obj);
	    } : function (obj) {
	      return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? 'symbol' : typeof obj === 'undefined' ? 'undefined' : _typeof2(obj);
	    }, padding_typeof(obj);
	  }
	  function padding_classCallCheck(instance, Constructor) {
	    if (!(instance instanceof Constructor)) {
	      throw new TypeError('Cannot call a class as a function');
	    }
	  }
	  function padding_defineProperties(target, props) {
	    for (var i = 0; i < props.length; i++) {
	      var descriptor = props[i];
	      descriptor.enumerable = descriptor.enumerable || false;
	      descriptor.configurable = true;
	      if ('value' in descriptor) descriptor.writable = true;
	      Object.defineProperty(target, padding_toPropertyKey(descriptor.key), descriptor);
	    }
	  }
	  function padding_createClass(Constructor, protoProps, staticProps) {
	    if (protoProps) padding_defineProperties(Constructor.prototype, protoProps);
	    if (staticProps) padding_defineProperties(Constructor, staticProps);
	    Object.defineProperty(Constructor, 'prototype', { writable: false });
	    return Constructor;
	  }
	  function padding_toPropertyKey(arg) {
	    var key = padding_toPrimitive(arg, 'string');
	    return padding_typeof(key) === 'symbol' ? key : String(key);
	  }
	  function padding_toPrimitive(input, hint) {
	    if (padding_typeof(input) !== 'object' || input === null) return input;
	    var prim = input[Symbol.toPrimitive];
	    if (prim !== undefined) {
	      var res = prim.call(input, hint || 'default');
	      if (padding_typeof(res) !== 'object') return res;
	      throw new TypeError('@@toPrimitive must return a primitive value.');
	    }
	    return (hint === 'string' ? String : Number)(input);
	  }
	  // Can't just extend the Array, due to Babel does not support built-in classes extending
	  // This solution was taken from https://stackoverflow.com/questions/46897414/es6-class-extends-array-workaround-for-es5-babel-transpile
	  var CacheProto = /*#__PURE__*/function () {
	    function CacheProto() {
	      padding_classCallCheck(this, CacheProto);
	    }
	    padding_createClass(CacheProto, [{
	      key: 'add',
	      value: function add(item) {
	        for (var i = this.length - 1; i >= 0; i--) {
	          if (this[i].index === item.scope.$index) {
	            this[i].height = item.element.outerHeight();
	            return;
	          }
	        }
	        this.push({
	          index: item.scope.$index,
	          height: item.element.outerHeight()
	        });
	        this.sort(function (a, b) {
	          return a.index < b.index ? -1 : a.index > b.index ? 1 : 0;
	        });
	      }
	    }, {
	      key: 'remove',
	      value: function remove(argument, _shiftTop) {
	        var index = argument % 1 === 0 ? argument : argument.scope.$index;
	        var shiftTop = argument % 1 === 0 ? _shiftTop : argument.shiftTop;
	        for (var i = this.length - 1; i >= 0; i--) {
	          if (this[i].index === index) {
	            this.splice(i, 1);
	            break;
	          }
	        }
	        if (!shiftTop) {
	          for (var _i = this.length - 1; _i >= 0; _i--) {
	            if (this[_i].index > index) {
	              this[_i].index--;
	            }
	          }
	        }
	      }
	    }, {
	      key: 'clear',
	      value: function clear() {
	        this.length = 0;
	      }
	    }]);
	    return CacheProto;
	  }();
	  function Cache() {
	    var instance = [];
	    instance.push.apply(instance, arguments);
	    Object.setPrototypeOf(instance, Cache.prototype);
	    return instance;
	  }
	  Cache.prototype = Object.create(Array.prototype);
	  Object.getOwnPropertyNames(CacheProto.prototype).forEach(function (methodName) {
	    return Cache.prototype[methodName] = CacheProto.prototype[methodName];
	  });
	  function generateElement(template) {
	    if (template.nodeType !== Node.ELEMENT_NODE) {
	      throw new Error('ui-scroll directive requires an Element node for templating the view');
	    }
	    var element;
	    switch (template.tagName.toLowerCase()) {
	      case 'dl':
	        throw new Error('ui-scroll directive does not support <'.concat(template.tagName, '> as a repeating tag: ').concat(template.outerHTML));
	      case 'tr':
	        var table = angular.element('<table><tr><td><div></div></td></tr></table>');
	        element = table.find('tr');
	        break;
	      case 'li':
	        element = angular.element('<li></li>');
	        break;
	      default:
	        element = angular.element('<div></div>');
	    }
	    return element;
	  }
	  var Padding = /*#__PURE__*/function () {
	    function Padding(template) {
	      padding_classCallCheck(this, Padding);
	      this.element = generateElement(template);
	      this.cache = new Cache();
	    }
	    padding_createClass(Padding, [{
	      key: 'height',
	      value: function height() {
	        return this.element.height.apply(this.element, arguments);
	      }
	    }]);
	    return Padding;
	  }();
	  /* harmony default export */var modules_padding = Padding; // CONCATENATED MODULE: ./src/modules/viewport.js
	  function Viewport(elementRoutines, buffer, element, viewportController, $rootScope, padding) {
	    var topPadding = null;
	    var bottomPadding = null;
	    var viewport = viewportController && viewportController.viewport ? viewportController.viewport : angular.element(window);
	    var container = viewportController && viewportController.container ? viewportController.container : undefined;
	    var scope = viewportController && viewportController.scope ? viewportController.scope : $rootScope;
	    viewport.css({
	      'overflow-anchor': 'none',
	      'overflow-y': 'auto',
	      display: 'block'
	    });
	    function bufferPadding() {
	      return viewport.outerHeight() * padding; // some extra space to initiate preload
	    }
	
	    angular.extend(viewport, {
	      getScope: function getScope() {
	        return scope;
	      },
	      createPaddingElements: function createPaddingElements(template) {
	        topPadding = new modules_padding(template);
	        bottomPadding = new modules_padding(template);
	        element.before(topPadding.element);
	        element.after(bottomPadding.element);
	        topPadding.height(0);
	        bottomPadding.height(0);
	      },
	      applyContainerStyle: function applyContainerStyle() {
	        if (!container) {
	          return true;
	        }
	        if (container !== viewport) {
	          viewport.css('height', window.getComputedStyle(container[0]).height);
	        }
	        return viewport.height() > 0;
	      },
	      bottomDataPos: function bottomDataPos() {
	        var scrollHeight = viewport[0].scrollHeight;
	        scrollHeight = scrollHeight != null ? scrollHeight : viewport[0].document.documentElement.scrollHeight;
	        return scrollHeight - bottomPadding.height();
	      },
	      topDataPos: function topDataPos() {
	        return topPadding.height();
	      },
	      bottomVisiblePos: function bottomVisiblePos() {
	        return viewport.scrollTop() + viewport.outerHeight();
	      },
	      topVisiblePos: function topVisiblePos() {
	        return viewport.scrollTop();
	      },
	      insertElement: function insertElement(e, sibling) {
	        return elementRoutines.insertElement(e, sibling || topPadding.element);
	      },
	      insertElementAnimated: function insertElementAnimated(e, sibling) {
	        return elementRoutines.insertElementAnimated(e, sibling || topPadding.element);
	      },
	      shouldLoadBottom: function shouldLoadBottom() {
	        return !buffer.eof && viewport.bottomDataPos() < viewport.bottomVisiblePos() + bufferPadding();
	      },
	      clipBottom: function clipBottom() {
	        // clip the invisible items off the bottom
	        var overage = 0;
	        var overageHeight = 0;
	        var itemHeight = 0;
	        var emptySpaceHeight = viewport.bottomDataPos() - viewport.bottomVisiblePos() - bufferPadding();
	        for (var i = buffer.length - 1; i >= 0; i--) {
	          itemHeight = buffer[i].element.outerHeight(true);
	          if (overageHeight + itemHeight > emptySpaceHeight) {
	            break;
	          }
	          bottomPadding.cache.add(buffer[i]);
	          overageHeight += itemHeight;
	          overage++;
	        }
	        if (overage > 0) {
	          buffer.eof = false;
	          buffer.remove(buffer.length - overage, buffer.length);
	          buffer.next -= overage;
	          viewport.adjustPaddings();
	        }
	      },
	      shouldLoadTop: function shouldLoadTop() {
	        return !buffer.bof && viewport.topDataPos() > viewport.topVisiblePos() - bufferPadding();
	      },
	      clipTop: function clipTop() {
	        // clip the invisible items off the top
	        var overage = 0;
	        var overageHeight = 0;
	        var itemHeight = 0;
	        var emptySpaceHeight = viewport.topVisiblePos() - viewport.topDataPos() - bufferPadding();
	        for (var i = 0; i < buffer.length; i++) {
	          itemHeight = buffer[i].element.outerHeight(true);
	          if (overageHeight + itemHeight > emptySpaceHeight) {
	            break;
	          }
	          topPadding.cache.add(buffer[i]);
	          overageHeight += itemHeight;
	          overage++;
	        }
	        if (overage > 0) {
	          // we need to adjust top padding element before items are removed from top
	          // to avoid strange behaviour of scroll bar during remove top items when we are at the very bottom
	          topPadding.height(topPadding.height() + overageHeight);
	          buffer.bof = false;
	          buffer.remove(0, overage);
	          buffer.first += overage;
	        }
	      },
	      adjustPaddings: function adjustPaddings() {
	        if (!buffer.length) {
	          return;
	        }
	
	        // precise heights calculation based on items that are in buffer or that were in buffer once
	        var visibleItemsHeight = buffer.reduce(function (summ, item) {
	          return summ + item.element.outerHeight(true);
	        }, 0);
	        var topPaddingHeight = 0,
	            topCount = 0;
	        topPadding.cache.forEach(function (item) {
	          if (item.index < buffer.first) {
	            topPaddingHeight += item.height;
	            topCount++;
	          }
	        });
	        var bottomPaddingHeight = 0,
	            bottomCount = 0;
	        bottomPadding.cache.forEach(function (item) {
	          if (item.index >= buffer.next) {
	            bottomPaddingHeight += item.height;
	            bottomCount++;
	          }
	        });
	        var totalHeight = visibleItemsHeight + topPaddingHeight + bottomPaddingHeight;
	        var averageItemHeight = totalHeight / (topCount + bottomCount + buffer.length);
	
	        // average heights calculation, items that have never been reached
	        var adjustTopPadding = buffer.minIndexUser !== null && buffer.minIndex > buffer.minIndexUser;
	        var adjustBottomPadding = buffer.maxIndexUser !== null && buffer.maxIndex < buffer.maxIndexUser;
	        var topPaddingHeightAdd = adjustTopPadding ? (buffer.minIndex - buffer.minIndexUser) * averageItemHeight : 0;
	        var bottomPaddingHeightAdd = adjustBottomPadding ? (buffer.maxIndexUser - buffer.maxIndex) * averageItemHeight : 0;
	
	        // paddings combine adjustment
	        topPadding.height(topPaddingHeight + topPaddingHeightAdd);
	        bottomPadding.height(bottomPaddingHeight + bottomPaddingHeightAdd);
	      },
	      onAfterMinIndexSet: function onAfterMinIndexSet(topPaddingHeightOld) {
	        // additional scrollTop adjustment in case of datasource.minIndex external set
	        if (buffer.minIndexUser !== null && buffer.minIndex > buffer.minIndexUser) {
	          var diff = topPadding.height() - topPaddingHeightOld;
	          viewport.scrollTop(viewport.scrollTop() + diff);
	          while ((diff -= viewport.scrollTop()) > 0) {
	            bottomPadding.height(bottomPadding.height() + diff);
	            viewport.scrollTop(viewport.scrollTop() + diff);
	          }
	        }
	      },
	      onAfterPrepend: function onAfterPrepend(updates) {
	        if (!updates.prepended.length) {
	          return;
	        }
	        var height = buffer.effectiveHeight(updates.prepended);
	        var paddingHeight = topPadding.height() - height;
	        if (paddingHeight >= 0) {
	          topPadding.height(paddingHeight);
	          return;
	        }
	        var position = viewport.scrollTop();
	        var newPosition = position - paddingHeight;
	        viewport.synthetic = {
	          previous: position,
	          next: newPosition
	        };
	        topPadding.height(0);
	        viewport.scrollTop(newPosition);
	      },
	      resetTopPadding: function resetTopPadding() {
	        topPadding.height(0);
	        topPadding.cache.clear();
	      },
	      resetBottomPadding: function resetBottomPadding() {
	        bottomPadding.height(0);
	        bottomPadding.cache.clear();
	      },
	      removeCacheItem: function removeCacheItem(item, shiftTop) {
	        topPadding.cache.remove(item, shiftTop);
	        bottomPadding.cache.remove(item, shiftTop);
	      },
	      removeItem: function removeItem(item) {
	        this.removeCacheItem(item);
	        return buffer.remove(item);
	      }
	    });
	    return viewport;
	  } // CONCATENATED MODULE: ./src/modules/adapter.js
	  function adapter_typeof(obj) {
	    '@babel/helpers - typeof';
	
	    return adapter_typeof = 'function' == typeof Symbol && 'symbol' == _typeof2(Symbol.iterator) ? function (obj) {
	      return typeof obj === 'undefined' ? 'undefined' : _typeof2(obj);
	    } : function (obj) {
	      return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? 'symbol' : typeof obj === 'undefined' ? 'undefined' : _typeof2(obj);
	    }, adapter_typeof(obj);
	  }
	  function adapter_classCallCheck(instance, Constructor) {
	    if (!(instance instanceof Constructor)) {
	      throw new TypeError('Cannot call a class as a function');
	    }
	  }
	  function adapter_defineProperties(target, props) {
	    for (var i = 0; i < props.length; i++) {
	      var descriptor = props[i];
	      descriptor.enumerable = descriptor.enumerable || false;
	      descriptor.configurable = true;
	      if ('value' in descriptor) descriptor.writable = true;
	      Object.defineProperty(target, adapter_toPropertyKey(descriptor.key), descriptor);
	    }
	  }
	  function adapter_createClass(Constructor, protoProps, staticProps) {
	    if (protoProps) adapter_defineProperties(Constructor.prototype, protoProps);
	    if (staticProps) adapter_defineProperties(Constructor, staticProps);
	    Object.defineProperty(Constructor, 'prototype', { writable: false });
	    return Constructor;
	  }
	  function adapter_toPropertyKey(arg) {
	    var key = adapter_toPrimitive(arg, 'string');
	    return adapter_typeof(key) === 'symbol' ? key : String(key);
	  }
	  function adapter_toPrimitive(input, hint) {
	    if (adapter_typeof(input) !== 'object' || input === null) return input;
	    var prim = input[Symbol.toPrimitive];
	    if (prim !== undefined) {
	      var res = prim.call(input, hint || 'default');
	      if (adapter_typeof(res) !== 'object') return res;
	      throw new TypeError('@@toPrimitive must return a primitive value.');
	    }
	    return (hint === 'string' ? String : Number)(input);
	  }
	
	  var Adapter = /*#__PURE__*/function () {
	    function Adapter($scope, $parse, $attr, viewport, buffer, doAdjust, reload) {
	      adapter_classCallCheck(this, Adapter);
	      this.$parse = $parse;
	      this.$attr = $attr;
	      this.viewport = viewport;
	      this.buffer = buffer;
	      this.doAdjust = doAdjust;
	      this.reload = reload;
	      this.isLoading = false;
	      this.disabled = false;
	      var viewportScope = viewport.getScope();
	      this.startScope = viewportScope.$parent ? viewportScope : $scope;
	      this.publicContext = {};
	      this.assignAdapter($attr.adapter);
	      this.generatePublicContext();
	    }
	    adapter_createClass(Adapter, [{
	      key: 'assignAdapter',
	      value: function assignAdapter(adapterAttr) {
	        if (!adapterAttr || !(adapterAttr = adapterAttr.replace(/^\s+|\s+$/gm, ''))) {
	          return;
	        }
	        var adapterOnScope;
	        try {
	          this.$parse(adapterAttr).assign(this.startScope, {});
	          adapterOnScope = this.$parse(adapterAttr)(this.startScope);
	        } catch (error) {
	          error.message = 'Angular ui-scroll Adapter assignment exception.\n' + 'Can\'t parse "'.concat(adapterAttr, '" expression.\n') + error.message;
	          throw error;
	        }
	        angular.extend(adapterOnScope, this.publicContext);
	        this.publicContext = adapterOnScope;
	      }
	    }, {
	      key: 'generatePublicContext',
	      value: function generatePublicContext() {
	        var _this = this;
	        // these methods will be accessible out of ui-scroll via user defined adapter
	        var publicMethods = ['reload', 'applyUpdates', 'append', 'prepend', 'isBOF', 'isEOF', 'isEmpty'];
	        for (var i = publicMethods.length - 1; i >= 0; i--) {
	          this.publicContext[publicMethods[i]] = this[publicMethods[i]].bind(this);
	        }
	
	        // these read-only props will be accessible out of ui-scroll via user defined adapter
	        var publicProps = ['isLoading', 'topVisible', 'topVisibleElement', 'topVisibleScope', 'bottomVisible', 'bottomVisibleElement', 'bottomVisibleScope'];
	        var _loop = function _loop(_i) {
	          var property,
	              attr = _this.$attr[publicProps[_i]];
	          Object.defineProperty(_this, publicProps[_i], {
	            get: function get() {
	              return property;
	            },
	            set: function set(value) {
	              property = value;
	              _this.publicContext[publicProps[_i]] = value;
	              if (attr) {
	                _this.$parse(attr).assign(_this.startScope, value);
	              }
	            }
	          });
	        };
	        for (var _i = publicProps.length - 1; _i >= 0; _i--) {
	          _loop(_i);
	        }
	
	        // read-only immediately calculated public properties
	        var publicPropsImmediate = ['bufferFirst', 'bufferLast', 'bufferLength'];
	        var _loop2 = function _loop2(_i2) {
	          Object.defineProperty(_this.publicContext, publicPropsImmediate[_i2], {
	            get: function get() {
	              return _this[publicPropsImmediate[_i2]];
	            }
	          });
	        };
	        for (var _i2 = publicPropsImmediate.length - 1; _i2 >= 0; _i2--) {
	          _loop2(_i2);
	        }
	
	        // non-read-only public property
	        Object.defineProperty(this.publicContext, 'disabled', {
	          get: function get() {
	            return _this.disabled;
	          },
	          set: function set(value) {
	            return !(_this.disabled = value) ? _this.doAdjust() : null;
	          }
	        });
	      }
	    }, {
	      key: 'loading',
	      value: function loading(value) {
	        this.isLoading = value;
	      }
	    }, {
	      key: 'isBOF',
	      value: function isBOF() {
	        return this.buffer.bof;
	      }
	    }, {
	      key: 'isEOF',
	      value: function isEOF() {
	        return this.buffer.eof;
	      }
	    }, {
	      key: 'isEmpty',
	      value: function isEmpty() {
	        return !this.buffer.length;
	      }
	    }, {
	      key: 'bufferLength',
	      get: function get() {
	        return this.buffer.getItems().length;
	      }
	    }, {
	      key: 'bufferFirst',
	      get: function get() {
	        return this.buffer.getFirstItem();
	      }
	    }, {
	      key: 'bufferLast',
	      get: function get() {
	        return this.buffer.getLastItem();
	      }
	    }, {
	      key: 'append',
	      value: function append(newItems) {
	        this.buffer.append(newItems);
	        this.doAdjust();
	        this.viewport.clipTop();
	        this.viewport.clipBottom();
	      }
	    }, {
	      key: 'prepend',
	      value: function prepend(newItems) {
	        var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
	        this.buffer.prepend(newItems, options.immutableTop);
	        this.doAdjust();
	        this.viewport.clipTop();
	        this.viewport.clipBottom();
	      }
	    }, {
	      key: 'applyUpdates',
	      value: function applyUpdates(arg1, arg2, arg3) {
	        if (typeof arg1 === 'function') {
	          this.applyUpdatesFunc(arg1, arg2);
	        } else {
	          this.applyUpdatesIndex(arg1, arg2, arg3);
	        }
	        this.doAdjust();
	      }
	    }, {
	      key: 'applyUpdatesFunc',
	      value: function applyUpdatesFunc(cb) {
	        var _this2 = this;
	        var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
	        this.buffer.slice(0).forEach(function (wrapper) {
	          // we need to do it on the buffer clone, because buffer content
	          // may change as we iterate through
	          _this2.applyUpdate(wrapper, cb(wrapper.item, wrapper.scope, wrapper.element), options);
	        });
	      }
	    }, {
	      key: 'applyUpdatesIndex',
	      value: function applyUpdatesIndex(index, newItems) {
	        var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
	        if (index % 1 !== 0) {
	          throw new Error('applyUpdates - ' + index + ' is not a valid index (should be an integer)');
	        }
	        var _index = index - this.buffer.first;
	
	        // apply updates only within buffer
	        if (_index >= 0 && _index < this.buffer.length) {
	          this.applyUpdate(this.buffer[_index], newItems, options);
	        }
	        // out-of-buffer case: deletion may affect Paddings
	        else if (index >= this.buffer.getAbsMinIndex() && index <= this.buffer.getAbsMaxIndex()) {
	            if (angular.isArray(newItems) && !newItems.length) {
	              this.viewport.removeCacheItem(index, !options.immutableTop && index === this.buffer.minIndex);
	              if (!options.immutableTop && index === this.buffer.getAbsMinIndex()) {
	                this.buffer.incrementMinIndex();
	              } else {
	                this.buffer.decrementMaxIndex();
	              }
	            }
	          }
	      }
	    }, {
	      key: 'applyUpdate',
	      value: function applyUpdate(wrapper, newItems) {
	        var _this3 = this;
	        var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
	        if (!angular.isArray(newItems)) {
	          return;
	        }
	        var position = this.buffer.indexOf(wrapper);
	        if (!newItems.reverse().some(function (newItem) {
	          return newItem === wrapper.item;
	        })) {
	          wrapper.op = OPERATIONS.REMOVE;
	          // try to catch "first" edge case on remove
	          if (!options.immutableTop && !newItems.length) {
	            // this is the first item, or the previous one's part of the "shift-top" group
	            if (position === 0 && this.buffer.bof || position !== 0 && this.buffer[position - 1].shiftTop) {
	              wrapper.shiftTop = true;
	            }
	          }
	        }
	        newItems.forEach(function (newItem) {
	          if (newItem === wrapper.item) {
	            position--;
	          } else {
	            // 3 parameter (shiftTop) is to catch "first" edge case on insert
	            _this3.buffer.insert(position + 1, newItem, !options.immutableTop && position === -1);
	          }
	        });
	      }
	    }, {
	      key: 'calculateProperties',
	      value: function calculateProperties() {
	        var rowTop = null,
	            topHeight = 0;
	        var topDone = false,
	            bottomDone = false;
	        var length = this.buffer.length;
	        for (var i = 0; i < length; i++) {
	          var item = this.buffer[i];
	          var itemTop = item.element.offset().top;
	          if (rowTop !== itemTop) {
	            // a new row condition
	            var itemHeight = item.element.outerHeight(true);
	            var top = this.viewport.topDataPos() + topHeight + itemHeight;
	            if (!topDone && top > this.viewport.topVisiblePos()) {
	              topDone = true;
	              this['topVisible'] = item.item;
	              this['topVisibleElement'] = item.element;
	              this['topVisibleScope'] = item.scope;
	            }
	            if (!bottomDone && (top >= this.viewport.bottomVisiblePos() || i === length - 1 && this.isEOF())) {
	              bottomDone = true;
	              this['bottomVisible'] = item.item;
	              this['bottomVisibleElement'] = item.element;
	              this['bottomVisibleScope'] = item.scope;
	            }
	            topHeight += itemHeight;
	          }
	          rowTop = itemTop;
	          if (topDone && bottomDone) {
	            break;
	          }
	        }
	      }
	    }]);
	    return Adapter;
	  }();
	  /* harmony default export */var modules_adapter = Adapter; // CONCATENATED MODULE: ./src/ui-scroll.js
	  angular.module('ui.scroll', []).constant('JQLiteExtras', JQLiteExtras).run(['JQLiteExtras', function (JQLiteExtras) {
	    var elt = angular.element;
	    !(window.jQuery && elt.fn && elt.fn.jquery) ? new JQLiteExtras().registerFor(elt) : null;
	    ElementRoutines.addCSSRules();
	  }]).directive('uiScrollViewport', function () {
	    return {
	      restrict: 'A',
	      controller: ['$scope', '$element', function (scope, element) {
	        var _this = this;
	        this.container = element;
	        this.viewport = element;
	        this.scope = scope;
	        angular.forEach(element.children(), function (child) {
	          if (child.tagName.toLowerCase() === 'tbody') {
	            _this.viewport = angular.element(child);
	          }
	        });
	        return this;
	      }]
	    };
	  }).directive('uiScroll', ['$log', '$injector', '$rootScope', '$timeout', '$interval', '$q', '$parse', function (console, $injector, $rootScope, $timeout, $interval, $q, $parse) {
	    return {
	      require: ['?^uiScrollViewport'],
	      restrict: 'A',
	      transclude: 'element',
	      priority: 1000,
	      terminal: true,
	      link: link
	    };
	    function link($scope, element, $attr, controllers, linker) {
	      var match = $attr.uiScroll.match(/^\s*(\w+)\s+in\s+([(\w|\$)\.]+)\s*$/);
	      if (!match) {
	        throw new Error("Expected uiScroll in form of '_item_ in _datasource_' but got '" + $attr.uiScroll + "'");
	      }
	      function parseNumber(value, defaultValue, isFloat) {
	        if (!isFloat) {
	          value = value === null ? defaultValue : Math.floor(value);
	        }
	        return isNaN(value) ? defaultValue : value;
	      }
	      function parseNumericAttr(value, defaultValue, isFloat) {
	        var result = $parse(value)($scope);
	        return parseNumber(result, defaultValue, isFloat);
	      }
	      function parseBooleanAttr(value, defaultValue) {
	        var result = $parse(value)($scope);
	        return typeof result === 'boolean' ? result : defaultValue;
	      }
	      var BUFFER_MIN = 3;
	      var BUFFER_DEFAULT = 10;
	      var PADDING_MIN = 0.3;
	      var PADDING_DEFAULT = 0.5;
	      var HANDLE_INERTIA_DEFAULT = true;
	      var START_INDEX_DEFAULT = 1;
	      var MAX_VIEWPORT_DELAY = 500;
	      var VIEWPORT_POLLING_INTERVAL = 50;
	      var datasource = null;
	      var itemName = match[1];
	      var datasourceName = match[2];
	      var viewportController = controllers[0];
	      var bufferSize = Math.max(BUFFER_MIN, parseNumericAttr($attr.bufferSize, BUFFER_DEFAULT));
	      var padding = Math.max(PADDING_MIN, parseNumericAttr($attr.padding, PADDING_DEFAULT, true));
	      var handleInertia = parseBooleanAttr($attr.handleInertia, HANDLE_INERTIA_DEFAULT);
	      var startIndex = parseNumericAttr($attr.startIndex, START_INDEX_DEFAULT);
	      var ridActual = 0; // current data revision id
	      var pending = [];
	      var elementRoutines = new ElementRoutines($injector, $q);
	      var buffer = new ScrollBuffer(elementRoutines, bufferSize, startIndex);
	      var viewport = new Viewport(elementRoutines, buffer, element, viewportController, $rootScope, padding);
	      var adapter = new modules_adapter($scope, $parse, $attr, viewport, buffer, doAdjust, reload);
	      if (viewportController) {
	        viewportController.adapter = adapter;
	      }
	      var isDatasourceValid = function isDatasourceValid() {
	        return Object.prototype.toString.call(datasource) === '[object Object]' && typeof datasource.get === 'function';
	      };
	      datasource = $parse(datasourceName)($scope); // try to get datasource on scope
	      if (!isDatasourceValid()) {
	        datasource = $injector.get(datasourceName); // try to inject datasource as service
	        if (!isDatasourceValid()) {
	          throw new Error(datasourceName + ' is not a valid datasource');
	        }
	      }
	      var onRenderHandlers = [];
	      function onRenderHandlersRunner() {
	        onRenderHandlers.forEach(function (handler) {
	          return handler.run();
	        });
	        onRenderHandlers = [];
	      }
	      function persistDatasourceIndex(datasource, propName) {
	        var getter;
	        // need to postpone min/maxIndexUser processing if the view is empty
	        if (angular.isNumber(datasource[propName])) {
	          getter = datasource[propName];
	          if (angular.isNumber(getter)) {
	            onRenderHandlers = onRenderHandlers.filter(function (handler) {
	              return handler.id !== propName;
	            });
	            onRenderHandlers.push({
	              id: propName,
	              run: function run() {
	                return datasource[propName] = getter;
	              }
	            });
	          }
	        }
	      }
	      function defineDatasourceIndex(datasource, propName, propUserName) {
	        var descriptor = Object.getOwnPropertyDescriptor(datasource, propName);
	        if (descriptor && (descriptor.set || descriptor.get)) {
	          return;
	        }
	        var getter;
	        persistDatasourceIndex(datasource, propName);
	        Object.defineProperty(datasource, propName, {
	          set: function set(value) {
	            getter = value;
	            if (pending.length && !buffer.length) {
	              persistDatasourceIndex(datasource, propName);
	              return;
	            }
	            buffer[propUserName] = value;
	            var topPaddingHeightOld = viewport.topDataPos();
	            viewport.adjustPaddings();
	            if (propName === 'minIndex') {
	              viewport.onAfterMinIndexSet(topPaddingHeightOld);
	            }
	          },
	          get: function get() {
	            return getter;
	          }
	        });
	      }
	      defineDatasourceIndex(datasource, 'minIndex', 'minIndexUser');
	      defineDatasourceIndex(datasource, 'maxIndex', 'maxIndexUser');
	      var fetchNext = datasource.get.length !== 2 ? function (success) {
	        return datasource.get(buffer.next, bufferSize, success);
	      } : function (success) {
	        datasource.get({
	          index: buffer.next,
	          append: buffer.length ? buffer[buffer.length - 1].item : void 0,
	          count: bufferSize
	        }, success);
	      };
	      var fetchPrevious = datasource.get.length !== 2 ? function (success) {
	        return datasource.get(buffer.first - bufferSize, bufferSize, success);
	      } : function (success) {
	        datasource.get({
	          index: buffer.first - bufferSize,
	          prepend: buffer.length ? buffer[0].item : void 0,
	          count: bufferSize
	        }, success);
	      };
	      var initialize = function initialize() {
	        var tryCount = 0;
	        if (!viewport.applyContainerStyle()) {
	          var timer = $interval(function () {
	            tryCount++;
	            if (viewport.applyContainerStyle()) {
	              $interval.cancel(timer);
	              doAdjust();
	            }
	            if (tryCount * VIEWPORT_POLLING_INTERVAL >= MAX_VIEWPORT_DELAY) {
	              $interval.cancel(timer);
	              throw Error('ui-scroll directive requires a viewport with non-zero height in '.concat(MAX_VIEWPORT_DELAY, 'ms'));
	            }
	          }, VIEWPORT_POLLING_INTERVAL);
	        } else {
	          doAdjust();
	        }
	      };
	
	      /**
	       * Build padding elements
	       *
	       * Calling linker is the only way I found to get access to the tag name of the template
	       * to prevent the directive scope from pollution a new scope is created and destroyed
	       * right after the builder creation is completed
	       */
	      linker(function (clone, scope) {
	        viewport.createPaddingElements(clone[0]);
	        // we do not include the clone in the DOM. It means that the nested directives will not
	        // be able to reach the parent directives, but in this case it is intentional because we
	        // created the clone to access the template tag name
	        scope.$destroy();
	        clone.remove();
	      });
	      $scope.$on('$destroy', function () {
	        unbindEvents();
	        viewport.off('mousewheel', wheelHandler);
	      });
	      viewport.on('mousewheel', wheelHandler);
	      initialize();
	
	      /* Private function definitions */
	
	      function isInvalid(rid) {
	        return rid && rid !== ridActual || $scope.$$destroyed;
	      }
	      function bindEvents() {
	        viewport.on('resize', resizeAndScrollHandler);
	        viewport.on('scroll', resizeAndScrollHandler);
	      }
	      function unbindEvents() {
	        viewport.off('resize', resizeAndScrollHandler);
	        viewport.off('scroll', resizeAndScrollHandler);
	      }
	      function reload() {
	        unbindEvents();
	        viewport.resetTopPadding();
	        viewport.resetBottomPadding();
	        if (arguments.length) {
	          startIndex = parseNumber(arguments[0], START_INDEX_DEFAULT, false);
	        }
	        buffer.reset(startIndex);
	        persistDatasourceIndex(datasource, 'minIndex');
	        persistDatasourceIndex(datasource, 'maxIndex');
	        doAdjust();
	      }
	      function isElementVisible(wrapper) {
	        return wrapper.element.height() && wrapper.element[0].offsetParent;
	      }
	      function visibilityWatcher(wrapper) {
	        if (isElementVisible(wrapper)) {
	          buffer.forEach(function (item) {
	            if (typeof item.unregisterVisibilityWatcher === 'function') {
	              item.unregisterVisibilityWatcher();
	              delete item.unregisterVisibilityWatcher;
	            }
	          });
	          if (!pending.length) {
	            $timeout(function () {
	              return doAdjust();
	            });
	          }
	        }
	      }
	      function insertWrapperContent(wrapper, insertAfter) {
	        createElement(wrapper, insertAfter, viewport.insertElement);
	        if (!isElementVisible(wrapper)) {
	          wrapper.unregisterVisibilityWatcher = wrapper.scope.$watch(function () {
	            return visibilityWatcher(wrapper);
	          });
	        }
	        elementRoutines.hideElement(wrapper); // hide inserted elements before data binding
	      }
	
	      function createElement(wrapper, insertAfter, insertElement) {
	        var promises = null;
	        var sibling = insertAfter > 0 ? buffer[insertAfter - 1].element : undefined;
	        linker(function (clone, scope) {
	          promises = insertElement(clone, sibling);
	          wrapper.element = clone;
	          wrapper.scope = scope;
	          scope[itemName] = wrapper.item;
	        });
	        // ui-scroll-grid apply
	        if (adapter.transform) {
	          var tdInitializer = wrapper.scope.uiScrollTdInitializer;
	          if (tdInitializer && tdInitializer.linking) {
	            adapter.transform(wrapper.scope, wrapper.element);
	          } else {
	            wrapper.scope.uiScrollTdInitializer = {
	              onLink: function onLink() {
	                return adapter.transform(wrapper.scope, wrapper.element);
	              },
	              scope: wrapper.scope
	            };
	          }
	        }
	        return promises;
	      }
	      function updateDOM() {
	        var promises = [];
	        var toBePrepended = [];
	        var toBeRemoved = [];
	        var inserted = [];
	        buffer.forEach(function (wrapper, i) {
	          switch (wrapper.op) {
	            case OPERATIONS.PREPEND:
	              toBePrepended.unshift(wrapper);
	              break;
	            case OPERATIONS.APPEND:
	              insertWrapperContent(wrapper, i);
	              wrapper.op = OPERATIONS.NONE;
	              inserted.push(wrapper);
	              break;
	            case OPERATIONS.INSERT:
	              promises = promises.concat(createElement(wrapper, i, viewport.insertElementAnimated));
	              wrapper.op = OPERATIONS.NONE;
	              inserted.push(wrapper);
	              break;
	            case OPERATIONS.REMOVE:
	              toBeRemoved.push(wrapper);
	          }
	        });
	        toBeRemoved.forEach(function (wrapper) {
	          return promises = promises.concat(viewport.removeItem(wrapper));
	        });
	        if (toBePrepended.length) toBePrepended.forEach(function (wrapper) {
	          insertWrapperContent(wrapper);
	          wrapper.op = OPERATIONS.NONE;
	        });
	        buffer.forEach(function (item, i) {
	          return item.scope.$index = buffer.first + i;
	        });
	        return {
	          prepended: toBePrepended,
	          removed: toBeRemoved,
	          inserted: inserted,
	          animated: promises
	        };
	      }
	      function updatePaddings(rid, updates) {
	        // schedule another doAdjust after animation completion
	        if (updates.animated.length) {
	          $q.all(updates.animated).then(function () {
	            viewport.adjustPaddings();
	            doAdjust(rid);
	          });
	        } else {
	          viewport.adjustPaddings();
	        }
	      }
	      function enqueueFetch(rid, updates) {
	        if (viewport.shouldLoadBottom()) {
	          if (!updates || buffer.effectiveHeight(updates.inserted) > 0) {
	            // this means that at least one item appended in the last batch has height > 0
	            if (pending.push(true) === 1) {
	              adapter.loading(true);
	              fetch(rid);
	            }
	          }
	        } else if (viewport.shouldLoadTop()) {
	          if (!updates || buffer.effectiveHeight(updates.prepended) > 0 || pending[0]) {
	            // this means that at least one item appended in the last batch has height > 0
	            // pending[0] = true means that previous fetch was appending. We need to force at least one prepend
	            // BTW there will always be at least 1 element in the pending array because bottom is fetched first
	            if (pending.push(false) === 1) {
	              adapter.loading(true);
	              fetch(rid);
	            }
	          }
	        }
	      }
	      function processUpdates() {
	        var updates = updateDOM();
	
	        // We need the item bindings to be processed before we can do adjustments
	        !$scope.$$phase && !$rootScope.$$phase && $scope.$digest();
	        updates.inserted.forEach(function (w) {
	          return elementRoutines.showElement(w);
	        });
	        updates.prepended.forEach(function (w) {
	          return elementRoutines.showElement(w);
	        });
	        return updates;
	      }
	      function doAdjust(rid) {
	        if (!rid) {
	          // dismiss pending requests
	          pending = [];
	          rid = ++ridActual;
	        }
	        var updates = processUpdates();
	        if (isInvalid(rid)) {
	          return;
	        }
	        updatePaddings(rid, updates);
	        enqueueFetch(rid);
	        if (!pending.length) {
	          adapter.calculateProperties();
	        }
	      }
	      function doAdjustAfterFetch(rid) {
	        var updates = processUpdates();
	        viewport.onAfterPrepend(updates);
	        if (isInvalid(rid)) {
	          return;
	        }
	        updatePaddings(rid, updates);
	        onRenderHandlersRunner();
	        enqueueFetch(rid, updates);
	        pending.shift();
	        if (pending.length) fetch(rid);else {
	          adapter.loading(false);
	          bindEvents();
	          adapter.calculateProperties();
	        }
	      }
	      function fetch(rid) {
	        if (pending[0]) {
	          // scrolling down
	          if (buffer.length && !viewport.shouldLoadBottom()) {
	            doAdjustAfterFetch(rid);
	          } else {
	            fetchNext(function (result) {
	              if (isInvalid(rid)) {
	                return;
	              }
	              if (result.length < bufferSize) {
	                buffer.eof = true;
	              }
	              if (result.length > 0) {
	                viewport.clipTop();
	                buffer.append(result);
	              }
	              doAdjustAfterFetch(rid);
	            });
	          }
	        } else {
	          // scrolling up
	          if (buffer.length && !viewport.shouldLoadTop()) {
	            doAdjustAfterFetch(rid);
	          } else {
	            fetchPrevious(function (result) {
	              if (isInvalid(rid)) {
	                return;
	              }
	              if (result.length < bufferSize) {
	                buffer.bof = true;
	                // log 'bof is reached'
	              }
	
	              if (result.length > 0) {
	                if (buffer.length) {
	                  viewport.clipBottom();
	                }
	                buffer.prepend(result);
	              }
	              doAdjustAfterFetch(rid);
	            });
	          }
	        }
	      }
	      function fixInertia() {
	        if (!viewport.synthetic) {
	          return;
	        }
	        var oldPosition = viewport.synthetic.previous;
	        var newPosition = viewport.synthetic.next;
	        if (viewport.scrollTop() !== newPosition) {
	          requestAnimationFrame(function () {
	            var position = viewport.scrollTop();
	            var diff = oldPosition - position;
	            if (diff > 0) {
	              // inertia over synthetic
	              viewport.scrollTop(newPosition - diff);
	            } else {
	              viewport.scrollTop(newPosition);
	            }
	            viewport.synthetic = null;
	          });
	          return true;
	        }
	        viewport.synthetic = null;
	      }
	      function resizeAndScrollHandler() {
	        if (handleInertia && fixInertia()) {
	          return;
	        }
	        if (!$rootScope.$$phase && !adapter.isLoading && !adapter.disabled) {
	          enqueueFetch(ridActual);
	          if (pending.length) {
	            unbindEvents();
	          } else {
	            adapter.calculateProperties();
	            !$scope.$$phase && $scope.$digest();
	          }
	        }
	      }
	      function wheelHandler(event) {
	        if (!adapter.disabled) {
	          var scrollTop = viewport[0].scrollTop;
	          var yMax = viewport[0].scrollHeight - viewport[0].clientHeight;
	          if (scrollTop === 0 && !buffer.bof || scrollTop === yMax && !buffer.eof) {
	            event.preventDefault();
	          }
	        }
	      }
	    }
	  }]);
	  /******/
	})();
	//# sourceMappingURL=ui-scroll.js.map

/***/ }),
/* 927 */
/***/ (function(module, exports) {

	'use strict';
	
	/*!
	 * angular-ui-scrollpoint
	 * https://github.com/angular-ui/ui-scrollpoint
	 * Version: 2.1.1 - 2016-02-22T01:35:08.609Z
	 * License: MIT
	 */
	
	(function () {
	  'use strict';
	  /**
	   * Adds a 'ui-scrollpoint' class to the element when the page scrolls past it's position.
	   * @param [offset] {int} optional Y-offset to override the detected offset.
	   *   Takes 300 (absolute) or -300 or +300 (relative to detected)
	   */
	
	  angular.module('ui.scrollpoint', []).directive('uiScrollpoint', ['$window', '$timeout', function ($window, $timeout) {
	    function getWindowScrollTop() {
	      if (angular.isDefined($window.pageYOffset)) {
	        return $window.pageYOffset;
	      } else {
	        var iebody = document.compatMode && document.compatMode !== 'BackCompat' ? document.documentElement : document.body;
	        return iebody.scrollTop;
	      }
	    }
	    function getWindowScrollHeight() {
	      return $window.document.body.scrollHeight - $window.innerHeight;
	    }
	    function getWindowHeight(contentHeight) {
	      return contentHeight ? $window.document.body.clientHeight : $window.innerHeight;
	    }
	    return {
	      require: ['uiScrollpoint', '^?uiScrollpointTarget'],
	      controller: function controller() {
	        var self = this;
	        this.$element = undefined;
	        this.$target = undefined;
	        this.hasTarget = false;
	
	        this.hit = undefined;
	        this.edges = { top: { top: true } }; // ui-scrollpoint on top edge of element with top edge of target
	        this.hitEdge = undefined;
	
	        this.default_edge = {
	          absolute: false,
	          percent: false,
	          shift: 0
	        };
	        this.posCache = {};
	
	        this.ready = false;
	        this.enabled = true;
	
	        this.scrollpointClass = 'ui-scrollpoint';
	        this.actions = undefined;
	
	        function parseScrollpoint(scrollpoint) {
	          var def = { shift: 0, absolute: false, percent: false };
	          if (scrollpoint && angular.isString(scrollpoint)) {
	            def.percent = scrollpoint.charAt(scrollpoint.length - 1) == '%';
	            if (def.percent) {
	              scrollpoint = scrollpoint.substr(0, scrollpoint.length - 1);
	            }
	            if (scrollpoint.charAt(0) === '-') {
	              def.absolute = def.percent;
	              def.shift = -parseFloat(scrollpoint.substr(1));
	            } else if (scrollpoint.charAt(0) === '+') {
	              def.absolute = def.percent;
	              def.shift = parseFloat(scrollpoint.substr(1));
	            } else {
	              var parsed = parseFloat(scrollpoint);
	              if (!isNaN(parsed) && isFinite(parsed)) {
	                def.absolute = true;
	                def.shift = parsed;
	              }
	            }
	          } else if (angular.isNumber(scrollpoint)) {
	            return parseScrollpoint(scrollpoint.toString());
	          }
	          return def;
	        }
	
	        this.addEdge = function (view_edge, element_edge) {
	          if (angular.isString(view_edge)) {
	            if (angular.isUndefined(element_edge)) {
	              element_edge = true;
	            }
	            if (view_edge == 'view') {
	              // view is a shorthand for matching top of element with bottom of view, and vice versa
	              this.addEdge('top', 'bottom');
	              this.addEdge('bottom', 'top');
	            } else {
	              var edge, parsedEdge;
	              if (angular.isObject(element_edge)) {
	                // the view_edge interacts with more than one element_edge
	                for (edge in element_edge) {
	                  // parse each element_edge definition (allows each element_edge to have its own scrollpoint with view_edge)
	                  if (element_edge[edge] === true) {
	                    element_edge[edge] = true; // use the ui-scrollpoint default
	                  } else {
	                    element_edge[edge] = parseScrollpoint(element_edge[edge]);
	                  }
	                }
	              } else if (element_edge == 'top' || element_edge == 'bottom') {
	                // simple top or bottom of element with 0 shift
	                edge = element_edge;
	                parsedEdge = parseScrollpoint();
	                element_edge = {};
	                element_edge[edge] = parsedEdge;
	              } else if (element_edge === true) {
	                element_edge = {};
	                element_edge[view_edge] = true; // use the ui-scrollpoint default
	              } else {
	                // element_edge matches view_edge (ie. top of element interacts with top of view)
	                parsedEdge = parseScrollpoint(element_edge);
	                element_edge = {};
	                element_edge[view_edge] = parsedEdge;
	              }
	              // element_edge has been parsed
	              this.edges[view_edge] = element_edge;
	            }
	          }
	        };
	
	        this.addAction = function (action) {
	          if (action && angular.isFunction(action)) {
	            if (angular.isUndefined(this.actions)) {
	              this.actions = [action];
	            } else if (this.actions.indexOf(action) == -1) {
	              this.actions.push(action);
	            }
	          }
	        };
	
	        this.setScrollpoint = function (scrollpoint) {
	          this.default_edge = parseScrollpoint(scrollpoint);
	        };
	
	        this.setClass = function (_class) {
	          if (!_class) {
	            _class = 'ui-scrollpoint';
	          }
	          this.scrollpointClass = _class;
	        };
	
	        this.setEdges = function (edges) {
	          // normalize uiScrollpointEdge into edges structure
	          //  edges = { ['screen_edge'] : ['element_edge' | true] }
	          if (angular.isString(edges)) {
	            this.edges = {};
	            this.addEdge(edges);
	          } else if (angular.isArray(edges)) {
	            this.edges = {};
	            for (var i = 0; i < edges.length; i++) {
	              this.addEdge(edges[i]);
	            }
	          } else if (angular.isObject(edges)) {
	            this.edges = {};
	            for (var edge in edges) {
	              this.addEdge(edge, edges[edge]);
	            }
	          } else {
	            // default
	            this.edges = {};
	            this.addEdge('top');
	          }
	        };
	
	        this.setElement = function (element) {
	          this.$element = element;
	        };
	
	        this.setTarget = function (target) {
	          if (target) {
	            this.$target = target;
	            this.hasTarget = true;
	          } else {
	            this.$target = angular.element($window);
	            this.hasTarget = false;
	          }
	        };
	
	        this.getEdge = function (scroll_edge, element_edge) {
	          if (scroll_edge && element_edge) {
	            if (this.edges[scroll_edge] && this.edges[scroll_edge][element_edge] && this.edges[scroll_edge][element_edge] !== true) {
	              return this.edges[scroll_edge][element_edge];
	            }
	          } else if (scroll_edge && !element_edge) {
	            if (this.edges[scroll_edge]) {
	              return this.edges[scroll_edge];
	            }
	            return;
	          }
	          return this.default_edge;
	        };
	
	        this.checkOffset = function (scroll_edge, elem_edge, edge) {
	          var offset;
	          if (!edge) {
	            edge = this.default_edge;
	          }
	
	          var scroll_bottom = scroll_edge == 'bottom';
	          var elem_top = elem_edge == 'top';
	          var elem_bottom = elem_edge == 'bottom';
	
	          var scrollOffset = this.getScrollOffset();
	          if (scroll_bottom) {
	            scrollOffset += this.getTargetHeight();
	          }
	
	          var checkOffset;
	          if (edge.absolute) {
	            if (edge.percent) {
	              checkOffset = edge.shift / 100.0 * this.getTargetScrollHeight();
	            } else {
	              checkOffset = edge.shift;
	            }
	            if (scroll_bottom) {
	              checkOffset = this.getTargetContentHeight() - checkOffset;
	              if (this.hasTarget) {
	                checkOffset += this.getTargetHeight();
	              }
	            }
	          } else {
	            if (elem_top) {
	              checkOffset = this.getElementTop();
	            } else if (elem_bottom) {
	              checkOffset = this.getElementBottom();
	            }
	            checkOffset += edge.shift;
	          }
	
	          offset = scrollOffset - checkOffset;
	          if (scroll_bottom) {
	            offset *= -1.0;
	          }
	          return offset;
	        };
	
	        this.scrollEdgeHit = function () {
	          var offset, edgeHit, absEdges, absEdgeHits;
	          var edge, scroll_edge, element_edge;
	          absEdges = 0;
	          absEdgeHits = {};
	          for (scroll_edge in this.edges) {
	            for (element_edge in this.edges[scroll_edge]) {
	              edge = this.getEdge(scroll_edge, element_edge);
	              var edge_offset = this.checkOffset(scroll_edge, element_edge, edge);
	
	              if (edge.absolute) {
	                if (angular.isUndefined(absEdgeHits)) {
	                  absEdgeHits = {};
	                }
	                if (angular.isUndefined(absEdgeHits[scroll_edge])) {
	                  absEdgeHits[scroll_edge] = {};
	                }
	                absEdgeHits[scroll_edge][element_edge] = edge_offset;
	                absEdges++;
	              } else if (angular.isUndefined(offset) || edge_offset > offset) {
	                offset = edge_offset;
	                edgeHit = { scroll: scroll_edge, element: element_edge };
	              }
	            }
	          }
	          // special handling for absolute edges when no relative edges hit
	          if (absEdges && !edgeHit) {
	            // in case there is more than one absolute edge, they all should pass to count a hit (allows for creating ranges where the scrollpoint is active)
	            var allPass = true;
	            offset = undefined;
	            for (scroll_edge in absEdgeHits) {
	              for (element_edge in absEdgeHits[scroll_edge]) {
	                if (absEdges > 1 && absEdgeHits[scroll_edge][element_edge] < 0) {
	                  allPass = false;
	                } else if (angular.isUndefined(offset) || absEdgeHits[scroll_edge][element_edge] > offset) {
	                  offset = absEdgeHits[scroll_edge][element_edge];
	                  edgeHit = { scroll: scroll_edge, element: element_edge };
	                }
	              }
	            }
	            if (!allPass) {
	              edgeHit = undefined;
	              offset = undefined;
	            }
	          }
	          this.hitEdge = offset >= 0 ? edgeHit : undefined;
	          return offset;
	        };
	
	        this.getScrollOffset = function () {
	          return this.hasTarget ? this.$target[0].scrollTop : getWindowScrollTop();
	        };
	        this.getTargetHeight = function () {
	          return this.hasTarget ? this.$target[0].offsetHeight : getWindowHeight();
	        };
	        this.getTargetContentHeight = function () {
	          return this.hasTarget ? this.$target[0].scrollHeight - this.$target[0].clientHeight : getWindowHeight(true);
	        };
	        this.getTargetScrollHeight = function () {
	          return this.hasTarget ? this.$target[0].scrollHeight - this.$target[0].clientHeight : getWindowScrollHeight();
	        };
	
	        this.getElementTop = function (current) {
	          if (!current && angular.isDefined(this.posCache.top)) {
	            return this.posCache.top;
	          }
	          var bounds = this.$element[0].getBoundingClientRect();
	          var top = bounds.top + this.getScrollOffset();
	
	          if (this.hasTarget) {
	            var targetBounds = this.$target[0].getBoundingClientRect();
	            top -= targetBounds.top;
	          }
	
	          return top;
	        };
	        this.getElementBottom = function (current) {
	          return this.getElementTop(current) + this.$element[0].offsetHeight;
	        };
	
	        this.cachePosition = function () {
	          this.posCache.top = this.getElementTop(true);
	        };
	
	        this.onScroll = function () {
	          if (!self.ready || !self.enabled) {
	            return;
	          }
	
	          var edgeHit = self.scrollEdgeHit();
	
	          // edgeHit >= 0 - scrollpoint is scrolled out of active view
	          // edgeHit < 0 - scrollpoint is in active view
	
	          // hit is toggled at the moment the scrollpoint is crossed
	
	          var fireActions = false;
	
	          if (edgeHit >= 0) {
	            // SCROLLPOINT is OUT by edgeHit pixels
	            if (!self.hit) {
	              // add the scrollpoint class
	              if (!self.$element.hasClass(self.scrollpointClass)) {
	                self.$element.addClass(self.scrollpointClass);
	              }
	              fireActions = true;
	              self.hit = true;
	            }
	          } else {
	            // SCROLLPOINT is IN by edgeHit pixels
	            if (self.hit || angular.isUndefined(self.hit)) {
	              // remove the scrollpoint class
	              if (self.$element.hasClass(self.scrollpointClass)) {
	                self.$element.removeClass(self.scrollpointClass);
	              }
	              fireActions = true;
	              self.hit = false;
	            }
	            self.cachePosition();
	          }
	
	          if (fireActions) {
	            // fire the actions
	            if (self.actions) {
	              for (var i = 0; i < self.actions.length; i++) {
	                self.actions[i](edgeHit, self.$element, self.hitEdge ? self.hitEdge.scroll : undefined, self.hitEdge ? self.hitEdge.element : undefined);
	              }
	            }
	          }
	        };
	
	        this.reset = function () {
	          $timeout(function () {
	            self.$element.removeClass(self.scrollpointClass);
	            self.hit = undefined;
	            self.hitEdge = undefined;
	            self.cachePosition();
	            self.onScroll();
	          });
	        };
	      },
	      link: function link(scope, elm, attrs, Ctrl) {
	        var uiScrollpoint = Ctrl[0];
	        var uiScrollpointTarget = Ctrl[1];
	        var absoluteParent = false;
	
	        uiScrollpoint.setElement(elm);
	        uiScrollpoint.setTarget(uiScrollpointTarget ? uiScrollpointTarget.$element : null);
	
	        // base ui-scrollpoint (leave blank or set to: absolute, +, -, or %)
	        attrs.$observe('uiScrollpoint', function (scrollpoint) {
	          uiScrollpoint.setScrollpoint(scrollpoint);
	          uiScrollpoint.reset();
	        });
	
	        // ui-scrollpoint-enabled allows disabling the scrollpoint
	        attrs.$observe('uiScrollpointEnabled', function (scrollpointEnabled) {
	          scrollpointEnabled = scope.$eval(scrollpointEnabled);
	          if (scrollpointEnabled != uiScrollpoint.enabled) {
	            uiScrollpoint.reset();
	          }
	          uiScrollpoint.enabled = scrollpointEnabled;
	        });
	
	        // ui-scrollpoint-absolute bypasses ui-scrollpoint-target
	        attrs.$observe('uiScrollpointAbsolute', function (scrollpointAbsolute) {
	          scrollpointAbsolute = scope.$eval(scrollpointAbsolute);
	          if (scrollpointAbsolute != absoluteParent) {
	            if (uiScrollpoint.$target) {
	              uiScrollpoint.$target.off('scroll', uiScrollpoint.onScroll);
	            }
	            uiScrollpoint.setTarget(!scrollpointAbsolute && uiScrollpointTarget ? uiScrollpointTarget.$element : null);
	            resetTarget();
	            uiScrollpoint.reset();
	          }
	          absoluteParent = scrollpointAbsolute;
	        });
	
	        // ui-scrollpoint-action function name to use as scrollpoint callback
	        attrs.$observe('uiScrollpointAction', function (uiScrollpointAction) {
	          var action = scope.$eval(uiScrollpointAction);
	          if (action && angular.isFunction(action)) {
	            uiScrollpoint.addAction(action);
	          }
	        });
	
	        // ui-scrollpoint-class class to add instead of ui-scrollpoint
	        attrs.$observe('uiScrollpointClass', function (scrollpointClass) {
	          elm.removeClass(uiScrollpoint.scrollpointClass);
	          uiScrollpoint.setClass(scrollpointClass);
	          uiScrollpoint.reset();
	        });
	
	        // ui-scrollpoint-edge allows configuring which element and scroll edges match
	        attrs.$observe('uiScrollpointEdge', function (scrollpointEdge) {
	          if (scrollpointEdge) {
	            // allowed un-$eval'ed values
	            var allowedKeywords = ['top', 'bottom', 'view'];
	            if (allowedKeywords.indexOf(scrollpointEdge) == -1) {
	              // $eval any other values
	              scrollpointEdge = scope.$eval(scrollpointEdge);
	            }
	
	            // assign it in controller
	            uiScrollpoint.setEdges(scrollpointEdge);
	            uiScrollpoint.reset();
	          }
	        });
	
	        function resetTarget() {
	          uiScrollpoint.$target.on('scroll', uiScrollpoint.onScroll);
	          scope.$on('$destroy', function () {
	            uiScrollpoint.$target.off('scroll', uiScrollpoint.onScroll);
	          });
	        }
	        resetTarget();
	        elm.ready(function () {
	          uiScrollpoint.ready = true;
	          uiScrollpoint.onScroll();
	        });
	        scope.$on('scrollpointShouldReset', uiScrollpoint.reset);
	      }
	    };
	  }]).directive('uiScrollpointTarget', [function () {
	    return {
	      controller: ['$element', function ($element) {
	        this.$element = $element;
	      }]
	    };
	  }]);
	})();

/***/ }),
/* 928 */
/***/ (function(module, exports) {

	'use strict';
	
	/*!
	 * angular-ui-uploader
	 * https://github.com/angular-ui/ui-uploader
	 * Version: 1.4.1 - 2017-04-20T06:14:06.100Z
	 * License: MIT
	 */
	
	(function () {
	  'use strict';
	  /*
	   * Author: Remy Alain Ticona Carbajal http://realtica.org
	   * Description: The main objective of ng-uploader is to have a user control,
	   * clean, simple, customizable, and above all very easy to implement.
	   * Licence: MIT
	   */
	
	  angular.module('ui.uploader', []).service('uiUploader', uiUploader);
	
	  uiUploader.$inject = ['$log'];
	
	  function uiUploader($log) {
	    /*jshint validthis: true */
	    var self = this;
	    self.files = [];
	    self.options = {};
	    self.activeUploads = 0;
	    self.uploadedFiles = 0;
	    $log.info('uiUploader loaded');
	
	    function addFiles(files) {
	      for (var i = 0; i < files.length; i++) {
	        self.files.push(files[i]);
	      }
	    }
	
	    function getFiles() {
	      return self.files;
	    }
	
	    function startUpload(options) {
	      self.options = options;
	
	      //headers are not shared by requests
	      var headers = options.headers || {};
	      var xhrOptions = options.options || {};
	
	      for (var i = 0; i < self.files.length; i++) {
	        if (self.activeUploads == self.options.concurrency) {
	          break;
	        }
	        if (self.files[i].active) continue;
	        ajaxUpload(self.files[i], self.options.url, self.options.data, self.options.paramName, headers, xhrOptions);
	      }
	    }
	
	    function removeFile(file) {
	      self.files.splice(self.files.indexOf(file), 1);
	    }
	
	    function removeAll() {
	      self.files.splice(0, self.files.length);
	    }
	
	    return {
	      addFiles: addFiles,
	      getFiles: getFiles,
	      files: self.files,
	      startUpload: startUpload,
	      removeFile: removeFile,
	      removeAll: removeAll
	    };
	
	    function getHumanSize(bytes) {
	      var sizes = ['n/a', 'bytes', 'KiB', 'MiB', 'GiB', 'TB', 'PB', 'EiB', 'ZiB', 'YiB'];
	      var i = bytes === 0 ? 0 : +Math.floor(Math.log(bytes) / Math.log(1024));
	      return (bytes / Math.pow(1024, i)).toFixed(i ? 1 : 0) + ' ' + sizes[isNaN(bytes) ? 0 : i + 1];
	    }
	
	    function ajaxUpload(file, url, data, key, headers, xhrOptions) {
	      var xhr, formData, prop;
	      data = data || {};
	      key = key || 'file';
	
	      self.activeUploads += 1;
	      file.active = true;
	      xhr = new window.XMLHttpRequest();
	
	      // To account for sites that may require CORS
	      if (xhrOptions.withCredentials === true) {
	        xhr.withCredentials = true;
	      }
	
	      formData = new window.FormData();
	      xhr.open('POST', url);
	
	      if (headers) {
	        for (var headerKey in headers) {
	          if (headers.hasOwnProperty(headerKey)) {
	            xhr.setRequestHeader(headerKey, headers[headerKey]);
	          }
	        }
	      }
	
	      // Triggered when upload starts:
	      xhr.upload.onloadstart = function () {};
	
	      // Triggered many times during upload:
	      xhr.upload.onprogress = function (event) {
	        if (!event.lengthComputable) {
	          return;
	        }
	        // Update file size because it might be bigger than reported by
	        // the fileSize:
	        //$log.info("progres..");
	        //console.info(event.loaded);
	        file.loaded = event.loaded;
	        file.humanSize = getHumanSize(event.loaded);
	        if (angular.isFunction(self.options.onProgress)) {
	          self.options.onProgress(file);
	        }
	      };
	
	      // Triggered when the upload is successful (the server may not have responded yet).
	      xhr.upload.onload = function () {
	        if (angular.isFunction(self.options.onUploadSuccess)) {
	          self.options.onUploadSuccess(file);
	        }
	      };
	
	      // Triggered when upload fails:
	      xhr.upload.onerror = function (e) {
	        if (angular.isFunction(self.options.onError)) {
	          self.options.onError(e);
	        }
	      };
	
	      // Triggered when the upload has completed AND the server has responded. Equivalent to
	      // listening for the readystatechange event when xhr.readyState === XMLHttpRequest.DONE.
	      xhr.onload = function () {
	        self.activeUploads -= 1;
	        self.uploadedFiles += 1;
	
	        startUpload(self.options);
	
	        if (angular.isFunction(self.options.onCompleted)) {
	          self.options.onCompleted(file, xhr.responseText, xhr.status);
	        }
	
	        if (self.activeUploads === 0) {
	          self.uploadedFiles = 0;
	          if (angular.isFunction(self.options.onCompletedAll)) {
	            self.options.onCompletedAll(self.files);
	          }
	        }
	      };
	
	      // Append additional data if provided:
	      if (data) {
	        for (prop in data) {
	          if (data.hasOwnProperty(prop)) {
	            formData.append(prop, data[prop]);
	          }
	        }
	      }
	
	      // Append file data:
	      formData.append(key, file, file.name);
	
	      // Initiate upload:
	      xhr.send(formData);
	
	      return xhr;
	    }
	  }
	})();

/***/ }),
/* 929 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui.utils', ['ui.scroll', 'ui.scrollpoint', 'ui.event', 'ui.mask', 'ui.validate', 'ui.indeterminate', 'ui.uploader']);

/***/ }),
/* 930 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(931);
	module.exports = 'ui.validate';

/***/ }),
/* 931 */
/***/ (function(module, exports) {

	'use strict';
	
	/*!
	 * angular-ui-validate
	 * https://github.com/angular-ui/ui-validate
	 * Version: 1.2.3 - 2017-05-18T08:04:45.422Z
	 * License: MIT
	 */
	
	(function () {
	  'use strict';
	  /**
	   * General-purpose validator for ngModel.
	   * angular.js comes with several built-in validation mechanism for input fields (ngRequired, ngPattern etc.) but using
	   * an arbitrary validation function requires creation of custom directives for interact with angular's validation mechanism.
	   * The ui-validate directive makes it easy to use any function(s) defined in scope as a validator function(s).
	   * A validator function will trigger validation on both model and input changes.
	   *
	   * This utility bring 'ui-validate' directives to handle regular validations and 'ui-validate-async' for asynchronous validations.
	   *
	   * @example <input ui-validate=" 'myValidatorFunction($value)' ">
	   * @example <input ui-validate="{ foo : '$value > anotherModel', bar : 'validateFoo($value)' }">
	   * @example <input ui-validate="{ foo : '$value > anotherModel' }" ui-validate-watch=" 'anotherModel' ">
	   * @example <input ui-validate="{ foo : '$value > anotherModel', bar : 'validateFoo($value)' }" ui-validate-watch=" { foo : 'anotherModel' } ">
	   * @example <input ui-validate-async=" 'myAsyncValidatorFunction($value)' ">
	   * @example <input ui-validate-async="{ foo: 'myAsyncValidatorFunction($value, anotherModel)' }" ui-validate-watch=" 'anotherModel' ">
	   *
	   * @param ui-validate {string|object literal} If strings is passed it should be a scope's function to be used as a validator.
	   * If an object literal is passed a key denotes a validation error key while a value should be a validator function.
	   * In both cases validator function should take a value to validate as its argument and should return true/false indicating a validation result.
	   * It is possible for a validator function to return a promise, however promises are better handled by ui-validate-async.
	   *
	   * @param ui-validate-async {string|object literal} If strings is passed it should be a scope's function to be used as a validator.
	   * If an object literal is passed a key denotes a validation error key while a value should be a validator function.
	   * Async validator function should take a value to validate as its argument and should return a promise that resolves if valid and reject if not,
	   * indicating a validation result.
	   * ui-validate-async supports non asyncronous validators. They are wrapped into a promise. Although is recomented to use ui-validate instead, since
	   * all validations declared in ui-validate-async are registered un ngModel.$asyncValidators that runs after ngModel.$validators if and only if
	   * all validators in ngModel.$validators reports as valid.
	   */
	
	  angular.module('ui.validate', []).directive('uiValidate', ['$$uiValidateApplyWatch', '$$uiValidateApplyWatchCollection', function ($$uiValidateApplyWatch, $$uiValidateApplyWatchCollection) {
	    return {
	      restrict: 'A',
	      require: 'ngModel',
	      link: function link(scope, elm, attrs, ctrl) {
	        var validateFn,
	            validateExpr = scope.$eval(attrs.uiValidate);
	
	        if (!validateExpr) {
	          return;
	        }
	
	        if (angular.isString(validateExpr)) {
	          validateExpr = {
	            validator: validateExpr
	          };
	        }
	
	        angular.forEach(validateExpr, function (exprssn, key) {
	          validateFn = function validateFn(modelValue, viewValue) {
	            // $value is left for retrocompatibility
	            var expression = scope.$eval(exprssn, {
	              $value: modelValue,
	              $modelValue: modelValue,
	              $viewValue: viewValue,
	              $name: ctrl.$name
	            });
	            // Keep support for promises for retrocompatibility
	            if (angular.isObject(expression) && angular.isFunction(expression.then)) {
	              expression.then(function () {
	                ctrl.$setValidity(key, true);
	              }, function () {
	                ctrl.$setValidity(key, false);
	              });
	              // Return as valid for now. Validity is updated when promise resolves.
	              return true;
	            } else {
	              return !!expression; // Transform 'undefined' to false (to avoid corrupting the NgModelController and the FormController)
	            }
	          };
	          ctrl.$validators[key] = validateFn;
	        });
	
	        // Support for ui-validate-watch
	        if (attrs.uiValidateWatch) {
	          $$uiValidateApplyWatch(scope, ctrl, scope.$eval(attrs.uiValidateWatch), attrs.uiValidateWatchObjectEquality);
	        }
	        if (attrs.uiValidateWatchCollection) {
	          $$uiValidateApplyWatchCollection(scope, ctrl, scope.$eval(attrs.uiValidateWatchCollection));
	        }
	      }
	    };
	  }]).directive('uiValidateAsync', ['$$uiValidateApplyWatch', '$$uiValidateApplyWatchCollection', '$timeout', '$q', function ($$uiValidateApplyWatch, $$uiValidateApplyWatchCollection, $timeout, $q) {
	    return {
	      restrict: 'A',
	      require: 'ngModel',
	      link: function link(scope, elm, attrs, ctrl) {
	        var validateFn,
	            validateExpr = scope.$eval(attrs.uiValidateAsync);
	
	        if (!validateExpr) {
	          return;
	        }
	
	        if (angular.isString(validateExpr)) {
	          validateExpr = { validatorAsync: validateExpr };
	        }
	
	        angular.forEach(validateExpr, function (exprssn, key) {
	          validateFn = function validateFn(modelValue, viewValue) {
	            // $value is left for ease of use
	            var expression = scope.$eval(exprssn, {
	              $value: modelValue,
	              $modelValue: modelValue,
	              $viewValue: viewValue,
	              $name: ctrl.$name
	            });
	            // Check if it's a promise
	            if (angular.isObject(expression) && angular.isFunction(expression.then)) {
	              return expression;
	              // Support for validate non-async validators
	            } else {
	              return $q(function (resolve, reject) {
	                setTimeout(function () {
	                  if (expression) {
	                    resolve();
	                  } else {
	                    reject();
	                  }
	                }, 0);
	              });
	            }
	          };
	          ctrl.$asyncValidators[key] = validateFn;
	        });
	
	        // Support for ui-validate-watch
	        if (attrs.uiValidateWatch) {
	          $$uiValidateApplyWatch(scope, ctrl, scope.$eval(attrs.uiValidateWatch), attrs.uiValidateWatchObjectEquality);
	        }
	        if (attrs.uiValidateWatchCollection) {
	          $$uiValidateApplyWatchCollection(scope, ctrl, scope.$eval(attrs.uiValidateWatchCollection));
	        }
	      }
	    };
	  }]).service('$$uiValidateApplyWatch', function () {
	    return function (scope, ctrl, watch, objectEquality) {
	      var watchCallback = function watchCallback() {
	        ctrl.$validate();
	      };
	
	      //string - update all validators on expression change
	      if (angular.isString(watch)) {
	        scope.$watch(watch, watchCallback, objectEquality);
	        //array - update all validators on change of any expression
	      } else if (angular.isArray(watch)) {
	        angular.forEach(watch, function (expression) {
	          scope.$watch(expression, watchCallback, objectEquality);
	        });
	        //object - update appropriate validator
	      } else if (angular.isObject(watch)) {
	        angular.forEach(watch, function (expression /*, validatorKey*/) {
	          //value is string - look after one expression
	          if (angular.isString(expression)) {
	            scope.$watch(expression, watchCallback, objectEquality);
	          }
	          //value is array - look after all expressions in array
	          if (angular.isArray(expression)) {
	            angular.forEach(expression, function (intExpression) {
	              scope.$watch(intExpression, watchCallback, objectEquality);
	            });
	          }
	        });
	      }
	    };
	  }).service('$$uiValidateApplyWatchCollection', function () {
	    return function (scope, ctrl, watch) {
	      var watchCallback = function watchCallback() {
	        ctrl.$validate();
	      };
	
	      //string - update all validators on expression change
	      if (angular.isString(watch)) {
	        scope.$watchCollection(watch, watchCallback);
	        //array - update all validators on change of any expression
	      } else if (angular.isArray(watch)) {
	        angular.forEach(watch, function (expression) {
	          scope.$watchCollection(expression, watchCallback);
	        });
	        //object - update appropriate validator
	      } else if (angular.isObject(watch)) {
	        angular.forEach(watch, function (expression /*, validatorKey*/) {
	          //value is string - look after one expression
	          if (angular.isString(expression)) {
	            scope.$watchCollection(expression, watchCallback);
	          }
	          //value is array - look after all expressions in array
	          if (angular.isArray(expression)) {
	            angular.forEach(expression, function (intExpression) {
	              scope.$watchCollection(intExpression, watchCallback);
	            });
	          }
	        });
	      }
	    };
	  });
	})();

/***/ }),
/* 932 */
/***/ (function(module, exports) {

	'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};/**
	 * @license AngularJS v1.8.2
	 * (c) 2010-2020 Google LLC. http://angularjs.org
	 * License: MIT
	 */(function(window){'use strict';/* exported
	  minErrConfig,
	  errorHandlingConfig,
	  isValidObjectMaxDepth
	*/var minErrConfig={objectMaxDepth:5,urlErrorParamsEnabled:true};/**
	 * @ngdoc function
	 * @name angular.errorHandlingConfig
	 * @module ng
	 * @kind function
	 *
	 * @description
	 * Configure several aspects of error handling in AngularJS if used as a setter or return the
	 * current configuration if used as a getter. The following options are supported:
	 *
	 * - **objectMaxDepth**: The maximum depth to which objects are traversed when stringified for error messages.
	 *
	 * Omitted or undefined options will leave the corresponding configuration values unchanged.
	 *
	 * @param {Object=} config - The configuration object. May only contain the options that need to be
	 *     updated. Supported keys:
	 *
	 * * `objectMaxDepth`  **{Number}** - The max depth for stringifying objects. Setting to a
	 *   non-positive or non-numeric value, removes the max depth limit.
	 *   Default: 5
	 *
	 * * `urlErrorParamsEnabled`  **{Boolean}** - Specifies whether the generated error url will
	 *   contain the parameters of the thrown error. Disabling the parameters can be useful if the
	 *   generated error url is very long.
	 *
	 *   Default: true. When used without argument, it returns the current value.
	 */function errorHandlingConfig(config){if(isObject(config)){if(isDefined(config.objectMaxDepth)){minErrConfig.objectMaxDepth=isValidObjectMaxDepth(config.objectMaxDepth)?config.objectMaxDepth:NaN;}if(isDefined(config.urlErrorParamsEnabled)&&isBoolean(config.urlErrorParamsEnabled)){minErrConfig.urlErrorParamsEnabled=config.urlErrorParamsEnabled;}}else{return minErrConfig;}}/**
	 * @private
	 * @param {Number} maxDepth
	 * @return {boolean}
	 */function isValidObjectMaxDepth(maxDepth){return isNumber(maxDepth)&&maxDepth>0;}/**
	 * @description
	 *
	 * This object provides a utility for producing rich Error messages within
	 * AngularJS. It can be called as follows:
	 *
	 * var exampleMinErr = minErr('example');
	 * throw exampleMinErr('one', 'This {0} is {1}', foo, bar);
	 *
	 * The above creates an instance of minErr in the example namespace. The
	 * resulting error will have a namespaced error code of example.one.  The
	 * resulting error will replace {0} with the value of foo, and {1} with the
	 * value of bar. The object is not restricted in the number of arguments it can
	 * take.
	 *
	 * If fewer arguments are specified than necessary for interpolation, the extra
	 * interpolation markers will be preserved in the final string.
	 *
	 * Since data will be parsed statically during a build step, some restrictions
	 * are applied with respect to how minErr instances are created and called.
	 * Instances should have names of the form namespaceMinErr for a minErr created
	 * using minErr('namespace'). Error codes, namespaces and template strings
	 * should all be static strings, not variables or general expressions.
	 *
	 * @param {string} module The namespace to use for the new minErr instance.
	 * @param {function} ErrorConstructor Custom error constructor to be instantiated when returning
	 *   error from returned function, for cases when a particular type of error is useful.
	 * @returns {function(code:string, template:string, ...templateArgs): Error} minErr instance
	 */function minErr(module,ErrorConstructor){ErrorConstructor=ErrorConstructor||Error;var url='https://errors.angularjs.org/1.8.2/';var regex=url.replace('.','\\.')+'[\\s\\S]*';var errRegExp=new RegExp(regex,'g');return function(){var code=arguments[0],template=arguments[1],message='['+(module?module+':':'')+code+'] ',templateArgs=sliceArgs(arguments,2).map(function(arg){return toDebugString(arg,minErrConfig.objectMaxDepth);}),paramPrefix,i;// A minErr message has two parts: the message itself and the url that contains the
	// encoded message.
	// The message's parameters can contain other error messages which also include error urls.
	// To prevent the messages from getting too long, we strip the error urls from the parameters.
	message+=template.replace(/\{\d+\}/g,function(match){var index=+match.slice(1,-1);if(index<templateArgs.length){return templateArgs[index].replace(errRegExp,'');}return match;});message+='\n'+url+(module?module+'/':'')+code;if(minErrConfig.urlErrorParamsEnabled){for(i=0,paramPrefix='?';i<templateArgs.length;i++,paramPrefix='&'){message+=paramPrefix+'p'+i+'='+encodeURIComponent(templateArgs[i]);}}return new ErrorConstructor(message);};}/* We need to tell ESLint what variables are being exported *//* exported
	  angular,
	  msie,
	  jqLite,
	  jQuery,
	  slice,
	  splice,
	  push,
	  toString,
	  minErrConfig,
	  errorHandlingConfig,
	  isValidObjectMaxDepth,
	  ngMinErr,
	  angularModule,
	  uid,
	  REGEX_STRING_REGEXP,
	  VALIDITY_STATE_PROPERTY,
	
	  lowercase,
	  uppercase,
	  nodeName_,
	  isArrayLike,
	  forEach,
	  forEachSorted,
	  reverseParams,
	  nextUid,
	  setHashKey,
	  extend,
	  toInt,
	  inherit,
	  merge,
	  noop,
	  identity,
	  valueFn,
	  isUndefined,
	  isDefined,
	  isObject,
	  isBlankObject,
	  isString,
	  isNumber,
	  isNumberNaN,
	  isDate,
	  isError,
	  isArray,
	  isFunction,
	  isRegExp,
	  isWindow,
	  isScope,
	  isFile,
	  isFormData,
	  isBlob,
	  isBoolean,
	  isPromiseLike,
	  trim,
	  escapeForRegexp,
	  isElement,
	  makeMap,
	  includes,
	  arrayRemove,
	  copy,
	  simpleCompare,
	  equals,
	  csp,
	  jq,
	  concat,
	  sliceArgs,
	  bind,
	  toJsonReplacer,
	  toJson,
	  fromJson,
	  convertTimezoneToLocal,
	  timezoneToOffset,
	  addDateMinutes,
	  startingTag,
	  tryDecodeURIComponent,
	  parseKeyValue,
	  toKeyValue,
	  encodeUriSegment,
	  encodeUriQuery,
	  angularInit,
	  bootstrap,
	  getTestability,
	  snake_case,
	  bindJQuery,
	  assertArg,
	  assertArgFn,
	  assertNotHasOwnProperty,
	  getter,
	  getBlockNodes,
	  hasOwnProperty,
	  createMap,
	  stringify,
	  UNSAFE_restoreLegacyJqLiteXHTMLReplacement,
	
	  NODE_TYPE_ELEMENT,
	  NODE_TYPE_ATTRIBUTE,
	  NODE_TYPE_TEXT,
	  NODE_TYPE_COMMENT,
	  NODE_TYPE_DOCUMENT,
	  NODE_TYPE_DOCUMENT_FRAGMENT
	*/////////////////////////////////////
	/**
	 * @ngdoc module
	 * @name ng
	 * @module ng
	 * @installation
	 * @description
	 *
	 * The ng module is loaded by default when an AngularJS application is started. The module itself
	 * contains the essential components for an AngularJS application to function. The table below
	 * lists a high level breakdown of each of the services/factories, filters, directives and testing
	 * components available within this core module.
	 *
	 */var REGEX_STRING_REGEXP=/^\/(.+)\/([a-z]*)$/;// The name of a form control's ValidityState property.
	// This is used so that it's possible for internal tests to create mock ValidityStates.
	var VALIDITY_STATE_PROPERTY='validity';var hasOwnProperty=Object.prototype.hasOwnProperty;/**
	 * @private
	 *
	 * @description Converts the specified string to lowercase.
	 * @param {string} string String to be converted to lowercase.
	 * @returns {string} Lowercased string.
	 */var lowercase=function lowercase(string){return isString(string)?string.toLowerCase():string;};/**
	 * @private
	 *
	 * @description Converts the specified string to uppercase.
	 * @param {string} string String to be converted to uppercase.
	 * @returns {string} Uppercased string.
	 */var uppercase=function uppercase(string){return isString(string)?string.toUpperCase():string;};var msie,// holds major version number for IE, or NaN if UA is not IE.
	jqLite,// delay binding since jQuery could be loaded after us.
	jQuery,// delay binding
	slice=[].slice,splice=[].splice,push=[].push,toString=Object.prototype.toString,getPrototypeOf=Object.getPrototypeOf,ngMinErr=minErr('ng'),/** @name angular */angular=window.angular||(window.angular={}),angularModule,uid=0;// Support: IE 9-11 only
	/**
	 * documentMode is an IE-only property
	 * http://msdn.microsoft.com/en-us/library/ie/cc196988(v=vs.85).aspx
	 */msie=window.document.documentMode;/**
	 * @private
	 * @param {*} obj
	 * @return {boolean} Returns true if `obj` is an array or array-like object (NodeList, Arguments,
	 *                   String ...)
	 */function isArrayLike(obj){// `null`, `undefined` and `window` are not array-like
	if(obj==null||isWindow(obj))return false;// arrays, strings and jQuery/jqLite objects are array like
	// * jqLite is either the jQuery or jqLite constructor function
	// * we have to check the existence of jqLite first as this method is called
	//   via the forEach method when constructing the jqLite object in the first place
	if(isArray(obj)||isString(obj)||jqLite&&obj instanceof jqLite)return true;// Support: iOS 8.2 (not reproducible in simulator)
	// "length" in obj used to prevent JIT error (gh-11508)
	var length='length'in Object(obj)&&obj.length;// NodeList objects (with `item` method) and
	// other objects with suitable length characteristics are array-like
	return isNumber(length)&&(length>=0&&length-1 in obj||typeof obj.item==='function');}/**
	 * @ngdoc function
	 * @name angular.forEach
	 * @module ng
	 * @kind function
	 *
	 * @description
	 * Invokes the `iterator` function once for each item in `obj` collection, which can be either an
	 * object or an array. The `iterator` function is invoked with `iterator(value, key, obj)`, where `value`
	 * is the value of an object property or an array element, `key` is the object property key or
	 * array element index and obj is the `obj` itself. Specifying a `context` for the function is optional.
	 *
	 * It is worth noting that `.forEach` does not iterate over inherited properties because it filters
	 * using the `hasOwnProperty` method.
	 *
	 * Unlike ES262's
	 * [Array.prototype.forEach](http://www.ecma-international.org/ecma-262/5.1/#sec-15.4.4.18),
	 * providing 'undefined' or 'null' values for `obj` will not throw a TypeError, but rather just
	 * return the value provided.
	 *
	   ```js
	     var values = {name: 'misko', gender: 'male'};
	     var log = [];
	     angular.forEach(values, function(value, key) {
	       this.push(key + ': ' + value);
	     }, log);
	     expect(log).toEqual(['name: misko', 'gender: male']);
	   ```
	 *
	 * @param {Object|Array} obj Object to iterate over.
	 * @param {Function} iterator Iterator function.
	 * @param {Object=} context Object to become context (`this`) for the iterator function.
	 * @returns {Object|Array} Reference to `obj`.
	 */function forEach(obj,iterator,context){var key,length;if(obj){if(isFunction(obj)){for(key in obj){if(key!=='prototype'&&key!=='length'&&key!=='name'&&obj.hasOwnProperty(key)){iterator.call(context,obj[key],key,obj);}}}else if(isArray(obj)||isArrayLike(obj)){var isPrimitive=(typeof obj==='undefined'?'undefined':_typeof(obj))!=='object';for(key=0,length=obj.length;key<length;key++){if(isPrimitive||key in obj){iterator.call(context,obj[key],key,obj);}}}else if(obj.forEach&&obj.forEach!==forEach){obj.forEach(iterator,context,obj);}else if(isBlankObject(obj)){// createMap() fast path --- Safe to avoid hasOwnProperty check because prototype chain is empty
	for(key in obj){iterator.call(context,obj[key],key,obj);}}else if(typeof obj.hasOwnProperty==='function'){// Slow path for objects inheriting Object.prototype, hasOwnProperty check needed
	for(key in obj){if(obj.hasOwnProperty(key)){iterator.call(context,obj[key],key,obj);}}}else{// Slow path for objects which do not have a method `hasOwnProperty`
	for(key in obj){if(hasOwnProperty.call(obj,key)){iterator.call(context,obj[key],key,obj);}}}}return obj;}function forEachSorted(obj,iterator,context){var keys=Object.keys(obj).sort();for(var i=0;i<keys.length;i++){iterator.call(context,obj[keys[i]],keys[i]);}return keys;}/**
	 * when using forEach the params are value, key, but it is often useful to have key, value.
	 * @param {function(string, *)} iteratorFn
	 * @returns {function(*, string)}
	 */function reverseParams(iteratorFn){return function(value,key){iteratorFn(key,value);};}/**
	 * A consistent way of creating unique IDs in angular.
	 *
	 * Using simple numbers allows us to generate 28.6 million unique ids per second for 10 years before
	 * we hit number precision issues in JavaScript.
	 *
	 * Math.pow(2,53) / 60 / 60 / 24 / 365 / 10 = 28.6M
	 *
	 * @returns {number} an unique alpha-numeric string
	 */function nextUid(){return++uid;}/**
	 * Set or clear the hashkey for an object.
	 * @param obj object
	 * @param h the hashkey (!truthy to delete the hashkey)
	 */function setHashKey(obj,h){if(h){obj.$$hashKey=h;}else{delete obj.$$hashKey;}}function baseExtend(dst,objs,deep){var h=dst.$$hashKey;for(var i=0,ii=objs.length;i<ii;++i){var obj=objs[i];if(!isObject(obj)&&!isFunction(obj))continue;var keys=Object.keys(obj);for(var j=0,jj=keys.length;j<jj;j++){var key=keys[j];var src=obj[key];if(deep&&isObject(src)){if(isDate(src)){dst[key]=new Date(src.valueOf());}else if(isRegExp(src)){dst[key]=new RegExp(src);}else if(src.nodeName){dst[key]=src.cloneNode(true);}else if(isElement(src)){dst[key]=src.clone();}else{if(key!=='__proto__'){if(!isObject(dst[key]))dst[key]=isArray(src)?[]:{};baseExtend(dst[key],[src],true);}}}else{dst[key]=src;}}}setHashKey(dst,h);return dst;}/**
	 * @ngdoc function
	 * @name angular.extend
	 * @module ng
	 * @kind function
	 *
	 * @description
	 * Extends the destination object `dst` by copying own enumerable properties from the `src` object(s)
	 * to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so
	 * by passing an empty object as the target: `var object = angular.extend({}, object1, object2)`.
	 *
	 * **Note:** Keep in mind that `angular.extend` does not support recursive merge (deep copy). Use
	 * {@link angular.merge} for this.
	 *
	 * @param {Object} dst Destination object.
	 * @param {...Object} src Source object(s).
	 * @returns {Object} Reference to `dst`.
	 */function extend(dst){return baseExtend(dst,slice.call(arguments,1),false);}/**
	* @ngdoc function
	* @name angular.merge
	* @module ng
	* @kind function
	*
	* @description
	* Deeply extends the destination object `dst` by copying own enumerable properties from the `src` object(s)
	* to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so
	* by passing an empty object as the target: `var object = angular.merge({}, object1, object2)`.
	*
	* Unlike {@link angular.extend extend()}, `merge()` recursively descends into object properties of source
	* objects, performing a deep copy.
	*
	* @deprecated
	* sinceVersion="1.6.5"
	* This function is deprecated, but will not be removed in the 1.x lifecycle.
	* There are edge cases (see {@link angular.merge#known-issues known issues}) that are not
	* supported by this function. We suggest using another, similar library for all-purpose merging,
	* such as [lodash's merge()](https://lodash.com/docs/4.17.4#merge).
	*
	* @knownIssue
	* This is a list of (known) object types that are not handled correctly by this function:
	* - [`Blob`](https://developer.mozilla.org/docs/Web/API/Blob)
	* - [`MediaStream`](https://developer.mozilla.org/docs/Web/API/MediaStream)
	* - [`CanvasGradient`](https://developer.mozilla.org/docs/Web/API/CanvasGradient)
	* - AngularJS {@link $rootScope.Scope scopes};
	*
	* `angular.merge` also does not support merging objects with circular references.
	*
	* @param {Object} dst Destination object.
	* @param {...Object} src Source object(s).
	* @returns {Object} Reference to `dst`.
	*/function merge(dst){return baseExtend(dst,slice.call(arguments,1),true);}function toInt(str){return parseInt(str,10);}var isNumberNaN=Number.isNaN||function isNumberNaN(num){// eslint-disable-next-line no-self-compare
	return num!==num;};function inherit(parent,extra){return extend(Object.create(parent),extra);}/**
	 * @ngdoc function
	 * @name angular.noop
	 * @module ng
	 * @kind function
	 *
	 * @description
	 * A function that performs no operations. This function can be useful when writing code in the
	 * functional style.
	   ```js
	     function foo(callback) {
	       var result = calculateResult();
	       (callback || angular.noop)(result);
	     }
	   ```
	 */function noop(){}noop.$inject=[];/**
	 * @ngdoc function
	 * @name angular.identity
	 * @module ng
	 * @kind function
	 *
	 * @description
	 * A function that returns its first argument. This function is useful when writing code in the
	 * functional style.
	 *
	   ```js
	   function transformer(transformationFn, value) {
	     return (transformationFn || angular.identity)(value);
	   };
	
	   // E.g.
	   function getResult(fn, input) {
	     return (fn || angular.identity)(input);
	   };
	
	   getResult(function(n) { return n * 2; }, 21);   // returns 42
	   getResult(null, 21);                            // returns 21
	   getResult(undefined, 21);                       // returns 21
	   ```
	 *
	 * @param {*} value to be returned.
	 * @returns {*} the value passed in.
	 */function identity($){return $;}identity.$inject=[];function valueFn(value){return function valueRef(){return value;};}function hasCustomToString(obj){return isFunction(obj.toString)&&obj.toString!==toString;}/**
	 * @ngdoc function
	 * @name angular.isUndefined
	 * @module ng
	 * @kind function
	 *
	 * @description
	 * Determines if a reference is undefined.
	 *
	 * @param {*} value Reference to check.
	 * @returns {boolean} True if `value` is undefined.
	 */function isUndefined(value){return typeof value==='undefined';}/**
	 * @ngdoc function
	 * @name angular.isDefined
	 * @module ng
	 * @kind function
	 *
	 * @description
	 * Determines if a reference is defined.
	 *
	 * @param {*} value Reference to check.
	 * @returns {boolean} True if `value` is defined.
	 */function isDefined(value){return typeof value!=='undefined';}/**
	 * @ngdoc function
	 * @name angular.isObject
	 * @module ng
	 * @kind function
	 *
	 * @description
	 * Determines if a reference is an `Object`. Unlike `typeof` in JavaScript, `null`s are not
	 * considered to be objects. Note that JavaScript arrays are objects.
	 *
	 * @param {*} value Reference to check.
	 * @returns {boolean} True if `value` is an `Object` but not `null`.
	 */function isObject(value){// http://jsperf.com/isobject4
	return value!==null&&(typeof value==='undefined'?'undefined':_typeof(value))==='object';}/**
	 * Determine if a value is an object with a null prototype
	 *
	 * @returns {boolean} True if `value` is an `Object` with a null prototype
	 */function isBlankObject(value){return value!==null&&(typeof value==='undefined'?'undefined':_typeof(value))==='object'&&!getPrototypeOf(value);}/**
	 * @ngdoc function
	 * @name angular.isString
	 * @module ng
	 * @kind function
	 *
	 * @description
	 * Determines if a reference is a `String`.
	 *
	 * @param {*} value Reference to check.
	 * @returns {boolean} True if `value` is a `String`.
	 */function isString(value){return typeof value==='string';}/**
	 * @ngdoc function
	 * @name angular.isNumber
	 * @module ng
	 * @kind function
	 *
	 * @description
	 * Determines if a reference is a `Number`.
	 *
	 * This includes the "special" numbers `NaN`, `+Infinity` and `-Infinity`.
	 *
	 * If you wish to exclude these then you can use the native
	 * [`isFinite'](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isFinite)
	 * method.
	 *
	 * @param {*} value Reference to check.
	 * @returns {boolean} True if `value` is a `Number`.
	 */function isNumber(value){return typeof value==='number';}/**
	 * @ngdoc function
	 * @name angular.isDate
	 * @module ng
	 * @kind function
	 *
	 * @description
	 * Determines if a value is a date.
	 *
	 * @param {*} value Reference to check.
	 * @returns {boolean} True if `value` is a `Date`.
	 */function isDate(value){return toString.call(value)==='[object Date]';}/**
	 * @ngdoc function
	 * @name angular.isArray
	 * @module ng
	 * @kind function
	 *
	 * @description
	 * Determines if a reference is an `Array`.
	 *
	 * @param {*} value Reference to check.
	 * @returns {boolean} True if `value` is an `Array`.
	 */function isArray(arr){return Array.isArray(arr)||arr instanceof Array;}/**
	 * @description
	 * Determines if a reference is an `Error`.
	 * Loosely based on https://www.npmjs.com/package/iserror
	 *
	 * @param {*} value Reference to check.
	 * @returns {boolean} True if `value` is an `Error`.
	 */function isError(value){var tag=toString.call(value);switch(tag){case'[object Error]':return true;case'[object Exception]':return true;case'[object DOMException]':return true;default:return value instanceof Error;}}/**
	 * @ngdoc function
	 * @name angular.isFunction
	 * @module ng
	 * @kind function
	 *
	 * @description
	 * Determines if a reference is a `Function`.
	 *
	 * @param {*} value Reference to check.
	 * @returns {boolean} True if `value` is a `Function`.
	 */function isFunction(value){return typeof value==='function';}/**
	 * Determines if a value is a regular expression object.
	 *
	 * @private
	 * @param {*} value Reference to check.
	 * @returns {boolean} True if `value` is a `RegExp`.
	 */function isRegExp(value){return toString.call(value)==='[object RegExp]';}/**
	 * Checks if `obj` is a window object.
	 *
	 * @private
	 * @param {*} obj Object to check
	 * @returns {boolean} True if `obj` is a window obj.
	 */function isWindow(obj){return obj&&obj.window===obj;}function isScope(obj){return obj&&obj.$evalAsync&&obj.$watch;}function isFile(obj){return toString.call(obj)==='[object File]';}function isFormData(obj){return toString.call(obj)==='[object FormData]';}function isBlob(obj){return toString.call(obj)==='[object Blob]';}function isBoolean(value){return typeof value==='boolean';}function isPromiseLike(obj){return obj&&isFunction(obj.then);}var TYPED_ARRAY_REGEXP=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/;function isTypedArray(value){return value&&isNumber(value.length)&&TYPED_ARRAY_REGEXP.test(toString.call(value));}function isArrayBuffer(obj){return toString.call(obj)==='[object ArrayBuffer]';}var trim=function trim(value){return isString(value)?value.trim():value;};// Copied from:
	// http://docs.closure-library.googlecode.com/git/local_closure_goog_string_string.js.source.html#line1021
	// Prereq: s is a string.
	var escapeForRegexp=function escapeForRegexp(s){return s.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,'\\$1')// eslint-disable-next-line no-control-regex
	.replace(/\x08/g,'\\x08');};/**
	 * @ngdoc function
	 * @name angular.isElement
	 * @module ng
	 * @kind function
	 *
	 * @description
	 * Determines if a reference is a DOM element (or wrapped jQuery element).
	 *
	 * @param {*} value Reference to check.
	 * @returns {boolean} True if `value` is a DOM element (or wrapped jQuery element).
	 */function isElement(node){return!!(node&&(node.nodeName// We are a direct element.
	||node.prop&&node.attr&&node.find));// We have an on and find method part of jQuery API.
	}/**
	 * @param str 'key1,key2,...'
	 * @returns {object} in the form of {key1:true, key2:true, ...}
	 */function makeMap(str){var obj={},items=str.split(','),i;for(i=0;i<items.length;i++){obj[items[i]]=true;}return obj;}function nodeName_(element){return lowercase(element.nodeName||element[0]&&element[0].nodeName);}function includes(array,obj){return Array.prototype.indexOf.call(array,obj)!==-1;}function arrayRemove(array,value){var index=array.indexOf(value);if(index>=0){array.splice(index,1);}return index;}/**
	 * @ngdoc function
	 * @name angular.copy
	 * @module ng
	 * @kind function
	 *
	 * @description
	 * Creates a deep copy of `source`, which should be an object or an array. This functions is used
	 * internally, mostly in the change-detection code. It is not intended as an all-purpose copy
	 * function, and has several limitations (see below).
	 *
	 * * If no destination is supplied, a copy of the object or array is created.
	 * * If a destination is provided, all of its elements (for arrays) or properties (for objects)
	 *   are deleted and then all elements/properties from the source are copied to it.
	 * * If `source` is not an object or array (inc. `null` and `undefined`), `source` is returned.
	 * * If `source` is identical to `destination` an exception will be thrown.
	 *
	 * <br />
	 *
	 * <div class="alert alert-warning">
	 *   Only enumerable properties are taken into account. Non-enumerable properties (both on `source`
	 *   and on `destination`) will be ignored.
	 * </div>
	 *
	 * <div class="alert alert-warning">
	 *   `angular.copy` does not check if destination and source are of the same type. It's the
	 *   developer's responsibility to make sure they are compatible.
	 * </div>
	 *
	 * @knownIssue
	 * This is a non-exhaustive list of object types / features that are not handled correctly by
	 * `angular.copy`. Note that since this functions is used by the change detection code, this
	 * means binding or watching objects of these types (or that include these types) might not work
	 * correctly.
	 * - [`File`](https://developer.mozilla.org/docs/Web/API/File)
	 * - [`Map`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map)
	 * - [`ImageData`](https://developer.mozilla.org/docs/Web/API/ImageData)
	 * - [`MediaStream`](https://developer.mozilla.org/docs/Web/API/MediaStream)
	 * - [`Set`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)
	 * - [`WeakMap`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WeakMap)
	 * - [`getter`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get)/
	 *   [`setter`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/set)
	 *
	 * @param {*} source The source that will be used to make a copy. Can be any type, including
	 *     primitives, `null`, and `undefined`.
	 * @param {(Object|Array)=} destination Destination into which the source is copied. If provided,
	 *     must be of the same type as `source`.
	 * @returns {*} The copy or updated `destination`, if `destination` was specified.
	 *
	 * @example
	  <example module="copyExample" name="angular-copy">
	    <file name="index.html">
	      <div ng-controller="ExampleController">
	        <form novalidate class="simple-form">
	          <label>Name: <input type="text" ng-model="user.name" /></label><br />
	          <label>Age:  <input type="number" ng-model="user.age" /></label><br />
	          Gender: <label><input type="radio" ng-model="user.gender" value="male" />male</label>
	                  <label><input type="radio" ng-model="user.gender" value="female" />female</label><br />
	          <button ng-click="reset()">RESET</button>
	          <button ng-click="update(user)">SAVE</button>
	        </form>
	        <pre>form = {{user | json}}</pre>
	        <pre>leader = {{leader | json}}</pre>
	      </div>
	    </file>
	    <file name="script.js">
	      // Module: copyExample
	      angular.
	        module('copyExample', []).
	        controller('ExampleController', ['$scope', function($scope) {
	          $scope.leader = {};
	
	          $scope.reset = function() {
	            // Example with 1 argument
	            $scope.user = angular.copy($scope.leader);
	          };
	
	          $scope.update = function(user) {
	            // Example with 2 arguments
	            angular.copy(user, $scope.leader);
	          };
	
	          $scope.reset();
	        }]);
	    </file>
	  </example>
	 */function copy(source,destination,maxDepth){var stackSource=[];var stackDest=[];maxDepth=isValidObjectMaxDepth(maxDepth)?maxDepth:NaN;if(destination){if(isTypedArray(destination)||isArrayBuffer(destination)){throw ngMinErr('cpta','Can\'t copy! TypedArray destination cannot be mutated.');}if(source===destination){throw ngMinErr('cpi','Can\'t copy! Source and destination are identical.');}// Empty the destination object
	if(isArray(destination)){destination.length=0;}else{forEach(destination,function(value,key){if(key!=='$$hashKey'){delete destination[key];}});}stackSource.push(source);stackDest.push(destination);return copyRecurse(source,destination,maxDepth);}return copyElement(source,maxDepth);function copyRecurse(source,destination,maxDepth){maxDepth--;if(maxDepth<0){return'...';}var h=destination.$$hashKey;var key;if(isArray(source)){for(var i=0,ii=source.length;i<ii;i++){destination.push(copyElement(source[i],maxDepth));}}else if(isBlankObject(source)){// createMap() fast path --- Safe to avoid hasOwnProperty check because prototype chain is empty
	for(key in source){destination[key]=copyElement(source[key],maxDepth);}}else if(source&&typeof source.hasOwnProperty==='function'){// Slow path, which must rely on hasOwnProperty
	for(key in source){if(source.hasOwnProperty(key)){destination[key]=copyElement(source[key],maxDepth);}}}else{// Slowest path --- hasOwnProperty can't be called as a method
	for(key in source){if(hasOwnProperty.call(source,key)){destination[key]=copyElement(source[key],maxDepth);}}}setHashKey(destination,h);return destination;}function copyElement(source,maxDepth){// Simple values
	if(!isObject(source)){return source;}// Already copied values
	var index=stackSource.indexOf(source);if(index!==-1){return stackDest[index];}if(isWindow(source)||isScope(source)){throw ngMinErr('cpws','Can\'t copy! Making copies of Window or Scope instances is not supported.');}var needsRecurse=false;var destination=copyType(source);if(destination===undefined){destination=isArray(source)?[]:Object.create(getPrototypeOf(source));needsRecurse=true;}stackSource.push(source);stackDest.push(destination);return needsRecurse?copyRecurse(source,destination,maxDepth):destination;}function copyType(source){switch(toString.call(source)){case'[object Int8Array]':case'[object Int16Array]':case'[object Int32Array]':case'[object Float32Array]':case'[object Float64Array]':case'[object Uint8Array]':case'[object Uint8ClampedArray]':case'[object Uint16Array]':case'[object Uint32Array]':return new source.constructor(copyElement(source.buffer),source.byteOffset,source.length);case'[object ArrayBuffer]':// Support: IE10
	if(!source.slice){// If we're in this case we know the environment supports ArrayBuffer
	/* eslint-disable no-undef */var copied=new ArrayBuffer(source.byteLength);new Uint8Array(copied).set(new Uint8Array(source));/* eslint-enable */return copied;}return source.slice(0);case'[object Boolean]':case'[object Number]':case'[object String]':case'[object Date]':return new source.constructor(source.valueOf());case'[object RegExp]':var re=new RegExp(source.source,source.toString().match(/[^/]*$/)[0]);re.lastIndex=source.lastIndex;return re;case'[object Blob]':return new source.constructor([source],{type:source.type});}if(isFunction(source.cloneNode)){return source.cloneNode(true);}}}// eslint-disable-next-line no-self-compare
	function simpleCompare(a,b){return a===b||a!==a&&b!==b;}/**
	 * @ngdoc function
	 * @name angular.equals
	 * @module ng
	 * @kind function
	 *
	 * @description
	 * Determines if two objects or two values are equivalent. Supports value types, regular
	 * expressions, arrays and objects.
	 *
	 * Two objects or values are considered equivalent if at least one of the following is true:
	 *
	 * * Both objects or values pass `===` comparison.
	 * * Both objects or values are of the same type and all of their properties are equal by
	 *   comparing them with `angular.equals`.
	 * * Both values are NaN. (In JavaScript, NaN == NaN => false. But we consider two NaN as equal)
	 * * Both values represent the same regular expression (In JavaScript,
	 *   /abc/ == /abc/ => false. But we consider two regular expressions as equal when their textual
	 *   representation matches).
	 *
	 * During a property comparison, properties of `function` type and properties with names
	 * that begin with `$` are ignored.
	 *
	 * Scope and DOMWindow objects are being compared only by identify (`===`).
	 *
	 * @param {*} o1 Object or value to compare.
	 * @param {*} o2 Object or value to compare.
	 * @returns {boolean} True if arguments are equal.
	 *
	 * @example
	   <example module="equalsExample" name="equalsExample">
	     <file name="index.html">
	      <div ng-controller="ExampleController">
	        <form novalidate>
	          <h3>User 1</h3>
	          Name: <input type="text" ng-model="user1.name">
	          Age: <input type="number" ng-model="user1.age">
	
	          <h3>User 2</h3>
	          Name: <input type="text" ng-model="user2.name">
	          Age: <input type="number" ng-model="user2.age">
	
	          <div>
	            <br/>
	            <input type="button" value="Compare" ng-click="compare()">
	          </div>
	          User 1: <pre>{{user1 | json}}</pre>
	          User 2: <pre>{{user2 | json}}</pre>
	          Equal: <pre>{{result}}</pre>
	        </form>
	      </div>
	    </file>
	    <file name="script.js">
	        angular.module('equalsExample', []).controller('ExampleController', ['$scope', function($scope) {
	          $scope.user1 = {};
	          $scope.user2 = {};
	          $scope.compare = function() {
	            $scope.result = angular.equals($scope.user1, $scope.user2);
	          };
	        }]);
	    </file>
	  </example>
	 */function equals(o1,o2){if(o1===o2)return true;if(o1===null||o2===null)return false;// eslint-disable-next-line no-self-compare
	if(o1!==o1&&o2!==o2)return true;// NaN === NaN
	var t1=typeof o1==='undefined'?'undefined':_typeof(o1),t2=typeof o2==='undefined'?'undefined':_typeof(o2),length,key,keySet;if(t1===t2&&t1==='object'){if(isArray(o1)){if(!isArray(o2))return false;if((length=o1.length)===o2.length){for(key=0;key<length;key++){if(!equals(o1[key],o2[key]))return false;}return true;}}else if(isDate(o1)){if(!isDate(o2))return false;return simpleCompare(o1.getTime(),o2.getTime());}else if(isRegExp(o1)){if(!isRegExp(o2))return false;return o1.toString()===o2.toString();}else{if(isScope(o1)||isScope(o2)||isWindow(o1)||isWindow(o2)||isArray(o2)||isDate(o2)||isRegExp(o2))return false;keySet=createMap();for(key in o1){if(key.charAt(0)==='$'||isFunction(o1[key]))continue;if(!equals(o1[key],o2[key]))return false;keySet[key]=true;}for(key in o2){if(!(key in keySet)&&key.charAt(0)!=='$'&&isDefined(o2[key])&&!isFunction(o2[key]))return false;}return true;}}return false;}var csp=function csp(){if(!isDefined(csp.rules)){var ngCspElement=window.document.querySelector('[ng-csp]')||window.document.querySelector('[data-ng-csp]');if(ngCspElement){var ngCspAttribute=ngCspElement.getAttribute('ng-csp')||ngCspElement.getAttribute('data-ng-csp');csp.rules={noUnsafeEval:!ngCspAttribute||ngCspAttribute.indexOf('no-unsafe-eval')!==-1,noInlineStyle:!ngCspAttribute||ngCspAttribute.indexOf('no-inline-style')!==-1};}else{csp.rules={noUnsafeEval:noUnsafeEval(),noInlineStyle:false};}}return csp.rules;function noUnsafeEval(){try{// eslint-disable-next-line no-new, no-new-func
	new Function('');return false;}catch(e){return true;}}};/**
	 * @ngdoc directive
	 * @module ng
	 * @name ngJq
	 *
	 * @element ANY
	 * @param {string=} ngJq the name of the library available under `window`
	 * to be used for angular.element
	 * @description
	 * Use this directive to force the angular.element library.  This should be
	 * used to force either jqLite by leaving ng-jq blank or setting the name of
	 * the jquery variable under window (eg. jQuery).
	 *
	 * Since AngularJS looks for this directive when it is loaded (doesn't wait for the
	 * DOMContentLoaded event), it must be placed on an element that comes before the script
	 * which loads angular. Also, only the first instance of `ng-jq` will be used and all
	 * others ignored.
	 *
	 * @example
	 * This example shows how to force jqLite using the `ngJq` directive to the `html` tag.
	 ```html
	 <!doctype html>
	 <html ng-app ng-jq>
	 ...
	 ...
	 </html>
	 ```
	 * @example
	 * This example shows how to use a jQuery based library of a different name.
	 * The library name must be available at the top most 'window'.
	 ```html
	 <!doctype html>
	 <html ng-app ng-jq="jQueryLib">
	 ...
	 ...
	 </html>
	 ```
	 */var jq=function jq(){if(isDefined(jq.name_))return jq.name_;var el;var i,ii=ngAttrPrefixes.length,prefix,name;for(i=0;i<ii;++i){prefix=ngAttrPrefixes[i];el=window.document.querySelector('['+prefix.replace(':','\\:')+'jq]');if(el){name=el.getAttribute(prefix+'jq');break;}}return jq.name_=name;};function concat(array1,array2,index){return array1.concat(slice.call(array2,index));}function sliceArgs(args,startIndex){return slice.call(args,startIndex||0);}/**
	 * @ngdoc function
	 * @name angular.bind
	 * @module ng
	 * @kind function
	 *
	 * @description
	 * Returns a function which calls function `fn` bound to `self` (`self` becomes the `this` for
	 * `fn`). You can supply optional `args` that are prebound to the function. This feature is also
	 * known as [partial application](http://en.wikipedia.org/wiki/Partial_application), as
	 * distinguished from [function currying](http://en.wikipedia.org/wiki/Currying#Contrast_with_partial_function_application).
	 *
	 * @param {Object} self Context which `fn` should be evaluated in.
	 * @param {function()} fn Function to be bound.
	 * @param {...*} args Optional arguments to be prebound to the `fn` function call.
	 * @returns {function()} Function that wraps the `fn` with all the specified bindings.
	 */function bind(self,fn){var curryArgs=arguments.length>2?sliceArgs(arguments,2):[];if(isFunction(fn)&&!(fn instanceof RegExp)){return curryArgs.length?function(){return arguments.length?fn.apply(self,concat(curryArgs,arguments,0)):fn.apply(self,curryArgs);}:function(){return arguments.length?fn.apply(self,arguments):fn.call(self);};}else{// In IE, native methods are not functions so they cannot be bound (note: they don't need to be).
	return fn;}}function toJsonReplacer(key,value){var val=value;if(typeof key==='string'&&key.charAt(0)==='$'&&key.charAt(1)==='$'){val=undefined;}else if(isWindow(value)){val='$WINDOW';}else if(value&&window.document===value){val='$DOCUMENT';}else if(isScope(value)){val='$SCOPE';}return val;}/**
	 * @ngdoc function
	 * @name angular.toJson
	 * @module ng
	 * @kind function
	 *
	 * @description
	 * Serializes input into a JSON-formatted string. Properties with leading $$ characters will be
	 * stripped since AngularJS uses this notation internally.
	 *
	 * @param {Object|Array|Date|string|number|boolean} obj Input to be serialized into JSON.
	 * @param {boolean|number} [pretty=2] If set to true, the JSON output will contain newlines and whitespace.
	 *    If set to an integer, the JSON output will contain that many spaces per indentation.
	 * @returns {string|undefined} JSON-ified string representing `obj`.
	 * @knownIssue
	 *
	 * The Safari browser throws a `RangeError` instead of returning `null` when it tries to stringify a `Date`
	 * object with an invalid date value. The only reliable way to prevent this is to monkeypatch the
	 * `Date.prototype.toJSON` method as follows:
	 *
	 * ```
	 * var _DatetoJSON = Date.prototype.toJSON;
	 * Date.prototype.toJSON = function() {
	 *   try {
	 *     return _DatetoJSON.call(this);
	 *   } catch(e) {
	 *     if (e instanceof RangeError) {
	 *       return null;
	 *     }
	 *     throw e;
	 *   }
	 * };
	 * ```
	 *
	 * See https://github.com/angular/angular.js/pull/14221 for more information.
	 */function toJson(obj,pretty){if(isUndefined(obj))return undefined;if(!isNumber(pretty)){pretty=pretty?2:null;}return JSON.stringify(obj,toJsonReplacer,pretty);}/**
	 * @ngdoc function
	 * @name angular.fromJson
	 * @module ng
	 * @kind function
	 *
	 * @description
	 * Deserializes a JSON string.
	 *
	 * @param {string} json JSON string to deserialize.
	 * @returns {Object|Array|string|number} Deserialized JSON string.
	 */function fromJson(json){return isString(json)?JSON.parse(json):json;}var ALL_COLONS=/:/g;function timezoneToOffset(timezone,fallback){// Support: IE 9-11 only, Edge 13-15+
	// IE/Edge do not "understand" colon (`:`) in timezone
	timezone=timezone.replace(ALL_COLONS,'');var requestedTimezoneOffset=Date.parse('Jan 01, 1970 00:00:00 '+timezone)/60000;return isNumberNaN(requestedTimezoneOffset)?fallback:requestedTimezoneOffset;}function addDateMinutes(date,minutes){date=new Date(date.getTime());date.setMinutes(date.getMinutes()+minutes);return date;}function convertTimezoneToLocal(date,timezone,reverse){reverse=reverse?-1:1;var dateTimezoneOffset=date.getTimezoneOffset();var timezoneOffset=timezoneToOffset(timezone,dateTimezoneOffset);return addDateMinutes(date,reverse*(timezoneOffset-dateTimezoneOffset));}/**
	 * @returns {string} Returns the string representation of the element.
	 */function startingTag(element){element=jqLite(element).clone().empty();var elemHtml=jqLite('<div></div>').append(element).html();try{return element[0].nodeType===NODE_TYPE_TEXT?lowercase(elemHtml):elemHtml.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(match,nodeName){return'<'+lowercase(nodeName);});}catch(e){return lowercase(elemHtml);}}/////////////////////////////////////////////////
	/**
	 * Tries to decode the URI component without throwing an exception.
	 *
	 * @private
	 * @param str value potential URI component to check.
	 * @returns {boolean} True if `value` can be decoded
	 * with the decodeURIComponent function.
	 */function tryDecodeURIComponent(value){try{return decodeURIComponent(value);}catch(e){// Ignore any invalid uri component.
	}}/**
	 * Parses an escaped url query string into key-value pairs.
	 * @returns {Object.<string,boolean|Array>}
	 */function parseKeyValue(/**string*/keyValue){var obj={};forEach((keyValue||'').split('&'),function(keyValue){var splitPoint,key,val;if(keyValue){key=keyValue=keyValue.replace(/\+/g,'%20');splitPoint=keyValue.indexOf('=');if(splitPoint!==-1){key=keyValue.substring(0,splitPoint);val=keyValue.substring(splitPoint+1);}key=tryDecodeURIComponent(key);if(isDefined(key)){val=isDefined(val)?tryDecodeURIComponent(val):true;if(!hasOwnProperty.call(obj,key)){obj[key]=val;}else if(isArray(obj[key])){obj[key].push(val);}else{obj[key]=[obj[key],val];}}}});return obj;}function toKeyValue(obj){var parts=[];forEach(obj,function(value,key){if(isArray(value)){forEach(value,function(arrayValue){parts.push(encodeUriQuery(key,true)+(arrayValue===true?'':'='+encodeUriQuery(arrayValue,true)));});}else{parts.push(encodeUriQuery(key,true)+(value===true?'':'='+encodeUriQuery(value,true)));}});return parts.length?parts.join('&'):'';}/**
	 * We need our custom method because encodeURIComponent is too aggressive and doesn't follow
	 * http://www.ietf.org/rfc/rfc3986.txt with regards to the character set (pchar) allowed in path
	 * segments:
	 *    segment       = *pchar
	 *    pchar         = unreserved / pct-encoded / sub-delims / ":" / "@"
	 *    pct-encoded   = "%" HEXDIG HEXDIG
	 *    unreserved    = ALPHA / DIGIT / "-" / "." / "_" / "~"
	 *    sub-delims    = "!" / "$" / "&" / "'" / "(" / ")"
	 *                     / "*" / "+" / "," / ";" / "="
	 */function encodeUriSegment(val){return encodeUriQuery(val,true).replace(/%26/gi,'&').replace(/%3D/gi,'=').replace(/%2B/gi,'+');}/**
	 * This method is intended for encoding *key* or *value* parts of query component. We need a custom
	 * method because encodeURIComponent is too aggressive and encodes stuff that doesn't have to be
	 * encoded per http://tools.ietf.org/html/rfc3986:
	 *    query         = *( pchar / "/" / "?" )
	 *    pchar         = unreserved / pct-encoded / sub-delims / ":" / "@"
	 *    unreserved    = ALPHA / DIGIT / "-" / "." / "_" / "~"
	 *    pct-encoded   = "%" HEXDIG HEXDIG
	 *    sub-delims    = "!" / "$" / "&" / "'" / "(" / ")"
	 *                     / "*" / "+" / "," / ";" / "="
	 */function encodeUriQuery(val,pctEncodeSpaces){return encodeURIComponent(val).replace(/%40/gi,'@').replace(/%3A/gi,':').replace(/%24/g,'$').replace(/%2C/gi,',').replace(/%3B/gi,';').replace(/%20/g,pctEncodeSpaces?'%20':'+');}var ngAttrPrefixes=['ng-','data-ng-','ng:','x-ng-'];function getNgAttribute(element,ngAttr){var attr,i,ii=ngAttrPrefixes.length;for(i=0;i<ii;++i){attr=ngAttrPrefixes[i]+ngAttr;if(isString(attr=element.getAttribute(attr))){return attr;}}return null;}function allowAutoBootstrap(document){var script=document.currentScript;if(!script){// Support: IE 9-11 only
	// IE does not have `document.currentScript`
	return true;}// If the `currentScript` property has been clobbered just return false, since this indicates a probable attack
	if(!(script instanceof window.HTMLScriptElement||script instanceof window.SVGScriptElement)){return false;}var attributes=script.attributes;var srcs=[attributes.getNamedItem('src'),attributes.getNamedItem('href'),attributes.getNamedItem('xlink:href')];return srcs.every(function(src){if(!src){return true;}if(!src.value){return false;}var link=document.createElement('a');link.href=src.value;if(document.location.origin===link.origin){// Same-origin resources are always allowed, even for banned URL schemes.
	return true;}// Disabled bootstrapping unless angular.js was loaded from a known scheme used on the web.
	// This is to prevent angular.js bundled with browser extensions from being used to bypass the
	// content security policy in web pages and other browser extensions.
	switch(link.protocol){case'http:':case'https:':case'ftp:':case'blob:':case'file:':case'data:':return true;default:return false;}});}// Cached as it has to run during loading so that document.currentScript is available.
	var isAutoBootstrapAllowed=allowAutoBootstrap(window.document);/**
	 * @ngdoc directive
	 * @name ngApp
	 * @module ng
	 *
	 * @element ANY
	 * @param {angular.Module} ngApp an optional application
	 *   {@link angular.module module} name to load.
	 * @param {boolean=} ngStrictDi if this attribute is present on the app element, the injector will be
	 *   created in "strict-di" mode. This means that the application will fail to invoke functions which
	 *   do not use explicit function annotation (and are thus unsuitable for minification), as described
	 *   in {@link guide/di the Dependency Injection guide}, and useful debugging info will assist in
	 *   tracking down the root of these bugs.
	 *
	 * @description
	 *
	 * Use this directive to **auto-bootstrap** an AngularJS application. The `ngApp` directive
	 * designates the **root element** of the application and is typically placed near the root element
	 * of the page - e.g. on the `<body>` or `<html>` tags.
	 *
	 * There are a few things to keep in mind when using `ngApp`:
	 * - only one AngularJS application can be auto-bootstrapped per HTML document. The first `ngApp`
	 *   found in the document will be used to define the root element to auto-bootstrap as an
	 *   application. To run multiple applications in an HTML document you must manually bootstrap them using
	 *   {@link angular.bootstrap} instead.
	 * - AngularJS applications cannot be nested within each other.
	 * - Do not use a directive that uses {@link ng.$compile#transclusion transclusion} on the same element as `ngApp`.
	 *   This includes directives such as {@link ng.ngIf `ngIf`}, {@link ng.ngInclude `ngInclude`} and
	 *   {@link ngRoute.ngView `ngView`}.
	 *   Doing this misplaces the app {@link ng.$rootElement `$rootElement`} and the app's {@link auto.$injector injector},
	 *   causing animations to stop working and making the injector inaccessible from outside the app.
	 *
	 * You can specify an **AngularJS module** to be used as the root module for the application.  This
	 * module will be loaded into the {@link auto.$injector} when the application is bootstrapped. It
	 * should contain the application code needed or have dependencies on other modules that will
	 * contain the code. See {@link angular.module} for more information.
	 *
	 * In the example below if the `ngApp` directive were not placed on the `html` element then the
	 * document would not be compiled, the `AppController` would not be instantiated and the `{{ a+b }}`
	 * would not be resolved to `3`.
	 *
	 * @example
	 *
	 * ### Simple Usage
	 *
	 * `ngApp` is the easiest, and most common way to bootstrap an application.
	 *
	 <example module="ngAppDemo" name="ng-app">
	   <file name="index.html">
	   <div ng-controller="ngAppDemoController">
	     I can add: {{a}} + {{b}} =  {{ a+b }}
	   </div>
	   </file>
	   <file name="script.js">
	   angular.module('ngAppDemo', []).controller('ngAppDemoController', function($scope) {
	     $scope.a = 1;
	     $scope.b = 2;
	   });
	   </file>
	 </example>
	 *
	 * @example
	 *
	 * ### With `ngStrictDi`
	 *
	 * Using `ngStrictDi`, you would see something like this:
	 *
	 <example ng-app-included="true" name="strict-di">
	   <file name="index.html">
	   <div ng-app="ngAppStrictDemo" ng-strict-di>
	       <div ng-controller="GoodController1">
	           I can add: {{a}} + {{b}} =  {{ a+b }}
	
	           <p>This renders because the controller does not fail to
	              instantiate, by using explicit annotation style (see
	              script.js for details)
	           </p>
	       </div>
	
	       <div ng-controller="GoodController2">
	           Name: <input ng-model="name"><br />
	           Hello, {{name}}!
	
	           <p>This renders because the controller does not fail to
	              instantiate, by using explicit annotation style
	              (see script.js for details)
	           </p>
	       </div>
	
	       <div ng-controller="BadController">
	           I can add: {{a}} + {{b}} =  {{ a+b }}
	
	           <p>The controller could not be instantiated, due to relying
	              on automatic function annotations (which are disabled in
	              strict mode). As such, the content of this section is not
	              interpolated, and there should be an error in your web console.
	           </p>
	       </div>
	   </div>
	   </file>
	   <file name="script.js">
	   angular.module('ngAppStrictDemo', [])
	     // BadController will fail to instantiate, due to relying on automatic function annotation,
	     // rather than an explicit annotation
	     .controller('BadController', function($scope) {
	       $scope.a = 1;
	       $scope.b = 2;
	     })
	     // Unlike BadController, GoodController1 and GoodController2 will not fail to be instantiated,
	     // due to using explicit annotations using the array style and $inject property, respectively.
	     .controller('GoodController1', ['$scope', function($scope) {
	       $scope.a = 1;
	       $scope.b = 2;
	     }])
	     .controller('GoodController2', GoodController2);
	     function GoodController2($scope) {
	       $scope.name = 'World';
	     }
	     GoodController2.$inject = ['$scope'];
	   </file>
	   <file name="style.css">
	   div[ng-controller] {
	       margin-bottom: 1em;
	       -webkit-border-radius: 4px;
	       border-radius: 4px;
	       border: 1px solid;
	       padding: .5em;
	   }
	   div[ng-controller^=Good] {
	       border-color: #d6e9c6;
	       background-color: #dff0d8;
	       color: #3c763d;
	   }
	   div[ng-controller^=Bad] {
	       border-color: #ebccd1;
	       background-color: #f2dede;
	       color: #a94442;
	       margin-bottom: 0;
	   }
	   </file>
	 </example>
	 */function angularInit(element,bootstrap){var appElement,module,config={};// The element `element` has priority over any other element.
	forEach(ngAttrPrefixes,function(prefix){var name=prefix+'app';if(!appElement&&element.hasAttribute&&element.hasAttribute(name)){appElement=element;module=element.getAttribute(name);}});forEach(ngAttrPrefixes,function(prefix){var name=prefix+'app';var candidate;if(!appElement&&(candidate=element.querySelector('['+name.replace(':','\\:')+']'))){appElement=candidate;module=candidate.getAttribute(name);}});if(appElement){if(!isAutoBootstrapAllowed){window.console.error('AngularJS: disabling automatic bootstrap. <script> protocol indicates '+'an extension, document.location.href does not match.');return;}config.strictDi=getNgAttribute(appElement,'strict-di')!==null;bootstrap(appElement,module?[module]:[],config);}}/**
	 * @ngdoc function
	 * @name angular.bootstrap
	 * @module ng
	 * @description
	 * Use this function to manually start up AngularJS application.
	 *
	 * For more information, see the {@link guide/bootstrap Bootstrap guide}.
	 *
	 * AngularJS will detect if it has been loaded into the browser more than once and only allow the
	 * first loaded script to be bootstrapped and will report a warning to the browser console for
	 * each of the subsequent scripts. This prevents strange results in applications, where otherwise
	 * multiple instances of AngularJS try to work on the DOM.
	 *
	 * <div class="alert alert-warning">
	 * **Note:** Protractor based end-to-end tests cannot use this function to bootstrap manually.
	 * They must use {@link ng.directive:ngApp ngApp}.
	 * </div>
	 *
	 * <div class="alert alert-warning">
	 * **Note:** Do not bootstrap the app on an element with a directive that uses {@link ng.$compile#transclusion transclusion},
	 * such as {@link ng.ngIf `ngIf`}, {@link ng.ngInclude `ngInclude`} and {@link ngRoute.ngView `ngView`}.
	 * Doing this misplaces the app {@link ng.$rootElement `$rootElement`} and the app's {@link auto.$injector injector},
	 * causing animations to stop working and making the injector inaccessible from outside the app.
	 * </div>
	 *
	 * ```html
	 * <!doctype html>
	 * <html>
	 * <body>
	 * <div ng-controller="WelcomeController">
	 *   {{greeting}}
	 * </div>
	 *
	 * <script src="angular.js"></script>
	 * <script>
	 *   var app = angular.module('demo', [])
	 *   .controller('WelcomeController', function($scope) {
	 *       $scope.greeting = 'Welcome!';
	 *   });
	 *   angular.bootstrap(document, ['demo']);
	 * </script>
	 * </body>
	 * </html>
	 * ```
	 *
	 * @param {DOMElement} element DOM element which is the root of AngularJS application.
	 * @param {Array<String|Function|Array>=} modules an array of modules to load into the application.
	 *     Each item in the array should be the name of a predefined module or a (DI annotated)
	 *     function that will be invoked by the injector as a `config` block.
	 *     See: {@link angular.module modules}
	 * @param {Object=} config an object for defining configuration options for the application. The
	 *     following keys are supported:
	 *
	 * * `strictDi` - disable automatic function annotation for the application. This is meant to
	 *   assist in finding bugs which break minified code. Defaults to `false`.
	 *
	 * @returns {auto.$injector} Returns the newly created injector for this app.
	 */function bootstrap(element,modules,config){if(!isObject(config))config={};var defaultConfig={strictDi:false};config=extend(defaultConfig,config);var doBootstrap=function doBootstrap(){element=jqLite(element);if(element.injector()){var tag=element[0]===window.document?'document':startingTag(element);// Encode angle brackets to prevent input from being sanitized to empty string #8683.
	throw ngMinErr('btstrpd','App already bootstrapped with this element \'{0}\'',tag.replace(/</,'&lt;').replace(/>/,'&gt;'));}modules=modules||[];modules.unshift(['$provide',function($provide){$provide.value('$rootElement',element);}]);if(config.debugInfoEnabled){// Pushing so that this overrides `debugInfoEnabled` setting defined in user's `modules`.
	modules.push(['$compileProvider',function($compileProvider){$compileProvider.debugInfoEnabled(true);}]);}modules.unshift('ng');var injector=createInjector(modules,config.strictDi);injector.invoke(['$rootScope','$rootElement','$compile','$injector',function bootstrapApply(scope,element,compile,injector){scope.$apply(function(){element.data('$injector',injector);compile(element)(scope);});}]);return injector;};var NG_ENABLE_DEBUG_INFO=/^NG_ENABLE_DEBUG_INFO!/;var NG_DEFER_BOOTSTRAP=/^NG_DEFER_BOOTSTRAP!/;if(window&&NG_ENABLE_DEBUG_INFO.test(window.name)){config.debugInfoEnabled=true;window.name=window.name.replace(NG_ENABLE_DEBUG_INFO,'');}if(window&&!NG_DEFER_BOOTSTRAP.test(window.name)){return doBootstrap();}window.name=window.name.replace(NG_DEFER_BOOTSTRAP,'');angular.resumeBootstrap=function(extraModules){forEach(extraModules,function(module){modules.push(module);});return doBootstrap();};if(isFunction(angular.resumeDeferredBootstrap)){angular.resumeDeferredBootstrap();}}/**
	 * @ngdoc function
	 * @name angular.reloadWithDebugInfo
	 * @module ng
	 * @description
	 * Use this function to reload the current application with debug information turned on.
	 * This takes precedence over a call to `$compileProvider.debugInfoEnabled(false)`.
	 *
	 * See {@link ng.$compileProvider#debugInfoEnabled} for more.
	 */function reloadWithDebugInfo(){window.name='NG_ENABLE_DEBUG_INFO!'+window.name;window.location.reload();}/**
	 * @name angular.getTestability
	 * @module ng
	 * @description
	 * Get the testability service for the instance of AngularJS on the given
	 * element.
	 * @param {DOMElement} element DOM element which is the root of AngularJS application.
	 */function getTestability(rootElement){var injector=angular.element(rootElement).injector();if(!injector){throw ngMinErr('test','no injector found for element argument to getTestability');}return injector.get('$$testability');}var SNAKE_CASE_REGEXP=/[A-Z]/g;function snake_case(name,separator){separator=separator||'_';return name.replace(SNAKE_CASE_REGEXP,function(letter,pos){return(pos?separator:'')+letter.toLowerCase();});}var bindJQueryFired=false;function bindJQuery(){var originalCleanData;if(bindJQueryFired){return;}// bind to jQuery if present;
	var jqName=jq();jQuery=isUndefined(jqName)?window.jQuery:// use jQuery (if present)
	!jqName?undefined:// use jqLite
	window[jqName];// use jQuery specified by `ngJq`
	// Use jQuery if it exists with proper functionality, otherwise default to us.
	// AngularJS 1.2+ requires jQuery 1.7+ for on()/off() support.
	// AngularJS 1.3+ technically requires at least jQuery 2.1+ but it may work with older
	// versions. It will not work for sure with jQuery <1.7, though.
	if(jQuery&&jQuery.fn.on){jqLite=jQuery;extend(jQuery.fn,{scope:JQLitePrototype.scope,isolateScope:JQLitePrototype.isolateScope,controller:/** @type {?} */JQLitePrototype.controller,injector:JQLitePrototype.injector,inheritedData:JQLitePrototype.inheritedData});}else{jqLite=JQLite;}// All nodes removed from the DOM via various jqLite/jQuery APIs like .remove()
	// are passed through jqLite/jQuery.cleanData. Monkey-patch this method to fire
	// the $destroy event on all removed nodes.
	originalCleanData=jqLite.cleanData;jqLite.cleanData=function(elems){var events;for(var i=0,elem;(elem=elems[i])!=null;i++){events=(jqLite._data(elem)||{}).events;if(events&&events.$destroy){jqLite(elem).triggerHandler('$destroy');}}originalCleanData(elems);};angular.element=jqLite;// Prevent double-proxying.
	bindJQueryFired=true;}/**
	 * @ngdoc function
	 * @name angular.UNSAFE_restoreLegacyJqLiteXHTMLReplacement
	 * @module ng
	 * @kind function
	 *
	 * @description
	 * Restores the pre-1.8 behavior of jqLite that turns XHTML-like strings like
	 * `<div /><span />` to `<div></div><span></span>` instead of `<div><span></span></div>`.
	 * The new behavior is a security fix. Thus, if you need to call this function, please try to adjust
	 * your code for this change and remove your use of this function as soon as possible.
	
	 * Note that this only patches jqLite. If you use jQuery 3.5.0 or newer, please read the
	 * [jQuery 3.5 upgrade guide](https://jquery.com/upgrade-guide/3.5/) for more details
	 * about the workarounds.
	 */function UNSAFE_restoreLegacyJqLiteXHTMLReplacement(){JQLite.legacyXHTMLReplacement=true;}/**
	 * throw error if the argument is falsy.
	 */function assertArg(arg,name,reason){if(!arg){throw ngMinErr('areq','Argument \'{0}\' is {1}',name||'?',reason||'required');}return arg;}function assertArgFn(arg,name,acceptArrayAnnotation){if(acceptArrayAnnotation&&isArray(arg)){arg=arg[arg.length-1];}assertArg(isFunction(arg),name,'not a function, got '+(arg&&(typeof arg==='undefined'?'undefined':_typeof(arg))==='object'?arg.constructor.name||'Object':typeof arg==='undefined'?'undefined':_typeof(arg)));return arg;}/**
	 * throw error if the name given is hasOwnProperty
	 * @param  {String} name    the name to test
	 * @param  {String} context the context in which the name is used, such as module or directive
	 */function assertNotHasOwnProperty(name,context){if(name==='hasOwnProperty'){throw ngMinErr('badname','hasOwnProperty is not a valid {0} name',context);}}/**
	 * Return the value accessible from the object by path. Any undefined traversals are ignored
	 * @param {Object} obj starting object
	 * @param {String} path path to traverse
	 * @param {boolean} [bindFnToScope=true]
	 * @returns {Object} value as accessible by path
	 *///TODO(misko): this function needs to be removed
	function getter(obj,path,bindFnToScope){if(!path)return obj;var keys=path.split('.');var key;var lastInstance=obj;var len=keys.length;for(var i=0;i<len;i++){key=keys[i];if(obj){obj=(lastInstance=obj)[key];}}if(!bindFnToScope&&isFunction(obj)){return bind(lastInstance,obj);}return obj;}/**
	 * Return the DOM siblings between the first and last node in the given array.
	 * @param {Array} array like object
	 * @returns {Array} the inputted object or a jqLite collection containing the nodes
	 */function getBlockNodes(nodes){// TODO(perf): update `nodes` instead of creating a new object?
	var node=nodes[0];var endNode=nodes[nodes.length-1];var blockNodes;for(var i=1;node!==endNode&&(node=node.nextSibling);i++){if(blockNodes||nodes[i]!==node){if(!blockNodes){blockNodes=jqLite(slice.call(nodes,0,i));}blockNodes.push(node);}}return blockNodes||nodes;}/**
	 * Creates a new object without a prototype. This object is useful for lookup without having to
	 * guard against prototypically inherited properties via hasOwnProperty.
	 *
	 * Related micro-benchmarks:
	 * - http://jsperf.com/object-create2
	 * - http://jsperf.com/proto-map-lookup/2
	 * - http://jsperf.com/for-in-vs-object-keys2
	 *
	 * @returns {Object}
	 */function createMap(){return Object.create(null);}function stringify(value){if(value==null){// null || undefined
	return'';}switch(typeof value==='undefined'?'undefined':_typeof(value)){case'string':break;case'number':value=''+value;break;default:if(hasCustomToString(value)&&!isArray(value)&&!isDate(value)){value=value.toString();}else{value=toJson(value);}}return value;}var NODE_TYPE_ELEMENT=1;var NODE_TYPE_ATTRIBUTE=2;var NODE_TYPE_TEXT=3;var NODE_TYPE_COMMENT=8;var NODE_TYPE_DOCUMENT=9;var NODE_TYPE_DOCUMENT_FRAGMENT=11;/**
	 * @ngdoc type
	 * @name angular.Module
	 * @module ng
	 * @description
	 *
	 * Interface for configuring AngularJS {@link angular.module modules}.
	 */function setupModuleLoader(window){var $injectorMinErr=minErr('$injector');var ngMinErr=minErr('ng');function ensure(obj,name,factory){return obj[name]||(obj[name]=factory());}var angular=ensure(window,'angular',Object);// We need to expose `angular.$$minErr` to modules such as `ngResource` that reference it during bootstrap
	angular.$$minErr=angular.$$minErr||minErr;return ensure(angular,'module',function(){/** @type {Object.<string, angular.Module>} */var modules={};/**
	     * @ngdoc function
	     * @name angular.module
	     * @module ng
	     * @description
	     *
	     * The `angular.module` is a global place for creating, registering and retrieving AngularJS
	     * modules.
	     * All modules (AngularJS core or 3rd party) that should be available to an application must be
	     * registered using this mechanism.
	     *
	     * Passing one argument retrieves an existing {@link angular.Module},
	     * whereas passing more than one argument creates a new {@link angular.Module}
	     *
	     *
	     * # Module
	     *
	     * A module is a collection of services, directives, controllers, filters, and configuration information.
	     * `angular.module` is used to configure the {@link auto.$injector $injector}.
	     *
	     * ```js
	     * // Create a new module
	     * var myModule = angular.module('myModule', []);
	     *
	     * // register a new service
	     * myModule.value('appName', 'MyCoolApp');
	     *
	     * // configure existing services inside initialization blocks.
	     * myModule.config(['$locationProvider', function($locationProvider) {
	     *   // Configure existing providers
	     *   $locationProvider.hashPrefix('!');
	     * }]);
	     * ```
	     *
	     * Then you can create an injector and load your modules like this:
	     *
	     * ```js
	     * var injector = angular.injector(['ng', 'myModule'])
	     * ```
	     *
	     * However it's more likely that you'll just use
	     * {@link ng.directive:ngApp ngApp} or
	     * {@link angular.bootstrap} to simplify this process for you.
	     *
	     * @param {!string} name The name of the module to create or retrieve.
	     * @param {!Array.<string>=} requires If specified then new module is being created. If
	     *        unspecified then the module is being retrieved for further configuration.
	     * @param {Function=} configFn Optional configuration function for the module. Same as
	     *        {@link angular.Module#config Module#config()}.
	     * @returns {angular.Module} new module with the {@link angular.Module} api.
	     */return function module(name,requires,configFn){var _info={};var assertNotHasOwnProperty=function assertNotHasOwnProperty(name,context){if(name==='hasOwnProperty'){throw ngMinErr('badname','hasOwnProperty is not a valid {0} name',context);}};assertNotHasOwnProperty(name,'module');if(requires&&modules.hasOwnProperty(name)){modules[name]=null;}return ensure(modules,name,function(){if(!requires){throw $injectorMinErr('nomod','Module \'{0}\' is not available! You either misspelled '+'the module name or forgot to load it. If registering a module ensure that you '+'specify the dependencies as the second argument.',name);}/** @type {!Array.<Array.<*>>} */var invokeQueue=[];/** @type {!Array.<Function>} */var configBlocks=[];/** @type {!Array.<Function>} */var runBlocks=[];var config=invokeLater('$injector','invoke','push',configBlocks);/** @type {angular.Module} */var moduleInstance={// Private state
	_invokeQueue:invokeQueue,_configBlocks:configBlocks,_runBlocks:runBlocks,/**
	           * @ngdoc method
	           * @name angular.Module#info
	           * @module ng
	           *
	           * @param {Object=} info Information about the module
	           * @returns {Object|Module} The current info object for this module if called as a getter,
	           *                          or `this` if called as a setter.
	           *
	           * @description
	           * Read and write custom information about this module.
	           * For example you could put the version of the module in here.
	           *
	           * ```js
	           * angular.module('myModule', []).info({ version: '1.0.0' });
	           * ```
	           *
	           * The version could then be read back out by accessing the module elsewhere:
	           *
	           * ```
	           * var version = angular.module('myModule').info().version;
	           * ```
	           *
	           * You can also retrieve this information during runtime via the
	           * {@link $injector#modules `$injector.modules`} property:
	           *
	           * ```js
	           * var version = $injector.modules['myModule'].info().version;
	           * ```
	           */info:function info(value){if(isDefined(value)){if(!isObject(value))throw ngMinErr('aobj','Argument \'{0}\' must be an object','value');_info=value;return this;}return _info;},/**
	           * @ngdoc property
	           * @name angular.Module#requires
	           * @module ng
	           *
	           * @description
	           * Holds the list of modules which the injector will load before the current module is
	           * loaded.
	           */requires:requires,/**
	           * @ngdoc property
	           * @name angular.Module#name
	           * @module ng
	           *
	           * @description
	           * Name of the module.
	           */name:name,/**
	           * @ngdoc method
	           * @name angular.Module#provider
	           * @module ng
	           * @param {string} name service name
	           * @param {Function} providerType Construction function for creating new instance of the
	           *                                service.
	           * @description
	           * See {@link auto.$provide#provider $provide.provider()}.
	           */provider:invokeLaterAndSetModuleName('$provide','provider'),/**
	           * @ngdoc method
	           * @name angular.Module#factory
	           * @module ng
	           * @param {string} name service name
	           * @param {Function} providerFunction Function for creating new instance of the service.
	           * @description
	           * See {@link auto.$provide#factory $provide.factory()}.
	           */factory:invokeLaterAndSetModuleName('$provide','factory'),/**
	           * @ngdoc method
	           * @name angular.Module#service
	           * @module ng
	           * @param {string} name service name
	           * @param {Function} constructor A constructor function that will be instantiated.
	           * @description
	           * See {@link auto.$provide#service $provide.service()}.
	           */service:invokeLaterAndSetModuleName('$provide','service'),/**
	           * @ngdoc method
	           * @name angular.Module#value
	           * @module ng
	           * @param {string} name service name
	           * @param {*} object Service instance object.
	           * @description
	           * See {@link auto.$provide#value $provide.value()}.
	           */value:invokeLater('$provide','value'),/**
	           * @ngdoc method
	           * @name angular.Module#constant
	           * @module ng
	           * @param {string} name constant name
	           * @param {*} object Constant value.
	           * @description
	           * Because the constants are fixed, they get applied before other provide methods.
	           * See {@link auto.$provide#constant $provide.constant()}.
	           */constant:invokeLater('$provide','constant','unshift'),/**
	           * @ngdoc method
	           * @name angular.Module#decorator
	           * @module ng
	           * @param {string} name The name of the service to decorate.
	           * @param {Function} decorFn This function will be invoked when the service needs to be
	           *                           instantiated and should return the decorated service instance.
	           * @description
	           * See {@link auto.$provide#decorator $provide.decorator()}.
	           */decorator:invokeLaterAndSetModuleName('$provide','decorator',configBlocks),/**
	           * @ngdoc method
	           * @name angular.Module#animation
	           * @module ng
	           * @param {string} name animation name
	           * @param {Function} animationFactory Factory function for creating new instance of an
	           *                                    animation.
	           * @description
	           *
	           * **NOTE**: animations take effect only if the **ngAnimate** module is loaded.
	           *
	           *
	           * Defines an animation hook that can be later used with
	           * {@link $animate $animate} service and directives that use this service.
	           *
	           * ```js
	           * module.animation('.animation-name', function($inject1, $inject2) {
	           *   return {
	           *     eventName : function(element, done) {
	           *       //code to run the animation
	           *       //once complete, then run done()
	           *       return function cancellationFunction(element) {
	           *         //code to cancel the animation
	           *       }
	           *     }
	           *   }
	           * })
	           * ```
	           *
	           * See {@link ng.$animateProvider#register $animateProvider.register()} and
	           * {@link ngAnimate ngAnimate module} for more information.
	           */animation:invokeLaterAndSetModuleName('$animateProvider','register'),/**
	           * @ngdoc method
	           * @name angular.Module#filter
	           * @module ng
	           * @param {string} name Filter name - this must be a valid AngularJS expression identifier
	           * @param {Function} filterFactory Factory function for creating new instance of filter.
	           * @description
	           * See {@link ng.$filterProvider#register $filterProvider.register()}.
	           *
	           * <div class="alert alert-warning">
	           * **Note:** Filter names must be valid AngularJS {@link expression} identifiers, such as `uppercase` or `orderBy`.
	           * Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace
	           * your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores
	           * (`myapp_subsection_filterx`).
	           * </div>
	           */filter:invokeLaterAndSetModuleName('$filterProvider','register'),/**
	           * @ngdoc method
	           * @name angular.Module#controller
	           * @module ng
	           * @param {string|Object} name Controller name, or an object map of controllers where the
	           *    keys are the names and the values are the constructors.
	           * @param {Function} constructor Controller constructor function.
	           * @description
	           * See {@link ng.$controllerProvider#register $controllerProvider.register()}.
	           */controller:invokeLaterAndSetModuleName('$controllerProvider','register'),/**
	           * @ngdoc method
	           * @name angular.Module#directive
	           * @module ng
	           * @param {string|Object} name Directive name, or an object map of directives where the
	           *    keys are the names and the values are the factories.
	           * @param {Function} directiveFactory Factory function for creating new instance of
	           * directives.
	           * @description
	           * See {@link ng.$compileProvider#directive $compileProvider.directive()}.
	           */directive:invokeLaterAndSetModuleName('$compileProvider','directive'),/**
	           * @ngdoc method
	           * @name angular.Module#component
	           * @module ng
	           * @param {string|Object} name Name of the component in camelCase (i.e. `myComp` which will match `<my-comp>`),
	           *    or an object map of components where the keys are the names and the values are the component definition objects.
	           * @param {Object} options Component definition object (a simplified
	           *    {@link ng.$compile#directive-definition-object directive definition object})
	           *
	           * @description
	           * See {@link ng.$compileProvider#component $compileProvider.component()}.
	           */component:invokeLaterAndSetModuleName('$compileProvider','component'),/**
	           * @ngdoc method
	           * @name angular.Module#config
	           * @module ng
	           * @param {Function} configFn Execute this function on module load. Useful for service
	           *    configuration.
	           * @description
	           * Use this method to configure services by injecting their
	           * {@link angular.Module#provider `providers`}, e.g. for adding routes to the
	           * {@link ngRoute.$routeProvider $routeProvider}.
	           *
	           * Note that you can only inject {@link angular.Module#provider `providers`} and
	           * {@link angular.Module#constant `constants`} into this function.
	           *
	           * For more about how to configure services, see
	           * {@link providers#provider-recipe Provider Recipe}.
	           */config:config,/**
	           * @ngdoc method
	           * @name angular.Module#run
	           * @module ng
	           * @param {Function} initializationFn Execute this function after injector creation.
	           *    Useful for application initialization.
	           * @description
	           * Use this method to register work which should be performed when the injector is done
	           * loading all modules.
	           */run:function run(block){runBlocks.push(block);return this;}};if(configFn){config(configFn);}return moduleInstance;/**
	         * @param {string} provider
	         * @param {string} method
	         * @param {String=} insertMethod
	         * @returns {angular.Module}
	         */function invokeLater(provider,method,insertMethod,queue){if(!queue)queue=invokeQueue;return function(){queue[insertMethod||'push']([provider,method,arguments]);return moduleInstance;};}/**
	         * @param {string} provider
	         * @param {string} method
	         * @returns {angular.Module}
	         */function invokeLaterAndSetModuleName(provider,method,queue){if(!queue)queue=invokeQueue;return function(recipeName,factoryFunction){if(factoryFunction&&isFunction(factoryFunction))factoryFunction.$$moduleName=name;queue.push([provider,method,arguments]);return moduleInstance;};}});};});}/* global shallowCopy: true *//**
	 * Creates a shallow copy of an object, an array or a primitive.
	 *
	 * Assumes that there are no proto properties for objects.
	 */function shallowCopy(src,dst){if(isArray(src)){dst=dst||[];for(var i=0,ii=src.length;i<ii;i++){dst[i]=src[i];}}else if(isObject(src)){dst=dst||{};for(var key in src){if(!(key.charAt(0)==='$'&&key.charAt(1)==='$')){dst[key]=src[key];}}}return dst||src;}/* exported toDebugString */function serializeObject(obj,maxDepth){var seen=[];// There is no direct way to stringify object until reaching a specific depth
	// and a very deep object can cause a performance issue, so we copy the object
	// based on this specific depth and then stringify it.
	if(isValidObjectMaxDepth(maxDepth)){// This file is also included in `angular-loader`, so `copy()` might not always be available in
	// the closure. Therefore, it is lazily retrieved as `angular.copy()` when needed.
	obj=angular.copy(obj,null,maxDepth);}return JSON.stringify(obj,function(key,val){val=toJsonReplacer(key,val);if(isObject(val)){if(seen.indexOf(val)>=0)return'...';seen.push(val);}return val;});}function toDebugString(obj,maxDepth){if(typeof obj==='function'){return obj.toString().replace(/ \{[\s\S]*$/,'');}else if(isUndefined(obj)){return'undefined';}else if(typeof obj!=='string'){return serializeObject(obj,maxDepth);}return obj;}/* global angularModule: true,
	  version: true,
	
	  $CompileProvider,
	
	  htmlAnchorDirective,
	  inputDirective,
	  hiddenInputBrowserCacheDirective,
	  formDirective,
	  scriptDirective,
	  selectDirective,
	  optionDirective,
	  ngBindDirective,
	  ngBindHtmlDirective,
	  ngBindTemplateDirective,
	  ngClassDirective,
	  ngClassEvenDirective,
	  ngClassOddDirective,
	  ngCloakDirective,
	  ngControllerDirective,
	  ngFormDirective,
	  ngHideDirective,
	  ngIfDirective,
	  ngIncludeDirective,
	  ngIncludeFillContentDirective,
	  ngInitDirective,
	  ngNonBindableDirective,
	  ngPluralizeDirective,
	  ngRefDirective,
	  ngRepeatDirective,
	  ngShowDirective,
	  ngStyleDirective,
	  ngSwitchDirective,
	  ngSwitchWhenDirective,
	  ngSwitchDefaultDirective,
	  ngOptionsDirective,
	  ngTranscludeDirective,
	  ngModelDirective,
	  ngListDirective,
	  ngChangeDirective,
	  patternDirective,
	  patternDirective,
	  requiredDirective,
	  requiredDirective,
	  minlengthDirective,
	  minlengthDirective,
	  maxlengthDirective,
	  maxlengthDirective,
	  ngValueDirective,
	  ngModelOptionsDirective,
	  ngAttributeAliasDirectives,
	  ngEventDirectives,
	
	  $AnchorScrollProvider,
	  $AnimateProvider,
	  $CoreAnimateCssProvider,
	  $$CoreAnimateJsProvider,
	  $$CoreAnimateQueueProvider,
	  $$AnimateRunnerFactoryProvider,
	  $$AnimateAsyncRunFactoryProvider,
	  $BrowserProvider,
	  $CacheFactoryProvider,
	  $ControllerProvider,
	  $DateProvider,
	  $DocumentProvider,
	  $$IsDocumentHiddenProvider,
	  $ExceptionHandlerProvider,
	  $FilterProvider,
	  $$ForceReflowProvider,
	  $InterpolateProvider,
	  $$IntervalFactoryProvider,
	  $IntervalProvider,
	  $HttpProvider,
	  $HttpParamSerializerProvider,
	  $HttpParamSerializerJQLikeProvider,
	  $HttpBackendProvider,
	  $xhrFactoryProvider,
	  $jsonpCallbacksProvider,
	  $LocationProvider,
	  $LogProvider,
	  $$MapProvider,
	  $ParseProvider,
	  $RootScopeProvider,
	  $QProvider,
	  $$QProvider,
	  $$SanitizeUriProvider,
	  $SceProvider,
	  $SceDelegateProvider,
	  $SnifferProvider,
	  $$TaskTrackerFactoryProvider,
	  $TemplateCacheProvider,
	  $TemplateRequestProvider,
	  $$TestabilityProvider,
	  $TimeoutProvider,
	  $$RAFProvider,
	  $WindowProvider,
	  $$jqLiteProvider,
	  $$CookieReaderProvider
	*//**
	 * @ngdoc object
	 * @name angular.version
	 * @module ng
	 * @description
	 * An object that contains information about the current AngularJS version.
	 *
	 * This object has the following properties:
	 *
	 * - `full` – `{string}` – Full version string, such as "0.9.18".
	 * - `major` – `{number}` – Major version number, such as "0".
	 * - `minor` – `{number}` – Minor version number, such as "9".
	 * - `dot` – `{number}` – Dot version number, such as "18".
	 * - `codeName` – `{string}` – Code name of the release, such as "jiggling-armfat".
	 */var version={// These placeholder strings will be replaced by grunt's `build` task.
	// They need to be double- or single-quoted.
	full:'1.8.2',major:1,minor:8,dot:2,codeName:'meteoric-mining'};function publishExternalAPI(angular){extend(angular,{'errorHandlingConfig':errorHandlingConfig,'bootstrap':bootstrap,'copy':copy,'extend':extend,'merge':merge,'equals':equals,'element':jqLite,'forEach':forEach,'injector':createInjector,'noop':noop,'bind':bind,'toJson':toJson,'fromJson':fromJson,'identity':identity,'isUndefined':isUndefined,'isDefined':isDefined,'isString':isString,'isFunction':isFunction,'isObject':isObject,'isNumber':isNumber,'isElement':isElement,'isArray':isArray,'version':version,'isDate':isDate,'callbacks':{$$counter:0},'getTestability':getTestability,'reloadWithDebugInfo':reloadWithDebugInfo,'UNSAFE_restoreLegacyJqLiteXHTMLReplacement':UNSAFE_restoreLegacyJqLiteXHTMLReplacement,'$$minErr':minErr,'$$csp':csp,'$$encodeUriSegment':encodeUriSegment,'$$encodeUriQuery':encodeUriQuery,'$$lowercase':lowercase,'$$stringify':stringify,'$$uppercase':uppercase});angularModule=setupModuleLoader(window);angularModule('ng',['ngLocale'],['$provide',function ngModule($provide){// $$sanitizeUriProvider needs to be before $compileProvider as it is used by it.
	$provide.provider({$$sanitizeUri:$$SanitizeUriProvider});$provide.provider('$compile',$CompileProvider).directive({a:htmlAnchorDirective,input:inputDirective,textarea:inputDirective,form:formDirective,script:scriptDirective,select:selectDirective,option:optionDirective,ngBind:ngBindDirective,ngBindHtml:ngBindHtmlDirective,ngBindTemplate:ngBindTemplateDirective,ngClass:ngClassDirective,ngClassEven:ngClassEvenDirective,ngClassOdd:ngClassOddDirective,ngCloak:ngCloakDirective,ngController:ngControllerDirective,ngForm:ngFormDirective,ngHide:ngHideDirective,ngIf:ngIfDirective,ngInclude:ngIncludeDirective,ngInit:ngInitDirective,ngNonBindable:ngNonBindableDirective,ngPluralize:ngPluralizeDirective,ngRef:ngRefDirective,ngRepeat:ngRepeatDirective,ngShow:ngShowDirective,ngStyle:ngStyleDirective,ngSwitch:ngSwitchDirective,ngSwitchWhen:ngSwitchWhenDirective,ngSwitchDefault:ngSwitchDefaultDirective,ngOptions:ngOptionsDirective,ngTransclude:ngTranscludeDirective,ngModel:ngModelDirective,ngList:ngListDirective,ngChange:ngChangeDirective,pattern:patternDirective,ngPattern:patternDirective,required:requiredDirective,ngRequired:requiredDirective,minlength:minlengthDirective,ngMinlength:minlengthDirective,maxlength:maxlengthDirective,ngMaxlength:maxlengthDirective,ngValue:ngValueDirective,ngModelOptions:ngModelOptionsDirective}).directive({ngInclude:ngIncludeFillContentDirective,input:hiddenInputBrowserCacheDirective}).directive(ngAttributeAliasDirectives).directive(ngEventDirectives);$provide.provider({$anchorScroll:$AnchorScrollProvider,$animate:$AnimateProvider,$animateCss:$CoreAnimateCssProvider,$$animateJs:$$CoreAnimateJsProvider,$$animateQueue:$$CoreAnimateQueueProvider,$$AnimateRunner:$$AnimateRunnerFactoryProvider,$$animateAsyncRun:$$AnimateAsyncRunFactoryProvider,$browser:$BrowserProvider,$cacheFactory:$CacheFactoryProvider,$controller:$ControllerProvider,$document:$DocumentProvider,$$isDocumentHidden:$$IsDocumentHiddenProvider,$exceptionHandler:$ExceptionHandlerProvider,$filter:$FilterProvider,$$forceReflow:$$ForceReflowProvider,$interpolate:$InterpolateProvider,$interval:$IntervalProvider,$$intervalFactory:$$IntervalFactoryProvider,$http:$HttpProvider,$httpParamSerializer:$HttpParamSerializerProvider,$httpParamSerializerJQLike:$HttpParamSerializerJQLikeProvider,$httpBackend:$HttpBackendProvider,$xhrFactory:$xhrFactoryProvider,$jsonpCallbacks:$jsonpCallbacksProvider,$location:$LocationProvider,$log:$LogProvider,$parse:$ParseProvider,$rootScope:$RootScopeProvider,$q:$QProvider,$$q:$$QProvider,$sce:$SceProvider,$sceDelegate:$SceDelegateProvider,$sniffer:$SnifferProvider,$$taskTrackerFactory:$$TaskTrackerFactoryProvider,$templateCache:$TemplateCacheProvider,$templateRequest:$TemplateRequestProvider,$$testability:$$TestabilityProvider,$timeout:$TimeoutProvider,$window:$WindowProvider,$$rAF:$$RAFProvider,$$jqLite:$$jqLiteProvider,$$Map:$$MapProvider,$$cookieReader:$$CookieReaderProvider});}]).info({angularVersion:'1.8.2'});}/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
	 *     Any commits to this file should be reviewed with security in mind.  *
	 *   Changes to this file can potentially create security vulnerabilities. *
	 *          An approval from 2 Core members with history of modifying      *
	 *                         this file is required.                          *
	 *                                                                         *
	 *  Does the change somehow allow for arbitrary javascript to be executed? *
	 *    Or allows for someone to change the prototype of built-in objects?   *
	 *     Or gives undesired access to variables likes document or window?    *
	 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *//* global
	  JQLitePrototype: true,
	  BOOLEAN_ATTR: true,
	  ALIASED_ATTR: true
	*///////////////////////////////////
	//JQLite
	//////////////////////////////////
	/**
	 * @ngdoc function
	 * @name angular.element
	 * @module ng
	 * @kind function
	 *
	 * @description
	 * Wraps a raw DOM element or HTML string as a [jQuery](http://jquery.com) element.
	 *
	 * If jQuery is available, `angular.element` is an alias for the
	 * [jQuery](http://api.jquery.com/jQuery/) function. If jQuery is not available, `angular.element`
	 * delegates to AngularJS's built-in subset of jQuery, called "jQuery lite" or **jqLite**.
	 *
	 * jqLite is a tiny, API-compatible subset of jQuery that allows
	 * AngularJS to manipulate the DOM in a cross-browser compatible way. jqLite implements only the most
	 * commonly needed functionality with the goal of having a very small footprint.
	 *
	 * To use `jQuery`, simply ensure it is loaded before the `angular.js` file. You can also use the
	 * {@link ngJq `ngJq`} directive to specify that jqlite should be used over jQuery, or to use a
	 * specific version of jQuery if multiple versions exist on the page.
	 *
	 * <div class="alert alert-info">**Note:** All element references in AngularJS are always wrapped with jQuery or
	 * jqLite (such as the element argument in a directive's compile / link function). They are never raw DOM references.</div>
	 *
	 * <div class="alert alert-warning">**Note:** Keep in mind that this function will not find elements
	 * by tag name / CSS selector. For lookups by tag name, try instead `angular.element(document).find(...)`
	 * or `$document.find()`, or use the standard DOM APIs, e.g. `document.querySelectorAll()`.</div>
	 *
	 * ## AngularJS's jqLite
	 * jqLite provides only the following jQuery methods:
	 *
	 * - [`addClass()`](http://api.jquery.com/addClass/) - Does not support a function as first argument
	 * - [`after()`](http://api.jquery.com/after/)
	 * - [`append()`](http://api.jquery.com/append/) - Contrary to jQuery, this doesn't clone elements
	 *   so will not work correctly when invoked on a jqLite object containing more than one DOM node
	 * - [`attr()`](http://api.jquery.com/attr/) - Does not support functions as parameters
	 * - [`bind()`](http://api.jquery.com/bind/) (_deprecated_, use [`on()`](http://api.jquery.com/on/)) - Does not support namespaces, selectors or eventData
	 * - [`children()`](http://api.jquery.com/children/) - Does not support selectors
	 * - [`clone()`](http://api.jquery.com/clone/)
	 * - [`contents()`](http://api.jquery.com/contents/)
	 * - [`css()`](http://api.jquery.com/css/) - Only retrieves inline-styles, does not call `getComputedStyle()`.
	 *   As a setter, does not convert numbers to strings or append 'px', and also does not have automatic property prefixing.
	 * - [`data()`](http://api.jquery.com/data/)
	 * - [`detach()`](http://api.jquery.com/detach/)
	 * - [`empty()`](http://api.jquery.com/empty/)
	 * - [`eq()`](http://api.jquery.com/eq/)
	 * - [`find()`](http://api.jquery.com/find/) - Limited to lookups by tag name
	 * - [`hasClass()`](http://api.jquery.com/hasClass/)
	 * - [`html()`](http://api.jquery.com/html/)
	 * - [`next()`](http://api.jquery.com/next/) - Does not support selectors
	 * - [`on()`](http://api.jquery.com/on/) - Does not support namespaces, selectors or eventData
	 * - [`off()`](http://api.jquery.com/off/) - Does not support namespaces, selectors or event object as parameter
	 * - [`one()`](http://api.jquery.com/one/) - Does not support namespaces or selectors
	 * - [`parent()`](http://api.jquery.com/parent/) - Does not support selectors
	 * - [`prepend()`](http://api.jquery.com/prepend/)
	 * - [`prop()`](http://api.jquery.com/prop/)
	 * - [`ready()`](http://api.jquery.com/ready/) (_deprecated_, use `angular.element(callback)` instead of `angular.element(document).ready(callback)`)
	 * - [`remove()`](http://api.jquery.com/remove/)
	 * - [`removeAttr()`](http://api.jquery.com/removeAttr/) - Does not support multiple attributes
	 * - [`removeClass()`](http://api.jquery.com/removeClass/) - Does not support a function as first argument
	 * - [`removeData()`](http://api.jquery.com/removeData/)
	 * - [`replaceWith()`](http://api.jquery.com/replaceWith/)
	 * - [`text()`](http://api.jquery.com/text/)
	 * - [`toggleClass()`](http://api.jquery.com/toggleClass/) - Does not support a function as first argument
	 * - [`triggerHandler()`](http://api.jquery.com/triggerHandler/) - Passes a dummy event object to handlers
	 * - [`unbind()`](http://api.jquery.com/unbind/) (_deprecated_, use [`off()`](http://api.jquery.com/off/)) - Does not support namespaces or event object as parameter
	 * - [`val()`](http://api.jquery.com/val/)
	 * - [`wrap()`](http://api.jquery.com/wrap/)
	 *
	 * jqLite also provides a method restoring pre-1.8 insecure treatment of XHTML-like tags.
	 * This legacy behavior turns input like `<div /><span />` to `<div></div><span></span>`
	 * instead of `<div><span></span></div>` like version 1.8 & newer do. To restore it, invoke:
	 * ```js
	 * angular.UNSAFE_restoreLegacyJqLiteXHTMLReplacement();
	 * ```
	 * Note that this only patches jqLite. If you use jQuery 3.5.0 or newer, please read the
	 * [jQuery 3.5 upgrade guide](https://jquery.com/upgrade-guide/3.5/) for more details
	 * about the workarounds.
	 *
	 * ## jQuery/jqLite Extras
	 * AngularJS also provides the following additional methods and events to both jQuery and jqLite:
	 *
	 * ### Events
	 * - `$destroy` - AngularJS intercepts all jqLite/jQuery's DOM destruction apis and fires this event
	 *    on all DOM nodes being removed.  This can be used to clean up any 3rd party bindings to the DOM
	 *    element before it is removed.
	 *
	 * ### Methods
	 * - `controller(name)` - retrieves the controller of the current element or its parent. By default
	 *   retrieves controller associated with the `ngController` directive. If `name` is provided as
	 *   camelCase directive name, then the controller for this directive will be retrieved (e.g.
	 *   `'ngModel'`).
	 * - `injector()` - retrieves the injector of the current element or its parent.
	 * - `scope()` - retrieves the {@link ng.$rootScope.Scope scope} of the current
	 *   element or its parent. Requires {@link guide/production#disabling-debug-data Debug Data} to
	 *   be enabled.
	 * - `isolateScope()` - retrieves an isolate {@link ng.$rootScope.Scope scope} if one is attached directly to the
	 *   current element. This getter should be used only on elements that contain a directive which starts a new isolate
	 *   scope. Calling `scope()` on this element always returns the original non-isolate scope.
	 *   Requires {@link guide/production#disabling-debug-data Debug Data} to be enabled.
	 * - `inheritedData()` - same as `data()`, but walks up the DOM until a value is found or the top
	 *   parent element is reached.
	 *
	 * @knownIssue You cannot spy on `angular.element` if you are using Jasmine version 1.x. See
	 * https://github.com/angular/angular.js/issues/14251 for more information.
	 *
	 * @param {string|DOMElement} element HTML string or DOMElement to be wrapped into jQuery.
	 * @returns {Object} jQuery object.
	 */JQLite.expando='ng339';var jqCache=JQLite.cache={},jqId=1;/*
	 * !!! This is an undocumented "private" function !!!
	 */JQLite._data=function(node){//jQuery always returns an object on cache miss
	return this.cache[node[this.expando]]||{};};function jqNextId(){return++jqId;}var DASH_LOWERCASE_REGEXP=/-([a-z])/g;var MS_HACK_REGEXP=/^-ms-/;var MOUSE_EVENT_MAP={mouseleave:'mouseout',mouseenter:'mouseover'};var jqLiteMinErr=minErr('jqLite');/**
	 * Converts kebab-case to camelCase.
	 * There is also a special case for the ms prefix starting with a lowercase letter.
	 * @param name Name to normalize
	 */function cssKebabToCamel(name){return kebabToCamel(name.replace(MS_HACK_REGEXP,'ms-'));}function fnCamelCaseReplace(all,letter){return letter.toUpperCase();}/**
	 * Converts kebab-case to camelCase.
	 * @param name Name to normalize
	 */function kebabToCamel(name){return name.replace(DASH_LOWERCASE_REGEXP,fnCamelCaseReplace);}var SINGLE_TAG_REGEXP=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/;var HTML_REGEXP=/<|&#?\w+;/;var TAG_NAME_REGEXP=/<([\w:-]+)/;var XHTML_TAG_REGEXP=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi;// Table parts need to be wrapped with `<table>` or they're
	// stripped to their contents when put in a div.
	// XHTML parsers do not magically insert elements in the
	// same way that tag soup parsers do, so we cannot shorten
	// this by omitting <tbody> or other required elements.
	var wrapMap={thead:['table'],col:['colgroup','table'],tr:['tbody','table'],td:['tr','tbody','table']};wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;wrapMap.th=wrapMap.td;// Support: IE <10 only
	// IE 9 requires an option wrapper & it needs to have the whole table structure
	// set up in advance; assigning `"<td></td>"` to `tr.innerHTML` doesn't work, etc.
	var wrapMapIE9={option:[1,'<select multiple="multiple">','</select>'],_default:[0,'','']};for(var key in wrapMap){var wrapMapValueClosing=wrapMap[key];var wrapMapValue=wrapMapValueClosing.slice().reverse();wrapMapIE9[key]=[wrapMapValue.length,'<'+wrapMapValue.join('><')+'>','</'+wrapMapValueClosing.join('></')+'>'];}wrapMapIE9.optgroup=wrapMapIE9.option;function jqLiteIsTextNode(html){return!HTML_REGEXP.test(html);}function jqLiteAcceptsData(node){// The window object can accept data but has no nodeType
	// Otherwise we are only interested in elements (1) and documents (9)
	var nodeType=node.nodeType;return nodeType===NODE_TYPE_ELEMENT||!nodeType||nodeType===NODE_TYPE_DOCUMENT;}function jqLiteHasData(node){for(var key in jqCache[node.ng339]){return true;}return false;}function jqLiteBuildFragment(html,context){var tmp,tag,wrap,finalHtml,fragment=context.createDocumentFragment(),nodes=[],i;if(jqLiteIsTextNode(html)){// Convert non-html into a text node
	nodes.push(context.createTextNode(html));}else{// Convert html into DOM nodes
	tmp=fragment.appendChild(context.createElement('div'));tag=(TAG_NAME_REGEXP.exec(html)||['',''])[1].toLowerCase();finalHtml=JQLite.legacyXHTMLReplacement?html.replace(XHTML_TAG_REGEXP,'<$1></$2>'):html;if(msie<10){wrap=wrapMapIE9[tag]||wrapMapIE9._default;tmp.innerHTML=wrap[1]+finalHtml+wrap[2];// Descend through wrappers to the right content
	i=wrap[0];while(i--){tmp=tmp.firstChild;}}else{wrap=wrapMap[tag]||[];// Create wrappers & descend into them
	i=wrap.length;while(--i>-1){tmp.appendChild(window.document.createElement(wrap[i]));tmp=tmp.firstChild;}tmp.innerHTML=finalHtml;}nodes=concat(nodes,tmp.childNodes);tmp=fragment.firstChild;tmp.textContent='';}// Remove wrapper from fragment
	fragment.textContent='';fragment.innerHTML='';// Clear inner HTML
	forEach(nodes,function(node){fragment.appendChild(node);});return fragment;}function jqLiteParseHTML(html,context){context=context||window.document;var parsed;if(parsed=SINGLE_TAG_REGEXP.exec(html)){return[context.createElement(parsed[1])];}if(parsed=jqLiteBuildFragment(html,context)){return parsed.childNodes;}return[];}function jqLiteWrapNode(node,wrapper){var parent=node.parentNode;if(parent){parent.replaceChild(wrapper,node);}wrapper.appendChild(node);}// IE9-11 has no method "contains" in SVG element and in Node.prototype. Bug #10259.
	var jqLiteContains=window.Node.prototype.contains||/** @this */function(arg){// eslint-disable-next-line no-bitwise
	return!!(this.compareDocumentPosition(arg)&16);};/////////////////////////////////////////////
	function JQLite(element){if(element instanceof JQLite){return element;}var argIsString;if(isString(element)){element=trim(element);argIsString=true;}if(!(this instanceof JQLite)){if(argIsString&&element.charAt(0)!=='<'){throw jqLiteMinErr('nosel','Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element');}return new JQLite(element);}if(argIsString){jqLiteAddNodes(this,jqLiteParseHTML(element));}else if(isFunction(element)){jqLiteReady(element);}else{jqLiteAddNodes(this,element);}}function jqLiteClone(element){return element.cloneNode(true);}function jqLiteDealoc(element,onlyDescendants){if(!onlyDescendants&&jqLiteAcceptsData(element))jqLite.cleanData([element]);if(element.querySelectorAll){jqLite.cleanData(element.querySelectorAll('*'));}}function isEmptyObject(obj){var name;for(name in obj){return false;}return true;}function removeIfEmptyData(element){var expandoId=element.ng339;var expandoStore=expandoId&&jqCache[expandoId];var events=expandoStore&&expandoStore.events;var data=expandoStore&&expandoStore.data;if((!data||isEmptyObject(data))&&(!events||isEmptyObject(events))){delete jqCache[expandoId];element.ng339=undefined;// don't delete DOM expandos. IE and Chrome don't like it
	}}function jqLiteOff(element,type,fn,unsupported){if(isDefined(unsupported))throw jqLiteMinErr('offargs','jqLite#off() does not support the `selector` argument');var expandoStore=jqLiteExpandoStore(element);var events=expandoStore&&expandoStore.events;var handle=expandoStore&&expandoStore.handle;if(!handle)return;//no listeners registered
	if(!type){for(type in events){if(type!=='$destroy'){element.removeEventListener(type,handle);}delete events[type];}}else{var removeHandler=function removeHandler(type){var listenerFns=events[type];if(isDefined(fn)){arrayRemove(listenerFns||[],fn);}if(!(isDefined(fn)&&listenerFns&&listenerFns.length>0)){element.removeEventListener(type,handle);delete events[type];}};forEach(type.split(' '),function(type){removeHandler(type);if(MOUSE_EVENT_MAP[type]){removeHandler(MOUSE_EVENT_MAP[type]);}});}removeIfEmptyData(element);}function jqLiteRemoveData(element,name){var expandoId=element.ng339;var expandoStore=expandoId&&jqCache[expandoId];if(expandoStore){if(name){delete expandoStore.data[name];}else{expandoStore.data={};}removeIfEmptyData(element);}}function jqLiteExpandoStore(element,createIfNecessary){var expandoId=element.ng339,expandoStore=expandoId&&jqCache[expandoId];if(createIfNecessary&&!expandoStore){element.ng339=expandoId=jqNextId();expandoStore=jqCache[expandoId]={events:{},data:{},handle:undefined};}return expandoStore;}function jqLiteData(element,key,value){if(jqLiteAcceptsData(element)){var prop;var isSimpleSetter=isDefined(value);var isSimpleGetter=!isSimpleSetter&&key&&!isObject(key);var massGetter=!key;var expandoStore=jqLiteExpandoStore(element,!isSimpleGetter);var data=expandoStore&&expandoStore.data;if(isSimpleSetter){// data('key', value)
	data[kebabToCamel(key)]=value;}else{if(massGetter){// data()
	return data;}else{if(isSimpleGetter){// data('key')
	// don't force creation of expandoStore if it doesn't exist yet
	return data&&data[kebabToCamel(key)];}else{// mass-setter: data({key1: val1, key2: val2})
	for(prop in key){data[kebabToCamel(prop)]=key[prop];}}}}}}function jqLiteHasClass(element,selector){if(!element.getAttribute)return false;return(' '+(element.getAttribute('class')||'')+' ').replace(/[\n\t]/g,' ').indexOf(' '+selector+' ')>-1;}function jqLiteRemoveClass(element,cssClasses){if(cssClasses&&element.setAttribute){var existingClasses=(' '+(element.getAttribute('class')||'')+' ').replace(/[\n\t]/g,' ');var newClasses=existingClasses;forEach(cssClasses.split(' '),function(cssClass){cssClass=trim(cssClass);newClasses=newClasses.replace(' '+cssClass+' ',' ');});if(newClasses!==existingClasses){element.setAttribute('class',trim(newClasses));}}}function jqLiteAddClass(element,cssClasses){if(cssClasses&&element.setAttribute){var existingClasses=(' '+(element.getAttribute('class')||'')+' ').replace(/[\n\t]/g,' ');var newClasses=existingClasses;forEach(cssClasses.split(' '),function(cssClass){cssClass=trim(cssClass);if(newClasses.indexOf(' '+cssClass+' ')===-1){newClasses+=cssClass+' ';}});if(newClasses!==existingClasses){element.setAttribute('class',trim(newClasses));}}}function jqLiteAddNodes(root,elements){// THIS CODE IS VERY HOT. Don't make changes without benchmarking.
	if(elements){// if a Node (the most common case)
	if(elements.nodeType){root[root.length++]=elements;}else{var length=elements.length;// if an Array or NodeList and not a Window
	if(typeof length==='number'&&elements.window!==elements){if(length){for(var i=0;i<length;i++){root[root.length++]=elements[i];}}}else{root[root.length++]=elements;}}}}function jqLiteController(element,name){return jqLiteInheritedData(element,'$'+(name||'ngController')+'Controller');}function jqLiteInheritedData(element,name,value){// if element is the document object work with the html element instead
	// this makes $(document).scope() possible
	if(element.nodeType===NODE_TYPE_DOCUMENT){element=element.documentElement;}var names=isArray(name)?name:[name];while(element){for(var i=0,ii=names.length;i<ii;i++){if(isDefined(value=jqLite.data(element,names[i])))return value;}// If dealing with a document fragment node with a host element, and no parent, use the host
	// element as the parent. This enables directives within a Shadow DOM or polyfilled Shadow DOM
	// to lookup parent controllers.
	element=element.parentNode||element.nodeType===NODE_TYPE_DOCUMENT_FRAGMENT&&element.host;}}function jqLiteEmpty(element){jqLiteDealoc(element,true);while(element.firstChild){element.removeChild(element.firstChild);}}function jqLiteRemove(element,keepData){if(!keepData)jqLiteDealoc(element);var parent=element.parentNode;if(parent)parent.removeChild(element);}function jqLiteDocumentLoaded(action,win){win=win||window;if(win.document.readyState==='complete'){// Force the action to be run async for consistent behavior
	// from the action's point of view
	// i.e. it will definitely not be in a $apply
	win.setTimeout(action);}else{// No need to unbind this handler as load is only ever called once
	jqLite(win).on('load',action);}}function jqLiteReady(fn){function trigger(){window.document.removeEventListener('DOMContentLoaded',trigger);window.removeEventListener('load',trigger);fn();}// check if document is already loaded
	if(window.document.readyState==='complete'){window.setTimeout(fn);}else{// We can not use jqLite since we are not done loading and jQuery could be loaded later.
	// Works for modern browsers and IE9
	window.document.addEventListener('DOMContentLoaded',trigger);// Fallback to window.onload for others
	window.addEventListener('load',trigger);}}//////////////////////////////////////////
	// Functions which are declared directly.
	//////////////////////////////////////////
	var JQLitePrototype=JQLite.prototype={ready:jqLiteReady,toString:function toString(){var value=[];forEach(this,function(e){value.push(''+e);});return'['+value.join(', ')+']';},eq:function eq(index){return index>=0?jqLite(this[index]):jqLite(this[this.length+index]);},length:0,push:push,sort:[].sort,splice:[].splice};//////////////////////////////////////////
	// Functions iterating getter/setters.
	// these functions return self on setter and
	// value on get.
	//////////////////////////////////////////
	var BOOLEAN_ATTR={};forEach('multiple,selected,checked,disabled,readOnly,required,open'.split(','),function(value){BOOLEAN_ATTR[lowercase(value)]=value;});var BOOLEAN_ELEMENTS={};forEach('input,select,option,textarea,button,form,details'.split(','),function(value){BOOLEAN_ELEMENTS[value]=true;});var ALIASED_ATTR={'ngMinlength':'minlength','ngMaxlength':'maxlength','ngMin':'min','ngMax':'max','ngPattern':'pattern','ngStep':'step'};function getBooleanAttrName(element,name){// check dom last since we will most likely fail on name
	var booleanAttr=BOOLEAN_ATTR[name.toLowerCase()];// booleanAttr is here twice to minimize DOM access
	return booleanAttr&&BOOLEAN_ELEMENTS[nodeName_(element)]&&booleanAttr;}function getAliasedAttrName(name){return ALIASED_ATTR[name];}forEach({data:jqLiteData,removeData:jqLiteRemoveData,hasData:jqLiteHasData,cleanData:function jqLiteCleanData(nodes){for(var i=0,ii=nodes.length;i<ii;i++){jqLiteRemoveData(nodes[i]);jqLiteOff(nodes[i]);}}},function(fn,name){JQLite[name]=fn;});forEach({data:jqLiteData,inheritedData:jqLiteInheritedData,scope:function scope(element){// Can't use jqLiteData here directly so we stay compatible with jQuery!
	return jqLite.data(element,'$scope')||jqLiteInheritedData(element.parentNode||element,['$isolateScope','$scope']);},isolateScope:function isolateScope(element){// Can't use jqLiteData here directly so we stay compatible with jQuery!
	return jqLite.data(element,'$isolateScope')||jqLite.data(element,'$isolateScopeNoTemplate');},controller:jqLiteController,injector:function injector(element){return jqLiteInheritedData(element,'$injector');},removeAttr:function removeAttr(element,name){element.removeAttribute(name);},hasClass:jqLiteHasClass,css:function css(element,name,value){name=cssKebabToCamel(name);if(isDefined(value)){element.style[name]=value;}else{return element.style[name];}},attr:function attr(element,name,value){var ret;var nodeType=element.nodeType;if(nodeType===NODE_TYPE_TEXT||nodeType===NODE_TYPE_ATTRIBUTE||nodeType===NODE_TYPE_COMMENT||!element.getAttribute){return;}var lowercasedName=lowercase(name);var isBooleanAttr=BOOLEAN_ATTR[lowercasedName];if(isDefined(value)){// setter
	if(value===null||value===false&&isBooleanAttr){element.removeAttribute(name);}else{element.setAttribute(name,isBooleanAttr?lowercasedName:value);}}else{// getter
	ret=element.getAttribute(name);if(isBooleanAttr&&ret!==null){ret=lowercasedName;}// Normalize non-existing attributes to undefined (as jQuery).
	return ret===null?undefined:ret;}},prop:function prop(element,name,value){if(isDefined(value)){element[name]=value;}else{return element[name];}},text:function(){getText.$dv='';return getText;function getText(element,value){if(isUndefined(value)){var nodeType=element.nodeType;return nodeType===NODE_TYPE_ELEMENT||nodeType===NODE_TYPE_TEXT?element.textContent:'';}element.textContent=value;}}(),val:function val(element,value){if(isUndefined(value)){if(element.multiple&&nodeName_(element)==='select'){var result=[];forEach(element.options,function(option){if(option.selected){result.push(option.value||option.text);}});return result;}return element.value;}element.value=value;},html:function html(element,value){if(isUndefined(value)){return element.innerHTML;}jqLiteDealoc(element,true);element.innerHTML=value;},empty:jqLiteEmpty},function(fn,name){/**
	   * Properties: writes return selection, reads return first value
	   */JQLite.prototype[name]=function(arg1,arg2){var i,key;var nodeCount=this.length;// jqLiteHasClass has only two arguments, but is a getter-only fn, so we need to special-case it
	// in a way that survives minification.
	// jqLiteEmpty takes no arguments but is a setter.
	if(fn!==jqLiteEmpty&&isUndefined(fn.length===2&&fn!==jqLiteHasClass&&fn!==jqLiteController?arg1:arg2)){if(isObject(arg1)){// we are a write, but the object properties are the key/values
	for(i=0;i<nodeCount;i++){if(fn===jqLiteData){// data() takes the whole object in jQuery
	fn(this[i],arg1);}else{for(key in arg1){fn(this[i],key,arg1[key]);}}}// return self for chaining
	return this;}else{// we are a read, so read the first child.
	// TODO: do we still need this?
	var value=fn.$dv;// Only if we have $dv do we iterate over all, otherwise it is just the first element.
	var jj=isUndefined(value)?Math.min(nodeCount,1):nodeCount;for(var j=0;j<jj;j++){var nodeValue=fn(this[j],arg1,arg2);value=value?value+nodeValue:nodeValue;}return value;}}else{// we are a write, so apply to all children
	for(i=0;i<nodeCount;i++){fn(this[i],arg1,arg2);}// return self for chaining
	return this;}};});function createEventHandler(element,events){var eventHandler=function eventHandler(event,type){// jQuery specific api
	event.isDefaultPrevented=function(){return event.defaultPrevented;};var eventFns=events[type||event.type];var eventFnsLength=eventFns?eventFns.length:0;if(!eventFnsLength)return;if(isUndefined(event.immediatePropagationStopped)){var originalStopImmediatePropagation=event.stopImmediatePropagation;event.stopImmediatePropagation=function(){event.immediatePropagationStopped=true;if(event.stopPropagation){event.stopPropagation();}if(originalStopImmediatePropagation){originalStopImmediatePropagation.call(event);}};}event.isImmediatePropagationStopped=function(){return event.immediatePropagationStopped===true;};// Some events have special handlers that wrap the real handler
	var handlerWrapper=eventFns.specialHandlerWrapper||defaultHandlerWrapper;// Copy event handlers in case event handlers array is modified during execution.
	if(eventFnsLength>1){eventFns=shallowCopy(eventFns);}for(var i=0;i<eventFnsLength;i++){if(!event.isImmediatePropagationStopped()){handlerWrapper(element,event,eventFns[i]);}}};// TODO: this is a hack for angularMocks/clearDataCache that makes it possible to deregister all
	//       events on `element`
	eventHandler.elem=element;return eventHandler;}function defaultHandlerWrapper(element,event,handler){handler.call(element,event);}function specialMouseHandlerWrapper(target,event,handler){// Refer to jQuery's implementation of mouseenter & mouseleave
	// Read about mouseenter and mouseleave:
	// http://www.quirksmode.org/js/events_mouse.html#link8
	var related=event.relatedTarget;// For mousenter/leave call the handler if related is outside the target.
	// NB: No relatedTarget if the mouse left/entered the browser window
	if(!related||related!==target&&!jqLiteContains.call(target,related)){handler.call(target,event);}}//////////////////////////////////////////
	// Functions iterating traversal.
	// These functions chain results into a single
	// selector.
	//////////////////////////////////////////
	forEach({removeData:jqLiteRemoveData,on:function jqLiteOn(element,type,fn,unsupported){if(isDefined(unsupported))throw jqLiteMinErr('onargs','jqLite#on() does not support the `selector` or `eventData` parameters');// Do not add event handlers to non-elements because they will not be cleaned up.
	if(!jqLiteAcceptsData(element)){return;}var expandoStore=jqLiteExpandoStore(element,true);var events=expandoStore.events;var handle=expandoStore.handle;if(!handle){handle=expandoStore.handle=createEventHandler(element,events);}// http://jsperf.com/string-indexof-vs-split
	var types=type.indexOf(' ')>=0?type.split(' '):[type];var i=types.length;var addHandler=function addHandler(type,specialHandlerWrapper,noEventListener){var eventFns=events[type];if(!eventFns){eventFns=events[type]=[];eventFns.specialHandlerWrapper=specialHandlerWrapper;if(type!=='$destroy'&&!noEventListener){element.addEventListener(type,handle);}}eventFns.push(fn);};while(i--){type=types[i];if(MOUSE_EVENT_MAP[type]){addHandler(MOUSE_EVENT_MAP[type],specialMouseHandlerWrapper);addHandler(type,undefined,true);}else{addHandler(type);}}},off:jqLiteOff,one:function one(element,type,fn){element=jqLite(element);//add the listener twice so that when it is called
	//you can remove the original function and still be
	//able to call element.off(ev, fn) normally
	element.on(type,function onFn(){element.off(type,fn);element.off(type,onFn);});element.on(type,fn);},replaceWith:function replaceWith(element,replaceNode){var index,parent=element.parentNode;jqLiteDealoc(element);forEach(new JQLite(replaceNode),function(node){if(index){parent.insertBefore(node,index.nextSibling);}else{parent.replaceChild(node,element);}index=node;});},children:function children(element){var children=[];forEach(element.childNodes,function(element){if(element.nodeType===NODE_TYPE_ELEMENT){children.push(element);}});return children;},contents:function contents(element){return element.contentDocument||element.childNodes||[];},append:function append(element,node){var nodeType=element.nodeType;if(nodeType!==NODE_TYPE_ELEMENT&&nodeType!==NODE_TYPE_DOCUMENT_FRAGMENT)return;node=new JQLite(node);for(var i=0,ii=node.length;i<ii;i++){var child=node[i];element.appendChild(child);}},prepend:function prepend(element,node){if(element.nodeType===NODE_TYPE_ELEMENT){var index=element.firstChild;forEach(new JQLite(node),function(child){element.insertBefore(child,index);});}},wrap:function wrap(element,wrapNode){jqLiteWrapNode(element,jqLite(wrapNode).eq(0).clone()[0]);},remove:jqLiteRemove,detach:function detach(element){jqLiteRemove(element,true);},after:function after(element,newElement){var index=element,parent=element.parentNode;if(parent){newElement=new JQLite(newElement);for(var i=0,ii=newElement.length;i<ii;i++){var node=newElement[i];parent.insertBefore(node,index.nextSibling);index=node;}}},addClass:jqLiteAddClass,removeClass:jqLiteRemoveClass,toggleClass:function toggleClass(element,selector,condition){if(selector){forEach(selector.split(' '),function(className){var classCondition=condition;if(isUndefined(classCondition)){classCondition=!jqLiteHasClass(element,className);}(classCondition?jqLiteAddClass:jqLiteRemoveClass)(element,className);});}},parent:function parent(element){var parent=element.parentNode;return parent&&parent.nodeType!==NODE_TYPE_DOCUMENT_FRAGMENT?parent:null;},next:function next(element){return element.nextElementSibling;},find:function find(element,selector){if(element.getElementsByTagName){return element.getElementsByTagName(selector);}else{return[];}},clone:jqLiteClone,triggerHandler:function triggerHandler(element,event,extraParameters){var dummyEvent,eventFnsCopy,handlerArgs;var eventName=event.type||event;var expandoStore=jqLiteExpandoStore(element);var events=expandoStore&&expandoStore.events;var eventFns=events&&events[eventName];if(eventFns){// Create a dummy event to pass to the handlers
	dummyEvent={preventDefault:function preventDefault(){this.defaultPrevented=true;},isDefaultPrevented:function isDefaultPrevented(){return this.defaultPrevented===true;},stopImmediatePropagation:function stopImmediatePropagation(){this.immediatePropagationStopped=true;},isImmediatePropagationStopped:function isImmediatePropagationStopped(){return this.immediatePropagationStopped===true;},stopPropagation:noop,type:eventName,target:element};// If a custom event was provided then extend our dummy event with it
	if(event.type){dummyEvent=extend(dummyEvent,event);}// Copy event handlers in case event handlers array is modified during execution.
	eventFnsCopy=shallowCopy(eventFns);handlerArgs=extraParameters?[dummyEvent].concat(extraParameters):[dummyEvent];forEach(eventFnsCopy,function(fn){if(!dummyEvent.isImmediatePropagationStopped()){fn.apply(element,handlerArgs);}});}}},function(fn,name){/**
	   * chaining functions
	   */JQLite.prototype[name]=function(arg1,arg2,arg3){var value;for(var i=0,ii=this.length;i<ii;i++){if(isUndefined(value)){value=fn(this[i],arg1,arg2,arg3);if(isDefined(value)){// any function which returns a value needs to be wrapped
	value=jqLite(value);}}else{jqLiteAddNodes(value,fn(this[i],arg1,arg2,arg3));}}return isDefined(value)?value:this;};});// bind legacy bind/unbind to on/off
	JQLite.prototype.bind=JQLite.prototype.on;JQLite.prototype.unbind=JQLite.prototype.off;// Provider for private $$jqLite service
	/** @this */function $$jqLiteProvider(){this.$get=function $$jqLite(){return extend(JQLite,{hasClass:function hasClass(node,classes){if(node.attr)node=node[0];return jqLiteHasClass(node,classes);},addClass:function addClass(node,classes){if(node.attr)node=node[0];return jqLiteAddClass(node,classes);},removeClass:function removeClass(node,classes){if(node.attr)node=node[0];return jqLiteRemoveClass(node,classes);}});};}/**
	 * Computes a hash of an 'obj'.
	 * Hash of a:
	 *  string is string
	 *  number is number as string
	 *  object is either result of calling $$hashKey function on the object or uniquely generated id,
	 *         that is also assigned to the $$hashKey property of the object.
	 *
	 * @param obj
	 * @returns {string} hash string such that the same input will have the same hash string.
	 *         The resulting string key is in 'type:hashKey' format.
	 */function hashKey(obj,nextUidFn){var key=obj&&obj.$$hashKey;if(key){if(typeof key==='function'){key=obj.$$hashKey();}return key;}var objType=typeof obj==='undefined'?'undefined':_typeof(obj);if(objType==='function'||objType==='object'&&obj!==null){key=obj.$$hashKey=objType+':'+(nextUidFn||nextUid)();}else{key=objType+':'+obj;}return key;}// A minimal ES2015 Map implementation.
	// Should be bug/feature equivalent to the native implementations of supported browsers
	// (for the features required in Angular).
	// See https://kangax.github.io/compat-table/es6/#test-Map
	var nanKey=Object.create(null);function NgMapShim(){this._keys=[];this._values=[];this._lastKey=NaN;this._lastIndex=-1;}NgMapShim.prototype={_idx:function _idx(key){if(key!==this._lastKey){this._lastKey=key;this._lastIndex=this._keys.indexOf(key);}return this._lastIndex;},_transformKey:function _transformKey(key){return isNumberNaN(key)?nanKey:key;},get:function get(key){key=this._transformKey(key);var idx=this._idx(key);if(idx!==-1){return this._values[idx];}},has:function has(key){key=this._transformKey(key);var idx=this._idx(key);return idx!==-1;},set:function set(key,value){key=this._transformKey(key);var idx=this._idx(key);if(idx===-1){idx=this._lastIndex=this._keys.length;}this._keys[idx]=key;this._values[idx]=value;// Support: IE11
	// Do not `return this` to simulate the partial IE11 implementation
	},delete:function _delete(key){key=this._transformKey(key);var idx=this._idx(key);if(idx===-1){return false;}this._keys.splice(idx,1);this._values.splice(idx,1);this._lastKey=NaN;this._lastIndex=-1;return true;}};// For now, always use `NgMapShim`, even if `window.Map` is available. Some native implementations
	// are still buggy (often in subtle ways) and can cause hard-to-debug failures. When native `Map`
	// implementations get more stable, we can reconsider switching to `window.Map` (when available).
	var NgMap=NgMapShim;var $$MapProvider=[/** @this */function(){this.$get=[function(){return NgMap;}];}];/**
	 * @ngdoc function
	 * @module ng
	 * @name angular.injector
	 * @kind function
	 *
	 * @description
	 * Creates an injector object that can be used for retrieving services as well as for
	 * dependency injection (see {@link guide/di dependency injection}).
	 *
	 * @param {Array.<string|Function>} modules A list of module functions or their aliases. See
	 *     {@link angular.module}. The `ng` module must be explicitly added.
	 * @param {boolean=} [strictDi=false] Whether the injector should be in strict mode, which
	 *     disallows argument name annotation inference.
	 * @returns {injector} Injector object. See {@link auto.$injector $injector}.
	 *
	 * @example
	 * Typical usage
	 * ```js
	 *   // create an injector
	 *   var $injector = angular.injector(['ng']);
	 *
	 *   // use the injector to kick off your application
	 *   // use the type inference to auto inject arguments, or use implicit injection
	 *   $injector.invoke(function($rootScope, $compile, $document) {
	 *     $compile($document)($rootScope);
	 *     $rootScope.$digest();
	 *   });
	 * ```
	 *
	 * Sometimes you want to get access to the injector of a currently running AngularJS app
	 * from outside AngularJS. Perhaps, you want to inject and compile some markup after the
	 * application has been bootstrapped. You can do this using the extra `injector()` added
	 * to JQuery/jqLite elements. See {@link angular.element}.
	 *
	 * *This is fairly rare but could be the case if a third party library is injecting the
	 * markup.*
	 *
	 * In the following example a new block of HTML containing a `ng-controller`
	 * directive is added to the end of the document body by JQuery. We then compile and link
	 * it into the current AngularJS scope.
	 *
	 * ```js
	 * var $div = $('<div ng-controller="MyCtrl">{{content.label}}</div>');
	 * $(document.body).append($div);
	 *
	 * angular.element(document).injector().invoke(function($compile) {
	 *   var scope = angular.element($div).scope();
	 *   $compile($div)(scope);
	 * });
	 * ```
	 *//**
	 * @ngdoc module
	 * @name auto
	 * @installation
	 * @description
	 *
	 * Implicit module which gets automatically added to each {@link auto.$injector $injector}.
	 */var ARROW_ARG=/^([^(]+?)=>/;var FN_ARGS=/^[^(]*\(\s*([^)]*)\)/m;var FN_ARG_SPLIT=/,/;var FN_ARG=/^\s*(_?)(\S+?)\1\s*$/;var STRIP_COMMENTS=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;var $injectorMinErr=minErr('$injector');function stringifyFn(fn){return Function.prototype.toString.call(fn);}function extractArgs(fn){var fnText=stringifyFn(fn).replace(STRIP_COMMENTS,''),args=fnText.match(ARROW_ARG)||fnText.match(FN_ARGS);return args;}function anonFn(fn){// For anonymous functions, showing at the very least the function signature can help in
	// debugging.
	var args=extractArgs(fn);if(args){return'function('+(args[1]||'').replace(/[\s\r\n]+/,' ')+')';}return'fn';}function annotate(fn,strictDi,name){var $inject,argDecl,last;if(typeof fn==='function'){if(!($inject=fn.$inject)){$inject=[];if(fn.length){if(strictDi){if(!isString(name)||!name){name=fn.name||anonFn(fn);}throw $injectorMinErr('strictdi','{0} is not using explicit annotation and cannot be invoked in strict mode',name);}argDecl=extractArgs(fn);forEach(argDecl[1].split(FN_ARG_SPLIT),function(arg){arg.replace(FN_ARG,function(all,underscore,name){$inject.push(name);});});}fn.$inject=$inject;}}else if(isArray(fn)){last=fn.length-1;assertArgFn(fn[last],'fn');$inject=fn.slice(0,last);}else{assertArgFn(fn,'fn',true);}return $inject;}///////////////////////////////////////
	/**
	 * @ngdoc service
	 * @name $injector
	 *
	 * @description
	 *
	 * `$injector` is used to retrieve object instances as defined by
	 * {@link auto.$provide provider}, instantiate types, invoke methods,
	 * and load modules.
	 *
	 * The following always holds true:
	 *
	 * ```js
	 *   var $injector = angular.injector();
	 *   expect($injector.get('$injector')).toBe($injector);
	 *   expect($injector.invoke(function($injector) {
	 *     return $injector;
	 *   })).toBe($injector);
	 * ```
	 *
	 * ## Injection Function Annotation
	 *
	 * JavaScript does not have annotations, and annotations are needed for dependency injection. The
	 * following are all valid ways of annotating function with injection arguments and are equivalent.
	 *
	 * ```js
	 *   // inferred (only works if code not minified/obfuscated)
	 *   $injector.invoke(function(serviceA){});
	 *
	 *   // annotated
	 *   function explicit(serviceA) {};
	 *   explicit.$inject = ['serviceA'];
	 *   $injector.invoke(explicit);
	 *
	 *   // inline
	 *   $injector.invoke(['serviceA', function(serviceA){}]);
	 * ```
	 *
	 * ### Inference
	 *
	 * In JavaScript calling `toString()` on a function returns the function definition. The definition
	 * can then be parsed and the function arguments can be extracted. This method of discovering
	 * annotations is disallowed when the injector is in strict mode.
	 * *NOTE:* This does not work with minification, and obfuscation tools since these tools change the
	 * argument names.
	 *
	 * ### `$inject` Annotation
	 * By adding an `$inject` property onto a function the injection parameters can be specified.
	 *
	 * ### Inline
	 * As an array of injection names, where the last item in the array is the function to call.
	 *//**
	 * @ngdoc property
	 * @name $injector#modules
	 * @type {Object}
	 * @description
	 * A hash containing all the modules that have been loaded into the
	 * $injector.
	 *
	 * You can use this property to find out information about a module via the
	 * {@link angular.Module#info `myModule.info(...)`} method.
	 *
	 * For example:
	 *
	 * ```
	 * var info = $injector.modules['ngAnimate'].info();
	 * ```
	 *
	 * **Do not use this property to attempt to modify the modules after the application
	 * has been bootstrapped.**
	 *//**
	 * @ngdoc method
	 * @name $injector#get
	 *
	 * @description
	 * Return an instance of the service.
	 *
	 * @param {string} name The name of the instance to retrieve.
	 * @param {string=} caller An optional string to provide the origin of the function call for error messages.
	 * @return {*} The instance.
	 *//**
	 * @ngdoc method
	 * @name $injector#invoke
	 *
	 * @description
	 * Invoke the method and supply the method arguments from the `$injector`.
	 *
	 * @param {Function|Array.<string|Function>} fn The injectable function to invoke. Function parameters are
	 *   injected according to the {@link guide/di $inject Annotation} rules.
	 * @param {Object=} self The `this` for the invoked method.
	 * @param {Object=} locals Optional object. If preset then any argument names are read from this
	 *                         object first, before the `$injector` is consulted.
	 * @returns {*} the value returned by the invoked `fn` function.
	 *//**
	 * @ngdoc method
	 * @name $injector#has
	 *
	 * @description
	 * Allows the user to query if the particular service exists.
	 *
	 * @param {string} name Name of the service to query.
	 * @returns {boolean} `true` if injector has given service.
	 *//**
	 * @ngdoc method
	 * @name $injector#instantiate
	 * @description
	 * Create a new instance of JS type. The method takes a constructor function, invokes the new
	 * operator, and supplies all of the arguments to the constructor function as specified by the
	 * constructor annotation.
	 *
	 * @param {Function} Type Annotated constructor function.
	 * @param {Object=} locals Optional object. If preset then any argument names are read from this
	 * object first, before the `$injector` is consulted.
	 * @returns {Object} new instance of `Type`.
	 *//**
	 * @ngdoc method
	 * @name $injector#annotate
	 *
	 * @description
	 * Returns an array of service names which the function is requesting for injection. This API is
	 * used by the injector to determine which services need to be injected into the function when the
	 * function is invoked. There are three ways in which the function can be annotated with the needed
	 * dependencies.
	 *
	 * #### Argument names
	 *
	 * The simplest form is to extract the dependencies from the arguments of the function. This is done
	 * by converting the function into a string using `toString()` method and extracting the argument
	 * names.
	 * ```js
	 *   // Given
	 *   function MyController($scope, $route) {
	 *     // ...
	 *   }
	 *
	 *   // Then
	 *   expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);
	 * ```
	 *
	 * You can disallow this method by using strict injection mode.
	 *
	 * This method does not work with code minification / obfuscation. For this reason the following
	 * annotation strategies are supported.
	 *
	 * #### The `$inject` property
	 *
	 * If a function has an `$inject` property and its value is an array of strings, then the strings
	 * represent names of services to be injected into the function.
	 * ```js
	 *   // Given
	 *   var MyController = function(obfuscatedScope, obfuscatedRoute) {
	 *     // ...
	 *   }
	 *   // Define function dependencies
	 *   MyController['$inject'] = ['$scope', '$route'];
	 *
	 *   // Then
	 *   expect(injector.annotate(MyController)).toEqual(['$scope', '$route']);
	 * ```
	 *
	 * #### The array notation
	 *
	 * It is often desirable to inline Injected functions and that's when setting the `$inject` property
	 * is very inconvenient. In these situations using the array notation to specify the dependencies in
	 * a way that survives minification is a better choice:
	 *
	 * ```js
	 *   // We wish to write this (not minification / obfuscation safe)
	 *   injector.invoke(function($compile, $rootScope) {
	 *     // ...
	 *   });
	 *
	 *   // We are forced to write break inlining
	 *   var tmpFn = function(obfuscatedCompile, obfuscatedRootScope) {
	 *     // ...
	 *   };
	 *   tmpFn.$inject = ['$compile', '$rootScope'];
	 *   injector.invoke(tmpFn);
	 *
	 *   // To better support inline function the inline annotation is supported
	 *   injector.invoke(['$compile', '$rootScope', function(obfCompile, obfRootScope) {
	 *     // ...
	 *   }]);
	 *
	 *   // Therefore
	 *   expect(injector.annotate(
	 *      ['$compile', '$rootScope', function(obfus_$compile, obfus_$rootScope) {}])
	 *    ).toEqual(['$compile', '$rootScope']);
	 * ```
	 *
	 * @param {Function|Array.<string|Function>} fn Function for which dependent service names need to
	 * be retrieved as described above.
	 *
	 * @param {boolean=} [strictDi=false] Disallow argument name annotation inference.
	 *
	 * @returns {Array.<string>} The names of the services which the function requires.
	 *//**
	 * @ngdoc method
	 * @name $injector#loadNewModules
	 *
	 * @description
	 *
	 * **This is a dangerous API, which you use at your own risk!**
	 *
	 * Add the specified modules to the current injector.
	 *
	 * This method will add each of the injectables to the injector and execute all of the config and run
	 * blocks for each module passed to the method.
	 *
	 * If a module has already been loaded into the injector then it will not be loaded again.
	 *
	 * * The application developer is responsible for loading the code containing the modules; and for
	 * ensuring that lazy scripts are not downloaded and executed more often that desired.
	 * * Previously compiled HTML will not be affected by newly loaded directives, filters and components.
	 * * Modules cannot be unloaded.
	 *
	 * You can use {@link $injector#modules `$injector.modules`} to check whether a module has been loaded
	 * into the injector, which may indicate whether the script has been executed already.
	 *
	 * @example
	 * Here is an example of loading a bundle of modules, with a utility method called `getScript`:
	 *
	 * ```javascript
	 * app.factory('loadModule', function($injector) {
	 *   return function loadModule(moduleName, bundleUrl) {
	 *     return getScript(bundleUrl).then(function() { $injector.loadNewModules([moduleName]); });
	 *   };
	 * })
	 * ```
	 *
	 * @param {Array<String|Function|Array>=} mods an array of modules to load into the application.
	 *     Each item in the array should be the name of a predefined module or a (DI annotated)
	 *     function that will be invoked by the injector as a `config` block.
	 *     See: {@link angular.module modules}
	 *//**
	 * @ngdoc service
	 * @name $provide
	 *
	 * @description
	 *
	 * The {@link auto.$provide $provide} service has a number of methods for registering components
	 * with the {@link auto.$injector $injector}. Many of these functions are also exposed on
	 * {@link angular.Module}.
	 *
	 * An AngularJS **service** is a singleton object created by a **service factory**.  These **service
	 * factories** are functions which, in turn, are created by a **service provider**.
	 * The **service providers** are constructor functions. When instantiated they must contain a
	 * property called `$get`, which holds the **service factory** function.
	 *
	 * When you request a service, the {@link auto.$injector $injector} is responsible for finding the
	 * correct **service provider**, instantiating it and then calling its `$get` **service factory**
	 * function to get the instance of the **service**.
	 *
	 * Often services have no configuration options and there is no need to add methods to the service
	 * provider.  The provider will be no more than a constructor function with a `$get` property. For
	 * these cases the {@link auto.$provide $provide} service has additional helper methods to register
	 * services without specifying a provider.
	 *
	 * * {@link auto.$provide#provider provider(name, provider)} - registers a **service provider** with the
	 *     {@link auto.$injector $injector}
	 * * {@link auto.$provide#constant constant(name, obj)} - registers a value/object that can be accessed by
	 *     providers and services.
	 * * {@link auto.$provide#value value(name, obj)} - registers a value/object that can only be accessed by
	 *     services, not providers.
	 * * {@link auto.$provide#factory factory(name, fn)} - registers a service **factory function**
	 *     that will be wrapped in a **service provider** object, whose `$get` property will contain the
	 *     given factory function.
	 * * {@link auto.$provide#service service(name, Fn)} - registers a **constructor function**
	 *     that will be wrapped in a **service provider** object, whose `$get` property will instantiate
	 *      a new object using the given constructor function.
	 * * {@link auto.$provide#decorator decorator(name, decorFn)} - registers a **decorator function** that
	 *      will be able to modify or replace the implementation of another service.
	 *
	 * See the individual methods for more information and examples.
	 *//**
	 * @ngdoc method
	 * @name $provide#provider
	 * @description
	 *
	 * Register a **provider function** with the {@link auto.$injector $injector}. Provider functions
	 * are constructor functions, whose instances are responsible for "providing" a factory for a
	 * service.
	 *
	 * Service provider names start with the name of the service they provide followed by `Provider`.
	 * For example, the {@link ng.$log $log} service has a provider called
	 * {@link ng.$logProvider $logProvider}.
	 *
	 * Service provider objects can have additional methods which allow configuration of the provider
	 * and its service. Importantly, you can configure what kind of service is created by the `$get`
	 * method, or how that service will act. For example, the {@link ng.$logProvider $logProvider} has a
	 * method {@link ng.$logProvider#debugEnabled debugEnabled}
	 * which lets you specify whether the {@link ng.$log $log} service will log debug messages to the
	 * console or not.
	 *
	 * It is possible to inject other providers into the provider function,
	 * but the injected provider must have been defined before the one that requires it.
	 *
	 * @param {string} name The name of the instance. NOTE: the provider will be available under `name +
	                        'Provider'` key.
	 * @param {(Object|function())} provider If the provider is:
	 *
	 *   - `Object`: then it should have a `$get` method. The `$get` method will be invoked using
	 *     {@link auto.$injector#invoke $injector.invoke()} when an instance needs to be created.
	 *   - `Constructor`: a new instance of the provider will be created using
	 *     {@link auto.$injector#instantiate $injector.instantiate()}, then treated as `object`.
	 *
	 * @returns {Object} registered provider instance
	
	 * @example
	 *
	 * The following example shows how to create a simple event tracking service and register it using
	 * {@link auto.$provide#provider $provide.provider()}.
	 *
	 * ```js
	 *  // Define the eventTracker provider
	 *  function EventTrackerProvider() {
	 *    var trackingUrl = '/track';
	 *
	 *    // A provider method for configuring where the tracked events should been saved
	 *    this.setTrackingUrl = function(url) {
	 *      trackingUrl = url;
	 *    };
	 *
	 *    // The service factory function
	 *    this.$get = ['$http', function($http) {
	 *      var trackedEvents = {};
	 *      return {
	 *        // Call this to track an event
	 *        event: function(event) {
	 *          var count = trackedEvents[event] || 0;
	 *          count += 1;
	 *          trackedEvents[event] = count;
	 *          return count;
	 *        },
	 *        // Call this to save the tracked events to the trackingUrl
	 *        save: function() {
	 *          $http.post(trackingUrl, trackedEvents);
	 *        }
	 *      };
	 *    }];
	 *  }
	 *
	 *  describe('eventTracker', function() {
	 *    var postSpy;
	 *
	 *    beforeEach(module(function($provide) {
	 *      // Register the eventTracker provider
	 *      $provide.provider('eventTracker', EventTrackerProvider);
	 *    }));
	 *
	 *    beforeEach(module(function(eventTrackerProvider) {
	 *      // Configure eventTracker provider
	 *      eventTrackerProvider.setTrackingUrl('/custom-track');
	 *    }));
	 *
	 *    it('tracks events', inject(function(eventTracker) {
	 *      expect(eventTracker.event('login')).toEqual(1);
	 *      expect(eventTracker.event('login')).toEqual(2);
	 *    }));
	 *
	 *    it('saves to the tracking url', inject(function(eventTracker, $http) {
	 *      postSpy = spyOn($http, 'post');
	 *      eventTracker.event('login');
	 *      eventTracker.save();
	 *      expect(postSpy).toHaveBeenCalled();
	 *      expect(postSpy.mostRecentCall.args[0]).not.toEqual('/track');
	 *      expect(postSpy.mostRecentCall.args[0]).toEqual('/custom-track');
	 *      expect(postSpy.mostRecentCall.args[1]).toEqual({ 'login': 1 });
	 *    }));
	 *  });
	 * ```
	 *//**
	 * @ngdoc method
	 * @name $provide#factory
	 * @description
	 *
	 * Register a **service factory**, which will be called to return the service instance.
	 * This is short for registering a service where its provider consists of only a `$get` property,
	 * which is the given service factory function.
	 * You should use {@link auto.$provide#factory $provide.factory(getFn)} if you do not need to
	 * configure your service in a provider.
	 *
	 * @param {string} name The name of the instance.
	 * @param {Function|Array.<string|Function>} $getFn The injectable $getFn for the instance creation.
	 *                      Internally this is a short hand for `$provide.provider(name, {$get: $getFn})`.
	 * @returns {Object} registered provider instance
	 *
	 * @example
	 * Here is an example of registering a service
	 * ```js
	 *   $provide.factory('ping', ['$http', function($http) {
	 *     return function ping() {
	 *       return $http.send('/ping');
	 *     };
	 *   }]);
	 * ```
	 * You would then inject and use this service like this:
	 * ```js
	 *   someModule.controller('Ctrl', ['ping', function(ping) {
	 *     ping();
	 *   }]);
	 * ```
	 *//**
	 * @ngdoc method
	 * @name $provide#service
	 * @description
	 *
	 * Register a **service constructor**, which will be invoked with `new` to create the service
	 * instance.
	 * This is short for registering a service where its provider's `$get` property is a factory
	 * function that returns an instance instantiated by the injector from the service constructor
	 * function.
	 *
	 * Internally it looks a bit like this:
	 *
	 * ```
	 * {
	 *   $get: function() {
	 *     return $injector.instantiate(constructor);
	 *   }
	 * }
	 * ```
	 *
	 *
	 * You should use {@link auto.$provide#service $provide.service(class)} if you define your service
	 * as a type/class.
	 *
	 * @param {string} name The name of the instance.
	 * @param {Function|Array.<string|Function>} constructor An injectable class (constructor function)
	 *     that will be instantiated.
	 * @returns {Object} registered provider instance
	 *
	 * @example
	 * Here is an example of registering a service using
	 * {@link auto.$provide#service $provide.service(class)}.
	 * ```js
	 *   var Ping = function($http) {
	 *     this.$http = $http;
	 *   };
	 *
	 *   Ping.$inject = ['$http'];
	 *
	 *   Ping.prototype.send = function() {
	 *     return this.$http.get('/ping');
	 *   };
	 *   $provide.service('ping', Ping);
	 * ```
	 * You would then inject and use this service like this:
	 * ```js
	 *   someModule.controller('Ctrl', ['ping', function(ping) {
	 *     ping.send();
	 *   }]);
	 * ```
	 *//**
	 * @ngdoc method
	 * @name $provide#value
	 * @description
	 *
	 * Register a **value service** with the {@link auto.$injector $injector}, such as a string, a
	 * number, an array, an object or a function. This is short for registering a service where its
	 * provider's `$get` property is a factory function that takes no arguments and returns the **value
	 * service**. That also means it is not possible to inject other services into a value service.
	 *
	 * Value services are similar to constant services, except that they cannot be injected into a
	 * module configuration function (see {@link angular.Module#config}) but they can be overridden by
	 * an AngularJS {@link auto.$provide#decorator decorator}.
	 *
	 * @param {string} name The name of the instance.
	 * @param {*} value The value.
	 * @returns {Object} registered provider instance
	 *
	 * @example
	 * Here are some examples of creating value services.
	 * ```js
	 *   $provide.value('ADMIN_USER', 'admin');
	 *
	 *   $provide.value('RoleLookup', { admin: 0, writer: 1, reader: 2 });
	 *
	 *   $provide.value('halfOf', function(value) {
	 *     return value / 2;
	 *   });
	 * ```
	 *//**
	 * @ngdoc method
	 * @name $provide#constant
	 * @description
	 *
	 * Register a **constant service** with the {@link auto.$injector $injector}, such as a string,
	 * a number, an array, an object or a function. Like the {@link auto.$provide#value value}, it is not
	 * possible to inject other services into a constant.
	 *
	 * But unlike {@link auto.$provide#value value}, a constant can be
	 * injected into a module configuration function (see {@link angular.Module#config}) and it cannot
	 * be overridden by an AngularJS {@link auto.$provide#decorator decorator}.
	 *
	 * @param {string} name The name of the constant.
	 * @param {*} value The constant value.
	 * @returns {Object} registered instance
	 *
	 * @example
	 * Here a some examples of creating constants:
	 * ```js
	 *   $provide.constant('SHARD_HEIGHT', 306);
	 *
	 *   $provide.constant('MY_COLOURS', ['red', 'blue', 'grey']);
	 *
	 *   $provide.constant('double', function(value) {
	 *     return value * 2;
	 *   });
	 * ```
	 *//**
	 * @ngdoc method
	 * @name $provide#decorator
	 * @description
	 *
	 * Register a **decorator function** with the {@link auto.$injector $injector}. A decorator function
	 * intercepts the creation of a service, allowing it to override or modify the behavior of the
	 * service. The return value of the decorator function may be the original service, or a new service
	 * that replaces (or wraps and delegates to) the original service.
	 *
	 * You can find out more about using decorators in the {@link guide/decorators} guide.
	 *
	 * @param {string} name The name of the service to decorate.
	 * @param {Function|Array.<string|Function>} decorator This function will be invoked when the service needs to be
	 *    provided and should return the decorated service instance. The function is called using
	 *    the {@link auto.$injector#invoke injector.invoke} method and is therefore fully injectable.
	 *    Local injection arguments:
	 *
	 *    * `$delegate` - The original service instance, which can be replaced, monkey patched, configured,
	 *      decorated or delegated to.
	 *
	 * @example
	 * Here we decorate the {@link ng.$log $log} service to convert warnings to errors by intercepting
	 * calls to {@link ng.$log#error $log.warn()}.
	 * ```js
	 *   $provide.decorator('$log', ['$delegate', function($delegate) {
	 *     $delegate.warn = $delegate.error;
	 *     return $delegate;
	 *   }]);
	 * ```
	 */function createInjector(modulesToLoad,strictDi){strictDi=strictDi===true;var INSTANTIATING={},providerSuffix='Provider',path=[],loadedModules=new NgMap(),providerCache={$provide:{provider:supportObject(provider),factory:supportObject(factory),service:supportObject(service),value:supportObject(value),constant:supportObject(constant),decorator:decorator}},providerInjector=providerCache.$injector=createInternalInjector(providerCache,function(serviceName,caller){if(angular.isString(caller)){path.push(caller);}throw $injectorMinErr('unpr','Unknown provider: {0}',path.join(' <- '));}),instanceCache={},protoInstanceInjector=createInternalInjector(instanceCache,function(serviceName,caller){var provider=providerInjector.get(serviceName+providerSuffix,caller);return instanceInjector.invoke(provider.$get,provider,undefined,serviceName);}),instanceInjector=protoInstanceInjector;providerCache['$injector'+providerSuffix]={$get:valueFn(protoInstanceInjector)};instanceInjector.modules=providerInjector.modules=createMap();var runBlocks=loadModules(modulesToLoad);instanceInjector=protoInstanceInjector.get('$injector');instanceInjector.strictDi=strictDi;forEach(runBlocks,function(fn){if(fn)instanceInjector.invoke(fn);});instanceInjector.loadNewModules=function(mods){forEach(loadModules(mods),function(fn){if(fn)instanceInjector.invoke(fn);});};return instanceInjector;////////////////////////////////////
	// $provider
	////////////////////////////////////
	function supportObject(delegate){return function(key,value){if(isObject(key)){forEach(key,reverseParams(delegate));}else{return delegate(key,value);}};}function provider(name,provider_){assertNotHasOwnProperty(name,'service');if(isFunction(provider_)||isArray(provider_)){provider_=providerInjector.instantiate(provider_);}if(!provider_.$get){throw $injectorMinErr('pget','Provider \'{0}\' must define $get factory method.',name);}return providerCache[name+providerSuffix]=provider_;}function enforceReturnValue(name,factory){return(/** @this */function enforcedReturnValue(){var result=instanceInjector.invoke(factory,this);if(isUndefined(result)){throw $injectorMinErr('undef','Provider \'{0}\' must return a value from $get factory method.',name);}return result;});}function factory(name,factoryFn,enforce){return provider(name,{$get:enforce!==false?enforceReturnValue(name,factoryFn):factoryFn});}function service(name,constructor){return factory(name,['$injector',function($injector){return $injector.instantiate(constructor);}]);}function value(name,val){return factory(name,valueFn(val),false);}function constant(name,value){assertNotHasOwnProperty(name,'constant');providerCache[name]=value;instanceCache[name]=value;}function decorator(serviceName,decorFn){var origProvider=providerInjector.get(serviceName+providerSuffix),orig$get=origProvider.$get;origProvider.$get=function(){var origInstance=instanceInjector.invoke(orig$get,origProvider);return instanceInjector.invoke(decorFn,null,{$delegate:origInstance});};}////////////////////////////////////
	// Module Loading
	////////////////////////////////////
	function loadModules(modulesToLoad){assertArg(isUndefined(modulesToLoad)||isArray(modulesToLoad),'modulesToLoad','not an array');var runBlocks=[],moduleFn;forEach(modulesToLoad,function(module){if(loadedModules.get(module))return;loadedModules.set(module,true);function runInvokeQueue(queue){var i,ii;for(i=0,ii=queue.length;i<ii;i++){var invokeArgs=queue[i],provider=providerInjector.get(invokeArgs[0]);provider[invokeArgs[1]].apply(provider,invokeArgs[2]);}}try{if(isString(module)){moduleFn=angularModule(module);instanceInjector.modules[module]=moduleFn;runBlocks=runBlocks.concat(loadModules(moduleFn.requires)).concat(moduleFn._runBlocks);runInvokeQueue(moduleFn._invokeQueue);runInvokeQueue(moduleFn._configBlocks);}else if(isFunction(module)){runBlocks.push(providerInjector.invoke(module));}else if(isArray(module)){runBlocks.push(providerInjector.invoke(module));}else{assertArgFn(module,'module');}}catch(e){if(isArray(module)){module=module[module.length-1];}if(e.message&&e.stack&&e.stack.indexOf(e.message)===-1){// Safari & FF's stack traces don't contain error.message content
	// unlike those of Chrome and IE
	// So if stack doesn't contain message, we create a new string that contains both.
	// Since error.stack is read-only in Safari, I'm overriding e and not e.stack here.
	// eslint-disable-next-line no-ex-assign
	e=e.message+'\n'+e.stack;}throw $injectorMinErr('modulerr','Failed to instantiate module {0} due to:\n{1}',module,e.stack||e.message||e);}});return runBlocks;}////////////////////////////////////
	// internal Injector
	////////////////////////////////////
	function createInternalInjector(cache,factory){function getService(serviceName,caller){if(cache.hasOwnProperty(serviceName)){if(cache[serviceName]===INSTANTIATING){throw $injectorMinErr('cdep','Circular dependency found: {0}',serviceName+' <- '+path.join(' <- '));}return cache[serviceName];}else{try{path.unshift(serviceName);cache[serviceName]=INSTANTIATING;cache[serviceName]=factory(serviceName,caller);return cache[serviceName];}catch(err){if(cache[serviceName]===INSTANTIATING){delete cache[serviceName];}throw err;}finally{path.shift();}}}function injectionArgs(fn,locals,serviceName){var args=[],$inject=createInjector.$$annotate(fn,strictDi,serviceName);for(var i=0,length=$inject.length;i<length;i++){var key=$inject[i];if(typeof key!=='string'){throw $injectorMinErr('itkn','Incorrect injection token! Expected service name as string, got {0}',key);}args.push(locals&&locals.hasOwnProperty(key)?locals[key]:getService(key,serviceName));}return args;}function isClass(func){// Support: IE 9-11 only
	// IE 9-11 do not support classes and IE9 leaks with the code below.
	if(msie||typeof func!=='function'){return false;}var result=func.$$ngIsClass;if(!isBoolean(result)){result=func.$$ngIsClass=/^class\b/.test(stringifyFn(func));}return result;}function invoke(fn,self,locals,serviceName){if(typeof locals==='string'){serviceName=locals;locals=null;}var args=injectionArgs(fn,locals,serviceName);if(isArray(fn)){fn=fn[fn.length-1];}if(!isClass(fn)){// http://jsperf.com/angularjs-invoke-apply-vs-switch
	// #5388
	return fn.apply(self,args);}else{args.unshift(null);return new(Function.prototype.bind.apply(fn,args))();}}function instantiate(Type,locals,serviceName){// Check if Type is annotated and use just the given function at n-1 as parameter
	// e.g. someModule.factory('greeter', ['$window', function(renamed$window) {}]);
	var ctor=isArray(Type)?Type[Type.length-1]:Type;var args=injectionArgs(Type,locals,serviceName);// Empty object at position 0 is ignored for invocation with `new`, but required.
	args.unshift(null);return new(Function.prototype.bind.apply(ctor,args))();}return{invoke:invoke,instantiate:instantiate,get:getService,annotate:createInjector.$$annotate,has:function has(name){return providerCache.hasOwnProperty(name+providerSuffix)||cache.hasOwnProperty(name);}};}}createInjector.$$annotate=annotate;/**
	 * @ngdoc provider
	 * @name $anchorScrollProvider
	 * @this
	 *
	 * @description
	 * Use `$anchorScrollProvider` to disable automatic scrolling whenever
	 * {@link ng.$location#hash $location.hash()} changes.
	 */function $AnchorScrollProvider(){var autoScrollingEnabled=true;/**
	   * @ngdoc method
	   * @name $anchorScrollProvider#disableAutoScrolling
	   *
	   * @description
	   * By default, {@link ng.$anchorScroll $anchorScroll()} will automatically detect changes to
	   * {@link ng.$location#hash $location.hash()} and scroll to the element matching the new hash.<br />
	   * Use this method to disable automatic scrolling.
	   *
	   * If automatic scrolling is disabled, one must explicitly call
	   * {@link ng.$anchorScroll $anchorScroll()} in order to scroll to the element related to the
	   * current hash.
	   */this.disableAutoScrolling=function(){autoScrollingEnabled=false;};/**
	   * @ngdoc service
	   * @name $anchorScroll
	   * @kind function
	   * @requires $window
	   * @requires $location
	   * @requires $rootScope
	   *
	   * @description
	   * When called, it scrolls to the element related to the specified `hash` or (if omitted) to the
	   * current value of {@link ng.$location#hash $location.hash()}, according to the rules specified
	   * in the
	   * [HTML5 spec](http://www.w3.org/html/wg/drafts/html/master/browsers.html#an-indicated-part-of-the-document).
	   *
	   * It also watches the {@link ng.$location#hash $location.hash()} and automatically scrolls to
	   * match any anchor whenever it changes. This can be disabled by calling
	   * {@link ng.$anchorScrollProvider#disableAutoScrolling $anchorScrollProvider.disableAutoScrolling()}.
	   *
	   * Additionally, you can use its {@link ng.$anchorScroll#yOffset yOffset} property to specify a
	   * vertical scroll-offset (either fixed or dynamic).
	   *
	   * @param {string=} hash The hash specifying the element to scroll to. If omitted, the value of
	   *                       {@link ng.$location#hash $location.hash()} will be used.
	   *
	   * @property {(number|function|jqLite)} yOffset
	   * If set, specifies a vertical scroll-offset. This is often useful when there are fixed
	   * positioned elements at the top of the page, such as navbars, headers etc.
	   *
	   * `yOffset` can be specified in various ways:
	   * - **number**: A fixed number of pixels to be used as offset.<br /><br />
	   * - **function**: A getter function called everytime `$anchorScroll()` is executed. Must return
	   *   a number representing the offset (in pixels).<br /><br />
	   * - **jqLite**: A jqLite/jQuery element to be used for specifying the offset. The distance from
	   *   the top of the page to the element's bottom will be used as offset.<br />
	   *   **Note**: The element will be taken into account only as long as its `position` is set to
	   *   `fixed`. This option is useful, when dealing with responsive navbars/headers that adjust
	   *   their height and/or positioning according to the viewport's size.
	   *
	   * <br />
	   * <div class="alert alert-warning">
	   * In order for `yOffset` to work properly, scrolling should take place on the document's root and
	   * not some child element.
	   * </div>
	   *
	   * @example
	     <example module="anchorScrollExample" name="anchor-scroll">
	       <file name="index.html">
	         <div id="scrollArea" ng-controller="ScrollController">
	           <a ng-click="gotoBottom()">Go to bottom</a>
	           <a id="bottom"></a> You're at the bottom!
	         </div>
	       </file>
	       <file name="script.js">
	         angular.module('anchorScrollExample', [])
	           .controller('ScrollController', ['$scope', '$location', '$anchorScroll',
	             function($scope, $location, $anchorScroll) {
	               $scope.gotoBottom = function() {
	                 // set the location.hash to the id of
	                 // the element you wish to scroll to.
	                 $location.hash('bottom');
	
	                 // call $anchorScroll()
	                 $anchorScroll();
	               };
	             }]);
	       </file>
	       <file name="style.css">
	         #scrollArea {
	           height: 280px;
	           overflow: auto;
	         }
	
	         #bottom {
	           display: block;
	           margin-top: 2000px;
	         }
	       </file>
	     </example>
	   *
	   * <hr />
	   * The example below illustrates the use of a vertical scroll-offset (specified as a fixed value).
	   * See {@link ng.$anchorScroll#yOffset $anchorScroll.yOffset} for more details.
	   *
	   * @example
	     <example module="anchorScrollOffsetExample" name="anchor-scroll-offset">
	       <file name="index.html">
	         <div class="fixed-header" ng-controller="headerCtrl">
	           <a href="" ng-click="gotoAnchor(x)" ng-repeat="x in [1,2,3,4,5]">
	             Go to anchor {{x}}
	           </a>
	         </div>
	         <div id="anchor{{x}}" class="anchor" ng-repeat="x in [1,2,3,4,5]">
	           Anchor {{x}} of 5
	         </div>
	       </file>
	       <file name="script.js">
	         angular.module('anchorScrollOffsetExample', [])
	           .run(['$anchorScroll', function($anchorScroll) {
	             $anchorScroll.yOffset = 50;   // always scroll by 50 extra pixels
	           }])
	           .controller('headerCtrl', ['$anchorScroll', '$location', '$scope',
	             function($anchorScroll, $location, $scope) {
	               $scope.gotoAnchor = function(x) {
	                 var newHash = 'anchor' + x;
	                 if ($location.hash() !== newHash) {
	                   // set the $location.hash to `newHash` and
	                   // $anchorScroll will automatically scroll to it
	                   $location.hash('anchor' + x);
	                 } else {
	                   // call $anchorScroll() explicitly,
	                   // since $location.hash hasn't changed
	                   $anchorScroll();
	                 }
	               };
	             }
	           ]);
	       </file>
	       <file name="style.css">
	         body {
	           padding-top: 50px;
	         }
	
	         .anchor {
	           border: 2px dashed DarkOrchid;
	           padding: 10px 10px 200px 10px;
	         }
	
	         .fixed-header {
	           background-color: rgba(0, 0, 0, 0.2);
	           height: 50px;
	           position: fixed;
	           top: 0; left: 0; right: 0;
	         }
	
	         .fixed-header > a {
	           display: inline-block;
	           margin: 5px 15px;
	         }
	       </file>
	     </example>
	   */this.$get=['$window','$location','$rootScope',function($window,$location,$rootScope){var document=$window.document;// Helper function to get first anchor from a NodeList
	// (using `Array#some()` instead of `angular#forEach()` since it's more performant
	//  and working in all supported browsers.)
	function getFirstAnchor(list){var result=null;Array.prototype.some.call(list,function(element){if(nodeName_(element)==='a'){result=element;return true;}});return result;}function getYOffset(){var offset=scroll.yOffset;if(isFunction(offset)){offset=offset();}else if(isElement(offset)){var elem=offset[0];var style=$window.getComputedStyle(elem);if(style.position!=='fixed'){offset=0;}else{offset=elem.getBoundingClientRect().bottom;}}else if(!isNumber(offset)){offset=0;}return offset;}function scrollTo(elem){if(elem){elem.scrollIntoView();var offset=getYOffset();if(offset){// `offset` is the number of pixels we should scroll UP in order to align `elem` properly.
	// This is true ONLY if the call to `elem.scrollIntoView()` initially aligns `elem` at the
	// top of the viewport.
	//
	// IF the number of pixels from the top of `elem` to the end of the page's content is less
	// than the height of the viewport, then `elem.scrollIntoView()` will align the `elem` some
	// way down the page.
	//
	// This is often the case for elements near the bottom of the page.
	//
	// In such cases we do not need to scroll the whole `offset` up, just the difference between
	// the top of the element and the offset, which is enough to align the top of `elem` at the
	// desired position.
	var elemTop=elem.getBoundingClientRect().top;$window.scrollBy(0,elemTop-offset);}}else{$window.scrollTo(0,0);}}function scroll(hash){// Allow numeric hashes
	hash=isString(hash)?hash:isNumber(hash)?hash.toString():$location.hash();var elm;// empty hash, scroll to the top of the page
	if(!hash)scrollTo(null);// element with given id
	else if(elm=document.getElementById(hash))scrollTo(elm);// first anchor with given name :-D
	else if(elm=getFirstAnchor(document.getElementsByName(hash)))scrollTo(elm);// no element and hash === 'top', scroll to the top of the page
	else if(hash==='top')scrollTo(null);}// does not scroll when user clicks on anchor link that is currently on
	// (no url change, no $location.hash() change), browser native does scroll
	if(autoScrollingEnabled){$rootScope.$watch(function autoScrollWatch(){return $location.hash();},function autoScrollWatchAction(newVal,oldVal){// skip the initial scroll if $location.hash is empty
	if(newVal===oldVal&&newVal==='')return;jqLiteDocumentLoaded(function(){$rootScope.$evalAsync(scroll);});});}return scroll;}];}var $animateMinErr=minErr('$animate');var ELEMENT_NODE=1;var NG_ANIMATE_CLASSNAME='ng-animate';function mergeClasses(a,b){if(!a&&!b)return'';if(!a)return b;if(!b)return a;if(isArray(a))a=a.join(' ');if(isArray(b))b=b.join(' ');return a+' '+b;}function extractElementNode(element){for(var i=0;i<element.length;i++){var elm=element[i];if(elm.nodeType===ELEMENT_NODE){return elm;}}}function splitClasses(classes){if(isString(classes)){classes=classes.split(' ');}// Use createMap() to prevent class assumptions involving property names in
	// Object.prototype
	var obj=createMap();forEach(classes,function(klass){// sometimes the split leaves empty string values
	// incase extra spaces were applied to the options
	if(klass.length){obj[klass]=true;}});return obj;}// if any other type of options value besides an Object value is
	// passed into the $animate.method() animation then this helper code
	// will be run which will ignore it. While this patch is not the
	// greatest solution to this, a lot of existing plugins depend on
	// $animate to either call the callback (< 1.2) or return a promise
	// that can be changed. This helper function ensures that the options
	// are wiped clean incase a callback function is provided.
	function prepareAnimateOptions(options){return isObject(options)?options:{};}var $$CoreAnimateJsProvider=/** @this */function $$CoreAnimateJsProvider(){this.$get=noop;};// this is prefixed with Core since it conflicts with
	// the animateQueueProvider defined in ngAnimate/animateQueue.js
	var $$CoreAnimateQueueProvider=/** @this */function $$CoreAnimateQueueProvider(){var postDigestQueue=new NgMap();var postDigestElements=[];this.$get=['$$AnimateRunner','$rootScope',function($$AnimateRunner,$rootScope){return{enabled:noop,on:noop,off:noop,pin:noop,push:function push(element,event,options,domOperation){if(domOperation){domOperation();}options=options||{};if(options.from){element.css(options.from);}if(options.to){element.css(options.to);}if(options.addClass||options.removeClass){addRemoveClassesPostDigest(element,options.addClass,options.removeClass);}var runner=new $$AnimateRunner();// since there are no animations to run the runner needs to be
	// notified that the animation call is complete.
	runner.complete();return runner;}};function updateData(data,classes,value){var changed=false;if(classes){classes=isString(classes)?classes.split(' '):isArray(classes)?classes:[];forEach(classes,function(className){if(className){changed=true;data[className]=value;}});}return changed;}function handleCSSClassChanges(){forEach(postDigestElements,function(element){var data=postDigestQueue.get(element);if(data){var existing=splitClasses(element.attr('class'));var toAdd='';var toRemove='';forEach(data,function(status,className){var hasClass=!!existing[className];if(status!==hasClass){if(status){toAdd+=(toAdd.length?' ':'')+className;}else{toRemove+=(toRemove.length?' ':'')+className;}}});forEach(element,function(elm){if(toAdd){jqLiteAddClass(elm,toAdd);}if(toRemove){jqLiteRemoveClass(elm,toRemove);}});postDigestQueue.delete(element);}});postDigestElements.length=0;}function addRemoveClassesPostDigest(element,add,remove){var data=postDigestQueue.get(element)||{};var classesAdded=updateData(data,add,true);var classesRemoved=updateData(data,remove,false);if(classesAdded||classesRemoved){postDigestQueue.set(element,data);postDigestElements.push(element);if(postDigestElements.length===1){$rootScope.$$postDigest(handleCSSClassChanges);}}}}];};/**
	 * @ngdoc provider
	 * @name $animateProvider
	 *
	 * @description
	 * Default implementation of $animate that doesn't perform any animations, instead just
	 * synchronously performs DOM updates and resolves the returned runner promise.
	 *
	 * In order to enable animations the `ngAnimate` module has to be loaded.
	 *
	 * To see the functional implementation check out `src/ngAnimate/animate.js`.
	 */var $AnimateProvider=['$provide',/** @this */function($provide){var provider=this;var classNameFilter=null;var customFilter=null;this.$$registeredAnimations=Object.create(null);/**
	   * @ngdoc method
	   * @name $animateProvider#register
	   *
	   * @description
	   * Registers a new injectable animation factory function. The factory function produces the
	   * animation object which contains callback functions for each event that is expected to be
	   * animated.
	   *
	   *   * `eventFn`: `function(element, ... , doneFunction, options)`
	   *   The element to animate, the `doneFunction` and the options fed into the animation. Depending
	   *   on the type of animation additional arguments will be injected into the animation function. The
	   *   list below explains the function signatures for the different animation methods:
	   *
	   *   - setClass: function(element, addedClasses, removedClasses, doneFunction, options)
	   *   - addClass: function(element, addedClasses, doneFunction, options)
	   *   - removeClass: function(element, removedClasses, doneFunction, options)
	   *   - enter, leave, move: function(element, doneFunction, options)
	   *   - animate: function(element, fromStyles, toStyles, doneFunction, options)
	   *
	   *   Make sure to trigger the `doneFunction` once the animation is fully complete.
	   *
	   * ```js
	   *   return {
	   *     //enter, leave, move signature
	   *     eventFn : function(element, done, options) {
	   *       //code to run the animation
	   *       //once complete, then run done()
	   *       return function endFunction(wasCancelled) {
	   *         //code to cancel the animation
	   *       }
	   *     }
	   *   }
	   * ```
	   *
	   * @param {string} name The name of the animation (this is what the class-based CSS value will be compared to).
	   * @param {Function} factory The factory function that will be executed to return the animation
	   *                           object.
	   */this.register=function(name,factory){if(name&&name.charAt(0)!=='.'){throw $animateMinErr('notcsel','Expecting class selector starting with \'.\' got \'{0}\'.',name);}var key=name+'-animation';provider.$$registeredAnimations[name.substr(1)]=key;$provide.factory(key,factory);};/**
	   * @ngdoc method
	   * @name $animateProvider#customFilter
	   *
	   * @description
	   * Sets and/or returns the custom filter function that is used to "filter" animations, i.e.
	   * determine if an animation is allowed or not. When no filter is specified (the default), no
	   * animation will be blocked. Setting the `customFilter` value will only allow animations for
	   * which the filter function's return value is truthy.
	   *
	   * This allows to easily create arbitrarily complex rules for filtering animations, such as
	   * allowing specific events only, or enabling animations on specific subtrees of the DOM, etc.
	   * Filtering animations can also boost performance for low-powered devices, as well as
	   * applications containing a lot of structural operations.
	   *
	   * <div class="alert alert-success">
	   *   **Best Practice:**
	   *   Keep the filtering function as lean as possible, because it will be called for each DOM
	   *   action (e.g. insertion, removal, class change) performed by "animation-aware" directives.
	   *   See {@link guide/animations#which-directives-support-animations- here} for a list of built-in
	   *   directives that support animations.
	   *   Performing computationally expensive or time-consuming operations on each call of the
	   *   filtering function can make your animations sluggish.
	   * </div>
	   *
	   * **Note:** If present, `customFilter` will be checked before
	   * {@link $animateProvider#classNameFilter classNameFilter}.
	   *
	   * @param {Function=} filterFn - The filter function which will be used to filter all animations.
	   *   If a falsy value is returned, no animation will be performed. The function will be called
	   *   with the following arguments:
	   *   - **node** `{DOMElement}` - The DOM element to be animated.
	   *   - **event** `{String}` - The name of the animation event (e.g. `enter`, `leave`, `addClass`
	   *     etc).
	   *   - **options** `{Object}` - A collection of options/styles used for the animation.
	   * @return {Function} The current filter function or `null` if there is none set.
	   */this.customFilter=function(filterFn){if(arguments.length===1){customFilter=isFunction(filterFn)?filterFn:null;}return customFilter;};/**
	   * @ngdoc method
	   * @name $animateProvider#classNameFilter
	   *
	   * @description
	   * Sets and/or returns the CSS class regular expression that is checked when performing
	   * an animation. Upon bootstrap the classNameFilter value is not set at all and will
	   * therefore enable $animate to attempt to perform an animation on any element that is triggered.
	   * When setting the `classNameFilter` value, animations will only be performed on elements
	   * that successfully match the filter expression. This in turn can boost performance
	   * for low-powered devices as well as applications containing a lot of structural operations.
	   *
	   * **Note:** If present, `classNameFilter` will be checked after
	   * {@link $animateProvider#customFilter customFilter}. If `customFilter` is present and returns
	   * false, `classNameFilter` will not be checked.
	   *
	   * @param {RegExp=} expression The className expression which will be checked against all animations
	   * @return {RegExp} The current CSS className expression value. If null then there is no expression value
	   */this.classNameFilter=function(expression){if(arguments.length===1){classNameFilter=expression instanceof RegExp?expression:null;if(classNameFilter){var reservedRegex=new RegExp('[(\\s|\\/)]'+NG_ANIMATE_CLASSNAME+'[(\\s|\\/)]');if(reservedRegex.test(classNameFilter.toString())){classNameFilter=null;throw $animateMinErr('nongcls','$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',NG_ANIMATE_CLASSNAME);}}}return classNameFilter;};this.$get=['$$animateQueue',function($$animateQueue){function domInsert(element,parentElement,afterElement){// if for some reason the previous element was removed
	// from the dom sometime before this code runs then let's
	// just stick to using the parent element as the anchor
	if(afterElement){var afterNode=extractElementNode(afterElement);if(afterNode&&!afterNode.parentNode&&!afterNode.previousElementSibling){afterElement=null;}}if(afterElement){afterElement.after(element);}else{parentElement.prepend(element);}}/**
	     * @ngdoc service
	     * @name $animate
	     * @description The $animate service exposes a series of DOM utility methods that provide support
	     * for animation hooks. The default behavior is the application of DOM operations, however,
	     * when an animation is detected (and animations are enabled), $animate will do the heavy lifting
	     * to ensure that animation runs with the triggered DOM operation.
	     *
	     * By default $animate doesn't trigger any animations. This is because the `ngAnimate` module isn't
	     * included and only when it is active then the animation hooks that `$animate` triggers will be
	     * functional. Once active then all structural `ng-` directives will trigger animations as they perform
	     * their DOM-related operations (enter, leave and move). Other directives such as `ngClass`,
	     * `ngShow`, `ngHide` and `ngMessages` also provide support for animations.
	     *
	     * It is recommended that the`$animate` service is always used when executing DOM-related procedures within directives.
	     *
	     * To learn more about enabling animation support, click here to visit the
	     * {@link ngAnimate ngAnimate module page}.
	     */return{// we don't call it directly since non-existant arguments may
	// be interpreted as null within the sub enabled function
	/**
	       *
	       * @ngdoc method
	       * @name $animate#on
	       * @kind function
	       * @description Sets up an event listener to fire whenever the animation event (enter, leave, move, etc...)
	       *    has fired on the given element or among any of its children. Once the listener is fired, the provided callback
	       *    is fired with the following params:
	       *
	       * ```js
	       * $animate.on('enter', container,
	       *    function callback(element, phase) {
	       *      // cool we detected an enter animation within the container
	       *    }
	       * );
	       * ```
	       *
	       * <div class="alert alert-warning">
	       * **Note**: Generally, the events that are fired correspond 1:1 to `$animate` method names,
	       * e.g. {@link ng.$animate#addClass addClass()} will fire `addClass`, and {@link ng.ngClass}
	       * will fire `addClass` if classes are added, and `removeClass` if classes are removed.
	       * However, there are two exceptions:
	       *
	       * <ul>
	       *   <li>if both an {@link ng.$animate#addClass addClass()} and a
	       *   {@link ng.$animate#removeClass removeClass()} action are performed during the same
	       *   animation, the event fired will be `setClass`. This is true even for `ngClass`.</li>
	       *   <li>an {@link ng.$animate#animate animate()} call that adds and removes classes will fire
	       *   the `setClass` event, but if it either removes or adds classes,
	       *   it will fire `animate` instead.</li>
	       * </ul>
	       *
	       * </div>
	       *
	       * @param {string} event the animation event that will be captured (e.g. enter, leave, move, addClass, removeClass, etc...)
	       * @param {DOMElement} container the container element that will capture each of the animation events that are fired on itself
	       *     as well as among its children
	       * @param {Function} callback the callback function that will be fired when the listener is triggered.
	       *
	       * The arguments present in the callback function are:
	       * * `element` - The captured DOM element that the animation was fired on.
	       * * `phase` - The phase of the animation. The two possible phases are **start** (when the animation starts) and **close** (when it ends).
	       * * `data` - an object with these properties:
	       *     * addClass - `{string|null}` - space-separated CSS classes to add to the element
	       *     * removeClass - `{string|null}` - space-separated CSS classes to remove from the element
	       *     * from - `{Object|null}` - CSS properties & values at the beginning of the animation
	       *     * to - `{Object|null}` - CSS properties & values at the end of the animation
	       *
	       * Note that the callback does not trigger a scope digest. Wrap your call into a
	       * {@link $rootScope.Scope#$apply scope.$apply} to propagate changes to the scope.
	       */on:$$animateQueue.on,/**
	       *
	       * @ngdoc method
	       * @name $animate#off
	       * @kind function
	       * @description Deregisters an event listener based on the event which has been associated with the provided element. This method
	       * can be used in three different ways depending on the arguments:
	       *
	       * ```js
	       * // remove all the animation event listeners listening for `enter`
	       * $animate.off('enter');
	       *
	       * // remove listeners for all animation events from the container element
	       * $animate.off(container);
	       *
	       * // remove all the animation event listeners listening for `enter` on the given element and its children
	       * $animate.off('enter', container);
	       *
	       * // remove the event listener function provided by `callback` that is set
	       * // to listen for `enter` on the given `container` as well as its children
	       * $animate.off('enter', container, callback);
	       * ```
	       *
	       * @param {string|DOMElement} event|container the animation event (e.g. enter, leave, move,
	       * addClass, removeClass, etc...), or the container element. If it is the element, all other
	       * arguments are ignored.
	       * @param {DOMElement=} container the container element the event listener was placed on
	       * @param {Function=} callback the callback function that was registered as the listener
	       */off:$$animateQueue.off,/**
	       * @ngdoc method
	       * @name $animate#pin
	       * @kind function
	       * @description Associates the provided element with a host parent element to allow the element to be animated even if it exists
	       *    outside of the DOM structure of the AngularJS application. By doing so, any animation triggered via `$animate` can be issued on the
	       *    element despite being outside the realm of the application or within another application. Say for example if the application
	       *    was bootstrapped on an element that is somewhere inside of the `<body>` tag, but we wanted to allow for an element to be situated
	       *    as a direct child of `document.body`, then this can be achieved by pinning the element via `$animate.pin(element)`. Keep in mind
	       *    that calling `$animate.pin(element, parentElement)` will not actually insert into the DOM anywhere; it will just create the association.
	       *
	       *    Note that this feature is only active when the `ngAnimate` module is used.
	       *
	       * @param {DOMElement} element the external element that will be pinned
	       * @param {DOMElement} parentElement the host parent element that will be associated with the external element
	       */pin:$$animateQueue.pin,/**
	       *
	       * @ngdoc method
	       * @name $animate#enabled
	       * @kind function
	       * @description Used to get and set whether animations are enabled or not on the entire application or on an element and its children. This
	       * function can be called in four ways:
	       *
	       * ```js
	       * // returns true or false
	       * $animate.enabled();
	       *
	       * // changes the enabled state for all animations
	       * $animate.enabled(false);
	       * $animate.enabled(true);
	       *
	       * // returns true or false if animations are enabled for an element
	       * $animate.enabled(element);
	       *
	       * // changes the enabled state for an element and its children
	       * $animate.enabled(element, true);
	       * $animate.enabled(element, false);
	       * ```
	       *
	       * @param {DOMElement=} element the element that will be considered for checking/setting the enabled state
	       * @param {boolean=} enabled whether or not the animations will be enabled for the element
	       *
	       * @return {boolean} whether or not animations are enabled
	       */enabled:$$animateQueue.enabled,/**
	       * @ngdoc method
	       * @name $animate#cancel
	       * @kind function
	       * @description Cancels the provided animation and applies the end state of the animation.
	       * Note that this does not cancel the underlying operation, e.g. the setting of classes or
	       * adding the element to the DOM.
	       *
	       * @param {animationRunner} animationRunner An animation runner returned by an $animate function.
	       *
	       * @example
	        <example module="animationExample" deps="angular-animate.js" animations="true" name="animate-cancel">
	          <file name="app.js">
	            angular.module('animationExample', ['ngAnimate']).component('cancelExample', {
	              templateUrl: 'template.html',
	              controller: function($element, $animate) {
	                this.runner = null;
	
	                this.addClass = function() {
	                  this.runner = $animate.addClass($element.find('div'), 'red');
	                  var ctrl = this;
	                  this.runner.finally(function() {
	                    ctrl.runner = null;
	                  });
	                };
	
	                this.removeClass = function() {
	                  this.runner = $animate.removeClass($element.find('div'), 'red');
	                  var ctrl = this;
	                  this.runner.finally(function() {
	                    ctrl.runner = null;
	                  });
	                };
	
	                this.cancel = function() {
	                  $animate.cancel(this.runner);
	                };
	              }
	            });
	          </file>
	          <file name="template.html">
	            <p>
	              <button id="add" ng-click="$ctrl.addClass()">Add</button>
	              <button ng-click="$ctrl.removeClass()">Remove</button>
	              <br>
	              <button id="cancel" ng-click="$ctrl.cancel()" ng-disabled="!$ctrl.runner">Cancel</button>
	              <br>
	              <div id="target">CSS-Animated Text</div>
	            </p>
	          </file>
	          <file name="index.html">
	            <cancel-example></cancel-example>
	          </file>
	          <file name="style.css">
	            .red-add, .red-remove {
	              transition: all 4s cubic-bezier(0.250, 0.460, 0.450, 0.940);
	            }
	
	            .red,
	            .red-add.red-add-active {
	              color: #FF0000;
	              font-size: 40px;
	            }
	
	            .red-remove.red-remove-active {
	              font-size: 10px;
	              color: black;
	            }
	
	          </file>
	        </example>
	       */cancel:function cancel(runner){if(runner.cancel){runner.cancel();}},/**
	       *
	       * @ngdoc method
	       * @name $animate#enter
	       * @kind function
	       * @description Inserts the element into the DOM either after the `after` element (if provided) or
	       *   as the first child within the `parent` element and then triggers an animation.
	       *   A promise is returned that will be resolved during the next digest once the animation
	       *   has completed.
	       *
	       * @param {DOMElement} element the element which will be inserted into the DOM
	       * @param {DOMElement} parent the parent element which will append the element as
	       *   a child (so long as the after element is not present)
	       * @param {DOMElement=} after the sibling element after which the element will be appended
	       * @param {object=} options an optional collection of options/styles that will be applied to the element.
	       *   The object can have the following properties:
	       *
	       *   - **addClass** - `{string}` - space-separated CSS classes to add to element
	       *   - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
	       *   - **removeClass** - `{string}` - space-separated CSS classes to remove from element
	       *   - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
	       *
	       * @return {Runner} the animation runner
	       */enter:function enter(element,parent,after,options){parent=parent&&jqLite(parent);after=after&&jqLite(after);parent=parent||after.parent();domInsert(element,parent,after);return $$animateQueue.push(element,'enter',prepareAnimateOptions(options));},/**
	       *
	       * @ngdoc method
	       * @name $animate#move
	       * @kind function
	       * @description Inserts (moves) the element into its new position in the DOM either after
	       *   the `after` element (if provided) or as the first child within the `parent` element
	       *   and then triggers an animation. A promise is returned that will be resolved
	       *   during the next digest once the animation has completed.
	       *
	       * @param {DOMElement} element the element which will be moved into the new DOM position
	       * @param {DOMElement} parent the parent element which will append the element as
	       *   a child (so long as the after element is not present)
	       * @param {DOMElement=} after the sibling element after which the element will be appended
	       * @param {object=} options an optional collection of options/styles that will be applied to the element.
	       *   The object can have the following properties:
	       *
	       *   - **addClass** - `{string}` - space-separated CSS classes to add to element
	       *   - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
	       *   - **removeClass** - `{string}` - space-separated CSS classes to remove from element
	       *   - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
	       *
	       * @return {Runner} the animation runner
	       */move:function move(element,parent,after,options){parent=parent&&jqLite(parent);after=after&&jqLite(after);parent=parent||after.parent();domInsert(element,parent,after);return $$animateQueue.push(element,'move',prepareAnimateOptions(options));},/**
	       * @ngdoc method
	       * @name $animate#leave
	       * @kind function
	       * @description Triggers an animation and then removes the element from the DOM.
	       * When the function is called a promise is returned that will be resolved during the next
	       * digest once the animation has completed.
	       *
	       * @param {DOMElement} element the element which will be removed from the DOM
	       * @param {object=} options an optional collection of options/styles that will be applied to the element.
	       *   The object can have the following properties:
	       *
	       *   - **addClass** - `{string}` - space-separated CSS classes to add to element
	       *   - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
	       *   - **removeClass** - `{string}` - space-separated CSS classes to remove from element
	       *   - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
	       *
	       * @return {Runner} the animation runner
	       */leave:function leave(element,options){return $$animateQueue.push(element,'leave',prepareAnimateOptions(options),function(){element.remove();});},/**
	       * @ngdoc method
	       * @name $animate#addClass
	       * @kind function
	       *
	       * @description Triggers an addClass animation surrounding the addition of the provided CSS class(es). Upon
	       *   execution, the addClass operation will only be handled after the next digest and it will not trigger an
	       *   animation if element already contains the CSS class or if the class is removed at a later step.
	       *   Note that class-based animations are treated differently compared to structural animations
	       *   (like enter, move and leave) since the CSS classes may be added/removed at different points
	       *   depending if CSS or JavaScript animations are used.
	       *
	       * @param {DOMElement} element the element which the CSS classes will be applied to
	       * @param {string} className the CSS class(es) that will be added (multiple classes are separated via spaces)
	       * @param {object=} options an optional collection of options/styles that will be applied to the element.
	       *   The object can have the following properties:
	       *
	       *   - **removeClass** - `{string}` - space-separated CSS classes to remove from element
	       *   - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
	       *   - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
	       *
	       * @return {Runner} animationRunner the animation runner
	       */addClass:function addClass(element,className,options){options=prepareAnimateOptions(options);options.addClass=mergeClasses(options.addclass,className);return $$animateQueue.push(element,'addClass',options);},/**
	       * @ngdoc method
	       * @name $animate#removeClass
	       * @kind function
	       *
	       * @description Triggers a removeClass animation surrounding the removal of the provided CSS class(es). Upon
	       *   execution, the removeClass operation will only be handled after the next digest and it will not trigger an
	       *   animation if element does not contain the CSS class or if the class is added at a later step.
	       *   Note that class-based animations are treated differently compared to structural animations
	       *   (like enter, move and leave) since the CSS classes may be added/removed at different points
	       *   depending if CSS or JavaScript animations are used.
	       *
	       * @param {DOMElement} element the element which the CSS classes will be applied to
	       * @param {string} className the CSS class(es) that will be removed (multiple classes are separated via spaces)
	       * @param {object=} options an optional collection of options/styles that will be applied to the element.
	       *   The object can have the following properties:
	       *
	       *   - **addClass** - `{string}` - space-separated CSS classes to add to element
	       *   - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
	       *   - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
	       *
	       * @return {Runner} the animation runner
	       */removeClass:function removeClass(element,className,options){options=prepareAnimateOptions(options);options.removeClass=mergeClasses(options.removeClass,className);return $$animateQueue.push(element,'removeClass',options);},/**
	       * @ngdoc method
	       * @name $animate#setClass
	       * @kind function
	       *
	       * @description Performs both the addition and removal of a CSS classes on an element and (during the process)
	       *    triggers an animation surrounding the class addition/removal. Much like `$animate.addClass` and
	       *    `$animate.removeClass`, `setClass` will only evaluate the classes being added/removed once a digest has
	       *    passed. Note that class-based animations are treated differently compared to structural animations
	       *    (like enter, move and leave) since the CSS classes may be added/removed at different points
	       *    depending if CSS or JavaScript animations are used.
	       *
	       * @param {DOMElement} element the element which the CSS classes will be applied to
	       * @param {string} add the CSS class(es) that will be added (multiple classes are separated via spaces)
	       * @param {string} remove the CSS class(es) that will be removed (multiple classes are separated via spaces)
	       * @param {object=} options an optional collection of options/styles that will be applied to the element.
	       *   The object can have the following properties:
	       *
	       *   - **addClass** - `{string}` - space-separated CSS classes to add to element
	       *   - **removeClass** - `{string}` - space-separated CSS classes to remove from element
	       *   - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
	       *   - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
	       *
	       * @return {Runner} the animation runner
	       */setClass:function setClass(element,add,remove,options){options=prepareAnimateOptions(options);options.addClass=mergeClasses(options.addClass,add);options.removeClass=mergeClasses(options.removeClass,remove);return $$animateQueue.push(element,'setClass',options);},/**
	       * @ngdoc method
	       * @name $animate#animate
	       * @kind function
	       *
	       * @description Performs an inline animation on the element which applies the provided to and from CSS styles to the element.
	       * If any detected CSS transition, keyframe or JavaScript matches the provided className value, then the animation will take
	       * on the provided styles. For example, if a transition animation is set for the given className, then the provided `from` and
	       * `to` styles will be applied alongside the given transition. If the CSS style provided in `from` does not have a corresponding
	       * style in `to`, the style in `from` is applied immediately, and no animation is run.
	       * If a JavaScript animation is detected then the provided styles will be given in as function parameters into the `animate`
	       * method (or as part of the `options` parameter):
	       *
	       * ```js
	       * ngModule.animation('.my-inline-animation', function() {
	       *   return {
	       *     animate : function(element, from, to, done, options) {
	       *       //animation
	       *       done();
	       *     }
	       *   }
	       * });
	       * ```
	       *
	       * @param {DOMElement} element the element which the CSS styles will be applied to
	       * @param {object} from the from (starting) CSS styles that will be applied to the element and across the animation.
	       * @param {object} to the to (destination) CSS styles that will be applied to the element and across the animation.
	       * @param {string=} className an optional CSS class that will be applied to the element for the duration of the animation. If
	       *    this value is left as empty then a CSS class of `ng-inline-animate` will be applied to the element.
	       *    (Note that if no animation is detected then this value will not be applied to the element.)
	       * @param {object=} options an optional collection of options/styles that will be applied to the element.
	       *   The object can have the following properties:
	       *
	       *   - **addClass** - `{string}` - space-separated CSS classes to add to element
	       *   - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
	       *   - **removeClass** - `{string}` - space-separated CSS classes to remove from element
	       *   - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`
	       *
	       * @return {Runner} the animation runner
	       */animate:function animate(element,from,to,className,options){options=prepareAnimateOptions(options);options.from=options.from?extend(options.from,from):from;options.to=options.to?extend(options.to,to):to;className=className||'ng-inline-animate';options.tempClasses=mergeClasses(options.tempClasses,className);return $$animateQueue.push(element,'animate',options);}};}];}];var $$AnimateAsyncRunFactoryProvider=/** @this */function $$AnimateAsyncRunFactoryProvider(){this.$get=['$$rAF',function($$rAF){var waitQueue=[];function waitForTick(fn){waitQueue.push(fn);if(waitQueue.length>1)return;$$rAF(function(){for(var i=0;i<waitQueue.length;i++){waitQueue[i]();}waitQueue=[];});}return function(){var passed=false;waitForTick(function(){passed=true;});return function(callback){if(passed){callback();}else{waitForTick(callback);}};};}];};var $$AnimateRunnerFactoryProvider=/** @this */function $$AnimateRunnerFactoryProvider(){this.$get=['$q','$sniffer','$$animateAsyncRun','$$isDocumentHidden','$timeout',function($q,$sniffer,$$animateAsyncRun,$$isDocumentHidden,$timeout){var INITIAL_STATE=0;var DONE_PENDING_STATE=1;var DONE_COMPLETE_STATE=2;AnimateRunner.chain=function(chain,callback){var index=0;next();function next(){if(index===chain.length){callback(true);return;}chain[index](function(response){if(response===false){callback(false);return;}index++;next();});}};AnimateRunner.all=function(runners,callback){var count=0;var status=true;forEach(runners,function(runner){runner.done(onProgress);});function onProgress(response){status=status&&response;if(++count===runners.length){callback(status);}}};function AnimateRunner(host){this.setHost(host);var rafTick=$$animateAsyncRun();var timeoutTick=function timeoutTick(fn){$timeout(fn,0,false);};this._doneCallbacks=[];this._tick=function(fn){if($$isDocumentHidden()){timeoutTick(fn);}else{rafTick(fn);}};this._state=0;}AnimateRunner.prototype={setHost:function setHost(host){this.host=host||{};},done:function done(fn){if(this._state===DONE_COMPLETE_STATE){fn();}else{this._doneCallbacks.push(fn);}},progress:noop,getPromise:function getPromise(){if(!this.promise){var self=this;this.promise=$q(function(resolve,reject){self.done(function(status){if(status===false){reject();}else{resolve();}});});}return this.promise;},then:function then(resolveHandler,rejectHandler){return this.getPromise().then(resolveHandler,rejectHandler);},'catch':function _catch(handler){return this.getPromise()['catch'](handler);},'finally':function _finally(handler){return this.getPromise()['finally'](handler);},pause:function pause(){if(this.host.pause){this.host.pause();}},resume:function resume(){if(this.host.resume){this.host.resume();}},end:function end(){if(this.host.end){this.host.end();}this._resolve(true);},cancel:function cancel(){if(this.host.cancel){this.host.cancel();}this._resolve(false);},complete:function complete(response){var self=this;if(self._state===INITIAL_STATE){self._state=DONE_PENDING_STATE;self._tick(function(){self._resolve(response);});}},_resolve:function _resolve(response){if(this._state!==DONE_COMPLETE_STATE){forEach(this._doneCallbacks,function(fn){fn(response);});this._doneCallbacks.length=0;this._state=DONE_COMPLETE_STATE;}}};return AnimateRunner;}];};/* exported $CoreAnimateCssProvider *//**
	 * @ngdoc service
	 * @name $animateCss
	 * @kind object
	 * @this
	 *
	 * @description
	 * This is the core version of `$animateCss`. By default, only when the `ngAnimate` is included,
	 * then the `$animateCss` service will actually perform animations.
	 *
	 * Click here {@link ngAnimate.$animateCss to read the documentation for $animateCss}.
	 */var $CoreAnimateCssProvider=function $CoreAnimateCssProvider(){this.$get=['$$rAF','$q','$$AnimateRunner',function($$rAF,$q,$$AnimateRunner){return function(element,initialOptions){// all of the animation functions should create
	// a copy of the options data, however, if a
	// parent service has already created a copy then
	// we should stick to using that
	var options=initialOptions||{};if(!options.$$prepared){options=copy(options);}// there is no point in applying the styles since
	// there is no animation that goes on at all in
	// this version of $animateCss.
	if(options.cleanupStyles){options.from=options.to=null;}if(options.from){element.css(options.from);options.from=null;}var closed,runner=new $$AnimateRunner();return{start:run,end:run};function run(){$$rAF(function(){applyAnimationContents();if(!closed){runner.complete();}closed=true;});return runner;}function applyAnimationContents(){if(options.addClass){element.addClass(options.addClass);options.addClass=null;}if(options.removeClass){element.removeClass(options.removeClass);options.removeClass=null;}if(options.to){element.css(options.to);options.to=null;}}};}];};/* global getHash: true, stripHash: false */function getHash(url){var index=url.indexOf('#');return index===-1?'':url.substr(index);}function trimEmptyHash(url){return url.replace(/#$/,'');}/**
	 * ! This is a private undocumented service !
	 *
	 * @name $browser
	 * @requires $log
	 * @description
	 * This object has two goals:
	 *
	 * - hide all the global state in the browser caused by the window object
	 * - abstract away all the browser specific features and inconsistencies
	 *
	 * For tests we provide {@link ngMock.$browser mock implementation} of the `$browser`
	 * service, which can be used for convenient testing of the application without the interaction with
	 * the real browser apis.
	 *//**
	 * @param {object} window The global window object.
	 * @param {object} document jQuery wrapped document.
	 * @param {object} $log window.console or an object with the same interface.
	 * @param {object} $sniffer $sniffer service
	 */function Browser(window,document,$log,$sniffer,$$taskTrackerFactory){var self=this,location=window.location,history=window.history,setTimeout=window.setTimeout,clearTimeout=window.clearTimeout,pendingDeferIds={},taskTracker=$$taskTrackerFactory($log);self.isMock=false;//////////////////////////////////////////////////////////////
	// Task-tracking API
	//////////////////////////////////////////////////////////////
	// TODO(vojta): remove this temporary api
	self.$$completeOutstandingRequest=taskTracker.completeTask;self.$$incOutstandingRequestCount=taskTracker.incTaskCount;// TODO(vojta): prefix this method with $$ ?
	self.notifyWhenNoOutstandingRequests=taskTracker.notifyWhenNoPendingTasks;//////////////////////////////////////////////////////////////
	// URL API
	//////////////////////////////////////////////////////////////
	var cachedState,lastHistoryState,lastBrowserUrl=location.href,baseElement=document.find('base'),pendingLocation=null,getCurrentState=!$sniffer.history?noop:function getCurrentState(){try{return history.state;}catch(e){// MSIE can reportedly throw when there is no state (UNCONFIRMED).
	}};cacheState();/**
	   * @name $browser#url
	   *
	   * @description
	   * GETTER:
	   * Without any argument, this method just returns current value of `location.href` (with a
	   * trailing `#` stripped of if the hash is empty).
	   *
	   * SETTER:
	   * With at least one argument, this method sets url to new value.
	   * If html5 history api supported, `pushState`/`replaceState` is used, otherwise
	   * `location.href`/`location.replace` is used.
	   * Returns its own instance to allow chaining.
	   *
	   * NOTE: this api is intended for use only by the `$location` service. Please use the
	   * {@link ng.$location $location service} to change url.
	   *
	   * @param {string} url New url (when used as setter)
	   * @param {boolean=} replace Should new url replace current history record?
	   * @param {object=} state State object to use with `pushState`/`replaceState`
	   */self.url=function(url,replace,state){// In modern browsers `history.state` is `null` by default; treating it separately
	// from `undefined` would cause `$browser.url('/foo')` to change `history.state`
	// to undefined via `pushState`. Instead, let's change `undefined` to `null` here.
	if(isUndefined(state)){state=null;}// Android Browser BFCache causes location, history reference to become stale.
	if(location!==window.location)location=window.location;if(history!==window.history)history=window.history;// setter
	if(url){var sameState=lastHistoryState===state;// Normalize the inputted URL
	url=urlResolve(url).href;// Don't change anything if previous and current URLs and states match. This also prevents
	// IE<10 from getting into redirect loop when in LocationHashbangInHtml5Url mode.
	// See https://github.com/angular/angular.js/commit/ffb2701
	if(lastBrowserUrl===url&&(!$sniffer.history||sameState)){return self;}var sameBase=lastBrowserUrl&&stripHash(lastBrowserUrl)===stripHash(url);lastBrowserUrl=url;lastHistoryState=state;// Don't use history API if only the hash changed
	// due to a bug in IE10/IE11 which leads
	// to not firing a `hashchange` nor `popstate` event
	// in some cases (see #9143).
	if($sniffer.history&&(!sameBase||!sameState)){history[replace?'replaceState':'pushState'](state,'',url);cacheState();}else{if(!sameBase){pendingLocation=url;}if(replace){location.replace(url);}else if(!sameBase){location.href=url;}else{location.hash=getHash(url);}if(location.href!==url){pendingLocation=url;}}if(pendingLocation){pendingLocation=url;}return self;// getter
	}else{// - pendingLocation is needed as browsers don't allow to read out
	//   the new location.href if a reload happened or if there is a bug like in iOS 9 (see
	//   https://openradar.appspot.com/22186109).
	return trimEmptyHash(pendingLocation||location.href);}};/**
	   * @name $browser#state
	   *
	   * @description
	   * This method is a getter.
	   *
	   * Return history.state or null if history.state is undefined.
	   *
	   * @returns {object} state
	   */self.state=function(){return cachedState;};var urlChangeListeners=[],urlChangeInit=false;function cacheStateAndFireUrlChange(){pendingLocation=null;fireStateOrUrlChange();}// This variable should be used *only* inside the cacheState function.
	var lastCachedState=null;function cacheState(){// This should be the only place in $browser where `history.state` is read.
	cachedState=getCurrentState();cachedState=isUndefined(cachedState)?null:cachedState;// Prevent callbacks fo fire twice if both hashchange & popstate were fired.
	if(equals(cachedState,lastCachedState)){cachedState=lastCachedState;}lastCachedState=cachedState;lastHistoryState=cachedState;}function fireStateOrUrlChange(){var prevLastHistoryState=lastHistoryState;cacheState();if(lastBrowserUrl===self.url()&&prevLastHistoryState===cachedState){return;}lastBrowserUrl=self.url();lastHistoryState=cachedState;forEach(urlChangeListeners,function(listener){listener(self.url(),cachedState);});}/**
	   * @name $browser#onUrlChange
	   *
	   * @description
	   * Register callback function that will be called, when url changes.
	   *
	   * It's only called when the url is changed from outside of AngularJS:
	   * - user types different url into address bar
	   * - user clicks on history (forward/back) button
	   * - user clicks on a link
	   *
	   * It's not called when url is changed by $browser.url() method
	   *
	   * The listener gets called with new url as parameter.
	   *
	   * NOTE: this api is intended for use only by the $location service. Please use the
	   * {@link ng.$location $location service} to monitor url changes in AngularJS apps.
	   *
	   * @param {function(string)} listener Listener function to be called when url changes.
	   * @return {function(string)} Returns the registered listener fn - handy if the fn is anonymous.
	   */self.onUrlChange=function(callback){// TODO(vojta): refactor to use node's syntax for events
	if(!urlChangeInit){// We listen on both (hashchange/popstate) when available, as some browsers don't
	// fire popstate when user changes the address bar and don't fire hashchange when url
	// changed by push/replaceState
	// html5 history api - popstate event
	if($sniffer.history)jqLite(window).on('popstate',cacheStateAndFireUrlChange);// hashchange event
	jqLite(window).on('hashchange',cacheStateAndFireUrlChange);urlChangeInit=true;}urlChangeListeners.push(callback);return callback;};/**
	   * @private
	   * Remove popstate and hashchange handler from window.
	   *
	   * NOTE: this api is intended for use only by $rootScope.
	   */self.$$applicationDestroyed=function(){jqLite(window).off('hashchange popstate',cacheStateAndFireUrlChange);};/**
	   * Checks whether the url has changed outside of AngularJS.
	   * Needs to be exported to be able to check for changes that have been done in sync,
	   * as hashchange/popstate events fire in async.
	   */self.$$checkUrlChange=fireStateOrUrlChange;//////////////////////////////////////////////////////////////
	// Misc API
	//////////////////////////////////////////////////////////////
	/**
	   * @name $browser#baseHref
	   *
	   * @description
	   * Returns current <base href>
	   * (always relative - without domain)
	   *
	   * @returns {string} The current base href
	   */self.baseHref=function(){var href=baseElement.attr('href');return href?href.replace(/^(https?:)?\/\/[^/]*/,''):'';};/**
	   * @name $browser#defer
	   * @param {function()} fn A function, who's execution should be deferred.
	   * @param {number=} [delay=0] Number of milliseconds to defer the function execution.
	   * @param {string=} [taskType=DEFAULT_TASK_TYPE] The type of task that is deferred.
	   * @returns {*} DeferId that can be used to cancel the task via `$browser.defer.cancel()`.
	   *
	   * @description
	   * Executes a fn asynchronously via `setTimeout(fn, delay)`.
	   *
	   * Unlike when calling `setTimeout` directly, in test this function is mocked and instead of using
	   * `setTimeout` in tests, the fns are queued in an array, which can be programmatically flushed
	   * via `$browser.defer.flush()`.
	   *
	   */self.defer=function(fn,delay,taskType){var timeoutId;delay=delay||0;taskType=taskType||taskTracker.DEFAULT_TASK_TYPE;taskTracker.incTaskCount(taskType);timeoutId=setTimeout(function(){delete pendingDeferIds[timeoutId];taskTracker.completeTask(fn,taskType);},delay);pendingDeferIds[timeoutId]=taskType;return timeoutId;};/**
	   * @name $browser#defer.cancel
	   *
	   * @description
	   * Cancels a deferred task identified with `deferId`.
	   *
	   * @param {*} deferId Token returned by the `$browser.defer` function.
	   * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully
	   *                    canceled.
	   */self.defer.cancel=function(deferId){if(pendingDeferIds.hasOwnProperty(deferId)){var taskType=pendingDeferIds[deferId];delete pendingDeferIds[deferId];clearTimeout(deferId);taskTracker.completeTask(noop,taskType);return true;}return false;};}/** @this */function $BrowserProvider(){this.$get=['$window','$log','$sniffer','$document','$$taskTrackerFactory',function($window,$log,$sniffer,$document,$$taskTrackerFactory){return new Browser($window,$document,$log,$sniffer,$$taskTrackerFactory);}];}/**
	 * @ngdoc service
	 * @name $cacheFactory
	 * @this
	 *
	 * @description
	 * Factory that constructs {@link $cacheFactory.Cache Cache} objects and gives access to
	 * them.
	 *
	 * ```js
	 *
	 *  var cache = $cacheFactory('cacheId');
	 *  expect($cacheFactory.get('cacheId')).toBe(cache);
	 *  expect($cacheFactory.get('noSuchCacheId')).not.toBeDefined();
	 *
	 *  cache.put("key", "value");
	 *  cache.put("another key", "another value");
	 *
	 *  // We've specified no options on creation
	 *  expect(cache.info()).toEqual({id: 'cacheId', size: 2});
	 *
	 * ```
	 *
	 *
	 * @param {string} cacheId Name or id of the newly created cache.
	 * @param {object=} options Options object that specifies the cache behavior. Properties:
	 *
	 *   - `{number=}` `capacity` — turns the cache into LRU cache.
	 *
	 * @returns {object} Newly created cache object with the following set of methods:
	 *
	 * - `{object}` `info()` — Returns id, size, and options of cache.
	 * - `{{*}}` `put({string} key, {*} value)` — Puts a new key-value pair into the cache and returns
	 *   it.
	 * - `{{*}}` `get({string} key)` — Returns cached value for `key` or undefined for cache miss.
	 * - `{void}` `remove({string} key)` — Removes a key-value pair from the cache.
	 * - `{void}` `removeAll()` — Removes all cached values.
	 * - `{void}` `destroy()` — Removes references to this cache from $cacheFactory.
	 *
	 * @example
	   <example module="cacheExampleApp" name="cache-factory">
	     <file name="index.html">
	       <div ng-controller="CacheController">
	         <input ng-model="newCacheKey" placeholder="Key">
	         <input ng-model="newCacheValue" placeholder="Value">
	         <button ng-click="put(newCacheKey, newCacheValue)">Cache</button>
	
	         <p ng-if="keys.length">Cached Values</p>
	         <div ng-repeat="key in keys">
	           <span ng-bind="key"></span>
	           <span>: </span>
	           <b ng-bind="cache.get(key)"></b>
	         </div>
	
	         <p>Cache Info</p>
	         <div ng-repeat="(key, value) in cache.info()">
	           <span ng-bind="key"></span>
	           <span>: </span>
	           <b ng-bind="value"></b>
	         </div>
	       </div>
	     </file>
	     <file name="script.js">
	       angular.module('cacheExampleApp', []).
	         controller('CacheController', ['$scope', '$cacheFactory', function($scope, $cacheFactory) {
	           $scope.keys = [];
	           $scope.cache = $cacheFactory('cacheId');
	           $scope.put = function(key, value) {
	             if (angular.isUndefined($scope.cache.get(key))) {
	               $scope.keys.push(key);
	             }
	             $scope.cache.put(key, angular.isUndefined(value) ? null : value);
	           };
	         }]);
	     </file>
	     <file name="style.css">
	       p {
	         margin: 10px 0 3px;
	       }
	     </file>
	   </example>
	 */function $CacheFactoryProvider(){this.$get=function(){var caches={};function cacheFactory(cacheId,options){if(cacheId in caches){throw minErr('$cacheFactory')('iid','CacheId \'{0}\' is already taken!',cacheId);}var size=0,stats=extend({},options,{id:cacheId}),data=createMap(),capacity=options&&options.capacity||Number.MAX_VALUE,lruHash=createMap(),freshEnd=null,staleEnd=null;/**
	       * @ngdoc type
	       * @name $cacheFactory.Cache
	       *
	       * @description
	       * A cache object used to store and retrieve data, primarily used by
	       * {@link $templateRequest $templateRequest} and the {@link ng.directive:script script}
	       * directive to cache templates and other data.
	       *
	       * ```js
	       *  angular.module('superCache')
	       *    .factory('superCache', ['$cacheFactory', function($cacheFactory) {
	       *      return $cacheFactory('super-cache');
	       *    }]);
	       * ```
	       *
	       * Example test:
	       *
	       * ```js
	       *  it('should behave like a cache', inject(function(superCache) {
	       *    superCache.put('key', 'value');
	       *    superCache.put('another key', 'another value');
	       *
	       *    expect(superCache.info()).toEqual({
	       *      id: 'super-cache',
	       *      size: 2
	       *    });
	       *
	       *    superCache.remove('another key');
	       *    expect(superCache.get('another key')).toBeUndefined();
	       *
	       *    superCache.removeAll();
	       *    expect(superCache.info()).toEqual({
	       *      id: 'super-cache',
	       *      size: 0
	       *    });
	       *  }));
	       * ```
	       */return caches[cacheId]={/**
	         * @ngdoc method
	         * @name $cacheFactory.Cache#put
	         * @kind function
	         *
	         * @description
	         * Inserts a named entry into the {@link $cacheFactory.Cache Cache} object to be
	         * retrieved later, and incrementing the size of the cache if the key was not already
	         * present in the cache. If behaving like an LRU cache, it will also remove stale
	         * entries from the set.
	         *
	         * It will not insert undefined values into the cache.
	         *
	         * @param {string} key the key under which the cached data is stored.
	         * @param {*} value the value to store alongside the key. If it is undefined, the key
	         *    will not be stored.
	         * @returns {*} the value stored.
	         */put:function put(key,value){if(isUndefined(value))return;if(capacity<Number.MAX_VALUE){var lruEntry=lruHash[key]||(lruHash[key]={key:key});refresh(lruEntry);}if(!(key in data))size++;data[key]=value;if(size>capacity){this.remove(staleEnd.key);}return value;},/**
	         * @ngdoc method
	         * @name $cacheFactory.Cache#get
	         * @kind function
	         *
	         * @description
	         * Retrieves named data stored in the {@link $cacheFactory.Cache Cache} object.
	         *
	         * @param {string} key the key of the data to be retrieved
	         * @returns {*} the value stored.
	         */get:function get(key){if(capacity<Number.MAX_VALUE){var lruEntry=lruHash[key];if(!lruEntry)return;refresh(lruEntry);}return data[key];},/**
	         * @ngdoc method
	         * @name $cacheFactory.Cache#remove
	         * @kind function
	         *
	         * @description
	         * Removes an entry from the {@link $cacheFactory.Cache Cache} object.
	         *
	         * @param {string} key the key of the entry to be removed
	         */remove:function remove(key){if(capacity<Number.MAX_VALUE){var lruEntry=lruHash[key];if(!lruEntry)return;if(lruEntry===freshEnd)freshEnd=lruEntry.p;if(lruEntry===staleEnd)staleEnd=lruEntry.n;link(lruEntry.n,lruEntry.p);delete lruHash[key];}if(!(key in data))return;delete data[key];size--;},/**
	         * @ngdoc method
	         * @name $cacheFactory.Cache#removeAll
	         * @kind function
	         *
	         * @description
	         * Clears the cache object of any entries.
	         */removeAll:function removeAll(){data=createMap();size=0;lruHash=createMap();freshEnd=staleEnd=null;},/**
	         * @ngdoc method
	         * @name $cacheFactory.Cache#destroy
	         * @kind function
	         *
	         * @description
	         * Destroys the {@link $cacheFactory.Cache Cache} object entirely,
	         * removing it from the {@link $cacheFactory $cacheFactory} set.
	         */destroy:function destroy(){data=null;stats=null;lruHash=null;delete caches[cacheId];},/**
	         * @ngdoc method
	         * @name $cacheFactory.Cache#info
	         * @kind function
	         *
	         * @description
	         * Retrieve information regarding a particular {@link $cacheFactory.Cache Cache}.
	         *
	         * @returns {object} an object with the following properties:
	         *   <ul>
	         *     <li>**id**: the id of the cache instance</li>
	         *     <li>**size**: the number of entries kept in the cache instance</li>
	         *     <li>**...**: any additional properties from the options object when creating the
	         *       cache.</li>
	         *   </ul>
	         */info:function info(){return extend({},stats,{size:size});}};/**
	       * makes the `entry` the freshEnd of the LRU linked list
	       */function refresh(entry){if(entry!==freshEnd){if(!staleEnd){staleEnd=entry;}else if(staleEnd===entry){staleEnd=entry.n;}link(entry.n,entry.p);link(entry,freshEnd);freshEnd=entry;freshEnd.n=null;}}/**
	       * bidirectionally links two entries of the LRU linked list
	       */function link(nextEntry,prevEntry){if(nextEntry!==prevEntry){if(nextEntry)nextEntry.p=prevEntry;//p stands for previous, 'prev' didn't minify
	if(prevEntry)prevEntry.n=nextEntry;//n stands for next, 'next' didn't minify
	}}}/**
	   * @ngdoc method
	   * @name $cacheFactory#info
	   *
	   * @description
	   * Get information about all the caches that have been created
	   *
	   * @returns {Object} - key-value map of `cacheId` to the result of calling `cache#info`
	   */cacheFactory.info=function(){var info={};forEach(caches,function(cache,cacheId){info[cacheId]=cache.info();});return info;};/**
	   * @ngdoc method
	   * @name $cacheFactory#get
	   *
	   * @description
	   * Get access to a cache object by the `cacheId` used when it was created.
	   *
	   * @param {string} cacheId Name or id of a cache to access.
	   * @returns {object} Cache object identified by the cacheId or undefined if no such cache.
	   */cacheFactory.get=function(cacheId){return caches[cacheId];};return cacheFactory;};}/**
	 * @ngdoc service
	 * @name $templateCache
	 * @this
	 *
	 * @description
	 * `$templateCache` is a {@link $cacheFactory.Cache Cache object} created by the
	 * {@link ng.$cacheFactory $cacheFactory}.
	 *
	 * The first time a template is used, it is loaded in the template cache for quick retrieval. You
	 * can load templates directly into the cache in a `script` tag, by using {@link $templateRequest},
	 * or by consuming the `$templateCache` service directly.
	 *
	 * Adding via the `script` tag:
	 *
	 * ```html
	 *   <script type="text/ng-template" id="templateId.html">
	 *     <p>This is the content of the template</p>
	 *   </script>
	 * ```
	 *
	 * **Note:** the `script` tag containing the template does not need to be included in the `head` of
	 * the document, but it must be a descendent of the {@link ng.$rootElement $rootElement} (e.g.
	 * element with {@link ngApp} attribute), otherwise the template will be ignored.
	 *
	 * Adding via the `$templateCache` service:
	 *
	 * ```js
	 * var myApp = angular.module('myApp', []);
	 * myApp.run(function($templateCache) {
	 *   $templateCache.put('templateId.html', 'This is the content of the template');
	 * });
	 * ```
	 *
	 * To retrieve the template later, simply use it in your component:
	 * ```js
	 * myApp.component('myComponent', {
	 *    templateUrl: 'templateId.html'
	 * });
	 * ```
	 *
	 * or get it via the `$templateCache` service:
	 * ```js
	 * $templateCache.get('templateId.html')
	 * ```
	 *
	 */function $TemplateCacheProvider(){this.$get=['$cacheFactory',function($cacheFactory){return $cacheFactory('templates');}];}/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
	 *     Any commits to this file should be reviewed with security in mind.  *
	 *   Changes to this file can potentially create security vulnerabilities. *
	 *          An approval from 2 Core members with history of modifying      *
	 *                         this file is required.                          *
	 *                                                                         *
	 *  Does the change somehow allow for arbitrary javascript to be executed? *
	 *    Or allows for someone to change the prototype of built-in objects?   *
	 *     Or gives undesired access to variables like document or window?    *
	 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *//* ! VARIABLE/FUNCTION NAMING CONVENTIONS THAT APPLY TO THIS FILE!
	 *
	 * DOM-related variables:
	 *
	 * - "node" - DOM Node
	 * - "element" - DOM Element or Node
	 * - "$node" or "$element" - jqLite-wrapped node or element
	 *
	 *
	 * Compiler related stuff:
	 *
	 * - "linkFn" - linking fn of a single directive
	 * - "nodeLinkFn" - function that aggregates all linking fns for a particular node
	 * - "childLinkFn" -  function that aggregates all linking fns for child nodes of a particular node
	 * - "compositeLinkFn" - function that aggregates all linking fns for a compilation root (nodeList)
	 *//**
	 * @ngdoc service
	 * @name $compile
	 * @kind function
	 *
	 * @description
	 * Compiles an HTML string or DOM into a template and produces a template function, which
	 * can then be used to link {@link ng.$rootScope.Scope `scope`} and the template together.
	 *
	 * The compilation is a process of walking the DOM tree and matching DOM elements to
	 * {@link ng.$compileProvider#directive directives}.
	 *
	 * <div class="alert alert-warning">
	 * **Note:** This document is an in-depth reference of all directive options.
	 * For a gentle introduction to directives with examples of common use cases,
	 * see the {@link guide/directive directive guide}.
	 * </div>
	 *
	 * ## Comprehensive Directive API
	 *
	 * There are many different options for a directive.
	 *
	 * The difference resides in the return value of the factory function.
	 * You can either return a {@link $compile#directive-definition-object Directive Definition Object (see below)}
	 * that defines the directive properties, or just the `postLink` function (all other properties will have
	 * the default values).
	 *
	 * <div class="alert alert-success">
	 * **Best Practice:** It's recommended to use the "directive definition object" form.
	 * </div>
	 *
	 * Here's an example directive declared with a Directive Definition Object:
	 *
	 * ```js
	 *   var myModule = angular.module(...);
	 *
	 *   myModule.directive('directiveName', function factory(injectables) {
	 *     var directiveDefinitionObject = {
	 *       {@link $compile#-priority- priority}: 0,
	 *       {@link $compile#-template- template}: '<div></div>', // or // function(tElement, tAttrs) { ... },
	 *       // or
	 *       // {@link $compile#-templateurl- templateUrl}: 'directive.html', // or // function(tElement, tAttrs) { ... },
	 *       {@link $compile#-transclude- transclude}: false,
	 *       {@link $compile#-restrict- restrict}: 'A',
	 *       {@link $compile#-templatenamespace- templateNamespace}: 'html',
	 *       {@link $compile#-scope- scope}: false,
	 *       {@link $compile#-controller- controller}: function($scope, $element, $attrs, $transclude, otherInjectables) { ... },
	 *       {@link $compile#-controlleras- controllerAs}: 'stringIdentifier',
	 *       {@link $compile#-bindtocontroller- bindToController}: false,
	 *       {@link $compile#-require- require}: 'siblingDirectiveName', // or // ['^parentDirectiveName', '?optionalDirectiveName', '?^optionalParent'],
	 *       {@link $compile#-multielement- multiElement}: false,
	 *       {@link $compile#-compile- compile}: function compile(tElement, tAttrs, transclude) {
	 *         return {
	 *            {@link $compile#pre-linking-function pre}: function preLink(scope, iElement, iAttrs, controller) { ... },
	 *            {@link $compile#post-linking-function post}: function postLink(scope, iElement, iAttrs, controller) { ... }
	 *         }
	 *         // or
	 *         // return function postLink( ... ) { ... }
	 *       },
	 *       // or
	 *       // {@link $compile#-link- link}: {
	 *       //  {@link $compile#pre-linking-function pre}: function preLink(scope, iElement, iAttrs, controller) { ... },
	 *       //  {@link $compile#post-linking-function post}: function postLink(scope, iElement, iAttrs, controller) { ... }
	 *       // }
	 *       // or
	 *       // {@link $compile#-link- link}: function postLink( ... ) { ... }
	 *     };
	 *     return directiveDefinitionObject;
	 *   });
	 * ```
	 *
	 * <div class="alert alert-warning">
	 * **Note:** Any unspecified options will use the default value. You can see the default values below.
	 * </div>
	 *
	 * Therefore the above can be simplified as:
	 *
	 * ```js
	 *   var myModule = angular.module(...);
	 *
	 *   myModule.directive('directiveName', function factory(injectables) {
	 *     var directiveDefinitionObject = {
	 *       link: function postLink(scope, iElement, iAttrs) { ... }
	 *     };
	 *     return directiveDefinitionObject;
	 *     // or
	 *     // return function postLink(scope, iElement, iAttrs) { ... }
	 *   });
	 * ```
	 *
	 * ### Life-cycle hooks
	 * Directive controllers can provide the following methods that are called by AngularJS at points in the life-cycle of the
	 * directive:
	 * * `$onInit()` - Called on each controller after all the controllers on an element have been constructed and
	 *   had their bindings initialized (and before the pre &amp; post linking functions for the directives on
	 *   this element). This is a good place to put initialization code for your controller.
	 * * `$onChanges(changesObj)` - Called whenever one-way (`<`) or interpolation (`@`) bindings are updated. The
	 *   `changesObj` is a hash whose keys are the names of the bound properties that have changed, and the values are an
	 *   object of the form `{ currentValue, previousValue, isFirstChange() }`. Use this hook to trigger updates within a
	 *   component such as cloning the bound value to prevent accidental mutation of the outer value. Note that this will
	 *   also be called when your bindings are initialized.
	 * * `$doCheck()` - Called on each turn of the digest cycle. Provides an opportunity to detect and act on
	 *   changes. Any actions that you wish to take in response to the changes that you detect must be
	 *   invoked from this hook; implementing this has no effect on when `$onChanges` is called. For example, this hook
	 *   could be useful if you wish to perform a deep equality check, or to check a Date object, changes to which would not
	 *   be detected by AngularJS's change detector and thus not trigger `$onChanges`. This hook is invoked with no arguments;
	 *   if detecting changes, you must store the previous value(s) for comparison to the current values.
	 * * `$onDestroy()` - Called on a controller when its containing scope is destroyed. Use this hook for releasing
	 *   external resources, watches and event handlers. Note that components have their `$onDestroy()` hooks called in
	 *   the same order as the `$scope.$broadcast` events are triggered, which is top down. This means that parent
	 *   components will have their `$onDestroy()` hook called before child components.
	 * * `$postLink()` - Called after this controller's element and its children have been linked. Similar to the post-link
	 *   function this hook can be used to set up DOM event handlers and do direct DOM manipulation.
	 *   Note that child elements that contain `templateUrl` directives will not have been compiled and linked since
	 *   they are waiting for their template to load asynchronously and their own compilation and linking has been
	 *   suspended until that occurs.
	 *
	 * #### Comparison with life-cycle hooks in the new Angular
	 * The new Angular also uses life-cycle hooks for its components. While the AngularJS life-cycle hooks are similar there are
	 * some differences that you should be aware of, especially when it comes to moving your code from AngularJS to Angular:
	 *
	 * * AngularJS hooks are prefixed with `$`, such as `$onInit`. Angular hooks are prefixed with `ng`, such as `ngOnInit`.
	 * * AngularJS hooks can be defined on the controller prototype or added to the controller inside its constructor.
	 *   In Angular you can only define hooks on the prototype of the Component class.
	 * * Due to the differences in change-detection, you may get many more calls to `$doCheck` in AngularJS than you would to
	 *   `ngDoCheck` in Angular.
	 * * Changes to the model inside `$doCheck` will trigger new turns of the digest loop, which will cause the changes to be
	 *   propagated throughout the application.
	 *   Angular does not allow the `ngDoCheck` hook to trigger a change outside of the component. It will either throw an
	 *   error or do nothing depending upon the state of `enableProdMode()`.
	 *
	 * #### Life-cycle hook examples
	 *
	 * This example shows how you can check for mutations to a Date object even though the identity of the object
	 * has not changed.
	 *
	 * <example name="doCheckDateExample" module="do-check-module">
	 *   <file name="app.js">
	 *     angular.module('do-check-module', [])
	 *       .component('app', {
	 *         template:
	 *           'Month: <input ng-model="$ctrl.month" ng-change="$ctrl.updateDate()">' +
	 *           'Date: {{ $ctrl.date }}' +
	 *           '<test date="$ctrl.date"></test>',
	 *         controller: function() {
	 *           this.date = new Date();
	 *           this.month = this.date.getMonth();
	 *           this.updateDate = function() {
	 *             this.date.setMonth(this.month);
	 *           };
	 *         }
	 *       })
	 *       .component('test', {
	 *         bindings: { date: '<' },
	 *         template:
	 *           '<pre>{{ $ctrl.log | json }}</pre>',
	 *         controller: function() {
	 *           var previousValue;
	 *           this.log = [];
	 *           this.$doCheck = function() {
	 *             var currentValue = this.date && this.date.valueOf();
	 *             if (previousValue !== currentValue) {
	 *               this.log.push('doCheck: date mutated: ' + this.date);
	 *               previousValue = currentValue;
	 *             }
	 *           };
	 *         }
	 *       });
	 *   </file>
	 *   <file name="index.html">
	 *     <app></app>
	 *   </file>
	 * </example>
	 *
	 * This example show how you might use `$doCheck` to trigger changes in your component's inputs even if the
	 * actual identity of the component doesn't change. (Be aware that cloning and deep equality checks on large
	 * arrays or objects can have a negative impact on your application performance.)
	 *
	 * <example name="doCheckArrayExample" module="do-check-module">
	 *   <file name="index.html">
	 *     <div ng-init="items = []">
	 *       <button ng-click="items.push(items.length)">Add Item</button>
	 *       <button ng-click="items = []">Reset Items</button>
	 *       <pre>{{ items }}</pre>
	 *       <test items="items"></test>
	 *     </div>
	 *   </file>
	 *   <file name="app.js">
	 *      angular.module('do-check-module', [])
	 *        .component('test', {
	 *          bindings: { items: '<' },
	 *          template:
	 *            '<pre>{{ $ctrl.log | json }}</pre>',
	 *          controller: function() {
	 *            this.log = [];
	 *
	 *            this.$doCheck = function() {
	 *              if (this.items_ref !== this.items) {
	 *                this.log.push('doCheck: items changed');
	 *                this.items_ref = this.items;
	 *              }
	 *              if (!angular.equals(this.items_clone, this.items)) {
	 *                this.log.push('doCheck: items mutated');
	 *                this.items_clone = angular.copy(this.items);
	 *              }
	 *            };
	 *          }
	 *        });
	 *   </file>
	 * </example>
	 *
	 *
	 * ### Directive Definition Object
	 *
	 * The directive definition object provides instructions to the {@link ng.$compile
	 * compiler}. The attributes are:
	 *
	 * #### `multiElement`
	 * When this property is set to true (default is `false`), the HTML compiler will collect DOM nodes between
	 * nodes with the attributes `directive-name-start` and `directive-name-end`, and group them
	 * together as the directive elements. It is recommended that this feature be used on directives
	 * which are not strictly behavioral (such as {@link ngClick}), and which
	 * do not manipulate or replace child nodes (such as {@link ngInclude}).
	 *
	 * #### `priority`
	 * When there are multiple directives defined on a single DOM element, sometimes it
	 * is necessary to specify the order in which the directives are applied. The `priority` is used
	 * to sort the directives before their `compile` functions get called. Priority is defined as a
	 * number. Directives with greater numerical `priority` are compiled first. Pre-link functions
	 * are also run in priority order, but post-link functions are run in reverse order. The order
	 * of directives with the same priority is undefined. The default priority is `0`.
	 *
	 * #### `terminal`
	 * If set to true then the current `priority` will be the last set of directives
	 * which will execute (any directives at the current priority will still execute
	 * as the order of execution on same `priority` is undefined). Note that expressions
	 * and other directives used in the directive's template will also be excluded from execution.
	 *
	 * #### `scope`
	 * The scope property can be `false`, `true`, or an object:
	 *
	 * * **`false` (default):** No scope will be created for the directive. The directive will use its
	 * parent's scope.
	 *
	 * * **`true`:** A new child scope that prototypically inherits from its parent will be created for
	 * the directive's element. If multiple directives on the same element request a new scope,
	 * only one new scope is created.
	 *
	 * * **`{...}` (an object hash):** A new "isolate" scope is created for the directive's template.
	 * The 'isolate' scope differs from normal scope in that it does not prototypically
	 * inherit from its parent scope. This is useful when creating reusable components, which should not
	 * accidentally read or modify data in the parent scope. Note that an isolate scope
	 * directive without a `template` or `templateUrl` will not apply the isolate scope
	 * to its children elements.
	 *
	 * The 'isolate' scope object hash defines a set of local scope properties derived from attributes on the
	 * directive's element. These local properties are useful for aliasing values for templates. The keys in
	 * the object hash map to the name of the property on the isolate scope; the values define how the property
	 * is bound to the parent scope, via matching attributes on the directive's element:
	 *
	 * * `@` or `@attr` - bind a local scope property to the value of DOM attribute. The result is
	 *   always a string since DOM attributes are strings. If no `attr` name is specified then the
	 *   attribute name is assumed to be the same as the local name. Given `<my-component
	 *   my-attr="hello {{name}}">` and the isolate scope definition `scope: { localName:'@myAttr' }`,
	 *   the directive's scope property `localName` will reflect the interpolated value of `hello
	 *   {{name}}`. As the `name` attribute changes so will the `localName` property on the directive's
	 *   scope. The `name` is read from the parent scope (not the directive's scope).
	 *
	 * * `=` or `=attr` - set up a bidirectional binding between a local scope property and an expression
	 *   passed via the attribute `attr`. The expression is evaluated in the context of the parent scope.
	 *   If no `attr` name is specified then the attribute name is assumed to be the same as the local
	 *   name. Given `<my-component my-attr="parentModel">` and the isolate scope definition `scope: {
	 *   localModel: '=myAttr' }`, the property `localModel` on the directive's scope will reflect the
	 *   value of `parentModel` on the parent scope. Changes to `parentModel` will be reflected in
	 *   `localModel` and vice versa. If the binding expression is non-assignable, or if the attribute
	 *   isn't  optional and doesn't exist, an exception
	 *   ({@link error/$compile/nonassign `$compile:nonassign`}) will be thrown upon discovering changes
	 *   to the local value, since it will be impossible to sync them back to the parent scope.
	 *
	 *   By default, the {@link ng.$rootScope.Scope#$watch `$watch`}
	 *   method is used for tracking changes, and the equality check is based on object identity.
	 *   However, if an object literal or an array literal is passed as the binding expression, the
	 *   equality check is done by value (using the {@link angular.equals} function). It's also possible
	 *   to watch the evaluated value shallowly with {@link ng.$rootScope.Scope#$watchCollection
	 *   `$watchCollection`}: use `=*` or `=*attr`
	 *
	  * * `<` or `<attr` - set up a one-way (one-directional) binding between a local scope property and an
	 *   expression passed via the attribute `attr`. The expression is evaluated in the context of the
	 *   parent scope. If no `attr` name is specified then the attribute name is assumed to be the same as the
	 *   local name.
	 *
	 *   For example, given `<my-component my-attr="parentModel">` and directive definition of
	 *   `scope: { localModel:'<myAttr' }`, then the isolated scope property `localModel` will reflect the
	 *   value of `parentModel` on the parent scope. Any changes to `parentModel` will be reflected
	 *   in `localModel`, but changes in `localModel` will not reflect in `parentModel`. There are however
	 *   two caveats:
	 *     1. one-way binding does not copy the value from the parent to the isolate scope, it simply
	 *     sets the same value. That means if your bound value is an object, changes to its properties
	 *     in the isolated scope will be reflected in the parent scope (because both reference the same object).
	 *     2. one-way binding watches changes to the **identity** of the parent value. That means the
	 *     {@link ng.$rootScope.Scope#$watch `$watch`} on the parent value only fires if the reference
	 *     to the value has changed. In most cases, this should not be of concern, but can be important
	 *     to know if you one-way bind to an object, and then replace that object in the isolated scope.
	 *     If you now change a property of the object in your parent scope, the change will not be
	 *     propagated to the isolated scope, because the identity of the object on the parent scope
	 *     has not changed. Instead you must assign a new object.
	 *
	 *   One-way binding is useful if you do not plan to propagate changes to your isolated scope bindings
	 *   back to the parent. However, it does not make this completely impossible.
	 *
	 *   By default, the {@link ng.$rootScope.Scope#$watch `$watch`}
	 *   method is used for tracking changes, and the equality check is based on object identity.
	 *   It's also possible to watch the evaluated value shallowly with
	 *   {@link ng.$rootScope.Scope#$watchCollection `$watchCollection`}: use `<*` or `<*attr`
	 *
	 * * `&` or `&attr` - provides a way to execute an expression in the context of the parent scope. If
	 *   no `attr` name is specified then the attribute name is assumed to be the same as the local name.
	 *   Given `<my-component my-attr="count = count + value">` and the isolate scope definition `scope: {
	 *   localFn:'&myAttr' }`, the isolate scope property `localFn` will point to a function wrapper for
	 *   the `count = count + value` expression. Often it's desirable to pass data from the isolated scope
	 *   via an expression to the parent scope. This can be done by passing a map of local variable names
	 *   and values into the expression wrapper fn. For example, if the expression is `increment(amount)`
	 *   then we can specify the amount value by calling the `localFn` as `localFn({amount: 22})`.
	 *
	 * All 4 kinds of bindings (`@`, `=`, `<`, and `&`) can be made optional by adding `?` to the expression.
	 * The marker must come after the mode and before the attribute name.
	 * See the {@link error/$compile/iscp Invalid Isolate Scope Definition error} for definition examples.
	 * This is useful to refine the interface directives provide.
	 * One subtle difference between optional and non-optional happens **when the binding attribute is not
	 * set**:
	 * - the binding is optional: the property will not be defined
	 * - the binding is not optional: the property is defined
	 *
	 * ```js
	 *app.directive('testDir', function() {
	    return {
	      scope: {
	        notoptional: '=',
	        optional: '=?',
	      },
	      bindToController: true,
	      controller: function() {
	        this.$onInit = function() {
	          console.log(this.hasOwnProperty('notoptional')) // true
	          console.log(this.hasOwnProperty('optional')) // false
	        }
	      }
	    }
	  })
	 *```
	 *
	 *
	 * ##### Combining directives with different scope defintions
	 *
	 * In general it's possible to apply more than one directive to one element, but there might be limitations
	 * depending on the type of scope required by the directives. The following points will help explain these limitations.
	 * For simplicity only two directives are taken into account, but it is also applicable for several directives:
	 *
	 * * **no scope** + **no scope** => Two directives which don't require their own scope will use their parent's scope
	 * * **child scope** + **no scope** =>  Both directives will share one single child scope
	 * * **child scope** + **child scope** =>  Both directives will share one single child scope
	 * * **isolated scope** + **no scope** =>  The isolated directive will use it's own created isolated scope. The other directive will use
	 * its parent's scope
	 * * **isolated scope** + **child scope** =>  **Won't work!** Only one scope can be related to one element. Therefore these directives cannot
	 * be applied to the same element.
	 * * **isolated scope** + **isolated scope**  =>  **Won't work!** Only one scope can be related to one element. Therefore these directives
	 * cannot be applied to the same element.
	 *
	 *
	 * #### `bindToController`
	 * This property is used to bind scope properties directly to the controller. It can be either
	 * `true` or an object hash with the same format as the `scope` property.
	 *
	 * When an isolate scope is used for a directive (see above), `bindToController: true` will
	 * allow a component to have its properties bound to the controller, rather than to scope.
	 *
	 * After the controller is instantiated, the initial values of the isolate scope bindings will be bound to the controller
	 * properties. You can access these bindings once they have been initialized by providing a controller method called
	 * `$onInit`, which is called after all the controllers on an element have been constructed and had their bindings
	 * initialized.
	 *
	 * It is also possible to set `bindToController` to an object hash with the same format as the `scope` property.
	 * This will set up the scope bindings to the controller directly. Note that `scope` can still be used
	 * to define which kind of scope is created. By default, no scope is created. Use `scope: {}` to create an isolate
	 * scope (useful for component directives).
	 *
	 * If both `bindToController` and `scope` are defined and have object hashes, `bindToController` overrides `scope`.
	 *
	 *
	 * #### `controller`
	 * Controller constructor function. The controller is instantiated before the
	 * pre-linking phase and can be accessed by other directives (see
	 * `require` attribute). This allows the directives to communicate with each other and augment
	 * each other's behavior. The controller is injectable (and supports bracket notation) with the following locals:
	 *
	 * * `$scope` - Current scope associated with the element
	 * * `$element` - Current element
	 * * `$attrs` - Current attributes object for the element
	 * * `$transclude` - A transclude linking function pre-bound to the correct transclusion scope:
	 *   `function([scope], cloneLinkingFn, futureParentElement, slotName)`:
	 *    * `scope`: (optional) override the scope.
	 *    * `cloneLinkingFn`: (optional) argument to create clones of the original transcluded content.
	 *    * `futureParentElement` (optional):
	 *        * defines the parent to which the `cloneLinkingFn` will add the cloned elements.
	 *        * default: `$element.parent()` resp. `$element` for `transclude:'element'` resp. `transclude:true`.
	 *        * only needed for transcludes that are allowed to contain non html elements (e.g. SVG elements)
	 *          and when the `cloneLinkingFn` is passed,
	 *          as those elements need to created and cloned in a special way when they are defined outside their
	 *          usual containers (e.g. like `<svg>`).
	 *        * See also the `directive.templateNamespace` property.
	 *    * `slotName`: (optional) the name of the slot to transclude. If falsy (e.g. `null`, `undefined` or `''`)
	 *      then the default transclusion is provided.
	 *    The `$transclude` function also has a method on it, `$transclude.isSlotFilled(slotName)`, which returns
	 *    `true` if the specified slot contains content (i.e. one or more DOM nodes).
	 *
	 * #### `require`
	 * Require another directive and inject its controller as the fourth argument to the linking function. The
	 * `require` property can be a string, an array or an object:
	 * * a **string** containing the name of the directive to pass to the linking function
	 * * an **array** containing the names of directives to pass to the linking function. The argument passed to the
	 * linking function will be an array of controllers in the same order as the names in the `require` property
	 * * an **object** whose property values are the names of the directives to pass to the linking function. The argument
	 * passed to the linking function will also be an object with matching keys, whose values will hold the corresponding
	 * controllers.
	 *
	 * If the `require` property is an object and `bindToController` is truthy, then the required controllers are
	 * bound to the controller using the keys of the `require` property. This binding occurs after all the controllers
	 * have been constructed but before `$onInit` is called.
	 * If the name of the required controller is the same as the local name (the key), the name can be
	 * omitted. For example, `{parentDir: '^^'}` is equivalent to `{parentDir: '^^parentDir'}`.
	 * See the {@link $compileProvider#component} helper for an example of how this can be used.
	 * If no such required directive(s) can be found, or if the directive does not have a controller, then an error is
	 * raised (unless no link function is specified and the required controllers are not being bound to the directive
	 * controller, in which case error checking is skipped). The name can be prefixed with:
	 *
	 * * (no prefix) - Locate the required controller on the current element. Throw an error if not found.
	 * * `?` - Attempt to locate the required controller or pass `null` to the `link` fn if not found.
	 * * `^` - Locate the required controller by searching the element and its parents. Throw an error if not found.
	 * * `^^` - Locate the required controller by searching the element's parents. Throw an error if not found.
	 * * `?^` - Attempt to locate the required controller by searching the element and its parents or pass
	 *   `null` to the `link` fn if not found.
	 * * `?^^` - Attempt to locate the required controller by searching the element's parents, or pass
	 *   `null` to the `link` fn if not found.
	 *
	 *
	 * #### `controllerAs`
	 * Identifier name for a reference to the controller in the directive's scope.
	 * This allows the controller to be referenced from the directive template. This is especially
	 * useful when a directive is used as component, i.e. with an `isolate` scope. It's also possible
	 * to use it in a directive without an `isolate` / `new` scope, but you need to be aware that the
	 * `controllerAs` reference might overwrite a property that already exists on the parent scope.
	 *
	 *
	 * #### `restrict`
	 * String of subset of `EACM` which restricts the directive to a specific directive
	 * declaration style. If omitted, the defaults (elements and attributes) are used.
	 *
	 * * `E` - Element name (default): `<my-directive></my-directive>`
	 * * `A` - Attribute (default): `<div my-directive="exp"></div>`
	 * * `C` - Class: `<div class="my-directive: exp;"></div>`
	 * * `M` - Comment: `<!-- directive: my-directive exp -->`
	 *
	 *
	 * #### `templateNamespace`
	 * String representing the document type used by the markup in the template.
	 * AngularJS needs this information as those elements need to be created and cloned
	 * in a special way when they are defined outside their usual containers like `<svg>` and `<math>`.
	 *
	 * * `html` - All root nodes in the template are HTML. Root nodes may also be
	 *   top-level elements such as `<svg>` or `<math>`.
	 * * `svg` - The root nodes in the template are SVG elements (excluding `<math>`).
	 * * `math` - The root nodes in the template are MathML elements (excluding `<svg>`).
	 *
	 * If no `templateNamespace` is specified, then the namespace is considered to be `html`.
	 *
	 * #### `template`
	 * HTML markup that may:
	 * * Replace the contents of the directive's element (default).
	 * * Replace the directive's element itself (if `replace` is true - DEPRECATED).
	 * * Wrap the contents of the directive's element (if `transclude` is true).
	 *
	 * Value may be:
	 *
	 * * A string. For example `<div red-on-hover>{{delete_str}}</div>`.
	 * * A function which takes two arguments `tElement` and `tAttrs` (described in the `compile`
	 *   function api below) and returns a string value.
	 *
	 *
	 * #### `templateUrl`
	 * This is similar to `template` but the template is loaded from the specified URL, asynchronously.
	 *
	 * Because template loading is asynchronous the compiler will suspend compilation of directives on that element
	 * for later when the template has been resolved.  In the meantime it will continue to compile and link
	 * sibling and parent elements as though this element had not contained any directives.
	 *
	 * The compiler does not suspend the entire compilation to wait for templates to be loaded because this
	 * would result in the whole app "stalling" until all templates are loaded asynchronously - even in the
	 * case when only one deeply nested directive has `templateUrl`.
	 *
	 * Template loading is asynchronous even if the template has been preloaded into the {@link $templateCache}.
	 *
	 * You can specify `templateUrl` as a string representing the URL or as a function which takes two
	 * arguments `tElement` and `tAttrs` (described in the `compile` function api below) and returns
	 * a string value representing the url.  In either case, the template URL is passed through {@link
	 * $sce#getTrustedResourceUrl $sce.getTrustedResourceUrl}.
	 *
	 *
	 * #### `replace`
	 * <div class="alert alert-danger">
	 * **Note:** `replace` is deprecated in AngularJS and has been removed in the new Angular (v2+).
	 * </div>
	 *
	 * Specifies what the template should replace. Defaults to `false`.
	 *
	 * * `true` - the template will replace the directive's element.
	 * * `false` - the template will replace the contents of the directive's element.
	 *
	 * The replacement process migrates all of the attributes / classes from the old element to the new
	 * one. See the {@link guide/directive#template-expanding-directive
	 * Directives Guide} for an example.
	 *
	 * There are very few scenarios where element replacement is required for the application function,
	 * the main one being reusable custom components that are used within SVG contexts
	 * (because SVG doesn't work with custom elements in the DOM tree).
	 *
	 * #### `transclude`
	 * Extract the contents of the element where the directive appears and make it available to the directive.
	 * The contents are compiled and provided to the directive as a **transclusion function**. See the
	 * {@link $compile#transclusion Transclusion} section below.
	 *
	 *
	 * #### `compile`
	 *
	 * ```js
	 *   function compile(tElement, tAttrs, transclude) { ... }
	 * ```
	 *
	 * The compile function deals with transforming the template DOM. Since most directives do not do
	 * template transformation, it is not used often. The compile function takes the following arguments:
	 *
	 *   * `tElement` - template element - The element where the directive has been declared. It is
	 *     safe to do template transformation on the element and child elements only.
	 *
	 *   * `tAttrs` - template attributes - Normalized list of attributes declared on this element shared
	 *     between all directive compile functions.
	 *
	 *   * `transclude` -  [*DEPRECATED*!] A transclude linking function: `function(scope, cloneLinkingFn)`
	 *
	 * <div class="alert alert-warning">
	 * **Note:** The template instance and the link instance may be different objects if the template has
	 * been cloned. For this reason it is **not** safe to do anything other than DOM transformations that
	 * apply to all cloned DOM nodes within the compile function. Specifically, DOM listener registration
	 * should be done in a linking function rather than in a compile function.
	 * </div>
	
	 * <div class="alert alert-warning">
	 * **Note:** The compile function cannot handle directives that recursively use themselves in their
	 * own templates or compile functions. Compiling these directives results in an infinite loop and
	 * stack overflow errors.
	 *
	 * This can be avoided by manually using `$compile` in the postLink function to imperatively compile
	 * a directive's template instead of relying on automatic template compilation via `template` or
	 * `templateUrl` declaration or manual compilation inside the compile function.
	 * </div>
	 *
	 * <div class="alert alert-danger">
	 * **Note:** The `transclude` function that is passed to the compile function is deprecated, as it
	 *   e.g. does not know about the right outer scope. Please use the transclude function that is passed
	 *   to the link function instead.
	 * </div>
	
	 * A compile function can have a return value which can be either a function or an object.
	 *
	 * * returning a (post-link) function - is equivalent to registering the linking function via the
	 *   `link` property of the config object when the compile function is empty.
	 *
	 * * returning an object with function(s) registered via `pre` and `post` properties - allows you to
	 *   control when a linking function should be called during the linking phase. See info about
	 *   pre-linking and post-linking functions below.
	 *
	 *
	 * #### `link`
	 * This property is used only if the `compile` property is not defined.
	 *
	 * ```js
	 *   function link(scope, iElement, iAttrs, controller, transcludeFn) { ... }
	 * ```
	 *
	 * The link function is responsible for registering DOM listeners as well as updating the DOM. It is
	 * executed after the template has been cloned. This is where most of the directive logic will be
	 * put.
	 *
	 *   * `scope` - {@link ng.$rootScope.Scope Scope} - The scope to be used by the
	 *     directive for registering {@link ng.$rootScope.Scope#$watch watches}.
	 *
	 *   * `iElement` - instance element - The element where the directive is to be used. It is safe to
	 *     manipulate the children of the element only in `postLink` function since the children have
	 *     already been linked.
	 *
	 *   * `iAttrs` - instance attributes - Normalized list of attributes declared on this element shared
	 *     between all directive linking functions.
	 *
	 *   * `controller` - the directive's required controller instance(s) - Instances are shared
	 *     among all directives, which allows the directives to use the controllers as a communication
	 *     channel. The exact value depends on the directive's `require` property:
	 *       * no controller(s) required: the directive's own controller, or `undefined` if it doesn't have one
	 *       * `string`: the controller instance
	 *       * `array`: array of controller instances
	 *
	 *     If a required controller cannot be found, and it is optional, the instance is `null`,
	 *     otherwise the {@link error:$compile:ctreq Missing Required Controller} error is thrown.
	 *
	 *     Note that you can also require the directive's own controller - it will be made available like
	 *     any other controller.
	 *
	 *   * `transcludeFn` - A transclude linking function pre-bound to the correct transclusion scope.
	 *     This is the same as the `$transclude` parameter of directive controllers,
	 *     see {@link ng.$compile#-controller- the controller section for details}.
	 *     `function([scope], cloneLinkingFn, futureParentElement)`.
	 *
	 * #### Pre-linking function
	 *
	 * Executed before the child elements are linked. Not safe to do DOM transformation since the
	 * compiler linking function will fail to locate the correct elements for linking.
	 *
	 * #### Post-linking function
	 *
	 * Executed after the child elements are linked.
	 *
	 * Note that child elements that contain `templateUrl` directives will not have been compiled
	 * and linked since they are waiting for their template to load asynchronously and their own
	 * compilation and linking has been suspended until that occurs.
	 *
	 * It is safe to do DOM transformation in the post-linking function on elements that are not waiting
	 * for their async templates to be resolved.
	 *
	 *
	 * ### Transclusion
	 *
	 * Transclusion is the process of extracting a collection of DOM elements from one part of the DOM and
	 * copying them to another part of the DOM, while maintaining their connection to the original AngularJS
	 * scope from where they were taken.
	 *
	 * Transclusion is used (often with {@link ngTransclude}) to insert the
	 * original contents of a directive's element into a specified place in the template of the directive.
	 * The benefit of transclusion, over simply moving the DOM elements manually, is that the transcluded
	 * content has access to the properties on the scope from which it was taken, even if the directive
	 * has isolated scope.
	 * See the {@link guide/directive#creating-a-directive-that-wraps-other-elements Directives Guide}.
	 *
	 * This makes it possible for the widget to have private state for its template, while the transcluded
	 * content has access to its originating scope.
	 *
	 * <div class="alert alert-warning">
	 * **Note:** When testing an element transclude directive you must not place the directive at the root of the
	 * DOM fragment that is being compiled. See {@link guide/unit-testing#testing-transclusion-directives
	 * Testing Transclusion Directives}.
	 * </div>
	 *
	 * There are three kinds of transclusion depending upon whether you want to transclude just the contents of the
	 * directive's element, the entire element or multiple parts of the element contents:
	 *
	 * * `true` - transclude the content (i.e. the child nodes) of the directive's element.
	 * * `'element'` - transclude the whole of the directive's element including any directives on this
	 *   element that are defined at a lower priority than this directive. When used, the `template`
	 *   property is ignored.
	 * * **`{...}` (an object hash):** - map elements of the content onto transclusion "slots" in the template.
	 *
	 * **Multi-slot transclusion** is declared by providing an object for the `transclude` property.
	 *
	 * This object is a map where the keys are the name of the slot to fill and the value is an element selector
	 * used to match the HTML to the slot. The element selector should be in normalized form (e.g. `myElement`)
	 * and will match the standard element variants (e.g. `my-element`, `my:element`, `data-my-element`, etc).
	 *
	 * For further information check out the guide on {@link guide/directive#matching-directives Matching Directives}.
	 *
	 * If the element selector is prefixed with a `?` then that slot is optional.
	 *
	 * For example, the transclude object `{ slotA: '?myCustomElement' }` maps `<my-custom-element>` elements to
	 * the `slotA` slot, which can be accessed via the `$transclude` function or via the {@link ngTransclude} directive.
	 *
	 * Slots that are not marked as optional (`?`) will trigger a compile time error if there are no matching elements
	 * in the transclude content. If you wish to know if an optional slot was filled with content, then you can call
	 * `$transclude.isSlotFilled(slotName)` on the transclude function passed to the directive's link function and
	 * injectable into the directive's controller.
	 *
	 *
	 * #### Transclusion Functions
	 *
	 * When a directive requests transclusion, the compiler extracts its contents and provides a **transclusion
	 * function** to the directive's `link` function and `controller`. This transclusion function is a special
	 * **linking function** that will return the compiled contents linked to a new transclusion scope.
	 *
	 * <div class="alert alert-info">
	 * If you are just using {@link ngTransclude} then you don't need to worry about this function, since
	 * ngTransclude will deal with it for us.
	 * </div>
	 *
	 * If you want to manually control the insertion and removal of the transcluded content in your directive
	 * then you must use this transclude function. When you call a transclude function it returns a jqLite/JQuery
	 * object that contains the compiled DOM, which is linked to the correct transclusion scope.
	 *
	 * When you call a transclusion function you can pass in a **clone attach function**. This function accepts
	 * two parameters, `function(clone, scope) { ... }`, where the `clone` is a fresh compiled copy of your transcluded
	 * content and the `scope` is the newly created transclusion scope, which the clone will be linked to.
	 *
	 * <div class="alert alert-info">
	 * **Best Practice**: Always provide a `cloneFn` (clone attach function) when you call a transclude function
	 * since you then get a fresh clone of the original DOM and also have access to the new transclusion scope.
	 * </div>
	 *
	 * It is normal practice to attach your transcluded content (`clone`) to the DOM inside your **clone
	 * attach function**:
	 *
	 * ```js
	 * var transcludedContent, transclusionScope;
	 *
	 * $transclude(function(clone, scope) {
	 *   element.append(clone);
	 *   transcludedContent = clone;
	 *   transclusionScope = scope;
	 * });
	 * ```
	 *
	 * Later, if you want to remove the transcluded content from your DOM then you should also destroy the
	 * associated transclusion scope:
	 *
	 * ```js
	 * transcludedContent.remove();
	 * transclusionScope.$destroy();
	 * ```
	 *
	 * <div class="alert alert-info">
	 * **Best Practice**: if you intend to add and remove transcluded content manually in your directive
	 * (by calling the transclude function to get the DOM and calling `element.remove()` to remove it),
	 * then you are also responsible for calling `$destroy` on the transclusion scope.
	 * </div>
	 *
	 * The built-in DOM manipulation directives, such as {@link ngIf}, {@link ngSwitch} and {@link ngRepeat}
	 * automatically destroy their transcluded clones as necessary so you do not need to worry about this if
	 * you are simply using {@link ngTransclude} to inject the transclusion into your directive.
	 *
	 *
	 * #### Transclusion Scopes
	 *
	 * When you call a transclude function it returns a DOM fragment that is pre-bound to a **transclusion
	 * scope**. This scope is special, in that it is a child of the directive's scope (and so gets destroyed
	 * when the directive's scope gets destroyed) but it inherits the properties of the scope from which it
	 * was taken.
	 *
	 * For example consider a directive that uses transclusion and isolated scope. The DOM hierarchy might look
	 * like this:
	 *
	 * ```html
	 * <div ng-app>
	 *   <div isolate>
	 *     <div transclusion>
	 *     </div>
	 *   </div>
	 * </div>
	 * ```
	 *
	 * The `$parent` scope hierarchy will look like this:
	 *
	   ```
	   - $rootScope
	     - isolate
	       - transclusion
	   ```
	 *
	 * but the scopes will inherit prototypically from different scopes to their `$parent`.
	 *
	   ```
	   - $rootScope
	     - transclusion
	   - isolate
	   ```
	 *
	 *
	 * ### Attributes
	 *
	 * The {@link ng.$compile.directive.Attributes Attributes} object - passed as a parameter in the
	 * `link()` or `compile()` functions. It has a variety of uses.
	 *
	 * * *Accessing normalized attribute names:* Directives like `ngBind` can be expressed in many ways:
	 *   `ng:bind`, `data-ng-bind`, or `x-ng-bind`. The attributes object allows for normalized access
	 *   to the attributes.
	 *
	 * * *Directive inter-communication:* All directives share the same instance of the attributes
	 *   object which allows the directives to use the attributes object as inter directive
	 *   communication.
	 *
	 * * *Supports interpolation:* Interpolation attributes are assigned to the attribute object
	 *   allowing other directives to read the interpolated value.
	 *
	 * * *Observing interpolated attributes:* Use `$observe` to observe the value changes of attributes
	 *   that contain interpolation (e.g. `src="{{bar}}"`). Not only is this very efficient but it's also
	 *   the only way to easily get the actual value because during the linking phase the interpolation
	 *   hasn't been evaluated yet and so the value is at this time set to `undefined`.
	 *
	 * ```js
	 * function linkingFn(scope, elm, attrs, ctrl) {
	 *   // get the attribute value
	 *   console.log(attrs.ngModel);
	 *
	 *   // change the attribute
	 *   attrs.$set('ngModel', 'new value');
	 *
	 *   // observe changes to interpolated attribute
	 *   attrs.$observe('ngModel', function(value) {
	 *     console.log('ngModel has changed value to ' + value);
	 *   });
	 * }
	 * ```
	 *
	 * ## Example
	 *
	 * <div class="alert alert-warning">
	 * **Note**: Typically directives are registered with `module.directive`. The example below is
	 * to illustrate how `$compile` works.
	 * </div>
	 *
	 <example module="compileExample" name="compile">
	   <file name="index.html">
	    <script>
	      angular.module('compileExample', [], function($compileProvider) {
	        // Configure new 'compile' directive by passing a directive
	        // factory function. The factory function injects '$compile'.
	        $compileProvider.directive('compile', function($compile) {
	          // The directive factory creates a link function.
	          return function(scope, element, attrs) {
	            scope.$watch(
	              function(scope) {
	                // Watch the 'compile' expression for changes.
	                return scope.$eval(attrs.compile);
	              },
	              function(value) {
	                // When the 'compile' expression changes
	                // assign it into the current DOM.
	                element.html(value);
	
	                // Compile the new DOM and link it to the current scope.
	                // NOTE: we only compile '.childNodes' so that we
	                // don't get into an infinite loop compiling ourselves.
	                $compile(element.contents())(scope);
	              }
	            );
	          };
	        });
	      })
	      .controller('GreeterController', ['$scope', function($scope) {
	        $scope.name = 'AngularJS';
	        $scope.html = 'Hello {{name}}';
	      }]);
	    </script>
	    <div ng-controller="GreeterController">
	      <input ng-model="name"> <br/>
	      <textarea ng-model="html"></textarea> <br/>
	      <div compile="html"></div>
	    </div>
	   </file>
	   <file name="protractor.js" type="protractor">
	     it('should auto compile', function() {
	       var textarea = $('textarea');
	       var output = $('div[compile]');
	       // The initial state reads 'Hello AngularJS'.
	       expect(output.getText()).toBe('Hello AngularJS');
	       textarea.clear();
	       textarea.sendKeys('{{name}}!');
	       expect(output.getText()).toBe('AngularJS!');
	     });
	   </file>
	 </example>
	
	 *
	 *
	 * @param {string|DOMElement} element Element or HTML string to compile into a template function.
	 * @param {function(angular.Scope, cloneAttachFn=)} transclude function available to directives - DEPRECATED.
	 *
	 * <div class="alert alert-danger">
	 * **Note:** Passing a `transclude` function to the $compile function is deprecated, as it
	 *   e.g. will not use the right outer scope. Please pass the transclude function as a
	 *   `parentBoundTranscludeFn` to the link function instead.
	 * </div>
	 *
	 * @param {number} maxPriority only apply directives lower than given priority (Only effects the
	 *                 root element(s), not their children)
	 * @returns {function(scope, cloneAttachFn=, options=)} a link function which is used to bind template
	 * (a DOM element/tree) to a scope. Where:
	 *
	 *  * `scope` - A {@link ng.$rootScope.Scope Scope} to bind to.
	 *  * `cloneAttachFn` - If `cloneAttachFn` is provided, then the link function will clone the
	 *  `template` and call the `cloneAttachFn` function allowing the caller to attach the
	 *  cloned elements to the DOM document at the appropriate place. The `cloneAttachFn` is
	 *  called as: <br/> `cloneAttachFn(clonedElement, scope)` where:
	 *
	 *      * `clonedElement` - is a clone of the original `element` passed into the compiler.
	 *      * `scope` - is the current scope with which the linking function is working with.
	 *
	 *  * `options` - An optional object hash with linking options. If `options` is provided, then the following
	 *  keys may be used to control linking behavior:
	 *
	 *      * `parentBoundTranscludeFn` - the transclude function made available to
	 *        directives; if given, it will be passed through to the link functions of
	 *        directives found in `element` during compilation.
	 *      * `transcludeControllers` - an object hash with keys that map controller names
	 *        to a hash with the key `instance`, which maps to the controller instance;
	 *        if given, it will make the controllers available to directives on the compileNode:
	 *        ```
	 *        {
	 *          parent: {
	 *            instance: parentControllerInstance
	 *          }
	 *        }
	 *        ```
	 *      * `futureParentElement` - defines the parent to which the `cloneAttachFn` will add
	 *        the cloned elements; only needed for transcludes that are allowed to contain non HTML
	 *        elements (e.g. SVG elements). See also the `directive.controller` property.
	 *
	 * Calling the linking function returns the element of the template. It is either the original
	 * element passed in, or the clone of the element if the `cloneAttachFn` is provided.
	 *
	 * After linking the view is not updated until after a call to `$digest`, which typically is done by
	 * AngularJS automatically.
	 *
	 * If you need access to the bound view, there are two ways to do it:
	 *
	 * - If you are not asking the linking function to clone the template, create the DOM element(s)
	 *   before you send them to the compiler and keep this reference around.
	 *   ```js
	 *     var element = angular.element('<p>{{total}}</p>');
	 *     $compile(element)(scope);
	 *   ```
	 *
	 * - if on the other hand, you need the element to be cloned, the view reference from the original
	 *   example would not point to the clone, but rather to the original template that was cloned. In
	 *   this case, you can access the clone either via the `cloneAttachFn` or the value returned by the
	 *   linking function:
	 *   ```js
	 *     var templateElement = angular.element('<p>{{total}}</p>');
	 *     var clonedElement = $compile(templateElement)(scope, function(clonedElement, scope) {
	 *       // Attach the clone to DOM document at the right place.
	 *     });
	 *
	 *     // Now we have reference to the cloned DOM via `clonedElement`.
	 *     // NOTE: The `clonedElement` returned by the linking function is the same as the
	 *     //       `clonedElement` passed to `cloneAttachFn`.
	 *   ```
	 *
	 *
	 * For information on how the compiler works, see the
	 * {@link guide/compiler AngularJS HTML Compiler} section of the Developer Guide.
	 *
	 * @knownIssue
	 *
	 * ### Double Compilation
	 *
	   Double compilation occurs when an already compiled part of the DOM gets
	   compiled again. This is an undesired effect and can lead to misbehaving directives, performance issues,
	   and memory leaks. Refer to the Compiler Guide {@link guide/compiler#double-compilation-and-how-to-avoid-it
	   section on double compilation} for an in-depth explanation and ways to avoid it.
	
	 * @knownIssue
	
	   ### Issues with `replace: true`
	 *
	 * <div class="alert alert-danger">
	 *   **Note**: {@link $compile#-replace- `replace: true`} is deprecated and not recommended to use,
	 *   mainly due to the issues listed here. It has been completely removed in the new Angular.
	 * </div>
	 *
	 * #### Attribute values are not merged
	 *
	 * When a `replace` directive encounters the same attribute on the original and the replace node,
	 * it will simply deduplicate the attribute and join the values with a space or with a `;` in case of
	 * the `style` attribute.
	 * ```html
	 * Original Node: <span class="original" style="color: red;"></span>
	 * Replace Template: <span class="replaced" style="background: blue;"></span>
	 * Result: <span class="original replaced" style="color: red; background: blue;"></span>
	 * ```
	 *
	 * That means attributes that contain AngularJS expressions will not be merged correctly, e.g.
	 * {@link ngShow} or {@link ngClass} will cause a {@link $parse} error:
	 *
	 * ```html
	 * Original Node: <span ng-class="{'something': something}" ng-show="!condition"></span>
	 * Replace Template: <span ng-class="{'else': else}" ng-show="otherCondition"></span>
	 * Result: <span ng-class="{'something': something} {'else': else}" ng-show="!condition otherCondition"></span>
	 * ```
	 *
	 * See issue [#5695](https://github.com/angular/angular.js/issues/5695).
	 *
	 * #### Directives are not deduplicated before compilation
	 *
	 * When the original node and the replace template declare the same directive(s), they will be
	 * {@link guide/compiler#double-compilation-and-how-to-avoid-it compiled twice} because the compiler
	 * does not deduplicate them. In many cases, this is not noticeable, but e.g. {@link ngModel} will
	 * attach `$formatters` and `$parsers` twice.
	 *
	 * See issue [#2573](https://github.com/angular/angular.js/issues/2573).
	 *
	 * #### `transclude: element` in the replace template root can have unexpected effects
	 *
	 * When the replace template has a directive at the root node that uses
	 * {@link $compile#-transclude- `transclude: element`}, e.g.
	 * {@link ngIf} or {@link ngRepeat}, the DOM structure or scope inheritance can be incorrect.
	 * See the following issues:
	 *
	 * - Incorrect scope on replaced element:
	 * [#9837](https://github.com/angular/angular.js/issues/9837)
	 * - Different DOM between `template` and `templateUrl`:
	 * [#10612](https://github.com/angular/angular.js/issues/14326)
	 *
	 *//**
	 * @ngdoc directive
	 * @name ngProp
	 * @restrict A
	 * @element ANY
	 *
	 * @usage
	 *
	 * ```html
	 * <ANY ng-prop-propname="expression">
	 * </ANY>
	 * ```
	 *
	 * or with uppercase letters in property (e.g. "propName"):
	 *
	 *
	 * ```html
	 * <ANY ng-prop-prop_name="expression">
	 * </ANY>
	 * ```
	 *
	 *
	 * @description
	 * The `ngProp` directive binds an expression to a DOM element property.
	 * `ngProp` allows writing to arbitrary properties by including
	 * the property name in the attribute, e.g. `ng-prop-value="'my value'"` binds 'my value' to
	 * the `value` property.
	 *
	 * Usually, it's not necessary to write to properties in AngularJS, as the built-in directives
	 * handle the most common use cases (instead of the above example, you would use {@link ngValue}).
	 *
	 * However, [custom elements](https://developer.mozilla.org/docs/Web/Web_Components/Using_custom_elements)
	 * often use custom properties to hold data, and `ngProp` can be used to provide input to these
	 * custom elements.
	 *
	 * ## Binding to camelCase properties
	 *
	 * Since HTML attributes are case-insensitive, camelCase properties like `innerHTML` must be escaped.
	 * AngularJS uses the underscore (_) in front of a character to indicate that it is uppercase, so
	 * `innerHTML`  must be written as `ng-prop-inner_h_t_m_l="expression"` (Note that this is just an
	 * example, and for binding HTML {@link ngBindHtml} should be used.
	 *
	 * ## Security
	 *
	 * Binding expressions to arbitrary properties poses a security risk, as  properties like `innerHTML`
	 * can insert potentially dangerous HTML into the application, e.g. script tags that execute
	 * malicious code.
	 * For this reason, `ngProp` applies Strict Contextual Escaping with the {@link ng.$sce $sce service}.
	 * This means vulnerable properties require their content to be "trusted", based on the
	 * context of the property. For example, the `innerHTML` is in the `HTML` context, and the
	 * `iframe.src` property is in the `RESOURCE_URL` context, which requires that values written to
	 * this property are trusted as a `RESOURCE_URL`.
	 *
	 * This can be set explicitly by calling $sce.trustAs(type, value) on the value that is
	 * trusted before passing it to the `ng-prop-*` directive. There are exist shorthand methods for
	 * each context type in the form of {@link ng.$sce#trustAsResourceUrl $sce.trustAsResourceUrl()} et al.
	 *
	 * In some cases you can also rely upon automatic sanitization of untrusted values - see below.
	 *
	 * Based on the context, other options may exist to mark a value as trusted / configure the behavior
	 * of {@link ng.$sce}. For example, to restrict the `RESOURCE_URL` context to specific origins, use
	 * the {@link $sceDelegateProvider#trustedResourceUrlList trustedResourceUrlList()}
	 * and {@link $sceDelegateProvider#bannedResourceUrlList bannedResourceUrlList()}.
	 *
	 * {@link ng.$sce#what-trusted-context-types-are-supported- Find out more about the different context types}.
	 *
	 * ### HTML Sanitization
	 *
	 * By default, `$sce` will throw an error if it detects untrusted HTML content, and will not bind the
	 * content.
	 * However, if you include the {@link ngSanitize ngSanitize module}, it will try to sanitize the
	 * potentially dangerous HTML, e.g. strip non-trusted tags and attributes when binding to
	 * `innerHTML`.
	 *
	 * @example
	 * ### Binding to different contexts
	 *
	 * <example name="ngProp" module="exampleNgProp">
	 *   <file name="app.js">
	 *     angular.module('exampleNgProp', [])
	 *       .component('main', {
	 *         templateUrl: 'main.html',
	 *         controller: function($sce) {
	 *           this.safeContent = '<strong>Safe content</strong>';
	 *           this.unsafeContent = '<button onclick="alert(\'Hello XSS!\')">Click for XSS</button>';
	 *           this.trustedUnsafeContent = $sce.trustAsHtml(this.unsafeContent);
	 *         }
	 *       });
	 *   </file>
	 *   <file name="main.html">
	 *     <div>
	 *       <div class="prop-unit">
	 *         Binding to a property without security context:
	 *         <div class="prop-binding" ng-prop-inner_text="$ctrl.safeContent"></div>
	 *         <span class="prop-note">innerText</span> (safeContent)
	 *       </div>
	 *
	 *       <div class="prop-unit">
	 *         "Safe" content that requires a security context will throw because the contents could potentially be dangerous ...
	 *         <div class="prop-binding" ng-prop-inner_h_t_m_l="$ctrl.safeContent"></div>
	 *         <span class="prop-note">innerHTML</span> (safeContent)
	 *       </div>
	 *
	 *       <div class="prop-unit">
	 *         ... so that actually dangerous content cannot be executed:
	 *         <div class="prop-binding" ng-prop-inner_h_t_m_l="$ctrl.unsafeContent"></div>
	 *         <span class="prop-note">innerHTML</span> (unsafeContent)
	 *       </div>
	 *
	 *       <div class="prop-unit">
	 *         ... but unsafe Content that has been trusted explicitly works - only do this if you are 100% sure!
	 *         <div class="prop-binding" ng-prop-inner_h_t_m_l="$ctrl.trustedUnsafeContent"></div>
	 *         <span class="prop-note">innerHTML</span> (trustedUnsafeContent)
	 *       </div>
	 *     </div>
	 *   </file>
	 *   <file name="index.html">
	 *     <main></main>
	 *   </file>
	 *   <file name="styles.css">
	 *     .prop-unit {
	 *       margin-bottom: 10px;
	 *     }
	 *
	 *     .prop-binding {
	 *       min-height: 30px;
	 *       border: 1px solid blue;
	 *     }
	 *
	 *     .prop-note {
	 *       font-family: Monospace;
	 *     }
	 *   </file>
	 * </example>
	 *
	 *
	 * @example
	 * ### Binding to innerHTML with ngSanitize
	 *
	 * <example name="ngProp" module="exampleNgProp" deps="angular-sanitize.js">
	 *   <file name="app.js">
	 *     angular.module('exampleNgProp', ['ngSanitize'])
	 *       .component('main', {
	 *         templateUrl: 'main.html',
	 *         controller: function($sce) {
	 *           this.safeContent = '<strong>Safe content</strong>';
	 *           this.unsafeContent = '<button onclick="alert(\'Hello XSS!\')">Click for XSS</button>';
	 *           this.trustedUnsafeContent = $sce.trustAsHtml(this.unsafeContent);
	 *         }
	 *       });
	 *   </file>
	 *   <file name="main.html">
	 *     <div>
	 *       <div class="prop-unit">
	 *         "Safe" content will be sanitized ...
	 *         <div class="prop-binding" ng-prop-inner_h_t_m_l="$ctrl.safeContent"></div>
	 *         <span class="prop-note">innerHTML</span> (safeContent)
	 *       </div>
	 *
	 *       <div class="prop-unit">
	 *         ... as will dangerous content:
	 *         <div class="prop-binding" ng-prop-inner_h_t_m_l="$ctrl.unsafeContent"></div>
	 *         <span class="prop-note">innerHTML</span> (unsafeContent)
	 *       </div>
	 *
	 *       <div class="prop-unit">
	 *         ... and content that has been trusted explicitly works the same as without ngSanitize:
	 *         <div class="prop-binding" ng-prop-inner_h_t_m_l="$ctrl.trustedUnsafeContent"></div>
	 *         <span class="prop-note">innerHTML</span> (trustedUnsafeContent)
	 *       </div>
	 *     </div>
	 *   </file>
	 *   <file name="index.html">
	 *     <main></main>
	 *   </file>
	 *   <file name="styles.css">
	 *     .prop-unit {
	 *       margin-bottom: 10px;
	 *     }
	 *
	 *     .prop-binding {
	 *       min-height: 30px;
	 *       border: 1px solid blue;
	 *     }
	 *
	 *     .prop-note {
	 *       font-family: Monospace;
	 *     }
	 *   </file>
	 * </example>
	 *
	 *//** @ngdoc directive
	 * @name ngOn
	 * @restrict A
	 * @element ANY
	 *
	 * @usage
	 *
	 * ```html
	 * <ANY ng-on-eventname="expression">
	 * </ANY>
	 * ```
	 *
	 * or with uppercase letters in property (e.g. "eventName"):
	 *
	 *
	 * ```html
	 * <ANY ng-on-event_name="expression">
	 * </ANY>
	 * ```
	 *
	 * @description
	 * The `ngOn` directive adds an event listener to a DOM element via
	 * {@link angular.element angular.element().on()}, and evaluates an expression when the event is
	 * fired.
	 * `ngOn` allows adding listeners for arbitrary events by including
	 * the event name in the attribute, e.g. `ng-on-drop="onDrop()"` executes the 'onDrop()' expression
	 * when the `drop` event is fired.
	 *
	 * AngularJS provides specific directives for many events, such as {@link ngClick}, so in most
	 * cases it is not necessary to use `ngOn`. However, AngularJS does not support all events
	 * (e.g. the `drop` event in the example above), and new events might be introduced in later DOM
	 * standards.
	 *
	 * Another use-case for `ngOn` is listening to
	 * [custom events](https://developer.mozilla.org/docs/Web/Guide/Events/Creating_and_triggering_events)
	 * fired by
	 * [custom elements](https://developer.mozilla.org/docs/Web/Web_Components/Using_custom_elements).
	 *
	 * ## Binding to camelCase properties
	 *
	 * Since HTML attributes are case-insensitive, camelCase properties like `myEvent` must be escaped.
	 * AngularJS uses the underscore (_) in front of a character to indicate that it is uppercase, so
	 * `myEvent` must be written as `ng-on-my_event="expression"`.
	 *
	 * @example
	 * ### Bind to built-in DOM events
	 *
	 * <example name="ngOn" module="exampleNgOn">
	 *   <file name="app.js">
	 *     angular.module('exampleNgOn', [])
	 *       .component('main', {
	 *         templateUrl: 'main.html',
	 *         controller: function() {
	 *           this.clickCount = 0;
	 *           this.mouseoverCount = 0;
	 *
	 *           this.loadingState = 0;
	 *         }
	 *       });
	 *   </file>
	 *   <file name="main.html">
	 *     <div>
	 *       This is equivalent to `ngClick` and `ngMouseover`:<br>
	 *       <button
	 *         ng-on-click="$ctrl.clickCount = $ctrl.clickCount + 1"
	 *         ng-on-mouseover="$ctrl.mouseoverCount = $ctrl.mouseoverCount + 1">Click or mouseover</button><br>
	 *       clickCount: {{$ctrl.clickCount}}<br>
	 *       mouseover: {{$ctrl.mouseoverCount}}
	 *
	 *       <hr>
	 *
	 *       For the `error` and `load` event on images no built-in AngularJS directives exist:<br>
	 *       <img src="thisimagedoesnotexist.png" ng-on-error="$ctrl.loadingState = -1" ng-on-load="$ctrl.loadingState = 1"><br>
	 *       <div ng-switch="$ctrl.loadingState">
	 *         <span ng-switch-when="0">Image is loading</span>
	 *         <span ng-switch-when="-1">Image load error</span>
	 *         <span ng-switch-when="1">Image loaded successfully</span>
	 *       </div>
	 *     </div>
	 *   </file>
	 *   <file name="index.html">
	 *     <main></main>
	 *   </file>
	 * </example>
	 *
	 *
	 * @example
	 * ### Bind to custom DOM events
	 *
	 * <example name="ngOnCustom" module="exampleNgOn">
	 *   <file name="app.js">
	 *     angular.module('exampleNgOn', [])
	 *       .component('main', {
	 *         templateUrl: 'main.html',
	 *         controller: function() {
	 *           this.eventLog = '';
	 *
	 *           this.listener = function($event) {
	 *             this.eventLog = 'Event with type "' + $event.type + '" fired at ' + $event.detail;
	 *           };
	 *         }
	 *       })
	 *       .component('childComponent', {
	 *         templateUrl: 'child.html',
	 *         controller: function($element) {
	 *           this.fireEvent = function() {
	 *             var event = new CustomEvent('customtype', { detail: new Date()});
	 *
	 *             $element[0].dispatchEvent(event);
	 *           };
	 *         }
	 *       });
	 *   </file>
	 *   <file name="main.html">
	 *     <child-component ng-on-customtype="$ctrl.listener($event)"></child-component><br>
	 *     <span>Event log: {{$ctrl.eventLog}}</span>
	 *   </file>
	 *   <file name="child.html">
	      <button ng-click="$ctrl.fireEvent()">Fire custom event</button>
	 *   </file>
	 *   <file name="index.html">
	 *     <main></main>
	 *   </file>
	 * </example>
	 */var $compileMinErr=minErr('$compile');function UNINITIALIZED_VALUE(){}var _UNINITIALIZED_VALUE=new UNINITIALIZED_VALUE();/**
	 * @ngdoc provider
	 * @name $compileProvider
	 *
	 * @description
	 */$CompileProvider.$inject=['$provide','$$sanitizeUriProvider'];/** @this */function $CompileProvider($provide,$$sanitizeUriProvider){var hasDirectives={},Suffix='Directive',COMMENT_DIRECTIVE_REGEXP=/^\s*directive:\s*([\w-]+)\s+(.*)$/,CLASS_DIRECTIVE_REGEXP=/(([\w-]+)(?::([^;]+))?;?)/,ALL_OR_NOTHING_ATTRS=makeMap('ngSrc,ngSrcset,src,srcset'),REQUIRE_PREFIX_REGEXP=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/;// Ref: http://developers.whatwg.org/webappapis.html#event-handler-idl-attributes
	// The assumption is that future DOM event attribute names will begin with
	// 'on' and be composed of only English letters.
	var EVENT_HANDLER_ATTR_REGEXP=/^(on[a-z]+|formaction)$/;var bindingCache=createMap();function parseIsolateBindings(scope,directiveName,isController){var LOCAL_REGEXP=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/;var bindings=createMap();forEach(scope,function(definition,scopeName){definition=definition.trim();if(definition in bindingCache){bindings[scopeName]=bindingCache[definition];return;}var match=definition.match(LOCAL_REGEXP);if(!match){throw $compileMinErr('iscp','Invalid {3} for directive \'{0}\'.'+' Definition: {... {1}: \'{2}\' ...}',directiveName,scopeName,definition,isController?'controller bindings definition':'isolate scope definition');}bindings[scopeName]={mode:match[1][0],collection:match[2]==='*',optional:match[3]==='?',attrName:match[4]||scopeName};if(match[4]){bindingCache[definition]=bindings[scopeName];}});return bindings;}function parseDirectiveBindings(directive,directiveName){var bindings={isolateScope:null,bindToController:null};if(isObject(directive.scope)){if(directive.bindToController===true){bindings.bindToController=parseIsolateBindings(directive.scope,directiveName,true);bindings.isolateScope={};}else{bindings.isolateScope=parseIsolateBindings(directive.scope,directiveName,false);}}if(isObject(directive.bindToController)){bindings.bindToController=parseIsolateBindings(directive.bindToController,directiveName,true);}if(bindings.bindToController&&!directive.controller){// There is no controller
	throw $compileMinErr('noctrl','Cannot bind to controller without directive \'{0}\'s controller.',directiveName);}return bindings;}function assertValidDirectiveName(name){var letter=name.charAt(0);if(!letter||letter!==lowercase(letter)){throw $compileMinErr('baddir','Directive/Component name \'{0}\' is invalid. The first character must be a lowercase letter',name);}if(name!==name.trim()){throw $compileMinErr('baddir','Directive/Component name \'{0}\' is invalid. The name should not contain leading or trailing whitespaces',name);}}function getDirectiveRequire(directive){var require=directive.require||directive.controller&&directive.name;if(!isArray(require)&&isObject(require)){forEach(require,function(value,key){var match=value.match(REQUIRE_PREFIX_REGEXP);var name=value.substring(match[0].length);if(!name)require[key]=match[0]+key;});}return require;}function getDirectiveRestrict(restrict,name){if(restrict&&!(isString(restrict)&&/[EACM]/.test(restrict))){throw $compileMinErr('badrestrict','Restrict property \'{0}\' of directive \'{1}\' is invalid',restrict,name);}return restrict||'EA';}/**
	   * @ngdoc method
	   * @name $compileProvider#directive
	   * @kind function
	   *
	   * @description
	   * Register a new directive with the compiler.
	   *
	   * @param {string|Object} name Name of the directive in camel-case (i.e. `ngBind` which will match
	   *    as `ng-bind`), or an object map of directives where the keys are the names and the values
	   *    are the factories.
	   * @param {Function|Array} directiveFactory An injectable directive factory function. See the
	   *    {@link guide/directive directive guide} and the {@link $compile compile API} for more info.
	   * @returns {ng.$compileProvider} Self for chaining.
	   */this.directive=function registerDirective(name,directiveFactory){assertArg(name,'name');assertNotHasOwnProperty(name,'directive');if(isString(name)){assertValidDirectiveName(name);assertArg(directiveFactory,'directiveFactory');if(!hasDirectives.hasOwnProperty(name)){hasDirectives[name]=[];$provide.factory(name+Suffix,['$injector','$exceptionHandler',function($injector,$exceptionHandler){var directives=[];forEach(hasDirectives[name],function(directiveFactory,index){try{var directive=$injector.invoke(directiveFactory);if(isFunction(directive)){directive={compile:valueFn(directive)};}else if(!directive.compile&&directive.link){directive.compile=valueFn(directive.link);}directive.priority=directive.priority||0;directive.index=index;directive.name=directive.name||name;directive.require=getDirectiveRequire(directive);directive.restrict=getDirectiveRestrict(directive.restrict,name);directive.$$moduleName=directiveFactory.$$moduleName;directives.push(directive);}catch(e){$exceptionHandler(e);}});return directives;}]);}hasDirectives[name].push(directiveFactory);}else{forEach(name,reverseParams(registerDirective));}return this;};/**
	   * @ngdoc method
	   * @name $compileProvider#component
	   * @module ng
	   * @param {string|Object} name Name of the component in camelCase (i.e. `myComp` which will match `<my-comp>`),
	   *    or an object map of components where the keys are the names and the values are the component definition objects.
	   * @param {Object} options Component definition object (a simplified
	   *    {@link ng.$compile#directive-definition-object directive definition object}),
	   *    with the following properties (all optional):
	   *
	   *    - `controller` – `{(string|function()=}` – controller constructor function that should be
	   *      associated with newly created scope or the name of a {@link ng.$compile#-controller-
	   *      registered controller} if passed as a string. An empty `noop` function by default.
	   *    - `controllerAs` – `{string=}` – identifier name for to reference the controller in the component's scope.
	   *      If present, the controller will be published to scope under the `controllerAs` name.
	   *      If not present, this will default to be `$ctrl`.
	   *    - `template` – `{string=|function()=}` – html template as a string or a function that
	   *      returns an html template as a string which should be used as the contents of this component.
	   *      Empty string by default.
	   *
	   *      If `template` is a function, then it is {@link auto.$injector#invoke injected} with
	   *      the following locals:
	   *
	   *      - `$element` - Current element
	   *      - `$attrs` - Current attributes object for the element
	   *
	   *    - `templateUrl` – `{string=|function()=}` – path or function that returns a path to an html
	   *      template that should be used  as the contents of this component.
	   *
	   *      If `templateUrl` is a function, then it is {@link auto.$injector#invoke injected} with
	   *      the following locals:
	   *
	   *      - `$element` - Current element
	   *      - `$attrs` - Current attributes object for the element
	   *
	   *    - `bindings` – `{object=}` – defines bindings between DOM attributes and component properties.
	   *      Component properties are always bound to the component controller and not to the scope.
	   *      See {@link ng.$compile#-bindtocontroller- `bindToController`}.
	   *    - `transclude` – `{boolean=}` – whether {@link $compile#transclusion content transclusion} is enabled.
	   *      Disabled by default.
	   *    - `require` - `{Object<string, string>=}` - requires the controllers of other directives and binds them to
	   *      this component's controller. The object keys specify the property names under which the required
	   *      controllers (object values) will be bound. See {@link ng.$compile#-require- `require`}.
	   *    - `$...` – additional properties to attach to the directive factory function and the controller
	   *      constructor function. (This is used by the component router to annotate)
	   *
	   * @returns {ng.$compileProvider} the compile provider itself, for chaining of function calls.
	   * @description
	   * Register a **component definition** with the compiler. This is a shorthand for registering a special
	   * type of directive, which represents a self-contained UI component in your application. Such components
	   * are always isolated (i.e. `scope: {}`) and are always restricted to elements (i.e. `restrict: 'E'`).
	   *
	   * Component definitions are very simple and do not require as much configuration as defining general
	   * directives. Component definitions usually consist only of a template and a controller backing it.
	   *
	   * In order to make the definition easier, components enforce best practices like use of `controllerAs`,
	   * `bindToController`. They always have **isolate scope** and are restricted to elements.
	   *
	   * Here are a few examples of how you would usually define components:
	   *
	   * ```js
	   *   var myMod = angular.module(...);
	   *   myMod.component('myComp', {
	   *     template: '<div>My name is {{$ctrl.name}}</div>',
	   *     controller: function() {
	   *       this.name = 'shahar';
	   *     }
	   *   });
	   *
	   *   myMod.component('myComp', {
	   *     template: '<div>My name is {{$ctrl.name}}</div>',
	   *     bindings: {name: '@'}
	   *   });
	   *
	   *   myMod.component('myComp', {
	   *     templateUrl: 'views/my-comp.html',
	   *     controller: 'MyCtrl',
	   *     controllerAs: 'ctrl',
	   *     bindings: {name: '@'}
	   *   });
	   *
	   * ```
	   * For more examples, and an in-depth guide, see the {@link guide/component component guide}.
	   *
	   * <br />
	   * See also {@link ng.$compileProvider#directive $compileProvider.directive()}.
	   */this.component=function registerComponent(name,options){if(!isString(name)){forEach(name,reverseParams(bind(this,registerComponent)));return this;}var controller=options.controller||function(){};function factory($injector){function makeInjectable(fn){if(isFunction(fn)||isArray(fn)){return(/** @this */function(tElement,tAttrs){return $injector.invoke(fn,this,{$element:tElement,$attrs:tAttrs});});}else{return fn;}}var template=!options.template&&!options.templateUrl?'':options.template;var ddo={controller:controller,controllerAs:identifierForController(options.controller)||options.controllerAs||'$ctrl',template:makeInjectable(template),templateUrl:makeInjectable(options.templateUrl),transclude:options.transclude,scope:{},bindToController:options.bindings||{},restrict:'E',require:options.require};// Copy annotations (starting with $) over to the DDO
	forEach(options,function(val,key){if(key.charAt(0)==='$')ddo[key]=val;});return ddo;}// TODO(pete) remove the following `forEach` before we release 1.6.0
	// The component-router@0.2.0 looks for the annotations on the controller constructor
	// Nothing in AngularJS looks for annotations on the factory function but we can't remove
	// it from 1.5.x yet.
	// Copy any annotation properties (starting with $) over to the factory and controller constructor functions
	// These could be used by libraries such as the new component router
	forEach(options,function(val,key){if(key.charAt(0)==='$'){factory[key]=val;// Don't try to copy over annotations to named controller
	if(isFunction(controller))controller[key]=val;}});factory.$inject=['$injector'];return this.directive(name,factory);};/**
	   * @ngdoc method
	   * @name $compileProvider#aHrefSanitizationTrustedUrlList
	   * @kind function
	   *
	   * @description
	   * Retrieves or overrides the default regular expression that is used for determining trusted safe
	   * urls during a[href] sanitization.
	   *
	   * The sanitization is a security measure aimed at preventing XSS attacks via html links.
	   *
	   * Any url about to be assigned to a[href] via data-binding is first normalized and turned into
	   * an absolute url. Afterwards, the url is matched against the `aHrefSanitizationTrustedUrlList`
	   * regular expression. If a match is found, the original url is written into the dom. Otherwise,
	   * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.
	   *
	   * @param {RegExp=} regexp New regexp to trust urls with.
	   * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for
	   *    chaining otherwise.
	   */this.aHrefSanitizationTrustedUrlList=function(regexp){if(isDefined(regexp)){$$sanitizeUriProvider.aHrefSanitizationTrustedUrlList(regexp);return this;}else{return $$sanitizeUriProvider.aHrefSanitizationTrustedUrlList();}};/**
	   * @ngdoc method
	   * @name $compileProvider#aHrefSanitizationWhitelist
	   * @kind function
	   *
	   * @deprecated
	   * sinceVersion="1.8.1"
	   *
	   * This method is deprecated. Use {@link $compileProvider#aHrefSanitizationTrustedUrlList
	   * aHrefSanitizationTrustedUrlList} instead.
	   */Object.defineProperty(this,'aHrefSanitizationWhitelist',{get:function get(){return this.aHrefSanitizationTrustedUrlList;},set:function set(value){this.aHrefSanitizationTrustedUrlList=value;}});/**
	   * @ngdoc method
	   * @name $compileProvider#imgSrcSanitizationTrustedUrlList
	   * @kind function
	   *
	   * @description
	   * Retrieves or overrides the default regular expression that is used for determining trusted safe
	   * urls during img[src] sanitization.
	   *
	   * The sanitization is a security measure aimed at prevent XSS attacks via html links.
	   *
	   * Any url about to be assigned to img[src] via data-binding is first normalized and turned into
	   * an absolute url. Afterwards, the url is matched against the `imgSrcSanitizationTrustedUrlList`
	   * regular expression. If a match is found, the original url is written into the dom. Otherwise,
	   * the absolute url is prefixed with `'unsafe:'` string and only then is it written into the DOM.
	   *
	   * @param {RegExp=} regexp New regexp to trust urls with.
	   * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for
	   *    chaining otherwise.
	   */this.imgSrcSanitizationTrustedUrlList=function(regexp){if(isDefined(regexp)){$$sanitizeUriProvider.imgSrcSanitizationTrustedUrlList(regexp);return this;}else{return $$sanitizeUriProvider.imgSrcSanitizationTrustedUrlList();}};/**
	   * @ngdoc method
	   * @name $compileProvider#imgSrcSanitizationWhitelist
	   * @kind function
	   *
	   * @deprecated
	   * sinceVersion="1.8.1"
	   *
	   * This method is deprecated. Use {@link $compileProvider#imgSrcSanitizationTrustedUrlList
	   * imgSrcSanitizationTrustedUrlList} instead.
	   */Object.defineProperty(this,'imgSrcSanitizationWhitelist',{get:function get(){return this.imgSrcSanitizationTrustedUrlList;},set:function set(value){this.imgSrcSanitizationTrustedUrlList=value;}});/**
	   * @ngdoc method
	   * @name  $compileProvider#debugInfoEnabled
	   *
	   * @param {boolean=} enabled update the debugInfoEnabled state if provided, otherwise just return the
	   * current debugInfoEnabled state
	   * @returns {*} current value if used as getter or itself (chaining) if used as setter
	   *
	   * @kind function
	   *
	   * @description
	   * Call this method to enable/disable various debug runtime information in the compiler such as adding
	   * binding information and a reference to the current scope on to DOM elements.
	   * If enabled, the compiler will add the following to DOM elements that have been bound to the scope
	   * * `ng-binding` CSS class
	   * * `ng-scope` and `ng-isolated-scope` CSS classes
	   * * `$binding` data property containing an array of the binding expressions
	   * * Data properties used by the {@link angular.element#methods `scope()`/`isolateScope()` methods} to return
	   *   the element's scope.
	   * * Placeholder comments will contain information about what directive and binding caused the placeholder.
	   *   E.g. `<!-- ngIf: shouldShow() -->`.
	   *
	   * You may want to disable this in production for a significant performance boost. See
	   * {@link guide/production#disabling-debug-data Disabling Debug Data} for more.
	   *
	   * The default value is true.
	   */var debugInfoEnabled=true;this.debugInfoEnabled=function(enabled){if(isDefined(enabled)){debugInfoEnabled=enabled;return this;}return debugInfoEnabled;};/**
	   * @ngdoc method
	   * @name  $compileProvider#strictComponentBindingsEnabled
	   *
	   * @param {boolean=} enabled update the strictComponentBindingsEnabled state if provided,
	   * otherwise return the current strictComponentBindingsEnabled state.
	   * @returns {*} current value if used as getter or itself (chaining) if used as setter
	   *
	   * @kind function
	   *
	   * @description
	   * Call this method to enable / disable the strict component bindings check. If enabled, the
	   * compiler will enforce that all scope / controller bindings of a
	   * {@link $compileProvider#directive directive} / {@link $compileProvider#component component}
	   * that are not set as optional with `?`, must be provided when the directive is instantiated.
	   * If not provided, the compiler will throw the
	   * {@link error/$compile/missingattr $compile:missingattr error}.
	   *
	   * The default value is false.
	   */var strictComponentBindingsEnabled=false;this.strictComponentBindingsEnabled=function(enabled){if(isDefined(enabled)){strictComponentBindingsEnabled=enabled;return this;}return strictComponentBindingsEnabled;};var TTL=10;/**
	   * @ngdoc method
	   * @name $compileProvider#onChangesTtl
	   * @description
	   *
	   * Sets the number of times `$onChanges` hooks can trigger new changes before giving up and
	   * assuming that the model is unstable.
	   *
	   * The current default is 10 iterations.
	   *
	   * In complex applications it's possible that dependencies between `$onChanges` hooks and bindings will result
	   * in several iterations of calls to these hooks. However if an application needs more than the default 10
	   * iterations to stabilize then you should investigate what is causing the model to continuously change during
	   * the `$onChanges` hook execution.
	   *
	   * Increasing the TTL could have performance implications, so you should not change it without proper justification.
	   *
	   * @param {number} limit The number of `$onChanges` hook iterations.
	   * @returns {number|object} the current limit (or `this` if called as a setter for chaining)
	   */this.onChangesTtl=function(value){if(arguments.length){TTL=value;return this;}return TTL;};var commentDirectivesEnabledConfig=true;/**
	   * @ngdoc method
	   * @name $compileProvider#commentDirectivesEnabled
	   * @description
	   *
	   * It indicates to the compiler
	   * whether or not directives on comments should be compiled.
	   * Defaults to `true`.
	   *
	   * Calling this function with false disables the compilation of directives
	   * on comments for the whole application.
	   * This results in a compilation performance gain,
	   * as the compiler doesn't have to check comments when looking for directives.
	   * This should however only be used if you are sure that no comment directives are used in
	   * the application (including any 3rd party directives).
	   *
	   * @param {boolean} enabled `false` if the compiler may ignore directives on comments
	   * @returns {boolean|object} the current value (or `this` if called as a setter for chaining)
	   */this.commentDirectivesEnabled=function(value){if(arguments.length){commentDirectivesEnabledConfig=value;return this;}return commentDirectivesEnabledConfig;};var cssClassDirectivesEnabledConfig=true;/**
	   * @ngdoc method
	   * @name $compileProvider#cssClassDirectivesEnabled
	   * @description
	   *
	   * It indicates to the compiler
	   * whether or not directives on element classes should be compiled.
	   * Defaults to `true`.
	   *
	   * Calling this function with false disables the compilation of directives
	   * on element classes for the whole application.
	   * This results in a compilation performance gain,
	   * as the compiler doesn't have to check element classes when looking for directives.
	   * This should however only be used if you are sure that no class directives are used in
	   * the application (including any 3rd party directives).
	   *
	   * @param {boolean} enabled `false` if the compiler may ignore directives on element classes
	   * @returns {boolean|object} the current value (or `this` if called as a setter for chaining)
	   */this.cssClassDirectivesEnabled=function(value){if(arguments.length){cssClassDirectivesEnabledConfig=value;return this;}return cssClassDirectivesEnabledConfig;};/**
	   * The security context of DOM Properties.
	   * @private
	   */var PROP_CONTEXTS=createMap();/**
	   * @ngdoc method
	   * @name $compileProvider#addPropertySecurityContext
	   * @description
	   *
	   * Defines the security context for DOM properties bound by ng-prop-*.
	   *
	   * @param {string} elementName The element name or '*' to match any element.
	   * @param {string} propertyName The DOM property name.
	   * @param {string} ctx The {@link $sce} security context in which this value is safe for use, e.g. `$sce.URL`
	   * @returns {object} `this` for chaining
	   */this.addPropertySecurityContext=function(elementName,propertyName,ctx){var key=elementName.toLowerCase()+'|'+propertyName.toLowerCase();if(key in PROP_CONTEXTS&&PROP_CONTEXTS[key]!==ctx){throw $compileMinErr('ctxoverride','Property context \'{0}.{1}\' already set to \'{2}\', cannot override to \'{3}\'.',elementName,propertyName,PROP_CONTEXTS[key],ctx);}PROP_CONTEXTS[key]=ctx;return this;};/* Default property contexts.
	   *
	   * Copy of https://github.com/angular/angular/blob/6.0.6/packages/compiler/src/schema/dom_security_schema.ts#L31-L58
	   * Changing:
	   * - SecurityContext.* => SCE_CONTEXTS/$sce.*
	   * - STYLE => CSS
	   * - various URL => MEDIA_URL
	   * - *|formAction, form|action URL => RESOURCE_URL (like the attribute)
	   */(function registerNativePropertyContexts(){function registerContext(ctx,values){forEach(values,function(v){PROP_CONTEXTS[v.toLowerCase()]=ctx;});}registerContext(SCE_CONTEXTS.HTML,['iframe|srcdoc','*|innerHTML','*|outerHTML']);registerContext(SCE_CONTEXTS.CSS,['*|style']);registerContext(SCE_CONTEXTS.URL,['area|href','area|ping','a|href','a|ping','blockquote|cite','body|background','del|cite','input|src','ins|cite','q|cite']);registerContext(SCE_CONTEXTS.MEDIA_URL,['audio|src','img|src','img|srcset','source|src','source|srcset','track|src','video|src','video|poster']);registerContext(SCE_CONTEXTS.RESOURCE_URL,['*|formAction','applet|code','applet|codebase','base|href','embed|src','frame|src','form|action','head|profile','html|manifest','iframe|src','link|href','media|src','object|codebase','object|data','script|src']);})();this.$get=['$injector','$interpolate','$exceptionHandler','$templateRequest','$parse','$controller','$rootScope','$sce','$animate',function($injector,$interpolate,$exceptionHandler,$templateRequest,$parse,$controller,$rootScope,$sce,$animate){var SIMPLE_ATTR_NAME=/^\w/;var specialAttrHolder=window.document.createElement('div');var commentDirectivesEnabled=commentDirectivesEnabledConfig;var cssClassDirectivesEnabled=cssClassDirectivesEnabledConfig;var onChangesTtl=TTL;// The onChanges hooks should all be run together in a single digest
	// When changes occur, the call to trigger their hooks will be added to this queue
	var onChangesQueue;// This function is called in a $$postDigest to trigger all the onChanges hooks in a single digest
	function flushOnChangesQueue(){try{if(! --onChangesTtl){// We have hit the TTL limit so reset everything
	onChangesQueue=undefined;throw $compileMinErr('infchng','{0} $onChanges() iterations reached. Aborting!\n',TTL);}// We must run this hook in an apply since the $$postDigest runs outside apply
	$rootScope.$apply(function(){for(var i=0,ii=onChangesQueue.length;i<ii;++i){try{onChangesQueue[i]();}catch(e){$exceptionHandler(e);}}// Reset the queue to trigger a new schedule next time there is a change
	onChangesQueue=undefined;});}finally{onChangesTtl++;}}function sanitizeSrcset(value,invokeType){if(!value){return value;}if(!isString(value)){throw $compileMinErr('srcset','Can\'t pass trusted values to `{0}`: "{1}"',invokeType,value.toString());}// Such values are a bit too complex to handle automatically inside $sce.
	// Instead, we sanitize each of the URIs individually, which works, even dynamically.
	// It's not possible to work around this using `$sce.trustAsMediaUrl`.
	// If you want to programmatically set explicitly trusted unsafe URLs, you should use
	// `$sce.trustAsHtml` on the whole `img` tag and inject it into the DOM using the
	// `ng-bind-html` directive.
	var result='';// first check if there are spaces because it's not the same pattern
	var trimmedSrcset=trim(value);//                (   999x   ,|   999w   ,|   ,|,   )
	var srcPattern=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/;var pattern=/\s/.test(trimmedSrcset)?srcPattern:/(,)/;// split srcset into tuple of uri and descriptor except for the last item
	var rawUris=trimmedSrcset.split(pattern);// for each tuples
	var nbrUrisWith2parts=Math.floor(rawUris.length/2);for(var i=0;i<nbrUrisWith2parts;i++){var innerIdx=i*2;// sanitize the uri
	result+=$sce.getTrustedMediaUrl(trim(rawUris[innerIdx]));// add the descriptor
	result+=' '+trim(rawUris[innerIdx+1]);}// split the last item into uri and descriptor
	var lastTuple=trim(rawUris[i*2]).split(/\s/);// sanitize the last uri
	result+=$sce.getTrustedMediaUrl(trim(lastTuple[0]));// and add the last descriptor if any
	if(lastTuple.length===2){result+=' '+trim(lastTuple[1]);}return result;}function Attributes(element,attributesToCopy){if(attributesToCopy){var keys=Object.keys(attributesToCopy);var i,l,key;for(i=0,l=keys.length;i<l;i++){key=keys[i];this[key]=attributesToCopy[key];}}else{this.$attr={};}this.$$element=element;}Attributes.prototype={/**
	       * @ngdoc method
	       * @name $compile.directive.Attributes#$normalize
	       * @kind function
	       *
	       * @description
	       * Converts an attribute name (e.g. dash/colon/underscore-delimited string, optionally prefixed with `x-` or
	       * `data-`) to its normalized, camelCase form.
	       *
	       * Also there is special case for Moz prefix starting with upper case letter.
	       *
	       * For further information check out the guide on {@link guide/directive#matching-directives Matching Directives}
	       *
	       * @param {string} name Name to normalize
	       */$normalize:directiveNormalize,/**
	       * @ngdoc method
	       * @name $compile.directive.Attributes#$addClass
	       * @kind function
	       *
	       * @description
	       * Adds the CSS class value specified by the classVal parameter to the element. If animations
	       * are enabled then an animation will be triggered for the class addition.
	       *
	       * @param {string} classVal The className value that will be added to the element
	       */$addClass:function $addClass(classVal){if(classVal&&classVal.length>0){$animate.addClass(this.$$element,classVal);}},/**
	       * @ngdoc method
	       * @name $compile.directive.Attributes#$removeClass
	       * @kind function
	       *
	       * @description
	       * Removes the CSS class value specified by the classVal parameter from the element. If
	       * animations are enabled then an animation will be triggered for the class removal.
	       *
	       * @param {string} classVal The className value that will be removed from the element
	       */$removeClass:function $removeClass(classVal){if(classVal&&classVal.length>0){$animate.removeClass(this.$$element,classVal);}},/**
	       * @ngdoc method
	       * @name $compile.directive.Attributes#$updateClass
	       * @kind function
	       *
	       * @description
	       * Adds and removes the appropriate CSS class values to the element based on the difference
	       * between the new and old CSS class values (specified as newClasses and oldClasses).
	       *
	       * @param {string} newClasses The current CSS className value
	       * @param {string} oldClasses The former CSS className value
	       */$updateClass:function $updateClass(newClasses,oldClasses){var toAdd=tokenDifference(newClasses,oldClasses);if(toAdd&&toAdd.length){$animate.addClass(this.$$element,toAdd);}var toRemove=tokenDifference(oldClasses,newClasses);if(toRemove&&toRemove.length){$animate.removeClass(this.$$element,toRemove);}},/**
	       * Set a normalized attribute on the element in a way such that all directives
	       * can share the attribute. This function properly handles boolean attributes.
	       * @param {string} key Normalized key. (ie ngAttribute)
	       * @param {string|boolean} value The value to set. If `null` attribute will be deleted.
	       * @param {boolean=} writeAttr If false, does not write the value to DOM element attribute.
	       *     Defaults to true.
	       * @param {string=} attrName Optional none normalized name. Defaults to key.
	       */$set:function $set(key,value,writeAttr,attrName){// TODO: decide whether or not to throw an error if "class"
	// is set through this function since it may cause $updateClass to
	// become unstable.
	var node=this.$$element[0],booleanKey=getBooleanAttrName(node,key),aliasedKey=getAliasedAttrName(key),observer=key,nodeName;if(booleanKey){this.$$element.prop(key,value);attrName=booleanKey;}else if(aliasedKey){this[aliasedKey]=value;observer=aliasedKey;}this[key]=value;// translate normalized key to actual key
	if(attrName){this.$attr[key]=attrName;}else{attrName=this.$attr[key];if(!attrName){this.$attr[key]=attrName=snake_case(key,'-');}}nodeName=nodeName_(this.$$element);// Sanitize img[srcset] values.
	if(nodeName==='img'&&key==='srcset'){this[key]=value=sanitizeSrcset(value,'$set(\'srcset\', value)');}if(writeAttr!==false){if(value===null||isUndefined(value)){this.$$element.removeAttr(attrName);}else{if(SIMPLE_ATTR_NAME.test(attrName)){// jQuery skips special boolean attrs treatment in XML nodes for
	// historical reasons and hence AngularJS cannot freely call
	// `.attr(attrName, false) with such attributes. To avoid issues
	// in XHTML, call `removeAttr` in such cases instead.
	// See https://github.com/jquery/jquery/issues/4249
	if(booleanKey&&value===false){this.$$element.removeAttr(attrName);}else{this.$$element.attr(attrName,value);}}else{setSpecialAttr(this.$$element[0],attrName,value);}}}// fire observers
	var $$observers=this.$$observers;if($$observers){forEach($$observers[observer],function(fn){try{fn(value);}catch(e){$exceptionHandler(e);}});}},/**
	       * @ngdoc method
	       * @name $compile.directive.Attributes#$observe
	       * @kind function
	       *
	       * @description
	       * Observes an interpolated attribute.
	       *
	       * The observer function will be invoked once during the next `$digest` following
	       * compilation. The observer is then invoked whenever the interpolated value
	       * changes.
	       *
	       * @param {string} key Normalized key. (ie ngAttribute) .
	       * @param {function(interpolatedValue)} fn Function that will be called whenever
	                the interpolated value of the attribute changes.
	       *        See the {@link guide/interpolation#how-text-and-attribute-bindings-work Interpolation
	       *        guide} for more info.
	       * @returns {function()} Returns a deregistration function for this observer.
	       */$observe:function $observe(key,fn){var attrs=this,$$observers=attrs.$$observers||(attrs.$$observers=createMap()),listeners=$$observers[key]||($$observers[key]=[]);listeners.push(fn);$rootScope.$evalAsync(function(){if(!listeners.$$inter&&attrs.hasOwnProperty(key)&&!isUndefined(attrs[key])){// no one registered attribute interpolation function, so lets call it manually
	fn(attrs[key]);}});return function(){arrayRemove(listeners,fn);};}};function setSpecialAttr(element,attrName,value){// Attributes names that do not start with letters (such as `(click)`) cannot be set using `setAttribute`
	// so we have to jump through some hoops to get such an attribute
	// https://github.com/angular/angular.js/pull/13318
	specialAttrHolder.innerHTML='<span '+attrName+'>';var attributes=specialAttrHolder.firstChild.attributes;var attribute=attributes[0];// We have to remove the attribute from its container element before we can add it to the destination element
	attributes.removeNamedItem(attribute.name);attribute.value=value;element.attributes.setNamedItem(attribute);}function safeAddClass($element,className){try{$element.addClass(className);}catch(e){// ignore, since it means that we are trying to set class on
	// SVG element, where class name is read-only.
	}}var startSymbol=$interpolate.startSymbol(),endSymbol=$interpolate.endSymbol(),denormalizeTemplate=startSymbol==='{{'&&endSymbol==='}}'?identity:function denormalizeTemplate(template){return template.replace(/\{\{/g,startSymbol).replace(/}}/g,endSymbol);},NG_PREFIX_BINDING=/^ng(Attr|Prop|On)([A-Z].*)$/;var MULTI_ELEMENT_DIR_RE=/^(.+)Start$/;compile.$$addBindingInfo=debugInfoEnabled?function $$addBindingInfo($element,binding){var bindings=$element.data('$binding')||[];if(isArray(binding)){bindings=bindings.concat(binding);}else{bindings.push(binding);}$element.data('$binding',bindings);}:noop;compile.$$addBindingClass=debugInfoEnabled?function $$addBindingClass($element){safeAddClass($element,'ng-binding');}:noop;compile.$$addScopeInfo=debugInfoEnabled?function $$addScopeInfo($element,scope,isolated,noTemplate){var dataName=isolated?noTemplate?'$isolateScopeNoTemplate':'$isolateScope':'$scope';$element.data(dataName,scope);}:noop;compile.$$addScopeClass=debugInfoEnabled?function $$addScopeClass($element,isolated){safeAddClass($element,isolated?'ng-isolate-scope':'ng-scope');}:noop;compile.$$createComment=function(directiveName,comment){var content='';if(debugInfoEnabled){content=' '+(directiveName||'')+': ';if(comment)content+=comment+' ';}return window.document.createComment(content);};return compile;//================================
	function compile($compileNodes,transcludeFn,maxPriority,ignoreDirective,previousCompileContext){if(!($compileNodes instanceof jqLite)){// jquery always rewraps, whereas we need to preserve the original selector so that we can
	// modify it.
	$compileNodes=jqLite($compileNodes);}var compositeLinkFn=compileNodes($compileNodes,transcludeFn,$compileNodes,maxPriority,ignoreDirective,previousCompileContext);compile.$$addScopeClass($compileNodes);var namespace=null;return function publicLinkFn(scope,cloneConnectFn,options){if(!$compileNodes){throw $compileMinErr('multilink','This element has already been linked.');}assertArg(scope,'scope');if(previousCompileContext&&previousCompileContext.needsNewScope){// A parent directive did a replace and a directive on this element asked
	// for transclusion, which caused us to lose a layer of element on which
	// we could hold the new transclusion scope, so we will create it manually
	// here.
	scope=scope.$parent.$new();}options=options||{};var parentBoundTranscludeFn=options.parentBoundTranscludeFn,transcludeControllers=options.transcludeControllers,futureParentElement=options.futureParentElement;// When `parentBoundTranscludeFn` is passed, it is a
	// `controllersBoundTransclude` function (it was previously passed
	// as `transclude` to directive.link) so we must unwrap it to get
	// its `boundTranscludeFn`
	if(parentBoundTranscludeFn&&parentBoundTranscludeFn.$$boundTransclude){parentBoundTranscludeFn=parentBoundTranscludeFn.$$boundTransclude;}if(!namespace){namespace=detectNamespaceForChildElements(futureParentElement);}var $linkNode;if(namespace!=='html'){// When using a directive with replace:true and templateUrl the $compileNodes
	// (or a child element inside of them)
	// might change, so we need to recreate the namespace adapted compileNodes
	// for call to the link function.
	// Note: This will already clone the nodes...
	$linkNode=jqLite(wrapTemplate(namespace,jqLite('<div></div>').append($compileNodes).html()));}else if(cloneConnectFn){// important!!: we must call our jqLite.clone() since the jQuery one is trying to be smart
	// and sometimes changes the structure of the DOM.
	$linkNode=JQLitePrototype.clone.call($compileNodes);}else{$linkNode=$compileNodes;}if(transcludeControllers){for(var controllerName in transcludeControllers){$linkNode.data('$'+controllerName+'Controller',transcludeControllers[controllerName].instance);}}compile.$$addScopeInfo($linkNode,scope);if(cloneConnectFn)cloneConnectFn($linkNode,scope);if(compositeLinkFn)compositeLinkFn(scope,$linkNode,$linkNode,parentBoundTranscludeFn);if(!cloneConnectFn){$compileNodes=compositeLinkFn=null;}return $linkNode;};}function detectNamespaceForChildElements(parentElement){// TODO: Make this detect MathML as well...
	var node=parentElement&&parentElement[0];if(!node){return'html';}else{return nodeName_(node)!=='foreignobject'&&toString.call(node).match(/SVG/)?'svg':'html';}}/**
	     * Compile function matches each node in nodeList against the directives. Once all directives
	     * for a particular node are collected their compile functions are executed. The compile
	     * functions return values - the linking functions - are combined into a composite linking
	     * function, which is the a linking function for the node.
	     *
	     * @param {NodeList} nodeList an array of nodes or NodeList to compile
	     * @param {function(angular.Scope, cloneAttachFn=)} transcludeFn A linking function, where the
	     *        scope argument is auto-generated to the new child of the transcluded parent scope.
	     * @param {DOMElement=} $rootElement If the nodeList is the root of the compilation tree then
	     *        the rootElement must be set the jqLite collection of the compile root. This is
	     *        needed so that the jqLite collection items can be replaced with widgets.
	     * @param {number=} maxPriority Max directive priority.
	     * @returns {Function} A composite linking function of all of the matched directives or null.
	     */function compileNodes(nodeList,transcludeFn,$rootElement,maxPriority,ignoreDirective,previousCompileContext){var linkFns=[],// `nodeList` can be either an element's `.childNodes` (live NodeList)
	// or a jqLite/jQuery collection or an array
	notLiveList=isArray(nodeList)||nodeList instanceof jqLite,attrs,directives,nodeLinkFn,childNodes,childLinkFn,linkFnFound,nodeLinkFnFound;for(var i=0;i<nodeList.length;i++){attrs=new Attributes();// Support: IE 11 only
	// Workaround for #11781 and #14924
	if(msie===11){mergeConsecutiveTextNodes(nodeList,i,notLiveList);}// We must always refer to `nodeList[i]` hereafter,
	// since the nodes can be replaced underneath us.
	directives=collectDirectives(nodeList[i],[],attrs,i===0?maxPriority:undefined,ignoreDirective);nodeLinkFn=directives.length?applyDirectivesToNode(directives,nodeList[i],attrs,transcludeFn,$rootElement,null,[],[],previousCompileContext):null;if(nodeLinkFn&&nodeLinkFn.scope){compile.$$addScopeClass(attrs.$$element);}childLinkFn=nodeLinkFn&&nodeLinkFn.terminal||!(childNodes=nodeList[i].childNodes)||!childNodes.length?null:compileNodes(childNodes,nodeLinkFn?(nodeLinkFn.transcludeOnThisElement||!nodeLinkFn.templateOnThisElement)&&nodeLinkFn.transclude:transcludeFn);if(nodeLinkFn||childLinkFn){linkFns.push(i,nodeLinkFn,childLinkFn);linkFnFound=true;nodeLinkFnFound=nodeLinkFnFound||nodeLinkFn;}//use the previous context only for the first element in the virtual group
	previousCompileContext=null;}// return a linking function if we have found anything, null otherwise
	return linkFnFound?compositeLinkFn:null;function compositeLinkFn(scope,nodeList,$rootElement,parentBoundTranscludeFn){var nodeLinkFn,childLinkFn,node,childScope,i,ii,idx,childBoundTranscludeFn;var stableNodeList;if(nodeLinkFnFound){// copy nodeList so that if a nodeLinkFn removes or adds an element at this DOM level our
	// offsets don't get screwed up
	var nodeListLength=nodeList.length;stableNodeList=new Array(nodeListLength);// create a sparse array by only copying the elements which have a linkFn
	for(i=0;i<linkFns.length;i+=3){idx=linkFns[i];stableNodeList[idx]=nodeList[idx];}}else{stableNodeList=nodeList;}for(i=0,ii=linkFns.length;i<ii;){node=stableNodeList[linkFns[i++]];nodeLinkFn=linkFns[i++];childLinkFn=linkFns[i++];if(nodeLinkFn){if(nodeLinkFn.scope){childScope=scope.$new();compile.$$addScopeInfo(jqLite(node),childScope);}else{childScope=scope;}if(nodeLinkFn.transcludeOnThisElement){childBoundTranscludeFn=createBoundTranscludeFn(scope,nodeLinkFn.transclude,parentBoundTranscludeFn);}else if(!nodeLinkFn.templateOnThisElement&&parentBoundTranscludeFn){childBoundTranscludeFn=parentBoundTranscludeFn;}else if(!parentBoundTranscludeFn&&transcludeFn){childBoundTranscludeFn=createBoundTranscludeFn(scope,transcludeFn);}else{childBoundTranscludeFn=null;}nodeLinkFn(childLinkFn,childScope,node,$rootElement,childBoundTranscludeFn);}else if(childLinkFn){childLinkFn(scope,node.childNodes,undefined,parentBoundTranscludeFn);}}}}function mergeConsecutiveTextNodes(nodeList,idx,notLiveList){var node=nodeList[idx];var parent=node.parentNode;var sibling;if(node.nodeType!==NODE_TYPE_TEXT){return;}while(true){sibling=parent?node.nextSibling:nodeList[idx+1];if(!sibling||sibling.nodeType!==NODE_TYPE_TEXT){break;}node.nodeValue=node.nodeValue+sibling.nodeValue;if(sibling.parentNode){sibling.parentNode.removeChild(sibling);}if(notLiveList&&sibling===nodeList[idx+1]){nodeList.splice(idx+1,1);}}}function createBoundTranscludeFn(scope,transcludeFn,previousBoundTranscludeFn){function boundTranscludeFn(transcludedScope,cloneFn,controllers,futureParentElement,containingScope){if(!transcludedScope){transcludedScope=scope.$new(false,containingScope);transcludedScope.$$transcluded=true;}return transcludeFn(transcludedScope,cloneFn,{parentBoundTranscludeFn:previousBoundTranscludeFn,transcludeControllers:controllers,futureParentElement:futureParentElement});}// We need  to attach the transclusion slots onto the `boundTranscludeFn`
	// so that they are available inside the `controllersBoundTransclude` function
	var boundSlots=boundTranscludeFn.$$slots=createMap();for(var slotName in transcludeFn.$$slots){if(transcludeFn.$$slots[slotName]){boundSlots[slotName]=createBoundTranscludeFn(scope,transcludeFn.$$slots[slotName],previousBoundTranscludeFn);}else{boundSlots[slotName]=null;}}return boundTranscludeFn;}/**
	     * Looks for directives on the given node and adds them to the directive collection which is
	     * sorted.
	     *
	     * @param node Node to search.
	     * @param directives An array to which the directives are added to. This array is sorted before
	     *        the function returns.
	     * @param attrs The shared attrs object which is used to populate the normalized attributes.
	     * @param {number=} maxPriority Max directive priority.
	     */function collectDirectives(node,directives,attrs,maxPriority,ignoreDirective){var nodeType=node.nodeType,attrsMap=attrs.$attr,match,nodeName,className;switch(nodeType){case NODE_TYPE_ELEMENT:/* Element */nodeName=nodeName_(node);// use the node name: <directive>
	addDirective(directives,directiveNormalize(nodeName),'E',maxPriority,ignoreDirective);// iterate over the attributes
	for(var attr,name,nName,value,ngPrefixMatch,nAttrs=node.attributes,j=0,jj=nAttrs&&nAttrs.length;j<jj;j++){var attrStartName=false;var attrEndName=false;var isNgAttr=false,isNgProp=false,isNgEvent=false;var multiElementMatch;attr=nAttrs[j];name=attr.name;value=attr.value;nName=directiveNormalize(name.toLowerCase());// Support ng-attr-*, ng-prop-* and ng-on-*
	if(ngPrefixMatch=nName.match(NG_PREFIX_BINDING)){isNgAttr=ngPrefixMatch[1]==='Attr';isNgProp=ngPrefixMatch[1]==='Prop';isNgEvent=ngPrefixMatch[1]==='On';// Normalize the non-prefixed name
	name=name.replace(PREFIX_REGEXP,'').toLowerCase().substr(4+ngPrefixMatch[1].length).replace(/_(.)/g,function(match,letter){return letter.toUpperCase();});// Support *-start / *-end multi element directives
	}else if((multiElementMatch=nName.match(MULTI_ELEMENT_DIR_RE))&&directiveIsMultiElement(multiElementMatch[1])){attrStartName=name;attrEndName=name.substr(0,name.length-5)+'end';name=name.substr(0,name.length-6);}if(isNgProp||isNgEvent){attrs[nName]=value;attrsMap[nName]=attr.name;if(isNgProp){addPropertyDirective(node,directives,nName,name);}else{addEventDirective(directives,nName,name);}}else{// Update nName for cases where a prefix was removed
	// NOTE: the .toLowerCase() is unnecessary and causes https://github.com/angular/angular.js/issues/16624 for ng-attr-*
	nName=directiveNormalize(name.toLowerCase());attrsMap[nName]=name;if(isNgAttr||!attrs.hasOwnProperty(nName)){attrs[nName]=value;if(getBooleanAttrName(node,nName)){attrs[nName]=true;// presence means true
	}}addAttrInterpolateDirective(node,directives,value,nName,isNgAttr);addDirective(directives,nName,'A',maxPriority,ignoreDirective,attrStartName,attrEndName);}}if(nodeName==='input'&&node.getAttribute('type')==='hidden'){// Hidden input elements can have strange behaviour when navigating back to the page
	// This tells the browser not to try to cache and reinstate previous values
	node.setAttribute('autocomplete','off');}// use class as directive
	if(!cssClassDirectivesEnabled)break;className=node.className;if(isObject(className)){// Maybe SVGAnimatedString
	className=className.animVal;}if(isString(className)&&className!==''){while(match=CLASS_DIRECTIVE_REGEXP.exec(className)){nName=directiveNormalize(match[2]);if(addDirective(directives,nName,'C',maxPriority,ignoreDirective)){attrs[nName]=trim(match[3]);}className=className.substr(match.index+match[0].length);}}break;case NODE_TYPE_TEXT:/* Text Node */addTextInterpolateDirective(directives,node.nodeValue);break;case NODE_TYPE_COMMENT:/* Comment */if(!commentDirectivesEnabled)break;collectCommentDirectives(node,directives,attrs,maxPriority,ignoreDirective);break;}directives.sort(byPriority);return directives;}function collectCommentDirectives(node,directives,attrs,maxPriority,ignoreDirective){// function created because of performance, try/catch disables
	// the optimization of the whole function #14848
	try{var match=COMMENT_DIRECTIVE_REGEXP.exec(node.nodeValue);if(match){var nName=directiveNormalize(match[1]);if(addDirective(directives,nName,'M',maxPriority,ignoreDirective)){attrs[nName]=trim(match[2]);}}}catch(e){// turns out that under some circumstances IE9 throws errors when one attempts to read
	// comment's node value.
	// Just ignore it and continue. (Can't seem to reproduce in test case.)
	}}/**
	     * Given a node with a directive-start it collects all of the siblings until it finds
	     * directive-end.
	     * @param node
	     * @param attrStart
	     * @param attrEnd
	     * @returns {*}
	     */function groupScan(node,attrStart,attrEnd){var nodes=[];var depth=0;if(attrStart&&node.hasAttribute&&node.hasAttribute(attrStart)){do{if(!node){throw $compileMinErr('uterdir','Unterminated attribute, found \'{0}\' but no matching \'{1}\' found.',attrStart,attrEnd);}if(node.nodeType===NODE_TYPE_ELEMENT){if(node.hasAttribute(attrStart))depth++;if(node.hasAttribute(attrEnd))depth--;}nodes.push(node);node=node.nextSibling;}while(depth>0);}else{nodes.push(node);}return jqLite(nodes);}/**
	     * Wrapper for linking function which converts normal linking function into a grouped
	     * linking function.
	     * @param linkFn
	     * @param attrStart
	     * @param attrEnd
	     * @returns {Function}
	     */function groupElementsLinkFnWrapper(linkFn,attrStart,attrEnd){return function groupedElementsLink(scope,element,attrs,controllers,transcludeFn){element=groupScan(element[0],attrStart,attrEnd);return linkFn(scope,element,attrs,controllers,transcludeFn);};}/**
	     * A function generator that is used to support both eager and lazy compilation
	     * linking function.
	     * @param eager
	     * @param $compileNodes
	     * @param transcludeFn
	     * @param maxPriority
	     * @param ignoreDirective
	     * @param previousCompileContext
	     * @returns {Function}
	     */function compilationGenerator(eager,$compileNodes,transcludeFn,maxPriority,ignoreDirective,previousCompileContext){var compiled;if(eager){return compile($compileNodes,transcludeFn,maxPriority,ignoreDirective,previousCompileContext);}return(/** @this */function lazyCompilation(){if(!compiled){compiled=compile($compileNodes,transcludeFn,maxPriority,ignoreDirective,previousCompileContext);// Null out all of these references in order to make them eligible for garbage collection
	// since this is a potentially long lived closure
	$compileNodes=transcludeFn=previousCompileContext=null;}return compiled.apply(this,arguments);});}/**
	     * Once the directives have been collected, their compile functions are executed. This method
	     * is responsible for inlining directive templates as well as terminating the application
	     * of the directives if the terminal directive has been reached.
	     *
	     * @param {Array} directives Array of collected directives to execute their compile function.
	     *        this needs to be pre-sorted by priority order.
	     * @param {Node} compileNode The raw DOM node to apply the compile functions to
	     * @param {Object} templateAttrs The shared attribute function
	     * @param {function(angular.Scope, cloneAttachFn=)} transcludeFn A linking function, where the
	     *                                                  scope argument is auto-generated to the new
	     *                                                  child of the transcluded parent scope.
	     * @param {JQLite} jqCollection If we are working on the root of the compile tree then this
	     *                              argument has the root jqLite array so that we can replace nodes
	     *                              on it.
	     * @param {Object=} originalReplaceDirective An optional directive that will be ignored when
	     *                                           compiling the transclusion.
	     * @param {Array.<Function>} preLinkFns
	     * @param {Array.<Function>} postLinkFns
	     * @param {Object} previousCompileContext Context used for previous compilation of the current
	     *                                        node
	     * @returns {Function} linkFn
	     */function applyDirectivesToNode(directives,compileNode,templateAttrs,transcludeFn,jqCollection,originalReplaceDirective,preLinkFns,postLinkFns,previousCompileContext){previousCompileContext=previousCompileContext||{};var terminalPriority=-Number.MAX_VALUE,newScopeDirective=previousCompileContext.newScopeDirective,controllerDirectives=previousCompileContext.controllerDirectives,newIsolateScopeDirective=previousCompileContext.newIsolateScopeDirective,templateDirective=previousCompileContext.templateDirective,nonTlbTranscludeDirective=previousCompileContext.nonTlbTranscludeDirective,hasTranscludeDirective=false,hasTemplate=false,hasElementTranscludeDirective=previousCompileContext.hasElementTranscludeDirective,$compileNode=templateAttrs.$$element=jqLite(compileNode),directive,directiveName,$template,replaceDirective=originalReplaceDirective,childTranscludeFn=transcludeFn,linkFn,didScanForMultipleTransclusion=false,mightHaveMultipleTransclusionError=false,directiveValue;// executes all directives on the current element
	for(var i=0,ii=directives.length;i<ii;i++){directive=directives[i];var attrStart=directive.$$start;var attrEnd=directive.$$end;// collect multiblock sections
	if(attrStart){$compileNode=groupScan(compileNode,attrStart,attrEnd);}$template=undefined;if(terminalPriority>directive.priority){break;// prevent further processing of directives
	}directiveValue=directive.scope;if(directiveValue){// skip the check for directives with async templates, we'll check the derived sync
	// directive when the template arrives
	if(!directive.templateUrl){if(isObject(directiveValue)){// This directive is trying to add an isolated scope.
	// Check that there is no scope of any kind already
	assertNoDuplicate('new/isolated scope',newIsolateScopeDirective||newScopeDirective,directive,$compileNode);newIsolateScopeDirective=directive;}else{// This directive is trying to add a child scope.
	// Check that there is no isolated scope already
	assertNoDuplicate('new/isolated scope',newIsolateScopeDirective,directive,$compileNode);}}newScopeDirective=newScopeDirective||directive;}directiveName=directive.name;// If we encounter a condition that can result in transclusion on the directive,
	// then scan ahead in the remaining directives for others that may cause a multiple
	// transclusion error to be thrown during the compilation process.  If a matching directive
	// is found, then we know that when we encounter a transcluded directive, we need to eagerly
	// compile the `transclude` function rather than doing it lazily in order to throw
	// exceptions at the correct time
	if(!didScanForMultipleTransclusion&&(directive.replace&&(directive.templateUrl||directive.template)||directive.transclude&&!directive.$$tlb)){var candidateDirective;for(var scanningIndex=i+1;candidateDirective=directives[scanningIndex++];){if(candidateDirective.transclude&&!candidateDirective.$$tlb||candidateDirective.replace&&(candidateDirective.templateUrl||candidateDirective.template)){mightHaveMultipleTransclusionError=true;break;}}didScanForMultipleTransclusion=true;}if(!directive.templateUrl&&directive.controller){controllerDirectives=controllerDirectives||createMap();assertNoDuplicate('\''+directiveName+'\' controller',controllerDirectives[directiveName],directive,$compileNode);controllerDirectives[directiveName]=directive;}directiveValue=directive.transclude;if(directiveValue){hasTranscludeDirective=true;// Special case ngIf and ngRepeat so that we don't complain about duplicate transclusion.
	// This option should only be used by directives that know how to safely handle element transclusion,
	// where the transcluded nodes are added or replaced after linking.
	if(!directive.$$tlb){assertNoDuplicate('transclusion',nonTlbTranscludeDirective,directive,$compileNode);nonTlbTranscludeDirective=directive;}if(directiveValue==='element'){hasElementTranscludeDirective=true;terminalPriority=directive.priority;$template=$compileNode;$compileNode=templateAttrs.$$element=jqLite(compile.$$createComment(directiveName,templateAttrs[directiveName]));compileNode=$compileNode[0];replaceWith(jqCollection,sliceArgs($template),compileNode);childTranscludeFn=compilationGenerator(mightHaveMultipleTransclusionError,$template,transcludeFn,terminalPriority,replaceDirective&&replaceDirective.name,{// Don't pass in:
	// - controllerDirectives - otherwise we'll create duplicates controllers
	// - newIsolateScopeDirective or templateDirective - combining templates with
	//   element transclusion doesn't make sense.
	//
	// We need only nonTlbTranscludeDirective so that we prevent putting transclusion
	// on the same element more than once.
	nonTlbTranscludeDirective:nonTlbTranscludeDirective});}else{var slots=createMap();if(!isObject(directiveValue)){$template=jqLite(jqLiteClone(compileNode)).contents();}else{// We have transclusion slots,
	// collect them up, compile them and store their transclusion functions
	$template=window.document.createDocumentFragment();var slotMap=createMap();var filledSlots=createMap();// Parse the element selectors
	forEach(directiveValue,function(elementSelector,slotName){// If an element selector starts with a ? then it is optional
	var optional=elementSelector.charAt(0)==='?';elementSelector=optional?elementSelector.substring(1):elementSelector;slotMap[elementSelector]=slotName;// We explicitly assign `null` since this implies that a slot was defined but not filled.
	// Later when calling boundTransclusion functions with a slot name we only error if the
	// slot is `undefined`
	slots[slotName]=null;// filledSlots contains `true` for all slots that are either optional or have been
	// filled. This is used to check that we have not missed any required slots
	filledSlots[slotName]=optional;});// Add the matching elements into their slot
	forEach($compileNode.contents(),function(node){var slotName=slotMap[directiveNormalize(nodeName_(node))];if(slotName){filledSlots[slotName]=true;slots[slotName]=slots[slotName]||window.document.createDocumentFragment();slots[slotName].appendChild(node);}else{$template.appendChild(node);}});// Check for required slots that were not filled
	forEach(filledSlots,function(filled,slotName){if(!filled){throw $compileMinErr('reqslot','Required transclusion slot `{0}` was not filled.',slotName);}});for(var slotName in slots){if(slots[slotName]){// Only define a transclusion function if the slot was filled
	var slotCompileNodes=jqLite(slots[slotName].childNodes);slots[slotName]=compilationGenerator(mightHaveMultipleTransclusionError,slotCompileNodes,transcludeFn);}}$template=jqLite($template.childNodes);}$compileNode.empty();// clear contents
	childTranscludeFn=compilationGenerator(mightHaveMultipleTransclusionError,$template,transcludeFn,undefined,undefined,{needsNewScope:directive.$$isolateScope||directive.$$newScope});childTranscludeFn.$$slots=slots;}}if(directive.template){hasTemplate=true;assertNoDuplicate('template',templateDirective,directive,$compileNode);templateDirective=directive;directiveValue=isFunction(directive.template)?directive.template($compileNode,templateAttrs):directive.template;directiveValue=denormalizeTemplate(directiveValue);if(directive.replace){replaceDirective=directive;if(jqLiteIsTextNode(directiveValue)){$template=[];}else{$template=removeComments(wrapTemplate(directive.templateNamespace,trim(directiveValue)));}compileNode=$template[0];if($template.length!==1||compileNode.nodeType!==NODE_TYPE_ELEMENT){throw $compileMinErr('tplrt','Template for directive \'{0}\' must have exactly one root element. {1}',directiveName,'');}replaceWith(jqCollection,$compileNode,compileNode);var newTemplateAttrs={$attr:{}};// combine directives from the original node and from the template:
	// - take the array of directives for this element
	// - split it into two parts, those that already applied (processed) and those that weren't (unprocessed)
	// - collect directives from the template and sort them by priority
	// - combine directives as: processed + template + unprocessed
	var templateDirectives=collectDirectives(compileNode,[],newTemplateAttrs);var unprocessedDirectives=directives.splice(i+1,directives.length-(i+1));if(newIsolateScopeDirective||newScopeDirective){// The original directive caused the current element to be replaced but this element
	// also needs to have a new scope, so we need to tell the template directives
	// that they would need to get their scope from further up, if they require transclusion
	markDirectiveScope(templateDirectives,newIsolateScopeDirective,newScopeDirective);}directives=directives.concat(templateDirectives).concat(unprocessedDirectives);mergeTemplateAttributes(templateAttrs,newTemplateAttrs);ii=directives.length;}else{$compileNode.html(directiveValue);}}if(directive.templateUrl){hasTemplate=true;assertNoDuplicate('template',templateDirective,directive,$compileNode);templateDirective=directive;if(directive.replace){replaceDirective=directive;}// eslint-disable-next-line no-func-assign
	nodeLinkFn=compileTemplateUrl(directives.splice(i,directives.length-i),$compileNode,templateAttrs,jqCollection,hasTranscludeDirective&&childTranscludeFn,preLinkFns,postLinkFns,{controllerDirectives:controllerDirectives,newScopeDirective:newScopeDirective!==directive&&newScopeDirective,newIsolateScopeDirective:newIsolateScopeDirective,templateDirective:templateDirective,nonTlbTranscludeDirective:nonTlbTranscludeDirective});ii=directives.length;}else if(directive.compile){try{linkFn=directive.compile($compileNode,templateAttrs,childTranscludeFn);var context=directive.$$originalDirective||directive;if(isFunction(linkFn)){addLinkFns(null,bind(context,linkFn),attrStart,attrEnd);}else if(linkFn){addLinkFns(bind(context,linkFn.pre),bind(context,linkFn.post),attrStart,attrEnd);}}catch(e){$exceptionHandler(e,startingTag($compileNode));}}if(directive.terminal){nodeLinkFn.terminal=true;terminalPriority=Math.max(terminalPriority,directive.priority);}}nodeLinkFn.scope=newScopeDirective&&newScopeDirective.scope===true;nodeLinkFn.transcludeOnThisElement=hasTranscludeDirective;nodeLinkFn.templateOnThisElement=hasTemplate;nodeLinkFn.transclude=childTranscludeFn;previousCompileContext.hasElementTranscludeDirective=hasElementTranscludeDirective;// might be normal or delayed nodeLinkFn depending on if templateUrl is present
	return nodeLinkFn;////////////////////
	function addLinkFns(pre,post,attrStart,attrEnd){if(pre){if(attrStart)pre=groupElementsLinkFnWrapper(pre,attrStart,attrEnd);pre.require=directive.require;pre.directiveName=directiveName;if(newIsolateScopeDirective===directive||directive.$$isolateScope){pre=cloneAndAnnotateFn(pre,{isolateScope:true});}preLinkFns.push(pre);}if(post){if(attrStart)post=groupElementsLinkFnWrapper(post,attrStart,attrEnd);post.require=directive.require;post.directiveName=directiveName;if(newIsolateScopeDirective===directive||directive.$$isolateScope){post=cloneAndAnnotateFn(post,{isolateScope:true});}postLinkFns.push(post);}}function nodeLinkFn(childLinkFn,scope,linkNode,$rootElement,boundTranscludeFn){var i,ii,linkFn,isolateScope,controllerScope,elementControllers,transcludeFn,$element,attrs,scopeBindingInfo;if(compileNode===linkNode){attrs=templateAttrs;$element=templateAttrs.$$element;}else{$element=jqLite(linkNode);attrs=new Attributes($element,templateAttrs);}controllerScope=scope;if(newIsolateScopeDirective){isolateScope=scope.$new(true);}else if(newScopeDirective){controllerScope=scope.$parent;}if(boundTranscludeFn){// track `boundTranscludeFn` so it can be unwrapped if `transcludeFn`
	// is later passed as `parentBoundTranscludeFn` to `publicLinkFn`
	transcludeFn=controllersBoundTransclude;transcludeFn.$$boundTransclude=boundTranscludeFn;// expose the slots on the `$transclude` function
	transcludeFn.isSlotFilled=function(slotName){return!!boundTranscludeFn.$$slots[slotName];};}if(controllerDirectives){elementControllers=setupControllers($element,attrs,transcludeFn,controllerDirectives,isolateScope,scope,newIsolateScopeDirective);}if(newIsolateScopeDirective){// Initialize isolate scope bindings for new isolate scope directive.
	compile.$$addScopeInfo($element,isolateScope,true,!(templateDirective&&(templateDirective===newIsolateScopeDirective||templateDirective===newIsolateScopeDirective.$$originalDirective)));compile.$$addScopeClass($element,true);isolateScope.$$isolateBindings=newIsolateScopeDirective.$$isolateBindings;scopeBindingInfo=initializeDirectiveBindings(scope,attrs,isolateScope,isolateScope.$$isolateBindings,newIsolateScopeDirective);if(scopeBindingInfo.removeWatches){isolateScope.$on('$destroy',scopeBindingInfo.removeWatches);}}// Initialize bindToController bindings
	for(var name in elementControllers){var controllerDirective=controllerDirectives[name];var controller=elementControllers[name];var bindings=controllerDirective.$$bindings.bindToController;controller.instance=controller();$element.data('$'+controllerDirective.name+'Controller',controller.instance);controller.bindingInfo=initializeDirectiveBindings(controllerScope,attrs,controller.instance,bindings,controllerDirective);}// Bind the required controllers to the controller, if `require` is an object and `bindToController` is truthy
	forEach(controllerDirectives,function(controllerDirective,name){var require=controllerDirective.require;if(controllerDirective.bindToController&&!isArray(require)&&isObject(require)){extend(elementControllers[name].instance,getControllers(name,require,$element,elementControllers));}});// Handle the init and destroy lifecycle hooks on all controllers that have them
	forEach(elementControllers,function(controller){var controllerInstance=controller.instance;if(isFunction(controllerInstance.$onChanges)){try{controllerInstance.$onChanges(controller.bindingInfo.initialChanges);}catch(e){$exceptionHandler(e);}}if(isFunction(controllerInstance.$onInit)){try{controllerInstance.$onInit();}catch(e){$exceptionHandler(e);}}if(isFunction(controllerInstance.$doCheck)){controllerScope.$watch(function(){controllerInstance.$doCheck();});controllerInstance.$doCheck();}if(isFunction(controllerInstance.$onDestroy)){controllerScope.$on('$destroy',function callOnDestroyHook(){controllerInstance.$onDestroy();});}});// PRELINKING
	for(i=0,ii=preLinkFns.length;i<ii;i++){linkFn=preLinkFns[i];invokeLinkFn(linkFn,linkFn.isolateScope?isolateScope:scope,$element,attrs,linkFn.require&&getControllers(linkFn.directiveName,linkFn.require,$element,elementControllers),transcludeFn);}// RECURSION
	// We only pass the isolate scope, if the isolate directive has a template,
	// otherwise the child elements do not belong to the isolate directive.
	var scopeToChild=scope;if(newIsolateScopeDirective&&(newIsolateScopeDirective.template||newIsolateScopeDirective.templateUrl===null)){scopeToChild=isolateScope;}if(childLinkFn){childLinkFn(scopeToChild,linkNode.childNodes,undefined,boundTranscludeFn);}// POSTLINKING
	for(i=postLinkFns.length-1;i>=0;i--){linkFn=postLinkFns[i];invokeLinkFn(linkFn,linkFn.isolateScope?isolateScope:scope,$element,attrs,linkFn.require&&getControllers(linkFn.directiveName,linkFn.require,$element,elementControllers),transcludeFn);}// Trigger $postLink lifecycle hooks
	forEach(elementControllers,function(controller){var controllerInstance=controller.instance;if(isFunction(controllerInstance.$postLink)){controllerInstance.$postLink();}});// This is the function that is injected as `$transclude`.
	// Note: all arguments are optional!
	function controllersBoundTransclude(scope,cloneAttachFn,futureParentElement,slotName){var transcludeControllers;// No scope passed in:
	if(!isScope(scope)){slotName=futureParentElement;futureParentElement=cloneAttachFn;cloneAttachFn=scope;scope=undefined;}if(hasElementTranscludeDirective){transcludeControllers=elementControllers;}if(!futureParentElement){futureParentElement=hasElementTranscludeDirective?$element.parent():$element;}if(slotName){// slotTranscludeFn can be one of three things:
	//  * a transclude function - a filled slot
	//  * `null` - an optional slot that was not filled
	//  * `undefined` - a slot that was not declared (i.e. invalid)
	var slotTranscludeFn=boundTranscludeFn.$$slots[slotName];if(slotTranscludeFn){return slotTranscludeFn(scope,cloneAttachFn,transcludeControllers,futureParentElement,scopeToChild);}else if(isUndefined(slotTranscludeFn)){throw $compileMinErr('noslot','No parent directive that requires a transclusion with slot name "{0}". '+'Element: {1}',slotName,startingTag($element));}}else{return boundTranscludeFn(scope,cloneAttachFn,transcludeControllers,futureParentElement,scopeToChild);}}}}function getControllers(directiveName,require,$element,elementControllers){var value;if(isString(require)){var match=require.match(REQUIRE_PREFIX_REGEXP);var name=require.substring(match[0].length);var inheritType=match[1]||match[3];var optional=match[2]==='?';//If only parents then start at the parent element
	if(inheritType==='^^'){$element=$element.parent();//Otherwise attempt getting the controller from elementControllers in case
	//the element is transcluded (and has no data) and to avoid .data if possible
	}else{value=elementControllers&&elementControllers[name];value=value&&value.instance;}if(!value){var dataName='$'+name+'Controller';if(inheritType==='^^'&&$element[0]&&$element[0].nodeType===NODE_TYPE_DOCUMENT){// inheritedData() uses the documentElement when it finds the document, so we would
	// require from the element itself.
	value=null;}else{value=inheritType?$element.inheritedData(dataName):$element.data(dataName);}}if(!value&&!optional){throw $compileMinErr('ctreq','Controller \'{0}\', required by directive \'{1}\', can\'t be found!',name,directiveName);}}else if(isArray(require)){value=[];for(var i=0,ii=require.length;i<ii;i++){value[i]=getControllers(directiveName,require[i],$element,elementControllers);}}else if(isObject(require)){value={};forEach(require,function(controller,property){value[property]=getControllers(directiveName,controller,$element,elementControllers);});}return value||null;}function setupControllers($element,attrs,transcludeFn,controllerDirectives,isolateScope,scope,newIsolateScopeDirective){var elementControllers=createMap();for(var controllerKey in controllerDirectives){var directive=controllerDirectives[controllerKey];var locals={$scope:directive===newIsolateScopeDirective||directive.$$isolateScope?isolateScope:scope,$element:$element,$attrs:attrs,$transclude:transcludeFn};var controller=directive.controller;if(controller==='@'){controller=attrs[directive.name];}var controllerInstance=$controller(controller,locals,true,directive.controllerAs);// For directives with element transclusion the element is a comment.
	// In this case .data will not attach any data.
	// Instead, we save the controllers for the element in a local hash and attach to .data
	// later, once we have the actual element.
	elementControllers[directive.name]=controllerInstance;$element.data('$'+directive.name+'Controller',controllerInstance.instance);}return elementControllers;}// Depending upon the context in which a directive finds itself it might need to have a new isolated
	// or child scope created. For instance:
	// * if the directive has been pulled into a template because another directive with a higher priority
	// asked for element transclusion
	// * if the directive itself asks for transclusion but it is at the root of a template and the original
	// element was replaced. See https://github.com/angular/angular.js/issues/12936
	function markDirectiveScope(directives,isolateScope,newScope){for(var j=0,jj=directives.length;j<jj;j++){directives[j]=inherit(directives[j],{$$isolateScope:isolateScope,$$newScope:newScope});}}/**
	     * looks up the directive and decorates it with exception handling and proper parameters. We
	     * call this the boundDirective.
	     *
	     * @param {string} name name of the directive to look up.
	     * @param {string} location The directive must be found in specific format.
	     *   String containing any of theses characters:
	     *
	     *   * `E`: element name
	     *   * `A': attribute
	     *   * `C`: class
	     *   * `M`: comment
	     * @returns {boolean} true if directive was added.
	     */function addDirective(tDirectives,name,location,maxPriority,ignoreDirective,startAttrName,endAttrName){if(name===ignoreDirective)return null;var match=null;if(hasDirectives.hasOwnProperty(name)){for(var directive,directives=$injector.get(name+Suffix),i=0,ii=directives.length;i<ii;i++){directive=directives[i];if((isUndefined(maxPriority)||maxPriority>directive.priority)&&directive.restrict.indexOf(location)!==-1){if(startAttrName){directive=inherit(directive,{$$start:startAttrName,$$end:endAttrName});}if(!directive.$$bindings){var bindings=directive.$$bindings=parseDirectiveBindings(directive,directive.name);if(isObject(bindings.isolateScope)){directive.$$isolateBindings=bindings.isolateScope;}}tDirectives.push(directive);match=directive;}}}return match;}/**
	     * looks up the directive and returns true if it is a multi-element directive,
	     * and therefore requires DOM nodes between -start and -end markers to be grouped
	     * together.
	     *
	     * @param {string} name name of the directive to look up.
	     * @returns true if directive was registered as multi-element.
	     */function directiveIsMultiElement(name){if(hasDirectives.hasOwnProperty(name)){for(var directive,directives=$injector.get(name+Suffix),i=0,ii=directives.length;i<ii;i++){directive=directives[i];if(directive.multiElement){return true;}}}return false;}/**
	     * When the element is replaced with HTML template then the new attributes
	     * on the template need to be merged with the existing attributes in the DOM.
	     * The desired effect is to have both of the attributes present.
	     *
	     * @param {object} dst destination attributes (original DOM)
	     * @param {object} src source attributes (from the directive template)
	     */function mergeTemplateAttributes(dst,src){var srcAttr=src.$attr,dstAttr=dst.$attr;// reapply the old attributes to the new element
	forEach(dst,function(value,key){if(key.charAt(0)!=='$'){if(src[key]&&src[key]!==value){if(value.length){value+=(key==='style'?';':' ')+src[key];}else{value=src[key];}}dst.$set(key,value,true,srcAttr[key]);}});// copy the new attributes on the old attrs object
	forEach(src,function(value,key){// Check if we already set this attribute in the loop above.
	// `dst` will never contain hasOwnProperty as DOM parser won't let it.
	// You will get an "InvalidCharacterError: DOM Exception 5" error if you
	// have an attribute like "has-own-property" or "data-has-own-property", etc.
	if(!dst.hasOwnProperty(key)&&key.charAt(0)!=='$'){dst[key]=value;if(key!=='class'&&key!=='style'){dstAttr[key]=srcAttr[key];}}});}function compileTemplateUrl(directives,$compileNode,tAttrs,$rootElement,childTranscludeFn,preLinkFns,postLinkFns,previousCompileContext){var linkQueue=[],afterTemplateNodeLinkFn,afterTemplateChildLinkFn,beforeTemplateCompileNode=$compileNode[0],origAsyncDirective=directives.shift(),derivedSyncDirective=inherit(origAsyncDirective,{templateUrl:null,transclude:null,replace:null,$$originalDirective:origAsyncDirective}),templateUrl=isFunction(origAsyncDirective.templateUrl)?origAsyncDirective.templateUrl($compileNode,tAttrs):origAsyncDirective.templateUrl,templateNamespace=origAsyncDirective.templateNamespace;$compileNode.empty();$templateRequest(templateUrl).then(function(content){var compileNode,tempTemplateAttrs,$template,childBoundTranscludeFn;content=denormalizeTemplate(content);if(origAsyncDirective.replace){if(jqLiteIsTextNode(content)){$template=[];}else{$template=removeComments(wrapTemplate(templateNamespace,trim(content)));}compileNode=$template[0];if($template.length!==1||compileNode.nodeType!==NODE_TYPE_ELEMENT){throw $compileMinErr('tplrt','Template for directive \'{0}\' must have exactly one root element. {1}',origAsyncDirective.name,templateUrl);}tempTemplateAttrs={$attr:{}};replaceWith($rootElement,$compileNode,compileNode);var templateDirectives=collectDirectives(compileNode,[],tempTemplateAttrs);if(isObject(origAsyncDirective.scope)){// the original directive that caused the template to be loaded async required
	// an isolate scope
	markDirectiveScope(templateDirectives,true);}directives=templateDirectives.concat(directives);mergeTemplateAttributes(tAttrs,tempTemplateAttrs);}else{compileNode=beforeTemplateCompileNode;$compileNode.html(content);}directives.unshift(derivedSyncDirective);afterTemplateNodeLinkFn=applyDirectivesToNode(directives,compileNode,tAttrs,childTranscludeFn,$compileNode,origAsyncDirective,preLinkFns,postLinkFns,previousCompileContext);forEach($rootElement,function(node,i){if(node===compileNode){$rootElement[i]=$compileNode[0];}});afterTemplateChildLinkFn=compileNodes($compileNode[0].childNodes,childTranscludeFn);while(linkQueue.length){var scope=linkQueue.shift(),beforeTemplateLinkNode=linkQueue.shift(),linkRootElement=linkQueue.shift(),boundTranscludeFn=linkQueue.shift(),linkNode=$compileNode[0];if(scope.$$destroyed)continue;if(beforeTemplateLinkNode!==beforeTemplateCompileNode){var oldClasses=beforeTemplateLinkNode.className;if(!(previousCompileContext.hasElementTranscludeDirective&&origAsyncDirective.replace)){// it was cloned therefore we have to clone as well.
	linkNode=jqLiteClone(compileNode);}replaceWith(linkRootElement,jqLite(beforeTemplateLinkNode),linkNode);// Copy in CSS classes from original node
	safeAddClass(jqLite(linkNode),oldClasses);}if(afterTemplateNodeLinkFn.transcludeOnThisElement){childBoundTranscludeFn=createBoundTranscludeFn(scope,afterTemplateNodeLinkFn.transclude,boundTranscludeFn);}else{childBoundTranscludeFn=boundTranscludeFn;}afterTemplateNodeLinkFn(afterTemplateChildLinkFn,scope,linkNode,$rootElement,childBoundTranscludeFn);}linkQueue=null;}).catch(function(error){if(isError(error)){$exceptionHandler(error);}});return function delayedNodeLinkFn(ignoreChildLinkFn,scope,node,rootElement,boundTranscludeFn){var childBoundTranscludeFn=boundTranscludeFn;if(scope.$$destroyed)return;if(linkQueue){linkQueue.push(scope,node,rootElement,childBoundTranscludeFn);}else{if(afterTemplateNodeLinkFn.transcludeOnThisElement){childBoundTranscludeFn=createBoundTranscludeFn(scope,afterTemplateNodeLinkFn.transclude,boundTranscludeFn);}afterTemplateNodeLinkFn(afterTemplateChildLinkFn,scope,node,rootElement,childBoundTranscludeFn);}};}/**
	     * Sorting function for bound directives.
	     */function byPriority(a,b){var diff=b.priority-a.priority;if(diff!==0)return diff;if(a.name!==b.name)return a.name<b.name?-1:1;return a.index-b.index;}function assertNoDuplicate(what,previousDirective,directive,element){function wrapModuleNameIfDefined(moduleName){return moduleName?' (module: '+moduleName+')':'';}if(previousDirective){throw $compileMinErr('multidir','Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}',previousDirective.name,wrapModuleNameIfDefined(previousDirective.$$moduleName),directive.name,wrapModuleNameIfDefined(directive.$$moduleName),what,startingTag(element));}}function addTextInterpolateDirective(directives,text){var interpolateFn=$interpolate(text,true);if(interpolateFn){directives.push({priority:0,compile:function textInterpolateCompileFn(templateNode){var templateNodeParent=templateNode.parent(),hasCompileParent=!!templateNodeParent.length;// When transcluding a template that has bindings in the root
	// we don't have a parent and thus need to add the class during linking fn.
	if(hasCompileParent)compile.$$addBindingClass(templateNodeParent);return function textInterpolateLinkFn(scope,node){var parent=node.parent();if(!hasCompileParent)compile.$$addBindingClass(parent);compile.$$addBindingInfo(parent,interpolateFn.expressions);scope.$watch(interpolateFn,function interpolateFnWatchAction(value){node[0].nodeValue=value;});};}});}}function wrapTemplate(type,template){type=lowercase(type||'html');switch(type){case'svg':case'math':var wrapper=window.document.createElement('div');wrapper.innerHTML='<'+type+'>'+template+'</'+type+'>';return wrapper.childNodes[0].childNodes;default:return template;}}function getTrustedAttrContext(nodeName,attrNormalizedName){if(attrNormalizedName==='srcdoc'){return $sce.HTML;}// All nodes with src attributes require a RESOURCE_URL value, except for
	// img and various html5 media nodes, which require the MEDIA_URL context.
	if(attrNormalizedName==='src'||attrNormalizedName==='ngSrc'){if(['img','video','audio','source','track'].indexOf(nodeName)===-1){return $sce.RESOURCE_URL;}return $sce.MEDIA_URL;}else if(attrNormalizedName==='xlinkHref'){// Some xlink:href are okay, most aren't
	if(nodeName==='image')return $sce.MEDIA_URL;if(nodeName==='a')return $sce.URL;return $sce.RESOURCE_URL;}else if(// Formaction
	nodeName==='form'&&attrNormalizedName==='action'||// If relative URLs can go where they are not expected to, then
	// all sorts of trust issues can arise.
	nodeName==='base'&&attrNormalizedName==='href'||// links can be stylesheets or imports, which can run script in the current origin
	nodeName==='link'&&attrNormalizedName==='href'){return $sce.RESOURCE_URL;}else if(nodeName==='a'&&(attrNormalizedName==='href'||attrNormalizedName==='ngHref')){return $sce.URL;}}function getTrustedPropContext(nodeName,propNormalizedName){var prop=propNormalizedName.toLowerCase();return PROP_CONTEXTS[nodeName+'|'+prop]||PROP_CONTEXTS['*|'+prop];}function sanitizeSrcsetPropertyValue(value){return sanitizeSrcset($sce.valueOf(value),'ng-prop-srcset');}function addPropertyDirective(node,directives,attrName,propName){if(EVENT_HANDLER_ATTR_REGEXP.test(propName)){throw $compileMinErr('nodomevents','Property bindings for HTML DOM event properties are disallowed');}var nodeName=nodeName_(node);var trustedContext=getTrustedPropContext(nodeName,propName);var sanitizer=identity;// Sanitize img[srcset] + source[srcset] values.
	if(propName==='srcset'&&(nodeName==='img'||nodeName==='source')){sanitizer=sanitizeSrcsetPropertyValue;}else if(trustedContext){sanitizer=$sce.getTrusted.bind($sce,trustedContext);}directives.push({priority:100,compile:function ngPropCompileFn(_,attr){var ngPropGetter=$parse(attr[attrName]);var ngPropWatch=$parse(attr[attrName],function sceValueOf(val){// Unwrap the value to compare the actual inner safe value, not the wrapper object.
	return $sce.valueOf(val);});return{pre:function ngPropPreLinkFn(scope,$element){function applyPropValue(){var propValue=ngPropGetter(scope);$element[0][propName]=sanitizer(propValue);}applyPropValue();scope.$watch(ngPropWatch,applyPropValue);}};}});}function addEventDirective(directives,attrName,eventName){directives.push(createEventDirective($parse,$rootScope,$exceptionHandler,attrName,eventName,/*forceAsync=*/false));}function addAttrInterpolateDirective(node,directives,value,name,isNgAttr){var nodeName=nodeName_(node);var trustedContext=getTrustedAttrContext(nodeName,name);var mustHaveExpression=!isNgAttr;var allOrNothing=ALL_OR_NOTHING_ATTRS[name]||isNgAttr;var interpolateFn=$interpolate(value,mustHaveExpression,trustedContext,allOrNothing);// no interpolation found -> ignore
	if(!interpolateFn)return;if(name==='multiple'&&nodeName==='select'){throw $compileMinErr('selmulti','Binding to the \'multiple\' attribute is not supported. Element: {0}',startingTag(node));}if(EVENT_HANDLER_ATTR_REGEXP.test(name)){throw $compileMinErr('nodomevents','Interpolations for HTML DOM event attributes are disallowed');}directives.push({priority:100,compile:function compile(){return{pre:function attrInterpolatePreLinkFn(scope,element,attr){var $$observers=attr.$$observers||(attr.$$observers=createMap());// If the attribute has changed since last $interpolate()ed
	var newValue=attr[name];if(newValue!==value){// we need to interpolate again since the attribute value has been updated
	// (e.g. by another directive's compile function)
	// ensure unset/empty values make interpolateFn falsy
	interpolateFn=newValue&&$interpolate(newValue,true,trustedContext,allOrNothing);value=newValue;}// if attribute was updated so that there is no interpolation going on we don't want to
	// register any observers
	if(!interpolateFn)return;// initialize attr object so that it's ready in case we need the value for isolate
	// scope initialization, otherwise the value would not be available from isolate
	// directive's linking fn during linking phase
	attr[name]=interpolateFn(scope);($$observers[name]||($$observers[name]=[])).$$inter=true;(attr.$$observers&&attr.$$observers[name].$$scope||scope).$watch(interpolateFn,function interpolateFnWatchAction(newValue,oldValue){//special case for class attribute addition + removal
	//so that class changes can tap into the animation
	//hooks provided by the $animate service. Be sure to
	//skip animations when the first digest occurs (when
	//both the new and the old values are the same) since
	//the CSS classes are the non-interpolated values
	if(name==='class'&&newValue!==oldValue){attr.$updateClass(newValue,oldValue);}else{attr.$set(name,newValue);}});}};}});}/**
	     * This is a special jqLite.replaceWith, which can replace items which
	     * have no parents, provided that the containing jqLite collection is provided.
	     *
	     * @param {JqLite=} $rootElement The root of the compile tree. Used so that we can replace nodes
	     *                               in the root of the tree.
	     * @param {JqLite} elementsToRemove The jqLite element which we are going to replace. We keep
	     *                                  the shell, but replace its DOM node reference.
	     * @param {Node} newNode The new DOM node.
	     */function replaceWith($rootElement,elementsToRemove,newNode){var firstElementToRemove=elementsToRemove[0],removeCount=elementsToRemove.length,parent=firstElementToRemove.parentNode,i,ii;if($rootElement){for(i=0,ii=$rootElement.length;i<ii;i++){if($rootElement[i]===firstElementToRemove){$rootElement[i++]=newNode;for(var j=i,j2=j+removeCount-1,jj=$rootElement.length;j<jj;j++,j2++){if(j2<jj){$rootElement[j]=$rootElement[j2];}else{delete $rootElement[j];}}$rootElement.length-=removeCount-1;// If the replaced element is also the jQuery .context then replace it
	// .context is a deprecated jQuery api, so we should set it only when jQuery set it
	// http://api.jquery.com/context/
	if($rootElement.context===firstElementToRemove){$rootElement.context=newNode;}break;}}}if(parent){parent.replaceChild(newNode,firstElementToRemove);}// Append all the `elementsToRemove` to a fragment. This will...
	// - remove them from the DOM
	// - allow them to still be traversed with .nextSibling
	// - allow a single fragment.qSA to fetch all elements being removed
	var fragment=window.document.createDocumentFragment();for(i=0;i<removeCount;i++){fragment.appendChild(elementsToRemove[i]);}if(jqLite.hasData(firstElementToRemove)){// Copy over user data (that includes AngularJS's $scope etc.). Don't copy private
	// data here because there's no public interface in jQuery to do that and copying over
	// event listeners (which is the main use of private data) wouldn't work anyway.
	jqLite.data(newNode,jqLite.data(firstElementToRemove));// Remove $destroy event listeners from `firstElementToRemove`
	jqLite(firstElementToRemove).off('$destroy');}// Cleanup any data/listeners on the elements and children.
	// This includes invoking the $destroy event on any elements with listeners.
	jqLite.cleanData(fragment.querySelectorAll('*'));// Update the jqLite collection to only contain the `newNode`
	for(i=1;i<removeCount;i++){delete elementsToRemove[i];}elementsToRemove[0]=newNode;elementsToRemove.length=1;}function cloneAndAnnotateFn(fn,annotation){return extend(function(){return fn.apply(null,arguments);},fn,annotation);}function invokeLinkFn(linkFn,scope,$element,attrs,controllers,transcludeFn){try{linkFn(scope,$element,attrs,controllers,transcludeFn);}catch(e){$exceptionHandler(e,startingTag($element));}}function strictBindingsCheck(attrName,directiveName){if(strictComponentBindingsEnabled){throw $compileMinErr('missingattr','Attribute \'{0}\' of \'{1}\' is non-optional and must be set!',attrName,directiveName);}}// Set up $watches for isolate scope and controller bindings.
	function initializeDirectiveBindings(scope,attrs,destination,bindings,directive){var removeWatchCollection=[];var initialChanges={};var changes;forEach(bindings,function initializeBinding(definition,scopeName){var attrName=definition.attrName,optional=definition.optional,mode=definition.mode,// @, =, <, or &
	lastValue,parentGet,parentSet,compare,removeWatch;switch(mode){case'@':if(!optional&&!hasOwnProperty.call(attrs,attrName)){strictBindingsCheck(attrName,directive.name);destination[scopeName]=attrs[attrName]=undefined;}removeWatch=attrs.$observe(attrName,function(value){if(isString(value)||isBoolean(value)){var oldValue=destination[scopeName];recordChanges(scopeName,value,oldValue);destination[scopeName]=value;}});attrs.$$observers[attrName].$$scope=scope;lastValue=attrs[attrName];if(isString(lastValue)){// If the attribute has been provided then we trigger an interpolation to ensure
	// the value is there for use in the link fn
	destination[scopeName]=$interpolate(lastValue)(scope);}else if(isBoolean(lastValue)){// If the attributes is one of the BOOLEAN_ATTR then AngularJS will have converted
	// the value to boolean rather than a string, so we special case this situation
	destination[scopeName]=lastValue;}initialChanges[scopeName]=new SimpleChange(_UNINITIALIZED_VALUE,destination[scopeName]);removeWatchCollection.push(removeWatch);break;case'=':if(!hasOwnProperty.call(attrs,attrName)){if(optional)break;strictBindingsCheck(attrName,directive.name);attrs[attrName]=undefined;}if(optional&&!attrs[attrName])break;parentGet=$parse(attrs[attrName]);if(parentGet.literal){compare=equals;}else{compare=simpleCompare;}parentSet=parentGet.assign||function(){// reset the change, or we will throw this exception on every $digest
	lastValue=destination[scopeName]=parentGet(scope);throw $compileMinErr('nonassign','Expression \'{0}\' in attribute \'{1}\' used with directive \'{2}\' is non-assignable!',attrs[attrName],attrName,directive.name);};lastValue=destination[scopeName]=parentGet(scope);var parentValueWatch=function parentValueWatch(parentValue){if(!compare(parentValue,destination[scopeName])){// we are out of sync and need to copy
	if(!compare(parentValue,lastValue)){// parent changed and it has precedence
	destination[scopeName]=parentValue;}else{// if the parent can be assigned then do so
	parentSet(scope,parentValue=destination[scopeName]);}}lastValue=parentValue;return lastValue;};parentValueWatch.$stateful=true;if(definition.collection){removeWatch=scope.$watchCollection(attrs[attrName],parentValueWatch);}else{removeWatch=scope.$watch($parse(attrs[attrName],parentValueWatch),null,parentGet.literal);}removeWatchCollection.push(removeWatch);break;case'<':if(!hasOwnProperty.call(attrs,attrName)){if(optional)break;strictBindingsCheck(attrName,directive.name);attrs[attrName]=undefined;}if(optional&&!attrs[attrName])break;parentGet=$parse(attrs[attrName]);var isLiteral=parentGet.literal;var initialValue=destination[scopeName]=parentGet(scope);initialChanges[scopeName]=new SimpleChange(_UNINITIALIZED_VALUE,destination[scopeName]);removeWatch=scope[definition.collection?'$watchCollection':'$watch'](parentGet,function parentValueWatchAction(newValue,oldValue){if(oldValue===newValue){if(oldValue===initialValue||isLiteral&&equals(oldValue,initialValue)){return;}oldValue=initialValue;}recordChanges(scopeName,newValue,oldValue);destination[scopeName]=newValue;});removeWatchCollection.push(removeWatch);break;case'&':if(!optional&&!hasOwnProperty.call(attrs,attrName)){strictBindingsCheck(attrName,directive.name);}// Don't assign Object.prototype method to scope
	parentGet=attrs.hasOwnProperty(attrName)?$parse(attrs[attrName]):noop;// Don't assign noop to destination if expression is not valid
	if(parentGet===noop&&optional)break;destination[scopeName]=function(locals){return parentGet(scope,locals);};break;}});function recordChanges(key,currentValue,previousValue){if(isFunction(destination.$onChanges)&&!simpleCompare(currentValue,previousValue)){// If we have not already scheduled the top level onChangesQueue handler then do so now
	if(!onChangesQueue){scope.$$postDigest(flushOnChangesQueue);onChangesQueue=[];}// If we have not already queued a trigger of onChanges for this controller then do so now
	if(!changes){changes={};onChangesQueue.push(triggerOnChangesHook);}// If the has been a change on this property already then we need to reuse the previous value
	if(changes[key]){previousValue=changes[key].previousValue;}// Store this change
	changes[key]=new SimpleChange(previousValue,currentValue);}}function triggerOnChangesHook(){destination.$onChanges(changes);// Now clear the changes so that we schedule onChanges when more changes arrive
	changes=undefined;}return{initialChanges:initialChanges,removeWatches:removeWatchCollection.length&&function removeWatches(){for(var i=0,ii=removeWatchCollection.length;i<ii;++i){removeWatchCollection[i]();}}};}}];}function SimpleChange(previous,current){this.previousValue=previous;this.currentValue=current;}SimpleChange.prototype.isFirstChange=function(){return this.previousValue===_UNINITIALIZED_VALUE;};var PREFIX_REGEXP=/^((?:x|data)[:\-_])/i;var SPECIAL_CHARS_REGEXP=/[:\-_]+(.)/g;/**
	 * Converts all accepted directives format into proper directive name.
	 * @param name Name to normalize
	 */function directiveNormalize(name){return name.replace(PREFIX_REGEXP,'').replace(SPECIAL_CHARS_REGEXP,function(_,letter,offset){return offset?letter.toUpperCase():letter;});}/**
	 * @ngdoc type
	 * @name $compile.directive.Attributes
	 *
	 * @description
	 * A shared object between directive compile / linking functions which contains normalized DOM
	 * element attributes. The values reflect current binding state `{{ }}`. The normalization is
	 * needed since all of these are treated as equivalent in AngularJS:
	 *
	 * ```
	 *    <span ng:bind="a" ng-bind="a" data-ng-bind="a" x-ng-bind="a">
	 * ```
	 *//**
	 * @ngdoc property
	 * @name $compile.directive.Attributes#$attr
	 *
	 * @description
	 * A map of DOM element attribute names to the normalized name. This is
	 * needed to do reverse lookup from normalized name back to actual name.
	 *//**
	 * @ngdoc method
	 * @name $compile.directive.Attributes#$set
	 * @kind function
	 *
	 * @description
	 * Set DOM element attribute value.
	 *
	 *
	 * @param {string} name Normalized element attribute name of the property to modify. The name is
	 *          reverse-translated using the {@link ng.$compile.directive.Attributes#$attr $attr}
	 *          property to the original name.
	 * @param {string} value Value to set the attribute to. The value can be an interpolated string.
	 *//**
	 * Closure compiler type information
	 */function nodesetLinkingFn(/* angular.Scope */scope,/* NodeList */nodeList,/* Element */rootElement,/* function(Function) */boundTranscludeFn){}function directiveLinkingFn(/* nodesetLinkingFn */nodesetLinkingFn,/* angular.Scope */scope,/* Node */node,/* Element */rootElement,/* function(Function) */boundTranscludeFn){}function tokenDifference(str1,str2){var values='',tokens1=str1.split(/\s+/),tokens2=str2.split(/\s+/);outer:for(var i=0;i<tokens1.length;i++){var token=tokens1[i];for(var j=0;j<tokens2.length;j++){if(token===tokens2[j])continue outer;}values+=(values.length>0?' ':'')+token;}return values;}function removeComments(jqNodes){jqNodes=jqLite(jqNodes);var i=jqNodes.length;if(i<=1){return jqNodes;}while(i--){var node=jqNodes[i];if(node.nodeType===NODE_TYPE_COMMENT||node.nodeType===NODE_TYPE_TEXT&&node.nodeValue.trim()===''){splice.call(jqNodes,i,1);}}return jqNodes;}var $controllerMinErr=minErr('$controller');var CNTRL_REG=/^(\S+)(\s+as\s+([\w$]+))?$/;function identifierForController(controller,ident){if(ident&&isString(ident))return ident;if(isString(controller)){var match=CNTRL_REG.exec(controller);if(match)return match[3];}}/**
	 * @ngdoc provider
	 * @name $controllerProvider
	 * @this
	 *
	 * @description
	 * The {@link ng.$controller $controller service} is used by AngularJS to create new
	 * controllers.
	 *
	 * This provider allows controller registration via the
	 * {@link ng.$controllerProvider#register register} method.
	 */function $ControllerProvider(){var controllers={};/**
	   * @ngdoc method
	   * @name $controllerProvider#has
	   * @param {string} name Controller name to check.
	   */this.has=function(name){return controllers.hasOwnProperty(name);};/**
	   * @ngdoc method
	   * @name $controllerProvider#register
	   * @param {string|Object} name Controller name, or an object map of controllers where the keys are
	   *    the names and the values are the constructors.
	   * @param {Function|Array} constructor Controller constructor fn (optionally decorated with DI
	   *    annotations in the array notation).
	   */this.register=function(name,constructor){assertNotHasOwnProperty(name,'controller');if(isObject(name)){extend(controllers,name);}else{controllers[name]=constructor;}};this.$get=['$injector',function($injector){/**
	     * @ngdoc service
	     * @name $controller
	     * @requires $injector
	     *
	     * @param {Function|string} constructor If called with a function then it's considered to be the
	     *    controller constructor function. Otherwise it's considered to be a string which is used
	     *    to retrieve the controller constructor using the following steps:
	     *
	     *    * check if a controller with given name is registered via `$controllerProvider`
	     *    * check if evaluating the string on the current scope returns a constructor
	     *
	     *    The string can use the `controller as property` syntax, where the controller instance is published
	     *    as the specified property on the `scope`; the `scope` must be injected into `locals` param for this
	     *    to work correctly.
	     *
	     * @param {Object} locals Injection locals for Controller.
	     * @return {Object} Instance of given controller.
	     *
	     * @description
	     * `$controller` service is responsible for instantiating controllers.
	     *
	     * It's just a simple call to {@link auto.$injector $injector}, but extracted into
	     * a service, so that one can override this service with [BC version](https://gist.github.com/1649788).
	     */return function $controller(expression,locals,later,ident){// PRIVATE API:
	//   param `later` --- indicates that the controller's constructor is invoked at a later time.
	//                     If true, $controller will allocate the object with the correct
	//                     prototype chain, but will not invoke the controller until a returned
	//                     callback is invoked.
	//   param `ident` --- An optional label which overrides the label parsed from the controller
	//                     expression, if any.
	var instance,match,constructor,identifier;later=later===true;if(ident&&isString(ident)){identifier=ident;}if(isString(expression)){match=expression.match(CNTRL_REG);if(!match){throw $controllerMinErr('ctrlfmt','Badly formed controller string \'{0}\'. '+'Must match `__name__ as __id__` or `__name__`.',expression);}constructor=match[1];identifier=identifier||match[3];expression=controllers.hasOwnProperty(constructor)?controllers[constructor]:getter(locals.$scope,constructor,true);if(!expression){throw $controllerMinErr('ctrlreg','The controller with the name \'{0}\' is not registered.',constructor);}assertArgFn(expression,constructor,true);}if(later){// Instantiate controller later:
	// This machinery is used to create an instance of the object before calling the
	// controller's constructor itself.
	//
	// This allows properties to be added to the controller before the constructor is
	// invoked. Primarily, this is used for isolate scope bindings in $compile.
	//
	// This feature is not intended for use by applications, and is thus not documented
	// publicly.
	// Object creation: http://jsperf.com/create-constructor/2
	var controllerPrototype=(isArray(expression)?expression[expression.length-1]:expression).prototype;instance=Object.create(controllerPrototype||null);if(identifier){addIdentifier(locals,identifier,instance,constructor||expression.name);}return extend(function $controllerInit(){var result=$injector.invoke(expression,instance,locals,constructor);if(result!==instance&&(isObject(result)||isFunction(result))){instance=result;if(identifier){// If result changed, re-assign controllerAs value to scope.
	addIdentifier(locals,identifier,instance,constructor||expression.name);}}return instance;},{instance:instance,identifier:identifier});}instance=$injector.instantiate(expression,locals,constructor);if(identifier){addIdentifier(locals,identifier,instance,constructor||expression.name);}return instance;};function addIdentifier(locals,identifier,instance,name){if(!(locals&&isObject(locals.$scope))){throw minErr('$controller')('noscp','Cannot export controller \'{0}\' as \'{1}\'! No $scope object provided via `locals`.',name,identifier);}locals.$scope[identifier]=instance;}}];}/**
	 * @ngdoc service
	 * @name $document
	 * @requires $window
	 * @this
	 *
	 * @description
	 * A {@link angular.element jQuery or jqLite} wrapper for the browser's `window.document` object.
	 *
	 * @example
	   <example module="documentExample" name="document">
	     <file name="index.html">
	       <div ng-controller="ExampleController">
	         <p>$document title: <b ng-bind="title"></b></p>
	         <p>window.document title: <b ng-bind="windowTitle"></b></p>
	       </div>
	     </file>
	     <file name="script.js">
	       angular.module('documentExample', [])
	         .controller('ExampleController', ['$scope', '$document', function($scope, $document) {
	           $scope.title = $document[0].title;
	           $scope.windowTitle = angular.element(window.document)[0].title;
	         }]);
	     </file>
	   </example>
	 */function $DocumentProvider(){this.$get=['$window',function(window){return jqLite(window.document);}];}/**
	 * @private
	 * @this
	 * Listens for document visibility change and makes the current status accessible.
	 */function $$IsDocumentHiddenProvider(){this.$get=['$document','$rootScope',function($document,$rootScope){var doc=$document[0];var hidden=doc&&doc.hidden;$document.on('visibilitychange',changeListener);$rootScope.$on('$destroy',function(){$document.off('visibilitychange',changeListener);});function changeListener(){hidden=doc.hidden;}return function(){return hidden;};}];}/**
	 * @ngdoc service
	 * @name $exceptionHandler
	 * @requires ng.$log
	 * @this
	 *
	 * @description
	 * Any uncaught exception in AngularJS expressions is delegated to this service.
	 * The default implementation simply delegates to `$log.error` which logs it into
	 * the browser console.
	 *
	 * In unit tests, if `angular-mocks.js` is loaded, this service is overridden by
	 * {@link ngMock.$exceptionHandler mock $exceptionHandler} which aids in testing.
	 *
	 * ## Example:
	 *
	 * The example below will overwrite the default `$exceptionHandler` in order to (a) log uncaught
	 * errors to the backend for later inspection by the developers and (b) to use `$log.warn()` instead
	 * of `$log.error()`.
	 *
	 * ```js
	 *   angular.
	 *     module('exceptionOverwrite', []).
	 *     factory('$exceptionHandler', ['$log', 'logErrorsToBackend', function($log, logErrorsToBackend) {
	 *       return function myExceptionHandler(exception, cause) {
	 *         logErrorsToBackend(exception, cause);
	 *         $log.warn(exception, cause);
	 *       };
	 *     }]);
	 * ```
	 *
	 * <hr />
	 * Note, that code executed in event-listeners (even those registered using jqLite's `on`/`bind`
	 * methods) does not delegate exceptions to the {@link ng.$exceptionHandler $exceptionHandler}
	 * (unless executed during a digest).
	 *
	 * If you wish, you can manually delegate exceptions, e.g.
	 * `try { ... } catch(e) { $exceptionHandler(e); }`
	 *
	 * @param {Error} exception Exception associated with the error.
	 * @param {string=} cause Optional information about the context in which
	 *       the error was thrown.
	 *
	 */function $ExceptionHandlerProvider(){this.$get=['$log',function($log){return function(exception,cause){$log.error.apply($log,arguments);};}];}var $$ForceReflowProvider=/** @this */function $$ForceReflowProvider(){this.$get=['$document',function($document){return function(domNode){//the line below will force the browser to perform a repaint so
	//that all the animated elements within the animation frame will
	//be properly updated and drawn on screen. This is required to
	//ensure that the preparation animation is properly flushed so that
	//the active state picks up from there. DO NOT REMOVE THIS LINE.
	//DO NOT OPTIMIZE THIS LINE. THE MINIFIER WILL REMOVE IT OTHERWISE WHICH
	//WILL RESULT IN AN UNPREDICTABLE BUG THAT IS VERY HARD TO TRACK DOWN AND
	//WILL TAKE YEARS AWAY FROM YOUR LIFE.
	if(domNode){if(!domNode.nodeType&&domNode instanceof jqLite){domNode=domNode[0];}}else{domNode=$document[0].body;}return domNode.offsetWidth+1;};}];};var APPLICATION_JSON='application/json';var CONTENT_TYPE_APPLICATION_JSON={'Content-Type':APPLICATION_JSON+';charset=utf-8'};var JSON_START=/^\[|^\{(?!\{)/;var JSON_ENDS={'[':/]$/,'{':/}$/};var JSON_PROTECTION_PREFIX=/^\)]\}',?\n/;var $httpMinErr=minErr('$http');function serializeValue(v){if(isObject(v)){return isDate(v)?v.toISOString():toJson(v);}return v;}/** @this */function $HttpParamSerializerProvider(){/**
	   * @ngdoc service
	   * @name $httpParamSerializer
	   * @description
	   *
	   * Default {@link $http `$http`} params serializer that converts objects to strings
	   * according to the following rules:
	   *
	   * * `{'foo': 'bar'}` results in `foo=bar`
	   * * `{'foo': Date.now()}` results in `foo=2015-04-01T09%3A50%3A49.262Z` (`toISOString()` and encoded representation of a Date object)
	   * * `{'foo': ['bar', 'baz']}` results in `foo=bar&foo=baz` (repeated key for each array element)
	   * * `{'foo': {'bar':'baz'}}` results in `foo=%7B%22bar%22%3A%22baz%22%7D` (stringified and encoded representation of an object)
	   *
	   * Note that serializer will sort the request parameters alphabetically.
	   */this.$get=function(){return function ngParamSerializer(params){if(!params)return'';var parts=[];forEachSorted(params,function(value,key){if(value===null||isUndefined(value)||isFunction(value))return;if(isArray(value)){forEach(value,function(v){parts.push(encodeUriQuery(key)+'='+encodeUriQuery(serializeValue(v)));});}else{parts.push(encodeUriQuery(key)+'='+encodeUriQuery(serializeValue(value)));}});return parts.join('&');};};}/** @this */function $HttpParamSerializerJQLikeProvider(){/**
	   * @ngdoc service
	   * @name $httpParamSerializerJQLike
	   *
	   * @description
	   *
	   * Alternative {@link $http `$http`} params serializer that follows
	   * jQuery's [`param()`](http://api.jquery.com/jquery.param/) method logic.
	   * The serializer will also sort the params alphabetically.
	   *
	   * To use it for serializing `$http` request parameters, set it as the `paramSerializer` property:
	   *
	   * ```js
	   * $http({
	   *   url: myUrl,
	   *   method: 'GET',
	   *   params: myParams,
	   *   paramSerializer: '$httpParamSerializerJQLike'
	   * });
	   * ```
	   *
	   * It is also possible to set it as the default `paramSerializer` in the
	   * {@link $httpProvider#defaults `$httpProvider`}.
	   *
	   * Additionally, you can inject the serializer and use it explicitly, for example to serialize
	   * form data for submission:
	   *
	   * ```js
	   * .controller(function($http, $httpParamSerializerJQLike) {
	   *   //...
	   *
	   *   $http({
	   *     url: myUrl,
	   *     method: 'POST',
	   *     data: $httpParamSerializerJQLike(myData),
	   *     headers: {
	   *       'Content-Type': 'application/x-www-form-urlencoded'
	   *     }
	   *   });
	   *
	   * });
	   * ```
	   *
	   */this.$get=function(){return function jQueryLikeParamSerializer(params){if(!params)return'';var parts=[];serialize(params,'',true);return parts.join('&');function serialize(toSerialize,prefix,topLevel){if(isArray(toSerialize)){forEach(toSerialize,function(value,index){serialize(value,prefix+'['+(isObject(value)?index:'')+']');});}else if(isObject(toSerialize)&&!isDate(toSerialize)){forEachSorted(toSerialize,function(value,key){serialize(value,prefix+(topLevel?'':'[')+key+(topLevel?'':']'));});}else{if(isFunction(toSerialize)){toSerialize=toSerialize();}parts.push(encodeUriQuery(prefix)+'='+(toSerialize==null?'':encodeUriQuery(serializeValue(toSerialize))));}}};};}function defaultHttpResponseTransform(data,headers){if(isString(data)){// Strip json vulnerability protection prefix and trim whitespace
	var tempData=data.replace(JSON_PROTECTION_PREFIX,'').trim();if(tempData){var contentType=headers('Content-Type');var hasJsonContentType=contentType&&contentType.indexOf(APPLICATION_JSON)===0;if(hasJsonContentType||isJsonLike(tempData)){try{data=fromJson(tempData);}catch(e){if(!hasJsonContentType){return data;}throw $httpMinErr('baddata','Data must be a valid JSON object. Received: "{0}". '+'Parse error: "{1}"',data,e);}}}}return data;}function isJsonLike(str){var jsonStart=str.match(JSON_START);return jsonStart&&JSON_ENDS[jsonStart[0]].test(str);}/**
	 * Parse headers into key value object
	 *
	 * @param {string} headers Raw headers as a string
	 * @returns {Object} Parsed headers as key value object
	 */function parseHeaders(headers){var parsed=createMap(),i;function fillInParsed(key,val){if(key){parsed[key]=parsed[key]?parsed[key]+', '+val:val;}}if(isString(headers)){forEach(headers.split('\n'),function(line){i=line.indexOf(':');fillInParsed(lowercase(trim(line.substr(0,i))),trim(line.substr(i+1)));});}else if(isObject(headers)){forEach(headers,function(headerVal,headerKey){fillInParsed(lowercase(headerKey),trim(headerVal));});}return parsed;}/**
	 * Returns a function that provides access to parsed headers.
	 *
	 * Headers are lazy parsed when first requested.
	 * @see parseHeaders
	 *
	 * @param {(string|Object)} headers Headers to provide access to.
	 * @returns {function(string=)} Returns a getter function which if called with:
	 *
	 *   - if called with an argument returns a single header value or null
	 *   - if called with no arguments returns an object containing all headers.
	 */function headersGetter(headers){var headersObj;return function(name){if(!headersObj)headersObj=parseHeaders(headers);if(name){var value=headersObj[lowercase(name)];if(value===undefined){value=null;}return value;}return headersObj;};}/**
	 * Chain all given functions
	 *
	 * This function is used for both request and response transforming
	 *
	 * @param {*} data Data to transform.
	 * @param {function(string=)} headers HTTP headers getter fn.
	 * @param {number} status HTTP status code of the response.
	 * @param {(Function|Array.<Function>)} fns Function or an array of functions.
	 * @returns {*} Transformed data.
	 */function transformData(data,headers,status,fns){if(isFunction(fns)){return fns(data,headers,status);}forEach(fns,function(fn){data=fn(data,headers,status);});return data;}function isSuccess(status){return 200<=status&&status<300;}/**
	 * @ngdoc provider
	 * @name $httpProvider
	 * @this
	 *
	 * @description
	 * Use `$httpProvider` to change the default behavior of the {@link ng.$http $http} service.
	 */function $HttpProvider(){/**
	   * @ngdoc property
	   * @name $httpProvider#defaults
	   * @description
	   *
	   * Object containing default values for all {@link ng.$http $http} requests.
	   *
	   * - **`defaults.cache`** - {boolean|Object} - A boolean value or object created with
	   * {@link ng.$cacheFactory `$cacheFactory`} to enable or disable caching of HTTP responses
	   * by default. See {@link $http#caching $http Caching} for more information.
	   *
	   * - **`defaults.headers`** - {Object} - Default headers for all $http requests.
	   * Refer to {@link ng.$http#setting-http-headers $http} for documentation on
	   * setting default headers.
	   *     - **`defaults.headers.common`**
	   *     - **`defaults.headers.post`**
	   *     - **`defaults.headers.put`**
	   *     - **`defaults.headers.patch`**
	   *
	   * - **`defaults.jsonpCallbackParam`** - `{string}` - the name of the query parameter that passes the name of the
	   * callback in a JSONP request. The value of this parameter will be replaced with the expression generated by the
	   * {@link $jsonpCallbacks} service. Defaults to `'callback'`.
	   *
	   * - **`defaults.paramSerializer`** - `{string|function(Object<string,string>):string}` - A function
	   *  used to the prepare string representation of request parameters (specified as an object).
	   *  If specified as string, it is interpreted as a function registered with the {@link auto.$injector $injector}.
	   *  Defaults to {@link ng.$httpParamSerializer $httpParamSerializer}.
	   *
	   * - **`defaults.transformRequest`** -
	   * `{Array<function(data, headersGetter)>|function(data, headersGetter)}` -
	   * An array of functions (or a single function) which are applied to the request data.
	   * By default, this is an array with one request transformation function:
	   *
	   *   - If the `data` property of the request configuration object contains an object, serialize it
	   *     into JSON format.
	   *
	   * - **`defaults.transformResponse`** -
	   * `{Array<function(data, headersGetter, status)>|function(data, headersGetter, status)}` -
	   * An array of functions (or a single function) which are applied to the response data. By default,
	   * this is an array which applies one response transformation function that does two things:
	   *
	   *  - If XSRF prefix is detected, strip it
	   *    (see {@link ng.$http#security-considerations Security Considerations in the $http docs}).
	   *  - If the `Content-Type` is `application/json` or the response looks like JSON,
	   *    deserialize it using a JSON parser.
	   *
	   * - **`defaults.xsrfCookieName`** - {string} - Name of cookie containing the XSRF token.
	   * Defaults value is `'XSRF-TOKEN'`.
	   *
	   * - **`defaults.xsrfHeaderName`** - {string} - Name of HTTP header to populate with the
	   * XSRF token. Defaults value is `'X-XSRF-TOKEN'`.
	   *
	   */var defaults=this.defaults={// transform incoming response data
	transformResponse:[defaultHttpResponseTransform],// transform outgoing request data
	transformRequest:[function(d){return isObject(d)&&!isFile(d)&&!isBlob(d)&&!isFormData(d)?toJson(d):d;}],// default headers
	headers:{common:{'Accept':'application/json, text/plain, */*'},post:shallowCopy(CONTENT_TYPE_APPLICATION_JSON),put:shallowCopy(CONTENT_TYPE_APPLICATION_JSON),patch:shallowCopy(CONTENT_TYPE_APPLICATION_JSON)},xsrfCookieName:'XSRF-TOKEN',xsrfHeaderName:'X-XSRF-TOKEN',paramSerializer:'$httpParamSerializer',jsonpCallbackParam:'callback'};var useApplyAsync=false;/**
	   * @ngdoc method
	   * @name $httpProvider#useApplyAsync
	   * @description
	   *
	   * Configure $http service to combine processing of multiple http responses received at around
	   * the same time via {@link ng.$rootScope.Scope#$applyAsync $rootScope.$applyAsync}. This can result in
	   * significant performance improvement for bigger applications that make many HTTP requests
	   * concurrently (common during application bootstrap).
	   *
	   * Defaults to false. If no value is specified, returns the current configured value.
	   *
	   * @param {boolean=} value If true, when requests are loaded, they will schedule a deferred
	   *    "apply" on the next tick, giving time for subsequent requests in a roughly ~10ms window
	   *    to load and share the same digest cycle.
	   *
	   * @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining.
	   *    otherwise, returns the current configured value.
	   */this.useApplyAsync=function(value){if(isDefined(value)){useApplyAsync=!!value;return this;}return useApplyAsync;};/**
	   * @ngdoc property
	   * @name $httpProvider#interceptors
	   * @description
	   *
	   * Array containing service factories for all synchronous or asynchronous {@link ng.$http $http}
	   * pre-processing of request or postprocessing of responses.
	   *
	   * These service factories are ordered by request, i.e. they are applied in the same order as the
	   * array, on request, but reverse order, on response.
	   *
	   * {@link ng.$http#interceptors Interceptors detailed info}
	   */var interceptorFactories=this.interceptors=[];/**
	   * @ngdoc property
	   * @name $httpProvider#xsrfTrustedOrigins
	   * @description
	   *
	   * Array containing URLs whose origins are trusted to receive the XSRF token. See the
	   * {@link ng.$http#security-considerations Security Considerations} sections for more details on
	   * XSRF.
	   *
	   * **Note:** An "origin" consists of the [URI scheme](https://en.wikipedia.org/wiki/URI_scheme),
	   * the [hostname](https://en.wikipedia.org/wiki/Hostname) and the
	   * [port number](https://en.wikipedia.org/wiki/Port_(computer_networking). For `http:` and
	   * `https:`, the port number can be omitted if using th default ports (80 and 443 respectively).
	   * Examples: `http://example.com`, `https://api.example.com:9876`
	   *
	   * <div class="alert alert-warning">
	   *   It is not possible to trust specific URLs/paths. The `path`, `query` and `fragment` parts
	   *   of a URL will be ignored. For example, `https://foo.com/path/bar?query=baz#fragment` will be
	   *   treated as `https://foo.com`, meaning that **all** requests to URLs starting with
	   *   `https://foo.com/` will include the XSRF token.
	   * </div>
	   *
	   * @example
	   *
	   * ```js
	   * // App served from `https://example.com/`.
	   * angular.
	   *   module('xsrfTrustedOriginsExample', []).
	   *   config(['$httpProvider', function($httpProvider) {
	   *     $httpProvider.xsrfTrustedOrigins.push('https://api.example.com');
	   *   }]).
	   *   run(['$http', function($http) {
	   *     // The XSRF token will be sent.
	   *     $http.get('https://api.example.com/preferences').then(...);
	   *
	   *     // The XSRF token will NOT be sent.
	   *     $http.get('https://stats.example.com/activity').then(...);
	   *   }]);
	   * ```
	   */var xsrfTrustedOrigins=this.xsrfTrustedOrigins=[];/**
	   * @ngdoc property
	   * @name $httpProvider#xsrfWhitelistedOrigins
	   * @description
	   *
	   * @deprecated
	   * sinceVersion="1.8.1"
	   *
	   * This property is deprecated. Use {@link $httpProvider#xsrfTrustedOrigins xsrfTrustedOrigins}
	   * instead.
	   */Object.defineProperty(this,'xsrfWhitelistedOrigins',{get:function get(){return this.xsrfTrustedOrigins;},set:function set(origins){this.xsrfTrustedOrigins=origins;}});this.$get=['$browser','$httpBackend','$$cookieReader','$cacheFactory','$rootScope','$q','$injector','$sce',function($browser,$httpBackend,$$cookieReader,$cacheFactory,$rootScope,$q,$injector,$sce){var defaultCache=$cacheFactory('$http');/**
	     * Make sure that default param serializer is exposed as a function
	     */defaults.paramSerializer=isString(defaults.paramSerializer)?$injector.get(defaults.paramSerializer):defaults.paramSerializer;/**
	     * Interceptors stored in reverse order. Inner interceptors before outer interceptors.
	     * The reversal is needed so that we can build up the interception chain around the
	     * server request.
	     */var reversedInterceptors=[];forEach(interceptorFactories,function(interceptorFactory){reversedInterceptors.unshift(isString(interceptorFactory)?$injector.get(interceptorFactory):$injector.invoke(interceptorFactory));});/**
	     * A function to check request URLs against a list of allowed origins.
	     */var urlIsAllowedOrigin=urlIsAllowedOriginFactory(xsrfTrustedOrigins);/**
	     * @ngdoc service
	     * @kind function
	     * @name $http
	     * @requires ng.$httpBackend
	     * @requires $cacheFactory
	     * @requires $rootScope
	     * @requires $q
	     * @requires $injector
	     *
	     * @description
	     * The `$http` service is a core AngularJS service that facilitates communication with the remote
	     * HTTP servers via the browser's [XMLHttpRequest](https://developer.mozilla.org/en/xmlhttprequest)
	     * object or via [JSONP](http://en.wikipedia.org/wiki/JSONP).
	     *
	     * For unit testing applications that use `$http` service, see
	     * {@link ngMock.$httpBackend $httpBackend mock}.
	     *
	     * For a higher level of abstraction, please check out the {@link ngResource.$resource
	     * $resource} service.
	     *
	     * The $http API is based on the {@link ng.$q deferred/promise APIs} exposed by
	     * the $q service. While for simple usage patterns this doesn't matter much, for advanced usage
	     * it is important to familiarize yourself with these APIs and the guarantees they provide.
	     *
	     *
	     * ## General usage
	     * The `$http` service is a function which takes a single argument — a {@link $http#usage configuration object} —
	     * that is used to generate an HTTP request and returns  a {@link ng.$q promise} that is
	     * resolved (request success) or rejected (request failure) with a
	     * {@link ng.$http#$http-returns response} object.
	     *
	     * ```js
	     *   // Simple GET request example:
	     *   $http({
	     *     method: 'GET',
	     *     url: '/someUrl'
	     *   }).then(function successCallback(response) {
	     *       // this callback will be called asynchronously
	     *       // when the response is available
	     *     }, function errorCallback(response) {
	     *       // called asynchronously if an error occurs
	     *       // or server returns response with an error status.
	     *     });
	     * ```
	     *
	     *
	     * ## Shortcut methods
	     *
	     * Shortcut methods are also available. All shortcut methods require passing in the URL, and
	     * request data must be passed in for POST/PUT requests. An optional config can be passed as the
	     * last argument.
	     *
	     * ```js
	     *   $http.get('/someUrl', config).then(successCallback, errorCallback);
	     *   $http.post('/someUrl', data, config).then(successCallback, errorCallback);
	     * ```
	     *
	     * Complete list of shortcut methods:
	     *
	     * - {@link ng.$http#get $http.get}
	     * - {@link ng.$http#head $http.head}
	     * - {@link ng.$http#post $http.post}
	     * - {@link ng.$http#put $http.put}
	     * - {@link ng.$http#delete $http.delete}
	     * - {@link ng.$http#jsonp $http.jsonp}
	     * - {@link ng.$http#patch $http.patch}
	     *
	     *
	     * ## Writing Unit Tests that use $http
	     * When unit testing (using {@link ngMock ngMock}), it is necessary to call
	     * {@link ngMock.$httpBackend#flush $httpBackend.flush()} to flush each pending
	     * request using trained responses.
	     *
	     * ```
	     * $httpBackend.expectGET(...);
	     * $http.get(...);
	     * $httpBackend.flush();
	     * ```
	     *
	     * ## Setting HTTP Headers
	     *
	     * The $http service will automatically add certain HTTP headers to all requests. These defaults
	     * can be fully configured by accessing the `$httpProvider.defaults.headers` configuration
	     * object, which currently contains this default configuration:
	     *
	     * - `$httpProvider.defaults.headers.common` (headers that are common for all requests):
	     *   - <code>Accept: application/json, text/plain, \*&#65279;/&#65279;\*</code>
	     * - `$httpProvider.defaults.headers.post`: (header defaults for POST requests)
	     *   - `Content-Type: application/json`
	     * - `$httpProvider.defaults.headers.put` (header defaults for PUT requests)
	     *   - `Content-Type: application/json`
	     *
	     * To add or overwrite these defaults, simply add or remove a property from these configuration
	     * objects. To add headers for an HTTP method other than POST or PUT, simply add a new object
	     * with the lowercased HTTP method name as the key, e.g.
	     * `$httpProvider.defaults.headers.get = { 'My-Header' : 'value' }`.
	     *
	     * The defaults can also be set at runtime via the `$http.defaults` object in the same
	     * fashion. For example:
	     *
	     * ```
	     * module.run(function($http) {
	     *   $http.defaults.headers.common.Authorization = 'Basic YmVlcDpib29w';
	     * });
	     * ```
	     *
	     * In addition, you can supply a `headers` property in the config object passed when
	     * calling `$http(config)`, which overrides the defaults without changing them globally.
	     *
	     * To explicitly remove a header automatically added via $httpProvider.defaults.headers on a per request basis,
	     * Use the `headers` property, setting the desired header to `undefined`. For example:
	     *
	     * ```js
	     * var req = {
	     *  method: 'POST',
	     *  url: 'http://example.com',
	     *  headers: {
	     *    'Content-Type': undefined
	     *  },
	     *  data: { test: 'test' }
	     * }
	     *
	     * $http(req).then(function(){...}, function(){...});
	     * ```
	     *
	     * ## Transforming Requests and Responses
	     *
	     * Both requests and responses can be transformed using transformation functions: `transformRequest`
	     * and `transformResponse`. These properties can be a single function that returns
	     * the transformed value (`function(data, headersGetter, status)`) or an array of such transformation functions,
	     * which allows you to `push` or `unshift` a new transformation function into the transformation chain.
	     *
	     * <div class="alert alert-warning">
	     * **Note:** AngularJS does not make a copy of the `data` parameter before it is passed into the `transformRequest` pipeline.
	     * That means changes to the properties of `data` are not local to the transform function (since Javascript passes objects by reference).
	     * For example, when calling `$http.get(url, $scope.myObject)`, modifications to the object's properties in a transformRequest
	     * function will be reflected on the scope and in any templates where the object is data-bound.
	     * To prevent this, transform functions should have no side-effects.
	     * If you need to modify properties, it is recommended to make a copy of the data, or create new object to return.
	     * </div>
	     *
	     * ### Default Transformations
	     *
	     * The `$httpProvider` provider and `$http` service expose `defaults.transformRequest` and
	     * `defaults.transformResponse` properties. If a request does not provide its own transformations
	     * then these will be applied.
	     *
	     * You can augment or replace the default transformations by modifying these properties by adding to or
	     * replacing the array.
	     *
	     * AngularJS provides the following default transformations:
	     *
	     * Request transformations (`$httpProvider.defaults.transformRequest` and `$http.defaults.transformRequest`) is
	     * an array with one function that does the following:
	     *
	     * - If the `data` property of the request configuration object contains an object, serialize it
	     *   into JSON format.
	     *
	     * Response transformations (`$httpProvider.defaults.transformResponse` and `$http.defaults.transformResponse`) is
	     * an array with one function that does the following:
	     *
	     *  - If XSRF prefix is detected, strip it (see Security Considerations section below).
	     *  - If the `Content-Type` is `application/json` or the response looks like JSON,
	   *      deserialize it using a JSON parser.
	     *
	     *
	     * ### Overriding the Default Transformations Per Request
	     *
	     * If you wish to override the request/response transformations only for a single request then provide
	     * `transformRequest` and/or `transformResponse` properties on the configuration object passed
	     * into `$http`.
	     *
	     * Note that if you provide these properties on the config object the default transformations will be
	     * overwritten. If you wish to augment the default transformations then you must include them in your
	     * local transformation array.
	     *
	     * The following code demonstrates adding a new response transformation to be run after the default response
	     * transformations have been run.
	     *
	     * ```js
	     * function appendTransform(defaults, transform) {
	     *
	     *   // We can't guarantee that the default transformation is an array
	     *   defaults = angular.isArray(defaults) ? defaults : [defaults];
	     *
	     *   // Append the new transformation to the defaults
	     *   return defaults.concat(transform);
	     * }
	     *
	     * $http({
	     *   url: '...',
	     *   method: 'GET',
	     *   transformResponse: appendTransform($http.defaults.transformResponse, function(value) {
	     *     return doTransform(value);
	     *   })
	     * });
	     * ```
	     *
	     *
	     * ## Caching
	     *
	     * {@link ng.$http `$http`} responses are not cached by default. To enable caching, you must
	     * set the config.cache value or the default cache value to TRUE or to a cache object (created
	     * with {@link ng.$cacheFactory `$cacheFactory`}). If defined, the value of config.cache takes
	     * precedence over the default cache value.
	     *
	     * In order to:
	     *   * cache all responses - set the default cache value to TRUE or to a cache object
	     *   * cache a specific response - set config.cache value to TRUE or to a cache object
	     *
	     * If caching is enabled, but neither the default cache nor config.cache are set to a cache object,
	     * then the default `$cacheFactory("$http")` object is used.
	     *
	     * The default cache value can be set by updating the
	     * {@link ng.$http#defaults `$http.defaults.cache`} property or the
	     * {@link $httpProvider#defaults `$httpProvider.defaults.cache`} property.
	     *
	     * When caching is enabled, {@link ng.$http `$http`} stores the response from the server using
	     * the relevant cache object. The next time the same request is made, the response is returned
	     * from the cache without sending a request to the server.
	     *
	     * Take note that:
	     *
	     *   * Only GET and JSONP requests are cached.
	     *   * The cache key is the request URL including search parameters; headers are not considered.
	     *   * Cached responses are returned asynchronously, in the same way as responses from the server.
	     *   * If multiple identical requests are made using the same cache, which is not yet populated,
	     *     one request will be made to the server and remaining requests will return the same response.
	     *   * A cache-control header on the response does not affect if or how responses are cached.
	     *
	     *
	     * ## Interceptors
	     *
	     * Before you start creating interceptors, be sure to understand the
	     * {@link ng.$q $q and deferred/promise APIs}.
	     *
	     * For purposes of global error handling, authentication, or any kind of synchronous or
	     * asynchronous pre-processing of request or postprocessing of responses, it is desirable to be
	     * able to intercept requests before they are handed to the server and
	     * responses before they are handed over to the application code that
	     * initiated these requests. The interceptors leverage the {@link ng.$q
	     * promise APIs} to fulfill this need for both synchronous and asynchronous pre-processing.
	     *
	     * The interceptors are service factories that are registered with the `$httpProvider` by
	     * adding them to the `$httpProvider.interceptors` array. The factory is called and
	     * injected with dependencies (if specified) and returns the interceptor.
	     *
	     * There are two kinds of interceptors (and two kinds of rejection interceptors):
	     *
	     *   * `request`: interceptors get called with a http {@link $http#usage config} object. The function is free to
	     *     modify the `config` object or create a new one. The function needs to return the `config`
	     *     object directly, or a promise containing the `config` or a new `config` object.
	     *   * `requestError`: interceptor gets called when a previous interceptor threw an error or
	     *     resolved with a rejection.
	     *   * `response`: interceptors get called with http `response` object. The function is free to
	     *     modify the `response` object or create a new one. The function needs to return the `response`
	     *     object directly, or as a promise containing the `response` or a new `response` object.
	     *   * `responseError`: interceptor gets called when a previous interceptor threw an error or
	     *     resolved with a rejection.
	     *
	     *
	     * ```js
	     *   // register the interceptor as a service
	     *   $provide.factory('myHttpInterceptor', function($q, dependency1, dependency2) {
	     *     return {
	     *       // optional method
	     *       'request': function(config) {
	     *         // do something on success
	     *         return config;
	     *       },
	     *
	     *       // optional method
	     *      'requestError': function(rejection) {
	     *         // do something on error
	     *         if (canRecover(rejection)) {
	     *           return responseOrNewPromise
	     *         }
	     *         return $q.reject(rejection);
	     *       },
	     *
	     *
	     *
	     *       // optional method
	     *       'response': function(response) {
	     *         // do something on success
	     *         return response;
	     *       },
	     *
	     *       // optional method
	     *      'responseError': function(rejection) {
	     *         // do something on error
	     *         if (canRecover(rejection)) {
	     *           return responseOrNewPromise
	     *         }
	     *         return $q.reject(rejection);
	     *       }
	     *     };
	     *   });
	     *
	     *   $httpProvider.interceptors.push('myHttpInterceptor');
	     *
	     *
	     *   // alternatively, register the interceptor via an anonymous factory
	     *   $httpProvider.interceptors.push(function($q, dependency1, dependency2) {
	     *     return {
	     *      'request': function(config) {
	     *          // same as above
	     *       },
	     *
	     *       'response': function(response) {
	     *          // same as above
	     *       }
	     *     };
	     *   });
	     * ```
	     *
	     * ## Security Considerations
	     *
	     * When designing web applications, consider security threats from:
	     *
	     * - [JSON vulnerability](http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx)
	     * - [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery)
	     *
	     * Both server and the client must cooperate in order to eliminate these threats. AngularJS comes
	     * pre-configured with strategies that address these issues, but for this to work backend server
	     * cooperation is required.
	     *
	     * ### JSON Vulnerability Protection
	     *
	     * A [JSON vulnerability](http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx)
	     * allows third party website to turn your JSON resource URL into
	     * [JSONP](http://en.wikipedia.org/wiki/JSONP) request under some conditions. To
	     * counter this your server can prefix all JSON requests with following string `")]}',\n"`.
	     * AngularJS will automatically strip the prefix before processing it as JSON.
	     *
	     * For example if your server needs to return:
	     * ```js
	     * ['one','two']
	     * ```
	     *
	     * which is vulnerable to attack, your server can return:
	     * ```js
	     * )]}',
	     * ['one','two']
	     * ```
	     *
	     * AngularJS will strip the prefix, before processing the JSON.
	     *
	     *
	     * ### Cross Site Request Forgery (XSRF) Protection
	     *
	     * [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery) is an attack technique by
	     * which the attacker can trick an authenticated user into unknowingly executing actions on your
	     * website. AngularJS provides a mechanism to counter XSRF. When performing XHR requests, the
	     * $http service reads a token from a cookie (by default, `XSRF-TOKEN`) and sets it as an HTTP
	     * header (by default `X-XSRF-TOKEN`). Since only JavaScript that runs on your domain could read
	     * the cookie, your server can be assured that the XHR came from JavaScript running on your
	     * domain.
	     *
	     * To take advantage of this, your server needs to set a token in a JavaScript readable session
	     * cookie called `XSRF-TOKEN` on the first HTTP GET request. On subsequent XHR requests the
	     * server can verify that the cookie matches the `X-XSRF-TOKEN` HTTP header, and therefore be
	     * sure that only JavaScript running on your domain could have sent the request. The token must
	     * be unique for each user and must be verifiable by the server (to prevent the JavaScript from
	     * making up its own tokens). We recommend that the token is a digest of your site's
	     * authentication cookie with a [salt](https://en.wikipedia.org/wiki/Salt_(cryptography&#41;)
	     * for added security.
	     *
	     * The header will &mdash; by default &mdash; **not** be set for cross-domain requests. This
	     * prevents unauthorized servers (e.g. malicious or compromised 3rd-party APIs) from gaining
	     * access to your users' XSRF tokens and exposing them to Cross Site Request Forgery. If you
	     * want to, you can trust additional origins to also receive the XSRF token, by adding them
	     * to {@link ng.$httpProvider#xsrfTrustedOrigins xsrfTrustedOrigins}. This might be
	     * useful, for example, if your application, served from `example.com`, needs to access your API
	     * at `api.example.com`.
	     * See {@link ng.$httpProvider#xsrfTrustedOrigins $httpProvider.xsrfTrustedOrigins} for
	     * more details.
	     *
	     * <div class="alert alert-danger">
	     *   **Warning**<br />
	     *   Only trusted origins that you have control over and make sure you understand the
	     *   implications of doing so.
	     * </div>
	     *
	     * The name of the cookie and the header can be specified using the `xsrfCookieName` and
	     * `xsrfHeaderName` properties of either `$httpProvider.defaults` at config-time,
	     * `$http.defaults` at run-time, or the per-request config object.
	     *
	     * In order to prevent collisions in environments where multiple AngularJS apps share the
	     * same domain or subdomain, we recommend that each application uses a unique cookie name.
	     *
	     *
	     * @param {object} config Object describing the request to be made and how it should be
	     *    processed. The object has following properties:
	     *
	     *    - **method** – `{string}` – HTTP method (e.g. 'GET', 'POST', etc)
	     *    - **url** – `{string|TrustedObject}` – Absolute or relative URL of the resource that is being requested;
	     *      or an object created by a call to `$sce.trustAsResourceUrl(url)`.
	     *    - **params** – `{Object.<string|Object>}` – Map of strings or objects which will be serialized
	     *      with the `paramSerializer` and appended as GET parameters.
	     *    - **data** – `{string|Object}` – Data to be sent as the request message data.
	     *    - **headers** – `{Object}` – Map of strings or functions which return strings representing
	     *      HTTP headers to send to the server. If the return value of a function is null, the
	     *      header will not be sent. Functions accept a config object as an argument.
	     *    - **eventHandlers** - `{Object}` - Event listeners to be bound to the XMLHttpRequest object.
	     *      To bind events to the XMLHttpRequest upload object, use `uploadEventHandlers`.
	     *      The handler will be called in the context of a `$apply` block.
	     *    - **uploadEventHandlers** - `{Object}` - Event listeners to be bound to the XMLHttpRequest upload
	     *      object. To bind events to the XMLHttpRequest object, use `eventHandlers`.
	     *      The handler will be called in the context of a `$apply` block.
	     *    - **xsrfHeaderName** – `{string}` – Name of HTTP header to populate with the XSRF token.
	     *    - **xsrfCookieName** – `{string}` – Name of cookie containing the XSRF token.
	     *    - **transformRequest** –
	     *      `{function(data, headersGetter)|Array.<function(data, headersGetter)>}` –
	     *      transform function or an array of such functions. The transform function takes the http
	     *      request body and headers and returns its transformed (typically serialized) version.
	     *      See {@link ng.$http#overriding-the-default-transformations-per-request
	     *      Overriding the Default Transformations}
	     *    - **transformResponse** –
	     *      `{function(data, headersGetter, status)|Array.<function(data, headersGetter, status)>}` –
	     *      transform function or an array of such functions. The transform function takes the http
	     *      response body, headers and status and returns its transformed (typically deserialized) version.
	     *      See {@link ng.$http#overriding-the-default-transformations-per-request
	     *      Overriding the Default Transformations}
	     *    - **paramSerializer** - `{string|function(Object<string,string>):string}` - A function used to
	     *      prepare the string representation of request parameters (specified as an object).
	     *      If specified as string, it is interpreted as function registered with the
	     *      {@link $injector $injector}, which means you can create your own serializer
	     *      by registering it as a {@link auto.$provide#service service}.
	     *      The default serializer is the {@link $httpParamSerializer $httpParamSerializer};
	     *      alternatively, you can use the {@link $httpParamSerializerJQLike $httpParamSerializerJQLike}
	     *    - **cache** – `{boolean|Object}` – A boolean value or object created with
	     *      {@link ng.$cacheFactory `$cacheFactory`} to enable or disable caching of the HTTP response.
	     *      See {@link $http#caching $http Caching} for more information.
	     *    - **timeout** – `{number|Promise}` – timeout in milliseconds, or {@link ng.$q promise}
	     *      that should abort the request when resolved.
	     *
	     *      A numerical timeout or a promise returned from {@link ng.$timeout $timeout}, will set
	     *      the `xhrStatus` in the {@link $http#$http-returns response} to "timeout", and any other
	     *      resolved promise will set it to "abort", following standard XMLHttpRequest behavior.
	     *
	     *    - **withCredentials** - `{boolean}` - whether to set the `withCredentials` flag on the
	     *      XHR object. See [requests with credentials](https://developer.mozilla.org/docs/Web/HTTP/Access_control_CORS#Requests_with_credentials)
	     *      for more information.
	     *    - **responseType** - `{string}` - see
	     *      [XMLHttpRequest.responseType](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#xmlhttprequest-responsetype).
	     *
	     * @returns {HttpPromise} A {@link ng.$q `Promise}` that will be resolved (request success)
	     *   or rejected (request failure) with a response object.
	     *
	     *   The response object has these properties:
	     *
	     *   - **data** – `{string|Object}` – The response body transformed with
	     *     the transform functions.
	     *   - **status** – `{number}` – HTTP status code of the response.
	     *   - **headers** – `{function([headerName])}` – Header getter function.
	     *   - **config** – `{Object}` – The configuration object that was used
	     *     to generate the request.
	     *   - **statusText** – `{string}` – HTTP status text of the response.
	     *   - **xhrStatus** – `{string}` – Status of the XMLHttpRequest
	     *     (`complete`, `error`, `timeout` or `abort`).
	     *
	     *
	     *   A response status code between 200 and 299 is considered a success status
	     *   and will result in the success callback being called. Any response status
	     *   code outside of that range is considered an error status and will result
	     *   in the error callback being called.
	     *   Also, status codes less than -1 are normalized to zero. -1 usually means
	     *   the request was aborted, e.g. using a `config.timeout`. More information
	     *   about the status might be available in the `xhrStatus` property.
	     *
	     *   Note that if the response is a redirect, XMLHttpRequest will transparently
	     *   follow it, meaning that the outcome (success or error) will be determined
	     *   by the final response status code.
	     *
	     *
	     * @property {Array.<Object>} pendingRequests Array of config objects for currently pending
	     *   requests. This is primarily meant to be used for debugging purposes.
	     *
	     *
	     * @example
	<example module="httpExample" name="http-service">
	<file name="index.html">
	  <div ng-controller="FetchController">
	    <select ng-model="method" aria-label="Request method">
	      <option>GET</option>
	      <option>JSONP</option>
	    </select>
	    <input type="text" ng-model="url" size="80" aria-label="URL" />
	    <button id="fetchbtn" ng-click="fetch()">fetch</button><br>
	    <button id="samplegetbtn" ng-click="updateModel('GET', 'http-hello.html')">Sample GET</button>
	    <button id="samplejsonpbtn"
	      ng-click="updateModel('JSONP',
	                    'https://angularjs.org/greet.php?name=Super%20Hero')">
	      Sample JSONP
	    </button>
	    <button id="invalidjsonpbtn"
	      ng-click="updateModel('JSONP', 'https://angularjs.org/doesntexist')">
	        Invalid JSONP
	      </button>
	    <pre>http status code: {{status}}</pre>
	    <pre>http response data: {{data}}</pre>
	  </div>
	</file>
	<file name="script.js">
	  angular.module('httpExample', [])
	    .config(['$sceDelegateProvider', function($sceDelegateProvider) {
	      // We must add the JSONP endpoint that we are using to the trusted list to show that we trust it
	      $sceDelegateProvider.trustedResourceUrlList([
	        'self',
	        'https://angularjs.org/**'
	      ]);
	    }])
	    .controller('FetchController', ['$scope', '$http', '$templateCache',
	      function($scope, $http, $templateCache) {
	        $scope.method = 'GET';
	        $scope.url = 'http-hello.html';
	
	        $scope.fetch = function() {
	          $scope.code = null;
	          $scope.response = null;
	
	          $http({method: $scope.method, url: $scope.url, cache: $templateCache}).
	            then(function(response) {
	              $scope.status = response.status;
	              $scope.data = response.data;
	            }, function(response) {
	              $scope.data = response.data || 'Request failed';
	              $scope.status = response.status;
	          });
	        };
	
	        $scope.updateModel = function(method, url) {
	          $scope.method = method;
	          $scope.url = url;
	        };
	      }]);
	</file>
	<file name="http-hello.html">
	  Hello, $http!
	</file>
	<file name="protractor.js" type="protractor">
	  var status = element(by.binding('status'));
	  var data = element(by.binding('data'));
	  var fetchBtn = element(by.id('fetchbtn'));
	  var sampleGetBtn = element(by.id('samplegetbtn'));
	  var invalidJsonpBtn = element(by.id('invalidjsonpbtn'));
	
	  it('should make an xhr GET request', function() {
	    sampleGetBtn.click();
	    fetchBtn.click();
	    expect(status.getText()).toMatch('200');
	    expect(data.getText()).toMatch(/Hello, \$http!/);
	  });
	
	// Commented out due to flakes. See https://github.com/angular/angular.js/issues/9185
	// it('should make a JSONP request to angularjs.org', function() {
	//   var sampleJsonpBtn = element(by.id('samplejsonpbtn'));
	//   sampleJsonpBtn.click();
	//   fetchBtn.click();
	//   expect(status.getText()).toMatch('200');
	//   expect(data.getText()).toMatch(/Super Hero!/);
	// });
	
	  it('should make JSONP request to invalid URL and invoke the error handler',
	      function() {
	    invalidJsonpBtn.click();
	    fetchBtn.click();
	    expect(status.getText()).toMatch('0');
	    expect(data.getText()).toMatch('Request failed');
	  });
	</file>
	</example>
	     */function $http(requestConfig){if(!isObject(requestConfig)){throw minErr('$http')('badreq','Http request configuration must be an object.  Received: {0}',requestConfig);}if(!isString($sce.valueOf(requestConfig.url))){throw minErr('$http')('badreq','Http request configuration url must be a string or a $sce trusted object.  Received: {0}',requestConfig.url);}var config=extend({method:'get',transformRequest:defaults.transformRequest,transformResponse:defaults.transformResponse,paramSerializer:defaults.paramSerializer,jsonpCallbackParam:defaults.jsonpCallbackParam},requestConfig);config.headers=mergeHeaders(requestConfig);config.method=uppercase(config.method);config.paramSerializer=isString(config.paramSerializer)?$injector.get(config.paramSerializer):config.paramSerializer;$browser.$$incOutstandingRequestCount('$http');var requestInterceptors=[];var responseInterceptors=[];var promise=$q.resolve(config);// apply interceptors
	forEach(reversedInterceptors,function(interceptor){if(interceptor.request||interceptor.requestError){requestInterceptors.unshift(interceptor.request,interceptor.requestError);}if(interceptor.response||interceptor.responseError){responseInterceptors.push(interceptor.response,interceptor.responseError);}});promise=chainInterceptors(promise,requestInterceptors);promise=promise.then(serverRequest);promise=chainInterceptors(promise,responseInterceptors);promise=promise.finally(completeOutstandingRequest);return promise;function chainInterceptors(promise,interceptors){for(var i=0,ii=interceptors.length;i<ii;){var thenFn=interceptors[i++];var rejectFn=interceptors[i++];promise=promise.then(thenFn,rejectFn);}interceptors.length=0;return promise;}function completeOutstandingRequest(){$browser.$$completeOutstandingRequest(noop,'$http');}function executeHeaderFns(headers,config){var headerContent,processedHeaders={};forEach(headers,function(headerFn,header){if(isFunction(headerFn)){headerContent=headerFn(config);if(headerContent!=null){processedHeaders[header]=headerContent;}}else{processedHeaders[header]=headerFn;}});return processedHeaders;}function mergeHeaders(config){var defHeaders=defaults.headers,reqHeaders=extend({},config.headers),defHeaderName,lowercaseDefHeaderName,reqHeaderName;defHeaders=extend({},defHeaders.common,defHeaders[lowercase(config.method)]);// using for-in instead of forEach to avoid unnecessary iteration after header has been found
	defaultHeadersIteration:for(defHeaderName in defHeaders){lowercaseDefHeaderName=lowercase(defHeaderName);for(reqHeaderName in reqHeaders){if(lowercase(reqHeaderName)===lowercaseDefHeaderName){continue defaultHeadersIteration;}}reqHeaders[defHeaderName]=defHeaders[defHeaderName];}// execute if header value is a function for merged headers
	return executeHeaderFns(reqHeaders,shallowCopy(config));}function serverRequest(config){var headers=config.headers;var reqData=transformData(config.data,headersGetter(headers),undefined,config.transformRequest);// strip content-type if data is undefined
	if(isUndefined(reqData)){forEach(headers,function(value,header){if(lowercase(header)==='content-type'){delete headers[header];}});}if(isUndefined(config.withCredentials)&&!isUndefined(defaults.withCredentials)){config.withCredentials=defaults.withCredentials;}// send request
	return sendReq(config,reqData).then(transformResponse,transformResponse);}function transformResponse(response){// make a copy since the response must be cacheable
	var resp=extend({},response);resp.data=transformData(response.data,response.headers,response.status,config.transformResponse);return isSuccess(response.status)?resp:$q.reject(resp);}}$http.pendingRequests=[];/**
	     * @ngdoc method
	     * @name $http#get
	     *
	     * @description
	     * Shortcut method to perform `GET` request.
	     *
	     * @param {string|TrustedObject} url Absolute or relative URL of the resource that is being requested;
	     *                                   or an object created by a call to `$sce.trustAsResourceUrl(url)`.
	     * @param {Object=} config Optional configuration object. See {@link ng.$http#$http-arguments `$http()` arguments}.
	     * @returns {HttpPromise}  A Promise that will be resolved or rejected with a response object.
	     * See {@link ng.$http#$http-returns `$http()` return value}.
	     *//**
	     * @ngdoc method
	     * @name $http#delete
	     *
	     * @description
	     * Shortcut method to perform `DELETE` request.
	     *
	     * @param {string|TrustedObject} url Absolute or relative URL of the resource that is being requested;
	     *                                   or an object created by a call to `$sce.trustAsResourceUrl(url)`.
	     * @param {Object=} config Optional configuration object. See {@link ng.$http#$http-arguments `$http()` arguments}.
	     * @returns {HttpPromise}  A Promise that will be resolved or rejected with a response object.
	     * See {@link ng.$http#$http-returns `$http()` return value}.
	     *//**
	     * @ngdoc method
	     * @name $http#head
	     *
	     * @description
	     * Shortcut method to perform `HEAD` request.
	     *
	     * @param {string|TrustedObject} url Absolute or relative URL of the resource that is being requested;
	     *                                   or an object created by a call to `$sce.trustAsResourceUrl(url)`.
	     * @param {Object=} config Optional configuration object. See {@link ng.$http#$http-arguments `$http()` arguments}.
	     * @returns {HttpPromise}  A Promise that will be resolved or rejected with a response object.
	     * See {@link ng.$http#$http-returns `$http()` return value}.
	     *//**
	     * @ngdoc method
	     * @name $http#jsonp
	     *
	     * @description
	     * Shortcut method to perform `JSONP` request.
	     *
	     * Note that, since JSONP requests are sensitive because the response is given full access to the browser,
	     * the url must be declared, via {@link $sce} as a trusted resource URL.
	     * You can trust a URL by adding it to the trusted resource URL list via
	     * {@link $sceDelegateProvider#trustedResourceUrlList  `$sceDelegateProvider.trustedResourceUrlList`} or
	     * by explicitly trusting the URL via {@link $sce#trustAsResourceUrl `$sce.trustAsResourceUrl(url)`}.
	     *
	     * You should avoid generating the URL for the JSONP request from user provided data.
	     * Provide additional query parameters via `params` property of the `config` parameter, rather than
	     * modifying the URL itself.
	     *
	     * JSONP requests must specify a callback to be used in the response from the server. This callback
	     * is passed as a query parameter in the request. You must specify the name of this parameter by
	     * setting the `jsonpCallbackParam` property on the request config object.
	     *
	     * ```
	     * $http.jsonp('some/trusted/url', {jsonpCallbackParam: 'callback'})
	     * ```
	     *
	     * You can also specify a default callback parameter name in `$http.defaults.jsonpCallbackParam`.
	     * Initially this is set to `'callback'`.
	     *
	     * <div class="alert alert-danger">
	     * You can no longer use the `JSON_CALLBACK` string as a placeholder for specifying where the callback
	     * parameter value should go.
	     * </div>
	     *
	     * If you would like to customise where and how the callbacks are stored then try overriding
	     * or decorating the {@link $jsonpCallbacks} service.
	     *
	     * @param {string|TrustedObject} url Absolute or relative URL of the resource that is being requested;
	     *                                   or an object created by a call to `$sce.trustAsResourceUrl(url)`.
	     * @param {Object=} config Optional configuration object. See {@link ng.$http#$http-arguments `$http()` arguments}.
	     * @returns {HttpPromise}  A Promise that will be resolved or rejected with a response object.
	     * See {@link ng.$http#$http-returns `$http()` return value}.
	     */createShortMethods('get','delete','head','jsonp');/**
	     * @ngdoc method
	     * @name $http#post
	     *
	     * @description
	     * Shortcut method to perform `POST` request.
	     *
	     * @param {string} url Relative or absolute URL specifying the destination of the request
	     * @param {*} data Request content
	     * @param {Object=} config Optional configuration object. See {@link ng.$http#$http-arguments `$http()` arguments}.
	     * @returns {HttpPromise}  A Promise that will be resolved or rejected with a response object.
	     * See {@link ng.$http#$http-returns `$http()` return value}.
	     *//**
	     * @ngdoc method
	     * @name $http#put
	     *
	     * @description
	     * Shortcut method to perform `PUT` request.
	     *
	     * @param {string} url Relative or absolute URL specifying the destination of the request
	     * @param {*} data Request content
	     * @param {Object=} config Optional configuration object. See {@link ng.$http#$http-arguments `$http()` arguments}.
	     * @returns {HttpPromise}  A Promise that will be resolved or rejected with a response object.
	     * See {@link ng.$http#$http-returns `$http()` return value}.
	     *//**
	      * @ngdoc method
	      * @name $http#patch
	      *
	      * @description
	      * Shortcut method to perform `PATCH` request.
	      *
	      * @param {string} url Relative or absolute URL specifying the destination of the request
	      * @param {*} data Request content
	      * @param {Object=} config Optional configuration object. See {@link ng.$http#$http-arguments `$http()` arguments}.
	      * @returns {HttpPromise}  A Promise that will be resolved or rejected with a response object.
	      * See {@link ng.$http#$http-returns `$http()` return value}.
	      */createShortMethodsWithData('post','put','patch');/**
	         * @ngdoc property
	         * @name $http#defaults
	         *
	         * @description
	         * Runtime equivalent of the `$httpProvider.defaults` property. Allows configuration of
	         * default headers, withCredentials as well as request and response transformations.
	         *
	         * See "Setting HTTP Headers" and "Transforming Requests and Responses" sections above.
	         */$http.defaults=defaults;return $http;function createShortMethods(names){forEach(arguments,function(name){$http[name]=function(url,config){return $http(extend({},config||{},{method:name,url:url}));};});}function createShortMethodsWithData(name){forEach(arguments,function(name){$http[name]=function(url,data,config){return $http(extend({},config||{},{method:name,url:url,data:data}));};});}/**
	     * Makes the request.
	     *
	     * !!! ACCESSES CLOSURE VARS:
	     * $httpBackend, defaults, $log, $rootScope, defaultCache, $http.pendingRequests
	     */function sendReq(config,reqData){var deferred=$q.defer(),promise=deferred.promise,cache,cachedResp,reqHeaders=config.headers,isJsonp=lowercase(config.method)==='jsonp',url=config.url;if(isJsonp){// JSONP is a pretty sensitive operation where we're allowing a script to have full access to
	// our DOM and JS space.  So we require that the URL satisfies SCE.RESOURCE_URL.
	url=$sce.getTrustedResourceUrl(url);}else if(!isString(url)){// If it is not a string then the URL must be a $sce trusted object
	url=$sce.valueOf(url);}url=buildUrl(url,config.paramSerializer(config.params));if(isJsonp){// Check the url and add the JSONP callback placeholder
	url=sanitizeJsonpCallbackParam(url,config.jsonpCallbackParam);}$http.pendingRequests.push(config);promise.then(removePendingReq,removePendingReq);if((config.cache||defaults.cache)&&config.cache!==false&&(config.method==='GET'||config.method==='JSONP')){cache=isObject(config.cache)?config.cache:isObject(/** @type {?} */defaults.cache)?/** @type {?} */defaults.cache:defaultCache;}if(cache){cachedResp=cache.get(url);if(isDefined(cachedResp)){if(isPromiseLike(cachedResp)){// cached request has already been sent, but there is no response yet
	cachedResp.then(resolvePromiseWithResult,resolvePromiseWithResult);}else{// serving from cache
	if(isArray(cachedResp)){resolvePromise(cachedResp[1],cachedResp[0],shallowCopy(cachedResp[2]),cachedResp[3],cachedResp[4]);}else{resolvePromise(cachedResp,200,{},'OK','complete');}}}else{// put the promise for the non-transformed response into cache as a placeholder
	cache.put(url,promise);}}// if we won't have the response in cache, set the xsrf headers and
	// send the request to the backend
	if(isUndefined(cachedResp)){var xsrfValue=urlIsAllowedOrigin(config.url)?$$cookieReader()[config.xsrfCookieName||defaults.xsrfCookieName]:undefined;if(xsrfValue){reqHeaders[config.xsrfHeaderName||defaults.xsrfHeaderName]=xsrfValue;}$httpBackend(config.method,url,reqData,done,reqHeaders,config.timeout,config.withCredentials,config.responseType,createApplyHandlers(config.eventHandlers),createApplyHandlers(config.uploadEventHandlers));}return promise;function createApplyHandlers(eventHandlers){if(eventHandlers){var applyHandlers={};forEach(eventHandlers,function(eventHandler,key){applyHandlers[key]=function(event){if(useApplyAsync){$rootScope.$applyAsync(callEventHandler);}else if($rootScope.$$phase){callEventHandler();}else{$rootScope.$apply(callEventHandler);}function callEventHandler(){eventHandler(event);}};});return applyHandlers;}}/**
	       * Callback registered to $httpBackend():
	       *  - caches the response if desired
	       *  - resolves the raw $http promise
	       *  - calls $apply
	       */function done(status,response,headersString,statusText,xhrStatus){if(cache){if(isSuccess(status)){cache.put(url,[status,response,parseHeaders(headersString),statusText,xhrStatus]);}else{// remove promise from the cache
	cache.remove(url);}}function resolveHttpPromise(){resolvePromise(response,status,headersString,statusText,xhrStatus);}if(useApplyAsync){$rootScope.$applyAsync(resolveHttpPromise);}else{resolveHttpPromise();if(!$rootScope.$$phase)$rootScope.$apply();}}/**
	       * Resolves the raw $http promise.
	       */function resolvePromise(response,status,headers,statusText,xhrStatus){//status: HTTP response status code, 0, -1 (aborted by timeout / promise)
	status=status>=-1?status:0;(isSuccess(status)?deferred.resolve:deferred.reject)({data:response,status:status,headers:headersGetter(headers),config:config,statusText:statusText,xhrStatus:xhrStatus});}function resolvePromiseWithResult(result){resolvePromise(result.data,result.status,shallowCopy(result.headers()),result.statusText,result.xhrStatus);}function removePendingReq(){var idx=$http.pendingRequests.indexOf(config);if(idx!==-1)$http.pendingRequests.splice(idx,1);}}function buildUrl(url,serializedParams){if(serializedParams.length>0){url+=(url.indexOf('?')===-1?'?':'&')+serializedParams;}return url;}function sanitizeJsonpCallbackParam(url,cbKey){var parts=url.split('?');if(parts.length>2){// Throw if the url contains more than one `?` query indicator
	throw $httpMinErr('badjsonp','Illegal use more than one "?", in url, "{1}"',url);}var params=parseKeyValue(parts[1]);forEach(params,function(value,key){if(value==='JSON_CALLBACK'){// Throw if the url already contains a reference to JSON_CALLBACK
	throw $httpMinErr('badjsonp','Illegal use of JSON_CALLBACK in url, "{0}"',url);}if(key===cbKey){// Throw if the callback param was already provided
	throw $httpMinErr('badjsonp','Illegal use of callback param, "{0}", in url, "{1}"',cbKey,url);}});// Add in the JSON_CALLBACK callback param value
	url+=(url.indexOf('?')===-1?'?':'&')+cbKey+'=JSON_CALLBACK';return url;}}];}/**
	 * @ngdoc service
	 * @name $xhrFactory
	 * @this
	 *
	 * @description
	 * Factory function used to create XMLHttpRequest objects.
	 *
	 * Replace or decorate this service to create your own custom XMLHttpRequest objects.
	 *
	 * ```
	 * angular.module('myApp', [])
	 * .factory('$xhrFactory', function() {
	 *   return function createXhr(method, url) {
	 *     return new window.XMLHttpRequest({mozSystem: true});
	 *   };
	 * });
	 * ```
	 *
	 * @param {string} method HTTP method of the request (GET, POST, PUT, ..)
	 * @param {string} url URL of the request.
	 */function $xhrFactoryProvider(){this.$get=function(){return function createXhr(){return new window.XMLHttpRequest();};};}/**
	 * @ngdoc service
	 * @name $httpBackend
	 * @requires $jsonpCallbacks
	 * @requires $document
	 * @requires $xhrFactory
	 * @this
	 *
	 * @description
	 * HTTP backend used by the {@link ng.$http service} that delegates to
	 * XMLHttpRequest object or JSONP and deals with browser incompatibilities.
	 *
	 * You should never need to use this service directly, instead use the higher-level abstractions:
	 * {@link ng.$http $http} or {@link ngResource.$resource $resource}.
	 *
	 * During testing this implementation is swapped with {@link ngMock.$httpBackend mock
	 * $httpBackend} which can be trained with responses.
	 */function $HttpBackendProvider(){this.$get=['$browser','$jsonpCallbacks','$document','$xhrFactory',function($browser,$jsonpCallbacks,$document,$xhrFactory){return createHttpBackend($browser,$xhrFactory,$browser.defer,$jsonpCallbacks,$document[0]);}];}function createHttpBackend($browser,createXhr,$browserDefer,callbacks,rawDocument){// TODO(vojta): fix the signature
	return function(method,url,post,callback,headers,timeout,withCredentials,responseType,eventHandlers,uploadEventHandlers){url=url||$browser.url();if(lowercase(method)==='jsonp'){var callbackPath=callbacks.createCallback(url);var jsonpDone=jsonpReq(url,callbackPath,function(status,text){// jsonpReq only ever sets status to 200 (OK), 404 (ERROR) or -1 (WAITING)
	var response=status===200&&callbacks.getResponse(callbackPath);completeRequest(callback,status,response,'',text,'complete');callbacks.removeCallback(callbackPath);});}else{var xhr=createXhr(method,url);var abortedByTimeout=false;xhr.open(method,url,true);forEach(headers,function(value,key){if(isDefined(value)){xhr.setRequestHeader(key,value);}});xhr.onload=function requestLoaded(){var statusText=xhr.statusText||'';// responseText is the old-school way of retrieving response (supported by IE9)
	// response/responseType properties were introduced in XHR Level2 spec (supported by IE10)
	var response='response'in xhr?xhr.response:xhr.responseText;// normalize IE9 bug (http://bugs.jquery.com/ticket/1450)
	var status=xhr.status===1223?204:xhr.status;// fix status code when it is 0 (0 status is undocumented).
	// Occurs when accessing file resources or on Android 4.1 stock browser
	// while retrieving files from application cache.
	if(status===0){status=response?200:urlResolve(url).protocol==='file'?404:0;}completeRequest(callback,status,response,xhr.getAllResponseHeaders(),statusText,'complete');};var requestError=function requestError(){// The response is always empty
	// See https://xhr.spec.whatwg.org/#request-error-steps and https://fetch.spec.whatwg.org/#concept-network-error
	completeRequest(callback,-1,null,null,'','error');};var requestAborted=function requestAborted(){completeRequest(callback,-1,null,null,'',abortedByTimeout?'timeout':'abort');};var requestTimeout=function requestTimeout(){// The response is always empty
	// See https://xhr.spec.whatwg.org/#request-error-steps and https://fetch.spec.whatwg.org/#concept-network-error
	completeRequest(callback,-1,null,null,'','timeout');};xhr.onerror=requestError;xhr.ontimeout=requestTimeout;xhr.onabort=requestAborted;forEach(eventHandlers,function(value,key){xhr.addEventListener(key,value);});forEach(uploadEventHandlers,function(value,key){xhr.upload.addEventListener(key,value);});if(withCredentials){xhr.withCredentials=true;}if(responseType){try{xhr.responseType=responseType;}catch(e){// WebKit added support for the json responseType value on 09/03/2013
	// https://bugs.webkit.org/show_bug.cgi?id=73648. Versions of Safari prior to 7 are
	// known to throw when setting the value "json" as the response type. Other older
	// browsers implementing the responseType
	//
	// The json response type can be ignored if not supported, because JSON payloads are
	// parsed on the client-side regardless.
	if(responseType!=='json'){throw e;}}}xhr.send(isUndefined(post)?null:post);}// Since we are using xhr.abort() when a request times out, we have to set a flag that
	// indicates to requestAborted if the request timed out or was aborted.
	//
	// http.timeout = numerical timeout   timeout
	// http.timeout = $timeout            timeout
	// http.timeout = promise             abort
	// xhr.abort()                        abort (The xhr object is normally inaccessible, but
	//                                    can be exposed with the xhrFactory)
	if(timeout>0){var timeoutId=$browserDefer(function(){timeoutRequest('timeout');},timeout);}else if(isPromiseLike(timeout)){timeout.then(function(){timeoutRequest(isDefined(timeout.$$timeoutId)?'timeout':'abort');});}function timeoutRequest(reason){abortedByTimeout=reason==='timeout';if(jsonpDone){jsonpDone();}if(xhr){xhr.abort();}}function completeRequest(callback,status,response,headersString,statusText,xhrStatus){// cancel timeout and subsequent timeout promise resolution
	if(isDefined(timeoutId)){$browserDefer.cancel(timeoutId);}jsonpDone=xhr=null;callback(status,response,headersString,statusText,xhrStatus);}};function jsonpReq(url,callbackPath,done){url=url.replace('JSON_CALLBACK',callbackPath);// we can't use jQuery/jqLite here because jQuery does crazy stuff with script elements, e.g.:
	// - fetches local scripts via XHR and evals them
	// - adds and immediately removes script elements from the document
	var script=rawDocument.createElement('script'),_callback=null;script.type='text/javascript';script.src=url;script.async=true;_callback=function callback(event){script.removeEventListener('load',_callback);script.removeEventListener('error',_callback);rawDocument.body.removeChild(script);script=null;var status=-1;var text='unknown';if(event){if(event.type==='load'&&!callbacks.wasCalled(callbackPath)){event={type:'error'};}text=event.type;status=event.type==='error'?404:200;}if(done){done(status,text);}};script.addEventListener('load',_callback);script.addEventListener('error',_callback);rawDocument.body.appendChild(script);return _callback;}}var $interpolateMinErr=angular.$interpolateMinErr=minErr('$interpolate');$interpolateMinErr.throwNoconcat=function(text){throw $interpolateMinErr('noconcat','Error while interpolating: {0}\nStrict Contextual Escaping disallows '+'interpolations that concatenate multiple expressions when a trusted value is '+'required.  See http://docs.angularjs.org/api/ng.$sce',text);};$interpolateMinErr.interr=function(text,err){return $interpolateMinErr('interr','Can\'t interpolate: {0}\n{1}',text,err.toString());};/**
	 * @ngdoc provider
	 * @name $interpolateProvider
	 * @this
	 *
	 * @description
	 *
	 * Used for configuring the interpolation markup. Defaults to `{{` and `}}`.
	 *
	 * <div class="alert alert-danger">
	 * This feature is sometimes used to mix different markup languages, e.g. to wrap an AngularJS
	 * template within a Python Jinja template (or any other template language). Mixing templating
	 * languages is **very dangerous**. The embedding template language will not safely escape AngularJS
	 * expressions, so any user-controlled values in the template will cause Cross Site Scripting (XSS)
	 * security bugs!
	 * </div>
	 *
	 * @example
	<example name="custom-interpolation-markup" module="customInterpolationApp">
	<file name="index.html">
	<script>
	  var customInterpolationApp = angular.module('customInterpolationApp', []);
	
	  customInterpolationApp.config(function($interpolateProvider) {
	    $interpolateProvider.startSymbol('//');
	    $interpolateProvider.endSymbol('//');
	  });
	
	
	  customInterpolationApp.controller('DemoController', function() {
	      this.label = "This binding is brought you by // interpolation symbols.";
	  });
	</script>
	<div ng-controller="DemoController as demo">
	    //demo.label//
	</div>
	</file>
	<file name="protractor.js" type="protractor">
	  it('should interpolate binding with custom symbols', function() {
	    expect(element(by.binding('demo.label')).getText()).toBe('This binding is brought you by // interpolation symbols.');
	  });
	</file>
	</example>
	 */function $InterpolateProvider(){var startSymbol='{{';var endSymbol='}}';/**
	   * @ngdoc method
	   * @name $interpolateProvider#startSymbol
	   * @description
	   * Symbol to denote start of expression in the interpolated string. Defaults to `{{`.
	   *
	   * @param {string=} value new value to set the starting symbol to.
	   * @returns {string|self} Returns the symbol when used as getter and self if used as setter.
	   */this.startSymbol=function(value){if(value){startSymbol=value;return this;}return startSymbol;};/**
	   * @ngdoc method
	   * @name $interpolateProvider#endSymbol
	   * @description
	   * Symbol to denote the end of expression in the interpolated string. Defaults to `}}`.
	   *
	   * @param {string=} value new value to set the ending symbol to.
	   * @returns {string|self} Returns the symbol when used as getter and self if used as setter.
	   */this.endSymbol=function(value){if(value){endSymbol=value;return this;}return endSymbol;};this.$get=['$parse','$exceptionHandler','$sce',function($parse,$exceptionHandler,$sce){var startSymbolLength=startSymbol.length,endSymbolLength=endSymbol.length,escapedStartRegexp=new RegExp(startSymbol.replace(/./g,escape),'g'),escapedEndRegexp=new RegExp(endSymbol.replace(/./g,escape),'g');function escape(ch){return'\\\\\\'+ch;}function unescapeText(text){return text.replace(escapedStartRegexp,startSymbol).replace(escapedEndRegexp,endSymbol);}// TODO: this is the same as the constantWatchDelegate in parse.js
	function constantWatchDelegate(scope,listener,objectEquality,constantInterp){var unwatch=scope.$watch(function constantInterpolateWatch(scope){unwatch();return constantInterp(scope);},listener,objectEquality);return unwatch;}/**
	     * @ngdoc service
	     * @name $interpolate
	     * @kind function
	     *
	     * @requires $parse
	     * @requires $sce
	     *
	     * @description
	     *
	     * Compiles a string with markup into an interpolation function. This service is used by the
	     * HTML {@link ng.$compile $compile} service for data binding. See
	     * {@link ng.$interpolateProvider $interpolateProvider} for configuring the
	     * interpolation markup.
	     *
	     *
	     * ```js
	     *   var $interpolate = ...; // injected
	     *   var exp = $interpolate('Hello {{name | uppercase}}!');
	     *   expect(exp({name:'AngularJS'})).toEqual('Hello ANGULARJS!');
	     * ```
	     *
	     * `$interpolate` takes an optional fourth argument, `allOrNothing`. If `allOrNothing` is
	     * `true`, the interpolation function will return `undefined` unless all embedded expressions
	     * evaluate to a value other than `undefined`.
	     *
	     * ```js
	     *   var $interpolate = ...; // injected
	     *   var context = {greeting: 'Hello', name: undefined };
	     *
	     *   // default "forgiving" mode
	     *   var exp = $interpolate('{{greeting}} {{name}}!');
	     *   expect(exp(context)).toEqual('Hello !');
	     *
	     *   // "allOrNothing" mode
	     *   exp = $interpolate('{{greeting}} {{name}}!', false, null, true);
	     *   expect(exp(context)).toBeUndefined();
	     *   context.name = 'AngularJS';
	     *   expect(exp(context)).toEqual('Hello AngularJS!');
	     * ```
	     *
	     * `allOrNothing` is useful for interpolating URLs. `ngSrc` and `ngSrcset` use this behavior.
	     *
	     * #### Escaped Interpolation
	     * $interpolate provides a mechanism for escaping interpolation markers. Start and end markers
	     * can be escaped by preceding each of their characters with a REVERSE SOLIDUS U+005C (backslash).
	     * It will be rendered as a regular start/end marker, and will not be interpreted as an expression
	     * or binding.
	     *
	     * This enables web-servers to prevent script injection attacks and defacing attacks, to some
	     * degree, while also enabling code examples to work without relying on the
	     * {@link ng.directive:ngNonBindable ngNonBindable} directive.
	     *
	     * **For security purposes, it is strongly encouraged that web servers escape user-supplied data,
	     * replacing angle brackets (&lt;, &gt;) with &amp;lt; and &amp;gt; respectively, and replacing all
	     * interpolation start/end markers with their escaped counterparts.**
	     *
	     * Escaped interpolation markers are only replaced with the actual interpolation markers in rendered
	     * output when the $interpolate service processes the text. So, for HTML elements interpolated
	     * by {@link ng.$compile $compile}, or otherwise interpolated with the `mustHaveExpression` parameter
	     * set to `true`, the interpolated text must contain an unescaped interpolation expression. As such,
	     * this is typically useful only when user-data is used in rendering a template from the server, or
	     * when otherwise untrusted data is used by a directive.
	     *
	     * <example name="interpolation">
	     *  <file name="index.html">
	     *    <div ng-init="username='A user'">
	     *      <p ng-init="apptitle='Escaping demo'">{{apptitle}}: \{\{ username = "defaced value"; \}\}
	     *        </p>
	     *      <p><strong>{{username}}</strong> attempts to inject code which will deface the
	     *        application, but fails to accomplish their task, because the server has correctly
	     *        escaped the interpolation start/end markers with REVERSE SOLIDUS U+005C (backslash)
	     *        characters.</p>
	     *      <p>Instead, the result of the attempted script injection is visible, and can be removed
	     *        from the database by an administrator.</p>
	     *    </div>
	     *  </file>
	     * </example>
	     *
	     * @knownIssue
	     * It is currently not possible for an interpolated expression to contain the interpolation end
	     * symbol. For example, `{{ '}}' }}` will be incorrectly interpreted as `{{ ' }}` + `' }}`, i.e.
	     * an interpolated expression consisting of a single-quote (`'`) and the `' }}` string.
	     *
	     * @knownIssue
	     * All directives and components must use the standard `{{` `}}` interpolation symbols
	     * in their templates. If you change the application interpolation symbols the {@link $compile}
	     * service will attempt to denormalize the standard symbols to the custom symbols.
	     * The denormalization process is not clever enough to know not to replace instances of the standard
	     * symbols where they would not normally be treated as interpolation symbols. For example in the following
	     * code snippet the closing braces of the literal object will get incorrectly denormalized:
	     *
	     * ```
	     * <div data-context='{"context":{"id":3,"type":"page"}}">
	     * ```
	     *
	     * The workaround is to ensure that such instances are separated by whitespace:
	     * ```
	     * <div data-context='{"context":{"id":3,"type":"page"} }">
	     * ```
	     *
	     * See https://github.com/angular/angular.js/pull/14610#issuecomment-219401099 for more information.
	     *
	     * @param {string} text The text with markup to interpolate.
	     * @param {boolean=} mustHaveExpression if set to true then the interpolation string must have
	     *    embedded expression in order to return an interpolation function. Strings with no
	     *    embedded expression will return null for the interpolation function.
	     * @param {string=} trustedContext when provided, the returned function passes the interpolated
	     *    result through {@link ng.$sce#getTrusted $sce.getTrusted(interpolatedResult,
	     *    trustedContext)} before returning it.  Refer to the {@link ng.$sce $sce} service that
	     *    provides Strict Contextual Escaping for details.
	     * @param {boolean=} allOrNothing if `true`, then the returned function returns undefined
	     *    unless all embedded expressions evaluate to a value other than `undefined`.
	     * @returns {function(context)} an interpolation function which is used to compute the
	     *    interpolated string. The function has these parameters:
	     *
	     * - `context`: evaluation context for all expressions embedded in the interpolated text
	     */function $interpolate(text,mustHaveExpression,trustedContext,allOrNothing){var contextAllowsConcatenation=trustedContext===$sce.URL||trustedContext===$sce.MEDIA_URL;// Provide a quick exit and simplified result function for text with no interpolation
	if(!text.length||text.indexOf(startSymbol)===-1){if(mustHaveExpression)return;var unescapedText=unescapeText(text);if(contextAllowsConcatenation){unescapedText=$sce.getTrusted(trustedContext,unescapedText);}var constantInterp=valueFn(unescapedText);constantInterp.exp=text;constantInterp.expressions=[];constantInterp.$$watchDelegate=constantWatchDelegate;return constantInterp;}allOrNothing=!!allOrNothing;var startIndex,endIndex,index=0,expressions=[],parseFns,textLength=text.length,exp,concat=[],expressionPositions=[],singleExpression;while(index<textLength){if((startIndex=text.indexOf(startSymbol,index))!==-1&&(endIndex=text.indexOf(endSymbol,startIndex+startSymbolLength))!==-1){if(index!==startIndex){concat.push(unescapeText(text.substring(index,startIndex)));}exp=text.substring(startIndex+startSymbolLength,endIndex);expressions.push(exp);index=endIndex+endSymbolLength;expressionPositions.push(concat.length);concat.push('');// Placeholder that will get replaced with the evaluated expression.
	}else{// we did not find an interpolation, so we have to add the remainder to the separators array
	if(index!==textLength){concat.push(unescapeText(text.substring(index)));}break;}}singleExpression=concat.length===1&&expressionPositions.length===1;// Intercept expression if we need to stringify concatenated inputs, which may be SCE trusted
	// objects rather than simple strings
	// (we don't modify the expression if the input consists of only a single trusted input)
	var interceptor=contextAllowsConcatenation&&singleExpression?undefined:parseStringifyInterceptor;parseFns=expressions.map(function(exp){return $parse(exp,interceptor);});// Concatenating expressions makes it hard to reason about whether some combination of
	// concatenated values are unsafe to use and could easily lead to XSS.  By requiring that a
	// single expression be used for some $sce-managed secure contexts (RESOURCE_URLs mostly),
	// we ensure that the value that's used is assigned or constructed by some JS code somewhere
	// that is more testable or make it obvious that you bound the value to some user controlled
	// value.  This helps reduce the load when auditing for XSS issues.
	// Note that URL and MEDIA_URL $sce contexts do not need this, since `$sce` can sanitize the values
	// passed to it. In that case, `$sce.getTrusted` will be called on either the single expression
	// or on the overall concatenated string (losing trusted types used in the mix, by design).
	// Both these methods will sanitize plain strings. Also, HTML could be included, but since it's
	// only used in srcdoc attributes, this would not be very useful.
	if(!mustHaveExpression||expressions.length){var compute=function compute(values){for(var i=0,ii=expressions.length;i<ii;i++){if(allOrNothing&&isUndefined(values[i]))return;concat[expressionPositions[i]]=values[i];}if(contextAllowsConcatenation){// If `singleExpression` then `concat[0]` might be a "trusted" value or `null`, rather than a string
	return $sce.getTrusted(trustedContext,singleExpression?concat[0]:concat.join(''));}else if(trustedContext&&concat.length>1){// This context does not allow more than one part, e.g. expr + string or exp + exp.
	$interpolateMinErr.throwNoconcat(text);}// In an unprivileged context or only one part: just concatenate and return.
	return concat.join('');};return extend(function interpolationFn(context){var i=0;var ii=expressions.length;var values=new Array(ii);try{for(;i<ii;i++){values[i]=parseFns[i](context);}return compute(values);}catch(err){$exceptionHandler($interpolateMinErr.interr(text,err));}},{// all of these properties are undocumented for now
	exp:text,//just for compatibility with regular watchers created via $watch
	expressions:expressions,$$watchDelegate:function $$watchDelegate(scope,listener){var lastValue;return scope.$watchGroup(parseFns,/** @this */function interpolateFnWatcher(values,oldValues){var currValue=compute(values);listener.call(this,currValue,values!==oldValues?lastValue:currValue,scope);lastValue=currValue;});}});}function parseStringifyInterceptor(value){try{// In concatenable contexts, getTrusted comes at the end, to avoid sanitizing individual
	// parts of a full URL. We don't care about losing the trustedness here.
	// In non-concatenable contexts, where there is only one expression, this interceptor is
	// not applied to the expression.
	value=trustedContext&&!contextAllowsConcatenation?$sce.getTrusted(trustedContext,value):$sce.valueOf(value);return allOrNothing&&!isDefined(value)?value:stringify(value);}catch(err){$exceptionHandler($interpolateMinErr.interr(text,err));}}}/**
	     * @ngdoc method
	     * @name $interpolate#startSymbol
	     * @description
	     * Symbol to denote the start of expression in the interpolated string. Defaults to `{{`.
	     *
	     * Use {@link ng.$interpolateProvider#startSymbol `$interpolateProvider.startSymbol`} to change
	     * the symbol.
	     *
	     * @returns {string} start symbol.
	     */$interpolate.startSymbol=function(){return startSymbol;};/**
	     * @ngdoc method
	     * @name $interpolate#endSymbol
	     * @description
	     * Symbol to denote the end of expression in the interpolated string. Defaults to `}}`.
	     *
	     * Use {@link ng.$interpolateProvider#endSymbol `$interpolateProvider.endSymbol`} to change
	     * the symbol.
	     *
	     * @returns {string} end symbol.
	     */$interpolate.endSymbol=function(){return endSymbol;};return $interpolate;}];}var $intervalMinErr=minErr('$interval');/** @this */function $IntervalProvider(){this.$get=['$$intervalFactory','$window',function($$intervalFactory,$window){var intervals={};var setIntervalFn=function setIntervalFn(tick,delay,deferred){var id=$window.setInterval(tick,delay);intervals[id]=deferred;return id;};var clearIntervalFn=function clearIntervalFn(id){$window.clearInterval(id);delete intervals[id];};/**
	     * @ngdoc service
	     * @name $interval
	     *
	     * @description
	     * AngularJS's wrapper for `window.setInterval`. The `fn` function is executed every `delay`
	     * milliseconds.
	     *
	     * The return value of registering an interval function is a promise. This promise will be
	     * notified upon each tick of the interval, and will be resolved after `count` iterations, or
	     * run indefinitely if `count` is not defined. The value of the notification will be the
	     * number of iterations that have run.
	     * To cancel an interval, call `$interval.cancel(promise)`.
	     *
	     * In tests you can use {@link ngMock.$interval#flush `$interval.flush(millis)`} to
	     * move forward by `millis` milliseconds and trigger any functions scheduled to run in that
	     * time.
	     *
	     * <div class="alert alert-warning">
	     * **Note**: Intervals created by this service must be explicitly destroyed when you are finished
	     * with them.  In particular they are not automatically destroyed when a controller's scope or a
	     * directive's element are destroyed.
	     * You should take this into consideration and make sure to always cancel the interval at the
	     * appropriate moment.  See the example below for more details on how and when to do this.
	     * </div>
	     *
	     * @param {function()} fn A function that should be called repeatedly. If no additional arguments
	     *   are passed (see below), the function is called with the current iteration count.
	     * @param {number} delay Number of milliseconds between each function call.
	     * @param {number=} [count=0] Number of times to repeat. If not set, or 0, will repeat
	     *   indefinitely.
	     * @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise
	     *   will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.
	     * @param {...*=} Pass additional parameters to the executed function.
	     * @returns {promise} A promise which will be notified on each iteration. It will resolve once all iterations of the interval complete.
	     *
	     * @example
	     * <example module="intervalExample" name="interval-service">
	     * <file name="index.html">
	     *   <script>
	     *     angular.module('intervalExample', [])
	     *       .controller('ExampleController', ['$scope', '$interval',
	     *         function($scope, $interval) {
	     *           $scope.format = 'M/d/yy h:mm:ss a';
	     *           $scope.blood_1 = 100;
	     *           $scope.blood_2 = 120;
	     *
	     *           var stop;
	     *           $scope.fight = function() {
	     *             // Don't start a new fight if we are already fighting
	     *             if ( angular.isDefined(stop) ) return;
	     *
	     *             stop = $interval(function() {
	     *               if ($scope.blood_1 > 0 && $scope.blood_2 > 0) {
	     *                 $scope.blood_1 = $scope.blood_1 - 3;
	     *                 $scope.blood_2 = $scope.blood_2 - 4;
	     *               } else {
	     *                 $scope.stopFight();
	     *               }
	     *             }, 100);
	     *           };
	     *
	     *           $scope.stopFight = function() {
	     *             if (angular.isDefined(stop)) {
	     *               $interval.cancel(stop);
	     *               stop = undefined;
	     *             }
	     *           };
	     *
	     *           $scope.resetFight = function() {
	     *             $scope.blood_1 = 100;
	     *             $scope.blood_2 = 120;
	     *           };
	     *
	     *           $scope.$on('$destroy', function() {
	     *             // Make sure that the interval is destroyed too
	     *             $scope.stopFight();
	     *           });
	     *         }])
	     *       // Register the 'myCurrentTime' directive factory method.
	     *       // We inject $interval and dateFilter service since the factory method is DI.
	     *       .directive('myCurrentTime', ['$interval', 'dateFilter',
	     *         function($interval, dateFilter) {
	     *           // return the directive link function. (compile function not needed)
	     *           return function(scope, element, attrs) {
	     *             var format,  // date format
	     *                 stopTime; // so that we can cancel the time updates
	     *
	     *             // used to update the UI
	     *             function updateTime() {
	     *               element.text(dateFilter(new Date(), format));
	     *             }
	     *
	     *             // watch the expression, and update the UI on change.
	     *             scope.$watch(attrs.myCurrentTime, function(value) {
	     *               format = value;
	     *               updateTime();
	     *             });
	     *
	     *             stopTime = $interval(updateTime, 1000);
	     *
	     *             // listen on DOM destroy (removal) event, and cancel the next UI update
	     *             // to prevent updating time after the DOM element was removed.
	     *             element.on('$destroy', function() {
	     *               $interval.cancel(stopTime);
	     *             });
	     *           }
	     *         }]);
	     *   </script>
	     *
	     *   <div>
	     *     <div ng-controller="ExampleController">
	     *       <label>Date format: <input ng-model="format"></label> <hr/>
	     *       Current time is: <span my-current-time="format"></span>
	     *       <hr/>
	     *       Blood 1 : <font color='red'>{{blood_1}}</font>
	     *       Blood 2 : <font color='red'>{{blood_2}}</font>
	     *       <button type="button" data-ng-click="fight()">Fight</button>
	     *       <button type="button" data-ng-click="stopFight()">StopFight</button>
	     *       <button type="button" data-ng-click="resetFight()">resetFight</button>
	     *     </div>
	     *   </div>
	     *
	     * </file>
	     * </example>
	     */var interval=$$intervalFactory(setIntervalFn,clearIntervalFn);/**
	     * @ngdoc method
	     * @name $interval#cancel
	     *
	     * @description
	     * Cancels a task associated with the `promise`.
	     *
	     * @param {Promise=} promise returned by the `$interval` function.
	     * @returns {boolean} Returns `true` if the task was successfully canceled.
	     */interval.cancel=function(promise){if(!promise)return false;if(!promise.hasOwnProperty('$$intervalId')){throw $intervalMinErr('badprom','`$interval.cancel()` called with a promise that was not generated by `$interval()`.');}if(!intervals.hasOwnProperty(promise.$$intervalId))return false;var id=promise.$$intervalId;var deferred=intervals[id];// Interval cancels should not report an unhandled promise.
	markQExceptionHandled(deferred.promise);deferred.reject('canceled');clearIntervalFn(id);return true;};return interval;}];}/** @this */function $$IntervalFactoryProvider(){this.$get=['$browser','$q','$$q','$rootScope',function($browser,$q,$$q,$rootScope){return function intervalFactory(setIntervalFn,clearIntervalFn){return function intervalFn(fn,delay,count,invokeApply){var hasParams=arguments.length>4,args=hasParams?sliceArgs(arguments,4):[],iteration=0,skipApply=isDefined(invokeApply)&&!invokeApply,deferred=(skipApply?$$q:$q).defer(),promise=deferred.promise;count=isDefined(count)?count:0;function callback(){if(!hasParams){fn(iteration);}else{fn.apply(null,args);}}function tick(){if(skipApply){$browser.defer(callback);}else{$rootScope.$evalAsync(callback);}deferred.notify(iteration++);if(count>0&&iteration>=count){deferred.resolve(iteration);clearIntervalFn(promise.$$intervalId);}if(!skipApply)$rootScope.$apply();}promise.$$intervalId=setIntervalFn(tick,delay,deferred,skipApply);return promise;};};}];}/**
	 * @ngdoc service
	 * @name $jsonpCallbacks
	 * @requires $window
	 * @description
	 * This service handles the lifecycle of callbacks to handle JSONP requests.
	 * Override this service if you wish to customise where the callbacks are stored and
	 * how they vary compared to the requested url.
	 */var $jsonpCallbacksProvider=/** @this */function $jsonpCallbacksProvider(){this.$get=function(){var callbacks=angular.callbacks;var callbackMap={};function _createCallback(callbackId){var callback=function callback(data){callback.data=data;callback.called=true;};callback.id=callbackId;return callback;}return{/**
	       * @ngdoc method
	       * @name $jsonpCallbacks#createCallback
	       * @param {string} url the url of the JSONP request
	       * @returns {string} the callback path to send to the server as part of the JSONP request
	       * @description
	       * {@link $httpBackend} calls this method to create a callback and get hold of the path to the callback
	       * to pass to the server, which will be used to call the callback with its payload in the JSONP response.
	       */createCallback:function createCallback(url){var callbackId='_'+(callbacks.$$counter++).toString(36);var callbackPath='angular.callbacks.'+callbackId;var callback=_createCallback(callbackId);callbackMap[callbackPath]=callbacks[callbackId]=callback;return callbackPath;},/**
	       * @ngdoc method
	       * @name $jsonpCallbacks#wasCalled
	       * @param {string} callbackPath the path to the callback that was sent in the JSONP request
	       * @returns {boolean} whether the callback has been called, as a result of the JSONP response
	       * @description
	       * {@link $httpBackend} calls this method to find out whether the JSONP response actually called the
	       * callback that was passed in the request.
	       */wasCalled:function wasCalled(callbackPath){return callbackMap[callbackPath].called;},/**
	       * @ngdoc method
	       * @name $jsonpCallbacks#getResponse
	       * @param {string} callbackPath the path to the callback that was sent in the JSONP request
	       * @returns {*} the data received from the response via the registered callback
	       * @description
	       * {@link $httpBackend} calls this method to get hold of the data that was provided to the callback
	       * in the JSONP response.
	       */getResponse:function getResponse(callbackPath){return callbackMap[callbackPath].data;},/**
	       * @ngdoc method
	       * @name $jsonpCallbacks#removeCallback
	       * @param {string} callbackPath the path to the callback that was sent in the JSONP request
	       * @description
	       * {@link $httpBackend} calls this method to remove the callback after the JSONP request has
	       * completed or timed-out.
	       */removeCallback:function removeCallback(callbackPath){var callback=callbackMap[callbackPath];delete callbacks[callback.id];delete callbackMap[callbackPath];}};};};/**
	 * @ngdoc service
	 * @name $locale
	 *
	 * @description
	 * $locale service provides localization rules for various AngularJS components. As of right now the
	 * only public api is:
	 *
	 * * `id` – `{string}` – locale id formatted as `languageId-countryId` (e.g. `en-us`)
	 *//* global stripHash: true */var PATH_MATCH=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,DEFAULT_PORTS={'http':80,'https':443,'ftp':21};var $locationMinErr=minErr('$location');/**
	 * Encode path using encodeUriSegment, ignoring forward slashes
	 *
	 * @param {string} path Path to encode
	 * @returns {string}
	 */function encodePath(path){var segments=path.split('/'),i=segments.length;while(i--){// decode forward slashes to prevent them from being double encoded
	segments[i]=encodeUriSegment(segments[i].replace(/%2F/g,'/'));}return segments.join('/');}function decodePath(path,html5Mode){var segments=path.split('/'),i=segments.length;while(i--){segments[i]=decodeURIComponent(segments[i]);if(html5Mode){// encode forward slashes to prevent them from being mistaken for path separators
	segments[i]=segments[i].replace(/\//g,'%2F');}}return segments.join('/');}function normalizePath(pathValue,searchValue,hashValue){var search=toKeyValue(searchValue),hash=hashValue?'#'+encodeUriSegment(hashValue):'',path=encodePath(pathValue);return path+(search?'?'+search:'')+hash;}function parseAbsoluteUrl(absoluteUrl,locationObj){var parsedUrl=urlResolve(absoluteUrl);locationObj.$$protocol=parsedUrl.protocol;locationObj.$$host=parsedUrl.hostname;locationObj.$$port=toInt(parsedUrl.port)||DEFAULT_PORTS[parsedUrl.protocol]||null;}var DOUBLE_SLASH_REGEX=/^\s*[\\/]{2,}/;function parseAppUrl(url,locationObj,html5Mode){if(DOUBLE_SLASH_REGEX.test(url)){throw $locationMinErr('badpath','Invalid url "{0}".',url);}var prefixed=url.charAt(0)!=='/';if(prefixed){url='/'+url;}var match=urlResolve(url);var path=prefixed&&match.pathname.charAt(0)==='/'?match.pathname.substring(1):match.pathname;locationObj.$$path=decodePath(path,html5Mode);locationObj.$$search=parseKeyValue(match.search);locationObj.$$hash=decodeURIComponent(match.hash);// make sure path starts with '/';
	if(locationObj.$$path&&locationObj.$$path.charAt(0)!=='/'){locationObj.$$path='/'+locationObj.$$path;}}function startsWith(str,search){return str.slice(0,search.length)===search;}/**
	 *
	 * @param {string} base
	 * @param {string} url
	 * @returns {string} returns text from `url` after `base` or `undefined` if it does not begin with
	 *                   the expected string.
	 */function stripBaseUrl(base,url){if(startsWith(url,base)){return url.substr(base.length);}}function stripHash(url){var index=url.indexOf('#');return index===-1?url:url.substr(0,index);}function stripFile(url){return url.substr(0,stripHash(url).lastIndexOf('/')+1);}/* return the server only (scheme://host:port) */function serverBase(url){return url.substring(0,url.indexOf('/',url.indexOf('//')+2));}/**
	 * LocationHtml5Url represents a URL
	 * This object is exposed as $location service when HTML5 mode is enabled and supported
	 *
	 * @constructor
	 * @param {string} appBase application base URL
	 * @param {string} appBaseNoFile application base URL stripped of any filename
	 * @param {string} basePrefix URL path prefix
	 */function LocationHtml5Url(appBase,appBaseNoFile,basePrefix){this.$$html5=true;basePrefix=basePrefix||'';parseAbsoluteUrl(appBase,this);/**
	   * Parse given HTML5 (regular) URL string into properties
	   * @param {string} url HTML5 URL
	   * @private
	   */this.$$parse=function(url){var pathUrl=stripBaseUrl(appBaseNoFile,url);if(!isString(pathUrl)){throw $locationMinErr('ipthprfx','Invalid url "{0}", missing path prefix "{1}".',url,appBaseNoFile);}parseAppUrl(pathUrl,this,true);if(!this.$$path){this.$$path='/';}this.$$compose();};this.$$normalizeUrl=function(url){return appBaseNoFile+url.substr(1);// first char is always '/'
	};this.$$parseLinkUrl=function(url,relHref){if(relHref&&relHref[0]==='#'){// special case for links to hash fragments:
	// keep the old url and only replace the hash fragment
	this.hash(relHref.slice(1));return true;}var appUrl,prevAppUrl;var rewrittenUrl;if(isDefined(appUrl=stripBaseUrl(appBase,url))){prevAppUrl=appUrl;if(basePrefix&&isDefined(appUrl=stripBaseUrl(basePrefix,appUrl))){rewrittenUrl=appBaseNoFile+(stripBaseUrl('/',appUrl)||appUrl);}else{rewrittenUrl=appBase+prevAppUrl;}}else if(isDefined(appUrl=stripBaseUrl(appBaseNoFile,url))){rewrittenUrl=appBaseNoFile+appUrl;}else if(appBaseNoFile===url+'/'){rewrittenUrl=appBaseNoFile;}if(rewrittenUrl){this.$$parse(rewrittenUrl);}return!!rewrittenUrl;};}/**
	 * LocationHashbangUrl represents URL
	 * This object is exposed as $location service when developer doesn't opt into html5 mode.
	 * It also serves as the base class for html5 mode fallback on legacy browsers.
	 *
	 * @constructor
	 * @param {string} appBase application base URL
	 * @param {string} appBaseNoFile application base URL stripped of any filename
	 * @param {string} hashPrefix hashbang prefix
	 */function LocationHashbangUrl(appBase,appBaseNoFile,hashPrefix){parseAbsoluteUrl(appBase,this);/**
	   * Parse given hashbang URL into properties
	   * @param {string} url Hashbang URL
	   * @private
	   */this.$$parse=function(url){var withoutBaseUrl=stripBaseUrl(appBase,url)||stripBaseUrl(appBaseNoFile,url);var withoutHashUrl;if(!isUndefined(withoutBaseUrl)&&withoutBaseUrl.charAt(0)==='#'){// The rest of the URL starts with a hash so we have
	// got either a hashbang path or a plain hash fragment
	withoutHashUrl=stripBaseUrl(hashPrefix,withoutBaseUrl);if(isUndefined(withoutHashUrl)){// There was no hashbang prefix so we just have a hash fragment
	withoutHashUrl=withoutBaseUrl;}}else{// There was no hashbang path nor hash fragment:
	// If we are in HTML5 mode we use what is left as the path;
	// Otherwise we ignore what is left
	if(this.$$html5){withoutHashUrl=withoutBaseUrl;}else{withoutHashUrl='';if(isUndefined(withoutBaseUrl)){appBase=url;/** @type {?} */this.replace();}}}parseAppUrl(withoutHashUrl,this,false);this.$$path=removeWindowsDriveName(this.$$path,withoutHashUrl,appBase);this.$$compose();/*
	     * In Windows, on an anchor node on documents loaded from
	     * the filesystem, the browser will return a pathname
	     * prefixed with the drive name ('/C:/path') when a
	     * pathname without a drive is set:
	     *  * a.setAttribute('href', '/foo')
	     *   * a.pathname === '/C:/foo' //true
	     *
	     * Inside of AngularJS, we're always using pathnames that
	     * do not include drive names for routing.
	     */function removeWindowsDriveName(path,url,base){/*
	      Matches paths for file protocol on windows,
	      such as /C:/foo/bar, and captures only /foo/bar.
	      */var windowsFilePathExp=/^\/[A-Z]:(\/.*)/;var firstPathSegmentMatch;//Get the relative path from the input URL.
	if(startsWith(url,base)){url=url.replace(base,'');}// The input URL intentionally contains a first path segment that ends with a colon.
	if(windowsFilePathExp.exec(url)){return path;}firstPathSegmentMatch=windowsFilePathExp.exec(path);return firstPathSegmentMatch?firstPathSegmentMatch[1]:path;}};this.$$normalizeUrl=function(url){return appBase+(url?hashPrefix+url:'');};this.$$parseLinkUrl=function(url,relHref){if(stripHash(appBase)===stripHash(url)){this.$$parse(url);return true;}return false;};}/**
	 * LocationHashbangUrl represents URL
	 * This object is exposed as $location service when html5 history api is enabled but the browser
	 * does not support it.
	 *
	 * @constructor
	 * @param {string} appBase application base URL
	 * @param {string} appBaseNoFile application base URL stripped of any filename
	 * @param {string} hashPrefix hashbang prefix
	 */function LocationHashbangInHtml5Url(appBase,appBaseNoFile,hashPrefix){this.$$html5=true;LocationHashbangUrl.apply(this,arguments);this.$$parseLinkUrl=function(url,relHref){if(relHref&&relHref[0]==='#'){// special case for links to hash fragments:
	// keep the old url and only replace the hash fragment
	this.hash(relHref.slice(1));return true;}var rewrittenUrl;var appUrl;if(appBase===stripHash(url)){rewrittenUrl=url;}else if(appUrl=stripBaseUrl(appBaseNoFile,url)){rewrittenUrl=appBase+hashPrefix+appUrl;}else if(appBaseNoFile===url+'/'){rewrittenUrl=appBaseNoFile;}if(rewrittenUrl){this.$$parse(rewrittenUrl);}return!!rewrittenUrl;};this.$$normalizeUrl=function(url){// include hashPrefix in $$absUrl when $$url is empty so IE9 does not reload page because of removal of '#'
	return appBase+hashPrefix+url;};}var locationPrototype={/**
	   * Ensure absolute URL is initialized.
	   * @private
	   */$$absUrl:'',/**
	   * Are we in html5 mode?
	   * @private
	   */$$html5:false,/**
	   * Has any change been replacing?
	   * @private
	   */$$replace:false,/**
	   * Compose url and update `url` and `absUrl` property
	   * @private
	   */$$compose:function $$compose(){this.$$url=normalizePath(this.$$path,this.$$search,this.$$hash);this.$$absUrl=this.$$normalizeUrl(this.$$url);this.$$urlUpdatedByLocation=true;},/**
	   * @ngdoc method
	   * @name $location#absUrl
	   *
	   * @description
	   * This method is getter only.
	   *
	   * Return full URL representation with all segments encoded according to rules specified in
	   * [RFC 3986](http://www.ietf.org/rfc/rfc3986.txt).
	   *
	   *
	   * ```js
	   * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
	   * var absUrl = $location.absUrl();
	   * // => "http://example.com/#/some/path?foo=bar&baz=xoxo"
	   * ```
	   *
	   * @return {string} full URL
	   */absUrl:locationGetter('$$absUrl'),/**
	   * @ngdoc method
	   * @name $location#url
	   *
	   * @description
	   * This method is getter / setter.
	   *
	   * Return URL (e.g. `/path?a=b#hash`) when called without any parameter.
	   *
	   * Change path, search and hash, when called with parameter and return `$location`.
	   *
	   *
	   * ```js
	   * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
	   * var url = $location.url();
	   * // => "/some/path?foo=bar&baz=xoxo"
	   * ```
	   *
	   * @param {string=} url New URL without base prefix (e.g. `/path?a=b#hash`)
	   * @return {string} url
	   */url:function url(_url){if(isUndefined(_url)){return this.$$url;}var match=PATH_MATCH.exec(_url);if(match[1]||_url==='')this.path(decodeURIComponent(match[1]));if(match[2]||match[1]||_url==='')this.search(match[3]||'');this.hash(match[5]||'');return this;},/**
	   * @ngdoc method
	   * @name $location#protocol
	   *
	   * @description
	   * This method is getter only.
	   *
	   * Return protocol of current URL.
	   *
	   *
	   * ```js
	   * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
	   * var protocol = $location.protocol();
	   * // => "http"
	   * ```
	   *
	   * @return {string} protocol of current URL
	   */protocol:locationGetter('$$protocol'),/**
	   * @ngdoc method
	   * @name $location#host
	   *
	   * @description
	   * This method is getter only.
	   *
	   * Return host of current URL.
	   *
	   * Note: compared to the non-AngularJS version `location.host` which returns `hostname:port`, this returns the `hostname` portion only.
	   *
	   *
	   * ```js
	   * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
	   * var host = $location.host();
	   * // => "example.com"
	   *
	   * // given URL http://user:password@example.com:8080/#/some/path?foo=bar&baz=xoxo
	   * host = $location.host();
	   * // => "example.com"
	   * host = location.host;
	   * // => "example.com:8080"
	   * ```
	   *
	   * @return {string} host of current URL.
	   */host:locationGetter('$$host'),/**
	   * @ngdoc method
	   * @name $location#port
	   *
	   * @description
	   * This method is getter only.
	   *
	   * Return port of current URL.
	   *
	   *
	   * ```js
	   * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
	   * var port = $location.port();
	   * // => 80
	   * ```
	   *
	   * @return {Number} port
	   */port:locationGetter('$$port'),/**
	   * @ngdoc method
	   * @name $location#path
	   *
	   * @description
	   * This method is getter / setter.
	   *
	   * Return path of current URL when called without any parameter.
	   *
	   * Change path when called with parameter and return `$location`.
	   *
	   * Note: Path should always begin with forward slash (/), this method will add the forward slash
	   * if it is missing.
	   *
	   *
	   * ```js
	   * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
	   * var path = $location.path();
	   * // => "/some/path"
	   * ```
	   *
	   * @param {(string|number)=} path New path
	   * @return {(string|object)} path if called with no parameters, or `$location` if called with a parameter
	   */path:locationGetterSetter('$$path',function(path){path=path!==null?path.toString():'';return path.charAt(0)==='/'?path:'/'+path;}),/**
	   * @ngdoc method
	   * @name $location#search
	   *
	   * @description
	   * This method is getter / setter.
	   *
	   * Return search part (as object) of current URL when called without any parameter.
	   *
	   * Change search part when called with parameter and return `$location`.
	   *
	   *
	   * ```js
	   * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
	   * var searchObject = $location.search();
	   * // => {foo: 'bar', baz: 'xoxo'}
	   *
	   * // set foo to 'yipee'
	   * $location.search('foo', 'yipee');
	   * // $location.search() => {foo: 'yipee', baz: 'xoxo'}
	   * ```
	   *
	   * @param {string|Object.<string>|Object.<Array.<string>>} search New search params - string or
	   * hash object.
	   *
	   * When called with a single argument the method acts as a setter, setting the `search` component
	   * of `$location` to the specified value.
	   *
	   * If the argument is a hash object containing an array of values, these values will be encoded
	   * as duplicate search parameters in the URL.
	   *
	   * @param {(string|Number|Array<string>|boolean)=} paramValue If `search` is a string or number, then `paramValue`
	   * will override only a single search property.
	   *
	   * If `paramValue` is an array, it will override the property of the `search` component of
	   * `$location` specified via the first argument.
	   *
	   * If `paramValue` is `null`, the property specified via the first argument will be deleted.
	   *
	   * If `paramValue` is `true`, the property specified via the first argument will be added with no
	   * value nor trailing equal sign.
	   *
	   * @return {Object} If called with no arguments returns the parsed `search` object. If called with
	   * one or more arguments returns `$location` object itself.
	   */search:function search(_search,paramValue){switch(arguments.length){case 0:return this.$$search;case 1:if(isString(_search)||isNumber(_search)){_search=_search.toString();this.$$search=parseKeyValue(_search);}else if(isObject(_search)){_search=copy(_search,{});// remove object undefined or null properties
	forEach(_search,function(value,key){if(value==null)delete _search[key];});this.$$search=_search;}else{throw $locationMinErr('isrcharg','The first argument of the `$location#search()` call must be a string or an object.');}break;default:if(isUndefined(paramValue)||paramValue===null){delete this.$$search[_search];}else{this.$$search[_search]=paramValue;}}this.$$compose();return this;},/**
	   * @ngdoc method
	   * @name $location#hash
	   *
	   * @description
	   * This method is getter / setter.
	   *
	   * Returns the hash fragment when called without any parameters.
	   *
	   * Changes the hash fragment when called with a parameter and returns `$location`.
	   *
	   *
	   * ```js
	   * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo#hashValue
	   * var hash = $location.hash();
	   * // => "hashValue"
	   * ```
	   *
	   * @param {(string|number)=} hash New hash fragment
	   * @return {string} hash
	   */hash:locationGetterSetter('$$hash',function(hash){return hash!==null?hash.toString():'';}),/**
	   * @ngdoc method
	   * @name $location#replace
	   *
	   * @description
	   * If called, all changes to $location during the current `$digest` will replace the current history
	   * record, instead of adding a new one.
	   */replace:function replace(){this.$$replace=true;return this;}};forEach([LocationHashbangInHtml5Url,LocationHashbangUrl,LocationHtml5Url],function(Location){Location.prototype=Object.create(locationPrototype);/**
	   * @ngdoc method
	   * @name $location#state
	   *
	   * @description
	   * This method is getter / setter.
	   *
	   * Return the history state object when called without any parameter.
	   *
	   * Change the history state object when called with one parameter and return `$location`.
	   * The state object is later passed to `pushState` or `replaceState`.
	   *
	   * NOTE: This method is supported only in HTML5 mode and only in browsers supporting
	   * the HTML5 History API (i.e. methods `pushState` and `replaceState`). If you need to support
	   * older browsers (like IE9 or Android < 4.0), don't use this method.
	   *
	   * @param {object=} state State object for pushState or replaceState
	   * @return {object} state
	   */Location.prototype.state=function(state){if(!arguments.length){return this.$$state;}if(Location!==LocationHtml5Url||!this.$$html5){throw $locationMinErr('nostate','History API state support is available only '+'in HTML5 mode and only in browsers supporting HTML5 History API');}// The user might modify `stateObject` after invoking `$location.state(stateObject)`
	// but we're changing the $$state reference to $browser.state() during the $digest
	// so the modification window is narrow.
	this.$$state=isUndefined(state)?null:state;this.$$urlUpdatedByLocation=true;return this;};});function locationGetter(property){return(/** @this */function(){return this[property];});}function locationGetterSetter(property,preprocess){return(/** @this */function(value){if(isUndefined(value)){return this[property];}this[property]=preprocess(value);this.$$compose();return this;});}/**
	 * @ngdoc service
	 * @name $location
	 *
	 * @requires $rootElement
	 *
	 * @description
	 * The $location service parses the URL in the browser address bar (based on the
	 * [window.location](https://developer.mozilla.org/en/window.location)) and makes the URL
	 * available to your application. Changes to the URL in the address bar are reflected into
	 * $location service and changes to $location are reflected into the browser address bar.
	 *
	 * **The $location service:**
	 *
	 * - Exposes the current URL in the browser address bar, so you can
	 *   - Watch and observe the URL.
	 *   - Change the URL.
	 * - Synchronizes the URL with the browser when the user
	 *   - Changes the address bar.
	 *   - Clicks the back or forward button (or clicks a History link).
	 *   - Clicks on a link.
	 * - Represents the URL object as a set of methods (protocol, host, port, path, search, hash).
	 *
	 * For more information see {@link guide/$location Developer Guide: Using $location}
	 *//**
	 * @ngdoc provider
	 * @name $locationProvider
	 * @this
	 *
	 * @description
	 * Use the `$locationProvider` to configure how the application deep linking paths are stored.
	 */function $LocationProvider(){var hashPrefix='!',html5Mode={enabled:false,requireBase:true,rewriteLinks:true};/**
	   * @ngdoc method
	   * @name $locationProvider#hashPrefix
	   * @description
	   * The default value for the prefix is `'!'`.
	   * @param {string=} prefix Prefix for hash part (containing path and search)
	   * @returns {*} current value if used as getter or itself (chaining) if used as setter
	   */this.hashPrefix=function(prefix){if(isDefined(prefix)){hashPrefix=prefix;return this;}else{return hashPrefix;}};/**
	   * @ngdoc method
	   * @name $locationProvider#html5Mode
	   * @description
	   * @param {(boolean|Object)=} mode If boolean, sets `html5Mode.enabled` to value.
	   *   If object, sets `enabled`, `requireBase` and `rewriteLinks` to respective values. Supported
	   *   properties:
	   *   - **enabled** – `{boolean}` – (default: false) If true, will rely on `history.pushState` to
	   *     change urls where supported. Will fall back to hash-prefixed paths in browsers that do not
	   *     support `pushState`.
	   *   - **requireBase** - `{boolean}` - (default: `true`) When html5Mode is enabled, specifies
	   *     whether or not a <base> tag is required to be present. If `enabled` and `requireBase` are
	   *     true, and a base tag is not present, an error will be thrown when `$location` is injected.
	   *     See the {@link guide/$location $location guide for more information}
	   *   - **rewriteLinks** - `{boolean|string}` - (default: `true`) When html5Mode is enabled,
	   *     enables/disables URL rewriting for relative links. If set to a string, URL rewriting will
	   *     only happen on links with an attribute that matches the given string. For example, if set
	   *     to `'internal-link'`, then the URL will only be rewritten for `<a internal-link>` links.
	   *     Note that [attribute name normalization](guide/directive#normalization) does not apply
	   *     here, so `'internalLink'` will **not** match `'internal-link'`.
	   *
	   * @returns {Object} html5Mode object if used as getter or itself (chaining) if used as setter
	   */this.html5Mode=function(mode){if(isBoolean(mode)){html5Mode.enabled=mode;return this;}else if(isObject(mode)){if(isBoolean(mode.enabled)){html5Mode.enabled=mode.enabled;}if(isBoolean(mode.requireBase)){html5Mode.requireBase=mode.requireBase;}if(isBoolean(mode.rewriteLinks)||isString(mode.rewriteLinks)){html5Mode.rewriteLinks=mode.rewriteLinks;}return this;}else{return html5Mode;}};/**
	   * @ngdoc event
	   * @name $location#$locationChangeStart
	   * @eventType broadcast on root scope
	   * @description
	   * Broadcasted before a URL will change.
	   *
	   * This change can be prevented by calling
	   * `preventDefault` method of the event. See {@link ng.$rootScope.Scope#$on} for more
	   * details about event object. Upon successful change
	   * {@link ng.$location#$locationChangeSuccess $locationChangeSuccess} is fired.
	   *
	   * The `newState` and `oldState` parameters may be defined only in HTML5 mode and when
	   * the browser supports the HTML5 History API.
	   *
	   * @param {Object} angularEvent Synthetic event object.
	   * @param {string} newUrl New URL
	   * @param {string=} oldUrl URL that was before it was changed.
	   * @param {string=} newState New history state object
	   * @param {string=} oldState History state object that was before it was changed.
	   *//**
	   * @ngdoc event
	   * @name $location#$locationChangeSuccess
	   * @eventType broadcast on root scope
	   * @description
	   * Broadcasted after a URL was changed.
	   *
	   * The `newState` and `oldState` parameters may be defined only in HTML5 mode and when
	   * the browser supports the HTML5 History API.
	   *
	   * @param {Object} angularEvent Synthetic event object.
	   * @param {string} newUrl New URL
	   * @param {string=} oldUrl URL that was before it was changed.
	   * @param {string=} newState New history state object
	   * @param {string=} oldState History state object that was before it was changed.
	   */this.$get=['$rootScope','$browser','$sniffer','$rootElement','$window',function($rootScope,$browser,$sniffer,$rootElement,$window){var $location,LocationMode,baseHref=$browser.baseHref(),// if base[href] is undefined, it defaults to ''
	initialUrl=$browser.url(),appBase;if(html5Mode.enabled){if(!baseHref&&html5Mode.requireBase){throw $locationMinErr('nobase','$location in HTML5 mode requires a <base> tag to be present!');}appBase=serverBase(initialUrl)+(baseHref||'/');LocationMode=$sniffer.history?LocationHtml5Url:LocationHashbangInHtml5Url;}else{appBase=stripHash(initialUrl);LocationMode=LocationHashbangUrl;}var appBaseNoFile=stripFile(appBase);$location=new LocationMode(appBase,appBaseNoFile,'#'+hashPrefix);$location.$$parseLinkUrl(initialUrl,initialUrl);$location.$$state=$browser.state();var IGNORE_URI_REGEXP=/^\s*(javascript|mailto):/i;// Determine if two URLs are equal despite potentially having different encoding/normalizing
	//  such as $location.absUrl() vs $browser.url()
	// See https://github.com/angular/angular.js/issues/16592
	function urlsEqual(a,b){return a===b||urlResolve(a).href===urlResolve(b).href;}function setBrowserUrlWithFallback(url,replace,state){var oldUrl=$location.url();var oldState=$location.$$state;try{$browser.url(url,replace,state);// Make sure $location.state() returns referentially identical (not just deeply equal)
	// state object; this makes possible quick checking if the state changed in the digest
	// loop. Checking deep equality would be too expensive.
	$location.$$state=$browser.state();}catch(e){// Restore old values if pushState fails
	$location.url(oldUrl);$location.$$state=oldState;throw e;}}$rootElement.on('click',function(event){var rewriteLinks=html5Mode.rewriteLinks;// TODO(vojta): rewrite link when opening in new tab/window (in legacy browser)
	// currently we open nice url link and redirect then
	if(!rewriteLinks||event.ctrlKey||event.metaKey||event.shiftKey||event.which===2||event.button===2)return;var elm=jqLite(event.target);// traverse the DOM up to find first A tag
	while(nodeName_(elm[0])!=='a'){// ignore rewriting if no A tag (reached root element, or no parent - removed from document)
	if(elm[0]===$rootElement[0]||!(elm=elm.parent())[0])return;}if(isString(rewriteLinks)&&isUndefined(elm.attr(rewriteLinks)))return;var absHref=elm.prop('href');// get the actual href attribute - see
	// http://msdn.microsoft.com/en-us/library/ie/dd347148(v=vs.85).aspx
	var relHref=elm.attr('href')||elm.attr('xlink:href');if(isObject(absHref)&&absHref.toString()==='[object SVGAnimatedString]'){// SVGAnimatedString.animVal should be identical to SVGAnimatedString.baseVal, unless during
	// an animation.
	absHref=urlResolve(absHref.animVal).href;}// Ignore when url is started with javascript: or mailto:
	if(IGNORE_URI_REGEXP.test(absHref))return;if(absHref&&!elm.attr('target')&&!event.isDefaultPrevented()){if($location.$$parseLinkUrl(absHref,relHref)){// We do a preventDefault for all urls that are part of the AngularJS application,
	// in html5mode and also without, so that we are able to abort navigation without
	// getting double entries in the location history.
	event.preventDefault();// update location manually
	if($location.absUrl()!==$browser.url()){$rootScope.$apply();}}}});// rewrite hashbang url <> html5 url
	if($location.absUrl()!==initialUrl){$browser.url($location.absUrl(),true);}var initializing=true;// update $location when $browser url changes
	$browser.onUrlChange(function(newUrl,newState){if(!startsWith(newUrl,appBaseNoFile)){// If we are navigating outside of the app then force a reload
	$window.location.href=newUrl;return;}$rootScope.$evalAsync(function(){var oldUrl=$location.absUrl();var oldState=$location.$$state;var defaultPrevented;$location.$$parse(newUrl);$location.$$state=newState;defaultPrevented=$rootScope.$broadcast('$locationChangeStart',newUrl,oldUrl,newState,oldState).defaultPrevented;// if the location was changed by a `$locationChangeStart` handler then stop
	// processing this location change
	if($location.absUrl()!==newUrl)return;if(defaultPrevented){$location.$$parse(oldUrl);$location.$$state=oldState;setBrowserUrlWithFallback(oldUrl,false,oldState);}else{initializing=false;afterLocationChange(oldUrl,oldState);}});if(!$rootScope.$$phase)$rootScope.$digest();});// update browser
	$rootScope.$watch(function $locationWatch(){if(initializing||$location.$$urlUpdatedByLocation){$location.$$urlUpdatedByLocation=false;var oldUrl=$browser.url();var newUrl=$location.absUrl();var oldState=$browser.state();var currentReplace=$location.$$replace;var urlOrStateChanged=!urlsEqual(oldUrl,newUrl)||$location.$$html5&&$sniffer.history&&oldState!==$location.$$state;if(initializing||urlOrStateChanged){initializing=false;$rootScope.$evalAsync(function(){var newUrl=$location.absUrl();var defaultPrevented=$rootScope.$broadcast('$locationChangeStart',newUrl,oldUrl,$location.$$state,oldState).defaultPrevented;// if the location was changed by a `$locationChangeStart` handler then stop
	// processing this location change
	if($location.absUrl()!==newUrl)return;if(defaultPrevented){$location.$$parse(oldUrl);$location.$$state=oldState;}else{if(urlOrStateChanged){setBrowserUrlWithFallback(newUrl,currentReplace,oldState===$location.$$state?null:$location.$$state);}afterLocationChange(oldUrl,oldState);}});}}$location.$$replace=false;// we don't need to return anything because $evalAsync will make the digest loop dirty when
	// there is a change
	});return $location;function afterLocationChange(oldUrl,oldState){$rootScope.$broadcast('$locationChangeSuccess',$location.absUrl(),oldUrl,$location.$$state,oldState);}}];}/**
	 * @ngdoc service
	 * @name $log
	 * @requires $window
	 *
	 * @description
	 * Simple service for logging. Default implementation safely writes the message
	 * into the browser's console (if present).
	 *
	 * The main purpose of this service is to simplify debugging and troubleshooting.
	 *
	 * To reveal the location of the calls to `$log` in the JavaScript console,
	 * you can "blackbox" the AngularJS source in your browser:
	 *
	 * [Mozilla description of blackboxing](https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Black_box_a_source).
	 * [Chrome description of blackboxing](https://developer.chrome.com/devtools/docs/blackboxing).
	 *
	 * Note: Not all browsers support blackboxing.
	 *
	 * The default is to log `debug` messages. You can use
	 * {@link ng.$logProvider ng.$logProvider#debugEnabled} to change this.
	 *
	 * @example
	   <example module="logExample" name="log-service">
	     <file name="script.js">
	       angular.module('logExample', [])
	         .controller('LogController', ['$scope', '$log', function($scope, $log) {
	           $scope.$log = $log;
	           $scope.message = 'Hello World!';
	         }]);
	     </file>
	     <file name="index.html">
	       <div ng-controller="LogController">
	         <p>Reload this page with open console, enter text and hit the log button...</p>
	         <label>Message:
	         <input type="text" ng-model="message" /></label>
	         <button ng-click="$log.log(message)">log</button>
	         <button ng-click="$log.warn(message)">warn</button>
	         <button ng-click="$log.info(message)">info</button>
	         <button ng-click="$log.error(message)">error</button>
	         <button ng-click="$log.debug(message)">debug</button>
	       </div>
	     </file>
	   </example>
	 *//**
	 * @ngdoc provider
	 * @name $logProvider
	 * @this
	 *
	 * @description
	 * Use the `$logProvider` to configure how the application logs messages
	 */function $LogProvider(){var debug=true,self=this;/**
	   * @ngdoc method
	   * @name $logProvider#debugEnabled
	   * @description
	   * @param {boolean=} flag enable or disable debug level messages
	   * @returns {*} current value if used as getter or itself (chaining) if used as setter
	   */this.debugEnabled=function(flag){if(isDefined(flag)){debug=flag;return this;}else{return debug;}};this.$get=['$window',function($window){// Support: IE 9-11, Edge 12-14+
	// IE/Edge display errors in such a way that it requires the user to click in 4 places
	// to see the stack trace. There is no way to feature-detect it so there's a chance
	// of the user agent sniffing to go wrong but since it's only about logging, this shouldn't
	// break apps. Other browsers display errors in a sensible way and some of them map stack
	// traces along source maps if available so it makes sense to let browsers display it
	// as they want.
	var formatStackTrace=msie||/\bEdge\//.test($window.navigator&&$window.navigator.userAgent);return{/**
	       * @ngdoc method
	       * @name $log#log
	       *
	       * @description
	       * Write a log message
	       */log:consoleLog('log'),/**
	       * @ngdoc method
	       * @name $log#info
	       *
	       * @description
	       * Write an information message
	       */info:consoleLog('info'),/**
	       * @ngdoc method
	       * @name $log#warn
	       *
	       * @description
	       * Write a warning message
	       */warn:consoleLog('warn'),/**
	       * @ngdoc method
	       * @name $log#error
	       *
	       * @description
	       * Write an error message
	       */error:consoleLog('error'),/**
	       * @ngdoc method
	       * @name $log#debug
	       *
	       * @description
	       * Write a debug message
	       */debug:function(){var fn=consoleLog('debug');return function(){if(debug){fn.apply(self,arguments);}};}()};function formatError(arg){if(isError(arg)){if(arg.stack&&formatStackTrace){arg=arg.message&&arg.stack.indexOf(arg.message)===-1?'Error: '+arg.message+'\n'+arg.stack:arg.stack;}else if(arg.sourceURL){arg=arg.message+'\n'+arg.sourceURL+':'+arg.line;}}return arg;}function consoleLog(type){var console=$window.console||{},logFn=console[type]||console.log||noop;return function(){var args=[];forEach(arguments,function(arg){args.push(formatError(arg));});// Support: IE 9 only
	// console methods don't inherit from Function.prototype in IE 9 so we can't
	// call `logFn.apply(console, args)` directly.
	return Function.prototype.apply.call(logFn,console,args);};}}];}/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
	 *     Any commits to this file should be reviewed with security in mind.  *
	 *   Changes to this file can potentially create security vulnerabilities. *
	 *          An approval from 2 Core members with history of modifying      *
	 *                         this file is required.                          *
	 *                                                                         *
	 *  Does the change somehow allow for arbitrary javascript to be executed? *
	 *    Or allows for someone to change the prototype of built-in objects?   *
	 *     Or gives undesired access to variables likes document or window?    *
	 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */var $parseMinErr=minErr('$parse');var objectValueOf={}.constructor.prototype.valueOf;// Sandboxing AngularJS Expressions
	// ------------------------------
	// AngularJS expressions are no longer sandboxed. So it is now even easier to access arbitrary JS code by
	// various means such as obtaining a reference to native JS functions like the Function constructor.
	//
	// As an example, consider the following AngularJS expression:
	//
	//   {}.toString.constructor('alert("evil JS code")')
	//
	// It is important to realize that if you create an expression from a string that contains user provided
	// content then it is possible that your application contains a security vulnerability to an XSS style attack.
	//
	// See https://docs.angularjs.org/guide/security
	function getStringValue(name){// Property names must be strings. This means that non-string objects cannot be used
	// as keys in an object. Any non-string object, including a number, is typecasted
	// into a string via the toString method.
	// -- MDN, https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Property_accessors#Property_names
	//
	// So, to ensure that we are checking the same `name` that JavaScript would use, we cast it
	// to a string. It's not always possible. If `name` is an object and its `toString` method is
	// 'broken' (doesn't return a string, isn't a function, etc.), an error will be thrown:
	//
	// TypeError: Cannot convert object to primitive value
	//
	// For performance reasons, we don't catch this error here and allow it to propagate up the call
	// stack. Note that you'll get the same error in JavaScript if you try to access a property using
	// such a 'broken' object as a key.
	return name+'';}var OPERATORS=createMap();forEach('+ - * / % === !== == != < > <= >= && || ! = |'.split(' '),function(operator){OPERATORS[operator]=true;});var ESCAPE={'n':'\n','f':'\f','r':'\r','t':'\t','v':'\v','\'':'\'','"':'"'};/////////////////////////////////////////
	/**
	 * @constructor
	 */var Lexer=function Lexer(options){this.options=options;};Lexer.prototype={constructor:Lexer,lex:function lex(text){this.text=text;this.index=0;this.tokens=[];while(this.index<this.text.length){var ch=this.text.charAt(this.index);if(ch==='"'||ch==='\''){this.readString(ch);}else if(this.isNumber(ch)||ch==='.'&&this.isNumber(this.peek())){this.readNumber();}else if(this.isIdentifierStart(this.peekMultichar())){this.readIdent();}else if(this.is(ch,'(){}[].,;:?')){this.tokens.push({index:this.index,text:ch});this.index++;}else if(this.isWhitespace(ch)){this.index++;}else{var ch2=ch+this.peek();var ch3=ch2+this.peek(2);var op1=OPERATORS[ch];var op2=OPERATORS[ch2];var op3=OPERATORS[ch3];if(op1||op2||op3){var token=op3?ch3:op2?ch2:ch;this.tokens.push({index:this.index,text:token,operator:true});this.index+=token.length;}else{this.throwError('Unexpected next character ',this.index,this.index+1);}}}return this.tokens;},is:function is(ch,chars){return chars.indexOf(ch)!==-1;},peek:function peek(i){var num=i||1;return this.index+num<this.text.length?this.text.charAt(this.index+num):false;},isNumber:function isNumber(ch){return'0'<=ch&&ch<='9'&&typeof ch==='string';},isWhitespace:function isWhitespace(ch){// IE treats non-breaking space as \u00A0
	return ch===' '||ch==='\r'||ch==='\t'||ch==='\n'||ch==='\v'||ch==='\xA0';},isIdentifierStart:function isIdentifierStart(ch){return this.options.isIdentifierStart?this.options.isIdentifierStart(ch,this.codePointAt(ch)):this.isValidIdentifierStart(ch);},isValidIdentifierStart:function isValidIdentifierStart(ch){return'a'<=ch&&ch<='z'||'A'<=ch&&ch<='Z'||'_'===ch||ch==='$';},isIdentifierContinue:function isIdentifierContinue(ch){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(ch,this.codePointAt(ch)):this.isValidIdentifierContinue(ch);},isValidIdentifierContinue:function isValidIdentifierContinue(ch,cp){return this.isValidIdentifierStart(ch,cp)||this.isNumber(ch);},codePointAt:function codePointAt(ch){if(ch.length===1)return ch.charCodeAt(0);// eslint-disable-next-line no-bitwise
	return(ch.charCodeAt(0)<<10)+ch.charCodeAt(1)-0x35FDC00;},peekMultichar:function peekMultichar(){var ch=this.text.charAt(this.index);var peek=this.peek();if(!peek){return ch;}var cp1=ch.charCodeAt(0);var cp2=peek.charCodeAt(0);if(cp1>=0xD800&&cp1<=0xDBFF&&cp2>=0xDC00&&cp2<=0xDFFF){return ch+peek;}return ch;},isExpOperator:function isExpOperator(ch){return ch==='-'||ch==='+'||this.isNumber(ch);},throwError:function throwError(error,start,end){end=end||this.index;var colStr=isDefined(start)?'s '+start+'-'+this.index+' ['+this.text.substring(start,end)+']':' '+end;throw $parseMinErr('lexerr','Lexer Error: {0} at column{1} in expression [{2}].',error,colStr,this.text);},readNumber:function readNumber(){var number='';var start=this.index;while(this.index<this.text.length){var ch=lowercase(this.text.charAt(this.index));if(ch==='.'||this.isNumber(ch)){number+=ch;}else{var peekCh=this.peek();if(ch==='e'&&this.isExpOperator(peekCh)){number+=ch;}else if(this.isExpOperator(ch)&&peekCh&&this.isNumber(peekCh)&&number.charAt(number.length-1)==='e'){number+=ch;}else if(this.isExpOperator(ch)&&(!peekCh||!this.isNumber(peekCh))&&number.charAt(number.length-1)==='e'){this.throwError('Invalid exponent');}else{break;}}this.index++;}this.tokens.push({index:start,text:number,constant:true,value:Number(number)});},readIdent:function readIdent(){var start=this.index;this.index+=this.peekMultichar().length;while(this.index<this.text.length){var ch=this.peekMultichar();if(!this.isIdentifierContinue(ch)){break;}this.index+=ch.length;}this.tokens.push({index:start,text:this.text.slice(start,this.index),identifier:true});},readString:function readString(quote){var start=this.index;this.index++;var string='';var rawString=quote;var escape=false;while(this.index<this.text.length){var ch=this.text.charAt(this.index);rawString+=ch;if(escape){if(ch==='u'){var hex=this.text.substring(this.index+1,this.index+5);if(!hex.match(/[\da-f]{4}/i)){this.throwError('Invalid unicode escape [\\u'+hex+']');}this.index+=4;string+=String.fromCharCode(parseInt(hex,16));}else{var rep=ESCAPE[ch];string=string+(rep||ch);}escape=false;}else if(ch==='\\'){escape=true;}else if(ch===quote){this.index++;this.tokens.push({index:start,text:rawString,constant:true,value:string});return;}else{string+=ch;}this.index++;}this.throwError('Unterminated quote',start);}};var AST=function AST(lexer,options){this.lexer=lexer;this.options=options;};AST.Program='Program';AST.ExpressionStatement='ExpressionStatement';AST.AssignmentExpression='AssignmentExpression';AST.ConditionalExpression='ConditionalExpression';AST.LogicalExpression='LogicalExpression';AST.BinaryExpression='BinaryExpression';AST.UnaryExpression='UnaryExpression';AST.CallExpression='CallExpression';AST.MemberExpression='MemberExpression';AST.Identifier='Identifier';AST.Literal='Literal';AST.ArrayExpression='ArrayExpression';AST.Property='Property';AST.ObjectExpression='ObjectExpression';AST.ThisExpression='ThisExpression';AST.LocalsExpression='LocalsExpression';// Internal use only
	AST.NGValueParameter='NGValueParameter';AST.prototype={ast:function ast(text){this.text=text;this.tokens=this.lexer.lex(text);var value=this.program();if(this.tokens.length!==0){this.throwError('is an unexpected token',this.tokens[0]);}return value;},program:function program(){var body=[];while(true){if(this.tokens.length>0&&!this.peek('}',')',';',']'))body.push(this.expressionStatement());if(!this.expect(';')){return{type:AST.Program,body:body};}}},expressionStatement:function expressionStatement(){return{type:AST.ExpressionStatement,expression:this.filterChain()};},filterChain:function filterChain(){var left=this.expression();while(this.expect('|')){left=this.filter(left);}return left;},expression:function expression(){return this.assignment();},assignment:function assignment(){var result=this.ternary();if(this.expect('=')){if(!isAssignable(result)){throw $parseMinErr('lval','Trying to assign a value to a non l-value');}result={type:AST.AssignmentExpression,left:result,right:this.assignment(),operator:'='};}return result;},ternary:function ternary(){var test=this.logicalOR();var alternate;var consequent;if(this.expect('?')){alternate=this.expression();if(this.consume(':')){consequent=this.expression();return{type:AST.ConditionalExpression,test:test,alternate:alternate,consequent:consequent};}}return test;},logicalOR:function logicalOR(){var left=this.logicalAND();while(this.expect('||')){left={type:AST.LogicalExpression,operator:'||',left:left,right:this.logicalAND()};}return left;},logicalAND:function logicalAND(){var left=this.equality();while(this.expect('&&')){left={type:AST.LogicalExpression,operator:'&&',left:left,right:this.equality()};}return left;},equality:function equality(){var left=this.relational();var token;while(token=this.expect('==','!=','===','!==')){left={type:AST.BinaryExpression,operator:token.text,left:left,right:this.relational()};}return left;},relational:function relational(){var left=this.additive();var token;while(token=this.expect('<','>','<=','>=')){left={type:AST.BinaryExpression,operator:token.text,left:left,right:this.additive()};}return left;},additive:function additive(){var left=this.multiplicative();var token;while(token=this.expect('+','-')){left={type:AST.BinaryExpression,operator:token.text,left:left,right:this.multiplicative()};}return left;},multiplicative:function multiplicative(){var left=this.unary();var token;while(token=this.expect('*','/','%')){left={type:AST.BinaryExpression,operator:token.text,left:left,right:this.unary()};}return left;},unary:function unary(){var token;if(token=this.expect('+','-','!')){return{type:AST.UnaryExpression,operator:token.text,prefix:true,argument:this.unary()};}else{return this.primary();}},primary:function primary(){var primary;if(this.expect('(')){primary=this.filterChain();this.consume(')');}else if(this.expect('[')){primary=this.arrayDeclaration();}else if(this.expect('{')){primary=this.object();}else if(this.selfReferential.hasOwnProperty(this.peek().text)){primary=copy(this.selfReferential[this.consume().text]);}else if(this.options.literals.hasOwnProperty(this.peek().text)){primary={type:AST.Literal,value:this.options.literals[this.consume().text]};}else if(this.peek().identifier){primary=this.identifier();}else if(this.peek().constant){primary=this.constant();}else{this.throwError('not a primary expression',this.peek());}var next;while(next=this.expect('(','[','.')){if(next.text==='('){primary={type:AST.CallExpression,callee:primary,arguments:this.parseArguments()};this.consume(')');}else if(next.text==='['){primary={type:AST.MemberExpression,object:primary,property:this.expression(),computed:true};this.consume(']');}else if(next.text==='.'){primary={type:AST.MemberExpression,object:primary,property:this.identifier(),computed:false};}else{this.throwError('IMPOSSIBLE');}}return primary;},filter:function filter(baseExpression){var args=[baseExpression];var result={type:AST.CallExpression,callee:this.identifier(),arguments:args,filter:true};while(this.expect(':')){args.push(this.expression());}return result;},parseArguments:function parseArguments(){var args=[];if(this.peekToken().text!==')'){do{args.push(this.filterChain());}while(this.expect(','));}return args;},identifier:function identifier(){var token=this.consume();if(!token.identifier){this.throwError('is not a valid identifier',token);}return{type:AST.Identifier,name:token.text};},constant:function constant(){// TODO check that it is a constant
	return{type:AST.Literal,value:this.consume().value};},arrayDeclaration:function arrayDeclaration(){var elements=[];if(this.peekToken().text!==']'){do{if(this.peek(']')){// Support trailing commas per ES5.1.
	break;}elements.push(this.expression());}while(this.expect(','));}this.consume(']');return{type:AST.ArrayExpression,elements:elements};},object:function object(){var properties=[],property;if(this.peekToken().text!=='}'){do{if(this.peek('}')){// Support trailing commas per ES5.1.
	break;}property={type:AST.Property,kind:'init'};if(this.peek().constant){property.key=this.constant();property.computed=false;this.consume(':');property.value=this.expression();}else if(this.peek().identifier){property.key=this.identifier();property.computed=false;if(this.peek(':')){this.consume(':');property.value=this.expression();}else{property.value=property.key;}}else if(this.peek('[')){this.consume('[');property.key=this.expression();this.consume(']');property.computed=true;this.consume(':');property.value=this.expression();}else{this.throwError('invalid key',this.peek());}properties.push(property);}while(this.expect(','));}this.consume('}');return{type:AST.ObjectExpression,properties:properties};},throwError:function throwError(msg,token){throw $parseMinErr('syntax','Syntax Error: Token \'{0}\' {1} at column {2} of the expression [{3}] starting at [{4}].',token.text,msg,token.index+1,this.text,this.text.substring(token.index));},consume:function consume(e1){if(this.tokens.length===0){throw $parseMinErr('ueoe','Unexpected end of expression: {0}',this.text);}var token=this.expect(e1);if(!token){this.throwError('is unexpected, expecting ['+e1+']',this.peek());}return token;},peekToken:function peekToken(){if(this.tokens.length===0){throw $parseMinErr('ueoe','Unexpected end of expression: {0}',this.text);}return this.tokens[0];},peek:function peek(e1,e2,e3,e4){return this.peekAhead(0,e1,e2,e3,e4);},peekAhead:function peekAhead(i,e1,e2,e3,e4){if(this.tokens.length>i){var token=this.tokens[i];var t=token.text;if(t===e1||t===e2||t===e3||t===e4||!e1&&!e2&&!e3&&!e4){return token;}}return false;},expect:function expect(e1,e2,e3,e4){var token=this.peek(e1,e2,e3,e4);if(token){this.tokens.shift();return token;}return false;},selfReferential:{'this':{type:AST.ThisExpression},'$locals':{type:AST.LocalsExpression}}};function ifDefined(v,d){return typeof v!=='undefined'?v:d;}function plusFn(l,r){if(typeof l==='undefined')return r;if(typeof r==='undefined')return l;return l+r;}function isStateless($filter,filterName){var fn=$filter(filterName);return!fn.$stateful;}var PURITY_ABSOLUTE=1;var PURITY_RELATIVE=2;// Detect nodes which could depend on non-shallow state of objects
	function isPure(node,parentIsPure){switch(node.type){// Computed members might invoke a stateful toString()
	case AST.MemberExpression:if(node.computed){return false;}break;// Unary always convert to primative
	case AST.UnaryExpression:return PURITY_ABSOLUTE;// The binary + operator can invoke a stateful toString().
	case AST.BinaryExpression:return node.operator!=='+'?PURITY_ABSOLUTE:false;// Functions / filters probably read state from within objects
	case AST.CallExpression:return false;}return undefined===parentIsPure?PURITY_RELATIVE:parentIsPure;}function findConstantAndWatchExpressions(ast,$filter,parentIsPure){var allConstants;var argsToWatch;var isStatelessFilter;var astIsPure=ast.isPure=isPure(ast,parentIsPure);switch(ast.type){case AST.Program:allConstants=true;forEach(ast.body,function(expr){findConstantAndWatchExpressions(expr.expression,$filter,astIsPure);allConstants=allConstants&&expr.expression.constant;});ast.constant=allConstants;break;case AST.Literal:ast.constant=true;ast.toWatch=[];break;case AST.UnaryExpression:findConstantAndWatchExpressions(ast.argument,$filter,astIsPure);ast.constant=ast.argument.constant;ast.toWatch=ast.argument.toWatch;break;case AST.BinaryExpression:findConstantAndWatchExpressions(ast.left,$filter,astIsPure);findConstantAndWatchExpressions(ast.right,$filter,astIsPure);ast.constant=ast.left.constant&&ast.right.constant;ast.toWatch=ast.left.toWatch.concat(ast.right.toWatch);break;case AST.LogicalExpression:findConstantAndWatchExpressions(ast.left,$filter,astIsPure);findConstantAndWatchExpressions(ast.right,$filter,astIsPure);ast.constant=ast.left.constant&&ast.right.constant;ast.toWatch=ast.constant?[]:[ast];break;case AST.ConditionalExpression:findConstantAndWatchExpressions(ast.test,$filter,astIsPure);findConstantAndWatchExpressions(ast.alternate,$filter,astIsPure);findConstantAndWatchExpressions(ast.consequent,$filter,astIsPure);ast.constant=ast.test.constant&&ast.alternate.constant&&ast.consequent.constant;ast.toWatch=ast.constant?[]:[ast];break;case AST.Identifier:ast.constant=false;ast.toWatch=[ast];break;case AST.MemberExpression:findConstantAndWatchExpressions(ast.object,$filter,astIsPure);if(ast.computed){findConstantAndWatchExpressions(ast.property,$filter,astIsPure);}ast.constant=ast.object.constant&&(!ast.computed||ast.property.constant);ast.toWatch=ast.constant?[]:[ast];break;case AST.CallExpression:isStatelessFilter=ast.filter?isStateless($filter,ast.callee.name):false;allConstants=isStatelessFilter;argsToWatch=[];forEach(ast.arguments,function(expr){findConstantAndWatchExpressions(expr,$filter,astIsPure);allConstants=allConstants&&expr.constant;argsToWatch.push.apply(argsToWatch,expr.toWatch);});ast.constant=allConstants;ast.toWatch=isStatelessFilter?argsToWatch:[ast];break;case AST.AssignmentExpression:findConstantAndWatchExpressions(ast.left,$filter,astIsPure);findConstantAndWatchExpressions(ast.right,$filter,astIsPure);ast.constant=ast.left.constant&&ast.right.constant;ast.toWatch=[ast];break;case AST.ArrayExpression:allConstants=true;argsToWatch=[];forEach(ast.elements,function(expr){findConstantAndWatchExpressions(expr,$filter,astIsPure);allConstants=allConstants&&expr.constant;argsToWatch.push.apply(argsToWatch,expr.toWatch);});ast.constant=allConstants;ast.toWatch=argsToWatch;break;case AST.ObjectExpression:allConstants=true;argsToWatch=[];forEach(ast.properties,function(property){findConstantAndWatchExpressions(property.value,$filter,astIsPure);allConstants=allConstants&&property.value.constant;argsToWatch.push.apply(argsToWatch,property.value.toWatch);if(property.computed){//`{[key]: value}` implicitly does `key.toString()` which may be non-pure
	findConstantAndWatchExpressions(property.key,$filter,/*parentIsPure=*/false);allConstants=allConstants&&property.key.constant;argsToWatch.push.apply(argsToWatch,property.key.toWatch);}});ast.constant=allConstants;ast.toWatch=argsToWatch;break;case AST.ThisExpression:ast.constant=false;ast.toWatch=[];break;case AST.LocalsExpression:ast.constant=false;ast.toWatch=[];break;}}function getInputs(body){if(body.length!==1)return;var lastExpression=body[0].expression;var candidate=lastExpression.toWatch;if(candidate.length!==1)return candidate;return candidate[0]!==lastExpression?candidate:undefined;}function isAssignable(ast){return ast.type===AST.Identifier||ast.type===AST.MemberExpression;}function assignableAST(ast){if(ast.body.length===1&&isAssignable(ast.body[0].expression)){return{type:AST.AssignmentExpression,left:ast.body[0].expression,right:{type:AST.NGValueParameter},operator:'='};}}function isLiteral(ast){return ast.body.length===0||ast.body.length===1&&(ast.body[0].expression.type===AST.Literal||ast.body[0].expression.type===AST.ArrayExpression||ast.body[0].expression.type===AST.ObjectExpression);}function isConstant(ast){return ast.constant;}function ASTCompiler($filter){this.$filter=$filter;}ASTCompiler.prototype={compile:function compile(ast){var self=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]};findConstantAndWatchExpressions(ast,self.$filter);var extra='';var assignable;this.stage='assign';if(assignable=assignableAST(ast)){this.state.computing='assign';var result=this.nextId();this.recurse(assignable,result);this.return_(result);extra='fn.assign='+this.generateFunction('assign','s,v,l');}var toWatch=getInputs(ast.body);self.stage='inputs';forEach(toWatch,function(watch,key){var fnKey='fn'+key;self.state[fnKey]={vars:[],body:[],own:{}};self.state.computing=fnKey;var intoId=self.nextId();self.recurse(watch,intoId);self.return_(intoId);self.state.inputs.push({name:fnKey,isPure:watch.isPure});watch.watchId=key;});this.state.computing='fn';this.stage='main';this.recurse(ast);var fnString=// The build and minification steps remove the string "use strict" from the code, but this is done using a regex.
	// This is a workaround for this until we do a better job at only removing the prefix only when we should.
	'"'+this.USE+' '+this.STRICT+'";\n'+this.filterPrefix()+'var fn='+this.generateFunction('fn','s,l,a,i')+extra+this.watchFns()+'return fn;';// eslint-disable-next-line no-new-func
	var fn=new Function('$filter','getStringValue','ifDefined','plus',fnString)(this.$filter,getStringValue,ifDefined,plusFn);this.state=this.stage=undefined;return fn;},USE:'use',STRICT:'strict',watchFns:function watchFns(){var result=[];var inputs=this.state.inputs;var self=this;forEach(inputs,function(input){result.push('var '+input.name+'='+self.generateFunction(input.name,'s'));if(input.isPure){result.push(input.name,'.isPure='+JSON.stringify(input.isPure)+';');}});if(inputs.length){result.push('fn.inputs=['+inputs.map(function(i){return i.name;}).join(',')+'];');}return result.join('');},generateFunction:function generateFunction(name,params){return'function('+params+'){'+this.varsPrefix(name)+this.body(name)+'};';},filterPrefix:function filterPrefix(){var parts=[];var self=this;forEach(this.state.filters,function(id,filter){parts.push(id+'=$filter('+self.escape(filter)+')');});if(parts.length)return'var '+parts.join(',')+';';return'';},varsPrefix:function varsPrefix(section){return this.state[section].vars.length?'var '+this.state[section].vars.join(',')+';':'';},body:function body(section){return this.state[section].body.join('');},recurse:function recurse(ast,intoId,nameId,recursionFn,create,skipWatchIdCheck){var left,right,self=this,args,expression,computed;recursionFn=recursionFn||noop;if(!skipWatchIdCheck&&isDefined(ast.watchId)){intoId=intoId||this.nextId();this.if_('i',this.lazyAssign(intoId,this.computedMember('i',ast.watchId)),this.lazyRecurse(ast,intoId,nameId,recursionFn,create,true));return;}switch(ast.type){case AST.Program:forEach(ast.body,function(expression,pos){self.recurse(expression.expression,undefined,undefined,function(expr){right=expr;});if(pos!==ast.body.length-1){self.current().body.push(right,';');}else{self.return_(right);}});break;case AST.Literal:expression=this.escape(ast.value);this.assign(intoId,expression);recursionFn(intoId||expression);break;case AST.UnaryExpression:this.recurse(ast.argument,undefined,undefined,function(expr){right=expr;});expression=ast.operator+'('+this.ifDefined(right,0)+')';this.assign(intoId,expression);recursionFn(expression);break;case AST.BinaryExpression:this.recurse(ast.left,undefined,undefined,function(expr){left=expr;});this.recurse(ast.right,undefined,undefined,function(expr){right=expr;});if(ast.operator==='+'){expression=this.plus(left,right);}else if(ast.operator==='-'){expression=this.ifDefined(left,0)+ast.operator+this.ifDefined(right,0);}else{expression='('+left+')'+ast.operator+'('+right+')';}this.assign(intoId,expression);recursionFn(expression);break;case AST.LogicalExpression:intoId=intoId||this.nextId();self.recurse(ast.left,intoId);self.if_(ast.operator==='&&'?intoId:self.not(intoId),self.lazyRecurse(ast.right,intoId));recursionFn(intoId);break;case AST.ConditionalExpression:intoId=intoId||this.nextId();self.recurse(ast.test,intoId);self.if_(intoId,self.lazyRecurse(ast.alternate,intoId),self.lazyRecurse(ast.consequent,intoId));recursionFn(intoId);break;case AST.Identifier:intoId=intoId||this.nextId();if(nameId){nameId.context=self.stage==='inputs'?'s':this.assign(this.nextId(),this.getHasOwnProperty('l',ast.name)+'?l:s');nameId.computed=false;nameId.name=ast.name;}self.if_(self.stage==='inputs'||self.not(self.getHasOwnProperty('l',ast.name)),function(){self.if_(self.stage==='inputs'||'s',function(){if(create&&create!==1){self.if_(self.isNull(self.nonComputedMember('s',ast.name)),self.lazyAssign(self.nonComputedMember('s',ast.name),'{}'));}self.assign(intoId,self.nonComputedMember('s',ast.name));});},intoId&&self.lazyAssign(intoId,self.nonComputedMember('l',ast.name)));recursionFn(intoId);break;case AST.MemberExpression:left=nameId&&(nameId.context=this.nextId())||this.nextId();intoId=intoId||this.nextId();self.recurse(ast.object,left,undefined,function(){self.if_(self.notNull(left),function(){if(ast.computed){right=self.nextId();self.recurse(ast.property,right);self.getStringValue(right);if(create&&create!==1){self.if_(self.not(self.computedMember(left,right)),self.lazyAssign(self.computedMember(left,right),'{}'));}expression=self.computedMember(left,right);self.assign(intoId,expression);if(nameId){nameId.computed=true;nameId.name=right;}}else{if(create&&create!==1){self.if_(self.isNull(self.nonComputedMember(left,ast.property.name)),self.lazyAssign(self.nonComputedMember(left,ast.property.name),'{}'));}expression=self.nonComputedMember(left,ast.property.name);self.assign(intoId,expression);if(nameId){nameId.computed=false;nameId.name=ast.property.name;}}},function(){self.assign(intoId,'undefined');});recursionFn(intoId);},!!create);break;case AST.CallExpression:intoId=intoId||this.nextId();if(ast.filter){right=self.filter(ast.callee.name);args=[];forEach(ast.arguments,function(expr){var argument=self.nextId();self.recurse(expr,argument);args.push(argument);});expression=right+'('+args.join(',')+')';self.assign(intoId,expression);recursionFn(intoId);}else{right=self.nextId();left={};args=[];self.recurse(ast.callee,right,left,function(){self.if_(self.notNull(right),function(){forEach(ast.arguments,function(expr){self.recurse(expr,ast.constant?undefined:self.nextId(),undefined,function(argument){args.push(argument);});});if(left.name){expression=self.member(left.context,left.name,left.computed)+'('+args.join(',')+')';}else{expression=right+'('+args.join(',')+')';}self.assign(intoId,expression);},function(){self.assign(intoId,'undefined');});recursionFn(intoId);});}break;case AST.AssignmentExpression:right=this.nextId();left={};this.recurse(ast.left,undefined,left,function(){self.if_(self.notNull(left.context),function(){self.recurse(ast.right,right);expression=self.member(left.context,left.name,left.computed)+ast.operator+right;self.assign(intoId,expression);recursionFn(intoId||expression);});},1);break;case AST.ArrayExpression:args=[];forEach(ast.elements,function(expr){self.recurse(expr,ast.constant?undefined:self.nextId(),undefined,function(argument){args.push(argument);});});expression='['+args.join(',')+']';this.assign(intoId,expression);recursionFn(intoId||expression);break;case AST.ObjectExpression:args=[];computed=false;forEach(ast.properties,function(property){if(property.computed){computed=true;}});if(computed){intoId=intoId||this.nextId();this.assign(intoId,'{}');forEach(ast.properties,function(property){if(property.computed){left=self.nextId();self.recurse(property.key,left);}else{left=property.key.type===AST.Identifier?property.key.name:''+property.key.value;}right=self.nextId();self.recurse(property.value,right);self.assign(self.member(intoId,left,property.computed),right);});}else{forEach(ast.properties,function(property){self.recurse(property.value,ast.constant?undefined:self.nextId(),undefined,function(expr){args.push(self.escape(property.key.type===AST.Identifier?property.key.name:''+property.key.value)+':'+expr);});});expression='{'+args.join(',')+'}';this.assign(intoId,expression);}recursionFn(intoId||expression);break;case AST.ThisExpression:this.assign(intoId,'s');recursionFn(intoId||'s');break;case AST.LocalsExpression:this.assign(intoId,'l');recursionFn(intoId||'l');break;case AST.NGValueParameter:this.assign(intoId,'v');recursionFn(intoId||'v');break;}},getHasOwnProperty:function getHasOwnProperty(element,property){var key=element+'.'+property;var own=this.current().own;if(!own.hasOwnProperty(key)){own[key]=this.nextId(false,element+'&&('+this.escape(property)+' in '+element+')');}return own[key];},assign:function assign(id,value){if(!id)return;this.current().body.push(id,'=',value,';');return id;},filter:function filter(filterName){if(!this.state.filters.hasOwnProperty(filterName)){this.state.filters[filterName]=this.nextId(true);}return this.state.filters[filterName];},ifDefined:function ifDefined(id,defaultValue){return'ifDefined('+id+','+this.escape(defaultValue)+')';},plus:function plus(left,right){return'plus('+left+','+right+')';},return_:function return_(id){this.current().body.push('return ',id,';');},if_:function if_(test,alternate,consequent){if(test===true){alternate();}else{var body=this.current().body;body.push('if(',test,'){');alternate();body.push('}');if(consequent){body.push('else{');consequent();body.push('}');}}},not:function not(expression){return'!('+expression+')';},isNull:function isNull(expression){return expression+'==null';},notNull:function notNull(expression){return expression+'!=null';},nonComputedMember:function nonComputedMember(left,right){var SAFE_IDENTIFIER=/^[$_a-zA-Z][$_a-zA-Z0-9]*$/;var UNSAFE_CHARACTERS=/[^$_a-zA-Z0-9]/g;if(SAFE_IDENTIFIER.test(right)){return left+'.'+right;}else{return left+'["'+right.replace(UNSAFE_CHARACTERS,this.stringEscapeFn)+'"]';}},computedMember:function computedMember(left,right){return left+'['+right+']';},member:function member(left,right,computed){if(computed)return this.computedMember(left,right);return this.nonComputedMember(left,right);},getStringValue:function getStringValue(item){this.assign(item,'getStringValue('+item+')');},lazyRecurse:function lazyRecurse(ast,intoId,nameId,recursionFn,create,skipWatchIdCheck){var self=this;return function(){self.recurse(ast,intoId,nameId,recursionFn,create,skipWatchIdCheck);};},lazyAssign:function lazyAssign(id,value){var self=this;return function(){self.assign(id,value);};},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function stringEscapeFn(c){return'\\u'+('0000'+c.charCodeAt(0).toString(16)).slice(-4);},escape:function escape(value){if(isString(value))return'\''+value.replace(this.stringEscapeRegex,this.stringEscapeFn)+'\'';if(isNumber(value))return value.toString();if(value===true)return'true';if(value===false)return'false';if(value===null)return'null';if(typeof value==='undefined')return'undefined';throw $parseMinErr('esc','IMPOSSIBLE');},nextId:function nextId(skip,init){var id='v'+this.state.nextId++;if(!skip){this.current().vars.push(id+(init?'='+init:''));}return id;},current:function current(){return this.state[this.state.computing];}};function ASTInterpreter($filter){this.$filter=$filter;}ASTInterpreter.prototype={compile:function compile(ast){var self=this;findConstantAndWatchExpressions(ast,self.$filter);var assignable;var assign;if(assignable=assignableAST(ast)){assign=this.recurse(assignable);}var toWatch=getInputs(ast.body);var inputs;if(toWatch){inputs=[];forEach(toWatch,function(watch,key){var input=self.recurse(watch);input.isPure=watch.isPure;watch.input=input;inputs.push(input);watch.watchId=key;});}var expressions=[];forEach(ast.body,function(expression){expressions.push(self.recurse(expression.expression));});var fn=ast.body.length===0?noop:ast.body.length===1?expressions[0]:function(scope,locals){var lastValue;forEach(expressions,function(exp){lastValue=exp(scope,locals);});return lastValue;};if(assign){fn.assign=function(scope,value,locals){return assign(scope,locals,value);};}if(inputs){fn.inputs=inputs;}return fn;},recurse:function recurse(ast,context,create){var left,right,self=this,args;if(ast.input){return this.inputs(ast.input,ast.watchId);}switch(ast.type){case AST.Literal:return this.value(ast.value,context);case AST.UnaryExpression:right=this.recurse(ast.argument);return this['unary'+ast.operator](right,context);case AST.BinaryExpression:left=this.recurse(ast.left);right=this.recurse(ast.right);return this['binary'+ast.operator](left,right,context);case AST.LogicalExpression:left=this.recurse(ast.left);right=this.recurse(ast.right);return this['binary'+ast.operator](left,right,context);case AST.ConditionalExpression:return this['ternary?:'](this.recurse(ast.test),this.recurse(ast.alternate),this.recurse(ast.consequent),context);case AST.Identifier:return self.identifier(ast.name,context,create);case AST.MemberExpression:left=this.recurse(ast.object,false,!!create);if(!ast.computed){right=ast.property.name;}if(ast.computed)right=this.recurse(ast.property);return ast.computed?this.computedMember(left,right,context,create):this.nonComputedMember(left,right,context,create);case AST.CallExpression:args=[];forEach(ast.arguments,function(expr){args.push(self.recurse(expr));});if(ast.filter)right=this.$filter(ast.callee.name);if(!ast.filter)right=this.recurse(ast.callee,true);return ast.filter?function(scope,locals,assign,inputs){var values=[];for(var i=0;i<args.length;++i){values.push(args[i](scope,locals,assign,inputs));}var value=right.apply(undefined,values,inputs);return context?{context:undefined,name:undefined,value:value}:value;}:function(scope,locals,assign,inputs){var rhs=right(scope,locals,assign,inputs);var value;if(rhs.value!=null){var values=[];for(var i=0;i<args.length;++i){values.push(args[i](scope,locals,assign,inputs));}value=rhs.value.apply(rhs.context,values);}return context?{value:value}:value;};case AST.AssignmentExpression:left=this.recurse(ast.left,true,1);right=this.recurse(ast.right);return function(scope,locals,assign,inputs){var lhs=left(scope,locals,assign,inputs);var rhs=right(scope,locals,assign,inputs);lhs.context[lhs.name]=rhs;return context?{value:rhs}:rhs;};case AST.ArrayExpression:args=[];forEach(ast.elements,function(expr){args.push(self.recurse(expr));});return function(scope,locals,assign,inputs){var value=[];for(var i=0;i<args.length;++i){value.push(args[i](scope,locals,assign,inputs));}return context?{value:value}:value;};case AST.ObjectExpression:args=[];forEach(ast.properties,function(property){if(property.computed){args.push({key:self.recurse(property.key),computed:true,value:self.recurse(property.value)});}else{args.push({key:property.key.type===AST.Identifier?property.key.name:''+property.key.value,computed:false,value:self.recurse(property.value)});}});return function(scope,locals,assign,inputs){var value={};for(var i=0;i<args.length;++i){if(args[i].computed){value[args[i].key(scope,locals,assign,inputs)]=args[i].value(scope,locals,assign,inputs);}else{value[args[i].key]=args[i].value(scope,locals,assign,inputs);}}return context?{value:value}:value;};case AST.ThisExpression:return function(scope){return context?{value:scope}:scope;};case AST.LocalsExpression:return function(scope,locals){return context?{value:locals}:locals;};case AST.NGValueParameter:return function(scope,locals,assign){return context?{value:assign}:assign;};}},'unary+':function unary(argument,context){return function(scope,locals,assign,inputs){var arg=argument(scope,locals,assign,inputs);if(isDefined(arg)){arg=+arg;}else{arg=0;}return context?{value:arg}:arg;};},'unary-':function unary(argument,context){return function(scope,locals,assign,inputs){var arg=argument(scope,locals,assign,inputs);if(isDefined(arg)){arg=-arg;}else{arg=-0;}return context?{value:arg}:arg;};},'unary!':function unary(argument,context){return function(scope,locals,assign,inputs){var arg=!argument(scope,locals,assign,inputs);return context?{value:arg}:arg;};},'binary+':function binary(left,right,context){return function(scope,locals,assign,inputs){var lhs=left(scope,locals,assign,inputs);var rhs=right(scope,locals,assign,inputs);var arg=plusFn(lhs,rhs);return context?{value:arg}:arg;};},'binary-':function binary(left,right,context){return function(scope,locals,assign,inputs){var lhs=left(scope,locals,assign,inputs);var rhs=right(scope,locals,assign,inputs);var arg=(isDefined(lhs)?lhs:0)-(isDefined(rhs)?rhs:0);return context?{value:arg}:arg;};},'binary*':function binary(left,right,context){return function(scope,locals,assign,inputs){var arg=left(scope,locals,assign,inputs)*right(scope,locals,assign,inputs);return context?{value:arg}:arg;};},'binary/':function binary(left,right,context){return function(scope,locals,assign,inputs){var arg=left(scope,locals,assign,inputs)/right(scope,locals,assign,inputs);return context?{value:arg}:arg;};},'binary%':function binary(left,right,context){return function(scope,locals,assign,inputs){var arg=left(scope,locals,assign,inputs)%right(scope,locals,assign,inputs);return context?{value:arg}:arg;};},'binary===':function binary(left,right,context){return function(scope,locals,assign,inputs){var arg=left(scope,locals,assign,inputs)===right(scope,locals,assign,inputs);return context?{value:arg}:arg;};},'binary!==':function binary(left,right,context){return function(scope,locals,assign,inputs){var arg=left(scope,locals,assign,inputs)!==right(scope,locals,assign,inputs);return context?{value:arg}:arg;};},'binary==':function binary(left,right,context){return function(scope,locals,assign,inputs){// eslint-disable-next-line eqeqeq
	var arg=left(scope,locals,assign,inputs)==right(scope,locals,assign,inputs);return context?{value:arg}:arg;};},'binary!=':function binary(left,right,context){return function(scope,locals,assign,inputs){// eslint-disable-next-line eqeqeq
	var arg=left(scope,locals,assign,inputs)!=right(scope,locals,assign,inputs);return context?{value:arg}:arg;};},'binary<':function binary(left,right,context){return function(scope,locals,assign,inputs){var arg=left(scope,locals,assign,inputs)<right(scope,locals,assign,inputs);return context?{value:arg}:arg;};},'binary>':function binary(left,right,context){return function(scope,locals,assign,inputs){var arg=left(scope,locals,assign,inputs)>right(scope,locals,assign,inputs);return context?{value:arg}:arg;};},'binary<=':function binary(left,right,context){return function(scope,locals,assign,inputs){var arg=left(scope,locals,assign,inputs)<=right(scope,locals,assign,inputs);return context?{value:arg}:arg;};},'binary>=':function binary(left,right,context){return function(scope,locals,assign,inputs){var arg=left(scope,locals,assign,inputs)>=right(scope,locals,assign,inputs);return context?{value:arg}:arg;};},'binary&&':function binary(left,right,context){return function(scope,locals,assign,inputs){var arg=left(scope,locals,assign,inputs)&&right(scope,locals,assign,inputs);return context?{value:arg}:arg;};},'binary||':function binary(left,right,context){return function(scope,locals,assign,inputs){var arg=left(scope,locals,assign,inputs)||right(scope,locals,assign,inputs);return context?{value:arg}:arg;};},'ternary?:':function ternary(test,alternate,consequent,context){return function(scope,locals,assign,inputs){var arg=test(scope,locals,assign,inputs)?alternate(scope,locals,assign,inputs):consequent(scope,locals,assign,inputs);return context?{value:arg}:arg;};},value:function value(_value2,context){return function(){return context?{context:undefined,name:undefined,value:_value2}:_value2;};},identifier:function identifier(name,context,create){return function(scope,locals,assign,inputs){var base=locals&&name in locals?locals:scope;if(create&&create!==1&&base&&base[name]==null){base[name]={};}var value=base?base[name]:undefined;if(context){return{context:base,name:name,value:value};}else{return value;}};},computedMember:function computedMember(left,right,context,create){return function(scope,locals,assign,inputs){var lhs=left(scope,locals,assign,inputs);var rhs;var value;if(lhs!=null){rhs=right(scope,locals,assign,inputs);rhs=getStringValue(rhs);if(create&&create!==1){if(lhs&&!lhs[rhs]){lhs[rhs]={};}}value=lhs[rhs];}if(context){return{context:lhs,name:rhs,value:value};}else{return value;}};},nonComputedMember:function nonComputedMember(left,right,context,create){return function(scope,locals,assign,inputs){var lhs=left(scope,locals,assign,inputs);if(create&&create!==1){if(lhs&&lhs[right]==null){lhs[right]={};}}var value=lhs!=null?lhs[right]:undefined;if(context){return{context:lhs,name:right,value:value};}else{return value;}};},inputs:function inputs(input,watchId){return function(scope,value,locals,inputs){if(inputs)return inputs[watchId];return input(scope,value,locals);};}};/**
	 * @constructor
	 */function Parser(lexer,$filter,options){this.ast=new AST(lexer,options);this.astCompiler=options.csp?new ASTInterpreter($filter):new ASTCompiler($filter);}Parser.prototype={constructor:Parser,parse:function parse(text){var ast=this.getAst(text);var fn=this.astCompiler.compile(ast.ast);fn.literal=isLiteral(ast.ast);fn.constant=isConstant(ast.ast);fn.oneTime=ast.oneTime;return fn;},getAst:function getAst(exp){var oneTime=false;exp=exp.trim();if(exp.charAt(0)===':'&&exp.charAt(1)===':'){oneTime=true;exp=exp.substring(2);}return{ast:this.ast.ast(exp),oneTime:oneTime};}};function getValueOf(value){return isFunction(value.valueOf)?value.valueOf():objectValueOf.call(value);}///////////////////////////////////
	/**
	 * @ngdoc service
	 * @name $parse
	 * @kind function
	 *
	 * @description
	 *
	 * Converts AngularJS {@link guide/expression expression} into a function.
	 *
	 * ```js
	 *   var getter = $parse('user.name');
	 *   var setter = getter.assign;
	 *   var context = {user:{name:'AngularJS'}};
	 *   var locals = {user:{name:'local'}};
	 *
	 *   expect(getter(context)).toEqual('AngularJS');
	 *   setter(context, 'newValue');
	 *   expect(context.user.name).toEqual('newValue');
	 *   expect(getter(context, locals)).toEqual('local');
	 * ```
	 *
	 *
	 * @param {string} expression String expression to compile.
	 * @returns {function(context, locals)} a function which represents the compiled expression:
	 *
	 *    * `context` – `{object}` – an object against which any expressions embedded in the strings
	 *      are evaluated against (typically a scope object).
	 *    * `locals` – `{object=}` – local variables context object, useful for overriding values in
	 *      `context`.
	 *
	 *    The returned function also has the following properties:
	 *      * `literal` – `{boolean}` – whether the expression's top-level node is a JavaScript
	 *        literal.
	 *      * `constant` – `{boolean}` – whether the expression is made entirely of JavaScript
	 *        constant literals.
	 *      * `assign` – `{?function(context, value)}` – if the expression is assignable, this will be
	 *        set to a function to change its value on the given context.
	 *
	 *//**
	 * @ngdoc provider
	 * @name $parseProvider
	 * @this
	 *
	 * @description
	 * `$parseProvider` can be used for configuring the default behavior of the {@link ng.$parse $parse}
	 *  service.
	 */function $ParseProvider(){var cache=createMap();var literals={'true':true,'false':false,'null':null,'undefined':undefined};var identStart,identContinue;/**
	   * @ngdoc method
	   * @name $parseProvider#addLiteral
	   * @description
	   *
	   * Configure $parse service to add literal values that will be present as literal at expressions.
	   *
	   * @param {string} literalName Token for the literal value. The literal name value must be a valid literal name.
	   * @param {*} literalValue Value for this literal. All literal values must be primitives or `undefined`.
	   *
	   **/this.addLiteral=function(literalName,literalValue){literals[literalName]=literalValue;};/**
	  * @ngdoc method
	  * @name $parseProvider#setIdentifierFns
	  *
	  * @description
	  *
	  * Allows defining the set of characters that are allowed in AngularJS expressions. The function
	  * `identifierStart` will get called to know if a given character is a valid character to be the
	  * first character for an identifier. The function `identifierContinue` will get called to know if
	  * a given character is a valid character to be a follow-up identifier character. The functions
	  * `identifierStart` and `identifierContinue` will receive as arguments the single character to be
	  * identifier and the character code point. These arguments will be `string` and `numeric`. Keep in
	  * mind that the `string` parameter can be two characters long depending on the character
	  * representation. It is expected for the function to return `true` or `false`, whether that
	  * character is allowed or not.
	  *
	  * Since this function will be called extensively, keep the implementation of these functions fast,
	  * as the performance of these functions have a direct impact on the expressions parsing speed.
	  *
	  * @param {function=} identifierStart The function that will decide whether the given character is
	  *   a valid identifier start character.
	  * @param {function=} identifierContinue The function that will decide whether the given character is
	  *   a valid identifier continue character.
	  */this.setIdentifierFns=function(identifierStart,identifierContinue){identStart=identifierStart;identContinue=identifierContinue;return this;};this.$get=['$filter',function($filter){var noUnsafeEval=csp().noUnsafeEval;var $parseOptions={csp:noUnsafeEval,literals:copy(literals),isIdentifierStart:isFunction(identStart)&&identStart,isIdentifierContinue:isFunction(identContinue)&&identContinue};$parse.$$getAst=$$getAst;return $parse;function $parse(exp,interceptorFn){var parsedExpression,cacheKey;switch(typeof exp==='undefined'?'undefined':_typeof(exp)){case'string':exp=exp.trim();cacheKey=exp;parsedExpression=cache[cacheKey];if(!parsedExpression){var lexer=new Lexer($parseOptions);var parser=new Parser(lexer,$filter,$parseOptions);parsedExpression=parser.parse(exp);cache[cacheKey]=addWatchDelegate(parsedExpression);}return addInterceptor(parsedExpression,interceptorFn);case'function':return addInterceptor(exp,interceptorFn);default:return addInterceptor(noop,interceptorFn);}}function $$getAst(exp){var lexer=new Lexer($parseOptions);var parser=new Parser(lexer,$filter,$parseOptions);return parser.getAst(exp).ast;}function expressionInputDirtyCheck(newValue,oldValueOfValue,compareObjectIdentity){if(newValue==null||oldValueOfValue==null){// null/undefined
	return newValue===oldValueOfValue;}if((typeof newValue==='undefined'?'undefined':_typeof(newValue))==='object'){// attempt to convert the value to a primitive type
	// TODO(docs): add a note to docs that by implementing valueOf even objects and arrays can
	//             be cheaply dirty-checked
	newValue=getValueOf(newValue);if((typeof newValue==='undefined'?'undefined':_typeof(newValue))==='object'&&!compareObjectIdentity){// objects/arrays are not supported - deep-watching them would be too expensive
	return false;}// fall-through to the primitive equality check
	}//Primitive or NaN
	// eslint-disable-next-line no-self-compare
	return newValue===oldValueOfValue||newValue!==newValue&&oldValueOfValue!==oldValueOfValue;}function inputsWatchDelegate(scope,listener,objectEquality,parsedExpression,prettyPrintExpression){var inputExpressions=parsedExpression.inputs;var lastResult;if(inputExpressions.length===1){var oldInputValueOf=expressionInputDirtyCheck;// init to something unique so that equals check fails
	inputExpressions=inputExpressions[0];return scope.$watch(function expressionInputWatch(scope){var newInputValue=inputExpressions(scope);if(!expressionInputDirtyCheck(newInputValue,oldInputValueOf,inputExpressions.isPure)){lastResult=parsedExpression(scope,undefined,undefined,[newInputValue]);oldInputValueOf=newInputValue&&getValueOf(newInputValue);}return lastResult;},listener,objectEquality,prettyPrintExpression);}var oldInputValueOfValues=[];var oldInputValues=[];for(var i=0,ii=inputExpressions.length;i<ii;i++){oldInputValueOfValues[i]=expressionInputDirtyCheck;// init to something unique so that equals check fails
	oldInputValues[i]=null;}return scope.$watch(function expressionInputsWatch(scope){var changed=false;for(var i=0,ii=inputExpressions.length;i<ii;i++){var newInputValue=inputExpressions[i](scope);if(changed||(changed=!expressionInputDirtyCheck(newInputValue,oldInputValueOfValues[i],inputExpressions[i].isPure))){oldInputValues[i]=newInputValue;oldInputValueOfValues[i]=newInputValue&&getValueOf(newInputValue);}}if(changed){lastResult=parsedExpression(scope,undefined,undefined,oldInputValues);}return lastResult;},listener,objectEquality,prettyPrintExpression);}function oneTimeWatchDelegate(scope,listener,objectEquality,parsedExpression,prettyPrintExpression){var isDone=parsedExpression.literal?isAllDefined:isDefined;var unwatch,lastValue;var exp=parsedExpression.$$intercepted||parsedExpression;var post=parsedExpression.$$interceptor||identity;var useInputs=parsedExpression.inputs&&!exp.inputs;// Propogate the literal/inputs/constant attributes
	// ... but not oneTime since we are handling it
	oneTimeWatch.literal=parsedExpression.literal;oneTimeWatch.constant=parsedExpression.constant;oneTimeWatch.inputs=parsedExpression.inputs;// Allow other delegates to run on this wrapped expression
	addWatchDelegate(oneTimeWatch);unwatch=scope.$watch(oneTimeWatch,listener,objectEquality,prettyPrintExpression);return unwatch;function unwatchIfDone(){if(isDone(lastValue)){unwatch();}}function oneTimeWatch(scope,locals,assign,inputs){lastValue=useInputs&&inputs?inputs[0]:exp(scope,locals,assign,inputs);if(isDone(lastValue)){scope.$$postDigest(unwatchIfDone);}return post(lastValue);}}function isAllDefined(value){var allDefined=true;forEach(value,function(val){if(!isDefined(val))allDefined=false;});return allDefined;}function constantWatchDelegate(scope,listener,objectEquality,parsedExpression){var unwatch=scope.$watch(function constantWatch(scope){unwatch();return parsedExpression(scope);},listener,objectEquality);return unwatch;}function addWatchDelegate(parsedExpression){if(parsedExpression.constant){parsedExpression.$$watchDelegate=constantWatchDelegate;}else if(parsedExpression.oneTime){parsedExpression.$$watchDelegate=oneTimeWatchDelegate;}else if(parsedExpression.inputs){parsedExpression.$$watchDelegate=inputsWatchDelegate;}return parsedExpression;}function chainInterceptors(first,second){function chainedInterceptor(value){return second(first(value));}chainedInterceptor.$stateful=first.$stateful||second.$stateful;chainedInterceptor.$$pure=first.$$pure&&second.$$pure;return chainedInterceptor;}function addInterceptor(parsedExpression,interceptorFn){if(!interceptorFn)return parsedExpression;// Extract any existing interceptors out of the parsedExpression
	// to ensure the original parsedExpression is always the $$intercepted
	if(parsedExpression.$$interceptor){interceptorFn=chainInterceptors(parsedExpression.$$interceptor,interceptorFn);parsedExpression=parsedExpression.$$intercepted;}var useInputs=false;var fn=function interceptedExpression(scope,locals,assign,inputs){var value=useInputs&&inputs?inputs[0]:parsedExpression(scope,locals,assign,inputs);return interceptorFn(value);};// Maintain references to the interceptor/intercepted
	fn.$$intercepted=parsedExpression;fn.$$interceptor=interceptorFn;// Propogate the literal/oneTime/constant attributes
	fn.literal=parsedExpression.literal;fn.oneTime=parsedExpression.oneTime;fn.constant=parsedExpression.constant;// Treat the interceptor like filters.
	// If it is not $stateful then only watch its inputs.
	// If the expression itself has no inputs then use the full expression as an input.
	if(!interceptorFn.$stateful){useInputs=!parsedExpression.inputs;fn.inputs=parsedExpression.inputs?parsedExpression.inputs:[parsedExpression];if(!interceptorFn.$$pure){fn.inputs=fn.inputs.map(function(e){// Remove the isPure flag of inputs when it is not absolute because they are now wrapped in a
	// non-pure interceptor function.
	if(e.isPure===PURITY_RELATIVE){return function depurifier(s){return e(s);};}return e;});}}return addWatchDelegate(fn);}}];}/**
	 * @ngdoc service
	 * @name $q
	 * @requires $rootScope
	 *
	 * @description
	 * A service that helps you run functions asynchronously, and use their return values (or exceptions)
	 * when they are done processing.
	 *
	 * This is a [Promises/A+](https://promisesaplus.com/)-compliant implementation of promises/deferred
	 * objects inspired by [Kris Kowal's Q](https://github.com/kriskowal/q).
	 *
	 * $q can be used in two fashions --- one which is more similar to Kris Kowal's Q or jQuery's Deferred
	 * implementations, and the other which resembles ES6 (ES2015) promises to some degree.
	 *
	 * ## $q constructor
	 *
	 * The streamlined ES6 style promise is essentially just using $q as a constructor which takes a `resolver`
	 * function as the first argument. This is similar to the native Promise implementation from ES6,
	 * see [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).
	 *
	 * While the constructor-style use is supported, not all of the supporting methods from ES6 promises are
	 * available yet.
	 *
	 * It can be used like so:
	 *
	 * ```js
	 *   // for the purpose of this example let's assume that variables `$q` and `okToGreet`
	 *   // are available in the current lexical scope (they could have been injected or passed in).
	 *
	 *   function asyncGreet(name) {
	 *     // perform some asynchronous operation, resolve or reject the promise when appropriate.
	 *     return $q(function(resolve, reject) {
	 *       setTimeout(function() {
	 *         if (okToGreet(name)) {
	 *           resolve('Hello, ' + name + '!');
	 *         } else {
	 *           reject('Greeting ' + name + ' is not allowed.');
	 *         }
	 *       }, 1000);
	 *     });
	 *   }
	 *
	 *   var promise = asyncGreet('Robin Hood');
	 *   promise.then(function(greeting) {
	 *     alert('Success: ' + greeting);
	 *   }, function(reason) {
	 *     alert('Failed: ' + reason);
	 *   });
	 * ```
	 *
	 * Note: progress/notify callbacks are not currently supported via the ES6-style interface.
	 *
	 * Note: unlike ES6 behavior, an exception thrown in the constructor function will NOT implicitly reject the promise.
	 *
	 * However, the more traditional CommonJS-style usage is still available, and documented below.
	 *
	 * [The CommonJS Promise proposal](http://wiki.commonjs.org/wiki/Promises) describes a promise as an
	 * interface for interacting with an object that represents the result of an action that is
	 * performed asynchronously, and may or may not be finished at any given point in time.
	 *
	 * From the perspective of dealing with error handling, deferred and promise APIs are to
	 * asynchronous programming what `try`, `catch` and `throw` keywords are to synchronous programming.
	 *
	 * ```js
	 *   // for the purpose of this example let's assume that variables `$q` and `okToGreet`
	 *   // are available in the current lexical scope (they could have been injected or passed in).
	 *
	 *   function asyncGreet(name) {
	 *     var deferred = $q.defer();
	 *
	 *     setTimeout(function() {
	 *       deferred.notify('About to greet ' + name + '.');
	 *
	 *       if (okToGreet(name)) {
	 *         deferred.resolve('Hello, ' + name + '!');
	 *       } else {
	 *         deferred.reject('Greeting ' + name + ' is not allowed.');
	 *       }
	 *     }, 1000);
	 *
	 *     return deferred.promise;
	 *   }
	 *
	 *   var promise = asyncGreet('Robin Hood');
	 *   promise.then(function(greeting) {
	 *     alert('Success: ' + greeting);
	 *   }, function(reason) {
	 *     alert('Failed: ' + reason);
	 *   }, function(update) {
	 *     alert('Got notification: ' + update);
	 *   });
	 * ```
	 *
	 * At first it might not be obvious why this extra complexity is worth the trouble. The payoff
	 * comes in the way of guarantees that promise and deferred APIs make, see
	 * https://github.com/kriskowal/uncommonjs/blob/master/promises/specification.md.
	 *
	 * Additionally the promise api allows for composition that is very hard to do with the
	 * traditional callback ([CPS](http://en.wikipedia.org/wiki/Continuation-passing_style)) approach.
	 * For more on this please see the [Q documentation](https://github.com/kriskowal/q) especially the
	 * section on serial or parallel joining of promises.
	 *
	 * ## The Deferred API
	 *
	 * A new instance of deferred is constructed by calling `$q.defer()`.
	 *
	 * The purpose of the deferred object is to expose the associated Promise instance as well as APIs
	 * that can be used for signaling the successful or unsuccessful completion, as well as the status
	 * of the task.
	 *
	 * **Methods**
	 *
	 * - `resolve(value)` – resolves the derived promise with the `value`. If the value is a rejection
	 *   constructed via `$q.reject`, the promise will be rejected instead.
	 * - `reject(reason)` – rejects the derived promise with the `reason`. This is equivalent to
	 *   resolving it with a rejection constructed via `$q.reject`.
	 * - `notify(value)` - provides updates on the status of the promise's execution. This may be called
	 *   multiple times before the promise is either resolved or rejected.
	 *
	 * **Properties**
	 *
	 * - promise – `{Promise}` – promise object associated with this deferred.
	 *
	 *
	 * ## The Promise API
	 *
	 * A new promise instance is created when a deferred instance is created and can be retrieved by
	 * calling `deferred.promise`.
	 *
	 * The purpose of the promise object is to allow for interested parties to get access to the result
	 * of the deferred task when it completes.
	 *
	 * **Methods**
	 *
	 * - `then(successCallback, [errorCallback], [notifyCallback])` – regardless of when the promise was or
	 *   will be resolved or rejected, `then` calls one of the success or error callbacks asynchronously
	 *   as soon as the result is available. The callbacks are called with a single argument: the result
	 *   or rejection reason. Additionally, the notify callback may be called zero or more times to
	 *   provide a progress indication, before the promise is resolved or rejected.
	 *
	 *   This method *returns a new promise* which is resolved or rejected via the return value of the
	 *   `successCallback`, `errorCallback` (unless that value is a promise, in which case it is resolved
	 *   with the value which is resolved in that promise using
	 *   [promise chaining](http://www.html5rocks.com/en/tutorials/es6/promises/#toc-promises-queues)).
	 *   It also notifies via the return value of the `notifyCallback` method. The promise cannot be
	 *   resolved or rejected from the notifyCallback method. The errorCallback and notifyCallback
	 *   arguments are optional.
	 *
	 * - `catch(errorCallback)` – shorthand for `promise.then(null, errorCallback)`
	 *
	 * - `finally(callback, notifyCallback)` – allows you to observe either the fulfillment or rejection of a promise,
	 *   but to do so without modifying the final value. This is useful to release resources or do some
	 *   clean-up that needs to be done whether the promise was rejected or resolved. See the [full
	 *   specification](https://github.com/kriskowal/q/wiki/API-Reference#promisefinallycallback) for
	 *   more information.
	 *
	 * ## Chaining promises
	 *
	 * Because calling the `then` method of a promise returns a new derived promise, it is easily
	 * possible to create a chain of promises:
	 *
	 * ```js
	 *   promiseB = promiseA.then(function(result) {
	 *     return result + 1;
	 *   });
	 *
	 *   // promiseB will be resolved immediately after promiseA is resolved and its value
	 *   // will be the result of promiseA incremented by 1
	 * ```
	 *
	 * It is possible to create chains of any length and since a promise can be resolved with another
	 * promise (which will defer its resolution further), it is possible to pause/defer resolution of
	 * the promises at any point in the chain. This makes it possible to implement powerful APIs like
	 * $http's response interceptors.
	 *
	 *
	 * ## Differences between Kris Kowal's Q and $q
	 *
	 *  There are two main differences:
	 *
	 * - $q is integrated with the {@link ng.$rootScope.Scope} Scope model observation
	 *   mechanism in AngularJS, which means faster propagation of resolution or rejection into your
	 *   models and avoiding unnecessary browser repaints, which would result in flickering UI.
	 * - Q has many more features than $q, but that comes at a cost of bytes. $q is tiny, but contains
	 *   all the important functionality needed for common async tasks.
	 *
	 * ## Testing
	 *
	 *  ```js
	 *    it('should simulate promise', inject(function($q, $rootScope) {
	 *      var deferred = $q.defer();
	 *      var promise = deferred.promise;
	 *      var resolvedValue;
	 *
	 *      promise.then(function(value) { resolvedValue = value; });
	 *      expect(resolvedValue).toBeUndefined();
	 *
	 *      // Simulate resolving of promise
	 *      deferred.resolve(123);
	 *      // Note that the 'then' function does not get called synchronously.
	 *      // This is because we want the promise API to always be async, whether or not
	 *      // it got called synchronously or asynchronously.
	 *      expect(resolvedValue).toBeUndefined();
	 *
	 *      // Propagate promise resolution to 'then' functions using $apply().
	 *      $rootScope.$apply();
	 *      expect(resolvedValue).toEqual(123);
	 *    }));
	 *  ```
	 *
	 * @param {function(function, function)} resolver Function which is responsible for resolving or
	 *   rejecting the newly created promise. The first parameter is a function which resolves the
	 *   promise, the second parameter is a function which rejects the promise.
	 *
	 * @returns {Promise} The newly created promise.
	 *//**
	 * @ngdoc provider
	 * @name $qProvider
	 * @this
	 *
	 * @description
	 */function $QProvider(){var errorOnUnhandledRejections=true;this.$get=['$rootScope','$exceptionHandler',function($rootScope,$exceptionHandler){return qFactory(function(callback){$rootScope.$evalAsync(callback);},$exceptionHandler,errorOnUnhandledRejections);}];/**
	   * @ngdoc method
	   * @name $qProvider#errorOnUnhandledRejections
	   * @kind function
	   *
	   * @description
	   * Retrieves or overrides whether to generate an error when a rejected promise is not handled.
	   * This feature is enabled by default.
	   *
	   * @param {boolean=} value Whether to generate an error when a rejected promise is not handled.
	   * @returns {boolean|ng.$qProvider} Current value when called without a new value or self for
	   *    chaining otherwise.
	   */this.errorOnUnhandledRejections=function(value){if(isDefined(value)){errorOnUnhandledRejections=value;return this;}else{return errorOnUnhandledRejections;}};}/** @this */function $$QProvider(){var errorOnUnhandledRejections=true;this.$get=['$browser','$exceptionHandler',function($browser,$exceptionHandler){return qFactory(function(callback){$browser.defer(callback);},$exceptionHandler,errorOnUnhandledRejections);}];this.errorOnUnhandledRejections=function(value){if(isDefined(value)){errorOnUnhandledRejections=value;return this;}else{return errorOnUnhandledRejections;}};}/**
	 * Constructs a promise manager.
	 *
	 * @param {function(function)} nextTick Function for executing functions in the next turn.
	 * @param {function(...*)} exceptionHandler Function into which unexpected exceptions are passed for
	 *     debugging purposes.
	 * @param {boolean=} errorOnUnhandledRejections Whether an error should be generated on unhandled
	 *     promises rejections.
	 * @returns {object} Promise manager.
	 */function qFactory(nextTick,exceptionHandler,errorOnUnhandledRejections){var $qMinErr=minErr('$q',TypeError);var queueSize=0;var checkQueue=[];/**
	   * @ngdoc method
	   * @name ng.$q#defer
	   * @kind function
	   *
	   * @description
	   * Creates a `Deferred` object which represents a task which will finish in the future.
	   *
	   * @returns {Deferred} Returns a new instance of deferred.
	   */function defer(){return new Deferred();}function Deferred(){var promise=this.promise=new Promise();//Non prototype methods necessary to support unbound execution :/
	this.resolve=function(val){resolvePromise(promise,val);};this.reject=function(reason){rejectPromise(promise,reason);};this.notify=function(progress){notifyPromise(promise,progress);};}function Promise(){this.$$state={status:0};}extend(Promise.prototype,{then:function then(onFulfilled,onRejected,progressBack){if(isUndefined(onFulfilled)&&isUndefined(onRejected)&&isUndefined(progressBack)){return this;}var result=new Promise();this.$$state.pending=this.$$state.pending||[];this.$$state.pending.push([result,onFulfilled,onRejected,progressBack]);if(this.$$state.status>0)scheduleProcessQueue(this.$$state);return result;},'catch':function _catch(callback){return this.then(null,callback);},'finally':function _finally(callback,progressBack){return this.then(function(value){return handleCallback(value,resolve,callback);},function(error){return handleCallback(error,reject,callback);},progressBack);}});function processQueue(state){var fn,promise,pending;pending=state.pending;state.processScheduled=false;state.pending=undefined;try{for(var i=0,ii=pending.length;i<ii;++i){markQStateExceptionHandled(state);promise=pending[i][0];fn=pending[i][state.status];try{if(isFunction(fn)){resolvePromise(promise,fn(state.value));}else if(state.status===1){resolvePromise(promise,state.value);}else{rejectPromise(promise,state.value);}}catch(e){rejectPromise(promise,e);// This error is explicitly marked for being passed to the $exceptionHandler
	if(e&&e.$$passToExceptionHandler===true){exceptionHandler(e);}}}}finally{--queueSize;if(errorOnUnhandledRejections&&queueSize===0){nextTick(processChecks);}}}function processChecks(){// eslint-disable-next-line no-unmodified-loop-condition
	while(!queueSize&&checkQueue.length){var toCheck=checkQueue.shift();if(!isStateExceptionHandled(toCheck)){markQStateExceptionHandled(toCheck);var errorMessage='Possibly unhandled rejection: '+toDebugString(toCheck.value);if(isError(toCheck.value)){exceptionHandler(toCheck.value,errorMessage);}else{exceptionHandler(errorMessage);}}}}function scheduleProcessQueue(state){if(errorOnUnhandledRejections&&!state.pending&&state.status===2&&!isStateExceptionHandled(state)){if(queueSize===0&&checkQueue.length===0){nextTick(processChecks);}checkQueue.push(state);}if(state.processScheduled||!state.pending)return;state.processScheduled=true;++queueSize;nextTick(function(){processQueue(state);});}function resolvePromise(promise,val){if(promise.$$state.status)return;if(val===promise){$$reject(promise,$qMinErr('qcycle','Expected promise to be resolved with value other than itself \'{0}\'',val));}else{$$resolve(promise,val);}}function $$resolve(promise,val){var then;var done=false;try{if(isObject(val)||isFunction(val))then=val.then;if(isFunction(then)){promise.$$state.status=-1;then.call(val,doResolve,doReject,doNotify);}else{promise.$$state.value=val;promise.$$state.status=1;scheduleProcessQueue(promise.$$state);}}catch(e){doReject(e);}function doResolve(val){if(done)return;done=true;$$resolve(promise,val);}function doReject(val){if(done)return;done=true;$$reject(promise,val);}function doNotify(progress){notifyPromise(promise,progress);}}function rejectPromise(promise,reason){if(promise.$$state.status)return;$$reject(promise,reason);}function $$reject(promise,reason){promise.$$state.value=reason;promise.$$state.status=2;scheduleProcessQueue(promise.$$state);}function notifyPromise(promise,progress){var callbacks=promise.$$state.pending;if(promise.$$state.status<=0&&callbacks&&callbacks.length){nextTick(function(){var callback,result;for(var i=0,ii=callbacks.length;i<ii;i++){result=callbacks[i][0];callback=callbacks[i][3];try{notifyPromise(result,isFunction(callback)?callback(progress):progress);}catch(e){exceptionHandler(e);}}});}}/**
	   * @ngdoc method
	   * @name $q#reject
	   * @kind function
	   *
	   * @description
	   * Creates a promise that is resolved as rejected with the specified `reason`. This api should be
	   * used to forward rejection in a chain of promises. If you are dealing with the last promise in
	   * a promise chain, you don't need to worry about it.
	   *
	   * When comparing deferreds/promises to the familiar behavior of try/catch/throw, think of
	   * `reject` as the `throw` keyword in JavaScript. This also means that if you "catch" an error via
	   * a promise error callback and you want to forward the error to the promise derived from the
	   * current promise, you have to "rethrow" the error by returning a rejection constructed via
	   * `reject`.
	   *
	   * ```js
	   *   promiseB = promiseA.then(function(result) {
	   *     // success: do something and resolve promiseB
	   *     //          with the old or a new result
	   *     return result;
	   *   }, function(reason) {
	   *     // error: handle the error if possible and
	   *     //        resolve promiseB with newPromiseOrValue,
	   *     //        otherwise forward the rejection to promiseB
	   *     if (canHandle(reason)) {
	   *      // handle the error and recover
	   *      return newPromiseOrValue;
	   *     }
	   *     return $q.reject(reason);
	   *   });
	   * ```
	   *
	   * @param {*} reason Constant, message, exception or an object representing the rejection reason.
	   * @returns {Promise} Returns a promise that was already resolved as rejected with the `reason`.
	   */function reject(reason){var result=new Promise();rejectPromise(result,reason);return result;}function handleCallback(value,resolver,callback){var callbackOutput=null;try{if(isFunction(callback))callbackOutput=callback();}catch(e){return reject(e);}if(isPromiseLike(callbackOutput)){return callbackOutput.then(function(){return resolver(value);},reject);}else{return resolver(value);}}/**
	   * @ngdoc method
	   * @name $q#when
	   * @kind function
	   *
	   * @description
	   * Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise.
	   * This is useful when you are dealing with an object that might or might not be a promise, or if
	   * the promise comes from a source that can't be trusted.
	   *
	   * @param {*} value Value or a promise
	   * @param {Function=} successCallback
	   * @param {Function=} errorCallback
	   * @param {Function=} progressCallback
	   * @returns {Promise} Returns a promise of the passed value or promise
	   */function when(value,callback,errback,progressBack){var result=new Promise();resolvePromise(result,value);return result.then(callback,errback,progressBack);}/**
	   * @ngdoc method
	   * @name $q#resolve
	   * @kind function
	   *
	   * @description
	   * Alias of {@link ng.$q#when when} to maintain naming consistency with ES6.
	   *
	   * @param {*} value Value or a promise
	   * @param {Function=} successCallback
	   * @param {Function=} errorCallback
	   * @param {Function=} progressCallback
	   * @returns {Promise} Returns a promise of the passed value or promise
	   */var resolve=when;/**
	   * @ngdoc method
	   * @name $q#all
	   * @kind function
	   *
	   * @description
	   * Combines multiple promises into a single promise that is resolved when all of the input
	   * promises are resolved.
	   *
	   * @param {Array.<Promise>|Object.<Promise>} promises An array or hash of promises.
	   * @returns {Promise} Returns a single promise that will be resolved with an array/hash of values,
	   *   each value corresponding to the promise at the same index/key in the `promises` array/hash.
	   *   If any of the promises is resolved with a rejection, this resulting promise will be rejected
	   *   with the same rejection value.
	   */function all(promises){var result=new Promise(),counter=0,results=isArray(promises)?[]:{};forEach(promises,function(promise,key){counter++;when(promise).then(function(value){results[key]=value;if(! --counter)resolvePromise(result,results);},function(reason){rejectPromise(result,reason);});});if(counter===0){resolvePromise(result,results);}return result;}/**
	   * @ngdoc method
	   * @name $q#race
	   * @kind function
	   *
	   * @description
	   * Returns a promise that resolves or rejects as soon as one of those promises
	   * resolves or rejects, with the value or reason from that promise.
	   *
	   * @param {Array.<Promise>|Object.<Promise>} promises An array or hash of promises.
	   * @returns {Promise} a promise that resolves or rejects as soon as one of the `promises`
	   * resolves or rejects, with the value or reason from that promise.
	   */function race(promises){var deferred=defer();forEach(promises,function(promise){when(promise).then(deferred.resolve,deferred.reject);});return deferred.promise;}function $Q(resolver){if(!isFunction(resolver)){throw $qMinErr('norslvr','Expected resolverFn, got \'{0}\'',resolver);}var promise=new Promise();function resolveFn(value){resolvePromise(promise,value);}function rejectFn(reason){rejectPromise(promise,reason);}resolver(resolveFn,rejectFn);return promise;}// Let's make the instanceof operator work for promises, so that
	// `new $q(fn) instanceof $q` would evaluate to true.
	$Q.prototype=Promise.prototype;$Q.defer=defer;$Q.reject=reject;$Q.when=when;$Q.resolve=resolve;$Q.all=all;$Q.race=race;return $Q;}function isStateExceptionHandled(state){return!!state.pur;}function markQStateExceptionHandled(state){state.pur=true;}function markQExceptionHandled(q){// Built-in `$q` promises will always have a `$$state` property. This check is to allow
	// overwriting `$q` with a different promise library (e.g. Bluebird + angular-bluebird-promises).
	// (Currently, this is the only method that might be called with a promise, even if it is not
	// created by the built-in `$q`.)
	if(q.$$state){markQStateExceptionHandled(q.$$state);}}/** @this */function $$RAFProvider(){//rAF
	this.$get=['$window','$timeout',function($window,$timeout){var requestAnimationFrame=$window.requestAnimationFrame||$window.webkitRequestAnimationFrame;var cancelAnimationFrame=$window.cancelAnimationFrame||$window.webkitCancelAnimationFrame||$window.webkitCancelRequestAnimationFrame;var rafSupported=!!requestAnimationFrame;var raf=rafSupported?function(fn){var id=requestAnimationFrame(fn);return function(){cancelAnimationFrame(id);};}:function(fn){var timer=$timeout(fn,16.66,false);// 1000 / 60 = 16.666
	return function(){$timeout.cancel(timer);};};raf.supported=rafSupported;return raf;}];}/**
	 * DESIGN NOTES
	 *
	 * The design decisions behind the scope are heavily favored for speed and memory consumption.
	 *
	 * The typical use of scope is to watch the expressions, which most of the time return the same
	 * value as last time so we optimize the operation.
	 *
	 * Closures construction is expensive in terms of speed as well as memory:
	 *   - No closures, instead use prototypical inheritance for API
	 *   - Internal state needs to be stored on scope directly, which means that private state is
	 *     exposed as $$____ properties
	 *
	 * Loop operations are optimized by using while(count--) { ... }
	 *   - This means that in order to keep the same order of execution as addition we have to add
	 *     items to the array at the beginning (unshift) instead of at the end (push)
	 *
	 * Child scopes are created and removed often
	 *   - Using an array would be slow since inserts in the middle are expensive; so we use linked lists
	 *
	 * There are fewer watches than observers. This is why you don't want the observer to be implemented
	 * in the same way as watch. Watch requires return of the initialization function which is expensive
	 * to construct.
	 *//**
	 * @ngdoc provider
	 * @name $rootScopeProvider
	 * @description
	 *
	 * Provider for the $rootScope service.
	 *//**
	 * @ngdoc method
	 * @name $rootScopeProvider#digestTtl
	 * @description
	 *
	 * Sets the number of `$digest` iterations the scope should attempt to execute before giving up and
	 * assuming that the model is unstable.
	 *
	 * The current default is 10 iterations.
	 *
	 * In complex applications it's possible that the dependencies between `$watch`s will result in
	 * several digest iterations. However if an application needs more than the default 10 digest
	 * iterations for its model to stabilize then you should investigate what is causing the model to
	 * continuously change during the digest.
	 *
	 * Increasing the TTL could have performance implications, so you should not change it without
	 * proper justification.
	 *
	 * @param {number} limit The number of digest iterations.
	 *//**
	 * @ngdoc service
	 * @name $rootScope
	 * @this
	 *
	 * @description
	 *
	 * Every application has a single root {@link ng.$rootScope.Scope scope}.
	 * All other scopes are descendant scopes of the root scope. Scopes provide separation
	 * between the model and the view, via a mechanism for watching the model for changes.
	 * They also provide event emission/broadcast and subscription facility. See the
	 * {@link guide/scope developer guide on scopes}.
	 */function $RootScopeProvider(){var TTL=10;var $rootScopeMinErr=minErr('$rootScope');var lastDirtyWatch=null;var applyAsyncId=null;this.digestTtl=function(value){if(arguments.length){TTL=value;}return TTL;};function createChildScopeClass(parent){function ChildScope(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$id=nextUid();this.$$ChildScope=null;this.$$suspended=false;}ChildScope.prototype=parent;return ChildScope;}this.$get=['$exceptionHandler','$parse','$browser',function($exceptionHandler,$parse,$browser){function destroyChildScope($event){$event.currentScope.$$destroyed=true;}function cleanUpScope($scope){// Support: IE 9 only
	if(msie===9){// There is a memory leak in IE9 if all child scopes are not disconnected
	// completely when a scope is destroyed. So this code will recurse up through
	// all this scopes children
	//
	// See issue https://github.com/angular/angular.js/issues/10706
	if($scope.$$childHead){cleanUpScope($scope.$$childHead);}if($scope.$$nextSibling){cleanUpScope($scope.$$nextSibling);}}// The code below works around IE9 and V8's memory leaks
	//
	// See:
	// - https://code.google.com/p/v8/issues/detail?id=2073#c26
	// - https://github.com/angular/angular.js/issues/6794#issuecomment-38648909
	// - https://github.com/angular/angular.js/issues/1313#issuecomment-10378451
	$scope.$parent=$scope.$$nextSibling=$scope.$$prevSibling=$scope.$$childHead=$scope.$$childTail=$scope.$root=$scope.$$watchers=null;}/**
	     * @ngdoc type
	     * @name $rootScope.Scope
	     *
	     * @description
	     * A root scope can be retrieved using the {@link ng.$rootScope $rootScope} key from the
	     * {@link auto.$injector $injector}. Child scopes are created using the
	     * {@link ng.$rootScope.Scope#$new $new()} method. (Most scopes are created automatically when
	     * compiled HTML template is executed.) See also the {@link guide/scope Scopes guide} for
	     * an in-depth introduction and usage examples.
	     *
	     *
	     * ## Inheritance
	     * A scope can inherit from a parent scope, as in this example:
	     * ```js
	         var parent = $rootScope;
	         var child = parent.$new();
	
	         parent.salutation = "Hello";
	         expect(child.salutation).toEqual('Hello');
	
	         child.salutation = "Welcome";
	         expect(child.salutation).toEqual('Welcome');
	         expect(parent.salutation).toEqual('Hello');
	     * ```
	     *
	     * When interacting with `Scope` in tests, additional helper methods are available on the
	     * instances of `Scope` type. See {@link ngMock.$rootScope.Scope ngMock Scope} for additional
	     * details.
	     *
	     *
	     * @param {Object.<string, function()>=} providers Map of service factory which need to be
	     *                                       provided for the current scope. Defaults to {@link ng}.
	     * @param {Object.<string, *>=} instanceCache Provides pre-instantiated services which should
	     *                              append/override services provided by `providers`. This is handy
	     *                              when unit-testing and having the need to override a default
	     *                              service.
	     * @returns {Object} Newly created scope.
	     *
	     */function Scope(){this.$id=nextUid();this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this.$root=this;this.$$destroyed=false;this.$$suspended=false;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$$isolateBindings=null;}/**
	     * @ngdoc property
	     * @name $rootScope.Scope#$id
	     *
	     * @description
	     * Unique scope ID (monotonically increasing) useful for debugging.
	     *//**
	      * @ngdoc property
	      * @name $rootScope.Scope#$parent
	      *
	      * @description
	      * Reference to the parent scope.
	      *//**
	       * @ngdoc property
	       * @name $rootScope.Scope#$root
	       *
	       * @description
	       * Reference to the root scope.
	       */Scope.prototype={constructor:Scope,/**
	       * @ngdoc method
	       * @name $rootScope.Scope#$new
	       * @kind function
	       *
	       * @description
	       * Creates a new child {@link ng.$rootScope.Scope scope}.
	       *
	       * The parent scope will propagate the {@link ng.$rootScope.Scope#$digest $digest()} event.
	       * The scope can be removed from the scope hierarchy using {@link ng.$rootScope.Scope#$destroy $destroy()}.
	       *
	       * {@link ng.$rootScope.Scope#$destroy $destroy()} must be called on a scope when it is
	       * desired for the scope and its child scopes to be permanently detached from the parent and
	       * thus stop participating in model change detection and listener notification by invoking.
	       *
	       * @param {boolean} isolate If true, then the scope does not prototypically inherit from the
	       *         parent scope. The scope is isolated, as it can not see parent scope properties.
	       *         When creating widgets, it is useful for the widget to not accidentally read parent
	       *         state.
	       *
	       * @param {Scope} [parent=this] The {@link ng.$rootScope.Scope `Scope`} that will be the `$parent`
	       *                              of the newly created scope. Defaults to `this` scope if not provided.
	       *                              This is used when creating a transclude scope to correctly place it
	       *                              in the scope hierarchy while maintaining the correct prototypical
	       *                              inheritance.
	       *
	       * @returns {Object} The newly created child scope.
	       *
	       */$new:function $new(isolate,parent){var child;parent=parent||this;if(isolate){child=new Scope();child.$root=this.$root;}else{// Only create a child scope class if somebody asks for one,
	// but cache it to allow the VM to optimize lookups.
	if(!this.$$ChildScope){this.$$ChildScope=createChildScopeClass(this);}child=new this.$$ChildScope();}child.$parent=parent;child.$$prevSibling=parent.$$childTail;if(parent.$$childHead){parent.$$childTail.$$nextSibling=child;parent.$$childTail=child;}else{parent.$$childHead=parent.$$childTail=child;}// When the new scope is not isolated or we inherit from `this`, and
	// the parent scope is destroyed, the property `$$destroyed` is inherited
	// prototypically. In all other cases, this property needs to be set
	// when the parent scope is destroyed.
	// The listener needs to be added after the parent is set
	if(isolate||parent!==this)child.$on('$destroy',destroyChildScope);return child;},/**
	       * @ngdoc method
	       * @name $rootScope.Scope#$watch
	       * @kind function
	       *
	       * @description
	       * Registers a `listener` callback to be executed whenever the `watchExpression` changes.
	       *
	       * - The `watchExpression` is called on every call to {@link ng.$rootScope.Scope#$digest
	       *   $digest()} and should return the value that will be watched. (`watchExpression` should not change
	       *   its value when executed multiple times with the same input because it may be executed multiple
	       *   times by {@link ng.$rootScope.Scope#$digest $digest()}. That is, `watchExpression` should be
	       *   [idempotent](http://en.wikipedia.org/wiki/Idempotence).)
	       * - The `listener` is called only when the value from the current `watchExpression` and the
	       *   previous call to `watchExpression` are not equal (with the exception of the initial run,
	       *   see below). Inequality is determined according to reference inequality,
	       *   [strict comparison](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators)
	       *    via the `!==` Javascript operator, unless `objectEquality == true`
	       *   (see next point)
	       * - When `objectEquality == true`, inequality of the `watchExpression` is determined
	       *   according to the {@link angular.equals} function. To save the value of the object for
	       *   later comparison, the {@link angular.copy} function is used. This therefore means that
	       *   watching complex objects will have adverse memory and performance implications.
	       * - This should not be used to watch for changes in objects that are (or contain)
	       *   [File](https://developer.mozilla.org/docs/Web/API/File) objects due to limitations with {@link angular.copy `angular.copy`}.
	       * - The watch `listener` may change the model, which may trigger other `listener`s to fire.
	       *   This is achieved by rerunning the watchers until no changes are detected. The rerun
	       *   iteration limit is 10 to prevent an infinite loop deadlock.
	       *
	       *
	       * If you want to be notified whenever {@link ng.$rootScope.Scope#$digest $digest} is called,
	       * you can register a `watchExpression` function with no `listener`. (Be prepared for
	       * multiple calls to your `watchExpression` because it will execute multiple times in a
	       * single {@link ng.$rootScope.Scope#$digest $digest} cycle if a change is detected.)
	       *
	       * After a watcher is registered with the scope, the `listener` fn is called asynchronously
	       * (via {@link ng.$rootScope.Scope#$evalAsync $evalAsync}) to initialize the
	       * watcher. In rare cases, this is undesirable because the listener is called when the result
	       * of `watchExpression` didn't change. To detect this scenario within the `listener` fn, you
	       * can compare the `newVal` and `oldVal`. If these two values are identical (`===`) then the
	       * listener was called due to initialization.
	       *
	       *
	       *
	       * @example
	       * ```js
	           // let's assume that scope was dependency injected as the $rootScope
	           var scope = $rootScope;
	           scope.name = 'misko';
	           scope.counter = 0;
	
	           expect(scope.counter).toEqual(0);
	           scope.$watch('name', function(newValue, oldValue) {
	             scope.counter = scope.counter + 1;
	           });
	           expect(scope.counter).toEqual(0);
	
	           scope.$digest();
	           // the listener is always called during the first $digest loop after it was registered
	           expect(scope.counter).toEqual(1);
	
	           scope.$digest();
	           // but now it will not be called unless the value changes
	           expect(scope.counter).toEqual(1);
	
	           scope.name = 'adam';
	           scope.$digest();
	           expect(scope.counter).toEqual(2);
	
	
	
	           // Using a function as a watchExpression
	           var food;
	           scope.foodCounter = 0;
	           expect(scope.foodCounter).toEqual(0);
	           scope.$watch(
	             // This function returns the value being watched. It is called for each turn of the $digest loop
	             function() { return food; },
	             // This is the change listener, called when the value returned from the above function changes
	             function(newValue, oldValue) {
	               if ( newValue !== oldValue ) {
	                 // Only increment the counter if the value changed
	                 scope.foodCounter = scope.foodCounter + 1;
	               }
	             }
	           );
	           // No digest has been run so the counter will be zero
	           expect(scope.foodCounter).toEqual(0);
	
	           // Run the digest but since food has not changed count will still be zero
	           scope.$digest();
	           expect(scope.foodCounter).toEqual(0);
	
	           // Update food and run digest.  Now the counter will increment
	           food = 'cheeseburger';
	           scope.$digest();
	           expect(scope.foodCounter).toEqual(1);
	
	       * ```
	       *
	       *
	       *
	       * @param {(function()|string)} watchExpression Expression that is evaluated on each
	       *    {@link ng.$rootScope.Scope#$digest $digest} cycle. A change in the return value triggers
	       *    a call to the `listener`.
	       *
	       *    - `string`: Evaluated as {@link guide/expression expression}
	       *    - `function(scope)`: called with current `scope` as a parameter.
	       * @param {function(newVal, oldVal, scope)} listener Callback called whenever the value
	       *    of `watchExpression` changes.
	       *
	       *    - `newVal` contains the current value of the `watchExpression`
	       *    - `oldVal` contains the previous value of the `watchExpression`
	       *    - `scope` refers to the current scope
	       * @param {boolean=} [objectEquality=false] Compare for object equality using {@link angular.equals} instead of
	       *     comparing for reference equality.
	       * @returns {function()} Returns a deregistration function for this listener.
	       */$watch:function $watch(watchExp,listener,objectEquality,prettyPrintExpression){var get=$parse(watchExp);var fn=isFunction(listener)?listener:noop;if(get.$$watchDelegate){return get.$$watchDelegate(this,fn,objectEquality,get,watchExp);}var scope=this,array=scope.$$watchers,watcher={fn:fn,last:initWatchVal,get:get,exp:prettyPrintExpression||watchExp,eq:!!objectEquality};lastDirtyWatch=null;if(!array){array=scope.$$watchers=[];array.$$digestWatchIndex=-1;}// we use unshift since we use a while loop in $digest for speed.
	// the while loop reads in reverse order.
	array.unshift(watcher);array.$$digestWatchIndex++;incrementWatchersCount(this,1);return function deregisterWatch(){var index=arrayRemove(array,watcher);if(index>=0){incrementWatchersCount(scope,-1);if(index<array.$$digestWatchIndex){array.$$digestWatchIndex--;}}lastDirtyWatch=null;};},/**
	       * @ngdoc method
	       * @name $rootScope.Scope#$watchGroup
	       * @kind function
	       *
	       * @description
	       * A variant of {@link ng.$rootScope.Scope#$watch $watch()} where it watches an array of `watchExpressions`.
	       * If any one expression in the collection changes the `listener` is executed.
	       *
	       * - The items in the `watchExpressions` array are observed via the standard `$watch` operation. Their return
	       *   values are examined for changes on every call to `$digest`.
	       * - The `listener` is called whenever any expression in the `watchExpressions` array changes.
	       *
	       * @param {Array.<string|Function(scope)>} watchExpressions Array of expressions that will be individually
	       * watched using {@link ng.$rootScope.Scope#$watch $watch()}
	       *
	       * @param {function(newValues, oldValues, scope)} listener Callback called whenever the return value of any
	       *    expression in `watchExpressions` changes
	       *    The `newValues` array contains the current values of the `watchExpressions`, with the indexes matching
	       *    those of `watchExpression`
	       *    and the `oldValues` array contains the previous values of the `watchExpressions`, with the indexes matching
	       *    those of `watchExpression`
	       *    The `scope` refers to the current scope.
	       * @returns {function()} Returns a de-registration function for all listeners.
	       */$watchGroup:function $watchGroup(watchExpressions,listener){var oldValues=new Array(watchExpressions.length);var newValues=new Array(watchExpressions.length);var deregisterFns=[];var self=this;var changeReactionScheduled=false;var firstRun=true;if(!watchExpressions.length){// No expressions means we call the listener ASAP
	var shouldCall=true;self.$evalAsync(function(){if(shouldCall)listener(newValues,newValues,self);});return function deregisterWatchGroup(){shouldCall=false;};}if(watchExpressions.length===1){// Special case size of one
	return this.$watch(watchExpressions[0],function watchGroupAction(value,oldValue,scope){newValues[0]=value;oldValues[0]=oldValue;listener(newValues,value===oldValue?newValues:oldValues,scope);});}forEach(watchExpressions,function(expr,i){var unwatchFn=self.$watch(expr,function watchGroupSubAction(value){newValues[i]=value;if(!changeReactionScheduled){changeReactionScheduled=true;self.$evalAsync(watchGroupAction);}});deregisterFns.push(unwatchFn);});function watchGroupAction(){changeReactionScheduled=false;try{if(firstRun){firstRun=false;listener(newValues,newValues,self);}else{listener(newValues,oldValues,self);}}finally{for(var i=0;i<watchExpressions.length;i++){oldValues[i]=newValues[i];}}}return function deregisterWatchGroup(){while(deregisterFns.length){deregisterFns.shift()();}};},/**
	       * @ngdoc method
	       * @name $rootScope.Scope#$watchCollection
	       * @kind function
	       *
	       * @description
	       * Shallow watches the properties of an object and fires whenever any of the properties change
	       * (for arrays, this implies watching the array items; for object maps, this implies watching
	       * the properties). If a change is detected, the `listener` callback is fired.
	       *
	       * - The `obj` collection is observed via standard $watch operation and is examined on every
	       *   call to $digest() to see if any items have been added, removed, or moved.
	       * - The `listener` is called whenever anything within the `obj` has changed. Examples include
	       *   adding, removing, and moving items belonging to an object or array.
	       *
	       *
	       * @example
	       * ```js
	          $scope.names = ['igor', 'matias', 'misko', 'james'];
	          $scope.dataCount = 4;
	
	          $scope.$watchCollection('names', function(newNames, oldNames) {
	            $scope.dataCount = newNames.length;
	          });
	
	          expect($scope.dataCount).toEqual(4);
	          $scope.$digest();
	
	          //still at 4 ... no changes
	          expect($scope.dataCount).toEqual(4);
	
	          $scope.names.pop();
	          $scope.$digest();
	
	          //now there's been a change
	          expect($scope.dataCount).toEqual(3);
	       * ```
	       *
	       *
	       * @param {string|function(scope)} obj Evaluated as {@link guide/expression expression}. The
	       *    expression value should evaluate to an object or an array which is observed on each
	       *    {@link ng.$rootScope.Scope#$digest $digest} cycle. Any shallow change within the
	       *    collection will trigger a call to the `listener`.
	       *
	       * @param {function(newCollection, oldCollection, scope)} listener a callback function called
	       *    when a change is detected.
	       *    - The `newCollection` object is the newly modified data obtained from the `obj` expression
	       *    - The `oldCollection` object is a copy of the former collection data.
	       *      Due to performance considerations, the`oldCollection` value is computed only if the
	       *      `listener` function declares two or more arguments.
	       *    - The `scope` argument refers to the current scope.
	       *
	       * @returns {function()} Returns a de-registration function for this listener. When the
	       *    de-registration function is executed, the internal watch operation is terminated.
	       */$watchCollection:function $watchCollection(obj,listener){// Mark the interceptor as
	// ... $$pure when literal since the instance will change when any input changes
	$watchCollectionInterceptor.$$pure=$parse(obj).literal;// ... $stateful when non-literal since we must read the state of the collection
	$watchCollectionInterceptor.$stateful=!$watchCollectionInterceptor.$$pure;var self=this;// the current value, updated on each dirty-check run
	var newValue;// a shallow copy of the newValue from the last dirty-check run,
	// updated to match newValue during dirty-check run
	var oldValue;// a shallow copy of the newValue from when the last change happened
	var veryOldValue;// only track veryOldValue if the listener is asking for it
	var trackVeryOldValue=listener.length>1;var changeDetected=0;var changeDetector=$parse(obj,$watchCollectionInterceptor);var internalArray=[];var internalObject={};var initRun=true;var oldLength=0;function $watchCollectionInterceptor(_value){newValue=_value;var newLength,key,bothNaN,newItem,oldItem;// If the new value is undefined, then return undefined as the watch may be a one-time watch
	if(isUndefined(newValue))return;if(!isObject(newValue)){// if primitive
	if(oldValue!==newValue){oldValue=newValue;changeDetected++;}}else if(isArrayLike(newValue)){if(oldValue!==internalArray){// we are transitioning from something which was not an array into array.
	oldValue=internalArray;oldLength=oldValue.length=0;changeDetected++;}newLength=newValue.length;if(oldLength!==newLength){// if lengths do not match we need to trigger change notification
	changeDetected++;oldValue.length=oldLength=newLength;}// copy the items to oldValue and look for changes.
	for(var i=0;i<newLength;i++){oldItem=oldValue[i];newItem=newValue[i];// eslint-disable-next-line no-self-compare
	bothNaN=oldItem!==oldItem&&newItem!==newItem;if(!bothNaN&&oldItem!==newItem){changeDetected++;oldValue[i]=newItem;}}}else{if(oldValue!==internalObject){// we are transitioning from something which was not an object into object.
	oldValue=internalObject={};oldLength=0;changeDetected++;}// copy the items to oldValue and look for changes.
	newLength=0;for(key in newValue){if(hasOwnProperty.call(newValue,key)){newLength++;newItem=newValue[key];oldItem=oldValue[key];if(key in oldValue){// eslint-disable-next-line no-self-compare
	bothNaN=oldItem!==oldItem&&newItem!==newItem;if(!bothNaN&&oldItem!==newItem){changeDetected++;oldValue[key]=newItem;}}else{oldLength++;oldValue[key]=newItem;changeDetected++;}}}if(oldLength>newLength){// we used to have more keys, need to find them and destroy them.
	changeDetected++;for(key in oldValue){if(!hasOwnProperty.call(newValue,key)){oldLength--;delete oldValue[key];}}}}return changeDetected;}function $watchCollectionAction(){if(initRun){initRun=false;listener(newValue,newValue,self);}else{listener(newValue,veryOldValue,self);}// make a copy for the next time a collection is changed
	if(trackVeryOldValue){if(!isObject(newValue)){//primitive
	veryOldValue=newValue;}else if(isArrayLike(newValue)){veryOldValue=new Array(newValue.length);for(var i=0;i<newValue.length;i++){veryOldValue[i]=newValue[i];}}else{// if object
	veryOldValue={};for(var key in newValue){if(hasOwnProperty.call(newValue,key)){veryOldValue[key]=newValue[key];}}}}}return this.$watch(changeDetector,$watchCollectionAction);},/**
	       * @ngdoc method
	       * @name $rootScope.Scope#$digest
	       * @kind function
	       *
	       * @description
	       * Processes all of the {@link ng.$rootScope.Scope#$watch watchers} of the current scope and
	       * its children. Because a {@link ng.$rootScope.Scope#$watch watcher}'s listener can change
	       * the model, the `$digest()` keeps calling the {@link ng.$rootScope.Scope#$watch watchers}
	       * until no more listeners are firing. This means that it is possible to get into an infinite
	       * loop. This function will throw `'Maximum iteration limit exceeded.'` if the number of
	       * iterations exceeds 10.
	       *
	       * Usually, you don't call `$digest()` directly in
	       * {@link ng.directive:ngController controllers} or in
	       * {@link ng.$compileProvider#directive directives}.
	       * Instead, you should call {@link ng.$rootScope.Scope#$apply $apply()} (typically from within
	       * a {@link ng.$compileProvider#directive directive}), which will force a `$digest()`.
	       *
	       * If you want to be notified whenever `$digest()` is called,
	       * you can register a `watchExpression` function with
	       * {@link ng.$rootScope.Scope#$watch $watch()} with no `listener`.
	       *
	       * In unit tests, you may need to call `$digest()` to simulate the scope life cycle.
	       *
	       * @example
	       * ```js
	           var scope = ...;
	           scope.name = 'misko';
	           scope.counter = 0;
	
	           expect(scope.counter).toEqual(0);
	           scope.$watch('name', function(newValue, oldValue) {
	             scope.counter = scope.counter + 1;
	           });
	           expect(scope.counter).toEqual(0);
	
	           scope.$digest();
	           // the listener is always called during the first $digest loop after it was registered
	           expect(scope.counter).toEqual(1);
	
	           scope.$digest();
	           // but now it will not be called unless the value changes
	           expect(scope.counter).toEqual(1);
	
	           scope.name = 'adam';
	           scope.$digest();
	           expect(scope.counter).toEqual(2);
	       * ```
	       *
	       */$digest:function $digest(){var watch,value,last,fn,get,watchers,dirty,ttl=TTL,next,current,target=asyncQueue.length?$rootScope:this,watchLog=[],logIdx,asyncTask;beginPhase('$digest');// Check for changes to browser url that happened in sync before the call to $digest
	$browser.$$checkUrlChange();if(this===$rootScope&&applyAsyncId!==null){// If this is the root scope, and $applyAsync has scheduled a deferred $apply(), then
	// cancel the scheduled $apply and flush the queue of expressions to be evaluated.
	$browser.defer.cancel(applyAsyncId);flushApplyAsync();}lastDirtyWatch=null;do{// "while dirty" loop
	dirty=false;current=target;// It's safe for asyncQueuePosition to be a local variable here because this loop can't
	// be reentered recursively. Calling $digest from a function passed to $evalAsync would
	// lead to a '$digest already in progress' error.
	for(var asyncQueuePosition=0;asyncQueuePosition<asyncQueue.length;asyncQueuePosition++){try{asyncTask=asyncQueue[asyncQueuePosition];fn=asyncTask.fn;fn(asyncTask.scope,asyncTask.locals);}catch(e){$exceptionHandler(e);}lastDirtyWatch=null;}asyncQueue.length=0;traverseScopesLoop:do{// "traverse the scopes" loop
	if(watchers=!current.$$suspended&&current.$$watchers){// process our watches
	watchers.$$digestWatchIndex=watchers.length;while(watchers.$$digestWatchIndex--){try{watch=watchers[watchers.$$digestWatchIndex];// Most common watches are on primitives, in which case we can short
	// circuit it with === operator, only when === fails do we use .equals
	if(watch){get=watch.get;if((value=get(current))!==(last=watch.last)&&!(watch.eq?equals(value,last):isNumberNaN(value)&&isNumberNaN(last))){dirty=true;lastDirtyWatch=watch;watch.last=watch.eq?copy(value,null):value;fn=watch.fn;fn(value,last===initWatchVal?value:last,current);if(ttl<5){logIdx=4-ttl;if(!watchLog[logIdx])watchLog[logIdx]=[];watchLog[logIdx].push({msg:isFunction(watch.exp)?'fn: '+(watch.exp.name||watch.exp.toString()):watch.exp,newVal:value,oldVal:last});}}else if(watch===lastDirtyWatch){// If the most recently dirty watcher is now clean, short circuit since the remaining watchers
	// have already been tested.
	dirty=false;break traverseScopesLoop;}}}catch(e){$exceptionHandler(e);}}}// Insanity Warning: scope depth-first traversal
	// yes, this code is a bit crazy, but it works and we have tests to prove it!
	// this piece should be kept in sync with the traversal in $broadcast
	// (though it differs due to having the extra check for $$suspended and does not
	// check $$listenerCount)
	if(!(next=!current.$$suspended&&current.$$watchersCount&&current.$$childHead||current!==target&&current.$$nextSibling)){while(current!==target&&!(next=current.$$nextSibling)){current=current.$parent;}}}while(current=next);// `break traverseScopesLoop;` takes us to here
	if((dirty||asyncQueue.length)&&!ttl--){clearPhase();throw $rootScopeMinErr('infdig','{0} $digest() iterations reached. Aborting!\n'+'Watchers fired in the last 5 iterations: {1}',TTL,watchLog);}}while(dirty||asyncQueue.length);clearPhase();// postDigestQueuePosition isn't local here because this loop can be reentered recursively.
	while(postDigestQueuePosition<postDigestQueue.length){try{postDigestQueue[postDigestQueuePosition++]();}catch(e){$exceptionHandler(e);}}postDigestQueue.length=postDigestQueuePosition=0;// Check for changes to browser url that happened during the $digest
	// (for which no event is fired; e.g. via `history.pushState()`)
	$browser.$$checkUrlChange();},/**
	       * @ngdoc method
	       * @name $rootScope.Scope#$suspend
	       * @kind function
	       *
	       * @description
	       * Suspend watchers of this scope subtree so that they will not be invoked during digest.
	       *
	       * This can be used to optimize your application when you know that running those watchers
	       * is redundant.
	       *
	       * **Warning**
	       *
	       * Suspending scopes from the digest cycle can have unwanted and difficult to debug results.
	       * Only use this approach if you are confident that you know what you are doing and have
	       * ample tests to ensure that bindings get updated as you expect.
	       *
	       * Some of the things to consider are:
	       *
	       * * Any external event on a directive/component will not trigger a digest while the hosting
	       *   scope is suspended - even if the event handler calls `$apply()` or `$rootScope.$digest()`.
	       * * Transcluded content exists on a scope that inherits from outside a directive but exists
	       *   as a child of the directive's containing scope. If the containing scope is suspended the
	       *   transcluded scope will also be suspended, even if the scope from which the transcluded
	       *   scope inherits is not suspended.
	       * * Multiple directives trying to manage the suspended status of a scope can confuse each other:
	       *    * A call to `$suspend()` on an already suspended scope is a no-op.
	       *    * A call to `$resume()` on a non-suspended scope is a no-op.
	       *    * If two directives suspend a scope, then one of them resumes the scope, the scope will no
	       *      longer be suspended. This could result in the other directive believing a scope to be
	       *      suspended when it is not.
	       * * If a parent scope is suspended then all its descendants will be also excluded from future
	       *   digests whether or not they have been suspended themselves. Note that this also applies to
	       *   isolate child scopes.
	       * * Calling `$digest()` directly on a descendant of a suspended scope will still run the watchers
	       *   for that scope and its descendants. When digesting we only check whether the current scope is
	       *   locally suspended, rather than checking whether it has a suspended ancestor.
	       * * Calling `$resume()` on a scope that has a suspended ancestor will not cause the scope to be
	       *   included in future digests until all its ancestors have been resumed.
	       * * Resolved promises, e.g. from explicit `$q` deferreds and `$http` calls, trigger `$apply()`
	       *   against the `$rootScope` and so will still trigger a global digest even if the promise was
	       *   initiated by a component that lives on a suspended scope.
	       */$suspend:function $suspend(){this.$$suspended=true;},/**
	       * @ngdoc method
	       * @name $rootScope.Scope#$isSuspended
	       * @kind function
	       *
	       * @description
	       * Call this method to determine if this scope has been explicitly suspended. It will not
	       * tell you whether an ancestor has been suspended.
	       * To determine if this scope will be excluded from a digest triggered at the $rootScope,
	       * for example, you must check all its ancestors:
	       *
	       * ```
	       * function isExcludedFromDigest(scope) {
	       *   while(scope) {
	       *     if (scope.$isSuspended()) return true;
	       *     scope = scope.$parent;
	       *   }
	       *   return false;
	       * ```
	       *
	       * Be aware that a scope may not be included in digests if it has a suspended ancestor,
	       * even if `$isSuspended()` returns false.
	       *
	       * @returns true if the current scope has been suspended.
	       */$isSuspended:function $isSuspended(){return this.$$suspended;},/**
	       * @ngdoc method
	       * @name $rootScope.Scope#$resume
	       * @kind function
	       *
	       * @description
	       * Resume watchers of this scope subtree in case it was suspended.
	       *
	       * See {@link $rootScope.Scope#$suspend} for information about the dangers of using this approach.
	       */$resume:function $resume(){this.$$suspended=false;},/**
	       * @ngdoc event
	       * @name $rootScope.Scope#$destroy
	       * @eventType broadcast on scope being destroyed
	       *
	       * @description
	       * Broadcasted when a scope and its children are being destroyed.
	       *
	       * Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to
	       * clean up DOM bindings before an element is removed from the DOM.
	       *//**
	       * @ngdoc method
	       * @name $rootScope.Scope#$destroy
	       * @kind function
	       *
	       * @description
	       * Removes the current scope (and all of its children) from the parent scope. Removal implies
	       * that calls to {@link ng.$rootScope.Scope#$digest $digest()} will no longer
	       * propagate to the current scope and its children. Removal also implies that the current
	       * scope is eligible for garbage collection.
	       *
	       * The `$destroy()` is usually used by directives such as
	       * {@link ng.directive:ngRepeat ngRepeat} for managing the
	       * unrolling of the loop.
	       *
	       * Just before a scope is destroyed, a `$destroy` event is broadcasted on this scope.
	       * Application code can register a `$destroy` event handler that will give it a chance to
	       * perform any necessary cleanup.
	       *
	       * Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to
	       * clean up DOM bindings before an element is removed from the DOM.
	       */$destroy:function $destroy(){// We can't destroy a scope that has been already destroyed.
	if(this.$$destroyed)return;var parent=this.$parent;this.$broadcast('$destroy');this.$$destroyed=true;if(this===$rootScope){//Remove handlers attached to window when $rootScope is removed
	$browser.$$applicationDestroyed();}incrementWatchersCount(this,-this.$$watchersCount);for(var eventName in this.$$listenerCount){decrementListenerCount(this,this.$$listenerCount[eventName],eventName);}// sever all the references to parent scopes (after this cleanup, the current scope should
	// not be retained by any of our references and should be eligible for garbage collection)
	if(parent&&parent.$$childHead===this)parent.$$childHead=this.$$nextSibling;if(parent&&parent.$$childTail===this)parent.$$childTail=this.$$prevSibling;if(this.$$prevSibling)this.$$prevSibling.$$nextSibling=this.$$nextSibling;if(this.$$nextSibling)this.$$nextSibling.$$prevSibling=this.$$prevSibling;// Disable listeners, watchers and apply/digest methods
	this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=noop;this.$on=this.$watch=this.$watchGroup=function(){return noop;};this.$$listeners={};// Disconnect the next sibling to prevent `cleanUpScope` destroying those too
	this.$$nextSibling=null;cleanUpScope(this);},/**
	       * @ngdoc method
	       * @name $rootScope.Scope#$eval
	       * @kind function
	       *
	       * @description
	       * Executes the `expression` on the current scope and returns the result. Any exceptions in
	       * the expression are propagated (uncaught). This is useful when evaluating AngularJS
	       * expressions.
	       *
	       * @example
	       * ```js
	           var scope = ng.$rootScope.Scope();
	           scope.a = 1;
	           scope.b = 2;
	
	           expect(scope.$eval('a+b')).toEqual(3);
	           expect(scope.$eval(function(scope){ return scope.a + scope.b; })).toEqual(3);
	       * ```
	       *
	       * @param {(string|function())=} expression An AngularJS expression to be executed.
	       *
	       *    - `string`: execute using the rules as defined in  {@link guide/expression expression}.
	       *    - `function(scope)`: execute the function with the current `scope` parameter.
	       *
	       * @param {(object)=} locals Local variables object, useful for overriding values in scope.
	       * @returns {*} The result of evaluating the expression.
	       */$eval:function $eval(expr,locals){return $parse(expr)(this,locals);},/**
	       * @ngdoc method
	       * @name $rootScope.Scope#$evalAsync
	       * @kind function
	       *
	       * @description
	       * Executes the expression on the current scope at a later point in time.
	       *
	       * The `$evalAsync` makes no guarantees as to when the `expression` will be executed, only
	       * that:
	       *
	       *   - it will execute after the function that scheduled the evaluation (preferably before DOM
	       *     rendering).
	       *   - at least one {@link ng.$rootScope.Scope#$digest $digest cycle} will be performed after
	       *     `expression` execution.
	       *
	       * Any exceptions from the execution of the expression are forwarded to the
	       * {@link ng.$exceptionHandler $exceptionHandler} service.
	       *
	       * __Note:__ if this function is called outside of a `$digest` cycle, a new `$digest` cycle
	       * will be scheduled. However, it is encouraged to always call code that changes the model
	       * from within an `$apply` call. That includes code evaluated via `$evalAsync`.
	       *
	       * @param {(string|function())=} expression An AngularJS expression to be executed.
	       *
	       *    - `string`: execute using the rules as defined in {@link guide/expression expression}.
	       *    - `function(scope)`: execute the function with the current `scope` parameter.
	       *
	       * @param {(object)=} locals Local variables object, useful for overriding values in scope.
	       */$evalAsync:function $evalAsync(expr,locals){// if we are outside of an $digest loop and this is the first time we are scheduling async
	// task also schedule async auto-flush
	if(!$rootScope.$$phase&&!asyncQueue.length){$browser.defer(function(){if(asyncQueue.length){$rootScope.$digest();}},null,'$evalAsync');}asyncQueue.push({scope:this,fn:$parse(expr),locals:locals});},$$postDigest:function $$postDigest(fn){postDigestQueue.push(fn);},/**
	       * @ngdoc method
	       * @name $rootScope.Scope#$apply
	       * @kind function
	       *
	       * @description
	       * `$apply()` is used to execute an expression in AngularJS from outside of the AngularJS
	       * framework. (For example from browser DOM events, setTimeout, XHR or third party libraries).
	       * Because we are calling into the AngularJS framework we need to perform proper scope life
	       * cycle of {@link ng.$exceptionHandler exception handling},
	       * {@link ng.$rootScope.Scope#$digest executing watches}.
	       *
	       * **Life cycle: Pseudo-Code of `$apply()`**
	       *
	       * ```js
	           function $apply(expr) {
	             try {
	               return $eval(expr);
	             } catch (e) {
	               $exceptionHandler(e);
	             } finally {
	               $root.$digest();
	             }
	           }
	       * ```
	       *
	       *
	       * Scope's `$apply()` method transitions through the following stages:
	       *
	       * 1. The {@link guide/expression expression} is executed using the
	       *    {@link ng.$rootScope.Scope#$eval $eval()} method.
	       * 2. Any exceptions from the execution of the expression are forwarded to the
	       *    {@link ng.$exceptionHandler $exceptionHandler} service.
	       * 3. The {@link ng.$rootScope.Scope#$watch watch} listeners are fired immediately after the
	       *    expression was executed using the {@link ng.$rootScope.Scope#$digest $digest()} method.
	       *
	       *
	       * @param {(string|function())=} exp An AngularJS expression to be executed.
	       *
	       *    - `string`: execute using the rules as defined in {@link guide/expression expression}.
	       *    - `function(scope)`: execute the function with current `scope` parameter.
	       *
	       * @returns {*} The result of evaluating the expression.
	       */$apply:function $apply(expr){try{beginPhase('$apply');try{return this.$eval(expr);}finally{clearPhase();}}catch(e){$exceptionHandler(e);}finally{try{$rootScope.$digest();}catch(e){$exceptionHandler(e);// eslint-disable-next-line no-unsafe-finally
	throw e;}}},/**
	       * @ngdoc method
	       * @name $rootScope.Scope#$applyAsync
	       * @kind function
	       *
	       * @description
	       * Schedule the invocation of $apply to occur at a later time. The actual time difference
	       * varies across browsers, but is typically around ~10 milliseconds.
	       *
	       * This can be used to queue up multiple expressions which need to be evaluated in the same
	       * digest.
	       *
	       * @param {(string|function())=} exp An AngularJS expression to be executed.
	       *
	       *    - `string`: execute using the rules as defined in {@link guide/expression expression}.
	       *    - `function(scope)`: execute the function with current `scope` parameter.
	       */$applyAsync:function $applyAsync(expr){var scope=this;if(expr){applyAsyncQueue.push($applyAsyncExpression);}expr=$parse(expr);scheduleApplyAsync();function $applyAsyncExpression(){scope.$eval(expr);}},/**
	       * @ngdoc method
	       * @name $rootScope.Scope#$on
	       * @kind function
	       *
	       * @description
	       * Listens on events of a given type. See {@link ng.$rootScope.Scope#$emit $emit} for
	       * discussion of event life cycle.
	       *
	       * The event listener function format is: `function(event, args...)`. The `event` object
	       * passed into the listener has the following attributes:
	       *
	       *   - `targetScope` - `{Scope}`: the scope on which the event was `$emit`-ed or
	       *     `$broadcast`-ed.
	       *   - `currentScope` - `{Scope}`: the scope that is currently handling the event. Once the
	       *     event propagates through the scope hierarchy, this property is set to null.
	       *   - `name` - `{string}`: name of the event.
	       *   - `stopPropagation` - `{function=}`: calling `stopPropagation` function will cancel
	       *     further event propagation (available only for events that were `$emit`-ed).
	       *   - `preventDefault` - `{function}`: calling `preventDefault` sets `defaultPrevented` flag
	       *     to true.
	       *   - `defaultPrevented` - `{boolean}`: true if `preventDefault` was called.
	       *
	       * @param {string} name Event name to listen on.
	       * @param {function(event, ...args)} listener Function to call when the event is emitted.
	       * @returns {function()} Returns a deregistration function for this listener.
	       */$on:function $on(name,listener){var namedListeners=this.$$listeners[name];if(!namedListeners){this.$$listeners[name]=namedListeners=[];}namedListeners.push(listener);var current=this;do{if(!current.$$listenerCount[name]){current.$$listenerCount[name]=0;}current.$$listenerCount[name]++;}while(current=current.$parent);var self=this;return function(){var indexOfListener=namedListeners.indexOf(listener);if(indexOfListener!==-1){// Use delete in the hope of the browser deallocating the memory for the array entry,
	// while not shifting the array indexes of other listeners.
	// See issue https://github.com/angular/angular.js/issues/16135
	delete namedListeners[indexOfListener];decrementListenerCount(self,1,name);}};},/**
	       * @ngdoc method
	       * @name $rootScope.Scope#$emit
	       * @kind function
	       *
	       * @description
	       * Dispatches an event `name` upwards through the scope hierarchy notifying the
	       * registered {@link ng.$rootScope.Scope#$on} listeners.
	       *
	       * The event life cycle starts at the scope on which `$emit` was called. All
	       * {@link ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get
	       * notified. Afterwards, the event traverses upwards toward the root scope and calls all
	       * registered listeners along the way. The event will stop propagating if one of the listeners
	       * cancels it.
	       *
	       * Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed
	       * onto the {@link ng.$exceptionHandler $exceptionHandler} service.
	       *
	       * @param {string} name Event name to emit.
	       * @param {...*} args Optional one or more arguments which will be passed onto the event listeners.
	       * @return {Object} Event object (see {@link ng.$rootScope.Scope#$on}).
	       */$emit:function $emit(name,args){var empty=[],namedListeners,scope=this,_stopPropagation=false,event={name:name,targetScope:scope,stopPropagation:function stopPropagation(){_stopPropagation=true;},preventDefault:function preventDefault(){event.defaultPrevented=true;},defaultPrevented:false},listenerArgs=concat([event],arguments,1),i,length;do{namedListeners=scope.$$listeners[name]||empty;event.currentScope=scope;for(i=0,length=namedListeners.length;i<length;i++){// if listeners were deregistered, defragment the array
	if(!namedListeners[i]){namedListeners.splice(i,1);i--;length--;continue;}try{//allow all listeners attached to the current scope to run
	namedListeners[i].apply(null,listenerArgs);}catch(e){$exceptionHandler(e);}}//if any listener on the current scope stops propagation, prevent bubbling
	if(_stopPropagation){break;}//traverse upwards
	scope=scope.$parent;}while(scope);event.currentScope=null;return event;},/**
	       * @ngdoc method
	       * @name $rootScope.Scope#$broadcast
	       * @kind function
	       *
	       * @description
	       * Dispatches an event `name` downwards to all child scopes (and their children) notifying the
	       * registered {@link ng.$rootScope.Scope#$on} listeners.
	       *
	       * The event life cycle starts at the scope on which `$broadcast` was called. All
	       * {@link ng.$rootScope.Scope#$on listeners} listening for `name` event on this scope get
	       * notified. Afterwards, the event propagates to all direct and indirect scopes of the current
	       * scope and calls all registered listeners along the way. The event cannot be canceled.
	       *
	       * Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed
	       * onto the {@link ng.$exceptionHandler $exceptionHandler} service.
	       *
	       * @param {string} name Event name to broadcast.
	       * @param {...*} args Optional one or more arguments which will be passed onto the event listeners.
	       * @return {Object} Event object, see {@link ng.$rootScope.Scope#$on}
	       */$broadcast:function $broadcast(name,args){var target=this,current=target,next=target,event={name:name,targetScope:target,preventDefault:function preventDefault(){event.defaultPrevented=true;},defaultPrevented:false};if(!target.$$listenerCount[name])return event;var listenerArgs=concat([event],arguments,1),listeners,i,length;//down while you can, then up and next sibling or up and next sibling until back at root
	while(current=next){event.currentScope=current;listeners=current.$$listeners[name]||[];for(i=0,length=listeners.length;i<length;i++){// if listeners were deregistered, defragment the array
	if(!listeners[i]){listeners.splice(i,1);i--;length--;continue;}try{listeners[i].apply(null,listenerArgs);}catch(e){$exceptionHandler(e);}}// Insanity Warning: scope depth-first traversal
	// yes, this code is a bit crazy, but it works and we have tests to prove it!
	// this piece should be kept in sync with the traversal in $digest
	// (though it differs due to having the extra check for $$listenerCount and
	// does not check $$suspended)
	if(!(next=current.$$listenerCount[name]&&current.$$childHead||current!==target&&current.$$nextSibling)){while(current!==target&&!(next=current.$$nextSibling)){current=current.$parent;}}}event.currentScope=null;return event;}};var $rootScope=new Scope();//The internal queues. Expose them on the $rootScope for debugging/testing purposes.
	var asyncQueue=$rootScope.$$asyncQueue=[];var postDigestQueue=$rootScope.$$postDigestQueue=[];var applyAsyncQueue=$rootScope.$$applyAsyncQueue=[];var postDigestQueuePosition=0;return $rootScope;function beginPhase(phase){if($rootScope.$$phase){throw $rootScopeMinErr('inprog','{0} already in progress',$rootScope.$$phase);}$rootScope.$$phase=phase;}function clearPhase(){$rootScope.$$phase=null;}function incrementWatchersCount(current,count){do{current.$$watchersCount+=count;}while(current=current.$parent);}function decrementListenerCount(current,count,name){do{current.$$listenerCount[name]-=count;if(current.$$listenerCount[name]===0){delete current.$$listenerCount[name];}}while(current=current.$parent);}/**
	     * function used as an initial value for watchers.
	     * because it's unique we can easily tell it apart from other values
	     */function initWatchVal(){}function flushApplyAsync(){while(applyAsyncQueue.length){try{applyAsyncQueue.shift()();}catch(e){$exceptionHandler(e);}}applyAsyncId=null;}function scheduleApplyAsync(){if(applyAsyncId===null){applyAsyncId=$browser.defer(function(){$rootScope.$apply(flushApplyAsync);},null,'$applyAsync');}}}];}/**
	 * @ngdoc service
	 * @name $rootElement
	 *
	 * @description
	 * The root element of AngularJS application. This is either the element where {@link
	 * ng.directive:ngApp ngApp} was declared or the element passed into
	 * {@link angular.bootstrap}. The element represents the root element of application. It is also the
	 * location where the application's {@link auto.$injector $injector} service gets
	 * published, and can be retrieved using `$rootElement.injector()`.
	 */// the implementation is in angular.bootstrap
	/**
	 * @this
	 * @description
	 * Private service to sanitize uris for links and images. Used by $compile and $sanitize.
	 */function $$SanitizeUriProvider(){var aHrefSanitizationTrustedUrlList=/^\s*(https?|s?ftp|mailto|tel|file):/,imgSrcSanitizationTrustedUrlList=/^\s*((https?|ftp|file|blob):|data:image\/)/;/**
	   * @description
	   * Retrieves or overrides the default regular expression that is used for determining trusted safe
	   * urls during a[href] sanitization.
	   *
	   * The sanitization is a security measure aimed at prevent XSS attacks via HTML anchor links.
	   *
	   * Any url due to be assigned to an `a[href]` attribute via interpolation is marked as requiring
	   * the $sce.URL security context. When interpolation occurs a call is made to `$sce.trustAsUrl(url)`
	   * which in turn may call `$$sanitizeUri(url, isMedia)` to sanitize the potentially malicious URL.
	   *
	   * If the URL matches the `aHrefSanitizationTrustedUrlList` regular expression, it is returned unchanged.
	   *
	   * If there is no match the URL is returned prefixed with `'unsafe:'` to ensure that when it is written
	   * to the DOM it is inactive and potentially malicious code will not be executed.
	   *
	   * @param {RegExp=} regexp New regexp to trust urls with.
	   * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for
	   *    chaining otherwise.
	   */this.aHrefSanitizationTrustedUrlList=function(regexp){if(isDefined(regexp)){aHrefSanitizationTrustedUrlList=regexp;return this;}return aHrefSanitizationTrustedUrlList;};/**
	   * @description
	   * Retrieves or overrides the default regular expression that is used for determining trusted safe
	   * urls during img[src] sanitization.
	   *
	   * The sanitization is a security measure aimed at prevent XSS attacks via HTML image src links.
	   *
	   * Any URL due to be assigned to an `img[src]` attribute via interpolation is marked as requiring
	   * the $sce.MEDIA_URL security context. When interpolation occurs a call is made to
	   * `$sce.trustAsMediaUrl(url)` which in turn may call `$$sanitizeUri(url, isMedia)` to sanitize
	   * the potentially malicious URL.
	   *
	   * If the URL matches the `imgSrcSanitizationTrustedUrlList` regular expression, it is returned
	   * unchanged.
	   *
	   * If there is no match the URL is returned prefixed with `'unsafe:'` to ensure that when it is written
	   * to the DOM it is inactive and potentially malicious code will not be executed.
	   *
	   * @param {RegExp=} regexp New regexp to trust urls with.
	   * @returns {RegExp|ng.$compileProvider} Current RegExp if called without value or self for
	   *    chaining otherwise.
	   */this.imgSrcSanitizationTrustedUrlList=function(regexp){if(isDefined(regexp)){imgSrcSanitizationTrustedUrlList=regexp;return this;}return imgSrcSanitizationTrustedUrlList;};this.$get=function(){return function sanitizeUri(uri,isMediaUrl){// if (!uri) return uri;
	var regex=isMediaUrl?imgSrcSanitizationTrustedUrlList:aHrefSanitizationTrustedUrlList;var normalizedVal=urlResolve(uri&&uri.trim()).href;if(normalizedVal!==''&&!normalizedVal.match(regex)){return'unsafe:'+normalizedVal;}return uri;};};}/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
	 *     Any commits to this file should be reviewed with security in mind.  *
	 *   Changes to this file can potentially create security vulnerabilities. *
	 *          An approval from 2 Core members with history of modifying      *
	 *                         this file is required.                          *
	 *                                                                         *
	 *  Does the change somehow allow for arbitrary javascript to be executed? *
	 *    Or allows for someone to change the prototype of built-in objects?   *
	 *     Or gives undesired access to variables likes document or window?    *
	 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *//* exported $SceProvider, $SceDelegateProvider */var $sceMinErr=minErr('$sce');var SCE_CONTEXTS={// HTML is used when there's HTML rendered (e.g. ng-bind-html, iframe srcdoc binding).
	HTML:'html',// Style statements or stylesheets. Currently unused in AngularJS.
	CSS:'css',// An URL used in a context where it refers to the source of media, which are not expected to be run
	// as scripts, such as an image, audio, video, etc.
	MEDIA_URL:'mediaUrl',// An URL used in a context where it does not refer to a resource that loads code.
	// A value that can be trusted as a URL can also trusted as a MEDIA_URL.
	URL:'url',// RESOURCE_URL is a subtype of URL used where the referred-to resource could be interpreted as
	// code. (e.g. ng-include, script src binding, templateUrl)
	// A value that can be trusted as a RESOURCE_URL, can also trusted as a URL and a MEDIA_URL.
	RESOURCE_URL:'resourceUrl',// Script. Currently unused in AngularJS.
	JS:'js'};// Helper functions follow.
	var UNDERSCORE_LOWERCASE_REGEXP=/_([a-z])/g;function snakeToCamel(name){return name.replace(UNDERSCORE_LOWERCASE_REGEXP,fnCamelCaseReplace);}function adjustMatcher(matcher){if(matcher==='self'){return matcher;}else if(isString(matcher)){// Strings match exactly except for 2 wildcards - '*' and '**'.
	// '*' matches any character except those from the set ':/.?&'.
	// '**' matches any character (like .* in a RegExp).
	// More than 2 *'s raises an error as it's ill defined.
	if(matcher.indexOf('***')>-1){throw $sceMinErr('iwcard','Illegal sequence *** in string matcher.  String: {0}',matcher);}matcher=escapeForRegexp(matcher).replace(/\\\*\\\*/g,'.*').replace(/\\\*/g,'[^:/.?&;]*');return new RegExp('^'+matcher+'$');}else if(isRegExp(matcher)){// The only other type of matcher allowed is a Regexp.
	// Match entire URL / disallow partial matches.
	// Flags are reset (i.e. no global, ignoreCase or multiline)
	return new RegExp('^'+matcher.source+'$');}else{throw $sceMinErr('imatcher','Matchers may only be "self", string patterns or RegExp objects');}}function adjustMatchers(matchers){var adjustedMatchers=[];if(isDefined(matchers)){forEach(matchers,function(matcher){adjustedMatchers.push(adjustMatcher(matcher));});}return adjustedMatchers;}/**
	 * @ngdoc service
	 * @name $sceDelegate
	 * @kind function
	 *
	 * @description
	 *
	 * `$sceDelegate` is a service that is used by the `$sce` service to provide {@link ng.$sce Strict
	 * Contextual Escaping (SCE)} services to AngularJS.
	 *
	 * For an overview of this service and the functionnality it provides in AngularJS, see the main
	 * page for {@link ng.$sce SCE}. The current page is targeted for developers who need to alter how
	 * SCE works in their application, which shouldn't be needed in most cases.
	 *
	 * <div class="alert alert-danger">
	 * AngularJS strongly relies on contextual escaping for the security of bindings: disabling or
	 * modifying this might cause cross site scripting (XSS) vulnerabilities. For libraries owners,
	 * changes to this service will also influence users, so be extra careful and document your changes.
	 * </div>
	 *
	 * Typically, you would configure or override the {@link ng.$sceDelegate $sceDelegate} instead of
	 * the `$sce` service to customize the way Strict Contextual Escaping works in AngularJS.  This is
	 * because, while the `$sce` provides numerous shorthand methods, etc., you really only need to
	 * override 3 core functions (`trustAs`, `getTrusted` and `valueOf`) to replace the way things
	 * work because `$sce` delegates to `$sceDelegate` for these operations.
	 *
	 * Refer {@link ng.$sceDelegateProvider $sceDelegateProvider} to configure this service.
	 *
	 * The default instance of `$sceDelegate` should work out of the box with little pain.  While you
	 * can override it completely to change the behavior of `$sce`, the common case would
	 * involve configuring the {@link ng.$sceDelegateProvider $sceDelegateProvider} instead by setting
	 * your own trusted and banned resource lists for trusting URLs used for loading AngularJS resources
	 * such as templates.  Refer {@link ng.$sceDelegateProvider#trustedResourceUrlList
	 * $sceDelegateProvider.trustedResourceUrlList} and {@link
	 * ng.$sceDelegateProvider#bannedResourceUrlList $sceDelegateProvider.bannedResourceUrlList}
	 *//**
	 * @ngdoc provider
	 * @name $sceDelegateProvider
	 * @this
	 *
	 * @description
	 *
	 * The `$sceDelegateProvider` provider allows developers to configure the {@link ng.$sceDelegate
	 * $sceDelegate service}, used as a delegate for {@link ng.$sce Strict Contextual Escaping (SCE)}.
	 *
	 * The `$sceDelegateProvider` allows one to get/set the `trustedResourceUrlList` and
	 * `bannedResourceUrlList` used to ensure that the URLs used for sourcing AngularJS templates and
	 * other script-running URLs are safe (all places that use the `$sce.RESOURCE_URL` context). See
	 * {@link ng.$sceDelegateProvider#trustedResourceUrlList
	 * $sceDelegateProvider.trustedResourceUrlList} and
	 * {@link ng.$sceDelegateProvider#bannedResourceUrlList $sceDelegateProvider.bannedResourceUrlList},
	 *
	 * For the general details about this service in AngularJS, read the main page for {@link ng.$sce
	 * Strict Contextual Escaping (SCE)}.
	 *
	 * **Example**:  Consider the following case. <a name="example"></a>
	 *
	 * - your app is hosted at url `http://myapp.example.com/`
	 * - but some of your templates are hosted on other domains you control such as
	 *   `http://srv01.assets.example.com/`, `http://srv02.assets.example.com/`, etc.
	 * - and you have an open redirect at `http://myapp.example.com/clickThru?...`.
	 *
	 * Here is what a secure configuration for this scenario might look like:
	 *
	 * ```
	 *  angular.module('myApp', []).config(function($sceDelegateProvider) {
	 *    $sceDelegateProvider.trustedResourceUrlList([
	 *      // Allow same origin resource loads.
	 *      'self',
	 *      // Allow loading from our assets domain.  Notice the difference between * and **.
	 *      'http://srv*.assets.example.com/**'
	 *    ]);
	 *
	 *    // The banned resource URL list overrides the trusted resource URL list so the open redirect
	 *    // here is blocked.
	 *    $sceDelegateProvider.bannedResourceUrlList([
	 *      'http://myapp.example.com/clickThru**'
	 *    ]);
	 *  });
	 * ```
	 * Note that an empty trusted resource URL list will block every resource URL from being loaded, and will require
	 * you to manually mark each one as trusted with `$sce.trustAsResourceUrl`. However, templates
	 * requested by {@link ng.$templateRequest $templateRequest} that are present in
	 * {@link ng.$templateCache $templateCache} will not go through this check. If you have a mechanism
	 * to populate your templates in that cache at config time, then it is a good idea to remove 'self'
	 * from the trusted resource URL lsit. This helps to mitigate the security impact of certain types
	 * of issues, like for instance attacker-controlled `ng-includes`.
	 */function $SceDelegateProvider(){this.SCE_CONTEXTS=SCE_CONTEXTS;// Resource URLs can also be trusted by policy.
	var trustedResourceUrlList=['self'],bannedResourceUrlList=[];/**
	   * @ngdoc method
	   * @name $sceDelegateProvider#trustedResourceUrlList
	   * @kind function
	   *
	   * @param {Array=} trustedResourceUrlList When provided, replaces the trustedResourceUrlList with
	   *     the value provided.  This must be an array or null.  A snapshot of this array is used so
	   *     further changes to the array are ignored.
	   *     Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items
	   *     allowed in this array.
	   *
	   * @return {Array} The currently set trusted resource URL array.
	   *
	   * @description
	   * Sets/Gets the list trusted of resource URLs.
	   *
	   * The **default value** when no `trustedResourceUrlList` has been explicitly set is `['self']`
	   * allowing only same origin resource requests.
	   *
	   * <div class="alert alert-warning">
	   * **Note:** the default `trustedResourceUrlList` of 'self' is not recommended if your app shares
	   * its origin with other apps! It is a good idea to limit it to only your application's directory.
	   * </div>
	   */this.trustedResourceUrlList=function(value){if(arguments.length){trustedResourceUrlList=adjustMatchers(value);}return trustedResourceUrlList;};/**
	   * @ngdoc method
	   * @name $sceDelegateProvider#resourceUrlWhitelist
	   * @kind function
	   *
	   * @deprecated
	   * sinceVersion="1.8.1"
	   *
	   * This method is deprecated. Use {@link $sceDelegateProvider#trustedResourceUrlList
	   * trustedResourceUrlList} instead.
	   */Object.defineProperty(this,'resourceUrlWhitelist',{get:function get(){return this.trustedResourceUrlList;},set:function set(value){this.trustedResourceUrlList=value;}});/**
	   * @ngdoc method
	   * @name $sceDelegateProvider#bannedResourceUrlList
	   * @kind function
	   *
	   * @param {Array=} bannedResourceUrlList When provided, replaces the `bannedResourceUrlList` with
	   *     the value provided. This must be an array or null. A snapshot of this array is used so
	   *     further changes to the array are ignored.</p><p>
	   *     Follow {@link ng.$sce#resourceUrlPatternItem this link} for a description of the items
	   *     allowed in this array.</p><p>
	   *     The typical usage for the `bannedResourceUrlList` is to **block
	   *     [open redirects](http://cwe.mitre.org/data/definitions/601.html)** served by your domain as
	   *     these would otherwise be trusted but actually return content from the redirected domain.
	   *     </p><p>
	   *     Finally, **the banned resource URL list overrides the trusted resource URL list** and has
	   *     the final say.
	   *
	   * @return {Array} The currently set `bannedResourceUrlList` array.
	   *
	   * @description
	   * Sets/Gets the `bannedResourceUrlList` of trusted resource URLs.
	   *
	   * The **default value** when no trusted resource URL list has been explicitly set is the empty
	   * array (i.e. there is no `bannedResourceUrlList`.)
	   */this.bannedResourceUrlList=function(value){if(arguments.length){bannedResourceUrlList=adjustMatchers(value);}return bannedResourceUrlList;};/**
	   * @ngdoc method
	   * @name $sceDelegateProvider#resourceUrlBlacklist
	   * @kind function
	   *
	   * @deprecated
	   * sinceVersion="1.8.1"
	   *
	   * This method is deprecated. Use {@link $sceDelegateProvider#bannedResourceUrlList
	   * bannedResourceUrlList} instead.
	   */Object.defineProperty(this,'resourceUrlBlacklist',{get:function get(){return this.bannedResourceUrlList;},set:function set(value){this.bannedResourceUrlList=value;}});this.$get=['$injector','$$sanitizeUri',function($injector,$$sanitizeUri){var htmlSanitizer=function htmlSanitizer(html){throw $sceMinErr('unsafe','Attempting to use an unsafe value in a safe context.');};if($injector.has('$sanitize')){htmlSanitizer=$injector.get('$sanitize');}function matchUrl(matcher,parsedUrl){if(matcher==='self'){return urlIsSameOrigin(parsedUrl)||urlIsSameOriginAsBaseUrl(parsedUrl);}else{// definitely a regex.  See adjustMatchers()
	return!!matcher.exec(parsedUrl.href);}}function isResourceUrlAllowedByPolicy(url){var parsedUrl=urlResolve(url.toString());var i,n,allowed=false;// Ensure that at least one item from the trusted resource URL list allows this url.
	for(i=0,n=trustedResourceUrlList.length;i<n;i++){if(matchUrl(trustedResourceUrlList[i],parsedUrl)){allowed=true;break;}}if(allowed){// Ensure that no item from the banned resource URL list has blocked this url.
	for(i=0,n=bannedResourceUrlList.length;i<n;i++){if(matchUrl(bannedResourceUrlList[i],parsedUrl)){allowed=false;break;}}}return allowed;}function generateHolderType(Base){var holderType=function TrustedValueHolderType(trustedValue){this.$$unwrapTrustedValue=function(){return trustedValue;};};if(Base){holderType.prototype=new Base();}holderType.prototype.valueOf=function sceValueOf(){return this.$$unwrapTrustedValue();};holderType.prototype.toString=function sceToString(){return this.$$unwrapTrustedValue().toString();};return holderType;}var trustedValueHolderBase=generateHolderType(),byType={};byType[SCE_CONTEXTS.HTML]=generateHolderType(trustedValueHolderBase);byType[SCE_CONTEXTS.CSS]=generateHolderType(trustedValueHolderBase);byType[SCE_CONTEXTS.MEDIA_URL]=generateHolderType(trustedValueHolderBase);byType[SCE_CONTEXTS.URL]=generateHolderType(byType[SCE_CONTEXTS.MEDIA_URL]);byType[SCE_CONTEXTS.JS]=generateHolderType(trustedValueHolderBase);byType[SCE_CONTEXTS.RESOURCE_URL]=generateHolderType(byType[SCE_CONTEXTS.URL]);/**
	     * @ngdoc method
	     * @name $sceDelegate#trustAs
	     *
	     * @description
	     * Returns a trusted representation of the parameter for the specified context. This trusted
	     * object will later on be used as-is, without any security check, by bindings or directives
	     * that require this security context.
	     * For instance, marking a string as trusted for the `$sce.HTML` context will entirely bypass
	     * the potential `$sanitize` call in corresponding `$sce.HTML` bindings or directives, such as
	     * `ng-bind-html`. Note that in most cases you won't need to call this function: if you have the
	     * sanitizer loaded, passing the value itself will render all the HTML that does not pose a
	     * security risk.
	     *
	     * See {@link ng.$sceDelegate#getTrusted getTrusted} for the function that will consume those
	     * trusted values, and {@link ng.$sce $sce} for general documentation about strict contextual
	     * escaping.
	     *
	     * @param {string} type The context in which this value is safe for use, e.g. `$sce.URL`,
	     *     `$sce.RESOURCE_URL`, `$sce.HTML`, `$sce.JS` or `$sce.CSS`.
	     *
	     * @param {*} value The value that should be considered trusted.
	     * @return {*} A trusted representation of value, that can be used in the given context.
	     */function trustAs(type,trustedValue){var Constructor=byType.hasOwnProperty(type)?byType[type]:null;if(!Constructor){throw $sceMinErr('icontext','Attempted to trust a value in invalid context. Context: {0}; Value: {1}',type,trustedValue);}if(trustedValue===null||isUndefined(trustedValue)||trustedValue===''){return trustedValue;}// All the current contexts in SCE_CONTEXTS happen to be strings.  In order to avoid trusting
	// mutable objects, we ensure here that the value passed in is actually a string.
	if(typeof trustedValue!=='string'){throw $sceMinErr('itype','Attempted to trust a non-string value in a content requiring a string: Context: {0}',type);}return new Constructor(trustedValue);}/**
	     * @ngdoc method
	     * @name $sceDelegate#valueOf
	     *
	     * @description
	     * If the passed parameter had been returned by a prior call to {@link ng.$sceDelegate#trustAs
	     * `$sceDelegate.trustAs`}, returns the value that had been passed to {@link
	     * ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}.
	     *
	     * If the passed parameter is not a value that had been returned by {@link
	     * ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}, it must be returned as-is.
	     *
	     * @param {*} value The result of a prior {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}
	     *     call or anything else.
	     * @return {*} The `value` that was originally provided to {@link ng.$sceDelegate#trustAs
	     *     `$sceDelegate.trustAs`} if `value` is the result of such a call.  Otherwise, returns
	     *     `value` unchanged.
	     */function valueOf(maybeTrusted){if(maybeTrusted instanceof trustedValueHolderBase){return maybeTrusted.$$unwrapTrustedValue();}else{return maybeTrusted;}}/**
	     * @ngdoc method
	     * @name $sceDelegate#getTrusted
	     *
	     * @description
	     * Given an object and a security context in which to assign it, returns a value that's safe to
	     * use in this context, which was represented by the parameter. To do so, this function either
	     * unwraps the safe type it has been given (for instance, a {@link ng.$sceDelegate#trustAs
	     * `$sceDelegate.trustAs`} result), or it might try to sanitize the value given, depending on
	     * the context and sanitizer availablility.
	     *
	     * The contexts that can be sanitized are $sce.MEDIA_URL, $sce.URL and $sce.HTML. The first two are available
	     * by default, and the third one relies on the `$sanitize` service (which may be loaded through
	     * the `ngSanitize` module). Furthermore, for $sce.RESOURCE_URL context, a plain string may be
	     * accepted if the resource url policy defined by {@link ng.$sceDelegateProvider#trustedResourceUrlList
	     * `$sceDelegateProvider.trustedResourceUrlList`} and {@link ng.$sceDelegateProvider#bannedResourceUrlList
	     * `$sceDelegateProvider.bannedResourceUrlList`} accepts that resource.
	     *
	     * This function will throw if the safe type isn't appropriate for this context, or if the
	     * value given cannot be accepted in the context (which might be caused by sanitization not
	     * being available, or the value not being recognized as safe).
	     *
	     * <div class="alert alert-danger">
	     * Disabling auto-escaping is extremely dangerous, it usually creates a Cross Site Scripting
	     * (XSS) vulnerability in your application.
	     * </div>
	     *
	     * @param {string} type The context in which this value is to be used (such as `$sce.HTML`).
	     * @param {*} maybeTrusted The result of a prior {@link ng.$sceDelegate#trustAs
	     *     `$sceDelegate.trustAs`} call, or anything else (which will not be considered trusted.)
	     * @return {*} A version of the value that's safe to use in the given context, or throws an
	     *     exception if this is impossible.
	     */function getTrusted(type,maybeTrusted){if(maybeTrusted===null||isUndefined(maybeTrusted)||maybeTrusted===''){return maybeTrusted;}var constructor=byType.hasOwnProperty(type)?byType[type]:null;// If maybeTrusted is a trusted class instance or subclass instance, then unwrap and return
	// as-is.
	if(constructor&&maybeTrusted instanceof constructor){return maybeTrusted.$$unwrapTrustedValue();}// If maybeTrusted is a trusted class instance but not of the correct trusted type
	// then unwrap it and allow it to pass through to the rest of the checks
	if(isFunction(maybeTrusted.$$unwrapTrustedValue)){maybeTrusted=maybeTrusted.$$unwrapTrustedValue();}// If we get here, then we will either sanitize the value or throw an exception.
	if(type===SCE_CONTEXTS.MEDIA_URL||type===SCE_CONTEXTS.URL){// we attempt to sanitize non-resource URLs
	return $$sanitizeUri(maybeTrusted.toString(),type===SCE_CONTEXTS.MEDIA_URL);}else if(type===SCE_CONTEXTS.RESOURCE_URL){if(isResourceUrlAllowedByPolicy(maybeTrusted)){return maybeTrusted;}else{throw $sceMinErr('insecurl','Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}',maybeTrusted.toString());}}else if(type===SCE_CONTEXTS.HTML){// htmlSanitizer throws its own error when no sanitizer is available.
	return htmlSanitizer(maybeTrusted);}// Default error when the $sce service has no way to make the input safe.
	throw $sceMinErr('unsafe','Attempting to use an unsafe value in a safe context.');}return{trustAs:trustAs,getTrusted:getTrusted,valueOf:valueOf};}];}/**
	 * @ngdoc provider
	 * @name $sceProvider
	 * @this
	 *
	 * @description
	 *
	 * The $sceProvider provider allows developers to configure the {@link ng.$sce $sce} service.
	 * -   enable/disable Strict Contextual Escaping (SCE) in a module
	 * -   override the default implementation with a custom delegate
	 *
	 * Read more about {@link ng.$sce Strict Contextual Escaping (SCE)}.
	 *//**
	 * @ngdoc service
	 * @name $sce
	 * @kind function
	 *
	 * @description
	 *
	 * `$sce` is a service that provides Strict Contextual Escaping services to AngularJS.
	 *
	 * ## Strict Contextual Escaping
	 *
	 * Strict Contextual Escaping (SCE) is a mode in which AngularJS constrains bindings to only render
	 * trusted values. Its goal is to assist in writing code in a way that (a) is secure by default, and
	 * (b) makes auditing for security vulnerabilities such as XSS, clickjacking, etc. a lot easier.
	 *
	 * ### Overview
	 *
	 * To systematically block XSS security bugs, AngularJS treats all values as untrusted by default in
	 * HTML or sensitive URL bindings. When binding untrusted values, AngularJS will automatically
	 * run security checks on them (sanitizations, trusted URL resource, depending on context), or throw
	 * when it cannot guarantee the security of the result. That behavior depends strongly on contexts:
	 * HTML can be sanitized, but template URLs cannot, for instance.
	 *
	 * To illustrate this, consider the `ng-bind-html` directive. It renders its value directly as HTML:
	 * we call that the *context*. When given an untrusted input, AngularJS will attempt to sanitize it
	 * before rendering if a sanitizer is available, and throw otherwise. To bypass sanitization and
	 * render the input as-is, you will need to mark it as trusted for that context before attempting
	 * to bind it.
	 *
	 * As of version 1.2, AngularJS ships with SCE enabled by default.
	 *
	 * ### In practice
	 *
	 * Here's an example of a binding in a privileged context:
	 *
	 * ```
	 * <input ng-model="userHtml" aria-label="User input">
	 * <div ng-bind-html="userHtml"></div>
	 * ```
	 *
	 * Notice that `ng-bind-html` is bound to `userHtml` controlled by the user.  With SCE
	 * disabled, this application allows the user to render arbitrary HTML into the DIV, which would
	 * be an XSS security bug. In a more realistic example, one may be rendering user comments, blog
	 * articles, etc. via bindings. (HTML is just one example of a context where rendering user
	 * controlled input creates security vulnerabilities.)
	 *
	 * For the case of HTML, you might use a library, either on the client side, or on the server side,
	 * to sanitize unsafe HTML before binding to the value and rendering it in the document.
	 *
	 * How would you ensure that every place that used these types of bindings was bound to a value that
	 * was sanitized by your library (or returned as safe for rendering by your server?)  How can you
	 * ensure that you didn't accidentally delete the line that sanitized the value, or renamed some
	 * properties/fields and forgot to update the binding to the sanitized value?
	 *
	 * To be secure by default, AngularJS makes sure bindings go through that sanitization, or
	 * any similar validation process, unless there's a good reason to trust the given value in this
	 * context.  That trust is formalized with a function call. This means that as a developer, you
	 * can assume all untrusted bindings are safe. Then, to audit your code for binding security issues,
	 * you just need to ensure the values you mark as trusted indeed are safe - because they were
	 * received from your server, sanitized by your library, etc. You can organize your codebase to
	 * help with this - perhaps allowing only the files in a specific directory to do this.
	 * Ensuring that the internal API exposed by that code doesn't markup arbitrary values as safe then
	 * becomes a more manageable task.
	 *
	 * In the case of AngularJS' SCE service, one uses {@link ng.$sce#trustAs $sce.trustAs}
	 * (and shorthand methods such as {@link ng.$sce#trustAsHtml $sce.trustAsHtml}, etc.) to
	 * build the trusted versions of your values.
	 *
	 * ### How does it work?
	 *
	 * In privileged contexts, directives and code will bind to the result of {@link ng.$sce#getTrusted
	 * $sce.getTrusted(context, value)} rather than to the value directly.  Think of this function as
	 * a way to enforce the required security context in your data sink. Directives use {@link
	 * ng.$sce#parseAs $sce.parseAs} rather than `$parse` to watch attribute bindings, which performs
	 * the {@link ng.$sce#getTrusted $sce.getTrusted} behind the scenes on non-constant literals. Also,
	 * when binding without directives, AngularJS will understand the context of your bindings
	 * automatically.
	 *
	 * As an example, {@link ng.directive:ngBindHtml ngBindHtml} uses {@link
	 * ng.$sce#parseAsHtml $sce.parseAsHtml(binding expression)}.  Here's the actual code (slightly
	 * simplified):
	 *
	 * ```
	 * var ngBindHtmlDirective = ['$sce', function($sce) {
	 *   return function(scope, element, attr) {
	 *     scope.$watch($sce.parseAsHtml(attr.ngBindHtml), function(value) {
	 *       element.html(value || '');
	 *     });
	 *   };
	 * }];
	 * ```
	 *
	 * ### Impact on loading templates
	 *
	 * This applies both to the {@link ng.directive:ngInclude `ng-include`} directive as well as
	 * `templateUrl`'s specified by {@link guide/directive directives}.
	 *
	 * By default, AngularJS only loads templates from the same domain and protocol as the application
	 * document.  This is done by calling {@link ng.$sce#getTrustedResourceUrl
	 * $sce.getTrustedResourceUrl} on the template URL.  To load templates from other domains and/or
	 * protocols, you may either add them to the {@link ng.$sceDelegateProvider#trustedResourceUrlList
	 * trustedResourceUrlList} or {@link ng.$sce#trustAsResourceUrl wrap them} into trusted values.
	 *
	 * *Please note*:
	 * The browser's
	 * [Same Origin Policy](https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest)
	 * and [Cross-Origin Resource Sharing (CORS)](http://www.w3.org/TR/cors/)
	 * policy apply in addition to this and may further restrict whether the template is successfully
	 * loaded.  This means that without the right CORS policy, loading templates from a different domain
	 * won't work on all browsers.  Also, loading templates from `file://` URL does not work on some
	 * browsers.
	 *
	 * ### This feels like too much overhead
	 *
	 * It's important to remember that SCE only applies to interpolation expressions.
	 *
	 * If your expressions are constant literals, they're automatically trusted and you don't need to
	 * call `$sce.trustAs` on them (e.g.
	 * `<div ng-bind-html="'<b>implicitly trusted</b>'"></div>`) just works (remember to include the
	 * `ngSanitize` module). The `$sceDelegate` will also use the `$sanitize` service if it is available
	 * when binding untrusted values to `$sce.HTML` context.
	 * AngularJS provides an implementation in `angular-sanitize.js`, and if you
	 * wish to use it, you will also need to depend on the {@link ngSanitize `ngSanitize`} module in
	 * your application.
	 *
	 * The included {@link ng.$sceDelegate $sceDelegate} comes with sane defaults to allow you to load
	 * templates in `ng-include` from your application's domain without having to even know about SCE.
	 * It blocks loading templates from other domains or loading templates over http from an https
	 * served document.  You can change these by setting your own custom {@link
	 * ng.$sceDelegateProvider#trustedResourceUrlList trusted resource URL list} and {@link
	 * ng.$sceDelegateProvider#bannedResourceUrlList banned resource URL list} for matching such URLs.
	 *
	 * This significantly reduces the overhead.  It is far easier to pay the small overhead and have an
	 * application that's secure and can be audited to verify that with much more ease than bolting
	 * security onto an application later.
	 *
	 * <a name="contexts"></a>
	 * ### What trusted context types are supported?
	 *
	 * | Context             | Notes          |
	 * |---------------------|----------------|
	 * | `$sce.HTML`         | For HTML that's safe to source into the application.  The {@link ng.directive:ngBindHtml ngBindHtml} directive uses this context for bindings. If an unsafe value is encountered and the {@link ngSanitize $sanitize} module is present this will sanitize the value instead of throwing an error. |
	 * | `$sce.CSS`          | For CSS that's safe to source into the application.  Currently unused.  Feel free to use it in your own directives. |
	 * | `$sce.MEDIA_URL`    | For URLs that are safe to render as media. Is automatically converted from string by sanitizing when needed. |
	 * | `$sce.URL`          | For URLs that are safe to follow as links. Is automatically converted from string by sanitizing when needed. Note that `$sce.URL` makes a stronger statement about the URL than `$sce.MEDIA_URL` does and therefore contexts requiring values trusted for `$sce.URL` can be used anywhere that values trusted for `$sce.MEDIA_URL` are required.|
	 * | `$sce.RESOURCE_URL` | For URLs that are not only safe to follow as links, but whose contents are also safe to include in your application.  Examples include `ng-include`, `src` / `ngSrc` bindings for tags other than `IMG` (e.g. `IFRAME`, `OBJECT`, etc.)  <br><br>Note that `$sce.RESOURCE_URL` makes a stronger statement about the URL than `$sce.URL` or `$sce.MEDIA_URL` do and therefore contexts requiring values trusted for `$sce.RESOURCE_URL` can be used anywhere that values trusted for `$sce.URL` or `$sce.MEDIA_URL` are required. <br><br> The {@link $sceDelegateProvider#trustedResourceUrlList $sceDelegateProvider#trustedResourceUrlList()} and {@link $sceDelegateProvider#bannedResourceUrlList $sceDelegateProvider#bannedResourceUrlList()} can be used to restrict trusted origins for `RESOURCE_URL` |
	 * | `$sce.JS`           | For JavaScript that is safe to execute in your application's context.  Currently unused.  Feel free to use it in your own directives. |
	 *
	 *
	 * <div class="alert alert-warning">
	 * Be aware that, before AngularJS 1.7.0, `a[href]` and `img[src]` used to sanitize their
	 * interpolated values directly rather than rely upon {@link ng.$sce#getTrusted `$sce.getTrusted`}.
	 *
	 * **As of 1.7.0, this is no longer the case.**
	 *
	 * Now such interpolations are marked as requiring `$sce.URL` (for `a[href]`) or `$sce.MEDIA_URL`
	 * (for `img[src]`), so that the sanitization happens (via `$sce.getTrusted...`) when the `$interpolate`
	 * service evaluates the expressions.
	 * </div>
	 *
	 * There are no CSS or JS context bindings in AngularJS currently, so their corresponding `$sce.trustAs`
	 * functions aren't useful yet. This might evolve.
	 *
	 * ### Format of items in {@link ng.$sceDelegateProvider#trustedResourceUrlList trustedResourceUrlList}/{@link ng.$sceDelegateProvider#bannedResourceUrlList bannedResourceUrlList} <a name="resourceUrlPatternItem"></a>
	 *
	 *  Each element in these arrays must be one of the following:
	 *
	 *  - **'self'**
	 *    - The special **string**, `'self'`, can be used to match against all URLs of the **same
	 *      domain** as the application document using the **same protocol**.
	 *  - **String** (except the special value `'self'`)
	 *    - The string is matched against the full *normalized / absolute URL* of the resource
	 *      being tested (substring matches are not good enough.)
	 *    - There are exactly **two wildcard sequences** - `*` and `**`.  All other characters
	 *      match themselves.
	 *    - `*`: matches zero or more occurrences of any character other than one of the following 6
	 *      characters: '`:`', '`/`', '`.`', '`?`', '`&`' and '`;`'.  It's a useful wildcard for use
	 *      for matching resource URL lists.
	 *    - `**`: matches zero or more occurrences of *any* character.  As such, it's not
	 *      appropriate for use in a scheme, domain, etc. as it would match too much.  (e.g.
	 *      http://**.example.com/ would match http://evil.com/?ignore=.example.com/ and that might
	 *      not have been the intention.)  Its usage at the very end of the path is ok.  (e.g.
	 *      http://foo.example.com/templates/**).
	 *  - **RegExp** (*see caveat below*)
	 *    - *Caveat*:  While regular expressions are powerful and offer great flexibility,  their syntax
	 *      (and all the inevitable escaping) makes them *harder to maintain*.  It's easy to
	 *      accidentally introduce a bug when one updates a complex expression (imho, all regexes should
	 *      have good test coverage).  For instance, the use of `.` in the regex is correct only in a
	 *      small number of cases.  A `.` character in the regex used when matching the scheme or a
	 *      subdomain could be matched against a `:` or literal `.` that was likely not intended.   It
	 *      is highly recommended to use the string patterns and only fall back to regular expressions
	 *      as a last resort.
	 *    - The regular expression must be an instance of RegExp (i.e. not a string.)  It is
	 *      matched against the **entire** *normalized / absolute URL* of the resource being tested
	 *      (even when the RegExp did not have the `^` and `$` codes.)  In addition, any flags
	 *      present on the RegExp (such as multiline, global, ignoreCase) are ignored.
	 *    - If you are generating your JavaScript from some other templating engine (not
	 *      recommended, e.g. in issue [#4006](https://github.com/angular/angular.js/issues/4006)),
	 *      remember to escape your regular expression (and be aware that you might need more than
	 *      one level of escaping depending on your templating engine and the way you interpolated
	 *      the value.)  Do make use of your platform's escaping mechanism as it might be good
	 *      enough before coding your own.  E.g. Ruby has
	 *      [Regexp.escape(str)](http://www.ruby-doc.org/core-2.0.0/Regexp.html#method-c-escape)
	 *      and Python has [re.escape](http://docs.python.org/library/re.html#re.escape).
	 *      Javascript lacks a similar built in function for escaping.  Take a look at Google
	 *      Closure library's [goog.string.regExpEscape(s)](
	 *      http://docs.closure-library.googlecode.com/git/closure_goog_string_string.js.source.html#line962).
	 *
	 * Refer {@link ng.$sceDelegateProvider $sceDelegateProvider} for an example.
	 *
	 * ### Show me an example using SCE.
	 *
	 * <example module="mySceApp" deps="angular-sanitize.js" name="sce-service">
	 * <file name="index.html">
	 *   <div ng-controller="AppController as myCtrl">
	 *     <i ng-bind-html="myCtrl.explicitlyTrustedHtml" id="explicitlyTrustedHtml"></i><br><br>
	 *     <b>User comments</b><br>
	 *     By default, HTML that isn't explicitly trusted (e.g. Alice's comment) is sanitized when
	 *     $sanitize is available.  If $sanitize isn't available, this results in an error instead of an
	 *     exploit.
	 *     <div class="well">
	 *       <div ng-repeat="userComment in myCtrl.userComments">
	 *         <b>{{userComment.name}}</b>:
	 *         <span ng-bind-html="userComment.htmlComment" class="htmlComment"></span>
	 *         <br>
	 *       </div>
	 *     </div>
	 *   </div>
	 * </file>
	 *
	 * <file name="script.js">
	 *   angular.module('mySceApp', ['ngSanitize'])
	 *     .controller('AppController', ['$http', '$templateCache', '$sce',
	 *       function AppController($http, $templateCache, $sce) {
	 *         var self = this;
	 *         $http.get('test_data.json', {cache: $templateCache}).then(function(response) {
	 *           self.userComments = response.data;
	 *         });
	 *         self.explicitlyTrustedHtml = $sce.trustAsHtml(
	 *             '<span onmouseover="this.textContent=&quot;Explicitly trusted HTML bypasses ' +
	 *             'sanitization.&quot;">Hover over this text.</span>');
	 *       }]);
	 * </file>
	 *
	 * <file name="test_data.json">
	 * [
	 *   { "name": "Alice",
	 *     "htmlComment":
	 *         "<span onmouseover='this.textContent=\"PWN3D!\"'>Is <i>anyone</i> reading this?</span>"
	 *   },
	 *   { "name": "Bob",
	 *     "htmlComment": "<i>Yes!</i>  Am I the only other one?"
	 *   }
	 * ]
	 * </file>
	 *
	 * <file name="protractor.js" type="protractor">
	 *   describe('SCE doc demo', function() {
	 *     it('should sanitize untrusted values', function() {
	 *       expect(element.all(by.css('.htmlComment')).first().getAttribute('innerHTML'))
	 *           .toBe('<span>Is <i>anyone</i> reading this?</span>');
	 *     });
	 *
	 *     it('should NOT sanitize explicitly trusted values', function() {
	 *       expect(element(by.id('explicitlyTrustedHtml')).getAttribute('innerHTML')).toBe(
	 *           '<span onmouseover="this.textContent=&quot;Explicitly trusted HTML bypasses ' +
	 *           'sanitization.&quot;">Hover over this text.</span>');
	 *     });
	 *   });
	 * </file>
	 * </example>
	 *
	 *
	 *
	 * ## Can I disable SCE completely?
	 *
	 * Yes, you can.  However, this is strongly discouraged.  SCE gives you a lot of security benefits
	 * for little coding overhead.  It will be much harder to take an SCE disabled application and
	 * either secure it on your own or enable SCE at a later stage.  It might make sense to disable SCE
	 * for cases where you have a lot of existing code that was written before SCE was introduced and
	 * you're migrating them a module at a time. Also do note that this is an app-wide setting, so if
	 * you are writing a library, you will cause security bugs applications using it.
	 *
	 * That said, here's how you can completely disable SCE:
	 *
	 * ```
	 * angular.module('myAppWithSceDisabledmyApp', []).config(function($sceProvider) {
	 *   // Completely disable SCE.  For demonstration purposes only!
	 *   // Do not use in new projects or libraries.
	 *   $sceProvider.enabled(false);
	 * });
	 * ```
	 *
	 */function $SceProvider(){var enabled=true;/**
	   * @ngdoc method
	   * @name $sceProvider#enabled
	   * @kind function
	   *
	   * @param {boolean=} value If provided, then enables/disables SCE application-wide.
	   * @return {boolean} True if SCE is enabled, false otherwise.
	   *
	   * @description
	   * Enables/disables SCE and returns the current value.
	   */this.enabled=function(value){if(arguments.length){enabled=!!value;}return enabled;};/* Design notes on the default implementation for SCE.
	   *
	   * The API contract for the SCE delegate
	   * -------------------------------------
	   * The SCE delegate object must provide the following 3 methods:
	   *
	   * - trustAs(contextEnum, value)
	   *     This method is used to tell the SCE service that the provided value is OK to use in the
	   *     contexts specified by contextEnum.  It must return an object that will be accepted by
	   *     getTrusted() for a compatible contextEnum and return this value.
	   *
	   * - valueOf(value)
	   *     For values that were not produced by trustAs(), return them as is.  For values that were
	   *     produced by trustAs(), return the corresponding input value to trustAs.  Basically, if
	   *     trustAs is wrapping the given values into some type, this operation unwraps it when given
	   *     such a value.
	   *
	   * - getTrusted(contextEnum, value)
	   *     This function should return the value that is safe to use in the context specified by
	   *     contextEnum or throw and exception otherwise.
	   *
	   * NOTE: This contract deliberately does NOT state that values returned by trustAs() must be
	   * opaque or wrapped in some holder object.  That happens to be an implementation detail.  For
	   * instance, an implementation could maintain a registry of all trusted objects by context.  In
	   * such a case, trustAs() would return the same object that was passed in.  getTrusted() would
	   * return the same object passed in if it was found in the registry under a compatible context or
	   * throw an exception otherwise.  An implementation might only wrap values some of the time based
	   * on some criteria.  getTrusted() might return a value and not throw an exception for special
	   * constants or objects even if not wrapped.  All such implementations fulfill this contract.
	   *
	   *
	   * A note on the inheritance model for SCE contexts
	   * ------------------------------------------------
	   * I've used inheritance and made RESOURCE_URL wrapped types a subtype of URL wrapped types.  This
	   * is purely an implementation details.
	   *
	   * The contract is simply this:
	   *
	   *     getTrusted($sce.RESOURCE_URL, value) succeeding implies that getTrusted($sce.URL, value)
	   *     will also succeed.
	   *
	   * Inheritance happens to capture this in a natural way. In some future, we may not use
	   * inheritance anymore. That is OK because no code outside of sce.js and sceSpecs.js would need to
	   * be aware of this detail.
	   */this.$get=['$parse','$sceDelegate',function($parse,$sceDelegate){// Support: IE 9-11 only
	// Prereq: Ensure that we're not running in IE<11 quirks mode.  In that mode, IE < 11 allow
	// the "expression(javascript expression)" syntax which is insecure.
	if(enabled&&msie<8){throw $sceMinErr('iequirks','Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks '+'mode.  You can fix this by adding the text <!doctype html> to the top of your HTML '+'document.  See http://docs.angularjs.org/api/ng.$sce for more information.');}var sce=shallowCopy(SCE_CONTEXTS);/**
	     * @ngdoc method
	     * @name $sce#isEnabled
	     * @kind function
	     *
	     * @return {Boolean} True if SCE is enabled, false otherwise.  If you want to set the value, you
	     *     have to do it at module config time on {@link ng.$sceProvider $sceProvider}.
	     *
	     * @description
	     * Returns a boolean indicating if SCE is enabled.
	     */sce.isEnabled=function(){return enabled;};sce.trustAs=$sceDelegate.trustAs;sce.getTrusted=$sceDelegate.getTrusted;sce.valueOf=$sceDelegate.valueOf;if(!enabled){sce.trustAs=sce.getTrusted=function(type,value){return value;};sce.valueOf=identity;}/**
	     * @ngdoc method
	     * @name $sce#parseAs
	     *
	     * @description
	     * Converts AngularJS {@link guide/expression expression} into a function.  This is like {@link
	     * ng.$parse $parse} and is identical when the expression is a literal constant.  Otherwise, it
	     * wraps the expression in a call to {@link ng.$sce#getTrusted $sce.getTrusted(*type*,
	     * *result*)}
	     *
	     * @param {string} type The SCE context in which this result will be used.
	     * @param {string} expression String expression to compile.
	     * @return {function(context, locals)} A function which represents the compiled expression:
	     *
	     *    * `context` – `{object}` – an object against which any expressions embedded in the
	     *      strings are evaluated against (typically a scope object).
	     *    * `locals` – `{object=}` – local variables context object, useful for overriding values
	     *      in `context`.
	     */sce.parseAs=function sceParseAs(type,expr){var parsed=$parse(expr);if(parsed.literal&&parsed.constant){return parsed;}else{return $parse(expr,function(value){return sce.getTrusted(type,value);});}};/**
	     * @ngdoc method
	     * @name $sce#trustAs
	     *
	     * @description
	     * Delegates to {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs`}. As such, returns a
	     * wrapped object that represents your value, and the trust you have in its safety for the given
	     * context. AngularJS can then use that value as-is in bindings of the specified secure context.
	     * This is used in bindings for `ng-bind-html`, `ng-include`, and most `src` attribute
	     * interpolations. See {@link ng.$sce $sce} for strict contextual escaping.
	     *
	     * @param {string} type The context in which this value is safe for use, e.g. `$sce.URL`,
	     *     `$sce.RESOURCE_URL`, `$sce.HTML`, `$sce.JS` or `$sce.CSS`.
	     *
	     * @param {*} value The value that that should be considered trusted.
	     * @return {*} A wrapped version of value that can be used as a trusted variant of your `value`
	     *     in the context you specified.
	     *//**
	     * @ngdoc method
	     * @name $sce#trustAsHtml
	     *
	     * @description
	     * Shorthand method.  `$sce.trustAsHtml(value)` →
	     *     {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.HTML, value)`}
	     *
	     * @param {*} value The value to mark as trusted for `$sce.HTML` context.
	     * @return {*} A wrapped version of value that can be used as a trusted variant of your `value`
	     *     in `$sce.HTML` context (like `ng-bind-html`).
	     *//**
	     * @ngdoc method
	     * @name $sce#trustAsCss
	     *
	     * @description
	     * Shorthand method.  `$sce.trustAsCss(value)` →
	     *     {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.CSS, value)`}
	     *
	     * @param {*} value The value to mark as trusted for `$sce.CSS` context.
	     * @return {*} A wrapped version of value that can be used as a trusted variant
	     *     of your `value` in `$sce.CSS` context. This context is currently unused, so there are
	     *     almost no reasons to use this function so far.
	     *//**
	     * @ngdoc method
	     * @name $sce#trustAsUrl
	     *
	     * @description
	     * Shorthand method.  `$sce.trustAsUrl(value)` →
	     *     {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.URL, value)`}
	     *
	     * @param {*} value The value to mark as trusted for `$sce.URL` context.
	     * @return {*} A wrapped version of value that can be used as a trusted variant of your `value`
	     *     in `$sce.URL` context. That context is currently unused, so there are almost no reasons
	     *     to use this function so far.
	     *//**
	     * @ngdoc method
	     * @name $sce#trustAsResourceUrl
	     *
	     * @description
	     * Shorthand method.  `$sce.trustAsResourceUrl(value)` →
	     *     {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.RESOURCE_URL, value)`}
	     *
	     * @param {*} value The value to mark as trusted for `$sce.RESOURCE_URL` context.
	     * @return {*} A wrapped version of value that can be used as a trusted variant of your `value`
	     *     in `$sce.RESOURCE_URL` context (template URLs in `ng-include`, most `src` attribute
	     *     bindings, ...)
	     *//**
	     * @ngdoc method
	     * @name $sce#trustAsJs
	     *
	     * @description
	     * Shorthand method.  `$sce.trustAsJs(value)` →
	     *     {@link ng.$sceDelegate#trustAs `$sceDelegate.trustAs($sce.JS, value)`}
	     *
	     * @param {*} value The value to mark as trusted for `$sce.JS` context.
	     * @return {*} A wrapped version of value that can be used as a trusted variant of your `value`
	     *     in `$sce.JS` context. That context is currently unused, so there are almost no reasons to
	     *     use this function so far.
	     *//**
	     * @ngdoc method
	     * @name $sce#getTrusted
	     *
	     * @description
	     * Delegates to {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted`}.  As such,
	     * takes any input, and either returns a value that's safe to use in the specified context,
	     * or throws an exception. This function is aware of trusted values created by the `trustAs`
	     * function and its shorthands, and when contexts are appropriate, returns the unwrapped value
	     * as-is. Finally, this function can also throw when there is no way to turn `maybeTrusted` in a
	     * safe value (e.g., no sanitization is available or possible.)
	     *
	     * @param {string} type The context in which this value is to be used.
	     * @param {*} maybeTrusted The result of a prior {@link ng.$sce#trustAs
	     *     `$sce.trustAs`} call, or anything else (which will not be considered trusted.)
	     * @return {*} A version of the value that's safe to use in the given context, or throws an
	     *     exception if this is impossible.
	     *//**
	     * @ngdoc method
	     * @name $sce#getTrustedHtml
	     *
	     * @description
	     * Shorthand method.  `$sce.getTrustedHtml(value)` →
	     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.HTML, value)`}
	     *
	     * @param {*} value The value to pass to `$sce.getTrusted`.
	     * @return {*} The return value of `$sce.getTrusted($sce.HTML, value)`
	     *//**
	     * @ngdoc method
	     * @name $sce#getTrustedCss
	     *
	     * @description
	     * Shorthand method.  `$sce.getTrustedCss(value)` →
	     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.CSS, value)`}
	     *
	     * @param {*} value The value to pass to `$sce.getTrusted`.
	     * @return {*} The return value of `$sce.getTrusted($sce.CSS, value)`
	     *//**
	     * @ngdoc method
	     * @name $sce#getTrustedUrl
	     *
	     * @description
	     * Shorthand method.  `$sce.getTrustedUrl(value)` →
	     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.URL, value)`}
	     *
	     * @param {*} value The value to pass to `$sce.getTrusted`.
	     * @return {*} The return value of `$sce.getTrusted($sce.URL, value)`
	     *//**
	     * @ngdoc method
	     * @name $sce#getTrustedResourceUrl
	     *
	     * @description
	     * Shorthand method.  `$sce.getTrustedResourceUrl(value)` →
	     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.RESOURCE_URL, value)`}
	     *
	     * @param {*} value The value to pass to `$sceDelegate.getTrusted`.
	     * @return {*} The return value of `$sce.getTrusted($sce.RESOURCE_URL, value)`
	     *//**
	     * @ngdoc method
	     * @name $sce#getTrustedJs
	     *
	     * @description
	     * Shorthand method.  `$sce.getTrustedJs(value)` →
	     *     {@link ng.$sceDelegate#getTrusted `$sceDelegate.getTrusted($sce.JS, value)`}
	     *
	     * @param {*} value The value to pass to `$sce.getTrusted`.
	     * @return {*} The return value of `$sce.getTrusted($sce.JS, value)`
	     *//**
	     * @ngdoc method
	     * @name $sce#parseAsHtml
	     *
	     * @description
	     * Shorthand method.  `$sce.parseAsHtml(expression string)` →
	     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.HTML, value)`}
	     *
	     * @param {string} expression String expression to compile.
	     * @return {function(context, locals)} A function which represents the compiled expression:
	     *
	     *    * `context` – `{object}` – an object against which any expressions embedded in the
	     *      strings are evaluated against (typically a scope object).
	     *    * `locals` – `{object=}` – local variables context object, useful for overriding values
	     *      in `context`.
	     *//**
	     * @ngdoc method
	     * @name $sce#parseAsCss
	     *
	     * @description
	     * Shorthand method.  `$sce.parseAsCss(value)` →
	     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.CSS, value)`}
	     *
	     * @param {string} expression String expression to compile.
	     * @return {function(context, locals)} A function which represents the compiled expression:
	     *
	     *    * `context` – `{object}` – an object against which any expressions embedded in the
	     *      strings are evaluated against (typically a scope object).
	     *    * `locals` – `{object=}` – local variables context object, useful for overriding values
	     *      in `context`.
	     *//**
	     * @ngdoc method
	     * @name $sce#parseAsUrl
	     *
	     * @description
	     * Shorthand method.  `$sce.parseAsUrl(value)` →
	     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.URL, value)`}
	     *
	     * @param {string} expression String expression to compile.
	     * @return {function(context, locals)} A function which represents the compiled expression:
	     *
	     *    * `context` – `{object}` – an object against which any expressions embedded in the
	     *      strings are evaluated against (typically a scope object).
	     *    * `locals` – `{object=}` – local variables context object, useful for overriding values
	     *      in `context`.
	     *//**
	     * @ngdoc method
	     * @name $sce#parseAsResourceUrl
	     *
	     * @description
	     * Shorthand method.  `$sce.parseAsResourceUrl(value)` →
	     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.RESOURCE_URL, value)`}
	     *
	     * @param {string} expression String expression to compile.
	     * @return {function(context, locals)} A function which represents the compiled expression:
	     *
	     *    * `context` – `{object}` – an object against which any expressions embedded in the
	     *      strings are evaluated against (typically a scope object).
	     *    * `locals` – `{object=}` – local variables context object, useful for overriding values
	     *      in `context`.
	     *//**
	     * @ngdoc method
	     * @name $sce#parseAsJs
	     *
	     * @description
	     * Shorthand method.  `$sce.parseAsJs(value)` →
	     *     {@link ng.$sce#parseAs `$sce.parseAs($sce.JS, value)`}
	     *
	     * @param {string} expression String expression to compile.
	     * @return {function(context, locals)} A function which represents the compiled expression:
	     *
	     *    * `context` – `{object}` – an object against which any expressions embedded in the
	     *      strings are evaluated against (typically a scope object).
	     *    * `locals` – `{object=}` – local variables context object, useful for overriding values
	     *      in `context`.
	     */// Shorthand delegations.
	var parse=sce.parseAs,getTrusted=sce.getTrusted,trustAs=sce.trustAs;forEach(SCE_CONTEXTS,function(enumValue,name){var lName=lowercase(name);sce[snakeToCamel('parse_as_'+lName)]=function(expr){return parse(enumValue,expr);};sce[snakeToCamel('get_trusted_'+lName)]=function(value){return getTrusted(enumValue,value);};sce[snakeToCamel('trust_as_'+lName)]=function(value){return trustAs(enumValue,value);};});return sce;}];}/* exported $SnifferProvider *//**
	 * !!! This is an undocumented "private" service !!!
	 *
	 * @name $sniffer
	 * @requires $window
	 * @requires $document
	 * @this
	 *
	 * @property {boolean} history Does the browser support html5 history api ?
	 * @property {boolean} transitions Does the browser support CSS transition events ?
	 * @property {boolean} animations Does the browser support CSS animation events ?
	 *
	 * @description
	 * This is very simple implementation of testing browser's features.
	 */function $SnifferProvider(){this.$get=['$window','$document',function($window,$document){var eventSupport={},// Chrome Packaged Apps are not allowed to access `history.pushState`.
	// If not sandboxed, they can be detected by the presence of `chrome.app.runtime`
	// (see https://developer.chrome.com/apps/api_index). If sandboxed, they can be detected by
	// the presence of an extension runtime ID and the absence of other Chrome runtime APIs
	// (see https://developer.chrome.com/apps/manifest/sandbox).
	// (NW.js apps have access to Chrome APIs, but do support `history`.)
	isNw=$window.nw&&$window.nw.process,isChromePackagedApp=!isNw&&$window.chrome&&($window.chrome.app&&$window.chrome.app.runtime||!$window.chrome.app&&$window.chrome.runtime&&$window.chrome.runtime.id),hasHistoryPushState=!isChromePackagedApp&&$window.history&&$window.history.pushState,android=toInt((/android (\d+)/.exec(lowercase(($window.navigator||{}).userAgent))||[])[1]),boxee=/Boxee/i.test(($window.navigator||{}).userAgent),document=$document[0]||{},bodyStyle=document.body&&document.body.style,transitions=false,animations=false;if(bodyStyle){// Support: Android <5, Blackberry Browser 10, default Chrome in Android 4.4.x
	// Mentioned browsers need a -webkit- prefix for transitions & animations.
	transitions=!!('transition'in bodyStyle||'webkitTransition'in bodyStyle);animations=!!('animation'in bodyStyle||'webkitAnimation'in bodyStyle);}return{// Android has history.pushState, but it does not update location correctly
	// so let's not use the history API at all.
	// http://code.google.com/p/android/issues/detail?id=17471
	// https://github.com/angular/angular.js/issues/904
	// older webkit browser (533.9) on Boxee box has exactly the same problem as Android has
	// so let's not use the history API also
	// We are purposefully using `!(android < 4)` to cover the case when `android` is undefined
	history:!!(hasHistoryPushState&&!(android<4)&&!boxee),hasEvent:function hasEvent(event){// Support: IE 9-11 only
	// IE9 implements 'input' event it's so fubared that we rather pretend that it doesn't have
	// it. In particular the event is not fired when backspace or delete key are pressed or
	// when cut operation is performed.
	// IE10+ implements 'input' event but it erroneously fires under various situations,
	// e.g. when placeholder changes, or a form is focused.
	if(event==='input'&&msie)return false;if(isUndefined(eventSupport[event])){var divElm=document.createElement('div');eventSupport[event]='on'+event in divElm;}return eventSupport[event];},csp:csp(),transitions:transitions,animations:animations,android:android};}];}/**
	 * ! This is a private undocumented service !
	 *
	 * @name $$taskTrackerFactory
	 * @description
	 * A function to create `TaskTracker` instances.
	 *
	 * A `TaskTracker` can keep track of pending tasks (grouped by type) and can notify interested
	 * parties when all pending tasks (or tasks of a specific type) have been completed.
	 *
	 * @param {$log} log - A logger instance (such as `$log`). Used to log error during callback
	 *     execution.
	 *
	 * @this
	 */function $$TaskTrackerFactoryProvider(){this.$get=valueFn(function(log){return new TaskTracker(log);});}function TaskTracker(log){var self=this;var taskCounts={};var taskCallbacks=[];var ALL_TASKS_TYPE=self.ALL_TASKS_TYPE='$$all$$';var DEFAULT_TASK_TYPE=self.DEFAULT_TASK_TYPE='$$default$$';/**
	   * Execute the specified function and decrement the appropriate `taskCounts` counter.
	   * If the counter reaches 0, all corresponding `taskCallbacks` are executed.
	   *
	   * @param {Function} fn - The function to execute.
	   * @param {string=} [taskType=DEFAULT_TASK_TYPE] - The type of task that is being completed.
	   */self.completeTask=completeTask;/**
	   * Increase the task count for the specified task type (or the default task type if non is
	   * specified).
	   *
	   * @param {string=} [taskType=DEFAULT_TASK_TYPE] - The type of task whose count will be increased.
	   */self.incTaskCount=incTaskCount;/**
	   * Execute the specified callback when all pending tasks have been completed.
	   *
	   * If there are no pending tasks, the callback is executed immediately. You can optionally limit
	   * the tasks that will be waited for to a specific type, by passing a `taskType`.
	   *
	   * @param {function} callback - The function to call when there are no pending tasks.
	   * @param {string=} [taskType=ALL_TASKS_TYPE] - The type of tasks that will be waited for.
	   */self.notifyWhenNoPendingTasks=notifyWhenNoPendingTasks;function completeTask(fn,taskType){taskType=taskType||DEFAULT_TASK_TYPE;try{fn();}finally{decTaskCount(taskType);var countForType=taskCounts[taskType];var countForAll=taskCounts[ALL_TASKS_TYPE];// If at least one of the queues (`ALL_TASKS_TYPE` or `taskType`) is empty, run callbacks.
	if(!countForAll||!countForType){var getNextCallback=!countForAll?getLastCallback:getLastCallbackForType;var nextCb;while(nextCb=getNextCallback(taskType)){try{nextCb();}catch(e){log.error(e);}}}}}function decTaskCount(taskType){taskType=taskType||DEFAULT_TASK_TYPE;if(taskCounts[taskType]){taskCounts[taskType]--;taskCounts[ALL_TASKS_TYPE]--;}}function getLastCallback(){var cbInfo=taskCallbacks.pop();return cbInfo&&cbInfo.cb;}function getLastCallbackForType(taskType){for(var i=taskCallbacks.length-1;i>=0;--i){var cbInfo=taskCallbacks[i];if(cbInfo.type===taskType){taskCallbacks.splice(i,1);return cbInfo.cb;}}}function incTaskCount(taskType){taskType=taskType||DEFAULT_TASK_TYPE;taskCounts[taskType]=(taskCounts[taskType]||0)+1;taskCounts[ALL_TASKS_TYPE]=(taskCounts[ALL_TASKS_TYPE]||0)+1;}function notifyWhenNoPendingTasks(callback,taskType){taskType=taskType||ALL_TASKS_TYPE;if(!taskCounts[taskType]){callback();}else{taskCallbacks.push({type:taskType,cb:callback});}}}var $templateRequestMinErr=minErr('$templateRequest');/**
	 * @ngdoc provider
	 * @name $templateRequestProvider
	 * @this
	 *
	 * @description
	 * Used to configure the options passed to the {@link $http} service when making a template request.
	 *
	 * For example, it can be used for specifying the "Accept" header that is sent to the server, when
	 * requesting a template.
	 */function $TemplateRequestProvider(){var httpOptions;/**
	   * @ngdoc method
	   * @name $templateRequestProvider#httpOptions
	   * @description
	   * The options to be passed to the {@link $http} service when making the request.
	   * You can use this to override options such as the "Accept" header for template requests.
	   *
	   * The {@link $templateRequest} will set the `cache` and the `transformResponse` properties of the
	   * options if not overridden here.
	   *
	   * @param {string=} value new value for the {@link $http} options.
	   * @returns {string|self} Returns the {@link $http} options when used as getter and self if used as setter.
	   */this.httpOptions=function(val){if(val){httpOptions=val;return this;}return httpOptions;};/**
	   * @ngdoc service
	   * @name $templateRequest
	   *
	   * @description
	   * The `$templateRequest` service runs security checks then downloads the provided template using
	   * `$http` and, upon success, stores the contents inside of `$templateCache`. If the HTTP request
	   * fails or the response data of the HTTP request is empty, a `$compile` error will be thrown (the
	   * exception can be thwarted by setting the 2nd parameter of the function to true). Note that the
	   * contents of `$templateCache` are trusted, so the call to `$sce.getTrustedUrl(tpl)` is omitted
	   * when `tpl` is of type string and `$templateCache` has the matching entry.
	   *
	   * If you want to pass custom options to the `$http` service, such as setting the Accept header you
	   * can configure this via {@link $templateRequestProvider#httpOptions}.
	   *
	   * `$templateRequest` is used internally by {@link $compile}, {@link ngRoute.$route}, and directives such
	   * as {@link ngInclude} to download and cache templates.
	   *
	   * 3rd party modules should use `$templateRequest` if their services or directives are loading
	   * templates.
	   *
	   * @param {string|TrustedResourceUrl} tpl The HTTP request template URL
	   * @param {boolean=} ignoreRequestError Whether or not to ignore the exception when the request fails or the template is empty
	   *
	   * @return {Promise} a promise for the HTTP response data of the given URL.
	   *
	   * @property {number} totalPendingRequests total amount of pending template requests being downloaded.
	   */this.$get=['$exceptionHandler','$templateCache','$http','$q','$sce',function($exceptionHandler,$templateCache,$http,$q,$sce){function handleRequestFn(tpl,ignoreRequestError){handleRequestFn.totalPendingRequests++;// We consider the template cache holds only trusted templates, so
	// there's no need to go through adding the template again to the trusted
	// resources for keys that already are included in there. This also makes
	// AngularJS accept any script directive, no matter its name. However, we
	// still need to unwrap trusted types.
	if(!isString(tpl)||isUndefined($templateCache.get(tpl))){tpl=$sce.getTrustedResourceUrl(tpl);}var transformResponse=$http.defaults&&$http.defaults.transformResponse;if(isArray(transformResponse)){transformResponse=transformResponse.filter(function(transformer){return transformer!==defaultHttpResponseTransform;});}else if(transformResponse===defaultHttpResponseTransform){transformResponse=null;}return $http.get(tpl,extend({cache:$templateCache,transformResponse:transformResponse},httpOptions)).finally(function(){handleRequestFn.totalPendingRequests--;}).then(function(response){return $templateCache.put(tpl,response.data);},handleError);function handleError(resp){if(!ignoreRequestError){resp=$templateRequestMinErr('tpload','Failed to load template: {0} (HTTP status: {1} {2})',tpl,resp.status,resp.statusText);$exceptionHandler(resp);}return $q.reject(resp);}}handleRequestFn.totalPendingRequests=0;return handleRequestFn;}];}/** @this */function $$TestabilityProvider(){this.$get=['$rootScope','$browser','$location',function($rootScope,$browser,$location){/**
	     * @name $testability
	     *
	     * @description
	     * The private $$testability service provides a collection of methods for use when debugging
	     * or by automated test and debugging tools.
	     */var testability={};/**
	     * @name $$testability#findBindings
	     *
	     * @description
	     * Returns an array of elements that are bound (via ng-bind or {{}})
	     * to expressions matching the input.
	     *
	     * @param {Element} element The element root to search from.
	     * @param {string} expression The binding expression to match.
	     * @param {boolean} opt_exactMatch If true, only returns exact matches
	     *     for the expression. Filters and whitespace are ignored.
	     */testability.findBindings=function(element,expression,opt_exactMatch){var bindings=element.getElementsByClassName('ng-binding');var matches=[];forEach(bindings,function(binding){var dataBinding=angular.element(binding).data('$binding');if(dataBinding){forEach(dataBinding,function(bindingName){if(opt_exactMatch){var matcher=new RegExp('(^|\\s)'+escapeForRegexp(expression)+'(\\s|\\||$)');if(matcher.test(bindingName)){matches.push(binding);}}else{if(bindingName.indexOf(expression)!==-1){matches.push(binding);}}});}});return matches;};/**
	     * @name $$testability#findModels
	     *
	     * @description
	     * Returns an array of elements that are two-way found via ng-model to
	     * expressions matching the input.
	     *
	     * @param {Element} element The element root to search from.
	     * @param {string} expression The model expression to match.
	     * @param {boolean} opt_exactMatch If true, only returns exact matches
	     *     for the expression.
	     */testability.findModels=function(element,expression,opt_exactMatch){var prefixes=['ng-','data-ng-','ng\\:'];for(var p=0;p<prefixes.length;++p){var attributeEquals=opt_exactMatch?'=':'*=';var selector='['+prefixes[p]+'model'+attributeEquals+'"'+expression+'"]';var elements=element.querySelectorAll(selector);if(elements.length){return elements;}}};/**
	     * @name $$testability#getLocation
	     *
	     * @description
	     * Shortcut for getting the location in a browser agnostic way. Returns
	     *     the path, search, and hash. (e.g. /path?a=b#hash)
	     */testability.getLocation=function(){return $location.url();};/**
	     * @name $$testability#setLocation
	     *
	     * @description
	     * Shortcut for navigating to a location without doing a full page reload.
	     *
	     * @param {string} url The location url (path, search and hash,
	     *     e.g. /path?a=b#hash) to go to.
	     */testability.setLocation=function(url){if(url!==$location.url()){$location.url(url);$rootScope.$digest();}};/**
	     * @name $$testability#whenStable
	     *
	     * @description
	     * Calls the callback when all pending tasks are completed.
	     *
	     * Types of tasks waited for include:
	     * - Pending timeouts (via {@link $timeout}).
	     * - Pending HTTP requests (via {@link $http}).
	     * - In-progress route transitions (via {@link $route}).
	     * - Pending tasks scheduled via {@link $rootScope#$applyAsync}.
	     * - Pending tasks scheduled via {@link $rootScope#$evalAsync}.
	     *   These include tasks scheduled via `$evalAsync()` indirectly (such as {@link $q} promises).
	     *
	     * @param {function} callback
	     */testability.whenStable=function(callback){$browser.notifyWhenNoOutstandingRequests(callback);};return testability;}];}var $timeoutMinErr=minErr('$timeout');/** @this */function $TimeoutProvider(){this.$get=['$rootScope','$browser','$q','$$q','$exceptionHandler',function($rootScope,$browser,$q,$$q,$exceptionHandler){var deferreds={};/**
	     * @ngdoc service
	     * @name $timeout
	     *
	     * @description
	     * AngularJS's wrapper for `window.setTimeout`. The `fn` function is wrapped into a try/catch
	     * block and delegates any exceptions to
	     * {@link ng.$exceptionHandler $exceptionHandler} service.
	     *
	     * The return value of calling `$timeout` is a promise, which will be resolved when
	     * the delay has passed and the timeout function, if provided, is executed.
	     *
	     * To cancel a timeout request, call `$timeout.cancel(promise)`.
	     *
	     * In tests you can use {@link ngMock.$timeout `$timeout.flush()`} to
	     * synchronously flush the queue of deferred functions.
	     *
	     * If you only want a promise that will be resolved after some specified delay
	     * then you can call `$timeout` without the `fn` function.
	     *
	     * @param {function()=} fn A function, whose execution should be delayed.
	     * @param {number=} [delay=0] Delay in milliseconds.
	     * @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise
	     *   will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.
	     * @param {...*=} Pass additional parameters to the executed function.
	     * @returns {Promise} Promise that will be resolved when the timeout is reached. The promise
	     *   will be resolved with the return value of the `fn` function.
	     *
	     */function timeout(fn,delay,invokeApply){if(!isFunction(fn)){invokeApply=delay;delay=fn;fn=noop;}var args=sliceArgs(arguments,3),skipApply=isDefined(invokeApply)&&!invokeApply,deferred=(skipApply?$$q:$q).defer(),promise=deferred.promise,timeoutId;timeoutId=$browser.defer(function(){try{deferred.resolve(fn.apply(null,args));}catch(e){deferred.reject(e);$exceptionHandler(e);}finally{delete deferreds[promise.$$timeoutId];}if(!skipApply)$rootScope.$apply();},delay,'$timeout');promise.$$timeoutId=timeoutId;deferreds[timeoutId]=deferred;return promise;}/**
	     * @ngdoc method
	     * @name $timeout#cancel
	     *
	     * @description
	     * Cancels a task associated with the `promise`. As a result of this, the promise will be
	     * resolved with a rejection.
	     *
	     * @param {Promise=} promise Promise returned by the `$timeout` function.
	     * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully
	     *   canceled.
	     */timeout.cancel=function(promise){if(!promise)return false;if(!promise.hasOwnProperty('$$timeoutId')){throw $timeoutMinErr('badprom','`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.');}if(!deferreds.hasOwnProperty(promise.$$timeoutId))return false;var id=promise.$$timeoutId;var deferred=deferreds[id];// Timeout cancels should not report an unhandled promise.
	markQExceptionHandled(deferred.promise);deferred.reject('canceled');delete deferreds[id];return $browser.defer.cancel(id);};return timeout;}];}// NOTE:  The usage of window and document instead of $window and $document here is
	// deliberate.  This service depends on the specific behavior of anchor nodes created by the
	// browser (resolving and parsing URLs) that is unlikely to be provided by mock objects and
	// cause us to break tests.  In addition, when the browser resolves a URL for XHR, it
	// doesn't know about mocked locations and resolves URLs to the real document - which is
	// exactly the behavior needed here.  There is little value is mocking these out for this
	// service.
	var urlParsingNode=window.document.createElement('a');var originUrl=urlResolve(window.location.href);var baseUrlParsingNode;urlParsingNode.href='http://[::1]';// Support: IE 9-11 only, Edge 16-17 only (fixed in 18 Preview)
	// IE/Edge don't wrap IPv6 addresses' hostnames in square brackets
	// when parsed out of an anchor element.
	var ipv6InBrackets=urlParsingNode.hostname==='[::1]';/**
	 *
	 * Implementation Notes for non-IE browsers
	 * ----------------------------------------
	 * Assigning a URL to the href property of an anchor DOM node, even one attached to the DOM,
	 * results both in the normalizing and parsing of the URL.  Normalizing means that a relative
	 * URL will be resolved into an absolute URL in the context of the application document.
	 * Parsing means that the anchor node's host, hostname, protocol, port, pathname and related
	 * properties are all populated to reflect the normalized URL.  This approach has wide
	 * compatibility - Safari 1+, Mozilla 1+ etc.  See
	 * http://www.aptana.com/reference/html/api/HTMLAnchorElement.html
	 *
	 * Implementation Notes for IE
	 * ---------------------------
	 * IE <= 10 normalizes the URL when assigned to the anchor node similar to the other
	 * browsers.  However, the parsed components will not be set if the URL assigned did not specify
	 * them.  (e.g. if you assign a.href = "foo", then a.protocol, a.host, etc. will be empty.)  We
	 * work around that by performing the parsing in a 2nd step by taking a previously normalized
	 * URL (e.g. by assigning to a.href) and assigning it a.href again.  This correctly populates the
	 * properties such as protocol, hostname, port, etc.
	 *
	 * References:
	 *   http://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement
	 *   http://www.aptana.com/reference/html/api/HTMLAnchorElement.html
	 *   http://url.spec.whatwg.org/#urlutils
	 *   https://github.com/angular/angular.js/pull/2902
	 *   http://james.padolsey.com/javascript/parsing-urls-with-the-dom/
	 *
	 * @kind function
	 * @param {string|object} url The URL to be parsed. If `url` is not a string, it will be returned
	 *     unchanged.
	 * @description Normalizes and parses a URL.
	 * @returns {object} Returns the normalized URL as a dictionary.
	 *
	 *   | member name   | Description                                                            |
	 *   |---------------|------------------------------------------------------------------------|
	 *   | href          | A normalized version of the provided URL if it was not an absolute URL |
	 *   | protocol      | The protocol without the trailing colon                                |
	 *   | host          | The host and port (if the port is non-default) of the normalizedUrl    |
	 *   | search        | The search params, minus the question mark                             |
	 *   | hash          | The hash string, minus the hash symbol                                 |
	 *   | hostname      | The hostname                                                           |
	 *   | port          | The port, without ":"                                                  |
	 *   | pathname      | The pathname, beginning with "/"                                       |
	 *
	 */function urlResolve(url){if(!isString(url))return url;var href=url;// Support: IE 9-11 only
	if(msie){// Normalize before parse.  Refer Implementation Notes on why this is
	// done in two steps on IE.
	urlParsingNode.setAttribute('href',href);href=urlParsingNode.href;}urlParsingNode.setAttribute('href',href);var hostname=urlParsingNode.hostname;if(!ipv6InBrackets&&hostname.indexOf(':')>-1){hostname='['+hostname+']';}return{href:urlParsingNode.href,protocol:urlParsingNode.protocol?urlParsingNode.protocol.replace(/:$/,''):'',host:urlParsingNode.host,search:urlParsingNode.search?urlParsingNode.search.replace(/^\?/,''):'',hash:urlParsingNode.hash?urlParsingNode.hash.replace(/^#/,''):'',hostname:hostname,port:urlParsingNode.port,pathname:urlParsingNode.pathname.charAt(0)==='/'?urlParsingNode.pathname:'/'+urlParsingNode.pathname};}/**
	 * Parse a request URL and determine whether this is a same-origin request as the application
	 * document.
	 *
	 * @param {string|object} requestUrl The url of the request as a string that will be resolved
	 * or a parsed URL object.
	 * @returns {boolean} Whether the request is for the same origin as the application document.
	 */function urlIsSameOrigin(requestUrl){return urlsAreSameOrigin(requestUrl,originUrl);}/**
	 * Parse a request URL and determine whether it is same-origin as the current document base URL.
	 *
	 * Note: The base URL is usually the same as the document location (`location.href`) but can
	 * be overriden by using the `<base>` tag.
	 *
	 * @param {string|object} requestUrl The url of the request as a string that will be resolved
	 * or a parsed URL object.
	 * @returns {boolean} Whether the URL is same-origin as the document base URL.
	 */function urlIsSameOriginAsBaseUrl(requestUrl){return urlsAreSameOrigin(requestUrl,getBaseUrl());}/**
	 * Create a function that can check a URL's origin against a list of allowed/trusted origins.
	 * The current location's origin is implicitly trusted.
	 *
	 * @param {string[]} trustedOriginUrls - A list of URLs (strings), whose origins are trusted.
	 *
	 * @returns {Function} - A function that receives a URL (string or parsed URL object) and returns
	 *     whether it is of an allowed origin.
	 */function urlIsAllowedOriginFactory(trustedOriginUrls){var parsedAllowedOriginUrls=[originUrl].concat(trustedOriginUrls.map(urlResolve));/**
	   * Check whether the specified URL (string or parsed URL object) has an origin that is allowed
	   * based on a list of trusted-origin URLs. The current location's origin is implicitly
	   * trusted.
	   *
	   * @param {string|Object} requestUrl - The URL to be checked (provided as a string that will be
	   *     resolved or a parsed URL object).
	   *
	   * @returns {boolean} - Whether the specified URL is of an allowed origin.
	   */return function urlIsAllowedOrigin(requestUrl){var parsedUrl=urlResolve(requestUrl);return parsedAllowedOriginUrls.some(urlsAreSameOrigin.bind(null,parsedUrl));};}/**
	 * Determine if two URLs share the same origin.
	 *
	 * @param {string|Object} url1 - First URL to compare as a string or a normalized URL in the form of
	 *     a dictionary object returned by `urlResolve()`.
	 * @param {string|object} url2 - Second URL to compare as a string or a normalized URL in the form
	 *     of a dictionary object returned by `urlResolve()`.
	 *
	 * @returns {boolean} - True if both URLs have the same origin, and false otherwise.
	 */function urlsAreSameOrigin(url1,url2){url1=urlResolve(url1);url2=urlResolve(url2);return url1.protocol===url2.protocol&&url1.host===url2.host;}/**
	 * Returns the current document base URL.
	 * @returns {string}
	 */function getBaseUrl(){if(window.document.baseURI){return window.document.baseURI;}// `document.baseURI` is available everywhere except IE
	if(!baseUrlParsingNode){baseUrlParsingNode=window.document.createElement('a');baseUrlParsingNode.href='.';// Work-around for IE bug described in Implementation Notes. The fix in `urlResolve()` is not
	// suitable here because we need to track changes to the base URL.
	baseUrlParsingNode=baseUrlParsingNode.cloneNode(false);}return baseUrlParsingNode.href;}/**
	 * @ngdoc service
	 * @name $window
	 * @this
	 *
	 * @description
	 * A reference to the browser's `window` object. While `window`
	 * is globally available in JavaScript, it causes testability problems, because
	 * it is a global variable. In AngularJS we always refer to it through the
	 * `$window` service, so it may be overridden, removed or mocked for testing.
	 *
	 * Expressions, like the one defined for the `ngClick` directive in the example
	 * below, are evaluated with respect to the current scope.  Therefore, there is
	 * no risk of inadvertently coding in a dependency on a global value in such an
	 * expression.
	 *
	 * @example
	   <example module="windowExample" name="window-service">
	     <file name="index.html">
	       <script>
	         angular.module('windowExample', [])
	           .controller('ExampleController', ['$scope', '$window', function($scope, $window) {
	             $scope.greeting = 'Hello, World!';
	             $scope.doGreeting = function(greeting) {
	               $window.alert(greeting);
	             };
	           }]);
	       </script>
	       <div ng-controller="ExampleController">
	         <input type="text" ng-model="greeting" aria-label="greeting" />
	         <button ng-click="doGreeting(greeting)">ALERT</button>
	       </div>
	     </file>
	     <file name="protractor.js" type="protractor">
	      it('should display the greeting in the input box', function() {
	       element(by.model('greeting')).sendKeys('Hello, E2E Tests');
	       // If we click the button it will block the test runner
	       // element(':button').click();
	      });
	     </file>
	   </example>
	 */function $WindowProvider(){this.$get=valueFn(window);}/**
	 * @name $$cookieReader
	 * @requires $document
	 *
	 * @description
	 * This is a private service for reading cookies used by $http and ngCookies
	 *
	 * @return {Object} a key/value map of the current cookies
	 */function $$CookieReader($document){var rawDocument=$document[0]||{};var lastCookies={};var lastCookieString='';function safeGetCookie(rawDocument){try{return rawDocument.cookie||'';}catch(e){return'';}}function safeDecodeURIComponent(str){try{return decodeURIComponent(str);}catch(e){return str;}}return function(){var cookieArray,cookie,i,index,name;var currentCookieString=safeGetCookie(rawDocument);if(currentCookieString!==lastCookieString){lastCookieString=currentCookieString;cookieArray=lastCookieString.split('; ');lastCookies={};for(i=0;i<cookieArray.length;i++){cookie=cookieArray[i];index=cookie.indexOf('=');if(index>0){//ignore nameless cookies
	name=safeDecodeURIComponent(cookie.substring(0,index));// the first value that is seen for a cookie is the most
	// specific one.  values for the same cookie name that
	// follow are for less specific paths.
	if(isUndefined(lastCookies[name])){lastCookies[name]=safeDecodeURIComponent(cookie.substring(index+1));}}}}return lastCookies;};}$$CookieReader.$inject=['$document'];/** @this */function $$CookieReaderProvider(){this.$get=$$CookieReader;}/* global currencyFilter: true,
	 dateFilter: true,
	 filterFilter: true,
	 jsonFilter: true,
	 limitToFilter: true,
	 lowercaseFilter: true,
	 numberFilter: true,
	 orderByFilter: true,
	 uppercaseFilter: true,
	 *//**
	 * @ngdoc provider
	 * @name $filterProvider
	 * @description
	 *
	 * Filters are just functions which transform input to an output. However filters need to be
	 * Dependency Injected. To achieve this a filter definition consists of a factory function which is
	 * annotated with dependencies and is responsible for creating a filter function.
	 *
	 * <div class="alert alert-warning">
	 * **Note:** Filter names must be valid AngularJS {@link expression} identifiers, such as `uppercase` or `orderBy`.
	 * Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace
	 * your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores
	 * (`myapp_subsection_filterx`).
	 * </div>
	 *
	 * ```js
	 *   // Filter registration
	 *   function MyModule($provide, $filterProvider) {
	 *     // create a service to demonstrate injection (not always needed)
	 *     $provide.value('greet', function(name){
	 *       return 'Hello ' + name + '!';
	 *     });
	 *
	 *     // register a filter factory which uses the
	 *     // greet service to demonstrate DI.
	 *     $filterProvider.register('greet', function(greet){
	 *       // return the filter function which uses the greet service
	 *       // to generate salutation
	 *       return function(text) {
	 *         // filters need to be forgiving so check input validity
	 *         return text && greet(text) || text;
	 *       };
	 *     });
	 *   }
	 * ```
	 *
	 * The filter function is registered with the `$injector` under the filter name suffix with
	 * `Filter`.
	 *
	 * ```js
	 *   it('should be the same instance', inject(
	 *     function($filterProvider) {
	 *       $filterProvider.register('reverse', function(){
	 *         return ...;
	 *       });
	 *     },
	 *     function($filter, reverseFilter) {
	 *       expect($filter('reverse')).toBe(reverseFilter);
	 *     });
	 * ```
	 *
	 *
	 * For more information about how AngularJS filters work, and how to create your own filters, see
	 * {@link guide/filter Filters} in the AngularJS Developer Guide.
	 *//**
	 * @ngdoc service
	 * @name $filter
	 * @kind function
	 * @description
	 * Filters are used for formatting data displayed to the user.
	 *
	 * They can be used in view templates, controllers or services. AngularJS comes
	 * with a collection of [built-in filters](api/ng/filter), but it is easy to
	 * define your own as well.
	 *
	 * The general syntax in templates is as follows:
	 *
	 * ```html
	 * {{ expression [| filter_name[:parameter_value] ... ] }}
	 * ```
	 *
	 * @param {String} name Name of the filter function to retrieve
	 * @return {Function} the filter function
	 * @example
	   <example name="$filter" module="filterExample">
	     <file name="index.html">
	       <div ng-controller="MainCtrl">
	        <h3>{{ originalText }}</h3>
	        <h3>{{ filteredText }}</h3>
	       </div>
	     </file>
	
	     <file name="script.js">
	      angular.module('filterExample', [])
	      .controller('MainCtrl', function($scope, $filter) {
	        $scope.originalText = 'hello';
	        $scope.filteredText = $filter('uppercase')($scope.originalText);
	      });
	     </file>
	   </example>
	  */$FilterProvider.$inject=['$provide'];/** @this */function $FilterProvider($provide){var suffix='Filter';/**
	   * @ngdoc method
	   * @name $filterProvider#register
	   * @param {string|Object} name Name of the filter function, or an object map of filters where
	   *    the keys are the filter names and the values are the filter factories.
	   *
	   *    <div class="alert alert-warning">
	   *    **Note:** Filter names must be valid AngularJS {@link expression} identifiers, such as `uppercase` or `orderBy`.
	   *    Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace
	   *    your filters, then you can use capitalization (`myappSubsectionFilterx`) or underscores
	   *    (`myapp_subsection_filterx`).
	   *    </div>
	    * @param {Function} factory If the first argument was a string, a factory function for the filter to be registered.
	   * @returns {Object} Registered filter instance, or if a map of filters was provided then a map
	   *    of the registered filter instances.
	   */function register(name,factory){if(isObject(name)){var filters={};forEach(name,function(filter,key){filters[key]=register(key,filter);});return filters;}else{return $provide.factory(name+suffix,factory);}}this.register=register;this.$get=['$injector',function($injector){return function(name){return $injector.get(name+suffix);};}];////////////////////////////////////////
	/* global
	    currencyFilter: false,
	    dateFilter: false,
	    filterFilter: false,
	    jsonFilter: false,
	    limitToFilter: false,
	    lowercaseFilter: false,
	    numberFilter: false,
	    orderByFilter: false,
	    uppercaseFilter: false
	  */register('currency',currencyFilter);register('date',dateFilter);register('filter',filterFilter);register('json',jsonFilter);register('limitTo',limitToFilter);register('lowercase',lowercaseFilter);register('number',numberFilter);register('orderBy',orderByFilter);register('uppercase',uppercaseFilter);}/**
	 * @ngdoc filter
	 * @name filter
	 * @kind function
	 *
	 * @description
	 * Selects a subset of items from `array` and returns it as a new array.
	 *
	 * @param {Array} array The source array.
	 * <div class="alert alert-info">
	 *   **Note**: If the array contains objects that reference themselves, filtering is not possible.
	 * </div>
	 * @param {string|Object|function()} expression The predicate to be used for selecting items from
	 *   `array`.
	 *
	 *   Can be one of:
	 *
	 *   - `string`: The string is used for matching against the contents of the `array`. All strings or
	 *     objects with string properties in `array` that match this string will be returned. This also
	 *     applies to nested object properties.
	 *     The predicate can be negated by prefixing the string with `!`.
	 *
	 *   - `Object`: A pattern object can be used to filter specific properties on objects contained
	 *     by `array`. For example `{name:"M", phone:"1"}` predicate will return an array of items
	 *     which have property `name` containing "M" and property `phone` containing "1". A special
	 *     property name (`$` by default) can be used (e.g. as in `{$: "text"}`) to accept a match
	 *     against any property of the object or its nested object properties. That's equivalent to the
	 *     simple substring match with a `string` as described above. The special property name can be
	 *     overwritten, using the `anyPropertyKey` parameter.
	 *     The predicate can be negated by prefixing the string with `!`.
	 *     For example `{name: "!M"}` predicate will return an array of items which have property `name`
	 *     not containing "M".
	 *
	 *     Note that a named property will match properties on the same level only, while the special
	 *     `$` property will match properties on the same level or deeper. E.g. an array item like
	 *     `{name: {first: 'John', last: 'Doe'}}` will **not** be matched by `{name: 'John'}`, but
	 *     **will** be matched by `{$: 'John'}`.
	 *
	 *   - `function(value, index, array)`: A predicate function can be used to write arbitrary filters.
	 *     The function is called for each element of the array, with the element, its index, and
	 *     the entire array itself as arguments.
	 *
	 *     The final result is an array of those elements that the predicate returned true for.
	 *
	 * @param {function(actual, expected)|true|false} [comparator] Comparator which is used in
	 *     determining if values retrieved using `expression` (when it is not a function) should be
	 *     considered a match based on the expected value (from the filter expression) and actual
	 *     value (from the object in the array).
	 *
	 *   Can be one of:
	 *
	 *   - `function(actual, expected)`:
	 *     The function will be given the object value and the predicate value to compare and
	 *     should return true if both values should be considered equal.
	 *
	 *   - `true`: A shorthand for `function(actual, expected) { return angular.equals(actual, expected)}`.
	 *     This is essentially strict comparison of expected and actual.
	 *
	 *   - `false`: A short hand for a function which will look for a substring match in a case
	 *     insensitive way. Primitive values are converted to strings. Objects are not compared against
	 *     primitives, unless they have a custom `toString` method (e.g. `Date` objects).
	 *
	 *
	 *   Defaults to `false`.
	 *
	 * @param {string} [anyPropertyKey] The special property name that matches against any property.
	 *     By default `$`.
	 *
	 * @example
	   <example name="filter-filter">
	     <file name="index.html">
	       <div ng-init="friends = [{name:'John', phone:'555-1276'},
	                                {name:'Mary', phone:'800-BIG-MARY'},
	                                {name:'Mike', phone:'555-4321'},
	                                {name:'Adam', phone:'555-5678'},
	                                {name:'Julie', phone:'555-8765'},
	                                {name:'Juliette', phone:'555-5678'}]"></div>
	
	       <label>Search: <input ng-model="searchText"></label>
	       <table id="searchTextResults">
	         <tr><th>Name</th><th>Phone</th></tr>
	         <tr ng-repeat="friend in friends | filter:searchText">
	           <td>{{friend.name}}</td>
	           <td>{{friend.phone}}</td>
	         </tr>
	       </table>
	       <hr>
	       <label>Any: <input ng-model="search.$"></label> <br>
	       <label>Name only <input ng-model="search.name"></label><br>
	       <label>Phone only <input ng-model="search.phone"></label><br>
	       <label>Equality <input type="checkbox" ng-model="strict"></label><br>
	       <table id="searchObjResults">
	         <tr><th>Name</th><th>Phone</th></tr>
	         <tr ng-repeat="friendObj in friends | filter:search:strict">
	           <td>{{friendObj.name}}</td>
	           <td>{{friendObj.phone}}</td>
	         </tr>
	       </table>
	     </file>
	     <file name="protractor.js" type="protractor">
	       var expectFriendNames = function(expectedNames, key) {
	         element.all(by.repeater(key + ' in friends').column(key + '.name')).then(function(arr) {
	           arr.forEach(function(wd, i) {
	             expect(wd.getText()).toMatch(expectedNames[i]);
	           });
	         });
	       };
	
	       it('should search across all fields when filtering with a string', function() {
	         var searchText = element(by.model('searchText'));
	         searchText.clear();
	         searchText.sendKeys('m');
	         expectFriendNames(['Mary', 'Mike', 'Adam'], 'friend');
	
	         searchText.clear();
	         searchText.sendKeys('76');
	         expectFriendNames(['John', 'Julie'], 'friend');
	       });
	
	       it('should search in specific fields when filtering with a predicate object', function() {
	         var searchAny = element(by.model('search.$'));
	         searchAny.clear();
	         searchAny.sendKeys('i');
	         expectFriendNames(['Mary', 'Mike', 'Julie', 'Juliette'], 'friendObj');
	       });
	       it('should use a equal comparison when comparator is true', function() {
	         var searchName = element(by.model('search.name'));
	         var strict = element(by.model('strict'));
	         searchName.clear();
	         searchName.sendKeys('Julie');
	         strict.click();
	         expectFriendNames(['Julie'], 'friendObj');
	       });
	     </file>
	   </example>
	 */function filterFilter(){return function(array,expression,comparator,anyPropertyKey){if(!isArrayLike(array)){if(array==null){return array;}else{throw minErr('filter')('notarray','Expected array but received: {0}',array);}}anyPropertyKey=anyPropertyKey||'$';var expressionType=getTypeForFilter(expression);var predicateFn;var matchAgainstAnyProp;switch(expressionType){case'function':predicateFn=expression;break;case'boolean':case'null':case'number':case'string':matchAgainstAnyProp=true;// falls through
	case'object':predicateFn=createPredicateFn(expression,comparator,anyPropertyKey,matchAgainstAnyProp);break;default:return array;}return Array.prototype.filter.call(array,predicateFn);};}// Helper functions for `filterFilter`
	function createPredicateFn(expression,comparator,anyPropertyKey,matchAgainstAnyProp){var shouldMatchPrimitives=isObject(expression)&&anyPropertyKey in expression;var predicateFn;if(comparator===true){comparator=equals;}else if(!isFunction(comparator)){comparator=function comparator(actual,expected){if(isUndefined(actual)){// No substring matching against `undefined`
	return false;}if(actual===null||expected===null){// No substring matching against `null`; only match against `null`
	return actual===expected;}if(isObject(expected)||isObject(actual)&&!hasCustomToString(actual)){// Should not compare primitives against objects, unless they have custom `toString` method
	return false;}actual=lowercase(''+actual);expected=lowercase(''+expected);return actual.indexOf(expected)!==-1;};}predicateFn=function predicateFn(item){if(shouldMatchPrimitives&&!isObject(item)){return deepCompare(item,expression[anyPropertyKey],comparator,anyPropertyKey,false);}return deepCompare(item,expression,comparator,anyPropertyKey,matchAgainstAnyProp);};return predicateFn;}function deepCompare(actual,expected,comparator,anyPropertyKey,matchAgainstAnyProp,dontMatchWholeObject){var actualType=getTypeForFilter(actual);var expectedType=getTypeForFilter(expected);if(expectedType==='string'&&expected.charAt(0)==='!'){return!deepCompare(actual,expected.substring(1),comparator,anyPropertyKey,matchAgainstAnyProp);}else if(isArray(actual)){// In case `actual` is an array, consider it a match
	// if ANY of it's items matches `expected`
	return actual.some(function(item){return deepCompare(item,expected,comparator,anyPropertyKey,matchAgainstAnyProp);});}switch(actualType){case'object':var key;if(matchAgainstAnyProp){for(key in actual){// Under certain, rare, circumstances, key may not be a string and `charAt` will be undefined
	// See: https://github.com/angular/angular.js/issues/15644
	if(key.charAt&&key.charAt(0)!=='$'&&deepCompare(actual[key],expected,comparator,anyPropertyKey,true)){return true;}}return dontMatchWholeObject?false:deepCompare(actual,expected,comparator,anyPropertyKey,false);}else if(expectedType==='object'){for(key in expected){var expectedVal=expected[key];if(isFunction(expectedVal)||isUndefined(expectedVal)){continue;}var matchAnyProperty=key===anyPropertyKey;var actualVal=matchAnyProperty?actual:actual[key];if(!deepCompare(actualVal,expectedVal,comparator,anyPropertyKey,matchAnyProperty,matchAnyProperty)){return false;}}return true;}else{return comparator(actual,expected);}case'function':return false;default:return comparator(actual,expected);}}// Used for easily differentiating between `null` and actual `object`
	function getTypeForFilter(val){return val===null?'null':typeof val==='undefined'?'undefined':_typeof(val);}var MAX_DIGITS=22;var DECIMAL_SEP='.';var ZERO_CHAR='0';/**
	 * @ngdoc filter
	 * @name currency
	 * @kind function
	 *
	 * @description
	 * Formats a number as a currency (ie $1,234.56). When no currency symbol is provided, default
	 * symbol for current locale is used.
	 *
	 * @param {number} amount Input to filter.
	 * @param {string=} symbol Currency symbol or identifier to be displayed.
	 * @param {number=} fractionSize Number of decimal places to round the amount to, defaults to default max fraction size for current locale
	 * @returns {string} Formatted number.
	 *
	 *
	 * @example
	   <example module="currencyExample" name="currency-filter">
	     <file name="index.html">
	       <script>
	         angular.module('currencyExample', [])
	           .controller('ExampleController', ['$scope', function($scope) {
	             $scope.amount = 1234.56;
	           }]);
	       </script>
	       <div ng-controller="ExampleController">
	         <input type="number" ng-model="amount" aria-label="amount"> <br>
	         default currency symbol ($): <span id="currency-default">{{amount | currency}}</span><br>
	         custom currency identifier (USD$): <span id="currency-custom">{{amount | currency:"USD$"}}</span><br>
	         no fractions (0): <span id="currency-no-fractions">{{amount | currency:"USD$":0}}</span>
	       </div>
	     </file>
	     <file name="protractor.js" type="protractor">
	       it('should init with 1234.56', function() {
	         expect(element(by.id('currency-default')).getText()).toBe('$1,234.56');
	         expect(element(by.id('currency-custom')).getText()).toBe('USD$1,234.56');
	         expect(element(by.id('currency-no-fractions')).getText()).toBe('USD$1,235');
	       });
	       it('should update', function() {
	         if (browser.params.browser === 'safari') {
	           // Safari does not understand the minus key. See
	           // https://github.com/angular/protractor/issues/481
	           return;
	         }
	         element(by.model('amount')).clear();
	         element(by.model('amount')).sendKeys('-1234');
	         expect(element(by.id('currency-default')).getText()).toBe('-$1,234.00');
	         expect(element(by.id('currency-custom')).getText()).toBe('-USD$1,234.00');
	         expect(element(by.id('currency-no-fractions')).getText()).toBe('-USD$1,234');
	       });
	     </file>
	   </example>
	 */currencyFilter.$inject=['$locale'];function currencyFilter($locale){var formats=$locale.NUMBER_FORMATS;return function(amount,currencySymbol,fractionSize){if(isUndefined(currencySymbol)){currencySymbol=formats.CURRENCY_SYM;}if(isUndefined(fractionSize)){fractionSize=formats.PATTERNS[1].maxFrac;}// If the currency symbol is empty, trim whitespace around the symbol
	var currencySymbolRe=!currencySymbol?/\s*\u00A4\s*/g:/\u00A4/g;// if null or undefined pass it through
	return amount==null?amount:formatNumber(amount,formats.PATTERNS[1],formats.GROUP_SEP,formats.DECIMAL_SEP,fractionSize).replace(currencySymbolRe,currencySymbol);};}/**
	 * @ngdoc filter
	 * @name number
	 * @kind function
	 *
	 * @description
	 * Formats a number as text.
	 *
	 * If the input is null or undefined, it will just be returned.
	 * If the input is infinite (Infinity or -Infinity), the Infinity symbol '∞' or '-∞' is returned, respectively.
	 * If the input is not a number an empty string is returned.
	 *
	 *
	 * @param {number|string} number Number to format.
	 * @param {(number|string)=} fractionSize Number of decimal places to round the number to.
	 * If this is not provided then the fraction size is computed from the current locale's number
	 * formatting pattern. In the case of the default locale, it will be 3.
	 * @returns {string} Number rounded to `fractionSize` appropriately formatted based on the current
	 *                   locale (e.g., in the en_US locale it will have "." as the decimal separator and
	 *                   include "," group separators after each third digit).
	 *
	 * @example
	   <example module="numberFilterExample" name="number-filter">
	     <file name="index.html">
	       <script>
	         angular.module('numberFilterExample', [])
	           .controller('ExampleController', ['$scope', function($scope) {
	             $scope.val = 1234.56789;
	           }]);
	       </script>
	       <div ng-controller="ExampleController">
	         <label>Enter number: <input ng-model='val'></label><br>
	         Default formatting: <span id='number-default'>{{val | number}}</span><br>
	         No fractions: <span>{{val | number:0}}</span><br>
	         Negative number: <span>{{-val | number:4}}</span>
	       </div>
	     </file>
	     <file name="protractor.js" type="protractor">
	       it('should format numbers', function() {
	         expect(element(by.id('number-default')).getText()).toBe('1,234.568');
	         expect(element(by.binding('val | number:0')).getText()).toBe('1,235');
	         expect(element(by.binding('-val | number:4')).getText()).toBe('-1,234.5679');
	       });
	
	       it('should update', function() {
	         element(by.model('val')).clear();
	         element(by.model('val')).sendKeys('3374.333');
	         expect(element(by.id('number-default')).getText()).toBe('3,374.333');
	         expect(element(by.binding('val | number:0')).getText()).toBe('3,374');
	         expect(element(by.binding('-val | number:4')).getText()).toBe('-3,374.3330');
	      });
	     </file>
	   </example>
	 */numberFilter.$inject=['$locale'];function numberFilter($locale){var formats=$locale.NUMBER_FORMATS;return function(number,fractionSize){// if null or undefined pass it through
	return number==null?number:formatNumber(number,formats.PATTERNS[0],formats.GROUP_SEP,formats.DECIMAL_SEP,fractionSize);};}/**
	 * Parse a number (as a string) into three components that can be used
	 * for formatting the number.
	 *
	 * (Significant bits of this parse algorithm came from https://github.com/MikeMcl/big.js/)
	 *
	 * @param  {string} numStr The number to parse
	 * @return {object} An object describing this number, containing the following keys:
	 *  - d : an array of digits containing leading zeros as necessary
	 *  - i : the number of the digits in `d` that are to the left of the decimal point
	 *  - e : the exponent for numbers that would need more than `MAX_DIGITS` digits in `d`
	 *
	 */function parse(numStr){var exponent=0,digits,numberOfIntegerDigits;var i,j,zeros;// Decimal point?
	if((numberOfIntegerDigits=numStr.indexOf(DECIMAL_SEP))>-1){numStr=numStr.replace(DECIMAL_SEP,'');}// Exponential form?
	if((i=numStr.search(/e/i))>0){// Work out the exponent.
	if(numberOfIntegerDigits<0)numberOfIntegerDigits=i;numberOfIntegerDigits+=+numStr.slice(i+1);numStr=numStr.substring(0,i);}else if(numberOfIntegerDigits<0){// There was no decimal point or exponent so it is an integer.
	numberOfIntegerDigits=numStr.length;}// Count the number of leading zeros.
	for(i=0;numStr.charAt(i)===ZERO_CHAR;i++){/* empty */}if(i===(zeros=numStr.length)){// The digits are all zero.
	digits=[0];numberOfIntegerDigits=1;}else{// Count the number of trailing zeros
	zeros--;while(numStr.charAt(zeros)===ZERO_CHAR){zeros--;}// Trailing zeros are insignificant so ignore them
	numberOfIntegerDigits-=i;digits=[];// Convert string to array of digits without leading/trailing zeros.
	for(j=0;i<=zeros;i++,j++){digits[j]=+numStr.charAt(i);}}// If the number overflows the maximum allowed digits then use an exponent.
	if(numberOfIntegerDigits>MAX_DIGITS){digits=digits.splice(0,MAX_DIGITS-1);exponent=numberOfIntegerDigits-1;numberOfIntegerDigits=1;}return{d:digits,e:exponent,i:numberOfIntegerDigits};}/**
	 * Round the parsed number to the specified number of decimal places
	 * This function changed the parsedNumber in-place
	 */function roundNumber(parsedNumber,fractionSize,minFrac,maxFrac){var digits=parsedNumber.d;var fractionLen=digits.length-parsedNumber.i;// determine fractionSize if it is not specified; `+fractionSize` converts it to a number
	fractionSize=isUndefined(fractionSize)?Math.min(Math.max(minFrac,fractionLen),maxFrac):+fractionSize;// The index of the digit to where rounding is to occur
	var roundAt=fractionSize+parsedNumber.i;var digit=digits[roundAt];if(roundAt>0){// Drop fractional digits beyond `roundAt`
	digits.splice(Math.max(parsedNumber.i,roundAt));// Set non-fractional digits beyond `roundAt` to 0
	for(var j=roundAt;j<digits.length;j++){digits[j]=0;}}else{// We rounded to zero so reset the parsedNumber
	fractionLen=Math.max(0,fractionLen);parsedNumber.i=1;digits.length=Math.max(1,roundAt=fractionSize+1);digits[0]=0;for(var i=1;i<roundAt;i++){digits[i]=0;}}if(digit>=5){if(roundAt-1<0){for(var k=0;k>roundAt;k--){digits.unshift(0);parsedNumber.i++;}digits.unshift(1);parsedNumber.i++;}else{digits[roundAt-1]++;}}// Pad out with zeros to get the required fraction length
	for(;fractionLen<Math.max(0,fractionSize);fractionLen++){digits.push(0);}// Do any carrying, e.g. a digit was rounded up to 10
	var carry=digits.reduceRight(function(carry,d,i,digits){d=d+carry;digits[i]=d%10;return Math.floor(d/10);},0);if(carry){digits.unshift(carry);parsedNumber.i++;}}/**
	 * Format a number into a string
	 * @param  {number} number       The number to format
	 * @param  {{
	 *           minFrac, // the minimum number of digits required in the fraction part of the number
	 *           maxFrac, // the maximum number of digits required in the fraction part of the number
	 *           gSize,   // number of digits in each group of separated digits
	 *           lgSize,  // number of digits in the last group of digits before the decimal separator
	 *           negPre,  // the string to go in front of a negative number (e.g. `-` or `(`))
	 *           posPre,  // the string to go in front of a positive number
	 *           negSuf,  // the string to go after a negative number (e.g. `)`)
	 *           posSuf   // the string to go after a positive number
	 *         }} pattern
	 * @param  {string} groupSep     The string to separate groups of number (e.g. `,`)
	 * @param  {string} decimalSep   The string to act as the decimal separator (e.g. `.`)
	 * @param  {[type]} fractionSize The size of the fractional part of the number
	 * @return {string}              The number formatted as a string
	 */function formatNumber(number,pattern,groupSep,decimalSep,fractionSize){if(!(isString(number)||isNumber(number))||isNaN(number))return'';var isInfinity=!isFinite(number);var isZero=false;var numStr=Math.abs(number)+'',formattedText='',parsedNumber;if(isInfinity){formattedText='\u221E';}else{parsedNumber=parse(numStr);roundNumber(parsedNumber,fractionSize,pattern.minFrac,pattern.maxFrac);var digits=parsedNumber.d;var integerLen=parsedNumber.i;var exponent=parsedNumber.e;var decimals=[];isZero=digits.reduce(function(isZero,d){return isZero&&!d;},true);// pad zeros for small numbers
	while(integerLen<0){digits.unshift(0);integerLen++;}// extract decimals digits
	if(integerLen>0){decimals=digits.splice(integerLen,digits.length);}else{decimals=digits;digits=[0];}// format the integer digits with grouping separators
	var groups=[];if(digits.length>=pattern.lgSize){groups.unshift(digits.splice(-pattern.lgSize,digits.length).join(''));}while(digits.length>pattern.gSize){groups.unshift(digits.splice(-pattern.gSize,digits.length).join(''));}if(digits.length){groups.unshift(digits.join(''));}formattedText=groups.join(groupSep);// append the decimal digits
	if(decimals.length){formattedText+=decimalSep+decimals.join('');}if(exponent){formattedText+='e+'+exponent;}}if(number<0&&!isZero){return pattern.negPre+formattedText+pattern.negSuf;}else{return pattern.posPre+formattedText+pattern.posSuf;}}function padNumber(num,digits,trim,negWrap){var neg='';if(num<0||negWrap&&num<=0){if(negWrap){num=-num+1;}else{num=-num;neg='-';}}num=''+num;while(num.length<digits){num=ZERO_CHAR+num;}if(trim){num=num.substr(num.length-digits);}return neg+num;}function dateGetter(name,size,offset,trim,negWrap){offset=offset||0;return function(date){var value=date['get'+name]();if(offset>0||value>-offset){value+=offset;}if(value===0&&offset===-12)value=12;return padNumber(value,size,trim,negWrap);};}function dateStrGetter(name,shortForm,standAlone){return function(date,formats){var value=date['get'+name]();var propPrefix=(standAlone?'STANDALONE':'')+(shortForm?'SHORT':'');var get=uppercase(propPrefix+name);return formats[get][value];};}function timeZoneGetter(date,formats,offset){var zone=-1*offset;var paddedZone=zone>=0?'+':'';paddedZone+=padNumber(Math[zone>0?'floor':'ceil'](zone/60),2)+padNumber(Math.abs(zone%60),2);return paddedZone;}function getFirstThursdayOfYear(year){// 0 = index of January
	var dayOfWeekOnFirst=new Date(year,0,1).getDay();// 4 = index of Thursday (+1 to account for 1st = 5)
	// 11 = index of *next* Thursday (+1 account for 1st = 12)
	return new Date(year,0,(dayOfWeekOnFirst<=4?5:12)-dayOfWeekOnFirst);}function getThursdayThisWeek(datetime){return new Date(datetime.getFullYear(),datetime.getMonth(),// 4 = index of Thursday
	datetime.getDate()+(4-datetime.getDay()));}function weekGetter(size){return function(date){var firstThurs=getFirstThursdayOfYear(date.getFullYear()),thisThurs=getThursdayThisWeek(date);var diff=+thisThurs-+firstThurs,result=1+Math.round(diff/6.048e8);// 6.048e8 ms per week
	return padNumber(result,size);};}function ampmGetter(date,formats){return date.getHours()<12?formats.AMPMS[0]:formats.AMPMS[1];}function eraGetter(date,formats){return date.getFullYear()<=0?formats.ERAS[0]:formats.ERAS[1];}function longEraGetter(date,formats){return date.getFullYear()<=0?formats.ERANAMES[0]:formats.ERANAMES[1];}var DATE_FORMATS={yyyy:dateGetter('FullYear',4,0,false,true),yy:dateGetter('FullYear',2,0,true,true),y:dateGetter('FullYear',1,0,false,true),MMMM:dateStrGetter('Month'),MMM:dateStrGetter('Month',true),MM:dateGetter('Month',2,1),M:dateGetter('Month',1,1),LLLL:dateStrGetter('Month',false,true),dd:dateGetter('Date',2),d:dateGetter('Date',1),HH:dateGetter('Hours',2),H:dateGetter('Hours',1),hh:dateGetter('Hours',2,-12),h:dateGetter('Hours',1,-12),mm:dateGetter('Minutes',2),m:dateGetter('Minutes',1),ss:dateGetter('Seconds',2),s:dateGetter('Seconds',1),// while ISO 8601 requires fractions to be prefixed with `.` or `,`
	// we can be just safely rely on using `sss` since we currently don't support single or two digit fractions
	sss:dateGetter('Milliseconds',3),EEEE:dateStrGetter('Day'),EEE:dateStrGetter('Day',true),a:ampmGetter,Z:timeZoneGetter,ww:weekGetter(2),w:weekGetter(1),G:eraGetter,GG:eraGetter,GGG:eraGetter,GGGG:longEraGetter};var DATE_FORMATS_SPLIT=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,NUMBER_STRING=/^-?\d+$/;/**
	 * @ngdoc filter
	 * @name date
	 * @kind function
	 *
	 * @description
	 *   Formats `date` to a string based on the requested `format`.
	 *
	 *   `format` string can be composed of the following elements:
	 *
	 *   * `'yyyy'`: 4 digit representation of year (e.g. AD 1 => 0001, AD 2010 => 2010)
	 *   * `'yy'`: 2 digit representation of year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10)
	 *   * `'y'`: 1 digit representation of year, e.g. (AD 1 => 1, AD 199 => 199)
	 *   * `'MMMM'`: Month in year (January-December)
	 *   * `'MMM'`: Month in year (Jan-Dec)
	 *   * `'MM'`: Month in year, padded (01-12)
	 *   * `'M'`: Month in year (1-12)
	 *   * `'LLLL'`: Stand-alone month in year (January-December)
	 *   * `'dd'`: Day in month, padded (01-31)
	 *   * `'d'`: Day in month (1-31)
	 *   * `'EEEE'`: Day in Week,(Sunday-Saturday)
	 *   * `'EEE'`: Day in Week, (Sun-Sat)
	 *   * `'HH'`: Hour in day, padded (00-23)
	 *   * `'H'`: Hour in day (0-23)
	 *   * `'hh'`: Hour in AM/PM, padded (01-12)
	 *   * `'h'`: Hour in AM/PM, (1-12)
	 *   * `'mm'`: Minute in hour, padded (00-59)
	 *   * `'m'`: Minute in hour (0-59)
	 *   * `'ss'`: Second in minute, padded (00-59)
	 *   * `'s'`: Second in minute (0-59)
	 *   * `'sss'`: Millisecond in second, padded (000-999)
	 *   * `'a'`: AM/PM marker
	 *   * `'Z'`: 4 digit (+sign) representation of the timezone offset (-1200-+1200)
	 *   * `'ww'`: Week of year, padded (00-53). Week 01 is the week with the first Thursday of the year
	 *   * `'w'`: Week of year (0-53). Week 1 is the week with the first Thursday of the year
	 *   * `'G'`, `'GG'`, `'GGG'`: The abbreviated form of the era string (e.g. 'AD')
	 *   * `'GGGG'`: The long form of the era string (e.g. 'Anno Domini')
	 *
	 *   `format` string can also be one of the following predefined
	 *   {@link guide/i18n localizable formats}:
	 *
	 *   * `'medium'`: equivalent to `'MMM d, y h:mm:ss a'` for en_US locale
	 *     (e.g. Sep 3, 2010 12:05:08 PM)
	 *   * `'short'`: equivalent to `'M/d/yy h:mm a'` for en_US  locale (e.g. 9/3/10 12:05 PM)
	 *   * `'fullDate'`: equivalent to `'EEEE, MMMM d, y'` for en_US  locale
	 *     (e.g. Friday, September 3, 2010)
	 *   * `'longDate'`: equivalent to `'MMMM d, y'` for en_US  locale (e.g. September 3, 2010)
	 *   * `'mediumDate'`: equivalent to `'MMM d, y'` for en_US  locale (e.g. Sep 3, 2010)
	 *   * `'shortDate'`: equivalent to `'M/d/yy'` for en_US locale (e.g. 9/3/10)
	 *   * `'mediumTime'`: equivalent to `'h:mm:ss a'` for en_US locale (e.g. 12:05:08 PM)
	 *   * `'shortTime'`: equivalent to `'h:mm a'` for en_US locale (e.g. 12:05 PM)
	 *
	 *   `format` string can contain literal values. These need to be escaped by surrounding with single quotes (e.g.
	 *   `"h 'in the morning'"`). In order to output a single quote, escape it - i.e., two single quotes in a sequence
	 *   (e.g. `"h 'o''clock'"`).
	 *
	 *   Any other characters in the `format` string will be output as-is.
	 *
	 * @param {(Date|number|string)} date Date to format either as Date object, milliseconds (string or
	 *    number) or various ISO 8601 datetime string formats (e.g. yyyy-MM-ddTHH:mm:ss.sssZ and its
	 *    shorter versions like yyyy-MM-ddTHH:mmZ, yyyy-MM-dd or yyyyMMddTHHmmssZ). If no timezone is
	 *    specified in the string input, the time is considered to be in the local timezone.
	 * @param {string=} format Formatting rules (see Description). If not specified,
	 *    `mediumDate` is used.
	 * @param {string=} timezone Timezone to be used for formatting. It understands UTC/GMT and the
	 *    continental US time zone abbreviations, but for general use, use a time zone offset, for
	 *    example, `'+0430'` (4 hours, 30 minutes east of the Greenwich meridian)
	 *    If not specified, the timezone of the browser will be used.
	 * @returns {string} Formatted string or the input if input is not recognized as date/millis.
	 *
	 * @example
	   <example name="filter-date">
	     <file name="index.html">
	       <span ng-non-bindable>{{1288323623006 | date:'medium'}}</span>:
	           <span>{{1288323623006 | date:'medium'}}</span><br>
	       <span ng-non-bindable>{{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}</span>:
	          <span>{{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}}</span><br>
	       <span ng-non-bindable>{{1288323623006 | date:'MM/dd/yyyy @ h:mma'}}</span>:
	          <span>{{'1288323623006' | date:'MM/dd/yyyy @ h:mma'}}</span><br>
	       <span ng-non-bindable>{{1288323623006 | date:"MM/dd/yyyy 'at' h:mma"}}</span>:
	          <span>{{'1288323623006' | date:"MM/dd/yyyy 'at' h:mma"}}</span><br>
	     </file>
	     <file name="protractor.js" type="protractor">
	       it('should format date', function() {
	         expect(element(by.binding("1288323623006 | date:'medium'")).getText()).
	            toMatch(/Oct 2\d, 2010 \d{1,2}:\d{2}:\d{2} (AM|PM)/);
	         expect(element(by.binding("1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'")).getText()).
	            toMatch(/2010-10-2\d \d{2}:\d{2}:\d{2} (-|\+)?\d{4}/);
	         expect(element(by.binding("'1288323623006' | date:'MM/dd/yyyy @ h:mma'")).getText()).
	            toMatch(/10\/2\d\/2010 @ \d{1,2}:\d{2}(AM|PM)/);
	         expect(element(by.binding("'1288323623006' | date:\"MM/dd/yyyy 'at' h:mma\"")).getText()).
	            toMatch(/10\/2\d\/2010 at \d{1,2}:\d{2}(AM|PM)/);
	       });
	     </file>
	   </example>
	 */dateFilter.$inject=['$locale'];function dateFilter($locale){var R_ISO8601_STR=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;// 1        2       3         4          5          6          7          8  9     10      11
	function jsonStringToDate(string){var match;if(match=string.match(R_ISO8601_STR)){var date=new Date(0),tzHour=0,tzMin=0,dateSetter=match[8]?date.setUTCFullYear:date.setFullYear,timeSetter=match[8]?date.setUTCHours:date.setHours;if(match[9]){tzHour=toInt(match[9]+match[10]);tzMin=toInt(match[9]+match[11]);}dateSetter.call(date,toInt(match[1]),toInt(match[2])-1,toInt(match[3]));var h=toInt(match[4]||0)-tzHour;var m=toInt(match[5]||0)-tzMin;var s=toInt(match[6]||0);var ms=Math.round(parseFloat('0.'+(match[7]||0))*1000);timeSetter.call(date,h,m,s,ms);return date;}return string;}return function(date,format,timezone){var text='',parts=[],fn,match;format=format||'mediumDate';format=$locale.DATETIME_FORMATS[format]||format;if(isString(date)){date=NUMBER_STRING.test(date)?toInt(date):jsonStringToDate(date);}if(isNumber(date)){date=new Date(date);}if(!isDate(date)||!isFinite(date.getTime())){return date;}while(format){match=DATE_FORMATS_SPLIT.exec(format);if(match){parts=concat(parts,match,1);format=parts.pop();}else{parts.push(format);format=null;}}var dateTimezoneOffset=date.getTimezoneOffset();if(timezone){dateTimezoneOffset=timezoneToOffset(timezone,dateTimezoneOffset);date=convertTimezoneToLocal(date,timezone,true);}forEach(parts,function(value){fn=DATE_FORMATS[value];text+=fn?fn(date,$locale.DATETIME_FORMATS,dateTimezoneOffset):value==='\'\''?'\'':value.replace(/(^'|'$)/g,'').replace(/''/g,'\'');});return text;};}/**
	 * @ngdoc filter
	 * @name json
	 * @kind function
	 *
	 * @description
	 *   Allows you to convert a JavaScript object into JSON string.
	 *
	 *   This filter is mostly useful for debugging. When using the double curly {{value}} notation
	 *   the binding is automatically converted to JSON.
	 *
	 * @param {*} object Any JavaScript object (including arrays and primitive types) to filter.
	 * @param {number=} spacing The number of spaces to use per indentation, defaults to 2.
	 * @returns {string} JSON string.
	 *
	 *
	 * @example
	   <example name="filter-json">
	     <file name="index.html">
	       <pre id="default-spacing">{{ {'name':'value'} | json }}</pre>
	       <pre id="custom-spacing">{{ {'name':'value'} | json:4 }}</pre>
	     </file>
	     <file name="protractor.js" type="protractor">
	       it('should jsonify filtered objects', function() {
	         expect(element(by.id('default-spacing')).getText()).toMatch(/\{\n {2}"name": ?"value"\n}/);
	         expect(element(by.id('custom-spacing')).getText()).toMatch(/\{\n {4}"name": ?"value"\n}/);
	       });
	     </file>
	   </example>
	 *
	 */function jsonFilter(){return function(object,spacing){if(isUndefined(spacing)){spacing=2;}return toJson(object,spacing);};}/**
	 * @ngdoc filter
	 * @name lowercase
	 * @kind function
	 * @description
	 * Converts string to lowercase.
	 *
	 * See the {@link ng.uppercase uppercase filter documentation} for a functionally identical example.
	 *
	 * @see angular.lowercase
	 */var lowercaseFilter=valueFn(lowercase);/**
	 * @ngdoc filter
	 * @name uppercase
	 * @kind function
	 * @description
	 * Converts string to uppercase.
	 * @example
	   <example module="uppercaseFilterExample" name="filter-uppercase">
	     <file name="index.html">
	       <script>
	         angular.module('uppercaseFilterExample', [])
	           .controller('ExampleController', ['$scope', function($scope) {
	             $scope.title = 'This is a title';
	           }]);
	       </script>
	       <div ng-controller="ExampleController">
	         <!-- This title should be formatted normally -->
	         <h1>{{title}}</h1>
	         <!-- This title should be capitalized -->
	         <h1>{{title | uppercase}}</h1>
	       </div>
	     </file>
	   </example>
	 */var uppercaseFilter=valueFn(uppercase);/**
	 * @ngdoc filter
	 * @name limitTo
	 * @kind function
	 *
	 * @description
	 * Creates a new array or string containing only a specified number of elements. The elements are
	 * taken from either the beginning or the end of the source array, string or number, as specified by
	 * the value and sign (positive or negative) of `limit`. Other array-like objects are also supported
	 * (e.g. array subclasses, NodeLists, jqLite/jQuery collections etc). If a number is used as input,
	 * it is converted to a string.
	 *
	 * @param {Array|ArrayLike|string|number} input - Array/array-like, string or number to be limited.
	 * @param {string|number} limit - The length of the returned array or string. If the `limit` number
	 *     is positive, `limit` number of items from the beginning of the source array/string are copied.
	 *     If the number is negative, `limit` number  of items from the end of the source array/string
	 *     are copied. The `limit` will be trimmed if it exceeds `array.length`. If `limit` is undefined,
	 *     the input will be returned unchanged.
	 * @param {(string|number)=} begin - Index at which to begin limitation. As a negative index,
	 *     `begin` indicates an offset from the end of `input`. Defaults to `0`.
	 * @returns {Array|string} A new sub-array or substring of length `limit` or less if the input had
	 *     less than `limit` elements.
	 *
	 * @example
	   <example module="limitToExample" name="limit-to-filter">
	     <file name="index.html">
	       <script>
	         angular.module('limitToExample', [])
	           .controller('ExampleController', ['$scope', function($scope) {
	             $scope.numbers = [1,2,3,4,5,6,7,8,9];
	             $scope.letters = "abcdefghi";
	             $scope.longNumber = 2345432342;
	             $scope.numLimit = 3;
	             $scope.letterLimit = 3;
	             $scope.longNumberLimit = 3;
	           }]);
	       </script>
	       <div ng-controller="ExampleController">
	         <label>
	            Limit {{numbers}} to:
	            <input type="number" step="1" ng-model="numLimit">
	         </label>
	         <p>Output numbers: {{ numbers | limitTo:numLimit }}</p>
	         <label>
	            Limit {{letters}} to:
	            <input type="number" step="1" ng-model="letterLimit">
	         </label>
	         <p>Output letters: {{ letters | limitTo:letterLimit }}</p>
	         <label>
	            Limit {{longNumber}} to:
	            <input type="number" step="1" ng-model="longNumberLimit">
	         </label>
	         <p>Output long number: {{ longNumber | limitTo:longNumberLimit }}</p>
	       </div>
	     </file>
	     <file name="protractor.js" type="protractor">
	       var numLimitInput = element(by.model('numLimit'));
	       var letterLimitInput = element(by.model('letterLimit'));
	       var longNumberLimitInput = element(by.model('longNumberLimit'));
	       var limitedNumbers = element(by.binding('numbers | limitTo:numLimit'));
	       var limitedLetters = element(by.binding('letters | limitTo:letterLimit'));
	       var limitedLongNumber = element(by.binding('longNumber | limitTo:longNumberLimit'));
	
	       it('should limit the number array to first three items', function() {
	         expect(numLimitInput.getAttribute('value')).toBe('3');
	         expect(letterLimitInput.getAttribute('value')).toBe('3');
	         expect(longNumberLimitInput.getAttribute('value')).toBe('3');
	         expect(limitedNumbers.getText()).toEqual('Output numbers: [1,2,3]');
	         expect(limitedLetters.getText()).toEqual('Output letters: abc');
	         expect(limitedLongNumber.getText()).toEqual('Output long number: 234');
	       });
	
	       // There is a bug in safari and protractor that doesn't like the minus key
	       // it('should update the output when -3 is entered', function() {
	       //   numLimitInput.clear();
	       //   numLimitInput.sendKeys('-3');
	       //   letterLimitInput.clear();
	       //   letterLimitInput.sendKeys('-3');
	       //   longNumberLimitInput.clear();
	       //   longNumberLimitInput.sendKeys('-3');
	       //   expect(limitedNumbers.getText()).toEqual('Output numbers: [7,8,9]');
	       //   expect(limitedLetters.getText()).toEqual('Output letters: ghi');
	       //   expect(limitedLongNumber.getText()).toEqual('Output long number: 342');
	       // });
	
	       it('should not exceed the maximum size of input array', function() {
	         numLimitInput.clear();
	         numLimitInput.sendKeys('100');
	         letterLimitInput.clear();
	         letterLimitInput.sendKeys('100');
	         longNumberLimitInput.clear();
	         longNumberLimitInput.sendKeys('100');
	         expect(limitedNumbers.getText()).toEqual('Output numbers: [1,2,3,4,5,6,7,8,9]');
	         expect(limitedLetters.getText()).toEqual('Output letters: abcdefghi');
	         expect(limitedLongNumber.getText()).toEqual('Output long number: 2345432342');
	       });
	     </file>
	   </example>
	*/function limitToFilter(){return function(input,limit,begin){if(Math.abs(Number(limit))===Infinity){limit=Number(limit);}else{limit=toInt(limit);}if(isNumberNaN(limit))return input;if(isNumber(input))input=input.toString();if(!isArrayLike(input))return input;begin=!begin||isNaN(begin)?0:toInt(begin);begin=begin<0?Math.max(0,input.length+begin):begin;if(limit>=0){return sliceFn(input,begin,begin+limit);}else{if(begin===0){return sliceFn(input,limit,input.length);}else{return sliceFn(input,Math.max(0,begin+limit),begin);}}};}function sliceFn(input,begin,end){if(isString(input))return input.slice(begin,end);return slice.call(input,begin,end);}/**
	 * @ngdoc filter
	 * @name orderBy
	 * @kind function
	 *
	 * @description
	 * Returns an array containing the items from the specified `collection`, ordered by a `comparator`
	 * function based on the values computed using the `expression` predicate.
	 *
	 * For example, `[{id: 'foo'}, {id: 'bar'}] | orderBy:'id'` would result in
	 * `[{id: 'bar'}, {id: 'foo'}]`.
	 *
	 * The `collection` can be an Array or array-like object (e.g. NodeList, jQuery object, TypedArray,
	 * String, etc).
	 *
	 * The `expression` can be a single predicate, or a list of predicates each serving as a tie-breaker
	 * for the preceding one. The `expression` is evaluated against each item and the output is used
	 * for comparing with other items.
	 *
	 * You can change the sorting order by setting `reverse` to `true`. By default, items are sorted in
	 * ascending order.
	 *
	 * The comparison is done using the `comparator` function. If none is specified, a default, built-in
	 * comparator is used (see below for details - in a nutshell, it compares numbers numerically and
	 * strings alphabetically).
	 *
	 * ### Under the hood
	 *
	 * Ordering the specified `collection` happens in two phases:
	 *
	 * 1. All items are passed through the predicate (or predicates), and the returned values are saved
	 *    along with their type (`string`, `number` etc). For example, an item `{label: 'foo'}`, passed
	 *    through a predicate that extracts the value of the `label` property, would be transformed to:
	 *    ```
	 *    {
	 *      value: 'foo',
	 *      type: 'string',
	 *      index: ...
	 *    }
	 *    ```
	 *    **Note:** `null` values use `'null'` as their type.
	 * 2. The comparator function is used to sort the items, based on the derived values, types and
	 *    indices.
	 *
	 * If you use a custom comparator, it will be called with pairs of objects of the form
	 * `{value: ..., type: '...', index: ...}` and is expected to return `0` if the objects are equal
	 * (as far as the comparator is concerned), `-1` if the 1st one should be ranked higher than the
	 * second, or `1` otherwise.
	 *
	 * In order to ensure that the sorting will be deterministic across platforms, if none of the
	 * specified predicates can distinguish between two items, `orderBy` will automatically introduce a
	 * dummy predicate that returns the item's index as `value`.
	 * (If you are using a custom comparator, make sure it can handle this predicate as well.)
	 *
	 * If a custom comparator still can't distinguish between two items, then they will be sorted based
	 * on their index using the built-in comparator.
	 *
	 * Finally, in an attempt to simplify things, if a predicate returns an object as the extracted
	 * value for an item, `orderBy` will try to convert that object to a primitive value, before passing
	 * it to the comparator. The following rules govern the conversion:
	 *
	 * 1. If the object has a `valueOf()` method that returns a primitive, its return value will be
	 *    used instead.<br />
	 *    (If the object has a `valueOf()` method that returns another object, then the returned object
	 *    will be used in subsequent steps.)
	 * 2. If the object has a custom `toString()` method (i.e. not the one inherited from `Object`) that
	 *    returns a primitive, its return value will be used instead.<br />
	 *    (If the object has a `toString()` method that returns another object, then the returned object
	 *    will be used in subsequent steps.)
	 * 3. No conversion; the object itself is used.
	 *
	 * ### The default comparator
	 *
	 * The default, built-in comparator should be sufficient for most usecases. In short, it compares
	 * numbers numerically, strings alphabetically (and case-insensitively), for objects falls back to
	 * using their index in the original collection, sorts values of different types by type and puts
	 * `undefined` and `null` values at the end of the sorted list.
	 *
	 * More specifically, it follows these steps to determine the relative order of items:
	 *
	 * 1. If the compared values are of different types:
	 *    - If one of the values is undefined, consider it "greater than" the other.
	 *    - Else if one of the values is null, consider it "greater than" the other.
	 *    - Else compare the types themselves alphabetically.
	 * 2. If both values are of type `string`, compare them alphabetically in a case- and
	 *    locale-insensitive way.
	 * 3. If both values are objects, compare their indices instead.
	 * 4. Otherwise, return:
	 *    -  `0`, if the values are equal (by strict equality comparison, i.e. using `===`).
	 *    - `-1`, if the 1st value is "less than" the 2nd value (compared using the `<` operator).
	 *    -  `1`, otherwise.
	 *
	 * **Note:** If you notice numbers not being sorted as expected, make sure they are actually being
	 *           saved as numbers and not strings.
	 * **Note:** For the purpose of sorting, `null` and `undefined` are considered "greater than"
	 *           any other value (with undefined "greater than" null). This effectively means that `null`
	 *           and `undefined` values end up at the end of a list sorted in ascending order.
	 * **Note:** `null` values use `'null'` as their type to be able to distinguish them from objects.
	 *
	 * @param {Array|ArrayLike} collection - The collection (array or array-like object) to sort.
	 * @param {(Function|string|Array.<Function|string>)=} expression - A predicate (or list of
	 *    predicates) to be used by the comparator to determine the order of elements.
	 *
	 *    Can be one of:
	 *
	 *    - `Function`: A getter function. This function will be called with each item as argument and
	 *      the return value will be used for sorting.
	 *    - `string`: An AngularJS expression. This expression will be evaluated against each item and the
	 *      result will be used for sorting. For example, use `'label'` to sort by a property called
	 *      `label` or `'label.substring(0, 3)'` to sort by the first 3 characters of the `label`
	 *      property.<br />
	 *      (The result of a constant expression is interpreted as a property name to be used for
	 *      comparison. For example, use `'"special name"'` (note the extra pair of quotes) to sort by a
	 *      property called `special name`.)<br />
	 *      An expression can be optionally prefixed with `+` or `-` to control the sorting direction,
	 *      ascending or descending. For example, `'+label'` or `'-label'`. If no property is provided,
	 *      (e.g. `'+'` or `'-'`), the collection element itself is used in comparisons.
	 *    - `Array`: An array of function and/or string predicates. If a predicate cannot determine the
	 *      relative order of two items, the next predicate is used as a tie-breaker.
	 *
	 * **Note:** If the predicate is missing or empty then it defaults to `'+'`.
	 *
	 * @param {boolean=} reverse - If `true`, reverse the sorting order.
	 * @param {(Function)=} comparator - The comparator function used to determine the relative order of
	 *    value pairs. If omitted, the built-in comparator will be used.
	 *
	 * @returns {Array} - The sorted array.
	 *
	 *
	 * @example
	 * ### Ordering a table with `ngRepeat`
	 *
	 * The example below demonstrates a simple {@link ngRepeat ngRepeat}, where the data is sorted by
	 * age in descending order (expression is set to `'-age'`). The `comparator` is not set, which means
	 * it defaults to the built-in comparator.
	 *
	   <example name="orderBy-static" module="orderByExample1">
	     <file name="index.html">
	       <div ng-controller="ExampleController">
	         <table class="friends">
	           <tr>
	             <th>Name</th>
	             <th>Phone Number</th>
	             <th>Age</th>
	           </tr>
	           <tr ng-repeat="friend in friends | orderBy:'-age'">
	             <td>{{friend.name}}</td>
	             <td>{{friend.phone}}</td>
	             <td>{{friend.age}}</td>
	           </tr>
	         </table>
	       </div>
	     </file>
	     <file name="script.js">
	       angular.module('orderByExample1', [])
	         .controller('ExampleController', ['$scope', function($scope) {
	           $scope.friends = [
	             {name: 'John',   phone: '555-1212',  age: 10},
	             {name: 'Mary',   phone: '555-9876',  age: 19},
	             {name: 'Mike',   phone: '555-4321',  age: 21},
	             {name: 'Adam',   phone: '555-5678',  age: 35},
	             {name: 'Julie',  phone: '555-8765',  age: 29}
	           ];
	         }]);
	     </file>
	     <file name="style.css">
	       .friends {
	         border-collapse: collapse;
	       }
	
	       .friends th {
	         border-bottom: 1px solid;
	       }
	       .friends td, .friends th {
	         border-left: 1px solid;
	         padding: 5px 10px;
	       }
	       .friends td:first-child, .friends th:first-child {
	         border-left: none;
	       }
	     </file>
	     <file name="protractor.js" type="protractor">
	       // Element locators
	       var names = element.all(by.repeater('friends').column('friend.name'));
	
	       it('should sort friends by age in reverse order', function() {
	         expect(names.get(0).getText()).toBe('Adam');
	         expect(names.get(1).getText()).toBe('Julie');
	         expect(names.get(2).getText()).toBe('Mike');
	         expect(names.get(3).getText()).toBe('Mary');
	         expect(names.get(4).getText()).toBe('John');
	       });
	     </file>
	   </example>
	 * <hr />
	 *
	 * @example
	 * ### Changing parameters dynamically
	 *
	 * All parameters can be changed dynamically. The next example shows how you can make the columns of
	 * a table sortable, by binding the `expression` and `reverse` parameters to scope properties.
	 *
	   <example name="orderBy-dynamic" module="orderByExample2">
	     <file name="index.html">
	       <div ng-controller="ExampleController">
	         <pre>Sort by = {{propertyName}}; reverse = {{reverse}}</pre>
	         <hr/>
	         <button ng-click="propertyName = null; reverse = false">Set to unsorted</button>
	         <hr/>
	         <table class="friends">
	           <tr>
	             <th>
	               <button ng-click="sortBy('name')">Name</button>
	               <span class="sortorder" ng-show="propertyName === 'name'" ng-class="{reverse: reverse}"></span>
	             </th>
	             <th>
	               <button ng-click="sortBy('phone')">Phone Number</button>
	               <span class="sortorder" ng-show="propertyName === 'phone'" ng-class="{reverse: reverse}"></span>
	             </th>
	             <th>
	               <button ng-click="sortBy('age')">Age</button>
	               <span class="sortorder" ng-show="propertyName === 'age'" ng-class="{reverse: reverse}"></span>
	             </th>
	           </tr>
	           <tr ng-repeat="friend in friends | orderBy:propertyName:reverse">
	             <td>{{friend.name}}</td>
	             <td>{{friend.phone}}</td>
	             <td>{{friend.age}}</td>
	           </tr>
	         </table>
	       </div>
	     </file>
	     <file name="script.js">
	       angular.module('orderByExample2', [])
	         .controller('ExampleController', ['$scope', function($scope) {
	           var friends = [
	             {name: 'John',   phone: '555-1212',  age: 10},
	             {name: 'Mary',   phone: '555-9876',  age: 19},
	             {name: 'Mike',   phone: '555-4321',  age: 21},
	             {name: 'Adam',   phone: '555-5678',  age: 35},
	             {name: 'Julie',  phone: '555-8765',  age: 29}
	           ];
	
	           $scope.propertyName = 'age';
	           $scope.reverse = true;
	           $scope.friends = friends;
	
	           $scope.sortBy = function(propertyName) {
	             $scope.reverse = ($scope.propertyName === propertyName) ? !$scope.reverse : false;
	             $scope.propertyName = propertyName;
	           };
	         }]);
	     </file>
	     <file name="style.css">
	       .friends {
	         border-collapse: collapse;
	       }
	
	       .friends th {
	         border-bottom: 1px solid;
	       }
	       .friends td, .friends th {
	         border-left: 1px solid;
	         padding: 5px 10px;
	       }
	       .friends td:first-child, .friends th:first-child {
	         border-left: none;
	       }
	
	       .sortorder:after {
	         content: '\25b2';   // BLACK UP-POINTING TRIANGLE
	       }
	       .sortorder.reverse:after {
	         content: '\25bc';   // BLACK DOWN-POINTING TRIANGLE
	       }
	     </file>
	     <file name="protractor.js" type="protractor">
	       // Element locators
	       var unsortButton = element(by.partialButtonText('unsorted'));
	       var nameHeader = element(by.partialButtonText('Name'));
	       var phoneHeader = element(by.partialButtonText('Phone'));
	       var ageHeader = element(by.partialButtonText('Age'));
	       var firstName = element(by.repeater('friends').column('friend.name').row(0));
	       var lastName = element(by.repeater('friends').column('friend.name').row(4));
	
	       it('should sort friends by some property, when clicking on the column header', function() {
	         expect(firstName.getText()).toBe('Adam');
	         expect(lastName.getText()).toBe('John');
	
	         phoneHeader.click();
	         expect(firstName.getText()).toBe('John');
	         expect(lastName.getText()).toBe('Mary');
	
	         nameHeader.click();
	         expect(firstName.getText()).toBe('Adam');
	         expect(lastName.getText()).toBe('Mike');
	
	         ageHeader.click();
	         expect(firstName.getText()).toBe('John');
	         expect(lastName.getText()).toBe('Adam');
	       });
	
	       it('should sort friends in reverse order, when clicking on the same column', function() {
	         expect(firstName.getText()).toBe('Adam');
	         expect(lastName.getText()).toBe('John');
	
	         ageHeader.click();
	         expect(firstName.getText()).toBe('John');
	         expect(lastName.getText()).toBe('Adam');
	
	         ageHeader.click();
	         expect(firstName.getText()).toBe('Adam');
	         expect(lastName.getText()).toBe('John');
	       });
	
	       it('should restore the original order, when clicking "Set to unsorted"', function() {
	         expect(firstName.getText()).toBe('Adam');
	         expect(lastName.getText()).toBe('John');
	
	         unsortButton.click();
	         expect(firstName.getText()).toBe('John');
	         expect(lastName.getText()).toBe('Julie');
	       });
	     </file>
	   </example>
	 * <hr />
	 *
	 * @example
	 * ### Using `orderBy` inside a controller
	 *
	 * It is also possible to call the `orderBy` filter manually, by injecting `orderByFilter`, and
	 * calling it with the desired parameters. (Alternatively, you could inject the `$filter` factory
	 * and retrieve the `orderBy` filter with `$filter('orderBy')`.)
	 *
	   <example name="orderBy-call-manually" module="orderByExample3">
	     <file name="index.html">
	       <div ng-controller="ExampleController">
	         <pre>Sort by = {{propertyName}}; reverse = {{reverse}}</pre>
	         <hr/>
	         <button ng-click="sortBy(null)">Set to unsorted</button>
	         <hr/>
	         <table class="friends">
	           <tr>
	             <th>
	               <button ng-click="sortBy('name')">Name</button>
	               <span class="sortorder" ng-show="propertyName === 'name'" ng-class="{reverse: reverse}"></span>
	             </th>
	             <th>
	               <button ng-click="sortBy('phone')">Phone Number</button>
	               <span class="sortorder" ng-show="propertyName === 'phone'" ng-class="{reverse: reverse}"></span>
	             </th>
	             <th>
	               <button ng-click="sortBy('age')">Age</button>
	               <span class="sortorder" ng-show="propertyName === 'age'" ng-class="{reverse: reverse}"></span>
	             </th>
	           </tr>
	           <tr ng-repeat="friend in friends">
	             <td>{{friend.name}}</td>
	             <td>{{friend.phone}}</td>
	             <td>{{friend.age}}</td>
	           </tr>
	         </table>
	       </div>
	     </file>
	     <file name="script.js">
	       angular.module('orderByExample3', [])
	         .controller('ExampleController', ['$scope', 'orderByFilter', function($scope, orderBy) {
	           var friends = [
	             {name: 'John',   phone: '555-1212',  age: 10},
	             {name: 'Mary',   phone: '555-9876',  age: 19},
	             {name: 'Mike',   phone: '555-4321',  age: 21},
	             {name: 'Adam',   phone: '555-5678',  age: 35},
	             {name: 'Julie',  phone: '555-8765',  age: 29}
	           ];
	
	           $scope.propertyName = 'age';
	           $scope.reverse = true;
	           $scope.friends = orderBy(friends, $scope.propertyName, $scope.reverse);
	
	           $scope.sortBy = function(propertyName) {
	             $scope.reverse = (propertyName !== null && $scope.propertyName === propertyName)
	                 ? !$scope.reverse : false;
	             $scope.propertyName = propertyName;
	             $scope.friends = orderBy(friends, $scope.propertyName, $scope.reverse);
	           };
	         }]);
	     </file>
	     <file name="style.css">
	       .friends {
	         border-collapse: collapse;
	       }
	
	       .friends th {
	         border-bottom: 1px solid;
	       }
	       .friends td, .friends th {
	         border-left: 1px solid;
	         padding: 5px 10px;
	       }
	       .friends td:first-child, .friends th:first-child {
	         border-left: none;
	       }
	
	       .sortorder:after {
	         content: '\25b2';   // BLACK UP-POINTING TRIANGLE
	       }
	       .sortorder.reverse:after {
	         content: '\25bc';   // BLACK DOWN-POINTING TRIANGLE
	       }
	     </file>
	     <file name="protractor.js" type="protractor">
	       // Element locators
	       var unsortButton = element(by.partialButtonText('unsorted'));
	       var nameHeader = element(by.partialButtonText('Name'));
	       var phoneHeader = element(by.partialButtonText('Phone'));
	       var ageHeader = element(by.partialButtonText('Age'));
	       var firstName = element(by.repeater('friends').column('friend.name').row(0));
	       var lastName = element(by.repeater('friends').column('friend.name').row(4));
	
	       it('should sort friends by some property, when clicking on the column header', function() {
	         expect(firstName.getText()).toBe('Adam');
	         expect(lastName.getText()).toBe('John');
	
	         phoneHeader.click();
	         expect(firstName.getText()).toBe('John');
	         expect(lastName.getText()).toBe('Mary');
	
	         nameHeader.click();
	         expect(firstName.getText()).toBe('Adam');
	         expect(lastName.getText()).toBe('Mike');
	
	         ageHeader.click();
	         expect(firstName.getText()).toBe('John');
	         expect(lastName.getText()).toBe('Adam');
	       });
	
	       it('should sort friends in reverse order, when clicking on the same column', function() {
	         expect(firstName.getText()).toBe('Adam');
	         expect(lastName.getText()).toBe('John');
	
	         ageHeader.click();
	         expect(firstName.getText()).toBe('John');
	         expect(lastName.getText()).toBe('Adam');
	
	         ageHeader.click();
	         expect(firstName.getText()).toBe('Adam');
	         expect(lastName.getText()).toBe('John');
	       });
	
	       it('should restore the original order, when clicking "Set to unsorted"', function() {
	         expect(firstName.getText()).toBe('Adam');
	         expect(lastName.getText()).toBe('John');
	
	         unsortButton.click();
	         expect(firstName.getText()).toBe('John');
	         expect(lastName.getText()).toBe('Julie');
	       });
	     </file>
	   </example>
	 * <hr />
	 *
	 * @example
	 * ### Using a custom comparator
	 *
	 * If you have very specific requirements about the way items are sorted, you can pass your own
	 * comparator function. For example, you might need to compare some strings in a locale-sensitive
	 * way. (When specifying a custom comparator, you also need to pass a value for the `reverse`
	 * argument - passing `false` retains the default sorting order, i.e. ascending.)
	 *
	   <example name="orderBy-custom-comparator" module="orderByExample4">
	     <file name="index.html">
	       <div ng-controller="ExampleController">
	         <div class="friends-container custom-comparator">
	           <h3>Locale-sensitive Comparator</h3>
	           <table class="friends">
	             <tr>
	               <th>Name</th>
	               <th>Favorite Letter</th>
	             </tr>
	             <tr ng-repeat="friend in friends | orderBy:'favoriteLetter':false:localeSensitiveComparator">
	               <td>{{friend.name}}</td>
	               <td>{{friend.favoriteLetter}}</td>
	             </tr>
	           </table>
	         </div>
	         <div class="friends-container default-comparator">
	           <h3>Default Comparator</h3>
	           <table class="friends">
	             <tr>
	               <th>Name</th>
	               <th>Favorite Letter</th>
	             </tr>
	             <tr ng-repeat="friend in friends | orderBy:'favoriteLetter'">
	               <td>{{friend.name}}</td>
	               <td>{{friend.favoriteLetter}}</td>
	             </tr>
	           </table>
	         </div>
	       </div>
	     </file>
	     <file name="script.js">
	       angular.module('orderByExample4', [])
	         .controller('ExampleController', ['$scope', function($scope) {
	           $scope.friends = [
	             {name: 'John',   favoriteLetter: 'Ä'},
	             {name: 'Mary',   favoriteLetter: 'Ü'},
	             {name: 'Mike',   favoriteLetter: 'Ö'},
	             {name: 'Adam',   favoriteLetter: 'H'},
	             {name: 'Julie',  favoriteLetter: 'Z'}
	           ];
	
	           $scope.localeSensitiveComparator = function(v1, v2) {
	             // If we don't get strings, just compare by index
	             if (v1.type !== 'string' || v2.type !== 'string') {
	               return (v1.index < v2.index) ? -1 : 1;
	             }
	
	             // Compare strings alphabetically, taking locale into account
	             return v1.value.localeCompare(v2.value);
	           };
	         }]);
	     </file>
	     <file name="style.css">
	       .friends-container {
	         display: inline-block;
	         margin: 0 30px;
	       }
	
	       .friends {
	         border-collapse: collapse;
	       }
	
	       .friends th {
	         border-bottom: 1px solid;
	       }
	       .friends td, .friends th {
	         border-left: 1px solid;
	         padding: 5px 10px;
	       }
	       .friends td:first-child, .friends th:first-child {
	         border-left: none;
	       }
	     </file>
	     <file name="protractor.js" type="protractor">
	       // Element locators
	       var container = element(by.css('.custom-comparator'));
	       var names = container.all(by.repeater('friends').column('friend.name'));
	
	       it('should sort friends by favorite letter (in correct alphabetical order)', function() {
	         expect(names.get(0).getText()).toBe('John');
	         expect(names.get(1).getText()).toBe('Adam');
	         expect(names.get(2).getText()).toBe('Mike');
	         expect(names.get(3).getText()).toBe('Mary');
	         expect(names.get(4).getText()).toBe('Julie');
	       });
	     </file>
	   </example>
	 *
	 */orderByFilter.$inject=['$parse'];function orderByFilter($parse){return function(array,sortPredicate,reverseOrder,compareFn){if(array==null)return array;if(!isArrayLike(array)){throw minErr('orderBy')('notarray','Expected array but received: {0}',array);}if(!isArray(sortPredicate)){sortPredicate=[sortPredicate];}if(sortPredicate.length===0){sortPredicate=['+'];}var predicates=processPredicates(sortPredicate);var descending=reverseOrder?-1:1;// Define the `compare()` function. Use a default comparator if none is specified.
	var compare=isFunction(compareFn)?compareFn:defaultCompare;// The next three lines are a version of a Swartzian Transform idiom from Perl
	// (sometimes called the Decorate-Sort-Undecorate idiom)
	// See https://en.wikipedia.org/wiki/Schwartzian_transform
	var compareValues=Array.prototype.map.call(array,getComparisonObject);compareValues.sort(doComparison);array=compareValues.map(function(item){return item.value;});return array;function getComparisonObject(value,index){// NOTE: We are adding an extra `tieBreaker` value based on the element's index.
	// This will be used to keep the sort stable when none of the input predicates can
	// distinguish between two elements.
	return{value:value,tieBreaker:{value:index,type:'number',index:index},predicateValues:predicates.map(function(predicate){return getPredicateValue(predicate.get(value),index);})};}function doComparison(v1,v2){for(var i=0,ii=predicates.length;i<ii;i++){var result=compare(v1.predicateValues[i],v2.predicateValues[i]);if(result){return result*predicates[i].descending*descending;}}return(compare(v1.tieBreaker,v2.tieBreaker)||defaultCompare(v1.tieBreaker,v2.tieBreaker))*descending;}};function processPredicates(sortPredicates){return sortPredicates.map(function(predicate){var descending=1,get=identity;if(isFunction(predicate)){get=predicate;}else if(isString(predicate)){if(predicate.charAt(0)==='+'||predicate.charAt(0)==='-'){descending=predicate.charAt(0)==='-'?-1:1;predicate=predicate.substring(1);}if(predicate!==''){get=$parse(predicate);if(get.constant){var key=get();get=function get(value){return value[key];};}}}return{get:get,descending:descending};});}function isPrimitive(value){switch(typeof value==='undefined'?'undefined':_typeof(value)){case'number':/* falls through */case'boolean':/* falls through */case'string':return true;default:return false;}}function objectValue(value){// If `valueOf` is a valid function use that
	if(isFunction(value.valueOf)){value=value.valueOf();if(isPrimitive(value))return value;}// If `toString` is a valid function and not the one from `Object.prototype` use that
	if(hasCustomToString(value)){value=value.toString();if(isPrimitive(value))return value;}return value;}function getPredicateValue(value,index){var type=typeof value==='undefined'?'undefined':_typeof(value);if(value===null){type='null';}else if(type==='object'){value=objectValue(value);}return{value:value,type:type,index:index};}function defaultCompare(v1,v2){var result=0;var type1=v1.type;var type2=v2.type;if(type1===type2){var value1=v1.value;var value2=v2.value;if(type1==='string'){// Compare strings case-insensitively
	value1=value1.toLowerCase();value2=value2.toLowerCase();}else if(type1==='object'){// For basic objects, use the position of the object
	// in the collection instead of the value
	if(isObject(value1))value1=v1.index;if(isObject(value2))value2=v2.index;}if(value1!==value2){result=value1<value2?-1:1;}}else{result=type1==='undefined'?1:type2==='undefined'?-1:type1==='null'?1:type2==='null'?-1:type1<type2?-1:1;}return result;}}function ngDirective(directive){if(isFunction(directive)){directive={link:directive};}directive.restrict=directive.restrict||'AC';return valueFn(directive);}/**
	 * @ngdoc directive
	 * @name a
	 * @restrict E
	 *
	 * @description
	 * Modifies the default behavior of the html a tag so that the default action is prevented when
	 * the href attribute is empty.
	 *
	 * For dynamically creating `href` attributes for a tags, see the {@link ng.ngHref `ngHref`} directive.
	 */var htmlAnchorDirective=valueFn({restrict:'E',compile:function compile(element,attr){if(!attr.href&&!attr.xlinkHref){return function(scope,element){// If the linked element is not an anchor tag anymore, do nothing
	if(element[0].nodeName.toLowerCase()!=='a')return;// SVGAElement does not use the href attribute, but rather the 'xlinkHref' attribute.
	var href=toString.call(element.prop('href'))==='[object SVGAnimatedString]'?'xlink:href':'href';element.on('click',function(event){// if we have no href url, then don't navigate anywhere.
	if(!element.attr(href)){event.preventDefault();}});};}}});/**
	 * @ngdoc directive
	 * @name ngHref
	 * @restrict A
	 * @priority 99
	 *
	 * @description
	 * Using AngularJS markup like `{{hash}}` in an href attribute will
	 * make the link go to the wrong URL if the user clicks it before
	 * AngularJS has a chance to replace the `{{hash}}` markup with its
	 * value. Until AngularJS replaces the markup the link will be broken
	 * and will most likely return a 404 error. The `ngHref` directive
	 * solves this problem.
	 *
	 * The wrong way to write it:
	 * ```html
	 * <a href="http://www.gravatar.com/avatar/{{hash}}">link1</a>
	 * ```
	 *
	 * The correct way to write it:
	 * ```html
	 * <a ng-href="http://www.gravatar.com/avatar/{{hash}}">link1</a>
	 * ```
	 *
	 * @element A
	 * @param {template} ngHref any string which can contain `{{}}` markup.
	 *
	 * @example
	 * This example shows various combinations of `href`, `ng-href` and `ng-click` attributes
	 * in links and their different behaviors:
	    <example name="ng-href">
	      <file name="index.html">
	        <input ng-model="value" /><br />
	        <a id="link-1" href ng-click="value = 1">link 1</a> (link, don't reload)<br />
	        <a id="link-2" href="" ng-click="value = 2">link 2</a> (link, don't reload)<br />
	        <a id="link-3" ng-href="/{{'123'}}">link 3</a> (link, reload!)<br />
	        <a id="link-4" href="" name="xx" ng-click="value = 4">anchor</a> (link, don't reload)<br />
	        <a id="link-5" name="xxx" ng-click="value = 5">anchor</a> (no link)<br />
	        <a id="link-6" ng-href="{{value}}">link</a> (link, change location)
	      </file>
	      <file name="protractor.js" type="protractor">
	        it('should execute ng-click but not reload when href without value', function() {
	          element(by.id('link-1')).click();
	          expect(element(by.model('value')).getAttribute('value')).toEqual('1');
	          expect(element(by.id('link-1')).getAttribute('href')).toBe('');
	        });
	
	        it('should execute ng-click but not reload when href empty string', function() {
	          element(by.id('link-2')).click();
	          expect(element(by.model('value')).getAttribute('value')).toEqual('2');
	          expect(element(by.id('link-2')).getAttribute('href')).toBe('');
	        });
	
	        it('should execute ng-click and change url when ng-href specified', function() {
	          expect(element(by.id('link-3')).getAttribute('href')).toMatch(/\/123$/);
	
	          element(by.id('link-3')).click();
	
	          // At this point, we navigate away from an AngularJS page, so we need
	          // to use browser.driver to get the base webdriver.
	
	          browser.wait(function() {
	            return browser.driver.getCurrentUrl().then(function(url) {
	              return url.match(/\/123$/);
	            });
	          }, 5000, 'page should navigate to /123');
	        });
	
	        it('should execute ng-click but not reload when href empty string and name specified', function() {
	          element(by.id('link-4')).click();
	          expect(element(by.model('value')).getAttribute('value')).toEqual('4');
	          expect(element(by.id('link-4')).getAttribute('href')).toBe('');
	        });
	
	        it('should execute ng-click but not reload when no href but name specified', function() {
	          element(by.id('link-5')).click();
	          expect(element(by.model('value')).getAttribute('value')).toEqual('5');
	          expect(element(by.id('link-5')).getAttribute('href')).toBe(null);
	        });
	
	        it('should only change url when only ng-href', function() {
	          element(by.model('value')).clear();
	          element(by.model('value')).sendKeys('6');
	          expect(element(by.id('link-6')).getAttribute('href')).toMatch(/\/6$/);
	
	          element(by.id('link-6')).click();
	
	          // At this point, we navigate away from an AngularJS page, so we need
	          // to use browser.driver to get the base webdriver.
	          browser.wait(function() {
	            return browser.driver.getCurrentUrl().then(function(url) {
	              return url.match(/\/6$/);
	            });
	          }, 5000, 'page should navigate to /6');
	        });
	      </file>
	    </example>
	 *//**
	 * @ngdoc directive
	 * @name ngSrc
	 * @restrict A
	 * @priority 99
	 *
	 * @description
	 * Using AngularJS markup like `{{hash}}` in a `src` attribute doesn't
	 * work right: The browser will fetch from the URL with the literal
	 * text `{{hash}}` until AngularJS replaces the expression inside
	 * `{{hash}}`. The `ngSrc` directive solves this problem.
	 *
	 * The buggy way to write it:
	 * ```html
	 * <img src="http://www.gravatar.com/avatar/{{hash}}" alt="Description"/>
	 * ```
	 *
	 * The correct way to write it:
	 * ```html
	 * <img ng-src="http://www.gravatar.com/avatar/{{hash}}" alt="Description" />
	 * ```
	 *
	 * @element IMG
	 * @param {template} ngSrc any string which can contain `{{}}` markup.
	 *//**
	 * @ngdoc directive
	 * @name ngSrcset
	 * @restrict A
	 * @priority 99
	 *
	 * @description
	 * Using AngularJS markup like `{{hash}}` in a `srcset` attribute doesn't
	 * work right: The browser will fetch from the URL with the literal
	 * text `{{hash}}` until AngularJS replaces the expression inside
	 * `{{hash}}`. The `ngSrcset` directive solves this problem.
	 *
	 * The buggy way to write it:
	 * ```html
	 * <img srcset="http://www.gravatar.com/avatar/{{hash}} 2x" alt="Description"/>
	 * ```
	 *
	 * The correct way to write it:
	 * ```html
	 * <img ng-srcset="http://www.gravatar.com/avatar/{{hash}} 2x" alt="Description" />
	 * ```
	 *
	 * @element IMG
	 * @param {template} ngSrcset any string which can contain `{{}}` markup.
	 *//**
	 * @ngdoc directive
	 * @name ngDisabled
	 * @restrict A
	 * @priority 100
	 *
	 * @description
	 *
	 * This directive sets the `disabled` attribute on the element (typically a form control,
	 * e.g. `input`, `button`, `select` etc.) if the
	 * {@link guide/expression expression} inside `ngDisabled` evaluates to truthy.
	 *
	 * A special directive is necessary because we cannot use interpolation inside the `disabled`
	 * attribute. See the {@link guide/interpolation interpolation guide} for more info.
	 *
	 * @example
	    <example name="ng-disabled">
	      <file name="index.html">
	        <label>Click me to toggle: <input type="checkbox" ng-model="checked"></label><br/>
	        <button ng-model="button" ng-disabled="checked">Button</button>
	      </file>
	      <file name="protractor.js" type="protractor">
	        it('should toggle button', function() {
	          expect(element(by.css('button')).getAttribute('disabled')).toBeFalsy();
	          element(by.model('checked')).click();
	          expect(element(by.css('button')).getAttribute('disabled')).toBeTruthy();
	        });
	      </file>
	    </example>
	 *
	 * @param {expression} ngDisabled If the {@link guide/expression expression} is truthy,
	 *     then the `disabled` attribute will be set on the element
	 *//**
	 * @ngdoc directive
	 * @name ngChecked
	 * @restrict A
	 * @priority 100
	 *
	 * @description
	 * Sets the `checked` attribute on the element, if the expression inside `ngChecked` is truthy.
	 *
	 * Note that this directive should not be used together with {@link ngModel `ngModel`},
	 * as this can lead to unexpected behavior.
	 *
	 * A special directive is necessary because we cannot use interpolation inside the `checked`
	 * attribute. See the {@link guide/interpolation interpolation guide} for more info.
	 *
	 * @example
	    <example name="ng-checked">
	      <file name="index.html">
	        <label>Check me to check both: <input type="checkbox" ng-model="leader"></label><br/>
	        <input id="checkFollower" type="checkbox" ng-checked="leader" aria-label="Follower input">
	      </file>
	      <file name="protractor.js" type="protractor">
	        it('should check both checkBoxes', function() {
	          expect(element(by.id('checkFollower')).getAttribute('checked')).toBeFalsy();
	          element(by.model('leader')).click();
	          expect(element(by.id('checkFollower')).getAttribute('checked')).toBeTruthy();
	        });
	      </file>
	    </example>
	 *
	 * @element INPUT
	 * @param {expression} ngChecked If the {@link guide/expression expression} is truthy,
	 *     then the `checked` attribute will be set on the element
	 *//**
	 * @ngdoc directive
	 * @name ngReadonly
	 * @restrict A
	 * @priority 100
	 *
	 * @description
	 *
	 * Sets the `readonly` attribute on the element, if the expression inside `ngReadonly` is truthy.
	 * Note that `readonly` applies only to `input` elements with specific types. [See the input docs on
	 * MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-readonly) for more information.
	 *
	 * A special directive is necessary because we cannot use interpolation inside the `readonly`
	 * attribute. See the {@link guide/interpolation interpolation guide} for more info.
	 *
	 * @example
	    <example name="ng-readonly">
	      <file name="index.html">
	        <label>Check me to make text readonly: <input type="checkbox" ng-model="checked"></label><br/>
	        <input type="text" ng-readonly="checked" value="I'm AngularJS" aria-label="Readonly field" />
	      </file>
	      <file name="protractor.js" type="protractor">
	        it('should toggle readonly attr', function() {
	          expect(element(by.css('[type="text"]')).getAttribute('readonly')).toBeFalsy();
	          element(by.model('checked')).click();
	          expect(element(by.css('[type="text"]')).getAttribute('readonly')).toBeTruthy();
	        });
	      </file>
	    </example>
	 *
	 * @element INPUT
	 * @param {expression} ngReadonly If the {@link guide/expression expression} is truthy,
	 *     then special attribute "readonly" will be set on the element
	 *//**
	 * @ngdoc directive
	 * @name ngSelected
	 * @restrict A
	 * @priority 100
	 *
	 * @description
	 *
	 * Sets the `selected` attribute on the element, if the expression inside `ngSelected` is truthy.
	 *
	 * A special directive is necessary because we cannot use interpolation inside the `selected`
	 * attribute. See the {@link guide/interpolation interpolation guide} for more info.
	 *
	 * <div class="alert alert-warning">
	 *   **Note:** `ngSelected` does not interact with the `select` and `ngModel` directives, it only
	 *   sets the `selected` attribute on the element. If you are using `ngModel` on the select, you
	 *   should not use `ngSelected` on the options, as `ngModel` will set the select value and
	 *   selected options.
	 * </div>
	 *
	 * @example
	    <example name="ng-selected">
	      <file name="index.html">
	        <label>Check me to select: <input type="checkbox" ng-model="selected"></label><br/>
	        <select aria-label="ngSelected demo">
	          <option>Hello!</option>
	          <option id="greet" ng-selected="selected">Greetings!</option>
	        </select>
	      </file>
	      <file name="protractor.js" type="protractor">
	        it('should select Greetings!', function() {
	          expect(element(by.id('greet')).getAttribute('selected')).toBeFalsy();
	          element(by.model('selected')).click();
	          expect(element(by.id('greet')).getAttribute('selected')).toBeTruthy();
	        });
	      </file>
	    </example>
	 *
	 * @element OPTION
	 * @param {expression} ngSelected If the {@link guide/expression expression} is truthy,
	 *     then special attribute "selected" will be set on the element
	 *//**
	 * @ngdoc directive
	 * @name ngOpen
	 * @restrict A
	 * @priority 100
	 *
	 * @description
	 *
	 * Sets the `open` attribute on the element, if the expression inside `ngOpen` is truthy.
	 *
	 * A special directive is necessary because we cannot use interpolation inside the `open`
	 * attribute. See the {@link guide/interpolation interpolation guide} for more info.
	 *
	 * ## A note about browser compatibility
	 *
	 * Internet Explorer and Edge do not support the `details` element, it is
	 * recommended to use {@link ng.ngShow} and {@link ng.ngHide} instead.
	 *
	 * @example
	     <example name="ng-open">
	       <file name="index.html">
	         <label>Toggle details: <input type="checkbox" ng-model="open"></label><br/>
	         <details id="details" ng-open="open">
	            <summary>List</summary>
	            <ul>
	              <li>Apple</li>
	              <li>Orange</li>
	              <li>Durian</li>
	            </ul>
	         </details>
	       </file>
	       <file name="protractor.js" type="protractor">
	         it('should toggle open', function() {
	           expect(element(by.id('details')).getAttribute('open')).toBeFalsy();
	           element(by.model('open')).click();
	           expect(element(by.id('details')).getAttribute('open')).toBeTruthy();
	         });
	       </file>
	     </example>
	 *
	 * @element DETAILS
	 * @param {expression} ngOpen If the {@link guide/expression expression} is truthy,
	 *     then special attribute "open" will be set on the element
	 */var ngAttributeAliasDirectives={};// boolean attrs are evaluated
	forEach(BOOLEAN_ATTR,function(propName,attrName){// binding to multiple is not supported
	if(propName==='multiple')return;function defaultLinkFn(scope,element,attr){scope.$watch(attr[normalized],function ngBooleanAttrWatchAction(value){attr.$set(attrName,!!value);});}var normalized=directiveNormalize('ng-'+attrName);var linkFn=defaultLinkFn;if(propName==='checked'){linkFn=function linkFn(scope,element,attr){// ensuring ngChecked doesn't interfere with ngModel when both are set on the same input
	if(attr.ngModel!==attr[normalized]){defaultLinkFn(scope,element,attr);}};}ngAttributeAliasDirectives[normalized]=function(){return{restrict:'A',priority:100,link:linkFn};};});// aliased input attrs are evaluated
	forEach(ALIASED_ATTR,function(htmlAttr,ngAttr){ngAttributeAliasDirectives[ngAttr]=function(){return{priority:100,link:function link(scope,element,attr){//special case ngPattern when a literal regular expression value
	//is used as the expression (this way we don't have to watch anything).
	if(ngAttr==='ngPattern'&&attr.ngPattern.charAt(0)==='/'){var match=attr.ngPattern.match(REGEX_STRING_REGEXP);if(match){attr.$set('ngPattern',new RegExp(match[1],match[2]));return;}}scope.$watch(attr[ngAttr],function ngAttrAliasWatchAction(value){attr.$set(ngAttr,value);});}};};});// ng-src, ng-srcset, ng-href are interpolated
	forEach(['src','srcset','href'],function(attrName){var normalized=directiveNormalize('ng-'+attrName);ngAttributeAliasDirectives[normalized]=['$sce',function($sce){return{priority:99,// it needs to run after the attributes are interpolated
	link:function link(scope,element,attr){var propName=attrName,name=attrName;if(attrName==='href'&&toString.call(element.prop('href'))==='[object SVGAnimatedString]'){name='xlinkHref';attr.$attr[name]='xlink:href';propName=null;}// We need to sanitize the url at least once, in case it is a constant
	// non-interpolated attribute.
	attr.$set(normalized,$sce.getTrustedMediaUrl(attr[normalized]));attr.$observe(normalized,function(value){if(!value){if(attrName==='href'){attr.$set(name,null);}return;}attr.$set(name,value);// Support: IE 9-11 only
	// On IE, if "ng:src" directive declaration is used and "src" attribute doesn't exist
	// then calling element.setAttribute('src', 'foo') doesn't do anything, so we need
	// to set the property as well to achieve the desired effect.
	// We use attr[attrName] value since $set might have sanitized the url.
	if(msie&&propName)element.prop(propName,attr[name]);});}};}];});/* global -nullFormCtrl, -PENDING_CLASS, -SUBMITTED_CLASS
	 */var nullFormCtrl={$addControl:noop,$getControls:valueFn([]),$$renameControl:nullFormRenameControl,$removeControl:noop,$setValidity:noop,$setDirty:noop,$setPristine:noop,$setSubmitted:noop,$$setSubmitted:noop},PENDING_CLASS='ng-pending',SUBMITTED_CLASS='ng-submitted';function nullFormRenameControl(control,name){control.$name=name;}/**
	 * @ngdoc type
	 * @name form.FormController
	 *
	 * @property {boolean} $pristine True if user has not interacted with the form yet.
	 * @property {boolean} $dirty True if user has already interacted with the form.
	 * @property {boolean} $valid True if all of the containing forms and controls are valid.
	 * @property {boolean} $invalid True if at least one containing control or form is invalid.
	 * @property {boolean} $submitted True if user has submitted the form even if its invalid.
	 *
	 * @property {Object} $pending An object hash, containing references to controls or forms with
	 *  pending validators, where:
	 *
	 *  - keys are validations tokens (error names).
	 *  - values are arrays of controls or forms that have a pending validator for the given error name.
	 *
	 * See {@link form.FormController#$error $error} for a list of built-in validation tokens.
	 *
	 * @property {Object} $error An object hash, containing references to controls or forms with failing
	 *  validators, where:
	 *
	 *  - keys are validation tokens (error names),
	 *  - values are arrays of controls or forms that have a failing validator for the given error name.
	 *
	 *  Built-in validation tokens:
	 *  - `email`
	 *  - `max`
	 *  - `maxlength`
	 *  - `min`
	 *  - `minlength`
	 *  - `number`
	 *  - `pattern`
	 *  - `required`
	 *  - `url`
	 *  - `date`
	 *  - `datetimelocal`
	 *  - `time`
	 *  - `week`
	 *  - `month`
	 *
	 * @description
	 * `FormController` keeps track of all its controls and nested forms as well as the state of them,
	 * such as being valid/invalid or dirty/pristine.
	 *
	 * Each {@link ng.directive:form form} directive creates an instance
	 * of `FormController`.
	 *
	 *///asks for $scope to fool the BC controller module
	FormController.$inject=['$element','$attrs','$scope','$animate','$interpolate'];function FormController($element,$attrs,$scope,$animate,$interpolate){this.$$controls=[];// init state
	this.$error={};this.$$success={};this.$pending=undefined;this.$name=$interpolate($attrs.name||$attrs.ngForm||'')($scope);this.$dirty=false;this.$pristine=true;this.$valid=true;this.$invalid=false;this.$submitted=false;this.$$parentForm=nullFormCtrl;this.$$element=$element;this.$$animate=$animate;setupValidity(this);}FormController.prototype={/**
	   * @ngdoc method
	   * @name form.FormController#$rollbackViewValue
	   *
	   * @description
	   * Rollback all form controls pending updates to the `$modelValue`.
	   *
	   * Updates may be pending by a debounced event or because the input is waiting for a some future
	   * event defined in `ng-model-options`. This method is typically needed by the reset button of
	   * a form that uses `ng-model-options` to pend updates.
	   */$rollbackViewValue:function $rollbackViewValue(){forEach(this.$$controls,function(control){control.$rollbackViewValue();});},/**
	   * @ngdoc method
	   * @name form.FormController#$commitViewValue
	   *
	   * @description
	   * Commit all form controls pending updates to the `$modelValue`.
	   *
	   * Updates may be pending by a debounced event or because the input is waiting for a some future
	   * event defined in `ng-model-options`. This method is rarely needed as `NgModelController`
	   * usually handles calling this in response to input events.
	   */$commitViewValue:function $commitViewValue(){forEach(this.$$controls,function(control){control.$commitViewValue();});},/**
	   * @ngdoc method
	   * @name form.FormController#$addControl
	   * @param {object} control control object, either a {@link form.FormController} or an
	   * {@link ngModel.NgModelController}
	   *
	   * @description
	   * Register a control with the form. Input elements using ngModelController do this automatically
	   * when they are linked.
	   *
	   * Note that the current state of the control will not be reflected on the new parent form. This
	   * is not an issue with normal use, as freshly compiled and linked controls are in a `$pristine`
	   * state.
	   *
	   * However, if the method is used programmatically, for example by adding dynamically created controls,
	   * or controls that have been previously removed without destroying their corresponding DOM element,
	   * it's the developers responsibility to make sure the current state propagates to the parent form.
	   *
	   * For example, if an input control is added that is already `$dirty` and has `$error` properties,
	   * calling `$setDirty()` and `$validate()` afterwards will propagate the state to the parent form.
	   */$addControl:function $addControl(control){// Breaking change - before, inputs whose name was "hasOwnProperty" were quietly ignored
	// and not added to the scope.  Now we throw an error.
	assertNotHasOwnProperty(control.$name,'input');this.$$controls.push(control);if(control.$name){this[control.$name]=control;}control.$$parentForm=this;},/**
	   * @ngdoc method
	   * @name form.FormController#$getControls
	   * @returns {Array} the controls that are currently part of this form
	   *
	   * @description
	   * This method returns a **shallow copy** of the controls that are currently part of this form.
	   * The controls can be instances of {@link form.FormController `FormController`}
	   * ({@link ngForm "child-forms"}) and of {@link ngModel.NgModelController `NgModelController`}.
	   * If you need access to the controls of child-forms, you have to call `$getControls()`
	   * recursively on them.
	   * This can be used for example to iterate over all controls to validate them.
	   *
	   * The controls can be accessed normally, but adding to, or removing controls from the array has
	   * no effect on the form. Instead, use {@link form.FormController#$addControl `$addControl()`} and
	   * {@link form.FormController#$removeControl `$removeControl()`} for this use-case.
	   * Likewise, adding a control to, or removing a control from the form is not reflected
	   * in the shallow copy. That means you should get a fresh copy from `$getControls()` every time
	   * you need access to the controls.
	   */$getControls:function $getControls(){return shallowCopy(this.$$controls);},// Private API: rename a form control
	$$renameControl:function $$renameControl(control,newName){var oldName=control.$name;if(this[oldName]===control){delete this[oldName];}this[newName]=control;control.$name=newName;},/**
	   * @ngdoc method
	   * @name form.FormController#$removeControl
	   * @param {object} control control object, either a {@link form.FormController} or an
	   * {@link ngModel.NgModelController}
	   *
	   * @description
	   * Deregister a control from the form.
	   *
	   * Input elements using ngModelController do this automatically when they are destroyed.
	   *
	   * Note that only the removed control's validation state (`$errors`etc.) will be removed from the
	   * form. `$dirty`, `$submitted` states will not be changed, because the expected behavior can be
	   * different from case to case. For example, removing the only `$dirty` control from a form may or
	   * may not mean that the form is still `$dirty`.
	   */$removeControl:function $removeControl(control){if(control.$name&&this[control.$name]===control){delete this[control.$name];}forEach(this.$pending,function(value,name){// eslint-disable-next-line no-invalid-this
	this.$setValidity(name,null,control);},this);forEach(this.$error,function(value,name){// eslint-disable-next-line no-invalid-this
	this.$setValidity(name,null,control);},this);forEach(this.$$success,function(value,name){// eslint-disable-next-line no-invalid-this
	this.$setValidity(name,null,control);},this);arrayRemove(this.$$controls,control);control.$$parentForm=nullFormCtrl;},/**
	   * @ngdoc method
	   * @name form.FormController#$setDirty
	   *
	   * @description
	   * Sets the form to a dirty state.
	   *
	   * This method can be called to add the 'ng-dirty' class and set the form to a dirty
	   * state (ng-dirty class). This method will also propagate to parent forms.
	   */$setDirty:function $setDirty(){this.$$animate.removeClass(this.$$element,PRISTINE_CLASS);this.$$animate.addClass(this.$$element,DIRTY_CLASS);this.$dirty=true;this.$pristine=false;this.$$parentForm.$setDirty();},/**
	   * @ngdoc method
	   * @name form.FormController#$setPristine
	   *
	   * @description
	   * Sets the form to its pristine state.
	   *
	   * This method sets the form's `$pristine` state to true, the `$dirty` state to false, removes
	   * the `ng-dirty` class and adds the `ng-pristine` class. Additionally, it sets the `$submitted`
	   * state to false.
	   *
	   * This method will also propagate to all the controls contained in this form.
	   *
	   * Setting a form back to a pristine state is often useful when we want to 'reuse' a form after
	   * saving or resetting it.
	   */$setPristine:function $setPristine(){this.$$animate.setClass(this.$$element,PRISTINE_CLASS,DIRTY_CLASS+' '+SUBMITTED_CLASS);this.$dirty=false;this.$pristine=true;this.$submitted=false;forEach(this.$$controls,function(control){control.$setPristine();});},/**
	   * @ngdoc method
	   * @name form.FormController#$setUntouched
	   *
	   * @description
	   * Sets the form to its untouched state.
	   *
	   * This method can be called to remove the 'ng-touched' class and set the form controls to their
	   * untouched state (ng-untouched class).
	   *
	   * Setting a form controls back to their untouched state is often useful when setting the form
	   * back to its pristine state.
	   */$setUntouched:function $setUntouched(){forEach(this.$$controls,function(control){control.$setUntouched();});},/**
	   * @ngdoc method
	   * @name form.FormController#$setSubmitted
	   *
	   * @description
	   * Sets the form to its `$submitted` state. This will also set `$submitted` on all child and
	   * parent forms of the form.
	   */$setSubmitted:function $setSubmitted(){var rootForm=this;while(rootForm.$$parentForm&&rootForm.$$parentForm!==nullFormCtrl){rootForm=rootForm.$$parentForm;}rootForm.$$setSubmitted();},$$setSubmitted:function $$setSubmitted(){this.$$animate.addClass(this.$$element,SUBMITTED_CLASS);this.$submitted=true;forEach(this.$$controls,function(control){if(control.$$setSubmitted){control.$$setSubmitted();}});}};/**
	 * @ngdoc method
	 * @name form.FormController#$setValidity
	 *
	 * @description
	 * Change the validity state of the form, and notify the parent form (if any).
	 *
	 * Application developers will rarely need to call this method directly. It is used internally, by
	 * {@link ngModel.NgModelController#$setValidity NgModelController.$setValidity()}, to propagate a
	 * control's validity state to the parent `FormController`.
	 *
	 * @param {string} validationErrorKey Name of the validator. The `validationErrorKey` will be
	 *        assigned to either `$error[validationErrorKey]` or `$pending[validationErrorKey]` (for
	 *        unfulfilled `$asyncValidators`), so that it is available for data-binding. The
	 *        `validationErrorKey` should be in camelCase and will get converted into dash-case for
	 *        class name. Example: `myError` will result in `ng-valid-my-error` and
	 *        `ng-invalid-my-error` classes and can be bound to as `{{ someForm.$error.myError }}`.
	 * @param {boolean} isValid Whether the current state is valid (true), invalid (false), pending
	 *        (undefined),  or skipped (null). Pending is used for unfulfilled `$asyncValidators`.
	 *        Skipped is used by AngularJS when validators do not run because of parse errors and when
	 *        `$asyncValidators` do not run because any of the `$validators` failed.
	 * @param {NgModelController | FormController} controller - The controller whose validity state is
	 *        triggering the change.
	 */addSetValidityMethod({clazz:FormController,set:function set(object,property,controller){var list=object[property];if(!list){object[property]=[controller];}else{var index=list.indexOf(controller);if(index===-1){list.push(controller);}}},unset:function unset(object,property,controller){var list=object[property];if(!list){return;}arrayRemove(list,controller);if(list.length===0){delete object[property];}}});/**
	 * @ngdoc directive
	 * @name ngForm
	 * @restrict EAC
	 *
	 * @description
	 * Helper directive that makes it possible to create control groups inside a
	 * {@link ng.directive:form `form`} directive.
	 * These "child forms" can be used, for example, to determine the validity of a sub-group of
	 * controls.
	 *
	 * <div class="alert alert-danger">
	 * **Note**: `ngForm` cannot be used as a replacement for `<form>`, because it lacks its
	 * [built-in HTML functionality](https://html.spec.whatwg.org/#the-form-element).
	 * Specifically, you cannot submit `ngForm` like a `<form>` tag. That means,
	 * you cannot send data to the server with `ngForm`, or integrate it with
	 * {@link ng.directive:ngSubmit `ngSubmit`}.
	 * </div>
	 *
	 * @param {string=} ngForm|name Name of the form. If specified, the form controller will
	 *                              be published into the related scope, under this name.
	 *
	 *//**
	 * @ngdoc directive
	 * @name form
	 * @restrict E
	 *
	 * @description
	 * Directive that instantiates
	 * {@link form.FormController FormController}.
	 *
	 * If the `name` attribute is specified, the form controller is published onto the current scope under
	 * this name.
	 *
	 * ## Alias: {@link ng.directive:ngForm `ngForm`}
	 *
	 * In AngularJS, forms can be nested. This means that the outer form is valid when all of the child
	 * forms are valid as well. However, browsers do not allow nesting of `<form>` elements, so
	 * AngularJS provides the {@link ng.directive:ngForm `ngForm`} directive, which behaves identically to
	 * `form` but can be nested. Nested forms can be useful, for example, if the validity of a sub-group
	 * of controls needs to be determined.
	 *
	 * ## CSS classes
	 *  - `ng-valid` is set if the form is valid.
	 *  - `ng-invalid` is set if the form is invalid.
	 *  - `ng-pending` is set if the form is pending.
	 *  - `ng-pristine` is set if the form is pristine.
	 *  - `ng-dirty` is set if the form is dirty.
	 *  - `ng-submitted` is set if the form was submitted.
	 *
	 * Keep in mind that ngAnimate can detect each of these classes when added and removed.
	 *
	 *
	 * ## Submitting a form and preventing the default action
	 *
	 * Since the role of forms in client-side AngularJS applications is different than in classical
	 * roundtrip apps, it is desirable for the browser not to translate the form submission into a full
	 * page reload that sends the data to the server. Instead some javascript logic should be triggered
	 * to handle the form submission in an application-specific way.
	 *
	 * For this reason, AngularJS prevents the default action (form submission to the server) unless the
	 * `<form>` element has an `action` attribute specified.
	 *
	 * You can use one of the following two ways to specify what javascript method should be called when
	 * a form is submitted:
	 *
	 * - {@link ng.directive:ngSubmit ngSubmit} directive on the form element
	 * - {@link ng.directive:ngClick ngClick} directive on the first
	  *  button or input field of type submit (input[type=submit])
	 *
	 * To prevent double execution of the handler, use only one of the {@link ng.directive:ngSubmit ngSubmit}
	 * or {@link ng.directive:ngClick ngClick} directives.
	 * This is because of the following form submission rules in the HTML specification:
	 *
	 * - If a form has only one input field then hitting enter in this field triggers form submit
	 * (`ngSubmit`)
	 * - if a form has 2+ input fields and no buttons or input[type=submit] then hitting enter
	 * doesn't trigger submit
	 * - if a form has one or more input fields and one or more buttons or input[type=submit] then
	 * hitting enter in any of the input fields will trigger the click handler on the *first* button or
	 * input[type=submit] (`ngClick`) *and* a submit handler on the enclosing form (`ngSubmit`)
	 *
	 * Any pending `ngModelOptions` changes will take place immediately when an enclosing form is
	 * submitted. Note that `ngClick` events will occur before the model is updated. Use `ngSubmit`
	 * to have access to the updated model.
	 *
	 * @animations
	 * Animations in ngForm are triggered when any of the associated CSS classes are added and removed.
	 * These classes are: `.ng-pristine`, `.ng-dirty`, `.ng-invalid` and `.ng-valid` as well as any
	 * other validations that are performed within the form. Animations in ngForm are similar to how
	 * they work in ngClass and animations can be hooked into using CSS transitions, keyframes as well
	 * as JS animations.
	 *
	 * The following example shows a simple way to utilize CSS transitions to style a form element
	 * that has been rendered as invalid after it has been validated:
	 *
	 * <pre>
	 * //be sure to include ngAnimate as a module to hook into more
	 * //advanced animations
	 * .my-form {
	 *   transition:0.5s linear all;
	 *   background: white;
	 * }
	 * .my-form.ng-invalid {
	 *   background: red;
	 *   color:white;
	 * }
	 * </pre>
	 *
	 * @example
	    <example name="ng-form" deps="angular-animate.js" animations="true" fixBase="true" module="formExample">
	      <file name="index.html">
	       <script>
	         angular.module('formExample', [])
	           .controller('FormController', ['$scope', function($scope) {
	             $scope.userType = 'guest';
	           }]);
	       </script>
	       <style>
	        .my-form {
	          transition:all linear 0.5s;
	          background: transparent;
	        }
	        .my-form.ng-invalid {
	          background: red;
	        }
	       </style>
	       <form name="myForm" ng-controller="FormController" class="my-form">
	         userType: <input name="input" ng-model="userType" required>
	         <span class="error" ng-show="myForm.input.$error.required">Required!</span><br>
	         <code>userType = {{userType}}</code><br>
	         <code>myForm.input.$valid = {{myForm.input.$valid}}</code><br>
	         <code>myForm.input.$error = {{myForm.input.$error}}</code><br>
	         <code>myForm.$valid = {{myForm.$valid}}</code><br>
	         <code>myForm.$error.required = {{!!myForm.$error.required}}</code><br>
	        </form>
	      </file>
	      <file name="protractor.js" type="protractor">
	        it('should initialize to model', function() {
	          var userType = element(by.binding('userType'));
	          var valid = element(by.binding('myForm.input.$valid'));
	
	          expect(userType.getText()).toContain('guest');
	          expect(valid.getText()).toContain('true');
	        });
	
	        it('should be invalid if empty', function() {
	          var userType = element(by.binding('userType'));
	          var valid = element(by.binding('myForm.input.$valid'));
	          var userInput = element(by.model('userType'));
	
	          userInput.clear();
	          userInput.sendKeys('');
	
	          expect(userType.getText()).toEqual('userType =');
	          expect(valid.getText()).toContain('false');
	        });
	      </file>
	    </example>
	 *
	 * @param {string=} name Name of the form. If specified, the form controller will be published into
	 *                       related scope, under this name.
	 */var formDirectiveFactory=function formDirectiveFactory(isNgForm){return['$timeout','$parse',function($timeout,$parse){var formDirective={name:'form',restrict:isNgForm?'EAC':'E',require:['form','^^?form'],//first is the form's own ctrl, second is an optional parent form
	controller:FormController,compile:function ngFormCompile(formElement,attr){// Setup initial state of the control
	formElement.addClass(PRISTINE_CLASS).addClass(VALID_CLASS);var nameAttr=attr.name?'name':isNgForm&&attr.ngForm?'ngForm':false;return{pre:function ngFormPreLink(scope,formElement,attr,ctrls){var controller=ctrls[0];// if `action` attr is not present on the form, prevent the default action (submission)
	if(!('action'in attr)){// we can't use jq events because if a form is destroyed during submission the default
	// action is not prevented. see #1238
	//
	// IE 9 is not affected because it doesn't fire a submit event and try to do a full
	// page reload if the form was destroyed by submission of the form via a click handler
	// on a button in the form. Looks like an IE9 specific bug.
	var handleFormSubmission=function handleFormSubmission(event){scope.$apply(function(){controller.$commitViewValue();controller.$setSubmitted();});event.preventDefault();};formElement[0].addEventListener('submit',handleFormSubmission);// unregister the preventDefault listener so that we don't not leak memory but in a
	// way that will achieve the prevention of the default action.
	formElement.on('$destroy',function(){$timeout(function(){formElement[0].removeEventListener('submit',handleFormSubmission);},0,false);});}var parentFormCtrl=ctrls[1]||controller.$$parentForm;parentFormCtrl.$addControl(controller);var setter=nameAttr?getSetter(controller.$name):noop;if(nameAttr){setter(scope,controller);attr.$observe(nameAttr,function(newValue){if(controller.$name===newValue)return;setter(scope,undefined);controller.$$parentForm.$$renameControl(controller,newValue);setter=getSetter(controller.$name);setter(scope,controller);});}formElement.on('$destroy',function(){controller.$$parentForm.$removeControl(controller);setter(scope,undefined);extend(controller,nullFormCtrl);//stop propagating child destruction handlers upwards
	});}};}};return formDirective;function getSetter(expression){if(expression===''){//create an assignable expression, so forms with an empty name can be renamed later
	return $parse('this[""]').assign;}return $parse(expression).assign||noop;}}];};var formDirective=formDirectiveFactory();var ngFormDirective=formDirectiveFactory(true);// helper methods
	function setupValidity(instance){instance.$$classCache={};instance.$$classCache[INVALID_CLASS]=!(instance.$$classCache[VALID_CLASS]=instance.$$element.hasClass(VALID_CLASS));}function addSetValidityMethod(context){var clazz=context.clazz,set=context.set,unset=context.unset;clazz.prototype.$setValidity=function(validationErrorKey,state,controller){if(isUndefined(state)){createAndSet(this,'$pending',validationErrorKey,controller);}else{unsetAndCleanup(this,'$pending',validationErrorKey,controller);}if(!isBoolean(state)){unset(this.$error,validationErrorKey,controller);unset(this.$$success,validationErrorKey,controller);}else{if(state){unset(this.$error,validationErrorKey,controller);set(this.$$success,validationErrorKey,controller);}else{set(this.$error,validationErrorKey,controller);unset(this.$$success,validationErrorKey,controller);}}if(this.$pending){cachedToggleClass(this,PENDING_CLASS,true);this.$valid=this.$invalid=undefined;toggleValidationCss(this,'',null);}else{cachedToggleClass(this,PENDING_CLASS,false);this.$valid=isObjectEmpty(this.$error);this.$invalid=!this.$valid;toggleValidationCss(this,'',this.$valid);}// re-read the state as the set/unset methods could have
	// combined state in this.$error[validationError] (used for forms),
	// where setting/unsetting only increments/decrements the value,
	// and does not replace it.
	var combinedState;if(this.$pending&&this.$pending[validationErrorKey]){combinedState=undefined;}else if(this.$error[validationErrorKey]){combinedState=false;}else if(this.$$success[validationErrorKey]){combinedState=true;}else{combinedState=null;}toggleValidationCss(this,validationErrorKey,combinedState);this.$$parentForm.$setValidity(validationErrorKey,combinedState,this);};function createAndSet(ctrl,name,value,controller){if(!ctrl[name]){ctrl[name]={};}set(ctrl[name],value,controller);}function unsetAndCleanup(ctrl,name,value,controller){if(ctrl[name]){unset(ctrl[name],value,controller);}if(isObjectEmpty(ctrl[name])){ctrl[name]=undefined;}}function cachedToggleClass(ctrl,className,switchValue){if(switchValue&&!ctrl.$$classCache[className]){ctrl.$$animate.addClass(ctrl.$$element,className);ctrl.$$classCache[className]=true;}else if(!switchValue&&ctrl.$$classCache[className]){ctrl.$$animate.removeClass(ctrl.$$element,className);ctrl.$$classCache[className]=false;}}function toggleValidationCss(ctrl,validationErrorKey,isValid){validationErrorKey=validationErrorKey?'-'+snake_case(validationErrorKey,'-'):'';cachedToggleClass(ctrl,VALID_CLASS+validationErrorKey,isValid===true);cachedToggleClass(ctrl,INVALID_CLASS+validationErrorKey,isValid===false);}}function isObjectEmpty(obj){if(obj){for(var prop in obj){if(obj.hasOwnProperty(prop)){return false;}}}return true;}/* global
	  VALID_CLASS: false,
	  INVALID_CLASS: false,
	  PRISTINE_CLASS: false,
	  DIRTY_CLASS: false,
	  ngModelMinErr: false
	*/// Regex code was initially obtained from SO prior to modification: https://stackoverflow.com/questions/3143070/javascript-regex-iso-datetime#answer-3143231
	var ISO_DATE_REGEXP=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/;// See valid URLs in RFC3987 (http://tools.ietf.org/html/rfc3987)
	// Note: We are being more lenient, because browsers are too.
	//   1. Scheme
	//   2. Slashes
	//   3. Username
	//   4. Password
	//   5. Hostname
	//   6. Port
	//   7. Path
	//   8. Query
	//   9. Fragment
	//                 1111111111111111 222   333333    44444        55555555555555555555555     666     77777777     8888888     999
	var URL_REGEXP=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i;// eslint-disable-next-line max-len
	var EMAIL_REGEXP=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[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])?)*$/;var NUMBER_REGEXP=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/;var DATE_REGEXP=/^(\d{4,})-(\d{2})-(\d{2})$/;var DATETIMELOCAL_REGEXP=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/;var WEEK_REGEXP=/^(\d{4,})-W(\d\d)$/;var MONTH_REGEXP=/^(\d{4,})-(\d\d)$/;var TIME_REGEXP=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/;var PARTIAL_VALIDATION_EVENTS='keydown wheel mousedown';var PARTIAL_VALIDATION_TYPES=createMap();forEach('date,datetime-local,month,time,week'.split(','),function(type){PARTIAL_VALIDATION_TYPES[type]=true;});var inputType={/**
	   * @ngdoc input
	   * @name input[text]
	   *
	   * @description
	   * Standard HTML text input with AngularJS data binding, inherited by most of the `input` elements.
	   *
	   *
	   * @param {string} ngModel Assignable AngularJS expression to data-bind to.
	   * @param {string=} name Property name of the form under which the control is published.
	   * @param {string=} required Adds `required` validation error key if the value is not entered.
	   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
	   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
	   *    `required` when you want to data-bind to the `required` attribute.
	   * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
	   *    minlength.
	   * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
	   *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of
	   *    any length.
	   * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
	   *    that contains the regular expression body that will be converted to a regular expression
	   *    as in the ngPattern directive.
	   * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
	   *    does not match a RegExp found by evaluating the AngularJS expression given in the attribute value.
	   *    If the expression evaluates to a RegExp object, then this is used directly.
	   *    If the expression evaluates to a string, then it will be converted to a RegExp
	   *    after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
	   *    `new RegExp('^abc$')`.<br />
	   *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
	   *    start at the index of the last search's match, thus not taking the whole input value into
	   *    account.
	   * @param {string=} ngChange AngularJS expression to be executed when input changes due to user
	   *    interaction with the input element.
	   * @param {boolean=} [ngTrim=true] If set to false AngularJS will not automatically trim the input.
	   *    This parameter is ignored for input[type=password] controls, which will never trim the
	   *    input.
	   *
	   * @example
	      <example name="text-input-directive" module="textInputExample">
	        <file name="index.html">
	         <script>
	           angular.module('textInputExample', [])
	             .controller('ExampleController', ['$scope', function($scope) {
	               $scope.example = {
	                 text: 'guest',
	                 word: /^\s*\w*\s*$/
	               };
	             }]);
	         </script>
	         <form name="myForm" ng-controller="ExampleController">
	           <label>Single word:
	             <input type="text" name="input" ng-model="example.text"
	                    ng-pattern="example.word" required ng-trim="false">
	           </label>
	           <div role="alert">
	             <span class="error" ng-show="myForm.input.$error.required">
	               Required!</span>
	             <span class="error" ng-show="myForm.input.$error.pattern">
	               Single word only!</span>
	           </div>
	           <code>text = {{example.text}}</code><br/>
	           <code>myForm.input.$valid = {{myForm.input.$valid}}</code><br/>
	           <code>myForm.input.$error = {{myForm.input.$error}}</code><br/>
	           <code>myForm.$valid = {{myForm.$valid}}</code><br/>
	           <code>myForm.$error.required = {{!!myForm.$error.required}}</code><br/>
	          </form>
	        </file>
	        <file name="protractor.js" type="protractor">
	          var text = element(by.binding('example.text'));
	          var valid = element(by.binding('myForm.input.$valid'));
	          var input = element(by.model('example.text'));
	
	          it('should initialize to model', function() {
	            expect(text.getText()).toContain('guest');
	            expect(valid.getText()).toContain('true');
	          });
	
	          it('should be invalid if empty', function() {
	            input.clear();
	            input.sendKeys('');
	
	            expect(text.getText()).toEqual('text =');
	            expect(valid.getText()).toContain('false');
	          });
	
	          it('should be invalid if multi word', function() {
	            input.clear();
	            input.sendKeys('hello world');
	
	            expect(valid.getText()).toContain('false');
	          });
	        </file>
	      </example>
	   */'text':textInputType,/**
	     * @ngdoc input
	     * @name input[date]
	     *
	     * @description
	     * Input with date validation and transformation. In browsers that do not yet support
	     * the HTML5 date input, a text element will be used. In that case, text must be entered in a valid ISO-8601
	     * date format (yyyy-MM-dd), for example: `2009-01-06`. Since many
	     * modern browsers do not yet support this input type, it is important to provide cues to users on the
	     * expected input format via a placeholder or label.
	     *
	     * The model must always be a Date object, otherwise AngularJS will throw an error.
	     * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.
	     *
	     * The timezone to be used to read/write the `Date` instance in the model can be defined using
	     * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.
	     *
	     * @param {string} ngModel Assignable AngularJS expression to data-bind to.
	     * @param {string=} name Property name of the form under which the control is published.
	     * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`. This must be a
	     *   valid ISO date string (yyyy-MM-dd). You can also use interpolation inside this attribute
	     *   (e.g. `min="{{minDate | date:'yyyy-MM-dd'}}"`). Note that `min` will also add native HTML5
	     *   constraint validation.
	     * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`. This must be
	     *   a valid ISO date string (yyyy-MM-dd). You can also use interpolation inside this attribute
	     *   (e.g. `max="{{maxDate | date:'yyyy-MM-dd'}}"`). Note that `max` will also add native HTML5
	     *   constraint validation.
	     * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO date string
	     *   the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.
	     * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO date string
	     *   the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.
	     * @param {string=} required Sets `required` validation error key if the value is not entered.
	     * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
	     *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
	     *    `required` when you want to data-bind to the `required` attribute.
	     * @param {string=} ngChange AngularJS expression to be executed when input changes due to user
	     *    interaction with the input element.
	     *
	     * @example
	     <example name="date-input-directive" module="dateInputExample">
	     <file name="index.html">
	       <script>
	          angular.module('dateInputExample', [])
	            .controller('DateController', ['$scope', function($scope) {
	              $scope.example = {
	                value: new Date(2013, 9, 22)
	              };
	            }]);
	       </script>
	       <form name="myForm" ng-controller="DateController as dateCtrl">
	          <label for="exampleInput">Pick a date in 2013:</label>
	          <input type="date" id="exampleInput" name="input" ng-model="example.value"
	              placeholder="yyyy-MM-dd" min="2013-01-01" max="2013-12-31" required />
	          <div role="alert">
	            <span class="error" ng-show="myForm.input.$error.required">
	                Required!</span>
	            <span class="error" ng-show="myForm.input.$error.date">
	                Not a valid date!</span>
	           </div>
	           <tt>value = {{example.value | date: "yyyy-MM-dd"}}</tt><br/>
	           <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
	           <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
	           <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
	           <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
	       </form>
	     </file>
	     <file name="protractor.js" type="protractor">
	        var value = element(by.binding('example.value | date: "yyyy-MM-dd"'));
	        var valid = element(by.binding('myForm.input.$valid'));
	
	        // currently protractor/webdriver does not support
	        // sending keys to all known HTML5 input controls
	        // for various browsers (see https://github.com/angular/protractor/issues/562).
	        function setInput(val) {
	          // set the value of the element and force validation.
	          var scr = "var ipt = document.getElementById('exampleInput'); " +
	          "ipt.value = '" + val + "';" +
	          "angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });";
	          browser.executeScript(scr);
	        }
	
	        it('should initialize to model', function() {
	          expect(value.getText()).toContain('2013-10-22');
	          expect(valid.getText()).toContain('myForm.input.$valid = true');
	        });
	
	        it('should be invalid if empty', function() {
	          setInput('');
	          expect(value.getText()).toEqual('value =');
	          expect(valid.getText()).toContain('myForm.input.$valid = false');
	        });
	
	        it('should be invalid if over max', function() {
	          setInput('2015-01-01');
	          expect(value.getText()).toContain('');
	          expect(valid.getText()).toContain('myForm.input.$valid = false');
	        });
	     </file>
	     </example>
	     */'date':createDateInputType('date',DATE_REGEXP,createDateParser(DATE_REGEXP,['yyyy','MM','dd']),'yyyy-MM-dd'),/**
	    * @ngdoc input
	    * @name input[datetime-local]
	    *
	    * @description
	    * Input with datetime validation and transformation. In browsers that do not yet support
	    * the HTML5 date input, a text element will be used. In that case, the text must be entered in a valid ISO-8601
	    * local datetime format (yyyy-MM-ddTHH:mm:ss), for example: `2010-12-28T14:57:00`.
	    *
	    * The model must always be a Date object, otherwise AngularJS will throw an error.
	    * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.
	    *
	    * The timezone to be used to read/write the `Date` instance in the model can be defined using
	    * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.
	    *
	    * The format of the displayed time can be adjusted with the
	    * {@link ng.directive:ngModelOptions#ngModelOptions-arguments ngModelOptions} `timeSecondsFormat`
	    * and `timeStripZeroSeconds`.
	    *
	    * @param {string} ngModel Assignable AngularJS expression to data-bind to.
	    * @param {string=} name Property name of the form under which the control is published.
	    * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.
	    *   This must be a valid ISO datetime format (yyyy-MM-ddTHH:mm:ss). You can also use interpolation
	    *   inside this attribute (e.g. `min="{{minDatetimeLocal | date:'yyyy-MM-ddTHH:mm:ss'}}"`).
	    *   Note that `min` will also add native HTML5 constraint validation.
	    * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.
	    *   This must be a valid ISO datetime format (yyyy-MM-ddTHH:mm:ss). You can also use interpolation
	    *   inside this attribute (e.g. `max="{{maxDatetimeLocal | date:'yyyy-MM-ddTHH:mm:ss'}}"`).
	    *   Note that `max` will also add native HTML5 constraint validation.
	    * @param {(date|string)=} ngMin Sets the `min` validation error key to the Date / ISO datetime string
	    *   the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.
	    * @param {(date|string)=} ngMax Sets the `max` validation error key to the Date / ISO datetime string
	    *   the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.
	    * @param {string=} required Sets `required` validation error key if the value is not entered.
	    * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
	    *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
	    *    `required` when you want to data-bind to the `required` attribute.
	    * @param {string=} ngChange AngularJS expression to be executed when input changes due to user
	    *    interaction with the input element.
	    *
	    * @example
	    <example name="datetimelocal-input-directive" module="dateExample">
	    <file name="index.html">
	      <script>
	        angular.module('dateExample', [])
	          .controller('DateController', ['$scope', function($scope) {
	            $scope.example = {
	              value: new Date(2010, 11, 28, 14, 57)
	            };
	          }]);
	      </script>
	      <form name="myForm" ng-controller="DateController as dateCtrl">
	        <label for="exampleInput">Pick a date between in 2013:</label>
	        <input type="datetime-local" id="exampleInput" name="input" ng-model="example.value"
	            placeholder="yyyy-MM-ddTHH:mm:ss" min="2001-01-01T00:00:00" max="2013-12-31T00:00:00" required />
	        <div role="alert">
	          <span class="error" ng-show="myForm.input.$error.required">
	              Required!</span>
	          <span class="error" ng-show="myForm.input.$error.datetimelocal">
	              Not a valid date!</span>
	        </div>
	        <tt>value = {{example.value | date: "yyyy-MM-ddTHH:mm:ss"}}</tt><br/>
	        <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
	        <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
	        <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
	        <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
	      </form>
	    </file>
	    <file name="protractor.js" type="protractor">
	      var value = element(by.binding('example.value | date: "yyyy-MM-ddTHH:mm:ss"'));
	      var valid = element(by.binding('myForm.input.$valid'));
	
	      // currently protractor/webdriver does not support
	      // sending keys to all known HTML5 input controls
	      // for various browsers (https://github.com/angular/protractor/issues/562).
	      function setInput(val) {
	        // set the value of the element and force validation.
	        var scr = "var ipt = document.getElementById('exampleInput'); " +
	        "ipt.value = '" + val + "';" +
	        "angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });";
	        browser.executeScript(scr);
	      }
	
	      it('should initialize to model', function() {
	        expect(value.getText()).toContain('2010-12-28T14:57:00');
	        expect(valid.getText()).toContain('myForm.input.$valid = true');
	      });
	
	      it('should be invalid if empty', function() {
	        setInput('');
	        expect(value.getText()).toEqual('value =');
	        expect(valid.getText()).toContain('myForm.input.$valid = false');
	      });
	
	      it('should be invalid if over max', function() {
	        setInput('2015-01-01T23:59:00');
	        expect(value.getText()).toContain('');
	        expect(valid.getText()).toContain('myForm.input.$valid = false');
	      });
	    </file>
	    </example>
	    */'datetime-local':createDateInputType('datetimelocal',DATETIMELOCAL_REGEXP,createDateParser(DATETIMELOCAL_REGEXP,['yyyy','MM','dd','HH','mm','ss','sss']),'yyyy-MM-ddTHH:mm:ss.sss'),/**
	   * @ngdoc input
	   * @name input[time]
	   *
	   * @description
	   * Input with time validation and transformation. In browsers that do not yet support
	   * the HTML5 time input, a text element will be used. In that case, the text must be entered in a valid ISO-8601
	   * local time format (HH:mm:ss), for example: `14:57:00`. Model must be a Date object. This binding will always output a
	   * Date object to the model of January 1, 1970, or local date `new Date(1970, 0, 1, HH, mm, ss)`.
	   *
	   * The model must always be a Date object, otherwise AngularJS will throw an error.
	   * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.
	   *
	   * The timezone to be used to read/write the `Date` instance in the model can be defined using
	   * {@link ng.directive:ngModelOptions#ngModelOptions-arguments ngModelOptions}. By default,
	   * this is the timezone of the browser.
	   *
	   * The format of the displayed time can be adjusted with the
	   * {@link ng.directive:ngModelOptions#ngModelOptions-arguments ngModelOptions} `timeSecondsFormat`
	   * and `timeStripZeroSeconds`.
	   *
	   * @param {string} ngModel Assignable AngularJS expression to data-bind to.
	   * @param {string=} name Property name of the form under which the control is published.
	   * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.
	   *   This must be a valid ISO time format (HH:mm:ss). You can also use interpolation inside this
	   *   attribute (e.g. `min="{{minTime | date:'HH:mm:ss'}}"`). Note that `min` will also add
	   *   native HTML5 constraint validation.
	   * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.
	   *   This must be a valid ISO time format (HH:mm:ss). You can also use interpolation inside this
	   *   attribute (e.g. `max="{{maxTime | date:'HH:mm:ss'}}"`). Note that `max` will also add
	   *   native HTML5 constraint validation.
	   * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO time string the
	   *   `ngMin` expression evaluates to. Note that it does not set the `min` attribute.
	   * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO time string the
	   *   `ngMax` expression evaluates to. Note that it does not set the `max` attribute.
	   * @param {string=} required Sets `required` validation error key if the value is not entered.
	   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
	   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
	   *    `required` when you want to data-bind to the `required` attribute.
	   * @param {string=} ngChange AngularJS expression to be executed when input changes due to user
	   *    interaction with the input element.
	   *
	   * @example
	   <example name="time-input-directive" module="timeExample">
	   <file name="index.html">
	     <script>
	      angular.module('timeExample', [])
	        .controller('DateController', ['$scope', function($scope) {
	          $scope.example = {
	            value: new Date(1970, 0, 1, 14, 57, 0)
	          };
	        }]);
	     </script>
	     <form name="myForm" ng-controller="DateController as dateCtrl">
	        <label for="exampleInput">Pick a time between 8am and 5pm:</label>
	        <input type="time" id="exampleInput" name="input" ng-model="example.value"
	            placeholder="HH:mm:ss" min="08:00:00" max="17:00:00" required />
	        <div role="alert">
	          <span class="error" ng-show="myForm.input.$error.required">
	              Required!</span>
	          <span class="error" ng-show="myForm.input.$error.time">
	              Not a valid date!</span>
	        </div>
	        <tt>value = {{example.value | date: "HH:mm:ss"}}</tt><br/>
	        <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
	        <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
	        <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
	        <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
	     </form>
	   </file>
	   <file name="protractor.js" type="protractor">
	      var value = element(by.binding('example.value | date: "HH:mm:ss"'));
	      var valid = element(by.binding('myForm.input.$valid'));
	
	      // currently protractor/webdriver does not support
	      // sending keys to all known HTML5 input controls
	      // for various browsers (https://github.com/angular/protractor/issues/562).
	      function setInput(val) {
	        // set the value of the element and force validation.
	        var scr = "var ipt = document.getElementById('exampleInput'); " +
	        "ipt.value = '" + val + "';" +
	        "angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });";
	        browser.executeScript(scr);
	      }
	
	      it('should initialize to model', function() {
	        expect(value.getText()).toContain('14:57:00');
	        expect(valid.getText()).toContain('myForm.input.$valid = true');
	      });
	
	      it('should be invalid if empty', function() {
	        setInput('');
	        expect(value.getText()).toEqual('value =');
	        expect(valid.getText()).toContain('myForm.input.$valid = false');
	      });
	
	      it('should be invalid if over max', function() {
	        setInput('23:59:00');
	        expect(value.getText()).toContain('');
	        expect(valid.getText()).toContain('myForm.input.$valid = false');
	      });
	   </file>
	   </example>
	   */'time':createDateInputType('time',TIME_REGEXP,createDateParser(TIME_REGEXP,['HH','mm','ss','sss']),'HH:mm:ss.sss'),/**
	    * @ngdoc input
	    * @name input[week]
	    *
	    * @description
	    * Input with week-of-the-year validation and transformation to Date. In browsers that do not yet support
	    * the HTML5 week input, a text element will be used. In that case, the text must be entered in a valid ISO-8601
	    * week format (yyyy-W##), for example: `2013-W02`.
	    *
	    * The model must always be a Date object, otherwise AngularJS will throw an error.
	    * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.
	    *
	    * The value of the resulting Date object will be set to Thursday at 00:00:00 of the requested week,
	    * due to ISO-8601 week numbering standards. Information on ISO's system for numbering the weeks of the
	    * year can be found at: https://en.wikipedia.org/wiki/ISO_8601#Week_dates
	    *
	    * The timezone to be used to read/write the `Date` instance in the model can be defined using
	    * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.
	    *
	    * @param {string} ngModel Assignable AngularJS expression to data-bind to.
	    * @param {string=} name Property name of the form under which the control is published.
	    * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.
	    *   This must be a valid ISO week format (yyyy-W##). You can also use interpolation inside this
	    *   attribute (e.g. `min="{{minWeek | date:'yyyy-Www'}}"`). Note that `min` will also add
	    *   native HTML5 constraint validation.
	    * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.
	    *   This must be a valid ISO week format (yyyy-W##). You can also use interpolation inside this
	    *   attribute (e.g. `max="{{maxWeek | date:'yyyy-Www'}}"`). Note that `max` will also add
	    *   native HTML5 constraint validation.
	    * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO week string
	    *   the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.
	    * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO week string
	    *   the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.
	    * @param {string=} required Sets `required` validation error key if the value is not entered.
	    * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
	    *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
	    *    `required` when you want to data-bind to the `required` attribute.
	    * @param {string=} ngChange AngularJS expression to be executed when input changes due to user
	    *    interaction with the input element.
	    *
	    * @example
	    <example name="week-input-directive" module="weekExample">
	    <file name="index.html">
	      <script>
	      angular.module('weekExample', [])
	        .controller('DateController', ['$scope', function($scope) {
	          $scope.example = {
	            value: new Date(2013, 0, 3)
	          };
	        }]);
	      </script>
	      <form name="myForm" ng-controller="DateController as dateCtrl">
	        <label>Pick a date between in 2013:
	          <input id="exampleInput" type="week" name="input" ng-model="example.value"
	                 placeholder="YYYY-W##" min="2012-W32"
	                 max="2013-W52" required />
	        </label>
	        <div role="alert">
	          <span class="error" ng-show="myForm.input.$error.required">
	              Required!</span>
	          <span class="error" ng-show="myForm.input.$error.week">
	              Not a valid date!</span>
	        </div>
	        <tt>value = {{example.value | date: "yyyy-Www"}}</tt><br/>
	        <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
	        <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
	        <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
	        <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
	      </form>
	    </file>
	    <file name="protractor.js" type="protractor">
	      var value = element(by.binding('example.value | date: "yyyy-Www"'));
	      var valid = element(by.binding('myForm.input.$valid'));
	
	      // currently protractor/webdriver does not support
	      // sending keys to all known HTML5 input controls
	      // for various browsers (https://github.com/angular/protractor/issues/562).
	      function setInput(val) {
	        // set the value of the element and force validation.
	        var scr = "var ipt = document.getElementById('exampleInput'); " +
	        "ipt.value = '" + val + "';" +
	        "angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });";
	        browser.executeScript(scr);
	      }
	
	      it('should initialize to model', function() {
	        expect(value.getText()).toContain('2013-W01');
	        expect(valid.getText()).toContain('myForm.input.$valid = true');
	      });
	
	      it('should be invalid if empty', function() {
	        setInput('');
	        expect(value.getText()).toEqual('value =');
	        expect(valid.getText()).toContain('myForm.input.$valid = false');
	      });
	
	      it('should be invalid if over max', function() {
	        setInput('2015-W01');
	        expect(value.getText()).toContain('');
	        expect(valid.getText()).toContain('myForm.input.$valid = false');
	      });
	    </file>
	    </example>
	    */'week':createDateInputType('week',WEEK_REGEXP,weekParser,'yyyy-Www'),/**
	   * @ngdoc input
	   * @name input[month]
	   *
	   * @description
	   * Input with month validation and transformation. In browsers that do not yet support
	   * the HTML5 month input, a text element will be used. In that case, the text must be entered in a valid ISO-8601
	   * month format (yyyy-MM), for example: `2009-01`.
	   *
	   * The model must always be a Date object, otherwise AngularJS will throw an error.
	   * Invalid `Date` objects (dates whose `getTime()` is `NaN`) will be rendered as an empty string.
	   * If the model is not set to the first of the month, the next view to model update will set it
	   * to the first of the month.
	   *
	   * The timezone to be used to read/write the `Date` instance in the model can be defined using
	   * {@link ng.directive:ngModelOptions ngModelOptions}. By default, this is the timezone of the browser.
	   *
	   * @param {string} ngModel Assignable AngularJS expression to data-bind to.
	   * @param {string=} name Property name of the form under which the control is published.
	   * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.
	   *   This must be a valid ISO month format (yyyy-MM). You can also use interpolation inside this
	   *   attribute (e.g. `min="{{minMonth | date:'yyyy-MM'}}"`). Note that `min` will also add
	   *   native HTML5 constraint validation.
	   * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.
	   *   This must be a valid ISO month format (yyyy-MM). You can also use interpolation inside this
	   *   attribute (e.g. `max="{{maxMonth | date:'yyyy-MM'}}"`). Note that `max` will also add
	   *   native HTML5 constraint validation.
	   * @param {(date|string)=} ngMin Sets the `min` validation constraint to the Date / ISO week string
	   *   the `ngMin` expression evaluates to. Note that it does not set the `min` attribute.
	   * @param {(date|string)=} ngMax Sets the `max` validation constraint to the Date / ISO week string
	   *   the `ngMax` expression evaluates to. Note that it does not set the `max` attribute.
	
	   * @param {string=} required Sets `required` validation error key if the value is not entered.
	   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
	   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
	   *    `required` when you want to data-bind to the `required` attribute.
	   * @param {string=} ngChange AngularJS expression to be executed when input changes due to user
	   *    interaction with the input element.
	   *
	   * @example
	   <example name="month-input-directive" module="monthExample">
	   <file name="index.html">
	     <script>
	      angular.module('monthExample', [])
	        .controller('DateController', ['$scope', function($scope) {
	          $scope.example = {
	            value: new Date(2013, 9, 1)
	          };
	        }]);
	     </script>
	     <form name="myForm" ng-controller="DateController as dateCtrl">
	       <label for="exampleInput">Pick a month in 2013:</label>
	       <input id="exampleInput" type="month" name="input" ng-model="example.value"
	          placeholder="yyyy-MM" min="2013-01" max="2013-12" required />
	       <div role="alert">
	         <span class="error" ng-show="myForm.input.$error.required">
	            Required!</span>
	         <span class="error" ng-show="myForm.input.$error.month">
	            Not a valid month!</span>
	       </div>
	       <tt>value = {{example.value | date: "yyyy-MM"}}</tt><br/>
	       <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
	       <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
	       <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
	       <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
	     </form>
	   </file>
	   <file name="protractor.js" type="protractor">
	      var value = element(by.binding('example.value | date: "yyyy-MM"'));
	      var valid = element(by.binding('myForm.input.$valid'));
	
	      // currently protractor/webdriver does not support
	      // sending keys to all known HTML5 input controls
	      // for various browsers (https://github.com/angular/protractor/issues/562).
	      function setInput(val) {
	        // set the value of the element and force validation.
	        var scr = "var ipt = document.getElementById('exampleInput'); " +
	        "ipt.value = '" + val + "';" +
	        "angular.element(ipt).scope().$apply(function(s) { s.myForm[ipt.name].$setViewValue('" + val + "'); });";
	        browser.executeScript(scr);
	      }
	
	      it('should initialize to model', function() {
	        expect(value.getText()).toContain('2013-10');
	        expect(valid.getText()).toContain('myForm.input.$valid = true');
	      });
	
	      it('should be invalid if empty', function() {
	        setInput('');
	        expect(value.getText()).toEqual('value =');
	        expect(valid.getText()).toContain('myForm.input.$valid = false');
	      });
	
	      it('should be invalid if over max', function() {
	        setInput('2015-01');
	        expect(value.getText()).toContain('');
	        expect(valid.getText()).toContain('myForm.input.$valid = false');
	      });
	   </file>
	   </example>
	   */'month':createDateInputType('month',MONTH_REGEXP,createDateParser(MONTH_REGEXP,['yyyy','MM']),'yyyy-MM'),/**
	   * @ngdoc input
	   * @name input[number]
	   *
	   * @description
	   * Text input with number validation and transformation. Sets the `number` validation
	   * error if not a valid number.
	   *
	   * <div class="alert alert-warning">
	   * The model must always be of type `number` otherwise AngularJS will throw an error.
	   * Be aware that a string containing a number is not enough. See the {@link ngModel:numfmt}
	   * error docs for more information and an example of how to convert your model if necessary.
	   * </div>
	   *
	   *
	   *
	   * @knownIssue
	   *
	   * ### HTML5 constraint validation and `allowInvalid`
	   *
	   * In browsers that follow the
	   * [HTML5 specification](https://html.spec.whatwg.org/multipage/forms.html#number-state-%28type=number%29),
	   * `input[number]` does not work as expected with {@link ngModelOptions `ngModelOptions.allowInvalid`}.
	   * If a non-number is entered in the input, the browser will report the value as an empty string,
	   * which means the view / model values in `ngModel` and subsequently the scope value
	   * will also be an empty string.
	   *
	   * @knownIssue
	   *
	   * ### Large numbers and `step` validation
	   *
	   * The `step` validation will not work correctly for very large numbers (e.g. 9999999999) due to
	   * Javascript's arithmetic limitations. If you need to handle large numbers, purpose-built
	   * libraries (e.g. https://github.com/MikeMcl/big.js/), can be included into AngularJS by
	   * {@link guide/forms#modifying-built-in-validators overwriting the validators}
	   * for `number` and / or `step`, or by {@link guide/forms#custom-validation applying custom validators}
	   * to an `input[text]` element. The source for `input[number]` type can be used as a starting
	   * point for both implementations.
	   *
	   * @param {string} ngModel Assignable AngularJS expression to data-bind to.
	   * @param {string=} name Property name of the form under which the control is published.
	   * @param {string=} min Sets the `min` validation error key if the value entered is less than `min`.
	   *    Can be interpolated.
	   * @param {string=} max Sets the `max` validation error key if the value entered is greater than `max`.
	   *    Can be interpolated.
	   * @param {string=} ngMin Like `min`, sets the `min` validation error key if the value entered is less than `ngMin`,
	   *    but does not trigger HTML5 native validation. Takes an expression.
	   * @param {string=} ngMax Like `max`, sets the `max` validation error key if the value entered is greater than `ngMax`,
	   *    but does not trigger HTML5 native validation. Takes an expression.
	   * @param {string=} step Sets the `step` validation error key if the value entered does not fit the `step` constraint.
	   *    Can be interpolated.
	   * @param {string=} ngStep Like `step`, sets the `step` validation error key if the value entered does not fit the `ngStep` constraint,
	   *    but does not trigger HTML5 native validation. Takes an expression.
	   * @param {string=} required Sets `required` validation error key if the value is not entered.
	   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
	   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
	   *    `required` when you want to data-bind to the `required` attribute.
	   * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
	   *    minlength.
	   * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
	   *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of
	   *    any length.
	   * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
	   *    that contains the regular expression body that will be converted to a regular expression
	   *    as in the ngPattern directive.
	   * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
	   *    does not match a RegExp found by evaluating the AngularJS expression given in the attribute value.
	   *    If the expression evaluates to a RegExp object, then this is used directly.
	   *    If the expression evaluates to a string, then it will be converted to a RegExp
	   *    after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
	   *    `new RegExp('^abc$')`.<br />
	   *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
	   *    start at the index of the last search's match, thus not taking the whole input value into
	   *    account.
	   * @param {string=} ngChange AngularJS expression to be executed when input changes due to user
	   *    interaction with the input element.
	   *
	   * @example
	      <example name="number-input-directive" module="numberExample">
	        <file name="index.html">
	         <script>
	           angular.module('numberExample', [])
	             .controller('ExampleController', ['$scope', function($scope) {
	               $scope.example = {
	                 value: 12
	               };
	             }]);
	         </script>
	         <form name="myForm" ng-controller="ExampleController">
	           <label>Number:
	             <input type="number" name="input" ng-model="example.value"
	                    min="0" max="99" required>
	          </label>
	           <div role="alert">
	             <span class="error" ng-show="myForm.input.$error.required">
	               Required!</span>
	             <span class="error" ng-show="myForm.input.$error.number">
	               Not valid number!</span>
	           </div>
	           <tt>value = {{example.value}}</tt><br/>
	           <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
	           <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
	           <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
	           <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
	          </form>
	        </file>
	        <file name="protractor.js" type="protractor">
	          var value = element(by.binding('example.value'));
	          var valid = element(by.binding('myForm.input.$valid'));
	          var input = element(by.model('example.value'));
	
	          it('should initialize to model', function() {
	            expect(value.getText()).toContain('12');
	            expect(valid.getText()).toContain('true');
	          });
	
	          it('should be invalid if empty', function() {
	            input.clear();
	            input.sendKeys('');
	            expect(value.getText()).toEqual('value =');
	            expect(valid.getText()).toContain('false');
	          });
	
	          it('should be invalid if over max', function() {
	            input.clear();
	            input.sendKeys('123');
	            expect(value.getText()).toEqual('value =');
	            expect(valid.getText()).toContain('false');
	          });
	        </file>
	      </example>
	   */'number':numberInputType,/**
	   * @ngdoc input
	   * @name input[url]
	   *
	   * @description
	   * Text input with URL validation. Sets the `url` validation error key if the content is not a
	   * valid URL.
	   *
	   * <div class="alert alert-warning">
	   * **Note:** `input[url]` uses a regex to validate urls that is derived from the regex
	   * used in Chromium. If you need stricter validation, you can use `ng-pattern` or modify
	   * the built-in validators (see the {@link guide/forms Forms guide})
	   * </div>
	   *
	   * @param {string} ngModel Assignable AngularJS expression to data-bind to.
	   * @param {string=} name Property name of the form under which the control is published.
	   * @param {string=} required Sets `required` validation error key if the value is not entered.
	   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
	   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
	   *    `required` when you want to data-bind to the `required` attribute.
	   * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
	   *    minlength.
	   * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
	   *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of
	   *    any length.
	   * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
	   *    that contains the regular expression body that will be converted to a regular expression
	   *    as in the ngPattern directive.
	   * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
	   *    does not match a RegExp found by evaluating the AngularJS expression given in the attribute value.
	   *    If the expression evaluates to a RegExp object, then this is used directly.
	   *    If the expression evaluates to a string, then it will be converted to a RegExp
	   *    after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
	   *    `new RegExp('^abc$')`.<br />
	   *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
	   *    start at the index of the last search's match, thus not taking the whole input value into
	   *    account.
	   * @param {string=} ngChange AngularJS expression to be executed when input changes due to user
	   *    interaction with the input element.
	   *
	   * @example
	      <example name="url-input-directive" module="urlExample">
	        <file name="index.html">
	         <script>
	           angular.module('urlExample', [])
	             .controller('ExampleController', ['$scope', function($scope) {
	               $scope.url = {
	                 text: 'http://google.com'
	               };
	             }]);
	         </script>
	         <form name="myForm" ng-controller="ExampleController">
	           <label>URL:
	             <input type="url" name="input" ng-model="url.text" required>
	           <label>
	           <div role="alert">
	             <span class="error" ng-show="myForm.input.$error.required">
	               Required!</span>
	             <span class="error" ng-show="myForm.input.$error.url">
	               Not valid url!</span>
	           </div>
	           <tt>text = {{url.text}}</tt><br/>
	           <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
	           <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
	           <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
	           <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
	           <tt>myForm.$error.url = {{!!myForm.$error.url}}</tt><br/>
	          </form>
	        </file>
	        <file name="protractor.js" type="protractor">
	          var text = element(by.binding('url.text'));
	          var valid = element(by.binding('myForm.input.$valid'));
	          var input = element(by.model('url.text'));
	
	          it('should initialize to model', function() {
	            expect(text.getText()).toContain('http://google.com');
	            expect(valid.getText()).toContain('true');
	          });
	
	          it('should be invalid if empty', function() {
	            input.clear();
	            input.sendKeys('');
	
	            expect(text.getText()).toEqual('text =');
	            expect(valid.getText()).toContain('false');
	          });
	
	          it('should be invalid if not url', function() {
	            input.clear();
	            input.sendKeys('box');
	
	            expect(valid.getText()).toContain('false');
	          });
	        </file>
	      </example>
	   */'url':urlInputType,/**
	   * @ngdoc input
	   * @name input[email]
	   *
	   * @description
	   * Text input with email validation. Sets the `email` validation error key if not a valid email
	   * address.
	   *
	   * <div class="alert alert-warning">
	   * **Note:** `input[email]` uses a regex to validate email addresses that is derived from the regex
	   * used in Chromium, which may not fulfill your app's requirements.
	   * If you need stricter (e.g. requiring a top-level domain), or more relaxed validation
	   * (e.g. allowing IPv6 address literals) you can use `ng-pattern` or
	   * modify the built-in validators (see the {@link guide/forms Forms guide}).
	   * </div>
	   *
	   * @param {string} ngModel Assignable AngularJS expression to data-bind to.
	   * @param {string=} name Property name of the form under which the control is published.
	   * @param {string=} required Sets `required` validation error key if the value is not entered.
	   * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
	   *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
	   *    `required` when you want to data-bind to the `required` attribute.
	   * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
	   *    minlength.
	   * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
	   *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of
	   *    any length.
	   * @param {string=} pattern Similar to `ngPattern` except that the attribute value is the actual string
	   *    that contains the regular expression body that will be converted to a regular expression
	   *    as in the ngPattern directive.
	   * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
	   *    does not match a RegExp found by evaluating the AngularJS expression given in the attribute value.
	   *    If the expression evaluates to a RegExp object, then this is used directly.
	   *    If the expression evaluates to a string, then it will be converted to a RegExp
	   *    after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
	   *    `new RegExp('^abc$')`.<br />
	   *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
	   *    start at the index of the last search's match, thus not taking the whole input value into
	   *    account.
	   * @param {string=} ngChange AngularJS expression to be executed when input changes due to user
	   *    interaction with the input element.
	   *
	   * @example
	      <example name="email-input-directive" module="emailExample">
	        <file name="index.html">
	         <script>
	           angular.module('emailExample', [])
	             .controller('ExampleController', ['$scope', function($scope) {
	               $scope.email = {
	                 text: 'me@example.com'
	               };
	             }]);
	         </script>
	           <form name="myForm" ng-controller="ExampleController">
	             <label>Email:
	               <input type="email" name="input" ng-model="email.text" required>
	             </label>
	             <div role="alert">
	               <span class="error" ng-show="myForm.input.$error.required">
	                 Required!</span>
	               <span class="error" ng-show="myForm.input.$error.email">
	                 Not valid email!</span>
	             </div>
	             <tt>text = {{email.text}}</tt><br/>
	             <tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>
	             <tt>myForm.input.$error = {{myForm.input.$error}}</tt><br/>
	             <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
	             <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
	             <tt>myForm.$error.email = {{!!myForm.$error.email}}</tt><br/>
	           </form>
	         </file>
	        <file name="protractor.js" type="protractor">
	          var text = element(by.binding('email.text'));
	          var valid = element(by.binding('myForm.input.$valid'));
	          var input = element(by.model('email.text'));
	
	          it('should initialize to model', function() {
	            expect(text.getText()).toContain('me@example.com');
	            expect(valid.getText()).toContain('true');
	          });
	
	          it('should be invalid if empty', function() {
	            input.clear();
	            input.sendKeys('');
	            expect(text.getText()).toEqual('text =');
	            expect(valid.getText()).toContain('false');
	          });
	
	          it('should be invalid if not email', function() {
	            input.clear();
	            input.sendKeys('xxx');
	
	            expect(valid.getText()).toContain('false');
	          });
	        </file>
	      </example>
	   */'email':emailInputType,/**
	   * @ngdoc input
	   * @name input[radio]
	   *
	   * @description
	   * HTML radio button.
	   *
	   * **Note:**<br>
	   * All inputs controlled by {@link ngModel ngModel} (including those of type `radio`) will use the
	   * value of their `name` attribute to determine the property under which their
	   * {@link ngModel.NgModelController NgModelController} will be published on the parent
	   * {@link form.FormController FormController}. Thus, if you use the same `name` for multiple
	   * inputs of a form (e.g. a group of radio inputs), only _one_ `NgModelController` will be
	   * published on the parent `FormController` under that name. The rest of the controllers will
	   * continue to work as expected, but you won't be able to access them as properties on the parent
	   * `FormController`.
	   *
	   * <div class="alert alert-info">
	   *   <p>
	   *     In plain HTML forms, the `name` attribute is used to identify groups of radio inputs, so
	   *     that the browser can manage their state (checked/unchecked) based on the state of other
	   *     inputs in the same group.
	   *   </p>
	   *   <p>
	   *     In AngularJS forms, this is not necessary. The input's state will be updated based on the
	   *     value of the underlying model data.
	   *   </p>
	   * </div>
	   *
	   * <div class="alert alert-success">
	   *   If you omit the `name` attribute on a radio input, `ngModel` will automatically assign it a
	   *   unique name.
	   * </div>
	   *
	   * @param {string} ngModel Assignable AngularJS expression to data-bind to.
	   * @param {string} value The value to which the `ngModel` expression should be set when selected.
	   *    Note that `value` only supports `string` values, i.e. the scope model needs to be a string,
	   *    too. Use `ngValue` if you need complex models (`number`, `object`, ...).
	   * @param {string=} name Property name of the form under which the control is published.
	   * @param {string=} ngChange AngularJS expression to be executed when input changes due to user
	   *    interaction with the input element.
	   * @param {string} ngValue AngularJS expression to which `ngModel` will be be set when the radio
	   *    is selected. Should be used instead of the `value` attribute if you need
	   *    a non-string `ngModel` (`boolean`, `array`, ...).
	   *
	   * @example
	      <example name="radio-input-directive" module="radioExample">
	        <file name="index.html">
	         <script>
	           angular.module('radioExample', [])
	             .controller('ExampleController', ['$scope', function($scope) {
	               $scope.color = {
	                 name: 'blue'
	               };
	               $scope.specialValue = {
	                 "id": "12345",
	                 "value": "green"
	               };
	             }]);
	         </script>
	         <form name="myForm" ng-controller="ExampleController">
	           <label>
	             <input type="radio" ng-model="color.name" value="red">
	             Red
	           </label><br/>
	           <label>
	             <input type="radio" ng-model="color.name" ng-value="specialValue">
	             Green
	           </label><br/>
	           <label>
	             <input type="radio" ng-model="color.name" value="blue">
	             Blue
	           </label><br/>
	           <tt>color = {{color.name | json}}</tt><br/>
	          </form>
	          Note that `ng-value="specialValue"` sets radio item's value to be the value of `$scope.specialValue`.
	        </file>
	        <file name="protractor.js" type="protractor">
	          it('should change state', function() {
	            var inputs = element.all(by.model('color.name'));
	            var color = element(by.binding('color.name'));
	
	            expect(color.getText()).toContain('blue');
	
	            inputs.get(0).click();
	            expect(color.getText()).toContain('red');
	
	            inputs.get(1).click();
	            expect(color.getText()).toContain('green');
	          });
	        </file>
	      </example>
	   */'radio':radioInputType,/**
	   * @ngdoc input
	   * @name input[range]
	   *
	   * @description
	   * Native range input with validation and transformation.
	   *
	   * The model for the range input must always be a `Number`.
	   *
	   * IE9 and other browsers that do not support the `range` type fall back
	   * to a text input without any default values for `min`, `max` and `step`. Model binding,
	   * validation and number parsing are nevertheless supported.
	   *
	   * Browsers that support range (latest Chrome, Safari, Firefox, Edge) treat `input[range]`
	   * in a way that never allows the input to hold an invalid value. That means:
	   * - any non-numerical value is set to `(max + min) / 2`.
	   * - any numerical value that is less than the current min val, or greater than the current max val
	   * is set to the min / max val respectively.
	   * - additionally, the current `step` is respected, so the nearest value that satisfies a step
	   * is used.
	   *
	   * See the [HTML Spec on input[type=range]](https://www.w3.org/TR/html5/forms.html#range-state-(type=range))
	   * for more info.
	   *
	   * This has the following consequences for AngularJS:
	   *
	   * Since the element value should always reflect the current model value, a range input
	   * will set the bound ngModel expression to the value that the browser has set for the
	   * input element. For example, in the following input `<input type="range" ng-model="model.value">`,
	   * if the application sets `model.value = null`, the browser will set the input to `'50'`.
	   * AngularJS will then set the model to `50`, to prevent input and model value being out of sync.
	   *
	   * That means the model for range will immediately be set to `50` after `ngModel` has been
	   * initialized. It also means a range input can never have the required error.
	   *
	   * This does not only affect changes to the model value, but also to the values of the `min`,
	   * `max`, and `step` attributes. When these change in a way that will cause the browser to modify
	   * the input value, AngularJS will also update the model value.
	   *
	   * Automatic value adjustment also means that a range input element can never have the `required`,
	   * `min`, or `max` errors.
	   *
	   * However, `step` is currently only fully implemented by Firefox. Other browsers have problems
	   * when the step value changes dynamically - they do not adjust the element value correctly, but
	   * instead may set the `stepMismatch` error. If that's the case, the AngularJS will set the `step`
	   * error on the input, and set the model to `undefined`.
	   *
	   * Note that `input[range]` is not compatible with`ngMax`, `ngMin`, and `ngStep`, because they do
	   * not set the `min` and `max` attributes, which means that the browser won't automatically adjust
	   * the input value based on their values, and will always assume min = 0, max = 100, and step = 1.
	   *
	   * @param {string}  ngModel Assignable AngularJS expression to data-bind to.
	   * @param {string=} name Property name of the form under which the control is published.
	   * @param {string=} min Sets the `min` validation to ensure that the value entered is greater
	   *                  than `min`. Can be interpolated.
	   * @param {string=} max Sets the `max` validation to ensure that the value entered is less than `max`.
	   *                  Can be interpolated.
	   * @param {string=} step Sets the `step` validation to ensure that the value entered matches the `step`
	   *                  Can be interpolated.
	   * @param {expression=} ngChange AngularJS expression to be executed when the ngModel value changes due
	   *                      to user interaction with the input element.
	   * @param {expression=} ngChecked If the expression is truthy, then the `checked` attribute will be set on the
	   *                      element. **Note** : `ngChecked` should not be used alongside `ngModel`.
	   *                      Checkout {@link ng.directive:ngChecked ngChecked} for usage.
	   *
	   * @example
	      <example name="range-input-directive" module="rangeExample">
	        <file name="index.html">
	          <script>
	            angular.module('rangeExample', [])
	              .controller('ExampleController', ['$scope', function($scope) {
	                $scope.value = 75;
	                $scope.min = 10;
	                $scope.max = 90;
	              }]);
	          </script>
	          <form name="myForm" ng-controller="ExampleController">
	
	            Model as range: <input type="range" name="range" ng-model="value" min="{{min}}"  max="{{max}}">
	            <hr>
	            Model as number: <input type="number" ng-model="value"><br>
	            Min: <input type="number" ng-model="min"><br>
	            Max: <input type="number" ng-model="max"><br>
	            value = <code>{{value}}</code><br/>
	            myForm.range.$valid = <code>{{myForm.range.$valid}}</code><br/>
	            myForm.range.$error = <code>{{myForm.range.$error}}</code>
	          </form>
	        </file>
	      </example>
	
	   * ## Range Input with ngMin & ngMax attributes
	
	   * @example
	      <example name="range-input-directive-ng" module="rangeExample">
	        <file name="index.html">
	          <script>
	            angular.module('rangeExample', [])
	              .controller('ExampleController', ['$scope', function($scope) {
	                $scope.value = 75;
	                $scope.min = 10;
	                $scope.max = 90;
	              }]);
	          </script>
	          <form name="myForm" ng-controller="ExampleController">
	            Model as range: <input type="range" name="range" ng-model="value" ng-min="min" ng-max="max">
	            <hr>
	            Model as number: <input type="number" ng-model="value"><br>
	            Min: <input type="number" ng-model="min"><br>
	            Max: <input type="number" ng-model="max"><br>
	            value = <code>{{value}}</code><br/>
	            myForm.range.$valid = <code>{{myForm.range.$valid}}</code><br/>
	            myForm.range.$error = <code>{{myForm.range.$error}}</code>
	          </form>
	        </file>
	      </example>
	
	   */'range':rangeInputType,/**
	   * @ngdoc input
	   * @name input[checkbox]
	   *
	   * @description
	   * HTML checkbox.
	   *
	   * @param {string} ngModel Assignable AngularJS expression to data-bind to.
	   * @param {string=} name Property name of the form under which the control is published.
	   * @param {expression=} ngTrueValue The value to which the expression should be set when selected.
	   * @param {expression=} ngFalseValue The value to which the expression should be set when not selected.
	   * @param {string=} ngChange AngularJS expression to be executed when input changes due to user
	   *    interaction with the input element.
	   *
	   * @example
	      <example name="checkbox-input-directive" module="checkboxExample">
	        <file name="index.html">
	         <script>
	           angular.module('checkboxExample', [])
	             .controller('ExampleController', ['$scope', function($scope) {
	               $scope.checkboxModel = {
	                value1 : true,
	                value2 : 'YES'
	              };
	             }]);
	         </script>
	         <form name="myForm" ng-controller="ExampleController">
	           <label>Value1:
	             <input type="checkbox" ng-model="checkboxModel.value1">
	           </label><br/>
	           <label>Value2:
	             <input type="checkbox" ng-model="checkboxModel.value2"
	                    ng-true-value="'YES'" ng-false-value="'NO'">
	            </label><br/>
	           <tt>value1 = {{checkboxModel.value1}}</tt><br/>
	           <tt>value2 = {{checkboxModel.value2}}</tt><br/>
	          </form>
	        </file>
	        <file name="protractor.js" type="protractor">
	          it('should change state', function() {
	            var value1 = element(by.binding('checkboxModel.value1'));
	            var value2 = element(by.binding('checkboxModel.value2'));
	
	            expect(value1.getText()).toContain('true');
	            expect(value2.getText()).toContain('YES');
	
	            element(by.model('checkboxModel.value1')).click();
	            element(by.model('checkboxModel.value2')).click();
	
	            expect(value1.getText()).toContain('false');
	            expect(value2.getText()).toContain('NO');
	          });
	        </file>
	      </example>
	   */'checkbox':checkboxInputType,'hidden':noop,'button':noop,'submit':noop,'reset':noop,'file':noop};function stringBasedInputType(ctrl){ctrl.$formatters.push(function(value){return ctrl.$isEmpty(value)?value:value.toString();});}function textInputType(scope,element,attr,ctrl,$sniffer,$browser){baseInputType(scope,element,attr,ctrl,$sniffer,$browser);stringBasedInputType(ctrl);}function baseInputType(scope,element,attr,ctrl,$sniffer,$browser){var type=lowercase(element[0].type);// In composition mode, users are still inputting intermediate text buffer,
	// hold the listener until composition is done.
	// More about composition events: https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent
	if(!$sniffer.android){var composing=false;element.on('compositionstart',function(){composing=true;});// Support: IE9+
	element.on('compositionupdate',function(ev){// End composition when ev.data is empty string on 'compositionupdate' event.
	// When the input de-focusses (e.g. by clicking away), IE triggers 'compositionupdate'
	// instead of 'compositionend'.
	if(isUndefined(ev.data)||ev.data===''){composing=false;}});element.on('compositionend',function(){composing=false;listener();});}var timeout;var listener=function listener(ev){if(timeout){$browser.defer.cancel(timeout);timeout=null;}if(composing)return;var value=element.val(),event=ev&&ev.type;// By default we will trim the value
	// If the attribute ng-trim exists we will avoid trimming
	// If input type is 'password', the value is never trimmed
	if(type!=='password'&&(!attr.ngTrim||attr.ngTrim!=='false')){value=trim(value);}// If a control is suffering from bad input (due to native validators), browsers discard its
	// value, so it may be necessary to revalidate (by calling $setViewValue again) even if the
	// control's value is the same empty value twice in a row.
	if(ctrl.$viewValue!==value||value===''&&ctrl.$$hasNativeValidators){ctrl.$setViewValue(value,event);}};// if the browser does support "input" event, we are fine - except on IE9 which doesn't fire the
	// input event on backspace, delete or cut
	if($sniffer.hasEvent('input')){element.on('input',listener);}else{var deferListener=function deferListener(ev,input,origValue){if(!timeout){timeout=$browser.defer(function(){timeout=null;if(!input||input.value!==origValue){listener(ev);}});}};element.on('keydown',/** @this */function(event){var key=event.keyCode;// ignore
	//    command            modifiers                   arrows
	if(key===91||15<key&&key<19||37<=key&&key<=40)return;deferListener(event,this,this.value);});// if user modifies input value using context menu in IE, we need "paste", "cut" and "drop" events to catch it
	if($sniffer.hasEvent('paste')){element.on('paste cut drop',deferListener);}}// if user paste into input using mouse on older browser
	// or form autocomplete on newer browser, we need "change" event to catch it
	element.on('change',listener);// Some native input types (date-family) have the ability to change validity without
	// firing any input/change events.
	// For these event types, when native validators are present and the browser supports the type,
	// check for validity changes on various DOM events.
	if(PARTIAL_VALIDATION_TYPES[type]&&ctrl.$$hasNativeValidators&&type===attr.type){element.on(PARTIAL_VALIDATION_EVENTS,/** @this */function(ev){if(!timeout){var validity=this[VALIDITY_STATE_PROPERTY];var origBadInput=validity.badInput;var origTypeMismatch=validity.typeMismatch;timeout=$browser.defer(function(){timeout=null;if(validity.badInput!==origBadInput||validity.typeMismatch!==origTypeMismatch){listener(ev);}});}});}ctrl.$render=function(){// Workaround for Firefox validation #12102.
	var value=ctrl.$isEmpty(ctrl.$viewValue)?'':ctrl.$viewValue;if(element.val()!==value){element.val(value);}};}function weekParser(isoWeek,existingDate){if(isDate(isoWeek)){return isoWeek;}if(isString(isoWeek)){WEEK_REGEXP.lastIndex=0;var parts=WEEK_REGEXP.exec(isoWeek);if(parts){var year=+parts[1],week=+parts[2],hours=0,minutes=0,seconds=0,milliseconds=0,firstThurs=getFirstThursdayOfYear(year),addDays=(week-1)*7;if(existingDate){hours=existingDate.getHours();minutes=existingDate.getMinutes();seconds=existingDate.getSeconds();milliseconds=existingDate.getMilliseconds();}return new Date(year,0,firstThurs.getDate()+addDays,hours,minutes,seconds,milliseconds);}}return NaN;}function createDateParser(regexp,mapping){return function(iso,previousDate){var parts,map;if(isDate(iso)){return iso;}if(isString(iso)){// When a date is JSON'ified to wraps itself inside of an extra
	// set of double quotes. This makes the date parsing code unable
	// to match the date string and parse it as a date.
	if(iso.charAt(0)==='"'&&iso.charAt(iso.length-1)==='"'){iso=iso.substring(1,iso.length-1);}if(ISO_DATE_REGEXP.test(iso)){return new Date(iso);}regexp.lastIndex=0;parts=regexp.exec(iso);if(parts){parts.shift();if(previousDate){map={yyyy:previousDate.getFullYear(),MM:previousDate.getMonth()+1,dd:previousDate.getDate(),HH:previousDate.getHours(),mm:previousDate.getMinutes(),ss:previousDate.getSeconds(),sss:previousDate.getMilliseconds()/1000};}else{map={yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0};}forEach(parts,function(part,index){if(index<mapping.length){map[mapping[index]]=+part;}});var date=new Date(map.yyyy,map.MM-1,map.dd,map.HH,map.mm,map.ss||0,map.sss*1000||0);if(map.yyyy<100){// In the constructor, 2-digit years map to 1900-1999.
	// Use `setFullYear()` to set the correct year.
	date.setFullYear(map.yyyy);}return date;}}return NaN;};}function createDateInputType(type,regexp,parseDate,format){return function dynamicDateInputType(scope,element,attr,ctrl,$sniffer,$browser,$filter,$parse){badInputChecker(scope,element,attr,ctrl,type);baseInputType(scope,element,attr,ctrl,$sniffer,$browser);var isTimeType=type==='time'||type==='datetimelocal';var previousDate;var previousTimezone;ctrl.$parsers.push(function(value){if(ctrl.$isEmpty(value))return null;if(regexp.test(value)){// Note: We cannot read ctrl.$modelValue, as there might be a different
	// parser/formatter in the processing chain so that the model
	// contains some different data format!
	return parseDateAndConvertTimeZoneToLocal(value,previousDate);}ctrl.$$parserName=type;return undefined;});ctrl.$formatters.push(function(value){if(value&&!isDate(value)){throw ngModelMinErr('datefmt','Expected `{0}` to be a date',value);}if(isValidDate(value)){previousDate=value;var timezone=ctrl.$options.getOption('timezone');if(timezone){previousTimezone=timezone;previousDate=convertTimezoneToLocal(previousDate,timezone,true);}return formatter(value,timezone);}else{previousDate=null;previousTimezone=null;return'';}});if(isDefined(attr.min)||attr.ngMin){var minVal=attr.min||$parse(attr.ngMin)(scope);var parsedMinVal=parseObservedDateValue(minVal);ctrl.$validators.min=function(value){return!isValidDate(value)||isUndefined(parsedMinVal)||parseDate(value)>=parsedMinVal;};attr.$observe('min',function(val){if(val!==minVal){parsedMinVal=parseObservedDateValue(val);minVal=val;ctrl.$validate();}});}if(isDefined(attr.max)||attr.ngMax){var maxVal=attr.max||$parse(attr.ngMax)(scope);var parsedMaxVal=parseObservedDateValue(maxVal);ctrl.$validators.max=function(value){return!isValidDate(value)||isUndefined(parsedMaxVal)||parseDate(value)<=parsedMaxVal;};attr.$observe('max',function(val){if(val!==maxVal){parsedMaxVal=parseObservedDateValue(val);maxVal=val;ctrl.$validate();}});}function isValidDate(value){// Invalid Date: getTime() returns NaN
	return value&&!(value.getTime&&value.getTime()!==value.getTime());}function parseObservedDateValue(val){return isDefined(val)&&!isDate(val)?parseDateAndConvertTimeZoneToLocal(val)||undefined:val;}function parseDateAndConvertTimeZoneToLocal(value,previousDate){var timezone=ctrl.$options.getOption('timezone');if(previousTimezone&&previousTimezone!==timezone){// If the timezone has changed, adjust the previousDate to the default timezone
	// so that the new date is converted with the correct timezone offset
	previousDate=addDateMinutes(previousDate,timezoneToOffset(previousTimezone));}var parsedDate=parseDate(value,previousDate);if(!isNaN(parsedDate)&&timezone){parsedDate=convertTimezoneToLocal(parsedDate,timezone);}return parsedDate;}function formatter(value,timezone){var targetFormat=format;if(isTimeType&&isString(ctrl.$options.getOption('timeSecondsFormat'))){targetFormat=format.replace('ss.sss',ctrl.$options.getOption('timeSecondsFormat')).replace(/:$/,'');}var formatted=$filter('date')(value,targetFormat,timezone);if(isTimeType&&ctrl.$options.getOption('timeStripZeroSeconds')){formatted=formatted.replace(/(?::00)?(?:\.000)?$/,'');}return formatted;}};}function badInputChecker(scope,element,attr,ctrl,parserName){var node=element[0];var nativeValidation=ctrl.$$hasNativeValidators=isObject(node.validity);if(nativeValidation){ctrl.$parsers.push(function(value){var validity=element.prop(VALIDITY_STATE_PROPERTY)||{};if(validity.badInput||validity.typeMismatch){ctrl.$$parserName=parserName;return undefined;}return value;});}}function numberFormatterParser(ctrl){ctrl.$parsers.push(function(value){if(ctrl.$isEmpty(value))return null;if(NUMBER_REGEXP.test(value))return parseFloat(value);ctrl.$$parserName='number';return undefined;});ctrl.$formatters.push(function(value){if(!ctrl.$isEmpty(value)){if(!isNumber(value)){throw ngModelMinErr('numfmt','Expected `{0}` to be a number',value);}value=value.toString();}return value;});}function parseNumberAttrVal(val){if(isDefined(val)&&!isNumber(val)){val=parseFloat(val);}return!isNumberNaN(val)?val:undefined;}function isNumberInteger(num){// See http://stackoverflow.com/questions/14636536/how-to-check-if-a-variable-is-an-integer-in-javascript#14794066
	// (minus the assumption that `num` is a number)
	// eslint-disable-next-line no-bitwise
	return(num|0)===num;}function countDecimals(num){var numString=num.toString();var decimalSymbolIndex=numString.indexOf('.');if(decimalSymbolIndex===-1){if(-1<num&&num<1){// It may be in the exponential notation format (`1e-X`)
	var match=/e-(\d+)$/.exec(numString);if(match){return Number(match[1]);}}return 0;}return numString.length-decimalSymbolIndex-1;}function isValidForStep(viewValue,stepBase,step){// At this point `stepBase` and `step` are expected to be non-NaN values
	// and `viewValue` is expected to be a valid stringified number.
	var value=Number(viewValue);var isNonIntegerValue=!isNumberInteger(value);var isNonIntegerStepBase=!isNumberInteger(stepBase);var isNonIntegerStep=!isNumberInteger(step);// Due to limitations in Floating Point Arithmetic (e.g. `0.3 - 0.2 !== 0.1` or
	// `0.5 % 0.1 !== 0`), we need to convert all numbers to integers.
	if(isNonIntegerValue||isNonIntegerStepBase||isNonIntegerStep){var valueDecimals=isNonIntegerValue?countDecimals(value):0;var stepBaseDecimals=isNonIntegerStepBase?countDecimals(stepBase):0;var stepDecimals=isNonIntegerStep?countDecimals(step):0;var decimalCount=Math.max(valueDecimals,stepBaseDecimals,stepDecimals);var multiplier=Math.pow(10,decimalCount);value=value*multiplier;stepBase=stepBase*multiplier;step=step*multiplier;if(isNonIntegerValue)value=Math.round(value);if(isNonIntegerStepBase)stepBase=Math.round(stepBase);if(isNonIntegerStep)step=Math.round(step);}return(value-stepBase)%step===0;}function numberInputType(scope,element,attr,ctrl,$sniffer,$browser,$filter,$parse){badInputChecker(scope,element,attr,ctrl,'number');numberFormatterParser(ctrl);baseInputType(scope,element,attr,ctrl,$sniffer,$browser);var parsedMinVal;if(isDefined(attr.min)||attr.ngMin){var minVal=attr.min||$parse(attr.ngMin)(scope);parsedMinVal=parseNumberAttrVal(minVal);ctrl.$validators.min=function(modelValue,viewValue){return ctrl.$isEmpty(viewValue)||isUndefined(parsedMinVal)||viewValue>=parsedMinVal;};attr.$observe('min',function(val){if(val!==minVal){parsedMinVal=parseNumberAttrVal(val);minVal=val;// TODO(matsko): implement validateLater to reduce number of validations
	ctrl.$validate();}});}if(isDefined(attr.max)||attr.ngMax){var maxVal=attr.max||$parse(attr.ngMax)(scope);var parsedMaxVal=parseNumberAttrVal(maxVal);ctrl.$validators.max=function(modelValue,viewValue){return ctrl.$isEmpty(viewValue)||isUndefined(parsedMaxVal)||viewValue<=parsedMaxVal;};attr.$observe('max',function(val){if(val!==maxVal){parsedMaxVal=parseNumberAttrVal(val);maxVal=val;// TODO(matsko): implement validateLater to reduce number of validations
	ctrl.$validate();}});}if(isDefined(attr.step)||attr.ngStep){var stepVal=attr.step||$parse(attr.ngStep)(scope);var parsedStepVal=parseNumberAttrVal(stepVal);ctrl.$validators.step=function(modelValue,viewValue){return ctrl.$isEmpty(viewValue)||isUndefined(parsedStepVal)||isValidForStep(viewValue,parsedMinVal||0,parsedStepVal);};attr.$observe('step',function(val){// TODO(matsko): implement validateLater to reduce number of validations
	if(val!==stepVal){parsedStepVal=parseNumberAttrVal(val);stepVal=val;ctrl.$validate();}});}}function rangeInputType(scope,element,attr,ctrl,$sniffer,$browser){badInputChecker(scope,element,attr,ctrl,'range');numberFormatterParser(ctrl);baseInputType(scope,element,attr,ctrl,$sniffer,$browser);var supportsRange=ctrl.$$hasNativeValidators&&element[0].type==='range',minVal=supportsRange?0:undefined,maxVal=supportsRange?100:undefined,stepVal=supportsRange?1:undefined,validity=element[0].validity,hasMinAttr=isDefined(attr.min),hasMaxAttr=isDefined(attr.max),hasStepAttr=isDefined(attr.step);var originalRender=ctrl.$render;ctrl.$render=supportsRange&&isDefined(validity.rangeUnderflow)&&isDefined(validity.rangeOverflow)?//Browsers that implement range will set these values automatically, but reading the adjusted values after
	//$render would cause the min / max validators to be applied with the wrong value
	function rangeRender(){originalRender();ctrl.$setViewValue(element.val());}:originalRender;if(hasMinAttr){minVal=parseNumberAttrVal(attr.min);ctrl.$validators.min=supportsRange?// Since all browsers set the input to a valid value, we don't need to check validity
	function noopMinValidator(){return true;}:// non-support browsers validate the min val
	function minValidator(modelValue,viewValue){return ctrl.$isEmpty(viewValue)||isUndefined(minVal)||viewValue>=minVal;};setInitialValueAndObserver('min',minChange);}if(hasMaxAttr){maxVal=parseNumberAttrVal(attr.max);ctrl.$validators.max=supportsRange?// Since all browsers set the input to a valid value, we don't need to check validity
	function noopMaxValidator(){return true;}:// non-support browsers validate the max val
	function maxValidator(modelValue,viewValue){return ctrl.$isEmpty(viewValue)||isUndefined(maxVal)||viewValue<=maxVal;};setInitialValueAndObserver('max',maxChange);}if(hasStepAttr){stepVal=parseNumberAttrVal(attr.step);ctrl.$validators.step=supportsRange?function nativeStepValidator(){// Currently, only FF implements the spec on step change correctly (i.e. adjusting the
	// input element value to a valid value). It's possible that other browsers set the stepMismatch
	// validity error instead, so we can at least report an error in that case.
	return!validity.stepMismatch;}:// ngStep doesn't set the setp attr, so the browser doesn't adjust the input value as setting step would
	function stepValidator(modelValue,viewValue){return ctrl.$isEmpty(viewValue)||isUndefined(stepVal)||isValidForStep(viewValue,minVal||0,stepVal);};setInitialValueAndObserver('step',stepChange);}function setInitialValueAndObserver(htmlAttrName,changeFn){// interpolated attributes set the attribute value only after a digest, but we need the
	// attribute value when the input is first rendered, so that the browser can adjust the
	// input value based on the min/max value
	element.attr(htmlAttrName,attr[htmlAttrName]);var oldVal=attr[htmlAttrName];attr.$observe(htmlAttrName,function wrappedObserver(val){if(val!==oldVal){oldVal=val;changeFn(val);}});}function minChange(val){minVal=parseNumberAttrVal(val);// ignore changes before model is initialized
	if(isNumberNaN(ctrl.$modelValue)){return;}if(supportsRange){var elVal=element.val();// IE11 doesn't set the el val correctly if the minVal is greater than the element value
	if(minVal>elVal){elVal=minVal;element.val(elVal);}ctrl.$setViewValue(elVal);}else{// TODO(matsko): implement validateLater to reduce number of validations
	ctrl.$validate();}}function maxChange(val){maxVal=parseNumberAttrVal(val);// ignore changes before model is initialized
	if(isNumberNaN(ctrl.$modelValue)){return;}if(supportsRange){var elVal=element.val();// IE11 doesn't set the el val correctly if the maxVal is less than the element value
	if(maxVal<elVal){element.val(maxVal);// IE11 and Chrome don't set the value to the minVal when max < min
	elVal=maxVal<minVal?minVal:maxVal;}ctrl.$setViewValue(elVal);}else{// TODO(matsko): implement validateLater to reduce number of validations
	ctrl.$validate();}}function stepChange(val){stepVal=parseNumberAttrVal(val);// ignore changes before model is initialized
	if(isNumberNaN(ctrl.$modelValue)){return;}// Some browsers don't adjust the input value correctly, but set the stepMismatch error
	if(!supportsRange){// TODO(matsko): implement validateLater to reduce number of validations
	ctrl.$validate();}else if(ctrl.$viewValue!==element.val()){ctrl.$setViewValue(element.val());}}}function urlInputType(scope,element,attr,ctrl,$sniffer,$browser){// Note: no badInputChecker here by purpose as `url` is only a validation
	// in browsers, i.e. we can always read out input.value even if it is not valid!
	baseInputType(scope,element,attr,ctrl,$sniffer,$browser);stringBasedInputType(ctrl);ctrl.$validators.url=function(modelValue,viewValue){var value=modelValue||viewValue;return ctrl.$isEmpty(value)||URL_REGEXP.test(value);};}function emailInputType(scope,element,attr,ctrl,$sniffer,$browser){// Note: no badInputChecker here by purpose as `url` is only a validation
	// in browsers, i.e. we can always read out input.value even if it is not valid!
	baseInputType(scope,element,attr,ctrl,$sniffer,$browser);stringBasedInputType(ctrl);ctrl.$validators.email=function(modelValue,viewValue){var value=modelValue||viewValue;return ctrl.$isEmpty(value)||EMAIL_REGEXP.test(value);};}function radioInputType(scope,element,attr,ctrl){var doTrim=!attr.ngTrim||trim(attr.ngTrim)!=='false';// make the name unique, if not defined
	if(isUndefined(attr.name)){element.attr('name',nextUid());}var listener=function listener(ev){var value;if(element[0].checked){value=attr.value;if(doTrim){value=trim(value);}ctrl.$setViewValue(value,ev&&ev.type);}};element.on('change',listener);ctrl.$render=function(){var value=attr.value;if(doTrim){value=trim(value);}element[0].checked=value===ctrl.$viewValue;};attr.$observe('value',ctrl.$render);}function parseConstantExpr($parse,context,name,expression,fallback){var parseFn;if(isDefined(expression)){parseFn=$parse(expression);if(!parseFn.constant){throw ngModelMinErr('constexpr','Expected constant expression for `{0}`, but saw '+'`{1}`.',name,expression);}return parseFn(context);}return fallback;}function checkboxInputType(scope,element,attr,ctrl,$sniffer,$browser,$filter,$parse){var trueValue=parseConstantExpr($parse,scope,'ngTrueValue',attr.ngTrueValue,true);var falseValue=parseConstantExpr($parse,scope,'ngFalseValue',attr.ngFalseValue,false);var listener=function listener(ev){ctrl.$setViewValue(element[0].checked,ev&&ev.type);};element.on('change',listener);ctrl.$render=function(){element[0].checked=ctrl.$viewValue;};// Override the standard `$isEmpty` because the $viewValue of an empty checkbox is always set to `false`
	// This is because of the parser below, which compares the `$modelValue` with `trueValue` to convert
	// it to a boolean.
	ctrl.$isEmpty=function(value){return value===false;};ctrl.$formatters.push(function(value){return equals(value,trueValue);});ctrl.$parsers.push(function(value){return value?trueValue:falseValue;});}/**
	 * @ngdoc directive
	 * @name textarea
	 * @restrict E
	 *
	 * @description
	 * HTML textarea element control with AngularJS data-binding. The data-binding and validation
	 * properties of this element are exactly the same as those of the
	 * {@link ng.directive:input input element}.
	 *
	 * @param {string} ngModel Assignable AngularJS expression to data-bind to.
	 * @param {string=} name Property name of the form under which the control is published.
	 * @param {string=} required Sets `required` validation error key if the value is not entered.
	 * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
	 *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
	 *    `required` when you want to data-bind to the `required` attribute.
	 * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
	 *    minlength.
	 * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
	 *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any
	 *    length.
	 * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
	 *    does not match a RegExp found by evaluating the AngularJS expression given in the attribute value.
	 *    If the expression evaluates to a RegExp object, then this is used directly.
	 *    If the expression evaluates to a string, then it will be converted to a RegExp
	 *    after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
	 *    `new RegExp('^abc$')`.<br />
	 *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
	 *    start at the index of the last search's match, thus not taking the whole input value into
	 *    account.
	 * @param {string=} ngChange AngularJS expression to be executed when input changes due to user
	 *    interaction with the input element.
	 * @param {boolean=} [ngTrim=true] If set to false AngularJS will not automatically trim the input.
	 *
	 * @knownIssue
	 *
	 * When specifying the `placeholder` attribute of `<textarea>`, Internet Explorer will temporarily
	 * insert the placeholder value as the textarea's content. If the placeholder value contains
	 * interpolation (`{{ ... }}`), an error will be logged in the console when AngularJS tries to update
	 * the value of the by-then-removed text node. This doesn't affect the functionality of the
	 * textarea, but can be undesirable.
	 *
	 * You can work around this Internet Explorer issue by using `ng-attr-placeholder` instead of
	 * `placeholder` on textareas, whenever you need interpolation in the placeholder value. You can
	 * find more details on `ngAttr` in the
	 * [Interpolation](guide/interpolation#-ngattr-for-binding-to-arbitrary-attributes) section of the
	 * Developer Guide.
	 *//**
	 * @ngdoc directive
	 * @name input
	 * @restrict E
	 *
	 * @description
	 * HTML input element control. When used together with {@link ngModel `ngModel`}, it provides data-binding,
	 * input state control, and validation.
	 * Input control follows HTML5 input types and polyfills the HTML5 validation behavior for older browsers.
	 *
	 * <div class="alert alert-warning">
	 * **Note:** Not every feature offered is available for all input types.
	 * Specifically, data binding and event handling via `ng-model` is unsupported for `input[file]`.
	 * </div>
	 *
	 * @param {string} ngModel Assignable AngularJS expression to data-bind to.
	 * @param {string=} name Property name of the form under which the control is published.
	 * @param {string=} required Sets `required` validation error key if the value is not entered.
	 * @param {boolean=} ngRequired Sets `required` attribute if set to true
	 * @param {number=} ngMinlength Sets `minlength` validation error key if the value is shorter than
	 *    minlength.
	 * @param {number=} ngMaxlength Sets `maxlength` validation error key if the value is longer than
	 *    maxlength. Setting the attribute to a negative or non-numeric value, allows view values of any
	 *    length.
	 * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel {@link ngModel.NgModelController#$viewValue $viewValue}
	 *    value does not match a RegExp found by evaluating the AngularJS expression given in the attribute value.
	 *    If the expression evaluates to a RegExp object, then this is used directly.
	 *    If the expression evaluates to a string, then it will be converted to a RegExp
	 *    after wrapping it in `^` and `$` characters. For instance, `"abc"` will be converted to
	 *    `new RegExp('^abc$')`.<br />
	 *    **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
	 *    start at the index of the last search's match, thus not taking the whole input value into
	 *    account.
	 * @param {string=} ngChange AngularJS expression to be executed when input changes due to user
	 *    interaction with the input element.
	 * @param {boolean=} [ngTrim=true] If set to false AngularJS will not automatically trim the input.
	 *    This parameter is ignored for input[type=password] controls, which will never trim the
	 *    input.
	 *
	 * @example
	    <example name="input-directive" module="inputExample">
	      <file name="index.html">
	       <script>
	          angular.module('inputExample', [])
	            .controller('ExampleController', ['$scope', function($scope) {
	              $scope.user = {name: 'guest', last: 'visitor'};
	            }]);
	       </script>
	       <div ng-controller="ExampleController">
	         <form name="myForm">
	           <label>
	              User name:
	              <input type="text" name="userName" ng-model="user.name" required>
	           </label>
	           <div role="alert">
	             <span class="error" ng-show="myForm.userName.$error.required">
	              Required!</span>
	           </div>
	           <label>
	              Last name:
	              <input type="text" name="lastName" ng-model="user.last"
	              ng-minlength="3" ng-maxlength="10">
	           </label>
	           <div role="alert">
	             <span class="error" ng-show="myForm.lastName.$error.minlength">
	               Too short!</span>
	             <span class="error" ng-show="myForm.lastName.$error.maxlength">
	               Too long!</span>
	           </div>
	         </form>
	         <hr>
	         <tt>user = {{user}}</tt><br/>
	         <tt>myForm.userName.$valid = {{myForm.userName.$valid}}</tt><br/>
	         <tt>myForm.userName.$error = {{myForm.userName.$error}}</tt><br/>
	         <tt>myForm.lastName.$valid = {{myForm.lastName.$valid}}</tt><br/>
	         <tt>myForm.lastName.$error = {{myForm.lastName.$error}}</tt><br/>
	         <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
	         <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
	         <tt>myForm.$error.minlength = {{!!myForm.$error.minlength}}</tt><br/>
	         <tt>myForm.$error.maxlength = {{!!myForm.$error.maxlength}}</tt><br/>
	       </div>
	      </file>
	      <file name="protractor.js" type="protractor">
	        var user = element(by.exactBinding('user'));
	        var userNameValid = element(by.binding('myForm.userName.$valid'));
	        var lastNameValid = element(by.binding('myForm.lastName.$valid'));
	        var lastNameError = element(by.binding('myForm.lastName.$error'));
	        var formValid = element(by.binding('myForm.$valid'));
	        var userNameInput = element(by.model('user.name'));
	        var userLastInput = element(by.model('user.last'));
	
	        it('should initialize to model', function() {
	          expect(user.getText()).toContain('{"name":"guest","last":"visitor"}');
	          expect(userNameValid.getText()).toContain('true');
	          expect(formValid.getText()).toContain('true');
	        });
	
	        it('should be invalid if empty when required', function() {
	          userNameInput.clear();
	          userNameInput.sendKeys('');
	
	          expect(user.getText()).toContain('{"last":"visitor"}');
	          expect(userNameValid.getText()).toContain('false');
	          expect(formValid.getText()).toContain('false');
	        });
	
	        it('should be valid if empty when min length is set', function() {
	          userLastInput.clear();
	          userLastInput.sendKeys('');
	
	          expect(user.getText()).toContain('{"name":"guest","last":""}');
	          expect(lastNameValid.getText()).toContain('true');
	          expect(formValid.getText()).toContain('true');
	        });
	
	        it('should be invalid if less than required min length', function() {
	          userLastInput.clear();
	          userLastInput.sendKeys('xx');
	
	          expect(user.getText()).toContain('{"name":"guest"}');
	          expect(lastNameValid.getText()).toContain('false');
	          expect(lastNameError.getText()).toContain('minlength');
	          expect(formValid.getText()).toContain('false');
	        });
	
	        it('should be invalid if longer than max length', function() {
	          userLastInput.clear();
	          userLastInput.sendKeys('some ridiculously long name');
	
	          expect(user.getText()).toContain('{"name":"guest"}');
	          expect(lastNameValid.getText()).toContain('false');
	          expect(lastNameError.getText()).toContain('maxlength');
	          expect(formValid.getText()).toContain('false');
	        });
	      </file>
	    </example>
	 */var inputDirective=['$browser','$sniffer','$filter','$parse',function($browser,$sniffer,$filter,$parse){return{restrict:'E',require:['?ngModel'],link:{pre:function pre(scope,element,attr,ctrls){if(ctrls[0]){(inputType[lowercase(attr.type)]||inputType.text)(scope,element,attr,ctrls[0],$sniffer,$browser,$filter,$parse);}}}};}];var hiddenInputBrowserCacheDirective=function hiddenInputBrowserCacheDirective(){var valueProperty={configurable:true,enumerable:false,get:function get(){return this.getAttribute('value')||'';},set:function set(val){this.setAttribute('value',val);}};return{restrict:'E',priority:200,compile:function compile(_,attr){if(lowercase(attr.type)!=='hidden'){return;}return{pre:function pre(scope,element,attr,ctrls){var node=element[0];// Support: Edge
	// Moving the DOM around prevents autofillling
	if(node.parentNode){node.parentNode.insertBefore(node,node.nextSibling);}// Support: FF, IE
	// Avoiding direct assignment to .value prevents autofillling
	if(Object.defineProperty){Object.defineProperty(node,'value',valueProperty);}}};}};};var CONSTANT_VALUE_REGEXP=/^(true|false|\d+)$/;/**
	 * @ngdoc directive
	 * @name ngValue
	 * @restrict A
	 * @priority 100
	 *
	 * @description
	 * Binds the given expression to the value of the element.
	 *
	 * It is mainly used on {@link input[radio] `input[radio]`} and option elements,
	 * so that when the element is selected, the {@link ngModel `ngModel`} of that element (or its
	 * {@link select `select`} parent element) is set to the bound value. It is especially useful
	 * for dynamically generated lists using {@link ngRepeat `ngRepeat`}, as shown below.
	 *
	 * It can also be used to achieve one-way binding of a given expression to an input element
	 * such as an `input[text]` or a `textarea`, when that element does not use ngModel.
	 *
	 * @element ANY
	 * @param {string=} ngValue AngularJS expression, whose value will be bound to the `value` attribute
	 * and `value` property of the element.
	 *
	 * @example
	    <example name="ngValue-directive" module="valueExample">
	      <file name="index.html">
	       <script>
	          angular.module('valueExample', [])
	            .controller('ExampleController', ['$scope', function($scope) {
	              $scope.names = ['pizza', 'unicorns', 'robots'];
	              $scope.my = { favorite: 'unicorns' };
	            }]);
	       </script>
	        <form ng-controller="ExampleController">
	          <h2>Which is your favorite?</h2>
	            <label ng-repeat="name in names" for="{{name}}">
	              {{name}}
	              <input type="radio"
	                     ng-model="my.favorite"
	                     ng-value="name"
	                     id="{{name}}"
	                     name="favorite">
	            </label>
	          <div>You chose {{my.favorite}}</div>
	        </form>
	      </file>
	      <file name="protractor.js" type="protractor">
	        var favorite = element(by.binding('my.favorite'));
	
	        it('should initialize to model', function() {
	          expect(favorite.getText()).toContain('unicorns');
	        });
	        it('should bind the values to the inputs', function() {
	          element.all(by.model('my.favorite')).get(0).click();
	          expect(favorite.getText()).toContain('pizza');
	        });
	      </file>
	    </example>
	 */var ngValueDirective=function ngValueDirective(){/**
	   *  inputs use the value attribute as their default value if the value property is not set.
	   *  Once the value property has been set (by adding input), it will not react to changes to
	   *  the value attribute anymore. Setting both attribute and property fixes this behavior, and
	   *  makes it possible to use ngValue as a sort of one-way bind.
	   */function updateElementValue(element,attr,value){// Support: IE9 only
	// In IE9 values are converted to string (e.g. `input.value = null` results in `input.value === 'null'`).
	var propValue=isDefined(value)?value:msie===9?'':null;element.prop('value',propValue);attr.$set('value',value);}return{restrict:'A',priority:100,compile:function compile(tpl,tplAttr){if(CONSTANT_VALUE_REGEXP.test(tplAttr.ngValue)){return function ngValueConstantLink(scope,elm,attr){var value=scope.$eval(attr.ngValue);updateElementValue(elm,attr,value);};}else{return function ngValueLink(scope,elm,attr){scope.$watch(attr.ngValue,function valueWatchAction(value){updateElementValue(elm,attr,value);});};}}};};/**
	 * @ngdoc directive
	 * @name ngBind
	 * @restrict AC
	 *
	 * @description
	 * The `ngBind` attribute tells AngularJS to replace the text content of the specified HTML element
	 * with the value of a given expression, and to update the text content when the value of that
	 * expression changes.
	 *
	 * Typically, you don't use `ngBind` directly, but instead you use the double curly markup like
	 * `{{ expression }}` which is similar but less verbose.
	 *
	 * It is preferable to use `ngBind` instead of `{{ expression }}` if a template is momentarily
	 * displayed by the browser in its raw state before AngularJS compiles it. Since `ngBind` is an
	 * element attribute, it makes the bindings invisible to the user while the page is loading.
	 *
	 * An alternative solution to this problem would be using the
	 * {@link ng.directive:ngCloak ngCloak} directive.
	 *
	 *
	 * @element ANY
	 * @param {expression} ngBind {@link guide/expression Expression} to evaluate.
	 *
	 * @example
	 * Enter a name in the Live Preview text box; the greeting below the text box changes instantly.
	   <example module="bindExample" name="ng-bind">
	     <file name="index.html">
	       <script>
	         angular.module('bindExample', [])
	           .controller('ExampleController', ['$scope', function($scope) {
	             $scope.name = 'Whirled';
	           }]);
	       </script>
	       <div ng-controller="ExampleController">
	         <label>Enter name: <input type="text" ng-model="name"></label><br>
	         Hello <span ng-bind="name"></span>!
	       </div>
	     </file>
	     <file name="protractor.js" type="protractor">
	       it('should check ng-bind', function() {
	         var nameInput = element(by.model('name'));
	
	         expect(element(by.binding('name')).getText()).toBe('Whirled');
	         nameInput.clear();
	         nameInput.sendKeys('world');
	         expect(element(by.binding('name')).getText()).toBe('world');
	       });
	     </file>
	   </example>
	 */var ngBindDirective=['$compile',function($compile){return{restrict:'AC',compile:function ngBindCompile(templateElement){$compile.$$addBindingClass(templateElement);return function ngBindLink(scope,element,attr){$compile.$$addBindingInfo(element,attr.ngBind);element=element[0];scope.$watch(attr.ngBind,function ngBindWatchAction(value){element.textContent=stringify(value);});};}};}];/**
	 * @ngdoc directive
	 * @name ngBindTemplate
	 *
	 * @description
	 * The `ngBindTemplate` directive specifies that the element
	 * text content should be replaced with the interpolation of the template
	 * in the `ngBindTemplate` attribute.
	 * Unlike `ngBind`, the `ngBindTemplate` can contain multiple `{{` `}}`
	 * expressions. This directive is needed since some HTML elements
	 * (such as TITLE and OPTION) cannot contain SPAN elements.
	 *
	 * @element ANY
	 * @param {string} ngBindTemplate template of form
	 *   <tt>{{</tt> <tt>expression</tt> <tt>}}</tt> to eval.
	 *
	 * @example
	 * Try it here: enter text in text box and watch the greeting change.
	   <example module="bindExample" name="ng-bind-template">
	     <file name="index.html">
	       <script>
	         angular.module('bindExample', [])
	           .controller('ExampleController', ['$scope', function($scope) {
	             $scope.salutation = 'Hello';
	             $scope.name = 'World';
	           }]);
	       </script>
	       <div ng-controller="ExampleController">
	        <label>Salutation: <input type="text" ng-model="salutation"></label><br>
	        <label>Name: <input type="text" ng-model="name"></label><br>
	        <pre ng-bind-template="{{salutation}} {{name}}!"></pre>
	       </div>
	     </file>
	     <file name="protractor.js" type="protractor">
	       it('should check ng-bind', function() {
	         var salutationElem = element(by.binding('salutation'));
	         var salutationInput = element(by.model('salutation'));
	         var nameInput = element(by.model('name'));
	
	         expect(salutationElem.getText()).toBe('Hello World!');
	
	         salutationInput.clear();
	         salutationInput.sendKeys('Greetings');
	         nameInput.clear();
	         nameInput.sendKeys('user');
	
	         expect(salutationElem.getText()).toBe('Greetings user!');
	       });
	     </file>
	   </example>
	 */var ngBindTemplateDirective=['$interpolate','$compile',function($interpolate,$compile){return{compile:function ngBindTemplateCompile(templateElement){$compile.$$addBindingClass(templateElement);return function ngBindTemplateLink(scope,element,attr){var interpolateFn=$interpolate(element.attr(attr.$attr.ngBindTemplate));$compile.$$addBindingInfo(element,interpolateFn.expressions);element=element[0];attr.$observe('ngBindTemplate',function(value){element.textContent=isUndefined(value)?'':value;});};}};}];/**
	 * @ngdoc directive
	 * @name ngBindHtml
	 *
	 * @description
	 * Evaluates the expression and inserts the resulting HTML into the element in a secure way. By default,
	 * the resulting HTML content will be sanitized using the {@link ngSanitize.$sanitize $sanitize} service.
	 * To utilize this functionality, ensure that `$sanitize` is available, for example, by including {@link
	 * ngSanitize} in your module's dependencies (not in core AngularJS). In order to use {@link ngSanitize}
	 * in your module's dependencies, you need to include "angular-sanitize.js" in your application.
	 *
	 * You may also bypass sanitization for values you know are safe. To do so, bind to
	 * an explicitly trusted value via {@link ng.$sce#trustAsHtml $sce.trustAsHtml}.  See the example
	 * under {@link ng.$sce#show-me-an-example-using-sce- Strict Contextual Escaping (SCE)}.
	 *
	 * Note: If a `$sanitize` service is unavailable and the bound value isn't explicitly trusted, you
	 * will have an exception (instead of an exploit.)
	 *
	 * @element ANY
	 * @param {expression} ngBindHtml {@link guide/expression Expression} to evaluate.
	 *
	 * @example
	
	   <example module="bindHtmlExample" deps="angular-sanitize.js" name="ng-bind-html">
	     <file name="index.html">
	       <div ng-controller="ExampleController">
	        <p ng-bind-html="myHTML"></p>
	       </div>
	     </file>
	
	     <file name="script.js">
	       angular.module('bindHtmlExample', ['ngSanitize'])
	         .controller('ExampleController', ['$scope', function($scope) {
	           $scope.myHTML =
	              'I am an <code>HTML</code>string with ' +
	              '<a href="#">links!</a> and other <em>stuff</em>';
	         }]);
	     </file>
	
	     <file name="protractor.js" type="protractor">
	       it('should check ng-bind-html', function() {
	         expect(element(by.binding('myHTML')).getText()).toBe(
	             'I am an HTMLstring with links! and other stuff');
	       });
	     </file>
	   </example>
	 */var ngBindHtmlDirective=['$sce','$parse','$compile',function($sce,$parse,$compile){return{restrict:'A',compile:function ngBindHtmlCompile(tElement,tAttrs){var ngBindHtmlGetter=$parse(tAttrs.ngBindHtml);var ngBindHtmlWatch=$parse(tAttrs.ngBindHtml,function sceValueOf(val){// Unwrap the value to compare the actual inner safe value, not the wrapper object.
	return $sce.valueOf(val);});$compile.$$addBindingClass(tElement);return function ngBindHtmlLink(scope,element,attr){$compile.$$addBindingInfo(element,attr.ngBindHtml);scope.$watch(ngBindHtmlWatch,function ngBindHtmlWatchAction(){// The watched value is the unwrapped value. To avoid re-escaping, use the direct getter.
	var value=ngBindHtmlGetter(scope);element.html($sce.getTrustedHtml(value)||'');});};}};}];/**
	 * @ngdoc directive
	 * @name ngChange
	 * @restrict A
	 *
	 * @description
	 * Evaluate the given expression when the user changes the input.
	 * The expression is evaluated immediately, unlike the JavaScript onchange event
	 * which only triggers at the end of a change (usually, when the user leaves the
	 * form element or presses the return key).
	 *
	 * The `ngChange` expression is only evaluated when a change in the input value causes
	 * a new value to be committed to the model.
	 *
	 * It will not be evaluated:
	 * * if the value returned from the `$parsers` transformation pipeline has not changed
	 * * if the input has continued to be invalid since the model will stay `null`
	 * * if the model is changed programmatically and not by a change to the input value
	 *
	 *
	 * Note, this directive requires `ngModel` to be present.
	 *
	 * @element ANY
	 * @param {expression} ngChange {@link guide/expression Expression} to evaluate upon change
	 * in input value.
	 *
	 * @example
	 * <example name="ngChange-directive" module="changeExample">
	 *   <file name="index.html">
	 *     <script>
	 *       angular.module('changeExample', [])
	 *         .controller('ExampleController', ['$scope', function($scope) {
	 *           $scope.counter = 0;
	 *           $scope.change = function() {
	 *             $scope.counter++;
	 *           };
	 *         }]);
	 *     </script>
	 *     <div ng-controller="ExampleController">
	 *       <input type="checkbox" ng-model="confirmed" ng-change="change()" id="ng-change-example1" />
	 *       <input type="checkbox" ng-model="confirmed" id="ng-change-example2" />
	 *       <label for="ng-change-example2">Confirmed</label><br />
	 *       <tt>debug = {{confirmed}}</tt><br/>
	 *       <tt>counter = {{counter}}</tt><br/>
	 *     </div>
	 *   </file>
	 *   <file name="protractor.js" type="protractor">
	 *     var counter = element(by.binding('counter'));
	 *     var debug = element(by.binding('confirmed'));
	 *
	 *     it('should evaluate the expression if changing from view', function() {
	 *       expect(counter.getText()).toContain('0');
	 *
	 *       element(by.id('ng-change-example1')).click();
	 *
	 *       expect(counter.getText()).toContain('1');
	 *       expect(debug.getText()).toContain('true');
	 *     });
	 *
	 *     it('should not evaluate the expression if changing from model', function() {
	 *       element(by.id('ng-change-example2')).click();
	
	 *       expect(counter.getText()).toContain('0');
	 *       expect(debug.getText()).toContain('true');
	 *     });
	 *   </file>
	 * </example>
	 */var ngChangeDirective=valueFn({restrict:'A',require:'ngModel',link:function link(scope,element,attr,ctrl){ctrl.$viewChangeListeners.push(function(){scope.$eval(attr.ngChange);});}});/* exported
	  ngClassDirective,
	  ngClassEvenDirective,
	  ngClassOddDirective
	*/function classDirective(name,selector){name='ngClass'+name;var indexWatchExpression;return['$parse',function($parse){return{restrict:'AC',link:function link(scope,element,attr){var classCounts=element.data('$classCounts');var oldModulo=true;var oldClassString;if(!classCounts){// Use createMap() to prevent class assumptions involving property
	// names in Object.prototype
	classCounts=createMap();element.data('$classCounts',classCounts);}if(name!=='ngClass'){if(!indexWatchExpression){indexWatchExpression=$parse('$index',function moduloTwo($index){// eslint-disable-next-line no-bitwise
	return $index&1;});}scope.$watch(indexWatchExpression,ngClassIndexWatchAction);}scope.$watch($parse(attr[name],toClassString),ngClassWatchAction);function addClasses(classString){classString=digestClassCounts(split(classString),1);attr.$addClass(classString);}function removeClasses(classString){classString=digestClassCounts(split(classString),-1);attr.$removeClass(classString);}function updateClasses(oldClassString,newClassString){var oldClassArray=split(oldClassString);var newClassArray=split(newClassString);var toRemoveArray=arrayDifference(oldClassArray,newClassArray);var toAddArray=arrayDifference(newClassArray,oldClassArray);var toRemoveString=digestClassCounts(toRemoveArray,-1);var toAddString=digestClassCounts(toAddArray,1);attr.$addClass(toAddString);attr.$removeClass(toRemoveString);}function digestClassCounts(classArray,count){var classesToUpdate=[];forEach(classArray,function(className){if(count>0||classCounts[className]){classCounts[className]=(classCounts[className]||0)+count;if(classCounts[className]===+(count>0)){classesToUpdate.push(className);}}});return classesToUpdate.join(' ');}function ngClassIndexWatchAction(newModulo){// This watch-action should run before the `ngClassWatchAction()`, thus it
	// adds/removes `oldClassString`. If the `ngClass` expression has changed as well, the
	// `ngClassWatchAction()` will update the classes.
	if(newModulo===selector){addClasses(oldClassString);}else{removeClasses(oldClassString);}oldModulo=newModulo;}function ngClassWatchAction(newClassString){if(oldModulo===selector){updateClasses(oldClassString,newClassString);}oldClassString=newClassString;}}};}];// Helpers
	function arrayDifference(tokens1,tokens2){if(!tokens1||!tokens1.length)return[];if(!tokens2||!tokens2.length)return tokens1;var values=[];outer:for(var i=0;i<tokens1.length;i++){var token=tokens1[i];for(var j=0;j<tokens2.length;j++){if(token===tokens2[j])continue outer;}values.push(token);}return values;}function split(classString){return classString&&classString.split(' ');}function toClassString(classValue){if(!classValue)return classValue;var classString=classValue;if(isArray(classValue)){classString=classValue.map(toClassString).join(' ');}else if(isObject(classValue)){classString=Object.keys(classValue).filter(function(key){return classValue[key];}).join(' ');}else if(!isString(classValue)){classString=classValue+'';}return classString;}}/**
	 * @ngdoc directive
	 * @name ngClass
	 * @restrict AC
	 * @element ANY
	 *
	 * @description
	 * The `ngClass` directive allows you to dynamically set CSS classes on an HTML element by databinding
	 * an expression that represents all classes to be added.
	 *
	 * The directive operates in three different ways, depending on which of three types the expression
	 * evaluates to:
	 *
	 * 1. If the expression evaluates to a string, the string should be one or more space-delimited class
	 * names.
	 *
	 * 2. If the expression evaluates to an object, then for each key-value pair of the
	 * object with a truthy value the corresponding key is used as a class name.
	 *
	 * 3. If the expression evaluates to an array, each element of the array should either be a string as in
	 * type 1 or an object as in type 2. This means that you can mix strings and objects together in an array
	 * to give you more control over what CSS classes appear. See the code below for an example of this.
	 *
	 *
	 * The directive won't add duplicate classes if a particular class was already set.
	 *
	 * When the expression changes, the previously added classes are removed and only then are the
	 * new classes added.
	 *
	 * @knownIssue
	 * You should not use {@link guide/interpolation interpolation} in the value of the `class`
	 * attribute, when using the `ngClass` directive on the same element.
	 * See {@link guide/interpolation#known-issues here} for more info.
	 *
	 * @animations
	 * | Animation                        | Occurs                              |
	 * |----------------------------------|-------------------------------------|
	 * | {@link ng.$animate#addClass addClass}       | just before the class is applied to the element   |
	 * | {@link ng.$animate#removeClass removeClass} | just before the class is removed from the element |
	 * | {@link ng.$animate#setClass setClass} | just before classes are added and classes are removed from the element at the same time |
	 *
	 * ### ngClass and pre-existing CSS3 Transitions/Animations
	   The ngClass directive still supports CSS3 Transitions/Animations even if they do not follow the ngAnimate CSS naming structure.
	   Upon animation ngAnimate will apply supplementary CSS classes to track the start and end of an animation, but this will not hinder
	   any pre-existing CSS transitions already on the element. To get an idea of what happens during a class-based animation, be sure
	   to view the step by step details of {@link $animate#addClass $animate.addClass} and
	   {@link $animate#removeClass $animate.removeClass}.
	 *
	 * @param {expression} ngClass {@link guide/expression Expression} to eval. The result
	 *   of the evaluation can be a string representing space delimited class
	 *   names, an array, or a map of class names to boolean values. In the case of a map, the
	 *   names of the properties whose values are truthy will be added as css classes to the
	 *   element.
	 *
	 * @example
	 * ### Basic
	   <example name="ng-class">
	     <file name="index.html">
	       <p ng-class="{strike: deleted, bold: important, 'has-error': error}">Map Syntax Example</p>
	       <label>
	          <input type="checkbox" ng-model="deleted">
	          deleted (apply "strike" class)
	       </label><br>
	       <label>
	          <input type="checkbox" ng-model="important">
	          important (apply "bold" class)
	       </label><br>
	       <label>
	          <input type="checkbox" ng-model="error">
	          error (apply "has-error" class)
	       </label>
	       <hr>
	       <p ng-class="style">Using String Syntax</p>
	       <input type="text" ng-model="style"
	              placeholder="Type: bold strike red" aria-label="Type: bold strike red">
	       <hr>
	       <p ng-class="[style1, style2, style3]">Using Array Syntax</p>
	       <input ng-model="style1"
	              placeholder="Type: bold, strike or red" aria-label="Type: bold, strike or red"><br>
	       <input ng-model="style2"
	              placeholder="Type: bold, strike or red" aria-label="Type: bold, strike or red 2"><br>
	       <input ng-model="style3"
	              placeholder="Type: bold, strike or red" aria-label="Type: bold, strike or red 3"><br>
	       <hr>
	       <p ng-class="[style4, {orange: warning}]">Using Array and Map Syntax</p>
	       <input ng-model="style4" placeholder="Type: bold, strike" aria-label="Type: bold, strike"><br>
	       <label><input type="checkbox" ng-model="warning"> warning (apply "orange" class)</label>
	     </file>
	     <file name="style.css">
	       .strike {
	           text-decoration: line-through;
	       }
	       .bold {
	           font-weight: bold;
	       }
	       .red {
	           color: red;
	       }
	       .has-error {
	           color: red;
	           background-color: yellow;
	       }
	       .orange {
	           color: orange;
	       }
	     </file>
	     <file name="protractor.js" type="protractor">
	       var ps = element.all(by.css('p'));
	
	       it('should let you toggle the class', function() {
	
	         expect(ps.first().getAttribute('class')).not.toMatch(/bold/);
	         expect(ps.first().getAttribute('class')).not.toMatch(/has-error/);
	
	         element(by.model('important')).click();
	         expect(ps.first().getAttribute('class')).toMatch(/bold/);
	
	         element(by.model('error')).click();
	         expect(ps.first().getAttribute('class')).toMatch(/has-error/);
	       });
	
	       it('should let you toggle string example', function() {
	         expect(ps.get(1).getAttribute('class')).toBe('');
	         element(by.model('style')).clear();
	         element(by.model('style')).sendKeys('red');
	         expect(ps.get(1).getAttribute('class')).toBe('red');
	       });
	
	       it('array example should have 3 classes', function() {
	         expect(ps.get(2).getAttribute('class')).toBe('');
	         element(by.model('style1')).sendKeys('bold');
	         element(by.model('style2')).sendKeys('strike');
	         element(by.model('style3')).sendKeys('red');
	         expect(ps.get(2).getAttribute('class')).toBe('bold strike red');
	       });
	
	       it('array with map example should have 2 classes', function() {
	         expect(ps.last().getAttribute('class')).toBe('');
	         element(by.model('style4')).sendKeys('bold');
	         element(by.model('warning')).click();
	         expect(ps.last().getAttribute('class')).toBe('bold orange');
	       });
	     </file>
	   </example>
	
	   @example
	   ### Animations
	
	   The example below demonstrates how to perform animations using ngClass.
	
	   <example module="ngAnimate" deps="angular-animate.js" animations="true" name="ng-class">
	     <file name="index.html">
	      <input id="setbtn" type="button" value="set" ng-click="myVar='my-class'">
	      <input id="clearbtn" type="button" value="clear" ng-click="myVar=''">
	      <br>
	      <span class="base-class" ng-class="myVar">Sample Text</span>
	     </file>
	     <file name="style.css">
	       .base-class {
	         transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
	       }
	
	       .base-class.my-class {
	         color: red;
	         font-size:3em;
	       }
	     </file>
	     <file name="protractor.js" type="protractor">
	       it('should check ng-class', function() {
	         expect(element(by.css('.base-class')).getAttribute('class')).not.
	           toMatch(/my-class/);
	
	         element(by.id('setbtn')).click();
	
	         expect(element(by.css('.base-class')).getAttribute('class')).
	           toMatch(/my-class/);
	
	         element(by.id('clearbtn')).click();
	
	         expect(element(by.css('.base-class')).getAttribute('class')).not.
	           toMatch(/my-class/);
	       });
	     </file>
	   </example>
	 */var ngClassDirective=classDirective('',true);/**
	 * @ngdoc directive
	 * @name ngClassOdd
	 * @restrict AC
	 *
	 * @description
	 * The `ngClassOdd` and `ngClassEven` directives work exactly as
	 * {@link ng.directive:ngClass ngClass}, except they work in
	 * conjunction with `ngRepeat` and take effect only on odd (even) rows.
	 *
	 * This directive can be applied only within the scope of an
	 * {@link ng.directive:ngRepeat ngRepeat}.
	 *
	 * @animations
	 * | Animation                        | Occurs                              |
	 * |----------------------------------|-------------------------------------|
	 * | {@link ng.$animate#addClass addClass}       | just before the class is applied to the element   |
	 * | {@link ng.$animate#removeClass removeClass} | just before the class is removed from the element |
	 *
	 * @element ANY
	 * @param {expression} ngClassOdd {@link guide/expression Expression} to eval. The result
	 *   of the evaluation can be a string representing space delimited class names or an array.
	 *
	 * @example
	   <example name="ng-class-odd">
	     <file name="index.html">
	        <ol ng-init="names=['John', 'Mary', 'Cate', 'Suz']">
	          <li ng-repeat="name in names">
	           <span ng-class-odd="'odd'" ng-class-even="'even'">
	             {{name}}
	           </span>
	          </li>
	        </ol>
	     </file>
	     <file name="style.css">
	       .odd {
	         color: red;
	       }
	       .even {
	         color: blue;
	       }
	     </file>
	     <file name="protractor.js" type="protractor">
	       it('should check ng-class-odd and ng-class-even', function() {
	         expect(element(by.repeater('name in names').row(0).column('name')).getAttribute('class')).
	           toMatch(/odd/);
	         expect(element(by.repeater('name in names').row(1).column('name')).getAttribute('class')).
	           toMatch(/even/);
	       });
	     </file>
	   </example>
	 *
	 * <hr />
	 * @example
	 * An example on how to implement animations using `ngClassOdd`:
	 *
	   <example module="ngAnimate" deps="angular-animate.js" animations="true" name="ng-class-odd-animate">
	     <file name="index.html">
	       <div ng-init="items=['Item 3', 'Item 2', 'Item 1', 'Item 0']">
	         <button ng-click="items.unshift('Item ' + items.length)">Add item</button>
	         <hr />
	         <table>
	           <tr ng-repeat="item in items" ng-class-odd="'odd'">
	             <td>{{ item }}</td>
	           </tr>
	         </table>
	       </div>
	     </file>
	     <file name="style.css">
	       .odd {
	         background: rgba(255, 255, 0, 0.25);
	       }
	
	       .odd-add, .odd-remove {
	         transition: 1.5s;
	       }
	     </file>
	     <file name="protractor.js" type="protractor">
	       it('should add new entries to the beginning of the list', function() {
	         var button = element(by.buttonText('Add item'));
	         var rows = element.all(by.repeater('item in items'));
	
	         expect(rows.count()).toBe(4);
	         expect(rows.get(0).getText()).toBe('Item 3');
	         expect(rows.get(1).getText()).toBe('Item 2');
	
	         button.click();
	
	         expect(rows.count()).toBe(5);
	         expect(rows.get(0).getText()).toBe('Item 4');
	         expect(rows.get(1).getText()).toBe('Item 3');
	       });
	
	       it('should add odd class to odd entries', function() {
	         var button = element(by.buttonText('Add item'));
	         var rows = element.all(by.repeater('item in items'));
	
	         expect(rows.get(0).getAttribute('class')).toMatch(/odd/);
	         expect(rows.get(1).getAttribute('class')).not.toMatch(/odd/);
	
	         button.click();
	
	         expect(rows.get(0).getAttribute('class')).toMatch(/odd/);
	         expect(rows.get(1).getAttribute('class')).not.toMatch(/odd/);
	       });
	     </file>
	   </example>
	 */var ngClassOddDirective=classDirective('Odd',0);/**
	 * @ngdoc directive
	 * @name ngClassEven
	 * @restrict AC
	 *
	 * @description
	 * The `ngClassOdd` and `ngClassEven` directives work exactly as
	 * {@link ng.directive:ngClass ngClass}, except they work in
	 * conjunction with `ngRepeat` and take effect only on odd (even) rows.
	 *
	 * This directive can be applied only within the scope of an
	 * {@link ng.directive:ngRepeat ngRepeat}.
	 *
	 * @animations
	 * | Animation                        | Occurs                              |
	 * |----------------------------------|-------------------------------------|
	 * | {@link ng.$animate#addClass addClass}       | just before the class is applied to the element   |
	 * | {@link ng.$animate#removeClass removeClass} | just before the class is removed from the element |
	 *
	 * @element ANY
	 * @param {expression} ngClassEven {@link guide/expression Expression} to eval. The
	 *   result of the evaluation can be a string representing space delimited class names or an array.
	 *
	 * @example
	   <example name="ng-class-even">
	     <file name="index.html">
	        <ol ng-init="names=['John', 'Mary', 'Cate', 'Suz']">
	          <li ng-repeat="name in names">
	           <span ng-class-odd="'odd'" ng-class-even="'even'">
	             {{name}} &nbsp; &nbsp; &nbsp;
	           </span>
	          </li>
	        </ol>
	     </file>
	     <file name="style.css">
	       .odd {
	         color: red;
	       }
	       .even {
	         color: blue;
	       }
	     </file>
	     <file name="protractor.js" type="protractor">
	       it('should check ng-class-odd and ng-class-even', function() {
	         expect(element(by.repeater('name in names').row(0).column('name')).getAttribute('class')).
	           toMatch(/odd/);
	         expect(element(by.repeater('name in names').row(1).column('name')).getAttribute('class')).
	           toMatch(/even/);
	       });
	     </file>
	   </example>
	 *
	 * <hr />
	 * @example
	 * An example on how to implement animations using `ngClassEven`:
	 *
	   <example module="ngAnimate" deps="angular-animate.js" animations="true" name="ng-class-even-animate">
	     <file name="index.html">
	       <div ng-init="items=['Item 3', 'Item 2', 'Item 1', 'Item 0']">
	         <button ng-click="items.unshift('Item ' + items.length)">Add item</button>
	         <hr />
	         <table>
	           <tr ng-repeat="item in items" ng-class-even="'even'">
	             <td>{{ item }}</td>
	           </tr>
	         </table>
	       </div>
	     </file>
	     <file name="style.css">
	       .even {
	         background: rgba(255, 255, 0, 0.25);
	       }
	
	       .even-add, .even-remove {
	         transition: 1.5s;
	       }
	     </file>
	     <file name="protractor.js" type="protractor">
	       it('should add new entries to the beginning of the list', function() {
	         var button = element(by.buttonText('Add item'));
	         var rows = element.all(by.repeater('item in items'));
	
	         expect(rows.count()).toBe(4);
	         expect(rows.get(0).getText()).toBe('Item 3');
	         expect(rows.get(1).getText()).toBe('Item 2');
	
	         button.click();
	
	         expect(rows.count()).toBe(5);
	         expect(rows.get(0).getText()).toBe('Item 4');
	         expect(rows.get(1).getText()).toBe('Item 3');
	       });
	
	       it('should add even class to even entries', function() {
	         var button = element(by.buttonText('Add item'));
	         var rows = element.all(by.repeater('item in items'));
	
	         expect(rows.get(0).getAttribute('class')).not.toMatch(/even/);
	         expect(rows.get(1).getAttribute('class')).toMatch(/even/);
	
	         button.click();
	
	         expect(rows.get(0).getAttribute('class')).not.toMatch(/even/);
	         expect(rows.get(1).getAttribute('class')).toMatch(/even/);
	       });
	     </file>
	   </example>
	 */var ngClassEvenDirective=classDirective('Even',1);/**
	 * @ngdoc directive
	 * @name ngCloak
	 * @restrict AC
	 *
	 * @description
	 * The `ngCloak` directive is used to prevent the AngularJS html template from being briefly
	 * displayed by the browser in its raw (uncompiled) form while your application is loading. Use this
	 * directive to avoid the undesirable flicker effect caused by the html template display.
	 *
	 * The directive can be applied to the `<body>` element, but the preferred usage is to apply
	 * multiple `ngCloak` directives to small portions of the page to permit progressive rendering
	 * of the browser view.
	 *
	 * `ngCloak` works in cooperation with the following css rule embedded within `angular.js` and
	 * `angular.min.js`.
	 * For CSP mode please add `angular-csp.css` to your html file (see {@link ng.directive:ngCsp ngCsp}).
	 *
	 * ```css
	 * [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
	 *   display: none !important;
	 * }
	 * ```
	 *
	 * When this css rule is loaded by the browser, all html elements (including their children) that
	 * are tagged with the `ngCloak` directive are hidden. When AngularJS encounters this directive
	 * during the compilation of the template it deletes the `ngCloak` element attribute, making
	 * the compiled element visible.
	 *
	 * For the best result, the `angular.js` script must be loaded in the head section of the html
	 * document; alternatively, the css rule above must be included in the external stylesheet of the
	 * application.
	 *
	 * @element ANY
	 *
	 * @example
	   <example name="ng-cloak">
	     <file name="index.html">
	        <div id="template1" ng-cloak>{{ 'hello' }}</div>
	        <div id="template2" class="ng-cloak">{{ 'world' }}</div>
	     </file>
	     <file name="protractor.js" type="protractor">
	       it('should remove the template directive and css class', function() {
	         expect($('#template1').getAttribute('ng-cloak')).
	           toBeNull();
	         expect($('#template2').getAttribute('ng-cloak')).
	           toBeNull();
	       });
	     </file>
	   </example>
	 *
	 */var ngCloakDirective=ngDirective({compile:function compile(element,attr){attr.$set('ngCloak',undefined);element.removeClass('ng-cloak');}});/**
	 * @ngdoc directive
	 * @name ngController
	 *
	 * @description
	 * The `ngController` directive attaches a controller class to the view. This is a key aspect of how angular
	 * supports the principles behind the Model-View-Controller design pattern.
	 *
	 * MVC components in angular:
	 *
	 * * Model — Models are the properties of a scope; scopes are attached to the DOM where scope properties
	 *   are accessed through bindings.
	 * * View — The template (HTML with data bindings) that is rendered into the View.
	 * * Controller — The `ngController` directive specifies a Controller class; the class contains business
	 *   logic behind the application to decorate the scope with functions and values
	 *
	 * Note that you can also attach controllers to the DOM by declaring it in a route definition
	 * via the {@link ngRoute.$route $route} service. A common mistake is to declare the controller
	 * again using `ng-controller` in the template itself.  This will cause the controller to be attached
	 * and executed twice.
	 *
	 * @element ANY
	 * @scope
	 * @priority 500
	 * @param {expression} ngController Name of a constructor function registered with the current
	 * {@link ng.$controllerProvider $controllerProvider} or an {@link guide/expression expression}
	 * that on the current scope evaluates to a constructor function.
	 *
	 * The controller instance can be published into a scope property by specifying
	 * `ng-controller="as propertyName"`.
	 *
	 * @example
	 * Here is a simple form for editing user contact information. Adding, removing, clearing, and
	 * greeting are methods declared on the controller (see source tab). These methods can
	 * easily be called from the AngularJS markup. Any changes to the data are automatically reflected
	 * in the View without the need for a manual update.
	 *
	 * Two different declaration styles are included below:
	 *
	 * * one binds methods and properties directly onto the controller using `this`:
	 * `ng-controller="SettingsController1 as settings"`
	 * * one injects `$scope` into the controller:
	 * `ng-controller="SettingsController2"`
	 *
	 * The second option is more common in the AngularJS community, and is generally used in boilerplates
	 * and in this guide. However, there are advantages to binding properties directly to the controller
	 * and avoiding scope.
	 *
	 * * Using `controller as` makes it obvious which controller you are accessing in the template when
	 * multiple controllers apply to an element.
	 * * If you are writing your controllers as classes you have easier access to the properties and
	 * methods, which will appear on the scope, from inside the controller code.
	 * * Since there is always a `.` in the bindings, you don't have to worry about prototypal
	 * inheritance masking primitives.
	 *
	 * This example demonstrates the `controller as` syntax.
	 *
	 * <example name="ngControllerAs" module="controllerAsExample">
	 *   <file name="index.html">
	 *    <div id="ctrl-as-exmpl" ng-controller="SettingsController1 as settings">
	 *      <label>Name: <input type="text" ng-model="settings.name"/></label>
	 *      <button ng-click="settings.greet()">greet</button><br/>
	 *      Contact:
	 *      <ul>
	 *        <li ng-repeat="contact in settings.contacts">
	 *          <select ng-model="contact.type" aria-label="Contact method" id="select_{{$index}}">
	 *             <option>phone</option>
	 *             <option>email</option>
	 *          </select>
	 *          <input type="text" ng-model="contact.value" aria-labelledby="select_{{$index}}" />
	 *          <button ng-click="settings.clearContact(contact)">clear</button>
	 *          <button ng-click="settings.removeContact(contact)" aria-label="Remove">X</button>
	 *        </li>
	 *        <li><button ng-click="settings.addContact()">add</button></li>
	 *     </ul>
	 *    </div>
	 *   </file>
	 *   <file name="app.js">
	 *    angular.module('controllerAsExample', [])
	 *      .controller('SettingsController1', SettingsController1);
	 *
	 *    function SettingsController1() {
	 *      this.name = 'John Smith';
	 *      this.contacts = [
	 *        {type: 'phone', value: '408 555 1212'},
	 *        {type: 'email', value: 'john.smith@example.org'}
	 *      ];
	 *    }
	 *
	 *    SettingsController1.prototype.greet = function() {
	 *      alert(this.name);
	 *    };
	 *
	 *    SettingsController1.prototype.addContact = function() {
	 *      this.contacts.push({type: 'email', value: 'yourname@example.org'});
	 *    };
	 *
	 *    SettingsController1.prototype.removeContact = function(contactToRemove) {
	 *     var index = this.contacts.indexOf(contactToRemove);
	 *      this.contacts.splice(index, 1);
	 *    };
	 *
	 *    SettingsController1.prototype.clearContact = function(contact) {
	 *      contact.type = 'phone';
	 *      contact.value = '';
	 *    };
	 *   </file>
	 *   <file name="protractor.js" type="protractor">
	 *     it('should check controller as', function() {
	 *       var container = element(by.id('ctrl-as-exmpl'));
	 *         expect(container.element(by.model('settings.name'))
	 *           .getAttribute('value')).toBe('John Smith');
	 *
	 *       var firstRepeat =
	 *           container.element(by.repeater('contact in settings.contacts').row(0));
	 *       var secondRepeat =
	 *           container.element(by.repeater('contact in settings.contacts').row(1));
	 *
	 *       expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))
	 *           .toBe('408 555 1212');
	 *
	 *       expect(secondRepeat.element(by.model('contact.value')).getAttribute('value'))
	 *           .toBe('john.smith@example.org');
	 *
	 *       firstRepeat.element(by.buttonText('clear')).click();
	 *
	 *       expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))
	 *           .toBe('');
	 *
	 *       container.element(by.buttonText('add')).click();
	 *
	 *       expect(container.element(by.repeater('contact in settings.contacts').row(2))
	 *           .element(by.model('contact.value'))
	 *           .getAttribute('value'))
	 *           .toBe('yourname@example.org');
	 *     });
	 *   </file>
	 * </example>
	 *
	 * This example demonstrates the "attach to `$scope`" style of controller.
	 *
	 * <example name="ngController" module="controllerExample">
	 *  <file name="index.html">
	 *   <div id="ctrl-exmpl" ng-controller="SettingsController2">
	 *     <label>Name: <input type="text" ng-model="name"/></label>
	 *     <button ng-click="greet()">greet</button><br/>
	 *     Contact:
	 *     <ul>
	 *       <li ng-repeat="contact in contacts">
	 *         <select ng-model="contact.type" id="select_{{$index}}">
	 *            <option>phone</option>
	 *            <option>email</option>
	 *         </select>
	 *         <input type="text" ng-model="contact.value" aria-labelledby="select_{{$index}}" />
	 *         <button ng-click="clearContact(contact)">clear</button>
	 *         <button ng-click="removeContact(contact)">X</button>
	 *       </li>
	 *       <li>[ <button ng-click="addContact()">add</button> ]</li>
	 *    </ul>
	 *   </div>
	 *  </file>
	 *  <file name="app.js">
	 *   angular.module('controllerExample', [])
	 *     .controller('SettingsController2', ['$scope', SettingsController2]);
	 *
	 *   function SettingsController2($scope) {
	 *     $scope.name = 'John Smith';
	 *     $scope.contacts = [
	 *       {type:'phone', value:'408 555 1212'},
	 *       {type:'email', value:'john.smith@example.org'}
	 *     ];
	 *
	 *     $scope.greet = function() {
	 *       alert($scope.name);
	 *     };
	 *
	 *     $scope.addContact = function() {
	 *       $scope.contacts.push({type:'email', value:'yourname@example.org'});
	 *     };
	 *
	 *     $scope.removeContact = function(contactToRemove) {
	 *       var index = $scope.contacts.indexOf(contactToRemove);
	 *       $scope.contacts.splice(index, 1);
	 *     };
	 *
	 *     $scope.clearContact = function(contact) {
	 *       contact.type = 'phone';
	 *       contact.value = '';
	 *     };
	 *   }
	 *  </file>
	 *  <file name="protractor.js" type="protractor">
	 *    it('should check controller', function() {
	 *      var container = element(by.id('ctrl-exmpl'));
	 *
	 *      expect(container.element(by.model('name'))
	 *          .getAttribute('value')).toBe('John Smith');
	 *
	 *      var firstRepeat =
	 *          container.element(by.repeater('contact in contacts').row(0));
	 *      var secondRepeat =
	 *          container.element(by.repeater('contact in contacts').row(1));
	 *
	 *      expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))
	 *          .toBe('408 555 1212');
	 *      expect(secondRepeat.element(by.model('contact.value')).getAttribute('value'))
	 *          .toBe('john.smith@example.org');
	 *
	 *      firstRepeat.element(by.buttonText('clear')).click();
	 *
	 *      expect(firstRepeat.element(by.model('contact.value')).getAttribute('value'))
	 *          .toBe('');
	 *
	 *      container.element(by.buttonText('add')).click();
	 *
	 *      expect(container.element(by.repeater('contact in contacts').row(2))
	 *          .element(by.model('contact.value'))
	 *          .getAttribute('value'))
	 *          .toBe('yourname@example.org');
	 *    });
	 *  </file>
	 *</example>
	
	 */var ngControllerDirective=[function(){return{restrict:'A',scope:true,controller:'@',priority:500};}];/**
	 * @ngdoc directive
	 * @name ngCsp
	 *
	 * @restrict A
	 * @element ANY
	 * @description
	 *
	 * AngularJS has some features that can conflict with certain restrictions that are applied when using
	 * [CSP (Content Security Policy)](https://developer.mozilla.org/en/Security/CSP) rules.
	 *
	 * If you intend to implement CSP with these rules then you must tell AngularJS not to use these
	 * features.
	 *
	 * This is necessary when developing things like Google Chrome Extensions or Universal Windows Apps.
	 *
	 *
	 * The following default rules in CSP affect AngularJS:
	 *
	 * * The use of `eval()`, `Function(string)` and similar functions to dynamically create and execute
	 * code from strings is forbidden. AngularJS makes use of this in the {@link $parse} service to
	 * provide a 30% increase in the speed of evaluating AngularJS expressions. (This CSP rule can be
	 * disabled with the CSP keyword `unsafe-eval`, but it is generally not recommended as it would
	 * weaken the protections offered by CSP.)
	 *
	 * * The use of inline resources, such as inline `<script>` and `<style>` elements, are forbidden.
	 * This prevents apps from injecting custom styles directly into the document. AngularJS makes use of
	 * this to include some CSS rules (e.g. {@link ngCloak} and {@link ngHide}). To make these
	 * directives work when a CSP rule is blocking inline styles, you must link to the `angular-csp.css`
	 * in your HTML manually. (This CSP rule can be disabled with the CSP keyword `unsafe-inline`, but
	 * it is generally not recommended as it would weaken the protections offered by CSP.)
	 *
	 * If you do not provide `ngCsp` then AngularJS tries to autodetect if CSP is blocking dynamic code
	 * creation from strings (e.g., `unsafe-eval` not specified in CSP header) and automatically
	 * deactivates this feature in the {@link $parse} service. This autodetection, however, triggers a
	 * CSP error to be logged in the console:
	 *
	 * ```
	 * Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of
	 * script in the following Content Security Policy directive: "default-src 'self'". Note that
	 * 'script-src' was not explicitly set, so 'default-src' is used as a fallback.
	 * ```
	 *
	 * This error is harmless but annoying. To prevent the error from showing up, put the `ngCsp`
	 * directive on an element of the HTML document that appears before the `<script>` tag that loads
	 * the `angular.js` file.
	 *
	 * *Note: This directive is only available in the `ng-csp` and `data-ng-csp` attribute form.*
	 *
	 * You can specify which of the CSP related AngularJS features should be deactivated by providing
	 * a value for the `ng-csp` attribute. The options are as follows:
	 *
	 * * no-inline-style: this stops AngularJS from injecting CSS styles into the DOM
	 *
	 * * no-unsafe-eval: this stops AngularJS from optimizing $parse with unsafe eval of strings
	 *
	 * You can use these values in the following combinations:
	 *
	 *
	 * * No declaration means that AngularJS will assume that you can do inline styles, but it will do
	 * a runtime check for unsafe-eval. E.g. `<body>`. This is backwardly compatible with previous
	 * versions of AngularJS.
	 *
	 * * A simple `ng-csp` (or `data-ng-csp`) attribute will tell AngularJS to deactivate both inline
	 * styles and unsafe eval. E.g. `<body ng-csp>`. This is backwardly compatible with previous
	 * versions of AngularJS.
	 *
	 * * Specifying only `no-unsafe-eval` tells AngularJS that we must not use eval, but that we can
	 * inject inline styles. E.g. `<body ng-csp="no-unsafe-eval">`.
	 *
	 * * Specifying only `no-inline-style` tells AngularJS that we must not inject styles, but that we can
	 * run eval - no automatic check for unsafe eval will occur. E.g. `<body ng-csp="no-inline-style">`
	 *
	 * * Specifying both `no-unsafe-eval` and `no-inline-style` tells AngularJS that we must not inject
	 * styles nor use eval, which is the same as an empty: ng-csp.
	 * E.g.`<body ng-csp="no-inline-style;no-unsafe-eval">`
	 *
	 * @example
	 *
	 * This example shows how to apply the `ngCsp` directive to the `html` tag.
	   ```html
	     <!doctype html>
	     <html ng-app ng-csp>
	     ...
	     ...
	     </html>
	   ```
	
	  <!-- Note: the `.csp` suffix in the example name triggers CSP mode in our http server! -->
	  <example name="example.csp" module="cspExample" ng-csp="true">
	    <file name="index.html">
	      <div ng-controller="MainController as ctrl">
	        <div>
	          <button ng-click="ctrl.inc()" id="inc">Increment</button>
	          <span id="counter">
	            {{ctrl.counter}}
	          </span>
	        </div>
	
	        <div>
	          <button ng-click="ctrl.evil()" id="evil">Evil</button>
	          <span id="evilError">
	            {{ctrl.evilError}}
	          </span>
	        </div>
	      </div>
	    </file>
	    <file name="script.js">
	       angular.module('cspExample', [])
	         .controller('MainController', function MainController() {
	            this.counter = 0;
	            this.inc = function() {
	              this.counter++;
	            };
	            this.evil = function() {
	              try {
	                eval('1+2'); // eslint-disable-line no-eval
	              } catch (e) {
	                this.evilError = e.message;
	              }
	            };
	          });
	    </file>
	    <file name="protractor.js" type="protractor">
	      var util, webdriver;
	
	      var incBtn = element(by.id('inc'));
	      var counter = element(by.id('counter'));
	      var evilBtn = element(by.id('evil'));
	      var evilError = element(by.id('evilError'));
	
	      function getAndClearSevereErrors() {
	        return browser.manage().logs().get('browser').then(function(browserLog) {
	          return browserLog.filter(function(logEntry) {
	            return logEntry.level.value > webdriver.logging.Level.WARNING.value;
	          });
	        });
	      }
	
	      function clearErrors() {
	        getAndClearSevereErrors();
	      }
	
	      function expectNoErrors() {
	        getAndClearSevereErrors().then(function(filteredLog) {
	          expect(filteredLog.length).toEqual(0);
	          if (filteredLog.length) {
	            console.log('browser console errors: ' + util.inspect(filteredLog));
	          }
	        });
	      }
	
	      function expectError(regex) {
	        getAndClearSevereErrors().then(function(filteredLog) {
	          var found = false;
	          filteredLog.forEach(function(log) {
	            if (log.message.match(regex)) {
	              found = true;
	            }
	          });
	          if (!found) {
	            throw new Error('expected an error that matches ' + regex);
	          }
	        });
	      }
	
	      beforeEach(function() {
	        util = require('util');
	        webdriver = require('selenium-webdriver');
	      });
	
	      // For now, we only test on Chrome,
	      // as Safari does not load the page with Protractor's injected scripts,
	      // and Firefox webdriver always disables content security policy (#6358)
	      if (browser.params.browser !== 'chrome') {
	        return;
	      }
	
	      it('should not report errors when the page is loaded', function() {
	        // clear errors so we are not dependent on previous tests
	        clearErrors();
	        // Need to reload the page as the page is already loaded when
	        // we come here
	        browser.driver.getCurrentUrl().then(function(url) {
	          browser.get(url);
	        });
	        expectNoErrors();
	      });
	
	      it('should evaluate expressions', function() {
	        expect(counter.getText()).toEqual('0');
	        incBtn.click();
	        expect(counter.getText()).toEqual('1');
	        expectNoErrors();
	      });
	
	      it('should throw and report an error when using "eval"', function() {
	        evilBtn.click();
	        expect(evilError.getText()).toMatch(/Content Security Policy/);
	        expectError(/Content Security Policy/);
	      });
	    </file>
	  </example>
	  */// `ngCsp` is not implemented as a proper directive any more, because we need it be processed while
	// we bootstrap the app (before `$parse` is instantiated). For this reason, we just have the `csp()`
	// fn that looks for the `ng-csp` attribute anywhere in the current doc.
	/**
	 * @ngdoc directive
	 * @name ngClick
	 * @restrict A
	 * @element ANY
	 * @priority 0
	 *
	 * @description
	 * The ngClick directive allows you to specify custom behavior when
	 * an element is clicked.
	 *
	 * @param {expression} ngClick {@link guide/expression Expression} to evaluate upon
	 * click. ({@link guide/expression#-event- Event object is available as `$event`})
	 *
	 * @example
	   <example name="ng-click">
	     <file name="index.html">
	      <button ng-click="count = count + 1" ng-init="count=0">
	        Increment
	      </button>
	      <span>
	        count: {{count}}
	      </span>
	     </file>
	     <file name="protractor.js" type="protractor">
	       it('should check ng-click', function() {
	         expect(element(by.binding('count')).getText()).toMatch('0');
	         element(by.css('button')).click();
	         expect(element(by.binding('count')).getText()).toMatch('1');
	       });
	     </file>
	   </example>
	 *//*
	 * A collection of directives that allows creation of custom event handlers that are defined as
	 * AngularJS expressions and are compiled and executed within the current scope.
	 */var ngEventDirectives={};// For events that might fire synchronously during DOM manipulation
	// we need to execute their event handlers asynchronously using $evalAsync,
	// so that they are not executed in an inconsistent state.
	var forceAsyncEvents={'blur':true,'focus':true};forEach('click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste'.split(' '),function(eventName){var directiveName=directiveNormalize('ng-'+eventName);ngEventDirectives[directiveName]=['$parse','$rootScope','$exceptionHandler',function($parse,$rootScope,$exceptionHandler){return createEventDirective($parse,$rootScope,$exceptionHandler,directiveName,eventName,forceAsyncEvents[eventName]);}];});function createEventDirective($parse,$rootScope,$exceptionHandler,directiveName,eventName,forceAsync){return{restrict:'A',compile:function compile($element,attr){// NOTE:
	// We expose the powerful `$event` object on the scope that provides access to the Window,
	// etc. This is OK, because expressions are not sandboxed any more (and the expression
	// sandbox was never meant to be a security feature anyway).
	var fn=$parse(attr[directiveName]);return function ngEventHandler(scope,element){element.on(eventName,function(event){var callback=function callback(){fn(scope,{$event:event});};if(!$rootScope.$$phase){scope.$apply(callback);}else if(forceAsync){scope.$evalAsync(callback);}else{try{callback();}catch(error){$exceptionHandler(error);}}});};}};}/**
	 * @ngdoc directive
	 * @name ngDblclick
	 * @restrict A
	 * @element ANY
	 * @priority 0
	 *
	 * @description
	 * The `ngDblclick` directive allows you to specify custom behavior on a dblclick event.
	 *
	 * @param {expression} ngDblclick {@link guide/expression Expression} to evaluate upon
	 * a dblclick. (The Event object is available as `$event`)
	 *
	 * @example
	   <example name="ng-dblclick">
	     <file name="index.html">
	      <button ng-dblclick="count = count + 1" ng-init="count=0">
	        Increment (on double click)
	      </button>
	      count: {{count}}
	     </file>
	   </example>
	 *//**
	 * @ngdoc directive
	 * @name ngMousedown
	 * @restrict A
	 * @element ANY
	 * @priority 0
	 *
	 * @description
	 * The ngMousedown directive allows you to specify custom behavior on mousedown event.
	 *
	 * @param {expression} ngMousedown {@link guide/expression Expression} to evaluate upon
	 * mousedown. ({@link guide/expression#-event- Event object is available as `$event`})
	 *
	 * @example
	   <example name="ng-mousedown">
	     <file name="index.html">
	      <button ng-mousedown="count = count + 1" ng-init="count=0">
	        Increment (on mouse down)
	      </button>
	      count: {{count}}
	     </file>
	   </example>
	 *//**
	 * @ngdoc directive
	 * @name ngMouseup
	 * @restrict A
	 * @element ANY
	 * @priority 0
	 *
	 * @description
	 * Specify custom behavior on mouseup event.
	 *
	 * @param {expression} ngMouseup {@link guide/expression Expression} to evaluate upon
	 * mouseup. ({@link guide/expression#-event- Event object is available as `$event`})
	 *
	 * @example
	   <example name="ng-mouseup">
	     <file name="index.html">
	      <button ng-mouseup="count = count + 1" ng-init="count=0">
	        Increment (on mouse up)
	      </button>
	      count: {{count}}
	     </file>
	   </example>
	 *//**
	 * @ngdoc directive
	 * @name ngMouseover
	 * @restrict A
	 * @element ANY
	 * @priority 0
	 *
	 * @description
	 * Specify custom behavior on mouseover event.
	 *
	 * @param {expression} ngMouseover {@link guide/expression Expression} to evaluate upon
	 * mouseover. ({@link guide/expression#-event- Event object is available as `$event`})
	 *
	 * @example
	   <example name="ng-mouseover">
	     <file name="index.html">
	      <button ng-mouseover="count = count + 1" ng-init="count=0">
	        Increment (when mouse is over)
	      </button>
	      count: {{count}}
	     </file>
	   </example>
	 *//**
	 * @ngdoc directive
	 * @name ngMouseenter
	 * @restrict A
	 * @element ANY
	 * @priority 0
	 *
	 * @description
	 * Specify custom behavior on mouseenter event.
	 *
	 * @param {expression} ngMouseenter {@link guide/expression Expression} to evaluate upon
	 * mouseenter. ({@link guide/expression#-event- Event object is available as `$event`})
	 *
	 * @example
	   <example name="ng-mouseenter">
	     <file name="index.html">
	      <button ng-mouseenter="count = count + 1" ng-init="count=0">
	        Increment (when mouse enters)
	      </button>
	      count: {{count}}
	     </file>
	   </example>
	 *//**
	 * @ngdoc directive
	 * @name ngMouseleave
	 * @restrict A
	 * @element ANY
	 * @priority 0
	 *
	 * @description
	 * Specify custom behavior on mouseleave event.
	 *
	 * @param {expression} ngMouseleave {@link guide/expression Expression} to evaluate upon
	 * mouseleave. ({@link guide/expression#-event- Event object is available as `$event`})
	 *
	 * @example
	   <example name="ng-mouseleave">
	     <file name="index.html">
	      <button ng-mouseleave="count = count + 1" ng-init="count=0">
	        Increment (when mouse leaves)
	      </button>
	      count: {{count}}
	     </file>
	   </example>
	 *//**
	 * @ngdoc directive
	 * @name ngMousemove
	 * @restrict A
	 * @element ANY
	 * @priority 0
	 *
	 * @description
	 * Specify custom behavior on mousemove event.
	 *
	 * @param {expression} ngMousemove {@link guide/expression Expression} to evaluate upon
	 * mousemove. ({@link guide/expression#-event- Event object is available as `$event`})
	 *
	 * @example
	   <example name="ng-mousemove">
	     <file name="index.html">
	      <button ng-mousemove="count = count + 1" ng-init="count=0">
	        Increment (when mouse moves)
	      </button>
	      count: {{count}}
	     </file>
	   </example>
	 *//**
	 * @ngdoc directive
	 * @name ngKeydown
	 * @restrict A
	 * @element ANY
	 * @priority 0
	 *
	 * @description
	 * Specify custom behavior on keydown event.
	 *
	 * @param {expression} ngKeydown {@link guide/expression Expression} to evaluate upon
	 * keydown. (Event object is available as `$event` and can be interrogated for keyCode, altKey, etc.)
	 *
	 * @example
	   <example name="ng-keydown">
	     <file name="index.html">
	      <input ng-keydown="count = count + 1" ng-init="count=0">
	      key down count: {{count}}
	     </file>
	   </example>
	 *//**
	 * @ngdoc directive
	 * @name ngKeyup
	 * @restrict A
	 * @element ANY
	 * @priority 0
	 *
	 * @description
	 * Specify custom behavior on keyup event.
	 *
	 * @param {expression} ngKeyup {@link guide/expression Expression} to evaluate upon
	 * keyup. (Event object is available as `$event` and can be interrogated for keyCode, altKey, etc.)
	 *
	 * @example
	   <example name="ng-keyup">
	     <file name="index.html">
	       <p>Typing in the input box below updates the key count</p>
	       <input ng-keyup="count = count + 1" ng-init="count=0"> key up count: {{count}}
	
	       <p>Typing in the input box below updates the keycode</p>
	       <input ng-keyup="event=$event">
	       <p>event keyCode: {{ event.keyCode }}</p>
	       <p>event altKey: {{ event.altKey }}</p>
	     </file>
	   </example>
	 *//**
	 * @ngdoc directive
	 * @name ngKeypress
	 * @restrict A
	 * @element ANY
	 *
	 * @description
	 * Specify custom behavior on keypress event.
	 *
	 * @param {expression} ngKeypress {@link guide/expression Expression} to evaluate upon
	 * keypress. ({@link guide/expression#-event- Event object is available as `$event`}
	 * and can be interrogated for keyCode, altKey, etc.)
	 *
	 * @example
	   <example name="ng-keypress">
	     <file name="index.html">
	      <input ng-keypress="count = count + 1" ng-init="count=0">
	      key press count: {{count}}
	     </file>
	   </example>
	 *//**
	 * @ngdoc directive
	 * @name ngSubmit
	 * @restrict A
	 * @element form
	 * @priority 0
	 *
	 * @description
	 * Enables binding AngularJS expressions to onsubmit events.
	 *
	 * Additionally it prevents the default action (which for form means sending the request to the
	 * server and reloading the current page), but only if the form does not contain `action`,
	 * `data-action`, or `x-action` attributes.
	 *
	 * <div class="alert alert-warning">
	 * **Warning:** Be careful not to cause "double-submission" by using both the `ngClick` and
	 * `ngSubmit` handlers together. See the
	 * {@link form#submitting-a-form-and-preventing-the-default-action `form` directive documentation}
	 * for a detailed discussion of when `ngSubmit` may be triggered.
	 * </div>
	 *
	 * @param {expression} ngSubmit {@link guide/expression Expression} to eval.
	 * ({@link guide/expression#-event- Event object is available as `$event`})
	 *
	 * @example
	   <example module="submitExample" name="ng-submit">
	     <file name="index.html">
	      <script>
	        angular.module('submitExample', [])
	          .controller('ExampleController', ['$scope', function($scope) {
	            $scope.list = [];
	            $scope.text = 'hello';
	            $scope.submit = function() {
	              if ($scope.text) {
	                $scope.list.push(this.text);
	                $scope.text = '';
	              }
	            };
	          }]);
	      </script>
	      <form ng-submit="submit()" ng-controller="ExampleController">
	        Enter text and hit enter:
	        <input type="text" ng-model="text" name="text" />
	        <input type="submit" id="submit" value="Submit" />
	        <pre>list={{list}}</pre>
	      </form>
	     </file>
	     <file name="protractor.js" type="protractor">
	       it('should check ng-submit', function() {
	         expect(element(by.binding('list')).getText()).toBe('list=[]');
	         element(by.css('#submit')).click();
	         expect(element(by.binding('list')).getText()).toContain('hello');
	         expect(element(by.model('text')).getAttribute('value')).toBe('');
	       });
	       it('should ignore empty strings', function() {
	         expect(element(by.binding('list')).getText()).toBe('list=[]');
	         element(by.css('#submit')).click();
	         element(by.css('#submit')).click();
	         expect(element(by.binding('list')).getText()).toContain('hello');
	        });
	     </file>
	   </example>
	 *//**
	 * @ngdoc directive
	 * @name ngFocus
	 * @restrict A
	 * @element window, input, select, textarea, a
	 * @priority 0
	 *
	 * @description
	 * Specify custom behavior on focus event.
	 *
	 * Note: As the `focus` event is executed synchronously when calling `input.focus()`
	 * AngularJS executes the expression using `scope.$evalAsync` if the event is fired
	 * during an `$apply` to ensure a consistent state.
	 *
	 * @param {expression} ngFocus {@link guide/expression Expression} to evaluate upon
	 * focus. ({@link guide/expression#-event- Event object is available as `$event`})
	 *
	 * @example
	 * See {@link ng.directive:ngClick ngClick}
	 *//**
	 * @ngdoc directive
	 * @name ngBlur
	 * @restrict A
	 * @element window, input, select, textarea, a
	 * @priority 0
	 *
	 * @description
	 * Specify custom behavior on blur event.
	 *
	 * A [blur event](https://developer.mozilla.org/en-US/docs/Web/Events/blur) fires when
	 * an element has lost focus.
	 *
	 * Note: As the `blur` event is executed synchronously also during DOM manipulations
	 * (e.g. removing a focussed input),
	 * AngularJS executes the expression using `scope.$evalAsync` if the event is fired
	 * during an `$apply` to ensure a consistent state.
	 *
	 * @param {expression} ngBlur {@link guide/expression Expression} to evaluate upon
	 * blur. ({@link guide/expression#-event- Event object is available as `$event`})
	 *
	 * @example
	 * See {@link ng.directive:ngClick ngClick}
	 *//**
	 * @ngdoc directive
	 * @name ngCopy
	 * @restrict A
	 * @element window, input, select, textarea, a
	 * @priority 0
	 *
	 * @description
	 * Specify custom behavior on copy event.
	 *
	 * @param {expression} ngCopy {@link guide/expression Expression} to evaluate upon
	 * copy. ({@link guide/expression#-event- Event object is available as `$event`})
	 *
	 * @example
	   <example name="ng-copy">
	     <file name="index.html">
	      <input ng-copy="copied=true" ng-init="copied=false; value='copy me'" ng-model="value">
	      copied: {{copied}}
	     </file>
	   </example>
	 *//**
	 * @ngdoc directive
	 * @name ngCut
	 * @restrict A
	 * @element window, input, select, textarea, a
	 * @priority 0
	 *
	 * @description
	 * Specify custom behavior on cut event.
	 *
	 * @param {expression} ngCut {@link guide/expression Expression} to evaluate upon
	 * cut. ({@link guide/expression#-event- Event object is available as `$event`})
	 *
	 * @example
	   <example name="ng-cut">
	     <file name="index.html">
	      <input ng-cut="cut=true" ng-init="cut=false; value='cut me'" ng-model="value">
	      cut: {{cut}}
	     </file>
	   </example>
	 *//**
	 * @ngdoc directive
	 * @name ngPaste
	 * @restrict A
	 * @element window, input, select, textarea, a
	 * @priority 0
	 *
	 * @description
	 * Specify custom behavior on paste event.
	 *
	 * @param {expression} ngPaste {@link guide/expression Expression} to evaluate upon
	 * paste. ({@link guide/expression#-event- Event object is available as `$event`})
	 *
	 * @example
	   <example name="ng-paste">
	     <file name="index.html">
	      <input ng-paste="paste=true" ng-init="paste=false" placeholder='paste here'>
	      pasted: {{paste}}
	     </file>
	   </example>
	 *//**
	 * @ngdoc directive
	 * @name ngIf
	 * @restrict A
	 * @multiElement
	 *
	 * @description
	 * The `ngIf` directive removes or recreates a portion of the DOM tree based on an
	 * {expression}. If the expression assigned to `ngIf` evaluates to a false
	 * value then the element is removed from the DOM, otherwise a clone of the
	 * element is reinserted into the DOM.
	 *
	 * `ngIf` differs from `ngShow` and `ngHide` in that `ngIf` completely removes and recreates the
	 * element in the DOM rather than changing its visibility via the `display` css property.  A common
	 * case when this difference is significant is when using css selectors that rely on an element's
	 * position within the DOM, such as the `:first-child` or `:last-child` pseudo-classes.
	 *
	 * Note that when an element is removed using `ngIf` its scope is destroyed and a new scope
	 * is created when the element is restored.  The scope created within `ngIf` inherits from
	 * its parent scope using
	 * [prototypal inheritance](https://github.com/angular/angular.js/wiki/Understanding-Scopes#javascript-prototypal-inheritance).
	 * An important implication of this is if `ngModel` is used within `ngIf` to bind to
	 * a javascript primitive defined in the parent scope. In this case any modifications made to the
	 * variable within the child scope will override (hide) the value in the parent scope.
	 *
	 * Also, `ngIf` recreates elements using their compiled state. An example of this behavior
	 * is if an element's class attribute is directly modified after it's compiled, using something like
	 * jQuery's `.addClass()` method, and the element is later removed. When `ngIf` recreates the element
	 * the added class will be lost because the original compiled state is used to regenerate the element.
	 *
	 * Additionally, you can provide animations via the `ngAnimate` module to animate the `enter`
	 * and `leave` effects.
	 *
	 * @animations
	 * | Animation                        | Occurs                               |
	 * |----------------------------------|-------------------------------------|
	 * | {@link ng.$animate#enter enter}  | just after the `ngIf` contents change and a new DOM element is created and injected into the `ngIf` container |
	 * | {@link ng.$animate#leave leave}  | just before the `ngIf` contents are removed from the DOM |
	 *
	 * @element ANY
	 * @scope
	 * @priority 600
	 * @param {expression} ngIf If the {@link guide/expression expression} is falsy then
	 *     the element is removed from the DOM tree. If it is truthy a copy of the compiled
	 *     element is added to the DOM tree.
	 *
	 * @example
	  <example module="ngAnimate" deps="angular-animate.js" animations="true" name="ng-if">
	    <file name="index.html">
	      <label>Click me: <input type="checkbox" ng-model="checked" ng-init="checked=true" /></label><br/>
	      Show when checked:
	      <span ng-if="checked" class="animate-if">
	        This is removed when the checkbox is unchecked.
	      </span>
	    </file>
	    <file name="animations.css">
	      .animate-if {
	        background:white;
	        border:1px solid black;
	        padding:10px;
	      }
	
	      .animate-if.ng-enter, .animate-if.ng-leave {
	        transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
	      }
	
	      .animate-if.ng-enter,
	      .animate-if.ng-leave.ng-leave-active {
	        opacity:0;
	      }
	
	      .animate-if.ng-leave,
	      .animate-if.ng-enter.ng-enter-active {
	        opacity:1;
	      }
	    </file>
	  </example>
	 */var ngIfDirective=['$animate','$compile',function($animate,$compile){return{multiElement:true,transclude:'element',priority:600,terminal:true,restrict:'A',$$tlb:true,link:function link($scope,$element,$attr,ctrl,$transclude){var block,childScope,previousElements;$scope.$watch($attr.ngIf,function ngIfWatchAction(value){if(value){if(!childScope){$transclude(function(clone,newScope){childScope=newScope;clone[clone.length++]=$compile.$$createComment('end ngIf',$attr.ngIf);// Note: We only need the first/last node of the cloned nodes.
	// However, we need to keep the reference to the jqlite wrapper as it might be changed later
	// by a directive with templateUrl when its template arrives.
	block={clone:clone};$animate.enter(clone,$element.parent(),$element);});}}else{if(previousElements){previousElements.remove();previousElements=null;}if(childScope){childScope.$destroy();childScope=null;}if(block){previousElements=getBlockNodes(block.clone);$animate.leave(previousElements).done(function(response){if(response!==false)previousElements=null;});block=null;}}});}};}];/**
	 * @ngdoc directive
	 * @name ngInclude
	 * @restrict ECA
	 * @scope
	 * @priority -400
	 *
	 * @description
	 * Fetches, compiles and includes an external HTML fragment.
	 *
	 * By default, the template URL is restricted to the same domain and protocol as the
	 * application document. This is done by calling {@link $sce#getTrustedResourceUrl
	 * $sce.getTrustedResourceUrl} on it. To load templates from other domains or protocols
	 * you may either add them to your {@link ng.$sceDelegateProvider#trustedResourceUrlList trusted
	 * resource URL list} or {@link $sce#trustAsResourceUrl wrap them} as trusted values. Refer to
	 * AngularJS's {@link ng.$sce Strict Contextual Escaping}.
	 *
	 * In addition, the browser's
	 * [Same Origin Policy](https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest)
	 * and [Cross-Origin Resource Sharing (CORS)](http://www.w3.org/TR/cors/)
	 * policy may further restrict whether the template is successfully loaded.
	 * For example, `ngInclude` won't work for cross-domain requests on all browsers and for `file://`
	 * access on some browsers.
	 *
	 * @animations
	 * | Animation                        | Occurs                              |
	 * |----------------------------------|-------------------------------------|
	 * | {@link ng.$animate#enter enter}  | when the expression changes, on the new include |
	 * | {@link ng.$animate#leave leave}  | when the expression changes, on the old include |
	 *
	 * The enter and leave animation occur concurrently.
	 *
	 * @param {string} ngInclude|src AngularJS expression evaluating to URL. If the source is a string constant,
	 *                 make sure you wrap it in **single** quotes, e.g. `src="'myPartialTemplate.html'"`.
	 * @param {string=} onload Expression to evaluate when a new partial is loaded.
	 *                  <div class="alert alert-warning">
	 *                  **Note:** When using onload on SVG elements in IE11, the browser will try to call
	 *                  a function with the name on the window element, which will usually throw a
	 *                  "function is undefined" error. To fix this, you can instead use `data-onload` or a
	 *                  different form that {@link guide/directive#normalization matches} `onload`.
	 *                  </div>
	   *
	 * @param {string=} autoscroll Whether `ngInclude` should call {@link ng.$anchorScroll
	 *                  $anchorScroll} to scroll the viewport after the content is loaded.
	 *
	 *                  - If the attribute is not set, disable scrolling.
	 *                  - If the attribute is set without value, enable scrolling.
	 *                  - Otherwise enable scrolling only if the expression evaluates to truthy value.
	 *
	 * @example
	  <example module="includeExample" deps="angular-animate.js" animations="true" name="ng-include">
	    <file name="index.html">
	     <div ng-controller="ExampleController">
	       <select ng-model="template" ng-options="t.name for t in templates">
	        <option value="">(blank)</option>
	       </select>
	       url of the template: <code>{{template.url}}</code>
	       <hr/>
	       <div class="slide-animate-container">
	         <div class="slide-animate" ng-include="template.url"></div>
	       </div>
	     </div>
	    </file>
	    <file name="script.js">
	      angular.module('includeExample', ['ngAnimate'])
	        .controller('ExampleController', ['$scope', function($scope) {
	          $scope.templates =
	            [{ name: 'template1.html', url: 'template1.html'},
	             { name: 'template2.html', url: 'template2.html'}];
	          $scope.template = $scope.templates[0];
	        }]);
	     </file>
	    <file name="template1.html">
	      Content of template1.html
	    </file>
	    <file name="template2.html">
	      Content of template2.html
	    </file>
	    <file name="animations.css">
	      .slide-animate-container {
	        position:relative;
	        background:white;
	        border:1px solid black;
	        height:40px;
	        overflow:hidden;
	      }
	
	      .slide-animate {
	        padding:10px;
	      }
	
	      .slide-animate.ng-enter, .slide-animate.ng-leave {
	        transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
	
	        position:absolute;
	        top:0;
	        left:0;
	        right:0;
	        bottom:0;
	        display:block;
	        padding:10px;
	      }
	
	      .slide-animate.ng-enter {
	        top:-50px;
	      }
	      .slide-animate.ng-enter.ng-enter-active {
	        top:0;
	      }
	
	      .slide-animate.ng-leave {
	        top:0;
	      }
	      .slide-animate.ng-leave.ng-leave-active {
	        top:50px;
	      }
	    </file>
	    <file name="protractor.js" type="protractor">
	      var templateSelect = element(by.model('template'));
	      var includeElem = element(by.css('[ng-include]'));
	
	      it('should load template1.html', function() {
	        expect(includeElem.getText()).toMatch(/Content of template1.html/);
	      });
	
	      it('should load template2.html', function() {
	        if (browser.params.browser === 'firefox') {
	          // Firefox can't handle using selects
	          // See https://github.com/angular/protractor/issues/480
	          return;
	        }
	        templateSelect.click();
	        templateSelect.all(by.css('option')).get(2).click();
	        expect(includeElem.getText()).toMatch(/Content of template2.html/);
	      });
	
	      it('should change to blank', function() {
	        if (browser.params.browser === 'firefox') {
	          // Firefox can't handle using selects
	          return;
	        }
	        templateSelect.click();
	        templateSelect.all(by.css('option')).get(0).click();
	        expect(includeElem.isPresent()).toBe(false);
	      });
	    </file>
	  </example>
	 *//**
	 * @ngdoc event
	 * @name ngInclude#$includeContentRequested
	 * @eventType emit on the scope ngInclude was declared in
	 * @description
	 * Emitted every time the ngInclude content is requested.
	 *
	 * @param {Object} angularEvent Synthetic event object.
	 * @param {String} src URL of content to load.
	 *//**
	 * @ngdoc event
	 * @name ngInclude#$includeContentLoaded
	 * @eventType emit on the current ngInclude scope
	 * @description
	 * Emitted every time the ngInclude content is reloaded.
	 *
	 * @param {Object} angularEvent Synthetic event object.
	 * @param {String} src URL of content to load.
	 *//**
	 * @ngdoc event
	 * @name ngInclude#$includeContentError
	 * @eventType emit on the scope ngInclude was declared in
	 * @description
	 * Emitted when a template HTTP request yields an erroneous response (status < 200 || status > 299)
	 *
	 * @param {Object} angularEvent Synthetic event object.
	 * @param {String} src URL of content to load.
	 */var ngIncludeDirective=['$templateRequest','$anchorScroll','$animate',function($templateRequest,$anchorScroll,$animate){return{restrict:'ECA',priority:400,terminal:true,transclude:'element',controller:angular.noop,compile:function compile(element,attr){var srcExp=attr.ngInclude||attr.src,onloadExp=attr.onload||'',autoScrollExp=attr.autoscroll;return function(scope,$element,$attr,ctrl,$transclude){var changeCounter=0,currentScope,previousElement,currentElement;var cleanupLastIncludeContent=function cleanupLastIncludeContent(){if(previousElement){previousElement.remove();previousElement=null;}if(currentScope){currentScope.$destroy();currentScope=null;}if(currentElement){$animate.leave(currentElement).done(function(response){if(response!==false)previousElement=null;});previousElement=currentElement;currentElement=null;}};scope.$watch(srcExp,function ngIncludeWatchAction(src){var afterAnimation=function afterAnimation(response){if(response!==false&&isDefined(autoScrollExp)&&(!autoScrollExp||scope.$eval(autoScrollExp))){$anchorScroll();}};var thisChangeId=++changeCounter;if(src){//set the 2nd param to true to ignore the template request error so that the inner
	//contents and scope can be cleaned up.
	$templateRequest(src,true).then(function(response){if(scope.$$destroyed)return;if(thisChangeId!==changeCounter)return;var newScope=scope.$new();ctrl.template=response;// Note: This will also link all children of ng-include that were contained in the original
	// html. If that content contains controllers, ... they could pollute/change the scope.
	// However, using ng-include on an element with additional content does not make sense...
	// Note: We can't remove them in the cloneAttchFn of $transclude as that
	// function is called before linking the content, which would apply child
	// directives to non existing elements.
	var clone=$transclude(newScope,function(clone){cleanupLastIncludeContent();$animate.enter(clone,null,$element).done(afterAnimation);});currentScope=newScope;currentElement=clone;currentScope.$emit('$includeContentLoaded',src);scope.$eval(onloadExp);},function(){if(scope.$$destroyed)return;if(thisChangeId===changeCounter){cleanupLastIncludeContent();scope.$emit('$includeContentError',src);}});scope.$emit('$includeContentRequested',src);}else{cleanupLastIncludeContent();ctrl.template=null;}});};}};}];// This directive is called during the $transclude call of the first `ngInclude` directive.
	// It will replace and compile the content of the element with the loaded template.
	// We need this directive so that the element content is already filled when
	// the link function of another directive on the same element as ngInclude
	// is called.
	var ngIncludeFillContentDirective=['$compile',function($compile){return{restrict:'ECA',priority:-400,require:'ngInclude',link:function link(scope,$element,$attr,ctrl){if(toString.call($element[0]).match(/SVG/)){// WebKit: https://bugs.webkit.org/show_bug.cgi?id=135698 --- SVG elements do not
	// support innerHTML, so detect this here and try to generate the contents
	// specially.
	$element.empty();$compile(jqLiteBuildFragment(ctrl.template,window.document).childNodes)(scope,function namespaceAdaptedClone(clone){$element.append(clone);},{futureParentElement:$element});return;}$element.html(ctrl.template);$compile($element.contents())(scope);}};}];/**
	 * @ngdoc directive
	 * @name ngInit
	 * @restrict AC
	 * @priority 450
	 * @element ANY
	 *
	 * @param {expression} ngInit {@link guide/expression Expression} to eval.
	 *
	 * @description
	 * The `ngInit` directive allows you to evaluate an expression in the
	 * current scope.
	 *
	 * <div class="alert alert-danger">
	 * This directive can be abused to add unnecessary amounts of logic into your templates.
	 * There are only a few appropriate uses of `ngInit`:
	 * <ul>
	 *   <li>aliasing special properties of {@link ng.directive:ngRepeat `ngRepeat`},
	 *     as seen in the demo below.</li>
	 *   <li>initializing data during development, or for examples, as seen throughout these docs.</li>
	 *   <li>injecting data via server side scripting.</li>
	 * </ul>
	 *
	 * Besides these few cases, you should use {@link guide/component Components} or
	 * {@link guide/controller Controllers} rather than `ngInit` to initialize values on a scope.
	 * </div>
	 *
	 * <div class="alert alert-warning">
	 * **Note**: If you have assignment in `ngInit` along with a {@link ng.$filter `filter`}, make
	 * sure you have parentheses to ensure correct operator precedence:
	 * <pre class="prettyprint">
	 * `<div ng-init="test1 = ($index | toString)"></div>`
	 * </pre>
	 * </div>
	 *
	 * @example
	   <example module="initExample" name="ng-init">
	     <file name="index.html">
	   <script>
	     angular.module('initExample', [])
	       .controller('ExampleController', ['$scope', function($scope) {
	         $scope.list = [['a', 'b'], ['c', 'd']];
	       }]);
	   </script>
	   <div ng-controller="ExampleController">
	     <div ng-repeat="innerList in list" ng-init="outerIndex = $index">
	       <div ng-repeat="value in innerList" ng-init="innerIndex = $index">
	          <span class="example-init">list[ {{outerIndex}} ][ {{innerIndex}} ] = {{value}};</span>
	       </div>
	     </div>
	   </div>
	     </file>
	     <file name="protractor.js" type="protractor">
	       it('should alias index positions', function() {
	         var elements = element.all(by.css('.example-init'));
	         expect(elements.get(0).getText()).toBe('list[ 0 ][ 0 ] = a;');
	         expect(elements.get(1).getText()).toBe('list[ 0 ][ 1 ] = b;');
	         expect(elements.get(2).getText()).toBe('list[ 1 ][ 0 ] = c;');
	         expect(elements.get(3).getText()).toBe('list[ 1 ][ 1 ] = d;');
	       });
	     </file>
	   </example>
	 */var ngInitDirective=ngDirective({priority:450,compile:function compile(){return{pre:function pre(scope,element,attrs){scope.$eval(attrs.ngInit);}};}});/**
	 * @ngdoc directive
	 * @name ngList
	 * @restrict A
	 * @priority 100
	 *
	 * @param {string=} ngList optional delimiter that should be used to split the value.
	 *
	 * @description
	 * Text input that converts between a delimited string and an array of strings. The default
	 * delimiter is a comma followed by a space - equivalent to `ng-list=", "`. You can specify a custom
	 * delimiter as the value of the `ngList` attribute - for example, `ng-list=" | "`.
	 *
	 * The behaviour of the directive is affected by the use of the `ngTrim` attribute.
	 * * If `ngTrim` is set to `"false"` then whitespace around both the separator and each
	 *   list item is respected. This implies that the user of the directive is responsible for
	 *   dealing with whitespace but also allows you to use whitespace as a delimiter, such as a
	 *   tab or newline character.
	 * * Otherwise whitespace around the delimiter is ignored when splitting (although it is respected
	 *   when joining the list items back together) and whitespace around each list item is stripped
	 *   before it is added to the model.
	 *
	 * @example
	 * ### Validation
	 *
	 * <example name="ngList-directive" module="listExample">
	 *   <file name="app.js">
	 *      angular.module('listExample', [])
	 *        .controller('ExampleController', ['$scope', function($scope) {
	 *          $scope.names = ['morpheus', 'neo', 'trinity'];
	 *        }]);
	 *   </file>
	 *   <file name="index.html">
	 *    <form name="myForm" ng-controller="ExampleController">
	 *      <label>List: <input name="namesInput" ng-model="names" ng-list required></label>
	 *      <span role="alert">
	 *        <span class="error" ng-show="myForm.namesInput.$error.required">
	 *        Required!</span>
	 *      </span>
	 *      <br>
	 *      <tt>names = {{names}}</tt><br/>
	 *      <tt>myForm.namesInput.$valid = {{myForm.namesInput.$valid}}</tt><br/>
	 *      <tt>myForm.namesInput.$error = {{myForm.namesInput.$error}}</tt><br/>
	 *      <tt>myForm.$valid = {{myForm.$valid}}</tt><br/>
	 *      <tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br/>
	 *     </form>
	 *   </file>
	 *   <file name="protractor.js" type="protractor">
	 *     var listInput = element(by.model('names'));
	 *     var names = element(by.exactBinding('names'));
	 *     var valid = element(by.binding('myForm.namesInput.$valid'));
	 *     var error = element(by.css('span.error'));
	 *
	 *     it('should initialize to model', function() {
	 *       expect(names.getText()).toContain('["morpheus","neo","trinity"]');
	 *       expect(valid.getText()).toContain('true');
	 *       expect(error.getCssValue('display')).toBe('none');
	 *     });
	 *
	 *     it('should be invalid if empty', function() {
	 *       listInput.clear();
	 *       listInput.sendKeys('');
	 *
	 *       expect(names.getText()).toContain('');
	 *       expect(valid.getText()).toContain('false');
	 *       expect(error.getCssValue('display')).not.toBe('none');
	 *     });
	 *   </file>
	 * </example>
	 *
	 * @example
	 * ### Splitting on newline
	 *
	 * <example name="ngList-directive-newlines">
	 *   <file name="index.html">
	 *    <textarea ng-model="list" ng-list="&#10;" ng-trim="false"></textarea>
	 *    <pre>{{ list | json }}</pre>
	 *   </file>
	 *   <file name="protractor.js" type="protractor">
	 *     it("should split the text by newlines", function() {
	 *       var listInput = element(by.model('list'));
	 *       var output = element(by.binding('list | json'));
	 *       listInput.sendKeys('abc\ndef\nghi');
	 *       expect(output.getText()).toContain('[\n  "abc",\n  "def",\n  "ghi"\n]');
	 *     });
	 *   </file>
	 * </example>
	 *
	 */var ngListDirective=function ngListDirective(){return{restrict:'A',priority:100,require:'ngModel',link:function link(scope,element,attr,ctrl){var ngList=attr.ngList||', ';var trimValues=attr.ngTrim!=='false';var separator=trimValues?trim(ngList):ngList;var parse=function parse(viewValue){// If the viewValue is invalid (say required but empty) it will be `undefined`
	if(isUndefined(viewValue))return;var list=[];if(viewValue){forEach(viewValue.split(separator),function(value){if(value)list.push(trimValues?trim(value):value);});}return list;};ctrl.$parsers.push(parse);ctrl.$formatters.push(function(value){if(isArray(value)){return value.join(ngList);}return undefined;});// Override the standard $isEmpty because an empty array means the input is empty.
	ctrl.$isEmpty=function(value){return!value||!value.length;};}};};/* global VALID_CLASS: true,
	  INVALID_CLASS: true,
	  PRISTINE_CLASS: true,
	  DIRTY_CLASS: true,
	  UNTOUCHED_CLASS: true,
	  TOUCHED_CLASS: true,
	  PENDING_CLASS: true,
	  addSetValidityMethod: true,
	  setupValidity: true,
	  defaultModelOptions: false
	*/var VALID_CLASS='ng-valid',INVALID_CLASS='ng-invalid',PRISTINE_CLASS='ng-pristine',DIRTY_CLASS='ng-dirty',UNTOUCHED_CLASS='ng-untouched',TOUCHED_CLASS='ng-touched',EMPTY_CLASS='ng-empty',NOT_EMPTY_CLASS='ng-not-empty';var ngModelMinErr=minErr('ngModel');/**
	 * @ngdoc type
	 * @name ngModel.NgModelController
	 * @property {*} $viewValue The actual value from the control's view. For `input` elements, this is a
	 * String. See {@link ngModel.NgModelController#$setViewValue} for information about when the $viewValue
	 * is set.
	 *
	 * @property {*} $modelValue The value in the model that the control is bound to.
	 *
	 * @property {Array.<Function>} $parsers Array of functions to execute, as a pipeline, whenever
	 *  the control updates the ngModelController with a new {@link ngModel.NgModelController#$viewValue
	    `$viewValue`} from the DOM, usually via user input.
	    See {@link ngModel.NgModelController#$setViewValue `$setViewValue()`} for a detailed lifecycle explanation.
	    Note that the `$parsers` are not called when the bound ngModel expression changes programmatically.
	
	  The functions are called in array order, each passing
	    its return value through to the next. The last return value is forwarded to the
	    {@link ngModel.NgModelController#$validators `$validators`} collection.
	
	  Parsers are used to sanitize / convert the {@link ngModel.NgModelController#$viewValue
	    `$viewValue`}.
	
	  Returning `undefined` from a parser means a parse error occurred. In that case,
	    no {@link ngModel.NgModelController#$validators `$validators`} will run and the `ngModel`
	    will be set to `undefined` unless {@link ngModelOptions `ngModelOptions.allowInvalid`}
	    is set to `true`. The parse error is stored in `ngModel.$error.parse`.
	
	  This simple example shows a parser that would convert text input value to lowercase:
	 * ```js
	 * function parse(value) {
	 *   if (value) {
	 *     return value.toLowerCase();
	 *   }
	 * }
	 * ngModelController.$parsers.push(parse);
	 * ```
	
	 *
	 * @property {Array.<Function>} $formatters Array of functions to execute, as a pipeline, whenever
	    the bound ngModel expression changes programmatically. The `$formatters` are not called when the
	    value of the control is changed by user interaction.
	
	  Formatters are used to format / convert the {@link ngModel.NgModelController#$modelValue
	    `$modelValue`} for display in the control.
	
	  The functions are called in reverse array order, each passing the value through to the
	    next. The last return value is used as the actual DOM value.
	
	  This simple example shows a formatter that would convert the model value to uppercase:
	
	 * ```js
	 * function format(value) {
	 *   if (value) {
	 *     return value.toUpperCase();
	 *   }
	 * }
	 * ngModel.$formatters.push(format);
	 * ```
	 *
	 * @property {Object.<string, function>} $validators A collection of validators that are applied
	 *      whenever the model value changes. The key value within the object refers to the name of the
	 *      validator while the function refers to the validation operation. The validation operation is
	 *      provided with the model value as an argument and must return a true or false value depending
	 *      on the response of that validation.
	 *
	 * ```js
	 * ngModel.$validators.validCharacters = function(modelValue, viewValue) {
	 *   var value = modelValue || viewValue;
	 *   return /[0-9]+/.test(value) &&
	 *          /[a-z]+/.test(value) &&
	 *          /[A-Z]+/.test(value) &&
	 *          /\W+/.test(value);
	 * };
	 * ```
	 *
	 * @property {Object.<string, function>} $asyncValidators A collection of validations that are expected to
	 *      perform an asynchronous validation (e.g. a HTTP request). The validation function that is provided
	 *      is expected to return a promise when it is run during the model validation process. Once the promise
	 *      is delivered then the validation status will be set to true when fulfilled and false when rejected.
	 *      When the asynchronous validators are triggered, each of the validators will run in parallel and the model
	 *      value will only be updated once all validators have been fulfilled. As long as an asynchronous validator
	 *      is unfulfilled, its key will be added to the controllers `$pending` property. Also, all asynchronous validators
	 *      will only run once all synchronous validators have passed.
	 *
	 * Please note that if $http is used then it is important that the server returns a success HTTP response code
	 * in order to fulfill the validation and a status level of `4xx` in order to reject the validation.
	 *
	 * ```js
	 * ngModel.$asyncValidators.uniqueUsername = function(modelValue, viewValue) {
	 *   var value = modelValue || viewValue;
	 *
	 *   // Lookup user by username
	 *   return $http.get('/api/users/' + value).
	 *      then(function resolved() {
	 *        //username exists, this means validation fails
	 *        return $q.reject('exists');
	 *      }, function rejected() {
	 *        //username does not exist, therefore this validation passes
	 *        return true;
	 *      });
	 * };
	 * ```
	 *
	 * @property {Array.<Function>} $viewChangeListeners Array of functions to execute whenever
	 *     a change to {@link ngModel.NgModelController#$viewValue `$viewValue`} has caused a change
	 *     to {@link ngModel.NgModelController#$modelValue `$modelValue`}.
	 *     It is called with no arguments, and its return value is ignored.
	 *     This can be used in place of additional $watches against the model value.
	 *
	 * @property {Object} $error An object hash with all failing validator ids as keys.
	 * @property {Object} $pending An object hash with all pending validator ids as keys.
	 *
	 * @property {boolean} $untouched True if control has not lost focus yet.
	 * @property {boolean} $touched True if control has lost focus.
	 * @property {boolean} $pristine True if user has not interacted with the control yet.
	 * @property {boolean} $dirty True if user has already interacted with the control.
	 * @property {boolean} $valid True if there is no error.
	 * @property {boolean} $invalid True if at least one error on the control.
	 * @property {string} $name The name attribute of the control.
	 *
	 * @description
	 *
	 * `NgModelController` provides API for the {@link ngModel `ngModel`} directive.
	 * The controller contains services for data-binding, validation, CSS updates, and value formatting
	 * and parsing. It purposefully does not contain any logic which deals with DOM rendering or
	 * listening to DOM events.
	 * Such DOM related logic should be provided by other directives which make use of
	 * `NgModelController` for data-binding to control elements.
	 * AngularJS provides this DOM logic for most {@link input `input`} elements.
	 * At the end of this page you can find a {@link ngModel.NgModelController#custom-control-example
	 * custom control example} that uses `ngModelController` to bind to `contenteditable` elements.
	 *
	 * @example
	 * ### Custom Control Example
	 * This example shows how to use `NgModelController` with a custom control to achieve
	 * data-binding. Notice how different directives (`contenteditable`, `ng-model`, and `required`)
	 * collaborate together to achieve the desired result.
	 *
	 * `contenteditable` is an HTML5 attribute, which tells the browser to let the element
	 * contents be edited in place by the user.
	 *
	 * We are using the {@link ng.service:$sce $sce} service here and include the {@link ngSanitize $sanitize}
	 * module to automatically remove "bad" content like inline event listener (e.g. `<span onclick="...">`).
	 * However, as we are using `$sce` the model can still decide to provide unsafe content if it marks
	 * that content using the `$sce` service.
	 *
	 * <example name="NgModelController" module="customControl" deps="angular-sanitize.js">
	    <file name="style.css">
	      [contenteditable] {
	        border: 1px solid black;
	        background-color: white;
	        min-height: 20px;
	      }
	
	      .ng-invalid {
	        border: 1px solid red;
	      }
	
	    </file>
	    <file name="script.js">
	      angular.module('customControl', ['ngSanitize']).
	        directive('contenteditable', ['$sce', function($sce) {
	          return {
	            restrict: 'A', // only activate on element attribute
	            require: '?ngModel', // get a hold of NgModelController
	            link: function(scope, element, attrs, ngModel) {
	              if (!ngModel) return; // do nothing if no ng-model
	
	              // Specify how UI should be updated
	              ngModel.$render = function() {
	                element.html($sce.getTrustedHtml(ngModel.$viewValue || ''));
	              };
	
	              // Listen for change events to enable binding
	              element.on('blur keyup change', function() {
	                scope.$evalAsync(read);
	              });
	              read(); // initialize
	
	              // Write data to the model
	              function read() {
	                var html = element.html();
	                // When we clear the content editable the browser leaves a <br> behind
	                // If strip-br attribute is provided then we strip this out
	                if (attrs.stripBr && html === '<br>') {
	                  html = '';
	                }
	                ngModel.$setViewValue(html);
	              }
	            }
	          };
	        }]);
	    </file>
	    <file name="index.html">
	      <form name="myForm">
	       <div contenteditable
	            name="myWidget" ng-model="userContent"
	            strip-br="true"
	            required>Change me!</div>
	        <span ng-show="myForm.myWidget.$error.required">Required!</span>
	       <hr>
	       <textarea ng-model="userContent" aria-label="Dynamic textarea"></textarea>
	      </form>
	    </file>
	    <file name="protractor.js" type="protractor">
	    it('should data-bind and become invalid', function() {
	      if (browser.params.browser === 'safari' || browser.params.browser === 'firefox') {
	        // SafariDriver can't handle contenteditable
	        // and Firefox driver can't clear contenteditables very well
	        return;
	      }
	      var contentEditable = element(by.css('[contenteditable]'));
	      var content = 'Change me!';
	
	      expect(contentEditable.getText()).toEqual(content);
	
	      contentEditable.clear();
	      contentEditable.sendKeys(protractor.Key.BACK_SPACE);
	      expect(contentEditable.getText()).toEqual('');
	      expect(contentEditable.getAttribute('class')).toMatch(/ng-invalid-required/);
	    });
	    </file>
	 * </example>
	 *
	 *
	 */NgModelController.$inject=['$scope','$exceptionHandler','$attrs','$element','$parse','$animate','$timeout','$q','$interpolate'];function NgModelController($scope,$exceptionHandler,$attr,$element,$parse,$animate,$timeout,$q,$interpolate){this.$viewValue=Number.NaN;this.$modelValue=Number.NaN;this.$$rawModelValue=undefined;// stores the parsed modelValue / model set from scope regardless of validity.
	this.$validators={};this.$asyncValidators={};this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$untouched=true;this.$touched=false;this.$pristine=true;this.$dirty=false;this.$valid=true;this.$invalid=false;this.$error={};// keep invalid keys here
	this.$$success={};// keep valid keys here
	this.$pending=undefined;// keep pending keys here
	this.$name=$interpolate($attr.name||'',false)($scope);this.$$parentForm=nullFormCtrl;this.$options=defaultModelOptions;this.$$updateEvents='';// Attach the correct context to the event handler function for updateOn
	this.$$updateEventHandler=this.$$updateEventHandler.bind(this);this.$$parsedNgModel=$parse($attr.ngModel);this.$$parsedNgModelAssign=this.$$parsedNgModel.assign;this.$$ngModelGet=this.$$parsedNgModel;this.$$ngModelSet=this.$$parsedNgModelAssign;this.$$pendingDebounce=null;this.$$parserValid=undefined;this.$$parserName='parse';this.$$currentValidationRunId=0;this.$$scope=$scope;this.$$rootScope=$scope.$root;this.$$attr=$attr;this.$$element=$element;this.$$animate=$animate;this.$$timeout=$timeout;this.$$parse=$parse;this.$$q=$q;this.$$exceptionHandler=$exceptionHandler;setupValidity(this);setupModelWatcher(this);}NgModelController.prototype={$$initGetterSetters:function $$initGetterSetters(){if(this.$options.getOption('getterSetter')){var invokeModelGetter=this.$$parse(this.$$attr.ngModel+'()'),invokeModelSetter=this.$$parse(this.$$attr.ngModel+'($$$p)');this.$$ngModelGet=function($scope){var modelValue=this.$$parsedNgModel($scope);if(isFunction(modelValue)){modelValue=invokeModelGetter($scope);}return modelValue;};this.$$ngModelSet=function($scope,newValue){if(isFunction(this.$$parsedNgModel($scope))){invokeModelSetter($scope,{$$$p:newValue});}else{this.$$parsedNgModelAssign($scope,newValue);}};}else if(!this.$$parsedNgModel.assign){throw ngModelMinErr('nonassign','Expression \'{0}\' is non-assignable. Element: {1}',this.$$attr.ngModel,startingTag(this.$$element));}},/**
	   * @ngdoc method
	   * @name ngModel.NgModelController#$render
	   *
	   * @description
	   * Called when the view needs to be updated. It is expected that the user of the ng-model
	   * directive will implement this method.
	   *
	   * The `$render()` method is invoked in the following situations:
	   *
	   * * `$rollbackViewValue()` is called.  If we are rolling back the view value to the last
	   *   committed value then `$render()` is called to update the input control.
	   * * The value referenced by `ng-model` is changed programmatically and both the `$modelValue` and
	   *   the `$viewValue` are different from last time.
	   *
	   * Since `ng-model` does not do a deep watch, `$render()` is only invoked if the values of
	   * `$modelValue` and `$viewValue` are actually different from their previous values. If `$modelValue`
	   * or `$viewValue` are objects (rather than a string or number) then `$render()` will not be
	   * invoked if you only change a property on the objects.
	   */$render:noop,/**
	   * @ngdoc method
	   * @name ngModel.NgModelController#$isEmpty
	   *
	   * @description
	   * This is called when we need to determine if the value of an input is empty.
	   *
	   * For instance, the required directive does this to work out if the input has data or not.
	   *
	   * The default `$isEmpty` function checks whether the value is `undefined`, `''`, `null` or `NaN`.
	   *
	   * You can override this for input directives whose concept of being empty is different from the
	   * default. The `checkboxInputType` directive does this because in its case a value of `false`
	   * implies empty.
	   *
	   * @param {*} value The value of the input to check for emptiness.
	   * @returns {boolean} True if `value` is "empty".
	   */$isEmpty:function $isEmpty(value){// eslint-disable-next-line no-self-compare
	return isUndefined(value)||value===''||value===null||value!==value;},$$updateEmptyClasses:function $$updateEmptyClasses(value){if(this.$isEmpty(value)){this.$$animate.removeClass(this.$$element,NOT_EMPTY_CLASS);this.$$animate.addClass(this.$$element,EMPTY_CLASS);}else{this.$$animate.removeClass(this.$$element,EMPTY_CLASS);this.$$animate.addClass(this.$$element,NOT_EMPTY_CLASS);}},/**
	   * @ngdoc method
	   * @name ngModel.NgModelController#$setPristine
	   *
	   * @description
	   * Sets the control to its pristine state.
	   *
	   * This method can be called to remove the `ng-dirty` class and set the control to its pristine
	   * state (`ng-pristine` class). A model is considered to be pristine when the control
	   * has not been changed from when first compiled.
	   */$setPristine:function $setPristine(){this.$dirty=false;this.$pristine=true;this.$$animate.removeClass(this.$$element,DIRTY_CLASS);this.$$animate.addClass(this.$$element,PRISTINE_CLASS);},/**
	   * @ngdoc method
	   * @name ngModel.NgModelController#$setDirty
	   *
	   * @description
	   * Sets the control to its dirty state.
	   *
	   * This method can be called to remove the `ng-pristine` class and set the control to its dirty
	   * state (`ng-dirty` class). A model is considered to be dirty when the control has been changed
	   * from when first compiled.
	   */$setDirty:function $setDirty(){this.$dirty=true;this.$pristine=false;this.$$animate.removeClass(this.$$element,PRISTINE_CLASS);this.$$animate.addClass(this.$$element,DIRTY_CLASS);this.$$parentForm.$setDirty();},/**
	   * @ngdoc method
	   * @name ngModel.NgModelController#$setUntouched
	   *
	   * @description
	   * Sets the control to its untouched state.
	   *
	   * This method can be called to remove the `ng-touched` class and set the control to its
	   * untouched state (`ng-untouched` class). Upon compilation, a model is set as untouched
	   * by default, however this function can be used to restore that state if the model has
	   * already been touched by the user.
	   */$setUntouched:function $setUntouched(){this.$touched=false;this.$untouched=true;this.$$animate.setClass(this.$$element,UNTOUCHED_CLASS,TOUCHED_CLASS);},/**
	   * @ngdoc method
	   * @name ngModel.NgModelController#$setTouched
	   *
	   * @description
	   * Sets the control to its touched state.
	   *
	   * This method can be called to remove the `ng-untouched` class and set the control to its
	   * touched state (`ng-touched` class). A model is considered to be touched when the user has
	   * first focused the control element and then shifted focus away from the control (blur event).
	   */$setTouched:function $setTouched(){this.$touched=true;this.$untouched=false;this.$$animate.setClass(this.$$element,TOUCHED_CLASS,UNTOUCHED_CLASS);},/**
	   * @ngdoc method
	   * @name ngModel.NgModelController#$rollbackViewValue
	   *
	   * @description
	   * Cancel an update and reset the input element's value to prevent an update to the `$modelValue`,
	   * which may be caused by a pending debounced event or because the input is waiting for some
	   * future event.
	   *
	   * If you have an input that uses `ng-model-options` to set up debounced updates or updates that
	   * depend on special events such as `blur`, there can be a period when the `$viewValue` is out of
	   * sync with the ngModel's `$modelValue`.
	   *
	   * In this case, you can use `$rollbackViewValue()` to manually cancel the debounced / future update
	   * and reset the input to the last committed view value.
	   *
	   * It is also possible that you run into difficulties if you try to update the ngModel's `$modelValue`
	   * programmatically before these debounced/future events have resolved/occurred, because AngularJS's
	   * dirty checking mechanism is not able to tell whether the model has actually changed or not.
	   *
	   * The `$rollbackViewValue()` method should be called before programmatically changing the model of an
	   * input which may have such events pending. This is important in order to make sure that the
	   * input field will be updated with the new model value and any pending operations are cancelled.
	   *
	   * @example
	   * <example name="ng-model-cancel-update" module="cancel-update-example">
	   *   <file name="app.js">
	   *     angular.module('cancel-update-example', [])
	   *
	   *     .controller('CancelUpdateController', ['$scope', function($scope) {
	   *       $scope.model = {value1: '', value2: ''};
	   *
	   *       $scope.setEmpty = function(e, value, rollback) {
	   *         if (e.keyCode === 27) {
	   *           e.preventDefault();
	   *           if (rollback) {
	   *             $scope.myForm[value].$rollbackViewValue();
	   *           }
	   *           $scope.model[value] = '';
	   *         }
	   *       };
	   *     }]);
	   *   </file>
	   *   <file name="index.html">
	   *     <div ng-controller="CancelUpdateController">
	   *       <p>Both of these inputs are only updated if they are blurred. Hitting escape should
	   *       empty them. Follow these steps and observe the difference:</p>
	   *       <ol>
	   *         <li>Type something in the input. You will see that the model is not yet updated</li>
	   *         <li>Press the Escape key.
	   *           <ol>
	   *             <li> In the first example, nothing happens, because the model is already '', and no
	   *             update is detected. If you blur the input, the model will be set to the current view.
	   *             </li>
	   *             <li> In the second example, the pending update is cancelled, and the input is set back
	   *             to the last committed view value (''). Blurring the input does nothing.
	   *             </li>
	   *           </ol>
	   *         </li>
	   *       </ol>
	   *
	   *       <form name="myForm" ng-model-options="{ updateOn: 'blur' }">
	   *         <div>
	   *           <p id="inputDescription1">Without $rollbackViewValue():</p>
	   *           <input name="value1" aria-describedby="inputDescription1" ng-model="model.value1"
	   *                  ng-keydown="setEmpty($event, 'value1')">
	   *           value1: "{{ model.value1 }}"
	   *         </div>
	   *
	   *         <div>
	   *           <p id="inputDescription2">With $rollbackViewValue():</p>
	   *           <input name="value2" aria-describedby="inputDescription2" ng-model="model.value2"
	   *                  ng-keydown="setEmpty($event, 'value2', true)">
	   *           value2: "{{ model.value2 }}"
	   *         </div>
	   *       </form>
	   *     </div>
	   *   </file>
	       <file name="style.css">
	          div {
	            display: table-cell;
	          }
	          div:nth-child(1) {
	            padding-right: 30px;
	          }
	
	        </file>
	   * </example>
	   */$rollbackViewValue:function $rollbackViewValue(){this.$$timeout.cancel(this.$$pendingDebounce);this.$viewValue=this.$$lastCommittedViewValue;this.$render();},/**
	   * @ngdoc method
	   * @name ngModel.NgModelController#$validate
	   *
	   * @description
	   * Runs each of the registered validators (first synchronous validators and then
	   * asynchronous validators).
	   * If the validity changes to invalid, the model will be set to `undefined`,
	   * unless {@link ngModelOptions `ngModelOptions.allowInvalid`} is `true`.
	   * If the validity changes to valid, it will set the model to the last available valid
	   * `$modelValue`, i.e. either the last parsed value or the last value set from the scope.
	   */$validate:function $validate(){// ignore $validate before model is initialized
	if(isNumberNaN(this.$modelValue)){return;}var viewValue=this.$$lastCommittedViewValue;// Note: we use the $$rawModelValue as $modelValue might have been
	// set to undefined during a view -> model update that found validation
	// errors. We can't parse the view here, since that could change
	// the model although neither viewValue nor the model on the scope changed
	var modelValue=this.$$rawModelValue;var prevValid=this.$valid;var prevModelValue=this.$modelValue;var allowInvalid=this.$options.getOption('allowInvalid');var that=this;this.$$runValidators(modelValue,viewValue,function(allValid){// If there was no change in validity, don't update the model
	// This prevents changing an invalid modelValue to undefined
	if(!allowInvalid&&prevValid!==allValid){// Note: Don't check this.$valid here, as we could have
	// external validators (e.g. calculated on the server),
	// that just call $setValidity and need the model value
	// to calculate their validity.
	that.$modelValue=allValid?modelValue:undefined;if(that.$modelValue!==prevModelValue){that.$$writeModelToScope();}}});},$$runValidators:function $$runValidators(modelValue,viewValue,doneCallback){this.$$currentValidationRunId++;var localValidationRunId=this.$$currentValidationRunId;var that=this;// check parser error
	if(!processParseErrors()){validationDone(false);return;}if(!processSyncValidators()){validationDone(false);return;}processAsyncValidators();function processParseErrors(){var errorKey=that.$$parserName;if(isUndefined(that.$$parserValid)){setValidity(errorKey,null);}else{if(!that.$$parserValid){forEach(that.$validators,function(v,name){setValidity(name,null);});forEach(that.$asyncValidators,function(v,name){setValidity(name,null);});}// Set the parse error last, to prevent unsetting it, should a $validators key == parserName
	setValidity(errorKey,that.$$parserValid);return that.$$parserValid;}return true;}function processSyncValidators(){var syncValidatorsValid=true;forEach(that.$validators,function(validator,name){var result=Boolean(validator(modelValue,viewValue));syncValidatorsValid=syncValidatorsValid&&result;setValidity(name,result);});if(!syncValidatorsValid){forEach(that.$asyncValidators,function(v,name){setValidity(name,null);});return false;}return true;}function processAsyncValidators(){var validatorPromises=[];var allValid=true;forEach(that.$asyncValidators,function(validator,name){var promise=validator(modelValue,viewValue);if(!isPromiseLike(promise)){throw ngModelMinErr('nopromise','Expected asynchronous validator to return a promise but got \'{0}\' instead.',promise);}setValidity(name,undefined);validatorPromises.push(promise.then(function(){setValidity(name,true);},function(){allValid=false;setValidity(name,false);}));});if(!validatorPromises.length){validationDone(true);}else{that.$$q.all(validatorPromises).then(function(){validationDone(allValid);},noop);}}function setValidity(name,isValid){if(localValidationRunId===that.$$currentValidationRunId){that.$setValidity(name,isValid);}}function validationDone(allValid){if(localValidationRunId===that.$$currentValidationRunId){doneCallback(allValid);}}},/**
	   * @ngdoc method
	   * @name ngModel.NgModelController#$commitViewValue
	   *
	   * @description
	   * Commit a pending update to the `$modelValue`.
	   *
	   * Updates may be pending by a debounced event or because the input is waiting for a some future
	   * event defined in `ng-model-options`. this method is rarely needed as `NgModelController`
	   * usually handles calling this in response to input events.
	   */$commitViewValue:function $commitViewValue(){var viewValue=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce);// If the view value has not changed then we should just exit, except in the case where there is
	// a native validator on the element. In this case the validation state may have changed even though
	// the viewValue has stayed empty.
	if(this.$$lastCommittedViewValue===viewValue&&(viewValue!==''||!this.$$hasNativeValidators)){return;}this.$$updateEmptyClasses(viewValue);this.$$lastCommittedViewValue=viewValue;// change to dirty
	if(this.$pristine){this.$setDirty();}this.$$parseAndValidate();},$$parseAndValidate:function $$parseAndValidate(){var viewValue=this.$$lastCommittedViewValue;var modelValue=viewValue;var that=this;this.$$parserValid=isUndefined(modelValue)?undefined:true;// Reset any previous parse error
	this.$setValidity(this.$$parserName,null);this.$$parserName='parse';if(this.$$parserValid){for(var i=0;i<this.$parsers.length;i++){modelValue=this.$parsers[i](modelValue);if(isUndefined(modelValue)){this.$$parserValid=false;break;}}}if(isNumberNaN(this.$modelValue)){// this.$modelValue has not been touched yet...
	this.$modelValue=this.$$ngModelGet(this.$$scope);}var prevModelValue=this.$modelValue;var allowInvalid=this.$options.getOption('allowInvalid');this.$$rawModelValue=modelValue;if(allowInvalid){this.$modelValue=modelValue;writeToModelIfNeeded();}// Pass the $$lastCommittedViewValue here, because the cached viewValue might be out of date.
	// This can happen if e.g. $setViewValue is called from inside a parser
	this.$$runValidators(modelValue,this.$$lastCommittedViewValue,function(allValid){if(!allowInvalid){// Note: Don't check this.$valid here, as we could have
	// external validators (e.g. calculated on the server),
	// that just call $setValidity and need the model value
	// to calculate their validity.
	that.$modelValue=allValid?modelValue:undefined;writeToModelIfNeeded();}});function writeToModelIfNeeded(){if(that.$modelValue!==prevModelValue){that.$$writeModelToScope();}}},$$writeModelToScope:function $$writeModelToScope(){this.$$ngModelSet(this.$$scope,this.$modelValue);forEach(this.$viewChangeListeners,function(listener){try{listener();}catch(e){// eslint-disable-next-line no-invalid-this
	this.$$exceptionHandler(e);}},this);},/**
	   * @ngdoc method
	   * @name ngModel.NgModelController#$setViewValue
	   *
	   * @description
	   * Update the view value.
	   *
	   * This method should be called when a control wants to change the view value; typically,
	   * this is done from within a DOM event handler. For example, the {@link ng.directive:input input}
	   * directive calls it when the value of the input changes and {@link ng.directive:select select}
	   * calls it when an option is selected.
	   *
	   * When `$setViewValue` is called, the new `value` will be staged for committing through the `$parsers`
	   * and `$validators` pipelines. If there are no special {@link ngModelOptions} specified then the staged
	   * value is sent directly for processing through the `$parsers` pipeline. After this, the `$validators` and
	   * `$asyncValidators` are called and the value is applied to `$modelValue`.
	   * Finally, the value is set to the **expression** specified in the `ng-model` attribute and
	   * all the registered change listeners, in the `$viewChangeListeners` list are called.
	   *
	   * In case the {@link ng.directive:ngModelOptions ngModelOptions} directive is used with `updateOn`
	   * and the `default` trigger is not listed, all those actions will remain pending until one of the
	   * `updateOn` events is triggered on the DOM element.
	   * All these actions will be debounced if the {@link ng.directive:ngModelOptions ngModelOptions}
	   * directive is used with a custom debounce for this particular event.
	   * Note that a `$digest` is only triggered once the `updateOn` events are fired, or if `debounce`
	   * is specified, once the timer runs out.
	   *
	   * When used with standard inputs, the view value will always be a string (which is in some cases
	   * parsed into another type, such as a `Date` object for `input[date]`.)
	   * However, custom controls might also pass objects to this method. In this case, we should make
	   * a copy of the object before passing it to `$setViewValue`. This is because `ngModel` does not
	   * perform a deep watch of objects, it only looks for a change of identity. If you only change
	   * the property of the object then ngModel will not realize that the object has changed and
	   * will not invoke the `$parsers` and `$validators` pipelines. For this reason, you should
	   * not change properties of the copy once it has been passed to `$setViewValue`.
	   * Otherwise you may cause the model value on the scope to change incorrectly.
	   *
	   * <div class="alert alert-info">
	   * In any case, the value passed to the method should always reflect the current value
	   * of the control. For example, if you are calling `$setViewValue` for an input element,
	   * you should pass the input DOM value. Otherwise, the control and the scope model become
	   * out of sync. It's also important to note that `$setViewValue` does not call `$render` or change
	   * the control's DOM value in any way. If we want to change the control's DOM value
	   * programmatically, we should update the `ngModel` scope expression. Its new value will be
	   * picked up by the model controller, which will run it through the `$formatters`, `$render` it
	   * to update the DOM, and finally call `$validate` on it.
	   * </div>
	   *
	   * @param {*} value value from the view.
	   * @param {string} trigger Event that triggered the update.
	   */$setViewValue:function $setViewValue(value,trigger){this.$viewValue=value;if(this.$options.getOption('updateOnDefault')){this.$$debounceViewValueCommit(trigger);}},$$debounceViewValueCommit:function $$debounceViewValueCommit(trigger){var debounceDelay=this.$options.getOption('debounce');if(isNumber(debounceDelay[trigger])){debounceDelay=debounceDelay[trigger];}else if(isNumber(debounceDelay['default'])&&this.$options.getOption('updateOn').indexOf(trigger)===-1){debounceDelay=debounceDelay['default'];}else if(isNumber(debounceDelay['*'])){debounceDelay=debounceDelay['*'];}this.$$timeout.cancel(this.$$pendingDebounce);var that=this;if(debounceDelay>0){// this fails if debounceDelay is an object
	this.$$pendingDebounce=this.$$timeout(function(){that.$commitViewValue();},debounceDelay);}else if(this.$$rootScope.$$phase){this.$commitViewValue();}else{this.$$scope.$apply(function(){that.$commitViewValue();});}},/**
	   * @ngdoc method
	   *
	   * @name ngModel.NgModelController#$overrideModelOptions
	   *
	   * @description
	   *
	   * Override the current model options settings programmatically.
	   *
	   * The previous `ModelOptions` value will not be modified. Instead, a
	   * new `ModelOptions` object will inherit from the previous one overriding
	   * or inheriting settings that are defined in the given parameter.
	   *
	   * See {@link ngModelOptions} for information about what options can be specified
	   * and how model option inheritance works.
	   *
	   * <div class="alert alert-warning">
	   * **Note:** this function only affects the options set on the `ngModelController`,
	   * and not the options on the {@link ngModelOptions} directive from which they might have been
	   * obtained initially.
	   * </div>
	   *
	   * <div class="alert alert-danger">
	   * **Note:** it is not possible to override the `getterSetter` option.
	   * </div>
	   *
	   * @param {Object} options a hash of settings to override the previous options
	   *
	   */$overrideModelOptions:function $overrideModelOptions(options){this.$options=this.$options.createChild(options);this.$$setUpdateOnEvents();},/**
	   * @ngdoc method
	   *
	   * @name  ngModel.NgModelController#$processModelValue
	
	   * @description
	   *
	   * Runs the model -> view pipeline on the current
	   * {@link ngModel.NgModelController#$modelValue $modelValue}.
	   *
	   * The following actions are performed by this method:
	   *
	   * - the `$modelValue` is run through the {@link ngModel.NgModelController#$formatters $formatters}
	   * and the result is set to the {@link ngModel.NgModelController#$viewValue $viewValue}
	   * - the `ng-empty` or `ng-not-empty` class is set on the element
	   * - if the `$viewValue` has changed:
	   *   - {@link ngModel.NgModelController#$render $render} is called on the control
	   *   - the {@link ngModel.NgModelController#$validators $validators} are run and
	   *   the validation status is set.
	   *
	   * This method is called by ngModel internally when the bound scope value changes.
	   * Application developers usually do not have to call this function themselves.
	   *
	   * This function can be used when the `$viewValue` or the rendered DOM value are not correctly
	   * formatted and the `$modelValue` must be run through the `$formatters` again.
	   *
	   * @example
	   * Consider a text input with an autocomplete list (for fruit), where the items are
	   * objects with a name and an id.
	   * A user enters `ap` and then selects `Apricot` from the list.
	   * Based on this, the autocomplete widget will call `$setViewValue({name: 'Apricot', id: 443})`,
	   * but the rendered value will still be `ap`.
	   * The widget can then call `ctrl.$processModelValue()` to run the model -> view
	   * pipeline again, which formats the object to the string `Apricot`,
	   * then updates the `$viewValue`, and finally renders it in the DOM.
	   *
	   * <example module="inputExample" name="ng-model-process">
	     <file name="index.html">
	      <div ng-controller="inputController" style="display: flex;">
	        <div style="margin-right: 30px;">
	          Search Fruit:
	          <basic-autocomplete items="items" on-select="selectedFruit = item"></basic-autocomplete>
	        </div>
	        <div>
	          Model:<br>
	          <pre>{{selectedFruit | json}}</pre>
	        </div>
	      </div>
	     </file>
	     <file name="app.js">
	      angular.module('inputExample', [])
	        .controller('inputController', function($scope) {
	          $scope.items = [
	            {name: 'Apricot', id: 443},
	            {name: 'Clementine', id: 972},
	            {name: 'Durian', id: 169},
	            {name: 'Jackfruit', id: 982},
	            {name: 'Strawberry', id: 863}
	          ];
	        })
	        .component('basicAutocomplete', {
	          bindings: {
	            items: '<',
	            onSelect: '&'
	          },
	          templateUrl: 'autocomplete.html',
	          controller: function($element, $scope) {
	            var that = this;
	            var ngModel;
	
	            that.$postLink = function() {
	              ngModel = $element.find('input').controller('ngModel');
	
	              ngModel.$formatters.push(function(value) {
	                return (value && value.name) || value;
	              });
	
	              ngModel.$parsers.push(function(value) {
	                var match = value;
	                for (var i = 0; i < that.items.length; i++) {
	                  if (that.items[i].name === value) {
	                    match = that.items[i];
	                    break;
	                  }
	                }
	
	                return match;
	              });
	            };
	
	            that.selectItem = function(item) {
	              ngModel.$setViewValue(item);
	              ngModel.$processModelValue();
	              that.onSelect({item: item});
	            };
	          }
	        });
	     </file>
	     <file name="autocomplete.html">
	       <div>
	         <input type="search" ng-model="$ctrl.searchTerm" />
	         <ul>
	           <li ng-repeat="item in $ctrl.items | filter:$ctrl.searchTerm">
	             <button ng-click="$ctrl.selectItem(item)">{{ item.name }}</button>
	           </li>
	         </ul>
	       </div>
	     </file>
	   * </example>
	   *
	   */$processModelValue:function $processModelValue(){var viewValue=this.$$format();if(this.$viewValue!==viewValue){this.$$updateEmptyClasses(viewValue);this.$viewValue=this.$$lastCommittedViewValue=viewValue;this.$render();// It is possible that model and view value have been updated during render
	this.$$runValidators(this.$modelValue,this.$viewValue,noop);}},/**
	   * This method is called internally to run the $formatters on the $modelValue
	   */$$format:function $$format(){var formatters=this.$formatters,idx=formatters.length;var viewValue=this.$modelValue;while(idx--){viewValue=formatters[idx](viewValue);}return viewValue;},/**
	   * This method is called internally when the bound scope value changes.
	   */$$setModelValue:function $$setModelValue(modelValue){this.$modelValue=this.$$rawModelValue=modelValue;this.$$parserValid=undefined;this.$processModelValue();},$$setUpdateOnEvents:function $$setUpdateOnEvents(){if(this.$$updateEvents){this.$$element.off(this.$$updateEvents,this.$$updateEventHandler);}this.$$updateEvents=this.$options.getOption('updateOn');if(this.$$updateEvents){this.$$element.on(this.$$updateEvents,this.$$updateEventHandler);}},$$updateEventHandler:function $$updateEventHandler(ev){this.$$debounceViewValueCommit(ev&&ev.type);}};function setupModelWatcher(ctrl){// model -> value
	// Note: we cannot use a normal scope.$watch as we want to detect the following:
	// 1. scope value is 'a'
	// 2. user enters 'b'
	// 3. ng-change kicks in and reverts scope value to 'a'
	//    -> scope value did not change since the last digest as
	//       ng-change executes in apply phase
	// 4. view should be changed back to 'a'
	ctrl.$$scope.$watch(function ngModelWatch(scope){var modelValue=ctrl.$$ngModelGet(scope);// if scope model value and ngModel value are out of sync
	// This cannot be moved to the action function, because it would not catch the
	// case where the model is changed in the ngChange function or the model setter
	if(modelValue!==ctrl.$modelValue&&(// checks for NaN is needed to allow setting the model to NaN when there's an asyncValidator
	// eslint-disable-next-line no-self-compare
	ctrl.$modelValue===ctrl.$modelValue||modelValue===modelValue)){ctrl.$$setModelValue(modelValue);}return modelValue;});}/**
	 * @ngdoc method
	 * @name ngModel.NgModelController#$setValidity
	 *
	 * @description
	 * Change the validity state, and notify the form.
	 *
	 * This method can be called within $parsers/$formatters or a custom validation implementation.
	 * However, in most cases it should be sufficient to use the `ngModel.$validators` and
	 * `ngModel.$asyncValidators` collections which will call `$setValidity` automatically.
	 *
	 * @param {string} validationErrorKey Name of the validator. The `validationErrorKey` will be assigned
	 *        to either `$error[validationErrorKey]` or `$pending[validationErrorKey]`
	 *        (for unfulfilled `$asyncValidators`), so that it is available for data-binding.
	 *        The `validationErrorKey` should be in camelCase and will get converted into dash-case
	 *        for class name. Example: `myError` will result in `ng-valid-my-error` and `ng-invalid-my-error`
	 *        classes and can be bound to as `{{ someForm.someControl.$error.myError }}`.
	 * @param {boolean} isValid Whether the current state is valid (true), invalid (false), pending (undefined),
	 *                          or skipped (null). Pending is used for unfulfilled `$asyncValidators`.
	 *                          Skipped is used by AngularJS when validators do not run because of parse errors and
	 *                          when `$asyncValidators` do not run because any of the `$validators` failed.
	 */addSetValidityMethod({clazz:NgModelController,set:function set(object,property){object[property]=true;},unset:function unset(object,property){delete object[property];}});/**
	 * @ngdoc directive
	 * @name ngModel
	 * @restrict A
	 * @priority 1
	 * @param {expression} ngModel assignable {@link guide/expression Expression} to bind to.
	 *
	 * @description
	 * The `ngModel` directive binds an `input`,`select`, `textarea` (or custom form control) to a
	 * property on the scope using {@link ngModel.NgModelController NgModelController},
	 * which is created and exposed by this directive.
	 *
	 * `ngModel` is responsible for:
	 *
	 * - Binding the view into the model, which other directives such as `input`, `textarea` or `select`
	 *   require.
	 * - Providing validation behavior (i.e. required, number, email, url).
	 * - Keeping the state of the control (valid/invalid, dirty/pristine, touched/untouched, validation errors).
	 * - Setting related css classes on the element (`ng-valid`, `ng-invalid`, `ng-dirty`, `ng-pristine`, `ng-touched`,
	 *   `ng-untouched`, `ng-empty`, `ng-not-empty`) including animations.
	 * - Registering the control with its parent {@link ng.directive:form form}.
	 *
	 * Note: `ngModel` will try to bind to the property given by evaluating the expression on the
	 * current scope. If the property doesn't already exist on this scope, it will be created
	 * implicitly and added to the scope.
	 *
	 * For best practices on using `ngModel`, see:
	 *
	 *  - [Understanding Scopes](https://github.com/angular/angular.js/wiki/Understanding-Scopes)
	 *
	 * For basic examples, how to use `ngModel`, see:
	 *
	 *  - {@link ng.directive:input input}
	 *    - {@link input[text] text}
	 *    - {@link input[checkbox] checkbox}
	 *    - {@link input[radio] radio}
	 *    - {@link input[number] number}
	 *    - {@link input[email] email}
	 *    - {@link input[url] url}
	 *    - {@link input[date] date}
	 *    - {@link input[datetime-local] datetime-local}
	 *    - {@link input[time] time}
	 *    - {@link input[month] month}
	 *    - {@link input[week] week}
	 *  - {@link ng.directive:select select}
	 *  - {@link ng.directive:textarea textarea}
	 *
	 * ## Complex Models (objects or collections)
	 *
	 * By default, `ngModel` watches the model by reference, not value. This is important to know when
	 * binding inputs to models that are objects (e.g. `Date`) or collections (e.g. arrays). If only properties of the
	 * object or collection change, `ngModel` will not be notified and so the input will not be  re-rendered.
	 *
	 * The model must be assigned an entirely new object or collection before a re-rendering will occur.
	 *
	 * Some directives have options that will cause them to use a custom `$watchCollection` on the model expression
	 * - for example, `ngOptions` will do so when a `track by` clause is included in the comprehension expression or
	 * if the select is given the `multiple` attribute.
	 *
	 * The `$watchCollection()` method only does a shallow comparison, meaning that changing properties deeper than the
	 * first level of the object (or only changing the properties of an item in the collection if it's an array) will still
	 * not trigger a re-rendering of the model.
	 *
	 * ## CSS classes
	 * The following CSS classes are added and removed on the associated input/select/textarea element
	 * depending on the validity of the model.
	 *
	 *  - `ng-valid`: the model is valid
	 *  - `ng-invalid`: the model is invalid
	 *  - `ng-valid-[key]`: for each valid key added by `$setValidity`
	 *  - `ng-invalid-[key]`: for each invalid key added by `$setValidity`
	 *  - `ng-pristine`: the control hasn't been interacted with yet
	 *  - `ng-dirty`: the control has been interacted with
	 *  - `ng-touched`: the control has been blurred
	 *  - `ng-untouched`: the control hasn't been blurred
	 *  - `ng-pending`: any `$asyncValidators` are unfulfilled
	 *  - `ng-empty`: the view does not contain a value or the value is deemed "empty", as defined
	 *     by the {@link ngModel.NgModelController#$isEmpty} method
	 *  - `ng-not-empty`: the view contains a non-empty value
	 *
	 * Keep in mind that ngAnimate can detect each of these classes when added and removed.
	 *
	 * @animations
	 * Animations within models are triggered when any of the associated CSS classes are added and removed
	 * on the input element which is attached to the model. These classes include: `.ng-pristine`, `.ng-dirty`,
	 * `.ng-invalid` and `.ng-valid` as well as any other validations that are performed on the model itself.
	 * The animations that are triggered within ngModel are similar to how they work in ngClass and
	 * animations can be hooked into using CSS transitions, keyframes as well as JS animations.
	 *
	 * The following example shows a simple way to utilize CSS transitions to style an input element
	 * that has been rendered as invalid after it has been validated:
	 *
	 * <pre>
	 * //be sure to include ngAnimate as a module to hook into more
	 * //advanced animations
	 * .my-input {
	 *   transition:0.5s linear all;
	 *   background: white;
	 * }
	 * .my-input.ng-invalid {
	 *   background: red;
	 *   color:white;
	 * }
	 * </pre>
	 *
	 * @example
	 * ### Basic Usage
	 * <example deps="angular-animate.js" animations="true" fixBase="true" module="inputExample" name="ng-model">
	     <file name="index.html">
	       <script>
	        angular.module('inputExample', [])
	          .controller('ExampleController', ['$scope', function($scope) {
	            $scope.val = '1';
	          }]);
	       </script>
	       <style>
	         .my-input {
	           transition:all linear 0.5s;
	           background: transparent;
	         }
	         .my-input.ng-invalid {
	           color:white;
	           background: red;
	         }
	       </style>
	       <p id="inputDescription">
	        Update input to see transitions when valid/invalid.
	        Integer is a valid value.
	       </p>
	       <form name="testForm" ng-controller="ExampleController">
	         <input ng-model="val" ng-pattern="/^\d+$/" name="anim" class="my-input"
	                aria-describedby="inputDescription" />
	       </form>
	     </file>
	 * </example>
	 *
	 * @example
	 * ### Binding to a getter/setter
	 *
	 * Sometimes it's helpful to bind `ngModel` to a getter/setter function.  A getter/setter is a
	 * function that returns a representation of the model when called with zero arguments, and sets
	 * the internal state of a model when called with an argument. It's sometimes useful to use this
	 * for models that have an internal representation that's different from what the model exposes
	 * to the view.
	 *
	 * <div class="alert alert-success">
	 * **Best Practice:** It's best to keep getters fast because AngularJS is likely to call them more
	 * frequently than other parts of your code.
	 * </div>
	 *
	 * You use this behavior by adding `ng-model-options="{ getterSetter: true }"` to an element that
	 * has `ng-model` attached to it. You can also add `ng-model-options="{ getterSetter: true }"` to
	 * a `<form>`, which will enable this behavior for all `<input>`s within it. See
	 * {@link ng.directive:ngModelOptions `ngModelOptions`} for more.
	 *
	 * The following example shows how to use `ngModel` with a getter/setter:
	 *
	 * @example
	 * <example name="ngModel-getter-setter" module="getterSetterExample">
	     <file name="index.html">
	       <div ng-controller="ExampleController">
	         <form name="userForm">
	           <label>Name:
	             <input type="text" name="userName"
	                    ng-model="user.name"
	                    ng-model-options="{ getterSetter: true }" />
	           </label>
	         </form>
	         <pre>user.name = <span ng-bind="user.name()"></span></pre>
	       </div>
	     </file>
	     <file name="app.js">
	       angular.module('getterSetterExample', [])
	         .controller('ExampleController', ['$scope', function($scope) {
	           var _name = 'Brian';
	           $scope.user = {
	             name: function(newName) {
	              // Note that newName can be undefined for two reasons:
	              // 1. Because it is called as a getter and thus called with no arguments
	              // 2. Because the property should actually be set to undefined. This happens e.g. if the
	              //    input is invalid
	              return arguments.length ? (_name = newName) : _name;
	             }
	           };
	         }]);
	     </file>
	 * </example>
	 */var ngModelDirective=['$rootScope',function($rootScope){return{restrict:'A',require:['ngModel','^?form','^?ngModelOptions'],controller:NgModelController,// Prelink needs to run before any input directive
	// so that we can set the NgModelOptions in NgModelController
	// before anyone else uses it.
	priority:1,compile:function ngModelCompile(element){// Setup initial state of the control
	element.addClass(PRISTINE_CLASS).addClass(UNTOUCHED_CLASS).addClass(VALID_CLASS);return{pre:function ngModelPreLink(scope,element,attr,ctrls){var modelCtrl=ctrls[0],formCtrl=ctrls[1]||modelCtrl.$$parentForm,optionsCtrl=ctrls[2];if(optionsCtrl){modelCtrl.$options=optionsCtrl.$options;}modelCtrl.$$initGetterSetters();// notify others, especially parent forms
	formCtrl.$addControl(modelCtrl);attr.$observe('name',function(newValue){if(modelCtrl.$name!==newValue){modelCtrl.$$parentForm.$$renameControl(modelCtrl,newValue);}});scope.$on('$destroy',function(){modelCtrl.$$parentForm.$removeControl(modelCtrl);});},post:function ngModelPostLink(scope,element,attr,ctrls){var modelCtrl=ctrls[0];modelCtrl.$$setUpdateOnEvents();function setTouched(){modelCtrl.$setTouched();}element.on('blur',function(){if(modelCtrl.$touched)return;if($rootScope.$$phase){scope.$evalAsync(setTouched);}else{scope.$apply(setTouched);}});}};}};}];/* exported defaultModelOptions */var defaultModelOptions;var DEFAULT_REGEXP=/(\s+|^)default(\s+|$)/;/**
	 * @ngdoc type
	 * @name ModelOptions
	 * @description
	 * A container for the options set by the {@link ngModelOptions} directive
	 */function ModelOptions(options){this.$$options=options;}ModelOptions.prototype={/**
	   * @ngdoc method
	   * @name ModelOptions#getOption
	   * @param {string} name the name of the option to retrieve
	   * @returns {*} the value of the option
	   * @description
	   * Returns the value of the given option
	   */getOption:function getOption(name){return this.$$options[name];},/**
	   * @ngdoc method
	   * @name ModelOptions#createChild
	   * @param {Object} options a hash of options for the new child that will override the parent's options
	   * @return {ModelOptions} a new `ModelOptions` object initialized with the given options.
	   */createChild:function createChild(options){var inheritAll=false;// make a shallow copy
	options=extend({},options);// Inherit options from the parent if specified by the value `"$inherit"`
	forEach(options,/** @this */function(option,key){if(option==='$inherit'){if(key==='*'){inheritAll=true;}else{options[key]=this.$$options[key];// `updateOn` is special so we must also inherit the `updateOnDefault` option
	if(key==='updateOn'){options.updateOnDefault=this.$$options.updateOnDefault;}}}else{if(key==='updateOn'){// If the `updateOn` property contains the `default` event then we have to remove
	// it from the event list and set the `updateOnDefault` flag.
	options.updateOnDefault=false;options[key]=trim(option.replace(DEFAULT_REGEXP,function(){options.updateOnDefault=true;return' ';}));}}},this);if(inheritAll){// We have a property of the form: `"*": "$inherit"`
	delete options['*'];defaults(options,this.$$options);}// Finally add in any missing defaults
	defaults(options,defaultModelOptions.$$options);return new ModelOptions(options);}};defaultModelOptions=new ModelOptions({updateOn:'',updateOnDefault:true,debounce:0,getterSetter:false,allowInvalid:false,timezone:null});/**
	 * @ngdoc directive
	 * @name ngModelOptions
	 * @restrict A
	 * @priority 10
	 *
	 * @description
	 * This directive allows you to modify the behaviour of {@link ngModel} directives within your
	 * application. You can specify an `ngModelOptions` directive on any element. All {@link ngModel}
	 * directives will use the options of their nearest `ngModelOptions` ancestor.
	 *
	 * The `ngModelOptions` settings are found by evaluating the value of the attribute directive as
	 * an AngularJS expression. This expression should evaluate to an object, whose properties contain
	 * the settings. For example: `<div ng-model-options="{ debounce: 100 }"`.
	 *
	 * ## Inheriting Options
	 *
	 * You can specify that an `ngModelOptions` setting should be inherited from a parent `ngModelOptions`
	 * directive by giving it the value of `"$inherit"`.
	 * Then it will inherit that setting from the first `ngModelOptions` directive found by traversing up the
	 * DOM tree. If there is no ancestor element containing an `ngModelOptions` directive then default settings
	 * will be used.
	 *
	 * For example given the following fragment of HTML
	 *
	 *
	 * ```html
	 * <div ng-model-options="{ allowInvalid: true, debounce: 200 }">
	 *   <form ng-model-options="{ updateOn: 'blur', allowInvalid: '$inherit' }">
	 *     <input ng-model-options="{ updateOn: 'default', allowInvalid: '$inherit' }" />
	 *   </form>
	 * </div>
	 * ```
	 *
	 * the `input` element will have the following settings
	 *
	 * ```js
	 * { allowInvalid: true, updateOn: 'default', debounce: 0 }
	 * ```
	 *
	 * Notice that the `debounce` setting was not inherited and used the default value instead.
	 *
	 * You can specify that all undefined settings are automatically inherited from an ancestor by
	 * including a property with key of `"*"` and value of `"$inherit"`.
	 *
	 * For example given the following fragment of HTML
	 *
	 *
	 * ```html
	 * <div ng-model-options="{ allowInvalid: true, debounce: 200 }">
	 *   <form ng-model-options="{ updateOn: 'blur', "*": '$inherit' }">
	 *     <input ng-model-options="{ updateOn: 'default', "*": '$inherit' }" />
	 *   </form>
	 * </div>
	 * ```
	 *
	 * the `input` element will have the following settings
	 *
	 * ```js
	 * { allowInvalid: true, updateOn: 'default', debounce: 200 }
	 * ```
	 *
	 * Notice that the `debounce` setting now inherits the value from the outer `<div>` element.
	 *
	 * If you are creating a reusable component then you should be careful when using `"*": "$inherit"`
	 * since you may inadvertently inherit a setting in the future that changes the behavior of your component.
	 *
	 *
	 * ## Triggering and debouncing model updates
	 *
	 * The `updateOn` and `debounce` properties allow you to specify a custom list of events that will
	 * trigger a model update and/or a debouncing delay so that the actual update only takes place when
	 * a timer expires; this timer will be reset after another change takes place.
	 *
	 * Given the nature of `ngModelOptions`, the value displayed inside input fields in the view might
	 * be different from the value in the actual model. This means that if you update the model you
	 * should also invoke {@link ngModel.NgModelController#$rollbackViewValue} on the relevant input field in
	 * order to make sure it is synchronized with the model and that any debounced action is canceled.
	 *
	 * The easiest way to reference the control's {@link ngModel.NgModelController#$rollbackViewValue}
	 * method is by making sure the input is placed inside a form that has a `name` attribute. This is
	 * important because `form` controllers are published to the related scope under the name in their
	 * `name` attribute.
	 *
	 * Any pending changes will take place immediately when an enclosing form is submitted via the
	 * `submit` event. Note that `ngClick` events will occur before the model is updated. Use `ngSubmit`
	 * to have access to the updated model.
	 *
	 * ### Overriding immediate updates
	 *
	 * The following example shows how to override immediate updates. Changes on the inputs within the
	 * form will update the model only when the control loses focus (blur event). If `escape` key is
	 * pressed while the input field is focused, the value is reset to the value in the current model.
	 *
	 * <example name="ngModelOptions-directive-blur" module="optionsExample">
	 *   <file name="index.html">
	 *     <div ng-controller="ExampleController">
	 *       <form name="userForm">
	 *         <label>
	 *           Name:
	 *           <input type="text" name="userName"
	 *                  ng-model="user.name"
	 *                  ng-model-options="{ updateOn: 'blur' }"
	 *                  ng-keyup="cancel($event)" />
	 *         </label><br />
	 *         <label>
	 *           Other data:
	 *           <input type="text" ng-model="user.data" />
	 *         </label><br />
	 *       </form>
	 *       <pre>user.name = <span ng-bind="user.name"></span></pre>
	 *     </div>
	 *   </file>
	 *   <file name="app.js">
	 *     angular.module('optionsExample', [])
	 *       .controller('ExampleController', ['$scope', function($scope) {
	 *         $scope.user = { name: 'say', data: '' };
	 *
	 *         $scope.cancel = function(e) {
	 *           if (e.keyCode === 27) {
	 *             $scope.userForm.userName.$rollbackViewValue();
	 *           }
	 *         };
	 *       }]);
	 *   </file>
	 *   <file name="protractor.js" type="protractor">
	 *     var model = element(by.binding('user.name'));
	 *     var input = element(by.model('user.name'));
	 *     var other = element(by.model('user.data'));
	 *
	 *     it('should allow custom events', function() {
	 *       input.sendKeys(' hello');
	 *       input.click();
	 *       expect(model.getText()).toEqual('say');
	 *       other.click();
	 *       expect(model.getText()).toEqual('say hello');
	 *     });
	 *
	 *     it('should $rollbackViewValue when model changes', function() {
	 *       input.sendKeys(' hello');
	 *       expect(input.getAttribute('value')).toEqual('say hello');
	 *       input.sendKeys(protractor.Key.ESCAPE);
	 *       expect(input.getAttribute('value')).toEqual('say');
	 *       other.click();
	 *       expect(model.getText()).toEqual('say');
	 *     });
	 *   </file>
	 * </example>
	 *
	 * ### Debouncing updates
	 *
	 * The next example shows how to debounce model changes. Model will be updated only 1 sec after last change.
	 * If the `Clear` button is pressed, any debounced action is canceled and the value becomes empty.
	 *
	 * <example name="ngModelOptions-directive-debounce" module="optionsExample">
	 *   <file name="index.html">
	 *     <div ng-controller="ExampleController">
	 *       <form name="userForm">
	 *         Name:
	 *         <input type="text" name="userName"
	 *                ng-model="user.name"
	 *                ng-model-options="{ debounce: 1000 }" />
	 *         <button ng-click="userForm.userName.$rollbackViewValue(); user.name=''">Clear</button><br />
	 *       </form>
	 *       <pre>user.name = <span ng-bind="user.name"></span></pre>
	 *     </div>
	 *   </file>
	 *   <file name="app.js">
	 *     angular.module('optionsExample', [])
	 *       .controller('ExampleController', ['$scope', function($scope) {
	 *         $scope.user = { name: 'say' };
	 *       }]);
	 *   </file>
	 * </example>
	 *
	 * ### Default events, extra triggers, and catch-all debounce values
	 *
	 * This example shows the relationship between "default" update events and
	 * additional `updateOn` triggers.
	 *
	 * `default` events are those that are bound to the control, and when fired, update the `$viewValue`
	 * via {@link ngModel.NgModelController#$setViewValue $setViewValue}. Every event that is not listed
	 * in `updateOn` is considered a "default" event, since different control types have different
	 * default events.
	 *
	 * The control in this example updates by "default", "click", and "blur", with different `debounce`
	 * values. You can see that "click" doesn't have an individual `debounce` value -
	 * therefore it uses the `*` debounce value.
	 *
	 * There is also a button that calls {@link ngModel.NgModelController#$setViewValue $setViewValue}
	 * directly with a "custom" event. Since "custom" is not defined in the `updateOn` list,
	 * it is considered a "default" event and will update the
	 * control if "default" is defined in `updateOn`, and will receive the "default" debounce value.
	 * Note that this is just to illustrate how custom controls would possibly call `$setViewValue`.
	 *
	 * You can change the `updateOn` and `debounce` configuration to test different scenarios. This
	 * is done with {@link ngModel.NgModelController#$overrideModelOptions $overrideModelOptions}.
	 *
	  <example name="ngModelOptions-advanced" module="optionsExample">
	    <file name="index.html">
	       <model-update-demo></model-update-demo>
	    </file>
	    <file name="app.js">
	      angular.module('optionsExample', [])
	        .component('modelUpdateDemo', {
	          templateUrl: 'template.html',
	          controller: function() {
	            this.name = 'Chinua';
	
	            this.options = {
	              updateOn: 'default blur click',
	              debounce: {
	                default: 2000,
	                blur: 0,
	                '*': 1000
	              }
	            };
	
	            this.updateEvents = function() {
	              var eventList = this.options.updateOn.split(' ');
	              eventList.push('*');
	              var events = {};
	
	              for (var i = 0; i < eventList.length; i++) {
	                events[eventList[i]] = this.options.debounce[eventList[i]];
	              }
	
	              this.events = events;
	            };
	
	            this.updateOptions = function() {
	              var options = angular.extend(this.options, {
	                updateOn: Object.keys(this.events).join(' ').replace('*', ''),
	                debounce: this.events
	              });
	
	              this.form.input.$overrideModelOptions(options);
	            };
	
	            // Initialize the event form
	            this.updateEvents();
	          }
	        });
	    </file>
	    <file name="template.html">
	      <form name="$ctrl.form">
	        Input: <input type="text" name="input" ng-model="$ctrl.name" ng-model-options="$ctrl.options" />
	      </form>
	      Model: <tt>{{$ctrl.name}}</tt>
	      <hr>
	      <button ng-click="$ctrl.form.input.$setViewValue('some value', 'custom')">Trigger setViewValue with 'some value' and 'custom' event</button>
	
	      <hr>
	      <form ng-submit="$ctrl.updateOptions()">
	        <b>updateOn</b><br>
	        <input type="text" ng-model="$ctrl.options.updateOn" ng-change="$ctrl.updateEvents()" ng-model-options="{debounce: 500}">
	
	        <table>
	          <tr>
	            <th>Option</th>
	            <th>Debounce value</th>
	          </tr>
	          <tr ng-repeat="(key, value) in $ctrl.events">
	            <td>{{key}}</td>
	            <td><input type="number" ng-model="$ctrl.events[key]" /></td>
	          </tr>
	        </table>
	
	        <br>
	        <input type="submit" value="Update options">
	      </form>
	    </file>
	  </example>
	 *
	 *
	 * ## Model updates and validation
	 *
	 * The default behaviour in `ngModel` is that the model value is set to `undefined` when the
	 * validation determines that the value is invalid. By setting the `allowInvalid` property to true,
	 * the model will still be updated even if the value is invalid.
	 *
	 *
	 * ## Connecting to the scope
	 *
	 * By setting the `getterSetter` property to true you are telling ngModel that the `ngModel` expression
	 * on the scope refers to a "getter/setter" function rather than the value itself.
	 *
	 * The following example shows how to bind to getter/setters:
	 *
	 * <example name="ngModelOptions-directive-getter-setter" module="getterSetterExample">
	 *   <file name="index.html">
	 *     <div ng-controller="ExampleController">
	 *       <form name="userForm">
	 *         <label>
	 *           Name:
	 *           <input type="text" name="userName"
	 *                  ng-model="user.name"
	 *                  ng-model-options="{ getterSetter: true }" />
	 *         </label>
	 *       </form>
	 *       <pre>user.name = <span ng-bind="user.name()"></span></pre>
	 *     </div>
	 *   </file>
	 *   <file name="app.js">
	 *     angular.module('getterSetterExample', [])
	 *       .controller('ExampleController', ['$scope', function($scope) {
	 *         var _name = 'Brian';
	 *         $scope.user = {
	 *           name: function(newName) {
	 *             return angular.isDefined(newName) ? (_name = newName) : _name;
	 *           }
	 *         };
	 *       }]);
	 *   </file>
	 * </example>
	 *
	 *
	 * ## Programmatically changing options
	 *
	 * The `ngModelOptions` expression is only evaluated once when the directive is linked; it is not
	 * watched for changes. However, it is possible to override the options on a single
	 * {@link ngModel.NgModelController} instance with
	 * {@link ngModel.NgModelController#$overrideModelOptions `NgModelController#$overrideModelOptions()`}.
	 * See also the example for
	 * {@link ngModelOptions#default-events-extra-triggers-and-catch-all-debounce-values
	 * Default events, extra triggers, and catch-all debounce values}.
	 *
	 *
	 * ## Specifying timezones
	 *
	 * You can specify the timezone that date/time input directives expect by providing its name in the
	 * `timezone` property.
	 *
	 *
	 * ## Formatting the value of `time` and `datetime-local`
	 *
	 * With the options `timeSecondsFormat` and `timeStripZeroSeconds` it is possible to adjust the value
	 * that is displayed in the control. Note that browsers may apply their own formatting
	 * in the user interface.
	 *
	   <example name="ngModelOptions-time-format" module="timeExample">
	     <file name="index.html">
	       <time-example></time-example>
	     </file>
	     <file name="script.js">
	        angular.module('timeExample', [])
	          .component('timeExample', {
	            templateUrl: 'timeExample.html',
	            controller: function() {
	              this.time = new Date(1970, 0, 1, 14, 57, 0);
	
	              this.options = {
	                timeSecondsFormat: 'ss',
	                timeStripZeroSeconds: true
	              };
	
	              this.optionChange = function() {
	                this.timeForm.timeFormatted.$overrideModelOptions(this.options);
	                this.time = new Date(this.time);
	              };
	            }
	          });
	     </file>
	     <file name="timeExample.html">
	       <form name="$ctrl.timeForm">
	         <strong>Default</strong>:
	         <input type="time" ng-model="$ctrl.time" step="any" /><br>
	         <strong>With options</strong>:
	         <input type="time" name="timeFormatted" ng-model="$ctrl.time" step="any" ng-model-options="$ctrl.options" />
	         <br>
	
	         Options:<br>
	         <code>timeSecondsFormat</code>:
	         <input
	           type="text"
	           ng-model="$ctrl.options.timeSecondsFormat"
	           ng-change="$ctrl.optionChange()">
	         <br>
	         <code>timeStripZeroSeconds</code>:
	         <input
	           type="checkbox"
	           ng-model="$ctrl.options.timeStripZeroSeconds"
	           ng-change="$ctrl.optionChange()">
	        </form>
	      </file>
	 *  </example>
	 *
	 * @param {Object} ngModelOptions options to apply to {@link ngModel} directives on this element and
	 *   and its descendents.
	 *
	 * **General options**:
	 *
	 *   - `updateOn`: string specifying which event should the input be bound to. You can set several
	 *     events using an space delimited list. There is a special event called `default` that
	 *     matches the default events belonging to the control. These are the events that are bound to
	 *     the control, and when fired, update the `$viewValue` via `$setViewValue`.
	 *
	 *     `ngModelOptions` considers every event that is not listed in `updateOn` a "default" event,
	 *     since different control types use different default events.
	 *
	 *     See also the section {@link ngModelOptions#triggering-and-debouncing-model-updates
	 *     Triggering and debouncing model updates}.
	 *
	 *   - `debounce`: integer value which contains the debounce model update value in milliseconds. A
	 *     value of 0 triggers an immediate update. If an object is supplied instead, you can specify a
	 *     custom value for each event. For example:
	 *     ```
	 *     ng-model-options="{
	 *       updateOn: 'default blur',
	 *       debounce: { 'default': 500, 'blur': 0 }
	 *     }"
	 *     ```
	 *     You can use the `*` key to specify a debounce value that applies to all events that are not
	 *     specifically listed. In the following example, `mouseup` would have a debounce delay of 1000:
	 *     ```
	 *     ng-model-options="{
	 *       updateOn: 'default blur mouseup',
	 *       debounce: { 'default': 500, 'blur': 0, '*': 1000 }
	 *     }"
	 *     ```
	 *   - `allowInvalid`: boolean value which indicates that the model can be set with values that did
	 *     not validate correctly instead of the default behavior of setting the model to undefined.
	 *   - `getterSetter`: boolean value which determines whether or not to treat functions bound to
	 *     `ngModel` as getters/setters.
	 *
	 *
	 *  **Input-type specific options**:
	 *
	 *   - `timezone`: Defines the timezone to be used to read/write the `Date` instance in the model for
	 *     `<input type="date" />`, `<input type="time" />`, ... . It understands UTC/GMT and the
	 *     continental US time zone abbreviations, but for general use, use a time zone offset, for
	 *     example, `'+0430'` (4 hours, 30 minutes east of the Greenwich meridian)
	 *     If not specified, the timezone of the browser will be used.
	 *     Note that changing the timezone will have no effect on the current date, and is only applied after
	 *     the next input / model change.
	 *
	 *   - `timeSecondsFormat`: Defines if the `time` and `datetime-local` types should show seconds and
	 *     milliseconds. The option follows the format string of {@link date date filter}.
	 *     By default, the options is `undefined` which is equal to `'ss.sss'` (seconds and milliseconds).
	 *     The other options are `'ss'` (strips milliseconds), and `''` (empty string), which strips both
	 *     seconds and milliseconds.
	 *     Note that browsers that support `time` and `datetime-local` require the hour and minutes
	 *     part of the time string, and may show the value differently in the user interface.
	 *     {@link ngModelOptions#formatting-the-value-of-time-and-datetime-local- See the example}.
	 *
	 *   - `timeStripZeroSeconds`: Defines if the `time` and `datetime-local` types should strip the
	 *     seconds and milliseconds from the formatted value if they are zero. This option is applied
	 *     after `timeSecondsFormat`.
	 *     This option can be used to make the formatting consistent over different browsers, as some
	 *     browsers with support for `time` will natively hide the milliseconds and
	 *     seconds if they are zero, but others won't, and browsers that don't implement these input
	 *     types will always show the full string.
	 *     {@link ngModelOptions#formatting-the-value-of-time-and-datetime-local- See the example}.
	 *
	 */var ngModelOptionsDirective=function ngModelOptionsDirective(){NgModelOptionsController.$inject=['$attrs','$scope'];function NgModelOptionsController($attrs,$scope){this.$$attrs=$attrs;this.$$scope=$scope;}NgModelOptionsController.prototype={$onInit:function $onInit(){var parentOptions=this.parentCtrl?this.parentCtrl.$options:defaultModelOptions;var modelOptionsDefinition=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=parentOptions.createChild(modelOptionsDefinition);}};return{restrict:'A',// ngModelOptions needs to run before ngModel and input directives
	priority:10,require:{parentCtrl:'?^^ngModelOptions'},bindToController:true,controller:NgModelOptionsController};};// shallow copy over values from `src` that are not already specified on `dst`
	function defaults(dst,src){forEach(src,function(value,key){if(!isDefined(dst[key])){dst[key]=value;}});}/**
	 * @ngdoc directive
	 * @name ngNonBindable
	 * @restrict AC
	 * @priority 1000
	 * @element ANY
	 *
	 * @description
	 * The `ngNonBindable` directive tells AngularJS not to compile or bind the contents of the current
	 * DOM element, including directives on the element itself that have a lower priority than
	 * `ngNonBindable`. This is useful if the element contains what appears to be AngularJS directives
	 * and bindings but which should be ignored by AngularJS. This could be the case if you have a site
	 * that displays snippets of code, for instance.
	 *
	 * @example
	 * In this example there are two locations where a simple interpolation binding (`{{}}`) is present,
	 * but the one wrapped in `ngNonBindable` is left alone.
	 *
	  <example name="ng-non-bindable">
	    <file name="index.html">
	      <div>Normal: {{1 + 2}}</div>
	      <div ng-non-bindable>Ignored: {{1 + 2}}</div>
	    </file>
	    <file name="protractor.js" type="protractor">
	     it('should check ng-non-bindable', function() {
	       expect(element(by.binding('1 + 2')).getText()).toContain('3');
	       expect(element.all(by.css('div')).last().getText()).toMatch(/1 \+ 2/);
	     });
	    </file>
	  </example>
	 */var ngNonBindableDirective=ngDirective({terminal:true,priority:1000});/* exported ngOptionsDirective *//* global jqLiteRemove */var ngOptionsMinErr=minErr('ngOptions');/**
	 * @ngdoc directive
	 * @name ngOptions
	 * @restrict A
	 *
	 * @description
	 *
	 * The `ngOptions` attribute can be used to dynamically generate a list of `<option>`
	 * elements for the `<select>` element using the array or object obtained by evaluating the
	 * `ngOptions` comprehension expression.
	 *
	 * In many cases, {@link ng.directive:ngRepeat ngRepeat} can be used on `<option>` elements instead of
	 * `ngOptions` to achieve a similar result. However, `ngOptions` provides some benefits:
	 * - more flexibility in how the `<select>`'s model is assigned via the `select` **`as`** part of the
	 * comprehension expression
	 * - reduced memory consumption by not creating a new scope for each repeated instance
	 * - increased render speed by creating the options in a documentFragment instead of individually
	 *
	 * When an item in the `<select>` menu is selected, the array element or object property
	 * represented by the selected option will be bound to the model identified by the `ngModel`
	 * directive.
	 *
	 * Optionally, a single hard-coded `<option>` element, with the value set to an empty string, can
	 * be nested into the `<select>` element. This element will then represent the `null` or "not selected"
	 * option. See example below for demonstration.
	 *
	 * ## Complex Models (objects or collections)
	 *
	 * By default, `ngModel` watches the model by reference, not value. This is important to know when
	 * binding the select to a model that is an object or a collection.
	 *
	 * One issue occurs if you want to preselect an option. For example, if you set
	 * the model to an object that is equal to an object in your collection, `ngOptions` won't be able to set the selection,
	 * because the objects are not identical. So by default, you should always reference the item in your collection
	 * for preselections, e.g.: `$scope.selected = $scope.collection[3]`.
	 *
	 * Another solution is to use a `track by` clause, because then `ngOptions` will track the identity
	 * of the item not by reference, but by the result of the `track by` expression. For example, if your
	 * collection items have an id property, you would `track by item.id`.
	 *
	 * A different issue with objects or collections is that ngModel won't detect if an object property or
	 * a collection item changes. For that reason, `ngOptions` additionally watches the model using
	 * `$watchCollection`, when the expression contains a `track by` clause or the the select has the `multiple` attribute.
	 * This allows ngOptions to trigger a re-rendering of the options even if the actual object/collection
	 * has not changed identity, but only a property on the object or an item in the collection changes.
	 *
	 * Note that `$watchCollection` does a shallow comparison of the properties of the object (or the items in the collection
	 * if the model is an array). This means that changing a property deeper than the first level inside the
	 * object/collection will not trigger a re-rendering.
	 *
	 * ## `select` **`as`**
	 *
	 * Using `select` **`as`** will bind the result of the `select` expression to the model, but
	 * the value of the `<select>` and `<option>` html elements will be either the index (for array data sources)
	 * or property name (for object data sources) of the value within the collection. If a **`track by`** expression
	 * is used, the result of that expression will be set as the value of the `option` and `select` elements.
	 *
	 *
	 * ### `select` **`as`** and **`track by`**
	 *
	 * <div class="alert alert-warning">
	 * Be careful when using `select` **`as`** and **`track by`** in the same expression.
	 * </div>
	 *
	 * Given this array of items on the $scope:
	 *
	 * ```js
	 * $scope.items = [{
	 *   id: 1,
	 *   label: 'aLabel',
	 *   subItem: { name: 'aSubItem' }
	 * }, {
	 *   id: 2,
	 *   label: 'bLabel',
	 *   subItem: { name: 'bSubItem' }
	 * }];
	 * ```
	 *
	 * This will work:
	 *
	 * ```html
	 * <select ng-options="item as item.label for item in items track by item.id" ng-model="selected"></select>
	 * ```
	 * ```js
	 * $scope.selected = $scope.items[0];
	 * ```
	 *
	 * but this will not work:
	 *
	 * ```html
	 * <select ng-options="item.subItem as item.label for item in items track by item.id" ng-model="selected"></select>
	 * ```
	 * ```js
	 * $scope.selected = $scope.items[0].subItem;
	 * ```
	 *
	 * In both examples, the **`track by`** expression is applied successfully to each `item` in the
	 * `items` array. Because the selected option has been set programmatically in the controller, the
	 * **`track by`** expression is also applied to the `ngModel` value. In the first example, the
	 * `ngModel` value is `items[0]` and the **`track by`** expression evaluates to `items[0].id` with
	 * no issue. In the second example, the `ngModel` value is `items[0].subItem` and the **`track by`**
	 * expression evaluates to `items[0].subItem.id` (which is undefined). As a result, the model value
	 * is not matched against any `<option>` and the `<select>` appears as having no selected value.
	 *
	 *
	 * @param {string} ngModel Assignable AngularJS expression to data-bind to.
	 * @param {comprehension_expression} ngOptions in one of the following forms:
	 *
	 *   * for array data sources:
	 *     * `label` **`for`** `value` **`in`** `array`
	 *     * `select` **`as`** `label` **`for`** `value` **`in`** `array`
	 *     * `label` **`group by`** `group` **`for`** `value` **`in`** `array`
	 *     * `label` **`disable when`** `disable` **`for`** `value` **`in`** `array`
	 *     * `label` **`group by`** `group` **`for`** `value` **`in`** `array` **`track by`** `trackexpr`
	 *     * `label` **`disable when`** `disable` **`for`** `value` **`in`** `array` **`track by`** `trackexpr`
	 *     * `label` **`for`** `value` **`in`** `array` | orderBy:`orderexpr` **`track by`** `trackexpr`
	 *        (for including a filter with `track by`)
	 *   * for object data sources:
	 *     * `label` **`for (`**`key` **`,`** `value`**`) in`** `object`
	 *     * `select` **`as`** `label` **`for (`**`key` **`,`** `value`**`) in`** `object`
	 *     * `label` **`group by`** `group` **`for (`**`key`**`,`** `value`**`) in`** `object`
	 *     * `label` **`disable when`** `disable` **`for (`**`key`**`,`** `value`**`) in`** `object`
	 *     * `select` **`as`** `label` **`group by`** `group`
	 *         **`for` `(`**`key`**`,`** `value`**`) in`** `object`
	 *     * `select` **`as`** `label` **`disable when`** `disable`
	 *         **`for` `(`**`key`**`,`** `value`**`) in`** `object`
	 *
	 * Where:
	 *
	 *   * `array` / `object`: an expression which evaluates to an array / object to iterate over.
	 *   * `value`: local variable which will refer to each item in the `array` or each property value
	 *      of `object` during iteration.
	 *   * `key`: local variable which will refer to a property name in `object` during iteration.
	 *   * `label`: The result of this expression will be the label for `<option>` element. The
	 *     `expression` will most likely refer to the `value` variable (e.g. `value.propertyName`).
	 *   * `select`: The result of this expression will be bound to the model of the parent `<select>`
	 *      element. If not specified, `select` expression will default to `value`.
	 *   * `group`: The result of this expression will be used to group options using the `<optgroup>`
	 *      DOM element.
	 *   * `disable`: The result of this expression will be used to disable the rendered `<option>`
	 *      element. Return `true` to disable.
	 *   * `trackexpr`: Used when working with an array of objects. The result of this expression will be
	 *      used to identify the objects in the array. The `trackexpr` will most likely refer to the
	 *     `value` variable (e.g. `value.propertyName`). With this the selection is preserved
	 *      even when the options are recreated (e.g. reloaded from the server).
	 * @param {string=} name Property name of the form under which the control is published.
	 * @param {string=} required The control is considered valid only if value is entered.
	 * @param {string=} ngRequired Adds `required` attribute and `required` validation constraint to
	 *    the element when the ngRequired expression evaluates to true. Use `ngRequired` instead of
	 *    `required` when you want to data-bind to the `required` attribute.
	 * @param {string=} ngAttrSize sets the size of the select element dynamically. Uses the
	 * {@link guide/interpolation#-ngattr-for-binding-to-arbitrary-attributes ngAttr} directive.
	 *
	 * @example
	    <example module="selectExample" name="select">
	      <file name="index.html">
	        <script>
	        angular.module('selectExample', [])
	          .controller('ExampleController', ['$scope', function($scope) {
	            $scope.colors = [
	              {name:'black', shade:'dark'},
	              {name:'white', shade:'light', notAnOption: true},
	              {name:'red', shade:'dark'},
	              {name:'blue', shade:'dark', notAnOption: true},
	              {name:'yellow', shade:'light', notAnOption: false}
	            ];
	            $scope.myColor = $scope.colors[2]; // red
	          }]);
	        </script>
	        <div ng-controller="ExampleController">
	          <ul>
	            <li ng-repeat="color in colors">
	              <label>Name: <input ng-model="color.name"></label>
	              <label><input type="checkbox" ng-model="color.notAnOption"> Disabled?</label>
	              <button ng-click="colors.splice($index, 1)" aria-label="Remove">X</button>
	            </li>
	            <li>
	              <button ng-click="colors.push({})">add</button>
	            </li>
	          </ul>
	          <hr/>
	          <label>Color (null not allowed):
	            <select ng-model="myColor" ng-options="color.name for color in colors"></select>
	          </label><br/>
	          <label>Color (null allowed):
	          <span  class="nullable">
	            <select ng-model="myColor" ng-options="color.name for color in colors">
	              <option value="">-- choose color --</option>
	            </select>
	          </span></label><br/>
	
	          <label>Color grouped by shade:
	            <select ng-model="myColor" ng-options="color.name group by color.shade for color in colors">
	            </select>
	          </label><br/>
	
	          <label>Color grouped by shade, with some disabled:
	            <select ng-model="myColor"
	                  ng-options="color.name group by color.shade disable when color.notAnOption for color in colors">
	            </select>
	          </label><br/>
	
	
	
	          Select <button ng-click="myColor = { name:'not in list', shade: 'other' }">bogus</button>.
	          <br/>
	          <hr/>
	          Currently selected: {{ {selected_color:myColor} }}
	          <div style="border:solid 1px black; height:20px"
	               ng-style="{'background-color':myColor.name}">
	          </div>
	        </div>
	      </file>
	      <file name="protractor.js" type="protractor">
	         it('should check ng-options', function() {
	           expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('red');
	           element.all(by.model('myColor')).first().click();
	           element.all(by.css('select[ng-model="myColor"] option')).first().click();
	           expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('black');
	           element(by.css('.nullable select[ng-model="myColor"]')).click();
	           element.all(by.css('.nullable select[ng-model="myColor"] option')).first().click();
	           expect(element(by.binding('{selected_color:myColor}')).getText()).toMatch('null');
	         });
	      </file>
	    </example>
	 *//* eslint-disable max-len *///                     //00001111111111000000000002222222222000000000000000000000333333333300000000000000000000000004444444444400000000000005555555555555000000000666666666666600000007777777777777000000000000000888888888800000000000000000009999999999
	var NG_OPTIONS_REGEXP=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/;// 1: value expression (valueFn)
	// 2: label expression (displayFn)
	// 3: group by expression (groupByFn)
	// 4: disable when expression (disableWhenFn)
	// 5: array item variable name
	// 6: object item key variable name
	// 7: object item value variable name
	// 8: collection expression
	// 9: track by expression
	/* eslint-enable */var ngOptionsDirective=['$compile','$document','$parse',function($compile,$document,$parse){function parseOptionsExpression(optionsExp,selectElement,scope){var match=optionsExp.match(NG_OPTIONS_REGEXP);if(!match){throw ngOptionsMinErr('iexp','Expected expression in form of '+'\'_select_ (as _label_)? for (_key_,)?_value_ in _collection_\''+' but got \'{0}\'. Element: {1}',optionsExp,startingTag(selectElement));}// Extract the parts from the ngOptions expression
	// The variable name for the value of the item in the collection
	var valueName=match[5]||match[7];// The variable name for the key of the item in the collection
	var keyName=match[6];// An expression that generates the viewValue for an option if there is a label expression
	var selectAs=/ as /.test(match[0])&&match[1];// An expression that is used to track the id of each object in the options collection
	var trackBy=match[9];// An expression that generates the viewValue for an option if there is no label expression
	var valueFn=$parse(match[2]?match[1]:valueName);var selectAsFn=selectAs&&$parse(selectAs);var viewValueFn=selectAsFn||valueFn;var trackByFn=trackBy&&$parse(trackBy);// Get the value by which we are going to track the option
	// if we have a trackFn then use that (passing scope and locals)
	// otherwise just hash the given viewValue
	var getTrackByValueFn=trackBy?function(value,locals){return trackByFn(scope,locals);}:function getHashOfValue(value){return hashKey(value);};var getTrackByValue=function getTrackByValue(value,key){return getTrackByValueFn(value,getLocals(value,key));};var displayFn=$parse(match[2]||match[1]);var groupByFn=$parse(match[3]||'');var disableWhenFn=$parse(match[4]||'');var valuesFn=$parse(match[8]);var locals={};var getLocals=keyName?function(value,key){locals[keyName]=key;locals[valueName]=value;return locals;}:function(value){locals[valueName]=value;return locals;};function Option(selectValue,viewValue,label,group,disabled){this.selectValue=selectValue;this.viewValue=viewValue;this.label=label;this.group=group;this.disabled=disabled;}function getOptionValuesKeys(optionValues){var optionValuesKeys;if(!keyName&&isArrayLike(optionValues)){optionValuesKeys=optionValues;}else{// if object, extract keys, in enumeration order, unsorted
	optionValuesKeys=[];for(var itemKey in optionValues){if(optionValues.hasOwnProperty(itemKey)&&itemKey.charAt(0)!=='$'){optionValuesKeys.push(itemKey);}}}return optionValuesKeys;}return{trackBy:trackBy,getTrackByValue:getTrackByValue,getWatchables:$parse(valuesFn,function(optionValues){// Create a collection of things that we would like to watch (watchedArray)
	// so that they can all be watched using a single $watchCollection
	// that only runs the handler once if anything changes
	var watchedArray=[];optionValues=optionValues||[];var optionValuesKeys=getOptionValuesKeys(optionValues);var optionValuesLength=optionValuesKeys.length;for(var index=0;index<optionValuesLength;index++){var key=optionValues===optionValuesKeys?index:optionValuesKeys[index];var value=optionValues[key];var locals=getLocals(value,key);var selectValue=getTrackByValueFn(value,locals);watchedArray.push(selectValue);// Only need to watch the displayFn if there is a specific label expression
	if(match[2]||match[1]){var label=displayFn(scope,locals);watchedArray.push(label);}// Only need to watch the disableWhenFn if there is a specific disable expression
	if(match[4]){var disableWhen=disableWhenFn(scope,locals);watchedArray.push(disableWhen);}}return watchedArray;}),getOptions:function getOptions(){var optionItems=[];var selectValueMap={};// The option values were already computed in the `getWatchables` fn,
	// which must have been called to trigger `getOptions`
	var optionValues=valuesFn(scope)||[];var optionValuesKeys=getOptionValuesKeys(optionValues);var optionValuesLength=optionValuesKeys.length;for(var index=0;index<optionValuesLength;index++){var key=optionValues===optionValuesKeys?index:optionValuesKeys[index];var value=optionValues[key];var locals=getLocals(value,key);var viewValue=viewValueFn(scope,locals);var selectValue=getTrackByValueFn(viewValue,locals);var label=displayFn(scope,locals);var group=groupByFn(scope,locals);var disabled=disableWhenFn(scope,locals);var optionItem=new Option(selectValue,viewValue,label,group,disabled);optionItems.push(optionItem);selectValueMap[selectValue]=optionItem;}return{items:optionItems,selectValueMap:selectValueMap,getOptionFromViewValue:function getOptionFromViewValue(value){return selectValueMap[getTrackByValue(value)];},getViewValueFromOption:function getViewValueFromOption(option){// If the viewValue could be an object that may be mutated by the application,
	// we need to make a copy and not return the reference to the value on the option.
	return trackBy?copy(option.viewValue):option.viewValue;}};}};}// Support: IE 9 only
	// We can't just jqLite('<option>') since jqLite is not smart enough
	// to create it in <select> and IE barfs otherwise.
	var optionTemplate=window.document.createElement('option'),optGroupTemplate=window.document.createElement('optgroup');function ngOptionsPostLink(scope,selectElement,attr,ctrls){var selectCtrl=ctrls[0];var ngModelCtrl=ctrls[1];var multiple=attr.multiple;// The emptyOption allows the application developer to provide their own custom "empty"
	// option when the viewValue does not match any of the option values.
	for(var i=0,children=selectElement.children(),ii=children.length;i<ii;i++){if(children[i].value===''){selectCtrl.hasEmptyOption=true;selectCtrl.emptyOption=children.eq(i);break;}}// The empty option will be compiled and rendered before we first generate the options
	selectElement.empty();var providedEmptyOption=!!selectCtrl.emptyOption;var unknownOption=jqLite(optionTemplate.cloneNode(false));unknownOption.val('?');var options;var ngOptions=parseOptionsExpression(attr.ngOptions,selectElement,scope);// This stores the newly created options before they are appended to the select.
	// Since the contents are removed from the fragment when it is appended,
	// we only need to create it once.
	var listFragment=$document[0].createDocumentFragment();// Overwrite the implementation. ngOptions doesn't use hashes
	selectCtrl.generateUnknownOptionValue=function(val){return'?';};// Update the controller methods for multiple selectable options
	if(!multiple){selectCtrl.writeValue=function writeNgOptionsValue(value){// The options might not be defined yet when ngModel tries to render
	if(!options)return;var selectedOption=selectElement[0].options[selectElement[0].selectedIndex];var option=options.getOptionFromViewValue(value);// Make sure to remove the selected attribute from the previously selected option
	// Otherwise, screen readers might get confused
	if(selectedOption)selectedOption.removeAttribute('selected');if(option){// Don't update the option when it is already selected.
	// For example, the browser will select the first option by default. In that case,
	// most properties are set automatically - except the `selected` attribute, which we
	// set always
	if(selectElement[0].value!==option.selectValue){selectCtrl.removeUnknownOption();selectElement[0].value=option.selectValue;option.element.selected=true;}option.element.setAttribute('selected','selected');}else{selectCtrl.selectUnknownOrEmptyOption(value);}};selectCtrl.readValue=function readNgOptionsValue(){var selectedOption=options.selectValueMap[selectElement.val()];if(selectedOption&&!selectedOption.disabled){selectCtrl.unselectEmptyOption();selectCtrl.removeUnknownOption();return options.getViewValueFromOption(selectedOption);}return null;};// If we are using `track by` then we must watch the tracked value on the model
	// since ngModel only watches for object identity change
	// FIXME: When a user selects an option, this watch will fire needlessly
	if(ngOptions.trackBy){scope.$watch(function(){return ngOptions.getTrackByValue(ngModelCtrl.$viewValue);},function(){ngModelCtrl.$render();});}}else{selectCtrl.writeValue=function writeNgOptionsMultiple(values){// The options might not be defined yet when ngModel tries to render
	if(!options)return;// Only set `<option>.selected` if necessary, in order to prevent some browsers from
	// scrolling to `<option>` elements that are outside the `<select>` element's viewport.
	var selectedOptions=values&&values.map(getAndUpdateSelectedOption)||[];options.items.forEach(function(option){if(option.element.selected&&!includes(selectedOptions,option)){option.element.selected=false;}});};selectCtrl.readValue=function readNgOptionsMultiple(){var selectedValues=selectElement.val()||[],selections=[];forEach(selectedValues,function(value){var option=options.selectValueMap[value];if(option&&!option.disabled)selections.push(options.getViewValueFromOption(option));});return selections;};// If we are using `track by` then we must watch these tracked values on the model
	// since ngModel only watches for object identity change
	if(ngOptions.trackBy){scope.$watchCollection(function(){if(isArray(ngModelCtrl.$viewValue)){return ngModelCtrl.$viewValue.map(function(value){return ngOptions.getTrackByValue(value);});}},function(){ngModelCtrl.$render();});}}if(providedEmptyOption){// compile the element since there might be bindings in it
	$compile(selectCtrl.emptyOption)(scope);selectElement.prepend(selectCtrl.emptyOption);if(selectCtrl.emptyOption[0].nodeType===NODE_TYPE_COMMENT){// This means the empty option has currently no actual DOM node, probably because
	// it has been modified by a transclusion directive.
	selectCtrl.hasEmptyOption=false;// Redefine the registerOption function, which will catch
	// options that are added by ngIf etc. (rendering of the node is async because of
	// lazy transclusion)
	selectCtrl.registerOption=function(optionScope,optionEl){if(optionEl.val()===''){selectCtrl.hasEmptyOption=true;selectCtrl.emptyOption=optionEl;selectCtrl.emptyOption.removeClass('ng-scope');// This ensures the new empty option is selected if previously no option was selected
	ngModelCtrl.$render();optionEl.on('$destroy',function(){var needsRerender=selectCtrl.$isEmptyOptionSelected();selectCtrl.hasEmptyOption=false;selectCtrl.emptyOption=undefined;if(needsRerender)ngModelCtrl.$render();});}};}else{// remove the class, which is added automatically because we recompile the element and it
	// becomes the compilation root
	selectCtrl.emptyOption.removeClass('ng-scope');}}// We will re-render the option elements if the option values or labels change
	scope.$watchCollection(ngOptions.getWatchables,updateOptions);// ------------------------------------------------------------------ //
	function addOptionElement(option,parent){var optionElement=optionTemplate.cloneNode(false);parent.appendChild(optionElement);updateOptionElement(option,optionElement);}function getAndUpdateSelectedOption(viewValue){var option=options.getOptionFromViewValue(viewValue);var element=option&&option.element;if(element&&!element.selected)element.selected=true;return option;}function updateOptionElement(option,element){option.element=element;element.disabled=option.disabled;// Support: IE 11 only, Edge 12-13 only
	// NOTE: The label must be set before the value, otherwise IE 11 & Edge create unresponsive
	// selects in certain circumstances when multiple selects are next to each other and display
	// the option list in listbox style, i.e. the select is [multiple], or specifies a [size].
	// See https://github.com/angular/angular.js/issues/11314 for more info.
	// This is unfortunately untestable with unit / e2e tests
	if(option.label!==element.label){element.label=option.label;element.textContent=option.label;}element.value=option.selectValue;}function updateOptions(){var previousValue=options&&selectCtrl.readValue();// We must remove all current options, but cannot simply set innerHTML = null
	// since the providedEmptyOption might have an ngIf on it that inserts comments which we
	// must preserve.
	// Instead, iterate over the current option elements and remove them or their optgroup
	// parents
	if(options){for(var i=options.items.length-1;i>=0;i--){var option=options.items[i];if(isDefined(option.group)){jqLiteRemove(option.element.parentNode);}else{jqLiteRemove(option.element);}}}options=ngOptions.getOptions();var groupElementMap={};options.items.forEach(function addOption(option){var groupElement;if(isDefined(option.group)){// This option is to live in a group
	// See if we have already created this group
	groupElement=groupElementMap[option.group];if(!groupElement){groupElement=optGroupTemplate.cloneNode(false);listFragment.appendChild(groupElement);// Update the label on the group element
	// "null" is special cased because of Safari
	groupElement.label=option.group===null?'null':option.group;// Store it for use later
	groupElementMap[option.group]=groupElement;}addOptionElement(option,groupElement);}else{// This option is not in a group
	addOptionElement(option,listFragment);}});selectElement[0].appendChild(listFragment);ngModelCtrl.$render();// Check to see if the value has changed due to the update to the options
	if(!ngModelCtrl.$isEmpty(previousValue)){var nextValue=selectCtrl.readValue();var isNotPrimitive=ngOptions.trackBy||multiple;if(isNotPrimitive?!equals(previousValue,nextValue):previousValue!==nextValue){ngModelCtrl.$setViewValue(nextValue);ngModelCtrl.$render();}}}}return{restrict:'A',terminal:true,require:['select','ngModel'],link:{pre:function ngOptionsPreLink(scope,selectElement,attr,ctrls){// Deactivate the SelectController.register method to prevent
	// option directives from accidentally registering themselves
	// (and unwanted $destroy handlers etc.)
	ctrls[0].registerOption=noop;},post:ngOptionsPostLink}};}];/**
	 * @ngdoc directive
	 * @name ngPluralize
	 * @restrict EA
	 *
	 * @description
	 * `ngPluralize` is a directive that displays messages according to en-US localization rules.
	 * These rules are bundled with angular.js, but can be overridden
	 * (see {@link guide/i18n AngularJS i18n} dev guide). You configure ngPluralize directive
	 * by specifying the mappings between
	 * [plural categories](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html)
	 * and the strings to be displayed.
	 *
	 * ## Plural categories and explicit number rules
	 * There are two
	 * [plural categories](http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html)
	 * in AngularJS's default en-US locale: "one" and "other".
	 *
	 * While a plural category may match many numbers (for example, in en-US locale, "other" can match
	 * any number that is not 1), an explicit number rule can only match one number. For example, the
	 * explicit number rule for "3" matches the number 3. There are examples of plural categories
	 * and explicit number rules throughout the rest of this documentation.
	 *
	 * ## Configuring ngPluralize
	 * You configure ngPluralize by providing 2 attributes: `count` and `when`.
	 * You can also provide an optional attribute, `offset`.
	 *
	 * The value of the `count` attribute can be either a string or an {@link guide/expression
	 * AngularJS expression}; these are evaluated on the current scope for its bound value.
	 *
	 * The `when` attribute specifies the mappings between plural categories and the actual
	 * string to be displayed. The value of the attribute should be a JSON object.
	 *
	 * The following example shows how to configure ngPluralize:
	 *
	 * ```html
	 * <ng-pluralize count="personCount"
	                 when="{'0': 'Nobody is viewing.',
	 *                      'one': '1 person is viewing.',
	 *                      'other': '{} people are viewing.'}">
	 * </ng-pluralize>
	 *```
	 *
	 * In the example, `"0: Nobody is viewing."` is an explicit number rule. If you did not
	 * specify this rule, 0 would be matched to the "other" category and "0 people are viewing"
	 * would be shown instead of "Nobody is viewing". You can specify an explicit number rule for
	 * other numbers, for example 12, so that instead of showing "12 people are viewing", you can
	 * show "a dozen people are viewing".
	 *
	 * You can use a set of closed braces (`{}`) as a placeholder for the number that you want substituted
	 * into pluralized strings. In the previous example, AngularJS will replace `{}` with
	 * <span ng-non-bindable>`{{personCount}}`</span>. The closed braces `{}` is a placeholder
	 * for <span ng-non-bindable>{{numberExpression}}</span>.
	 *
	 * If no rule is defined for a category, then an empty string is displayed and a warning is generated.
	 * Note that some locales define more categories than `one` and `other`. For example, fr-fr defines `few` and `many`.
	 *
	 * ## Configuring ngPluralize with offset
	 * The `offset` attribute allows further customization of pluralized text, which can result in
	 * a better user experience. For example, instead of the message "4 people are viewing this document",
	 * you might display "John, Kate and 2 others are viewing this document".
	 * The offset attribute allows you to offset a number by any desired value.
	 * Let's take a look at an example:
	 *
	 * ```html
	 * <ng-pluralize count="personCount" offset=2
	 *               when="{'0': 'Nobody is viewing.',
	 *                      '1': '{{person1}} is viewing.',
	 *                      '2': '{{person1}} and {{person2}} are viewing.',
	 *                      'one': '{{person1}}, {{person2}} and one other person are viewing.',
	 *                      'other': '{{person1}}, {{person2}} and {} other people are viewing.'}">
	 * </ng-pluralize>
	 * ```
	 *
	 * Notice that we are still using two plural categories(one, other), but we added
	 * three explicit number rules 0, 1 and 2.
	 * When one person, perhaps John, views the document, "John is viewing" will be shown.
	 * When three people view the document, no explicit number rule is found, so
	 * an offset of 2 is taken off 3, and AngularJS uses 1 to decide the plural category.
	 * In this case, plural category 'one' is matched and "John, Mary and one other person are viewing"
	 * is shown.
	 *
	 * Note that when you specify offsets, you must provide explicit number rules for
	 * numbers from 0 up to and including the offset. If you use an offset of 3, for example,
	 * you must provide explicit number rules for 0, 1, 2 and 3. You must also provide plural strings for
	 * plural categories "one" and "other".
	 *
	 * @param {string|expression} count The variable to be bound to.
	 * @param {string} when The mapping between plural category to its corresponding strings.
	 * @param {number=} offset Offset to deduct from the total number.
	 *
	 * @example
	    <example module="pluralizeExample" name="ng-pluralize">
	      <file name="index.html">
	        <script>
	          angular.module('pluralizeExample', [])
	            .controller('ExampleController', ['$scope', function($scope) {
	              $scope.person1 = 'Igor';
	              $scope.person2 = 'Misko';
	              $scope.personCount = 1;
	            }]);
	        </script>
	        <div ng-controller="ExampleController">
	          <label>Person 1:<input type="text" ng-model="person1" value="Igor" /></label><br/>
	          <label>Person 2:<input type="text" ng-model="person2" value="Misko" /></label><br/>
	          <label>Number of People:<input type="text" ng-model="personCount" value="1" /></label><br/>
	
	          <!--- Example with simple pluralization rules for en locale --->
	          Without Offset:
	          <ng-pluralize count="personCount"
	                        when="{'0': 'Nobody is viewing.',
	                               'one': '1 person is viewing.',
	                               'other': '{} people are viewing.'}">
	          </ng-pluralize><br>
	
	          <!--- Example with offset --->
	          With Offset(2):
	          <ng-pluralize count="personCount" offset=2
	                        when="{'0': 'Nobody is viewing.',
	                               '1': '{{person1}} is viewing.',
	                               '2': '{{person1}} and {{person2}} are viewing.',
	                               'one': '{{person1}}, {{person2}} and one other person are viewing.',
	                               'other': '{{person1}}, {{person2}} and {} other people are viewing.'}">
	          </ng-pluralize>
	        </div>
	      </file>
	      <file name="protractor.js" type="protractor">
	        it('should show correct pluralized string', function() {
	          var withoutOffset = element.all(by.css('ng-pluralize')).get(0);
	          var withOffset = element.all(by.css('ng-pluralize')).get(1);
	          var countInput = element(by.model('personCount'));
	
	          expect(withoutOffset.getText()).toEqual('1 person is viewing.');
	          expect(withOffset.getText()).toEqual('Igor is viewing.');
	
	          countInput.clear();
	          countInput.sendKeys('0');
	
	          expect(withoutOffset.getText()).toEqual('Nobody is viewing.');
	          expect(withOffset.getText()).toEqual('Nobody is viewing.');
	
	          countInput.clear();
	          countInput.sendKeys('2');
	
	          expect(withoutOffset.getText()).toEqual('2 people are viewing.');
	          expect(withOffset.getText()).toEqual('Igor and Misko are viewing.');
	
	          countInput.clear();
	          countInput.sendKeys('3');
	
	          expect(withoutOffset.getText()).toEqual('3 people are viewing.');
	          expect(withOffset.getText()).toEqual('Igor, Misko and one other person are viewing.');
	
	          countInput.clear();
	          countInput.sendKeys('4');
	
	          expect(withoutOffset.getText()).toEqual('4 people are viewing.');
	          expect(withOffset.getText()).toEqual('Igor, Misko and 2 other people are viewing.');
	        });
	        it('should show data-bound names', function() {
	          var withOffset = element.all(by.css('ng-pluralize')).get(1);
	          var personCount = element(by.model('personCount'));
	          var person1 = element(by.model('person1'));
	          var person2 = element(by.model('person2'));
	          personCount.clear();
	          personCount.sendKeys('4');
	          person1.clear();
	          person1.sendKeys('Di');
	          person2.clear();
	          person2.sendKeys('Vojta');
	          expect(withOffset.getText()).toEqual('Di, Vojta and 2 other people are viewing.');
	        });
	      </file>
	    </example>
	 */var ngPluralizeDirective=['$locale','$interpolate','$log',function($locale,$interpolate,$log){var BRACE=/{}/g,IS_WHEN=/^when(Minus)?(.+)$/;return{link:function link(scope,element,attr){var numberExp=attr.count,whenExp=attr.$attr.when&&element.attr(attr.$attr.when),// we have {{}} in attrs
	offset=attr.offset||0,whens=scope.$eval(whenExp)||{},whensExpFns={},startSymbol=$interpolate.startSymbol(),endSymbol=$interpolate.endSymbol(),braceReplacement=startSymbol+numberExp+'-'+offset+endSymbol,watchRemover=angular.noop,lastCount;forEach(attr,function(expression,attributeName){var tmpMatch=IS_WHEN.exec(attributeName);if(tmpMatch){var whenKey=(tmpMatch[1]?'-':'')+lowercase(tmpMatch[2]);whens[whenKey]=element.attr(attr.$attr[attributeName]);}});forEach(whens,function(expression,key){whensExpFns[key]=$interpolate(expression.replace(BRACE,braceReplacement));});scope.$watch(numberExp,function ngPluralizeWatchAction(newVal){var count=parseFloat(newVal);var countIsNaN=isNumberNaN(count);if(!countIsNaN&&!(count in whens)){// If an explicit number rule such as 1, 2, 3... is defined, just use it.
	// Otherwise, check it against pluralization rules in $locale service.
	count=$locale.pluralCat(count-offset);}// If both `count` and `lastCount` are NaN, we don't need to re-register a watch.
	// In JS `NaN !== NaN`, so we have to explicitly check.
	if(count!==lastCount&&!(countIsNaN&&isNumberNaN(lastCount))){watchRemover();var whenExpFn=whensExpFns[count];if(isUndefined(whenExpFn)){if(newVal!=null){$log.debug('ngPluralize: no rule defined for \''+count+'\' in '+whenExp);}watchRemover=noop;updateElementText();}else{watchRemover=scope.$watch(whenExpFn,updateElementText);}lastCount=count;}});function updateElementText(newText){element.text(newText||'');}}};}];/**
	 * @ngdoc directive
	 * @name ngRef
	 * @restrict A
	 *
	 * @description
	 * The `ngRef` attribute tells AngularJS to assign the controller of a component (or a directive)
	 * to the given property in the current scope. It is also possible to add the jqlite-wrapped DOM
	 * element to the scope.
	 *
	 * If the element with `ngRef` is destroyed `null` is assigned to the property.
	 *
	 * Note that if you want to assign from a child into the parent scope, you must initialize the
	 * target property on the parent scope, otherwise `ngRef` will assign on the child scope.
	 * This commonly happens when assigning elements or components wrapped in {@link ngIf} or
	 * {@link ngRepeat}. See the second example below.
	 *
	 *
	 * @element ANY
	 * @param {string} ngRef property name - A valid AngularJS expression identifier to which the
	 *                       controller or jqlite-wrapped DOM element will be bound.
	 * @param {string=} ngRefRead read value - The name of a directive (or component) on this element,
	 *                            or the special string `$element`. If a name is provided, `ngRef` will
	 *                            assign the matching controller. If `$element` is provided, the element
	 *                            itself is assigned (even if a controller is available).
	 *
	 *
	 * @example
	 * ### Simple toggle
	 * This example shows how the controller of the component toggle
	 * is reused in the template through the scope to use its logic.
	 * <example name="ng-ref-component" module="myApp">
	 *   <file name="index.html">
	 *     <my-toggle ng-ref="myToggle"></my-toggle>
	 *     <button ng-click="myToggle.toggle()">Toggle</button>
	 *     <div ng-show="myToggle.isOpen()">
	 *       You are using a component in the same template to show it.
	 *     </div>
	 *   </file>
	 *   <file name="index.js">
	 *     angular.module('myApp', [])
	 *     .component('myToggle', {
	 *       controller: function ToggleController() {
	 *         var opened = false;
	 *         this.isOpen = function() { return opened; };
	 *         this.toggle = function() { opened = !opened; };
	 *       }
	 *     });
	 *   </file>
	 *   <file name="protractor.js" type="protractor">
	 *      it('should publish the toggle into the scope', function() {
	 *        var toggle = element(by.buttonText('Toggle'));
	 *        expect(toggle.evaluate('myToggle.isOpen()')).toEqual(false);
	 *        toggle.click();
	 *        expect(toggle.evaluate('myToggle.isOpen()')).toEqual(true);
	 *      });
	 *   </file>
	 * </example>
	 *
	 * @example
	 * ### ngRef inside scopes
	 * This example shows how `ngRef` works with child scopes. The `ngRepeat`-ed `myWrapper` components
	 * are assigned to the scope of `myRoot`, because the `toggles` property has been initialized.
	 * The repeated `myToggle` components are published to the child scopes created by `ngRepeat`.
	 * `ngIf` behaves similarly - the assignment of `myToggle` happens in the `ngIf` child scope,
	 * because the target property has not been initialized on the `myRoot` component controller.
	 *
	 * <example name="ng-ref-scopes" module="myApp">
	 *   <file name="index.html">
	 *     <my-root></my-root>
	 *   </file>
	 *   <file name="index.js">
	 *     angular.module('myApp', [])
	 *     .component('myRoot', {
	 *       templateUrl: 'root.html',
	 *       controller: function() {
	 *         this.wrappers = []; // initialize the array so that the wrappers are assigned into the parent scope
	 *       }
	 *     })
	 *     .component('myToggle', {
	 *       template: '<strong>myToggle</strong><button ng-click="$ctrl.toggle()" ng-transclude></button>',
	 *       transclude: true,
	 *       controller: function ToggleController() {
	 *         var opened = false;
	 *         this.isOpen = function() { return opened; };
	 *         this.toggle = function() { opened = !opened; };
	 *       }
	 *     })
	 *     .component('myWrapper', {
	 *       transclude: true,
	 *       template: '<strong>myWrapper</strong>' +
	 *         '<div>ngRepeatToggle.isOpen(): {{$ctrl.ngRepeatToggle.isOpen() | json}}</div>' +
	 *         '<my-toggle ng-ref="$ctrl.ngRepeatToggle"><ng-transclude></ng-transclude></my-toggle>'
	 *     });
	 *   </file>
	 *   <file name="root.html">
	 *     <strong>myRoot</strong>
	 *     <my-toggle ng-ref="$ctrl.outerToggle">Outer Toggle</my-toggle>
	 *     <div>outerToggle.isOpen(): {{$ctrl.outerToggle.isOpen() | json}}</div>
	 *     <div><em>wrappers assigned to root</em><br>
	 *     <div ng-repeat="wrapper in $ctrl.wrappers">
	 *       wrapper.ngRepeatToggle.isOpen(): {{wrapper.ngRepeatToggle.isOpen() | json}}
	 *     </div>
	 *
	 *     <ul>
	 *       <li ng-repeat="(index, value) in [1,2,3]">
	 *         <strong>ngRepeat</strong>
	 *         <div>outerToggle.isOpen(): {{$ctrl.outerToggle.isOpen() | json}}</div>
	 *         <my-wrapper ng-ref="$ctrl.wrappers[index]">ngRepeat Toggle {{$index + 1}}</my-wrapper>
	 *       </li>
	 *     </ul>
	 *
	 *     <div>ngIfToggle.isOpen(): {{ngIfToggle.isOpen()}} // This is always undefined because it's
	 *       assigned to the child scope created by ngIf.
	 *     </div>
	 *     <div ng-if="true">
	          <strong>ngIf</strong>
	 *        <my-toggle ng-ref="ngIfToggle">ngIf Toggle</my-toggle>
	 *        <div>ngIfToggle.isOpen(): {{ngIfToggle.isOpen() | json}}</div>
	 *        <div>outerToggle.isOpen(): {{$ctrl.outerToggle.isOpen() | json}}</div>
	 *     </div>
	 *   </file>
	 *   <file name="styles.css">
	 *     ul {
	 *       list-style: none;
	 *       padding-left: 0;
	 *     }
	 *
	 *     li[ng-repeat] {
	 *       background: lightgreen;
	 *       padding: 8px;
	 *       margin: 8px;
	 *     }
	 *
	 *     [ng-if] {
	 *       background: lightgrey;
	 *       padding: 8px;
	 *     }
	 *
	 *     my-root {
	 *       background: lightgoldenrodyellow;
	 *       padding: 8px;
	 *       display: block;
	 *     }
	 *
	 *     my-wrapper {
	 *       background: lightsalmon;
	 *       padding: 8px;
	 *       display: block;
	 *     }
	 *
	 *     my-toggle {
	 *       background: lightblue;
	 *       padding: 8px;
	 *       display: block;
	 *     }
	 *   </file>
	 *   <file name="protractor.js" type="protractor">
	 *      var OuterToggle = function() {
	 *        this.toggle = function() {
	 *          element(by.buttonText('Outer Toggle')).click();
	 *        };
	 *        this.isOpen = function() {
	 *          return element.all(by.binding('outerToggle.isOpen()')).first().getText();
	 *        };
	 *      };
	 *      var NgRepeatToggle = function(i) {
	 *        var parent = element.all(by.repeater('(index, value) in [1,2,3]')).get(i - 1);
	 *        this.toggle = function() {
	 *          element(by.buttonText('ngRepeat Toggle ' + i)).click();
	 *        };
	 *        this.isOpen = function() {
	 *          return parent.element(by.binding('ngRepeatToggle.isOpen() | json')).getText();
	 *        };
	 *        this.isOuterOpen = function() {
	 *          return parent.element(by.binding('outerToggle.isOpen() | json')).getText();
	 *        };
	 *      };
	 *      var NgRepeatToggles = function() {
	 *        var toggles = [1,2,3].map(function(i) { return new NgRepeatToggle(i); });
	 *        this.forEach = function(fn) {
	 *          toggles.forEach(fn);
	 *        };
	 *        this.isOuterOpen = function(i) {
	 *          return toggles[i - 1].isOuterOpen();
	 *        };
	 *      };
	 *      var NgIfToggle = function() {
	 *        var parent = element(by.css('[ng-if]'));
	 *        this.toggle = function() {
	 *          element(by.buttonText('ngIf Toggle')).click();
	 *        };
	 *        this.isOpen = function() {
	 *          return by.binding('ngIfToggle.isOpen() | json').getText();
	 *        };
	 *        this.isOuterOpen = function() {
	 *          return parent.element(by.binding('outerToggle.isOpen() | json')).getText();
	 *        };
	 *      };
	 *
	 *      it('should toggle the outer toggle', function() {
	 *        var outerToggle = new OuterToggle();
	 *        expect(outerToggle.isOpen()).toEqual('outerToggle.isOpen(): false');
	 *        outerToggle.toggle();
	 *        expect(outerToggle.isOpen()).toEqual('outerToggle.isOpen(): true');
	 *      });
	 *
	 *      it('should toggle all outer toggles', function() {
	 *        var outerToggle = new OuterToggle();
	 *        var repeatToggles = new NgRepeatToggles();
	 *        var ifToggle = new NgIfToggle();
	 *        expect(outerToggle.isOpen()).toEqual('outerToggle.isOpen(): false');
	 *        expect(repeatToggles.isOuterOpen(1)).toEqual('outerToggle.isOpen(): false');
	 *        expect(repeatToggles.isOuterOpen(2)).toEqual('outerToggle.isOpen(): false');
	 *        expect(repeatToggles.isOuterOpen(3)).toEqual('outerToggle.isOpen(): false');
	 *        expect(ifToggle.isOuterOpen()).toEqual('outerToggle.isOpen(): false');
	 *        outerToggle.toggle();
	 *        expect(outerToggle.isOpen()).toEqual('outerToggle.isOpen(): true');
	 *        expect(repeatToggles.isOuterOpen(1)).toEqual('outerToggle.isOpen(): true');
	 *        expect(repeatToggles.isOuterOpen(2)).toEqual('outerToggle.isOpen(): true');
	 *        expect(repeatToggles.isOuterOpen(3)).toEqual('outerToggle.isOpen(): true');
	 *        expect(ifToggle.isOuterOpen()).toEqual('outerToggle.isOpen(): true');
	 *      });
	 *
	 *      it('should toggle each repeat iteration separately', function() {
	 *        var repeatToggles = new NgRepeatToggles();
	 *
	 *        repeatToggles.forEach(function(repeatToggle) {
	 *          expect(repeatToggle.isOpen()).toEqual('ngRepeatToggle.isOpen(): false');
	 *          expect(repeatToggle.isOuterOpen()).toEqual('outerToggle.isOpen(): false');
	 *          repeatToggle.toggle();
	 *          expect(repeatToggle.isOpen()).toEqual('ngRepeatToggle.isOpen(): true');
	 *          expect(repeatToggle.isOuterOpen()).toEqual('outerToggle.isOpen(): false');
	 *        });
	 *      });
	 *   </file>
	 * </example>
	 *
	 */var ngRefMinErr=minErr('ngRef');var ngRefDirective=['$parse',function($parse){return{priority:-1,// Needed for compatibility with element transclusion on the same element
	restrict:'A',compile:function compile(tElement,tAttrs){// Get the expected controller name, converts <data-some-thing> into "someThing"
	var controllerName=directiveNormalize(nodeName_(tElement));// Get the expression for value binding
	var getter=$parse(tAttrs.ngRef);var setter=getter.assign||function(){throw ngRefMinErr('nonassign','Expression in ngRef="{0}" is non-assignable!',tAttrs.ngRef);};return function(scope,element,attrs){var refValue;if(attrs.hasOwnProperty('ngRefRead')){if(attrs.ngRefRead==='$element'){refValue=element;}else{refValue=element.data('$'+attrs.ngRefRead+'Controller');if(!refValue){throw ngRefMinErr('noctrl','The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',attrs.ngRefRead,tAttrs.ngRef);}}}else{refValue=element.data('$'+controllerName+'Controller');}refValue=refValue||element;setter(scope,refValue);// when the element is removed, remove it (nullify it)
	element.on('$destroy',function(){// only remove it if value has not changed,
	// because animations (and other procedures) may duplicate elements
	if(getter(scope)===refValue){setter(scope,null);}});};}};}];/* exported ngRepeatDirective *//**
	 * @ngdoc directive
	 * @name ngRepeat
	 * @multiElement
	 * @restrict A
	 *
	 * @description
	 * The `ngRepeat` directive instantiates a template once per item from a collection. Each template
	 * instance gets its own scope, where the given loop variable is set to the current collection item,
	 * and `$index` is set to the item index or key.
	 *
	 * Special properties are exposed on the local scope of each template instance, including:
	 *
	 * | Variable  | Type            | Details                                                                     |
	 * |-----------|-----------------|-----------------------------------------------------------------------------|
	 * | `$index`  | {@type number}  | iterator offset of the repeated element (0..length-1)                       |
	 * | `$first`  | {@type boolean} | true if the repeated element is first in the iterator.                      |
	 * | `$middle` | {@type boolean} | true if the repeated element is between the first and last in the iterator. |
	 * | `$last`   | {@type boolean} | true if the repeated element is last in the iterator.                       |
	 * | `$even`   | {@type boolean} | true if the iterator position `$index` is even (otherwise false).           |
	 * | `$odd`    | {@type boolean} | true if the iterator position `$index` is odd (otherwise false).            |
	 *
	 * <div class="alert alert-info">
	 *   Creating aliases for these properties is possible with {@link ng.directive:ngInit `ngInit`}.
	 *   This may be useful when, for instance, nesting ngRepeats.
	 * </div>
	 *
	 *
	 * ## Iterating over object properties
	 *
	 * It is possible to get `ngRepeat` to iterate over the properties of an object using the following
	 * syntax:
	 *
	 * ```js
	 * <div ng-repeat="(key, value) in myObj"> ... </div>
	 * ```
	 *
	 * However, there are a few limitations compared to array iteration:
	 *
	 * - The JavaScript specification does not define the order of keys
	 *   returned for an object, so AngularJS relies on the order returned by the browser
	 *   when running `for key in myObj`. Browsers generally follow the strategy of providing
	 *   keys in the order in which they were defined, although there are exceptions when keys are deleted
	 *   and reinstated. See the
	 *   [MDN page on `delete` for more info](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete#Cross-browser_notes).
	 *
	 * - `ngRepeat` will silently *ignore* object keys starting with `$`, because
	 *   it's a prefix used by AngularJS for public (`$`) and private (`$$`) properties.
	 *
	 * - The built-in filters {@link ng.orderBy orderBy} and {@link ng.filter filter} do not work with
	 *   objects, and will throw an error if used with one.
	 *
	 * If you are hitting any of these limitations, the recommended workaround is to convert your object into an array
	 * that is sorted into the order that you prefer before providing it to `ngRepeat`. You could
	 * do this with a filter such as [toArrayFilter](http://ngmodules.org/modules/angular-toArrayFilter)
	 * or implement a `$watch` on the object yourself.
	 *
	 *
	 * ## Tracking and Duplicates
	 *
	 * `ngRepeat` uses {@link $rootScope.Scope#$watchCollection $watchCollection} to detect changes in
	 * the collection. When a change happens, `ngRepeat` then makes the corresponding changes to the DOM:
	 *
	 * * When an item is added, a new instance of the template is added to the DOM.
	 * * When an item is removed, its template instance is removed from the DOM.
	 * * When items are reordered, their respective templates are reordered in the DOM.
	 *
	 * To minimize creation of DOM elements, `ngRepeat` uses a function
	 * to "keep track" of all items in the collection and their corresponding DOM elements.
	 * For example, if an item is added to the collection, `ngRepeat` will know that all other items
	 * already have DOM elements, and will not re-render them.
	 *
	 * All different types of tracking functions, their syntax, and their support for duplicate
	 * items in collections can be found in the
	 * {@link ngRepeat#ngRepeat-arguments ngRepeat expression description}.
	 *
	 * <div class="alert alert-success">
	 * **Best Practice:** If you are working with objects that have a unique identifier property, you
	 * should track by this identifier instead of the object instance,
	 * e.g. `item in items track by item.id`.
	 * Should you reload your data later, `ngRepeat` will not have to rebuild the DOM elements for items
	 * it has already rendered, even if the JavaScript objects in the collection have been substituted
	 * for new ones. For large collections, this significantly improves rendering performance.
	 * </div>
	 *
	 * ### Effects of DOM Element re-use
	 *
	 * When DOM elements are re-used, ngRepeat updates the scope for the element, which will
	 * automatically update any active bindings on the template. However, other
	 * functionality will not be updated, because the element is not re-created:
	 *
	 * - Directives are not re-compiled
	 * - {@link guide/expression#one-time-binding one-time expressions} on the repeated template are not
	 * updated if they have stabilized.
	 *
	 * The above affects all kinds of element re-use due to tracking, but may be especially visible
	 * when tracking by `$index` due to the way ngRepeat re-uses elements.
	 *
	 * The following example shows the effects of different actions with tracking:
	
	  <example module="ngRepeat" name="ngRepeat-tracking" deps="angular-animate.js" animations="true">
	    <file name="script.js">
	      angular.module('ngRepeat', ['ngAnimate']).controller('repeatController', function($scope) {
	        var friends = [
	          {name:'John', age:25},
	          {name:'Mary', age:40},
	          {name:'Peter', age:85}
	        ];
	
	        $scope.removeFirst = function() {
	          $scope.friends.shift();
	        };
	
	        $scope.updateAge = function() {
	          $scope.friends.forEach(function(el) {
	            el.age = el.age + 5;
	          });
	        };
	
	        $scope.copy = function() {
	          $scope.friends = angular.copy($scope.friends);
	        };
	
	        $scope.reset = function() {
	          $scope.friends = angular.copy(friends);
	        };
	
	        $scope.reset();
	      });
	    </file>
	    <file name="index.html">
	      <div ng-controller="repeatController">
	        <ol>
	          <li>When you click "Update Age", only the first list updates the age, because all others have
	          a one-time binding on the age property. If you then click "Copy", the current friend list
	          is copied, and now the second list updates the age, because the identity of the collection items
	          has changed and the list must be re-rendered. The 3rd and 4th list stay the same, because all the
	          items are already known according to their tracking functions.
	          </li>
	          <li>When you click "Remove First", the 4th list has the wrong age on both remaining items. This is
	          due to tracking by $index: when the first collection item is removed, ngRepeat reuses the first
	          DOM element for the new first collection item, and so on. Since the age property is one-time
	          bound, the value remains from the collection item which was previously at this index.
	          </li>
	        </ol>
	
	        <button ng-click="removeFirst()">Remove First</button>
	        <button ng-click="updateAge()">Update Age</button>
	        <button ng-click="copy()">Copy</button>
	        <br><button ng-click="reset()">Reset List</button>
	        <br>
	        <code>track by $id(friend)</code> (default):
	        <ul class="example-animate-container">
	          <li class="animate-repeat" ng-repeat="friend in friends">
	            {{friend.name}} is {{friend.age}} years old.
	          </li>
	        </ul>
	        <code>track by $id(friend)</code> (default), with age one-time binding:
	        <ul class="example-animate-container">
	          <li class="animate-repeat" ng-repeat="friend in friends">
	            {{friend.name}} is {{::friend.age}} years old.
	          </li>
	        </ul>
	        <code>track by friend.name</code>, with age one-time binding:
	        <ul class="example-animate-container">
	          <li class="animate-repeat" ng-repeat="friend in friends track by friend.name">
	            {{friend.name}}  is {{::friend.age}} years old.
	          </li>
	        </ul>
	        <code>track by $index</code>, with age one-time binding:
	        <ul class="example-animate-container">
	          <li class="animate-repeat" ng-repeat="friend in friends track by $index">
	            {{friend.name}} is {{::friend.age}} years old.
	          </li>
	        </ul>
	      </div>
	    </file>
	    <file name="animations.css">
	      .example-animate-container {
	        background:white;
	        border:1px solid black;
	        list-style:none;
	        margin:0;
	        padding:0 10px;
	      }
	
	      .animate-repeat {
	        line-height:30px;
	        list-style:none;
	        box-sizing:border-box;
	      }
	
	      .animate-repeat.ng-move,
	      .animate-repeat.ng-enter,
	      .animate-repeat.ng-leave {
	        transition:all linear 0.5s;
	      }
	
	      .animate-repeat.ng-leave.ng-leave-active,
	      .animate-repeat.ng-move,
	      .animate-repeat.ng-enter {
	        opacity:0;
	        max-height:0;
	      }
	
	      .animate-repeat.ng-leave,
	      .animate-repeat.ng-move.ng-move-active,
	      .animate-repeat.ng-enter.ng-enter-active {
	        opacity:1;
	        max-height:30px;
	      }
	    </file>
	  </example>
	
	 *
	 * ## Special repeat start and end points
	 * To repeat a series of elements instead of just one parent element, ngRepeat (as well as other ng directives) supports extending
	 * the range of the repeater by defining explicit start and end points by using **ng-repeat-start** and **ng-repeat-end** respectively.
	 * The **ng-repeat-start** directive works the same as **ng-repeat**, but will repeat all the HTML code (including the tag it's defined on)
	 * up to and including the ending HTML tag where **ng-repeat-end** is placed.
	 *
	 * The example below makes use of this feature:
	 * ```html
	 *   <header ng-repeat-start="item in items">
	 *     Header {{ item }}
	 *   </header>
	 *   <div class="body">
	 *     Body {{ item }}
	 *   </div>
	 *   <footer ng-repeat-end>
	 *     Footer {{ item }}
	 *   </footer>
	 * ```
	 *
	 * And with an input of {@type ['A','B']} for the items variable in the example above, the output will evaluate to:
	 * ```html
	 *   <header>
	 *     Header A
	 *   </header>
	 *   <div class="body">
	 *     Body A
	 *   </div>
	 *   <footer>
	 *     Footer A
	 *   </footer>
	 *   <header>
	 *     Header B
	 *   </header>
	 *   <div class="body">
	 *     Body B
	 *   </div>
	 *   <footer>
	 *     Footer B
	 *   </footer>
	 * ```
	 *
	 * The custom start and end points for ngRepeat also support all other HTML directive syntax flavors provided in AngularJS (such
	 * as **data-ng-repeat-start**, **x-ng-repeat-start** and **ng:repeat-start**).
	 *
	 * @animations
	 * | Animation                        | Occurs                              |
	 * |----------------------------------|-------------------------------------|
	 * | {@link ng.$animate#enter enter} | when a new item is added to the list or when an item is revealed after a filter |
	 * | {@link ng.$animate#leave leave} | when an item is removed from the list or when an item is filtered out |
	 * | {@link ng.$animate#move move } | when an adjacent item is filtered out causing a reorder or when the item contents are reordered |
	 *
	 * See the example below for defining CSS animations with ngRepeat.
	 *
	 * @element ANY
	 * @scope
	 * @priority 1000
	 * @param {repeat_expression} ngRepeat The expression indicating how to enumerate a collection. These
	 *   formats are currently supported:
	 *
	 *   * `variable in expression` – where variable is the user defined loop variable and `expression`
	 *     is a scope expression giving the collection to enumerate.
	 *
	 *     For example: `album in artist.albums`.
	 *
	 *   * `(key, value) in expression` – where `key` and `value` can be any user defined identifiers,
	 *     and `expression` is the scope expression giving the collection to enumerate.
	 *
	 *     For example: `(name, age) in {'adam':10, 'amalie':12}`.
	 *
	 *   * `variable in expression track by tracking_expression` – You can also provide an optional tracking expression
	 *     which can be used to associate the objects in the collection with the DOM elements. If no tracking expression
	 *     is specified, ng-repeat associates elements by identity. It is an error to have
	 *     more than one tracking expression value resolve to the same key. (This would mean that two distinct objects are
	 *     mapped to the same DOM element, which is not possible.)
	 *
	 *     *Default tracking: $id()*: `item in items` is equivalent to `item in items track by $id(item)`.
	 *     This implies that the DOM elements will be associated by item identity in the collection.
	 *
	 *     The built-in `$id()` function can be used to assign a unique
	 *     `$$hashKey` property to each item in the collection. This property is then used as a key to associated DOM elements
	 *     with the corresponding item in the collection by identity. Moving the same object would move
	 *     the DOM element in the same way in the DOM.
	 *     Note that the default id function does not support duplicate primitive values (`number`, `string`),
	 *     but supports duplictae non-primitive values (`object`) that are *equal* in shape.
	 *
	 *     *Custom Expression*: It is possible to use any AngularJS expression to compute the tracking
	 *     id, for example with a function, or using a property on the collection items.
	 *     `item in items track by item.id` is a typical pattern when the items have a unique identifier,
	 *     e.g. database id. In this case the object identity does not matter. Two objects are considered
	 *     equivalent as long as their `id` property is same.
	 *     Tracking by unique identifier is the most performant way and should be used whenever possible.
	 *
	 *     *$index*: This special property tracks the collection items by their index, and
	 *     re-uses the DOM elements that match that index, e.g. `item in items track by $index`. This can
	 *     be used for a performance improvement if no unique identfier is available and the identity of
	 *     the collection items cannot be easily computed. It also allows duplicates.
	 *
	 *     <div class="alert alert-warning">
	 *       <strong>Note:</strong> Re-using DOM elements can have unforeseen effects. Read the
	 *       {@link ngRepeat#tracking-and-duplicates section on tracking and duplicates} for
	 *       more info.
	 *     </div>
	 *
	 *     <div class="alert alert-warning">
	 *       <strong>Note:</strong> the `track by` expression must come last - after any filters, and the alias expression:
	 *       `item in items | filter:searchText as results  track by item.id`
	 *     </div>
	 *
	 *   * `variable in expression as alias_expression` – You can also provide an optional alias expression which will then store the
	 *     intermediate results of the repeater after the filters have been applied. Typically this is used to render a special message
	 *     when a filter is active on the repeater, but the filtered result set is empty.
	 *
	 *     For example: `item in items | filter:x as results` will store the fragment of the repeated items as `results`, but only after
	 *     the items have been processed through the filter.
	 *
	 *     Please note that `as [variable name]` is not an operator but rather a part of ngRepeat
	 *     micro-syntax so it can be used only after all filters (and not as operator, inside an expression).
	 *
	 *     For example: `item in items | filter : x | orderBy : order | limitTo : limit as results track by item.id` .
	 *
	 * @example
	 * This example uses `ngRepeat` to display a list of people. A filter is used to restrict the displayed
	 * results by name or by age. New (entering) and removed (leaving) items are animated.
	  <example module="ngRepeat" name="ngRepeat" deps="angular-animate.js" animations="true">
	    <file name="index.html">
	      <div ng-controller="repeatController">
	        I have {{friends.length}} friends. They are:
	        <input type="search" ng-model="q" placeholder="filter friends..." aria-label="filter friends" />
	        <ul class="example-animate-container">
	          <li class="animate-repeat" ng-repeat="friend in friends | filter:q as results track by friend.name">
	            [{{$index + 1}}] {{friend.name}} who is {{friend.age}} years old.
	          </li>
	          <li class="animate-repeat" ng-if="results.length === 0">
	            <strong>No results found...</strong>
	          </li>
	        </ul>
	      </div>
	    </file>
	    <file name="script.js">
	      angular.module('ngRepeat', ['ngAnimate']).controller('repeatController', function($scope) {
	        $scope.friends = [
	          {name:'John', age:25, gender:'boy'},
	          {name:'Jessie', age:30, gender:'girl'},
	          {name:'Johanna', age:28, gender:'girl'},
	          {name:'Joy', age:15, gender:'girl'},
	          {name:'Mary', age:28, gender:'girl'},
	          {name:'Peter', age:95, gender:'boy'},
	          {name:'Sebastian', age:50, gender:'boy'},
	          {name:'Erika', age:27, gender:'girl'},
	          {name:'Patrick', age:40, gender:'boy'},
	          {name:'Samantha', age:60, gender:'girl'}
	        ];
	      });
	    </file>
	    <file name="animations.css">
	      .example-animate-container {
	        background:white;
	        border:1px solid black;
	        list-style:none;
	        margin:0;
	        padding:0 10px;
	      }
	
	      .animate-repeat {
	        line-height:30px;
	        list-style:none;
	        box-sizing:border-box;
	      }
	
	      .animate-repeat.ng-move,
	      .animate-repeat.ng-enter,
	      .animate-repeat.ng-leave {
	        transition:all linear 0.5s;
	      }
	
	      .animate-repeat.ng-leave.ng-leave-active,
	      .animate-repeat.ng-move,
	      .animate-repeat.ng-enter {
	        opacity:0;
	        max-height:0;
	      }
	
	      .animate-repeat.ng-leave,
	      .animate-repeat.ng-move.ng-move-active,
	      .animate-repeat.ng-enter.ng-enter-active {
	        opacity:1;
	        max-height:30px;
	      }
	    </file>
	    <file name="protractor.js" type="protractor">
	      var friends = element.all(by.repeater('friend in friends'));
	
	      it('should render initial data set', function() {
	        expect(friends.count()).toBe(10);
	        expect(friends.get(0).getText()).toEqual('[1] John who is 25 years old.');
	        expect(friends.get(1).getText()).toEqual('[2] Jessie who is 30 years old.');
	        expect(friends.last().getText()).toEqual('[10] Samantha who is 60 years old.');
	        expect(element(by.binding('friends.length')).getText())
	            .toMatch("I have 10 friends. They are:");
	      });
	
	       it('should update repeater when filter predicate changes', function() {
	         expect(friends.count()).toBe(10);
	
	         element(by.model('q')).sendKeys('ma');
	
	         expect(friends.count()).toBe(2);
	         expect(friends.get(0).getText()).toEqual('[1] Mary who is 28 years old.');
	         expect(friends.last().getText()).toEqual('[2] Samantha who is 60 years old.');
	       });
	      </file>
	    </example>
	 */var ngRepeatDirective=['$parse','$animate','$compile',function($parse,$animate,$compile){var NG_REMOVED='$$NG_REMOVED';var ngRepeatMinErr=minErr('ngRepeat');var updateScope=function updateScope(scope,index,valueIdentifier,value,keyIdentifier,key,arrayLength){// TODO(perf): generate setters to shave off ~40ms or 1-1.5%
	scope[valueIdentifier]=value;if(keyIdentifier)scope[keyIdentifier]=key;scope.$index=index;scope.$first=index===0;scope.$last=index===arrayLength-1;scope.$middle=!(scope.$first||scope.$last);// eslint-disable-next-line no-bitwise
	scope.$odd=!(scope.$even=(index&1)===0);};var getBlockStart=function getBlockStart(block){return block.clone[0];};var getBlockEnd=function getBlockEnd(block){return block.clone[block.clone.length-1];};var trackByIdArrayFn=function trackByIdArrayFn($scope,key,value){return hashKey(value);};var trackByIdObjFn=function trackByIdObjFn($scope,key){return key;};return{restrict:'A',multiElement:true,transclude:'element',priority:1000,terminal:true,$$tlb:true,compile:function ngRepeatCompile($element,$attr){var expression=$attr.ngRepeat;var ngRepeatEndComment=$compile.$$createComment('end ngRepeat',expression);var match=expression.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!match){throw ngRepeatMinErr('iexp','Expected expression in form of \'_item_ in _collection_[ track by _id_]\' but got \'{0}\'.',expression);}var lhs=match[1];var rhs=match[2];var aliasAs=match[3];var trackByExp=match[4];match=lhs.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/);if(!match){throw ngRepeatMinErr('iidexp','\'_item_\' in \'_item_ in _collection_\' should be an identifier or \'(_key_, _value_)\' expression, but got \'{0}\'.',lhs);}var valueIdentifier=match[3]||match[1];var keyIdentifier=match[2];if(aliasAs&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(aliasAs)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(aliasAs))){throw ngRepeatMinErr('badident','alias \'{0}\' is invalid --- must be a valid JS identifier which is not a reserved name.',aliasAs);}var trackByIdExpFn;if(trackByExp){var hashFnLocals={$id:hashKey};var trackByExpGetter=$parse(trackByExp);trackByIdExpFn=function trackByIdExpFn($scope,key,value,index){// assign key, value, and $index to the locals so that they can be used in hash functions
	if(keyIdentifier)hashFnLocals[keyIdentifier]=key;hashFnLocals[valueIdentifier]=value;hashFnLocals.$index=index;return trackByExpGetter($scope,hashFnLocals);};}return function ngRepeatLink($scope,$element,$attr,ctrl,$transclude){// Store a list of elements from previous run. This is a hash where key is the item from the
	// iterator, and the value is objects with following properties.
	//   - scope: bound scope
	//   - clone: previous element.
	//   - index: position
	//
	// We are using no-proto object so that we don't need to guard against inherited props via
	// hasOwnProperty.
	var lastBlockMap=createMap();//watch props
	$scope.$watchCollection(rhs,function ngRepeatAction(collection){var index,length,previousNode=$element[0],// node that cloned nodes should be inserted after
	// initialized to the comment node anchor
	nextNode,// Same as lastBlockMap but it has the current state. It will become the
	// lastBlockMap on the next iteration.
	nextBlockMap=createMap(),collectionLength,key,value,// key/value of iteration
	trackById,trackByIdFn,collectionKeys,block,// last object information {scope, element, id}
	nextBlockOrder,elementsToRemove;if(aliasAs){$scope[aliasAs]=collection;}if(isArrayLike(collection)){collectionKeys=collection;trackByIdFn=trackByIdExpFn||trackByIdArrayFn;}else{trackByIdFn=trackByIdExpFn||trackByIdObjFn;// if object, extract keys, in enumeration order, unsorted
	collectionKeys=[];for(var itemKey in collection){if(hasOwnProperty.call(collection,itemKey)&&itemKey.charAt(0)!=='$'){collectionKeys.push(itemKey);}}}collectionLength=collectionKeys.length;nextBlockOrder=new Array(collectionLength);// locate existing items
	for(index=0;index<collectionLength;index++){key=collection===collectionKeys?index:collectionKeys[index];value=collection[key];trackById=trackByIdFn($scope,key,value,index);if(lastBlockMap[trackById]){// found previously seen block
	block=lastBlockMap[trackById];delete lastBlockMap[trackById];nextBlockMap[trackById]=block;nextBlockOrder[index]=block;}else if(nextBlockMap[trackById]){// if collision detected. restore lastBlockMap and throw an error
	forEach(nextBlockOrder,function(block){if(block&&block.scope)lastBlockMap[block.id]=block;});throw ngRepeatMinErr('dupes','Duplicates in a repeater are not allowed. Use \'track by\' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}',expression,trackById,value);}else{// new never before seen block
	nextBlockOrder[index]={id:trackById,scope:undefined,clone:undefined};nextBlockMap[trackById]=true;}}// Clear the value property from the hashFnLocals object to prevent a reference to the last value
	// being leaked into the ngRepeatCompile function scope
	if(hashFnLocals){hashFnLocals[valueIdentifier]=undefined;}// remove leftover items
	for(var blockKey in lastBlockMap){block=lastBlockMap[blockKey];elementsToRemove=getBlockNodes(block.clone);$animate.leave(elementsToRemove);if(elementsToRemove[0].parentNode){// if the element was not removed yet because of pending animation, mark it as deleted
	// so that we can ignore it later
	for(index=0,length=elementsToRemove.length;index<length;index++){elementsToRemove[index][NG_REMOVED]=true;}}block.scope.$destroy();}// we are not using forEach for perf reasons (trying to avoid #call)
	for(index=0;index<collectionLength;index++){key=collection===collectionKeys?index:collectionKeys[index];value=collection[key];block=nextBlockOrder[index];if(block.scope){// if we have already seen this object, then we need to reuse the
	// associated scope/element
	nextNode=previousNode;// skip nodes that are already pending removal via leave animation
	do{nextNode=nextNode.nextSibling;}while(nextNode&&nextNode[NG_REMOVED]);if(getBlockStart(block)!==nextNode){// existing item which got moved
	$animate.move(getBlockNodes(block.clone),null,previousNode);}previousNode=getBlockEnd(block);updateScope(block.scope,index,valueIdentifier,value,keyIdentifier,key,collectionLength);}else{// new item which we don't know about
	$transclude(function ngRepeatTransclude(clone,scope){block.scope=scope;// http://jsperf.com/clone-vs-createcomment
	var endNode=ngRepeatEndComment.cloneNode(false);clone[clone.length++]=endNode;$animate.enter(clone,null,previousNode);previousNode=endNode;// Note: We only need the first/last node of the cloned nodes.
	// However, we need to keep the reference to the jqlite wrapper as it might be changed later
	// by a directive with templateUrl when its template arrives.
	block.clone=clone;nextBlockMap[block.id]=block;updateScope(block.scope,index,valueIdentifier,value,keyIdentifier,key,collectionLength);});}}lastBlockMap=nextBlockMap;});};}};}];var NG_HIDE_CLASS='ng-hide';var NG_HIDE_IN_PROGRESS_CLASS='ng-hide-animate';/**
	 * @ngdoc directive
	 * @name ngShow
	 * @multiElement
	 *
	 * @description
	 * The `ngShow` directive shows or hides the given HTML element based on the expression provided to
	 * the `ngShow` attribute.
	 *
	 * The element is shown or hidden by removing or adding the `.ng-hide` CSS class onto the element.
	 * The `.ng-hide` CSS class is predefined in AngularJS and sets the display style to none (using an
	 * `!important` flag). For CSP mode please add `angular-csp.css` to your HTML file (see
	 * {@link ng.directive:ngCsp ngCsp}).
	 *
	 * ```html
	 * <!-- when $scope.myValue is truthy (element is visible) -->
	 * <div ng-show="myValue"></div>
	 *
	 * <!-- when $scope.myValue is falsy (element is hidden) -->
	 * <div ng-show="myValue" class="ng-hide"></div>
	 * ```
	 *
	 * When the `ngShow` expression evaluates to a falsy value then the `.ng-hide` CSS class is added
	 * to the class attribute on the element causing it to become hidden. When truthy, the `.ng-hide`
	 * CSS class is removed from the element causing the element not to appear hidden.
	 *
	 * ## Why is `!important` used?
	 *
	 * You may be wondering why `!important` is used for the `.ng-hide` CSS class. This is because the
	 * `.ng-hide` selector can be easily overridden by heavier selectors. For example, something as
	 * simple as changing the display style on a HTML list item would make hidden elements appear
	 * visible. This also becomes a bigger issue when dealing with CSS frameworks.
	 *
	 * By using `!important`, the show and hide behavior will work as expected despite any clash between
	 * CSS selector specificity (when `!important` isn't used with any conflicting styles). If a
	 * developer chooses to override the styling to change how to hide an element then it is just a
	 * matter of using `!important` in their own CSS code.
	 *
	 * ### Overriding `.ng-hide`
	 *
	 * By default, the `.ng-hide` class will style the element with `display: none !important`. If you
	 * wish to change the hide behavior with `ngShow`/`ngHide`, you can simply overwrite the styles for
	 * the `.ng-hide` CSS class. Note that the selector that needs to be used is actually
	 * `.ng-hide:not(.ng-hide-animate)` to cope with extra animation classes that can be added.
	 *
	 * ```css
	 * .ng-hide:not(.ng-hide-animate) {
	 *   /&#42; These are just alternative ways of hiding an element &#42;/
	 *   display: block!important;
	 *   position: absolute;
	 *   top: -9999px;
	 *   left: -9999px;
	 * }
	 * ```
	 *
	 * By default you don't need to override anything in CSS and the animations will work around the
	 * display style.
	 *
	 * @animations
	 * | Animation                                           | Occurs                                                                                                        |
	 * |-----------------------------------------------------|---------------------------------------------------------------------------------------------------------------|
	 * | {@link $animate#addClass addClass} `.ng-hide`       | After the `ngShow` expression evaluates to a non truthy value and just before the contents are set to hidden. |
	 * | {@link $animate#removeClass removeClass} `.ng-hide` | After the `ngShow` expression evaluates to a truthy value and just before contents are set to visible.        |
	 *
	 * Animations in `ngShow`/`ngHide` work with the show and hide events that are triggered when the
	 * directive expression is true and false. This system works like the animation system present with
	 * `ngClass` except that you must also include the `!important` flag to override the display
	 * property so that the elements are not actually hidden during the animation.
	 *
	 * ```css
	 * /&#42; A working example can be found at the bottom of this page. &#42;/
	 * .my-element.ng-hide-add, .my-element.ng-hide-remove {
	 *   transition: all 0.5s linear;
	 * }
	 *
	 * .my-element.ng-hide-add { ... }
	 * .my-element.ng-hide-add.ng-hide-add-active { ... }
	 * .my-element.ng-hide-remove { ... }
	 * .my-element.ng-hide-remove.ng-hide-remove-active { ... }
	 * ```
	 *
	 * Keep in mind that, as of AngularJS version 1.3, there is no need to change the display property
	 * to block during animation states - ngAnimate will automatically handle the style toggling for you.
	 *
	 * @element ANY
	 * @param {expression} ngShow If the {@link guide/expression expression} is truthy/falsy then the
	 *                            element is shown/hidden respectively.
	 *
	 * @example
	 * A simple example, animating the element's opacity:
	 *
	  <example module="ngAnimate" deps="angular-animate.js" animations="true" name="ng-show-simple">
	    <file name="index.html">
	      Show: <input type="checkbox" ng-model="checked" aria-label="Toggle ngShow"><br />
	      <div class="check-element animate-show-hide" ng-show="checked">
	        I show up when your checkbox is checked.
	      </div>
	    </file>
	    <file name="animations.css">
	      .animate-show-hide.ng-hide {
	        opacity: 0;
	      }
	
	      .animate-show-hide.ng-hide-add,
	      .animate-show-hide.ng-hide-remove {
	        transition: all linear 0.5s;
	      }
	
	      .check-element {
	        border: 1px solid black;
	        opacity: 1;
	        padding: 10px;
	      }
	    </file>
	    <file name="protractor.js" type="protractor">
	      it('should check ngShow', function() {
	        var checkbox = element(by.model('checked'));
	        var checkElem = element(by.css('.check-element'));
	
	        expect(checkElem.isDisplayed()).toBe(false);
	        checkbox.click();
	        expect(checkElem.isDisplayed()).toBe(true);
	      });
	    </file>
	  </example>
	 *
	 * <hr />
	 * @example
	 * A more complex example, featuring different show/hide animations:
	 *
	  <example module="ngAnimate" deps="angular-animate.js" animations="true" name="ng-show-complex">
	    <file name="index.html">
	      Show: <input type="checkbox" ng-model="checked" aria-label="Toggle ngShow"><br />
	      <div class="check-element funky-show-hide" ng-show="checked">
	        I show up when your checkbox is checked.
	      </div>
	    </file>
	    <file name="animations.css">
	      body {
	        overflow: hidden;
	        perspective: 1000px;
	      }
	
	      .funky-show-hide.ng-hide-add {
	        transform: rotateZ(0);
	        transform-origin: right;
	        transition: all 0.5s ease-in-out;
	      }
	
	      .funky-show-hide.ng-hide-add.ng-hide-add-active {
	        transform: rotateZ(-135deg);
	      }
	
	      .funky-show-hide.ng-hide-remove {
	        transform: rotateY(90deg);
	        transform-origin: left;
	        transition: all 0.5s ease;
	      }
	
	      .funky-show-hide.ng-hide-remove.ng-hide-remove-active {
	        transform: rotateY(0);
	      }
	
	      .check-element {
	        border: 1px solid black;
	        opacity: 1;
	        padding: 10px;
	      }
	    </file>
	    <file name="protractor.js" type="protractor">
	      it('should check ngShow', function() {
	        var checkbox = element(by.model('checked'));
	        var checkElem = element(by.css('.check-element'));
	
	        expect(checkElem.isDisplayed()).toBe(false);
	        checkbox.click();
	        expect(checkElem.isDisplayed()).toBe(true);
	      });
	    </file>
	  </example>
	 *
	 * @knownIssue
	 *
	 * ### Flickering when using ngShow to toggle between elements
	 *
	 * When using {@link ngShow} and / or {@link ngHide} to toggle between elements, it can
	 * happen that both the element to show and the element to hide are visible for a very short time.
	 *
	 * This usually happens when the {@link ngAnimate ngAnimate module} is included, but no actual animations
	 * are defined for {@link ngShow} / {@link ngHide}. Internet Explorer is affected more often than
	 * other browsers.
	 *
	 * There are several way to mitigate this problem:
	 *
	 * - {@link guide/animations#how-to-selectively-enable-disable-and-skip-animations Disable animations on the affected elements}.
	 * - Use {@link ngIf} or {@link ngSwitch} instead of {@link ngShow} / {@link ngHide}.
	 * - Use the special CSS selector `ng-hide.ng-hide-animate` to set `{display: none}` or similar on the affected elements.
	 * - Use `ng-class="{'ng-hide': expression}` instead of instead of {@link ngShow} / {@link ngHide}.
	 * - Define an animation on the affected elements.
	 */var ngShowDirective=['$animate',function($animate){return{restrict:'A',multiElement:true,link:function link(scope,element,attr){scope.$watch(attr.ngShow,function ngShowWatchAction(value){// we're adding a temporary, animation-specific class for ng-hide since this way
	// we can control when the element is actually displayed on screen without having
	// to have a global/greedy CSS selector that breaks when other animations are run.
	// Read: https://github.com/angular/angular.js/issues/9103#issuecomment-58335845
	$animate[value?'removeClass':'addClass'](element,NG_HIDE_CLASS,{tempClasses:NG_HIDE_IN_PROGRESS_CLASS});});}};}];/**
	 * @ngdoc directive
	 * @name ngHide
	 * @multiElement
	 *
	 * @description
	 * The `ngHide` directive shows or hides the given HTML element based on the expression provided to
	 * the `ngHide` attribute.
	 *
	 * The element is shown or hidden by removing or adding the `.ng-hide` CSS class onto the element.
	 * The `.ng-hide` CSS class is predefined in AngularJS and sets the display style to none (using an
	 * `!important` flag). For CSP mode please add `angular-csp.css` to your HTML file (see
	 * {@link ng.directive:ngCsp ngCsp}).
	 *
	 * ```html
	 * <!-- when $scope.myValue is truthy (element is hidden) -->
	 * <div ng-hide="myValue" class="ng-hide"></div>
	 *
	 * <!-- when $scope.myValue is falsy (element is visible) -->
	 * <div ng-hide="myValue"></div>
	 * ```
	 *
	 * When the `ngHide` expression evaluates to a truthy value then the `.ng-hide` CSS class is added
	 * to the class attribute on the element causing it to become hidden. When falsy, the `.ng-hide`
	 * CSS class is removed from the element causing the element not to appear hidden.
	 *
	 * ## Why is `!important` used?
	 *
	 * You may be wondering why `!important` is used for the `.ng-hide` CSS class. This is because the
	 * `.ng-hide` selector can be easily overridden by heavier selectors. For example, something as
	 * simple as changing the display style on a HTML list item would make hidden elements appear
	 * visible. This also becomes a bigger issue when dealing with CSS frameworks.
	 *
	 * By using `!important`, the show and hide behavior will work as expected despite any clash between
	 * CSS selector specificity (when `!important` isn't used with any conflicting styles). If a
	 * developer chooses to override the styling to change how to hide an element then it is just a
	 * matter of using `!important` in their own CSS code.
	 *
	 * ### Overriding `.ng-hide`
	 *
	 * By default, the `.ng-hide` class will style the element with `display: none !important`. If you
	 * wish to change the hide behavior with `ngShow`/`ngHide`, you can simply overwrite the styles for
	 * the `.ng-hide` CSS class. Note that the selector that needs to be used is actually
	 * `.ng-hide:not(.ng-hide-animate)` to cope with extra animation classes that can be added.
	 *
	 * ```css
	 * .ng-hide:not(.ng-hide-animate) {
	 *   /&#42; These are just alternative ways of hiding an element &#42;/
	 *   display: block!important;
	 *   position: absolute;
	 *   top: -9999px;
	 *   left: -9999px;
	 * }
	 * ```
	 *
	 * By default you don't need to override in CSS anything and the animations will work around the
	 * display style.
	 *
	 * @animations
	 * | Animation                                           | Occurs                                                                                                     |
	 * |-----------------------------------------------------|------------------------------------------------------------------------------------------------------------|
	 * | {@link $animate#addClass addClass} `.ng-hide`       | After the `ngHide` expression evaluates to a truthy value and just before the contents are set to hidden.  |
	 * | {@link $animate#removeClass removeClass} `.ng-hide` | After the `ngHide` expression evaluates to a non truthy value and just before contents are set to visible. |
	 *
	 * Animations in `ngShow`/`ngHide` work with the show and hide events that are triggered when the
	 * directive expression is true and false. This system works like the animation system present with
	 * `ngClass` except that you must also include the `!important` flag to override the display
	 * property so that the elements are not actually hidden during the animation.
	 *
	 * ```css
	 * /&#42; A working example can be found at the bottom of this page. &#42;/
	 * .my-element.ng-hide-add, .my-element.ng-hide-remove {
	 *   transition: all 0.5s linear;
	 * }
	 *
	 * .my-element.ng-hide-add { ... }
	 * .my-element.ng-hide-add.ng-hide-add-active { ... }
	 * .my-element.ng-hide-remove { ... }
	 * .my-element.ng-hide-remove.ng-hide-remove-active { ... }
	 * ```
	 *
	 * Keep in mind that, as of AngularJS version 1.3, there is no need to change the display property
	 * to block during animation states - ngAnimate will automatically handle the style toggling for you.
	 *
	 * @element ANY
	 * @param {expression} ngHide If the {@link guide/expression expression} is truthy/falsy then the
	 *                            element is hidden/shown respectively.
	 *
	 * @example
	 * A simple example, animating the element's opacity:
	 *
	  <example module="ngAnimate" deps="angular-animate.js" animations="true" name="ng-hide-simple">
	    <file name="index.html">
	      Hide: <input type="checkbox" ng-model="checked" aria-label="Toggle ngHide"><br />
	      <div class="check-element animate-show-hide" ng-hide="checked">
	        I hide when your checkbox is checked.
	      </div>
	    </file>
	    <file name="animations.css">
	      .animate-show-hide.ng-hide {
	        opacity: 0;
	      }
	
	      .animate-show-hide.ng-hide-add,
	      .animate-show-hide.ng-hide-remove {
	        transition: all linear 0.5s;
	      }
	
	      .check-element {
	        border: 1px solid black;
	        opacity: 1;
	        padding: 10px;
	      }
	    </file>
	    <file name="protractor.js" type="protractor">
	      it('should check ngHide', function() {
	        var checkbox = element(by.model('checked'));
	        var checkElem = element(by.css('.check-element'));
	
	        expect(checkElem.isDisplayed()).toBe(true);
	        checkbox.click();
	        expect(checkElem.isDisplayed()).toBe(false);
	      });
	    </file>
	  </example>
	 *
	 * <hr />
	 * @example
	 * A more complex example, featuring different show/hide animations:
	 *
	  <example module="ngAnimate" deps="angular-animate.js" animations="true" name="ng-hide-complex">
	    <file name="index.html">
	      Hide: <input type="checkbox" ng-model="checked" aria-label="Toggle ngHide"><br />
	      <div class="check-element funky-show-hide" ng-hide="checked">
	        I hide when your checkbox is checked.
	      </div>
	    </file>
	    <file name="animations.css">
	      body {
	        overflow: hidden;
	        perspective: 1000px;
	      }
	
	      .funky-show-hide.ng-hide-add {
	        transform: rotateZ(0);
	        transform-origin: right;
	        transition: all 0.5s ease-in-out;
	      }
	
	      .funky-show-hide.ng-hide-add.ng-hide-add-active {
	        transform: rotateZ(-135deg);
	      }
	
	      .funky-show-hide.ng-hide-remove {
	        transform: rotateY(90deg);
	        transform-origin: left;
	        transition: all 0.5s ease;
	      }
	
	      .funky-show-hide.ng-hide-remove.ng-hide-remove-active {
	        transform: rotateY(0);
	      }
	
	      .check-element {
	        border: 1px solid black;
	        opacity: 1;
	        padding: 10px;
	      }
	    </file>
	    <file name="protractor.js" type="protractor">
	      it('should check ngHide', function() {
	        var checkbox = element(by.model('checked'));
	        var checkElem = element(by.css('.check-element'));
	
	        expect(checkElem.isDisplayed()).toBe(true);
	        checkbox.click();
	        expect(checkElem.isDisplayed()).toBe(false);
	      });
	    </file>
	  </example>
	 *
	 * @knownIssue
	 *
	 * ### Flickering when using ngHide to toggle between elements
	 *
	 * When using {@link ngShow} and / or {@link ngHide} to toggle between elements, it can
	 * happen that both the element to show and the element to hide are visible for a very short time.
	 *
	 * This usually happens when the {@link ngAnimate ngAnimate module} is included, but no actual animations
	 * are defined for {@link ngShow} / {@link ngHide}. Internet Explorer is affected more often than
	 * other browsers.
	 *
	 * There are several way to mitigate this problem:
	 *
	 * - {@link guide/animations#how-to-selectively-enable-disable-and-skip-animations Disable animations on the affected elements}.
	 * - Use {@link ngIf} or {@link ngSwitch} instead of {@link ngShow} / {@link ngHide}.
	 * - Use the special CSS selector `ng-hide.ng-hide-animate` to set `{display: none}` or similar on the affected elements.
	 * - Use `ng-class="{'ng-hide': expression}` instead of instead of {@link ngShow} / {@link ngHide}.
	 * - Define an animation on the affected elements.
	 */var ngHideDirective=['$animate',function($animate){return{restrict:'A',multiElement:true,link:function link(scope,element,attr){scope.$watch(attr.ngHide,function ngHideWatchAction(value){// The comment inside of the ngShowDirective explains why we add and
	// remove a temporary class for the show/hide animation
	$animate[value?'addClass':'removeClass'](element,NG_HIDE_CLASS,{tempClasses:NG_HIDE_IN_PROGRESS_CLASS});});}};}];/**
	 * @ngdoc directive
	 * @name ngStyle
	 * @restrict AC
	 *
	 * @description
	 * The `ngStyle` directive allows you to set CSS style on an HTML element conditionally.
	 *
	 * @knownIssue
	 * You should not use {@link guide/interpolation interpolation} in the value of the `style`
	 * attribute, when using the `ngStyle` directive on the same element.
	 * See {@link guide/interpolation#known-issues here} for more info.
	 *
	 * @element ANY
	 * @param {expression} ngStyle
	 *
	 * {@link guide/expression Expression} which evals to an
	 * object whose keys are CSS style names and values are corresponding values for those CSS
	 * keys.
	 *
	 * Since some CSS style names are not valid keys for an object, they must be quoted.
	 * See the 'background-color' style in the example below.
	 *
	 * @example
	   <example name="ng-style">
	     <file name="index.html">
	        <input type="button" value="set color" ng-click="myStyle={color:'red'}">
	        <input type="button" value="set background" ng-click="myStyle={'background-color':'blue'}">
	        <input type="button" value="clear" ng-click="myStyle={}">
	        <br/>
	        <span ng-style="myStyle">Sample Text</span>
	        <pre>myStyle={{myStyle}}</pre>
	     </file>
	     <file name="style.css">
	       span {
	         color: black;
	       }
	     </file>
	     <file name="protractor.js" type="protractor">
	       var colorSpan = element(by.css('span'));
	
	       it('should check ng-style', function() {
	         expect(colorSpan.getCssValue('color')).toMatch(/rgba\(0, 0, 0, 1\)|rgb\(0, 0, 0\)/);
	         element(by.css('input[value=\'set color\']')).click();
	         expect(colorSpan.getCssValue('color')).toMatch(/rgba\(255, 0, 0, 1\)|rgb\(255, 0, 0\)/);
	         element(by.css('input[value=clear]')).click();
	         expect(colorSpan.getCssValue('color')).toMatch(/rgba\(0, 0, 0, 1\)|rgb\(0, 0, 0\)/);
	       });
	     </file>
	   </example>
	 */var ngStyleDirective=ngDirective(function(scope,element,attr){scope.$watchCollection(attr.ngStyle,function ngStyleWatchAction(newStyles,oldStyles){if(oldStyles&&newStyles!==oldStyles){forEach(oldStyles,function(val,style){element.css(style,'');});}if(newStyles)element.css(newStyles);});});/**
	 * @ngdoc directive
	 * @name ngSwitch
	 * @restrict EA
	 *
	 * @description
	 * The `ngSwitch` directive is used to conditionally swap DOM structure on your template based on a scope expression.
	 * Elements within `ngSwitch` but without `ngSwitchWhen` or `ngSwitchDefault` directives will be preserved at the location
	 * as specified in the template.
	 *
	 * The directive itself works similar to ngInclude, however, instead of downloading template code (or loading it
	 * from the template cache), `ngSwitch` simply chooses one of the nested elements and makes it visible based on which element
	 * matches the value obtained from the evaluated expression. In other words, you define a container element
	 * (where you place the directive), place an expression on the **`on="..."` attribute**
	 * (or the **`ng-switch="..."` attribute**), define any inner elements inside of the directive and place
	 * a when attribute per element. The when attribute is used to inform ngSwitch which element to display when the on
	 * expression is evaluated. If a matching expression is not found via a when attribute then an element with the default
	 * attribute is displayed.
	 *
	 * <div class="alert alert-info">
	 * Be aware that the attribute values to match against cannot be expressions. They are interpreted
	 * as literal string values to match against.
	 * For example, **`ng-switch-when="someVal"`** will match against the string `"someVal"` not against the
	 * value of the expression `$scope.someVal`.
	 * </div>
	
	 * @animations
	 * | Animation                        | Occurs                              |
	 * |----------------------------------|-------------------------------------|
	 * | {@link ng.$animate#enter enter}  | after the ngSwitch contents change and the matched child element is placed inside the container |
	 * | {@link ng.$animate#leave leave}  | after the ngSwitch contents change and just before the former contents are removed from the DOM |
	 *
	 * @usage
	 *
	 * ```
	 * <ANY ng-switch="expression">
	 *   <ANY ng-switch-when="matchValue1">...</ANY>
	 *   <ANY ng-switch-when="matchValue2">...</ANY>
	 *   <ANY ng-switch-default>...</ANY>
	 * </ANY>
	 * ```
	 *
	 *
	 * @scope
	 * @priority 1200
	 * @param {*} ngSwitch|on expression to match against <code>ng-switch-when</code>.
	 * On child elements add:
	 *
	 * * `ngSwitchWhen`: the case statement to match against. If match then this
	 *   case will be displayed. If the same match appears multiple times, all the
	 *   elements will be displayed. It is possible to associate multiple values to
	 *   the same `ngSwitchWhen` by defining the optional attribute
	 *   `ngSwitchWhenSeparator`. The separator will be used to split the value of
	 *   the `ngSwitchWhen` attribute into multiple tokens, and the element will show
	 *   if any of the `ngSwitch` evaluates to any of these tokens.
	 * * `ngSwitchDefault`: the default case when no other case match. If there
	 *   are multiple default cases, all of them will be displayed when no other
	 *   case match.
	 *
	 *
	 * @example
	  <example module="switchExample" deps="angular-animate.js" animations="true" name="ng-switch">
	    <file name="index.html">
	      <div ng-controller="ExampleController">
	        <select ng-model="selection" ng-options="item for item in items">
	        </select>
	        <code>selection={{selection}}</code>
	        <hr/>
	        <div class="animate-switch-container"
	          ng-switch on="selection">
	            <div class="animate-switch" ng-switch-when="settings|options" ng-switch-when-separator="|">Settings Div</div>
	            <div class="animate-switch" ng-switch-when="home">Home Span</div>
	            <div class="animate-switch" ng-switch-default>default</div>
	        </div>
	      </div>
	    </file>
	    <file name="script.js">
	      angular.module('switchExample', ['ngAnimate'])
	        .controller('ExampleController', ['$scope', function($scope) {
	          $scope.items = ['settings', 'home', 'options', 'other'];
	          $scope.selection = $scope.items[0];
	        }]);
	    </file>
	    <file name="animations.css">
	      .animate-switch-container {
	        position:relative;
	        background:white;
	        border:1px solid black;
	        height:40px;
	        overflow:hidden;
	      }
	
	      .animate-switch {
	        padding:10px;
	      }
	
	      .animate-switch.ng-animate {
	        transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
	
	        position:absolute;
	        top:0;
	        left:0;
	        right:0;
	        bottom:0;
	      }
	
	      .animate-switch.ng-leave.ng-leave-active,
	      .animate-switch.ng-enter {
	        top:-50px;
	      }
	      .animate-switch.ng-leave,
	      .animate-switch.ng-enter.ng-enter-active {
	        top:0;
	      }
	    </file>
	    <file name="protractor.js" type="protractor">
	      var switchElem = element(by.css('[ng-switch]'));
	      var select = element(by.model('selection'));
	
	      it('should start in settings', function() {
	        expect(switchElem.getText()).toMatch(/Settings Div/);
	      });
	      it('should change to home', function() {
	        select.all(by.css('option')).get(1).click();
	        expect(switchElem.getText()).toMatch(/Home Span/);
	      });
	      it('should change to settings via "options"', function() {
	        select.all(by.css('option')).get(2).click();
	        expect(switchElem.getText()).toMatch(/Settings Div/);
	      });
	      it('should select default', function() {
	        select.all(by.css('option')).get(3).click();
	        expect(switchElem.getText()).toMatch(/default/);
	      });
	    </file>
	  </example>
	 */var ngSwitchDirective=['$animate','$compile',function($animate,$compile){return{require:'ngSwitch',// asks for $scope to fool the BC controller module
	controller:['$scope',function NgSwitchController(){this.cases={};}],link:function link(scope,element,attr,ngSwitchController){var watchExpr=attr.ngSwitch||attr.on,selectedTranscludes=[],selectedElements=[],previousLeaveAnimations=[],selectedScopes=[];var spliceFactory=function spliceFactory(array,index){return function(response){if(response!==false)array.splice(index,1);};};scope.$watch(watchExpr,function ngSwitchWatchAction(value){var i,ii;// Start with the last, in case the array is modified during the loop
	while(previousLeaveAnimations.length){$animate.cancel(previousLeaveAnimations.pop());}for(i=0,ii=selectedScopes.length;i<ii;++i){var selected=getBlockNodes(selectedElements[i].clone);selectedScopes[i].$destroy();var runner=previousLeaveAnimations[i]=$animate.leave(selected);runner.done(spliceFactory(previousLeaveAnimations,i));}selectedElements.length=0;selectedScopes.length=0;if(selectedTranscludes=ngSwitchController.cases['!'+value]||ngSwitchController.cases['?']){forEach(selectedTranscludes,function(selectedTransclude){selectedTransclude.transclude(function(caseElement,selectedScope){selectedScopes.push(selectedScope);var anchor=selectedTransclude.element;caseElement[caseElement.length++]=$compile.$$createComment('end ngSwitchWhen');var block={clone:caseElement};selectedElements.push(block);$animate.enter(caseElement,anchor.parent(),anchor);});});}});}};}];var ngSwitchWhenDirective=ngDirective({transclude:'element',priority:1200,require:'^ngSwitch',multiElement:true,link:function link(scope,element,attrs,ctrl,$transclude){var cases=attrs.ngSwitchWhen.split(attrs.ngSwitchWhenSeparator).sort().filter(// Filter duplicate cases
	function(element,index,array){return array[index-1]!==element;});forEach(cases,function(whenCase){ctrl.cases['!'+whenCase]=ctrl.cases['!'+whenCase]||[];ctrl.cases['!'+whenCase].push({transclude:$transclude,element:element});});}});var ngSwitchDefaultDirective=ngDirective({transclude:'element',priority:1200,require:'^ngSwitch',multiElement:true,link:function link(scope,element,attr,ctrl,$transclude){ctrl.cases['?']=ctrl.cases['?']||[];ctrl.cases['?'].push({transclude:$transclude,element:element});}});/**
	 * @ngdoc directive
	 * @name ngTransclude
	 * @restrict EAC
	 *
	 * @description
	 * Directive that marks the insertion point for the transcluded DOM of the nearest parent directive that uses transclusion.
	 *
	 * You can specify that you want to insert a named transclusion slot, instead of the default slot, by providing the slot name
	 * as the value of the `ng-transclude` or `ng-transclude-slot` attribute.
	 *
	 * If the transcluded content is not empty (i.e. contains one or more DOM nodes, including whitespace text nodes), any existing
	 * content of this element will be removed before the transcluded content is inserted.
	 * If the transcluded content is empty (or only whitespace), the existing content is left intact. This lets you provide fallback
	 * content in the case that no transcluded content is provided.
	 *
	 * @element ANY
	 *
	 * @param {string} ngTransclude|ngTranscludeSlot the name of the slot to insert at this point. If this is not provided, is empty
	 *                                               or its value is the same as the name of the attribute then the default slot is used.
	 *
	 * @example
	 * ### Basic transclusion
	 * This example demonstrates basic transclusion of content into a component directive.
	 * <example name="simpleTranscludeExample" module="transcludeExample">
	 *   <file name="index.html">
	 *     <script>
	 *       angular.module('transcludeExample', [])
	 *        .directive('pane', function(){
	 *           return {
	 *             restrict: 'E',
	 *             transclude: true,
	 *             scope: { title:'@' },
	 *             template: '<div style="border: 1px solid black;">' +
	 *                         '<div style="background-color: gray">{{title}}</div>' +
	 *                         '<ng-transclude></ng-transclude>' +
	 *                       '</div>'
	 *           };
	 *       })
	 *       .controller('ExampleController', ['$scope', function($scope) {
	 *         $scope.title = 'Lorem Ipsum';
	 *         $scope.text = 'Neque porro quisquam est qui dolorem ipsum quia dolor...';
	 *       }]);
	 *     </script>
	 *     <div ng-controller="ExampleController">
	 *       <input ng-model="title" aria-label="title"> <br/>
	 *       <textarea ng-model="text" aria-label="text"></textarea> <br/>
	 *       <pane title="{{title}}"><span>{{text}}</span></pane>
	 *     </div>
	 *   </file>
	 *   <file name="protractor.js" type="protractor">
	 *      it('should have transcluded', function() {
	 *        var titleElement = element(by.model('title'));
	 *        titleElement.clear();
	 *        titleElement.sendKeys('TITLE');
	 *        var textElement = element(by.model('text'));
	 *        textElement.clear();
	 *        textElement.sendKeys('TEXT');
	 *        expect(element(by.binding('title')).getText()).toEqual('TITLE');
	 *        expect(element(by.binding('text')).getText()).toEqual('TEXT');
	 *      });
	 *   </file>
	 * </example>
	 *
	 * @example
	 * ### Transclude fallback content
	 * This example shows how to use `NgTransclude` with fallback content, that
	 * is displayed if no transcluded content is provided.
	 *
	 * <example module="transcludeFallbackContentExample" name="ng-transclude">
	 * <file name="index.html">
	 * <script>
	 * angular.module('transcludeFallbackContentExample', [])
	 * .directive('myButton', function(){
	 *             return {
	 *               restrict: 'E',
	 *               transclude: true,
	 *               scope: true,
	 *               template: '<button style="cursor: pointer;">' +
	 *                           '<ng-transclude>' +
	 *                             '<b style="color: red;">Button1</b>' +
	 *                           '</ng-transclude>' +
	 *                         '</button>'
	 *             };
	 *         });
	 * </script>
	 * <!-- fallback button content -->
	 * <my-button id="fallback"></my-button>
	 * <!-- modified button content -->
	 * <my-button id="modified">
	 *   <i style="color: green;">Button2</i>
	 * </my-button>
	 * </file>
	 * <file name="protractor.js" type="protractor">
	 * it('should have different transclude element content', function() {
	 *          expect(element(by.id('fallback')).getText()).toBe('Button1');
	 *          expect(element(by.id('modified')).getText()).toBe('Button2');
	 *        });
	 * </file>
	 * </example>
	 *
	 * @example
	 * ### Multi-slot transclusion
	 * This example demonstrates using multi-slot transclusion in a component directive.
	 * <example name="multiSlotTranscludeExample" module="multiSlotTranscludeExample">
	 *   <file name="index.html">
	 *    <style>
	 *      .title, .footer {
	 *        background-color: gray
	 *      }
	 *    </style>
	 *    <div ng-controller="ExampleController">
	 *      <input ng-model="title" aria-label="title"> <br/>
	 *      <textarea ng-model="text" aria-label="text"></textarea> <br/>
	 *      <pane>
	 *        <pane-title><a ng-href="{{link}}">{{title}}</a></pane-title>
	 *        <pane-body><p>{{text}}</p></pane-body>
	 *      </pane>
	 *    </div>
	 *   </file>
	 *   <file name="app.js">
	 *    angular.module('multiSlotTranscludeExample', [])
	 *     .directive('pane', function() {
	 *        return {
	 *          restrict: 'E',
	 *          transclude: {
	 *            'title': '?paneTitle',
	 *            'body': 'paneBody',
	 *            'footer': '?paneFooter'
	 *          },
	 *          template: '<div style="border: 1px solid black;">' +
	 *                      '<div class="title" ng-transclude="title">Fallback Title</div>' +
	 *                      '<div ng-transclude="body"></div>' +
	 *                      '<div class="footer" ng-transclude="footer">Fallback Footer</div>' +
	 *                    '</div>'
	 *        };
	 *    })
	 *    .controller('ExampleController', ['$scope', function($scope) {
	 *      $scope.title = 'Lorem Ipsum';
	 *      $scope.link = 'https://google.com';
	 *      $scope.text = 'Neque porro quisquam est qui dolorem ipsum quia dolor...';
	 *    }]);
	 *   </file>
	 *   <file name="protractor.js" type="protractor">
	 *      it('should have transcluded the title and the body', function() {
	 *        var titleElement = element(by.model('title'));
	 *        titleElement.clear();
	 *        titleElement.sendKeys('TITLE');
	 *        var textElement = element(by.model('text'));
	 *        textElement.clear();
	 *        textElement.sendKeys('TEXT');
	 *        expect(element(by.css('.title')).getText()).toEqual('TITLE');
	 *        expect(element(by.binding('text')).getText()).toEqual('TEXT');
	 *        expect(element(by.css('.footer')).getText()).toEqual('Fallback Footer');
	 *      });
	 *   </file>
	 * </example>
	 */var ngTranscludeMinErr=minErr('ngTransclude');var ngTranscludeDirective=['$compile',function($compile){return{restrict:'EAC',compile:function ngTranscludeCompile(tElement){// Remove and cache any original content to act as a fallback
	var fallbackLinkFn=$compile(tElement.contents());tElement.empty();return function ngTranscludePostLink($scope,$element,$attrs,controller,$transclude){if(!$transclude){throw ngTranscludeMinErr('orphan','Illegal use of ngTransclude directive in the template! '+'No parent directive that requires a transclusion found. '+'Element: {0}',startingTag($element));}// If the attribute is of the form: `ng-transclude="ng-transclude"` then treat it like the default
	if($attrs.ngTransclude===$attrs.$attr.ngTransclude){$attrs.ngTransclude='';}var slotName=$attrs.ngTransclude||$attrs.ngTranscludeSlot;// If the slot is required and no transclusion content is provided then this call will throw an error
	$transclude(ngTranscludeCloneAttachFn,null,slotName);// If the slot is optional and no transclusion content is provided then use the fallback content
	if(slotName&&!$transclude.isSlotFilled(slotName)){useFallbackContent();}function ngTranscludeCloneAttachFn(clone,transcludedScope){if(clone.length&&notWhitespace(clone)){$element.append(clone);}else{useFallbackContent();// There is nothing linked against the transcluded scope since no content was available,
	// so it should be safe to clean up the generated scope.
	transcludedScope.$destroy();}}function useFallbackContent(){// Since this is the fallback content rather than the transcluded content,
	// we link against the scope of this directive rather than the transcluded scope
	fallbackLinkFn($scope,function(clone){$element.append(clone);});}function notWhitespace(nodes){for(var i=0,ii=nodes.length;i<ii;i++){var node=nodes[i];if(node.nodeType!==NODE_TYPE_TEXT||node.nodeValue.trim()){return true;}}}};}};}];/**
	 * @ngdoc directive
	 * @name script
	 * @restrict E
	 *
	 * @description
	 * Load the content of a `<script>` element into {@link ng.$templateCache `$templateCache`}, so that the
	 * template can be used by {@link ng.directive:ngInclude `ngInclude`},
	 * {@link ngRoute.directive:ngView `ngView`}, or {@link guide/directive directives}. The type of the
	 * `<script>` element must be specified as `text/ng-template`, and a cache name for the template must be
	 * assigned through the element's `id`, which can then be used as a directive's `templateUrl`.
	 *
	 * @param {string} type Must be set to `'text/ng-template'`.
	 * @param {string} id Cache name of the template.
	 *
	 * @example
	  <example  name="script-tag">
	    <file name="index.html">
	      <script type="text/ng-template" id="/tpl.html">
	        Content of the template.
	      </script>
	
	      <a ng-click="currentTpl='/tpl.html'" id="tpl-link">Load inlined template</a>
	      <div id="tpl-content" ng-include src="currentTpl"></div>
	    </file>
	    <file name="protractor.js" type="protractor">
	      it('should load template defined inside script tag', function() {
	        element(by.css('#tpl-link')).click();
	        expect(element(by.css('#tpl-content')).getText()).toMatch(/Content of the template/);
	      });
	    </file>
	  </example>
	 */var scriptDirective=['$templateCache',function($templateCache){return{restrict:'E',terminal:true,compile:function compile(element,attr){if(attr.type==='text/ng-template'){var templateUrl=attr.id,text=element[0].text;$templateCache.put(templateUrl,text);}}};}];/* exported selectDirective, optionDirective */var noopNgModelController={$setViewValue:noop,$render:noop};function setOptionSelectedStatus(optionEl,value){optionEl.prop('selected',value);/**
	   * When unselecting an option, setting the property to null / false should be enough
	   * However, screenreaders might react to the selected attribute instead, see
	   * https://github.com/angular/angular.js/issues/14419
	   * Note: "selected" is a boolean attr and will be removed when the "value" arg in attr() is false
	   * or null
	   */optionEl.attr('selected',value);}/**
	 * @ngdoc type
	 * @name  select.SelectController
	 *
	 * @description
	 * The controller for the {@link ng.select select} directive. The controller exposes
	 * a few utility methods that can be used to augment the behavior of a regular or an
	 * {@link ng.ngOptions ngOptions} select element.
	 *
	 * @example
	 * ### Set a custom error when the unknown option is selected
	 *
	 * This example sets a custom error "unknownValue" on the ngModelController
	 * when the select element's unknown option is selected, i.e. when the model is set to a value
	 * that is not matched by any option.
	 *
	 * <example name="select-unknown-value-error" module="staticSelect">
	 * <file name="index.html">
	 * <div ng-controller="ExampleController">
	 *   <form name="myForm">
	 *     <label for="testSelect"> Single select: </label><br>
	 *     <select name="testSelect" ng-model="selected" unknown-value-error>
	 *       <option value="option-1">Option 1</option>
	 *       <option value="option-2">Option 2</option>
	 *     </select><br>
	 *     <span class="error" ng-if="myForm.testSelect.$error.unknownValue">
	 *       Error: The current model doesn't match any option</span><br>
	 *
	 *     <button ng-click="forceUnknownOption()">Force unknown option</button><br>
	 *   </form>
	 * </div>
	 * </file>
	 * <file name="app.js">
	 *  angular.module('staticSelect', [])
	 *    .controller('ExampleController', ['$scope', function($scope) {
	 *      $scope.selected = null;
	 *
	 *      $scope.forceUnknownOption = function() {
	 *        $scope.selected = 'nonsense';
	 *      };
	 *   }])
	 *   .directive('unknownValueError', function() {
	 *     return {
	 *       require: ['ngModel', 'select'],
	 *       link: function(scope, element, attrs, ctrls) {
	 *         var ngModelCtrl = ctrls[0];
	 *         var selectCtrl = ctrls[1];
	 *
	 *         ngModelCtrl.$validators.unknownValue = function(modelValue, viewValue) {
	 *           if (selectCtrl.$isUnknownOptionSelected()) {
	 *             return false;
	 *           }
	 *
	 *           return true;
	 *         };
	 *       }
	 *
	 *     };
	 *   });
	 * </file>
	 *</example>
	 *
	 *
	 * @example
	 * ### Set the "required" error when the unknown option is selected.
	 *
	 * By default, the "required" error on the ngModelController is only set on a required select
	 * when the empty option is selected. This example adds a custom directive that also sets the
	 * error when the unknown option is selected.
	 *
	 * <example name="select-unknown-value-required" module="staticSelect">
	 * <file name="index.html">
	 * <div ng-controller="ExampleController">
	 *   <form name="myForm">
	 *     <label for="testSelect"> Select: </label><br>
	 *     <select name="testSelect" ng-model="selected" required unknown-value-required>
	 *       <option value="option-1">Option 1</option>
	 *       <option value="option-2">Option 2</option>
	 *     </select><br>
	 *     <span class="error" ng-if="myForm.testSelect.$error.required">Error: Please select a value</span><br>
	 *
	 *     <button ng-click="forceUnknownOption()">Force unknown option</button><br>
	 *   </form>
	 * </div>
	 * </file>
	 * <file name="app.js">
	 *  angular.module('staticSelect', [])
	 *    .controller('ExampleController', ['$scope', function($scope) {
	 *      $scope.selected = null;
	 *
	 *      $scope.forceUnknownOption = function() {
	 *        $scope.selected = 'nonsense';
	 *      };
	 *   }])
	 *   .directive('unknownValueRequired', function() {
	 *     return {
	 *       priority: 1, // This directive must run after the required directive has added its validator
	 *       require: ['ngModel', 'select'],
	 *       link: function(scope, element, attrs, ctrls) {
	 *         var ngModelCtrl = ctrls[0];
	 *         var selectCtrl = ctrls[1];
	 *
	 *         var originalRequiredValidator = ngModelCtrl.$validators.required;
	 *
	 *         ngModelCtrl.$validators.required = function() {
	 *           if (attrs.required && selectCtrl.$isUnknownOptionSelected()) {
	 *             return false;
	 *           }
	 *
	 *           return originalRequiredValidator.apply(this, arguments);
	 *         };
	 *       }
	 *     };
	 *   });
	 * </file>
	 * <file name="protractor.js" type="protractor">
	 *  it('should show the error message when the unknown option is selected', function() {
	
	      var error = element(by.className('error'));
	
	      expect(error.getText()).toBe('Error: Please select a value');
	
	      element(by.cssContainingText('option', 'Option 1')).click();
	
	      expect(error.isPresent()).toBe(false);
	
	      element(by.tagName('button')).click();
	
	      expect(error.getText()).toBe('Error: Please select a value');
	    });
	 * </file>
	 *</example>
	 *
	 *
	 */var SelectController=['$element','$scope',/** @this */function($element,$scope){var self=this,optionsMap=new NgMap();self.selectValueMap={};// Keys are the hashed values, values the original values
	// If the ngModel doesn't get provided then provide a dummy noop version to prevent errors
	self.ngModelCtrl=noopNgModelController;self.multiple=false;// The "unknown" option is one that is prepended to the list if the viewValue
	// does not match any of the options. When it is rendered the value of the unknown
	// option is '? XXX ?' where XXX is the hashKey of the value that is not known.
	//
	// Support: IE 9 only
	// We can't just jqLite('<option>') since jqLite is not smart enough
	// to create it in <select> and IE barfs otherwise.
	self.unknownOption=jqLite(window.document.createElement('option'));// The empty option is an option with the value '' that the application developer can
	// provide inside the select. It is always selectable and indicates that a "null" selection has
	// been made by the user.
	// If the select has an empty option, and the model of the select is set to "undefined" or "null",
	// the empty option is selected.
	// If the model is set to a different unmatched value, the unknown option is rendered and
	// selected, i.e both are present, because a "null" selection and an unknown value are different.
	self.hasEmptyOption=false;self.emptyOption=undefined;self.renderUnknownOption=function(val){var unknownVal=self.generateUnknownOptionValue(val);self.unknownOption.val(unknownVal);$element.prepend(self.unknownOption);setOptionSelectedStatus(self.unknownOption,true);$element.val(unknownVal);};self.updateUnknownOption=function(val){var unknownVal=self.generateUnknownOptionValue(val);self.unknownOption.val(unknownVal);setOptionSelectedStatus(self.unknownOption,true);$element.val(unknownVal);};self.generateUnknownOptionValue=function(val){return'? '+hashKey(val)+' ?';};self.removeUnknownOption=function(){if(self.unknownOption.parent())self.unknownOption.remove();};self.selectEmptyOption=function(){if(self.emptyOption){$element.val('');setOptionSelectedStatus(self.emptyOption,true);}};self.unselectEmptyOption=function(){if(self.hasEmptyOption){setOptionSelectedStatus(self.emptyOption,false);}};$scope.$on('$destroy',function(){// disable unknown option so that we don't do work when the whole select is being destroyed
	self.renderUnknownOption=noop;});// Read the value of the select control, the implementation of this changes depending
	// upon whether the select can have multiple values and whether ngOptions is at work.
	self.readValue=function readSingleValue(){var val=$element.val();// ngValue added option values are stored in the selectValueMap, normal interpolations are not
	var realVal=val in self.selectValueMap?self.selectValueMap[val]:val;if(self.hasOption(realVal)){return realVal;}return null;};// Write the value to the select control, the implementation of this changes depending
	// upon whether the select can have multiple values and whether ngOptions is at work.
	self.writeValue=function writeSingleValue(value){// Make sure to remove the selected attribute from the previously selected option
	// Otherwise, screen readers might get confused
	var currentlySelectedOption=$element[0].options[$element[0].selectedIndex];if(currentlySelectedOption)setOptionSelectedStatus(jqLite(currentlySelectedOption),false);if(self.hasOption(value)){self.removeUnknownOption();var hashedVal=hashKey(value);$element.val(hashedVal in self.selectValueMap?hashedVal:value);// Set selected attribute and property on selected option for screen readers
	var selectedOption=$element[0].options[$element[0].selectedIndex];setOptionSelectedStatus(jqLite(selectedOption),true);}else{self.selectUnknownOrEmptyOption(value);}};// Tell the select control that an option, with the given value, has been added
	self.addOption=function(value,element){// Skip comment nodes, as they only pollute the `optionsMap`
	if(element[0].nodeType===NODE_TYPE_COMMENT)return;assertNotHasOwnProperty(value,'"option value"');if(value===''){self.hasEmptyOption=true;self.emptyOption=element;}var count=optionsMap.get(value)||0;optionsMap.set(value,count+1);// Only render at the end of a digest. This improves render performance when many options
	// are added during a digest and ensures all relevant options are correctly marked as selected
	scheduleRender();};// Tell the select control that an option, with the given value, has been removed
	self.removeOption=function(value){var count=optionsMap.get(value);if(count){if(count===1){optionsMap.delete(value);if(value===''){self.hasEmptyOption=false;self.emptyOption=undefined;}}else{optionsMap.set(value,count-1);}}};// Check whether the select control has an option matching the given value
	self.hasOption=function(value){return!!optionsMap.get(value);};/**
	   * @ngdoc method
	   * @name select.SelectController#$hasEmptyOption
	   *
	   * @description
	   *
	   * Returns `true` if the select element currently has an empty option
	   * element, i.e. an option that signifies that the select is empty / the selection is null.
	   *
	   */self.$hasEmptyOption=function(){return self.hasEmptyOption;};/**
	   * @ngdoc method
	   * @name select.SelectController#$isUnknownOptionSelected
	   *
	   * @description
	   *
	   * Returns `true` if the select element's unknown option is selected. The unknown option is added
	   * and automatically selected whenever the select model doesn't match any option.
	   *
	   */self.$isUnknownOptionSelected=function(){// Presence of the unknown option means it is selected
	return $element[0].options[0]===self.unknownOption[0];};/**
	   * @ngdoc method
	   * @name select.SelectController#$isEmptyOptionSelected
	   *
	   * @description
	   *
	   * Returns `true` if the select element has an empty option and this empty option is currently
	   * selected. Returns `false` if the select element has no empty option or it is not selected.
	   *
	   */self.$isEmptyOptionSelected=function(){return self.hasEmptyOption&&$element[0].options[$element[0].selectedIndex]===self.emptyOption[0];};self.selectUnknownOrEmptyOption=function(value){if(value==null&&self.emptyOption){self.removeUnknownOption();self.selectEmptyOption();}else if(self.unknownOption.parent().length){self.updateUnknownOption(value);}else{self.renderUnknownOption(value);}};var renderScheduled=false;function scheduleRender(){if(renderScheduled)return;renderScheduled=true;$scope.$$postDigest(function(){renderScheduled=false;self.ngModelCtrl.$render();});}var updateScheduled=false;function scheduleViewValueUpdate(renderAfter){if(updateScheduled)return;updateScheduled=true;$scope.$$postDigest(function(){if($scope.$$destroyed)return;updateScheduled=false;self.ngModelCtrl.$setViewValue(self.readValue());if(renderAfter)self.ngModelCtrl.$render();});}self.registerOption=function(optionScope,optionElement,optionAttrs,interpolateValueFn,interpolateTextFn){if(optionAttrs.$attr.ngValue){// The value attribute is set by ngValue
	var oldVal,hashedVal;optionAttrs.$observe('value',function valueAttributeObserveAction(newVal){var removal;var previouslySelected=optionElement.prop('selected');if(isDefined(hashedVal)){self.removeOption(oldVal);delete self.selectValueMap[hashedVal];removal=true;}hashedVal=hashKey(newVal);oldVal=newVal;self.selectValueMap[hashedVal]=newVal;self.addOption(newVal,optionElement);// Set the attribute directly instead of using optionAttrs.$set - this stops the observer
	// from firing a second time. Other $observers on value will also get the result of the
	// ngValue expression, not the hashed value
	optionElement.attr('value',hashedVal);if(removal&&previouslySelected){scheduleViewValueUpdate();}});}else if(interpolateValueFn){// The value attribute is interpolated
	optionAttrs.$observe('value',function valueAttributeObserveAction(newVal){// This method is overwritten in ngOptions and has side-effects!
	self.readValue();var removal;var previouslySelected=optionElement.prop('selected');if(isDefined(oldVal)){self.removeOption(oldVal);removal=true;}oldVal=newVal;self.addOption(newVal,optionElement);if(removal&&previouslySelected){scheduleViewValueUpdate();}});}else if(interpolateTextFn){// The text content is interpolated
	optionScope.$watch(interpolateTextFn,function interpolateWatchAction(newVal,oldVal){optionAttrs.$set('value',newVal);var previouslySelected=optionElement.prop('selected');if(oldVal!==newVal){self.removeOption(oldVal);}self.addOption(newVal,optionElement);if(oldVal&&previouslySelected){scheduleViewValueUpdate();}});}else{// The value attribute is static
	self.addOption(optionAttrs.value,optionElement);}optionAttrs.$observe('disabled',function(newVal){// Since model updates will also select disabled options (like ngOptions),
	// we only have to handle options becoming disabled, not enabled
	if(newVal==='true'||newVal&&optionElement.prop('selected')){if(self.multiple){scheduleViewValueUpdate(true);}else{self.ngModelCtrl.$setViewValue(null);self.ngModelCtrl.$render();}}});optionElement.on('$destroy',function(){var currentValue=self.readValue();var removeValue=optionAttrs.value;self.removeOption(removeValue);scheduleRender();if(self.multiple&&currentValue&&currentValue.indexOf(removeValue)!==-1||currentValue===removeValue){// When multiple (selected) options are destroyed at the same time, we don't want
	// to run a model update for each of them. Instead, run a single update in the $$postDigest
	scheduleViewValueUpdate(true);}});};}];/**
	 * @ngdoc directive
	 * @name select
	 * @restrict E
	 *
	 * @description
	 * HTML `select` element with AngularJS data-binding.
	 *
	 * The `select` directive is used together with {@link ngModel `ngModel`} to provide data-binding
	 * between the scope and the `<select>` control (including setting default values).
	 * It also handles dynamic `<option>` elements, which can be added using the {@link ngRepeat `ngRepeat}` or
	 * {@link ngOptions `ngOptions`} directives.
	 *
	 * When an item in the `<select>` menu is selected, the value of the selected option will be bound
	 * to the model identified by the `ngModel` directive. With static or repeated options, this is
	 * the content of the `value` attribute or the textContent of the `<option>`, if the value attribute is missing.
	 * Value and textContent can be interpolated.
	 *
	 * The {@link select.SelectController select controller} exposes utility functions that can be used
	 * to manipulate the select's behavior.
	 *
	 * ## Matching model and option values
	 *
	 * In general, the match between the model and an option is evaluated by strictly comparing the model
	 * value against the value of the available options.
	 *
	 * If you are setting the option value with the option's `value` attribute, or textContent, the
	 * value will always be a `string` which means that the model value must also be a string.
	 * Otherwise the `select` directive cannot match them correctly.
	 *
	 * To bind the model to a non-string value, you can use one of the following strategies:
	 * - the {@link ng.ngOptions `ngOptions`} directive
	 *   ({@link ng.select#using-select-with-ngoptions-and-setting-a-default-value})
	 * - the {@link ng.ngValue `ngValue`} directive, which allows arbitrary expressions to be
	 *   option values ({@link ng.select#using-ngvalue-to-bind-the-model-to-an-array-of-objects Example})
	 * - model $parsers / $formatters to convert the string value
	 *   ({@link ng.select#binding-select-to-a-non-string-value-via-ngmodel-parsing-formatting Example})
	 *
	 * If the viewValue of `ngModel` does not match any of the options, then the control
	 * will automatically add an "unknown" option, which it then removes when the mismatch is resolved.
	 *
	 * Optionally, a single hard-coded `<option>` element, with the value set to an empty string, can
	 * be nested into the `<select>` element. This element will then represent the `null` or "not selected"
	 * option. See example below for demonstration.
	 *
	 * ## Choosing between `ngRepeat` and `ngOptions`
	 *
	 * In many cases, `ngRepeat` can be used on `<option>` elements instead of {@link ng.directive:ngOptions
	 * ngOptions} to achieve a similar result. However, `ngOptions` provides some benefits:
	 * - more flexibility in how the `<select>`'s model is assigned via the `select` **`as`** part of the
	 * comprehension expression
	 * - reduced memory consumption by not creating a new scope for each repeated instance
	 * - increased render speed by creating the options in a documentFragment instead of individually
	 *
	 * Specifically, select with repeated options slows down significantly starting at 2000 options in
	 * Chrome and Internet Explorer / Edge.
	 *
	 *
	 * @param {string} ngModel Assignable AngularJS expression to data-bind to.
	 * @param {string=} name Property name of the form under which the control is published.
	 * @param {string=} multiple Allows multiple options to be selected. The selected values will be
	 *     bound to the model as an array.
	 * @param {string=} required Sets `required` validation error key if the value is not entered.
	 * @param {string=} ngRequired Adds required attribute and required validation constraint to
	 * the element when the ngRequired expression evaluates to true. Use ngRequired instead of required
	 * when you want to data-bind to the required attribute.
	 * @param {string=} ngChange AngularJS expression to be executed when selected option(s) changes due to user
	 *    interaction with the select element.
	 * @param {string=} ngOptions sets the options that the select is populated with and defines what is
	 * set on the model on selection. See {@link ngOptions `ngOptions`}.
	 * @param {string=} ngAttrSize sets the size of the select element dynamically. Uses the
	 * {@link guide/interpolation#-ngattr-for-binding-to-arbitrary-attributes ngAttr} directive.
	 *
	 *
	 * @example
	 * ### Simple `select` elements with static options
	 *
	 * <example name="static-select" module="staticSelect">
	 * <file name="index.html">
	 * <div ng-controller="ExampleController">
	 *   <form name="myForm">
	 *     <label for="singleSelect"> Single select: </label><br>
	 *     <select name="singleSelect" ng-model="data.singleSelect">
	 *       <option value="option-1">Option 1</option>
	 *       <option value="option-2">Option 2</option>
	 *     </select><br>
	 *
	 *     <label for="singleSelect"> Single select with "not selected" option and dynamic option values: </label><br>
	 *     <select name="singleSelect" id="singleSelect" ng-model="data.singleSelect">
	 *       <option value="">---Please select---</option> <!-- not selected / blank option -->
	 *       <option value="{{data.option1}}">Option 1</option> <!-- interpolation -->
	 *       <option value="option-2">Option 2</option>
	 *     </select><br>
	 *     <button ng-click="forceUnknownOption()">Force unknown option</button><br>
	 *     <tt>singleSelect = {{data.singleSelect}}</tt>
	 *
	 *     <hr>
	 *     <label for="multipleSelect"> Multiple select: </label><br>
	 *     <select name="multipleSelect" id="multipleSelect" ng-model="data.multipleSelect" multiple>
	 *       <option value="option-1">Option 1</option>
	 *       <option value="option-2">Option 2</option>
	 *       <option value="option-3">Option 3</option>
	 *     </select><br>
	 *     <tt>multipleSelect = {{data.multipleSelect}}</tt><br/>
	 *   </form>
	 * </div>
	 * </file>
	 * <file name="app.js">
	 *  angular.module('staticSelect', [])
	 *    .controller('ExampleController', ['$scope', function($scope) {
	 *      $scope.data = {
	 *       singleSelect: null,
	 *       multipleSelect: [],
	 *       option1: 'option-1'
	 *      };
	 *
	 *      $scope.forceUnknownOption = function() {
	 *        $scope.data.singleSelect = 'nonsense';
	 *      };
	 *   }]);
	 * </file>
	 *</example>
	 *
	 * @example
	 * ### Using `ngRepeat` to generate `select` options
	 * <example name="select-ngrepeat" module="ngrepeatSelect">
	 * <file name="index.html">
	 * <div ng-controller="ExampleController">
	 *   <form name="myForm">
	 *     <label for="repeatSelect"> Repeat select: </label>
	 *     <select name="repeatSelect" id="repeatSelect" ng-model="data.model">
	 *       <option ng-repeat="option in data.availableOptions" value="{{option.id}}">{{option.name}}</option>
	 *     </select>
	 *   </form>
	 *   <hr>
	 *   <tt>model = {{data.model}}</tt><br/>
	 * </div>
	 * </file>
	 * <file name="app.js">
	 *  angular.module('ngrepeatSelect', [])
	 *    .controller('ExampleController', ['$scope', function($scope) {
	 *      $scope.data = {
	 *       model: null,
	 *       availableOptions: [
	 *         {id: '1', name: 'Option A'},
	 *         {id: '2', name: 'Option B'},
	 *         {id: '3', name: 'Option C'}
	 *       ]
	 *      };
	 *   }]);
	 * </file>
	 *</example>
	 *
	 * @example
	 * ### Using `ngValue` to bind the model to an array of objects
	 * <example name="select-ngvalue" module="ngvalueSelect">
	 * <file name="index.html">
	 * <div ng-controller="ExampleController">
	 *   <form name="myForm">
	 *     <label for="ngvalueselect"> ngvalue select: </label>
	 *     <select size="6" name="ngvalueselect" ng-model="data.model" multiple>
	 *       <option ng-repeat="option in data.availableOptions" ng-value="option.value">{{option.name}}</option>
	 *     </select>
	 *   </form>
	 *   <hr>
	 *   <pre>model = {{data.model | json}}</pre><br/>
	 * </div>
	 * </file>
	 * <file name="app.js">
	 *  angular.module('ngvalueSelect', [])
	 *    .controller('ExampleController', ['$scope', function($scope) {
	 *      $scope.data = {
	 *       model: null,
	 *       availableOptions: [
	           {value: 'myString', name: 'string'},
	           {value: 1, name: 'integer'},
	           {value: true, name: 'boolean'},
	           {value: null, name: 'null'},
	           {value: {prop: 'value'}, name: 'object'},
	           {value: ['a'], name: 'array'}
	 *       ]
	 *      };
	 *   }]);
	 * </file>
	 *</example>
	 *
	 * @example
	 * ### Using `select` with `ngOptions` and setting a default value
	 * See the {@link ngOptions ngOptions documentation} for more `ngOptions` usage examples.
	 *
	 * <example name="select-with-default-values" module="defaultValueSelect">
	 * <file name="index.html">
	 * <div ng-controller="ExampleController">
	 *   <form name="myForm">
	 *     <label for="mySelect">Make a choice:</label>
	 *     <select name="mySelect" id="mySelect"
	 *       ng-options="option.name for option in data.availableOptions track by option.id"
	 *       ng-model="data.selectedOption"></select>
	 *   </form>
	 *   <hr>
	 *   <tt>option = {{data.selectedOption}}</tt><br/>
	 * </div>
	 * </file>
	 * <file name="app.js">
	 *  angular.module('defaultValueSelect', [])
	 *    .controller('ExampleController', ['$scope', function($scope) {
	 *      $scope.data = {
	 *       availableOptions: [
	 *         {id: '1', name: 'Option A'},
	 *         {id: '2', name: 'Option B'},
	 *         {id: '3', name: 'Option C'}
	 *       ],
	 *       selectedOption: {id: '3', name: 'Option C'} //This sets the default value of the select in the ui
	 *       };
	 *   }]);
	 * </file>
	 *</example>
	 *
	 * @example
	 * ### Binding `select` to a non-string value via `ngModel` parsing / formatting
	 *
	 * <example name="select-with-non-string-options" module="nonStringSelect">
	 *   <file name="index.html">
	 *     <select ng-model="model.id" convert-to-number>
	 *       <option value="0">Zero</option>
	 *       <option value="1">One</option>
	 *       <option value="2">Two</option>
	 *     </select>
	 *     {{ model }}
	 *   </file>
	 *   <file name="app.js">
	 *     angular.module('nonStringSelect', [])
	 *       .run(function($rootScope) {
	 *         $rootScope.model = { id: 2 };
	 *       })
	 *       .directive('convertToNumber', function() {
	 *         return {
	 *           require: 'ngModel',
	 *           link: function(scope, element, attrs, ngModel) {
	 *             ngModel.$parsers.push(function(val) {
	 *               return parseInt(val, 10);
	 *             });
	 *             ngModel.$formatters.push(function(val) {
	 *               return '' + val;
	 *             });
	 *           }
	 *         };
	 *       });
	 *   </file>
	 *   <file name="protractor.js" type="protractor">
	 *     it('should initialize to model', function() {
	 *       expect(element(by.model('model.id')).$('option:checked').getText()).toEqual('Two');
	 *     });
	 *   </file>
	 * </example>
	 *
	 */var selectDirective=function selectDirective(){return{restrict:'E',require:['select','?ngModel'],controller:SelectController,priority:1,link:{pre:selectPreLink,post:selectPostLink}};function selectPreLink(scope,element,attr,ctrls){var selectCtrl=ctrls[0];var ngModelCtrl=ctrls[1];// if ngModel is not defined, we don't need to do anything but set the registerOption
	// function to noop, so options don't get added internally
	if(!ngModelCtrl){selectCtrl.registerOption=noop;return;}selectCtrl.ngModelCtrl=ngModelCtrl;// When the selected item(s) changes we delegate getting the value of the select control
	// to the `readValue` method, which can be changed if the select can have multiple
	// selected values or if the options are being generated by `ngOptions`
	element.on('change',function(){selectCtrl.removeUnknownOption();scope.$apply(function(){ngModelCtrl.$setViewValue(selectCtrl.readValue());});});// If the select allows multiple values then we need to modify how we read and write
	// values from and to the control; also what it means for the value to be empty and
	// we have to add an extra watch since ngModel doesn't work well with arrays - it
	// doesn't trigger rendering if only an item in the array changes.
	if(attr.multiple){selectCtrl.multiple=true;// Read value now needs to check each option to see if it is selected
	selectCtrl.readValue=function readMultipleValue(){var array=[];forEach(element.find('option'),function(option){if(option.selected&&!option.disabled){var val=option.value;array.push(val in selectCtrl.selectValueMap?selectCtrl.selectValueMap[val]:val);}});return array;};// Write value now needs to set the selected property of each matching option
	selectCtrl.writeValue=function writeMultipleValue(value){forEach(element.find('option'),function(option){var shouldBeSelected=!!value&&(includes(value,option.value)||includes(value,selectCtrl.selectValueMap[option.value]));var currentlySelected=option.selected;// Support: IE 9-11 only, Edge 12-15+
	// In IE and Edge adding options to the selection via shift+click/UP/DOWN
	// will de-select already selected options if "selected" on those options was set
	// more than once (i.e. when the options were already selected)
	// So we only modify the selected property if necessary.
	// Note: this behavior cannot be replicated via unit tests because it only shows in the
	// actual user interface.
	if(shouldBeSelected!==currentlySelected){setOptionSelectedStatus(jqLite(option),shouldBeSelected);}});};// we have to do it on each watch since ngModel watches reference, but
	// we need to work of an array, so we need to see if anything was inserted/removed
	var lastView,lastViewRef=NaN;scope.$watch(function selectMultipleWatch(){if(lastViewRef===ngModelCtrl.$viewValue&&!equals(lastView,ngModelCtrl.$viewValue)){lastView=shallowCopy(ngModelCtrl.$viewValue);ngModelCtrl.$render();}lastViewRef=ngModelCtrl.$viewValue;});// If we are a multiple select then value is now a collection
	// so the meaning of $isEmpty changes
	ngModelCtrl.$isEmpty=function(value){return!value||value.length===0;};}}function selectPostLink(scope,element,attrs,ctrls){// if ngModel is not defined, we don't need to do anything
	var ngModelCtrl=ctrls[1];if(!ngModelCtrl)return;var selectCtrl=ctrls[0];// We delegate rendering to the `writeValue` method, which can be changed
	// if the select can have multiple selected values or if the options are being
	// generated by `ngOptions`.
	// This must be done in the postLink fn to prevent $render to be called before
	// all nodes have been linked correctly.
	ngModelCtrl.$render=function(){selectCtrl.writeValue(ngModelCtrl.$viewValue);};}};// The option directive is purely designed to communicate the existence (or lack of)
	// of dynamically created (and destroyed) option elements to their containing select
	// directive via its controller.
	var optionDirective=['$interpolate',function($interpolate){return{restrict:'E',priority:100,compile:function compile(element,attr){var interpolateValueFn,interpolateTextFn;if(isDefined(attr.ngValue)){// Will be handled by registerOption
	}else if(isDefined(attr.value)){// If the value attribute is defined, check if it contains an interpolation
	interpolateValueFn=$interpolate(attr.value,true);}else{// If the value attribute is not defined then we fall back to the
	// text content of the option element, which may be interpolated
	interpolateTextFn=$interpolate(element.text(),true);if(!interpolateTextFn){attr.$set('value',element.text());}}return function(scope,element,attr){// This is an optimization over using ^^ since we don't want to have to search
	// all the way to the root of the DOM for every single option element
	var selectCtrlName='$selectController',parent=element.parent(),selectCtrl=parent.data(selectCtrlName)||parent.parent().data(selectCtrlName);// in case we are in optgroup
	if(selectCtrl){selectCtrl.registerOption(scope,element,attr,interpolateValueFn,interpolateTextFn);}};}};}];/**
	 * @ngdoc directive
	 * @name ngRequired
	 * @restrict A
	 *
	 * @param {expression} ngRequired AngularJS expression. If it evaluates to `true`, it sets the
	 *                                `required` attribute to the element and adds the `required`
	 *                                {@link ngModel.NgModelController#$validators `validator`}.
	 *
	 * @description
	 *
	 * ngRequired adds the required {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
	 * It is most often used for {@link input `input`} and {@link select `select`} controls, but can also be
	 * applied to custom controls.
	 *
	 * The directive sets the `required` attribute on the element if the AngularJS expression inside
	 * `ngRequired` evaluates to true. A special directive for setting `required` is necessary because we
	 * cannot use interpolation inside `required`. See the {@link guide/interpolation interpolation guide}
	 * for more info.
	 *
	 * The validator will set the `required` error key to true if the `required` attribute is set and
	 * calling {@link ngModel.NgModelController#$isEmpty `NgModelController.$isEmpty`} with the
	 * {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`} returns `true`. For example, the
	 * `$isEmpty()` implementation for `input[text]` checks the length of the `$viewValue`. When developing
	 * custom controls, `$isEmpty()` can be overwritten to account for a $viewValue that is not string-based.
	 *
	 * @example
	 * <example name="ngRequiredDirective" module="ngRequiredExample">
	 *   <file name="index.html">
	 *     <script>
	 *       angular.module('ngRequiredExample', [])
	 *         .controller('ExampleController', ['$scope', function($scope) {
	 *           $scope.required = true;
	 *         }]);
	 *     </script>
	 *     <div ng-controller="ExampleController">
	 *       <form name="form">
	 *         <label for="required">Toggle required: </label>
	 *         <input type="checkbox" ng-model="required" id="required" />
	 *         <br>
	 *         <label for="input">This input must be filled if `required` is true: </label>
	 *         <input type="text" ng-model="model" id="input" name="input" ng-required="required" /><br>
	 *         <hr>
	 *         required error set? = <code>{{form.input.$error.required}}</code><br>
	 *         model = <code>{{model}}</code>
	 *       </form>
	 *     </div>
	 *   </file>
	 *   <file name="protractor.js" type="protractor">
	       var required = element(by.binding('form.input.$error.required'));
	       var model = element(by.binding('model'));
	       var input = element(by.id('input'));
	
	       it('should set the required error', function() {
	         expect(required.getText()).toContain('true');
	
	         input.sendKeys('123');
	         expect(required.getText()).not.toContain('true');
	         expect(model.getText()).toContain('123');
	       });
	 *   </file>
	 * </example>
	 */var requiredDirective=['$parse',function($parse){return{restrict:'A',require:'?ngModel',link:function link(scope,elm,attr,ctrl){if(!ctrl)return;// For boolean attributes like required, presence means true
	var value=attr.hasOwnProperty('required')||$parse(attr.ngRequired)(scope);if(!attr.ngRequired){// force truthy in case we are on non input element
	// (input elements do this automatically for boolean attributes like required)
	attr.required=true;}ctrl.$validators.required=function(modelValue,viewValue){return!value||!ctrl.$isEmpty(viewValue);};attr.$observe('required',function(newVal){if(value!==newVal){value=newVal;ctrl.$validate();}});}};}];/**
	 * @ngdoc directive
	 * @name ngPattern
	 * @restrict A
	 *
	 * @param {expression|RegExp} ngPattern AngularJS expression that must evaluate to a `RegExp` or a `String`
	 *                                      parsable into a `RegExp`, or a `RegExp` literal. See above for
	 *                                      more details.
	 *
	 * @description
	 *
	 * ngPattern adds the pattern {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
	 * It is most often used for text-based {@link input `input`} controls, but can also be applied to custom text-based controls.
	 *
	 * The validator sets the `pattern` error key if the {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`}
	 * does not match a RegExp which is obtained from the `ngPattern` attribute value:
	 * - the value is an AngularJS expression:
	 *   - If the expression evaluates to a RegExp object, then this is used directly.
	 *   - If the expression evaluates to a string, then it will be converted to a RegExp after wrapping it
	 *     in `^` and `$` characters. For instance, `"abc"` will be converted to `new RegExp('^abc$')`.
	 * - If the value is a RegExp literal, e.g. `ngPattern="/^\d+$/"`, it is used directly.
	 *
	 * <div class="alert alert-info">
	 * **Note:** Avoid using the `g` flag on the RegExp, as it will cause each successive search to
	 * start at the index of the last search's match, thus not taking the whole input value into
	 * account.
	 * </div>
	 *
	 * <div class="alert alert-info">
	 * **Note:** This directive is also added when the plain `pattern` attribute is used, with two
	 * differences:
	 * <ol>
	 *   <li>
	 *     `ngPattern` does not set the `pattern` attribute and therefore HTML5 constraint validation is
	 *     not available.
	 *   </li>
	 *   <li>
	 *     The `ngPattern` attribute must be an expression, while the `pattern` value must be
	 *     interpolated.
	 *   </li>
	 * </ol>
	 * </div>
	 *
	 * @example
	 * <example name="ngPatternDirective" module="ngPatternExample">
	 *   <file name="index.html">
	 *     <script>
	 *       angular.module('ngPatternExample', [])
	 *         .controller('ExampleController', ['$scope', function($scope) {
	 *           $scope.regex = '\\d+';
	 *         }]);
	 *     </script>
	 *     <div ng-controller="ExampleController">
	 *       <form name="form">
	 *         <label for="regex">Set a pattern (regex string): </label>
	 *         <input type="text" ng-model="regex" id="regex" />
	 *         <br>
	 *         <label for="input">This input is restricted by the current pattern: </label>
	 *         <input type="text" ng-model="model" id="input" name="input" ng-pattern="regex" /><br>
	 *         <hr>
	 *         input valid? = <code>{{form.input.$valid}}</code><br>
	 *         model = <code>{{model}}</code>
	 *       </form>
	 *     </div>
	 *   </file>
	 *   <file name="protractor.js" type="protractor">
	       var model = element(by.binding('model'));
	       var input = element(by.id('input'));
	
	       it('should validate the input with the default pattern', function() {
	         input.sendKeys('aaa');
	         expect(model.getText()).not.toContain('aaa');
	
	         input.clear().then(function() {
	           input.sendKeys('123');
	           expect(model.getText()).toContain('123');
	         });
	       });
	 *   </file>
	 * </example>
	 */var patternDirective=['$parse',function($parse){return{restrict:'A',require:'?ngModel',compile:function compile(tElm,tAttr){var patternExp;var parseFn;if(tAttr.ngPattern){patternExp=tAttr.ngPattern;// ngPattern might be a scope expression, or an inlined regex, which is not parsable.
	// We get value of the attribute here, so we can compare the old and the new value
	// in the observer to avoid unnecessary validations
	if(tAttr.ngPattern.charAt(0)==='/'&&REGEX_STRING_REGEXP.test(tAttr.ngPattern)){parseFn=function parseFn(){return tAttr.ngPattern;};}else{parseFn=$parse(tAttr.ngPattern);}}return function(scope,elm,attr,ctrl){if(!ctrl)return;var attrVal=attr.pattern;if(attr.ngPattern){attrVal=parseFn(scope);}else{patternExp=attr.pattern;}var regexp=parsePatternAttr(attrVal,patternExp,elm);attr.$observe('pattern',function(newVal){var oldRegexp=regexp;regexp=parsePatternAttr(newVal,patternExp,elm);if((oldRegexp&&oldRegexp.toString())!==(regexp&&regexp.toString())){ctrl.$validate();}});ctrl.$validators.pattern=function(modelValue,viewValue){// HTML5 pattern constraint validates the input value, so we validate the viewValue
	return ctrl.$isEmpty(viewValue)||isUndefined(regexp)||regexp.test(viewValue);};};}};}];/**
	 * @ngdoc directive
	 * @name ngMaxlength
	 * @restrict A
	 *
	 * @param {expression} ngMaxlength AngularJS expression that must evaluate to a `Number` or `String`
	 *                                 parsable into a `Number`. Used as value for the `maxlength`
	 *                                 {@link ngModel.NgModelController#$validators validator}.
	 *
	 * @description
	 *
	 * ngMaxlength adds the maxlength {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
	 * It is most often used for text-based {@link input `input`} controls, but can also be applied to custom text-based controls.
	 *
	 * The validator sets the `maxlength` error key if the {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`}
	 * is longer than the integer obtained by evaluating the AngularJS expression given in the
	 * `ngMaxlength` attribute value.
	 *
	 * <div class="alert alert-info">
	 * **Note:** This directive is also added when the plain `maxlength` attribute is used, with two
	 * differences:
	 * <ol>
	 *   <li>
	 *     `ngMaxlength` does not set the `maxlength` attribute and therefore HTML5 constraint
	 *     validation is not available.
	 *   </li>
	 *   <li>
	 *     The `ngMaxlength` attribute must be an expression, while the `maxlength` value must be
	 *     interpolated.
	 *   </li>
	 * </ol>
	 * </div>
	 *
	 * @example
	 * <example name="ngMaxlengthDirective" module="ngMaxlengthExample">
	 *   <file name="index.html">
	 *     <script>
	 *       angular.module('ngMaxlengthExample', [])
	 *         .controller('ExampleController', ['$scope', function($scope) {
	 *           $scope.maxlength = 5;
	 *         }]);
	 *     </script>
	 *     <div ng-controller="ExampleController">
	 *       <form name="form">
	 *         <label for="maxlength">Set a maxlength: </label>
	 *         <input type="number" ng-model="maxlength" id="maxlength" />
	 *         <br>
	 *         <label for="input">This input is restricted by the current maxlength: </label>
	 *         <input type="text" ng-model="model" id="input" name="input" ng-maxlength="maxlength" /><br>
	 *         <hr>
	 *         input valid? = <code>{{form.input.$valid}}</code><br>
	 *         model = <code>{{model}}</code>
	 *       </form>
	 *     </div>
	 *   </file>
	 *   <file name="protractor.js" type="protractor">
	       var model = element(by.binding('model'));
	       var input = element(by.id('input'));
	
	       it('should validate the input with the default maxlength', function() {
	         input.sendKeys('abcdef');
	         expect(model.getText()).not.toContain('abcdef');
	
	         input.clear().then(function() {
	           input.sendKeys('abcde');
	           expect(model.getText()).toContain('abcde');
	         });
	       });
	 *   </file>
	 * </example>
	 */var maxlengthDirective=['$parse',function($parse){return{restrict:'A',require:'?ngModel',link:function link(scope,elm,attr,ctrl){if(!ctrl)return;var maxlength=attr.maxlength||$parse(attr.ngMaxlength)(scope);var maxlengthParsed=parseLength(maxlength);attr.$observe('maxlength',function(value){if(maxlength!==value){maxlengthParsed=parseLength(value);maxlength=value;ctrl.$validate();}});ctrl.$validators.maxlength=function(modelValue,viewValue){return maxlengthParsed<0||ctrl.$isEmpty(viewValue)||viewValue.length<=maxlengthParsed;};}};}];/**
	 * @ngdoc directive
	 * @name ngMinlength
	 * @restrict A
	 *
	 * @param {expression} ngMinlength AngularJS expression that must evaluate to a `Number` or `String`
	 *                                 parsable into a `Number`. Used as value for the `minlength`
	 *                                 {@link ngModel.NgModelController#$validators validator}.
	 *
	 * @description
	 *
	 * ngMinlength adds the minlength {@link ngModel.NgModelController#$validators `validator`} to {@link ngModel `ngModel`}.
	 * It is most often used for text-based {@link input `input`} controls, but can also be applied to custom text-based controls.
	 *
	 * The validator sets the `minlength` error key if the {@link ngModel.NgModelController#$viewValue `ngModel.$viewValue`}
	 * is shorter than the integer obtained by evaluating the AngularJS expression given in the
	 * `ngMinlength` attribute value.
	 *
	 * <div class="alert alert-info">
	 * **Note:** This directive is also added when the plain `minlength` attribute is used, with two
	 * differences:
	 * <ol>
	 *   <li>
	 *     `ngMinlength` does not set the `minlength` attribute and therefore HTML5 constraint
	 *     validation is not available.
	 *   </li>
	 *   <li>
	 *     The `ngMinlength` value must be an expression, while the `minlength` value must be
	 *     interpolated.
	 *   </li>
	 * </ol>
	 * </div>
	 *
	 * @example
	 * <example name="ngMinlengthDirective" module="ngMinlengthExample">
	 *   <file name="index.html">
	 *     <script>
	 *       angular.module('ngMinlengthExample', [])
	 *         .controller('ExampleController', ['$scope', function($scope) {
	 *           $scope.minlength = 3;
	 *         }]);
	 *     </script>
	 *     <div ng-controller="ExampleController">
	 *       <form name="form">
	 *         <label for="minlength">Set a minlength: </label>
	 *         <input type="number" ng-model="minlength" id="minlength" />
	 *         <br>
	 *         <label for="input">This input is restricted by the current minlength: </label>
	 *         <input type="text" ng-model="model" id="input" name="input" ng-minlength="minlength" /><br>
	 *         <hr>
	 *         input valid? = <code>{{form.input.$valid}}</code><br>
	 *         model = <code>{{model}}</code>
	 *       </form>
	 *     </div>
	 *   </file>
	 *   <file name="protractor.js" type="protractor">
	       var model = element(by.binding('model'));
	       var input = element(by.id('input'));
	
	       it('should validate the input with the default minlength', function() {
	         input.sendKeys('ab');
	         expect(model.getText()).not.toContain('ab');
	
	         input.sendKeys('abc');
	         expect(model.getText()).toContain('abc');
	       });
	 *   </file>
	 * </example>
	 */var minlengthDirective=['$parse',function($parse){return{restrict:'A',require:'?ngModel',link:function link(scope,elm,attr,ctrl){if(!ctrl)return;var minlength=attr.minlength||$parse(attr.ngMinlength)(scope);var minlengthParsed=parseLength(minlength)||-1;attr.$observe('minlength',function(value){if(minlength!==value){minlengthParsed=parseLength(value)||-1;minlength=value;ctrl.$validate();}});ctrl.$validators.minlength=function(modelValue,viewValue){return ctrl.$isEmpty(viewValue)||viewValue.length>=minlengthParsed;};}};}];function parsePatternAttr(regex,patternExp,elm){if(!regex)return undefined;if(isString(regex)){regex=new RegExp('^'+regex+'$');}if(!regex.test){throw minErr('ngPattern')('noregexp','Expected {0} to be a RegExp but was {1}. Element: {2}',patternExp,regex,startingTag(elm));}return regex;}function parseLength(val){var intVal=toInt(val);return isNumberNaN(intVal)?-1:intVal;}if(window.angular.bootstrap){// AngularJS is already loaded, so we can return here...
	if(window.console){console.log('WARNING: Tried to load AngularJS more than once.');}return;}// try to bind to jquery now so that one can write jqLite(fn)
	// but we will rebind on bootstrap again.
	bindJQuery();publishExternalAPI(angular);angular.module("ngLocale",[],["$provide",function($provide){var PLURAL_CATEGORY={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};function getDecimals(n){n=n+'';var i=n.indexOf('.');return i==-1?0:n.length-i-1;}function getVF(n,opt_precision){var v=opt_precision;if(undefined===v){v=Math.min(getDecimals(n),3);}var base=Math.pow(10,v);var f=(n*base|0)%base;return{v:v,f:f};}$provide.value("$locale",{"DATETIME_FORMATS":{"AMPMS":["AM","PM"],"DAY":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"ERANAMES":["Before Christ","Anno Domini"],"ERAS":["BC","AD"],"FIRSTDAYOFWEEK":6,"MONTH":["January","February","March","April","May","June","July","August","September","October","November","December"],"SHORTDAY":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"SHORTMONTH":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"STANDALONEMONTH":["January","February","March","April","May","June","July","August","September","October","November","December"],"WEEKENDRANGE":[5,6],"fullDate":"EEEE, MMMM d, y","longDate":"MMMM d, y","medium":"MMM d, y h:mm:ss a","mediumDate":"MMM d, y","mediumTime":"h:mm:ss a","short":"M/d/yy h:mm a","shortDate":"M/d/yy","shortTime":"h:mm a"},"NUMBER_FORMATS":{"CURRENCY_SYM":"$","DECIMAL_SEP":".","GROUP_SEP":",","PATTERNS":[{"gSize":3,"lgSize":3,"maxFrac":3,"minFrac":0,"minInt":1,"negPre":"-","negSuf":"","posPre":"","posSuf":""},{"gSize":3,"lgSize":3,"maxFrac":2,"minFrac":2,"minInt":1,"negPre":'-\xA4',"negSuf":"","posPre":'\xA4',"posSuf":""}]},"id":"en-us","localeID":"en_US","pluralCat":function pluralCat(n,opt_precision){var i=n|0;var vf=getVF(n,opt_precision);if(i==1&&vf.v==0){return PLURAL_CATEGORY.ONE;}return PLURAL_CATEGORY.OTHER;}});}]);jqLite(function(){angularInit(window.document,bootstrap);});})(window);!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend(window.angular.element('<style>').text('@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}'));

/***/ }),
/* 933 */
/***/ (function(module, exports) {

	"use strict";
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	/*
	 AngularJS v1.8.2
	 (c) 2010-2020 Google LLC. http://angularjs.org
	 License: MIT
	*/
	(function (z) {
	  'use strict';
	  function ve(a) {
	    if (D(a)) w(a.objectMaxDepth) && (Xb.objectMaxDepth = Yb(a.objectMaxDepth) ? a.objectMaxDepth : NaN), w(a.urlErrorParamsEnabled) && Ga(a.urlErrorParamsEnabled) && (Xb.urlErrorParamsEnabled = a.urlErrorParamsEnabled);else return Xb;
	  }function Yb(a) {
	    return X(a) && 0 < a;
	  }function F(a, b) {
	    b = b || Error;return function () {
	      var d = arguments[0],
	          c;c = "[" + (a ? a + ":" : "") + d + "] http://errors.angularjs.org/1.8.2/" + (a ? a + "/" : "") + d;for (d = 1; d < arguments.length; d++) {
	        c = c + (1 == d ? "?" : "&") + "p" + (d - 1) + "=";var e = encodeURIComponent,
	            f;f = arguments[d];f = "function" == typeof f ? f.toString().replace(/ \{[\s\S]*$/, "") : "undefined" == typeof f ? "undefined" : "string" != typeof f ? JSON.stringify(f) : f;c += e(f);
	      }return new b(c);
	    };
	  }function za(a) {
	    if (null == a || $a(a)) return !1;if (H(a) || C(a) || x && a instanceof x) return !0;var b = "length" in Object(a) && a.length;return X(b) && (0 <= b && b - 1 in a || "function" === typeof a.item);
	  }function r(a, b, d) {
	    var c, e;if (a) if (B(a)) for (c in a) {
	      "prototype" !== c && "length" !== c && "name" !== c && a.hasOwnProperty(c) && b.call(d, a[c], c, a);
	    } else if (H(a) || za(a)) {
	      var f = "object" !== (typeof a === "undefined" ? "undefined" : _typeof(a));c = 0;for (e = a.length; c < e; c++) {
	        (f || c in a) && b.call(d, a[c], c, a);
	      }
	    } else if (a.forEach && a.forEach !== r) a.forEach(b, d, a);else if (Pc(a)) for (c in a) {
	      b.call(d, a[c], c, a);
	    } else if ("function" === typeof a.hasOwnProperty) for (c in a) {
	      a.hasOwnProperty(c) && b.call(d, a[c], c, a);
	    } else for (c in a) {
	      ta.call(a, c) && b.call(d, a[c], c, a);
	    }return a;
	  }function Qc(a, b, d) {
	    for (var c = Object.keys(a).sort(), e = 0; e < c.length; e++) {
	      b.call(d, a[c[e]], c[e]);
	    }return c;
	  }function Zb(a) {
	    return function (b, d) {
	      a(d, b);
	    };
	  }function we() {
	    return ++qb;
	  }
	  function $b(a, b, d) {
	    for (var c = a.$$hashKey, e = 0, f = b.length; e < f; ++e) {
	      var g = b[e];if (D(g) || B(g)) for (var k = Object.keys(g), h = 0, l = k.length; h < l; h++) {
	        var m = k[h],
	            p = g[m];d && D(p) ? ha(p) ? a[m] = new Date(p.valueOf()) : ab(p) ? a[m] = new RegExp(p) : p.nodeName ? a[m] = p.cloneNode(!0) : ac(p) ? a[m] = p.clone() : "__proto__" !== m && (D(a[m]) || (a[m] = H(p) ? [] : {}), $b(a[m], [p], !0)) : a[m] = p;
	      }
	    }c ? a.$$hashKey = c : delete a.$$hashKey;return a;
	  }function S(a) {
	    return $b(a, Ha.call(arguments, 1), !1);
	  }function xe(a) {
	    return $b(a, Ha.call(arguments, 1), !0);
	  }function fa(a) {
	    return parseInt(a, 10);
	  }function bc(a, b) {
	    return S(Object.create(a), b);
	  }function E() {}function Ta(a) {
	    return a;
	  }function ia(a) {
	    return function () {
	      return a;
	    };
	  }function cc(a) {
	    return B(a.toString) && a.toString !== la;
	  }function A(a) {
	    return "undefined" === typeof a;
	  }function w(a) {
	    return "undefined" !== typeof a;
	  }function D(a) {
	    return null !== a && "object" === (typeof a === "undefined" ? "undefined" : _typeof(a));
	  }function Pc(a) {
	    return null !== a && "object" === (typeof a === "undefined" ? "undefined" : _typeof(a)) && !Rc(a);
	  }function C(a) {
	    return "string" === typeof a;
	  }function X(a) {
	    return "number" === typeof a;
	  }function ha(a) {
	    return "[object Date]" === la.call(a);
	  }
	  function H(a) {
	    return Array.isArray(a) || a instanceof Array;
	  }function dc(a) {
	    switch (la.call(a)) {case "[object Error]":
	        return !0;case "[object Exception]":
	        return !0;case "[object DOMException]":
	        return !0;default:
	        return a instanceof Error;}
	  }function B(a) {
	    return "function" === typeof a;
	  }function ab(a) {
	    return "[object RegExp]" === la.call(a);
	  }function $a(a) {
	    return a && a.window === a;
	  }function bb(a) {
	    return a && a.$evalAsync && a.$watch;
	  }function Ga(a) {
	    return "boolean" === typeof a;
	  }function ye(a) {
	    return a && X(a.length) && ze.test(la.call(a));
	  }
	  function ac(a) {
	    return !(!a || !(a.nodeName || a.prop && a.attr && a.find));
	  }function Ae(a) {
	    var b = {};a = a.split(",");var d;for (d = 0; d < a.length; d++) {
	      b[a[d]] = !0;
	    }return b;
	  }function ua(a) {
	    return K(a.nodeName || a[0] && a[0].nodeName);
	  }function cb(a, b) {
	    var d = a.indexOf(b);0 <= d && a.splice(d, 1);return d;
	  }function Ia(a, b, d) {
	    function c(a, b, c) {
	      c--;if (0 > c) return "...";var d = b.$$hashKey,
	          f;if (H(a)) {
	        f = 0;for (var g = a.length; f < g; f++) {
	          b.push(e(a[f], c));
	        }
	      } else if (Pc(a)) for (f in a) {
	        b[f] = e(a[f], c);
	      } else if (a && "function" === typeof a.hasOwnProperty) for (f in a) {
	        a.hasOwnProperty(f) && (b[f] = e(a[f], c));
	      } else for (f in a) {
	        ta.call(a, f) && (b[f] = e(a[f], c));
	      }d ? b.$$hashKey = d : delete b.$$hashKey;return b;
	    }function e(a, b) {
	      if (!D(a)) return a;var d = g.indexOf(a);if (-1 !== d) return k[d];if ($a(a) || bb(a)) throw oa("cpws");var d = !1,
	          e = f(a);void 0 === e && (e = H(a) ? [] : Object.create(Rc(a)), d = !0);g.push(a);k.push(e);return d ? c(a, e, b) : e;
	    }function f(a) {
	      switch (la.call(a)) {case "[object Int8Array]":case "[object Int16Array]":case "[object Int32Array]":case "[object Float32Array]":case "[object Float64Array]":case "[object Uint8Array]":case "[object Uint8ClampedArray]":case "[object Uint16Array]":case "[object Uint32Array]":
	          return new a.constructor(e(a.buffer), a.byteOffset, a.length);case "[object ArrayBuffer]":
	          if (!a.slice) {
	            var b = new ArrayBuffer(a.byteLength);new Uint8Array(b).set(new Uint8Array(a));return b;
	          }return a.slice(0);case "[object Boolean]":case "[object Number]":case "[object String]":case "[object Date]":
	          return new a.constructor(a.valueOf());case "[object RegExp]":
	          return b = new RegExp(a.source, a.toString().match(/[^/]*$/)[0]), b.lastIndex = a.lastIndex, b;case "[object Blob]":
	          return new a.constructor([a], { type: a.type });}if (B(a.cloneNode)) return a.cloneNode(!0);
	    }
	    var g = [],
	        k = [];d = Yb(d) ? d : NaN;if (b) {
	      if (ye(b) || "[object ArrayBuffer]" === la.call(b)) throw oa("cpta");if (a === b) throw oa("cpi");H(b) ? b.length = 0 : r(b, function (a, c) {
	        "$$hashKey" !== c && delete b[c];
	      });g.push(a);k.push(b);return c(a, b, d);
	    }return e(a, d);
	  }function ec(a, b) {
	    return a === b || a !== a && b !== b;
	  }function va(a, b) {
	    if (a === b) return !0;if (null === a || null === b) return !1;if (a !== a && b !== b) return !0;var d = typeof a === "undefined" ? "undefined" : _typeof(a),
	        c;if (d === (typeof b === "undefined" ? "undefined" : _typeof(b)) && "object" === d) if (H(a)) {
	      if (!H(b)) return !1;if ((d = a.length) === b.length) {
	        for (c = 0; c < d; c++) {
	          if (!va(a[c], b[c])) return !1;
	        }return !0;
	      }
	    } else {
	      if (ha(a)) return ha(b) ? ec(a.getTime(), b.getTime()) : !1;if (ab(a)) return ab(b) ? a.toString() === b.toString() : !1;if (bb(a) || bb(b) || $a(a) || $a(b) || H(b) || ha(b) || ab(b)) return !1;d = T();for (c in a) {
	        if ("$" !== c.charAt(0) && !B(a[c])) {
	          if (!va(a[c], b[c])) return !1;d[c] = !0;
	        }
	      }for (c in b) {
	        if (!(c in d) && "$" !== c.charAt(0) && w(b[c]) && !B(b[c])) return !1;
	      }return !0;
	    }return !1;
	  }function db(a, b, d) {
	    return a.concat(Ha.call(b, d));
	  }function Va(a, b) {
	    var d = 2 < arguments.length ? Ha.call(arguments, 2) : [];return !B(b) || b instanceof RegExp ? b : d.length ? function () {
	      return arguments.length ? b.apply(a, db(d, arguments, 0)) : b.apply(a, d);
	    } : function () {
	      return arguments.length ? b.apply(a, arguments) : b.call(a);
	    };
	  }function Sc(a, b) {
	    var d = b;"string" === typeof a && "$" === a.charAt(0) && "$" === a.charAt(1) ? d = void 0 : $a(b) ? d = "$WINDOW" : b && z.document === b ? d = "$DOCUMENT" : bb(b) && (d = "$SCOPE");return d;
	  }function eb(a, b) {
	    if (!A(a)) return X(b) || (b = b ? 2 : null), JSON.stringify(a, Sc, b);
	  }function Tc(a) {
	    return C(a) ? JSON.parse(a) : a;
	  }function fc(a, b) {
	    a = a.replace(Be, "");var d = Date.parse("Jan 01, 1970 00:00:00 " + a) / 6E4;return Y(d) ? b : d;
	  }function Uc(a, b) {
	    a = new Date(a.getTime());a.setMinutes(a.getMinutes() + b);return a;
	  }function gc(a, b, d) {
	    d = d ? -1 : 1;var c = a.getTimezoneOffset();b = fc(b, c);return Uc(a, d * (b - c));
	  }function Aa(a) {
	    a = x(a).clone().empty();var b = x("<div></div>").append(a).html();try {
	      return a[0].nodeType === Pa ? K(b) : b.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/, function (a, b) {
	        return "<" + K(b);
	      });
	    } catch (d) {
	      return K(b);
	    }
	  }function Vc(a) {
	    try {
	      return decodeURIComponent(a);
	    } catch (b) {}
	  }function hc(a) {
	    var b = {};r((a || "").split("&"), function (a) {
	      var c, e, f;a && (e = a = a.replace(/\+/g, "%20"), c = a.indexOf("="), -1 !== c && (e = a.substring(0, c), f = a.substring(c + 1)), e = Vc(e), w(e) && (f = w(f) ? Vc(f) : !0, ta.call(b, e) ? H(b[e]) ? b[e].push(f) : b[e] = [b[e], f] : b[e] = f));
	    });return b;
	  }function Ce(a) {
	    var b = [];r(a, function (a, c) {
	      H(a) ? r(a, function (a) {
	        b.push(ba(c, !0) + (!0 === a ? "" : "=" + ba(a, !0)));
	      }) : b.push(ba(c, !0) + (!0 === a ? "" : "=" + ba(a, !0)));
	    });return b.length ? b.join("&") : "";
	  }function ic(a) {
	    return ba(a, !0).replace(/%26/gi, "&").replace(/%3D/gi, "=").replace(/%2B/gi, "+");
	  }function ba(a, b) {
	    return encodeURIComponent(a).replace(/%40/gi, "@").replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%3B/gi, ";").replace(/%20/g, b ? "%20" : "+");
	  }function De(a, b) {
	    var d,
	        c,
	        e = Qa.length;for (c = 0; c < e; ++c) {
	      if (d = Qa[c] + b, C(d = a.getAttribute(d))) return d;
	    }return null;
	  }function Ee(a, b) {
	    var d,
	        c,
	        e = {};r(Qa, function (b) {
	      b += "app";!d && a.hasAttribute && a.hasAttribute(b) && (d = a, c = a.getAttribute(b));
	    });r(Qa, function (b) {
	      b += "app";var e;!d && (e = a.querySelector("[" + b.replace(":", "\\:") + "]")) && (d = e, c = e.getAttribute(b));
	    });
	    d && (Fe ? (e.strictDi = null !== De(d, "strict-di"), b(d, c ? [c] : [], e)) : z.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match."));
	  }function Wc(a, b, d) {
	    D(d) || (d = {});d = S({ strictDi: !1 }, d);var c = function c() {
	      a = x(a);if (a.injector()) {
	        var c = a[0] === z.document ? "document" : Aa(a);throw oa("btstrpd", c.replace(/</, "&lt;").replace(/>/, "&gt;"));
	      }b = b || [];b.unshift(["$provide", function (b) {
	        b.value("$rootElement", a);
	      }]);d.debugInfoEnabled && b.push(["$compileProvider", function (a) {
	        a.debugInfoEnabled(!0);
	      }]);b.unshift("ng");c = fb(b, d.strictDi);c.invoke(["$rootScope", "$rootElement", "$compile", "$injector", function (a, b, c, d) {
	        a.$apply(function () {
	          b.data("$injector", d);c(b)(a);
	        });
	      }]);return c;
	    },
	        e = /^NG_ENABLE_DEBUG_INFO!/,
	        f = /^NG_DEFER_BOOTSTRAP!/;z && e.test(z.name) && (d.debugInfoEnabled = !0, z.name = z.name.replace(e, ""));if (z && !f.test(z.name)) return c();z.name = z.name.replace(f, "");ca.resumeBootstrap = function (a) {
	      r(a, function (a) {
	        b.push(a);
	      });return c();
	    };B(ca.resumeDeferredBootstrap) && ca.resumeDeferredBootstrap();
	  }function Ge() {
	    z.name = "NG_ENABLE_DEBUG_INFO!" + z.name;z.location.reload();
	  }function He(a) {
	    a = ca.element(a).injector();if (!a) throw oa("test");return a.get("$$testability");
	  }function Xc(a, b) {
	    b = b || "_";return a.replace(Ie, function (a, c) {
	      return (c ? b : "") + a.toLowerCase();
	    });
	  }function Je() {
	    var a;if (!Yc) {
	      var b = rb();(sb = A(b) ? z.jQuery : b ? z[b] : void 0) && sb.fn.on ? (x = sb, S(sb.fn, { scope: Wa.scope, isolateScope: Wa.isolateScope, controller: Wa.controller, injector: Wa.injector, inheritedData: Wa.inheritedData })) : x = U;a = x.cleanData;x.cleanData = function (b) {
	        for (var c, e = 0, f; null != (f = b[e]); e++) {
	          (c = (x._data(f) || {}).events) && c.$destroy && x(f).triggerHandler("$destroy");
	        }a(b);
	      };ca.element = x;Yc = !0;
	    }
	  }function Ke() {
	    U.legacyXHTMLReplacement = !0;
	  }function gb(a, b, d) {
	    if (!a) throw oa("areq", b || "?", d || "required");return a;
	  }function tb(a, b, d) {
	    d && H(a) && (a = a[a.length - 1]);gb(B(a), b, "not a function, got " + (a && "object" === (typeof a === "undefined" ? "undefined" : _typeof(a)) ? a.constructor.name || "Object" : typeof a === "undefined" ? "undefined" : _typeof(a)));return a;
	  }function Ja(a, b) {
	    if ("hasOwnProperty" === a) throw oa("badname", b);
	  }function Le(a, b, d) {
	    if (!b) return a;b = b.split(".");for (var c, e = a, f = b.length, g = 0; g < f; g++) {
	      c = b[g], a && (a = (e = a)[c]);
	    }return !d && B(a) ? Va(e, a) : a;
	  }function ub(a) {
	    for (var b = a[0], d = a[a.length - 1], c, e = 1; b !== d && (b = b.nextSibling); e++) {
	      if (c || a[e] !== b) c || (c = x(Ha.call(a, 0, e))), c.push(b);
	    }return c || a;
	  }function T() {
	    return Object.create(null);
	  }function jc(a) {
	    if (null == a) return "";switch (typeof a === "undefined" ? "undefined" : _typeof(a)) {case "string":
	        break;case "number":
	        a = "" + a;break;default:
	        a = !cc(a) || H(a) || ha(a) ? eb(a) : a.toString();}return a;
	  }function Me(a) {
	    function b(a, b, c) {
	      return a[b] || (a[b] = c());
	    }var d = F("$injector"),
	        c = F("ng");a = b(a, "angular", Object);a.$$minErr = a.$$minErr || F;return b(a, "module", function () {
	      var a = {};return function (f, g, k) {
	        var h = {};if ("hasOwnProperty" === f) throw c("badname", "module");g && a.hasOwnProperty(f) && (a[f] = null);return b(a, f, function () {
	          function a(b, c, d, f) {
	            f || (f = e);return function () {
	              f[d || "push"]([b, c, arguments]);return t;
	            };
	          }function b(a, c, d) {
	            d || (d = e);return function (b, e) {
	              e && B(e) && (e.$$moduleName = f);d.push([a, c, arguments]);return t;
	            };
	          }if (!g) throw d("nomod", f);var e = [],
	              n = [],
	              s = [],
	              G = a("$injector", "invoke", "push", n),
	              t = { _invokeQueue: e, _configBlocks: n, _runBlocks: s, info: function info(a) {
	              if (w(a)) {
	                if (!D(a)) throw c("aobj", "value");h = a;return this;
	              }return h;
	            }, requires: g, name: f, provider: b("$provide", "provider"), factory: b("$provide", "factory"), service: b("$provide", "service"), value: a("$provide", "value"), constant: a("$provide", "constant", "unshift"), decorator: b("$provide", "decorator", n), animation: b("$animateProvider", "register"), filter: b("$filterProvider", "register"), controller: b("$controllerProvider", "register"), directive: b("$compileProvider", "directive"), component: b("$compileProvider", "component"), config: G, run: function run(a) {
	              s.push(a);return this;
	            } };k && G(k);return t;
	        });
	      };
	    });
	  }function ja(a, b) {
	    if (H(a)) {
	      b = b || [];for (var d = 0, c = a.length; d < c; d++) {
	        b[d] = a[d];
	      }
	    } else if (D(a)) for (d in b = b || {}, a) {
	      if ("$" !== d.charAt(0) || "$" !== d.charAt(1)) b[d] = a[d];
	    }return b || a;
	  }function Ne(a, b) {
	    var d = [];Yb(b) && (a = ca.copy(a, null, b));return JSON.stringify(a, function (a, b) {
	      b = Sc(a, b);if (D(b)) {
	        if (0 <= d.indexOf(b)) return "...";d.push(b);
	      }return b;
	    });
	  }
	  function Oe(a) {
	    S(a, { errorHandlingConfig: ve, bootstrap: Wc, copy: Ia, extend: S, merge: xe, equals: va, element: x, forEach: r, injector: fb, noop: E, bind: Va, toJson: eb, fromJson: Tc, identity: Ta, isUndefined: A, isDefined: w, isString: C, isFunction: B, isObject: D, isNumber: X, isElement: ac, isArray: H, version: Pe, isDate: ha, callbacks: { $$counter: 0 }, getTestability: He, reloadWithDebugInfo: Ge, UNSAFE_restoreLegacyJqLiteXHTMLReplacement: Ke, $$minErr: F, $$csp: Ba, $$encodeUriSegment: ic, $$encodeUriQuery: ba, $$lowercase: K, $$stringify: jc, $$uppercase: vb });
	    lc = Me(z);lc("ng", ["ngLocale"], ["$provide", function (a) {
	      a.provider({ $$sanitizeUri: Qe });a.provider("$compile", Zc).directive({ a: Re, input: $c, textarea: $c, form: Se, script: Te, select: Ue, option: Ve, ngBind: We, ngBindHtml: Xe, ngBindTemplate: Ye, ngClass: Ze, ngClassEven: $e, ngClassOdd: af, ngCloak: bf, ngController: cf, ngForm: df, ngHide: ef, ngIf: ff, ngInclude: gf, ngInit: hf, ngNonBindable: jf, ngPluralize: kf, ngRef: lf, ngRepeat: mf, ngShow: nf, ngStyle: of, ngSwitch: pf, ngSwitchWhen: qf, ngSwitchDefault: rf, ngOptions: sf, ngTransclude: tf, ngModel: uf,
	        ngList: vf, ngChange: wf, pattern: ad, ngPattern: ad, required: bd, ngRequired: bd, minlength: cd, ngMinlength: cd, maxlength: dd, ngMaxlength: dd, ngValue: xf, ngModelOptions: yf }).directive({ ngInclude: zf, input: Af }).directive(wb).directive(ed);a.provider({ $anchorScroll: Bf, $animate: Cf, $animateCss: Df, $$animateJs: Ef, $$animateQueue: Ff, $$AnimateRunner: Gf, $$animateAsyncRun: Hf, $browser: If, $cacheFactory: Jf, $controller: Kf, $document: Lf, $$isDocumentHidden: Mf, $exceptionHandler: Nf, $filter: fd, $$forceReflow: Of, $interpolate: Pf, $interval: Qf,
	        $$intervalFactory: Rf, $http: Sf, $httpParamSerializer: Tf, $httpParamSerializerJQLike: Uf, $httpBackend: Vf, $xhrFactory: Wf, $jsonpCallbacks: Xf, $location: Yf, $log: Zf, $parse: $f, $rootScope: ag, $q: bg, $$q: cg, $sce: dg, $sceDelegate: eg, $sniffer: fg, $$taskTrackerFactory: gg, $templateCache: hg, $templateRequest: ig, $$testability: jg, $timeout: kg, $window: lg, $$rAF: mg, $$jqLite: ng, $$Map: og, $$cookieReader: pg });
	    }]).info({ angularVersion: "1.8.2" });
	  }function xb(a, b) {
	    return b.toUpperCase();
	  }function yb(a) {
	    return a.replace(qg, xb);
	  }function mc(a) {
	    a = a.nodeType;return 1 === a || !a || 9 === a;
	  }function gd(a, b) {
	    var d,
	        c,
	        e,
	        f = b.createDocumentFragment(),
	        g = [],
	        k;if (nc.test(a)) {
	      d = f.appendChild(b.createElement("div"));c = (rg.exec(a) || ["", ""])[1].toLowerCase();e = U.legacyXHTMLReplacement ? a.replace(sg, "<$1></$2>") : a;if (10 > wa) for (c = hb[c] || hb._default, d.innerHTML = c[1] + e + c[2], k = c[0]; k--;) {
	        d = d.firstChild;
	      } else {
	        c = qa[c] || [];for (k = c.length; -1 < --k;) {
	          d.appendChild(z.document.createElement(c[k])), d = d.firstChild;
	        }d.innerHTML = e;
	      }g = db(g, d.childNodes);d = f.firstChild;d.textContent = "";
	    } else g.push(b.createTextNode(a));
	    f.textContent = "";f.innerHTML = "";r(g, function (a) {
	      f.appendChild(a);
	    });return f;
	  }function U(a) {
	    if (a instanceof U) return a;var b;C(a) && (a = V(a), b = !0);if (!(this instanceof U)) {
	      if (b && "<" !== a.charAt(0)) throw oc("nosel");return new U(a);
	    }if (b) {
	      b = z.document;var d;a = (d = tg.exec(a)) ? [b.createElement(d[1])] : (d = gd(a, b)) ? d.childNodes : [];pc(this, a);
	    } else B(a) ? hd(a) : pc(this, a);
	  }function qc(a) {
	    return a.cloneNode(!0);
	  }function zb(a, b) {
	    !b && mc(a) && x.cleanData([a]);a.querySelectorAll && x.cleanData(a.querySelectorAll("*"));
	  }function id(a) {
	    for (var b in a) {
	      return !1;
	    }return !0;
	  }function jd(a) {
	    var b = a.ng339,
	        d = b && Ka[b],
	        c = d && d.events,
	        d = d && d.data;d && !id(d) || c && !id(c) || (delete Ka[b], a.ng339 = void 0);
	  }function kd(a, b, d, c) {
	    if (w(c)) throw oc("offargs");var e = (c = Ab(a)) && c.events,
	        f = c && c.handle;if (f) {
	      if (b) {
	        var g = function g(b) {
	          var c = e[b];w(d) && cb(c || [], d);w(d) && c && 0 < c.length || (a.removeEventListener(b, f), delete e[b]);
	        };r(b.split(" "), function (a) {
	          g(a);Bb[a] && g(Bb[a]);
	        });
	      } else for (b in e) {
	        "$destroy" !== b && a.removeEventListener(b, f), delete e[b];
	      }jd(a);
	    }
	  }function rc(a, b) {
	    var d = a.ng339;if (d = d && Ka[d]) b ? delete d.data[b] : d.data = {}, jd(a);
	  }function Ab(a, b) {
	    var d = a.ng339,
	        d = d && Ka[d];b && !d && (a.ng339 = d = ++ug, d = Ka[d] = { events: {}, data: {}, handle: void 0 });return d;
	  }function sc(a, b, d) {
	    if (mc(a)) {
	      var c,
	          e = w(d),
	          f = !e && b && !D(b),
	          g = !b;a = (a = Ab(a, !f)) && a.data;if (e) a[yb(b)] = d;else {
	        if (g) return a;if (f) return a && a[yb(b)];for (c in b) {
	          a[yb(c)] = b[c];
	        }
	      }
	    }
	  }function Cb(a, b) {
	    return a.getAttribute ? -1 < (" " + (a.getAttribute("class") || "") + " ").replace(/[\n\t]/g, " ").indexOf(" " + b + " ") : !1;
	  }function Db(a, b) {
	    if (b && a.setAttribute) {
	      var d = (" " + (a.getAttribute("class") || "") + " ").replace(/[\n\t]/g, " "),
	          c = d;r(b.split(" "), function (a) {
	        a = V(a);c = c.replace(" " + a + " ", " ");
	      });c !== d && a.setAttribute("class", V(c));
	    }
	  }function Eb(a, b) {
	    if (b && a.setAttribute) {
	      var d = (" " + (a.getAttribute("class") || "") + " ").replace(/[\n\t]/g, " "),
	          c = d;r(b.split(" "), function (a) {
	        a = V(a);-1 === c.indexOf(" " + a + " ") && (c += a + " ");
	      });c !== d && a.setAttribute("class", V(c));
	    }
	  }function pc(a, b) {
	    if (b) if (b.nodeType) a[a.length++] = b;else {
	      var d = b.length;if ("number" === typeof d && b.window !== b) {
	        if (d) for (var c = 0; c < d; c++) {
	          a[a.length++] = b[c];
	        }
	      } else a[a.length++] = b;
	    }
	  }function ld(a, b) {
	    return Fb(a, "$" + (b || "ngController") + "Controller");
	  }function Fb(a, b, d) {
	    9 === a.nodeType && (a = a.documentElement);for (b = H(b) ? b : [b]; a;) {
	      for (var c = 0, e = b.length; c < e; c++) {
	        if (w(d = x.data(a, b[c]))) return d;
	      }a = a.parentNode || 11 === a.nodeType && a.host;
	    }
	  }function md(a) {
	    for (zb(a, !0); a.firstChild;) {
	      a.removeChild(a.firstChild);
	    }
	  }function Gb(a, b) {
	    b || zb(a);var d = a.parentNode;d && d.removeChild(a);
	  }function vg(a, b) {
	    b = b || z;if ("complete" === b.document.readyState) b.setTimeout(a);else x(b).on("load", a);
	  }function hd(a) {
	    function b() {
	      z.document.removeEventListener("DOMContentLoaded", b);z.removeEventListener("load", b);a();
	    }"complete" === z.document.readyState ? z.setTimeout(a) : (z.document.addEventListener("DOMContentLoaded", b), z.addEventListener("load", b));
	  }function nd(a, b) {
	    var d = Hb[b.toLowerCase()];return d && od[ua(a)] && d;
	  }function wg(a, b) {
	    var d = function d(c, _d) {
	      c.isDefaultPrevented = function () {
	        return c.defaultPrevented;
	      };var f = b[_d || c.type],
	          g = f ? f.length : 0;if (g) {
	        if (A(c.immediatePropagationStopped)) {
	          var k = c.stopImmediatePropagation;c.stopImmediatePropagation = function () {
	            c.immediatePropagationStopped = !0;c.stopPropagation && c.stopPropagation();k && k.call(c);
	          };
	        }c.isImmediatePropagationStopped = function () {
	          return !0 === c.immediatePropagationStopped;
	        };var h = f.specialHandlerWrapper || xg;1 < g && (f = ja(f));for (var l = 0; l < g; l++) {
	          c.isImmediatePropagationStopped() || h(a, c, f[l]);
	        }
	      }
	    };d.elem = a;return d;
	  }function xg(a, b, d) {
	    d.call(a, b);
	  }function yg(a, b, d) {
	    var c = b.relatedTarget;c && (c === a || zg.call(a, c)) || d.call(a, b);
	  }function ng() {
	    this.$get = function () {
	      return S(U, { hasClass: function hasClass(a, b) {
	          a.attr && (a = a[0]);return Cb(a, b);
	        }, addClass: function addClass(a, b) {
	          a.attr && (a = a[0]);return Eb(a, b);
	        }, removeClass: function removeClass(a, b) {
	          a.attr && (a = a[0]);return Db(a, b);
	        } });
	    };
	  }function La(a, b) {
	    var d = a && a.$$hashKey;if (d) return "function" === typeof d && (d = a.$$hashKey()), d;d = typeof a === "undefined" ? "undefined" : _typeof(a);return d = "function" === d || "object" === d && null !== a ? a.$$hashKey = d + ":" + (b || we)() : d + ":" + a;
	  }function pd() {
	    this._keys = [];this._values = [];this._lastKey = NaN;this._lastIndex = -1;
	  }function qd(a) {
	    a = Function.prototype.toString.call(a).replace(Ag, "");return a.match(Bg) || a.match(Cg);
	  }function Dg(a) {
	    return (a = qd(a)) ? "function(" + (a[1] || "").replace(/[\s\r\n]+/, " ") + ")" : "fn";
	  }function fb(a, b) {
	    function d(a) {
	      return function (b, c) {
	        if (D(b)) r(b, Zb(a));else return a(b, c);
	      };
	    }function c(a, b) {
	      Ja(a, "service");if (B(b) || H(b)) b = n.instantiate(b);if (!b.$get) throw Ca("pget", a);return p[a + "Provider"] = b;
	    }function e(a, b) {
	      return function () {
	        var c = t.invoke(b, this);if (A(c)) throw Ca("undef", a);return c;
	      };
	    }function f(a, b, d) {
	      return c(a, { $get: !1 !== d ? e(a, b) : b });
	    }function g(a) {
	      gb(A(a) || H(a), "modulesToLoad", "not an array");var b = [],
	          c;r(a, function (a) {
	        function d(a) {
	          var b, c;b = 0;for (c = a.length; b < c; b++) {
	            var e = a[b],
	                f = n.get(e[0]);f[e[1]].apply(f, e[2]);
	          }
	        }if (!m.get(a)) {
	          m.set(a, !0);try {
	            C(a) ? (c = lc(a), t.modules[a] = c, b = b.concat(g(c.requires)).concat(c._runBlocks), d(c._invokeQueue), d(c._configBlocks)) : B(a) ? b.push(n.invoke(a)) : H(a) ? b.push(n.invoke(a)) : tb(a, "module");
	          } catch (e) {
	            throw H(a) && (a = a[a.length - 1]), e.message && e.stack && -1 === e.stack.indexOf(e.message) && (e = e.message + "\n" + e.stack), Ca("modulerr", a, e.stack || e.message || e);
	          }
	        }
	      });return b;
	    }function k(a, c) {
	      function d(b, e) {
	        if (a.hasOwnProperty(b)) {
	          if (a[b] === h) throw Ca("cdep", b + " <- " + l.join(" <- "));return a[b];
	        }try {
	          return l.unshift(b), a[b] = h, a[b] = c(b, e), a[b];
	        } catch (f) {
	          throw a[b] === h && delete a[b], f;
	        } finally {
	          l.shift();
	        }
	      }function e(a, c, f) {
	        var g = [];a = fb.$$annotate(a, b, f);for (var h = 0, k = a.length; h < k; h++) {
	          var l = a[h];if ("string" !== typeof l) throw Ca("itkn", l);g.push(c && c.hasOwnProperty(l) ? c[l] : d(l, f));
	        }return g;
	      }return { invoke: function invoke(a, b, c, d) {
	          "string" === typeof c && (d = c, c = null);c = e(a, c, d);H(a) && (a = a[a.length - 1]);d = a;if (wa || "function" !== typeof d) d = !1;else {
	            var f = d.$$ngIsClass;Ga(f) || (f = d.$$ngIsClass = /^class\b/.test(Function.prototype.toString.call(d)));d = f;
	          }return d ? (c.unshift(null), new (Function.prototype.bind.apply(a, c))()) : a.apply(b, c);
	        }, instantiate: function instantiate(a, b, c) {
	          var d = H(a) ? a[a.length - 1] : a;a = e(a, b, c);a.unshift(null);return new (Function.prototype.bind.apply(d, a))();
	        }, get: d, annotate: fb.$$annotate, has: function has(b) {
	          return p.hasOwnProperty(b + "Provider") || a.hasOwnProperty(b);
	        } };
	    }
	    b = !0 === b;var h = {},
	        l = [],
	        m = new Ib(),
	        p = { $provide: { provider: d(c), factory: d(f), service: d(function (a, b) {
	          return f(a, ["$injector", function (a) {
	            return a.instantiate(b);
	          }]);
	        }), value: d(function (a, b) {
	          return f(a, ia(b), !1);
	        }), constant: d(function (a, b) {
	          Ja(a, "constant");p[a] = b;s[a] = b;
	        }), decorator: function decorator(a, b) {
	          var c = n.get(a + "Provider"),
	              d = c.$get;c.$get = function () {
	            var a = t.invoke(d, c);return t.invoke(b, null, { $delegate: a });
	          };
	        } } },
	        n = p.$injector = k(p, function (a, b) {
	      ca.isString(b) && l.push(b);throw Ca("unpr", l.join(" <- "));
	    }),
	        s = {},
	        G = k(s, function (a, b) {
	      var c = n.get(a + "Provider", b);return t.invoke(c.$get, c, void 0, a);
	    }),
	        t = G;p.$injectorProvider = { $get: ia(G) };t.modules = n.modules = T();var N = g(a),
	        t = G.get("$injector");t.strictDi = b;r(N, function (a) {
	      a && t.invoke(a);
	    });t.loadNewModules = function (a) {
	      r(g(a), function (a) {
	        a && t.invoke(a);
	      });
	    };return t;
	  }function Bf() {
	    var a = !0;this.disableAutoScrolling = function () {
	      a = !1;
	    };this.$get = ["$window", "$location", "$rootScope", function (b, d, c) {
	      function e(a) {
	        var b = null;Array.prototype.some.call(a, function (a) {
	          if ("a" === ua(a)) return b = a, !0;
	        });return b;
	      }function f(a) {
	        if (a) {
	          a.scrollIntoView();var c;c = g.yOffset;B(c) ? c = c() : ac(c) ? (c = c[0], c = "fixed" !== b.getComputedStyle(c).position ? 0 : c.getBoundingClientRect().bottom) : X(c) || (c = 0);c && (a = a.getBoundingClientRect().top, b.scrollBy(0, a - c));
	        } else b.scrollTo(0, 0);
	      }function g(a) {
	        a = C(a) ? a : X(a) ? a.toString() : d.hash();var b;a ? (b = k.getElementById(a)) ? f(b) : (b = e(k.getElementsByName(a))) ? f(b) : "top" === a && f(null) : f(null);
	      }var k = b.document;a && c.$watch(function () {
	        return d.hash();
	      }, function (a, b) {
	        a === b && "" === a || vg(function () {
	          c.$evalAsync(g);
	        });
	      });return g;
	    }];
	  }function ib(a, b) {
	    if (!a && !b) return "";if (!a) return b;if (!b) return a;H(a) && (a = a.join(" "));H(b) && (b = b.join(" "));return a + " " + b;
	  }function Eg(a) {
	    C(a) && (a = a.split(" "));var b = T();r(a, function (a) {
	      a.length && (b[a] = !0);
	    });return b;
	  }function ra(a) {
	    return D(a) ? a : {};
	  }function Fg(a, b, d, c, e) {
	    function f() {
	      pa = null;k();
	    }function g() {
	      t = y();t = A(t) ? null : t;va(t, P) && (t = P);N = P = t;
	    }function k() {
	      var a = N;g();if (v !== h.url() || a !== t) v = h.url(), N = t, r(J, function (a) {
	        a(h.url(), t);
	      });
	    }
	    var h = this,
	        l = a.location,
	        m = a.history,
	        p = a.setTimeout,
	        n = a.clearTimeout,
	        s = {},
	        G = e(d);h.isMock = !1;h.$$completeOutstandingRequest = G.completeTask;h.$$incOutstandingRequestCount = G.incTaskCount;h.notifyWhenNoOutstandingRequests = G.notifyWhenNoPendingTasks;var t,
	        N,
	        v = l.href,
	        kc = b.find("base"),
	        pa = null,
	        y = c.history ? function () {
	      try {
	        return m.state;
	      } catch (a) {}
	    } : E;g();h.url = function (b, d, e) {
	      A(e) && (e = null);l !== a.location && (l = a.location);m !== a.history && (m = a.history);if (b) {
	        var f = N === e;b = ga(b).href;if (v === b && (!c.history || f)) return h;
	        var k = v && Da(v) === Da(b);v = b;N = e;!c.history || k && f ? (k || (pa = b), d ? l.replace(b) : k ? (d = l, e = b, f = e.indexOf("#"), e = -1 === f ? "" : e.substr(f), d.hash = e) : l.href = b, l.href !== b && (pa = b)) : (m[d ? "replaceState" : "pushState"](e, "", b), g());pa && (pa = b);return h;
	      }return (pa || l.href).replace(/#$/, "");
	    };h.state = function () {
	      return t;
	    };var J = [],
	        I = !1,
	        P = null;h.onUrlChange = function (b) {
	      if (!I) {
	        if (c.history) x(a).on("popstate", f);x(a).on("hashchange", f);I = !0;
	      }J.push(b);return b;
	    };h.$$applicationDestroyed = function () {
	      x(a).off("hashchange popstate", f);
	    };h.$$checkUrlChange = k;h.baseHref = function () {
	      var a = kc.attr("href");return a ? a.replace(/^(https?:)?\/\/[^/]*/, "") : "";
	    };h.defer = function (a, b, c) {
	      var d;b = b || 0;c = c || G.DEFAULT_TASK_TYPE;G.incTaskCount(c);d = p(function () {
	        delete s[d];G.completeTask(a, c);
	      }, b);s[d] = c;return d;
	    };h.defer.cancel = function (a) {
	      if (s.hasOwnProperty(a)) {
	        var b = s[a];delete s[a];n(a);G.completeTask(E, b);return !0;
	      }return !1;
	    };
	  }function If() {
	    this.$get = ["$window", "$log", "$sniffer", "$document", "$$taskTrackerFactory", function (a, b, d, c, e) {
	      return new Fg(a, c, b, d, e);
	    }];
	  }function Jf() {
	    this.$get = function () {
	      function a(a, c) {
	        function e(a) {
	          a !== p && (n ? n === a && (n = a.n) : n = a, f(a.n, a.p), f(a, p), p = a, p.n = null);
	        }function f(a, b) {
	          a !== b && (a && (a.p = b), b && (b.n = a));
	        }if (a in b) throw F("$cacheFactory")("iid", a);var g = 0,
	            k = S({}, c, { id: a }),
	            h = T(),
	            l = c && c.capacity || Number.MAX_VALUE,
	            m = T(),
	            p = null,
	            n = null;return b[a] = { put: function put(a, b) {
	            if (!A(b)) {
	              if (l < Number.MAX_VALUE) {
	                var c = m[a] || (m[a] = { key: a });e(c);
	              }a in h || g++;h[a] = b;g > l && this.remove(n.key);return b;
	            }
	          }, get: function get(a) {
	            if (l < Number.MAX_VALUE) {
	              var b = m[a];if (!b) return;e(b);
	            }return h[a];
	          }, remove: function remove(a) {
	            if (l < Number.MAX_VALUE) {
	              var b = m[a];if (!b) return;b === p && (p = b.p);b === n && (n = b.n);f(b.n, b.p);delete m[a];
	            }a in h && (delete h[a], g--);
	          }, removeAll: function removeAll() {
	            h = T();g = 0;m = T();p = n = null;
	          }, destroy: function destroy() {
	            m = k = h = null;delete b[a];
	          }, info: function info() {
	            return S({}, k, { size: g });
	          } };
	      }var b = {};a.info = function () {
	        var a = {};r(b, function (b, e) {
	          a[e] = b.info();
	        });return a;
	      };a.get = function (a) {
	        return b[a];
	      };return a;
	    };
	  }function hg() {
	    this.$get = ["$cacheFactory", function (a) {
	      return a("templates");
	    }];
	  }
	  function Zc(a, b) {
	    function d(a, b, c) {
	      var d = /^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,
	          e = T();r(a, function (a, f) {
	        a = a.trim();if (a in p) e[f] = p[a];else {
	          var g = a.match(d);if (!g) throw $("iscp", b, f, a, c ? "controller bindings definition" : "isolate scope definition");e[f] = { mode: g[1][0], collection: "*" === g[2], optional: "?" === g[3], attrName: g[4] || f };g[4] && (p[a] = e[f]);
	        }
	      });return e;
	    }function c(a) {
	      var b = a.charAt(0);if (!b || b !== K(b)) throw $("baddir", a);if (a !== a.trim()) throw $("baddir", a);
	    }function e(a) {
	      var b = a.require || a.controller && a.name;!H(b) && D(b) && r(b, function (a, c) {
	        var d = a.match(l);a.substring(d[0].length) || (b[c] = d[0] + c);
	      });return b;
	    }var f = {},
	        g = /^\s*directive:\s*([\w-]+)\s+(.*)$/,
	        k = /(([\w-]+)(?::([^;]+))?;?)/,
	        h = Ae("ngSrc,ngSrcset,src,srcset"),
	        l = /^(?:(\^\^?)?(\?)?(\^\^?)?)?/,
	        m = /^(on[a-z]+|formaction)$/,
	        p = T();this.directive = function pa(b, d) {
	      gb(b, "name");Ja(b, "directive");C(b) ? (c(b), gb(d, "directiveFactory"), f.hasOwnProperty(b) || (f[b] = [], a.factory(b + "Directive", ["$injector", "$exceptionHandler", function (a, c) {
	        var d = [];r(f[b], function (f, g) {
	          try {
	            var h = a.invoke(f);B(h) ? h = { compile: ia(h) } : !h.compile && h.link && (h.compile = ia(h.link));h.priority = h.priority || 0;h.index = g;h.name = h.name || b;h.require = e(h);var k = h,
	                l = h.restrict;if (l && (!C(l) || !/[EACM]/.test(l))) throw $("badrestrict", l, b);k.restrict = l || "EA";h.$$moduleName = f.$$moduleName;d.push(h);
	          } catch (m) {
	            c(m);
	          }
	        });return d;
	      }])), f[b].push(d)) : r(b, Zb(pa));return this;
	    };this.component = function y(a, b) {
	      function c(a) {
	        function e(b) {
	          return B(b) || H(b) ? function (c, d) {
	            return a.invoke(b, this, { $element: c, $attrs: d });
	          } : b;
	        }var f = b.template || b.templateUrl ? b.template : "",
	            g = { controller: d, controllerAs: Gg(b.controller) || b.controllerAs || "$ctrl", template: e(f), templateUrl: e(b.templateUrl), transclude: b.transclude, scope: {}, bindToController: b.bindings || {}, restrict: "E", require: b.require };r(b, function (a, b) {
	          "$" === b.charAt(0) && (g[b] = a);
	        });return g;
	      }if (!C(a)) return r(a, Zb(Va(this, y))), this;var d = b.controller || function () {};r(b, function (a, b) {
	        "$" === b.charAt(0) && (c[b] = a, B(d) && (d[b] = a));
	      });c.$inject = ["$injector"];return this.directive(a, c);
	    };this.aHrefSanitizationTrustedUrlList = function (a) {
	      return w(a) ? (b.aHrefSanitizationTrustedUrlList(a), this) : b.aHrefSanitizationTrustedUrlList();
	    };Object.defineProperty(this, "aHrefSanitizationWhitelist", { get: function get() {
	        return this.aHrefSanitizationTrustedUrlList;
	      }, set: function set(a) {
	        this.aHrefSanitizationTrustedUrlList = a;
	      } });this.imgSrcSanitizationTrustedUrlList = function (a) {
	      return w(a) ? (b.imgSrcSanitizationTrustedUrlList(a), this) : b.imgSrcSanitizationTrustedUrlList();
	    };Object.defineProperty(this, "imgSrcSanitizationWhitelist", { get: function get() {
	        return this.imgSrcSanitizationTrustedUrlList;
	      }, set: function set(a) {
	        this.imgSrcSanitizationTrustedUrlList = a;
	      } });var n = !0;this.debugInfoEnabled = function (a) {
	      return w(a) ? (n = a, this) : n;
	    };var s = !1;this.strictComponentBindingsEnabled = function (a) {
	      return w(a) ? (s = a, this) : s;
	    };var G = 10;this.onChangesTtl = function (a) {
	      return arguments.length ? (G = a, this) : G;
	    };var t = !0;this.commentDirectivesEnabled = function (a) {
	      return arguments.length ? (t = a, this) : t;
	    };var N = !0;this.cssClassDirectivesEnabled = function (a) {
	      return arguments.length ? (N = a, this) : N;
	    };var v = T();this.addPropertySecurityContext = function (a, b, c) {
	      var d = a.toLowerCase() + "|" + b.toLowerCase();if (d in v && v[d] !== c) throw $("ctxoverride", a, b, v[d], c);v[d] = c;return this;
	    };(function () {
	      function a(b, c) {
	        r(c, function (a) {
	          v[a.toLowerCase()] = b;
	        });
	      }a(W.HTML, ["iframe|srcdoc", "*|innerHTML", "*|outerHTML"]);a(W.CSS, ["*|style"]);a(W.URL, "area|href area|ping a|href a|ping blockquote|cite body|background del|cite input|src ins|cite q|cite".split(" "));a(W.MEDIA_URL, "audio|src img|src img|srcset source|src source|srcset track|src video|src video|poster".split(" "));
	      a(W.RESOURCE_URL, "*|formAction applet|code applet|codebase base|href embed|src frame|src form|action head|profile html|manifest iframe|src link|href media|src object|codebase object|data script|src".split(" "));
	    })();this.$get = ["$injector", "$interpolate", "$exceptionHandler", "$templateRequest", "$parse", "$controller", "$rootScope", "$sce", "$animate", function (a, b, c, e, p, M, L, u, R) {
	      function q() {
	        try {
	          if (! --Ja) throw Ua = void 0, $("infchng", G);L.$apply(function () {
	            for (var a = 0, b = Ua.length; a < b; ++a) {
	              try {
	                Ua[a]();
	              } catch (d) {
	                c(d);
	              }
	            }Ua = void 0;
	          });
	        } finally {
	          Ja++;
	        }
	      }function ma(a, b) {
	        if (!a) return a;if (!C(a)) throw $("srcset", b, a.toString());for (var c = "", d = V(a), e = /(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/, e = /\s/.test(d) ? e : /(,)/, d = d.split(e), e = Math.floor(d.length / 2), f = 0; f < e; f++) {
	          var g = 2 * f,
	              c = c + u.getTrustedMediaUrl(V(d[g])),
	              c = c + (" " + V(d[g + 1]));
	        }d = V(d[2 * f]).split(/\s/);c += u.getTrustedMediaUrl(V(d[0]));2 === d.length && (c += " " + V(d[1]));return c;
	      }function w(a, b) {
	        if (b) {
	          var c = Object.keys(b),
	              d,
	              e,
	              f;d = 0;for (e = c.length; d < e; d++) {
	            f = c[d], this[f] = b[f];
	          }
	        } else this.$attr = {};this.$$element = a;
	      }function O(a, b, c) {
	        Fa.innerHTML = "<span " + b + ">";b = Fa.firstChild.attributes;var d = b[0];b.removeNamedItem(d.name);d.value = c;a.attributes.setNamedItem(d);
	      }function sa(a, b) {
	        try {
	          a.addClass(b);
	        } catch (c) {}
	      }function da(a, b, c, d, e) {
	        a instanceof x || (a = x(a));var f = Xa(a, b, a, c, d, e);da.$$addScopeClass(a);var g = null;return function (b, c, d) {
	          if (!a) throw $("multilink");gb(b, "scope");e && e.needsNewScope && (b = b.$parent.$new());d = d || {};var h = d.parentBoundTranscludeFn,
	              k = d.transcludeControllers;d = d.futureParentElement;
	          h && h.$$boundTransclude && (h = h.$$boundTransclude);g || (g = (d = d && d[0]) ? "foreignobject" !== ua(d) && la.call(d).match(/SVG/) ? "svg" : "html" : "html");d = "html" !== g ? x(ja(g, x("<div></div>").append(a).html())) : c ? Wa.clone.call(a) : a;if (k) for (var l in k) {
	            d.data("$" + l + "Controller", k[l].instance);
	          }da.$$addScopeInfo(d, b);c && c(d, b);f && f(b, d, d, h);c || (a = f = null);return d;
	        };
	      }function Xa(a, b, c, d, e, f) {
	        function g(a, c, d, e) {
	          var f, k, l, m, p, I, t;if (n) for (t = Array(c.length), m = 0; m < h.length; m += 3) {
	            f = h[m], t[f] = c[f];
	          } else t = c;m = 0;for (p = h.length; m < p;) {
	            k = t[h[m++]], c = h[m++], f = h[m++], c ? (c.scope ? (l = a.$new(), da.$$addScopeInfo(x(k), l)) : l = a, I = c.transcludeOnThisElement ? ka(a, c.transclude, e) : !c.templateOnThisElement && e ? e : !e && b ? ka(a, b) : null, c(f, l, k, d, I)) : f && f(a, k.childNodes, void 0, e);
	          }
	        }for (var h = [], k = H(a) || a instanceof x, l, m, p, I, n, t = 0; t < a.length; t++) {
	          l = new w();11 === wa && jb(a, t, k);m = tc(a[t], [], l, 0 === t ? d : void 0, e);(f = m.length ? aa(m, a[t], l, b, c, null, [], [], f) : null) && f.scope && da.$$addScopeClass(l.$$element);l = f && f.terminal || !(p = a[t].childNodes) || !p.length ? null : Xa(p, f ? (f.transcludeOnThisElement || !f.templateOnThisElement) && f.transclude : b);if (f || l) h.push(t, f, l), I = !0, n = n || f;f = null;
	        }return I ? g : null;
	      }function jb(a, b, c) {
	        var d = a[b],
	            e = d.parentNode,
	            f;if (d.nodeType === Pa) for (;;) {
	          f = e ? d.nextSibling : a[b + 1];if (!f || f.nodeType !== Pa) break;d.nodeValue += f.nodeValue;f.parentNode && f.parentNode.removeChild(f);c && f === a[b + 1] && a.splice(b + 1, 1);
	        }
	      }function ka(a, b, c) {
	        function d(e, f, g, h, k) {
	          e || (e = a.$new(!1, k), e.$$transcluded = !0);return b(e, f, { parentBoundTranscludeFn: c, transcludeControllers: g,
	            futureParentElement: h });
	        }var e = d.$$slots = T(),
	            f;for (f in b.$$slots) {
	          e[f] = b.$$slots[f] ? ka(a, b.$$slots[f], c) : null;
	        }return d;
	      }function tc(a, b, d, e, f) {
	        var g = d.$attr,
	            h;switch (a.nodeType) {case 1:
	            h = ua(a);Y(b, xa(h), "E", e, f);for (var l, m, n, t, J, s = a.attributes, v = 0, G = s && s.length; v < G; v++) {
	              var P = !1,
	                  N = !1,
	                  r = !1,
	                  y = !1,
	                  u = !1,
	                  M;l = s[v];m = l.name;t = l.value;n = xa(m.toLowerCase());(J = n.match(Ra)) ? (r = "Attr" === J[1], y = "Prop" === J[1], u = "On" === J[1], m = m.replace(rd, "").toLowerCase().substr(4 + J[1].length).replace(/_(.)/g, function (a, b) {
	                return b.toUpperCase();
	              })) : (M = n.match(Sa)) && ca(M[1]) && (P = m, N = m.substr(0, m.length - 5) + "end", m = m.substr(0, m.length - 6));if (y || u) d[n] = t, g[n] = l.name, y ? Ea(a, b, n, m) : b.push(sd(p, L, c, n, m, !1));else {
	                n = xa(m.toLowerCase());g[n] = m;if (r || !d.hasOwnProperty(n)) d[n] = t, nd(a, n) && (d[n] = !0);Ia(a, b, t, n, r);Y(b, n, "A", e, f, P, N);
	              }
	            }"input" === h && "hidden" === a.getAttribute("type") && a.setAttribute("autocomplete", "off");if (!Qa) break;g = a.className;D(g) && (g = g.animVal);if (C(g) && "" !== g) for (; a = k.exec(g);) {
	              n = xa(a[2]), Y(b, n, "C", e, f) && (d[n] = V(a[3])), g = g.substr(a.index + a[0].length);
	            }break;case Pa:
	            na(b, a.nodeValue);break;case 8:
	            if (!Oa) break;F(a, b, d, e, f);}b.sort(ia);return b;
	      }function F(a, b, c, d, e) {
	        try {
	          var f = g.exec(a.nodeValue);if (f) {
	            var h = xa(f[1]);Y(b, h, "M", d, e) && (c[h] = V(f[2]));
	          }
	        } catch (k) {}
	      }function U(a, b, c) {
	        var d = [],
	            e = 0;if (b && a.hasAttribute && a.hasAttribute(b)) {
	          do {
	            if (!a) throw $("uterdir", b, c);1 === a.nodeType && (a.hasAttribute(b) && e++, a.hasAttribute(c) && e--);d.push(a);a = a.nextSibling;
	          } while (0 < e);
	        } else d.push(a);return x(d);
	      }function W(a, b, c) {
	        return function (d, e, f, g, h) {
	          e = U(e[0], b, c);return a(d, e, f, g, h);
	        };
	      }function Z(a, b, c, d, e, f) {
	        var g;return a ? da(b, c, d, e, f) : function () {
	          g || (g = da(b, c, d, e, f), b = c = f = null);return g.apply(this, arguments);
	        };
	      }function aa(a, b, d, e, f, g, h, k, l) {
	        function m(a, b, c, d) {
	          if (a) {
	            c && (a = W(a, c, d));a.require = u.require;a.directiveName = Q;if (s === u || u.$$isolateScope) a = Ba(a, { isolateScope: !0 });h.push(a);
	          }if (b) {
	            c && (b = W(b, c, d));b.require = u.require;b.directiveName = Q;if (s === u || u.$$isolateScope) b = Ba(b, { isolateScope: !0 });k.push(b);
	          }
	        }function p(a, e, f, g, l) {
	          function m(a, b, c, d) {
	            var e;bb(a) || (d = c, c = b, b = a, a = void 0);N && (e = P);c || (c = N ? Q.parent() : Q);if (d) {
	              var f = l.$$slots[d];if (f) return f(a, b, e, c, R);if (A(f)) throw $("noslot", d, Aa(Q));
	            } else return l(a, b, e, c, R);
	          }var n, u, L, y, G, P, M, Q;b === f ? (g = d, Q = d.$$element) : (Q = x(f), g = new w(Q, d));G = e;s ? y = e.$new(!0) : t && (G = e.$parent);l && (M = m, M.$$boundTransclude = l, M.isSlotFilled = function (a) {
	            return !!l.$$slots[a];
	          });J && (P = ea(Q, g, M, J, y, e, s));s && (da.$$addScopeInfo(Q, y, !0, !(v && (v === s || v === s.$$originalDirective))), da.$$addScopeClass(Q, !0), y.$$isolateBindings = s.$$isolateBindings, u = Da(e, g, y, y.$$isolateBindings, s), u.removeWatches && y.$on("$destroy", u.removeWatches));for (n in P) {
	            u = J[n];L = P[n];var Hg = u.$$bindings.bindToController;L.instance = L();Q.data("$" + u.name + "Controller", L.instance);L.bindingInfo = Da(G, g, L.instance, Hg, u);
	          }r(J, function (a, b) {
	            var c = a.require;a.bindToController && !H(c) && D(c) && S(P[b].instance, X(b, c, Q, P));
	          });r(P, function (a) {
	            var b = a.instance;if (B(b.$onChanges)) try {
	              b.$onChanges(a.bindingInfo.initialChanges);
	            } catch (d) {
	              c(d);
	            }if (B(b.$onInit)) try {
	              b.$onInit();
	            } catch (e) {
	              c(e);
	            }B(b.$doCheck) && (G.$watch(function () {
	              b.$doCheck();
	            }), b.$doCheck());B(b.$onDestroy) && G.$on("$destroy", function () {
	              b.$onDestroy();
	            });
	          });n = 0;for (u = h.length; n < u; n++) {
	            L = h[n], Ca(L, L.isolateScope ? y : e, Q, g, L.require && X(L.directiveName, L.require, Q, P), M);
	          }var R = e;s && (s.template || null === s.templateUrl) && (R = y);a && a(R, f.childNodes, void 0, l);for (n = k.length - 1; 0 <= n; n--) {
	            L = k[n], Ca(L, L.isolateScope ? y : e, Q, g, L.require && X(L.directiveName, L.require, Q, P), M);
	          }r(P, function (a) {
	            a = a.instance;B(a.$postLink) && a.$postLink();
	          });
	        }l = l || {};for (var n = -Number.MAX_VALUE, t = l.newScopeDirective, J = l.controllerDirectives, s = l.newIsolateScopeDirective, v = l.templateDirective, L = l.nonTlbTranscludeDirective, G = !1, P = !1, N = l.hasElementTranscludeDirective, y = d.$$element = x(b), u, Q, M, R = e, q, ma = !1, Jb = !1, O, sa = 0, C = a.length; sa < C; sa++) {
	          u = a[sa];var E = u.$$start,
	              jb = u.$$end;E && (y = U(b, E, jb));M = void 0;if (n > u.priority) break;if (O = u.scope) u.templateUrl || (D(O) ? (ba("new/isolated scope", s || t, u, y), s = u) : ba("new/isolated scope", s, u, y)), t = t || u;Q = u.name;if (!ma && (u.replace && (u.templateUrl || u.template) || u.transclude && !u.$$tlb)) {
	            for (O = sa + 1; ma = a[O++];) {
	              if (ma.transclude && !ma.$$tlb || ma.replace && (ma.templateUrl || ma.template)) {
	                Jb = !0;break;
	              }
	            }ma = !0;
	          }!u.templateUrl && u.controller && (J = J || T(), ba("'" + Q + "' controller", J[Q], u, y), J[Q] = u);if (O = u.transclude) if (G = !0, u.$$tlb || (ba("transclusion", L, u, y), L = u), "element" === O) N = !0, n = u.priority, M = y, y = d.$$element = x(da.$$createComment(Q, d[Q])), b = y[0], oa(f, Ha.call(M, 0), b), R = Z(Jb, M, e, n, g && g.name, { nonTlbTranscludeDirective: L });else {
	            var ka = T();if (D(O)) {
	              M = z.document.createDocumentFragment();var Xa = T(),
	                  F = T();r(O, function (a, b) {
	                var c = "?" === a.charAt(0);a = c ? a.substring(1) : a;Xa[a] = b;ka[b] = null;F[b] = c;
	              });r(y.contents(), function (a) {
	                var b = Xa[xa(ua(a))];b ? (F[b] = !0, ka[b] = ka[b] || z.document.createDocumentFragment(), ka[b].appendChild(a)) : M.appendChild(a);
	              });r(F, function (a, b) {
	                if (!a) throw $("reqslot", b);
	              });for (var K in ka) {
	                ka[K] && (R = x(ka[K].childNodes), ka[K] = Z(Jb, R, e));
	              }M = x(M.childNodes);
	            } else M = x(qc(b)).contents();y.empty();R = Z(Jb, M, e, void 0, void 0, { needsNewScope: u.$$isolateScope || u.$$newScope });R.$$slots = ka;
	          }if (u.template) if (P = !0, ba("template", v, u, y), v = u, O = B(u.template) ? u.template(y, d) : u.template, O = Na(O), u.replace) {
	            g = u;M = nc.test(O) ? td(ja(u.templateNamespace, V(O))) : [];b = M[0];if (1 !== M.length || 1 !== b.nodeType) throw $("tplrt", Q, "");oa(f, y, b);C = { $attr: {} };O = tc(b, [], C);var Ig = a.splice(sa + 1, a.length - (sa + 1));(s || t) && fa(O, s, t);a = a.concat(O).concat(Ig);ga(d, C);C = a.length;
	          } else y.html(O);if (u.templateUrl) P = !0, ba("template", v, u, y), v = u, u.replace && (g = u), p = ha(a.splice(sa, a.length - sa), y, d, f, G && R, h, k, { controllerDirectives: J, newScopeDirective: t !== u && t, newIsolateScopeDirective: s, templateDirective: v, nonTlbTranscludeDirective: L }), C = a.length;else if (u.compile) try {
	            q = u.compile(y, d, R);var Y = u.$$originalDirective || u;B(q) ? m(null, Va(Y, q), E, jb) : q && m(Va(Y, q.pre), Va(Y, q.post), E, jb);
	          } catch (ca) {
	            c(ca, Aa(y));
	          }u.terminal && (p.terminal = !0, n = Math.max(n, u.priority));
	        }p.scope = t && !0 === t.scope;p.transcludeOnThisElement = G;p.templateOnThisElement = P;p.transclude = R;l.hasElementTranscludeDirective = N;return p;
	      }function X(a, b, c, d) {
	        var e;if (C(b)) {
	          var f = b.match(l);b = b.substring(f[0].length);
	          var g = f[1] || f[3],
	              f = "?" === f[2];"^^" === g ? c = c.parent() : e = (e = d && d[b]) && e.instance;if (!e) {
	            var h = "$" + b + "Controller";e = "^^" === g && c[0] && 9 === c[0].nodeType ? null : g ? c.inheritedData(h) : c.data(h);
	          }if (!e && !f) throw $("ctreq", b, a);
	        } else if (H(b)) for (e = [], g = 0, f = b.length; g < f; g++) {
	          e[g] = X(a, b[g], c, d);
	        } else D(b) && (e = {}, r(b, function (b, f) {
	          e[f] = X(a, b, c, d);
	        }));return e || null;
	      }function ea(a, b, c, d, e, f, g) {
	        var h = T(),
	            k;for (k in d) {
	          var l = d[k],
	              m = { $scope: l === g || l.$$isolateScope ? e : f, $element: a, $attrs: b, $transclude: c },
	              p = l.controller;"@" === p && (p = b[l.name]);m = M(p, m, !0, l.controllerAs);h[l.name] = m;a.data("$" + l.name + "Controller", m.instance);
	        }return h;
	      }function fa(a, b, c) {
	        for (var d = 0, e = a.length; d < e; d++) {
	          a[d] = bc(a[d], { $$isolateScope: b, $$newScope: c });
	        }
	      }function Y(b, c, e, g, h, k, l) {
	        if (c === h) return null;var m = null;if (f.hasOwnProperty(c)) {
	          h = a.get(c + "Directive");for (var p = 0, n = h.length; p < n; p++) {
	            if (c = h[p], (A(g) || g > c.priority) && -1 !== c.restrict.indexOf(e)) {
	              k && (c = bc(c, { $$start: k, $$end: l }));if (!c.$$bindings) {
	                var I = m = c,
	                    t = c.name,
	                    u = { isolateScope: null, bindToController: null };
	                D(I.scope) && (!0 === I.bindToController ? (u.bindToController = d(I.scope, t, !0), u.isolateScope = {}) : u.isolateScope = d(I.scope, t, !1));D(I.bindToController) && (u.bindToController = d(I.bindToController, t, !0));if (u.bindToController && !I.controller) throw $("noctrl", t);m = m.$$bindings = u;D(m.isolateScope) && (c.$$isolateBindings = m.isolateScope);
	              }b.push(c);m = c;
	            }
	          }
	        }return m;
	      }function ca(b) {
	        if (f.hasOwnProperty(b)) for (var c = a.get(b + "Directive"), d = 0, e = c.length; d < e; d++) {
	          if (b = c[d], b.multiElement) return !0;
	        }return !1;
	      }function ga(a, b) {
	        var c = b.$attr,
	            d = a.$attr;r(a, function (d, e) {
	          "$" !== e.charAt(0) && (b[e] && b[e] !== d && (d = d.length ? d + (("style" === e ? ";" : " ") + b[e]) : b[e]), a.$set(e, d, !0, c[e]));
	        });r(b, function (b, e) {
	          a.hasOwnProperty(e) || "$" === e.charAt(0) || (a[e] = b, "class" !== e && "style" !== e && (d[e] = c[e]));
	        });
	      }function ha(a, b, d, f, g, h, k, l) {
	        var m = [],
	            p,
	            n,
	            t = b[0],
	            u = a.shift(),
	            J = bc(u, { templateUrl: null, transclude: null, replace: null, $$originalDirective: u }),
	            s = B(u.templateUrl) ? u.templateUrl(b, d) : u.templateUrl,
	            L = u.templateNamespace;b.empty();e(s).then(function (c) {
	          var e, I;c = Na(c);if (u.replace) {
	            c = nc.test(c) ? td(ja(L, V(c))) : [];e = c[0];if (1 !== c.length || 1 !== e.nodeType) throw $("tplrt", u.name, s);c = { $attr: {} };oa(f, b, e);var v = tc(e, [], c);D(u.scope) && fa(v, !0);a = v.concat(a);ga(d, c);
	          } else e = t, b.html(c);a.unshift(J);p = aa(a, e, d, g, b, u, h, k, l);r(f, function (a, c) {
	            a === e && (f[c] = b[0]);
	          });for (n = Xa(b[0].childNodes, g); m.length;) {
	            c = m.shift();I = m.shift();var y = m.shift(),
	                P = m.shift(),
	                v = b[0];if (!c.$$destroyed) {
	              if (I !== t) {
	                var G = I.className;l.hasElementTranscludeDirective && u.replace || (v = qc(e));oa(y, x(I), v);sa(x(v), G);
	              }I = p.transcludeOnThisElement ? ka(c, p.transclude, P) : P;p(n, c, v, f, I);
	            }
	          }m = null;
	        }).catch(function (a) {
	          dc(a) && c(a);
	        });return function (a, b, c, d, e) {
	          a = e;b.$$destroyed || (m ? m.push(b, c, d, a) : (p.transcludeOnThisElement && (a = ka(b, p.transclude, e)), p(n, b, c, d, a)));
	        };
	      }function ia(a, b) {
	        var c = b.priority - a.priority;return 0 !== c ? c : a.name !== b.name ? a.name < b.name ? -1 : 1 : a.index - b.index;
	      }function ba(a, b, c, d) {
	        function e(a) {
	          return a ? " (module: " + a + ")" : "";
	        }if (b) throw $("multidir", b.name, e(b.$$moduleName), c.name, e(c.$$moduleName), a, Aa(d));
	      }function na(a, c) {
	        var d = b(c, !0);d && a.push({ priority: 0, compile: function compile(a) {
	            a = a.parent();var b = !!a.length;b && da.$$addBindingClass(a);return function (a, c) {
	              var e = c.parent();b || da.$$addBindingClass(e);da.$$addBindingInfo(e, d.expressions);a.$watch(d, function (a) {
	                c[0].nodeValue = a;
	              });
	            };
	          } });
	      }function ja(a, b) {
	        a = K(a || "html");switch (a) {case "svg":case "math":
	            var c = z.document.createElement("div");c.innerHTML = "<" + a + ">" + b + "</" + a + ">";return c.childNodes[0].childNodes;default:
	            return b;}
	      }function qa(a, b) {
	        if ("srcdoc" === b) return u.HTML;if ("src" === b || "ngSrc" === b) return -1 === ["img", "video", "audio", "source", "track"].indexOf(a) ? u.RESOURCE_URL : u.MEDIA_URL;if ("xlinkHref" === b) return "image" === a ? u.MEDIA_URL : "a" === a ? u.URL : u.RESOURCE_URL;if ("form" === a && "action" === b || "base" === a && "href" === b || "link" === a && "href" === b) return u.RESOURCE_URL;if ("a" === a && ("href" === b || "ngHref" === b)) return u.URL;
	      }function ya(a, b) {
	        var c = b.toLowerCase();return v[a + "|" + c] || v["*|" + c];
	      }function za(a) {
	        return ma(u.valueOf(a), "ng-prop-srcset");
	      }function Ea(a, b, c, d) {
	        if (m.test(d)) throw $("nodomevents");a = ua(a);var e = ya(a, d),
	            f = Ta;"srcset" !== d || "img" !== a && "source" !== a ? e && (f = u.getTrusted.bind(u, e)) : f = za;b.push({ priority: 100, compile: function compile(a, b) {
	            var e = p(b[c]),
	                g = p(b[c], function (a) {
	              return u.valueOf(a);
	            });return { pre: function pre(a, b) {
	                function c() {
	                  var g = e(a);b[0][d] = f(g);
	                }c();a.$watch(g, c);
	              } };
	          } });
	      }function Ia(a, c, d, e, f) {
	        var g = ua(a),
	            k = qa(g, e),
	            l = h[e] || f,
	            p = b(d, !f, k, l);if (p) {
	          if ("multiple" === e && "select" === g) throw $("selmulti", Aa(a));if (m.test(e)) throw $("nodomevents");c.push({ priority: 100,
	            compile: function compile() {
	              return { pre: function pre(a, c, f) {
	                  c = f.$$observers || (f.$$observers = T());var g = f[e];g !== d && (p = g && b(g, !0, k, l), d = g);p && (f[e] = p(a), (c[e] || (c[e] = [])).$$inter = !0, (f.$$observers && f.$$observers[e].$$scope || a).$watch(p, function (a, b) {
	                    "class" === e && a !== b ? f.$updateClass(a, b) : f.$set(e, a);
	                  }));
	                } };
	            } });
	        }
	      }function oa(a, b, c) {
	        var d = b[0],
	            e = b.length,
	            f = d.parentNode,
	            g,
	            h;if (a) for (g = 0, h = a.length; g < h; g++) {
	          if (a[g] === d) {
	            a[g++] = c;h = g + e - 1;for (var k = a.length; g < k; g++, h++) {
	              h < k ? a[g] = a[h] : delete a[g];
	            }a.length -= e - 1;a.context === d && (a.context = c);break;
	          }
	        }f && f.replaceChild(c, d);a = z.document.createDocumentFragment();for (g = 0; g < e; g++) {
	          a.appendChild(b[g]);
	        }x.hasData(d) && (x.data(c, x.data(d)), x(d).off("$destroy"));x.cleanData(a.querySelectorAll("*"));for (g = 1; g < e; g++) {
	          delete b[g];
	        }b[0] = c;b.length = 1;
	      }function Ba(a, b) {
	        return S(function () {
	          return a.apply(null, arguments);
	        }, a, b);
	      }function Ca(a, b, d, e, f, g) {
	        try {
	          a(b, d, e, f, g);
	        } catch (h) {
	          c(h, Aa(d));
	        }
	      }function ra(a, b) {
	        if (s) throw $("missingattr", a, b);
	      }function Da(a, c, d, e, f) {
	        function g(b, c, e) {
	          B(d.$onChanges) && !ec(c, e) && (Ua || (a.$$postDigest(q), Ua = []), m || (m = {}, Ua.push(h)), m[b] && (e = m[b].previousValue), m[b] = new Kb(e, c));
	        }function h() {
	          d.$onChanges(m);m = void 0;
	        }var k = [],
	            l = {},
	            m;r(e, function (e, h) {
	          var m = e.attrName,
	              n = e.optional,
	              I,
	              t,
	              u,
	              s;switch (e.mode) {case "@":
	              n || ta.call(c, m) || (ra(m, f.name), d[h] = c[m] = void 0);n = c.$observe(m, function (a) {
	                if (C(a) || Ga(a)) g(h, a, d[h]), d[h] = a;
	              });c.$$observers[m].$$scope = a;I = c[m];C(I) ? d[h] = b(I)(a) : Ga(I) && (d[h] = I);l[h] = new Kb(uc, d[h]);k.push(n);break;case "=":
	              if (!ta.call(c, m)) {
	                if (n) break;ra(m, f.name);c[m] = void 0;
	              }if (n && !c[m]) break;t = p(c[m]);s = t.literal ? va : ec;u = t.assign || function () {
	                I = d[h] = t(a);throw $("nonassign", c[m], m, f.name);
	              };I = d[h] = t(a);n = function n(b) {
	                s(b, d[h]) || (s(b, I) ? u(a, b = d[h]) : d[h] = b);return I = b;
	              };n.$stateful = !0;n = e.collection ? a.$watchCollection(c[m], n) : a.$watch(p(c[m], n), null, t.literal);k.push(n);break;case "<":
	              if (!ta.call(c, m)) {
	                if (n) break;ra(m, f.name);c[m] = void 0;
	              }if (n && !c[m]) break;t = p(c[m]);var v = t.literal,
	                  L = d[h] = t(a);l[h] = new Kb(uc, d[h]);n = a[e.collection ? "$watchCollection" : "$watch"](t, function (a, b) {
	                if (b === a) {
	                  if (b === L || v && va(b, L)) return;b = L;
	                }g(h, a, b);d[h] = a;
	              });k.push(n);break;case "&":
	              n || ta.call(c, m) || ra(m, f.name);t = c.hasOwnProperty(m) ? p(c[m]) : E;if (t === E && n) break;d[h] = function (b) {
	                return t(a, b);
	              };}
	        });return { initialChanges: l, removeWatches: k.length && function () {
	            for (var a = 0, b = k.length; a < b; ++a) {
	              k[a]();
	            }
	          } };
	      }var Ma = /^\w/,
	          Fa = z.document.createElement("div"),
	          Oa = t,
	          Qa = N,
	          Ja = G,
	          Ua;w.prototype = { $normalize: xa, $addClass: function $addClass(a) {
	          a && 0 < a.length && R.addClass(this.$$element, a);
	        }, $removeClass: function $removeClass(a) {
	          a && 0 < a.length && R.removeClass(this.$$element, a);
	        }, $updateClass: function $updateClass(a, b) {
	          var c = ud(a, b);c && c.length && R.addClass(this.$$element, c);(c = ud(b, a)) && c.length && R.removeClass(this.$$element, c);
	        }, $set: function $set(a, b, d, e) {
	          var f = nd(this.$$element[0], a),
	              g = vd[a],
	              h = a;f ? (this.$$element.prop(a, b), e = f) : g && (this[g] = b, h = g);this[a] = b;e ? this.$attr[a] = e : (e = this.$attr[a]) || (this.$attr[a] = e = Xc(a, "-"));"img" === ua(this.$$element) && "srcset" === a && (this[a] = b = ma(b, "$set('srcset', value)"));!1 !== d && (null === b || A(b) ? this.$$element.removeAttr(e) : Ma.test(e) ? f && !1 === b ? this.$$element.removeAttr(e) : this.$$element.attr(e, b) : O(this.$$element[0], e, b));(a = this.$$observers) && r(a[h], function (a) {
	            try {
	              a(b);
	            } catch (d) {
	              c(d);
	            }
	          });
	        }, $observe: function $observe(a, b) {
	          var c = this,
	              d = c.$$observers || (c.$$observers = T()),
	              e = d[a] || (d[a] = []);e.push(b);L.$evalAsync(function () {
	            e.$$inter || !c.hasOwnProperty(a) || A(c[a]) || b(c[a]);
	          });return function () {
	            cb(e, b);
	          };
	        } };var Ka = b.startSymbol(),
	          La = b.endSymbol(),
	          Na = "{{" === Ka && "}}" === La ? Ta : function (a) {
	        return a.replace(/\{\{/g, Ka).replace(/}}/g, La);
	      },
	          Ra = /^ng(Attr|Prop|On)([A-Z].*)$/,
	          Sa = /^(.+)Start$/;da.$$addBindingInfo = n ? function (a, b) {
	        var c = a.data("$binding") || [];H(b) ? c = c.concat(b) : c.push(b);a.data("$binding", c);
	      } : E;da.$$addBindingClass = n ? function (a) {
	        sa(a, "ng-binding");
	      } : E;da.$$addScopeInfo = n ? function (a, b, c, d) {
	        a.data(c ? d ? "$isolateScopeNoTemplate" : "$isolateScope" : "$scope", b);
	      } : E;da.$$addScopeClass = n ? function (a, b) {
	        sa(a, b ? "ng-isolate-scope" : "ng-scope");
	      } : E;da.$$createComment = function (a, b) {
	        var c = "";n && (c = " " + (a || "") + ": ", b && (c += b + " "));return z.document.createComment(c);
	      };
	      return da;
	    }];
	  }function Kb(a, b) {
	    this.previousValue = a;this.currentValue = b;
	  }function xa(a) {
	    return a.replace(rd, "").replace(Jg, function (a, d, c) {
	      return c ? d.toUpperCase() : d;
	    });
	  }function ud(a, b) {
	    var d = "",
	        c = a.split(/\s+/),
	        e = b.split(/\s+/),
	        f = 0;a: for (; f < c.length; f++) {
	      for (var g = c[f], k = 0; k < e.length; k++) {
	        if (g === e[k]) continue a;
	      }d += (0 < d.length ? " " : "") + g;
	    }return d;
	  }function td(a) {
	    a = x(a);var b = a.length;if (1 >= b) return a;for (; b--;) {
	      var d = a[b];(8 === d.nodeType || d.nodeType === Pa && "" === d.nodeValue.trim()) && Kg.call(a, b, 1);
	    }return a;
	  }
	  function Gg(a, b) {
	    if (b && C(b)) return b;if (C(a)) {
	      var d = wd.exec(a);if (d) return d[3];
	    }
	  }function Kf() {
	    var a = {};this.has = function (b) {
	      return a.hasOwnProperty(b);
	    };this.register = function (b, d) {
	      Ja(b, "controller");D(b) ? S(a, b) : a[b] = d;
	    };this.$get = ["$injector", function (b) {
	      function d(a, b, d, g) {
	        if (!a || !D(a.$scope)) throw F("$controller")("noscp", g, b);a.$scope[b] = d;
	      }return function (c, e, f, g) {
	        var k, h, l;f = !0 === f;g && C(g) && (l = g);if (C(c)) {
	          g = c.match(wd);if (!g) throw xd("ctrlfmt", c);h = g[1];l = l || g[3];c = a.hasOwnProperty(h) ? a[h] : Le(e.$scope, h, !0);if (!c) throw xd("ctrlreg", h);tb(c, h, !0);
	        }if (f) return f = (H(c) ? c[c.length - 1] : c).prototype, k = Object.create(f || null), l && d(e, l, k, h || c.name), S(function () {
	          var a = b.invoke(c, k, e, h);a !== k && (D(a) || B(a)) && (k = a, l && d(e, l, k, h || c.name));return k;
	        }, { instance: k, identifier: l });k = b.instantiate(c, e, h);l && d(e, l, k, h || c.name);return k;
	      };
	    }];
	  }function Lf() {
	    this.$get = ["$window", function (a) {
	      return x(a.document);
	    }];
	  }function Mf() {
	    this.$get = ["$document", "$rootScope", function (a, b) {
	      function d() {
	        e = c.hidden;
	      }var c = a[0],
	          e = c && c.hidden;
	      a.on("visibilitychange", d);b.$on("$destroy", function () {
	        a.off("visibilitychange", d);
	      });return function () {
	        return e;
	      };
	    }];
	  }function Nf() {
	    this.$get = ["$log", function (a) {
	      return function (b, d) {
	        a.error.apply(a, arguments);
	      };
	    }];
	  }function vc(a) {
	    return D(a) ? ha(a) ? a.toISOString() : eb(a) : a;
	  }function Tf() {
	    this.$get = function () {
	      return function (a) {
	        if (!a) return "";var b = [];Qc(a, function (a, c) {
	          null === a || A(a) || B(a) || (H(a) ? r(a, function (a) {
	            b.push(ba(c) + "=" + ba(vc(a)));
	          }) : b.push(ba(c) + "=" + ba(vc(a))));
	        });return b.join("&");
	      };
	    };
	  }function Uf() {
	    this.$get = function () {
	      return function (a) {
	        function b(a, e, f) {
	          H(a) ? r(a, function (a, c) {
	            b(a, e + "[" + (D(a) ? c : "") + "]");
	          }) : D(a) && !ha(a) ? Qc(a, function (a, c) {
	            b(a, e + (f ? "" : "[") + c + (f ? "" : "]"));
	          }) : (B(a) && (a = a()), d.push(ba(e) + "=" + (null == a ? "" : ba(vc(a)))));
	        }if (!a) return "";var d = [];b(a, "", !0);return d.join("&");
	      };
	    };
	  }function wc(a, b) {
	    if (C(a)) {
	      var d = a.replace(Lg, "").trim();if (d) {
	        var c = b("Content-Type"),
	            c = c && 0 === c.indexOf(yd),
	            e;(e = c) || (e = (e = d.match(Mg)) && Ng[e[0]].test(d));if (e) try {
	          a = Tc(d);
	        } catch (f) {
	          if (!c) return a;throw Lb("baddata", a, f);
	        }
	      }
	    }return a;
	  }
	  function zd(a) {
	    var b = T(),
	        d;C(a) ? r(a.split("\n"), function (a) {
	      d = a.indexOf(":");var e = K(V(a.substr(0, d)));a = V(a.substr(d + 1));e && (b[e] = b[e] ? b[e] + ", " + a : a);
	    }) : D(a) && r(a, function (a, d) {
	      var f = K(d),
	          g = V(a);f && (b[f] = b[f] ? b[f] + ", " + g : g);
	    });return b;
	  }function Ad(a) {
	    var b;return function (d) {
	      b || (b = zd(a));return d ? (d = b[K(d)], void 0 === d && (d = null), d) : b;
	    };
	  }function Bd(a, b, d, c) {
	    if (B(c)) return c(a, b, d);r(c, function (c) {
	      a = c(a, b, d);
	    });return a;
	  }function Sf() {
	    var a = this.defaults = { transformResponse: [wc], transformRequest: [function (a) {
	        return D(a) && "[object File]" !== la.call(a) && "[object Blob]" !== la.call(a) && "[object FormData]" !== la.call(a) ? eb(a) : a;
	      }], headers: { common: { Accept: "application/json, text/plain, */*" }, post: ja(xc), put: ja(xc), patch: ja(xc) }, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", paramSerializer: "$httpParamSerializer", jsonpCallbackParam: "callback" },
	        b = !1;this.useApplyAsync = function (a) {
	      return w(a) ? (b = !!a, this) : b;
	    };var d = this.interceptors = [],
	        c = this.xsrfTrustedOrigins = [];Object.defineProperty(this, "xsrfWhitelistedOrigins", { get: function get() {
	        return this.xsrfTrustedOrigins;
	      }, set: function set(a) {
	        this.xsrfTrustedOrigins = a;
	      } });this.$get = ["$browser", "$httpBackend", "$$cookieReader", "$cacheFactory", "$rootScope", "$q", "$injector", "$sce", function (e, f, g, k, h, l, m, p) {
	      function n(b) {
	        function c(a, b) {
	          for (var d = 0, e = b.length; d < e;) {
	            var f = b[d++],
	                g = b[d++];a = a.then(f, g);
	          }b.length = 0;return a;
	        }function d(a, b) {
	          var c,
	              e = {};r(a, function (a, d) {
	            B(a) ? (c = a(b), null != c && (e[d] = c)) : e[d] = a;
	          });return e;
	        }function f(a) {
	          var b = S({}, a);b.data = Bd(a.data, a.headers, a.status, g.transformResponse);
	          a = a.status;return 200 <= a && 300 > a ? b : l.reject(b);
	        }if (!D(b)) throw F("$http")("badreq", b);if (!C(p.valueOf(b.url))) throw F("$http")("badreq", b.url);var g = S({ method: "get", transformRequest: a.transformRequest, transformResponse: a.transformResponse, paramSerializer: a.paramSerializer, jsonpCallbackParam: a.jsonpCallbackParam }, b);g.headers = function (b) {
	          var c = a.headers,
	              e = S({}, b.headers),
	              f,
	              g,
	              h,
	              c = S({}, c.common, c[K(b.method)]);a: for (f in c) {
	            g = K(f);for (h in e) {
	              if (K(h) === g) continue a;
	            }e[f] = c[f];
	          }return d(e, ja(b));
	        }(b);g.method = vb(g.method);g.paramSerializer = C(g.paramSerializer) ? m.get(g.paramSerializer) : g.paramSerializer;e.$$incOutstandingRequestCount("$http");var h = [],
	            k = [];b = l.resolve(g);r(v, function (a) {
	          (a.request || a.requestError) && h.unshift(a.request, a.requestError);(a.response || a.responseError) && k.push(a.response, a.responseError);
	        });b = c(b, h);b = b.then(function (b) {
	          var c = b.headers,
	              d = Bd(b.data, Ad(c), void 0, b.transformRequest);A(d) && r(c, function (a, b) {
	            "content-type" === K(b) && delete c[b];
	          });A(b.withCredentials) && !A(a.withCredentials) && (b.withCredentials = a.withCredentials);return s(b, d).then(f, f);
	        });b = c(b, k);return b = b.finally(function () {
	          e.$$completeOutstandingRequest(E, "$http");
	        });
	      }function s(c, d) {
	        function e(a) {
	          if (a) {
	            var c = {};r(a, function (a, d) {
	              c[d] = function (c) {
	                function d() {
	                  a(c);
	                }b ? h.$applyAsync(d) : h.$$phase ? d() : h.$apply(d);
	              };
	            });return c;
	          }
	        }function k(a, c, d, e, f) {
	          function g() {
	            m(c, a, d, e, f);
	          }R && (200 <= a && 300 > a ? R.put(O, [a, c, zd(d), e, f]) : R.remove(O));b ? h.$applyAsync(g) : (g(), h.$$phase || h.$apply());
	        }function m(a, b, d, e, f) {
	          b = -1 <= b ? b : 0;(200 <= b && 300 > b ? L.resolve : L.reject)({ data: a, status: b, headers: Ad(d), config: c, statusText: e, xhrStatus: f });
	        }function s(a) {
	          m(a.data, a.status, ja(a.headers()), a.statusText, a.xhrStatus);
	        }function v() {
	          var a = n.pendingRequests.indexOf(c);-1 !== a && n.pendingRequests.splice(a, 1);
	        }var L = l.defer(),
	            u = L.promise,
	            R,
	            q,
	            ma = c.headers,
	            x = "jsonp" === K(c.method),
	            O = c.url;x ? O = p.getTrustedResourceUrl(O) : C(O) || (O = p.valueOf(O));O = G(O, c.paramSerializer(c.params));x && (O = t(O, c.jsonpCallbackParam));n.pendingRequests.push(c);u.then(v, v);!c.cache && !a.cache || !1 === c.cache || "GET" !== c.method && "JSONP" !== c.method || (R = D(c.cache) ? c.cache : D(a.cache) ? a.cache : N);R && (q = R.get(O), w(q) ? q && B(q.then) ? q.then(s, s) : H(q) ? m(q[1], q[0], ja(q[2]), q[3], q[4]) : m(q, 200, {}, "OK", "complete") : R.put(O, u));A(q) && ((q = kc(c.url) ? g()[c.xsrfCookieName || a.xsrfCookieName] : void 0) && (ma[c.xsrfHeaderName || a.xsrfHeaderName] = q), f(c.method, O, d, k, ma, c.timeout, c.withCredentials, c.responseType, e(c.eventHandlers), e(c.uploadEventHandlers)));return u;
	      }function G(a, b) {
	        0 < b.length && (a += (-1 === a.indexOf("?") ? "?" : "&") + b);return a;
	      }function t(a, b) {
	        var c = a.split("?");if (2 < c.length) throw Lb("badjsonp", a);c = hc(c[1]);r(c, function (c, d) {
	          if ("JSON_CALLBACK" === c) throw Lb("badjsonp", a);if (d === b) throw Lb("badjsonp", b, a);
	        });return a += (-1 === a.indexOf("?") ? "?" : "&") + b + "=JSON_CALLBACK";
	      }var N = k("$http");a.paramSerializer = C(a.paramSerializer) ? m.get(a.paramSerializer) : a.paramSerializer;var v = [];r(d, function (a) {
	        v.unshift(C(a) ? m.get(a) : m.invoke(a));
	      });var kc = Og(c);n.pendingRequests = [];(function (a) {
	        r(arguments, function (a) {
	          n[a] = function (b, c) {
	            return n(S({}, c || {}, { method: a, url: b }));
	          };
	        });
	      })("get", "delete", "head", "jsonp");(function (a) {
	        r(arguments, function (a) {
	          n[a] = function (b, c, d) {
	            return n(S({}, d || {}, { method: a, url: b, data: c }));
	          };
	        });
	      })("post", "put", "patch");n.defaults = a;return n;
	    }];
	  }function Wf() {
	    this.$get = function () {
	      return function () {
	        return new z.XMLHttpRequest();
	      };
	    };
	  }function Vf() {
	    this.$get = ["$browser", "$jsonpCallbacks", "$document", "$xhrFactory", function (a, b, d, c) {
	      return Pg(a, c, a.defer, b, d[0]);
	    }];
	  }function Pg(a, b, d, c, e) {
	    function f(a, b, d) {
	      a = a.replace("JSON_CALLBACK", b);var f = e.createElement("script"),
	          _m = null;f.type = "text/javascript";f.src = a;f.async = !0;_m = function m(a) {
	        f.removeEventListener("load", _m);f.removeEventListener("error", _m);e.body.removeChild(f);f = null;var g = -1,
	            s = "unknown";a && ("load" !== a.type || c.wasCalled(b) || (a = { type: "error" }), s = a.type, g = "error" === a.type ? 404 : 200);d && d(g, s);
	      };f.addEventListener("load", _m);f.addEventListener("error", _m);e.body.appendChild(f);return _m;
	    }return function (e, k, h, l, m, p, n, s, G, t) {
	      function N(a) {
	        J = "timeout" === a;pa && pa();y && y.abort();
	      }function v(a, b, c, e, f, g) {
	        w(P) && d.cancel(P);pa = y = null;a(b, c, e, f, g);
	      }k = k || a.url();if ("jsonp" === K(e)) var q = c.createCallback(k),
	          pa = f(k, q, function (a, b) {
	        var d = 200 === a && c.getResponse(q);v(l, a, d, "", b, "complete");c.removeCallback(q);
	      });else {
	        var y = b(e, k),
	            J = !1;y.open(e, k, !0);r(m, function (a, b) {
	          w(a) && y.setRequestHeader(b, a);
	        });y.onload = function () {
	          var a = y.statusText || "",
	              b = "response" in y ? y.response : y.responseText,
	              c = 1223 === y.status ? 204 : y.status;0 === c && (c = b ? 200 : "file" === ga(k).protocol ? 404 : 0);v(l, c, b, y.getAllResponseHeaders(), a, "complete");
	        };
	        y.onerror = function () {
	          v(l, -1, null, null, "", "error");
	        };y.ontimeout = function () {
	          v(l, -1, null, null, "", "timeout");
	        };y.onabort = function () {
	          v(l, -1, null, null, "", J ? "timeout" : "abort");
	        };r(G, function (a, b) {
	          y.addEventListener(b, a);
	        });r(t, function (a, b) {
	          y.upload.addEventListener(b, a);
	        });n && (y.withCredentials = !0);if (s) try {
	          y.responseType = s;
	        } catch (I) {
	          if ("json" !== s) throw I;
	        }y.send(A(h) ? null : h);
	      }if (0 < p) var P = d(function () {
	        N("timeout");
	      }, p);else p && B(p.then) && p.then(function () {
	        N(w(p.$$timeoutId) ? "timeout" : "abort");
	      });
	    };
	  }function Pf() {
	    var a = "{{",
	        b = "}}";this.startSymbol = function (b) {
	      return b ? (a = b, this) : a;
	    };this.endSymbol = function (a) {
	      return a ? (b = a, this) : b;
	    };this.$get = ["$parse", "$exceptionHandler", "$sce", function (d, c, e) {
	      function f(a) {
	        return "\\\\\\" + a;
	      }function g(c) {
	        return c.replace(p, a).replace(n, b);
	      }function k(a, b, c, d) {
	        var e = a.$watch(function (a) {
	          e();return d(a);
	        }, b, c);return e;
	      }function h(f, h, n, p) {
	        function v(a) {
	          try {
	            return a = n && !r ? e.getTrusted(n, a) : e.valueOf(a), p && !w(a) ? a : jc(a);
	          } catch (b) {
	            c(Ma.interr(f, b));
	          }
	        }var r = n === e.URL || n === e.MEDIA_URL;if (!f.length || -1 === f.indexOf(a)) {
	          if (h) return;h = g(f);r && (h = e.getTrusted(n, h));h = ia(h);h.exp = f;h.expressions = [];h.$$watchDelegate = k;return h;
	        }p = !!p;for (var q, y, J = 0, I = [], P, Q = f.length, M = [], L = [], u; J < Q;) {
	          if (-1 !== (q = f.indexOf(a, J)) && -1 !== (y = f.indexOf(b, q + l))) J !== q && M.push(g(f.substring(J, q))), J = f.substring(q + l, y), I.push(J), J = y + m, L.push(M.length), M.push("");else {
	            J !== Q && M.push(g(f.substring(J)));break;
	          }
	        }u = 1 === M.length && 1 === L.length;var R = r && u ? void 0 : v;P = I.map(function (a) {
	          return d(a, R);
	        });if (!h || I.length) {
	          var x = function x(a) {
	            for (var b = 0, c = I.length; b < c; b++) {
	              if (p && A(a[b])) return;M[L[b]] = a[b];
	            }if (r) return e.getTrusted(n, u ? M[0] : M.join(""));n && 1 < M.length && Ma.throwNoconcat(f);return M.join("");
	          };return S(function (a) {
	            var b = 0,
	                d = I.length,
	                e = Array(d);try {
	              for (; b < d; b++) {
	                e[b] = P[b](a);
	              }return x(e);
	            } catch (g) {
	              c(Ma.interr(f, g));
	            }
	          }, { exp: f, expressions: I, $$watchDelegate: function $$watchDelegate(a, b) {
	              var c;return a.$watchGroup(P, function (d, e) {
	                var f = x(d);b.call(this, f, d !== e ? c : f, a);c = f;
	              });
	            } });
	        }
	      }var l = a.length,
	          m = b.length,
	          p = new RegExp(a.replace(/./g, f), "g"),
	          n = new RegExp(b.replace(/./g, f), "g");h.startSymbol = function () {
	        return a;
	      };h.endSymbol = function () {
	        return b;
	      };return h;
	    }];
	  }function Qf() {
	    this.$get = ["$$intervalFactory", "$window", function (a, b) {
	      var d = {},
	          c = function c(a) {
	        b.clearInterval(a);delete d[a];
	      },
	          e = a(function (a, c, e) {
	        a = b.setInterval(a, c);d[a] = e;return a;
	      }, c);e.cancel = function (a) {
	        if (!a) return !1;if (!a.hasOwnProperty("$$intervalId")) throw Qg("badprom");if (!d.hasOwnProperty(a.$$intervalId)) return !1;a = a.$$intervalId;var b = d[a],
	            e = b.promise;e.$$state && (e.$$state.pur = !0);b.reject("canceled");
	        c(a);return !0;
	      };return e;
	    }];
	  }function Rf() {
	    this.$get = ["$browser", "$q", "$$q", "$rootScope", function (a, b, d, c) {
	      return function (e, f) {
	        return function (g, k, h, l) {
	          function m() {
	            p ? g.apply(null, n) : g(s);
	          }var p = 4 < arguments.length,
	              n = p ? Ha.call(arguments, 4) : [],
	              s = 0,
	              G = w(l) && !l,
	              t = (G ? d : b).defer(),
	              r = t.promise;h = w(h) ? h : 0;r.$$intervalId = e(function () {
	            G ? a.defer(m) : c.$evalAsync(m);t.notify(s++);0 < h && s >= h && (t.resolve(s), f(r.$$intervalId));G || c.$apply();
	          }, k, t, G);return r;
	        };
	      };
	    }];
	  }function Cd(a, b) {
	    var d = ga(a);b.$$protocol = d.protocol;b.$$host = d.hostname;b.$$port = fa(d.port) || Rg[d.protocol] || null;
	  }function Dd(a, b, d) {
	    if (Sg.test(a)) throw kb("badpath", a);var c = "/" !== a.charAt(0);c && (a = "/" + a);a = ga(a);for (var c = (c && "/" === a.pathname.charAt(0) ? a.pathname.substring(1) : a.pathname).split("/"), e = c.length; e--;) {
	      c[e] = decodeURIComponent(c[e]), d && (c[e] = c[e].replace(/\//g, "%2F"));
	    }d = c.join("/");b.$$path = d;b.$$search = hc(a.search);b.$$hash = decodeURIComponent(a.hash);b.$$path && "/" !== b.$$path.charAt(0) && (b.$$path = "/" + b.$$path);
	  }function yc(a, b) {
	    return a.slice(0, b.length) === b;
	  }function ya(a, b) {
	    if (yc(b, a)) return b.substr(a.length);
	  }function Da(a) {
	    var b = a.indexOf("#");return -1 === b ? a : a.substr(0, b);
	  }function zc(a, b, d) {
	    this.$$html5 = !0;d = d || "";Cd(a, this);this.$$parse = function (a) {
	      var d = ya(b, a);if (!C(d)) throw kb("ipthprfx", a, b);Dd(d, this, !0);this.$$path || (this.$$path = "/");this.$$compose();
	    };this.$$normalizeUrl = function (a) {
	      return b + a.substr(1);
	    };this.$$parseLinkUrl = function (c, e) {
	      if (e && "#" === e[0]) return this.hash(e.slice(1)), !0;var f, g;w(f = ya(a, c)) ? (g = f, g = d && w(f = ya(d, f)) ? b + (ya("/", f) || f) : a + g) : w(f = ya(b, c)) ? g = b + f : b === c + "/" && (g = b);g && this.$$parse(g);return !!g;
	    };
	  }function Ac(a, b, d) {
	    Cd(a, this);this.$$parse = function (c) {
	      var e = ya(a, c) || ya(b, c),
	          f;A(e) || "#" !== e.charAt(0) ? this.$$html5 ? f = e : (f = "", A(e) && (a = c, this.replace())) : (f = ya(d, e), A(f) && (f = e));Dd(f, this, !1);c = this.$$path;var e = a,
	          g = /^\/[A-Z]:(\/.*)/;yc(f, e) && (f = f.replace(e, ""));g.exec(f) || (c = (f = g.exec(c)) ? f[1] : c);this.$$path = c;this.$$compose();
	    };this.$$normalizeUrl = function (b) {
	      return a + (b ? d + b : "");
	    };this.$$parseLinkUrl = function (b, d) {
	      return Da(a) === Da(b) ? (this.$$parse(b), !0) : !1;
	    };
	  }function Ed(a, b, d) {
	    this.$$html5 = !0;Ac.apply(this, arguments);this.$$parseLinkUrl = function (c, e) {
	      if (e && "#" === e[0]) return this.hash(e.slice(1)), !0;var f, g;a === Da(c) ? f = c : (g = ya(b, c)) ? f = a + d + g : b === c + "/" && (f = b);f && this.$$parse(f);return !!f;
	    };this.$$normalizeUrl = function (b) {
	      return a + d + b;
	    };
	  }function Mb(a) {
	    return function () {
	      return this[a];
	    };
	  }function Fd(a, b) {
	    return function (d) {
	      if (A(d)) return this[a];this[a] = b(d);this.$$compose();return this;
	    };
	  }function Yf() {
	    var a = "!",
	        b = { enabled: !1, requireBase: !0, rewriteLinks: !0 };this.hashPrefix = function (b) {
	      return w(b) ? (a = b, this) : a;
	    };this.html5Mode = function (a) {
	      if (Ga(a)) return b.enabled = a, this;if (D(a)) {
	        Ga(a.enabled) && (b.enabled = a.enabled);Ga(a.requireBase) && (b.requireBase = a.requireBase);if (Ga(a.rewriteLinks) || C(a.rewriteLinks)) b.rewriteLinks = a.rewriteLinks;return this;
	      }return b;
	    };this.$get = ["$rootScope", "$browser", "$sniffer", "$rootElement", "$window", function (d, c, e, f, g) {
	      function k(a, b) {
	        return a === b || ga(a).href === ga(b).href;
	      }function h(a, b, d) {
	        var e = m.url(),
	            f = m.$$state;try {
	          c.url(a, b, d), m.$$state = c.state();
	        } catch (g) {
	          throw m.url(e), m.$$state = f, g;
	        }
	      }function l(a, b) {
	        d.$broadcast("$locationChangeSuccess", m.absUrl(), a, m.$$state, b);
	      }var m, p;p = c.baseHref();var n = c.url(),
	          s;if (b.enabled) {
	        if (!p && b.requireBase) throw kb("nobase");s = n.substring(0, n.indexOf("/", n.indexOf("//") + 2)) + (p || "/");p = e.history ? zc : Ed;
	      } else s = Da(n), p = Ac;var r = s.substr(0, Da(s).lastIndexOf("/") + 1);m = new p(s, r, "#" + a);m.$$parseLinkUrl(n, n);m.$$state = c.state();var t = /^\s*(javascript|mailto):/i;
	      f.on("click", function (a) {
	        var e = b.rewriteLinks;if (e && !a.ctrlKey && !a.metaKey && !a.shiftKey && 2 !== a.which && 2 !== a.button) {
	          for (var g = x(a.target); "a" !== ua(g[0]);) {
	            if (g[0] === f[0] || !(g = g.parent())[0]) return;
	          }if (!C(e) || !A(g.attr(e))) {
	            var e = g.prop("href"),
	                h = g.attr("href") || g.attr("xlink:href");D(e) && "[object SVGAnimatedString]" === e.toString() && (e = ga(e.animVal).href);t.test(e) || !e || g.attr("target") || a.isDefaultPrevented() || !m.$$parseLinkUrl(e, h) || (a.preventDefault(), m.absUrl() !== c.url() && d.$apply());
	          }
	        }
	      });m.absUrl() !== n && c.url(m.absUrl(), !0);var N = !0;c.onUrlChange(function (a, b) {
	        yc(a, r) ? (d.$evalAsync(function () {
	          var c = m.absUrl(),
	              e = m.$$state,
	              f;m.$$parse(a);m.$$state = b;f = d.$broadcast("$locationChangeStart", a, c, b, e).defaultPrevented;m.absUrl() === a && (f ? (m.$$parse(c), m.$$state = e, h(c, !1, e)) : (N = !1, l(c, e)));
	        }), d.$$phase || d.$digest()) : g.location.href = a;
	      });d.$watch(function () {
	        if (N || m.$$urlUpdatedByLocation) {
	          m.$$urlUpdatedByLocation = !1;var a = c.url(),
	              b = m.absUrl(),
	              f = c.state(),
	              g = m.$$replace,
	              n = !k(a, b) || m.$$html5 && e.history && f !== m.$$state;if (N || n) N = !1, d.$evalAsync(function () {
	            var b = m.absUrl(),
	                c = d.$broadcast("$locationChangeStart", b, a, m.$$state, f).defaultPrevented;m.absUrl() === b && (c ? (m.$$parse(a), m.$$state = f) : (n && h(b, g, f === m.$$state ? null : m.$$state), l(a, f)));
	          });
	        }m.$$replace = !1;
	      });return m;
	    }];
	  }function Zf() {
	    var a = !0,
	        b = this;this.debugEnabled = function (b) {
	      return w(b) ? (a = b, this) : a;
	    };this.$get = ["$window", function (d) {
	      function c(a) {
	        dc(a) && (a.stack && f ? a = a.message && -1 === a.stack.indexOf(a.message) ? "Error: " + a.message + "\n" + a.stack : a.stack : a.sourceURL && (a = a.message + "\n" + a.sourceURL + ":" + a.line));return a;
	      }function e(a) {
	        var b = d.console || {},
	            e = b[a] || b.log || E;return function () {
	          var a = [];r(arguments, function (b) {
	            a.push(c(b));
	          });return Function.prototype.apply.call(e, b, a);
	        };
	      }var f = wa || /\bEdge\//.test(d.navigator && d.navigator.userAgent);return { log: e("log"), info: e("info"), warn: e("warn"), error: e("error"), debug: function () {
	          var c = e("debug");return function () {
	            a && c.apply(b, arguments);
	          };
	        }() };
	    }];
	  }function Tg(a) {
	    return a + "";
	  }function Ug(a, b) {
	    return "undefined" !== typeof a ? a : b;
	  }function Gd(a, b) {
	    return "undefined" === typeof a ? b : "undefined" === typeof b ? a : a + b;
	  }function Vg(a, b) {
	    switch (a.type) {case q.MemberExpression:
	        if (a.computed) return !1;break;case q.UnaryExpression:
	        return 1;case q.BinaryExpression:
	        return "+" !== a.operator ? 1 : !1;case q.CallExpression:
	        return !1;}return void 0 === b ? Hd : b;
	  }function Z(a, b, d) {
	    var c,
	        e,
	        f = a.isPure = Vg(a, d);switch (a.type) {case q.Program:
	        c = !0;r(a.body, function (a) {
	          Z(a.expression, b, f);c = c && a.expression.constant;
	        });a.constant = c;break;case q.Literal:
	        a.constant = !0;a.toWatch = [];break;case q.UnaryExpression:
	        Z(a.argument, b, f);a.constant = a.argument.constant;a.toWatch = a.argument.toWatch;break;case q.BinaryExpression:
	        Z(a.left, b, f);Z(a.right, b, f);a.constant = a.left.constant && a.right.constant;a.toWatch = a.left.toWatch.concat(a.right.toWatch);break;case q.LogicalExpression:
	        Z(a.left, b, f);Z(a.right, b, f);a.constant = a.left.constant && a.right.constant;a.toWatch = a.constant ? [] : [a];break;case q.ConditionalExpression:
	        Z(a.test, b, f);Z(a.alternate, b, f);Z(a.consequent, b, f);a.constant = a.test.constant && a.alternate.constant && a.consequent.constant;a.toWatch = a.constant ? [] : [a];break;case q.Identifier:
	        a.constant = !1;a.toWatch = [a];break;case q.MemberExpression:
	        Z(a.object, b, f);a.computed && Z(a.property, b, f);a.constant = a.object.constant && (!a.computed || a.property.constant);a.toWatch = a.constant ? [] : [a];break;case q.CallExpression:
	        c = d = a.filter ? !b(a.callee.name).$stateful : !1;e = [];r(a.arguments, function (a) {
	          Z(a, b, f);c = c && a.constant;e.push.apply(e, a.toWatch);
	        });a.constant = c;a.toWatch = d ? e : [a];break;case q.AssignmentExpression:
	        Z(a.left, b, f);Z(a.right, b, f);a.constant = a.left.constant && a.right.constant;a.toWatch = [a];break;case q.ArrayExpression:
	        c = !0;e = [];r(a.elements, function (a) {
	          Z(a, b, f);c = c && a.constant;e.push.apply(e, a.toWatch);
	        });a.constant = c;a.toWatch = e;break;case q.ObjectExpression:
	        c = !0;e = [];r(a.properties, function (a) {
	          Z(a.value, b, f);c = c && a.value.constant;e.push.apply(e, a.value.toWatch);a.computed && (Z(a.key, b, !1), c = c && a.key.constant, e.push.apply(e, a.key.toWatch));
	        });a.constant = c;a.toWatch = e;break;case q.ThisExpression:
	        a.constant = !1;a.toWatch = [];break;case q.LocalsExpression:
	        a.constant = !1, a.toWatch = [];}
	  }function Id(a) {
	    if (1 === a.length) {
	      a = a[0].expression;var b = a.toWatch;return 1 !== b.length ? b : b[0] !== a ? b : void 0;
	    }
	  }function Jd(a) {
	    return a.type === q.Identifier || a.type === q.MemberExpression;
	  }function Kd(a) {
	    if (1 === a.body.length && Jd(a.body[0].expression)) return { type: q.AssignmentExpression, left: a.body[0].expression, right: { type: q.NGValueParameter }, operator: "=" };
	  }function Ld(a) {
	    this.$filter = a;
	  }function Md(a) {
	    this.$filter = a;
	  }function Nb(a, b, d) {
	    this.ast = new q(a, d);this.astCompiler = d.csp ? new Md(b) : new Ld(b);
	  }function Bc(a) {
	    return B(a.valueOf) ? a.valueOf() : Wg.call(a);
	  }function $f() {
	    var a = T(),
	        b = { "true": !0, "false": !1, "null": null, undefined: void 0 },
	        d,
	        c;this.addLiteral = function (a, c) {
	      b[a] = c;
	    };this.setIdentifierFns = function (a, b) {
	      d = a;c = b;return this;
	    };this.$get = ["$filter", function (e) {
	      function f(b, c) {
	        var d, f;switch (typeof b === "undefined" ? "undefined" : _typeof(b)) {case "string":
	            return f = b = b.trim(), d = a[f], d || (d = new Ob(G), d = new Nb(d, e, G).parse(b), a[f] = p(d)), s(d, c);case "function":
	            return s(b, c);default:
	            return s(E, c);}
	      }function g(a, b, c) {
	        return null == a || null == b ? a === b : "object" !== (typeof a === "undefined" ? "undefined" : _typeof(a)) || (a = Bc(a), "object" !== (typeof a === "undefined" ? "undefined" : _typeof(a)) || c) ? a === b || a !== a && b !== b : !1;
	      }function k(a, b, c, d, e) {
	        var f = d.inputs,
	            h;if (1 === f.length) {
	          var k = g,
	              f = f[0];return a.$watch(function (a) {
	            var b = f(a);g(b, k, f.isPure) || (h = d(a, void 0, void 0, [b]), k = b && Bc(b));return h;
	          }, b, c, e);
	        }for (var l = [], m = [], n = 0, p = f.length; n < p; n++) {
	          l[n] = g, m[n] = null;
	        }return a.$watch(function (a) {
	          for (var b = !1, c = 0, e = f.length; c < e; c++) {
	            var k = f[c](a);if (b || (b = !g(k, l[c], f[c].isPure))) m[c] = k, l[c] = k && Bc(k);
	          }b && (h = d(a, void 0, void 0, m));return h;
	        }, b, c, e);
	      }function h(a, b, c, d, e) {
	        function f() {
	          h(m) && k();
	        }function g(a, b, c, d) {
	          m = u && d ? d[0] : n(a, b, c, d);h(m) && a.$$postDigest(f);return s(m);
	        }var h = d.literal ? l : w,
	            k,
	            m,
	            n = d.$$intercepted || d,
	            s = d.$$interceptor || Ta,
	            u = d.inputs && !n.inputs;g.literal = d.literal;g.constant = d.constant;g.inputs = d.inputs;p(g);return k = a.$watch(g, b, c, e);
	      }function l(a) {
	        var b = !0;r(a, function (a) {
	          w(a) || (b = !1);
	        });return b;
	      }function m(a, b, c, d) {
	        var e = a.$watch(function (a) {
	          e();return d(a);
	        }, b, c);return e;
	      }function p(a) {
	        a.constant ? a.$$watchDelegate = m : a.oneTime ? a.$$watchDelegate = h : a.inputs && (a.$$watchDelegate = k);return a;
	      }function n(a, b) {
	        function c(d) {
	          return b(a(d));
	        }c.$stateful = a.$stateful || b.$stateful;c.$$pure = a.$$pure && b.$$pure;return c;
	      }function s(a, b) {
	        if (!b) return a;a.$$interceptor && (b = n(a.$$interceptor, b), a = a.$$intercepted);var c = !1,
	            d = function d(_d2, e, f, g) {
	          _d2 = c && g ? g[0] : a(_d2, e, f, g);return b(_d2);
	        };d.$$intercepted = a;d.$$interceptor = b;d.literal = a.literal;d.oneTime = a.oneTime;d.constant = a.constant;b.$stateful || (c = !a.inputs, d.inputs = a.inputs ? a.inputs : [a], b.$$pure || (d.inputs = d.inputs.map(function (a) {
	          return a.isPure === Hd ? function (b) {
	            return a(b);
	          } : a;
	        })));return p(d);
	      }var G = { csp: Ba().noUnsafeEval, literals: Ia(b), isIdentifierStart: B(d) && d, isIdentifierContinue: B(c) && c };f.$$getAst = function (a) {
	        var b = new Ob(G);return new Nb(b, e, G).getAst(a).ast;
	      };return f;
	    }];
	  }function bg() {
	    var a = !0;this.$get = ["$rootScope", "$exceptionHandler", function (b, d) {
	      return Nd(function (a) {
	        b.$evalAsync(a);
	      }, d, a);
	    }];this.errorOnUnhandledRejections = function (b) {
	      return w(b) ? (a = b, this) : a;
	    };
	  }function cg() {
	    var a = !0;this.$get = ["$browser", "$exceptionHandler", function (b, d) {
	      return Nd(function (a) {
	        b.defer(a);
	      }, d, a);
	    }];this.errorOnUnhandledRejections = function (b) {
	      return w(b) ? (a = b, this) : a;
	    };
	  }function Nd(a, b, d) {
	    function c() {
	      return new e();
	    }function e() {
	      var a = this.promise = new f();this.resolve = function (b) {
	        h(a, b);
	      };this.reject = function (b) {
	        m(a, b);
	      };this.notify = function (b) {
	        n(a, b);
	      };
	    }function f() {
	      this.$$state = { status: 0 };
	    }function g() {
	      for (; !w && x.length;) {
	        var a = x.shift();if (!a.pur) {
	          a.pur = !0;var c = a.value,
	              c = "Possibly unhandled rejection: " + ("function" === typeof c ? c.toString().replace(/ \{[\s\S]*$/, "") : A(c) ? "undefined" : "string" !== typeof c ? Ne(c, void 0) : c);dc(a.value) ? b(a.value, c) : b(c);
	        }
	      }
	    }function k(c) {
	      !d || c.pending || 2 !== c.status || c.pur || (0 === w && 0 === x.length && a(g), x.push(c));!c.processScheduled && c.pending && (c.processScheduled = !0, ++w, a(function () {
	        var e, f, k;k = c.pending;c.processScheduled = !1;c.pending = void 0;try {
	          for (var l = 0, n = k.length; l < n; ++l) {
	            c.pur = !0;f = k[l][0];e = k[l][c.status];try {
	              B(e) ? h(f, e(c.value)) : 1 === c.status ? h(f, c.value) : m(f, c.value);
	            } catch (p) {
	              m(f, p), p && !0 === p.$$passToExceptionHandler && b(p);
	            }
	          }
	        } finally {
	          --w, d && 0 === w && a(g);
	        }
	      }));
	    }function h(a, b) {
	      a.$$state.status || (b === a ? p(a, v("qcycle", b)) : l(a, b));
	    }function l(a, b) {
	      function c(b) {
	        g || (g = !0, l(a, b));
	      }function d(b) {
	        g || (g = !0, p(a, b));
	      }function e(b) {
	        n(a, b);
	      }var f,
	          g = !1;try {
	        if (D(b) || B(b)) f = b.then;B(f) ? (a.$$state.status = -1, f.call(b, c, d, e)) : (a.$$state.value = b, a.$$state.status = 1, k(a.$$state));
	      } catch (h) {
	        d(h);
	      }
	    }function m(a, b) {
	      a.$$state.status || p(a, b);
	    }function p(a, b) {
	      a.$$state.value = b;a.$$state.status = 2;k(a.$$state);
	    }function n(c, d) {
	      var e = c.$$state.pending;0 >= c.$$state.status && e && e.length && a(function () {
	        for (var a, c, f = 0, g = e.length; f < g; f++) {
	          c = e[f][0];a = e[f][3];try {
	            n(c, B(a) ? a(d) : d);
	          } catch (h) {
	            b(h);
	          }
	        }
	      });
	    }function s(a) {
	      var b = new f();m(b, a);return b;
	    }function G(a, b, c) {
	      var d = null;try {
	        B(c) && (d = c());
	      } catch (e) {
	        return s(e);
	      }return d && B(d.then) ? d.then(function () {
	        return b(a);
	      }, s) : b(a);
	    }function t(a, b, c, d) {
	      var e = new f();h(e, a);return e.then(b, c, d);
	    }function q(a) {
	      if (!B(a)) throw v("norslvr", a);var b = new f();a(function (a) {
	        h(b, a);
	      }, function (a) {
	        m(b, a);
	      });return b;
	    }
	    var v = F("$q", TypeError),
	        w = 0,
	        x = [];S(f.prototype, { then: function then(a, b, c) {
	        if (A(a) && A(b) && A(c)) return this;var d = new f();this.$$state.pending = this.$$state.pending || [];this.$$state.pending.push([d, a, b, c]);0 < this.$$state.status && k(this.$$state);return d;
	      }, "catch": function _catch(a) {
	        return this.then(null, a);
	      }, "finally": function _finally(a, b) {
	        return this.then(function (b) {
	          return G(b, y, a);
	        }, function (b) {
	          return G(b, s, a);
	        }, b);
	      } });var y = t;q.prototype = f.prototype;q.defer = c;q.reject = s;q.when = t;q.resolve = y;q.all = function (a) {
	      var b = new f(),
	          c = 0,
	          d = H(a) ? [] : {};r(a, function (a, e) {
	        c++;t(a).then(function (a) {
	          d[e] = a;--c || h(b, d);
	        }, function (a) {
	          m(b, a);
	        });
	      });0 === c && h(b, d);return b;
	    };q.race = function (a) {
	      var b = c();r(a, function (a) {
	        t(a).then(b.resolve, b.reject);
	      });return b.promise;
	    };return q;
	  }function mg() {
	    this.$get = ["$window", "$timeout", function (a, b) {
	      var d = a.requestAnimationFrame || a.webkitRequestAnimationFrame,
	          c = a.cancelAnimationFrame || a.webkitCancelAnimationFrame || a.webkitCancelRequestAnimationFrame,
	          e = !!d,
	          f = e ? function (a) {
	        var b = d(a);return function () {
	          c(b);
	        };
	      } : function (a) {
	        var c = b(a, 16.66, !1);return function () {
	          b.cancel(c);
	        };
	      };f.supported = e;return f;
	    }];
	  }function ag() {
	    function a(a) {
	      function b() {
	        this.$$watchers = this.$$nextSibling = this.$$childHead = this.$$childTail = null;this.$$listeners = {};this.$$listenerCount = {};this.$$watchersCount = 0;this.$id = ++qb;this.$$ChildScope = null;this.$$suspended = !1;
	      }b.prototype = a;return b;
	    }var b = 10,
	        d = F("$rootScope"),
	        c = null,
	        e = null;this.digestTtl = function (a) {
	      arguments.length && (b = a);return b;
	    };this.$get = ["$exceptionHandler", "$parse", "$browser", function (f, g, k) {
	      function h(a) {
	        a.currentScope.$$destroyed = !0;
	      }function l(a) {
	        9 === wa && (a.$$childHead && l(a.$$childHead), a.$$nextSibling && l(a.$$nextSibling));a.$parent = a.$$nextSibling = a.$$prevSibling = a.$$childHead = a.$$childTail = a.$root = a.$$watchers = null;
	      }function m() {
	        this.$id = ++qb;this.$$phase = this.$parent = this.$$watchers = this.$$nextSibling = this.$$prevSibling = this.$$childHead = this.$$childTail = null;this.$root = this;this.$$suspended = this.$$destroyed = !1;this.$$listeners = {};this.$$listenerCount = {};this.$$watchersCount = 0;this.$$isolateBindings = null;
	      }function p(a) {
	        if (v.$$phase) throw d("inprog", v.$$phase);v.$$phase = a;
	      }function n(a, b) {
	        do {
	          a.$$watchersCount += b;
	        } while (a = a.$parent);
	      }function s(a, b, c) {
	        do {
	          a.$$listenerCount[c] -= b, 0 === a.$$listenerCount[c] && delete a.$$listenerCount[c];
	        } while (a = a.$parent);
	      }function G() {}function t() {
	        for (; y.length;) {
	          try {
	            y.shift()();
	          } catch (a) {
	            f(a);
	          }
	        }e = null;
	      }function q() {
	        null === e && (e = k.defer(function () {
	          v.$apply(t);
	        }, null, "$applyAsync"));
	      }m.prototype = { constructor: m, $new: function $new(b, c) {
	          var d;c = c || this;b ? (d = new m(), d.$root = this.$root) : (this.$$ChildScope || (this.$$ChildScope = a(this)), d = new this.$$ChildScope());d.$parent = c;d.$$prevSibling = c.$$childTail;c.$$childHead ? (c.$$childTail.$$nextSibling = d, c.$$childTail = d) : c.$$childHead = c.$$childTail = d;(b || c !== this) && d.$on("$destroy", h);return d;
	        }, $watch: function $watch(a, b, d, e) {
	          var f = g(a);b = B(b) ? b : E;if (f.$$watchDelegate) return f.$$watchDelegate(this, b, d, f, a);var h = this,
	              k = h.$$watchers,
	              l = { fn: b, last: G, get: f, exp: e || a, eq: !!d };c = null;k || (k = h.$$watchers = [], k.$$digestWatchIndex = -1);k.unshift(l);
	          k.$$digestWatchIndex++;n(this, 1);return function () {
	            var a = cb(k, l);0 <= a && (n(h, -1), a < k.$$digestWatchIndex && k.$$digestWatchIndex--);c = null;
	          };
	        }, $watchGroup: function $watchGroup(a, b) {
	          function c() {
	            h = !1;try {
	              k ? (k = !1, b(e, e, g)) : b(e, d, g);
	            } finally {
	              for (var f = 0; f < a.length; f++) {
	                d[f] = e[f];
	              }
	            }
	          }var d = Array(a.length),
	              e = Array(a.length),
	              f = [],
	              g = this,
	              h = !1,
	              k = !0;if (!a.length) {
	            var l = !0;g.$evalAsync(function () {
	              l && b(e, e, g);
	            });return function () {
	              l = !1;
	            };
	          }if (1 === a.length) return this.$watch(a[0], function (a, c, f) {
	            e[0] = a;d[0] = c;b(e, a === c ? e : d, f);
	          });r(a, function (a, b) {
	            var d = g.$watch(a, function (a) {
	              e[b] = a;h || (h = !0, g.$evalAsync(c));
	            });f.push(d);
	          });return function () {
	            for (; f.length;) {
	              f.shift()();
	            }
	          };
	        }, $watchCollection: function $watchCollection(a, b) {
	          function c(a) {
	            e = a;var b, d, g, h;if (!A(e)) {
	              if (D(e)) {
	                if (za(e)) for (f !== n && (f = n, t = f.length = 0, l++), a = e.length, t !== a && (l++, f.length = t = a), b = 0; b < a; b++) {
	                  h = f[b], g = e[b], d = h !== h && g !== g, d || h === g || (l++, f[b] = g);
	                } else {
	                  f !== p && (f = p = {}, t = 0, l++);a = 0;for (b in e) {
	                    ta.call(e, b) && (a++, g = e[b], h = f[b], b in f ? (d = h !== h && g !== g, d || h === g || (l++, f[b] = g)) : (t++, f[b] = g, l++));
	                  }if (t > a) for (b in l++, f) {
	                    ta.call(e, b) || (t--, delete f[b]);
	                  }
	                }
	              } else f !== e && (f = e, l++);return l;
	            }
	          }c.$$pure = g(a).literal;c.$stateful = !c.$$pure;var d = this,
	              e,
	              f,
	              h,
	              k = 1 < b.length,
	              l = 0,
	              m = g(a, c),
	              n = [],
	              p = {},
	              s = !0,
	              t = 0;return this.$watch(m, function () {
	            s ? (s = !1, b(e, e, d)) : b(e, h, d);if (k) if (D(e)) {
	              if (za(e)) {
	                h = Array(e.length);for (var a = 0; a < e.length; a++) {
	                  h[a] = e[a];
	                }
	              } else for (a in h = {}, e) {
	                ta.call(e, a) && (h[a] = e[a]);
	              }
	            } else h = e;
	          });
	        }, $digest: function $digest() {
	          var a,
	              g,
	              h,
	              l,
	              m,
	              n,
	              s,
	              r = b,
	              q,
	              y = w.length ? v : this,
	              N = [],
	              A,
	              z;p("$digest");k.$$checkUrlChange();this === v && null !== e && (k.defer.cancel(e), t());c = null;do {
	            s = !1;q = y;for (n = 0; n < w.length; n++) {
	              try {
	                z = w[n], l = z.fn, l(z.scope, z.locals);
	              } catch (C) {
	                f(C);
	              }c = null;
	            }w.length = 0;a: do {
	              if (n = !q.$$suspended && q.$$watchers) for (n.$$digestWatchIndex = n.length; n.$$digestWatchIndex--;) {
	                try {
	                  if (a = n[n.$$digestWatchIndex]) if (m = a.get, (g = m(q)) !== (h = a.last) && !(a.eq ? va(g, h) : Y(g) && Y(h))) s = !0, c = a, a.last = a.eq ? Ia(g, null) : g, l = a.fn, l(g, h === G ? g : h, q), 5 > r && (A = 4 - r, N[A] || (N[A] = []), N[A].push({ msg: B(a.exp) ? "fn: " + (a.exp.name || a.exp.toString()) : a.exp, newVal: g, oldVal: h }));else if (a === c) {
	                    s = !1;break a;
	                  }
	                } catch (E) {
	                  f(E);
	                }
	              }if (!(n = !q.$$suspended && q.$$watchersCount && q.$$childHead || q !== y && q.$$nextSibling)) for (; q !== y && !(n = q.$$nextSibling);) {
	                q = q.$parent;
	              }
	            } while (q = n);if ((s || w.length) && !r--) throw v.$$phase = null, d("infdig", b, N);
	          } while (s || w.length);for (v.$$phase = null; J < x.length;) {
	            try {
	              x[J++]();
	            } catch (D) {
	              f(D);
	            }
	          }x.length = J = 0;k.$$checkUrlChange();
	        }, $suspend: function $suspend() {
	          this.$$suspended = !0;
	        }, $isSuspended: function $isSuspended() {
	          return this.$$suspended;
	        }, $resume: function $resume() {
	          this.$$suspended = !1;
	        }, $destroy: function $destroy() {
	          if (!this.$$destroyed) {
	            var a = this.$parent;this.$broadcast("$destroy");this.$$destroyed = !0;this === v && k.$$applicationDestroyed();n(this, -this.$$watchersCount);for (var b in this.$$listenerCount) {
	              s(this, this.$$listenerCount[b], b);
	            }a && a.$$childHead === this && (a.$$childHead = this.$$nextSibling);a && a.$$childTail === this && (a.$$childTail = this.$$prevSibling);this.$$prevSibling && (this.$$prevSibling.$$nextSibling = this.$$nextSibling);this.$$nextSibling && (this.$$nextSibling.$$prevSibling = this.$$prevSibling);this.$destroy = this.$digest = this.$apply = this.$evalAsync = this.$applyAsync = E;this.$on = this.$watch = this.$watchGroup = function () {
	              return E;
	            };this.$$listeners = {};this.$$nextSibling = null;l(this);
	          }
	        }, $eval: function $eval(a, b) {
	          return g(a)(this, b);
	        }, $evalAsync: function $evalAsync(a, b) {
	          v.$$phase || w.length || k.defer(function () {
	            w.length && v.$digest();
	          }, null, "$evalAsync");w.push({ scope: this, fn: g(a), locals: b });
	        }, $$postDigest: function $$postDigest(a) {
	          x.push(a);
	        }, $apply: function $apply(a) {
	          try {
	            p("$apply");try {
	              return this.$eval(a);
	            } finally {
	              v.$$phase = null;
	            }
	          } catch (b) {
	            f(b);
	          } finally {
	            try {
	              v.$digest();
	            } catch (c) {
	              throw f(c), c;
	            }
	          }
	        }, $applyAsync: function $applyAsync(a) {
	          function b() {
	            c.$eval(a);
	          }var c = this;a && y.push(b);a = g(a);q();
	        }, $on: function $on(a, b) {
	          var c = this.$$listeners[a];c || (this.$$listeners[a] = c = []);c.push(b);var d = this;do {
	            d.$$listenerCount[a] || (d.$$listenerCount[a] = 0), d.$$listenerCount[a]++;
	          } while (d = d.$parent);var e = this;return function () {
	            var d = c.indexOf(b);-1 !== d && (delete c[d], s(e, 1, a));
	          };
	        }, $emit: function $emit(a, b) {
	          var c = [],
	              d,
	              e = this,
	              g = !1,
	              h = { name: a, targetScope: e, stopPropagation: function stopPropagation() {
	              g = !0;
	            }, preventDefault: function preventDefault() {
	              h.defaultPrevented = !0;
	            }, defaultPrevented: !1 },
	              k = db([h], arguments, 1),
	              l,
	              m;do {
	            d = e.$$listeners[a] || c;h.currentScope = e;l = 0;for (m = d.length; l < m; l++) {
	              if (d[l]) try {
	                d[l].apply(null, k);
	              } catch (n) {
	                f(n);
	              } else d.splice(l, 1), l--, m--;
	            }if (g) break;e = e.$parent;
	          } while (e);h.currentScope = null;return h;
	        }, $broadcast: function $broadcast(a, b) {
	          var c = this,
	              d = this,
	              e = { name: a, targetScope: this, preventDefault: function preventDefault() {
	              e.defaultPrevented = !0;
	            }, defaultPrevented: !1 };if (!this.$$listenerCount[a]) return e;for (var g = db([e], arguments, 1), h, k; c = d;) {
	            e.currentScope = c;d = c.$$listeners[a] || [];h = 0;for (k = d.length; h < k; h++) {
	              if (d[h]) try {
	                d[h].apply(null, g);
	              } catch (l) {
	                f(l);
	              } else d.splice(h, 1), h--, k--;
	            }if (!(d = c.$$listenerCount[a] && c.$$childHead || c !== this && c.$$nextSibling)) for (; c !== this && !(d = c.$$nextSibling);) {
	              c = c.$parent;
	            }
	          }e.currentScope = null;return e;
	        } };var v = new m(),
	          w = v.$$asyncQueue = [],
	          x = v.$$postDigestQueue = [],
	          y = v.$$applyAsyncQueue = [],
	          J = 0;return v;
	    }];
	  }function Qe() {
	    var a = /^\s*(https?|s?ftp|mailto|tel|file):/,
	        b = /^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList = function (b) {
	      return w(b) ? (a = b, this) : a;
	    };this.imgSrcSanitizationTrustedUrlList = function (a) {
	      return w(a) ? (b = a, this) : b;
	    };this.$get = function () {
	      return function (d, c) {
	        var e = c ? b : a,
	            f = ga(d && d.trim()).href;return "" === f || f.match(e) ? d : "unsafe:" + f;
	      };
	    };
	  }function Xg(a) {
	    if ("self" === a) return a;if (C(a)) {
	      if (-1 < a.indexOf("***")) throw Ea("iwcard", a);a = Od(a).replace(/\\\*\\\*/g, ".*").replace(/\\\*/g, "[^:/.?&;]*");return new RegExp("^" + a + "$");
	    }if (ab(a)) return new RegExp("^" + a.source + "$");throw Ea("imatcher");
	  }function Pd(a) {
	    var b = [];w(a) && r(a, function (a) {
	      b.push(Xg(a));
	    });
	    return b;
	  }function eg() {
	    this.SCE_CONTEXTS = W;var a = ["self"],
	        b = [];this.trustedResourceUrlList = function (b) {
	      arguments.length && (a = Pd(b));return a;
	    };Object.defineProperty(this, "resourceUrlWhitelist", { get: function get() {
	        return this.trustedResourceUrlList;
	      }, set: function set(a) {
	        this.trustedResourceUrlList = a;
	      } });this.bannedResourceUrlList = function (a) {
	      arguments.length && (b = Pd(a));return b;
	    };Object.defineProperty(this, "resourceUrlBlacklist", { get: function get() {
	        return this.bannedResourceUrlList;
	      }, set: function set(a) {
	        this.bannedResourceUrlList = a;
	      } });this.$get = ["$injector", "$$sanitizeUri", function (d, c) {
	      function e(a, b) {
	        var c;"self" === a ? (c = Cc(b, Qd)) || (z.document.baseURI ? c = z.document.baseURI : (Na || (Na = z.document.createElement("a"), Na.href = ".", Na = Na.cloneNode(!1)), c = Na.href), c = Cc(b, c)) : c = !!a.exec(b.href);return c;
	      }function f(a) {
	        var b = function b(a) {
	          this.$$unwrapTrustedValue = function () {
	            return a;
	          };
	        };a && (b.prototype = new a());b.prototype.valueOf = function () {
	          return this.$$unwrapTrustedValue();
	        };b.prototype.toString = function () {
	          return this.$$unwrapTrustedValue().toString();
	        };
	        return b;
	      }var g = function g(a) {
	        throw Ea("unsafe");
	      };d.has("$sanitize") && (g = d.get("$sanitize"));var k = f(),
	          h = {};h[W.HTML] = f(k);h[W.CSS] = f(k);h[W.MEDIA_URL] = f(k);h[W.URL] = f(h[W.MEDIA_URL]);h[W.JS] = f(k);h[W.RESOURCE_URL] = f(h[W.URL]);return { trustAs: function trustAs(a, b) {
	          var c = h.hasOwnProperty(a) ? h[a] : null;if (!c) throw Ea("icontext", a, b);if (null === b || A(b) || "" === b) return b;if ("string" !== typeof b) throw Ea("itype", a);return new c(b);
	        }, getTrusted: function getTrusted(d, f) {
	          if (null === f || A(f) || "" === f) return f;var k = h.hasOwnProperty(d) ? h[d] : null;if (k && f instanceof k) return f.$$unwrapTrustedValue();B(f.$$unwrapTrustedValue) && (f = f.$$unwrapTrustedValue());if (d === W.MEDIA_URL || d === W.URL) return c(f.toString(), d === W.MEDIA_URL);if (d === W.RESOURCE_URL) {
	            var k = ga(f.toString()),
	                n,
	                s,
	                r = !1;n = 0;for (s = a.length; n < s; n++) {
	              if (e(a[n], k)) {
	                r = !0;break;
	              }
	            }if (r) for (n = 0, s = b.length; n < s; n++) {
	              if (e(b[n], k)) {
	                r = !1;break;
	              }
	            }if (r) return f;throw Ea("insecurl", f.toString());
	          }if (d === W.HTML) return g(f);throw Ea("unsafe");
	        }, valueOf: function valueOf(a) {
	          return a instanceof k ? a.$$unwrapTrustedValue() : a;
	        } };
	    }];
	  }function dg() {
	    var a = !0;this.enabled = function (b) {
	      arguments.length && (a = !!b);return a;
	    };this.$get = ["$parse", "$sceDelegate", function (b, d) {
	      if (a && 8 > wa) throw Ea("iequirks");var c = ja(W);c.isEnabled = function () {
	        return a;
	      };c.trustAs = d.trustAs;c.getTrusted = d.getTrusted;c.valueOf = d.valueOf;a || (c.trustAs = c.getTrusted = function (a, b) {
	        return b;
	      }, c.valueOf = Ta);c.parseAs = function (a, d) {
	        var e = b(d);return e.literal && e.constant ? e : b(d, function (b) {
	          return c.getTrusted(a, b);
	        });
	      };var e = c.parseAs,
	          f = c.getTrusted,
	          g = c.trustAs;r(W, function (a, b) {
	        var d = K(b);c[("parse_as_" + d).replace(Dc, xb)] = function (b) {
	          return e(a, b);
	        };c[("get_trusted_" + d).replace(Dc, xb)] = function (b) {
	          return f(a, b);
	        };c[("trust_as_" + d).replace(Dc, xb)] = function (b) {
	          return g(a, b);
	        };
	      });return c;
	    }];
	  }function fg() {
	    this.$get = ["$window", "$document", function (a, b) {
	      var d = {},
	          c = !((!a.nw || !a.nw.process) && a.chrome && (a.chrome.app && a.chrome.app.runtime || !a.chrome.app && a.chrome.runtime && a.chrome.runtime.id)) && a.history && a.history.pushState,
	          e = fa((/android (\d+)/.exec(K((a.navigator || {}).userAgent)) || [])[1]),
	          f = /Boxee/i.test((a.navigator || {}).userAgent),
	          g = b[0] || {},
	          k = g.body && g.body.style,
	          h = !1,
	          l = !1;k && (h = !!("transition" in k || "webkitTransition" in k), l = !!("animation" in k || "webkitAnimation" in k));return { history: !(!c || 4 > e || f), hasEvent: function hasEvent(a) {
	          if ("input" === a && wa) return !1;if (A(d[a])) {
	            var b = g.createElement("div");d[a] = "on" + a in b;
	          }return d[a];
	        }, csp: Ba(), transitions: h, animations: l, android: e };
	    }];
	  }function gg() {
	    this.$get = ia(function (a) {
	      return new Yg(a);
	    });
	  }function Yg(a) {
	    function b() {
	      var a = e.pop();return a && a.cb;
	    }function d(a) {
	      for (var b = e.length - 1; 0 <= b; --b) {
	        var c = e[b];if (c.type === a) return e.splice(b, 1), c.cb;
	      }
	    }var c = {},
	        e = [],
	        f = this.ALL_TASKS_TYPE = "$$all$$",
	        g = this.DEFAULT_TASK_TYPE = "$$default$$";this.completeTask = function (e, h) {
	      h = h || g;try {
	        e();
	      } finally {
	        var l;l = h || g;c[l] && (c[l]--, c[f]--);l = c[h];var m = c[f];if (!m || !l) for (l = m ? d : b; m = l(h);) {
	          try {
	            m();
	          } catch (p) {
	            a.error(p);
	          }
	        }
	      }
	    };this.incTaskCount = function (a) {
	      a = a || g;c[a] = (c[a] || 0) + 1;c[f] = (c[f] || 0) + 1;
	    };this.notifyWhenNoPendingTasks = function (a, b) {
	      b = b || f;c[b] ? e.push({ type: b, cb: a }) : a();
	    };
	  }function ig() {
	    var a;this.httpOptions = function (b) {
	      return b ? (a = b, this) : a;
	    };this.$get = ["$exceptionHandler", "$templateCache", "$http", "$q", "$sce", function (b, d, c, e, f) {
	      function g(k, h) {
	        g.totalPendingRequests++;if (!C(k) || A(d.get(k))) k = f.getTrustedResourceUrl(k);var l = c.defaults && c.defaults.transformResponse;H(l) ? l = l.filter(function (a) {
	          return a !== wc;
	        }) : l === wc && (l = null);return c.get(k, S({ cache: d, transformResponse: l }, a)).finally(function () {
	          g.totalPendingRequests--;
	        }).then(function (a) {
	          return d.put(k, a.data);
	        }, function (a) {
	          h || (a = Zg("tpload", k, a.status, a.statusText), b(a));return e.reject(a);
	        });
	      }g.totalPendingRequests = 0;return g;
	    }];
	  }function jg() {
	    this.$get = ["$rootScope", "$browser", "$location", function (a, b, d) {
	      return { findBindings: function findBindings(a, b, d) {
	          a = a.getElementsByClassName("ng-binding");var g = [];r(a, function (a) {
	            var c = ca.element(a).data("$binding");c && r(c, function (c) {
	              d ? new RegExp("(^|\\s)" + Od(b) + "(\\s|\\||$)").test(c) && g.push(a) : -1 !== c.indexOf(b) && g.push(a);
	            });
	          });return g;
	        }, findModels: function findModels(a, b, d) {
	          for (var g = ["ng-", "data-ng-", "ng\\:"], k = 0; k < g.length; ++k) {
	            var h = a.querySelectorAll("[" + g[k] + "model" + (d ? "=" : "*=") + '"' + b + '"]');if (h.length) return h;
	          }
	        }, getLocation: function getLocation() {
	          return d.url();
	        }, setLocation: function setLocation(b) {
	          b !== d.url() && (d.url(b), a.$digest());
	        }, whenStable: function whenStable(a) {
	          b.notifyWhenNoOutstandingRequests(a);
	        } };
	    }];
	  }function kg() {
	    this.$get = ["$rootScope", "$browser", "$q", "$$q", "$exceptionHandler", function (a, b, d, c, e) {
	      function f(f, h, l) {
	        B(f) || (l = h, h = f, f = E);var m = Ha.call(arguments, 3),
	            p = w(l) && !l,
	            n = (p ? c : d).defer(),
	            s = n.promise,
	            r;
	        r = b.defer(function () {
	          try {
	            n.resolve(f.apply(null, m));
	          } catch (b) {
	            n.reject(b), e(b);
	          } finally {
	            delete g[s.$$timeoutId];
	          }p || a.$apply();
	        }, h, "$timeout");s.$$timeoutId = r;g[r] = n;return s;
	      }var g = {};f.cancel = function (a) {
	        if (!a) return !1;if (!a.hasOwnProperty("$$timeoutId")) throw $g("badprom");if (!g.hasOwnProperty(a.$$timeoutId)) return !1;a = a.$$timeoutId;var c = g[a],
	            d = c.promise;d.$$state && (d.$$state.pur = !0);c.reject("canceled");delete g[a];return b.defer.cancel(a);
	      };return f;
	    }];
	  }function ga(a) {
	    if (!C(a)) return a;wa && (aa.setAttribute("href", a), a = aa.href);aa.setAttribute("href", a);a = aa.hostname;!ah && -1 < a.indexOf(":") && (a = "[" + a + "]");return { href: aa.href, protocol: aa.protocol ? aa.protocol.replace(/:$/, "") : "", host: aa.host, search: aa.search ? aa.search.replace(/^\?/, "") : "", hash: aa.hash ? aa.hash.replace(/^#/, "") : "", hostname: a, port: aa.port, pathname: "/" === aa.pathname.charAt(0) ? aa.pathname : "/" + aa.pathname };
	  }function Og(a) {
	    var b = [Qd].concat(a.map(ga));return function (a) {
	      a = ga(a);return b.some(Cc.bind(null, a));
	    };
	  }function Cc(a, b) {
	    a = ga(a);b = ga(b);return a.protocol === b.protocol && a.host === b.host;
	  }function lg() {
	    this.$get = ia(z);
	  }function Rd(a) {
	    function b(a) {
	      try {
	        return decodeURIComponent(a);
	      } catch (b) {
	        return a;
	      }
	    }var d = a[0] || {},
	        c = {},
	        e = "";return function () {
	      var a, g, k, h, l;try {
	        a = d.cookie || "";
	      } catch (m) {
	        a = "";
	      }if (a !== e) for (e = a, a = e.split("; "), c = {}, k = 0; k < a.length; k++) {
	        g = a[k], h = g.indexOf("="), 0 < h && (l = b(g.substring(0, h)), A(c[l]) && (c[l] = b(g.substring(h + 1))));
	      }return c;
	    };
	  }function pg() {
	    this.$get = Rd;
	  }function fd(a) {
	    function b(d, c) {
	      if (D(d)) {
	        var e = {};r(d, function (a, c) {
	          e[c] = b(c, a);
	        });return e;
	      }return a.factory(d + "Filter", c);
	    }this.register = b;this.$get = ["$injector", function (a) {
	      return function (b) {
	        return a.get(b + "Filter");
	      };
	    }];b("currency", Sd);b("date", Td);b("filter", bh);b("json", ch);b("limitTo", dh);b("lowercase", eh);b("number", Ud);b("orderBy", Vd);b("uppercase", fh);
	  }function bh() {
	    return function (a, b, d, c) {
	      if (!za(a)) {
	        if (null == a) return a;throw F("filter")("notarray", a);
	      }c = c || "$";var e;switch (Ec(b)) {case "function":
	          break;case "boolean":case "null":case "number":case "string":
	          e = !0;case "object":
	          b = gh(b, d, c, e);break;default:
	          return a;}return Array.prototype.filter.call(a, b);
	    };
	  }function gh(a, b, d, c) {
	    var e = D(a) && d in a;!0 === b ? b = va : B(b) || (b = function b(a, _b) {
	      if (A(a)) return !1;if (null === a || null === _b) return a === _b;if (D(_b) || D(a) && !cc(a)) return !1;a = K("" + a);_b = K("" + _b);return -1 !== a.indexOf(_b);
	    });return function (f) {
	      return e && !D(f) ? Fa(f, a[d], b, d, !1) : Fa(f, a, b, d, c);
	    };
	  }function Fa(a, b, d, c, e, f) {
	    var g = Ec(a),
	        k = Ec(b);if ("string" === k && "!" === b.charAt(0)) return !Fa(a, b.substring(1), d, c, e);if (H(a)) return a.some(function (a) {
	      return Fa(a, b, d, c, e);
	    });switch (g) {case "object":
	        var h;if (e) {
	          for (h in a) {
	            if (h.charAt && "$" !== h.charAt(0) && Fa(a[h], b, d, c, !0)) return !0;
	          }return f ? !1 : Fa(a, b, d, c, !1);
	        }if ("object" === k) {
	          for (h in b) {
	            if (f = b[h], !B(f) && !A(f) && (g = h === c, !Fa(g ? a : a[h], f, d, c, g, g))) return !1;
	          }return !0;
	        }return d(a, b);case "function":
	        return !1;default:
	        return d(a, b);}
	  }function Ec(a) {
	    return null === a ? "null" : typeof a === "undefined" ? "undefined" : _typeof(a);
	  }function Sd(a) {
	    var b = a.NUMBER_FORMATS;return function (a, c, e) {
	      A(c) && (c = b.CURRENCY_SYM);A(e) && (e = b.PATTERNS[1].maxFrac);var f = c ? /\u00A4/g : /\s*\u00A4\s*/g;return null == a ? a : Wd(a, b.PATTERNS[1], b.GROUP_SEP, b.DECIMAL_SEP, e).replace(f, c);
	    };
	  }function Ud(a) {
	    var b = a.NUMBER_FORMATS;return function (a, c) {
	      return null == a ? a : Wd(a, b.PATTERNS[0], b.GROUP_SEP, b.DECIMAL_SEP, c);
	    };
	  }function hh(a) {
	    var b = 0,
	        d,
	        c,
	        e,
	        f,
	        g;-1 < (c = a.indexOf(Xd)) && (a = a.replace(Xd, ""));0 < (e = a.search(/e/i)) ? (0 > c && (c = e), c += +a.slice(e + 1), a = a.substring(0, e)) : 0 > c && (c = a.length);for (e = 0; a.charAt(e) === Fc; e++) {}if (e === (g = a.length)) d = [0], c = 1;else {
	      for (g--; a.charAt(g) === Fc;) {
	        g--;
	      }c -= e;d = [];for (f = 0; e <= g; e++, f++) {
	        d[f] = +a.charAt(e);
	      }
	    }c > Yd && (d = d.splice(0, Yd - 1), b = c - 1, c = 1);return { d: d, e: b, i: c };
	  }function ih(a, b, d, c) {
	    var e = a.d,
	        f = e.length - a.i;b = A(b) ? Math.min(Math.max(d, f), c) : +b;d = b + a.i;c = e[d];if (0 < d) {
	      e.splice(Math.max(a.i, d));for (var g = d; g < e.length; g++) {
	        e[g] = 0;
	      }
	    } else for (f = Math.max(0, f), a.i = 1, e.length = Math.max(1, d = b + 1), e[0] = 0, g = 1; g < d; g++) {
	      e[g] = 0;
	    }if (5 <= c) if (0 > d - 1) {
	      for (c = 0; c > d; c--) {
	        e.unshift(0), a.i++;
	      }e.unshift(1);a.i++;
	    } else e[d - 1]++;for (; f < Math.max(0, b); f++) {
	      e.push(0);
	    }if (b = e.reduceRight(function (a, b, c, d) {
	      b += a;d[c] = b % 10;return Math.floor(b / 10);
	    }, 0)) e.unshift(b), a.i++;
	  }function Wd(a, b, d, c, e) {
	    if (!C(a) && !X(a) || isNaN(a)) return "";
	    var f = !isFinite(a),
	        g = !1,
	        k = Math.abs(a) + "",
	        h = "";if (f) h = "\u221E";else {
	      g = hh(k);ih(g, e, b.minFrac, b.maxFrac);h = g.d;k = g.i;e = g.e;f = [];for (g = h.reduce(function (a, b) {
	        return a && !b;
	      }, !0); 0 > k;) {
	        h.unshift(0), k++;
	      }0 < k ? f = h.splice(k, h.length) : (f = h, h = [0]);k = [];for (h.length >= b.lgSize && k.unshift(h.splice(-b.lgSize, h.length).join("")); h.length > b.gSize;) {
	        k.unshift(h.splice(-b.gSize, h.length).join(""));
	      }h.length && k.unshift(h.join(""));h = k.join(d);f.length && (h += c + f.join(""));e && (h += "e+" + e);
	    }return 0 > a && !g ? b.negPre + h + b.negSuf : b.posPre + h + b.posSuf;
	  }function Pb(a, b, d, c) {
	    var e = "";if (0 > a || c && 0 >= a) c ? a = -a + 1 : (a = -a, e = "-");for (a = "" + a; a.length < b;) {
	      a = Fc + a;
	    }d && (a = a.substr(a.length - b));return e + a;
	  }function ea(a, b, d, c, e) {
	    d = d || 0;return function (f) {
	      f = f["get" + a]();if (0 < d || f > -d) f += d;0 === f && -12 === d && (f = 12);return Pb(f, b, c, e);
	    };
	  }function lb(a, b, d) {
	    return function (c, e) {
	      var f = c["get" + a](),
	          g = vb((d ? "STANDALONE" : "") + (b ? "SHORT" : "") + a);return e[g][f];
	    };
	  }function Zd(a) {
	    var b = new Date(a, 0, 1).getDay();return new Date(a, 0, (4 >= b ? 5 : 12) - b);
	  }function $d(a) {
	    return function (b) {
	      var d = Zd(b.getFullYear());b = +new Date(b.getFullYear(), b.getMonth(), b.getDate() + (4 - b.getDay())) - +d;b = 1 + Math.round(b / 6048E5);return Pb(b, a);
	    };
	  }function Gc(a, b) {
	    return 0 >= a.getFullYear() ? b.ERAS[0] : b.ERAS[1];
	  }function Td(a) {
	    function b(a) {
	      var b;if (b = a.match(d)) {
	        a = new Date(0);var f = 0,
	            g = 0,
	            k = b[8] ? a.setUTCFullYear : a.setFullYear,
	            h = b[8] ? a.setUTCHours : a.setHours;b[9] && (f = fa(b[9] + b[10]), g = fa(b[9] + b[11]));k.call(a, fa(b[1]), fa(b[2]) - 1, fa(b[3]));f = fa(b[4] || 0) - f;g = fa(b[5] || 0) - g;k = fa(b[6] || 0);b = Math.round(1E3 * parseFloat("0." + (b[7] || 0)));h.call(a, f, g, k, b);
	      }return a;
	    }var d = /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function (c, d, f) {
	      var g = "",
	          k = [],
	          h,
	          l;d = d || "mediumDate";d = a.DATETIME_FORMATS[d] || d;C(c) && (c = jh.test(c) ? fa(c) : b(c));X(c) && (c = new Date(c));if (!ha(c) || !isFinite(c.getTime())) return c;for (; d;) {
	        (l = kh.exec(d)) ? (k = db(k, l, 1), d = k.pop()) : (k.push(d), d = null);
	      }var m = c.getTimezoneOffset();f && (m = fc(f, m), c = gc(c, f, !0));r(k, function (b) {
	        h = lh[b];g += h ? h(c, a.DATETIME_FORMATS, m) : "''" === b ? "'" : b.replace(/(^'|'$)/g, "").replace(/''/g, "'");
	      });return g;
	    };
	  }function ch() {
	    return function (a, b) {
	      A(b) && (b = 2);return eb(a, b);
	    };
	  }function dh() {
	    return function (a, b, d) {
	      b = Infinity === Math.abs(Number(b)) ? Number(b) : fa(b);if (Y(b)) return a;X(a) && (a = a.toString());if (!za(a)) return a;d = !d || isNaN(d) ? 0 : fa(d);d = 0 > d ? Math.max(0, a.length + d) : d;return 0 <= b ? Hc(a, d, d + b) : 0 === d ? Hc(a, b, a.length) : Hc(a, Math.max(0, d + b), d);
	    };
	  }function Hc(a, b, d) {
	    return C(a) ? a.slice(b, d) : Ha.call(a, b, d);
	  }function Vd(a) {
	    function b(b) {
	      return b.map(function (b) {
	        var c = 1,
	            d = Ta;if (B(b)) d = b;else if (C(b)) {
	          if ("+" === b.charAt(0) || "-" === b.charAt(0)) c = "-" === b.charAt(0) ? -1 : 1, b = b.substring(1);if ("" !== b && (d = a(b), d.constant)) var e = d(),
	              d = function d(a) {
	            return a[e];
	          };
	        }return { get: d, descending: c };
	      });
	    }function d(a) {
	      switch (typeof a === "undefined" ? "undefined" : _typeof(a)) {case "number":case "boolean":case "string":
	          return !0;default:
	          return !1;}
	    }function c(a, b) {
	      var c = 0,
	          d = a.type,
	          h = b.type;if (d === h) {
	        var h = a.value,
	            l = b.value;"string" === d ? (h = h.toLowerCase(), l = l.toLowerCase()) : "object" === d && (D(h) && (h = a.index), D(l) && (l = b.index));h !== l && (c = h < l ? -1 : 1);
	      } else c = "undefined" === d ? 1 : "undefined" === h ? -1 : "null" === d ? 1 : "null" === h ? -1 : d < h ? -1 : 1;return c;
	    }return function (a, f, g, k) {
	      if (null == a) return a;if (!za(a)) throw F("orderBy")("notarray", a);H(f) || (f = [f]);0 === f.length && (f = ["+"]);var h = b(f),
	          l = g ? -1 : 1,
	          m = B(k) ? k : c;a = Array.prototype.map.call(a, function (a, b) {
	        return { value: a, tieBreaker: { value: b, type: "number", index: b }, predicateValues: h.map(function (c) {
	            var e = c.get(a);c = typeof e === "undefined" ? "undefined" : _typeof(e);if (null === e) c = "null";else if ("object" === c) a: {
	              if (B(e.valueOf) && (e = e.valueOf(), d(e))) break a;
	              cc(e) && (e = e.toString(), d(e));
	            }return { value: e, type: c, index: b };
	          }) };
	      });a.sort(function (a, b) {
	        for (var d = 0, e = h.length; d < e; d++) {
	          var f = m(a.predicateValues[d], b.predicateValues[d]);if (f) return f * h[d].descending * l;
	        }return (m(a.tieBreaker, b.tieBreaker) || c(a.tieBreaker, b.tieBreaker)) * l;
	      });return a = a.map(function (a) {
	        return a.value;
	      });
	    };
	  }function Ra(a) {
	    B(a) && (a = { link: a });a.restrict = a.restrict || "AC";return ia(a);
	  }function Qb(a, b, d, c, e) {
	    this.$$controls = [];this.$error = {};this.$$success = {};this.$pending = void 0;this.$name = e(b.name || b.ngForm || "")(d);this.$dirty = !1;this.$valid = this.$pristine = !0;this.$submitted = this.$invalid = !1;this.$$parentForm = mb;this.$$element = a;this.$$animate = c;ae(this);
	  }function ae(a) {
	    a.$$classCache = {};a.$$classCache[be] = !(a.$$classCache[nb] = a.$$element.hasClass(nb));
	  }function ce(a) {
	    function b(a, b, c) {
	      c && !a.$$classCache[b] ? (a.$$animate.addClass(a.$$element, b), a.$$classCache[b] = !0) : !c && a.$$classCache[b] && (a.$$animate.removeClass(a.$$element, b), a.$$classCache[b] = !1);
	    }function d(a, c, d) {
	      c = c ? "-" + Xc(c, "-") : "";b(a, nb + c, !0 === d);b(a, be + c, !1 === d);
	    }var c = a.set,
	        e = a.unset;a.clazz.prototype.$setValidity = function (a, g, k) {
	      A(g) ? (this.$pending || (this.$pending = {}), c(this.$pending, a, k)) : (this.$pending && e(this.$pending, a, k), de(this.$pending) && (this.$pending = void 0));Ga(g) ? g ? (e(this.$error, a, k), c(this.$$success, a, k)) : (c(this.$error, a, k), e(this.$$success, a, k)) : (e(this.$error, a, k), e(this.$$success, a, k));this.$pending ? (b(this, "ng-pending", !0), this.$valid = this.$invalid = void 0, d(this, "", null)) : (b(this, "ng-pending", !1), this.$valid = de(this.$error), this.$invalid = !this.$valid, d(this, "", this.$valid));g = this.$pending && this.$pending[a] ? void 0 : this.$error[a] ? !1 : this.$$success[a] ? !0 : null;d(this, a, g);this.$$parentForm.$setValidity(a, g, this);
	    };
	  }function de(a) {
	    if (a) for (var b in a) {
	      if (a.hasOwnProperty(b)) return !1;
	    }return !0;
	  }function Ic(a) {
	    a.$formatters.push(function (b) {
	      return a.$isEmpty(b) ? b : b.toString();
	    });
	  }function Sa(a, b, d, c, e, f) {
	    var g = K(b[0].type);if (!e.android) {
	      var k = !1;b.on("compositionstart", function () {
	        k = !0;
	      });b.on("compositionupdate", function (a) {
	        if (A(a.data) || "" === a.data) k = !1;
	      });b.on("compositionend", function () {
	        k = !1;l();
	      });
	    }var h,
	        l = function l(a) {
	      h && (f.defer.cancel(h), h = null);if (!k) {
	        var e = b.val();a = a && a.type;"password" === g || d.ngTrim && "false" === d.ngTrim || (e = V(e));(c.$viewValue !== e || "" === e && c.$$hasNativeValidators) && c.$setViewValue(e, a);
	      }
	    };if (e.hasEvent("input")) b.on("input", l);else {
	      var m = function m(a, b, c) {
	        h || (h = f.defer(function () {
	          h = null;b && b.value === c || l(a);
	        }));
	      };b.on("keydown", function (a) {
	        var b = a.keyCode;91 === b || 15 < b && 19 > b || 37 <= b && 40 >= b || m(a, this, this.value);
	      });if (e.hasEvent("paste")) b.on("paste cut drop", m);
	    }b.on("change", l);if (ee[g] && c.$$hasNativeValidators && g === d.type) b.on("keydown wheel mousedown", function (a) {
	      if (!h) {
	        var b = this.validity,
	            c = b.badInput,
	            d = b.typeMismatch;h = f.defer(function () {
	          h = null;b.badInput === c && b.typeMismatch === d || l(a);
	        });
	      }
	    });c.$render = function () {
	      var a = c.$isEmpty(c.$viewValue) ? "" : c.$viewValue;b.val() !== a && b.val(a);
	    };
	  }function Rb(a, b) {
	    return function (d, c) {
	      var e, f;if (ha(d)) return d;if (C(d)) {
	        '"' === d.charAt(0) && '"' === d.charAt(d.length - 1) && (d = d.substring(1, d.length - 1));if (mh.test(d)) return new Date(d);a.lastIndex = 0;if (e = a.exec(d)) return e.shift(), f = c ? { yyyy: c.getFullYear(), MM: c.getMonth() + 1, dd: c.getDate(), HH: c.getHours(), mm: c.getMinutes(), ss: c.getSeconds(), sss: c.getMilliseconds() / 1E3 } : { yyyy: 1970, MM: 1, dd: 1, HH: 0, mm: 0, ss: 0, sss: 0 }, r(e, function (a, c) {
	          c < b.length && (f[b[c]] = +a);
	        }), e = new Date(f.yyyy, f.MM - 1, f.dd, f.HH, f.mm, f.ss || 0, 1E3 * f.sss || 0), 100 > f.yyyy && e.setFullYear(f.yyyy), e;
	      }return NaN;
	    };
	  }function ob(a, b, d, c) {
	    return function (e, f, g, k, h, l, m, p) {
	      function n(a) {
	        return a && !(a.getTime && a.getTime() !== a.getTime());
	      }function s(a) {
	        return w(a) && !ha(a) ? r(a) || void 0 : a;
	      }function r(a, b) {
	        var c = k.$options.getOption("timezone");v && v !== c && (b = Uc(b, fc(v)));var e = d(a, b);!isNaN(e) && c && (e = gc(e, c));return e;
	      }Jc(e, f, g, k, a);Sa(e, f, g, k, h, l);var t = "time" === a || "datetimelocal" === a,
	          q,
	          v;k.$parsers.push(function (c) {
	        if (k.$isEmpty(c)) return null;if (b.test(c)) return r(c, q);k.$$parserName = a;
	      });k.$formatters.push(function (a) {
	        if (a && !ha(a)) throw pb("datefmt", a);if (n(a)) {
	          q = a;var b = k.$options.getOption("timezone");b && (v = b, q = gc(q, b, !0));var d = c;t && C(k.$options.getOption("timeSecondsFormat")) && (d = c.replace("ss.sss", k.$options.getOption("timeSecondsFormat")).replace(/:$/, ""));a = m("date")(a, d, b);t && k.$options.getOption("timeStripZeroSeconds") && (a = a.replace(/(?::00)?(?:\.000)?$/, ""));return a;
	        }v = q = null;return "";
	      });if (w(g.min) || g.ngMin) {
	        var x = g.min || p(g.ngMin)(e),
	            z = s(x);k.$validators.min = function (a) {
	          return !n(a) || A(z) || d(a) >= z;
	        };g.$observe("min", function (a) {
	          a !== x && (z = s(a), x = a, k.$validate());
	        });
	      }if (w(g.max) || g.ngMax) {
	        var y = g.max || p(g.ngMax)(e),
	            J = s(y);k.$validators.max = function (a) {
	          return !n(a) || A(J) || d(a) <= J;
	        };g.$observe("max", function (a) {
	          a !== y && (J = s(a), y = a, k.$validate());
	        });
	      }
	    };
	  }function Jc(a, b, d, c, e) {
	    (c.$$hasNativeValidators = D(b[0].validity)) && c.$parsers.push(function (a) {
	      var d = b.prop("validity") || {};if (d.badInput || d.typeMismatch) c.$$parserName = e;else return a;
	    });
	  }function fe(a) {
	    a.$parsers.push(function (b) {
	      if (a.$isEmpty(b)) return null;if (nh.test(b)) return parseFloat(b);a.$$parserName = "number";
	    });a.$formatters.push(function (b) {
	      if (!a.$isEmpty(b)) {
	        if (!X(b)) throw pb("numfmt", b);b = b.toString();
	      }return b;
	    });
	  }function na(a) {
	    w(a) && !X(a) && (a = parseFloat(a));return Y(a) ? void 0 : a;
	  }function Kc(a) {
	    var b = a.toString(),
	        d = b.indexOf(".");return -1 === d ? -1 < a && 1 > a && (a = /e-(\d+)$/.exec(b)) ? Number(a[1]) : 0 : b.length - d - 1;
	  }function ge(a, b, d) {
	    a = Number(a);var c = (a | 0) !== a,
	        e = (b | 0) !== b,
	        f = (d | 0) !== d;if (c || e || f) {
	      var g = c ? Kc(a) : 0,
	          k = e ? Kc(b) : 0,
	          h = f ? Kc(d) : 0,
	          g = Math.max(g, k, h),
	          g = Math.pow(10, g);a *= g;b *= g;d *= g;c && (a = Math.round(a));e && (b = Math.round(b));f && (d = Math.round(d));
	    }return 0 === (a - b) % d;
	  }function he(a, b, d, c, e) {
	    if (w(c)) {
	      a = a(c);if (!a.constant) throw pb("constexpr", d, c);return a(b);
	    }return e;
	  }function Lc(a, b) {
	    function d(a, b) {
	      if (!a || !a.length) return [];if (!b || !b.length) return a;var c = [],
	          d = 0;a: for (; d < a.length; d++) {
	        for (var e = a[d], m = 0; m < b.length; m++) {
	          if (e === b[m]) continue a;
	        }c.push(e);
	      }return c;
	    }function c(a) {
	      if (!a) return a;var b = a;H(a) ? b = a.map(c).join(" ") : D(a) ? b = Object.keys(a).filter(function (b) {
	        return a[b];
	      }).join(" ") : C(a) || (b = a + "");return b;
	    }a = "ngClass" + a;var e;return ["$parse", function (f) {
	      return { restrict: "AC", link: function link(g, k, h) {
	          function l(a, b) {
	            var c = [];r(a, function (a) {
	              if (0 < b || p[a]) p[a] = (p[a] || 0) + b, p[a] === +(0 < b) && c.push(a);
	            });return c.join(" ");
	          }function m(a) {
	            if (a === b) {
	              var c = s,
	                  c = l(c && c.split(" "), 1);h.$addClass(c);
	            } else c = s, c = l(c && c.split(" "), -1), h.$removeClass(c);n = a;
	          }var p = k.data("$classCounts"),
	              n = !0,
	              s;p || (p = T(), k.data("$classCounts", p));"ngClass" !== a && (e || (e = f("$index", function (a) {
	            return a & 1;
	          })), g.$watch(e, m));g.$watch(f(h[a], c), function (a) {
	            if (n === b) {
	              var c = s && s.split(" "),
	                  e = a && a.split(" "),
	                  f = d(c, e),
	                  c = d(e, c),
	                  f = l(f, -1),
	                  c = l(c, 1);h.$addClass(c);h.$removeClass(f);
	            }s = a;
	          });
	        } };
	    }];
	  }function sd(a, b, d, c, e, f) {
	    return { restrict: "A", compile: function compile(g, k) {
	        var h = a(k[c]);return function (a, c) {
	          c.on(e, function (c) {
	            var e = function e() {
	              h(a, { $event: c });
	            };if (b.$$phase) {
	              if (f) a.$evalAsync(e);else try {
	                e();
	              } catch (g) {
	                d(g);
	              }
	            } else a.$apply(e);
	          });
	        };
	      } };
	  }function Sb(a, b, d, c, e, f, g, k, h) {
	    this.$modelValue = this.$viewValue = Number.NaN;this.$$rawModelValue = void 0;this.$validators = {};this.$asyncValidators = {};this.$parsers = [];this.$formatters = [];this.$viewChangeListeners = [];this.$untouched = !0;this.$touched = !1;this.$pristine = !0;this.$dirty = !1;this.$valid = !0;this.$invalid = !1;this.$error = {};this.$$success = {};this.$pending = void 0;this.$name = h(d.name || "", !1)(a);this.$$parentForm = mb;this.$options = Tb;this.$$updateEvents = "";this.$$updateEventHandler = this.$$updateEventHandler.bind(this);this.$$parsedNgModel = e(d.ngModel);this.$$parsedNgModelAssign = this.$$parsedNgModel.assign;this.$$ngModelGet = this.$$parsedNgModel;this.$$ngModelSet = this.$$parsedNgModelAssign;this.$$pendingDebounce = null;this.$$parserValid = void 0;this.$$parserName = "parse";this.$$currentValidationRunId = 0;this.$$scope = a;this.$$rootScope = a.$root;this.$$attr = d;this.$$element = c;this.$$animate = f;this.$$timeout = g;this.$$parse = e;this.$$q = k;this.$$exceptionHandler = b;ae(this);oh(this);
	  }function oh(a) {
	    a.$$scope.$watch(function (b) {
	      b = a.$$ngModelGet(b);b === a.$modelValue || a.$modelValue !== a.$modelValue && b !== b || a.$$setModelValue(b);return b;
	    });
	  }function Mc(a) {
	    this.$$options = a;
	  }function ie(a, b) {
	    r(b, function (b, c) {
	      w(a[c]) || (a[c] = b);
	    });
	  }
	  function Oa(a, b) {
	    a.prop("selected", b);a.attr("selected", b);
	  }function je(a, b, d) {
	    if (a) {
	      C(a) && (a = new RegExp("^" + a + "$"));if (!a.test) throw F("ngPattern")("noregexp", b, a, Aa(d));return a;
	    }
	  }function Ub(a) {
	    a = fa(a);return Y(a) ? -1 : a;
	  }var Xb = { objectMaxDepth: 5, urlErrorParamsEnabled: !0 },
	      ke = /^\/(.+)\/([a-z]*)$/,
	      ta = Object.prototype.hasOwnProperty,
	      K = function K(a) {
	    return C(a) ? a.toLowerCase() : a;
	  },
	      vb = function vb(a) {
	    return C(a) ? a.toUpperCase() : a;
	  },
	      wa,
	      x,
	      sb,
	      Ha = [].slice,
	      Kg = [].splice,
	      ph = [].push,
	      la = Object.prototype.toString,
	      Rc = Object.getPrototypeOf,
	      oa = F("ng"),
	      ca = z.angular || (z.angular = {}),
	      lc,
	      qb = 0;wa = z.document.documentMode;var Y = Number.isNaN || function (a) {
	    return a !== a;
	  };E.$inject = [];Ta.$inject = [];var ze = /^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,
	      V = function V(a) {
	    return C(a) ? a.trim() : a;
	  },
	      Od = function Od(a) {
	    return a.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g, "\\$1").replace(/\x08/g, "\\x08");
	  },
	      Ba = function Ba() {
	    if (!w(Ba.rules)) {
	      var a = z.document.querySelector("[ng-csp]") || z.document.querySelector("[data-ng-csp]");if (a) {
	        var b = a.getAttribute("ng-csp") || a.getAttribute("data-ng-csp");Ba.rules = { noUnsafeEval: !b || -1 !== b.indexOf("no-unsafe-eval"), noInlineStyle: !b || -1 !== b.indexOf("no-inline-style") };
	      } else {
	        a = Ba;try {
	          new Function(""), b = !1;
	        } catch (d) {
	          b = !0;
	        }a.rules = { noUnsafeEval: b, noInlineStyle: !1 };
	      }
	    }return Ba.rules;
	  },
	      rb = function rb() {
	    if (w(rb.name_)) return rb.name_;var a,
	        b,
	        d = Qa.length,
	        c,
	        e;for (b = 0; b < d; ++b) {
	      if (c = Qa[b], a = z.document.querySelector("[" + c.replace(":", "\\:") + "jq]")) {
	        e = a.getAttribute(c + "jq");break;
	      }
	    }return rb.name_ = e;
	  },
	      Be = /:/g,
	      Qa = ["ng-", "data-ng-", "ng:", "x-ng-"],
	      Fe = function (a) {
	    var b = a.currentScript;if (!b) return !0;if (!(b instanceof z.HTMLScriptElement || b instanceof z.SVGScriptElement)) return !1;b = b.attributes;return [b.getNamedItem("src"), b.getNamedItem("href"), b.getNamedItem("xlink:href")].every(function (b) {
	      if (!b) return !0;if (!b.value) return !1;var c = a.createElement("a");c.href = b.value;if (a.location.origin === c.origin) return !0;switch (c.protocol) {case "http:":case "https:":case "ftp:":case "blob:":case "file:":case "data:":
	          return !0;default:
	          return !1;}
	    });
	  }(z.document),
	      Ie = /[A-Z]/g,
	      Yc = !1,
	      Pa = 3,
	      Pe = { full: "1.8.2", major: 1, minor: 8, dot: 2, codeName: "meteoric-mining" };U.expando = "ng339";var Ka = U.cache = {},
	      ug = 1;U._data = function (a) {
	    return this.cache[a[this.expando]] || {};
	  };var qg = /-([a-z])/g,
	      qh = /^-ms-/,
	      Bb = { mouseleave: "mouseout", mouseenter: "mouseover" },
	      oc = F("jqLite"),
	      tg = /^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,
	      nc = /<|&#?\w+;/,
	      rg = /<([\w:-]+)/,
	      sg = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,
	      qa = { thead: ["table"], col: ["colgroup", "table"], tr: ["tbody", "table"], td: ["tr", "tbody", "table"] };qa.tbody = qa.tfoot = qa.colgroup = qa.caption = qa.thead;qa.th = qa.td;var hb = { option: [1, '<select multiple="multiple">', "</select>"], _default: [0, "", ""] },
	      Nc;for (Nc in qa) {
	    var le = qa[Nc],
	        me = le.slice().reverse();hb[Nc] = [me.length, "<" + me.join("><") + ">", "</" + le.join("></") + ">"];
	  }hb.optgroup = hb.option;var zg = z.Node.prototype.contains || function (a) {
	    return !!(this.compareDocumentPosition(a) & 16);
	  },
	      Wa = U.prototype = { ready: hd, toString: function toString() {
	      var a = [];r(this, function (b) {
	        a.push("" + b);
	      });return "[" + a.join(", ") + "]";
	    }, eq: function eq(a) {
	      return 0 <= a ? x(this[a]) : x(this[this.length + a]);
	    }, length: 0, push: ph, sort: [].sort, splice: [].splice },
	      Hb = {};r("multiple selected checked disabled readOnly required open".split(" "), function (a) {
	    Hb[K(a)] = a;
	  });var od = {};r("input select option textarea button form details".split(" "), function (a) {
	    od[a] = !0;
	  });var vd = { ngMinlength: "minlength", ngMaxlength: "maxlength", ngMin: "min", ngMax: "max", ngPattern: "pattern", ngStep: "step" };r({ data: sc, removeData: rc, hasData: function hasData(a) {
	      for (var b in Ka[a.ng339]) {
	        return !0;
	      }return !1;
	    }, cleanData: function cleanData(a) {
	      for (var b = 0, d = a.length; b < d; b++) {
	        rc(a[b]), kd(a[b]);
	      }
	    } }, function (a, b) {
	    U[b] = a;
	  });r({ data: sc, inheritedData: Fb, scope: function scope(a) {
	      return x.data(a, "$scope") || Fb(a.parentNode || a, ["$isolateScope", "$scope"]);
	    }, isolateScope: function isolateScope(a) {
	      return x.data(a, "$isolateScope") || x.data(a, "$isolateScopeNoTemplate");
	    }, controller: ld, injector: function injector(a) {
	      return Fb(a, "$injector");
	    }, removeAttr: function removeAttr(a, b) {
	      a.removeAttribute(b);
	    }, hasClass: Cb, css: function css(a, b, d) {
	      b = yb(b.replace(qh, "ms-"));if (w(d)) a.style[b] = d;else return a.style[b];
	    }, attr: function attr(a, b, d) {
	      var c = a.nodeType;if (c !== Pa && 2 !== c && 8 !== c && a.getAttribute) {
	        var c = K(b),
	            e = Hb[c];if (w(d)) null === d || !1 === d && e ? a.removeAttribute(b) : a.setAttribute(b, e ? c : d);else return a = a.getAttribute(b), e && null !== a && (a = c), null === a ? void 0 : a;
	      }
	    }, prop: function prop(a, b, d) {
	      if (w(d)) a[b] = d;else return a[b];
	    }, text: function () {
	      function a(a, d) {
	        if (A(d)) {
	          var c = a.nodeType;return 1 === c || c === Pa ? a.textContent : "";
	        }a.textContent = d;
	      }a.$dv = "";return a;
	    }(), val: function val(a, b) {
	      if (A(b)) {
	        if (a.multiple && "select" === ua(a)) {
	          var d = [];r(a.options, function (a) {
	            a.selected && d.push(a.value || a.text);
	          });return d;
	        }return a.value;
	      }a.value = b;
	    }, html: function html(a, b) {
	      if (A(b)) return a.innerHTML;zb(a, !0);a.innerHTML = b;
	    }, empty: md }, function (a, b) {
	    U.prototype[b] = function (b, c) {
	      var e,
	          f,
	          g = this.length;if (a !== md && A(2 === a.length && a !== Cb && a !== ld ? b : c)) {
	        if (D(b)) {
	          for (e = 0; e < g; e++) {
	            if (a === sc) a(this[e], b);else for (f in b) {
	              a(this[e], f, b[f]);
	            }
	          }return this;
	        }e = a.$dv;g = A(e) ? Math.min(g, 1) : g;for (f = 0; f < g; f++) {
	          var k = a(this[f], b, c);e = e ? e + k : k;
	        }return e;
	      }for (e = 0; e < g; e++) {
	        a(this[e], b, c);
	      }return this;
	    };
	  });r({ removeData: rc, on: function on(a, b, d, c) {
	      if (w(c)) throw oc("onargs");if (mc(a)) {
	        c = Ab(a, !0);var e = c.events,
	            f = c.handle;f || (f = c.handle = wg(a, e));c = 0 <= b.indexOf(" ") ? b.split(" ") : [b];for (var g = c.length, k = function k(b, c, g) {
	          var k = e[b];k || (k = e[b] = [], k.specialHandlerWrapper = c, "$destroy" === b || g || a.addEventListener(b, f));k.push(d);
	        }; g--;) {
	          b = c[g], Bb[b] ? (k(Bb[b], yg), k(b, void 0, !0)) : k(b);
	        }
	      }
	    }, off: kd, one: function one(a, b, d) {
	      a = x(a);a.on(b, function e() {
	        a.off(b, d);a.off(b, e);
	      });a.on(b, d);
	    }, replaceWith: function replaceWith(a, b) {
	      var d,
	          c = a.parentNode;zb(a);r(new U(b), function (b) {
	        d ? c.insertBefore(b, d.nextSibling) : c.replaceChild(b, a);d = b;
	      });
	    }, children: function children(a) {
	      var b = [];r(a.childNodes, function (a) {
	        1 === a.nodeType && b.push(a);
	      });return b;
	    }, contents: function contents(a) {
	      return a.contentDocument || a.childNodes || [];
	    }, append: function append(a, b) {
	      var d = a.nodeType;if (1 === d || 11 === d) {
	        b = new U(b);for (var d = 0, c = b.length; d < c; d++) {
	          a.appendChild(b[d]);
	        }
	      }
	    }, prepend: function prepend(a, b) {
	      if (1 === a.nodeType) {
	        var d = a.firstChild;r(new U(b), function (b) {
	          a.insertBefore(b, d);
	        });
	      }
	    },
	    wrap: function wrap(a, b) {
	      var d = x(b).eq(0).clone()[0],
	          c = a.parentNode;c && c.replaceChild(d, a);d.appendChild(a);
	    }, remove: Gb, detach: function detach(a) {
	      Gb(a, !0);
	    }, after: function after(a, b) {
	      var d = a,
	          c = a.parentNode;if (c) {
	        b = new U(b);for (var e = 0, f = b.length; e < f; e++) {
	          var g = b[e];c.insertBefore(g, d.nextSibling);d = g;
	        }
	      }
	    }, addClass: Eb, removeClass: Db, toggleClass: function toggleClass(a, b, d) {
	      b && r(b.split(" "), function (b) {
	        var e = d;A(e) && (e = !Cb(a, b));(e ? Eb : Db)(a, b);
	      });
	    }, parent: function parent(a) {
	      return (a = a.parentNode) && 11 !== a.nodeType ? a : null;
	    }, next: function next(a) {
	      return a.nextElementSibling;
	    },
	    find: function find(a, b) {
	      return a.getElementsByTagName ? a.getElementsByTagName(b) : [];
	    }, clone: qc, triggerHandler: function triggerHandler(a, b, d) {
	      var c,
	          e,
	          f = b.type || b,
	          g = Ab(a);if (g = (g = g && g.events) && g[f]) c = { preventDefault: function preventDefault() {
	          this.defaultPrevented = !0;
	        }, isDefaultPrevented: function isDefaultPrevented() {
	          return !0 === this.defaultPrevented;
	        }, stopImmediatePropagation: function stopImmediatePropagation() {
	          this.immediatePropagationStopped = !0;
	        }, isImmediatePropagationStopped: function isImmediatePropagationStopped() {
	          return !0 === this.immediatePropagationStopped;
	        }, stopPropagation: E, type: f, target: a }, b.type && (c = S(c, b)), b = ja(g), e = d ? [c].concat(d) : [c], r(b, function (b) {
	        c.isImmediatePropagationStopped() || b.apply(a, e);
	      });
	    } }, function (a, b) {
	    U.prototype[b] = function (b, c, e) {
	      for (var f, g = 0, k = this.length; g < k; g++) {
	        A(f) ? (f = a(this[g], b, c, e), w(f) && (f = x(f))) : pc(f, a(this[g], b, c, e));
	      }return w(f) ? f : this;
	    };
	  });U.prototype.bind = U.prototype.on;U.prototype.unbind = U.prototype.off;var rh = Object.create(null);pd.prototype = { _idx: function _idx(a) {
	      a !== this._lastKey && (this._lastKey = a, this._lastIndex = this._keys.indexOf(a));return this._lastIndex;
	    }, _transformKey: function _transformKey(a) {
	      return Y(a) ? rh : a;
	    }, get: function get(a) {
	      a = this._transformKey(a);a = this._idx(a);if (-1 !== a) return this._values[a];
	    }, has: function has(a) {
	      a = this._transformKey(a);return -1 !== this._idx(a);
	    }, set: function set(a, b) {
	      a = this._transformKey(a);var d = this._idx(a);-1 === d && (d = this._lastIndex = this._keys.length);this._keys[d] = a;this._values[d] = b;
	    }, delete: function _delete(a) {
	      a = this._transformKey(a);a = this._idx(a);if (-1 === a) return !1;this._keys.splice(a, 1);this._values.splice(a, 1);this._lastKey = NaN;this._lastIndex = -1;return !0;
	    } };var Ib = pd,
	      og = [function () {
	    this.$get = [function () {
	      return Ib;
	    }];
	  }],
	      Bg = /^([^(]+?)=>/,
	      Cg = /^[^(]*\(\s*([^)]*)\)/m,
	      sh = /,/,
	      th = /^\s*(_?)(\S+?)\1\s*$/,
	      Ag = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,
	      Ca = F("$injector");fb.$$annotate = function (a, b, d) {
	    var c;if ("function" === typeof a) {
	      if (!(c = a.$inject)) {
	        c = [];if (a.length) {
	          if (b) throw C(d) && d || (d = a.name || Dg(a)), Ca("strictdi", d);b = qd(a);r(b[1].split(sh), function (a) {
	            a.replace(th, function (a, b, d) {
	              c.push(d);
	            });
	          });
	        }a.$inject = c;
	      }
	    } else H(a) ? (b = a.length - 1, tb(a[b], "fn"), c = a.slice(0, b)) : tb(a, "fn", !0);return c;
	  };var ne = F("$animate"),
	      Ef = function Ef() {
	    this.$get = E;
	  },
	      Ff = function Ff() {
	    var a = new Ib(),
	        b = [];this.$get = ["$$AnimateRunner", "$rootScope", function (d, c) {
	      function e(a, b, c) {
	        var d = !1;b && (b = C(b) ? b.split(" ") : H(b) ? b : [], r(b, function (b) {
	          b && (d = !0, a[b] = c);
	        }));return d;
	      }function f() {
	        r(b, function (b) {
	          var c = a.get(b);if (c) {
	            var d = Eg(b.attr("class")),
	                e = "",
	                f = "";r(c, function (a, b) {
	              a !== !!d[b] && (a ? e += (e.length ? " " : "") + b : f += (f.length ? " " : "") + b);
	            });r(b, function (a) {
	              e && Eb(a, e);f && Db(a, f);
	            });a.delete(b);
	          }
	        });b.length = 0;
	      }return { enabled: E, on: E, off: E, pin: E, push: function push(g, k, h, l) {
	          l && l();h = h || {};h.from && g.css(h.from);h.to && g.css(h.to);if (h.addClass || h.removeClass) if (k = h.addClass, l = h.removeClass, h = a.get(g) || {}, k = e(h, k, !0), l = e(h, l, !1), k || l) a.set(g, h), b.push(g), 1 === b.length && c.$$postDigest(f);g = new d();g.complete();return g;
	        } };
	    }];
	  },
	      Cf = ["$provide", function (a) {
	    var b = this,
	        d = null,
	        c = null;this.$$registeredAnimations = Object.create(null);this.register = function (c, d) {
	      if (c && "." !== c.charAt(0)) throw ne("notcsel", c);var g = c + "-animation";b.$$registeredAnimations[c.substr(1)] = g;a.factory(g, d);
	    };this.customFilter = function (a) {
	      1 === arguments.length && (c = B(a) ? a : null);return c;
	    };this.classNameFilter = function (a) {
	      if (1 === arguments.length && (d = a instanceof RegExp ? a : null) && /[(\s|\/)]ng-animate[(\s|\/)]/.test(d.toString())) throw d = null, ne("nongcls", "ng-animate");return d;
	    };this.$get = ["$$animateQueue", function (a) {
	      function b(a, c, d) {
	        if (d) {
	          var e;a: {
	            for (e = 0; e < d.length; e++) {
	              var f = d[e];if (1 === f.nodeType) {
	                e = f;break a;
	              }
	            }e = void 0;
	          }!e || e.parentNode || e.previousElementSibling || (d = null);
	        }d ? d.after(a) : c.prepend(a);
	      }return { on: a.on,
	        off: a.off, pin: a.pin, enabled: a.enabled, cancel: function cancel(a) {
	          a.cancel && a.cancel();
	        }, enter: function enter(c, d, h, l) {
	          d = d && x(d);h = h && x(h);d = d || h.parent();b(c, d, h);return a.push(c, "enter", ra(l));
	        }, move: function move(c, d, h, l) {
	          d = d && x(d);h = h && x(h);d = d || h.parent();b(c, d, h);return a.push(c, "move", ra(l));
	        }, leave: function leave(b, c) {
	          return a.push(b, "leave", ra(c), function () {
	            b.remove();
	          });
	        }, addClass: function addClass(b, c, d) {
	          d = ra(d);d.addClass = ib(d.addclass, c);return a.push(b, "addClass", d);
	        }, removeClass: function removeClass(b, c, d) {
	          d = ra(d);d.removeClass = ib(d.removeClass, c);return a.push(b, "removeClass", d);
	        }, setClass: function setClass(b, c, d, f) {
	          f = ra(f);f.addClass = ib(f.addClass, c);f.removeClass = ib(f.removeClass, d);return a.push(b, "setClass", f);
	        }, animate: function animate(b, c, d, f, m) {
	          m = ra(m);m.from = m.from ? S(m.from, c) : c;m.to = m.to ? S(m.to, d) : d;m.tempClasses = ib(m.tempClasses, f || "ng-inline-animate");return a.push(b, "animate", m);
	        } };
	    }];
	  }],
	      Hf = function Hf() {
	    this.$get = ["$$rAF", function (a) {
	      function b(b) {
	        d.push(b);1 < d.length || a(function () {
	          for (var a = 0; a < d.length; a++) {
	            d[a]();
	          }d = [];
	        });
	      }var d = [];return function () {
	        var a = !1;b(function () {
	          a = !0;
	        });return function (d) {
	          a ? d() : b(d);
	        };
	      };
	    }];
	  },
	      Gf = function Gf() {
	    this.$get = ["$q", "$sniffer", "$$animateAsyncRun", "$$isDocumentHidden", "$timeout", function (a, b, d, c, e) {
	      function f(a) {
	        this.setHost(a);var b = d();this._doneCallbacks = [];this._tick = function (a) {
	          c() ? e(a, 0, !1) : b(a);
	        };this._state = 0;
	      }f.chain = function (a, b) {
	        function c() {
	          if (d === a.length) b(!0);else a[d](function (a) {
	            !1 === a ? b(!1) : (d++, c());
	          });
	        }var d = 0;c();
	      };f.all = function (a, b) {
	        function c(f) {
	          e = e && f;++d === a.length && b(e);
	        }var d = 0,
	            e = !0;r(a, function (a) {
	          a.done(c);
	        });
	      };
	      f.prototype = { setHost: function setHost(a) {
	          this.host = a || {};
	        }, done: function done(a) {
	          2 === this._state ? a() : this._doneCallbacks.push(a);
	        }, progress: E, getPromise: function getPromise() {
	          if (!this.promise) {
	            var b = this;this.promise = a(function (a, c) {
	              b.done(function (b) {
	                !1 === b ? c() : a();
	              });
	            });
	          }return this.promise;
	        }, then: function then(a, b) {
	          return this.getPromise().then(a, b);
	        }, "catch": function _catch(a) {
	          return this.getPromise()["catch"](a);
	        }, "finally": function _finally(a) {
	          return this.getPromise()["finally"](a);
	        }, pause: function pause() {
	          this.host.pause && this.host.pause();
	        }, resume: function resume() {
	          this.host.resume && this.host.resume();
	        }, end: function end() {
	          this.host.end && this.host.end();this._resolve(!0);
	        }, cancel: function cancel() {
	          this.host.cancel && this.host.cancel();this._resolve(!1);
	        }, complete: function complete(a) {
	          var b = this;0 === b._state && (b._state = 1, b._tick(function () {
	            b._resolve(a);
	          }));
	        }, _resolve: function _resolve(a) {
	          2 !== this._state && (r(this._doneCallbacks, function (b) {
	            b(a);
	          }), this._doneCallbacks.length = 0, this._state = 2);
	        } };return f;
	    }];
	  },
	      Df = function Df() {
	    this.$get = ["$$rAF", "$q", "$$AnimateRunner", function (a, b, d) {
	      return function (b, e) {
	        function f() {
	          a(function () {
	            g.addClass && (b.addClass(g.addClass), g.addClass = null);g.removeClass && (b.removeClass(g.removeClass), g.removeClass = null);g.to && (b.css(g.to), g.to = null);k || h.complete();k = !0;
	          });return h;
	        }var g = e || {};g.$$prepared || (g = Ia(g));g.cleanupStyles && (g.from = g.to = null);g.from && (b.css(g.from), g.from = null);var k,
	            h = new d();return { start: f, end: f };
	      };
	    }];
	  },
	      $ = F("$compile"),
	      uc = new function () {}();Zc.$inject = ["$provide", "$$sanitizeUriProvider"];Kb.prototype.isFirstChange = function () {
	    return this.previousValue === uc;
	  };var rd = /^((?:x|data)[:\-_])/i,
	      Jg = /[:\-_]+(.)/g,
	      xd = F("$controller"),
	      wd = /^(\S+)(\s+as\s+([\w$]+))?$/,
	      Of = function Of() {
	    this.$get = ["$document", function (a) {
	      return function (b) {
	        b ? !b.nodeType && b instanceof x && (b = b[0]) : b = a[0].body;return b.offsetWidth + 1;
	      };
	    }];
	  },
	      yd = "application/json",
	      xc = { "Content-Type": yd + ";charset=utf-8" },
	      Mg = /^\[|^\{(?!\{)/,
	      Ng = { "[": /]$/, "{": /}$/ },
	      Lg = /^\)]\}',?\n/,
	      Lb = F("$http"),
	      Ma = ca.$interpolateMinErr = F("$interpolate");Ma.throwNoconcat = function (a) {
	    throw Ma("noconcat", a);
	  };Ma.interr = function (a, b) {
	    return Ma("interr", a, b.toString());
	  };
	  var Qg = F("$interval"),
	      Xf = function Xf() {
	    this.$get = function () {
	      function a(a) {
	        var b = function b(a) {
	          b.data = a;b.called = !0;
	        };b.id = a;return b;
	      }var b = ca.callbacks,
	          d = {};return { createCallback: function createCallback(c) {
	          c = "_" + (b.$$counter++).toString(36);var e = "angular.callbacks." + c,
	              f = a(c);d[e] = b[c] = f;return e;
	        }, wasCalled: function wasCalled(a) {
	          return d[a].called;
	        }, getResponse: function getResponse(a) {
	          return d[a].data;
	        }, removeCallback: function removeCallback(a) {
	          delete b[d[a].id];delete d[a];
	        } };
	    };
	  },
	      uh = /^([^?#]*)(\?([^#]*))?(#(.*))?$/,
	      Rg = { http: 80, https: 443, ftp: 21 },
	      kb = F("$location"),
	      Sg = /^\s*[\\/]{2,}/,
	      vh = { $$absUrl: "", $$html5: !1, $$replace: !1, $$compose: function $$compose() {
	      for (var a = this.$$path, b = this.$$hash, d = Ce(this.$$search), b = b ? "#" + ic(b) : "", a = a.split("/"), c = a.length; c--;) {
	        a[c] = ic(a[c].replace(/%2F/g, "/"));
	      }this.$$url = a.join("/") + (d ? "?" + d : "") + b;this.$$absUrl = this.$$normalizeUrl(this.$$url);this.$$urlUpdatedByLocation = !0;
	    }, absUrl: Mb("$$absUrl"), url: function url(a) {
	      if (A(a)) return this.$$url;var b = uh.exec(a);(b[1] || "" === a) && this.path(decodeURIComponent(b[1]));(b[2] || b[1] || "" === a) && this.search(b[3] || "");this.hash(b[5] || "");return this;
	    }, protocol: Mb("$$protocol"), host: Mb("$$host"), port: Mb("$$port"), path: Fd("$$path", function (a) {
	      a = null !== a ? a.toString() : "";return "/" === a.charAt(0) ? a : "/" + a;
	    }), search: function search(a, b) {
	      switch (arguments.length) {case 0:
	          return this.$$search;case 1:
	          if (C(a) || X(a)) a = a.toString(), this.$$search = hc(a);else if (D(a)) a = Ia(a, {}), r(a, function (b, c) {
	            null == b && delete a[c];
	          }), this.$$search = a;else throw kb("isrcharg");break;default:
	          A(b) || null === b ? delete this.$$search[a] : this.$$search[a] = b;}this.$$compose();
	      return this;
	    }, hash: Fd("$$hash", function (a) {
	      return null !== a ? a.toString() : "";
	    }), replace: function replace() {
	      this.$$replace = !0;return this;
	    } };r([Ed, Ac, zc], function (a) {
	    a.prototype = Object.create(vh);a.prototype.state = function (b) {
	      if (!arguments.length) return this.$$state;if (a !== zc || !this.$$html5) throw kb("nostate");this.$$state = A(b) ? null : b;this.$$urlUpdatedByLocation = !0;return this;
	    };
	  });var Ya = F("$parse"),
	      Wg = {}.constructor.prototype.valueOf,
	      Vb = T();r("+ - * / % === !== == != < > <= >= && || ! = |".split(" "), function (a) {
	    Vb[a] = !0;
	  });var wh = { n: "\n", f: "\f", r: "\r", t: "\t", v: "\v", "'": "'", '"': '"' },
	      Ob = function Ob(a) {
	    this.options = a;
	  };Ob.prototype = { constructor: Ob, lex: function lex(a) {
	      this.text = a;this.index = 0;for (this.tokens = []; this.index < this.text.length;) {
	        if (a = this.text.charAt(this.index), '"' === a || "'" === a) this.readString(a);else if (this.isNumber(a) || "." === a && this.isNumber(this.peek())) this.readNumber();else if (this.isIdentifierStart(this.peekMultichar())) this.readIdent();else if (this.is(a, "(){}[].,;:?")) this.tokens.push({ index: this.index,
	          text: a }), this.index++;else if (this.isWhitespace(a)) this.index++;else {
	          var b = a + this.peek(),
	              d = b + this.peek(2),
	              c = Vb[b],
	              e = Vb[d];Vb[a] || c || e ? (a = e ? d : c ? b : a, this.tokens.push({ index: this.index, text: a, operator: !0 }), this.index += a.length) : this.throwError("Unexpected next character ", this.index, this.index + 1);
	        }
	      }return this.tokens;
	    }, is: function is(a, b) {
	      return -1 !== b.indexOf(a);
	    }, peek: function peek(a) {
	      a = a || 1;return this.index + a < this.text.length ? this.text.charAt(this.index + a) : !1;
	    }, isNumber: function isNumber(a) {
	      return "0" <= a && "9" >= a && "string" === typeof a;
	    }, isWhitespace: function isWhitespace(a) {
	      return " " === a || "\r" === a || "\t" === a || "\n" === a || "\v" === a || "\xA0" === a;
	    }, isIdentifierStart: function isIdentifierStart(a) {
	      return this.options.isIdentifierStart ? this.options.isIdentifierStart(a, this.codePointAt(a)) : this.isValidIdentifierStart(a);
	    }, isValidIdentifierStart: function isValidIdentifierStart(a) {
	      return "a" <= a && "z" >= a || "A" <= a && "Z" >= a || "_" === a || "$" === a;
	    }, isIdentifierContinue: function isIdentifierContinue(a) {
	      return this.options.isIdentifierContinue ? this.options.isIdentifierContinue(a, this.codePointAt(a)) : this.isValidIdentifierContinue(a);
	    },
	    isValidIdentifierContinue: function isValidIdentifierContinue(a, b) {
	      return this.isValidIdentifierStart(a, b) || this.isNumber(a);
	    }, codePointAt: function codePointAt(a) {
	      return 1 === a.length ? a.charCodeAt(0) : (a.charCodeAt(0) << 10) + a.charCodeAt(1) - 56613888;
	    }, peekMultichar: function peekMultichar() {
	      var a = this.text.charAt(this.index),
	          b = this.peek();if (!b) return a;var d = a.charCodeAt(0),
	          c = b.charCodeAt(0);return 55296 <= d && 56319 >= d && 56320 <= c && 57343 >= c ? a + b : a;
	    }, isExpOperator: function isExpOperator(a) {
	      return "-" === a || "+" === a || this.isNumber(a);
	    }, throwError: function throwError(a, b, d) {
	      d = d || this.index;b = w(b) ? "s " + b + "-" + this.index + " [" + this.text.substring(b, d) + "]" : " " + d;throw Ya("lexerr", a, b, this.text);
	    }, readNumber: function readNumber() {
	      for (var a = "", b = this.index; this.index < this.text.length;) {
	        var d = K(this.text.charAt(this.index));if ("." === d || this.isNumber(d)) a += d;else {
	          var c = this.peek();if ("e" === d && this.isExpOperator(c)) a += d;else if (this.isExpOperator(d) && c && this.isNumber(c) && "e" === a.charAt(a.length - 1)) a += d;else if (!this.isExpOperator(d) || c && this.isNumber(c) || "e" !== a.charAt(a.length - 1)) break;else this.throwError("Invalid exponent");
	        }this.index++;
	      }this.tokens.push({ index: b,
	        text: a, constant: !0, value: Number(a) });
	    }, readIdent: function readIdent() {
	      var a = this.index;for (this.index += this.peekMultichar().length; this.index < this.text.length;) {
	        var b = this.peekMultichar();if (!this.isIdentifierContinue(b)) break;this.index += b.length;
	      }this.tokens.push({ index: a, text: this.text.slice(a, this.index), identifier: !0 });
	    }, readString: function readString(a) {
	      var b = this.index;this.index++;for (var d = "", c = a, e = !1; this.index < this.text.length;) {
	        var f = this.text.charAt(this.index),
	            c = c + f;if (e) "u" === f ? (e = this.text.substring(this.index + 1, this.index + 5), e.match(/[\da-f]{4}/i) || this.throwError("Invalid unicode escape [\\u" + e + "]"), this.index += 4, d += String.fromCharCode(parseInt(e, 16))) : d += wh[f] || f, e = !1;else if ("\\" === f) e = !0;else {
	          if (f === a) {
	            this.index++;this.tokens.push({ index: b, text: c, constant: !0, value: d });return;
	          }d += f;
	        }this.index++;
	      }this.throwError("Unterminated quote", b);
	    } };var q = function q(a, b) {
	    this.lexer = a;this.options = b;
	  };q.Program = "Program";q.ExpressionStatement = "ExpressionStatement";q.AssignmentExpression = "AssignmentExpression";q.ConditionalExpression = "ConditionalExpression";q.LogicalExpression = "LogicalExpression";q.BinaryExpression = "BinaryExpression";q.UnaryExpression = "UnaryExpression";q.CallExpression = "CallExpression";q.MemberExpression = "MemberExpression";q.Identifier = "Identifier";q.Literal = "Literal";q.ArrayExpression = "ArrayExpression";q.Property = "Property";q.ObjectExpression = "ObjectExpression";q.ThisExpression = "ThisExpression";q.LocalsExpression = "LocalsExpression";q.NGValueParameter = "NGValueParameter";q.prototype = { ast: function ast(a) {
	      this.text = a;this.tokens = this.lexer.lex(a);a = this.program();0 !== this.tokens.length && this.throwError("is an unexpected token", this.tokens[0]);return a;
	    }, program: function program() {
	      for (var a = [];;) {
	        if (0 < this.tokens.length && !this.peek("}", ")", ";", "]") && a.push(this.expressionStatement()), !this.expect(";")) return { type: q.Program, body: a };
	      }
	    }, expressionStatement: function expressionStatement() {
	      return { type: q.ExpressionStatement, expression: this.filterChain() };
	    }, filterChain: function filterChain() {
	      for (var a = this.expression(); this.expect("|");) {
	        a = this.filter(a);
	      }return a;
	    },
	    expression: function expression() {
	      return this.assignment();
	    }, assignment: function assignment() {
	      var a = this.ternary();if (this.expect("=")) {
	        if (!Jd(a)) throw Ya("lval");a = { type: q.AssignmentExpression, left: a, right: this.assignment(), operator: "=" };
	      }return a;
	    }, ternary: function ternary() {
	      var a = this.logicalOR(),
	          b,
	          d;return this.expect("?") && (b = this.expression(), this.consume(":")) ? (d = this.expression(), { type: q.ConditionalExpression, test: a, alternate: b, consequent: d }) : a;
	    }, logicalOR: function logicalOR() {
	      for (var a = this.logicalAND(); this.expect("||");) {
	        a = { type: q.LogicalExpression,
	          operator: "||", left: a, right: this.logicalAND() };
	      }return a;
	    }, logicalAND: function logicalAND() {
	      for (var a = this.equality(); this.expect("&&");) {
	        a = { type: q.LogicalExpression, operator: "&&", left: a, right: this.equality() };
	      }return a;
	    }, equality: function equality() {
	      for (var a = this.relational(), b; b = this.expect("==", "!=", "===", "!==");) {
	        a = { type: q.BinaryExpression, operator: b.text, left: a, right: this.relational() };
	      }return a;
	    }, relational: function relational() {
	      for (var a = this.additive(), b; b = this.expect("<", ">", "<=", ">=");) {
	        a = { type: q.BinaryExpression, operator: b.text,
	          left: a, right: this.additive() };
	      }return a;
	    }, additive: function additive() {
	      for (var a = this.multiplicative(), b; b = this.expect("+", "-");) {
	        a = { type: q.BinaryExpression, operator: b.text, left: a, right: this.multiplicative() };
	      }return a;
	    }, multiplicative: function multiplicative() {
	      for (var a = this.unary(), b; b = this.expect("*", "/", "%");) {
	        a = { type: q.BinaryExpression, operator: b.text, left: a, right: this.unary() };
	      }return a;
	    }, unary: function unary() {
	      var a;return (a = this.expect("+", "-", "!")) ? { type: q.UnaryExpression, operator: a.text, prefix: !0, argument: this.unary() } : this.primary();
	    },
	    primary: function primary() {
	      var a;this.expect("(") ? (a = this.filterChain(), this.consume(")")) : this.expect("[") ? a = this.arrayDeclaration() : this.expect("{") ? a = this.object() : this.selfReferential.hasOwnProperty(this.peek().text) ? a = Ia(this.selfReferential[this.consume().text]) : this.options.literals.hasOwnProperty(this.peek().text) ? a = { type: q.Literal, value: this.options.literals[this.consume().text] } : this.peek().identifier ? a = this.identifier() : this.peek().constant ? a = this.constant() : this.throwError("not a primary expression", this.peek());for (var b; b = this.expect("(", "[", ".");) {
	        "(" === b.text ? (a = { type: q.CallExpression, callee: a, arguments: this.parseArguments() }, this.consume(")")) : "[" === b.text ? (a = { type: q.MemberExpression, object: a, property: this.expression(), computed: !0 }, this.consume("]")) : "." === b.text ? a = { type: q.MemberExpression, object: a, property: this.identifier(), computed: !1 } : this.throwError("IMPOSSIBLE");
	      }return a;
	    }, filter: function filter(a) {
	      a = [a];for (var b = { type: q.CallExpression, callee: this.identifier(), arguments: a, filter: !0 }; this.expect(":");) {
	        a.push(this.expression());
	      }return b;
	    }, parseArguments: function parseArguments() {
	      var a = [];if (")" !== this.peekToken().text) {
	        do {
	          a.push(this.filterChain());
	        } while (this.expect(","));
	      }return a;
	    }, identifier: function identifier() {
	      var a = this.consume();a.identifier || this.throwError("is not a valid identifier", a);return { type: q.Identifier, name: a.text };
	    }, constant: function constant() {
	      return { type: q.Literal, value: this.consume().value };
	    }, arrayDeclaration: function arrayDeclaration() {
	      var a = [];if ("]" !== this.peekToken().text) {
	        do {
	          if (this.peek("]")) break;a.push(this.expression());
	        } while (this.expect(","));
	      }this.consume("]");
	      return { type: q.ArrayExpression, elements: a };
	    }, object: function object() {
	      var a = [],
	          b;if ("}" !== this.peekToken().text) {
	        do {
	          if (this.peek("}")) break;b = { type: q.Property, kind: "init" };this.peek().constant ? (b.key = this.constant(), b.computed = !1, this.consume(":"), b.value = this.expression()) : this.peek().identifier ? (b.key = this.identifier(), b.computed = !1, this.peek(":") ? (this.consume(":"), b.value = this.expression()) : b.value = b.key) : this.peek("[") ? (this.consume("["), b.key = this.expression(), this.consume("]"), b.computed = !0, this.consume(":"), b.value = this.expression()) : this.throwError("invalid key", this.peek());a.push(b);
	        } while (this.expect(","));
	      }this.consume("}");return { type: q.ObjectExpression, properties: a };
	    }, throwError: function throwError(a, b) {
	      throw Ya("syntax", b.text, a, b.index + 1, this.text, this.text.substring(b.index));
	    }, consume: function consume(a) {
	      if (0 === this.tokens.length) throw Ya("ueoe", this.text);var b = this.expect(a);b || this.throwError("is unexpected, expecting [" + a + "]", this.peek());return b;
	    }, peekToken: function peekToken() {
	      if (0 === this.tokens.length) throw Ya("ueoe", this.text);return this.tokens[0];
	    }, peek: function peek(a, b, d, c) {
	      return this.peekAhead(0, a, b, d, c);
	    }, peekAhead: function peekAhead(a, b, d, c, e) {
	      if (this.tokens.length > a) {
	        a = this.tokens[a];var f = a.text;if (f === b || f === d || f === c || f === e || !(b || d || c || e)) return a;
	      }return !1;
	    }, expect: function expect(a, b, d, c) {
	      return (a = this.peek(a, b, d, c)) ? (this.tokens.shift(), a) : !1;
	    }, selfReferential: { "this": { type: q.ThisExpression }, $locals: { type: q.LocalsExpression } } };var Hd = 2;Ld.prototype = { compile: function compile(a) {
	      var b = this;this.state = { nextId: 0, filters: {}, fn: { vars: [],
	          body: [], own: {} }, assign: { vars: [], body: [], own: {} }, inputs: [] };Z(a, b.$filter);var d = "",
	          c;this.stage = "assign";if (c = Kd(a)) this.state.computing = "assign", d = this.nextId(), this.recurse(c, d), this.return_(d), d = "fn.assign=" + this.generateFunction("assign", "s,v,l");c = Id(a.body);b.stage = "inputs";r(c, function (a, c) {
	        var d = "fn" + c;b.state[d] = { vars: [], body: [], own: {} };b.state.computing = d;var k = b.nextId();b.recurse(a, k);b.return_(k);b.state.inputs.push({ name: d, isPure: a.isPure });a.watchId = c;
	      });this.state.computing = "fn";this.stage = "main";this.recurse(a);a = '"' + this.USE + " " + this.STRICT + '";\n' + this.filterPrefix() + "var fn=" + this.generateFunction("fn", "s,l,a,i") + d + this.watchFns() + "return fn;";a = new Function("$filter", "getStringValue", "ifDefined", "plus", a)(this.$filter, Tg, Ug, Gd);this.state = this.stage = void 0;return a;
	    }, USE: "use", STRICT: "strict", watchFns: function watchFns() {
	      var a = [],
	          b = this.state.inputs,
	          d = this;r(b, function (b) {
	        a.push("var " + b.name + "=" + d.generateFunction(b.name, "s"));b.isPure && a.push(b.name, ".isPure=" + JSON.stringify(b.isPure) + ";");
	      });b.length && a.push("fn.inputs=[" + b.map(function (a) {
	        return a.name;
	      }).join(",") + "];");return a.join("");
	    }, generateFunction: function generateFunction(a, b) {
	      return "function(" + b + "){" + this.varsPrefix(a) + this.body(a) + "};";
	    }, filterPrefix: function filterPrefix() {
	      var a = [],
	          b = this;r(this.state.filters, function (d, c) {
	        a.push(d + "=$filter(" + b.escape(c) + ")");
	      });return a.length ? "var " + a.join(",") + ";" : "";
	    }, varsPrefix: function varsPrefix(a) {
	      return this.state[a].vars.length ? "var " + this.state[a].vars.join(",") + ";" : "";
	    }, body: function body(a) {
	      return this.state[a].body.join("");
	    },
	    recurse: function recurse(a, b, d, c, e, f) {
	      var g,
	          k,
	          h = this,
	          l,
	          m,
	          p;c = c || E;if (!f && w(a.watchId)) b = b || this.nextId(), this.if_("i", this.lazyAssign(b, this.computedMember("i", a.watchId)), this.lazyRecurse(a, b, d, c, e, !0));else switch (a.type) {case q.Program:
	          r(a.body, function (b, c) {
	            h.recurse(b.expression, void 0, void 0, function (a) {
	              k = a;
	            });c !== a.body.length - 1 ? h.current().body.push(k, ";") : h.return_(k);
	          });break;case q.Literal:
	          m = this.escape(a.value);this.assign(b, m);c(b || m);break;case q.UnaryExpression:
	          this.recurse(a.argument, void 0, void 0, function (a) {
	            k = a;
	          });m = a.operator + "(" + this.ifDefined(k, 0) + ")";this.assign(b, m);c(m);break;case q.BinaryExpression:
	          this.recurse(a.left, void 0, void 0, function (a) {
	            g = a;
	          });this.recurse(a.right, void 0, void 0, function (a) {
	            k = a;
	          });m = "+" === a.operator ? this.plus(g, k) : "-" === a.operator ? this.ifDefined(g, 0) + a.operator + this.ifDefined(k, 0) : "(" + g + ")" + a.operator + "(" + k + ")";this.assign(b, m);c(m);break;case q.LogicalExpression:
	          b = b || this.nextId();h.recurse(a.left, b);h.if_("&&" === a.operator ? b : h.not(b), h.lazyRecurse(a.right, b));c(b);break;case q.ConditionalExpression:
	          b = b || this.nextId();h.recurse(a.test, b);h.if_(b, h.lazyRecurse(a.alternate, b), h.lazyRecurse(a.consequent, b));c(b);break;case q.Identifier:
	          b = b || this.nextId();d && (d.context = "inputs" === h.stage ? "s" : this.assign(this.nextId(), this.getHasOwnProperty("l", a.name) + "?l:s"), d.computed = !1, d.name = a.name);h.if_("inputs" === h.stage || h.not(h.getHasOwnProperty("l", a.name)), function () {
	            h.if_("inputs" === h.stage || "s", function () {
	              e && 1 !== e && h.if_(h.isNull(h.nonComputedMember("s", a.name)), h.lazyAssign(h.nonComputedMember("s", a.name), "{}"));h.assign(b, h.nonComputedMember("s", a.name));
	            });
	          }, b && h.lazyAssign(b, h.nonComputedMember("l", a.name)));c(b);break;case q.MemberExpression:
	          g = d && (d.context = this.nextId()) || this.nextId();b = b || this.nextId();h.recurse(a.object, g, void 0, function () {
	            h.if_(h.notNull(g), function () {
	              a.computed ? (k = h.nextId(), h.recurse(a.property, k), h.getStringValue(k), e && 1 !== e && h.if_(h.not(h.computedMember(g, k)), h.lazyAssign(h.computedMember(g, k), "{}")), m = h.computedMember(g, k), h.assign(b, m), d && (d.computed = !0, d.name = k)) : (e && 1 !== e && h.if_(h.isNull(h.nonComputedMember(g, a.property.name)), h.lazyAssign(h.nonComputedMember(g, a.property.name), "{}")), m = h.nonComputedMember(g, a.property.name), h.assign(b, m), d && (d.computed = !1, d.name = a.property.name));
	            }, function () {
	              h.assign(b, "undefined");
	            });c(b);
	          }, !!e);break;case q.CallExpression:
	          b = b || this.nextId();a.filter ? (k = h.filter(a.callee.name), l = [], r(a.arguments, function (a) {
	            var b = h.nextId();h.recurse(a, b);l.push(b);
	          }), m = k + "(" + l.join(",") + ")", h.assign(b, m), c(b)) : (k = h.nextId(), g = {}, l = [], h.recurse(a.callee, k, g, function () {
	            h.if_(h.notNull(k), function () {
	              r(a.arguments, function (b) {
	                h.recurse(b, a.constant ? void 0 : h.nextId(), void 0, function (a) {
	                  l.push(a);
	                });
	              });m = g.name ? h.member(g.context, g.name, g.computed) + "(" + l.join(",") + ")" : k + "(" + l.join(",") + ")";h.assign(b, m);
	            }, function () {
	              h.assign(b, "undefined");
	            });c(b);
	          }));break;case q.AssignmentExpression:
	          k = this.nextId();g = {};this.recurse(a.left, void 0, g, function () {
	            h.if_(h.notNull(g.context), function () {
	              h.recurse(a.right, k);m = h.member(g.context, g.name, g.computed) + a.operator + k;h.assign(b, m);c(b || m);
	            });
	          }, 1);break;case q.ArrayExpression:
	          l = [];r(a.elements, function (b) {
	            h.recurse(b, a.constant ? void 0 : h.nextId(), void 0, function (a) {
	              l.push(a);
	            });
	          });m = "[" + l.join(",") + "]";this.assign(b, m);c(b || m);break;case q.ObjectExpression:
	          l = [];p = !1;r(a.properties, function (a) {
	            a.computed && (p = !0);
	          });p ? (b = b || this.nextId(), this.assign(b, "{}"), r(a.properties, function (a) {
	            a.computed ? (g = h.nextId(), h.recurse(a.key, g)) : g = a.key.type === q.Identifier ? a.key.name : "" + a.key.value;k = h.nextId();
	            h.recurse(a.value, k);h.assign(h.member(b, g, a.computed), k);
	          })) : (r(a.properties, function (b) {
	            h.recurse(b.value, a.constant ? void 0 : h.nextId(), void 0, function (a) {
	              l.push(h.escape(b.key.type === q.Identifier ? b.key.name : "" + b.key.value) + ":" + a);
	            });
	          }), m = "{" + l.join(",") + "}", this.assign(b, m));c(b || m);break;case q.ThisExpression:
	          this.assign(b, "s");c(b || "s");break;case q.LocalsExpression:
	          this.assign(b, "l");c(b || "l");break;case q.NGValueParameter:
	          this.assign(b, "v"), c(b || "v");}
	    }, getHasOwnProperty: function getHasOwnProperty(a, b) {
	      var d = a + "." + b,
	          c = this.current().own;c.hasOwnProperty(d) || (c[d] = this.nextId(!1, a + "&&(" + this.escape(b) + " in " + a + ")"));return c[d];
	    }, assign: function assign(a, b) {
	      if (a) return this.current().body.push(a, "=", b, ";"), a;
	    }, filter: function filter(a) {
	      this.state.filters.hasOwnProperty(a) || (this.state.filters[a] = this.nextId(!0));return this.state.filters[a];
	    }, ifDefined: function ifDefined(a, b) {
	      return "ifDefined(" + a + "," + this.escape(b) + ")";
	    }, plus: function plus(a, b) {
	      return "plus(" + a + "," + b + ")";
	    }, return_: function return_(a) {
	      this.current().body.push("return ", a, ";");
	    }, if_: function if_(a, b, d) {
	      if (!0 === a) b();else {
	        var c = this.current().body;c.push("if(", a, "){");b();c.push("}");d && (c.push("else{"), d(), c.push("}"));
	      }
	    }, not: function not(a) {
	      return "!(" + a + ")";
	    }, isNull: function isNull(a) {
	      return a + "==null";
	    }, notNull: function notNull(a) {
	      return a + "!=null";
	    }, nonComputedMember: function nonComputedMember(a, b) {
	      var d = /[^$_a-zA-Z0-9]/g;return (/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(b) ? a + "." + b : a + '["' + b.replace(d, this.stringEscapeFn) + '"]'
	      );
	    }, computedMember: function computedMember(a, b) {
	      return a + "[" + b + "]";
	    }, member: function member(a, b, d) {
	      return d ? this.computedMember(a, b) : this.nonComputedMember(a, b);
	    }, getStringValue: function getStringValue(a) {
	      this.assign(a, "getStringValue(" + a + ")");
	    }, lazyRecurse: function lazyRecurse(a, b, d, c, e, f) {
	      var g = this;return function () {
	        g.recurse(a, b, d, c, e, f);
	      };
	    }, lazyAssign: function lazyAssign(a, b) {
	      var d = this;return function () {
	        d.assign(a, b);
	      };
	    }, stringEscapeRegex: /[^ a-zA-Z0-9]/g, stringEscapeFn: function stringEscapeFn(a) {
	      return "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4);
	    }, escape: function escape(a) {
	      if (C(a)) return "'" + a.replace(this.stringEscapeRegex, this.stringEscapeFn) + "'";if (X(a)) return a.toString();if (!0 === a) return "true";if (!1 === a) return "false";if (null === a) return "null";if ("undefined" === typeof a) return "undefined";throw Ya("esc");
	    }, nextId: function nextId(a, b) {
	      var d = "v" + this.state.nextId++;a || this.current().vars.push(d + (b ? "=" + b : ""));return d;
	    }, current: function current() {
	      return this.state[this.state.computing];
	    } };Md.prototype = { compile: function compile(a) {
	      var b = this;Z(a, b.$filter);var d, c;if (d = Kd(a)) c = this.recurse(d);d = Id(a.body);var e;d && (e = [], r(d, function (a, c) {
	        var d = b.recurse(a);d.isPure = a.isPure;a.input = d;e.push(d);a.watchId = c;
	      }));var f = [];r(a.body, function (a) {
	        f.push(b.recurse(a.expression));
	      });a = 0 === a.body.length ? E : 1 === a.body.length ? f[0] : function (a, b) {
	        var c;r(f, function (d) {
	          c = d(a, b);
	        });return c;
	      };c && (a.assign = function (a, b, d) {
	        return c(a, d, b);
	      });e && (a.inputs = e);return a;
	    }, recurse: function recurse(a, b, d) {
	      var c,
	          e,
	          f = this,
	          g;if (a.input) return this.inputs(a.input, a.watchId);switch (a.type) {case q.Literal:
	          return this.value(a.value, b);case q.UnaryExpression:
	          return e = this.recurse(a.argument), this["unary" + a.operator](e, b);case q.BinaryExpression:
	          return c = this.recurse(a.left), e = this.recurse(a.right), this["binary" + a.operator](c, e, b);case q.LogicalExpression:
	          return c = this.recurse(a.left), e = this.recurse(a.right), this["binary" + a.operator](c, e, b);case q.ConditionalExpression:
	          return this["ternary?:"](this.recurse(a.test), this.recurse(a.alternate), this.recurse(a.consequent), b);case q.Identifier:
	          return f.identifier(a.name, b, d);case q.MemberExpression:
	          return c = this.recurse(a.object, !1, !!d), a.computed || (e = a.property.name), a.computed && (e = this.recurse(a.property)), a.computed ? this.computedMember(c, e, b, d) : this.nonComputedMember(c, e, b, d);case q.CallExpression:
	          return g = [], r(a.arguments, function (a) {
	            g.push(f.recurse(a));
	          }), a.filter && (e = this.$filter(a.callee.name)), a.filter || (e = this.recurse(a.callee, !0)), a.filter ? function (a, c, d, f) {
	            for (var p = [], n = 0; n < g.length; ++n) {
	              p.push(g[n](a, c, d, f));
	            }a = e.apply(void 0, p, f);return b ? { context: void 0, name: void 0, value: a } : a;
	          } : function (a, c, d, f) {
	            var p = e(a, c, d, f),
	                n;if (null != p.value) {
	              n = [];for (var s = 0; s < g.length; ++s) {
	                n.push(g[s](a, c, d, f));
	              }n = p.value.apply(p.context, n);
	            }return b ? { value: n } : n;
	          };case q.AssignmentExpression:
	          return c = this.recurse(a.left, !0, 1), e = this.recurse(a.right), function (a, d, f, g) {
	            var p = c(a, d, f, g);a = e(a, d, f, g);p.context[p.name] = a;return b ? { value: a } : a;
	          };case q.ArrayExpression:
	          return g = [], r(a.elements, function (a) {
	            g.push(f.recurse(a));
	          }), function (a, c, d, e) {
	            for (var f = [], n = 0; n < g.length; ++n) {
	              f.push(g[n](a, c, d, e));
	            }return b ? { value: f } : f;
	          };case q.ObjectExpression:
	          return g = [], r(a.properties, function (a) {
	            a.computed ? g.push({ key: f.recurse(a.key), computed: !0, value: f.recurse(a.value) }) : g.push({ key: a.key.type === q.Identifier ? a.key.name : "" + a.key.value, computed: !1, value: f.recurse(a.value) });
	          }), function (a, c, d, e) {
	            for (var f = {}, n = 0; n < g.length; ++n) {
	              g[n].computed ? f[g[n].key(a, c, d, e)] = g[n].value(a, c, d, e) : f[g[n].key] = g[n].value(a, c, d, e);
	            }return b ? { value: f } : f;
	          };case q.ThisExpression:
	          return function (a) {
	            return b ? { value: a } : a;
	          };case q.LocalsExpression:
	          return function (a, c) {
	            return b ? { value: c } : c;
	          };case q.NGValueParameter:
	          return function (a, c, d) {
	            return b ? { value: d } : d;
	          };}
	    }, "unary+": function unary(a, b) {
	      return function (d, c, e, f) {
	        d = a(d, c, e, f);d = w(d) ? +d : 0;return b ? { value: d } : d;
	      };
	    }, "unary-": function unary(a, b) {
	      return function (d, c, e, f) {
	        d = a(d, c, e, f);d = w(d) ? -d : -0;return b ? { value: d } : d;
	      };
	    }, "unary!": function unary(a, b) {
	      return function (d, c, e, f) {
	        d = !a(d, c, e, f);return b ? { value: d } : d;
	      };
	    }, "binary+": function binary(a, b, d) {
	      return function (c, e, f, g) {
	        var k = a(c, e, f, g);c = b(c, e, f, g);k = Gd(k, c);return d ? { value: k } : k;
	      };
	    }, "binary-": function binary(a, b, d) {
	      return function (c, e, f, g) {
	        var k = a(c, e, f, g);c = b(c, e, f, g);k = (w(k) ? k : 0) - (w(c) ? c : 0);return d ? { value: k } : k;
	      };
	    }, "binary*": function binary(a, b, d) {
	      return function (c, e, f, g) {
	        c = a(c, e, f, g) * b(c, e, f, g);return d ? { value: c } : c;
	      };
	    }, "binary/": function binary(a, b, d) {
	      return function (c, e, f, g) {
	        c = a(c, e, f, g) / b(c, e, f, g);return d ? { value: c } : c;
	      };
	    }, "binary%": function binary(a, b, d) {
	      return function (c, e, f, g) {
	        c = a(c, e, f, g) % b(c, e, f, g);return d ? { value: c } : c;
	      };
	    }, "binary===": function binary(a, b, d) {
	      return function (c, e, f, g) {
	        c = a(c, e, f, g) === b(c, e, f, g);return d ? { value: c } : c;
	      };
	    }, "binary!==": function binary(a, b, d) {
	      return function (c, e, f, g) {
	        c = a(c, e, f, g) !== b(c, e, f, g);return d ? { value: c } : c;
	      };
	    }, "binary==": function binary(a, b, d) {
	      return function (c, e, f, g) {
	        c = a(c, e, f, g) == b(c, e, f, g);return d ? { value: c } : c;
	      };
	    }, "binary!=": function binary(a, b, d) {
	      return function (c, e, f, g) {
	        c = a(c, e, f, g) != b(c, e, f, g);return d ? { value: c } : c;
	      };
	    }, "binary<": function binary(a, b, d) {
	      return function (c, e, f, g) {
	        c = a(c, e, f, g) < b(c, e, f, g);return d ? { value: c } : c;
	      };
	    }, "binary>": function binary(a, b, d) {
	      return function (c, e, f, g) {
	        c = a(c, e, f, g) > b(c, e, f, g);return d ? { value: c } : c;
	      };
	    }, "binary<=": function binary(a, b, d) {
	      return function (c, e, f, g) {
	        c = a(c, e, f, g) <= b(c, e, f, g);return d ? { value: c } : c;
	      };
	    }, "binary>=": function binary(a, b, d) {
	      return function (c, e, f, g) {
	        c = a(c, e, f, g) >= b(c, e, f, g);return d ? { value: c } : c;
	      };
	    }, "binary&&": function binary(a, b, d) {
	      return function (c, e, f, g) {
	        c = a(c, e, f, g) && b(c, e, f, g);return d ? { value: c } : c;
	      };
	    }, "binary||": function binary(a, b, d) {
	      return function (c, e, f, g) {
	        c = a(c, e, f, g) || b(c, e, f, g);return d ? { value: c } : c;
	      };
	    }, "ternary?:": function ternary(a, b, d, c) {
	      return function (e, f, g, k) {
	        e = a(e, f, g, k) ? b(e, f, g, k) : d(e, f, g, k);return c ? { value: e } : e;
	      };
	    }, value: function value(a, b) {
	      return function () {
	        return b ? { context: void 0, name: void 0, value: a } : a;
	      };
	    }, identifier: function identifier(a, b, d) {
	      return function (c, e, f, g) {
	        c = e && a in e ? e : c;d && 1 !== d && c && null == c[a] && (c[a] = {});e = c ? c[a] : void 0;return b ? { context: c, name: a, value: e } : e;
	      };
	    }, computedMember: function computedMember(a, b, d, c) {
	      return function (e, f, g, k) {
	        var h = a(e, f, g, k),
	            l,
	            m;null != h && (l = b(e, f, g, k), l += "", c && 1 !== c && h && !h[l] && (h[l] = {}), m = h[l]);return d ? { context: h, name: l, value: m } : m;
	      };
	    }, nonComputedMember: function nonComputedMember(a, b, d, c) {
	      return function (e, f, g, k) {
	        e = a(e, f, g, k);c && 1 !== c && e && null == e[b] && (e[b] = {});f = null != e ? e[b] : void 0;return d ? { context: e, name: b, value: f } : f;
	      };
	    }, inputs: function inputs(a, b) {
	      return function (d, c, e, f) {
	        return f ? f[b] : a(d, c, e);
	      };
	    } };Nb.prototype = { constructor: Nb, parse: function parse(a) {
	      a = this.getAst(a);var b = this.astCompiler.compile(a.ast),
	          d = a.ast;b.literal = 0 === d.body.length || 1 === d.body.length && (d.body[0].expression.type === q.Literal || d.body[0].expression.type === q.ArrayExpression || d.body[0].expression.type === q.ObjectExpression);b.constant = a.ast.constant;b.oneTime = a.oneTime;return b;
	    }, getAst: function getAst(a) {
	      var b = !1;a = a.trim();":" === a.charAt(0) && ":" === a.charAt(1) && (b = !0, a = a.substring(2));return { ast: this.ast.ast(a),
	        oneTime: b };
	    } };var Ea = F("$sce"),
	      W = { HTML: "html", CSS: "css", MEDIA_URL: "mediaUrl", URL: "url", RESOURCE_URL: "resourceUrl", JS: "js" },
	      Dc = /_([a-z])/g,
	      Zg = F("$templateRequest"),
	      $g = F("$timeout"),
	      aa = z.document.createElement("a"),
	      Qd = ga(z.location.href),
	      Na;aa.href = "http://[::1]";var ah = "[::1]" === aa.hostname;Rd.$inject = ["$document"];fd.$inject = ["$provide"];var Yd = 22,
	      Xd = ".",
	      Fc = "0";Sd.$inject = ["$locale"];Ud.$inject = ["$locale"];var lh = { yyyy: ea("FullYear", 4, 0, !1, !0), yy: ea("FullYear", 2, 0, !0, !0), y: ea("FullYear", 1, 0, !1, !0),
	    MMMM: lb("Month"), MMM: lb("Month", !0), MM: ea("Month", 2, 1), M: ea("Month", 1, 1), LLLL: lb("Month", !1, !0), dd: ea("Date", 2), d: ea("Date", 1), HH: ea("Hours", 2), H: ea("Hours", 1), hh: ea("Hours", 2, -12), h: ea("Hours", 1, -12), mm: ea("Minutes", 2), m: ea("Minutes", 1), ss: ea("Seconds", 2), s: ea("Seconds", 1), sss: ea("Milliseconds", 3), EEEE: lb("Day"), EEE: lb("Day", !0), a: function a(_a, b) {
	      return 12 > _a.getHours() ? b.AMPMS[0] : b.AMPMS[1];
	    }, Z: function Z(a, b, d) {
	      a = -1 * d;return a = (0 <= a ? "+" : "") + (Pb(Math[0 < a ? "floor" : "ceil"](a / 60), 2) + Pb(Math.abs(a % 60), 2));
	    },
	    ww: $d(2), w: $d(1), G: Gc, GG: Gc, GGG: Gc, GGGG: function GGGG(a, b) {
	      return 0 >= a.getFullYear() ? b.ERANAMES[0] : b.ERANAMES[1];
	    } },
	      kh = /((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,
	      jh = /^-?\d+$/;Td.$inject = ["$locale"];var eh = ia(K),
	      fh = ia(vb);Vd.$inject = ["$parse"];var Re = ia({ restrict: "E", compile: function compile(a, b) {
	      if (!b.href && !b.xlinkHref) return function (a, b) {
	        if ("a" === b[0].nodeName.toLowerCase()) {
	          var e = "[object SVGAnimatedString]" === la.call(b.prop("href")) ? "xlink:href" : "href";
	          b.on("click", function (a) {
	            b.attr(e) || a.preventDefault();
	          });
	        }
	      };
	    } }),
	      wb = {};r(Hb, function (a, b) {
	    function d(a, d, e) {
	      a.$watch(e[c], function (a) {
	        e.$set(b, !!a);
	      });
	    }if ("multiple" !== a) {
	      var c = xa("ng-" + b),
	          e = d;"checked" === a && (e = function e(a, b, _e) {
	        _e.ngModel !== _e[c] && d(a, b, _e);
	      });wb[c] = function () {
	        return { restrict: "A", priority: 100, link: e };
	      };
	    }
	  });r(vd, function (a, b) {
	    wb[b] = function () {
	      return { priority: 100, link: function link(a, c, e) {
	          if ("ngPattern" === b && "/" === e.ngPattern.charAt(0) && (c = e.ngPattern.match(ke))) {
	            e.$set("ngPattern", new RegExp(c[1], c[2]));return;
	          }a.$watch(e[b], function (a) {
	            e.$set(b, a);
	          });
	        } };
	    };
	  });r(["src", "srcset", "href"], function (a) {
	    var b = xa("ng-" + a);wb[b] = ["$sce", function (d) {
	      return { priority: 99, link: function link(c, e, f) {
	          var g = a,
	              k = a;"href" === a && "[object SVGAnimatedString]" === la.call(e.prop("href")) && (k = "xlinkHref", f.$attr[k] = "xlink:href", g = null);f.$set(b, d.getTrustedMediaUrl(f[b]));f.$observe(b, function (b) {
	            b ? (f.$set(k, b), wa && g && e.prop(g, f[k])) : "href" === a && f.$set(k, null);
	          });
	        } };
	    }];
	  });var mb = { $addControl: E, $getControls: ia([]), $$renameControl: function $$renameControl(a, b) {
	      a.$name = b;
	    }, $removeControl: E, $setValidity: E, $setDirty: E, $setPristine: E, $setSubmitted: E, $$setSubmitted: E };Qb.$inject = ["$element", "$attrs", "$scope", "$animate", "$interpolate"];Qb.prototype = { $rollbackViewValue: function $rollbackViewValue() {
	      r(this.$$controls, function (a) {
	        a.$rollbackViewValue();
	      });
	    }, $commitViewValue: function $commitViewValue() {
	      r(this.$$controls, function (a) {
	        a.$commitViewValue();
	      });
	    }, $addControl: function $addControl(a) {
	      Ja(a.$name, "input");this.$$controls.push(a);a.$name && (this[a.$name] = a);a.$$parentForm = this;
	    }, $getControls: function $getControls() {
	      return ja(this.$$controls);
	    },
	    $$renameControl: function $$renameControl(a, b) {
	      var d = a.$name;this[d] === a && delete this[d];this[b] = a;a.$name = b;
	    }, $removeControl: function $removeControl(a) {
	      a.$name && this[a.$name] === a && delete this[a.$name];r(this.$pending, function (b, d) {
	        this.$setValidity(d, null, a);
	      }, this);r(this.$error, function (b, d) {
	        this.$setValidity(d, null, a);
	      }, this);r(this.$$success, function (b, d) {
	        this.$setValidity(d, null, a);
	      }, this);cb(this.$$controls, a);a.$$parentForm = mb;
	    }, $setDirty: function $setDirty() {
	      this.$$animate.removeClass(this.$$element, Za);this.$$animate.addClass(this.$$element, Wb);this.$dirty = !0;this.$pristine = !1;this.$$parentForm.$setDirty();
	    }, $setPristine: function $setPristine() {
	      this.$$animate.setClass(this.$$element, Za, Wb + " ng-submitted");this.$dirty = !1;this.$pristine = !0;this.$submitted = !1;r(this.$$controls, function (a) {
	        a.$setPristine();
	      });
	    }, $setUntouched: function $setUntouched() {
	      r(this.$$controls, function (a) {
	        a.$setUntouched();
	      });
	    }, $setSubmitted: function $setSubmitted() {
	      for (var a = this; a.$$parentForm && a.$$parentForm !== mb;) {
	        a = a.$$parentForm;
	      }a.$$setSubmitted();
	    }, $$setSubmitted: function $$setSubmitted() {
	      this.$$animate.addClass(this.$$element, "ng-submitted");this.$submitted = !0;r(this.$$controls, function (a) {
	        a.$$setSubmitted && a.$$setSubmitted();
	      });
	    } };ce({ clazz: Qb, set: function set(a, b, d) {
	      var c = a[b];c ? -1 === c.indexOf(d) && c.push(d) : a[b] = [d];
	    }, unset: function unset(a, b, d) {
	      var c = a[b];c && (cb(c, d), 0 === c.length && delete a[b]);
	    } });var oe = function oe(a) {
	    return ["$timeout", "$parse", function (b, d) {
	      function c(a) {
	        return "" === a ? d('this[""]').assign : d(a).assign || E;
	      }return { name: "form", restrict: a ? "EAC" : "E", require: ["form", "^^?form"], controller: Qb, compile: function compile(d, f) {
	          d.addClass(Za).addClass(nb);
	          var g = f.name ? "name" : a && f.ngForm ? "ngForm" : !1;return { pre: function pre(a, d, e, f) {
	              var p = f[0];if (!("action" in e)) {
	                var n = function n(b) {
	                  a.$apply(function () {
	                    p.$commitViewValue();p.$setSubmitted();
	                  });b.preventDefault();
	                };d[0].addEventListener("submit", n);d.on("$destroy", function () {
	                  b(function () {
	                    d[0].removeEventListener("submit", n);
	                  }, 0, !1);
	                });
	              }(f[1] || p.$$parentForm).$addControl(p);var s = g ? c(p.$name) : E;g && (s(a, p), e.$observe(g, function (b) {
	                p.$name !== b && (s(a, void 0), p.$$parentForm.$$renameControl(p, b), s = c(p.$name), s(a, p));
	              }));
	              d.on("$destroy", function () {
	                p.$$parentForm.$removeControl(p);s(a, void 0);S(p, mb);
	              });
	            } };
	        } };
	    }];
	  },
	      Se = oe(),
	      df = oe(!0),
	      mh = /^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,
	      xh = /^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,
	      yh = /^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[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])?)*$/,
	      nh = /^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,
	      pe = /^(\d{4,})-(\d{2})-(\d{2})$/,
	      qe = /^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,
	      Oc = /^(\d{4,})-W(\d\d)$/,
	      re = /^(\d{4,})-(\d\d)$/,
	      se = /^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,
	      ee = T();r(["date", "datetime-local", "month", "time", "week"], function (a) {
	    ee[a] = !0;
	  });var te = { text: function text(a, b, d, c, e, f) {
	      Sa(a, b, d, c, e, f);Ic(c);
	    }, date: ob("date", pe, Rb(pe, ["yyyy", "MM", "dd"]), "yyyy-MM-dd"), "datetime-local": ob("datetimelocal", qe, Rb(qe, "yyyy MM dd HH mm ss sss".split(" ")), "yyyy-MM-ddTHH:mm:ss.sss"), time: ob("time", se, Rb(se, ["HH", "mm", "ss", "sss"]), "HH:mm:ss.sss"), week: ob("week", Oc, function (a, b) {
	      if (ha(a)) return a;if (C(a)) {
	        Oc.lastIndex = 0;var d = Oc.exec(a);if (d) {
	          var c = +d[1],
	              e = +d[2],
	              f = d = 0,
	              g = 0,
	              k = 0,
	              h = Zd(c),
	              e = 7 * (e - 1);b && (d = b.getHours(), f = b.getMinutes(), g = b.getSeconds(), k = b.getMilliseconds());return new Date(c, 0, h.getDate() + e, d, f, g, k);
	        }
	      }return NaN;
	    }, "yyyy-Www"), month: ob("month", re, Rb(re, ["yyyy", "MM"]), "yyyy-MM"), number: function number(a, b, d, c, e, f, g, k) {
	      Jc(a, b, d, c, "number");fe(c);Sa(a, b, d, c, e, f);var h;if (w(d.min) || d.ngMin) {
	        var l = d.min || k(d.ngMin)(a);h = na(l);c.$validators.min = function (a, b) {
	          return c.$isEmpty(b) || A(h) || b >= h;
	        };d.$observe("min", function (a) {
	          a !== l && (h = na(a), l = a, c.$validate());
	        });
	      }if (w(d.max) || d.ngMax) {
	        var m = d.max || k(d.ngMax)(a),
	            p = na(m);c.$validators.max = function (a, b) {
	          return c.$isEmpty(b) || A(p) || b <= p;
	        };d.$observe("max", function (a) {
	          a !== m && (p = na(a), m = a, c.$validate());
	        });
	      }if (w(d.step) || d.ngStep) {
	        var n = d.step || k(d.ngStep)(a),
	            s = na(n);c.$validators.step = function (a, b) {
	          return c.$isEmpty(b) || A(s) || ge(b, h || 0, s);
	        };d.$observe("step", function (a) {
	          a !== n && (s = na(a), n = a, c.$validate());
	        });
	      }
	    }, url: function url(a, b, d, c, e, f) {
	      Sa(a, b, d, c, e, f);Ic(c);c.$validators.url = function (a, b) {
	        var d = a || b;return c.$isEmpty(d) || xh.test(d);
	      };
	    }, email: function email(a, b, d, c, e, f) {
	      Sa(a, b, d, c, e, f);Ic(c);c.$validators.email = function (a, b) {
	        var d = a || b;return c.$isEmpty(d) || yh.test(d);
	      };
	    }, radio: function radio(a, b, d, c) {
	      var e = !d.ngTrim || "false" !== V(d.ngTrim);A(d.name) && b.attr("name", ++qb);b.on("change", function (a) {
	        var g;b[0].checked && (g = d.value, e && (g = V(g)), c.$setViewValue(g, a && a.type));
	      });c.$render = function () {
	        var a = d.value;e && (a = V(a));b[0].checked = a === c.$viewValue;
	      };d.$observe("value", c.$render);
	    }, range: function range(a, b, d, c, e, f) {
	      function g(a, c) {
	        b.attr(a, d[a]);var e = d[a];d.$observe(a, function (a) {
	          a !== e && (e = a, c(a));
	        });
	      }function k(a) {
	        p = na(a);Y(c.$modelValue) || (m ? (a = b.val(), p > a && (a = p, b.val(a)), c.$setViewValue(a)) : c.$validate());
	      }function h(a) {
	        n = na(a);Y(c.$modelValue) || (m ? (a = b.val(), n < a && (b.val(n), a = n < p ? p : n), c.$setViewValue(a)) : c.$validate());
	      }function l(a) {
	        s = na(a);Y(c.$modelValue) || (m ? c.$viewValue !== b.val() && c.$setViewValue(b.val()) : c.$validate());
	      }Jc(a, b, d, c, "range");fe(c);Sa(a, b, d, c, e, f);var m = c.$$hasNativeValidators && "range" === b[0].type,
	          p = m ? 0 : void 0,
	          n = m ? 100 : void 0,
	          s = m ? 1 : void 0,
	          r = b[0].validity;a = w(d.min);e = w(d.max);f = w(d.step);var q = c.$render;c.$render = m && w(r.rangeUnderflow) && w(r.rangeOverflow) ? function () {
	        q();c.$setViewValue(b.val());
	      } : q;a && (p = na(d.min), c.$validators.min = m ? function () {
	        return !0;
	      } : function (a, b) {
	        return c.$isEmpty(b) || A(p) || b >= p;
	      }, g("min", k));
	      e && (n = na(d.max), c.$validators.max = m ? function () {
	        return !0;
	      } : function (a, b) {
	        return c.$isEmpty(b) || A(n) || b <= n;
	      }, g("max", h));f && (s = na(d.step), c.$validators.step = m ? function () {
	        return !r.stepMismatch;
	      } : function (a, b) {
	        return c.$isEmpty(b) || A(s) || ge(b, p || 0, s);
	      }, g("step", l));
	    }, checkbox: function checkbox(a, b, d, c, e, f, g, k) {
	      var h = he(k, a, "ngTrueValue", d.ngTrueValue, !0),
	          l = he(k, a, "ngFalseValue", d.ngFalseValue, !1);b.on("change", function (a) {
	        c.$setViewValue(b[0].checked, a && a.type);
	      });c.$render = function () {
	        b[0].checked = c.$viewValue;
	      };c.$isEmpty = function (a) {
	        return !1 === a;
	      };c.$formatters.push(function (a) {
	        return va(a, h);
	      });c.$parsers.push(function (a) {
	        return a ? h : l;
	      });
	    }, hidden: E, button: E, submit: E, reset: E, file: E },
	      $c = ["$browser", "$sniffer", "$filter", "$parse", function (a, b, d, c) {
	    return { restrict: "E", require: ["?ngModel"], link: { pre: function pre(e, f, g, k) {
	          k[0] && (te[K(g.type)] || te.text)(e, f, g, k[0], b, a, d, c);
	        } } };
	  }],
	      Af = function Af() {
	    var a = { configurable: !0, enumerable: !1, get: function get() {
	        return this.getAttribute("value") || "";
	      }, set: function set(a) {
	        this.setAttribute("value", a);
	      } };
	    return { restrict: "E", priority: 200, compile: function compile(b, d) {
	        if ("hidden" === K(d.type)) return { pre: function pre(b, d, f, g) {
	            b = d[0];b.parentNode && b.parentNode.insertBefore(b, b.nextSibling);Object.defineProperty && Object.defineProperty(b, "value", a);
	          } };
	      } };
	  },
	      zh = /^(true|false|\d+)$/,
	      xf = function xf() {
	    function a(a, d, c) {
	      var e = w(c) ? c : 9 === wa ? "" : null;a.prop("value", e);d.$set("value", c);
	    }return { restrict: "A", priority: 100, compile: function compile(b, d) {
	        return zh.test(d.ngValue) ? function (b, d, f) {
	          b = b.$eval(f.ngValue);a(d, f, b);
	        } : function (b, d, f) {
	          b.$watch(f.ngValue, function (b) {
	            a(d, f, b);
	          });
	        };
	      } };
	  },
	      We = ["$compile", function (a) {
	    return { restrict: "AC", compile: function compile(b) {
	        a.$$addBindingClass(b);return function (b, c, e) {
	          a.$$addBindingInfo(c, e.ngBind);c = c[0];b.$watch(e.ngBind, function (a) {
	            c.textContent = jc(a);
	          });
	        };
	      } };
	  }],
	      Ye = ["$interpolate", "$compile", function (a, b) {
	    return { compile: function compile(d) {
	        b.$$addBindingClass(d);return function (c, d, f) {
	          c = a(d.attr(f.$attr.ngBindTemplate));b.$$addBindingInfo(d, c.expressions);d = d[0];f.$observe("ngBindTemplate", function (a) {
	            d.textContent = A(a) ? "" : a;
	          });
	        };
	      } };
	  }],
	      Xe = ["$sce", "$parse", "$compile", function (a, b, d) {
	    return { restrict: "A", compile: function compile(c, e) {
	        var f = b(e.ngBindHtml),
	            g = b(e.ngBindHtml, function (b) {
	          return a.valueOf(b);
	        });d.$$addBindingClass(c);return function (b, c, e) {
	          d.$$addBindingInfo(c, e.ngBindHtml);b.$watch(g, function () {
	            var d = f(b);c.html(a.getTrustedHtml(d) || "");
	          });
	        };
	      } };
	  }],
	      wf = ia({ restrict: "A", require: "ngModel", link: function link(a, b, d, c) {
	      c.$viewChangeListeners.push(function () {
	        a.$eval(d.ngChange);
	      });
	    } }),
	      Ze = Lc("", !0),
	      af = Lc("Odd", 0),
	      $e = Lc("Even", 1),
	      bf = Ra({ compile: function compile(a, b) {
	      b.$set("ngCloak", void 0);a.removeClass("ng-cloak");
	    } }),
	      cf = [function () {
	    return { restrict: "A", scope: !0, controller: "@", priority: 500 };
	  }],
	      ed = {},
	      Ah = { blur: !0, focus: !0 };r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "), function (a) {
	    var b = xa("ng-" + a);ed[b] = ["$parse", "$rootScope", "$exceptionHandler", function (d, c, e) {
	      return sd(d, c, e, b, a, Ah[a]);
	    }];
	  });var ff = ["$animate", "$compile", function (a, b) {
	    return { multiElement: !0,
	      transclude: "element", priority: 600, terminal: !0, restrict: "A", $$tlb: !0, link: function link(d, c, e, f, g) {
	        var k, h, l;d.$watch(e.ngIf, function (d) {
	          d ? h || g(function (d, f) {
	            h = f;d[d.length++] = b.$$createComment("end ngIf", e.ngIf);k = { clone: d };a.enter(d, c.parent(), c);
	          }) : (l && (l.remove(), l = null), h && (h.$destroy(), h = null), k && (l = ub(k.clone), a.leave(l).done(function (a) {
	            !1 !== a && (l = null);
	          }), k = null));
	        });
	      } };
	  }],
	      gf = ["$templateRequest", "$anchorScroll", "$animate", function (a, b, d) {
	    return { restrict: "ECA", priority: 400, terminal: !0, transclude: "element",
	      controller: ca.noop, compile: function compile(c, e) {
	        var f = e.ngInclude || e.src,
	            g = e.onload || "",
	            k = e.autoscroll;return function (c, e, m, p, n) {
	          var r = 0,
	              q,
	              t,
	              x,
	              v = function v() {
	            t && (t.remove(), t = null);q && (q.$destroy(), q = null);x && (d.leave(x).done(function (a) {
	              !1 !== a && (t = null);
	            }), t = x, x = null);
	          };c.$watch(f, function (f) {
	            var m = function m(a) {
	              !1 === a || !w(k) || k && !c.$eval(k) || b();
	            },
	                t = ++r;f ? (a(f, !0).then(function (a) {
	              if (!c.$$destroyed && t === r) {
	                var b = c.$new();p.template = a;a = n(b, function (a) {
	                  v();d.enter(a, null, e).done(m);
	                });q = b;x = a;q.$emit("$includeContentLoaded", f);c.$eval(g);
	              }
	            }, function () {
	              c.$$destroyed || t !== r || (v(), c.$emit("$includeContentError", f));
	            }), c.$emit("$includeContentRequested", f)) : (v(), p.template = null);
	          });
	        };
	      } };
	  }],
	      zf = ["$compile", function (a) {
	    return { restrict: "ECA", priority: -400, require: "ngInclude", link: function link(b, d, c, e) {
	        la.call(d[0]).match(/SVG/) ? (d.empty(), a(gd(e.template, z.document).childNodes)(b, function (a) {
	          d.append(a);
	        }, { futureParentElement: d })) : (d.html(e.template), a(d.contents())(b));
	      } };
	  }],
	      hf = Ra({ priority: 450, compile: function compile() {
	      return { pre: function pre(a, b, d) {
	          a.$eval(d.ngInit);
	        } };
	    } }),
	      vf = function vf() {
	    return { restrict: "A", priority: 100, require: "ngModel", link: function link(a, b, d, c) {
	        var e = d.ngList || ", ",
	            f = "false" !== d.ngTrim,
	            g = f ? V(e) : e;c.$parsers.push(function (a) {
	          if (!A(a)) {
	            var b = [];a && r(a.split(g), function (a) {
	              a && b.push(f ? V(a) : a);
	            });return b;
	          }
	        });c.$formatters.push(function (a) {
	          if (H(a)) return a.join(e);
	        });c.$isEmpty = function (a) {
	          return !a || !a.length;
	        };
	      } };
	  },
	      nb = "ng-valid",
	      be = "ng-invalid",
	      Za = "ng-pristine",
	      Wb = "ng-dirty",
	      pb = F("ngModel");Sb.$inject = "$scope $exceptionHandler $attrs $element $parse $animate $timeout $q $interpolate".split(" ");
	  Sb.prototype = { $$initGetterSetters: function $$initGetterSetters() {
	      if (this.$options.getOption("getterSetter")) {
	        var a = this.$$parse(this.$$attr.ngModel + "()"),
	            b = this.$$parse(this.$$attr.ngModel + "($$$p)");this.$$ngModelGet = function (b) {
	          var c = this.$$parsedNgModel(b);B(c) && (c = a(b));return c;
	        };this.$$ngModelSet = function (a, c) {
	          B(this.$$parsedNgModel(a)) ? b(a, { $$$p: c }) : this.$$parsedNgModelAssign(a, c);
	        };
	      } else if (!this.$$parsedNgModel.assign) throw pb("nonassign", this.$$attr.ngModel, Aa(this.$$element));
	    }, $render: E, $isEmpty: function $isEmpty(a) {
	      return A(a) || "" === a || null === a || a !== a;
	    }, $$updateEmptyClasses: function $$updateEmptyClasses(a) {
	      this.$isEmpty(a) ? (this.$$animate.removeClass(this.$$element, "ng-not-empty"), this.$$animate.addClass(this.$$element, "ng-empty")) : (this.$$animate.removeClass(this.$$element, "ng-empty"), this.$$animate.addClass(this.$$element, "ng-not-empty"));
	    }, $setPristine: function $setPristine() {
	      this.$dirty = !1;this.$pristine = !0;this.$$animate.removeClass(this.$$element, Wb);this.$$animate.addClass(this.$$element, Za);
	    }, $setDirty: function $setDirty() {
	      this.$dirty = !0;this.$pristine = !1;this.$$animate.removeClass(this.$$element, Za);this.$$animate.addClass(this.$$element, Wb);this.$$parentForm.$setDirty();
	    }, $setUntouched: function $setUntouched() {
	      this.$touched = !1;this.$untouched = !0;this.$$animate.setClass(this.$$element, "ng-untouched", "ng-touched");
	    }, $setTouched: function $setTouched() {
	      this.$touched = !0;this.$untouched = !1;this.$$animate.setClass(this.$$element, "ng-touched", "ng-untouched");
	    }, $rollbackViewValue: function $rollbackViewValue() {
	      this.$$timeout.cancel(this.$$pendingDebounce);this.$viewValue = this.$$lastCommittedViewValue;this.$render();
	    }, $validate: function $validate() {
	      if (!Y(this.$modelValue)) {
	        var a = this.$$lastCommittedViewValue,
	            b = this.$$rawModelValue,
	            d = this.$valid,
	            c = this.$modelValue,
	            e = this.$options.getOption("allowInvalid"),
	            f = this;this.$$runValidators(b, a, function (a) {
	          e || d === a || (f.$modelValue = a ? b : void 0, f.$modelValue !== c && f.$$writeModelToScope());
	        });
	      }
	    }, $$runValidators: function $$runValidators(a, b, d) {
	      function c() {
	        var c = !0;r(h.$validators, function (d, e) {
	          var g = Boolean(d(a, b));c = c && g;f(e, g);
	        });return c ? !0 : (r(h.$asyncValidators, function (a, b) {
	          f(b, null);
	        }), !1);
	      }function e() {
	        var c = [],
	            d = !0;r(h.$asyncValidators, function (e, g) {
	          var h = e(a, b);if (!h || !B(h.then)) throw pb("nopromise", h);f(g, void 0);c.push(h.then(function () {
	            f(g, !0);
	          }, function () {
	            d = !1;f(g, !1);
	          }));
	        });c.length ? h.$$q.all(c).then(function () {
	          g(d);
	        }, E) : g(!0);
	      }function f(a, b) {
	        k === h.$$currentValidationRunId && h.$setValidity(a, b);
	      }function g(a) {
	        k === h.$$currentValidationRunId && d(a);
	      }this.$$currentValidationRunId++;var k = this.$$currentValidationRunId,
	          h = this;(function () {
	        var a = h.$$parserName;if (A(h.$$parserValid)) f(a, null);else return h.$$parserValid || (r(h.$validators, function (a, b) {
	          f(b, null);
	        }), r(h.$asyncValidators, function (a, b) {
	          f(b, null);
	        })), f(a, h.$$parserValid), h.$$parserValid;return !0;
	      })() ? c() ? e() : g(!1) : g(!1);
	    }, $commitViewValue: function $commitViewValue() {
	      var a = this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce);if (this.$$lastCommittedViewValue !== a || "" === a && this.$$hasNativeValidators) this.$$updateEmptyClasses(a), this.$$lastCommittedViewValue = a, this.$pristine && this.$setDirty(), this.$$parseAndValidate();
	    }, $$parseAndValidate: function $$parseAndValidate() {
	      var a = this.$$lastCommittedViewValue,
	          b = this;this.$$parserValid = A(a) ? void 0 : !0;this.$setValidity(this.$$parserName, null);this.$$parserName = "parse";if (this.$$parserValid) for (var d = 0; d < this.$parsers.length; d++) {
	        if (a = this.$parsers[d](a), A(a)) {
	          this.$$parserValid = !1;break;
	        }
	      }Y(this.$modelValue) && (this.$modelValue = this.$$ngModelGet(this.$$scope));var c = this.$modelValue,
	          e = this.$options.getOption("allowInvalid");this.$$rawModelValue = a;e && (this.$modelValue = a, b.$modelValue !== c && b.$$writeModelToScope());this.$$runValidators(a, this.$$lastCommittedViewValue, function (d) {
	        e || (b.$modelValue = d ? a : void 0, b.$modelValue !== c && b.$$writeModelToScope());
	      });
	    }, $$writeModelToScope: function $$writeModelToScope() {
	      this.$$ngModelSet(this.$$scope, this.$modelValue);r(this.$viewChangeListeners, function (a) {
	        try {
	          a();
	        } catch (b) {
	          this.$$exceptionHandler(b);
	        }
	      }, this);
	    }, $setViewValue: function $setViewValue(a, b) {
	      this.$viewValue = a;this.$options.getOption("updateOnDefault") && this.$$debounceViewValueCommit(b);
	    }, $$debounceViewValueCommit: function $$debounceViewValueCommit(a) {
	      var b = this.$options.getOption("debounce");X(b[a]) ? b = b[a] : X(b["default"]) && -1 === this.$options.getOption("updateOn").indexOf(a) ? b = b["default"] : X(b["*"]) && (b = b["*"]);this.$$timeout.cancel(this.$$pendingDebounce);var d = this;0 < b ? this.$$pendingDebounce = this.$$timeout(function () {
	        d.$commitViewValue();
	      }, b) : this.$$rootScope.$$phase ? this.$commitViewValue() : this.$$scope.$apply(function () {
	        d.$commitViewValue();
	      });
	    }, $overrideModelOptions: function $overrideModelOptions(a) {
	      this.$options = this.$options.createChild(a);this.$$setUpdateOnEvents();
	    }, $processModelValue: function $processModelValue() {
	      var a = this.$$format();this.$viewValue !== a && (this.$$updateEmptyClasses(a), this.$viewValue = this.$$lastCommittedViewValue = a, this.$render(), this.$$runValidators(this.$modelValue, this.$viewValue, E));
	    }, $$format: function $$format() {
	      for (var a = this.$formatters, b = a.length, d = this.$modelValue; b--;) {
	        d = a[b](d);
	      }return d;
	    }, $$setModelValue: function $$setModelValue(a) {
	      this.$modelValue = this.$$rawModelValue = a;this.$$parserValid = void 0;this.$processModelValue();
	    }, $$setUpdateOnEvents: function $$setUpdateOnEvents() {
	      this.$$updateEvents && this.$$element.off(this.$$updateEvents, this.$$updateEventHandler);if (this.$$updateEvents = this.$options.getOption("updateOn")) this.$$element.on(this.$$updateEvents, this.$$updateEventHandler);
	    }, $$updateEventHandler: function $$updateEventHandler(a) {
	      this.$$debounceViewValueCommit(a && a.type);
	    } };ce({ clazz: Sb, set: function set(a, b) {
	      a[b] = !0;
	    }, unset: function unset(a, b) {
	      delete a[b];
	    } });var uf = ["$rootScope", function (a) {
	    return { restrict: "A", require: ["ngModel", "^?form", "^?ngModelOptions"], controller: Sb, priority: 1, compile: function compile(b) {
	        b.addClass(Za).addClass("ng-untouched").addClass(nb);return { pre: function pre(a, b, e, f) {
	            var g = f[0];b = f[1] || g.$$parentForm;if (f = f[2]) g.$options = f.$options;g.$$initGetterSetters();b.$addControl(g);
	            e.$observe("name", function (a) {
	              g.$name !== a && g.$$parentForm.$$renameControl(g, a);
	            });a.$on("$destroy", function () {
	              g.$$parentForm.$removeControl(g);
	            });
	          }, post: function post(b, c, e, f) {
	            function g() {
	              k.$setTouched();
	            }var k = f[0];k.$$setUpdateOnEvents();c.on("blur", function () {
	              k.$touched || (a.$$phase ? b.$evalAsync(g) : b.$apply(g));
	            });
	          } };
	      } };
	  }],
	      Tb,
	      Bh = /(\s+|^)default(\s+|$)/;Mc.prototype = { getOption: function getOption(a) {
	      return this.$$options[a];
	    }, createChild: function createChild(a) {
	      var b = !1;a = S({}, a);r(a, function (d, c) {
	        "$inherit" === d ? "*" === c ? b = !0 : (a[c] = this.$$options[c], "updateOn" === c && (a.updateOnDefault = this.$$options.updateOnDefault)) : "updateOn" === c && (a.updateOnDefault = !1, a[c] = V(d.replace(Bh, function () {
	          a.updateOnDefault = !0;return " ";
	        })));
	      }, this);b && (delete a["*"], ie(a, this.$$options));ie(a, Tb.$$options);return new Mc(a);
	    } };Tb = new Mc({ updateOn: "", updateOnDefault: !0, debounce: 0, getterSetter: !1, allowInvalid: !1, timezone: null });var yf = function yf() {
	    function a(a, d) {
	      this.$$attrs = a;this.$$scope = d;
	    }a.$inject = ["$attrs", "$scope"];a.prototype = { $onInit: function $onInit() {
	        var a = this.parentCtrl ? this.parentCtrl.$options : Tb,
	            d = this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options = a.createChild(d);
	      } };return { restrict: "A", priority: 10, require: { parentCtrl: "?^^ngModelOptions" }, bindToController: !0, controller: a };
	  },
	      jf = Ra({ terminal: !0, priority: 1E3 }),
	      Ch = F("ngOptions"),
	      Dh = /^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,
	      sf = ["$compile", "$document", "$parse", function (a, b, d) {
	    function c(a, b, c) {
	      function e(a, b, c, d, f) {
	        this.selectValue = a;this.viewValue = b;this.label = c;this.group = d;this.disabled = f;
	      }function f(a) {
	        var b;if (!r && za(a)) b = a;else {
	          b = [];for (var c in a) {
	            a.hasOwnProperty(c) && "$" !== c.charAt(0) && b.push(c);
	          }
	        }return b;
	      }var p = a.match(Dh);if (!p) throw Ch("iexp", a, Aa(b));var n = p[5] || p[7],
	          r = p[6];a = / as /.test(p[0]) && p[1];var q = p[9];b = d(p[2] ? p[1] : n);var t = a && d(a) || b,
	          w = q && d(q),
	          v = q ? function (a, b) {
	        return w(c, b);
	      } : function (a) {
	        return La(a);
	      },
	          x = function x(a, b) {
	        return v(a, B(a, b));
	      },
	          A = d(p[2] || p[1]),
	          y = d(p[3] || ""),
	          J = d(p[4] || ""),
	          I = d(p[8]),
	          z = {},
	          B = r ? function (a, b) {
	        z[r] = b;z[n] = a;return z;
	      } : function (a) {
	        z[n] = a;return z;
	      };return { trackBy: q, getTrackByValue: x, getWatchables: d(I, function (a) {
	          var b = [];a = a || [];for (var d = f(a), e = d.length, g = 0; g < e; g++) {
	            var k = a === d ? g : d[g],
	                l = a[k],
	                k = B(l, k),
	                l = v(l, k);b.push(l);if (p[2] || p[1]) l = A(c, k), b.push(l);p[4] && (k = J(c, k), b.push(k));
	          }return b;
	        }), getOptions: function getOptions() {
	          for (var a = [], b = {}, d = I(c) || [], g = f(d), k = g.length, n = 0; n < k; n++) {
	            var p = d === g ? n : g[n],
	                r = B(d[p], p),
	                s = t(c, r),
	                p = v(s, r),
	                w = A(c, r),
	                z = y(c, r),
	                r = J(c, r),
	                s = new e(p, s, w, z, r);a.push(s);b[p] = s;
	          }return { items: a, selectValueMap: b, getOptionFromViewValue: function getOptionFromViewValue(a) {
	              return b[x(a)];
	            }, getViewValueFromOption: function getViewValueFromOption(a) {
	              return q ? Ia(a.viewValue) : a.viewValue;
	            } };
	        } };
	    }var e = z.document.createElement("option"),
	        f = z.document.createElement("optgroup");return { restrict: "A", terminal: !0, require: ["select", "ngModel"], link: { pre: function pre(a, b, c, d) {
	          d[0].registerOption = E;
	        }, post: function post(d, k, h, l) {
	          function m(a) {
	            var b = (a = v.getOptionFromViewValue(a)) && a.element;b && !b.selected && (b.selected = !0);return a;
	          }function p(a, b) {
	            a.element = b;b.disabled = a.disabled;a.label !== b.label && (b.label = a.label, b.textContent = a.label);b.value = a.selectValue;
	          }var n = l[0],
	              q = l[1],
	              A = h.multiple;l = 0;for (var t = k.children(), z = t.length; l < z; l++) {
	            if ("" === t[l].value) {
	              n.hasEmptyOption = !0;n.emptyOption = t.eq(l);break;
	            }
	          }k.empty();l = !!n.emptyOption;x(e.cloneNode(!1)).val("?");var v,
	              B = c(h.ngOptions, k, d),
	              C = b[0].createDocumentFragment();n.generateUnknownOptionValue = function (a) {
	            return "?";
	          };A ? (n.writeValue = function (a) {
	            if (v) {
	              var b = a && a.map(m) || [];v.items.forEach(function (a) {
	                a.element.selected && -1 === Array.prototype.indexOf.call(b, a) && (a.element.selected = !1);
	              });
	            }
	          }, n.readValue = function () {
	            var a = k.val() || [],
	                b = [];r(a, function (a) {
	              (a = v.selectValueMap[a]) && !a.disabled && b.push(v.getViewValueFromOption(a));
	            });return b;
	          }, B.trackBy && d.$watchCollection(function () {
	            if (H(q.$viewValue)) return q.$viewValue.map(function (a) {
	              return B.getTrackByValue(a);
	            });
	          }, function () {
	            q.$render();
	          })) : (n.writeValue = function (a) {
	            if (v) {
	              var b = k[0].options[k[0].selectedIndex],
	                  c = v.getOptionFromViewValue(a);b && b.removeAttribute("selected");c ? (k[0].value !== c.selectValue && (n.removeUnknownOption(), k[0].value = c.selectValue, c.element.selected = !0), c.element.setAttribute("selected", "selected")) : n.selectUnknownOrEmptyOption(a);
	            }
	          }, n.readValue = function () {
	            var a = v.selectValueMap[k.val()];return a && !a.disabled ? (n.unselectEmptyOption(), n.removeUnknownOption(), v.getViewValueFromOption(a)) : null;
	          }, B.trackBy && d.$watch(function () {
	            return B.getTrackByValue(q.$viewValue);
	          }, function () {
	            q.$render();
	          }));
	          l && (a(n.emptyOption)(d), k.prepend(n.emptyOption), 8 === n.emptyOption[0].nodeType ? (n.hasEmptyOption = !1, n.registerOption = function (a, b) {
	            "" === b.val() && (n.hasEmptyOption = !0, n.emptyOption = b, n.emptyOption.removeClass("ng-scope"), q.$render(), b.on("$destroy", function () {
	              var a = n.$isEmptyOptionSelected();n.hasEmptyOption = !1;n.emptyOption = void 0;a && q.$render();
	            }));
	          }) : n.emptyOption.removeClass("ng-scope"));d.$watchCollection(B.getWatchables, function () {
	            var a = v && n.readValue();if (v) for (var b = v.items.length - 1; 0 <= b; b--) {
	              var c = v.items[b];w(c.group) ? Gb(c.element.parentNode) : Gb(c.element);
	            }v = B.getOptions();var d = {};v.items.forEach(function (a) {
	              var b;if (w(a.group)) {
	                b = d[a.group];b || (b = f.cloneNode(!1), C.appendChild(b), b.label = null === a.group ? "null" : a.group, d[a.group] = b);var c = e.cloneNode(!1);b.appendChild(c);p(a, c);
	              } else b = e.cloneNode(!1), C.appendChild(b), p(a, b);
	            });k[0].appendChild(C);q.$render();q.$isEmpty(a) || (b = n.readValue(), (B.trackBy || A ? va(a, b) : a === b) || (q.$setViewValue(b), q.$render()));
	          });
	        } } };
	  }],
	      kf = ["$locale", "$interpolate", "$log", function (a, b, d) {
	    var c = /{}/g,
	        e = /^when(Minus)?(.+)$/;return { link: function link(f, g, k) {
	        function h(a) {
	          g.text(a || "");
	        }var l = k.count,
	            m = k.$attr.when && g.attr(k.$attr.when),
	            p = k.offset || 0,
	            n = f.$eval(m) || {},
	            q = {},
	            w = b.startSymbol(),
	            t = b.endSymbol(),
	            x = w + l + "-" + p + t,
	            v = ca.noop,
	            z;r(k, function (a, b) {
	          var c = e.exec(b);c && (c = (c[1] ? "-" : "") + K(c[2]), n[c] = g.attr(k.$attr[b]));
	        });r(n, function (a, d) {
	          q[d] = b(a.replace(c, x));
	        });f.$watch(l, function (b) {
	          var c = parseFloat(b),
	              e = Y(c);e || c in n || (c = a.pluralCat(c - p));c === z || e && Y(z) || (v(), e = q[c], A(e) ? (null != b && d.debug("ngPluralize: no rule defined for '" + c + "' in " + m), v = E, h()) : v = f.$watch(e, h), z = c);
	        });
	      } };
	  }],
	      ue = F("ngRef"),
	      lf = ["$parse", function (a) {
	    return { priority: -1, restrict: "A", compile: function compile(b, d) {
	        var c = xa(ua(b)),
	            e = a(d.ngRef),
	            f = e.assign || function () {
	          throw ue("nonassign", d.ngRef);
	        };return function (a, b, h) {
	          var l;if (h.hasOwnProperty("ngRefRead")) {
	            if ("$element" === h.ngRefRead) l = b;else {
	              if (l = b.data("$" + h.ngRefRead + "Controller"), !l) throw ue("noctrl", h.ngRefRead, d.ngRef);
	            }
	          } else l = b.data("$" + c + "Controller");l = l || b;f(a, l);b.on("$destroy", function () {
	            e(a) === l && f(a, null);
	          });
	        };
	      } };
	  }],
	      mf = ["$parse", "$animate", "$compile", function (a, b, d) {
	    var c = F("ngRepeat"),
	        e = function e(a, b, c, d, _e2, f, g) {
	      a[c] = d;_e2 && (a[_e2] = f);a.$index = b;a.$first = 0 === b;a.$last = b === g - 1;a.$middle = !(a.$first || a.$last);a.$odd = !(a.$even = 0 === (b & 1));
	    },
	        f = function f(a, b, c) {
	      return La(c);
	    },
	        g = function g(a, b) {
	      return b;
	    };return { restrict: "A", multiElement: !0, transclude: "element", priority: 1E3, terminal: !0, $$tlb: !0, compile: function compile(k, h) {
	        var l = h.ngRepeat,
	            m = d.$$createComment("end ngRepeat", l),
	            p = l.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if (!p) throw c("iexp", l);var n = p[1],
	            q = p[2],
	            w = p[3],
	            t = p[4],
	            p = n.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/);if (!p) throw c("iidexp", n);var x = p[3] || p[1],
	            v = p[2];if (w && (!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(w) || /^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(w))) throw c("badident", w);var A;if (t) {
	          var z = { $id: La },
	              y = a(t);A = function A(a, b, c, d) {
	            v && (z[v] = b);z[x] = c;z.$index = d;return y(a, z);
	          };
	        }return function (a, d, h, k, n) {
	          var p = T();a.$watchCollection(q, function (h) {
	            var k,
	                q,
	                t = d[0],
	                s,
	                y = T(),
	                B,
	                C,
	                E,
	                D,
	                H,
	                F,
	                K;w && (a[w] = h);if (za(h)) H = h, q = A || f;else for (K in q = A || g, H = [], h) {
	              ta.call(h, K) && "$" !== K.charAt(0) && H.push(K);
	            }B = H.length;K = Array(B);for (k = 0; k < B; k++) {
	              if (C = h === H ? k : H[k], E = h[C], D = q(a, C, E, k), p[D]) F = p[D], delete p[D], y[D] = F, K[k] = F;else {
	                if (y[D]) throw r(K, function (a) {
	                  a && a.scope && (p[a.id] = a);
	                }), c("dupes", l, D, E);K[k] = { id: D, scope: void 0, clone: void 0 };y[D] = !0;
	              }
	            }z && (z[x] = void 0);
	            for (s in p) {
	              F = p[s];D = ub(F.clone);b.leave(D);if (D[0].parentNode) for (k = 0, q = D.length; k < q; k++) {
	                D[k].$$NG_REMOVED = !0;
	              }F.scope.$destroy();
	            }for (k = 0; k < B; k++) {
	              if (C = h === H ? k : H[k], E = h[C], F = K[k], F.scope) {
	                s = t;do {
	                  s = s.nextSibling;
	                } while (s && s.$$NG_REMOVED);F.clone[0] !== s && b.move(ub(F.clone), null, t);t = F.clone[F.clone.length - 1];e(F.scope, k, x, E, v, C, B);
	              } else n(function (a, c) {
	                F.scope = c;var d = m.cloneNode(!1);a[a.length++] = d;b.enter(a, null, t);t = d;F.clone = a;y[F.id] = F;e(F.scope, k, x, E, v, C, B);
	              });
	            }p = y;
	          });
	        };
	      } };
	  }],
	      nf = ["$animate", function (a) {
	    return { restrict: "A",
	      multiElement: !0, link: function link(b, d, c) {
	        b.$watch(c.ngShow, function (b) {
	          a[b ? "removeClass" : "addClass"](d, "ng-hide", { tempClasses: "ng-hide-animate" });
	        });
	      } };
	  }],
	      ef = ["$animate", function (a) {
	    return { restrict: "A", multiElement: !0, link: function link(b, d, c) {
	        b.$watch(c.ngHide, function (b) {
	          a[b ? "addClass" : "removeClass"](d, "ng-hide", { tempClasses: "ng-hide-animate" });
	        });
	      } };
	  }],
	      of = Ra(function (a, b, d) {
	    a.$watchCollection(d.ngStyle, function (a, d) {
	      d && a !== d && r(d, function (a, c) {
	        b.css(c, "");
	      });a && b.css(a);
	    });
	  }),
	      pf = ["$animate", "$compile", function (a, b) {
	    return { require: "ngSwitch", controller: ["$scope", function () {
	        this.cases = {};
	      }], link: function link(d, c, e, f) {
	        var g = [],
	            k = [],
	            h = [],
	            l = [],
	            m = function m(a, b) {
	          return function (c) {
	            !1 !== c && a.splice(b, 1);
	          };
	        };d.$watch(e.ngSwitch || e.on, function (c) {
	          for (var d, e; h.length;) {
	            a.cancel(h.pop());
	          }d = 0;for (e = l.length; d < e; ++d) {
	            var q = ub(k[d].clone);l[d].$destroy();(h[d] = a.leave(q)).done(m(h, d));
	          }k.length = 0;l.length = 0;(g = f.cases["!" + c] || f.cases["?"]) && r(g, function (c) {
	            c.transclude(function (d, e) {
	              l.push(e);var f = c.element;d[d.length++] = b.$$createComment("end ngSwitchWhen");
	              k.push({ clone: d });a.enter(d, f.parent(), f);
	            });
	          });
	        });
	      } };
	  }],
	      qf = Ra({ transclude: "element", priority: 1200, require: "^ngSwitch", multiElement: !0, link: function link(a, b, d, c, e) {
	      a = d.ngSwitchWhen.split(d.ngSwitchWhenSeparator).sort().filter(function (a, b, c) {
	        return c[b - 1] !== a;
	      });r(a, function (a) {
	        c.cases["!" + a] = c.cases["!" + a] || [];c.cases["!" + a].push({ transclude: e, element: b });
	      });
	    } }),
	      rf = Ra({ transclude: "element", priority: 1200, require: "^ngSwitch", multiElement: !0, link: function link(a, b, d, c, e) {
	      c.cases["?"] = c.cases["?"] || [];c.cases["?"].push({ transclude: e,
	        element: b });
	    } }),
	      Eh = F("ngTransclude"),
	      tf = ["$compile", function (a) {
	    return { restrict: "EAC", compile: function compile(b) {
	        var d = a(b.contents());b.empty();return function (a, b, f, g, k) {
	          function h() {
	            d(a, function (a) {
	              b.append(a);
	            });
	          }if (!k) throw Eh("orphan", Aa(b));f.ngTransclude === f.$attr.ngTransclude && (f.ngTransclude = "");f = f.ngTransclude || f.ngTranscludeSlot;k(function (a, c) {
	            var d;if (d = a.length) a: {
	              d = 0;for (var f = a.length; d < f; d++) {
	                var g = a[d];if (g.nodeType !== Pa || g.nodeValue.trim()) {
	                  d = !0;break a;
	                }
	              }d = void 0;
	            }d ? b.append(a) : (h(), c.$destroy());
	          }, null, f);f && !k.isSlotFilled(f) && h();
	        };
	      } };
	  }],
	      Te = ["$templateCache", function (a) {
	    return { restrict: "E", terminal: !0, compile: function compile(b, d) {
	        "text/ng-template" === d.type && a.put(d.id, b[0].text);
	      } };
	  }],
	      Fh = { $setViewValue: E, $render: E },
	      Gh = ["$element", "$scope", function (a, b) {
	    function d() {
	      g || (g = !0, b.$$postDigest(function () {
	        g = !1;e.ngModelCtrl.$render();
	      }));
	    }function c(a) {
	      k || (k = !0, b.$$postDigest(function () {
	        b.$$destroyed || (k = !1, e.ngModelCtrl.$setViewValue(e.readValue()), a && e.ngModelCtrl.$render());
	      }));
	    }var e = this,
	        f = new Ib();e.selectValueMap = {};e.ngModelCtrl = Fh;e.multiple = !1;e.unknownOption = x(z.document.createElement("option"));e.hasEmptyOption = !1;e.emptyOption = void 0;e.renderUnknownOption = function (b) {
	      b = e.generateUnknownOptionValue(b);e.unknownOption.val(b);a.prepend(e.unknownOption);Oa(e.unknownOption, !0);a.val(b);
	    };e.updateUnknownOption = function (b) {
	      b = e.generateUnknownOptionValue(b);e.unknownOption.val(b);Oa(e.unknownOption, !0);a.val(b);
	    };e.generateUnknownOptionValue = function (a) {
	      return "? " + La(a) + " ?";
	    };e.removeUnknownOption = function () {
	      e.unknownOption.parent() && e.unknownOption.remove();
	    };e.selectEmptyOption = function () {
	      e.emptyOption && (a.val(""), Oa(e.emptyOption, !0));
	    };e.unselectEmptyOption = function () {
	      e.hasEmptyOption && Oa(e.emptyOption, !1);
	    };b.$on("$destroy", function () {
	      e.renderUnknownOption = E;
	    });e.readValue = function () {
	      var b = a.val(),
	          b = b in e.selectValueMap ? e.selectValueMap[b] : b;return e.hasOption(b) ? b : null;
	    };e.writeValue = function (b) {
	      var c = a[0].options[a[0].selectedIndex];c && Oa(x(c), !1);e.hasOption(b) ? (e.removeUnknownOption(), c = La(b), a.val(c in e.selectValueMap ? c : b), Oa(x(a[0].options[a[0].selectedIndex]), !0)) : e.selectUnknownOrEmptyOption(b);
	    };e.addOption = function (a, b) {
	      if (8 !== b[0].nodeType) {
	        Ja(a, '"option value"');"" === a && (e.hasEmptyOption = !0, e.emptyOption = b);var c = f.get(a) || 0;f.set(a, c + 1);d();
	      }
	    };e.removeOption = function (a) {
	      var b = f.get(a);b && (1 === b ? (f.delete(a), "" === a && (e.hasEmptyOption = !1, e.emptyOption = void 0)) : f.set(a, b - 1));
	    };e.hasOption = function (a) {
	      return !!f.get(a);
	    };e.$hasEmptyOption = function () {
	      return e.hasEmptyOption;
	    };e.$isUnknownOptionSelected = function () {
	      return a[0].options[0] === e.unknownOption[0];
	    };e.$isEmptyOptionSelected = function () {
	      return e.hasEmptyOption && a[0].options[a[0].selectedIndex] === e.emptyOption[0];
	    };e.selectUnknownOrEmptyOption = function (a) {
	      null == a && e.emptyOption ? (e.removeUnknownOption(), e.selectEmptyOption()) : e.unknownOption.parent().length ? e.updateUnknownOption(a) : e.renderUnknownOption(a);
	    };var g = !1,
	        k = !1;e.registerOption = function (a, b, f, g, k) {
	      if (f.$attr.ngValue) {
	        var q, r;f.$observe("value", function (a) {
	          var d,
	              f = b.prop("selected");w(r) && (e.removeOption(q), delete e.selectValueMap[r], d = !0);r = La(a);q = a;e.selectValueMap[r] = a;e.addOption(a, b);b.attr("value", r);d && f && c();
	        });
	      } else g ? f.$observe("value", function (a) {
	        e.readValue();var d,
	            f = b.prop("selected");w(q) && (e.removeOption(q), d = !0);q = a;e.addOption(a, b);d && f && c();
	      }) : k ? a.$watch(k, function (a, d) {
	        f.$set("value", a);var g = b.prop("selected");d !== a && e.removeOption(d);e.addOption(a, b);d && g && c();
	      }) : e.addOption(f.value, b);f.$observe("disabled", function (a) {
	        if ("true" === a || a && b.prop("selected")) e.multiple ? c(!0) : (e.ngModelCtrl.$setViewValue(null), e.ngModelCtrl.$render());
	      });
	      b.on("$destroy", function () {
	        var a = e.readValue(),
	            b = f.value;e.removeOption(b);d();(e.multiple && a && -1 !== a.indexOf(b) || a === b) && c(!0);
	      });
	    };
	  }],
	      Ue = function Ue() {
	    return { restrict: "E", require: ["select", "?ngModel"], controller: Gh, priority: 1, link: { pre: function pre(a, b, d, c) {
	          var e = c[0],
	              f = c[1];if (f) {
	            if (e.ngModelCtrl = f, b.on("change", function () {
	              e.removeUnknownOption();a.$apply(function () {
	                f.$setViewValue(e.readValue());
	              });
	            }), d.multiple) {
	              e.multiple = !0;e.readValue = function () {
	                var a = [];r(b.find("option"), function (b) {
	                  b.selected && !b.disabled && (b = b.value, a.push(b in e.selectValueMap ? e.selectValueMap[b] : b));
	                });return a;
	              };e.writeValue = function (a) {
	                r(b.find("option"), function (b) {
	                  var c = !!a && (-1 !== Array.prototype.indexOf.call(a, b.value) || -1 !== Array.prototype.indexOf.call(a, e.selectValueMap[b.value]));c !== b.selected && Oa(x(b), c);
	                });
	              };var g,
	                  k = NaN;a.$watch(function () {
	                k !== f.$viewValue || va(g, f.$viewValue) || (g = ja(f.$viewValue), f.$render());k = f.$viewValue;
	              });f.$isEmpty = function (a) {
	                return !a || 0 === a.length;
	              };
	            }
	          } else e.registerOption = E;
	        }, post: function post(a, b, d, c) {
	          var e = c[1];if (e) {
	            var f = c[0];e.$render = function () {
	              f.writeValue(e.$viewValue);
	            };
	          }
	        } } };
	  },
	      Ve = ["$interpolate", function (a) {
	    return { restrict: "E", priority: 100, compile: function compile(b, d) {
	        var c, e;w(d.ngValue) || (w(d.value) ? c = a(d.value, !0) : (e = a(b.text(), !0)) || d.$set("value", b.text()));return function (a, b, d) {
	          var h = b.parent();(h = h.data("$selectController") || h.parent().data("$selectController")) && h.registerOption(a, b, d, c, e);
	        };
	      } };
	  }],
	      bd = ["$parse", function (a) {
	    return { restrict: "A", require: "?ngModel", link: function link(b, d, c, e) {
	        if (e) {
	          var f = c.hasOwnProperty("required") || a(c.ngRequired)(b);c.ngRequired || (c.required = !0);e.$validators.required = function (a, b) {
	            return !f || !e.$isEmpty(b);
	          };c.$observe("required", function (a) {
	            f !== a && (f = a, e.$validate());
	          });
	        }
	      } };
	  }],
	      ad = ["$parse", function (a) {
	    return { restrict: "A", require: "?ngModel", compile: function compile(b, d) {
	        var c, e;d.ngPattern && (c = d.ngPattern, e = "/" === d.ngPattern.charAt(0) && ke.test(d.ngPattern) ? function () {
	          return d.ngPattern;
	        } : a(d.ngPattern));return function (a, b, d, h) {
	          if (h) {
	            var l = d.pattern;d.ngPattern ? l = e(a) : c = d.pattern;
	            var m = je(l, c, b);d.$observe("pattern", function (a) {
	              var d = m;m = je(a, c, b);(d && d.toString()) !== (m && m.toString()) && h.$validate();
	            });h.$validators.pattern = function (a, b) {
	              return h.$isEmpty(b) || A(m) || m.test(b);
	            };
	          }
	        };
	      } };
	  }],
	      dd = ["$parse", function (a) {
	    return { restrict: "A", require: "?ngModel", link: function link(b, d, c, e) {
	        if (e) {
	          var f = c.maxlength || a(c.ngMaxlength)(b),
	              g = Ub(f);c.$observe("maxlength", function (a) {
	            f !== a && (g = Ub(a), f = a, e.$validate());
	          });e.$validators.maxlength = function (a, b) {
	            return 0 > g || e.$isEmpty(b) || b.length <= g;
	          };
	        }
	      } };
	  }],
	      cd = ["$parse", function (a) {
	    return { restrict: "A", require: "?ngModel", link: function link(b, d, c, e) {
	        if (e) {
	          var f = c.minlength || a(c.ngMinlength)(b),
	              g = Ub(f) || -1;c.$observe("minlength", function (a) {
	            f !== a && (g = Ub(a) || -1, f = a, e.$validate());
	          });e.$validators.minlength = function (a, b) {
	            return e.$isEmpty(b) || b.length >= g;
	          };
	        }
	      } };
	  }];z.angular.bootstrap ? z.console && console.log("WARNING: Tried to load AngularJS more than once.") : (Je(), Oe(ca), ca.module("ngLocale", [], ["$provide", function (a) {
	    function b(a) {
	      a += "";var b = a.indexOf(".");return -1 == b ? 0 : a.length - b - 1;
	    }a.value("$locale", { DATETIME_FORMATS: { AMPMS: ["AM", "PM"], DAY: "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), ERANAMES: ["Before Christ", "Anno Domini"], ERAS: ["BC", "AD"], FIRSTDAYOFWEEK: 6, MONTH: "January February March April May June July August September October November December".split(" "), SHORTDAY: "Sun Mon Tue Wed Thu Fri Sat".split(" "), SHORTMONTH: "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "), STANDALONEMONTH: "January February March April May June July August September October November December".split(" "),
	        WEEKENDRANGE: [5, 6], fullDate: "EEEE, MMMM d, y", longDate: "MMMM d, y", medium: "MMM d, y h:mm:ss a", mediumDate: "MMM d, y", mediumTime: "h:mm:ss a", "short": "M/d/yy h:mm a", shortDate: "M/d/yy", shortTime: "h:mm a" }, NUMBER_FORMATS: { CURRENCY_SYM: "$", DECIMAL_SEP: ".", GROUP_SEP: ",", PATTERNS: [{ gSize: 3, lgSize: 3, maxFrac: 3, minFrac: 0, minInt: 1, negPre: "-", negSuf: "", posPre: "", posSuf: "" }, { gSize: 3, lgSize: 3, maxFrac: 2, minFrac: 2, minInt: 1, negPre: "-\xA4", negSuf: "", posPre: "\xA4", posSuf: "" }] }, id: "en-us", localeID: "en_US", pluralCat: function pluralCat(a, c) {
	        var e = a | 0,
	            f = c;void 0 === f && (f = Math.min(b(a), 3));Math.pow(10, f);return 1 == e && 0 == f ? "one" : "other";
	      } });
	  }]), x(function () {
	    Ee(z.document, Wc);
	  }));
	})(window);!window.angular.$$csp().noInlineStyle && window.angular.element(document.head).prepend(window.angular.element("<style>").text('@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}'));
	//# sourceMappingURL=angular.min.js.map

/***/ }),
/* 934 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('biz-ng-career-details').constant('CareerDTD', {
	  id: 'key',
	  desc: {
	    type: 'string',
	    writeToKey: 'description'
	  },
	  name: 'string',
	  ed_levels: {
	    type: 'array',
	    writeToKey: 'educationLevels'
	  },
	  onet: {
	    type: 'integer',
	    writeToKey: 'careerId'
	  },
	  exp_levels: {
	    type: 'array',
	    writeToKey: 'experienceLevels'
	  },
	  hiring_demand: 'string',
	  salary_max: {
	    type: 'integer',
	    writeToKey: 'salaryMax'
	  },
	  salary_min: {
	    type: 'integer',
	    writeToKey: 'salaryMin'
	  },
	  skills: 'array'
	}).factory('CareerBuilder', function CareerBuilder(Interface, CareerDTD, numberFormatterFn) {
	  function CareerDTO(data) {
	    Interface.implement(CareerDTD, data, this);
	    mapCareerData.call(this);
	  }
	
	  var mapCareerData = function mapCareerData() {
	    function mapData(data) {
	      var MAX_PERCENTAGE_INDEX = 1;
	      // NOTE: `element` contains [0: name, 1: job percentage]
	      var maxPercentage = _.reduce(data, function (maxPercentage, element) {
	        return Math.max(maxPercentage, _.parseInt(element[MAX_PERCENTAGE_INDEX] || 0, 10));
	      }, 0);
	      return _.map(data, function (element) {
	        return {
	          label: element[0],
	          value: _.parseInt(element[1]),
	          units: '%',
	          isMax: _.parseInt(element[MAX_PERCENTAGE_INDEX]) === maxPercentage
	        };
	      });
	    }
	
	    this.education = mapData(this.educationLevels);
	    this.experience = mapData(this.experienceLevels);
	
	    this.salaryMax = numberFormatterFn.convertToThousandsOfDollars(this.salaryMax);
	    this.salaryMin = numberFormatterFn.convertToThousandsOfDollars(this.salaryMin);
	  };
	
	  return CareerDTO;
	});

/***/ }),
/* 935 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('biz-ng-career-details').constant('RelatedCareersDTD', {
	  area_onet_data: {
	    type: 'object',
	    writeToKey: 'careersData'
	  },
	  onet: {
	    type: 'object',
	    writeToKey: 'allCareers'
	  },
	  skill: {
	    type: 'object',
	    writeToKey: 'allSkills'
	  }
	}).factory('RelatedCareersBuilder', function RelatedCareersBuilder(Interface, RelatedCareersDTD, CareerBuilder) {
	  function RelatedCareersDTO(data) {
	    Interface.implement(RelatedCareersDTD, data, this);
	    this.careersData = mapCareers.call(this, this.careersData);
	  }
	
	  var mapCareers = function mapCareers(group) {
	    return _.isEmpty(group) ? [] : _.map(group, function (career) {
	      var onetCareer = this.allCareers[career.onet];
	      onetCareer = _.omit(onetCareer, 'id'); //delete id to prevent change in career id
	
	      career = _.merge(career, onetCareer);
	      career = new CareerBuilder(career);
	
	      //Map Skills
	      career.topSkills = _.map(career.skills, function (skillId) {
	        return this.allSkills[skillId];
	      }, this);
	
	      return career;
	    }, this);
	  };
	
	  return RelatedCareersDTO;
	});

/***/ }),
/* 936 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('biz-ng-career-details').directive('careerDetails', function jobDetails() {
	  'use strict';
	
	  return {
	    templateUrl: 'biz-ng-career-details/src/component/career_details.html',
	    scope: {
	      career: '=',
	      settings: '<'
	    },
	    controller: function controller($scope, surveyUIConfiguration) {
	      $scope.career._expand = false;
	      $scope.showHiringDemand = _.isEmpty($scope.settings) ? true : $scope.settings.showHiringDemand;
	      $scope.showSalary = _.isEmpty($scope.settings) ? true : $scope.settings.showSalary;
	      $scope.models = {
	        careerDataAttributionMessage: surveyUIConfiguration.read().careerDataAttributionMessage
	      };
	      $scope.flags = {
	        hasSalaryData: !_.isNull($scope.career.salaryMin) && !_.isNull($scope.career.salaryMax) && $scope.showSalary,
	        hasHiringData: !_.isEmpty($scope.career.hiring_demand) && $scope.showHiringDemand,
	        hasEducationData: !_.isEmpty($scope.career.education),
	        hasExperienceData: !_.isEmpty($scope.career.experience),
	        hasSkillsData: !_.isEmpty($scope.career.topSkills)
	      };
	      $scope.expandCareerDetails = function expandCareerDetails() {
	        $scope.career._expand = !$scope.career._expand;
	      };
	    }
	  };
	});

/***/ }),
/* 937 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('biz-ng-career-details').provider('surveyUIConfiguration', function () {
	  var DEFAULTS = {
	    enableTalkToAdvisor: true,
	    enableAppointmentsScheduling: false,
	    enableProgramTimeToCompletionMessage: false,
	    enableProgramEstimatedTuition: true,
	    enableProgramCredits: true,
	    careerDataAttributionMessage: '<p class="attribution-message text-sz-s">Our career data includes information from the O*NET&trade; database, version 21.0</p>' + '<p class="attribution-message text-sz-s">O*NET&trade; is a trademark of the U.S. Department of Labor, Employment and Training Administration.</p>'
	  };
	
	  var configuration = _.merge({}, DEFAULTS);
	
	  var configure = this.configure = function configure_surveyConfig(config) {
	    if (!!config) {
	      configuration = _.merge({}, DEFAULTS, config);
	    }
	
	    return configuration;
	  };
	
	  var read = this.read = function read_surveyConfiguration() {
	    return configuration;
	  };
	
	  this.activate = function read_surveyConfiguration(config) {
	    this.configure(config);
	  };
	
	  this.$get = function () {
	    return {
	      configure: configure,
	      read: read
	    };
	  };
	});

/***/ }),
/* 938 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('biz-ng-career-details').factory('numberFormatterFn', function numberFormatterFn() {
	  var numberFormatterFn = function numberFormatterFn() {
	    this.convertToDollars = function convertToDollars(originalValue) {
	      return _.isUndefined(originalValue) ? '$0' : '$' + originalValue.toLocaleString();
	    };
	
	    this.convertToThousandsOfDollars = function convertToThousandsOfDollars(originalValue) {
	      return _.isUndefined(originalValue) ? '$0k' : '$' + Math.round(originalValue / 1000).toLocaleString() + 'k';
	    };
	
	    this.cleanNumber = function cleanNumber(originalValue) {
	      return _.isUndefined(originalValue) ? '0' : Math.round(originalValue).toLocaleString();
	    };
	
	    function stripTrailingZeroes(number) {
	      var floatingPointNumber = parseFloat(number);
	
	      return floatingPointNumber === 0 ? String(0) : String(floatingPointNumber).replace(/\.+$/, '');
	    }
	
	    this.formatNumber = function formatNumber(number, format) {
	      format = format || stripTrailingZeroes;
	
	      return format.call(this, number);
	    };
	  };
	
	  return new numberFormatterFn();
	});

/***/ }),
/* 939 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-notification-settings').provider('notificationSettingsConfiguration', function notificationSettingsConfiguration() {
	  var _this = this;
	
	  var DEFAULTS = {
	    growlerHandle: ''
	  };
	  var configuration = _.merge({}, DEFAULTS);
	
	  var configure = this.configure = function (config) {
	    if (!!config) {
	      configuration = _.merge({}, DEFAULTS, config);
	    }
	
	    return configuration;
	  };
	
	  var read = this.read = function () {
	    return configuration;
	  };
	
	  this.activate = function (config) {
	    return _this.configure(config);
	  };
	
	  this.$get = function () {
	    return {
	      configure: configure,
	      read: read
	    };
	  };
	});

/***/ }),
/* 940 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-resources').constant('ResourceCategoryBuilderDTD', {
	  id: 'id',
	  nk: 'string',
	  name: 'string'
	}).factory('ResourceCategoryBuilder', function (Interface, ResourceCategoryBuilderDTD) {
	  return function ResourceCategoryBuilderDTO(data) {
	    if (!(this instanceof ResourceCategoryBuilderDTO)) {
	      return new ResourceCategoryBuilderDTO(data);
	    }
	
	    Interface.implement(ResourceCategoryBuilderDTD, data, this);
	  };
	});

/***/ }),
/* 941 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-resources').constant('ResourceDetailsBuilderDTD', {
	  nk: 'string',
	  order: 'number',
	  resource: 'number',
	  resource_display_type: {
	    type: 'enum',
	    typeDef: 'ResourceLinks',
	    writeToKey: 'type',
	    defaultValue: 'generic'
	  },
	  value: 'string'
	}).factory('ResourceDetailsBuilder', function (Interface, ResourceDetailsBuilderDTD) {
	  return function ResourceDetailsBuilderDTO(data) {
	    if (!(this instanceof ResourceDetailsBuilderDTO)) {
	      return new ResourceDetailsBuilderDTO(data);
	    }
	
	    Interface.implement(ResourceDetailsBuilderDTD, data, this);
	  };
	});

/***/ }),
/* 942 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-resources').constant('ResourceLocationBuilderDTD', {
	  id: 'id',
	  address: 'string',
	  campus: 'number',
	  campus_name: 'string',
	  comments: 'string',
	  latitude: 'number',
	  longitude: 'number',
	  name: {
	    type: 'string',
	    writeToKey: 'value'
	  },
	  type: {
	    type: 'enum',
	    typeDef: 'ResourceLinks',
	    defaultValue: 'location'
	  }
	}).factory('ResourceLocationBuilder', function (Interface, ResourceLocationBuilderDTD) {
	  return function ResourceLocationBuilderDTO(data) {
	    if (!(this instanceof ResourceLocationBuilderDTO)) {
	      return new ResourceLocationBuilderDTO(data);
	    }
	
	    Interface.implement(ResourceLocationBuilderDTD, data, this);
	  };
	});

/***/ }),
/* 943 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-resources').constant('ResourceListBuilderDTD', {
	  location: {
	    type: 'ngObject',
	    typeDef: 'ResourceLocationBuilder'
	  },
	  resource_category: {
	    type: 'ngObject',
	    typeDef: 'ResourceCategoryBuilder'
	  },
	  resource_detail: {
	    type: 'ngObject',
	    typeDef: 'ResourceDetailsBuilder'
	  },
	  resource: {
	    type: 'object',
	    preprocessor: 'reverse-side-load-lookup',
	    hint: {
	      readHash: 'resource_detail',
	      readProperty: 'resource',
	      writeProperty: 'resourceDetails'
	    },
	    typeDef: {
	      id: 'id',
	      nk: 'string',
	      name: 'string',
	      description: 'string',
	      favorite_id: {
	        type: 'integer',
	        defaultValue: false
	      },
	      additional_info: {
	        type: 'string',
	        writeToKey: 'additionalInformation'
	      },
	      location: {
	        postprocessor: 'side-load-lookup',
	        hint: {
	          lookupKey: 'location'
	        },
	        type: 'key'
	      },
	      resource_category: {
	        postprocessor: 'side-load-lookup',
	        hint: {
	          lookupKey: 'resource_category'
	        },
	        type: 'key'
	      }
	    },
	    writeToKey: 'resources'
	  }
	}).factory('ResourceListBuilder', function (Interface, ResourceListBuilderDTD) {
	  return function ResourceListBuilderDTO(data) {
	    var resourceCategories = {};
	
	    // Sometimes the favorites building will pass in nothing so this is our safety check
	    data = data || {};
	
	    if (!(this instanceof ResourceListBuilderDTO)) {
	      return new ResourceListBuilderDTO(data);
	    }
	
	    _.forEach(data.resource, function (resource, key) {
	      resource.id = parseInt(key, 10);
	    });
	
	    if (_.isUndefined(data.resource_category)) {
	      _.forEach(data.resource, function (resource) {
	        resourceCategories[resource.resource_category] = {
	          id: resource.resource_category
	        };
	      });
	      data.resource_category = resourceCategories;
	    }
	
	    Interface.implement(ResourceListBuilderDTD, data, this);
	  };
	});

/***/ }),
/* 944 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-resources').factory('favoriteResourceCommand', function favoriteResourceCommandDefinition($q, $http, defineCommand) {
	  return defineCommand('favoriteResourceCommand', function favoriteResourceCommand(deferred, resource) {
	    $http.post('favorite/favoriteitem/', {
	      content_type: 'inst.resource',
	      object_id: resource.id,
	      cache: false
	    }).then(function (response) {
	      var updatedResource = { id: resource.id, favorite_id: response.data.id, is_favorite: true };
	      deferred.resolve(updatedResource);
	    }).catch(function (err) {
	      deferred.reject(err);
	    });
	  });
	});

/***/ }),
/* 945 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-resources').factory('unfavoriteResourceCommand', function unfavoriteResourceCommandDefinition($q, $http, defineCommand) {
	  return defineCommand('unfavoriteResourceCommand', function unfavoriteResourceCommand(deferred, resource) {
	    $http.delete('favorite/favoriteitem/' + resource.favorite_id, {
	      cache: false
	    }).then(function () {
	      var updatedResource = { id: resource.id, favorite_id: undefined, is_favorite: false };
	      deferred.resolve(updatedResource);
	    }).catch(function (err) {
	      deferred.reject(err);
	    });
	  });
	});

/***/ }),
/* 946 */
/***/ (function(module, exports) {

	'use strict';
	
	function resourceCategoryModel() {
	  this.$get = function $get_resourceCategoryModel(ResourceCategoryBuilder) {
	    return {
	      model: [],
	
	      update: function update_resourceCategoryModel(data) {
	        var _this = this;
	
	        this.model = [];
	
	        _.forEach(data.resource_category, function (category) {
	          category = new ResourceCategoryBuilder(category);
	          _this.model.push(category);
	        });
	
	        this.model = _.sortBy(this.model, 'name');
	        return this;
	      },
	
	      getCategoryById: function getCategoryById(categoryId) {
	        return _.filter(this.model, function (res) {
	          return res.id === parseInt(categoryId, 10);
	        });
	      }
	    };
	  };
	}
	
	angular.module('capability-ng-resources').provider('resourceCategoryModel', resourceCategoryModel);

/***/ }),
/* 947 */
/***/ (function(module, exports) {

	'use strict';
	
	function resourceModel() {
	  this.$get = function $get_resourceCategoryModel(ResourceListBuilder) {
	    return {
	      model: {},
	
	      update: function update_resourceModel(data) {
	        var _this = this;
	
	        var listToAdd = new ResourceListBuilder(data);
	        _.forEach(listToAdd.resources, function (resource) {
	          return _this.model[resource.id] = _.merge({}, _this.model[resource.id], resource);
	        });
	        return this;
	      },
	
	      getResourceDetail: function getResourceDetail_resourceModel(id) {
	        return this.model[id];
	      },
	
	      getResourcesByListOfIds: function getResourcesById_resourceModel(idArray) {
	        var _this2 = this;
	
	        return _.map(idArray, function (id) {
	          return _this2.model[id];
	        });
	      },
	
	      getResourcesByCategoryId: function getResourcesByCategoryId_resourceModel(categoryId) {
	        return _.sortBy(_.filter(this.model, function (res) {
	          return !_.isUndefined(res.resource_category) && res.resource_category.id === parseInt(categoryId, 10);
	        }), 'name');
	      },
	
	      favoriteResourceById: function favoriteResourceById_resourceModel(id, favorite_id) {
	        this.model[id].favorite_id = favorite_id;
	
	        return this.model[id];
	      },
	
	      unfavoriteResourceById: function unfavoriteResourceById_resourceModel(id) {
	        this.model[id].favorite_id = false;
	
	        return this.model[id];
	      },
	
	      getFavoriteResources: function getFavoriteResources_resourceModel() {
	        return _.filter(this.model, function (res) {
	          return res.favorite_id;
	        });
	      }
	    };
	  };
	}
	
	angular.module('capability-ng-resources').provider('resourceModel', resourceModel);

/***/ }),
/* 948 */
/***/ (function(module, exports) {

	'use strict';
	
	function ResourceLinksEnumMethods(Enumeration, locationLinkBuilderServant, ResourceLinks, ngTypeUtility) {
	  return Enumeration.useDefinitionAsEnum({
	    URL: {
	      buildDisplay: function buildDisplay(value) {
	        var urlPrefixExpression = new RegExp('://');
	        var urlContainsPrefix = urlPrefixExpression.exec(value.value);
	        var appendedUrl;
	
	        if (_.isNull(urlContainsPrefix)) {
	          appendedUrl = 'http://' + value.value;
	        } else {
	          appendedUrl = value.value;
	          //regex has the starting index stored, but we add 3 since the expression is 3 characters long
	          value.value = value.value.slice(urlContainsPrefix.index + 3, value.value.length);
	        }
	
	        return {
	          link: appendedUrl,
	          mixPanelActionTypeValue: 'Visited Website',
	          icon: 'network',
	          ariaLabel: 'website',
	          desktopActionable: true,
	          description: value
	        };
	      }
	    },
	    PHONE: {
	      buildDisplay: function buildDisplay(value) {
	        var formattedPhoneNumber = value.value;
	        if (ngTypeUtility.phoneNumber.isValidPhoneNumber(formattedPhoneNumber)) {
	          formattedPhoneNumber = ngTypeUtility.phoneNumber.getDisplayNumber(formattedPhoneNumber);
	        }
	        return {
	          link: 'tel://' + formattedPhoneNumber,
	          mixPanelActionTypeValue: 'Called Phone',
	          icon: 'telephone',
	          ariaLabel: 'phone',
	          desktopActionable: false,
	          description: value
	        };
	      }
	    },
	    EMAIL: {
	      buildDisplay: function buildDisplay(value) {
	        return {
	          link: 'mailto:' + value.value,
	          mixPanelActionTypeValue: 'Emailed',
	          icon: 'envelope',
	          ariaLabel: 'email',
	          desktopActionable: true,
	          description: value,
	          type: ResourceLinks.EMAIL
	        };
	      }
	    },
	    TIME: {
	      buildDisplay: function buildDisplay(value) {
	        return {
	          link: undefined,
	          mixPanelActionTypeValue: undefined,
	          icon: 'clock',
	          ariaLabel: 'time',
	          desktopActionable: false,
	          description: value
	        };
	      }
	    },
	    LOCATION: {
	      buildDisplay: function buildDisplay(value) {
	        return {
	          link: locationLinkBuilderServant.createLocationLink(value),
	          mixPanelActionTypeValue: undefined,
	          icon: 'map_marker',
	          ariaLabel: 'map',
	          desktopActionable: true,
	          description: value
	        };
	      }
	    },
	    GENERIC: {
	      buildDisplay: function buildDisplay(value) {
	        return {
	          link: undefined,
	          mixPanelActionTypeValue: undefined,
	          icon: 'info_circle',
	          ariaLabel: 'info',
	          desktopActionable: false,
	          description: value
	        };
	      }
	    }
	  });
	}
	
	angular.module('capability-ng-resources').constant('ResourceLinks', Enumeration('ResourceLinks', {
	  // eslint-disable-line new-cap
	
	  URL: 'Web',
	  TIME: 'Hours',
	  EMAIL: 'Email',
	  PHONE: 'Phone',
	  GENERIC: 'Generic',
	  LOCATION: 'Location'
	})).factory('ResourceLinksEnum', ResourceLinksEnumMethods);

/***/ }),
/* 949 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-scheduler').service('deleteStudentAvailabilityCommand', function deleteStudentAvailabilityCommandDefinition(defineCommand, $http) {
	  return defineCommand('deleteStudentAvailabilityCommand', function deleteStudentAvailabilityCommand(deferred, termId, timeId) {
	    if (!termId || !timeId) {
	      deferred.resolve();
	      return;
	    }
	
	    $http.delete('reg/preference/term/' + termId + '/availability/' + timeId).then(function (response) {
	      deferred.resolve(response.data);
	    }).catch(function (e) {
	      deferred.reject(e);
	    });
	  });
	});

/***/ }),
/* 950 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-scheduler').service('loadStudentAvailabilityCommand', function loadStudentAvailabilityCommandDefinition(defineCommand, $http, deleteStudentAvailabilityCommand, calendarTimeFn) {
	  return defineCommand('loadStudentAvailabilityCommand', function loadStudentAvailabilityCommand(deferred, termId) {
	    if (!termId) {
	      deferred.resolve();
	      return;
	    }
	
	    $http.get('reg/preference/term/' + termId + '/availability').then(function (response) {
	      var times = _.sortBy(calendarTimeFn.importTimes(response.data.timeslot), function (time) {
	        return time.day.ordinal;
	      });
	
	      deferred.resolve(times);
	    }).catch(function (e) {
	      deferred.reject(e);
	    });
	  });
	});

/***/ }),
/* 951 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-scheduler').service('saveStudentAvailabilityCommand', function saveStudentAvailabilityCommandDefinition(defineCommand, $http, calendarTimeFn) {
	  return defineCommand('saveStudentAvailabilityCommand', function saveStudentAvailabilityCommand(deferred, termId, time) {
	    time = _.isArray(time) ? _.first(time) : time;
	
	    if (!termId) {
	      deferred.resolve();
	      return;
	    }
	
	    $http.post('reg/preference/term/' + termId + '/availability/', {
	      timeslot: calendarTimeFn.exportTime(time)
	    }).then(function (response) {
	      time.id = response.data.id;
	      deferred.resolve(response.data);
	    }).catch(function (e) {
	      deferred.reject(e);
	    });
	  });
	});

/***/ }),
/* 952 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-scheduler').controller('studentAvailabilityController', function ($scope, $q, loadStudentAvailabilityCommand, deleteStudentAvailabilityCommand, saveStudentAvailabilityCommand) {
	  $scope.flags = {
	    hasBeenUpdated: false
	  };
	
	  $scope.models = {
	    times: undefined,
	    preserveTimes: undefined
	  };
	
	  $scope.whenSaveRequested = $scope.saveTimes = function saveTimes() {
	    if (!$scope.flags.hasBeenUpdated) {
	      return;
	    }
	
	    $q.all(_.map($scope.models.preserveTimes, function (timeId) {
	      return this($scope.termId, timeId);
	    }, deleteStudentAvailabilityCommand)).then(function () {
	      return $q.all(_.map($scope.models.times, function (time) {
	        return this($scope.termId, time);
	      }, saveStudentAvailabilityCommand));
	    }).finally(function () {
	      $scope.flags.hasBeenUpdated = false;
	      $scope.models.preserveTimes = _.map($scope.models.times, 'id');
	    });
	  };
	
	  $scope.whenUpdated = function whenUpdated(times) {
	    $scope.flags.hasBeenUpdated = true;
	    $scope.models.times = times;
	  };
	
	  loadStudentAvailabilityCommand($scope.termId).then(function (times) {
	    $scope.flags.hasBeenUpdated = false;
	    $scope.models.preserveTimes = _.map(times, 'id');
	    $scope.models.times = times;
	  });
	}).directive('studentAvailability', function studentAvailability(DelegateResponder) {
	  return {
	    restrict: 'AE',
	    replace: false,
	    templateUrl: 'capability-ng-scheduler/src/components/student_availability/student_availability.html',
	    controller: 'studentAvailabilityController',
	    scope: {
	      termId: '='
	    },
	    link: function link(scope, element, attrs) {
	      element.addClass('student-availability');
	
	      DelegateResponder(scope, {
	        attrs: attrs,
	        uniqueComponent: 'student-availability',
	        vocabulary: {
	          save: function save() {
	            this.saveTimes();
	          }
	        }
	      });
	    }
	  };
	}).service('studentAvailabilityDelegate', function studentAvailabilityDelegate(DelegateController) {
	  DelegateController(this, {
	    uniqueComponent: 'student-availability',
	    vocabulary: {
	      save: 'eabui.student-availability.save'
	    }
	  });
	});

/***/ }),
/* 953 */
/***/ (function(module, exports) {

	'use strict';
	
	// FIXME: typescript enum
	angular.module('capability-ng-scheduler').constant('CampusLocationEnum', Enumeration('CampusLocationEnum', {
	  BLENDED: {
	    id: 'blended',
	    title: 'Blended - Partially Online',
	    label: 'Blended - Partially Online',
	    shortTitle: 'Blended',
	    is_online: true
	  },
	  ONLINE_COURSE: {
	    id: 'online_course',
	    title: 'Online Courses',
	    label: 'Online Courses',
	    shortTitle: 'Online',
	    is_online: true
	  }
	}));

/***/ }),
/* 954 */
/***/ (function(module, exports) {

	'use strict';
	
	// FIXME: typescript enum
	angular.module('capability-ng-scheduler').constant('PreferenceTypeEnum', Enumeration('PreferenceTypeEnum', {
	  COMMITMENT: {
	    id: 'commitment',
	    unit: 'Hrs Committed'
	  },
	  CAMPUS_LOCATION: {
	    id: 'campus_location',
	    unit: 'Locations Selected'
	  },
	  BUSY_TIME: {
	    id: 'busy_time',
	    unit: 'Busy Times Added'
	  },
	  COURSE_LENGTH: {
	    id: 'course_length',
	    unit: 'Lengths Chosen'
	  }
	}));

/***/ }),
/* 955 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('capability-ng-scheduler').directive('eabCommitmentRange', function eabCommitmentRange(CommitmentRangesEnum, loadTermCommitmentPreferencesCommand, saveTermCommitmentPreferencesCommand, ngPreferencesCommitmentModel, preferencesSummaryDelegate) {
	  'use strict';
	
	  return {
	    replace: true,
	    templateUrl: 'capability-ng-scheduler/src/views/components/preferences/components/commitment_range/commitment_range.html',
	    scope: {
	      termId: '=eabCommitmentRange',
	      rangeEnum: '='
	    },
	    controller: function controller($scope) {
	      $scope.value = $scope.rangeEnum.value.min;
	
	      $scope.updateInput = function (event) {
	        if (event) {
	          $scope.value = event.target.value;
	        }
	        if (!$scope.value && !_.isFinite($scope.value)) {
	          $scope.value = 0;
	        }
	        $scope.value = parseInt($scope.value, 10);
	        $scope.textValue = $scope.value;
	      };
	
	      loadTermCommitmentPreferencesCommand($scope.termId, $scope.rangeEnum.id).then(function (commitment) {
	        $scope.value = commitment.commitment_value;
	        $scope.updateInput();
	        $scope.textValue = $scope.value.toString();
	        ngPreferencesCommitmentModel.write({ id: $scope.rangeEnum.id, value: $scope.value });
	        preferencesSummaryDelegate.setCommitment({ id: $scope.rangeEnum.id, value: $scope.value });
	      });
	
	      var saveMe = _.debounce(function () {
	        ngPreferencesCommitmentModel.write({ id: $scope.rangeEnum.id, value: $scope.value });
	        preferencesSummaryDelegate.setCommitment({ id: $scope.rangeEnum.id, value: $scope.value });
	        saveTermCommitmentPreferencesCommand($scope.termId, $scope.rangeEnum.id, parseInt($scope.value));
	      }, 500);
	
	      $scope.onCommitValue = function () {
	        $scope.updateInput();
	        saveMe();
	      };
	
	      $scope.models = {
	        id: 'slider-' + $scope.termId,
	        options: {
	          floor: $scope.rangeEnum.value.min,
	          ceil: $scope.rangeEnum.value.max,
	          step: 1,
	          getSelectionBarColor: function getSelectionBarColor(value) {
	            return '#f28b00';
	          },
	          onChange: function onChange(id) {
	            $scope.updateInput();
	          },
	          onEnd: function onEnd(id) {
	            $scope.updateInput();
	            saveMe();
	          }
	        }
	      };
	    }
	  };
	});

/***/ }),
/* 956 */
/***/ (function(module, exports) {

	'use strict';
	
	/** @enum {CommitmentRangesEnum} */
	angular.module('capability-ng-scheduler').constant('CommitmentRangesEnum', Enumeration('CommitmentRangesEnum', {
	  WORK_HRS: {
	    id: 'work_hrs',
	    title: 'Working at a Job',
	    label: 'Working at a job',
	    shortTitle: 'At a Job',
	    value: 0,
	    min: 0,
	    max: 40
	  },
	  EXTRACURRICULAR_HRS: {
	    id: 'extracurricular_hrs',
	    title: 'Activities, Sports, Clubs, Organizations, etc.',
	    label: 'Activities, Sports, Clubs, Organizations, etc.',
	    shortTitle: 'Outside Activities',
	    value: 0,
	    min: 0,
	    max: 40
	  },
	  COMMUNITY_HRS: {
	    id: 'community_hrs',
	    title: 'Community or Other Activities',
	    label: 'Community or other activities',
	    shortTitle: 'Community Service',
	    value: 0,
	    min: 0,
	    max: 40
	  }
	}));

/***/ }),
/* 957 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('data-ng-todos').factory('PlacementTestScoresBuilder', function PlacementTestScoresBuilder(Interface, CourseBuilder) {
	  'use strict';
	
	  var _CourseBuilder = CourseBuilder;
	  var PlacementTestScoresDTD = {
	    placementsection: {
	      type: 'object',
	      typeDef: {
	        id: 'key',
	        name: 'string',
	        dev_course_ids_by_group_nk: 'object',
	        test_subject_ids: 'array',
	        test_subject_ids_on_path: 'array',
	        next_highest_path_entry_by_group_nk: 'object',
	        best_test_subject_ids_by_group_nk: 'object',
	        _courses_by_group_nk: 'array',
	        _tests: 'array',
	        _best_tests_by_nk: 'object',
	        _path_tests: 'array',
	        _tests_on_path: 'array',
	        _tests_off_path: 'array'
	      },
	      writeToKey: 'placement_sections'
	    },
	    testsubject: {
	      type: 'object',
	      typeDef: {
	        id: 'key',
	        name: 'string',
	        score: 'number',
	        max_score: 'number'
	      },
	      writeToKey: 'test_subjects'
	    },
	    course: {
	      type: 'object',
	      typeDef: {
	        id: 'key',
	        title: 'string',
	        desc: 'string',
	        cd: 'string'
	      },
	      writeToKey: 'courses'
	    },
	    placementcenter: {
	      type: 'ngArray',
	      typeDef: 'GeoJsonBuilder',
	      writeToKey: 'placement_locations'
	    }
	  };
	
	  // Creating a hash map of the test subjects is much more efficient than repeated _.find() calls.
	  // Also, several functions can benefit from reusing a single hash map.
	  var testSubjectMap = {};
	
	  function PlacementTestScoresDTO(data) {
	    Interface.implement(PlacementTestScoresDTD, data, this);
	
	    testSubjectMap = _.indexBy(this.test_subjects, 'id');
	
	    _.forEach(data.placementsection, function (placementSection) {
	      extractCoursesFromIds.call(this, placementSection);
	      extractTestsFromIds.call(this, placementSection);
	      extractPathTestsFromIds.call(this, placementSection);
	      extractBestTestsFromIds.call(this, placementSection);
	      extractTests.call(this, placementSection);
	    }, this);
	  }
	
	  var extractCoursesFromIds = function extractCoursesFromIds(placementSection) {
	    var courseMap = _.indexBy(this.courses, 'id');
	
	    _.forEach(placementSection.dev_course_ids_by_group_nk, function (dev_course_ids, group_nk) {
	      var devCourses = [];
	
	      _.forEach(dev_course_ids, function (dev_course_id) {
	        devCourses.push(courseMap[dev_course_id]);
	      });
	
	      placementSection._courses_by_group_nk[group_nk] = devCourses;
	    });
	  };
	
	  var extractTestsFromIds = function extractTestsFromIds(placementSection) {
	    _.forEach(placementSection.test_subject_ids, function (test_subject_id) {
	      placementSection._tests.push(testSubjectMap[test_subject_id]);
	    });
	  };
	
	  var extractPathTestsFromIds = function extractPathTestsFromIds(placementSection) {
	    _.forEach(placementSection.test_subject_ids_on_path, function (test_subject_id) {
	      placementSection._path_tests.push(testSubjectMap[test_subject_id]);
	    });
	  };
	
	  var extractBestTestsFromIds = function extractBestTestsFromIds(placementSection) {
	    _.forEach(placementSection.best_test_subject_ids_by_group_nk, function (test_subject_ids, group_nk) {
	      var testSubjectsList = [];
	
	      _.forEach(test_subject_ids, function (test_subject_id) {
	        var testSubject = testSubjectMap[test_subject_id];
	
	        if (!_.isUndefined(testSubject)) {
	          testSubjectsList.push(testSubject);
	        }
	      });
	
	      placementSection._best_tests_by_nk[group_nk] = testSubjectsList;
	    });
	  };
	
	  var categorizeTests = function categorizeTests(placementSection) {
	    var onPath = [];
	    var offPath = [];
	
	    _.forEach(placementSection._tests, function (test) {
	      if (placementSection._path_tests.indexOf(test) != -1) {
	        onPath.push(test);
	      } else {
	        offPath.push(test);
	      }
	    });
	
	    return {
	      onPath: onPath,
	      offPath: offPath
	    };
	  };
	
	  var extractTests = function extractTests(placementSection) {
	    var tests = categorizeTests(placementSection);
	
	    placementSection._tests_on_path = tests.onPath;
	    placementSection._tests_off_path = tests.offPath;
	  };
	
	  return PlacementTestScoresDTO;
	});

/***/ }),
/* 958 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('data-ng-todos').factory('TopicBuilder', function TopicBuilder(Interface) {
	  'use strict';
	
	  var TopicDTD = {
	    topic: {
	      type: 'object',
	      typeDef: {
	        id: 'key',
	        name: 'string',
	        rank: 'number',
	        desc: 'string',
	        has_opted_in: 'boolean'
	      },
	      writeToKey: 'topics'
	    }
	  };
	
	  function TopicDTO(data) {
	    Interface.implement(TopicDTD, data, this);
	  }
	
	  return TopicDTO;
	});

/***/ }),
/* 959 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('data-ng-todos').factory('loadAppointmentDetailsCommand', function loadAppointmentDetailsCommand(defineCommand, $http) {
	  return defineCommand('loadAppointmentDetailsCommand', function loadAppointmentDetailsCommand(deferred, eventId, appointmentId) {
	    $http.get('ssccampus/appointment/' + appointmentId).then(function (_ref) {
	      var data = _ref.data;
	
	      deferred.resolve(data);
	    }).catch(function (_ref2) {
	      var error = _ref2.error;
	
	      deferred.reject(error);
	    });
	  });
	});

/***/ }),
/* 960 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('data-ng-todos').factory('loadAppointmentRequestCommand', function loadAppointmentRequestCommand(defineCommand, $http) {
	  return defineCommand('loadAppointmentRequestCommand', function loadAppointmentRequestCommand(deferred, eventId, appointmentRequestId) {
	    $http.get('ssccampus/appointment_request/' + appointmentRequestId).then(function (_ref) {
	      var data = _ref.data;
	
	      deferred.resolve(data);
	    }).catch(function (_ref2) {
	      var error = _ref2.error;
	
	      deferred.reject(error);
	    });
	  });
	});

/***/ }),
/* 961 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('data-ng-todos').factory('loadPathItemCommand', function loadPathItemCommand($http, defineCommand, PathItemBuilder) {
	  return defineCommand('loadPathItemCommand', function loadPathItemCommand(deferred, eventId, repeatedBy) {
	    $http.get('/event/task/event/' + eventId + '/repeated_by/' + repeatedBy + '/').then(function (_ref) {
	      var data = _ref.data;
	
	      deferred.resolve(new PathItemBuilder(data));
	    }).catch(function (_ref2) {
	      var error = _ref2.error;
	
	      deferred.reject(error);
	    });
	  });
	});

/***/ }),
/* 962 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('data-ng-todos').service('loadPlacementTestScoresCommand', function loadPlacementTestScoresCommandDefinition($http, defineCommand, PlacementTestScoresBuilder) {
	  return defineCommand('loadPlacementTestScoresCommand', function loadPlacementTestScoresCommand(deferred) {
	    $http.get('/reg/placement/').then(function (response) {
	      deferred.resolve(new PlacementTestScoresBuilder(response.data));
	    }).catch(function (e) {
	      log.issue('failed to retrieve info for placement test scores');
	      deferred.reject(e.data);
	    });
	  });
	});

/***/ }),
/* 963 */
/***/ (function(module, exports) {

	'use strict';
	
	/**
	 * Created by kachavas on 6/23/16.
	 */
	angular.module('data-ng-todos').constant('PathTasksVisibilityDTD', {
	  task: {
	    type: 'object',
	    typeDef: {
	      id: 'id',
	      event: 'id',
	      repeated_by: 'id',
	      show: 'boolean'
	    }
	  }
	}).provider('pathTasksVisibilityModel', function pathTasksVisibilityModel(PathTasksVisibilityDTD) {
	  'use strict';
	
	  var PathTasksVisibilityModel = function PathTasksVisibilityModel(Interface) {
	    this.initialize = function initialize() {
	      Interface.implement(PathTasksVisibilityDTD, {}, this);
	      return this;
	    };
	    this.update = function update(data) {
	      Interface.implement(PathTasksVisibilityDTD, data, this);
	      return this;
	    };
	    this.clear = function clear() {
	      this.task = {};
	    };
	  };
	
	  this.$get = function $get_pathTasksVisibilityModel(Interface) {
	    return new PathTasksVisibilityModel(Interface).initialize();
	  };
	});

/***/ }),
/* 964 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('data-ng-path-item').constant('ActionBuilderDTD', {
	  option: 'integer',
	  value: '*'
	}).factory('ActionBuilder', function ActionBuilder(Interface, ActionBuilderDTD) {
	  var actionValueTypeConversion = function actionValueTypeConversion(value) {
	    var tmp;
	
	    if (!(value != null) || value === '') {
	      return 0;
	    }
	
	    tmp = parseInt(value, 10);
	    if (!_.isNaN(tmp)) {
	      return tmp;
	    }
	
	    tmp = value === 'true' ? true : value === 'false' ? false : undefined;
	
	    if (_.isBoolean(tmp)) {
	      return tmp;
	    }
	
	    return value + '';
	  };
	
	  return function ActionDTO(data) {
	    Interface.implement(ActionBuilderDTD, data, this);
	    this.value = actionValueTypeConversion.call(this, this.value);
	  };
	});

/***/ }),
/* 965 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('data-ng-path-item').constant('GeoJsonBuilderDTD', {
	  type: 'string',
	  id: 'key',
	  comments: 'string',
	  address: 'string',
	  properties: {
	    type: 'object' // TODO: make geojson properties factory
	  },
	  geometry: {
	    type: 'object' // TODO: make geojson geometry factory
	  }
	}).factory('GeoJsonBuilder', function GeoJsonBuilder(Interface, GeoJsonBuilderDTD) {
	  function GeoJsonDTO(data) {
	    Interface.implement(GeoJsonBuilderDTD, data, this);
	    applyType.call(this, data);
	    applyProperties.call(this, data);
	    applyGeometry.call(this, data);
	  }
	
	  var applyType = function applyType(data) {
	    this.type = data.type || 'Feature';
	  };
	
	  var applyProperties = function applyProperties(data) {
	    var template = '<h4>{{properties.name}}</h4><p>{{address}}</p>';
	
	    this.properties.name = data.name;
	    if (!data.notemplate) {
	      this.properties.popupContent = _.template(template, this);
	    }
	  };
	
	  var applyGeometry = function applyGeometry(data) {
	    this.geometry.type = data.type || 'Point';
	    this.geometry.coordinates = _.isNull(data.longitude) || _.isNull(data.latitude) ? {} : [data.longitude, data.latitude];
	  };
	
	  return GeoJsonDTO;
	});

/***/ }),
/* 966 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('data-ng-path-item').constant('ItemDTD', {
	  id: 'key',
	  range: 'key',
	  nk: 'string',
	  title: 'string',
	  text: 'html',
	  short_title: 'string',
	  short_text: 'html',
	  didyouknow: 'html',
	  poll: {
	    optional: true,
	    type: 'integer'
	  },
	  actions_min: 'integer',
	  actions_max: 'integer',
	  options: 'object',
	  help_text: 'html',
	  sub_title: 'html',
	  show: 'boolean',
	  _task: {
	    optional: true,
	    type: '*'
	  },
	  _parent: {
	    optional: true,
	    type: '*'
	  },
	  children: 'array',
	  _options: {
	    optional: true,
	    type: 'object'
	  },
	  item_type: {
	    type: 'enum',
	    typeDef: 'ItemTypeEnum'
	  },
	  presenter: {
	    type: 'enum',
	    typeDef: 'ItemPresenterEnum'
	  },
	  location_group: 'key',
	  topic_id: 'id',
	  link_to_appt_scheduling: 'boolean',
	  _presenterMode: {
	    optional: true,
	    type: 'enum',
	    typeDef: 'PresenterModeEnum',
	    defaultValue: undefined
	  }
	}).factory('ItemBuilderDTD', function (ItemDTD) {
	  // DEPRECATED ItemDTD
	  return ItemDTD;
	}).factory('ItemBuilder', function ItemBuilder(Interface, ItemBuilderDTD, ItemPresenterEnum) {
	  var overrideGenericPresenterWithItemType = function overrideGenericPresenterWithItemType(item, data) {
	    if (ItemPresenterEnum.isEqual('DETAILS', item.presenter) && !!item.item_type) {
	      item.presenter = ItemPresenterEnum.key(data.item_type);
	    }
	  };
	
	  var forceBoldTypeForStrongTag = function forceBoldTypeForStrongTag(text) {
	    // DEPRECATED leaving font-bold in case the editor has not upgraded to the latest typography rules
	    return text.replace(/<strong>/g, '<strong class="font-bold text-bold">');
	  };
	
	  return function ItemDTO(data) {
	    Interface.implement(ItemBuilderDTD, data, this);
	    overrideGenericPresenterWithItemType(this, data);
	    // NOTE: The Froala editor uses a <strong> HTML tag for bold text, which EAB UI overrides to make it not bold
	    this.text = forceBoldTypeForStrongTag(this.text);
	  };
	});

/***/ }),
/* 967 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('data-ng-path-item').constant('OptionBuilderDTD', {
	  id: 'key',
	  item: 'key',
	  rank: 'integer',
	  text: 'html',
	  _action: {
	    type: 'object',
	    optional: true
	  }
	}).factory('OptionBuilder', function OptionBuilder(Interface, OptionBuilderDTD) {
	  return function OptionDTO(data) {
	    Interface.implement(OptionBuilderDTD, data, this);
	  };
	});

/***/ }),
/* 968 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('data-ng-path-item').constant('addTextByFieldByItemSubstitutionFunction', function addTextByFieldByItemSubstitution(tasks, items) {
	  var lookupSubstitutionText = function lookupSubstitutionText(item, property) {
	    var substitution = item._task.substitute_text_by_field_by_item;
	
	    if (!substitution[item.id]) {
	      return item[property];
	    } else if (!substitution[item.id][property]) {
	      return item[property];
	    } else {
	      return substitution[item.id][property];
	    }
	  };
	
	  // TODO create just one function that accepts a property (substituteProperty)
	  _.each(items, function (item) {
	    item.getSubstitutionText = function getSubstitutionText() {
	      return lookupSubstitutionText(this, 'text');
	    };
	
	    item.getSubstitutionTitle = function getSubstitutionTitle() {
	      return lookupSubstitutionText(this, 'title');
	    };
	  });
	}).constant('PathItemBuilderDTD', {
	  root: {
	    optional: true,
	    type: 'ngObject',
	    typeDef: 'ItemBuilder',
	    hint: {
	      typeDTD: 'ItemBuilderDTD',
	      length: 1
	    }
	  },
	  task: {
	    type: 'ngObject',
	    typeDef: 'TaskBuilder',
	    writeToKey: 'tasks',
	    hint: {
	      typeDTD: 'TaskBuilderDTD'
	    }
	  },
	  requested_item_id: {
	    writeToKey: 'rootItemId',
	    type: 'integer'
	  },
	  item: {
	    writeToKey: 'items',
	    type: 'ngObject',
	    typeDef: 'ItemBuilder',
	    hint: {
	      typeDTD: 'ItemBuilderDTD'
	    }
	  },
	  option: {
	    writeToKey: 'options',
	    type: 'ngObject',
	    typeDef: 'OptionBuilder',
	    hint: {
	      typeDTD: 'OptionBuilderDTD'
	    }
	  },
	  action: {
	    writeToKey: 'actions',
	    type: 'ngObject',
	    typeDef: 'ActionBuilder',
	    hint: {
	      typeDTD: 'ActionBuilderDTD'
	    }
	  },
	  param: {
	    writeToKey: 'constants',
	    type: 'object'
	  },
	  range: {
	    writeToKey: 'ranges',
	    type: 'ngObject'
	  },
	  location: {
	    writeToKey: 'locations',
	    type: 'ngObject',
	    typeDef: 'GeoJsonBuilder',
	    hint: {
	      typeDTD: 'GeoJsonBuilderDTD'
	    }
	  },
	  location_group: {
	    writeToKey: 'locationGroups',
	    type: 'object',
	    typeDef: {
	      id: 'key',
	      nk: 'string',
	      locations: 'array'
	    }
	  }
	}).factory('PathItemBuilder', function PathItemBuilder(Interface, PathItemBuilderDTD, TaskFn, pathItemContractModifierDecorator, addTextByFieldByItemSubstitutionFunction) {
	  var PathItemDTO = function PathItemDTO(data) {
	    pathItemContractModifierDecorator.runExtensions(data, this);
	
	    this.source = Interface.make(PathItemBuilderDTD, data);
	    this.root = attachChildrenToItems(getRootItem(this.source), this.source.items);
	
	    attachTasksToItems(this.source.tasks, this.source.items);
	    attachOptionsToItems(this.source.options, this.source.items);
	    attachActionsToOptions(this.source.actions, this.source.options);
	    groupLocations(this.source.locationGroups, this.source.locations);
	    attachAppointmentLinkToTask(this.source.tasks, this.root);
	
	    // DEPRECATED (but capability-ng-survey requires the methods added to item)
	    addTextByFieldByItemSubstitutionFunction(this.source.tasks, this.source.items);
	
	    // REPLACE with these two which add the title to the task
	    TaskFn.applySubstitutionToText(this.source.tasks, this.source.items, 'title');
	    TaskFn.applySubstitutionToText(this.source.tasks, this.source.items, 'text');
	
	    if (_.isPlainObject(this.source.task)) {
	      this.source.task._item = this.root;
	    }
	  };
	
	  /**
	   * calculate the difference between all items and items that have never been referenced as children which is the root
	   * @assumption all items are relevant and referenced by another item, except the root
	   */
	  var getRootItem = function getRootItem(source) {
	    source.task = source.tasks[_.first(_.keys(source.tasks))];
	    return source.items[source.task.item];
	  };
	
	  var attachChildrenToItems = function attachChildrenToItems(item, items) {
	    item.children = _.map(item.children, function (childId) {
	      var child = this[childId];
	
	      child._parent = item;
	      return attachChildrenToItems(child, this);
	    }, items);
	
	    return item;
	  };
	
	  var attachAppointmentLinkToTask = function attachAppointmentLinkToTask(tasks, rootItem) {
	    _.each(tasks, function (task) {
	      task._link_to_appt_scheduling = rootItem.link_to_appt_scheduling;
	    });
	  };
	
	  var attachTasksToItems = function attachTasksToItems(tasks, items) {
	    _.each(tasks, function (task) {
	      this[task.item]._task = task;
	    }, items);
	
	    _.each(items, function (item) {
	      if (_.isUndefined(item._task) && !_.isUndefined(item._parent)) {
	        item._task = item._parent._task;
	      }
	    });
	  };
	
	  var attachOptionsToItems = function attachOptionsToItems(options, items) {
	    _.each(options, function (option) {
	      this[option.item]._options[option.id] = option;
	    }, items);
	  };
	
	  var attachActionsToOptions = function attachActionsToOptions(actions, options) {
	    _.each(actions, function (action) {
	      this[action.option]._action = action;
	    }, options);
	  };
	
	  var groupLocations = function groupLocations(groups, locations) {
	    _.forEach(groups, function (group) {
	      group.locations = _.map(group.locations, function (locationId) {
	        return locations[locationId];
	      });
	    });
	  };
	
	  return PathItemDTO;
	});

/***/ }),
/* 969 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('data-ng-path-item').constant('TaskBuilderDTD', {
	  id: 'id',
	  nk: 'string',
	  repeated_by: 'id',
	  event: 'id',
	  item: 'id',
	  status_changed_ts: {
	    type: 'moment',
	    rules: {
	      defaultsToNow: false
	    }
	  },
	  base_ts: {
	    type: 'moment',
	    rules: {
	      defaultsToNow: false
	    }
	  },
	  start_ts: {
	    type: 'moment',
	    rules: {
	      defaultsToNow: false
	    }
	  },
	  end_ts: {
	    type: 'moment',
	    rules: {
	      defaultsToNow: false
	    }
	  },
	  calendar_synced_ts: {
	    type: 'moment',
	    rules: {
	      defaultsToNow: false
	    },
	    writeToKey: 'calendar_synced'
	  },
	  is_completable: 'boolean',
	  is_dismissible: 'boolean',
	  is_overdue: 'boolean',
	  is_pending_complete: 'boolean',
	  mandatory: 'boolean',
	  overdue_days: 'number',
	  overdue_message: 'string',
	  show: 'boolean',
	  status: 'string',
	  _item: 'object',
	  _title: 'string',
	  _text: 'string',
	  _link_to_appt_scheduling: 'boolean',
	  substitute_text_by_field_by_item: 'object',
	  category: {
	    optional: true,
	    type: 'enum',
	    typeDef: 'EventCategoryEnum',
	    defaultValue: 'TO_DO'
	  },
	  topic_id: 'id',
	  _topic: 'object'
	}).factory('TaskBuilder', function TaskBuilder(Interface, TaskBuilderDTD) {
	  return function TaskDTO(data) {
	    Interface.implement(TaskBuilderDTD, data, this);
	  };
	});

/***/ }),
/* 970 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('data-ng-path-item', ['utility-ng-enumeration', 'utility-ng-interface']);

/***/ }),
/* 971 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('data-ng-path-item').constant('ItemFn', {
	  hasChildren: function hasChildren(item) {
	    return !_.isEmpty(item.children);
	  }
	});

/***/ }),
/* 972 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('data-ng-path-item').constant('PathItemFn', {
	  hasLocations: function hasLocations(pathItem) {
	    return !_.isEmpty(pathItem.source.locations);
	  }
	});

/***/ }),
/* 973 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('data-ng-path-item').constant('TaskFn', {
	  applySubstitutionToText: function applySubstitutionToText(tasks, items, property) {
	    _.each(tasks, function (task) {
	      var substitute = task.substitute_text_by_field_by_item[task.item];
	
	      if (!_.isEmpty(substitute) && !_.isEmpty(substitute[property])) {
	        task['_' + property] = substitute[property];
	      } else {
	        task['_' + property] = items[task.item][property];
	      }
	    });
	  }
	});

/***/ }),
/* 974 */
/***/ (function(module, exports) {

	'use strict';
	
	var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
	
	function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
	
	function pathItemContractModifierDecorator() {
	  var pathItemContractExtension = function () {
	    function pathItemContractExtension() {
	      _classCallCheck(this, pathItemContractExtension);
	
	      this.contractExtensions = {};
	    }
	
	    _createClass(pathItemContractExtension, [{
	      key: 'addExtension',
	      value: function addExtension(extensionProperty, extensionFn) {
	        this.contractExtensions[extensionProperty] = extensionFn;
	      }
	    }, {
	      key: 'runExtensions',
	      value: function runExtensions(serverData, context) {
	        _.forOwn(this.contractExtensions, function (extensionFn, extensionProperty) {
	          context[extensionProperty] = extensionFn(serverData);
	        });
	      }
	    }]);
	
	    return pathItemContractExtension;
	  }();
	
	  return new pathItemContractExtension();
	}
	
	angular.module('data-ng-path-item').service('pathItemContractModifierDecorator', pathItemContractModifierDecorator);

/***/ }),
/* 975 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('data-ng-path-item').constant('EventCategoryEnum', Enumeration('EventCategoryEnum', {
	  TO_DO: {
	    id: 'TO_DO',
	    value: {
	      label: 'To-Do',
	      cssClass: 'to-do'
	    }
	  },
	  RESOURCE: {
	    id: 'RESOURCE',
	    value: {
	      label: 'Resource',
	      cssClass: 'resource'
	    }
	  },
	  DATE_MARKER: {
	    id: 'DATE_MARKER',
	    value: {
	      label: 'Key Dates',
	      cssClass: 'date-marker'
	    }
	  },
	  TIP: {
	    id: 'TIP',
	    value: {
	      label: 'Tips',
	      cssClass: 'event-category--tip'
	    }
	  },
	  POLL: {
	    id: 'POLL',
	    value: {
	      label: 'Polls',
	      cssClass: 'event-category--poll'
	    }
	  },
	  PERSONAL_REMINDER: {
	    id: 'PERSONAL_REMINDER',
	    value: {
	      label: 'Personal Reminders',
	      cssClass: 'personal-reminder'
	    }
	  }
	}));

/***/ }),
/* 976 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('data-ng-path-item').constant('ItemPresenterEnum', Enumeration('ItemPresenterEnum', {
	  INTAKE: {},
	  CAMPUS: {},
	  CHECKBOX: {},
	  CHOICE: {},
	  GENERIC: {},
	  DETAILS: {},
	  INFO: {},
	  POLL: {},
	  INTEREST: {},
	  LISTSELECTION: {},
	  METARANKING: {},
	  PROGRAMS: {},
	  PLACEMENTTEST: {},
	  TOPIC: {},
	  APPOINTMENT: {},
	  APPOINTMENT_REQUEST: {},
	  APPOINTMENT_INVITATION: {},
	  ARTICLE: {},
	  RANK: {}
	}));

/***/ }),
/* 977 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('data-ng-path-item').constant('PresenterModeEnum', Enumeration('PresenterModeEnum', {
	  DISPLAY: 'DISPLAY',
	  MOBILE: 'MOBILE',
	  TAGS: 'TAGS',
	  EDIT: 'EDIT'
	}));

/***/ }),
/* 978 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('data-ng-path-item').constant('ItemTypeEnum', Enumeration('ItemTypeEnum', {
	  INFO: 'INFO',
	  CHOICE: 'CHOICE',
	  RANK: 'RANK',
	  RANGE: 'RANGE',
	  BOOLEANS: 'BOOLEANS'
	}));

/***/ }),
/* 979 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('hybrid-ng-personal-reminders').component('reminderAddButton', {
	  templateUrl: 'hybrid-ng-personal-reminders/src/components/personal_reminder_add_button/personal_reminder_add_button.html',
	  controller: 'addReminderButtonController'
	}).controller('addReminderButtonController', function addReminderButtonController($state) {
	  this.goToCreateReminder = function () {
	    $state.go('my.newreminder');
	  };
	});

/***/ }),
/* 980 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(module) {"use strict";
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	/*!
	 * jQuery JavaScript Library v3.5.1
	 * https://jquery.com/
	 *
	 * Includes Sizzle.js
	 * https://sizzlejs.com/
	 *
	 * Copyright JS Foundation and other contributors
	 * Released under the MIT license
	 * https://jquery.org/license
	 *
	 * Date: 2020-05-04T22:49Z
	 */
	(function (global, factory) {
	
		"use strict";
	
		if (( false ? "undefined" : _typeof(module)) === "object" && _typeof(module.exports) === "object") {
	
			// For CommonJS and CommonJS-like environments where a proper `window`
			// is present, execute the factory and get jQuery.
			// For environments that do not have a `window` with a `document`
			// (such as Node.js), expose a factory as module.exports.
			// This accentuates the need for the creation of a real `window`.
			// e.g. var jQuery = require("jquery")(window);
			// See ticket #14549 for more info.
			module.exports = global.document ? factory(global, true) : function (w) {
				if (!w.document) {
					throw new Error("jQuery requires a window with a document");
				}
				return factory(w);
			};
		} else {
			factory(global);
		}
	
		// Pass this if window is not defined yet
	})(typeof window !== "undefined" ? window : undefined, function (window, noGlobal) {
	
		// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1
		// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode
		// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common
		// enough that all such attempts are guarded in a try block.
		"use strict";
	
		var arr = [];
	
		var getProto = Object.getPrototypeOf;
	
		var _slice = arr.slice;
	
		var flat = arr.flat ? function (array) {
			return arr.flat.call(array);
		} : function (array) {
			return arr.concat.apply([], array);
		};
	
		var push = arr.push;
	
		var indexOf = arr.indexOf;
	
		var class2type = {};
	
		var toString = class2type.toString;
	
		var hasOwn = class2type.hasOwnProperty;
	
		var fnToString = hasOwn.toString;
	
		var ObjectFunctionString = fnToString.call(Object);
	
		var support = {};
	
		var isFunction = function isFunction(obj) {
	
			// Support: Chrome <=57, Firefox <=52
			// In some browsers, typeof returns "function" for HTML <object> elements
			// (i.e., `typeof document.createElement( "object" ) === "function"`).
			// We don't want to classify *any* DOM node as a function.
			return typeof obj === "function" && typeof obj.nodeType !== "number";
		};
	
		var isWindow = function isWindow(obj) {
			return obj != null && obj === obj.window;
		};
	
		var document = window.document;
	
		var preservedScriptAttributes = {
			type: true,
			src: true,
			nonce: true,
			noModule: true
		};
	
		function DOMEval(code, node, doc) {
			doc = doc || document;
	
			var i,
			    val,
			    script = doc.createElement("script");
	
			script.text = code;
			if (node) {
				for (i in preservedScriptAttributes) {
	
					// Support: Firefox 64+, Edge 18+
					// Some browsers don't support the "nonce" property on scripts.
					// On the other hand, just using `getAttribute` is not enough as
					// the `nonce` attribute is reset to an empty string whenever it
					// becomes browsing-context connected.
					// See https://github.com/whatwg/html/issues/2369
					// See https://html.spec.whatwg.org/#nonce-attributes
					// The `node.getAttribute` check was added for the sake of
					// `jQuery.globalEval` so that it can fake a nonce-containing node
					// via an object.
					val = node[i] || node.getAttribute && node.getAttribute(i);
					if (val) {
						script.setAttribute(i, val);
					}
				}
			}
			doc.head.appendChild(script).parentNode.removeChild(script);
		}
	
		function toType(obj) {
			if (obj == null) {
				return obj + "";
			}
	
			// Support: Android <=2.3 only (functionish RegExp)
			return (typeof obj === "undefined" ? "undefined" : _typeof(obj)) === "object" || typeof obj === "function" ? class2type[toString.call(obj)] || "object" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
		}
		/* global Symbol */
		// Defining this global in .eslintrc.json would create a danger of using the global
		// unguarded in another place, it seems safer to define global only for this module
	
	
		var version = "3.5.1",
	
	
		// Define a local copy of jQuery
		jQuery = function jQuery(selector, context) {
	
			// The jQuery object is actually just the init constructor 'enhanced'
			// Need init if jQuery is called (just allow error to be thrown if not included)
			return new jQuery.fn.init(selector, context);
		};
	
		jQuery.fn = jQuery.prototype = {
	
			// The current version of jQuery being used
			jquery: version,
	
			constructor: jQuery,
	
			// The default length of a jQuery object is 0
			length: 0,
	
			toArray: function toArray() {
				return _slice.call(this);
			},
	
			// Get the Nth element in the matched element set OR
			// Get the whole matched element set as a clean array
			get: function get(num) {
	
				// Return all the elements in a clean array
				if (num == null) {
					return _slice.call(this);
				}
	
				// Return just the one element from the set
				return num < 0 ? this[num + this.length] : this[num];
			},
	
			// Take an array of elements and push it onto the stack
			// (returning the new matched element set)
			pushStack: function pushStack(elems) {
	
				// Build a new jQuery matched element set
				var ret = jQuery.merge(this.constructor(), elems);
	
				// Add the old object onto the stack (as a reference)
				ret.prevObject = this;
	
				// Return the newly-formed element set
				return ret;
			},
	
			// Execute a callback for every element in the matched set.
			each: function each(callback) {
				return jQuery.each(this, callback);
			},
	
			map: function map(callback) {
				return this.pushStack(jQuery.map(this, function (elem, i) {
					return callback.call(elem, i, elem);
				}));
			},
	
			slice: function slice() {
				return this.pushStack(_slice.apply(this, arguments));
			},
	
			first: function first() {
				return this.eq(0);
			},
	
			last: function last() {
				return this.eq(-1);
			},
	
			even: function even() {
				return this.pushStack(jQuery.grep(this, function (_elem, i) {
					return (i + 1) % 2;
				}));
			},
	
			odd: function odd() {
				return this.pushStack(jQuery.grep(this, function (_elem, i) {
					return i % 2;
				}));
			},
	
			eq: function eq(i) {
				var len = this.length,
				    j = +i + (i < 0 ? len : 0);
				return this.pushStack(j >= 0 && j < len ? [this[j]] : []);
			},
	
			end: function end() {
				return this.prevObject || this.constructor();
			},
	
			// For internal use only.
			// Behaves like an Array's method, not like a jQuery method.
			push: push,
			sort: arr.sort,
			splice: arr.splice
		};
	
		jQuery.extend = jQuery.fn.extend = function () {
			var options,
			    name,
			    src,
			    copy,
			    copyIsArray,
			    clone,
			    target = arguments[0] || {},
			    i = 1,
			    length = arguments.length,
			    deep = false;
	
			// Handle a deep copy situation
			if (typeof target === "boolean") {
				deep = target;
	
				// Skip the boolean and the target
				target = arguments[i] || {};
				i++;
			}
	
			// Handle case when target is a string or something (possible in deep copy)
			if ((typeof target === "undefined" ? "undefined" : _typeof(target)) !== "object" && !isFunction(target)) {
				target = {};
			}
	
			// Extend jQuery itself if only one argument is passed
			if (i === length) {
				target = this;
				i--;
			}
	
			for (; i < length; i++) {
	
				// Only deal with non-null/undefined values
				if ((options = arguments[i]) != null) {
	
					// Extend the base object
					for (name in options) {
						copy = options[name];
	
						// Prevent Object.prototype pollution
						// Prevent never-ending loop
						if (name === "__proto__" || target === copy) {
							continue;
						}
	
						// Recurse if we're merging plain objects or arrays
						if (deep && copy && (jQuery.isPlainObject(copy) || (copyIsArray = Array.isArray(copy)))) {
							src = target[name];
	
							// Ensure proper type for the source value
							if (copyIsArray && !Array.isArray(src)) {
								clone = [];
							} else if (!copyIsArray && !jQuery.isPlainObject(src)) {
								clone = {};
							} else {
								clone = src;
							}
							copyIsArray = false;
	
							// Never move original objects, clone them
							target[name] = jQuery.extend(deep, clone, copy);
	
							// Don't bring in undefined values
						} else if (copy !== undefined) {
							target[name] = copy;
						}
					}
				}
			}
	
			// Return the modified object
			return target;
		};
	
		jQuery.extend({
	
			// Unique for each copy of jQuery on the page
			expando: "jQuery" + (version + Math.random()).replace(/\D/g, ""),
	
			// Assume jQuery is ready without the ready module
			isReady: true,
	
			error: function error(msg) {
				throw new Error(msg);
			},
	
			noop: function noop() {},
	
			isPlainObject: function isPlainObject(obj) {
				var proto, Ctor;
	
				// Detect obvious negatives
				// Use toString instead of jQuery.type to catch host objects
				if (!obj || toString.call(obj) !== "[object Object]") {
					return false;
				}
	
				proto = getProto(obj);
	
				// Objects with no prototype (e.g., `Object.create( null )`) are plain
				if (!proto) {
					return true;
				}
	
				// Objects with prototype are plain iff they were constructed by a global Object function
				Ctor = hasOwn.call(proto, "constructor") && proto.constructor;
				return typeof Ctor === "function" && fnToString.call(Ctor) === ObjectFunctionString;
			},
	
			isEmptyObject: function isEmptyObject(obj) {
				var name;
	
				for (name in obj) {
					return false;
				}
				return true;
			},
	
			// Evaluates a script in a provided context; falls back to the global one
			// if not specified.
			globalEval: function globalEval(code, options, doc) {
				DOMEval(code, { nonce: options && options.nonce }, doc);
			},
	
			each: function each(obj, callback) {
				var length,
				    i = 0;
	
				if (isArrayLike(obj)) {
					length = obj.length;
					for (; i < length; i++) {
						if (callback.call(obj[i], i, obj[i]) === false) {
							break;
						}
					}
				} else {
					for (i in obj) {
						if (callback.call(obj[i], i, obj[i]) === false) {
							break;
						}
					}
				}
	
				return obj;
			},
	
			// results is for internal usage only
			makeArray: function makeArray(arr, results) {
				var ret = results || [];
	
				if (arr != null) {
					if (isArrayLike(Object(arr))) {
						jQuery.merge(ret, typeof arr === "string" ? [arr] : arr);
					} else {
						push.call(ret, arr);
					}
				}
	
				return ret;
			},
	
			inArray: function inArray(elem, arr, i) {
				return arr == null ? -1 : indexOf.call(arr, elem, i);
			},
	
			// Support: Android <=4.0 only, PhantomJS 1 only
			// push.apply(_, arraylike) throws on ancient WebKit
			merge: function merge(first, second) {
				var len = +second.length,
				    j = 0,
				    i = first.length;
	
				for (; j < len; j++) {
					first[i++] = second[j];
				}
	
				first.length = i;
	
				return first;
			},
	
			grep: function grep(elems, callback, invert) {
				var callbackInverse,
				    matches = [],
				    i = 0,
				    length = elems.length,
				    callbackExpect = !invert;
	
				// Go through the array, only saving the items
				// that pass the validator function
				for (; i < length; i++) {
					callbackInverse = !callback(elems[i], i);
					if (callbackInverse !== callbackExpect) {
						matches.push(elems[i]);
					}
				}
	
				return matches;
			},
	
			// arg is for internal usage only
			map: function map(elems, callback, arg) {
				var length,
				    value,
				    i = 0,
				    ret = [];
	
				// Go through the array, translating each of the items to their new values
				if (isArrayLike(elems)) {
					length = elems.length;
					for (; i < length; i++) {
						value = callback(elems[i], i, arg);
	
						if (value != null) {
							ret.push(value);
						}
					}
	
					// Go through every key on the object,
				} else {
					for (i in elems) {
						value = callback(elems[i], i, arg);
	
						if (value != null) {
							ret.push(value);
						}
					}
				}
	
				// Flatten any nested arrays
				return flat(ret);
			},
	
			// A global GUID counter for objects
			guid: 1,
	
			// jQuery.support is not used in Core but other projects attach their
			// properties to it so it needs to exist.
			support: support
		});
	
		if (typeof Symbol === "function") {
			jQuery.fn[Symbol.iterator] = arr[Symbol.iterator];
		}
	
		// Populate the class2type map
		jQuery.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), function (_i, name) {
			class2type["[object " + name + "]"] = name.toLowerCase();
		});
	
		function isArrayLike(obj) {
	
			// Support: real iOS 8.2 only (not reproducible in simulator)
			// `in` check used to prevent JIT error (gh-2145)
			// hasOwn isn't used here due to false negatives
			// regarding Nodelist length in IE
			var length = !!obj && "length" in obj && obj.length,
			    type = toType(obj);
	
			if (isFunction(obj) || isWindow(obj)) {
				return false;
			}
	
			return type === "array" || length === 0 || typeof length === "number" && length > 0 && length - 1 in obj;
		}
		var Sizzle =
		/*!
	  * Sizzle CSS Selector Engine v2.3.5
	  * https://sizzlejs.com/
	  *
	  * Copyright JS Foundation and other contributors
	  * Released under the MIT license
	  * https://js.foundation/
	  *
	  * Date: 2020-03-14
	  */
		function (window) {
			var i,
			    support,
			    Expr,
			    getText,
			    isXML,
			    tokenize,
			    compile,
			    select,
			    outermostContext,
			    sortInput,
			    hasDuplicate,
	
	
			// Local document vars
			setDocument,
			    document,
			    docElem,
			    documentIsHTML,
			    rbuggyQSA,
			    rbuggyMatches,
			    matches,
			    contains,
	
	
			// Instance-specific data
			expando = "sizzle" + 1 * new Date(),
			    preferredDoc = window.document,
			    dirruns = 0,
			    done = 0,
			    classCache = createCache(),
			    tokenCache = createCache(),
			    compilerCache = createCache(),
			    nonnativeSelectorCache = createCache(),
			    sortOrder = function sortOrder(a, b) {
				if (a === b) {
					hasDuplicate = true;
				}
				return 0;
			},
	
	
			// Instance methods
			hasOwn = {}.hasOwnProperty,
			    arr = [],
			    pop = arr.pop,
			    pushNative = arr.push,
			    push = arr.push,
			    slice = arr.slice,
	
	
			// Use a stripped-down indexOf as it's faster than native
			// https://jsperf.com/thor-indexof-vs-for/5
			indexOf = function indexOf(list, elem) {
				var i = 0,
				    len = list.length;
				for (; i < len; i++) {
					if (list[i] === elem) {
						return i;
					}
				}
				return -1;
			},
			    booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|" + "ismap|loop|multiple|open|readonly|required|scoped",
	
	
			// Regular expressions
	
			// http://www.w3.org/TR/css3-selectors/#whitespace
			whitespace = "[\\x20\\t\\r\\n\\f]",
	
	
			// https://www.w3.org/TR/css-syntax-3/#ident-token-diagram
			identifier = "(?:\\\\[\\da-fA-F]{1,6}" + whitespace + "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",
	
	
			// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
			attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
	
			// Operator (capture 2)
			"*([*^$|!~]?=)" + whitespace +
	
			// "Attribute values must be CSS identifiers [capture 5]
			// or strings [capture 3 or capture 4]"
			"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace + "*\\]",
			    pseudos = ":(" + identifier + ")(?:\\((" +
	
			// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
			// 1. quoted (capture 3; capture 4 or capture 5)
			"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
	
			// 2. simple (capture 6)
			"((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
	
			// 3. anything else (capture 2)
			".*" + ")\\)|)",
	
	
			// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
			rwhitespace = new RegExp(whitespace + "+", "g"),
			    rtrim = new RegExp("^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g"),
			    rcomma = new RegExp("^" + whitespace + "*," + whitespace + "*"),
			    rcombinators = new RegExp("^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*"),
			    rdescend = new RegExp(whitespace + "|>"),
			    rpseudo = new RegExp(pseudos),
			    ridentifier = new RegExp("^" + identifier + "$"),
			    matchExpr = {
				"ID": new RegExp("^#(" + identifier + ")"),
				"CLASS": new RegExp("^\\.(" + identifier + ")"),
				"TAG": new RegExp("^(" + identifier + "|[*])"),
				"ATTR": new RegExp("^" + attributes),
				"PSEUDO": new RegExp("^" + pseudos),
				"CHILD": new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i"),
				"bool": new RegExp("^(?:" + booleans + ")$", "i"),
	
				// For use in libraries implementing .is()
				// We use this for POS matching in `select`
				"needsContext": new RegExp("^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i")
			},
			    rhtml = /HTML$/i,
			    rinputs = /^(?:input|select|textarea|button)$/i,
			    rheader = /^h\d$/i,
			    rnative = /^[^{]+\{\s*\[native \w/,
	
	
			// Easily-parseable/retrievable ID or TAG or CLASS selectors
			rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
			    rsibling = /[+~]/,
	
	
			// CSS escapes
			// http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
			runescape = new RegExp("\\\\[\\da-fA-F]{1,6}" + whitespace + "?|\\\\([^\\r\\n\\f])", "g"),
			    funescape = function funescape(escape, nonHex) {
				var high = "0x" + escape.slice(1) - 0x10000;
	
				return nonHex ?
	
				// Strip the backslash prefix from a non-hex escape sequence
				nonHex :
	
				// Replace a hexadecimal escape sequence with the encoded Unicode code point
				// Support: IE <=11+
				// For values outside the Basic Multilingual Plane (BMP), manually construct a
				// surrogate pair
				high < 0 ? String.fromCharCode(high + 0x10000) : String.fromCharCode(high >> 10 | 0xD800, high & 0x3FF | 0xDC00);
			},
	
	
			// CSS string/identifier serialization
			// https://drafts.csswg.org/cssom/#common-serializing-idioms
			rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
			    fcssescape = function fcssescape(ch, asCodePoint) {
				if (asCodePoint) {
	
					// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
					if (ch === "\0") {
						return "\uFFFD";
					}
	
					// Control characters and (dependent upon position) numbers get escaped as code points
					return ch.slice(0, -1) + "\\" + ch.charCodeAt(ch.length - 1).toString(16) + " ";
				}
	
				// Other potentially-special ASCII characters get backslash-escaped
				return "\\" + ch;
			},
	
	
			// Used for iframes
			// See setDocument()
			// Removing the function wrapper causes a "Permission Denied"
			// error in IE
			unloadHandler = function unloadHandler() {
				setDocument();
			},
			    inDisabledFieldset = addCombinator(function (elem) {
				return elem.disabled === true && elem.nodeName.toLowerCase() === "fieldset";
			}, { dir: "parentNode", next: "legend" });
	
			// Optimize for push.apply( _, NodeList )
			try {
				push.apply(arr = slice.call(preferredDoc.childNodes), preferredDoc.childNodes);
	
				// Support: Android<4.0
				// Detect silently failing push.apply
				// eslint-disable-next-line no-unused-expressions
				arr[preferredDoc.childNodes.length].nodeType;
			} catch (e) {
				push = { apply: arr.length ?
	
					// Leverage slice if possible
					function (target, els) {
						pushNative.apply(target, slice.call(els));
					} :
	
					// Support: IE<9
					// Otherwise append directly
					function (target, els) {
						var j = target.length,
						    i = 0;
	
						// Can't trust NodeList.length
						while (target[j++] = els[i++]) {}
						target.length = j - 1;
					}
				};
			}
	
			function Sizzle(selector, context, results, seed) {
				var m,
				    i,
				    elem,
				    nid,
				    match,
				    groups,
				    newSelector,
				    newContext = context && context.ownerDocument,
	
	
				// nodeType defaults to 9, since context defaults to document
				nodeType = context ? context.nodeType : 9;
	
				results = results || [];
	
				// Return early from calls with invalid selector or context
				if (typeof selector !== "string" || !selector || nodeType !== 1 && nodeType !== 9 && nodeType !== 11) {
	
					return results;
				}
	
				// Try to shortcut find operations (as opposed to filters) in HTML documents
				if (!seed) {
					setDocument(context);
					context = context || document;
	
					if (documentIsHTML) {
	
						// If the selector is sufficiently simple, try using a "get*By*" DOM method
						// (excepting DocumentFragment context, where the methods don't exist)
						if (nodeType !== 11 && (match = rquickExpr.exec(selector))) {
	
							// ID selector
							if (m = match[1]) {
	
								// Document context
								if (nodeType === 9) {
									if (elem = context.getElementById(m)) {
	
										// Support: IE, Opera, Webkit
										// TODO: identify versions
										// getElementById can match elements by name instead of ID
										if (elem.id === m) {
											results.push(elem);
											return results;
										}
									} else {
										return results;
									}
	
									// Element context
								} else {
	
									// Support: IE, Opera, Webkit
									// TODO: identify versions
									// getElementById can match elements by name instead of ID
									if (newContext && (elem = newContext.getElementById(m)) && contains(context, elem) && elem.id === m) {
	
										results.push(elem);
										return results;
									}
								}
	
								// Type selector
							} else if (match[2]) {
								push.apply(results, context.getElementsByTagName(selector));
								return results;
	
								// Class selector
							} else if ((m = match[3]) && support.getElementsByClassName && context.getElementsByClassName) {
	
								push.apply(results, context.getElementsByClassName(m));
								return results;
							}
						}
	
						// Take advantage of querySelectorAll
						if (support.qsa && !nonnativeSelectorCache[selector + " "] && (!rbuggyQSA || !rbuggyQSA.test(selector)) && (
	
						// Support: IE 8 only
						// Exclude object elements
						nodeType !== 1 || context.nodeName.toLowerCase() !== "object")) {
	
							newSelector = selector;
							newContext = context;
	
							// qSA considers elements outside a scoping root when evaluating child or
							// descendant combinators, which is not what we want.
							// In such cases, we work around the behavior by prefixing every selector in the
							// list with an ID selector referencing the scope context.
							// The technique has to be used as well when a leading combinator is used
							// as such selectors are not recognized by querySelectorAll.
							// Thanks to Andrew Dupont for this technique.
							if (nodeType === 1 && (rdescend.test(selector) || rcombinators.test(selector))) {
	
								// Expand context for sibling selectors
								newContext = rsibling.test(selector) && testContext(context.parentNode) || context;
	
								// We can use :scope instead of the ID hack if the browser
								// supports it & if we're not changing the context.
								if (newContext !== context || !support.scope) {
	
									// Capture the context ID, setting it first if necessary
									if (nid = context.getAttribute("id")) {
										nid = nid.replace(rcssescape, fcssescape);
									} else {
										context.setAttribute("id", nid = expando);
									}
								}
	
								// Prefix every selector in the list
								groups = tokenize(selector);
								i = groups.length;
								while (i--) {
									groups[i] = (nid ? "#" + nid : ":scope") + " " + toSelector(groups[i]);
								}
								newSelector = groups.join(",");
							}
	
							try {
								push.apply(results, newContext.querySelectorAll(newSelector));
								return results;
							} catch (qsaError) {
								nonnativeSelectorCache(selector, true);
							} finally {
								if (nid === expando) {
									context.removeAttribute("id");
								}
							}
						}
					}
				}
	
				// All others
				return select(selector.replace(rtrim, "$1"), context, results, seed);
			}
	
			/**
	   * Create key-value caches of limited size
	   * @returns {function(string, object)} Returns the Object data after storing it on itself with
	   *	property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
	   *	deleting the oldest entry
	   */
			function createCache() {
				var keys = [];
	
				function cache(key, value) {
	
					// Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
					if (keys.push(key + " ") > Expr.cacheLength) {
	
						// Only keep the most recent entries
						delete cache[keys.shift()];
					}
					return cache[key + " "] = value;
				}
				return cache;
			}
	
			/**
	   * Mark a function for special use by Sizzle
	   * @param {Function} fn The function to mark
	   */
			function markFunction(fn) {
				fn[expando] = true;
				return fn;
			}
	
			/**
	   * Support testing using an element
	   * @param {Function} fn Passed the created element and returns a boolean result
	   */
			function assert(fn) {
				var el = document.createElement("fieldset");
	
				try {
					return !!fn(el);
				} catch (e) {
					return false;
				} finally {
	
					// Remove from its parent by default
					if (el.parentNode) {
						el.parentNode.removeChild(el);
					}
	
					// release memory in IE
					el = null;
				}
			}
	
			/**
	   * Adds the same handler for all of the specified attrs
	   * @param {String} attrs Pipe-separated list of attributes
	   * @param {Function} handler The method that will be applied
	   */
			function addHandle(attrs, handler) {
				var arr = attrs.split("|"),
				    i = arr.length;
	
				while (i--) {
					Expr.attrHandle[arr[i]] = handler;
				}
			}
	
			/**
	   * Checks document order of two siblings
	   * @param {Element} a
	   * @param {Element} b
	   * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
	   */
			function siblingCheck(a, b) {
				var cur = b && a,
				    diff = cur && a.nodeType === 1 && b.nodeType === 1 && a.sourceIndex - b.sourceIndex;
	
				// Use IE sourceIndex if available on both nodes
				if (diff) {
					return diff;
				}
	
				// Check if b follows a
				if (cur) {
					while (cur = cur.nextSibling) {
						if (cur === b) {
							return -1;
						}
					}
				}
	
				return a ? 1 : -1;
			}
	
			/**
	   * Returns a function to use in pseudos for input types
	   * @param {String} type
	   */
			function createInputPseudo(type) {
				return function (elem) {
					var name = elem.nodeName.toLowerCase();
					return name === "input" && elem.type === type;
				};
			}
	
			/**
	   * Returns a function to use in pseudos for buttons
	   * @param {String} type
	   */
			function createButtonPseudo(type) {
				return function (elem) {
					var name = elem.nodeName.toLowerCase();
					return (name === "input" || name === "button") && elem.type === type;
				};
			}
	
			/**
	   * Returns a function to use in pseudos for :enabled/:disabled
	   * @param {Boolean} disabled true for :disabled; false for :enabled
	   */
			function createDisabledPseudo(disabled) {
	
				// Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable
				return function (elem) {
	
					// Only certain elements can match :enabled or :disabled
					// https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled
					// https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled
					if ("form" in elem) {
	
						// Check for inherited disabledness on relevant non-disabled elements:
						// * listed form-associated elements in a disabled fieldset
						//   https://html.spec.whatwg.org/multipage/forms.html#category-listed
						//   https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled
						// * option elements in a disabled optgroup
						//   https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled
						// All such elements have a "form" property.
						if (elem.parentNode && elem.disabled === false) {
	
							// Option elements defer to a parent optgroup if present
							if ("label" in elem) {
								if ("label" in elem.parentNode) {
									return elem.parentNode.disabled === disabled;
								} else {
									return elem.disabled === disabled;
								}
							}
	
							// Support: IE 6 - 11
							// Use the isDisabled shortcut property to check for disabled fieldset ancestors
							return elem.isDisabled === disabled ||
	
							// Where there is no isDisabled, check manually
							/* jshint -W018 */
							elem.isDisabled !== !disabled && inDisabledFieldset(elem) === disabled;
						}
	
						return elem.disabled === disabled;
	
						// Try to winnow out elements that can't be disabled before trusting the disabled property.
						// Some victims get caught in our net (label, legend, menu, track), but it shouldn't
						// even exist on them, let alone have a boolean value.
					} else if ("label" in elem) {
						return elem.disabled === disabled;
					}
	
					// Remaining elements are neither :enabled nor :disabled
					return false;
				};
			}
	
			/**
	   * Returns a function to use in pseudos for positionals
	   * @param {Function} fn
	   */
			function createPositionalPseudo(fn) {
				return markFunction(function (argument) {
					argument = +argument;
					return markFunction(function (seed, matches) {
						var j,
						    matchIndexes = fn([], seed.length, argument),
						    i = matchIndexes.length;
	
						// Match elements found at the specified indexes
						while (i--) {
							if (seed[j = matchIndexes[i]]) {
								seed[j] = !(matches[j] = seed[j]);
							}
						}
					});
				});
			}
	
			/**
	   * Checks a node for validity as a Sizzle context
	   * @param {Element|Object=} context
	   * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
	   */
			function testContext(context) {
				return context && typeof context.getElementsByTagName !== "undefined" && context;
			}
	
			// Expose support vars for convenience
			support = Sizzle.support = {};
	
			/**
	   * Detects XML nodes
	   * @param {Element|Object} elem An element or a document
	   * @returns {Boolean} True iff elem is a non-HTML XML node
	   */
			isXML = Sizzle.isXML = function (elem) {
				var namespace = elem.namespaceURI,
				    docElem = (elem.ownerDocument || elem).documentElement;
	
				// Support: IE <=8
				// Assume HTML when documentElement doesn't yet exist, such as inside loading iframes
				// https://bugs.jquery.com/ticket/4833
				return !rhtml.test(namespace || docElem && docElem.nodeName || "HTML");
			};
	
			/**
	   * Sets document-related variables once based on the current document
	   * @param {Element|Object} [doc] An element or document object to use to set the document
	   * @returns {Object} Returns the current document
	   */
			setDocument = Sizzle.setDocument = function (node) {
				var hasCompare,
				    subWindow,
				    doc = node ? node.ownerDocument || node : preferredDoc;
	
				// Return early if doc is invalid or already selected
				// Support: IE 11+, Edge 17 - 18+
				// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
				// two documents; shallow comparisons work.
				// eslint-disable-next-line eqeqeq
				if (doc == document || doc.nodeType !== 9 || !doc.documentElement) {
					return document;
				}
	
				// Update global variables
				document = doc;
				docElem = document.documentElement;
				documentIsHTML = !isXML(document);
	
				// Support: IE 9 - 11+, Edge 12 - 18+
				// Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
				// Support: IE 11+, Edge 17 - 18+
				// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
				// two documents; shallow comparisons work.
				// eslint-disable-next-line eqeqeq
				if (preferredDoc != document && (subWindow = document.defaultView) && subWindow.top !== subWindow) {
	
					// Support: IE 11, Edge
					if (subWindow.addEventListener) {
						subWindow.addEventListener("unload", unloadHandler, false);
	
						// Support: IE 9 - 10 only
					} else if (subWindow.attachEvent) {
						subWindow.attachEvent("onunload", unloadHandler);
					}
				}
	
				// Support: IE 8 - 11+, Edge 12 - 18+, Chrome <=16 - 25 only, Firefox <=3.6 - 31 only,
				// Safari 4 - 5 only, Opera <=11.6 - 12.x only
				// IE/Edge & older browsers don't support the :scope pseudo-class.
				// Support: Safari 6.0 only
				// Safari 6.0 supports :scope but it's an alias of :root there.
				support.scope = assert(function (el) {
					docElem.appendChild(el).appendChild(document.createElement("div"));
					return typeof el.querySelectorAll !== "undefined" && !el.querySelectorAll(":scope fieldset div").length;
				});
	
				/* Attributes
	   ---------------------------------------------------------------------- */
	
				// Support: IE<8
				// Verify that getAttribute really returns attributes and not properties
				// (excepting IE8 booleans)
				support.attributes = assert(function (el) {
					el.className = "i";
					return !el.getAttribute("className");
				});
	
				/* getElement(s)By*
	   ---------------------------------------------------------------------- */
	
				// Check if getElementsByTagName("*") returns only elements
				support.getElementsByTagName = assert(function (el) {
					el.appendChild(document.createComment(""));
					return !el.getElementsByTagName("*").length;
				});
	
				// Support: IE<9
				support.getElementsByClassName = rnative.test(document.getElementsByClassName);
	
				// Support: IE<10
				// Check if getElementById returns elements by name
				// The broken getElementById methods don't pick up programmatically-set names,
				// so use a roundabout getElementsByName test
				support.getById = assert(function (el) {
					docElem.appendChild(el).id = expando;
					return !document.getElementsByName || !document.getElementsByName(expando).length;
				});
	
				// ID filter and find
				if (support.getById) {
					Expr.filter["ID"] = function (id) {
						var attrId = id.replace(runescape, funescape);
						return function (elem) {
							return elem.getAttribute("id") === attrId;
						};
					};
					Expr.find["ID"] = function (id, context) {
						if (typeof context.getElementById !== "undefined" && documentIsHTML) {
							var elem = context.getElementById(id);
							return elem ? [elem] : [];
						}
					};
				} else {
					Expr.filter["ID"] = function (id) {
						var attrId = id.replace(runescape, funescape);
						return function (elem) {
							var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
							return node && node.value === attrId;
						};
					};
	
					// Support: IE 6 - 7 only
					// getElementById is not reliable as a find shortcut
					Expr.find["ID"] = function (id, context) {
						if (typeof context.getElementById !== "undefined" && documentIsHTML) {
							var node,
							    i,
							    elems,
							    elem = context.getElementById(id);
	
							if (elem) {
	
								// Verify the id attribute
								node = elem.getAttributeNode("id");
								if (node && node.value === id) {
									return [elem];
								}
	
								// Fall back on getElementsByName
								elems = context.getElementsByName(id);
								i = 0;
								while (elem = elems[i++]) {
									node = elem.getAttributeNode("id");
									if (node && node.value === id) {
										return [elem];
									}
								}
							}
	
							return [];
						}
					};
				}
	
				// Tag
				Expr.find["TAG"] = support.getElementsByTagName ? function (tag, context) {
					if (typeof context.getElementsByTagName !== "undefined") {
						return context.getElementsByTagName(tag);
	
						// DocumentFragment nodes don't have gEBTN
					} else if (support.qsa) {
						return context.querySelectorAll(tag);
					}
				} : function (tag, context) {
					var elem,
					    tmp = [],
					    i = 0,
	
	
					// By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too
					results = context.getElementsByTagName(tag);
	
					// Filter out possible comments
					if (tag === "*") {
						while (elem = results[i++]) {
							if (elem.nodeType === 1) {
								tmp.push(elem);
							}
						}
	
						return tmp;
					}
					return results;
				};
	
				// Class
				Expr.find["CLASS"] = support.getElementsByClassName && function (className, context) {
					if (typeof context.getElementsByClassName !== "undefined" && documentIsHTML) {
						return context.getElementsByClassName(className);
					}
				};
	
				/* QSA/matchesSelector
	   ---------------------------------------------------------------------- */
	
				// QSA and matchesSelector support
	
				// matchesSelector(:active) reports false when true (IE9/Opera 11.5)
				rbuggyMatches = [];
	
				// qSa(:focus) reports false when true (Chrome 21)
				// We allow this because of a bug in IE8/9 that throws an error
				// whenever `document.activeElement` is accessed on an iframe
				// So, we allow :focus to pass through QSA all the time to avoid the IE error
				// See https://bugs.jquery.com/ticket/13378
				rbuggyQSA = [];
	
				if (support.qsa = rnative.test(document.querySelectorAll)) {
	
					// Build QSA regex
					// Regex strategy adopted from Diego Perini
					assert(function (el) {
	
						var input;
	
						// Select is set to empty string on purpose
						// This is to test IE's treatment of not explicitly
						// setting a boolean content attribute,
						// since its presence should be enough
						// https://bugs.jquery.com/ticket/12359
						docElem.appendChild(el).innerHTML = "<a id='" + expando + "'></a>" + "<select id='" + expando + "-\r\\' msallowcapture=''>" + "<option selected=''></option></select>";
	
						// Support: IE8, Opera 11-12.16
						// Nothing should be selected when empty strings follow ^= or $= or *=
						// The test attribute must be unknown in Opera but "safe" for WinRT
						// https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
						if (el.querySelectorAll("[msallowcapture^='']").length) {
							rbuggyQSA.push("[*^$]=" + whitespace + "*(?:''|\"\")");
						}
	
						// Support: IE8
						// Boolean attributes and "value" are not treated correctly
						if (!el.querySelectorAll("[selected]").length) {
							rbuggyQSA.push("\\[" + whitespace + "*(?:value|" + booleans + ")");
						}
	
						// Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+
						if (!el.querySelectorAll("[id~=" + expando + "-]").length) {
							rbuggyQSA.push("~=");
						}
	
						// Support: IE 11+, Edge 15 - 18+
						// IE 11/Edge don't find elements on a `[name='']` query in some cases.
						// Adding a temporary attribute to the document before the selection works
						// around the issue.
						// Interestingly, IE 10 & older don't seem to have the issue.
						input = document.createElement("input");
						input.setAttribute("name", "");
						el.appendChild(input);
						if (!el.querySelectorAll("[name='']").length) {
							rbuggyQSA.push("\\[" + whitespace + "*name" + whitespace + "*=" + whitespace + "*(?:''|\"\")");
						}
	
						// Webkit/Opera - :checked should return selected option elements
						// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
						// IE8 throws error here and will not see later tests
						if (!el.querySelectorAll(":checked").length) {
							rbuggyQSA.push(":checked");
						}
	
						// Support: Safari 8+, iOS 8+
						// https://bugs.webkit.org/show_bug.cgi?id=136851
						// In-page `selector#id sibling-combinator selector` fails
						if (!el.querySelectorAll("a#" + expando + "+*").length) {
							rbuggyQSA.push(".#.+[+~]");
						}
	
						// Support: Firefox <=3.6 - 5 only
						// Old Firefox doesn't throw on a badly-escaped identifier.
						el.querySelectorAll("\\\f");
						rbuggyQSA.push("[\\r\\n\\f]");
					});
	
					assert(function (el) {
						el.innerHTML = "<a href='' disabled='disabled'></a>" + "<select disabled='disabled'><option/></select>";
	
						// Support: Windows 8 Native Apps
						// The type and name attributes are restricted during .innerHTML assignment
						var input = document.createElement("input");
						input.setAttribute("type", "hidden");
						el.appendChild(input).setAttribute("name", "D");
	
						// Support: IE8
						// Enforce case-sensitivity of name attribute
						if (el.querySelectorAll("[name=d]").length) {
							rbuggyQSA.push("name" + whitespace + "*[*^$|!~]?=");
						}
	
						// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
						// IE8 throws error here and will not see later tests
						if (el.querySelectorAll(":enabled").length !== 2) {
							rbuggyQSA.push(":enabled", ":disabled");
						}
	
						// Support: IE9-11+
						// IE's :disabled selector does not pick up the children of disabled fieldsets
						docElem.appendChild(el).disabled = true;
						if (el.querySelectorAll(":disabled").length !== 2) {
							rbuggyQSA.push(":enabled", ":disabled");
						}
	
						// Support: Opera 10 - 11 only
						// Opera 10-11 does not throw on post-comma invalid pseudos
						el.querySelectorAll("*,:x");
						rbuggyQSA.push(",.*:");
					});
				}
	
				if (support.matchesSelector = rnative.test(matches = docElem.matches || docElem.webkitMatchesSelector || docElem.mozMatchesSelector || docElem.oMatchesSelector || docElem.msMatchesSelector)) {
	
					assert(function (el) {
	
						// Check to see if it's possible to do matchesSelector
						// on a disconnected node (IE 9)
						support.disconnectedMatch = matches.call(el, "*");
	
						// This should fail with an exception
						// Gecko does not error, returns false instead
						matches.call(el, "[s!='']:x");
						rbuggyMatches.push("!=", pseudos);
					});
				}
	
				rbuggyQSA = rbuggyQSA.length && new RegExp(rbuggyQSA.join("|"));
				rbuggyMatches = rbuggyMatches.length && new RegExp(rbuggyMatches.join("|"));
	
				/* Contains
	   ---------------------------------------------------------------------- */
				hasCompare = rnative.test(docElem.compareDocumentPosition);
	
				// Element contains another
				// Purposefully self-exclusive
				// As in, an element does not contain itself
				contains = hasCompare || rnative.test(docElem.contains) ? function (a, b) {
					var adown = a.nodeType === 9 ? a.documentElement : a,
					    bup = b && b.parentNode;
					return a === bup || !!(bup && bup.nodeType === 1 && (adown.contains ? adown.contains(bup) : a.compareDocumentPosition && a.compareDocumentPosition(bup) & 16));
				} : function (a, b) {
					if (b) {
						while (b = b.parentNode) {
							if (b === a) {
								return true;
							}
						}
					}
					return false;
				};
	
				/* Sorting
	   ---------------------------------------------------------------------- */
	
				// Document order sorting
				sortOrder = hasCompare ? function (a, b) {
	
					// Flag for duplicate removal
					if (a === b) {
						hasDuplicate = true;
						return 0;
					}
	
					// Sort on method existence if only one input has compareDocumentPosition
					var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
					if (compare) {
						return compare;
					}
	
					// Calculate position if both inputs belong to the same document
					// Support: IE 11+, Edge 17 - 18+
					// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
					// two documents; shallow comparisons work.
					// eslint-disable-next-line eqeqeq
					compare = (a.ownerDocument || a) == (b.ownerDocument || b) ? a.compareDocumentPosition(b) :
	
					// Otherwise we know they are disconnected
					1;
	
					// Disconnected nodes
					if (compare & 1 || !support.sortDetached && b.compareDocumentPosition(a) === compare) {
	
						// Choose the first element that is related to our preferred document
						// Support: IE 11+, Edge 17 - 18+
						// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
						// two documents; shallow comparisons work.
						// eslint-disable-next-line eqeqeq
						if (a == document || a.ownerDocument == preferredDoc && contains(preferredDoc, a)) {
							return -1;
						}
	
						// Support: IE 11+, Edge 17 - 18+
						// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
						// two documents; shallow comparisons work.
						// eslint-disable-next-line eqeqeq
						if (b == document || b.ownerDocument == preferredDoc && contains(preferredDoc, b)) {
							return 1;
						}
	
						// Maintain original order
						return sortInput ? indexOf(sortInput, a) - indexOf(sortInput, b) : 0;
					}
	
					return compare & 4 ? -1 : 1;
				} : function (a, b) {
	
					// Exit early if the nodes are identical
					if (a === b) {
						hasDuplicate = true;
						return 0;
					}
	
					var cur,
					    i = 0,
					    aup = a.parentNode,
					    bup = b.parentNode,
					    ap = [a],
					    bp = [b];
	
					// Parentless nodes are either documents or disconnected
					if (!aup || !bup) {
	
						// Support: IE 11+, Edge 17 - 18+
						// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
						// two documents; shallow comparisons work.
						/* eslint-disable eqeqeq */
						return a == document ? -1 : b == document ? 1 :
						/* eslint-enable eqeqeq */
						aup ? -1 : bup ? 1 : sortInput ? indexOf(sortInput, a) - indexOf(sortInput, b) : 0;
	
						// If the nodes are siblings, we can do a quick check
					} else if (aup === bup) {
						return siblingCheck(a, b);
					}
	
					// Otherwise we need full lists of their ancestors for comparison
					cur = a;
					while (cur = cur.parentNode) {
						ap.unshift(cur);
					}
					cur = b;
					while (cur = cur.parentNode) {
						bp.unshift(cur);
					}
	
					// Walk down the tree looking for a discrepancy
					while (ap[i] === bp[i]) {
						i++;
					}
	
					return i ?
	
					// Do a sibling check if the nodes have a common ancestor
					siblingCheck(ap[i], bp[i]) :
	
					// Otherwise nodes in our document sort first
					// Support: IE 11+, Edge 17 - 18+
					// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
					// two documents; shallow comparisons work.
					/* eslint-disable eqeqeq */
					ap[i] == preferredDoc ? -1 : bp[i] == preferredDoc ? 1 :
					/* eslint-enable eqeqeq */
					0;
				};
	
				return document;
			};
	
			Sizzle.matches = function (expr, elements) {
				return Sizzle(expr, null, null, elements);
			};
	
			Sizzle.matchesSelector = function (elem, expr) {
				setDocument(elem);
	
				if (support.matchesSelector && documentIsHTML && !nonnativeSelectorCache[expr + " "] && (!rbuggyMatches || !rbuggyMatches.test(expr)) && (!rbuggyQSA || !rbuggyQSA.test(expr))) {
	
					try {
						var ret = matches.call(elem, expr);
	
						// IE 9's matchesSelector returns false on disconnected nodes
						if (ret || support.disconnectedMatch ||
	
						// As well, disconnected nodes are said to be in a document
						// fragment in IE 9
						elem.document && elem.document.nodeType !== 11) {
							return ret;
						}
					} catch (e) {
						nonnativeSelectorCache(expr, true);
					}
				}
	
				return Sizzle(expr, document, null, [elem]).length > 0;
			};
	
			Sizzle.contains = function (context, elem) {
	
				// Set document vars if needed
				// Support: IE 11+, Edge 17 - 18+
				// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
				// two documents; shallow comparisons work.
				// eslint-disable-next-line eqeqeq
				if ((context.ownerDocument || context) != document) {
					setDocument(context);
				}
				return contains(context, elem);
			};
	
			Sizzle.attr = function (elem, name) {
	
				// Set document vars if needed
				// Support: IE 11+, Edge 17 - 18+
				// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
				// two documents; shallow comparisons work.
				// eslint-disable-next-line eqeqeq
				if ((elem.ownerDocument || elem) != document) {
					setDocument(elem);
				}
	
				var fn = Expr.attrHandle[name.toLowerCase()],
	
	
				// Don't get fooled by Object.prototype properties (jQuery #13807)
				val = fn && hasOwn.call(Expr.attrHandle, name.toLowerCase()) ? fn(elem, name, !documentIsHTML) : undefined;
	
				return val !== undefined ? val : support.attributes || !documentIsHTML ? elem.getAttribute(name) : (val = elem.getAttributeNode(name)) && val.specified ? val.value : null;
			};
	
			Sizzle.escape = function (sel) {
				return (sel + "").replace(rcssescape, fcssescape);
			};
	
			Sizzle.error = function (msg) {
				throw new Error("Syntax error, unrecognized expression: " + msg);
			};
	
			/**
	   * Document sorting and removing duplicates
	   * @param {ArrayLike} results
	   */
			Sizzle.uniqueSort = function (results) {
				var elem,
				    duplicates = [],
				    j = 0,
				    i = 0;
	
				// Unless we *know* we can detect duplicates, assume their presence
				hasDuplicate = !support.detectDuplicates;
				sortInput = !support.sortStable && results.slice(0);
				results.sort(sortOrder);
	
				if (hasDuplicate) {
					while (elem = results[i++]) {
						if (elem === results[i]) {
							j = duplicates.push(i);
						}
					}
					while (j--) {
						results.splice(duplicates[j], 1);
					}
				}
	
				// Clear input after sorting to release objects
				// See https://github.com/jquery/sizzle/pull/225
				sortInput = null;
	
				return results;
			};
	
			/**
	   * Utility function for retrieving the text value of an array of DOM nodes
	   * @param {Array|Element} elem
	   */
			getText = Sizzle.getText = function (elem) {
				var node,
				    ret = "",
				    i = 0,
				    nodeType = elem.nodeType;
	
				if (!nodeType) {
	
					// If no nodeType, this is expected to be an array
					while (node = elem[i++]) {
	
						// Do not traverse comment nodes
						ret += getText(node);
					}
				} else if (nodeType === 1 || nodeType === 9 || nodeType === 11) {
	
					// Use textContent for elements
					// innerText usage removed for consistency of new lines (jQuery #11153)
					if (typeof elem.textContent === "string") {
						return elem.textContent;
					} else {
	
						// Traverse its children
						for (elem = elem.firstChild; elem; elem = elem.nextSibling) {
							ret += getText(elem);
						}
					}
				} else if (nodeType === 3 || nodeType === 4) {
					return elem.nodeValue;
				}
	
				// Do not include comment or processing instruction nodes
	
				return ret;
			};
	
			Expr = Sizzle.selectors = {
	
				// Can be adjusted by the user
				cacheLength: 50,
	
				createPseudo: markFunction,
	
				match: matchExpr,
	
				attrHandle: {},
	
				find: {},
	
				relative: {
					">": { dir: "parentNode", first: true },
					" ": { dir: "parentNode" },
					"+": { dir: "previousSibling", first: true },
					"~": { dir: "previousSibling" }
				},
	
				preFilter: {
					"ATTR": function ATTR(match) {
						match[1] = match[1].replace(runescape, funescape);
	
						// Move the given value to match[3] whether quoted or unquoted
						match[3] = (match[3] || match[4] || match[5] || "").replace(runescape, funescape);
	
						if (match[2] === "~=") {
							match[3] = " " + match[3] + " ";
						}
	
						return match.slice(0, 4);
					},
	
					"CHILD": function CHILD(match) {
	
						/* matches from matchExpr["CHILD"]
	     	1 type (only|nth|...)
	     	2 what (child|of-type)
	     	3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
	     	4 xn-component of xn+y argument ([+-]?\d*n|)
	     	5 sign of xn-component
	     	6 x of xn-component
	     	7 sign of y-component
	     	8 y of y-component
	     */
						match[1] = match[1].toLowerCase();
	
						if (match[1].slice(0, 3) === "nth") {
	
							// nth-* requires argument
							if (!match[3]) {
								Sizzle.error(match[0]);
							}
	
							// numeric x and y parameters for Expr.filter.CHILD
							// remember that false/true cast respectively to 0/1
							match[4] = +(match[4] ? match[5] + (match[6] || 1) : 2 * (match[3] === "even" || match[3] === "odd"));
							match[5] = +(match[7] + match[8] || match[3] === "odd");
	
							// other types prohibit arguments
						} else if (match[3]) {
							Sizzle.error(match[0]);
						}
	
						return match;
					},
	
					"PSEUDO": function PSEUDO(match) {
						var excess,
						    unquoted = !match[6] && match[2];
	
						if (matchExpr["CHILD"].test(match[0])) {
							return null;
						}
	
						// Accept quoted arguments as-is
						if (match[3]) {
							match[2] = match[4] || match[5] || "";
	
							// Strip excess characters from unquoted arguments
						} else if (unquoted && rpseudo.test(unquoted) && (
	
						// Get excess from tokenize (recursively)
						excess = tokenize(unquoted, true)) && (
	
						// advance to the next closing parenthesis
						excess = unquoted.indexOf(")", unquoted.length - excess) - unquoted.length)) {
	
							// excess is a negative index
							match[0] = match[0].slice(0, excess);
							match[2] = unquoted.slice(0, excess);
						}
	
						// Return only captures needed by the pseudo filter method (type and argument)
						return match.slice(0, 3);
					}
				},
	
				filter: {
	
					"TAG": function TAG(nodeNameSelector) {
						var nodeName = nodeNameSelector.replace(runescape, funescape).toLowerCase();
						return nodeNameSelector === "*" ? function () {
							return true;
						} : function (elem) {
							return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
						};
					},
	
					"CLASS": function CLASS(className) {
						var pattern = classCache[className + " "];
	
						return pattern || (pattern = new RegExp("(^|" + whitespace + ")" + className + "(" + whitespace + "|$)")) && classCache(className, function (elem) {
							return pattern.test(typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "");
						});
					},
	
					"ATTR": function ATTR(name, operator, check) {
						return function (elem) {
							var result = Sizzle.attr(elem, name);
	
							if (result == null) {
								return operator === "!=";
							}
							if (!operator) {
								return true;
							}
	
							result += "";
	
							/* eslint-disable max-len */
	
							return operator === "=" ? result === check : operator === "!=" ? result !== check : operator === "^=" ? check && result.indexOf(check) === 0 : operator === "*=" ? check && result.indexOf(check) > -1 : operator === "$=" ? check && result.slice(-check.length) === check : operator === "~=" ? (" " + result.replace(rwhitespace, " ") + " ").indexOf(check) > -1 : operator === "|=" ? result === check || result.slice(0, check.length + 1) === check + "-" : false;
							/* eslint-enable max-len */
						};
					},
	
					"CHILD": function CHILD(type, what, _argument, first, last) {
						var simple = type.slice(0, 3) !== "nth",
						    forward = type.slice(-4) !== "last",
						    ofType = what === "of-type";
	
						return first === 1 && last === 0 ?
	
						// Shortcut for :nth-*(n)
						function (elem) {
							return !!elem.parentNode;
						} : function (elem, _context, xml) {
							var cache,
							    uniqueCache,
							    outerCache,
							    node,
							    nodeIndex,
							    start,
							    dir = simple !== forward ? "nextSibling" : "previousSibling",
							    parent = elem.parentNode,
							    name = ofType && elem.nodeName.toLowerCase(),
							    useCache = !xml && !ofType,
							    diff = false;
	
							if (parent) {
	
								// :(first|last|only)-(child|of-type)
								if (simple) {
									while (dir) {
										node = elem;
										while (node = node[dir]) {
											if (ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1) {
	
												return false;
											}
										}
	
										// Reverse direction for :only-* (if we haven't yet done so)
										start = dir = type === "only" && !start && "nextSibling";
									}
									return true;
								}
	
								start = [forward ? parent.firstChild : parent.lastChild];
	
								// non-xml :nth-child(...) stores cache data on `parent`
								if (forward && useCache) {
	
									// Seek `elem` from a previously-cached index
	
									// ...in a gzip-friendly way
									node = parent;
									outerCache = node[expando] || (node[expando] = {});
	
									// Support: IE <9 only
									// Defend against cloned attroperties (jQuery gh-1709)
									uniqueCache = outerCache[node.uniqueID] || (outerCache[node.uniqueID] = {});
	
									cache = uniqueCache[type] || [];
									nodeIndex = cache[0] === dirruns && cache[1];
									diff = nodeIndex && cache[2];
									node = nodeIndex && parent.childNodes[nodeIndex];
	
									while (node = ++nodeIndex && node && node[dir] || (
	
									// Fallback to seeking `elem` from the start
									diff = nodeIndex = 0) || start.pop()) {
	
										// When found, cache indexes on `parent` and break
										if (node.nodeType === 1 && ++diff && node === elem) {
											uniqueCache[type] = [dirruns, nodeIndex, diff];
											break;
										}
									}
								} else {
	
									// Use previously-cached element index if available
									if (useCache) {
	
										// ...in a gzip-friendly way
										node = elem;
										outerCache = node[expando] || (node[expando] = {});
	
										// Support: IE <9 only
										// Defend against cloned attroperties (jQuery gh-1709)
										uniqueCache = outerCache[node.uniqueID] || (outerCache[node.uniqueID] = {});
	
										cache = uniqueCache[type] || [];
										nodeIndex = cache[0] === dirruns && cache[1];
										diff = nodeIndex;
									}
	
									// xml :nth-child(...)
									// or :nth-last-child(...) or :nth(-last)?-of-type(...)
									if (diff === false) {
	
										// Use the same loop as above to seek `elem` from the start
										while (node = ++nodeIndex && node && node[dir] || (diff = nodeIndex = 0) || start.pop()) {
	
											if ((ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1) && ++diff) {
	
												// Cache the index of each encountered element
												if (useCache) {
													outerCache = node[expando] || (node[expando] = {});
	
													// Support: IE <9 only
													// Defend against cloned attroperties (jQuery gh-1709)
													uniqueCache = outerCache[node.uniqueID] || (outerCache[node.uniqueID] = {});
	
													uniqueCache[type] = [dirruns, diff];
												}
	
												if (node === elem) {
													break;
												}
											}
										}
									}
								}
	
								// Incorporate the offset, then check against cycle size
								diff -= last;
								return diff === first || diff % first === 0 && diff / first >= 0;
							}
						};
					},
	
					"PSEUDO": function PSEUDO(pseudo, argument) {
	
						// pseudo-class names are case-insensitive
						// http://www.w3.org/TR/selectors/#pseudo-classes
						// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
						// Remember that setFilters inherits from pseudos
						var args,
						    fn = Expr.pseudos[pseudo] || Expr.setFilters[pseudo.toLowerCase()] || Sizzle.error("unsupported pseudo: " + pseudo);
	
						// The user may use createPseudo to indicate that
						// arguments are needed to create the filter function
						// just as Sizzle does
						if (fn[expando]) {
							return fn(argument);
						}
	
						// But maintain support for old signatures
						if (fn.length > 1) {
							args = [pseudo, pseudo, "", argument];
							return Expr.setFilters.hasOwnProperty(pseudo.toLowerCase()) ? markFunction(function (seed, matches) {
								var idx,
								    matched = fn(seed, argument),
								    i = matched.length;
								while (i--) {
									idx = indexOf(seed, matched[i]);
									seed[idx] = !(matches[idx] = matched[i]);
								}
							}) : function (elem) {
								return fn(elem, 0, args);
							};
						}
	
						return fn;
					}
				},
	
				pseudos: {
	
					// Potentially complex pseudos
					"not": markFunction(function (selector) {
	
						// Trim the selector passed to compile
						// to avoid treating leading and trailing
						// spaces as combinators
						var input = [],
						    results = [],
						    matcher = compile(selector.replace(rtrim, "$1"));
	
						return matcher[expando] ? markFunction(function (seed, matches, _context, xml) {
							var elem,
							    unmatched = matcher(seed, null, xml, []),
							    i = seed.length;
	
							// Match elements unmatched by `matcher`
							while (i--) {
								if (elem = unmatched[i]) {
									seed[i] = !(matches[i] = elem);
								}
							}
						}) : function (elem, _context, xml) {
							input[0] = elem;
							matcher(input, null, xml, results);
	
							// Don't keep the element (issue #299)
							input[0] = null;
							return !results.pop();
						};
					}),
	
					"has": markFunction(function (selector) {
						return function (elem) {
							return Sizzle(selector, elem).length > 0;
						};
					}),
	
					"contains": markFunction(function (text) {
						text = text.replace(runescape, funescape);
						return function (elem) {
							return (elem.textContent || getText(elem)).indexOf(text) > -1;
						};
					}),
	
					// "Whether an element is represented by a :lang() selector
					// is based solely on the element's language value
					// being equal to the identifier C,
					// or beginning with the identifier C immediately followed by "-".
					// The matching of C against the element's language value is performed case-insensitively.
					// The identifier C does not have to be a valid language name."
					// http://www.w3.org/TR/selectors/#lang-pseudo
					"lang": markFunction(function (lang) {
	
						// lang value must be a valid identifier
						if (!ridentifier.test(lang || "")) {
							Sizzle.error("unsupported lang: " + lang);
						}
						lang = lang.replace(runescape, funescape).toLowerCase();
						return function (elem) {
							var elemLang;
							do {
								if (elemLang = documentIsHTML ? elem.lang : elem.getAttribute("xml:lang") || elem.getAttribute("lang")) {
	
									elemLang = elemLang.toLowerCase();
									return elemLang === lang || elemLang.indexOf(lang + "-") === 0;
								}
							} while ((elem = elem.parentNode) && elem.nodeType === 1);
							return false;
						};
					}),
	
					// Miscellaneous
					"target": function target(elem) {
						var hash = window.location && window.location.hash;
						return hash && hash.slice(1) === elem.id;
					},
	
					"root": function root(elem) {
						return elem === docElem;
					},
	
					"focus": function focus(elem) {
						return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
					},
	
					// Boolean properties
					"enabled": createDisabledPseudo(false),
					"disabled": createDisabledPseudo(true),
	
					"checked": function checked(elem) {
	
						// In CSS3, :checked should return both checked and selected elements
						// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
						var nodeName = elem.nodeName.toLowerCase();
						return nodeName === "input" && !!elem.checked || nodeName === "option" && !!elem.selected;
					},
	
					"selected": function selected(elem) {
	
						// Accessing this property makes selected-by-default
						// options in Safari work properly
						if (elem.parentNode) {
							// eslint-disable-next-line no-unused-expressions
							elem.parentNode.selectedIndex;
						}
	
						return elem.selected === true;
					},
	
					// Contents
					"empty": function empty(elem) {
	
						// http://www.w3.org/TR/selectors/#empty-pseudo
						// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
						//   but not by others (comment: 8; processing instruction: 7; etc.)
						// nodeType < 6 works because attributes (2) do not appear as children
						for (elem = elem.firstChild; elem; elem = elem.nextSibling) {
							if (elem.nodeType < 6) {
								return false;
							}
						}
						return true;
					},
	
					"parent": function parent(elem) {
						return !Expr.pseudos["empty"](elem);
					},
	
					// Element/input types
					"header": function header(elem) {
						return rheader.test(elem.nodeName);
					},
	
					"input": function input(elem) {
						return rinputs.test(elem.nodeName);
					},
	
					"button": function button(elem) {
						var name = elem.nodeName.toLowerCase();
						return name === "input" && elem.type === "button" || name === "button";
					},
	
					"text": function text(elem) {
						var attr;
						return elem.nodeName.toLowerCase() === "input" && elem.type === "text" && (
	
						// Support: IE<8
						// New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
						(attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text");
					},
	
					// Position-in-collection
					"first": createPositionalPseudo(function () {
						return [0];
					}),
	
					"last": createPositionalPseudo(function (_matchIndexes, length) {
						return [length - 1];
					}),
	
					"eq": createPositionalPseudo(function (_matchIndexes, length, argument) {
						return [argument < 0 ? argument + length : argument];
					}),
	
					"even": createPositionalPseudo(function (matchIndexes, length) {
						var i = 0;
						for (; i < length; i += 2) {
							matchIndexes.push(i);
						}
						return matchIndexes;
					}),
	
					"odd": createPositionalPseudo(function (matchIndexes, length) {
						var i = 1;
						for (; i < length; i += 2) {
							matchIndexes.push(i);
						}
						return matchIndexes;
					}),
	
					"lt": createPositionalPseudo(function (matchIndexes, length, argument) {
						var i = argument < 0 ? argument + length : argument > length ? length : argument;
						for (; --i >= 0;) {
							matchIndexes.push(i);
						}
						return matchIndexes;
					}),
	
					"gt": createPositionalPseudo(function (matchIndexes, length, argument) {
						var i = argument < 0 ? argument + length : argument;
						for (; ++i < length;) {
							matchIndexes.push(i);
						}
						return matchIndexes;
					})
				}
			};
	
			Expr.pseudos["nth"] = Expr.pseudos["eq"];
	
			// Add button/input type pseudos
			for (i in { radio: true, checkbox: true, file: true, password: true, image: true }) {
				Expr.pseudos[i] = createInputPseudo(i);
			}
			for (i in { submit: true, reset: true }) {
				Expr.pseudos[i] = createButtonPseudo(i);
			}
	
			// Easy API for creating new setFilters
			function setFilters() {}
			setFilters.prototype = Expr.filters = Expr.pseudos;
			Expr.setFilters = new setFilters();
	
			tokenize = Sizzle.tokenize = function (selector, parseOnly) {
				var matched,
				    match,
				    tokens,
				    type,
				    soFar,
				    groups,
				    preFilters,
				    cached = tokenCache[selector + " "];
	
				if (cached) {
					return parseOnly ? 0 : cached.slice(0);
				}
	
				soFar = selector;
				groups = [];
				preFilters = Expr.preFilter;
	
				while (soFar) {
	
					// Comma and first run
					if (!matched || (match = rcomma.exec(soFar))) {
						if (match) {
	
							// Don't consume trailing commas as valid
							soFar = soFar.slice(match[0].length) || soFar;
						}
						groups.push(tokens = []);
					}
	
					matched = false;
	
					// Combinators
					if (match = rcombinators.exec(soFar)) {
						matched = match.shift();
						tokens.push({
							value: matched,
	
							// Cast descendant combinators to space
							type: match[0].replace(rtrim, " ")
						});
						soFar = soFar.slice(matched.length);
					}
	
					// Filters
					for (type in Expr.filter) {
						if ((match = matchExpr[type].exec(soFar)) && (!preFilters[type] || (match = preFilters[type](match)))) {
							matched = match.shift();
							tokens.push({
								value: matched,
								type: type,
								matches: match
							});
							soFar = soFar.slice(matched.length);
						}
					}
	
					if (!matched) {
						break;
					}
				}
	
				// Return the length of the invalid excess
				// if we're just parsing
				// Otherwise, throw an error or return tokens
				return parseOnly ? soFar.length : soFar ? Sizzle.error(selector) :
	
				// Cache the tokens
				tokenCache(selector, groups).slice(0);
			};
	
			function toSelector(tokens) {
				var i = 0,
				    len = tokens.length,
				    selector = "";
				for (; i < len; i++) {
					selector += tokens[i].value;
				}
				return selector;
			}
	
			function addCombinator(matcher, combinator, base) {
				var dir = combinator.dir,
				    skip = combinator.next,
				    key = skip || dir,
				    checkNonElements = base && key === "parentNode",
				    doneName = done++;
	
				return combinator.first ?
	
				// Check against closest ancestor/preceding element
				function (elem, context, xml) {
					while (elem = elem[dir]) {
						if (elem.nodeType === 1 || checkNonElements) {
							return matcher(elem, context, xml);
						}
					}
					return false;
				} :
	
				// Check against all ancestor/preceding elements
				function (elem, context, xml) {
					var oldCache,
					    uniqueCache,
					    outerCache,
					    newCache = [dirruns, doneName];
	
					// We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching
					if (xml) {
						while (elem = elem[dir]) {
							if (elem.nodeType === 1 || checkNonElements) {
								if (matcher(elem, context, xml)) {
									return true;
								}
							}
						}
					} else {
						while (elem = elem[dir]) {
							if (elem.nodeType === 1 || checkNonElements) {
								outerCache = elem[expando] || (elem[expando] = {});
	
								// Support: IE <9 only
								// Defend against cloned attroperties (jQuery gh-1709)
								uniqueCache = outerCache[elem.uniqueID] || (outerCache[elem.uniqueID] = {});
	
								if (skip && skip === elem.nodeName.toLowerCase()) {
									elem = elem[dir] || elem;
								} else if ((oldCache = uniqueCache[key]) && oldCache[0] === dirruns && oldCache[1] === doneName) {
	
									// Assign to newCache so results back-propagate to previous elements
									return newCache[2] = oldCache[2];
								} else {
	
									// Reuse newcache so results back-propagate to previous elements
									uniqueCache[key] = newCache;
	
									// A match means we're done; a fail means we have to keep checking
									if (newCache[2] = matcher(elem, context, xml)) {
										return true;
									}
								}
							}
						}
					}
					return false;
				};
			}
	
			function elementMatcher(matchers) {
				return matchers.length > 1 ? function (elem, context, xml) {
					var i = matchers.length;
					while (i--) {
						if (!matchers[i](elem, context, xml)) {
							return false;
						}
					}
					return true;
				} : matchers[0];
			}
	
			function multipleContexts(selector, contexts, results) {
				var i = 0,
				    len = contexts.length;
				for (; i < len; i++) {
					Sizzle(selector, contexts[i], results);
				}
				return results;
			}
	
			function condense(unmatched, map, filter, context, xml) {
				var elem,
				    newUnmatched = [],
				    i = 0,
				    len = unmatched.length,
				    mapped = map != null;
	
				for (; i < len; i++) {
					if (elem = unmatched[i]) {
						if (!filter || filter(elem, context, xml)) {
							newUnmatched.push(elem);
							if (mapped) {
								map.push(i);
							}
						}
					}
				}
	
				return newUnmatched;
			}
	
			function setMatcher(preFilter, selector, matcher, postFilter, postFinder, postSelector) {
				if (postFilter && !postFilter[expando]) {
					postFilter = setMatcher(postFilter);
				}
				if (postFinder && !postFinder[expando]) {
					postFinder = setMatcher(postFinder, postSelector);
				}
				return markFunction(function (seed, results, context, xml) {
					var temp,
					    i,
					    elem,
					    preMap = [],
					    postMap = [],
					    preexisting = results.length,
	
	
					// Get initial elements from seed or context
					elems = seed || multipleContexts(selector || "*", context.nodeType ? [context] : context, []),
	
	
					// Prefilter to get matcher input, preserving a map for seed-results synchronization
					matcherIn = preFilter && (seed || !selector) ? condense(elems, preMap, preFilter, context, xml) : elems,
					    matcherOut = matcher ?
	
					// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
					postFinder || (seed ? preFilter : preexisting || postFilter) ?
	
					// ...intermediate processing is necessary
					[] :
	
					// ...otherwise use results directly
					results : matcherIn;
	
					// Find primary matches
					if (matcher) {
						matcher(matcherIn, matcherOut, context, xml);
					}
	
					// Apply postFilter
					if (postFilter) {
						temp = condense(matcherOut, postMap);
						postFilter(temp, [], context, xml);
	
						// Un-match failing elements by moving them back to matcherIn
						i = temp.length;
						while (i--) {
							if (elem = temp[i]) {
								matcherOut[postMap[i]] = !(matcherIn[postMap[i]] = elem);
							}
						}
					}
	
					if (seed) {
						if (postFinder || preFilter) {
							if (postFinder) {
	
								// Get the final matcherOut by condensing this intermediate into postFinder contexts
								temp = [];
								i = matcherOut.length;
								while (i--) {
									if (elem = matcherOut[i]) {
	
										// Restore matcherIn since elem is not yet a final match
										temp.push(matcherIn[i] = elem);
									}
								}
								postFinder(null, matcherOut = [], temp, xml);
							}
	
							// Move matched elements from seed to results to keep them synchronized
							i = matcherOut.length;
							while (i--) {
								if ((elem = matcherOut[i]) && (temp = postFinder ? indexOf(seed, elem) : preMap[i]) > -1) {
	
									seed[temp] = !(results[temp] = elem);
								}
							}
						}
	
						// Add elements to results, through postFinder if defined
					} else {
						matcherOut = condense(matcherOut === results ? matcherOut.splice(preexisting, matcherOut.length) : matcherOut);
						if (postFinder) {
							postFinder(null, results, matcherOut, xml);
						} else {
							push.apply(results, matcherOut);
						}
					}
				});
			}
	
			function matcherFromTokens(tokens) {
				var checkContext,
				    matcher,
				    j,
				    len = tokens.length,
				    leadingRelative = Expr.relative[tokens[0].type],
				    implicitRelative = leadingRelative || Expr.relative[" "],
				    i = leadingRelative ? 1 : 0,
	
	
				// The foundational matcher ensures that elements are reachable from top-level context(s)
				matchContext = addCombinator(function (elem) {
					return elem === checkContext;
				}, implicitRelative, true),
				    matchAnyContext = addCombinator(function (elem) {
					return indexOf(checkContext, elem) > -1;
				}, implicitRelative, true),
				    matchers = [function (elem, context, xml) {
					var ret = !leadingRelative && (xml || context !== outermostContext) || ((checkContext = context).nodeType ? matchContext(elem, context, xml) : matchAnyContext(elem, context, xml));
	
					// Avoid hanging onto element (issue #299)
					checkContext = null;
					return ret;
				}];
	
				for (; i < len; i++) {
					if (matcher = Expr.relative[tokens[i].type]) {
						matchers = [addCombinator(elementMatcher(matchers), matcher)];
					} else {
						matcher = Expr.filter[tokens[i].type].apply(null, tokens[i].matches);
	
						// Return special upon seeing a positional matcher
						if (matcher[expando]) {
	
							// Find the next relative operator (if any) for proper handling
							j = ++i;
							for (; j < len; j++) {
								if (Expr.relative[tokens[j].type]) {
									break;
								}
							}
							return setMatcher(i > 1 && elementMatcher(matchers), i > 1 && toSelector(
	
							// If the preceding token was a descendant combinator, insert an implicit any-element `*`
							tokens.slice(0, i - 1).concat({ value: tokens[i - 2].type === " " ? "*" : "" })).replace(rtrim, "$1"), matcher, i < j && matcherFromTokens(tokens.slice(i, j)), j < len && matcherFromTokens(tokens = tokens.slice(j)), j < len && toSelector(tokens));
						}
						matchers.push(matcher);
					}
				}
	
				return elementMatcher(matchers);
			}
	
			function matcherFromGroupMatchers(elementMatchers, setMatchers) {
				var bySet = setMatchers.length > 0,
				    byElement = elementMatchers.length > 0,
				    superMatcher = function superMatcher(seed, context, xml, results, outermost) {
					var elem,
					    j,
					    matcher,
					    matchedCount = 0,
					    i = "0",
					    unmatched = seed && [],
					    setMatched = [],
					    contextBackup = outermostContext,
	
	
					// We must always have either seed elements or outermost context
					elems = seed || byElement && Expr.find["TAG"]("*", outermost),
	
	
					// Use integer dirruns iff this is the outermost matcher
					dirrunsUnique = dirruns += contextBackup == null ? 1 : Math.random() || 0.1,
					    len = elems.length;
	
					if (outermost) {
	
						// Support: IE 11+, Edge 17 - 18+
						// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
						// two documents; shallow comparisons work.
						// eslint-disable-next-line eqeqeq
						outermostContext = context == document || context || outermost;
					}
	
					// Add elements passing elementMatchers directly to results
					// Support: IE<9, Safari
					// Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id
					for (; i !== len && (elem = elems[i]) != null; i++) {
						if (byElement && elem) {
							j = 0;
	
							// Support: IE 11+, Edge 17 - 18+
							// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
							// two documents; shallow comparisons work.
							// eslint-disable-next-line eqeqeq
							if (!context && elem.ownerDocument != document) {
								setDocument(elem);
								xml = !documentIsHTML;
							}
							while (matcher = elementMatchers[j++]) {
								if (matcher(elem, context || document, xml)) {
									results.push(elem);
									break;
								}
							}
							if (outermost) {
								dirruns = dirrunsUnique;
							}
						}
	
						// Track unmatched elements for set filters
						if (bySet) {
	
							// They will have gone through all possible matchers
							if (elem = !matcher && elem) {
								matchedCount--;
							}
	
							// Lengthen the array for every element, matched or not
							if (seed) {
								unmatched.push(elem);
							}
						}
					}
	
					// `i` is now the count of elements visited above, and adding it to `matchedCount`
					// makes the latter nonnegative.
					matchedCount += i;
	
					// Apply set filters to unmatched elements
					// NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`
					// equals `i`), unless we didn't visit _any_ elements in the above loop because we have
					// no element matchers and no seed.
					// Incrementing an initially-string "0" `i` allows `i` to remain a string only in that
					// case, which will result in a "00" `matchedCount` that differs from `i` but is also
					// numerically zero.
					if (bySet && i !== matchedCount) {
						j = 0;
						while (matcher = setMatchers[j++]) {
							matcher(unmatched, setMatched, context, xml);
						}
	
						if (seed) {
	
							// Reintegrate element matches to eliminate the need for sorting
							if (matchedCount > 0) {
								while (i--) {
									if (!(unmatched[i] || setMatched[i])) {
										setMatched[i] = pop.call(results);
									}
								}
							}
	
							// Discard index placeholder values to get only actual matches
							setMatched = condense(setMatched);
						}
	
						// Add matches to results
						push.apply(results, setMatched);
	
						// Seedless set matches succeeding multiple successful matchers stipulate sorting
						if (outermost && !seed && setMatched.length > 0 && matchedCount + setMatchers.length > 1) {
	
							Sizzle.uniqueSort(results);
						}
					}
	
					// Override manipulation of globals by nested matchers
					if (outermost) {
						dirruns = dirrunsUnique;
						outermostContext = contextBackup;
					}
	
					return unmatched;
				};
	
				return bySet ? markFunction(superMatcher) : superMatcher;
			}
	
			compile = Sizzle.compile = function (selector, match /* Internal Use Only */) {
				var i,
				    setMatchers = [],
				    elementMatchers = [],
				    cached = compilerCache[selector + " "];
	
				if (!cached) {
	
					// Generate a function of recursive functions that can be used to check each element
					if (!match) {
						match = tokenize(selector);
					}
					i = match.length;
					while (i--) {
						cached = matcherFromTokens(match[i]);
						if (cached[expando]) {
							setMatchers.push(cached);
						} else {
							elementMatchers.push(cached);
						}
					}
	
					// Cache the compiled function
					cached = compilerCache(selector, matcherFromGroupMatchers(elementMatchers, setMatchers));
	
					// Save selector and tokenization
					cached.selector = selector;
				}
				return cached;
			};
	
			/**
	   * A low-level selection function that works with Sizzle's compiled
	   *  selector functions
	   * @param {String|Function} selector A selector or a pre-compiled
	   *  selector function built with Sizzle.compile
	   * @param {Element} context
	   * @param {Array} [results]
	   * @param {Array} [seed] A set of elements to match against
	   */
			select = Sizzle.select = function (selector, context, results, seed) {
				var i,
				    tokens,
				    token,
				    type,
				    find,
				    compiled = typeof selector === "function" && selector,
				    match = !seed && tokenize(selector = compiled.selector || selector);
	
				results = results || [];
	
				// Try to minimize operations if there is only one selector in the list and no seed
				// (the latter of which guarantees us context)
				if (match.length === 1) {
	
					// Reduce context if the leading compound selector is an ID
					tokens = match[0] = match[0].slice(0);
					if (tokens.length > 2 && (token = tokens[0]).type === "ID" && context.nodeType === 9 && documentIsHTML && Expr.relative[tokens[1].type]) {
	
						context = (Expr.find["ID"](token.matches[0].replace(runescape, funescape), context) || [])[0];
						if (!context) {
							return results;
	
							// Precompiled matchers will still verify ancestry, so step up a level
						} else if (compiled) {
							context = context.parentNode;
						}
	
						selector = selector.slice(tokens.shift().value.length);
					}
	
					// Fetch a seed set for right-to-left matching
					i = matchExpr["needsContext"].test(selector) ? 0 : tokens.length;
					while (i--) {
						token = tokens[i];
	
						// Abort if we hit a combinator
						if (Expr.relative[type = token.type]) {
							break;
						}
						if (find = Expr.find[type]) {
	
							// Search, expanding context for leading sibling combinators
							if (seed = find(token.matches[0].replace(runescape, funescape), rsibling.test(tokens[0].type) && testContext(context.parentNode) || context)) {
	
								// If seed is empty or no tokens remain, we can return early
								tokens.splice(i, 1);
								selector = seed.length && toSelector(tokens);
								if (!selector) {
									push.apply(results, seed);
									return results;
								}
	
								break;
							}
						}
					}
				}
	
				// Compile and execute a filtering function if one is not provided
				// Provide `match` to avoid retokenization if we modified the selector above
				(compiled || compile(selector, match))(seed, context, !documentIsHTML, results, !context || rsibling.test(selector) && testContext(context.parentNode) || context);
				return results;
			};
	
			// One-time assignments
	
			// Sort stability
			support.sortStable = expando.split("").sort(sortOrder).join("") === expando;
	
			// Support: Chrome 14-35+
			// Always assume duplicates if they aren't passed to the comparison function
			support.detectDuplicates = !!hasDuplicate;
	
			// Initialize against the default document
			setDocument();
	
			// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
			// Detached nodes confoundingly follow *each other*
			support.sortDetached = assert(function (el) {
	
				// Should return 1, but returns 4 (following)
				return el.compareDocumentPosition(document.createElement("fieldset")) & 1;
			});
	
			// Support: IE<8
			// Prevent attribute/property "interpolation"
			// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
			if (!assert(function (el) {
				el.innerHTML = "<a href='#'></a>";
				return el.firstChild.getAttribute("href") === "#";
			})) {
				addHandle("type|href|height|width", function (elem, name, isXML) {
					if (!isXML) {
						return elem.getAttribute(name, name.toLowerCase() === "type" ? 1 : 2);
					}
				});
			}
	
			// Support: IE<9
			// Use defaultValue in place of getAttribute("value")
			if (!support.attributes || !assert(function (el) {
				el.innerHTML = "<input/>";
				el.firstChild.setAttribute("value", "");
				return el.firstChild.getAttribute("value") === "";
			})) {
				addHandle("value", function (elem, _name, isXML) {
					if (!isXML && elem.nodeName.toLowerCase() === "input") {
						return elem.defaultValue;
					}
				});
			}
	
			// Support: IE<9
			// Use getAttributeNode to fetch booleans when getAttribute lies
			if (!assert(function (el) {
				return el.getAttribute("disabled") == null;
			})) {
				addHandle(booleans, function (elem, name, isXML) {
					var val;
					if (!isXML) {
						return elem[name] === true ? name.toLowerCase() : (val = elem.getAttributeNode(name)) && val.specified ? val.value : null;
					}
				});
			}
	
			return Sizzle;
		}(window);
	
		jQuery.find = Sizzle;
		jQuery.expr = Sizzle.selectors;
	
		// Deprecated
		jQuery.expr[":"] = jQuery.expr.pseudos;
		jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
		jQuery.text = Sizzle.getText;
		jQuery.isXMLDoc = Sizzle.isXML;
		jQuery.contains = Sizzle.contains;
		jQuery.escapeSelector = Sizzle.escape;
	
		var dir = function dir(elem, _dir, until) {
			var matched = [],
			    truncate = until !== undefined;
	
			while ((elem = elem[_dir]) && elem.nodeType !== 9) {
				if (elem.nodeType === 1) {
					if (truncate && jQuery(elem).is(until)) {
						break;
					}
					matched.push(elem);
				}
			}
			return matched;
		};
	
		var _siblings = function _siblings(n, elem) {
			var matched = [];
	
			for (; n; n = n.nextSibling) {
				if (n.nodeType === 1 && n !== elem) {
					matched.push(n);
				}
			}
	
			return matched;
		};
	
		var rneedsContext = jQuery.expr.match.needsContext;
	
		function nodeName(elem, name) {
	
			return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
		};
		var rsingleTag = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
	
		// Implement the identical functionality for filter and not
		function winnow(elements, qualifier, not) {
			if (isFunction(qualifier)) {
				return jQuery.grep(elements, function (elem, i) {
					return !!qualifier.call(elem, i, elem) !== not;
				});
			}
	
			// Single element
			if (qualifier.nodeType) {
				return jQuery.grep(elements, function (elem) {
					return elem === qualifier !== not;
				});
			}
	
			// Arraylike of elements (jQuery, arguments, Array)
			if (typeof qualifier !== "string") {
				return jQuery.grep(elements, function (elem) {
					return indexOf.call(qualifier, elem) > -1 !== not;
				});
			}
	
			// Filtered directly for both simple and complex selectors
			return jQuery.filter(qualifier, elements, not);
		}
	
		jQuery.filter = function (expr, elems, not) {
			var elem = elems[0];
	
			if (not) {
				expr = ":not(" + expr + ")";
			}
	
			if (elems.length === 1 && elem.nodeType === 1) {
				return jQuery.find.matchesSelector(elem, expr) ? [elem] : [];
			}
	
			return jQuery.find.matches(expr, jQuery.grep(elems, function (elem) {
				return elem.nodeType === 1;
			}));
		};
	
		jQuery.fn.extend({
			find: function find(selector) {
				var i,
				    ret,
				    len = this.length,
				    self = this;
	
				if (typeof selector !== "string") {
					return this.pushStack(jQuery(selector).filter(function () {
						for (i = 0; i < len; i++) {
							if (jQuery.contains(self[i], this)) {
								return true;
							}
						}
					}));
				}
	
				ret = this.pushStack([]);
	
				for (i = 0; i < len; i++) {
					jQuery.find(selector, self[i], ret);
				}
	
				return len > 1 ? jQuery.uniqueSort(ret) : ret;
			},
			filter: function filter(selector) {
				return this.pushStack(winnow(this, selector || [], false));
			},
			not: function not(selector) {
				return this.pushStack(winnow(this, selector || [], true));
			},
			is: function is(selector) {
				return !!winnow(this,
	
				// If this is a positional/relative selector, check membership in the returned set
				// so $("p:first").is("p:last") won't return true for a doc with two "p".
				typeof selector === "string" && rneedsContext.test(selector) ? jQuery(selector) : selector || [], false).length;
			}
		});
	
		// Initialize a jQuery object
	
	
		// A central reference to the root jQuery(document)
		var rootjQuery,
	
	
		// A simple way to check for HTML strings
		// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
		// Strict HTML recognition (#11290: must start with <)
		// Shortcut simple #id case for speed
		rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,
		    init = jQuery.fn.init = function (selector, context, root) {
			var match, elem;
	
			// HANDLE: $(""), $(null), $(undefined), $(false)
			if (!selector) {
				return this;
			}
	
			// Method init() accepts an alternate rootjQuery
			// so migrate can support jQuery.sub (gh-2101)
			root = root || rootjQuery;
	
			// Handle HTML strings
			if (typeof selector === "string") {
				if (selector[0] === "<" && selector[selector.length - 1] === ">" && selector.length >= 3) {
	
					// Assume that strings that start and end with <> are HTML and skip the regex check
					match = [null, selector, null];
				} else {
					match = rquickExpr.exec(selector);
				}
	
				// Match html or make sure no context is specified for #id
				if (match && (match[1] || !context)) {
	
					// HANDLE: $(html) -> $(array)
					if (match[1]) {
						context = context instanceof jQuery ? context[0] : context;
	
						// Option to run scripts is true for back-compat
						// Intentionally let the error be thrown if parseHTML is not present
						jQuery.merge(this, jQuery.parseHTML(match[1], context && context.nodeType ? context.ownerDocument || context : document, true));
	
						// HANDLE: $(html, props)
						if (rsingleTag.test(match[1]) && jQuery.isPlainObject(context)) {
							for (match in context) {
	
								// Properties of context are called as methods if possible
								if (isFunction(this[match])) {
									this[match](context[match]);
	
									// ...and otherwise set as attributes
								} else {
									this.attr(match, context[match]);
								}
							}
						}
	
						return this;
	
						// HANDLE: $(#id)
					} else {
						elem = document.getElementById(match[2]);
	
						if (elem) {
	
							// Inject the element directly into the jQuery object
							this[0] = elem;
							this.length = 1;
						}
						return this;
					}
	
					// HANDLE: $(expr, $(...))
				} else if (!context || context.jquery) {
					return (context || root).find(selector);
	
					// HANDLE: $(expr, context)
					// (which is just equivalent to: $(context).find(expr)
				} else {
					return this.constructor(context).find(selector);
				}
	
				// HANDLE: $(DOMElement)
			} else if (selector.nodeType) {
				this[0] = selector;
				this.length = 1;
				return this;
	
				// HANDLE: $(function)
				// Shortcut for document ready
			} else if (isFunction(selector)) {
				return root.ready !== undefined ? root.ready(selector) :
	
				// Execute immediately if ready is not present
				selector(jQuery);
			}
	
			return jQuery.makeArray(selector, this);
		};
	
		// Give the init function the jQuery prototype for later instantiation
		init.prototype = jQuery.fn;
	
		// Initialize central reference
		rootjQuery = jQuery(document);
	
		var rparentsprev = /^(?:parents|prev(?:Until|All))/,
	
	
		// Methods guaranteed to produce a unique set when starting from a unique set
		guaranteedUnique = {
			children: true,
			contents: true,
			next: true,
			prev: true
		};
	
		jQuery.fn.extend({
			has: function has(target) {
				var targets = jQuery(target, this),
				    l = targets.length;
	
				return this.filter(function () {
					var i = 0;
					for (; i < l; i++) {
						if (jQuery.contains(this, targets[i])) {
							return true;
						}
					}
				});
			},
	
			closest: function closest(selectors, context) {
				var cur,
				    i = 0,
				    l = this.length,
				    matched = [],
				    targets = typeof selectors !== "string" && jQuery(selectors);
	
				// Positional selectors never match, since there's no _selection_ context
				if (!rneedsContext.test(selectors)) {
					for (; i < l; i++) {
						for (cur = this[i]; cur && cur !== context; cur = cur.parentNode) {
	
							// Always skip document fragments
							if (cur.nodeType < 11 && (targets ? targets.index(cur) > -1 :
	
							// Don't pass non-elements to Sizzle
							cur.nodeType === 1 && jQuery.find.matchesSelector(cur, selectors))) {
	
								matched.push(cur);
								break;
							}
						}
					}
				}
	
				return this.pushStack(matched.length > 1 ? jQuery.uniqueSort(matched) : matched);
			},
	
			// Determine the position of an element within the set
			index: function index(elem) {
	
				// No argument, return index in parent
				if (!elem) {
					return this[0] && this[0].parentNode ? this.first().prevAll().length : -1;
				}
	
				// Index in selector
				if (typeof elem === "string") {
					return indexOf.call(jQuery(elem), this[0]);
				}
	
				// Locate the position of the desired element
				return indexOf.call(this,
	
				// If it receives a jQuery object, the first element is used
				elem.jquery ? elem[0] : elem);
			},
	
			add: function add(selector, context) {
				return this.pushStack(jQuery.uniqueSort(jQuery.merge(this.get(), jQuery(selector, context))));
			},
	
			addBack: function addBack(selector) {
				return this.add(selector == null ? this.prevObject : this.prevObject.filter(selector));
			}
		});
	
		function sibling(cur, dir) {
			while ((cur = cur[dir]) && cur.nodeType !== 1) {}
			return cur;
		}
	
		jQuery.each({
			parent: function parent(elem) {
				var parent = elem.parentNode;
				return parent && parent.nodeType !== 11 ? parent : null;
			},
			parents: function parents(elem) {
				return dir(elem, "parentNode");
			},
			parentsUntil: function parentsUntil(elem, _i, until) {
				return dir(elem, "parentNode", until);
			},
			next: function next(elem) {
				return sibling(elem, "nextSibling");
			},
			prev: function prev(elem) {
				return sibling(elem, "previousSibling");
			},
			nextAll: function nextAll(elem) {
				return dir(elem, "nextSibling");
			},
			prevAll: function prevAll(elem) {
				return dir(elem, "previousSibling");
			},
			nextUntil: function nextUntil(elem, _i, until) {
				return dir(elem, "nextSibling", until);
			},
			prevUntil: function prevUntil(elem, _i, until) {
				return dir(elem, "previousSibling", until);
			},
			siblings: function siblings(elem) {
				return _siblings((elem.parentNode || {}).firstChild, elem);
			},
			children: function children(elem) {
				return _siblings(elem.firstChild);
			},
			contents: function contents(elem) {
				if (elem.contentDocument != null &&
	
				// Support: IE 11+
				// <object> elements with no `data` attribute has an object
				// `contentDocument` with a `null` prototype.
				getProto(elem.contentDocument)) {
	
					return elem.contentDocument;
				}
	
				// Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only
				// Treat the template element as a regular one in browsers that
				// don't support it.
				if (nodeName(elem, "template")) {
					elem = elem.content || elem;
				}
	
				return jQuery.merge([], elem.childNodes);
			}
		}, function (name, fn) {
			jQuery.fn[name] = function (until, selector) {
				var matched = jQuery.map(this, fn, until);
	
				if (name.slice(-5) !== "Until") {
					selector = until;
				}
	
				if (selector && typeof selector === "string") {
					matched = jQuery.filter(selector, matched);
				}
	
				if (this.length > 1) {
	
					// Remove duplicates
					if (!guaranteedUnique[name]) {
						jQuery.uniqueSort(matched);
					}
	
					// Reverse order for parents* and prev-derivatives
					if (rparentsprev.test(name)) {
						matched.reverse();
					}
				}
	
				return this.pushStack(matched);
			};
		});
		var rnothtmlwhite = /[^\x20\t\r\n\f]+/g;
	
		// Convert String-formatted options into Object-formatted ones
		function createOptions(options) {
			var object = {};
			jQuery.each(options.match(rnothtmlwhite) || [], function (_, flag) {
				object[flag] = true;
			});
			return object;
		}
	
		/*
	  * Create a callback list using the following parameters:
	  *
	  *	options: an optional list of space-separated options that will change how
	  *			the callback list behaves or a more traditional option object
	  *
	  * By default a callback list will act like an event callback list and can be
	  * "fired" multiple times.
	  *
	  * Possible options:
	  *
	  *	once:			will ensure the callback list can only be fired once (like a Deferred)
	  *
	  *	memory:			will keep track of previous values and will call any callback added
	  *					after the list has been fired right away with the latest "memorized"
	  *					values (like a Deferred)
	  *
	  *	unique:			will ensure a callback can only be added once (no duplicate in the list)
	  *
	  *	stopOnFalse:	interrupt callings when a callback returns false
	  *
	  */
		jQuery.Callbacks = function (options) {
	
			// Convert options from String-formatted to Object-formatted if needed
			// (we check in cache first)
			options = typeof options === "string" ? createOptions(options) : jQuery.extend({}, options);
	
			var // Flag to know if list is currently firing
			firing,
	
	
			// Last fire value for non-forgettable lists
			memory,
	
	
			// Flag to know if list was already fired
			_fired,
	
	
			// Flag to prevent firing
			_locked,
	
	
			// Actual callback list
			list = [],
	
	
			// Queue of execution data for repeatable lists
			queue = [],
	
	
			// Index of currently firing callback (modified by add/remove as needed)
			firingIndex = -1,
	
	
			// Fire callbacks
			fire = function fire() {
	
				// Enforce single-firing
				_locked = _locked || options.once;
	
				// Execute callbacks for all pending executions,
				// respecting firingIndex overrides and runtime changes
				_fired = firing = true;
				for (; queue.length; firingIndex = -1) {
					memory = queue.shift();
					while (++firingIndex < list.length) {
	
						// Run callback and check for early termination
						if (list[firingIndex].apply(memory[0], memory[1]) === false && options.stopOnFalse) {
	
							// Jump to end and forget the data so .add doesn't re-fire
							firingIndex = list.length;
							memory = false;
						}
					}
				}
	
				// Forget the data if we're done with it
				if (!options.memory) {
					memory = false;
				}
	
				firing = false;
	
				// Clean up if we're done firing for good
				if (_locked) {
	
					// Keep an empty list if we have data for future add calls
					if (memory) {
						list = [];
	
						// Otherwise, this object is spent
					} else {
						list = "";
					}
				}
			},
	
	
			// Actual Callbacks object
			self = {
	
				// Add a callback or a collection of callbacks to the list
				add: function add() {
					if (list) {
	
						// If we have memory from a past run, we should fire after adding
						if (memory && !firing) {
							firingIndex = list.length - 1;
							queue.push(memory);
						}
	
						(function add(args) {
							jQuery.each(args, function (_, arg) {
								if (isFunction(arg)) {
									if (!options.unique || !self.has(arg)) {
										list.push(arg);
									}
								} else if (arg && arg.length && toType(arg) !== "string") {
	
									// Inspect recursively
									add(arg);
								}
							});
						})(arguments);
	
						if (memory && !firing) {
							fire();
						}
					}
					return this;
				},
	
				// Remove a callback from the list
				remove: function remove() {
					jQuery.each(arguments, function (_, arg) {
						var index;
						while ((index = jQuery.inArray(arg, list, index)) > -1) {
							list.splice(index, 1);
	
							// Handle firing indexes
							if (index <= firingIndex) {
								firingIndex--;
							}
						}
					});
					return this;
				},
	
				// Check if a given callback is in the list.
				// If no argument is given, return whether or not list has callbacks attached.
				has: function has(fn) {
					return fn ? jQuery.inArray(fn, list) > -1 : list.length > 0;
				},
	
				// Remove all callbacks from the list
				empty: function empty() {
					if (list) {
						list = [];
					}
					return this;
				},
	
				// Disable .fire and .add
				// Abort any current/pending executions
				// Clear all callbacks and values
				disable: function disable() {
					_locked = queue = [];
					list = memory = "";
					return this;
				},
				disabled: function disabled() {
					return !list;
				},
	
				// Disable .fire
				// Also disable .add unless we have memory (since it would have no effect)
				// Abort any pending executions
				lock: function lock() {
					_locked = queue = [];
					if (!memory && !firing) {
						list = memory = "";
					}
					return this;
				},
				locked: function locked() {
					return !!_locked;
				},
	
				// Call all callbacks with the given context and arguments
				fireWith: function fireWith(context, args) {
					if (!_locked) {
						args = args || [];
						args = [context, args.slice ? args.slice() : args];
						queue.push(args);
						if (!firing) {
							fire();
						}
					}
					return this;
				},
	
				// Call all the callbacks with the given arguments
				fire: function fire() {
					self.fireWith(this, arguments);
					return this;
				},
	
				// To know if the callbacks have already been called at least once
				fired: function fired() {
					return !!_fired;
				}
			};
	
			return self;
		};
	
		function Identity(v) {
			return v;
		}
		function Thrower(ex) {
			throw ex;
		}
	
		function adoptValue(value, resolve, reject, noValue) {
			var method;
	
			try {
	
				// Check for promise aspect first to privilege synchronous behavior
				if (value && isFunction(method = value.promise)) {
					method.call(value).done(resolve).fail(reject);
	
					// Other thenables
				} else if (value && isFunction(method = value.then)) {
					method.call(value, resolve, reject);
	
					// Other non-thenables
				} else {
	
					// Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer:
					// * false: [ value ].slice( 0 ) => resolve( value )
					// * true: [ value ].slice( 1 ) => resolve()
					resolve.apply(undefined, [value].slice(noValue));
				}
	
				// For Promises/A+, convert exceptions into rejections
				// Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in
				// Deferred#then to conditionally suppress rejection.
			} catch (value) {
	
				// Support: Android 4.0 only
				// Strict mode functions invoked without .call/.apply get global-object context
				reject.apply(undefined, [value]);
			}
		}
	
		jQuery.extend({
	
			Deferred: function Deferred(func) {
				var tuples = [
	
				// action, add listener, callbacks,
				// ... .then handlers, argument index, [final state]
				["notify", "progress", jQuery.Callbacks("memory"), jQuery.Callbacks("memory"), 2], ["resolve", "done", jQuery.Callbacks("once memory"), jQuery.Callbacks("once memory"), 0, "resolved"], ["reject", "fail", jQuery.Callbacks("once memory"), jQuery.Callbacks("once memory"), 1, "rejected"]],
				    _state = "pending",
				    _promise = {
					state: function state() {
						return _state;
					},
					always: function always() {
						deferred.done(arguments).fail(arguments);
						return this;
					},
					"catch": function _catch(fn) {
						return _promise.then(null, fn);
					},
	
					// Keep pipe for back-compat
					pipe: function pipe() /* fnDone, fnFail, fnProgress */{
						var fns = arguments;
	
						return jQuery.Deferred(function (newDefer) {
							jQuery.each(tuples, function (_i, tuple) {
	
								// Map tuples (progress, done, fail) to arguments (done, fail, progress)
								var fn = isFunction(fns[tuple[4]]) && fns[tuple[4]];
	
								// deferred.progress(function() { bind to newDefer or newDefer.notify })
								// deferred.done(function() { bind to newDefer or newDefer.resolve })
								// deferred.fail(function() { bind to newDefer or newDefer.reject })
								deferred[tuple[1]](function () {
									var returned = fn && fn.apply(this, arguments);
									if (returned && isFunction(returned.promise)) {
										returned.promise().progress(newDefer.notify).done(newDefer.resolve).fail(newDefer.reject);
									} else {
										newDefer[tuple[0] + "With"](this, fn ? [returned] : arguments);
									}
								});
							});
							fns = null;
						}).promise();
					},
					then: function then(onFulfilled, onRejected, onProgress) {
						var maxDepth = 0;
						function resolve(depth, deferred, handler, special) {
							return function () {
								var that = this,
								    args = arguments,
								    mightThrow = function mightThrow() {
									var returned, then;
	
									// Support: Promises/A+ section 2.3.3.3.3
									// https://promisesaplus.com/#point-59
									// Ignore double-resolution attempts
									if (depth < maxDepth) {
										return;
									}
	
									returned = handler.apply(that, args);
	
									// Support: Promises/A+ section 2.3.1
									// https://promisesaplus.com/#point-48
									if (returned === deferred.promise()) {
										throw new TypeError("Thenable self-resolution");
									}
	
									// Support: Promises/A+ sections 2.3.3.1, 3.5
									// https://promisesaplus.com/#point-54
									// https://promisesaplus.com/#point-75
									// Retrieve `then` only once
									then = returned && (
	
									// Support: Promises/A+ section 2.3.4
									// https://promisesaplus.com/#point-64
									// Only check objects and functions for thenability
									(typeof returned === "undefined" ? "undefined" : _typeof(returned)) === "object" || typeof returned === "function") && returned.then;
	
									// Handle a returned thenable
									if (isFunction(then)) {
	
										// Special processors (notify) just wait for resolution
										if (special) {
											then.call(returned, resolve(maxDepth, deferred, Identity, special), resolve(maxDepth, deferred, Thrower, special));
	
											// Normal processors (resolve) also hook into progress
										} else {
	
											// ...and disregard older resolution values
											maxDepth++;
	
											then.call(returned, resolve(maxDepth, deferred, Identity, special), resolve(maxDepth, deferred, Thrower, special), resolve(maxDepth, deferred, Identity, deferred.notifyWith));
										}
	
										// Handle all other returned values
									} else {
	
										// Only substitute handlers pass on context
										// and multiple values (non-spec behavior)
										if (handler !== Identity) {
											that = undefined;
											args = [returned];
										}
	
										// Process the value(s)
										// Default process is resolve
										(special || deferred.resolveWith)(that, args);
									}
								},
	
	
								// Only normal processors (resolve) catch and reject exceptions
								process = special ? mightThrow : function () {
									try {
										mightThrow();
									} catch (e) {
	
										if (jQuery.Deferred.exceptionHook) {
											jQuery.Deferred.exceptionHook(e, process.stackTrace);
										}
	
										// Support: Promises/A+ section 2.3.3.3.4.1
										// https://promisesaplus.com/#point-61
										// Ignore post-resolution exceptions
										if (depth + 1 >= maxDepth) {
	
											// Only substitute handlers pass on context
											// and multiple values (non-spec behavior)
											if (handler !== Thrower) {
												that = undefined;
												args = [e];
											}
	
											deferred.rejectWith(that, args);
										}
									}
								};
	
								// Support: Promises/A+ section 2.3.3.3.1
								// https://promisesaplus.com/#point-57
								// Re-resolve promises immediately to dodge false rejection from
								// subsequent errors
								if (depth) {
									process();
								} else {
	
									// Call an optional hook to record the stack, in case of exception
									// since it's otherwise lost when execution goes async
									if (jQuery.Deferred.getStackHook) {
										process.stackTrace = jQuery.Deferred.getStackHook();
									}
									window.setTimeout(process);
								}
							};
						}
	
						return jQuery.Deferred(function (newDefer) {
	
							// progress_handlers.add( ... )
							tuples[0][3].add(resolve(0, newDefer, isFunction(onProgress) ? onProgress : Identity, newDefer.notifyWith));
	
							// fulfilled_handlers.add( ... )
							tuples[1][3].add(resolve(0, newDefer, isFunction(onFulfilled) ? onFulfilled : Identity));
	
							// rejected_handlers.add( ... )
							tuples[2][3].add(resolve(0, newDefer, isFunction(onRejected) ? onRejected : Thrower));
						}).promise();
					},
	
					// Get a promise for this deferred
					// If obj is provided, the promise aspect is added to the object
					promise: function promise(obj) {
						return obj != null ? jQuery.extend(obj, _promise) : _promise;
					}
				},
				    deferred = {};
	
				// Add list-specific methods
				jQuery.each(tuples, function (i, tuple) {
					var list = tuple[2],
					    stateString = tuple[5];
	
					// promise.progress = list.add
					// promise.done = list.add
					// promise.fail = list.add
					_promise[tuple[1]] = list.add;
	
					// Handle state
					if (stateString) {
						list.add(function () {
	
							// state = "resolved" (i.e., fulfilled)
							// state = "rejected"
							_state = stateString;
						},
	
						// rejected_callbacks.disable
						// fulfilled_callbacks.disable
						tuples[3 - i][2].disable,
	
						// rejected_handlers.disable
						// fulfilled_handlers.disable
						tuples[3 - i][3].disable,
	
						// progress_callbacks.lock
						tuples[0][2].lock,
	
						// progress_handlers.lock
						tuples[0][3].lock);
					}
	
					// progress_handlers.fire
					// fulfilled_handlers.fire
					// rejected_handlers.fire
					list.add(tuple[3].fire);
	
					// deferred.notify = function() { deferred.notifyWith(...) }
					// deferred.resolve = function() { deferred.resolveWith(...) }
					// deferred.reject = function() { deferred.rejectWith(...) }
					deferred[tuple[0]] = function () {
						deferred[tuple[0] + "With"](this === deferred ? undefined : this, arguments);
						return this;
					};
	
					// deferred.notifyWith = list.fireWith
					// deferred.resolveWith = list.fireWith
					// deferred.rejectWith = list.fireWith
					deferred[tuple[0] + "With"] = list.fireWith;
				});
	
				// Make the deferred a promise
				_promise.promise(deferred);
	
				// Call given func if any
				if (func) {
					func.call(deferred, deferred);
				}
	
				// All done!
				return deferred;
			},
	
			// Deferred helper
			when: function when(singleValue) {
				var
	
				// count of uncompleted subordinates
				remaining = arguments.length,
	
	
				// count of unprocessed arguments
				i = remaining,
	
	
				// subordinate fulfillment data
				resolveContexts = Array(i),
				    resolveValues = _slice.call(arguments),
	
	
				// the master Deferred
				master = jQuery.Deferred(),
	
	
				// subordinate callback factory
				updateFunc = function updateFunc(i) {
					return function (value) {
						resolveContexts[i] = this;
						resolveValues[i] = arguments.length > 1 ? _slice.call(arguments) : value;
						if (! --remaining) {
							master.resolveWith(resolveContexts, resolveValues);
						}
					};
				};
	
				// Single- and empty arguments are adopted like Promise.resolve
				if (remaining <= 1) {
					adoptValue(singleValue, master.done(updateFunc(i)).resolve, master.reject, !remaining);
	
					// Use .then() to unwrap secondary thenables (cf. gh-3000)
					if (master.state() === "pending" || isFunction(resolveValues[i] && resolveValues[i].then)) {
	
						return master.then();
					}
				}
	
				// Multiple arguments are aggregated like Promise.all array elements
				while (i--) {
					adoptValue(resolveValues[i], updateFunc(i), master.reject);
				}
	
				return master.promise();
			}
		});
	
		// These usually indicate a programmer mistake during development,
		// warn about them ASAP rather than swallowing them by default.
		var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
	
		jQuery.Deferred.exceptionHook = function (error, stack) {
	
			// Support: IE 8 - 9 only
			// Console exists when dev tools are open, which can happen at any time
			if (window.console && window.console.warn && error && rerrorNames.test(error.name)) {
				window.console.warn("jQuery.Deferred exception: " + error.message, error.stack, stack);
			}
		};
	
		jQuery.readyException = function (error) {
			window.setTimeout(function () {
				throw error;
			});
		};
	
		// The deferred used on DOM ready
		var readyList = jQuery.Deferred();
	
		jQuery.fn.ready = function (fn) {
	
			readyList.then(fn)
	
			// Wrap jQuery.readyException in a function so that the lookup
			// happens at the time of error handling instead of callback
			// registration.
			.catch(function (error) {
				jQuery.readyException(error);
			});
	
			return this;
		};
	
		jQuery.extend({
	
			// Is the DOM ready to be used? Set to true once it occurs.
			isReady: false,
	
			// A counter to track how many items to wait for before
			// the ready event fires. See #6781
			readyWait: 1,
	
			// Handle when the DOM is ready
			ready: function ready(wait) {
	
				// Abort if there are pending holds or we're already ready
				if (wait === true ? --jQuery.readyWait : jQuery.isReady) {
					return;
				}
	
				// Remember that the DOM is ready
				jQuery.isReady = true;
	
				// If a normal DOM Ready event fired, decrement, and wait if need be
				if (wait !== true && --jQuery.readyWait > 0) {
					return;
				}
	
				// If there are functions bound, to execute
				readyList.resolveWith(document, [jQuery]);
			}
		});
	
		jQuery.ready.then = readyList.then;
	
		// The ready event handler and self cleanup method
		function completed() {
			document.removeEventListener("DOMContentLoaded", completed);
			window.removeEventListener("load", completed);
			jQuery.ready();
		}
	
		// Catch cases where $(document).ready() is called
		// after the browser event has already occurred.
		// Support: IE <=9 - 10 only
		// Older IE sometimes signals "interactive" too soon
		if (document.readyState === "complete" || document.readyState !== "loading" && !document.documentElement.doScroll) {
	
			// Handle it asynchronously to allow scripts the opportunity to delay ready
			window.setTimeout(jQuery.ready);
		} else {
	
			// Use the handy event callback
			document.addEventListener("DOMContentLoaded", completed);
	
			// A fallback to window.onload, that will always work
			window.addEventListener("load", completed);
		}
	
		// Multifunctional method to get and set values of a collection
		// The value/s can optionally be executed if it's a function
		var access = function access(elems, fn, key, value, chainable, emptyGet, raw) {
			var i = 0,
			    len = elems.length,
			    bulk = key == null;
	
			// Sets many values
			if (toType(key) === "object") {
				chainable = true;
				for (i in key) {
					access(elems, fn, i, key[i], true, emptyGet, raw);
				}
	
				// Sets one value
			} else if (value !== undefined) {
				chainable = true;
	
				if (!isFunction(value)) {
					raw = true;
				}
	
				if (bulk) {
	
					// Bulk operations run against the entire set
					if (raw) {
						fn.call(elems, value);
						fn = null;
	
						// ...except when executing function values
					} else {
						bulk = fn;
						fn = function fn(elem, _key, value) {
							return bulk.call(jQuery(elem), value);
						};
					}
				}
	
				if (fn) {
					for (; i < len; i++) {
						fn(elems[i], key, raw ? value : value.call(elems[i], i, fn(elems[i], key)));
					}
				}
			}
	
			if (chainable) {
				return elems;
			}
	
			// Gets
			if (bulk) {
				return fn.call(elems);
			}
	
			return len ? fn(elems[0], key) : emptyGet;
		};
	
		// Matches dashed string for camelizing
		var rmsPrefix = /^-ms-/,
		    rdashAlpha = /-([a-z])/g;
	
		// Used by camelCase as callback to replace()
		function fcamelCase(_all, letter) {
			return letter.toUpperCase();
		}
	
		// Convert dashed to camelCase; used by the css and data modules
		// Support: IE <=9 - 11, Edge 12 - 15
		// Microsoft forgot to hump their vendor prefix (#9572)
		function camelCase(string) {
			return string.replace(rmsPrefix, "ms-").replace(rdashAlpha, fcamelCase);
		}
		var acceptData = function acceptData(owner) {
	
			// Accepts only:
			//  - Node
			//    - Node.ELEMENT_NODE
			//    - Node.DOCUMENT_NODE
			//  - Object
			//    - Any
			return owner.nodeType === 1 || owner.nodeType === 9 || !+owner.nodeType;
		};
	
		function Data() {
			this.expando = jQuery.expando + Data.uid++;
		}
	
		Data.uid = 1;
	
		Data.prototype = {
	
			cache: function cache(owner) {
	
				// Check if the owner object already has a cache
				var value = owner[this.expando];
	
				// If not, create one
				if (!value) {
					value = {};
	
					// We can accept data for non-element nodes in modern browsers,
					// but we should not, see #8335.
					// Always return an empty object.
					if (acceptData(owner)) {
	
						// If it is a node unlikely to be stringify-ed or looped over
						// use plain assignment
						if (owner.nodeType) {
							owner[this.expando] = value;
	
							// Otherwise secure it in a non-enumerable property
							// configurable must be true to allow the property to be
							// deleted when data is removed
						} else {
							Object.defineProperty(owner, this.expando, {
								value: value,
								configurable: true
							});
						}
					}
				}
	
				return value;
			},
			set: function set(owner, data, value) {
				var prop,
				    cache = this.cache(owner);
	
				// Handle: [ owner, key, value ] args
				// Always use camelCase key (gh-2257)
				if (typeof data === "string") {
					cache[camelCase(data)] = value;
	
					// Handle: [ owner, { properties } ] args
				} else {
	
					// Copy the properties one-by-one to the cache object
					for (prop in data) {
						cache[camelCase(prop)] = data[prop];
					}
				}
				return cache;
			},
			get: function get(owner, key) {
				return key === undefined ? this.cache(owner) :
	
				// Always use camelCase key (gh-2257)
				owner[this.expando] && owner[this.expando][camelCase(key)];
			},
			access: function access(owner, key, value) {
	
				// In cases where either:
				//
				//   1. No key was specified
				//   2. A string key was specified, but no value provided
				//
				// Take the "read" path and allow the get method to determine
				// which value to return, respectively either:
				//
				//   1. The entire cache object
				//   2. The data stored at the key
				//
				if (key === undefined || key && typeof key === "string" && value === undefined) {
	
					return this.get(owner, key);
				}
	
				// When the key is not a string, or both a key and value
				// are specified, set or extend (existing objects) with either:
				//
				//   1. An object of properties
				//   2. A key and value
				//
				this.set(owner, key, value);
	
				// Since the "set" path can have two possible entry points
				// return the expected data based on which path was taken[*]
				return value !== undefined ? value : key;
			},
			remove: function remove(owner, key) {
				var i,
				    cache = owner[this.expando];
	
				if (cache === undefined) {
					return;
				}
	
				if (key !== undefined) {
	
					// Support array or space separated string of keys
					if (Array.isArray(key)) {
	
						// If key is an array of keys...
						// We always set camelCase keys, so remove that.
						key = key.map(camelCase);
					} else {
						key = camelCase(key);
	
						// If a key with the spaces exists, use it.
						// Otherwise, create an array by matching non-whitespace
						key = key in cache ? [key] : key.match(rnothtmlwhite) || [];
					}
	
					i = key.length;
	
					while (i--) {
						delete cache[key[i]];
					}
				}
	
				// Remove the expando if there's no more data
				if (key === undefined || jQuery.isEmptyObject(cache)) {
	
					// Support: Chrome <=35 - 45
					// Webkit & Blink performance suffers when deleting properties
					// from DOM nodes, so set to undefined instead
					// https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)
					if (owner.nodeType) {
						owner[this.expando] = undefined;
					} else {
						delete owner[this.expando];
					}
				}
			},
			hasData: function hasData(owner) {
				var cache = owner[this.expando];
				return cache !== undefined && !jQuery.isEmptyObject(cache);
			}
		};
		var dataPriv = new Data();
	
		var dataUser = new Data();
	
		//	Implementation Summary
		//
		//	1. Enforce API surface and semantic compatibility with 1.9.x branch
		//	2. Improve the module's maintainability by reducing the storage
		//		paths to a single mechanism.
		//	3. Use the same single mechanism to support "private" and "user" data.
		//	4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData)
		//	5. Avoid exposing implementation details on user objects (eg. expando properties)
		//	6. Provide a clear path for implementation upgrade to WeakMap in 2014
	
		var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
		    rmultiDash = /[A-Z]/g;
	
		function getData(data) {
			if (data === "true") {
				return true;
			}
	
			if (data === "false") {
				return false;
			}
	
			if (data === "null") {
				return null;
			}
	
			// Only convert to a number if it doesn't change the string
			if (data === +data + "") {
				return +data;
			}
	
			if (rbrace.test(data)) {
				return JSON.parse(data);
			}
	
			return data;
		}
	
		function dataAttr(elem, key, data) {
			var name;
	
			// If nothing was found internally, try to fetch any
			// data from the HTML5 data-* attribute
			if (data === undefined && elem.nodeType === 1) {
				name = "data-" + key.replace(rmultiDash, "-$&").toLowerCase();
				data = elem.getAttribute(name);
	
				if (typeof data === "string") {
					try {
						data = getData(data);
					} catch (e) {}
	
					// Make sure we set the data so it isn't changed later
					dataUser.set(elem, key, data);
				} else {
					data = undefined;
				}
			}
			return data;
		}
	
		jQuery.extend({
			hasData: function hasData(elem) {
				return dataUser.hasData(elem) || dataPriv.hasData(elem);
			},
	
			data: function data(elem, name, _data) {
				return dataUser.access(elem, name, _data);
			},
	
			removeData: function removeData(elem, name) {
				dataUser.remove(elem, name);
			},
	
			// TODO: Now that all calls to _data and _removeData have been replaced
			// with direct calls to dataPriv methods, these can be deprecated.
			_data: function _data(elem, name, data) {
				return dataPriv.access(elem, name, data);
			},
	
			_removeData: function _removeData(elem, name) {
				dataPriv.remove(elem, name);
			}
		});
	
		jQuery.fn.extend({
			data: function data(key, value) {
				var i,
				    name,
				    data,
				    elem = this[0],
				    attrs = elem && elem.attributes;
	
				// Gets all values
				if (key === undefined) {
					if (this.length) {
						data = dataUser.get(elem);
	
						if (elem.nodeType === 1 && !dataPriv.get(elem, "hasDataAttrs")) {
							i = attrs.length;
							while (i--) {
	
								// Support: IE 11 only
								// The attrs elements can be null (#14894)
								if (attrs[i]) {
									name = attrs[i].name;
									if (name.indexOf("data-") === 0) {
										name = camelCase(name.slice(5));
										dataAttr(elem, name, data[name]);
									}
								}
							}
							dataPriv.set(elem, "hasDataAttrs", true);
						}
					}
	
					return data;
				}
	
				// Sets multiple values
				if ((typeof key === "undefined" ? "undefined" : _typeof(key)) === "object") {
					return this.each(function () {
						dataUser.set(this, key);
					});
				}
	
				return access(this, function (value) {
					var data;
	
					// The calling jQuery object (element matches) is not empty
					// (and therefore has an element appears at this[ 0 ]) and the
					// `value` parameter was not undefined. An empty jQuery object
					// will result in `undefined` for elem = this[ 0 ] which will
					// throw an exception if an attempt to read a data cache is made.
					if (elem && value === undefined) {
	
						// Attempt to get data from the cache
						// The key will always be camelCased in Data
						data = dataUser.get(elem, key);
						if (data !== undefined) {
							return data;
						}
	
						// Attempt to "discover" the data in
						// HTML5 custom data-* attrs
						data = dataAttr(elem, key);
						if (data !== undefined) {
							return data;
						}
	
						// We tried really hard, but the data doesn't exist.
						return;
					}
	
					// Set the data...
					this.each(function () {
	
						// We always store the camelCased key
						dataUser.set(this, key, value);
					});
				}, null, value, arguments.length > 1, null, true);
			},
	
			removeData: function removeData(key) {
				return this.each(function () {
					dataUser.remove(this, key);
				});
			}
		});
	
		jQuery.extend({
			queue: function queue(elem, type, data) {
				var queue;
	
				if (elem) {
					type = (type || "fx") + "queue";
					queue = dataPriv.get(elem, type);
	
					// Speed up dequeue by getting out quickly if this is just a lookup
					if (data) {
						if (!queue || Array.isArray(data)) {
							queue = dataPriv.access(elem, type, jQuery.makeArray(data));
						} else {
							queue.push(data);
						}
					}
					return queue || [];
				}
			},
	
			dequeue: function dequeue(elem, type) {
				type = type || "fx";
	
				var queue = jQuery.queue(elem, type),
				    startLength = queue.length,
				    fn = queue.shift(),
				    hooks = jQuery._queueHooks(elem, type),
				    next = function next() {
					jQuery.dequeue(elem, type);
				};
	
				// If the fx queue is dequeued, always remove the progress sentinel
				if (fn === "inprogress") {
					fn = queue.shift();
					startLength--;
				}
	
				if (fn) {
	
					// Add a progress sentinel to prevent the fx queue from being
					// automatically dequeued
					if (type === "fx") {
						queue.unshift("inprogress");
					}
	
					// Clear up the last queue stop function
					delete hooks.stop;
					fn.call(elem, next, hooks);
				}
	
				if (!startLength && hooks) {
					hooks.empty.fire();
				}
			},
	
			// Not public - generate a queueHooks object, or return the current one
			_queueHooks: function _queueHooks(elem, type) {
				var key = type + "queueHooks";
				return dataPriv.get(elem, key) || dataPriv.access(elem, key, {
					empty: jQuery.Callbacks("once memory").add(function () {
						dataPriv.remove(elem, [type + "queue", key]);
					})
				});
			}
		});
	
		jQuery.fn.extend({
			queue: function queue(type, data) {
				var setter = 2;
	
				if (typeof type !== "string") {
					data = type;
					type = "fx";
					setter--;
				}
	
				if (arguments.length < setter) {
					return jQuery.queue(this[0], type);
				}
	
				return data === undefined ? this : this.each(function () {
					var queue = jQuery.queue(this, type, data);
	
					// Ensure a hooks for this queue
					jQuery._queueHooks(this, type);
	
					if (type === "fx" && queue[0] !== "inprogress") {
						jQuery.dequeue(this, type);
					}
				});
			},
			dequeue: function dequeue(type) {
				return this.each(function () {
					jQuery.dequeue(this, type);
				});
			},
			clearQueue: function clearQueue(type) {
				return this.queue(type || "fx", []);
			},
	
			// Get a promise resolved when queues of a certain type
			// are emptied (fx is the type by default)
			promise: function promise(type, obj) {
				var tmp,
				    count = 1,
				    defer = jQuery.Deferred(),
				    elements = this,
				    i = this.length,
				    resolve = function resolve() {
					if (! --count) {
						defer.resolveWith(elements, [elements]);
					}
				};
	
				if (typeof type !== "string") {
					obj = type;
					type = undefined;
				}
				type = type || "fx";
	
				while (i--) {
					tmp = dataPriv.get(elements[i], type + "queueHooks");
					if (tmp && tmp.empty) {
						count++;
						tmp.empty.add(resolve);
					}
				}
				resolve();
				return defer.promise(obj);
			}
		});
		var pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source;
	
		var rcssNum = new RegExp("^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i");
	
		var cssExpand = ["Top", "Right", "Bottom", "Left"];
	
		var documentElement = document.documentElement;
	
		var isAttached = function isAttached(elem) {
			return jQuery.contains(elem.ownerDocument, elem);
		},
		    composed = { composed: true };
	
		// Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only
		// Check attachment across shadow DOM boundaries when possible (gh-3504)
		// Support: iOS 10.0-10.2 only
		// Early iOS 10 versions support `attachShadow` but not `getRootNode`,
		// leading to errors. We need to check for `getRootNode`.
		if (documentElement.getRootNode) {
			isAttached = function isAttached(elem) {
				return jQuery.contains(elem.ownerDocument, elem) || elem.getRootNode(composed) === elem.ownerDocument;
			};
		}
		var isHiddenWithinTree = function isHiddenWithinTree(elem, el) {
	
			// isHiddenWithinTree might be called from jQuery#filter function;
			// in that case, element will be second argument
			elem = el || elem;
	
			// Inline style trumps all
			return elem.style.display === "none" || elem.style.display === "" &&
	
			// Otherwise, check computed style
			// Support: Firefox <=43 - 45
			// Disconnected elements can have computed display: none, so first confirm that elem is
			// in the document.
			isAttached(elem) && jQuery.css(elem, "display") === "none";
		};
	
		function adjustCSS(elem, prop, valueParts, tween) {
			var adjusted,
			    scale,
			    maxIterations = 20,
			    currentValue = tween ? function () {
				return tween.cur();
			} : function () {
				return jQuery.css(elem, prop, "");
			},
			    initial = currentValue(),
			    unit = valueParts && valueParts[3] || (jQuery.cssNumber[prop] ? "" : "px"),
	
	
			// Starting value computation is required for potential unit mismatches
			initialInUnit = elem.nodeType && (jQuery.cssNumber[prop] || unit !== "px" && +initial) && rcssNum.exec(jQuery.css(elem, prop));
	
			if (initialInUnit && initialInUnit[3] !== unit) {
	
				// Support: Firefox <=54
				// Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144)
				initial = initial / 2;
	
				// Trust units reported by jQuery.css
				unit = unit || initialInUnit[3];
	
				// Iteratively approximate from a nonzero starting point
				initialInUnit = +initial || 1;
	
				while (maxIterations--) {
	
					// Evaluate and update our best guess (doubling guesses that zero out).
					// Finish if the scale equals or crosses 1 (making the old*new product non-positive).
					jQuery.style(elem, prop, initialInUnit + unit);
					if ((1 - scale) * (1 - (scale = currentValue() / initial || 0.5)) <= 0) {
						maxIterations = 0;
					}
					initialInUnit = initialInUnit / scale;
				}
	
				initialInUnit = initialInUnit * 2;
				jQuery.style(elem, prop, initialInUnit + unit);
	
				// Make sure we update the tween properties later on
				valueParts = valueParts || [];
			}
	
			if (valueParts) {
				initialInUnit = +initialInUnit || +initial || 0;
	
				// Apply relative offset (+=/-=) if specified
				adjusted = valueParts[1] ? initialInUnit + (valueParts[1] + 1) * valueParts[2] : +valueParts[2];
				if (tween) {
					tween.unit = unit;
					tween.start = initialInUnit;
					tween.end = adjusted;
				}
			}
			return adjusted;
		}
	
		var defaultDisplayMap = {};
	
		function getDefaultDisplay(elem) {
			var temp,
			    doc = elem.ownerDocument,
			    nodeName = elem.nodeName,
			    display = defaultDisplayMap[nodeName];
	
			if (display) {
				return display;
			}
	
			temp = doc.body.appendChild(doc.createElement(nodeName));
			display = jQuery.css(temp, "display");
	
			temp.parentNode.removeChild(temp);
	
			if (display === "none") {
				display = "block";
			}
			defaultDisplayMap[nodeName] = display;
	
			return display;
		}
	
		function showHide(elements, show) {
			var display,
			    elem,
			    values = [],
			    index = 0,
			    length = elements.length;
	
			// Determine new display value for elements that need to change
			for (; index < length; index++) {
				elem = elements[index];
				if (!elem.style) {
					continue;
				}
	
				display = elem.style.display;
				if (show) {
	
					// Since we force visibility upon cascade-hidden elements, an immediate (and slow)
					// check is required in this first loop unless we have a nonempty display value (either
					// inline or about-to-be-restored)
					if (display === "none") {
						values[index] = dataPriv.get(elem, "display") || null;
						if (!values[index]) {
							elem.style.display = "";
						}
					}
					if (elem.style.display === "" && isHiddenWithinTree(elem)) {
						values[index] = getDefaultDisplay(elem);
					}
				} else {
					if (display !== "none") {
						values[index] = "none";
	
						// Remember what we're overwriting
						dataPriv.set(elem, "display", display);
					}
				}
			}
	
			// Set the display of the elements in a second loop to avoid constant reflow
			for (index = 0; index < length; index++) {
				if (values[index] != null) {
					elements[index].style.display = values[index];
				}
			}
	
			return elements;
		}
	
		jQuery.fn.extend({
			show: function show() {
				return showHide(this, true);
			},
			hide: function hide() {
				return showHide(this);
			},
			toggle: function toggle(state) {
				if (typeof state === "boolean") {
					return state ? this.show() : this.hide();
				}
	
				return this.each(function () {
					if (isHiddenWithinTree(this)) {
						jQuery(this).show();
					} else {
						jQuery(this).hide();
					}
				});
			}
		});
		var rcheckableType = /^(?:checkbox|radio)$/i;
	
		var rtagName = /<([a-z][^\/\0>\x20\t\r\n\f]*)/i;
	
		var rscriptType = /^$|^module$|\/(?:java|ecma)script/i;
	
		(function () {
			var fragment = document.createDocumentFragment(),
			    div = fragment.appendChild(document.createElement("div")),
			    input = document.createElement("input");
	
			// Support: Android 4.0 - 4.3 only
			// Check state lost if the name is set (#11217)
			// Support: Windows Web Apps (WWA)
			// `name` and `type` must use .setAttribute for WWA (#14901)
			input.setAttribute("type", "radio");
			input.setAttribute("checked", "checked");
			input.setAttribute("name", "t");
	
			div.appendChild(input);
	
			// Support: Android <=4.1 only
			// Older WebKit doesn't clone checked state correctly in fragments
			support.checkClone = div.cloneNode(true).cloneNode(true).lastChild.checked;
	
			// Support: IE <=11 only
			// Make sure textarea (and checkbox) defaultValue is properly cloned
			div.innerHTML = "<textarea>x</textarea>";
			support.noCloneChecked = !!div.cloneNode(true).lastChild.defaultValue;
	
			// Support: IE <=9 only
			// IE <=9 replaces <option> tags with their contents when inserted outside of
			// the select element.
			div.innerHTML = "<option></option>";
			support.option = !!div.lastChild;
		})();
	
		// We have to close these tags to support XHTML (#13200)
		var wrapMap = {
	
			// XHTML parsers do not magically insert elements in the
			// same way that tag soup parsers do. So we cannot shorten
			// this by omitting <tbody> or other required elements.
			thead: [1, "<table>", "</table>"],
			col: [2, "<table><colgroup>", "</colgroup></table>"],
			tr: [2, "<table><tbody>", "</tbody></table>"],
			td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
	
			_default: [0, "", ""]
		};
	
		wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
		wrapMap.th = wrapMap.td;
	
		// Support: IE <=9 only
		if (!support.option) {
			wrapMap.optgroup = wrapMap.option = [1, "<select multiple='multiple'>", "</select>"];
		}
	
		function getAll(context, tag) {
	
			// Support: IE <=9 - 11 only
			// Use typeof to avoid zero-argument method invocation on host objects (#15151)
			var ret;
	
			if (typeof context.getElementsByTagName !== "undefined") {
				ret = context.getElementsByTagName(tag || "*");
			} else if (typeof context.querySelectorAll !== "undefined") {
				ret = context.querySelectorAll(tag || "*");
			} else {
				ret = [];
			}
	
			if (tag === undefined || tag && nodeName(context, tag)) {
				return jQuery.merge([context], ret);
			}
	
			return ret;
		}
	
		// Mark scripts as having already been evaluated
		function setGlobalEval(elems, refElements) {
			var i = 0,
			    l = elems.length;
	
			for (; i < l; i++) {
				dataPriv.set(elems[i], "globalEval", !refElements || dataPriv.get(refElements[i], "globalEval"));
			}
		}
	
		var rhtml = /<|&#?\w+;/;
	
		function buildFragment(elems, context, scripts, selection, ignored) {
			var elem,
			    tmp,
			    tag,
			    wrap,
			    attached,
			    j,
			    fragment = context.createDocumentFragment(),
			    nodes = [],
			    i = 0,
			    l = elems.length;
	
			for (; i < l; i++) {
				elem = elems[i];
	
				if (elem || elem === 0) {
	
					// Add nodes directly
					if (toType(elem) === "object") {
	
						// Support: Android <=4.0 only, PhantomJS 1 only
						// push.apply(_, arraylike) throws on ancient WebKit
						jQuery.merge(nodes, elem.nodeType ? [elem] : elem);
	
						// Convert non-html into a text node
					} else if (!rhtml.test(elem)) {
						nodes.push(context.createTextNode(elem));
	
						// Convert html into DOM nodes
					} else {
						tmp = tmp || fragment.appendChild(context.createElement("div"));
	
						// Deserialize a standard representation
						tag = (rtagName.exec(elem) || ["", ""])[1].toLowerCase();
						wrap = wrapMap[tag] || wrapMap._default;
						tmp.innerHTML = wrap[1] + jQuery.htmlPrefilter(elem) + wrap[2];
	
						// Descend through wrappers to the right content
						j = wrap[0];
						while (j--) {
							tmp = tmp.lastChild;
						}
	
						// Support: Android <=4.0 only, PhantomJS 1 only
						// push.apply(_, arraylike) throws on ancient WebKit
						jQuery.merge(nodes, tmp.childNodes);
	
						// Remember the top-level container
						tmp = fragment.firstChild;
	
						// Ensure the created nodes are orphaned (#12392)
						tmp.textContent = "";
					}
				}
			}
	
			// Remove wrapper from fragment
			fragment.textContent = "";
	
			i = 0;
			while (elem = nodes[i++]) {
	
				// Skip elements already in the context collection (trac-4087)
				if (selection && jQuery.inArray(elem, selection) > -1) {
					if (ignored) {
						ignored.push(elem);
					}
					continue;
				}
	
				attached = isAttached(elem);
	
				// Append to fragment
				tmp = getAll(fragment.appendChild(elem), "script");
	
				// Preserve script evaluation history
				if (attached) {
					setGlobalEval(tmp);
				}
	
				// Capture executables
				if (scripts) {
					j = 0;
					while (elem = tmp[j++]) {
						if (rscriptType.test(elem.type || "")) {
							scripts.push(elem);
						}
					}
				}
			}
	
			return fragment;
		}
	
		var rkeyEvent = /^key/,
		    rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
		    rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
	
		function returnTrue() {
			return true;
		}
	
		function returnFalse() {
			return false;
		}
	
		// Support: IE <=9 - 11+
		// focus() and blur() are asynchronous, except when they are no-op.
		// So expect focus to be synchronous when the element is already active,
		// and blur to be synchronous when the element is not already active.
		// (focus and blur are always synchronous in other supported browsers,
		// this just defines when we can count on it).
		function expectSync(elem, type) {
			return elem === safeActiveElement() === (type === "focus");
		}
	
		// Support: IE <=9 only
		// Accessing document.activeElement can throw unexpectedly
		// https://bugs.jquery.com/ticket/13393
		function safeActiveElement() {
			try {
				return document.activeElement;
			} catch (err) {}
		}
	
		function _on(elem, types, selector, data, fn, one) {
			var origFn, type;
	
			// Types can be a map of types/handlers
			if ((typeof types === "undefined" ? "undefined" : _typeof(types)) === "object") {
	
				// ( types-Object, selector, data )
				if (typeof selector !== "string") {
	
					// ( types-Object, data )
					data = data || selector;
					selector = undefined;
				}
				for (type in types) {
					_on(elem, type, selector, data, types[type], one);
				}
				return elem;
			}
	
			if (data == null && fn == null) {
	
				// ( types, fn )
				fn = selector;
				data = selector = undefined;
			} else if (fn == null) {
				if (typeof selector === "string") {
	
					// ( types, selector, fn )
					fn = data;
					data = undefined;
				} else {
	
					// ( types, data, fn )
					fn = data;
					data = selector;
					selector = undefined;
				}
			}
			if (fn === false) {
				fn = returnFalse;
			} else if (!fn) {
				return elem;
			}
	
			if (one === 1) {
				origFn = fn;
				fn = function fn(event) {
	
					// Can use an empty set, since event contains the info
					jQuery().off(event);
					return origFn.apply(this, arguments);
				};
	
				// Use same guid so caller can remove using origFn
				fn.guid = origFn.guid || (origFn.guid = jQuery.guid++);
			}
			return elem.each(function () {
				jQuery.event.add(this, types, fn, data, selector);
			});
		}
	
		/*
	  * Helper functions for managing events -- not part of the public interface.
	  * Props to Dean Edwards' addEvent library for many of the ideas.
	  */
		jQuery.event = {
	
			global: {},
	
			add: function add(elem, types, handler, data, selector) {
	
				var handleObjIn,
				    eventHandle,
				    tmp,
				    events,
				    t,
				    handleObj,
				    special,
				    handlers,
				    type,
				    namespaces,
				    origType,
				    elemData = dataPriv.get(elem);
	
				// Only attach events to objects that accept data
				if (!acceptData(elem)) {
					return;
				}
	
				// Caller can pass in an object of custom data in lieu of the handler
				if (handler.handler) {
					handleObjIn = handler;
					handler = handleObjIn.handler;
					selector = handleObjIn.selector;
				}
	
				// Ensure that invalid selectors throw exceptions at attach time
				// Evaluate against documentElement in case elem is a non-element node (e.g., document)
				if (selector) {
					jQuery.find.matchesSelector(documentElement, selector);
				}
	
				// Make sure that the handler has a unique ID, used to find/remove it later
				if (!handler.guid) {
					handler.guid = jQuery.guid++;
				}
	
				// Init the element's event structure and main handler, if this is the first
				if (!(events = elemData.events)) {
					events = elemData.events = Object.create(null);
				}
				if (!(eventHandle = elemData.handle)) {
					eventHandle = elemData.handle = function (e) {
	
						// Discard the second event of a jQuery.event.trigger() and
						// when an event is called after a page has unloaded
						return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ? jQuery.event.dispatch.apply(elem, arguments) : undefined;
					};
				}
	
				// Handle multiple events separated by a space
				types = (types || "").match(rnothtmlwhite) || [""];
				t = types.length;
				while (t--) {
					tmp = rtypenamespace.exec(types[t]) || [];
					type = origType = tmp[1];
					namespaces = (tmp[2] || "").split(".").sort();
	
					// There *must* be a type, no attaching namespace-only handlers
					if (!type) {
						continue;
					}
	
					// If event changes its type, use the special event handlers for the changed type
					special = jQuery.event.special[type] || {};
	
					// If selector defined, determine special event api type, otherwise given type
					type = (selector ? special.delegateType : special.bindType) || type;
	
					// Update special based on newly reset type
					special = jQuery.event.special[type] || {};
	
					// handleObj is passed to all event handlers
					handleObj = jQuery.extend({
						type: type,
						origType: origType,
						data: data,
						handler: handler,
						guid: handler.guid,
						selector: selector,
						needsContext: selector && jQuery.expr.match.needsContext.test(selector),
						namespace: namespaces.join(".")
					}, handleObjIn);
	
					// Init the event handler queue if we're the first
					if (!(handlers = events[type])) {
						handlers = events[type] = [];
						handlers.delegateCount = 0;
	
						// Only use addEventListener if the special events handler returns false
						if (!special.setup || special.setup.call(elem, data, namespaces, eventHandle) === false) {
	
							if (elem.addEventListener) {
								elem.addEventListener(type, eventHandle);
							}
						}
					}
	
					if (special.add) {
						special.add.call(elem, handleObj);
	
						if (!handleObj.handler.guid) {
							handleObj.handler.guid = handler.guid;
						}
					}
	
					// Add to the element's handler list, delegates in front
					if (selector) {
						handlers.splice(handlers.delegateCount++, 0, handleObj);
					} else {
						handlers.push(handleObj);
					}
	
					// Keep track of which events have ever been used, for event optimization
					jQuery.event.global[type] = true;
				}
			},
	
			// Detach an event or set of events from an element
			remove: function remove(elem, types, handler, selector, mappedTypes) {
	
				var j,
				    origCount,
				    tmp,
				    events,
				    t,
				    handleObj,
				    special,
				    handlers,
				    type,
				    namespaces,
				    origType,
				    elemData = dataPriv.hasData(elem) && dataPriv.get(elem);
	
				if (!elemData || !(events = elemData.events)) {
					return;
				}
	
				// Once for each type.namespace in types; type may be omitted
				types = (types || "").match(rnothtmlwhite) || [""];
				t = types.length;
				while (t--) {
					tmp = rtypenamespace.exec(types[t]) || [];
					type = origType = tmp[1];
					namespaces = (tmp[2] || "").split(".").sort();
	
					// Unbind all events (on this namespace, if provided) for the element
					if (!type) {
						for (type in events) {
							jQuery.event.remove(elem, type + types[t], handler, selector, true);
						}
						continue;
					}
	
					special = jQuery.event.special[type] || {};
					type = (selector ? special.delegateType : special.bindType) || type;
					handlers = events[type] || [];
					tmp = tmp[2] && new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)");
	
					// Remove matching events
					origCount = j = handlers.length;
					while (j--) {
						handleObj = handlers[j];
	
						if ((mappedTypes || origType === handleObj.origType) && (!handler || handler.guid === handleObj.guid) && (!tmp || tmp.test(handleObj.namespace)) && (!selector || selector === handleObj.selector || selector === "**" && handleObj.selector)) {
							handlers.splice(j, 1);
	
							if (handleObj.selector) {
								handlers.delegateCount--;
							}
							if (special.remove) {
								special.remove.call(elem, handleObj);
							}
						}
					}
	
					// Remove generic event handler if we removed something and no more handlers exist
					// (avoids potential for endless recursion during removal of special event handlers)
					if (origCount && !handlers.length) {
						if (!special.teardown || special.teardown.call(elem, namespaces, elemData.handle) === false) {
	
							jQuery.removeEvent(elem, type, elemData.handle);
						}
	
						delete events[type];
					}
				}
	
				// Remove data and the expando if it's no longer used
				if (jQuery.isEmptyObject(events)) {
					dataPriv.remove(elem, "handle events");
				}
			},
	
			dispatch: function dispatch(nativeEvent) {
	
				var i,
				    j,
				    ret,
				    matched,
				    handleObj,
				    handlerQueue,
				    args = new Array(arguments.length),
	
	
				// Make a writable jQuery.Event from the native event object
				event = jQuery.event.fix(nativeEvent),
				    handlers = (dataPriv.get(this, "events") || Object.create(null))[event.type] || [],
				    special = jQuery.event.special[event.type] || {};
	
				// Use the fix-ed jQuery.Event rather than the (read-only) native event
				args[0] = event;
	
				for (i = 1; i < arguments.length; i++) {
					args[i] = arguments[i];
				}
	
				event.delegateTarget = this;
	
				// Call the preDispatch hook for the mapped type, and let it bail if desired
				if (special.preDispatch && special.preDispatch.call(this, event) === false) {
					return;
				}
	
				// Determine handlers
				handlerQueue = jQuery.event.handlers.call(this, event, handlers);
	
				// Run delegates first; they may want to stop propagation beneath us
				i = 0;
				while ((matched = handlerQueue[i++]) && !event.isPropagationStopped()) {
					event.currentTarget = matched.elem;
	
					j = 0;
					while ((handleObj = matched.handlers[j++]) && !event.isImmediatePropagationStopped()) {
	
						// If the event is namespaced, then each handler is only invoked if it is
						// specially universal or its namespaces are a superset of the event's.
						if (!event.rnamespace || handleObj.namespace === false || event.rnamespace.test(handleObj.namespace)) {
	
							event.handleObj = handleObj;
							event.data = handleObj.data;
	
							ret = ((jQuery.event.special[handleObj.origType] || {}).handle || handleObj.handler).apply(matched.elem, args);
	
							if (ret !== undefined) {
								if ((event.result = ret) === false) {
									event.preventDefault();
									event.stopPropagation();
								}
							}
						}
					}
				}
	
				// Call the postDispatch hook for the mapped type
				if (special.postDispatch) {
					special.postDispatch.call(this, event);
				}
	
				return event.result;
			},
	
			handlers: function handlers(event, _handlers) {
				var i,
				    handleObj,
				    sel,
				    matchedHandlers,
				    matchedSelectors,
				    handlerQueue = [],
				    delegateCount = _handlers.delegateCount,
				    cur = event.target;
	
				// Find delegate handlers
				if (delegateCount &&
	
				// Support: IE <=9
				// Black-hole SVG <use> instance trees (trac-13180)
				cur.nodeType &&
	
				// Support: Firefox <=42
				// Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)
				// https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click
				// Support: IE 11 only
				// ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343)
				!(event.type === "click" && event.button >= 1)) {
	
					for (; cur !== this; cur = cur.parentNode || this) {
	
						// Don't check non-elements (#13208)
						// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
						if (cur.nodeType === 1 && !(event.type === "click" && cur.disabled === true)) {
							matchedHandlers = [];
							matchedSelectors = {};
							for (i = 0; i < delegateCount; i++) {
								handleObj = _handlers[i];
	
								// Don't conflict with Object.prototype properties (#13203)
								sel = handleObj.selector + " ";
	
								if (matchedSelectors[sel] === undefined) {
									matchedSelectors[sel] = handleObj.needsContext ? jQuery(sel, this).index(cur) > -1 : jQuery.find(sel, this, null, [cur]).length;
								}
								if (matchedSelectors[sel]) {
									matchedHandlers.push(handleObj);
								}
							}
							if (matchedHandlers.length) {
								handlerQueue.push({ elem: cur, handlers: matchedHandlers });
							}
						}
					}
				}
	
				// Add the remaining (directly-bound) handlers
				cur = this;
				if (delegateCount < _handlers.length) {
					handlerQueue.push({ elem: cur, handlers: _handlers.slice(delegateCount) });
				}
	
				return handlerQueue;
			},
	
			addProp: function addProp(name, hook) {
				Object.defineProperty(jQuery.Event.prototype, name, {
					enumerable: true,
					configurable: true,
	
					get: isFunction(hook) ? function () {
						if (this.originalEvent) {
							return hook(this.originalEvent);
						}
					} : function () {
						if (this.originalEvent) {
							return this.originalEvent[name];
						}
					},
	
					set: function set(value) {
						Object.defineProperty(this, name, {
							enumerable: true,
							configurable: true,
							writable: true,
							value: value
						});
					}
				});
			},
	
			fix: function fix(originalEvent) {
				return originalEvent[jQuery.expando] ? originalEvent : new jQuery.Event(originalEvent);
			},
	
			special: {
				load: {
	
					// Prevent triggered image.load events from bubbling to window.load
					noBubble: true
				},
				click: {
	
					// Utilize native event to ensure correct state for checkable inputs
					setup: function setup(data) {
	
						// For mutual compressibility with _default, replace `this` access with a local var.
						// `|| data` is dead code meant only to preserve the variable through minification.
						var el = this || data;
	
						// Claim the first handler
						if (rcheckableType.test(el.type) && el.click && nodeName(el, "input")) {
	
							// dataPriv.set( el, "click", ... )
							leverageNative(el, "click", returnTrue);
						}
	
						// Return false to allow normal processing in the caller
						return false;
					},
					trigger: function trigger(data) {
	
						// For mutual compressibility with _default, replace `this` access with a local var.
						// `|| data` is dead code meant only to preserve the variable through minification.
						var el = this || data;
	
						// Force setup before triggering a click
						if (rcheckableType.test(el.type) && el.click && nodeName(el, "input")) {
	
							leverageNative(el, "click");
						}
	
						// Return non-false to allow normal event-path propagation
						return true;
					},
	
					// For cross-browser consistency, suppress native .click() on links
					// Also prevent it if we're currently inside a leveraged native-event stack
					_default: function _default(event) {
						var target = event.target;
						return rcheckableType.test(target.type) && target.click && nodeName(target, "input") && dataPriv.get(target, "click") || nodeName(target, "a");
					}
				},
	
				beforeunload: {
					postDispatch: function postDispatch(event) {
	
						// Support: Firefox 20+
						// Firefox doesn't alert if the returnValue field is not set.
						if (event.result !== undefined && event.originalEvent) {
							event.originalEvent.returnValue = event.result;
						}
					}
				}
			}
		};
	
		// Ensure the presence of an event listener that handles manually-triggered
		// synthetic events by interrupting progress until reinvoked in response to
		// *native* events that it fires directly, ensuring that state changes have
		// already occurred before other listeners are invoked.
		function leverageNative(el, type, expectSync) {
	
			// Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add
			if (!expectSync) {
				if (dataPriv.get(el, type) === undefined) {
					jQuery.event.add(el, type, returnTrue);
				}
				return;
			}
	
			// Register the controller as a special universal handler for all event namespaces
			dataPriv.set(el, type, false);
			jQuery.event.add(el, type, {
				namespace: false,
				handler: function handler(event) {
					var notAsync,
					    result,
					    saved = dataPriv.get(this, type);
	
					if (event.isTrigger & 1 && this[type]) {
	
						// Interrupt processing of the outer synthetic .trigger()ed event
						// Saved data should be false in such cases, but might be a leftover capture object
						// from an async native handler (gh-4350)
						if (!saved.length) {
	
							// Store arguments for use when handling the inner native event
							// There will always be at least one argument (an event object), so this array
							// will not be confused with a leftover capture object.
							saved = _slice.call(arguments);
							dataPriv.set(this, type, saved);
	
							// Trigger the native event and capture its result
							// Support: IE <=9 - 11+
							// focus() and blur() are asynchronous
							notAsync = expectSync(this, type);
							this[type]();
							result = dataPriv.get(this, type);
							if (saved !== result || notAsync) {
								dataPriv.set(this, type, false);
							} else {
								result = {};
							}
							if (saved !== result) {
	
								// Cancel the outer synthetic event
								event.stopImmediatePropagation();
								event.preventDefault();
								return result.value;
							}
	
							// If this is an inner synthetic event for an event with a bubbling surrogate
							// (focus or blur), assume that the surrogate already propagated from triggering the
							// native event and prevent that from happening again here.
							// This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the
							// bubbling surrogate propagates *after* the non-bubbling base), but that seems
							// less bad than duplication.
						} else if ((jQuery.event.special[type] || {}).delegateType) {
							event.stopPropagation();
						}
	
						// If this is a native event triggered above, everything is now in order
						// Fire an inner synthetic event with the original arguments
					} else if (saved.length) {
	
						// ...and capture the result
						dataPriv.set(this, type, {
							value: jQuery.event.trigger(
	
							// Support: IE <=9 - 11+
							// Extend with the prototype to reset the above stopImmediatePropagation()
							jQuery.extend(saved[0], jQuery.Event.prototype), saved.slice(1), this)
						});
	
						// Abort handling of the native event
						event.stopImmediatePropagation();
					}
				}
			});
		}
	
		jQuery.removeEvent = function (elem, type, handle) {
	
			// This "if" is needed for plain objects
			if (elem.removeEventListener) {
				elem.removeEventListener(type, handle);
			}
		};
	
		jQuery.Event = function (src, props) {
	
			// Allow instantiation without the 'new' keyword
			if (!(this instanceof jQuery.Event)) {
				return new jQuery.Event(src, props);
			}
	
			// Event object
			if (src && src.type) {
				this.originalEvent = src;
				this.type = src.type;
	
				// Events bubbling up the document may have been marked as prevented
				// by a handler lower down the tree; reflect the correct value.
				this.isDefaultPrevented = src.defaultPrevented || src.defaultPrevented === undefined &&
	
				// Support: Android <=2.3 only
				src.returnValue === false ? returnTrue : returnFalse;
	
				// Create target properties
				// Support: Safari <=6 - 7 only
				// Target should not be a text node (#504, #13143)
				this.target = src.target && src.target.nodeType === 3 ? src.target.parentNode : src.target;
	
				this.currentTarget = src.currentTarget;
				this.relatedTarget = src.relatedTarget;
	
				// Event type
			} else {
				this.type = src;
			}
	
			// Put explicitly provided properties onto the event object
			if (props) {
				jQuery.extend(this, props);
			}
	
			// Create a timestamp if incoming event doesn't have one
			this.timeStamp = src && src.timeStamp || Date.now();
	
			// Mark it as fixed
			this[jQuery.expando] = true;
		};
	
		// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
		// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
		jQuery.Event.prototype = {
			constructor: jQuery.Event,
			isDefaultPrevented: returnFalse,
			isPropagationStopped: returnFalse,
			isImmediatePropagationStopped: returnFalse,
			isSimulated: false,
	
			preventDefault: function preventDefault() {
				var e = this.originalEvent;
	
				this.isDefaultPrevented = returnTrue;
	
				if (e && !this.isSimulated) {
					e.preventDefault();
				}
			},
			stopPropagation: function stopPropagation() {
				var e = this.originalEvent;
	
				this.isPropagationStopped = returnTrue;
	
				if (e && !this.isSimulated) {
					e.stopPropagation();
				}
			},
			stopImmediatePropagation: function stopImmediatePropagation() {
				var e = this.originalEvent;
	
				this.isImmediatePropagationStopped = returnTrue;
	
				if (e && !this.isSimulated) {
					e.stopImmediatePropagation();
				}
	
				this.stopPropagation();
			}
		};
	
		// Includes all common event props including KeyEvent and MouseEvent specific props
		jQuery.each({
			altKey: true,
			bubbles: true,
			cancelable: true,
			changedTouches: true,
			ctrlKey: true,
			detail: true,
			eventPhase: true,
			metaKey: true,
			pageX: true,
			pageY: true,
			shiftKey: true,
			view: true,
			"char": true,
			code: true,
			charCode: true,
			key: true,
			keyCode: true,
			button: true,
			buttons: true,
			clientX: true,
			clientY: true,
			offsetX: true,
			offsetY: true,
			pointerId: true,
			pointerType: true,
			screenX: true,
			screenY: true,
			targetTouches: true,
			toElement: true,
			touches: true,
	
			which: function which(event) {
				var button = event.button;
	
				// Add which for key events
				if (event.which == null && rkeyEvent.test(event.type)) {
					return event.charCode != null ? event.charCode : event.keyCode;
				}
	
				// Add which for click: 1 === left; 2 === middle; 3 === right
				if (!event.which && button !== undefined && rmouseEvent.test(event.type)) {
					if (button & 1) {
						return 1;
					}
	
					if (button & 2) {
						return 3;
					}
	
					if (button & 4) {
						return 2;
					}
	
					return 0;
				}
	
				return event.which;
			}
		}, jQuery.event.addProp);
	
		jQuery.each({ focus: "focusin", blur: "focusout" }, function (type, delegateType) {
			jQuery.event.special[type] = {
	
				// Utilize native event if possible so blur/focus sequence is correct
				setup: function setup() {
	
					// Claim the first handler
					// dataPriv.set( this, "focus", ... )
					// dataPriv.set( this, "blur", ... )
					leverageNative(this, type, expectSync);
	
					// Return false to allow normal processing in the caller
					return false;
				},
				trigger: function trigger() {
	
					// Force setup before trigger
					leverageNative(this, type);
	
					// Return non-false to allow normal event-path propagation
					return true;
				},
	
				delegateType: delegateType
			};
		});
	
		// Create mouseenter/leave events using mouseover/out and event-time checks
		// so that event delegation works in jQuery.
		// Do the same for pointerenter/pointerleave and pointerover/pointerout
		//
		// Support: Safari 7 only
		// Safari sends mouseenter too often; see:
		// https://bugs.chromium.org/p/chromium/issues/detail?id=470258
		// for the description of the bug (it existed in older Chrome versions as well).
		jQuery.each({
			mouseenter: "mouseover",
			mouseleave: "mouseout",
			pointerenter: "pointerover",
			pointerleave: "pointerout"
		}, function (orig, fix) {
			jQuery.event.special[orig] = {
				delegateType: fix,
				bindType: fix,
	
				handle: function handle(event) {
					var ret,
					    target = this,
					    related = event.relatedTarget,
					    handleObj = event.handleObj;
	
					// For mouseenter/leave call the handler if related is outside the target.
					// NB: No relatedTarget if the mouse left/entered the browser window
					if (!related || related !== target && !jQuery.contains(target, related)) {
						event.type = handleObj.origType;
						ret = handleObj.handler.apply(this, arguments);
						event.type = fix;
					}
					return ret;
				}
			};
		});
	
		jQuery.fn.extend({
	
			on: function on(types, selector, data, fn) {
				return _on(this, types, selector, data, fn);
			},
			one: function one(types, selector, data, fn) {
				return _on(this, types, selector, data, fn, 1);
			},
			off: function off(types, selector, fn) {
				var handleObj, type;
				if (types && types.preventDefault && types.handleObj) {
	
					// ( event )  dispatched jQuery.Event
					handleObj = types.handleObj;
					jQuery(types.delegateTarget).off(handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, handleObj.selector, handleObj.handler);
					return this;
				}
				if ((typeof types === "undefined" ? "undefined" : _typeof(types)) === "object") {
	
					// ( types-object [, selector] )
					for (type in types) {
						this.off(type, selector, types[type]);
					}
					return this;
				}
				if (selector === false || typeof selector === "function") {
	
					// ( types [, fn] )
					fn = selector;
					selector = undefined;
				}
				if (fn === false) {
					fn = returnFalse;
				}
				return this.each(function () {
					jQuery.event.remove(this, types, fn, selector);
				});
			}
		});
	
		var
	
		// Support: IE <=10 - 11, Edge 12 - 13 only
		// In IE/Edge using regex groups here causes severe slowdowns.
		// See https://connect.microsoft.com/IE/feedback/details/1736512/
		rnoInnerhtml = /<script|<style|<link/i,
	
	
		// checked="checked" or checked
		rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
		    rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
	
		// Prefer a tbody over its parent table for containing new rows
		function manipulationTarget(elem, content) {
			if (nodeName(elem, "table") && nodeName(content.nodeType !== 11 ? content : content.firstChild, "tr")) {
	
				return jQuery(elem).children("tbody")[0] || elem;
			}
	
			return elem;
		}
	
		// Replace/restore the type attribute of script elements for safe DOM manipulation
		function disableScript(elem) {
			elem.type = (elem.getAttribute("type") !== null) + "/" + elem.type;
			return elem;
		}
		function restoreScript(elem) {
			if ((elem.type || "").slice(0, 5) === "true/") {
				elem.type = elem.type.slice(5);
			} else {
				elem.removeAttribute("type");
			}
	
			return elem;
		}
	
		function cloneCopyEvent(src, dest) {
			var i, l, type, pdataOld, udataOld, udataCur, events;
	
			if (dest.nodeType !== 1) {
				return;
			}
	
			// 1. Copy private data: events, handlers, etc.
			if (dataPriv.hasData(src)) {
				pdataOld = dataPriv.get(src);
				events = pdataOld.events;
	
				if (events) {
					dataPriv.remove(dest, "handle events");
	
					for (type in events) {
						for (i = 0, l = events[type].length; i < l; i++) {
							jQuery.event.add(dest, type, events[type][i]);
						}
					}
				}
			}
	
			// 2. Copy user data
			if (dataUser.hasData(src)) {
				udataOld = dataUser.access(src);
				udataCur = jQuery.extend({}, udataOld);
	
				dataUser.set(dest, udataCur);
			}
		}
	
		// Fix IE bugs, see support tests
		function fixInput(src, dest) {
			var nodeName = dest.nodeName.toLowerCase();
	
			// Fails to persist the checked state of a cloned checkbox or radio button.
			if (nodeName === "input" && rcheckableType.test(src.type)) {
				dest.checked = src.checked;
	
				// Fails to return the selected option to the default selected state when cloning options
			} else if (nodeName === "input" || nodeName === "textarea") {
				dest.defaultValue = src.defaultValue;
			}
		}
	
		function domManip(collection, args, callback, ignored) {
	
			// Flatten any nested arrays
			args = flat(args);
	
			var fragment,
			    first,
			    scripts,
			    hasScripts,
			    node,
			    doc,
			    i = 0,
			    l = collection.length,
			    iNoClone = l - 1,
			    value = args[0],
			    valueIsFunction = isFunction(value);
	
			// We can't cloneNode fragments that contain checked, in WebKit
			if (valueIsFunction || l > 1 && typeof value === "string" && !support.checkClone && rchecked.test(value)) {
				return collection.each(function (index) {
					var self = collection.eq(index);
					if (valueIsFunction) {
						args[0] = value.call(this, index, self.html());
					}
					domManip(self, args, callback, ignored);
				});
			}
	
			if (l) {
				fragment = buildFragment(args, collection[0].ownerDocument, false, collection, ignored);
				first = fragment.firstChild;
	
				if (fragment.childNodes.length === 1) {
					fragment = first;
				}
	
				// Require either new content or an interest in ignored elements to invoke the callback
				if (first || ignored) {
					scripts = jQuery.map(getAll(fragment, "script"), disableScript);
					hasScripts = scripts.length;
	
					// Use the original fragment for the last item
					// instead of the first because it can end up
					// being emptied incorrectly in certain situations (#8070).
					for (; i < l; i++) {
						node = fragment;
	
						if (i !== iNoClone) {
							node = jQuery.clone(node, true, true);
	
							// Keep references to cloned scripts for later restoration
							if (hasScripts) {
	
								// Support: Android <=4.0 only, PhantomJS 1 only
								// push.apply(_, arraylike) throws on ancient WebKit
								jQuery.merge(scripts, getAll(node, "script"));
							}
						}
	
						callback.call(collection[i], node, i);
					}
	
					if (hasScripts) {
						doc = scripts[scripts.length - 1].ownerDocument;
	
						// Reenable scripts
						jQuery.map(scripts, restoreScript);
	
						// Evaluate executable scripts on first document insertion
						for (i = 0; i < hasScripts; i++) {
							node = scripts[i];
							if (rscriptType.test(node.type || "") && !dataPriv.access(node, "globalEval") && jQuery.contains(doc, node)) {
	
								if (node.src && (node.type || "").toLowerCase() !== "module") {
	
									// Optional AJAX dependency, but won't run scripts if not present
									if (jQuery._evalUrl && !node.noModule) {
										jQuery._evalUrl(node.src, {
											nonce: node.nonce || node.getAttribute("nonce")
										}, doc);
									}
								} else {
									DOMEval(node.textContent.replace(rcleanScript, ""), node, doc);
								}
							}
						}
					}
				}
			}
	
			return collection;
		}
	
		function _remove(elem, selector, keepData) {
			var node,
			    nodes = selector ? jQuery.filter(selector, elem) : elem,
			    i = 0;
	
			for (; (node = nodes[i]) != null; i++) {
				if (!keepData && node.nodeType === 1) {
					jQuery.cleanData(getAll(node));
				}
	
				if (node.parentNode) {
					if (keepData && isAttached(node)) {
						setGlobalEval(getAll(node, "script"));
					}
					node.parentNode.removeChild(node);
				}
			}
	
			return elem;
		}
	
		jQuery.extend({
			htmlPrefilter: function htmlPrefilter(html) {
				return html;
			},
	
			clone: function clone(elem, dataAndEvents, deepDataAndEvents) {
				var i,
				    l,
				    srcElements,
				    destElements,
				    clone = elem.cloneNode(true),
				    inPage = isAttached(elem);
	
				// Fix IE cloning issues
				if (!support.noCloneChecked && (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem)) {
	
					// We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2
					destElements = getAll(clone);
					srcElements = getAll(elem);
	
					for (i = 0, l = srcElements.length; i < l; i++) {
						fixInput(srcElements[i], destElements[i]);
					}
				}
	
				// Copy the events from the original to the clone
				if (dataAndEvents) {
					if (deepDataAndEvents) {
						srcElements = srcElements || getAll(elem);
						destElements = destElements || getAll(clone);
	
						for (i = 0, l = srcElements.length; i < l; i++) {
							cloneCopyEvent(srcElements[i], destElements[i]);
						}
					} else {
						cloneCopyEvent(elem, clone);
					}
				}
	
				// Preserve script evaluation history
				destElements = getAll(clone, "script");
				if (destElements.length > 0) {
					setGlobalEval(destElements, !inPage && getAll(elem, "script"));
				}
	
				// Return the cloned set
				return clone;
			},
	
			cleanData: function cleanData(elems) {
				var data,
				    elem,
				    type,
				    special = jQuery.event.special,
				    i = 0;
	
				for (; (elem = elems[i]) !== undefined; i++) {
					if (acceptData(elem)) {
						if (data = elem[dataPriv.expando]) {
							if (data.events) {
								for (type in data.events) {
									if (special[type]) {
										jQuery.event.remove(elem, type);
	
										// This is a shortcut to avoid jQuery.event.remove's overhead
									} else {
										jQuery.removeEvent(elem, type, data.handle);
									}
								}
							}
	
							// Support: Chrome <=35 - 45+
							// Assign undefined instead of using delete, see Data#remove
							elem[dataPriv.expando] = undefined;
						}
						if (elem[dataUser.expando]) {
	
							// Support: Chrome <=35 - 45+
							// Assign undefined instead of using delete, see Data#remove
							elem[dataUser.expando] = undefined;
						}
					}
				}
			}
		});
	
		jQuery.fn.extend({
			detach: function detach(selector) {
				return _remove(this, selector, true);
			},
	
			remove: function remove(selector) {
				return _remove(this, selector);
			},
	
			text: function text(value) {
				return access(this, function (value) {
					return value === undefined ? jQuery.text(this) : this.empty().each(function () {
						if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
							this.textContent = value;
						}
					});
				}, null, value, arguments.length);
			},
	
			append: function append() {
				return domManip(this, arguments, function (elem) {
					if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
						var target = manipulationTarget(this, elem);
						target.appendChild(elem);
					}
				});
			},
	
			prepend: function prepend() {
				return domManip(this, arguments, function (elem) {
					if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
						var target = manipulationTarget(this, elem);
						target.insertBefore(elem, target.firstChild);
					}
				});
			},
	
			before: function before() {
				return domManip(this, arguments, function (elem) {
					if (this.parentNode) {
						this.parentNode.insertBefore(elem, this);
					}
				});
			},
	
			after: function after() {
				return domManip(this, arguments, function (elem) {
					if (this.parentNode) {
						this.parentNode.insertBefore(elem, this.nextSibling);
					}
				});
			},
	
			empty: function empty() {
				var elem,
				    i = 0;
	
				for (; (elem = this[i]) != null; i++) {
					if (elem.nodeType === 1) {
	
						// Prevent memory leaks
						jQuery.cleanData(getAll(elem, false));
	
						// Remove any remaining nodes
						elem.textContent = "";
					}
				}
	
				return this;
			},
	
			clone: function clone(dataAndEvents, deepDataAndEvents) {
				dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
				deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
	
				return this.map(function () {
					return jQuery.clone(this, dataAndEvents, deepDataAndEvents);
				});
			},
	
			html: function html(value) {
				return access(this, function (value) {
					var elem = this[0] || {},
					    i = 0,
					    l = this.length;
	
					if (value === undefined && elem.nodeType === 1) {
						return elem.innerHTML;
					}
	
					// See if we can take a shortcut and just use innerHTML
					if (typeof value === "string" && !rnoInnerhtml.test(value) && !wrapMap[(rtagName.exec(value) || ["", ""])[1].toLowerCase()]) {
	
						value = jQuery.htmlPrefilter(value);
	
						try {
							for (; i < l; i++) {
								elem = this[i] || {};
	
								// Remove element nodes and prevent memory leaks
								if (elem.nodeType === 1) {
									jQuery.cleanData(getAll(elem, false));
									elem.innerHTML = value;
								}
							}
	
							elem = 0;
	
							// If using innerHTML throws an exception, use the fallback method
						} catch (e) {}
					}
	
					if (elem) {
						this.empty().append(value);
					}
				}, null, value, arguments.length);
			},
	
			replaceWith: function replaceWith() {
				var ignored = [];
	
				// Make the changes, replacing each non-ignored context element with the new content
				return domManip(this, arguments, function (elem) {
					var parent = this.parentNode;
	
					if (jQuery.inArray(this, ignored) < 0) {
						jQuery.cleanData(getAll(this));
						if (parent) {
							parent.replaceChild(elem, this);
						}
					}
	
					// Force callback invocation
				}, ignored);
			}
		});
	
		jQuery.each({
			appendTo: "append",
			prependTo: "prepend",
			insertBefore: "before",
			insertAfter: "after",
			replaceAll: "replaceWith"
		}, function (name, original) {
			jQuery.fn[name] = function (selector) {
				var elems,
				    ret = [],
				    insert = jQuery(selector),
				    last = insert.length - 1,
				    i = 0;
	
				for (; i <= last; i++) {
					elems = i === last ? this : this.clone(true);
					jQuery(insert[i])[original](elems);
	
					// Support: Android <=4.0 only, PhantomJS 1 only
					// .get() because push.apply(_, arraylike) throws on ancient WebKit
					push.apply(ret, elems.get());
				}
	
				return this.pushStack(ret);
			};
		});
		var rnumnonpx = new RegExp("^(" + pnum + ")(?!px)[a-z%]+$", "i");
	
		var getStyles = function getStyles(elem) {
	
			// Support: IE <=11 only, Firefox <=30 (#15098, #14150)
			// IE throws on elements created in popups
			// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
			var view = elem.ownerDocument.defaultView;
	
			if (!view || !view.opener) {
				view = window;
			}
	
			return view.getComputedStyle(elem);
		};
	
		var swap = function swap(elem, options, callback) {
			var ret,
			    name,
			    old = {};
	
			// Remember the old values, and insert the new ones
			for (name in options) {
				old[name] = elem.style[name];
				elem.style[name] = options[name];
			}
	
			ret = callback.call(elem);
	
			// Revert the old values
			for (name in options) {
				elem.style[name] = old[name];
			}
	
			return ret;
		};
	
		var rboxStyle = new RegExp(cssExpand.join("|"), "i");
	
		(function () {
	
			// Executing both pixelPosition & boxSizingReliable tests require only one layout
			// so they're executed at the same time to save the second computation.
			function computeStyleTests() {
	
				// This is a singleton, we need to execute it only once
				if (!div) {
					return;
				}
	
				container.style.cssText = "position:absolute;left:-11111px;width:60px;" + "margin-top:1px;padding:0;border:0";
				div.style.cssText = "position:relative;display:block;box-sizing:border-box;overflow:scroll;" + "margin:auto;border:1px;padding:1px;" + "width:60%;top:1%";
				documentElement.appendChild(container).appendChild(div);
	
				var divStyle = window.getComputedStyle(div);
				pixelPositionVal = divStyle.top !== "1%";
	
				// Support: Android 4.0 - 4.3 only, Firefox <=3 - 44
				reliableMarginLeftVal = roundPixelMeasures(divStyle.marginLeft) === 12;
	
				// Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3
				// Some styles come back with percentage values, even though they shouldn't
				div.style.right = "60%";
				pixelBoxStylesVal = roundPixelMeasures(divStyle.right) === 36;
	
				// Support: IE 9 - 11 only
				// Detect misreporting of content dimensions for box-sizing:border-box elements
				boxSizingReliableVal = roundPixelMeasures(divStyle.width) === 36;
	
				// Support: IE 9 only
				// Detect overflow:scroll screwiness (gh-3699)
				// Support: Chrome <=64
				// Don't get tricked when zoom affects offsetWidth (gh-4029)
				div.style.position = "absolute";
				scrollboxSizeVal = roundPixelMeasures(div.offsetWidth / 3) === 12;
	
				documentElement.removeChild(container);
	
				// Nullify the div so it wouldn't be stored in the memory and
				// it will also be a sign that checks already performed
				div = null;
			}
	
			function roundPixelMeasures(measure) {
				return Math.round(parseFloat(measure));
			}
	
			var pixelPositionVal,
			    boxSizingReliableVal,
			    scrollboxSizeVal,
			    pixelBoxStylesVal,
			    reliableTrDimensionsVal,
			    reliableMarginLeftVal,
			    container = document.createElement("div"),
			    div = document.createElement("div");
	
			// Finish early in limited (non-browser) environments
			if (!div.style) {
				return;
			}
	
			// Support: IE <=9 - 11 only
			// Style of cloned element affects source element cloned (#8908)
			div.style.backgroundClip = "content-box";
			div.cloneNode(true).style.backgroundClip = "";
			support.clearCloneStyle = div.style.backgroundClip === "content-box";
	
			jQuery.extend(support, {
				boxSizingReliable: function boxSizingReliable() {
					computeStyleTests();
					return boxSizingReliableVal;
				},
				pixelBoxStyles: function pixelBoxStyles() {
					computeStyleTests();
					return pixelBoxStylesVal;
				},
				pixelPosition: function pixelPosition() {
					computeStyleTests();
					return pixelPositionVal;
				},
				reliableMarginLeft: function reliableMarginLeft() {
					computeStyleTests();
					return reliableMarginLeftVal;
				},
				scrollboxSize: function scrollboxSize() {
					computeStyleTests();
					return scrollboxSizeVal;
				},
	
				// Support: IE 9 - 11+, Edge 15 - 18+
				// IE/Edge misreport `getComputedStyle` of table rows with width/height
				// set in CSS while `offset*` properties report correct values.
				// Behavior in IE 9 is more subtle than in newer versions & it passes
				// some versions of this test; make sure not to make it pass there!
				reliableTrDimensions: function reliableTrDimensions() {
					var table, tr, trChild, trStyle;
					if (reliableTrDimensionsVal == null) {
						table = document.createElement("table");
						tr = document.createElement("tr");
						trChild = document.createElement("div");
	
						table.style.cssText = "position:absolute;left:-11111px";
						tr.style.height = "1px";
						trChild.style.height = "9px";
	
						documentElement.appendChild(table).appendChild(tr).appendChild(trChild);
	
						trStyle = window.getComputedStyle(tr);
						reliableTrDimensionsVal = parseInt(trStyle.height) > 3;
	
						documentElement.removeChild(table);
					}
					return reliableTrDimensionsVal;
				}
			});
		})();
	
		function curCSS(elem, name, computed) {
			var width,
			    minWidth,
			    maxWidth,
			    ret,
	
	
			// Support: Firefox 51+
			// Retrieving style before computed somehow
			// fixes an issue with getting wrong values
			// on detached elements
			style = elem.style;
	
			computed = computed || getStyles(elem);
	
			// getPropertyValue is needed for:
			//   .css('filter') (IE 9 only, #12537)
			//   .css('--customProperty) (#3144)
			if (computed) {
				ret = computed.getPropertyValue(name) || computed[name];
	
				if (ret === "" && !isAttached(elem)) {
					ret = jQuery.style(elem, name);
				}
	
				// A tribute to the "awesome hack by Dean Edwards"
				// Android Browser returns percentage for some values,
				// but width seems to be reliably pixels.
				// This is against the CSSOM draft spec:
				// https://drafts.csswg.org/cssom/#resolved-values
				if (!support.pixelBoxStyles() && rnumnonpx.test(ret) && rboxStyle.test(name)) {
	
					// Remember the original values
					width = style.width;
					minWidth = style.minWidth;
					maxWidth = style.maxWidth;
	
					// Put in the new values to get a computed value out
					style.minWidth = style.maxWidth = style.width = ret;
					ret = computed.width;
	
					// Revert the changed values
					style.width = width;
					style.minWidth = minWidth;
					style.maxWidth = maxWidth;
				}
			}
	
			return ret !== undefined ?
	
			// Support: IE <=9 - 11 only
			// IE returns zIndex value as an integer.
			ret + "" : ret;
		}
	
		function addGetHookIf(conditionFn, hookFn) {
	
			// Define the hook, we'll check on the first run if it's really needed.
			return {
				get: function get() {
					if (conditionFn()) {
	
						// Hook not needed (or it's not possible to use it due
						// to missing dependency), remove it.
						delete this.get;
						return;
					}
	
					// Hook needed; redefine it so that the support test is not executed again.
					return (this.get = hookFn).apply(this, arguments);
				}
			};
		}
	
		var cssPrefixes = ["Webkit", "Moz", "ms"],
		    emptyStyle = document.createElement("div").style,
		    vendorProps = {};
	
		// Return a vendor-prefixed property or undefined
		function vendorPropName(name) {
	
			// Check for vendor prefixed names
			var capName = name[0].toUpperCase() + name.slice(1),
			    i = cssPrefixes.length;
	
			while (i--) {
				name = cssPrefixes[i] + capName;
				if (name in emptyStyle) {
					return name;
				}
			}
		}
	
		// Return a potentially-mapped jQuery.cssProps or vendor prefixed property
		function finalPropName(name) {
			var final = jQuery.cssProps[name] || vendorProps[name];
	
			if (final) {
				return final;
			}
			if (name in emptyStyle) {
				return name;
			}
			return vendorProps[name] = vendorPropName(name) || name;
		}
	
		var
	
		// Swappable if display is none or starts with table
		// except "table", "table-cell", or "table-caption"
		// See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
		rdisplayswap = /^(none|table(?!-c[ea]).+)/,
		    rcustomProp = /^--/,
		    cssShow = { position: "absolute", visibility: "hidden", display: "block" },
		    cssNormalTransform = {
			letterSpacing: "0",
			fontWeight: "400"
		};
	
		function setPositiveNumber(_elem, value, subtract) {
	
			// Any relative (+/-) values have already been
			// normalized at this point
			var matches = rcssNum.exec(value);
			return matches ?
	
			// Guard against undefined "subtract", e.g., when used as in cssHooks
			Math.max(0, matches[2] - (subtract || 0)) + (matches[3] || "px") : value;
		}
	
		function boxModelAdjustment(elem, dimension, box, isBorderBox, styles, computedVal) {
			var i = dimension === "width" ? 1 : 0,
			    extra = 0,
			    delta = 0;
	
			// Adjustment may not be necessary
			if (box === (isBorderBox ? "border" : "content")) {
				return 0;
			}
	
			for (; i < 4; i += 2) {
	
				// Both box models exclude margin
				if (box === "margin") {
					delta += jQuery.css(elem, box + cssExpand[i], true, styles);
				}
	
				// If we get here with a content-box, we're seeking "padding" or "border" or "margin"
				if (!isBorderBox) {
	
					// Add padding
					delta += jQuery.css(elem, "padding" + cssExpand[i], true, styles);
	
					// For "border" or "margin", add border
					if (box !== "padding") {
						delta += jQuery.css(elem, "border" + cssExpand[i] + "Width", true, styles);
	
						// But still keep track of it otherwise
					} else {
						extra += jQuery.css(elem, "border" + cssExpand[i] + "Width", true, styles);
					}
	
					// If we get here with a border-box (content + padding + border), we're seeking "content" or
					// "padding" or "margin"
				} else {
	
					// For "content", subtract padding
					if (box === "content") {
						delta -= jQuery.css(elem, "padding" + cssExpand[i], true, styles);
					}
	
					// For "content" or "padding", subtract border
					if (box !== "margin") {
						delta -= jQuery.css(elem, "border" + cssExpand[i] + "Width", true, styles);
					}
				}
			}
	
			// Account for positive content-box scroll gutter when requested by providing computedVal
			if (!isBorderBox && computedVal >= 0) {
	
				// offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border
				// Assuming integer scroll gutter, subtract the rest and round down
				delta += Math.max(0, Math.ceil(elem["offset" + dimension[0].toUpperCase() + dimension.slice(1)] - computedVal - delta - extra - 0.5
	
				// If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter
				// Use an explicit zero to avoid NaN (gh-3964)
				)) || 0;
			}
	
			return delta;
		}
	
		function getWidthOrHeight(elem, dimension, extra) {
	
			// Start with computed style
			var styles = getStyles(elem),
	
	
			// To avoid forcing a reflow, only fetch boxSizing if we need it (gh-4322).
			// Fake content-box until we know it's needed to know the true value.
			boxSizingNeeded = !support.boxSizingReliable() || extra,
			    isBorderBox = boxSizingNeeded && jQuery.css(elem, "boxSizing", false, styles) === "border-box",
			    valueIsBorderBox = isBorderBox,
			    val = curCSS(elem, dimension, styles),
			    offsetProp = "offset" + dimension[0].toUpperCase() + dimension.slice(1);
	
			// Support: Firefox <=54
			// Return a confounding non-pixel value or feign ignorance, as appropriate.
			if (rnumnonpx.test(val)) {
				if (!extra) {
					return val;
				}
				val = "auto";
			}
	
			// Support: IE 9 - 11 only
			// Use offsetWidth/offsetHeight for when box sizing is unreliable.
			// In those cases, the computed value can be trusted to be border-box.
			if ((!support.boxSizingReliable() && isBorderBox ||
	
			// Support: IE 10 - 11+, Edge 15 - 18+
			// IE/Edge misreport `getComputedStyle` of table rows with width/height
			// set in CSS while `offset*` properties report correct values.
			// Interestingly, in some cases IE 9 doesn't suffer from this issue.
			!support.reliableTrDimensions() && nodeName(elem, "tr") ||
	
			// Fall back to offsetWidth/offsetHeight when value is "auto"
			// This happens for inline elements with no explicit setting (gh-3571)
			val === "auto" ||
	
			// Support: Android <=4.1 - 4.3 only
			// Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602)
			!parseFloat(val) && jQuery.css(elem, "display", false, styles) === "inline") &&
	
			// Make sure the element is visible & connected
			elem.getClientRects().length) {
	
				isBorderBox = jQuery.css(elem, "boxSizing", false, styles) === "border-box";
	
				// Where available, offsetWidth/offsetHeight approximate border box dimensions.
				// Where not available (e.g., SVG), assume unreliable box-sizing and interpret the
				// retrieved value as a content box dimension.
				valueIsBorderBox = offsetProp in elem;
				if (valueIsBorderBox) {
					val = elem[offsetProp];
				}
			}
	
			// Normalize "" and auto
			val = parseFloat(val) || 0;
	
			// Adjust for the element's box model
			return val + boxModelAdjustment(elem, dimension, extra || (isBorderBox ? "border" : "content"), valueIsBorderBox, styles,
	
			// Provide the current computed size to request scroll gutter calculation (gh-3589)
			val) + "px";
		}
	
		jQuery.extend({
	
			// Add in style property hooks for overriding the default
			// behavior of getting and setting a style property
			cssHooks: {
				opacity: {
					get: function get(elem, computed) {
						if (computed) {
	
							// We should always get a number back from opacity
							var ret = curCSS(elem, "opacity");
							return ret === "" ? "1" : ret;
						}
					}
				}
			},
	
			// Don't automatically add "px" to these possibly-unitless properties
			cssNumber: {
				"animationIterationCount": true,
				"columnCount": true,
				"fillOpacity": true,
				"flexGrow": true,
				"flexShrink": true,
				"fontWeight": true,
				"gridArea": true,
				"gridColumn": true,
				"gridColumnEnd": true,
				"gridColumnStart": true,
				"gridRow": true,
				"gridRowEnd": true,
				"gridRowStart": true,
				"lineHeight": true,
				"opacity": true,
				"order": true,
				"orphans": true,
				"widows": true,
				"zIndex": true,
				"zoom": true
			},
	
			// Add in properties whose names you wish to fix before
			// setting or getting the value
			cssProps: {},
	
			// Get and set the style property on a DOM Node
			style: function style(elem, name, value, extra) {
	
				// Don't set styles on text and comment nodes
				if (!elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style) {
					return;
				}
	
				// Make sure that we're working with the right name
				var ret,
				    type,
				    hooks,
				    origName = camelCase(name),
				    isCustomProp = rcustomProp.test(name),
				    style = elem.style;
	
				// Make sure that we're working with the right name. We don't
				// want to query the value if it is a CSS custom property
				// since they are user-defined.
				if (!isCustomProp) {
					name = finalPropName(origName);
				}
	
				// Gets hook for the prefixed version, then unprefixed version
				hooks = jQuery.cssHooks[name] || jQuery.cssHooks[origName];
	
				// Check if we're setting a value
				if (value !== undefined) {
					type = typeof value === "undefined" ? "undefined" : _typeof(value);
	
					// Convert "+=" or "-=" to relative numbers (#7345)
					if (type === "string" && (ret = rcssNum.exec(value)) && ret[1]) {
						value = adjustCSS(elem, name, ret);
	
						// Fixes bug #9237
						type = "number";
					}
	
					// Make sure that null and NaN values aren't set (#7116)
					if (value == null || value !== value) {
						return;
					}
	
					// If a number was passed in, add the unit (except for certain CSS properties)
					// The isCustomProp check can be removed in jQuery 4.0 when we only auto-append
					// "px" to a few hardcoded values.
					if (type === "number" && !isCustomProp) {
						value += ret && ret[3] || (jQuery.cssNumber[origName] ? "" : "px");
					}
	
					// background-* props affect original clone's values
					if (!support.clearCloneStyle && value === "" && name.indexOf("background") === 0) {
						style[name] = "inherit";
					}
	
					// If a hook was provided, use that value, otherwise just set the specified value
					if (!hooks || !("set" in hooks) || (value = hooks.set(elem, value, extra)) !== undefined) {
	
						if (isCustomProp) {
							style.setProperty(name, value);
						} else {
							style[name] = value;
						}
					}
				} else {
	
					// If a hook was provided get the non-computed value from there
					if (hooks && "get" in hooks && (ret = hooks.get(elem, false, extra)) !== undefined) {
	
						return ret;
					}
	
					// Otherwise just get the value from the style object
					return style[name];
				}
			},
	
			css: function css(elem, name, extra, styles) {
				var val,
				    num,
				    hooks,
				    origName = camelCase(name),
				    isCustomProp = rcustomProp.test(name);
	
				// Make sure that we're working with the right name. We don't
				// want to modify the value if it is a CSS custom property
				// since they are user-defined.
				if (!isCustomProp) {
					name = finalPropName(origName);
				}
	
				// Try prefixed name followed by the unprefixed name
				hooks = jQuery.cssHooks[name] || jQuery.cssHooks[origName];
	
				// If a hook was provided get the computed value from there
				if (hooks && "get" in hooks) {
					val = hooks.get(elem, true, extra);
				}
	
				// Otherwise, if a way to get the computed value exists, use that
				if (val === undefined) {
					val = curCSS(elem, name, styles);
				}
	
				// Convert "normal" to computed value
				if (val === "normal" && name in cssNormalTransform) {
					val = cssNormalTransform[name];
				}
	
				// Make numeric if forced or a qualifier was provided and val looks numeric
				if (extra === "" || extra) {
					num = parseFloat(val);
					return extra === true || isFinite(num) ? num || 0 : val;
				}
	
				return val;
			}
		});
	
		jQuery.each(["height", "width"], function (_i, dimension) {
			jQuery.cssHooks[dimension] = {
				get: function get(elem, computed, extra) {
					if (computed) {
	
						// Certain elements can have dimension info if we invisibly show them
						// but it must have a current display style that would benefit
						return rdisplayswap.test(jQuery.css(elem, "display")) && (
	
						// Support: Safari 8+
						// Table columns in Safari have non-zero offsetWidth & zero
						// getBoundingClientRect().width unless display is changed.
						// Support: IE <=11 only
						// Running getBoundingClientRect on a disconnected node
						// in IE throws an error.
						!elem.getClientRects().length || !elem.getBoundingClientRect().width) ? swap(elem, cssShow, function () {
							return getWidthOrHeight(elem, dimension, extra);
						}) : getWidthOrHeight(elem, dimension, extra);
					}
				},
	
				set: function set(elem, value, extra) {
					var matches,
					    styles = getStyles(elem),
	
	
					// Only read styles.position if the test has a chance to fail
					// to avoid forcing a reflow.
					scrollboxSizeBuggy = !support.scrollboxSize() && styles.position === "absolute",
	
	
					// To avoid forcing a reflow, only fetch boxSizing if we need it (gh-3991)
					boxSizingNeeded = scrollboxSizeBuggy || extra,
					    isBorderBox = boxSizingNeeded && jQuery.css(elem, "boxSizing", false, styles) === "border-box",
					    subtract = extra ? boxModelAdjustment(elem, dimension, extra, isBorderBox, styles) : 0;
	
					// Account for unreliable border-box dimensions by comparing offset* to computed and
					// faking a content-box to get border and padding (gh-3699)
					if (isBorderBox && scrollboxSizeBuggy) {
						subtract -= Math.ceil(elem["offset" + dimension[0].toUpperCase() + dimension.slice(1)] - parseFloat(styles[dimension]) - boxModelAdjustment(elem, dimension, "border", false, styles) - 0.5);
					}
	
					// Convert to pixels if value adjustment is needed
					if (subtract && (matches = rcssNum.exec(value)) && (matches[3] || "px") !== "px") {
	
						elem.style[dimension] = value;
						value = jQuery.css(elem, dimension);
					}
	
					return setPositiveNumber(elem, value, subtract);
				}
			};
		});
	
		jQuery.cssHooks.marginLeft = addGetHookIf(support.reliableMarginLeft, function (elem, computed) {
			if (computed) {
				return (parseFloat(curCSS(elem, "marginLeft")) || elem.getBoundingClientRect().left - swap(elem, { marginLeft: 0 }, function () {
					return elem.getBoundingClientRect().left;
				})) + "px";
			}
		});
	
		// These hooks are used by animate to expand properties
		jQuery.each({
			margin: "",
			padding: "",
			border: "Width"
		}, function (prefix, suffix) {
			jQuery.cssHooks[prefix + suffix] = {
				expand: function expand(value) {
					var i = 0,
					    expanded = {},
	
	
					// Assumes a single number if not a string
					parts = typeof value === "string" ? value.split(" ") : [value];
	
					for (; i < 4; i++) {
						expanded[prefix + cssExpand[i] + suffix] = parts[i] || parts[i - 2] || parts[0];
					}
	
					return expanded;
				}
			};
	
			if (prefix !== "margin") {
				jQuery.cssHooks[prefix + suffix].set = setPositiveNumber;
			}
		});
	
		jQuery.fn.extend({
			css: function css(name, value) {
				return access(this, function (elem, name, value) {
					var styles,
					    len,
					    map = {},
					    i = 0;
	
					if (Array.isArray(name)) {
						styles = getStyles(elem);
						len = name.length;
	
						for (; i < len; i++) {
							map[name[i]] = jQuery.css(elem, name[i], false, styles);
						}
	
						return map;
					}
	
					return value !== undefined ? jQuery.style(elem, name, value) : jQuery.css(elem, name);
				}, name, value, arguments.length > 1);
			}
		});
	
		function Tween(elem, options, prop, end, easing) {
			return new Tween.prototype.init(elem, options, prop, end, easing);
		}
		jQuery.Tween = Tween;
	
		Tween.prototype = {
			constructor: Tween,
			init: function init(elem, options, prop, end, easing, unit) {
				this.elem = elem;
				this.prop = prop;
				this.easing = easing || jQuery.easing._default;
				this.options = options;
				this.start = this.now = this.cur();
				this.end = end;
				this.unit = unit || (jQuery.cssNumber[prop] ? "" : "px");
			},
			cur: function cur() {
				var hooks = Tween.propHooks[this.prop];
	
				return hooks && hooks.get ? hooks.get(this) : Tween.propHooks._default.get(this);
			},
			run: function run(percent) {
				var eased,
				    hooks = Tween.propHooks[this.prop];
	
				if (this.options.duration) {
					this.pos = eased = jQuery.easing[this.easing](percent, this.options.duration * percent, 0, 1, this.options.duration);
				} else {
					this.pos = eased = percent;
				}
				this.now = (this.end - this.start) * eased + this.start;
	
				if (this.options.step) {
					this.options.step.call(this.elem, this.now, this);
				}
	
				if (hooks && hooks.set) {
					hooks.set(this);
				} else {
					Tween.propHooks._default.set(this);
				}
				return this;
			}
		};
	
		Tween.prototype.init.prototype = Tween.prototype;
	
		Tween.propHooks = {
			_default: {
				get: function get(tween) {
					var result;
	
					// Use a property on the element directly when it is not a DOM element,
					// or when there is no matching style property that exists.
					if (tween.elem.nodeType !== 1 || tween.elem[tween.prop] != null && tween.elem.style[tween.prop] == null) {
						return tween.elem[tween.prop];
					}
	
					// Passing an empty string as a 3rd parameter to .css will automatically
					// attempt a parseFloat and fallback to a string if the parse fails.
					// Simple values such as "10px" are parsed to Float;
					// complex values such as "rotate(1rad)" are returned as-is.
					result = jQuery.css(tween.elem, tween.prop, "");
	
					// Empty strings, null, undefined and "auto" are converted to 0.
					return !result || result === "auto" ? 0 : result;
				},
				set: function set(tween) {
	
					// Use step hook for back compat.
					// Use cssHook if its there.
					// Use .style if available and use plain properties where available.
					if (jQuery.fx.step[tween.prop]) {
						jQuery.fx.step[tween.prop](tween);
					} else if (tween.elem.nodeType === 1 && (jQuery.cssHooks[tween.prop] || tween.elem.style[finalPropName(tween.prop)] != null)) {
						jQuery.style(tween.elem, tween.prop, tween.now + tween.unit);
					} else {
						tween.elem[tween.prop] = tween.now;
					}
				}
			}
		};
	
		// Support: IE <=9 only
		// Panic based approach to setting things on disconnected nodes
		Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
			set: function set(tween) {
				if (tween.elem.nodeType && tween.elem.parentNode) {
					tween.elem[tween.prop] = tween.now;
				}
			}
		};
	
		jQuery.easing = {
			linear: function linear(p) {
				return p;
			},
			swing: function swing(p) {
				return 0.5 - Math.cos(p * Math.PI) / 2;
			},
			_default: "swing"
		};
	
		jQuery.fx = Tween.prototype.init;
	
		// Back compat <1.8 extension point
		jQuery.fx.step = {};
	
		var fxNow,
		    inProgress,
		    rfxtypes = /^(?:toggle|show|hide)$/,
		    rrun = /queueHooks$/;
	
		function schedule() {
			if (inProgress) {
				if (document.hidden === false && window.requestAnimationFrame) {
					window.requestAnimationFrame(schedule);
				} else {
					window.setTimeout(schedule, jQuery.fx.interval);
				}
	
				jQuery.fx.tick();
			}
		}
	
		// Animations created synchronously will run synchronously
		function createFxNow() {
			window.setTimeout(function () {
				fxNow = undefined;
			});
			return fxNow = Date.now();
		}
	
		// Generate parameters to create a standard animation
		function genFx(type, includeWidth) {
			var which,
			    i = 0,
			    attrs = { height: type };
	
			// If we include width, step value is 1 to do all cssExpand values,
			// otherwise step value is 2 to skip over Left and Right
			includeWidth = includeWidth ? 1 : 0;
			for (; i < 4; i += 2 - includeWidth) {
				which = cssExpand[i];
				attrs["margin" + which] = attrs["padding" + which] = type;
			}
	
			if (includeWidth) {
				attrs.opacity = attrs.width = type;
			}
	
			return attrs;
		}
	
		function createTween(value, prop, animation) {
			var tween,
			    collection = (Animation.tweeners[prop] || []).concat(Animation.tweeners["*"]),
			    index = 0,
			    length = collection.length;
			for (; index < length; index++) {
				if (tween = collection[index].call(animation, prop, value)) {
	
					// We're done with this property
					return tween;
				}
			}
		}
	
		function defaultPrefilter(elem, props, opts) {
			var prop,
			    value,
			    toggle,
			    hooks,
			    oldfire,
			    propTween,
			    restoreDisplay,
			    display,
			    isBox = "width" in props || "height" in props,
			    anim = this,
			    orig = {},
			    style = elem.style,
			    hidden = elem.nodeType && isHiddenWithinTree(elem),
			    dataShow = dataPriv.get(elem, "fxshow");
	
			// Queue-skipping animations hijack the fx hooks
			if (!opts.queue) {
				hooks = jQuery._queueHooks(elem, "fx");
				if (hooks.unqueued == null) {
					hooks.unqueued = 0;
					oldfire = hooks.empty.fire;
					hooks.empty.fire = function () {
						if (!hooks.unqueued) {
							oldfire();
						}
					};
				}
				hooks.unqueued++;
	
				anim.always(function () {
	
					// Ensure the complete handler is called before this completes
					anim.always(function () {
						hooks.unqueued--;
						if (!jQuery.queue(elem, "fx").length) {
							hooks.empty.fire();
						}
					});
				});
			}
	
			// Detect show/hide animations
			for (prop in props) {
				value = props[prop];
				if (rfxtypes.test(value)) {
					delete props[prop];
					toggle = toggle || value === "toggle";
					if (value === (hidden ? "hide" : "show")) {
	
						// Pretend to be hidden if this is a "show" and
						// there is still data from a stopped show/hide
						if (value === "show" && dataShow && dataShow[prop] !== undefined) {
							hidden = true;
	
							// Ignore all other no-op show/hide data
						} else {
							continue;
						}
					}
					orig[prop] = dataShow && dataShow[prop] || jQuery.style(elem, prop);
				}
			}
	
			// Bail out if this is a no-op like .hide().hide()
			propTween = !jQuery.isEmptyObject(props);
			if (!propTween && jQuery.isEmptyObject(orig)) {
				return;
			}
	
			// Restrict "overflow" and "display" styles during box animations
			if (isBox && elem.nodeType === 1) {
	
				// Support: IE <=9 - 11, Edge 12 - 15
				// Record all 3 overflow attributes because IE does not infer the shorthand
				// from identically-valued overflowX and overflowY and Edge just mirrors
				// the overflowX value there.
				opts.overflow = [style.overflow, style.overflowX, style.overflowY];
	
				// Identify a display type, preferring old show/hide data over the CSS cascade
				restoreDisplay = dataShow && dataShow.display;
				if (restoreDisplay == null) {
					restoreDisplay = dataPriv.get(elem, "display");
				}
				display = jQuery.css(elem, "display");
				if (display === "none") {
					if (restoreDisplay) {
						display = restoreDisplay;
					} else {
	
						// Get nonempty value(s) by temporarily forcing visibility
						showHide([elem], true);
						restoreDisplay = elem.style.display || restoreDisplay;
						display = jQuery.css(elem, "display");
						showHide([elem]);
					}
				}
	
				// Animate inline elements as inline-block
				if (display === "inline" || display === "inline-block" && restoreDisplay != null) {
					if (jQuery.css(elem, "float") === "none") {
	
						// Restore the original display value at the end of pure show/hide animations
						if (!propTween) {
							anim.done(function () {
								style.display = restoreDisplay;
							});
							if (restoreDisplay == null) {
								display = style.display;
								restoreDisplay = display === "none" ? "" : display;
							}
						}
						style.display = "inline-block";
					}
				}
			}
	
			if (opts.overflow) {
				style.overflow = "hidden";
				anim.always(function () {
					style.overflow = opts.overflow[0];
					style.overflowX = opts.overflow[1];
					style.overflowY = opts.overflow[2];
				});
			}
	
			// Implement show/hide animations
			propTween = false;
			for (prop in orig) {
	
				// General show/hide setup for this element animation
				if (!propTween) {
					if (dataShow) {
						if ("hidden" in dataShow) {
							hidden = dataShow.hidden;
						}
					} else {
						dataShow = dataPriv.access(elem, "fxshow", { display: restoreDisplay });
					}
	
					// Store hidden/visible for toggle so `.stop().toggle()` "reverses"
					if (toggle) {
						dataShow.hidden = !hidden;
					}
	
					// Show elements before animating them
					if (hidden) {
						showHide([elem], true);
					}
	
					/* eslint-disable no-loop-func */
	
					anim.done(function () {
	
						/* eslint-enable no-loop-func */
	
						// The final step of a "hide" animation is actually hiding the element
						if (!hidden) {
							showHide([elem]);
						}
						dataPriv.remove(elem, "fxshow");
						for (prop in orig) {
							jQuery.style(elem, prop, orig[prop]);
						}
					});
				}
	
				// Per-property setup
				propTween = createTween(hidden ? dataShow[prop] : 0, prop, anim);
				if (!(prop in dataShow)) {
					dataShow[prop] = propTween.start;
					if (hidden) {
						propTween.end = propTween.start;
						propTween.start = 0;
					}
				}
			}
		}
	
		function propFilter(props, specialEasing) {
			var index, name, easing, value, hooks;
	
			// camelCase, specialEasing and expand cssHook pass
			for (index in props) {
				name = camelCase(index);
				easing = specialEasing[name];
				value = props[index];
				if (Array.isArray(value)) {
					easing = value[1];
					value = props[index] = value[0];
				}
	
				if (index !== name) {
					props[name] = value;
					delete props[index];
				}
	
				hooks = jQuery.cssHooks[name];
				if (hooks && "expand" in hooks) {
					value = hooks.expand(value);
					delete props[name];
	
					// Not quite $.extend, this won't overwrite existing keys.
					// Reusing 'index' because we have the correct "name"
					for (index in value) {
						if (!(index in props)) {
							props[index] = value[index];
							specialEasing[index] = easing;
						}
					}
				} else {
					specialEasing[name] = easing;
				}
			}
		}
	
		function Animation(elem, properties, options) {
			var result,
			    stopped,
			    index = 0,
			    length = Animation.prefilters.length,
			    deferred = jQuery.Deferred().always(function () {
	
				// Don't match elem in the :animated selector
				delete tick.elem;
			}),
			    tick = function tick() {
				if (stopped) {
					return false;
				}
				var currentTime = fxNow || createFxNow(),
				    remaining = Math.max(0, animation.startTime + animation.duration - currentTime),
	
	
				// Support: Android 2.3 only
				// Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)
				temp = remaining / animation.duration || 0,
				    percent = 1 - temp,
				    index = 0,
				    length = animation.tweens.length;
	
				for (; index < length; index++) {
					animation.tweens[index].run(percent);
				}
	
				deferred.notifyWith(elem, [animation, percent, remaining]);
	
				// If there's more to do, yield
				if (percent < 1 && length) {
					return remaining;
				}
	
				// If this was an empty animation, synthesize a final progress notification
				if (!length) {
					deferred.notifyWith(elem, [animation, 1, 0]);
				}
	
				// Resolve the animation and report its conclusion
				deferred.resolveWith(elem, [animation]);
				return false;
			},
			    animation = deferred.promise({
				elem: elem,
				props: jQuery.extend({}, properties),
				opts: jQuery.extend(true, {
					specialEasing: {},
					easing: jQuery.easing._default
				}, options),
				originalProperties: properties,
				originalOptions: options,
				startTime: fxNow || createFxNow(),
				duration: options.duration,
				tweens: [],
				createTween: function createTween(prop, end) {
					var tween = jQuery.Tween(elem, animation.opts, prop, end, animation.opts.specialEasing[prop] || animation.opts.easing);
					animation.tweens.push(tween);
					return tween;
				},
				stop: function stop(gotoEnd) {
					var index = 0,
	
	
					// If we are going to the end, we want to run all the tweens
					// otherwise we skip this part
					length = gotoEnd ? animation.tweens.length : 0;
					if (stopped) {
						return this;
					}
					stopped = true;
					for (; index < length; index++) {
						animation.tweens[index].run(1);
					}
	
					// Resolve when we played the last frame; otherwise, reject
					if (gotoEnd) {
						deferred.notifyWith(elem, [animation, 1, 0]);
						deferred.resolveWith(elem, [animation, gotoEnd]);
					} else {
						deferred.rejectWith(elem, [animation, gotoEnd]);
					}
					return this;
				}
			}),
			    props = animation.props;
	
			propFilter(props, animation.opts.specialEasing);
	
			for (; index < length; index++) {
				result = Animation.prefilters[index].call(animation, elem, props, animation.opts);
				if (result) {
					if (isFunction(result.stop)) {
						jQuery._queueHooks(animation.elem, animation.opts.queue).stop = result.stop.bind(result);
					}
					return result;
				}
			}
	
			jQuery.map(props, createTween, animation);
	
			if (isFunction(animation.opts.start)) {
				animation.opts.start.call(elem, animation);
			}
	
			// Attach callbacks from options
			animation.progress(animation.opts.progress).done(animation.opts.done, animation.opts.complete).fail(animation.opts.fail).always(animation.opts.always);
	
			jQuery.fx.timer(jQuery.extend(tick, {
				elem: elem,
				anim: animation,
				queue: animation.opts.queue
			}));
	
			return animation;
		}
	
		jQuery.Animation = jQuery.extend(Animation, {
	
			tweeners: {
				"*": [function (prop, value) {
					var tween = this.createTween(prop, value);
					adjustCSS(tween.elem, prop, rcssNum.exec(value), tween);
					return tween;
				}]
			},
	
			tweener: function tweener(props, callback) {
				if (isFunction(props)) {
					callback = props;
					props = ["*"];
				} else {
					props = props.match(rnothtmlwhite);
				}
	
				var prop,
				    index = 0,
				    length = props.length;
	
				for (; index < length; index++) {
					prop = props[index];
					Animation.tweeners[prop] = Animation.tweeners[prop] || [];
					Animation.tweeners[prop].unshift(callback);
				}
			},
	
			prefilters: [defaultPrefilter],
	
			prefilter: function prefilter(callback, prepend) {
				if (prepend) {
					Animation.prefilters.unshift(callback);
				} else {
					Animation.prefilters.push(callback);
				}
			}
		});
	
		jQuery.speed = function (speed, easing, fn) {
			var opt = speed && (typeof speed === "undefined" ? "undefined" : _typeof(speed)) === "object" ? jQuery.extend({}, speed) : {
				complete: fn || !fn && easing || isFunction(speed) && speed,
				duration: speed,
				easing: fn && easing || easing && !isFunction(easing) && easing
			};
	
			// Go to the end state if fx are off
			if (jQuery.fx.off) {
				opt.duration = 0;
			} else {
				if (typeof opt.duration !== "number") {
					if (opt.duration in jQuery.fx.speeds) {
						opt.duration = jQuery.fx.speeds[opt.duration];
					} else {
						opt.duration = jQuery.fx.speeds._default;
					}
				}
			}
	
			// Normalize opt.queue - true/undefined/null -> "fx"
			if (opt.queue == null || opt.queue === true) {
				opt.queue = "fx";
			}
	
			// Queueing
			opt.old = opt.complete;
	
			opt.complete = function () {
				if (isFunction(opt.old)) {
					opt.old.call(this);
				}
	
				if (opt.queue) {
					jQuery.dequeue(this, opt.queue);
				}
			};
	
			return opt;
		};
	
		jQuery.fn.extend({
			fadeTo: function fadeTo(speed, to, easing, callback) {
	
				// Show any hidden elements after setting opacity to 0
				return this.filter(isHiddenWithinTree).css("opacity", 0).show()
	
				// Animate to the value specified
				.end().animate({ opacity: to }, speed, easing, callback);
			},
			animate: function animate(prop, speed, easing, callback) {
				var empty = jQuery.isEmptyObject(prop),
				    optall = jQuery.speed(speed, easing, callback),
				    doAnimation = function doAnimation() {
	
					// Operate on a copy of prop so per-property easing won't be lost
					var anim = Animation(this, jQuery.extend({}, prop), optall);
	
					// Empty animations, or finishing resolves immediately
					if (empty || dataPriv.get(this, "finish")) {
						anim.stop(true);
					}
				};
				doAnimation.finish = doAnimation;
	
				return empty || optall.queue === false ? this.each(doAnimation) : this.queue(optall.queue, doAnimation);
			},
			stop: function stop(type, clearQueue, gotoEnd) {
				var stopQueue = function stopQueue(hooks) {
					var stop = hooks.stop;
					delete hooks.stop;
					stop(gotoEnd);
				};
	
				if (typeof type !== "string") {
					gotoEnd = clearQueue;
					clearQueue = type;
					type = undefined;
				}
				if (clearQueue) {
					this.queue(type || "fx", []);
				}
	
				return this.each(function () {
					var dequeue = true,
					    index = type != null && type + "queueHooks",
					    timers = jQuery.timers,
					    data = dataPriv.get(this);
	
					if (index) {
						if (data[index] && data[index].stop) {
							stopQueue(data[index]);
						}
					} else {
						for (index in data) {
							if (data[index] && data[index].stop && rrun.test(index)) {
								stopQueue(data[index]);
							}
						}
					}
	
					for (index = timers.length; index--;) {
						if (timers[index].elem === this && (type == null || timers[index].queue === type)) {
	
							timers[index].anim.stop(gotoEnd);
							dequeue = false;
							timers.splice(index, 1);
						}
					}
	
					// Start the next in the queue if the last step wasn't forced.
					// Timers currently will call their complete callbacks, which
					// will dequeue but only if they were gotoEnd.
					if (dequeue || !gotoEnd) {
						jQuery.dequeue(this, type);
					}
				});
			},
			finish: function finish(type) {
				if (type !== false) {
					type = type || "fx";
				}
				return this.each(function () {
					var index,
					    data = dataPriv.get(this),
					    queue = data[type + "queue"],
					    hooks = data[type + "queueHooks"],
					    timers = jQuery.timers,
					    length = queue ? queue.length : 0;
	
					// Enable finishing flag on private data
					data.finish = true;
	
					// Empty the queue first
					jQuery.queue(this, type, []);
	
					if (hooks && hooks.stop) {
						hooks.stop.call(this, true);
					}
	
					// Look for any active animations, and finish them
					for (index = timers.length; index--;) {
						if (timers[index].elem === this && timers[index].queue === type) {
							timers[index].anim.stop(true);
							timers.splice(index, 1);
						}
					}
	
					// Look for any animations in the old queue and finish them
					for (index = 0; index < length; index++) {
						if (queue[index] && queue[index].finish) {
							queue[index].finish.call(this);
						}
					}
	
					// Turn off finishing flag
					delete data.finish;
				});
			}
		});
	
		jQuery.each(["toggle", "show", "hide"], function (_i, name) {
			var cssFn = jQuery.fn[name];
			jQuery.fn[name] = function (speed, easing, callback) {
				return speed == null || typeof speed === "boolean" ? cssFn.apply(this, arguments) : this.animate(genFx(name, true), speed, easing, callback);
			};
		});
	
		// Generate shortcuts for custom animations
		jQuery.each({
			slideDown: genFx("show"),
			slideUp: genFx("hide"),
			slideToggle: genFx("toggle"),
			fadeIn: { opacity: "show" },
			fadeOut: { opacity: "hide" },
			fadeToggle: { opacity: "toggle" }
		}, function (name, props) {
			jQuery.fn[name] = function (speed, easing, callback) {
				return this.animate(props, speed, easing, callback);
			};
		});
	
		jQuery.timers = [];
		jQuery.fx.tick = function () {
			var timer,
			    i = 0,
			    timers = jQuery.timers;
	
			fxNow = Date.now();
	
			for (; i < timers.length; i++) {
				timer = timers[i];
	
				// Run the timer and safely remove it when done (allowing for external removal)
				if (!timer() && timers[i] === timer) {
					timers.splice(i--, 1);
				}
			}
	
			if (!timers.length) {
				jQuery.fx.stop();
			}
			fxNow = undefined;
		};
	
		jQuery.fx.timer = function (timer) {
			jQuery.timers.push(timer);
			jQuery.fx.start();
		};
	
		jQuery.fx.interval = 13;
		jQuery.fx.start = function () {
			if (inProgress) {
				return;
			}
	
			inProgress = true;
			schedule();
		};
	
		jQuery.fx.stop = function () {
			inProgress = null;
		};
	
		jQuery.fx.speeds = {
			slow: 600,
			fast: 200,
	
			// Default speed
			_default: 400
		};
	
		// Based off of the plugin by Clint Helfers, with permission.
		// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
		jQuery.fn.delay = function (time, type) {
			time = jQuery.fx ? jQuery.fx.speeds[time] || time : time;
			type = type || "fx";
	
			return this.queue(type, function (next, hooks) {
				var timeout = window.setTimeout(next, time);
				hooks.stop = function () {
					window.clearTimeout(timeout);
				};
			});
		};
	
		(function () {
			var input = document.createElement("input"),
			    select = document.createElement("select"),
			    opt = select.appendChild(document.createElement("option"));
	
			input.type = "checkbox";
	
			// Support: Android <=4.3 only
			// Default value for a checkbox should be "on"
			support.checkOn = input.value !== "";
	
			// Support: IE <=11 only
			// Must access selectedIndex to make default options select
			support.optSelected = opt.selected;
	
			// Support: IE <=11 only
			// An input loses its value after becoming a radio
			input = document.createElement("input");
			input.value = "t";
			input.type = "radio";
			support.radioValue = input.value === "t";
		})();
	
		var boolHook,
		    attrHandle = jQuery.expr.attrHandle;
	
		jQuery.fn.extend({
			attr: function attr(name, value) {
				return access(this, jQuery.attr, name, value, arguments.length > 1);
			},
	
			removeAttr: function removeAttr(name) {
				return this.each(function () {
					jQuery.removeAttr(this, name);
				});
			}
		});
	
		jQuery.extend({
			attr: function attr(elem, name, value) {
				var ret,
				    hooks,
				    nType = elem.nodeType;
	
				// Don't get/set attributes on text, comment and attribute nodes
				if (nType === 3 || nType === 8 || nType === 2) {
					return;
				}
	
				// Fallback to prop when attributes are not supported
				if (typeof elem.getAttribute === "undefined") {
					return jQuery.prop(elem, name, value);
				}
	
				// Attribute hooks are determined by the lowercase version
				// Grab necessary hook if one is defined
				if (nType !== 1 || !jQuery.isXMLDoc(elem)) {
					hooks = jQuery.attrHooks[name.toLowerCase()] || (jQuery.expr.match.bool.test(name) ? boolHook : undefined);
				}
	
				if (value !== undefined) {
					if (value === null) {
						jQuery.removeAttr(elem, name);
						return;
					}
	
					if (hooks && "set" in hooks && (ret = hooks.set(elem, value, name)) !== undefined) {
						return ret;
					}
	
					elem.setAttribute(name, value + "");
					return value;
				}
	
				if (hooks && "get" in hooks && (ret = hooks.get(elem, name)) !== null) {
					return ret;
				}
	
				ret = jQuery.find.attr(elem, name);
	
				// Non-existent attributes return null, we normalize to undefined
				return ret == null ? undefined : ret;
			},
	
			attrHooks: {
				type: {
					set: function set(elem, value) {
						if (!support.radioValue && value === "radio" && nodeName(elem, "input")) {
							var val = elem.value;
							elem.setAttribute("type", value);
							if (val) {
								elem.value = val;
							}
							return value;
						}
					}
				}
			},
	
			removeAttr: function removeAttr(elem, value) {
				var name,
				    i = 0,
	
	
				// Attribute names can contain non-HTML whitespace characters
				// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2
				attrNames = value && value.match(rnothtmlwhite);
	
				if (attrNames && elem.nodeType === 1) {
					while (name = attrNames[i++]) {
						elem.removeAttribute(name);
					}
				}
			}
		});
	
		// Hooks for boolean attributes
		boolHook = {
			set: function set(elem, value, name) {
				if (value === false) {
	
					// Remove boolean attributes when set to false
					jQuery.removeAttr(elem, name);
				} else {
					elem.setAttribute(name, name);
				}
				return name;
			}
		};
	
		jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g), function (_i, name) {
			var getter = attrHandle[name] || jQuery.find.attr;
	
			attrHandle[name] = function (elem, name, isXML) {
				var ret,
				    handle,
				    lowercaseName = name.toLowerCase();
	
				if (!isXML) {
	
					// Avoid an infinite loop by temporarily removing this function from the getter
					handle = attrHandle[lowercaseName];
					attrHandle[lowercaseName] = ret;
					ret = getter(elem, name, isXML) != null ? lowercaseName : null;
					attrHandle[lowercaseName] = handle;
				}
				return ret;
			};
		});
	
		var rfocusable = /^(?:input|select|textarea|button)$/i,
		    rclickable = /^(?:a|area)$/i;
	
		jQuery.fn.extend({
			prop: function prop(name, value) {
				return access(this, jQuery.prop, name, value, arguments.length > 1);
			},
	
			removeProp: function removeProp(name) {
				return this.each(function () {
					delete this[jQuery.propFix[name] || name];
				});
			}
		});
	
		jQuery.extend({
			prop: function prop(elem, name, value) {
				var ret,
				    hooks,
				    nType = elem.nodeType;
	
				// Don't get/set properties on text, comment and attribute nodes
				if (nType === 3 || nType === 8 || nType === 2) {
					return;
				}
	
				if (nType !== 1 || !jQuery.isXMLDoc(elem)) {
	
					// Fix name and attach hooks
					name = jQuery.propFix[name] || name;
					hooks = jQuery.propHooks[name];
				}
	
				if (value !== undefined) {
					if (hooks && "set" in hooks && (ret = hooks.set(elem, value, name)) !== undefined) {
						return ret;
					}
	
					return elem[name] = value;
				}
	
				if (hooks && "get" in hooks && (ret = hooks.get(elem, name)) !== null) {
					return ret;
				}
	
				return elem[name];
			},
	
			propHooks: {
				tabIndex: {
					get: function get(elem) {
	
						// Support: IE <=9 - 11 only
						// elem.tabIndex doesn't always return the
						// correct value when it hasn't been explicitly set
						// https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
						// Use proper attribute retrieval(#12072)
						var tabindex = jQuery.find.attr(elem, "tabindex");
	
						if (tabindex) {
							return parseInt(tabindex, 10);
						}
	
						if (rfocusable.test(elem.nodeName) || rclickable.test(elem.nodeName) && elem.href) {
							return 0;
						}
	
						return -1;
					}
				}
			},
	
			propFix: {
				"for": "htmlFor",
				"class": "className"
			}
		});
	
		// Support: IE <=11 only
		// Accessing the selectedIndex property
		// forces the browser to respect setting selected
		// on the option
		// The getter ensures a default option is selected
		// when in an optgroup
		// eslint rule "no-unused-expressions" is disabled for this code
		// since it considers such accessions noop
		if (!support.optSelected) {
			jQuery.propHooks.selected = {
				get: function get(elem) {
	
					/* eslint no-unused-expressions: "off" */
	
					var parent = elem.parentNode;
					if (parent && parent.parentNode) {
						parent.parentNode.selectedIndex;
					}
					return null;
				},
				set: function set(elem) {
	
					/* eslint no-unused-expressions: "off" */
	
					var parent = elem.parentNode;
					if (parent) {
						parent.selectedIndex;
	
						if (parent.parentNode) {
							parent.parentNode.selectedIndex;
						}
					}
				}
			};
		}
	
		jQuery.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function () {
			jQuery.propFix[this.toLowerCase()] = this;
		});
	
		// Strip and collapse whitespace according to HTML spec
		// https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace
		function stripAndCollapse(value) {
			var tokens = value.match(rnothtmlwhite) || [];
			return tokens.join(" ");
		}
	
		function getClass(elem) {
			return elem.getAttribute && elem.getAttribute("class") || "";
		}
	
		function classesToArray(value) {
			if (Array.isArray(value)) {
				return value;
			}
			if (typeof value === "string") {
				return value.match(rnothtmlwhite) || [];
			}
			return [];
		}
	
		jQuery.fn.extend({
			addClass: function addClass(value) {
				var classes,
				    elem,
				    cur,
				    curValue,
				    clazz,
				    j,
				    finalValue,
				    i = 0;
	
				if (isFunction(value)) {
					return this.each(function (j) {
						jQuery(this).addClass(value.call(this, j, getClass(this)));
					});
				}
	
				classes = classesToArray(value);
	
				if (classes.length) {
					while (elem = this[i++]) {
						curValue = getClass(elem);
						cur = elem.nodeType === 1 && " " + stripAndCollapse(curValue) + " ";
	
						if (cur) {
							j = 0;
							while (clazz = classes[j++]) {
								if (cur.indexOf(" " + clazz + " ") < 0) {
									cur += clazz + " ";
								}
							}
	
							// Only assign if different to avoid unneeded rendering.
							finalValue = stripAndCollapse(cur);
							if (curValue !== finalValue) {
								elem.setAttribute("class", finalValue);
							}
						}
					}
				}
	
				return this;
			},
	
			removeClass: function removeClass(value) {
				var classes,
				    elem,
				    cur,
				    curValue,
				    clazz,
				    j,
				    finalValue,
				    i = 0;
	
				if (isFunction(value)) {
					return this.each(function (j) {
						jQuery(this).removeClass(value.call(this, j, getClass(this)));
					});
				}
	
				if (!arguments.length) {
					return this.attr("class", "");
				}
	
				classes = classesToArray(value);
	
				if (classes.length) {
					while (elem = this[i++]) {
						curValue = getClass(elem);
	
						// This expression is here for better compressibility (see addClass)
						cur = elem.nodeType === 1 && " " + stripAndCollapse(curValue) + " ";
	
						if (cur) {
							j = 0;
							while (clazz = classes[j++]) {
	
								// Remove *all* instances
								while (cur.indexOf(" " + clazz + " ") > -1) {
									cur = cur.replace(" " + clazz + " ", " ");
								}
							}
	
							// Only assign if different to avoid unneeded rendering.
							finalValue = stripAndCollapse(cur);
							if (curValue !== finalValue) {
								elem.setAttribute("class", finalValue);
							}
						}
					}
				}
	
				return this;
			},
	
			toggleClass: function toggleClass(value, stateVal) {
				var type = typeof value === "undefined" ? "undefined" : _typeof(value),
				    isValidValue = type === "string" || Array.isArray(value);
	
				if (typeof stateVal === "boolean" && isValidValue) {
					return stateVal ? this.addClass(value) : this.removeClass(value);
				}
	
				if (isFunction(value)) {
					return this.each(function (i) {
						jQuery(this).toggleClass(value.call(this, i, getClass(this), stateVal), stateVal);
					});
				}
	
				return this.each(function () {
					var className, i, self, classNames;
	
					if (isValidValue) {
	
						// Toggle individual class names
						i = 0;
						self = jQuery(this);
						classNames = classesToArray(value);
	
						while (className = classNames[i++]) {
	
							// Check each className given, space separated list
							if (self.hasClass(className)) {
								self.removeClass(className);
							} else {
								self.addClass(className);
							}
						}
	
						// Toggle whole class name
					} else if (value === undefined || type === "boolean") {
						className = getClass(this);
						if (className) {
	
							// Store className if set
							dataPriv.set(this, "__className__", className);
						}
	
						// If the element has a class name or if we're passed `false`,
						// then remove the whole classname (if there was one, the above saved it).
						// Otherwise bring back whatever was previously saved (if anything),
						// falling back to the empty string if nothing was stored.
						if (this.setAttribute) {
							this.setAttribute("class", className || value === false ? "" : dataPriv.get(this, "__className__") || "");
						}
					}
				});
			},
	
			hasClass: function hasClass(selector) {
				var className,
				    elem,
				    i = 0;
	
				className = " " + selector + " ";
				while (elem = this[i++]) {
					if (elem.nodeType === 1 && (" " + stripAndCollapse(getClass(elem)) + " ").indexOf(className) > -1) {
						return true;
					}
				}
	
				return false;
			}
		});
	
		var rreturn = /\r/g;
	
		jQuery.fn.extend({
			val: function val(value) {
				var hooks,
				    ret,
				    valueIsFunction,
				    elem = this[0];
	
				if (!arguments.length) {
					if (elem) {
						hooks = jQuery.valHooks[elem.type] || jQuery.valHooks[elem.nodeName.toLowerCase()];
	
						if (hooks && "get" in hooks && (ret = hooks.get(elem, "value")) !== undefined) {
							return ret;
						}
	
						ret = elem.value;
	
						// Handle most common string cases
						if (typeof ret === "string") {
							return ret.replace(rreturn, "");
						}
	
						// Handle cases where value is null/undef or number
						return ret == null ? "" : ret;
					}
	
					return;
				}
	
				valueIsFunction = isFunction(value);
	
				return this.each(function (i) {
					var val;
	
					if (this.nodeType !== 1) {
						return;
					}
	
					if (valueIsFunction) {
						val = value.call(this, i, jQuery(this).val());
					} else {
						val = value;
					}
	
					// Treat null/undefined as ""; convert numbers to string
					if (val == null) {
						val = "";
					} else if (typeof val === "number") {
						val += "";
					} else if (Array.isArray(val)) {
						val = jQuery.map(val, function (value) {
							return value == null ? "" : value + "";
						});
					}
	
					hooks = jQuery.valHooks[this.type] || jQuery.valHooks[this.nodeName.toLowerCase()];
	
					// If set returns undefined, fall back to normal setting
					if (!hooks || !("set" in hooks) || hooks.set(this, val, "value") === undefined) {
						this.value = val;
					}
				});
			}
		});
	
		jQuery.extend({
			valHooks: {
				option: {
					get: function get(elem) {
	
						var val = jQuery.find.attr(elem, "value");
						return val != null ? val :
	
						// Support: IE <=10 - 11 only
						// option.text throws exceptions (#14686, #14858)
						// Strip and collapse whitespace
						// https://html.spec.whatwg.org/#strip-and-collapse-whitespace
						stripAndCollapse(jQuery.text(elem));
					}
				},
				select: {
					get: function get(elem) {
						var value,
						    option,
						    i,
						    options = elem.options,
						    index = elem.selectedIndex,
						    one = elem.type === "select-one",
						    values = one ? null : [],
						    max = one ? index + 1 : options.length;
	
						if (index < 0) {
							i = max;
						} else {
							i = one ? index : 0;
						}
	
						// Loop through all the selected options
						for (; i < max; i++) {
							option = options[i];
	
							// Support: IE <=9 only
							// IE8-9 doesn't update selected after form reset (#2551)
							if ((option.selected || i === index) &&
	
							// Don't return options that are disabled or in a disabled optgroup
							!option.disabled && (!option.parentNode.disabled || !nodeName(option.parentNode, "optgroup"))) {
	
								// Get the specific value for the option
								value = jQuery(option).val();
	
								// We don't need an array for one selects
								if (one) {
									return value;
								}
	
								// Multi-Selects return an array
								values.push(value);
							}
						}
	
						return values;
					},
	
					set: function set(elem, value) {
						var optionSet,
						    option,
						    options = elem.options,
						    values = jQuery.makeArray(value),
						    i = options.length;
	
						while (i--) {
							option = options[i];
	
							/* eslint-disable no-cond-assign */
	
							if (option.selected = jQuery.inArray(jQuery.valHooks.option.get(option), values) > -1) {
								optionSet = true;
							}
	
							/* eslint-enable no-cond-assign */
						}
	
						// Force browsers to behave consistently when non-matching value is set
						if (!optionSet) {
							elem.selectedIndex = -1;
						}
						return values;
					}
				}
			}
		});
	
		// Radios and checkboxes getter/setter
		jQuery.each(["radio", "checkbox"], function () {
			jQuery.valHooks[this] = {
				set: function set(elem, value) {
					if (Array.isArray(value)) {
						return elem.checked = jQuery.inArray(jQuery(elem).val(), value) > -1;
					}
				}
			};
			if (!support.checkOn) {
				jQuery.valHooks[this].get = function (elem) {
					return elem.getAttribute("value") === null ? "on" : elem.value;
				};
			}
		});
	
		// Return jQuery for attributes-only inclusion
	
	
		support.focusin = "onfocusin" in window;
	
		var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
		    stopPropagationCallback = function stopPropagationCallback(e) {
			e.stopPropagation();
		};
	
		jQuery.extend(jQuery.event, {
	
			trigger: function trigger(event, data, elem, onlyHandlers) {
	
				var i,
				    cur,
				    tmp,
				    bubbleType,
				    ontype,
				    handle,
				    special,
				    lastElement,
				    eventPath = [elem || document],
				    type = hasOwn.call(event, "type") ? event.type : event,
				    namespaces = hasOwn.call(event, "namespace") ? event.namespace.split(".") : [];
	
				cur = lastElement = tmp = elem = elem || document;
	
				// Don't do events on text and comment nodes
				if (elem.nodeType === 3 || elem.nodeType === 8) {
					return;
				}
	
				// focus/blur morphs to focusin/out; ensure we're not firing them right now
				if (rfocusMorph.test(type + jQuery.event.triggered)) {
					return;
				}
	
				if (type.indexOf(".") > -1) {
	
					// Namespaced trigger; create a regexp to match event type in handle()
					namespaces = type.split(".");
					type = namespaces.shift();
					namespaces.sort();
				}
				ontype = type.indexOf(":") < 0 && "on" + type;
	
				// Caller can pass in a jQuery.Event object, Object, or just an event type string
				event = event[jQuery.expando] ? event : new jQuery.Event(type, (typeof event === "undefined" ? "undefined" : _typeof(event)) === "object" && event);
	
				// Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
				event.isTrigger = onlyHandlers ? 2 : 3;
				event.namespace = namespaces.join(".");
				event.rnamespace = event.namespace ? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)") : null;
	
				// Clean up the event in case it is being reused
				event.result = undefined;
				if (!event.target) {
					event.target = elem;
				}
	
				// Clone any incoming data and prepend the event, creating the handler arg list
				data = data == null ? [event] : jQuery.makeArray(data, [event]);
	
				// Allow special events to draw outside the lines
				special = jQuery.event.special[type] || {};
				if (!onlyHandlers && special.trigger && special.trigger.apply(elem, data) === false) {
					return;
				}
	
				// Determine event propagation path in advance, per W3C events spec (#9951)
				// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
				if (!onlyHandlers && !special.noBubble && !isWindow(elem)) {
	
					bubbleType = special.delegateType || type;
					if (!rfocusMorph.test(bubbleType + type)) {
						cur = cur.parentNode;
					}
					for (; cur; cur = cur.parentNode) {
						eventPath.push(cur);
						tmp = cur;
					}
	
					// Only add window if we got to document (e.g., not plain obj or detached DOM)
					if (tmp === (elem.ownerDocument || document)) {
						eventPath.push(tmp.defaultView || tmp.parentWindow || window);
					}
				}
	
				// Fire handlers on the event path
				i = 0;
				while ((cur = eventPath[i++]) && !event.isPropagationStopped()) {
					lastElement = cur;
					event.type = i > 1 ? bubbleType : special.bindType || type;
	
					// jQuery handler
					handle = (dataPriv.get(cur, "events") || Object.create(null))[event.type] && dataPriv.get(cur, "handle");
					if (handle) {
						handle.apply(cur, data);
					}
	
					// Native handler
					handle = ontype && cur[ontype];
					if (handle && handle.apply && acceptData(cur)) {
						event.result = handle.apply(cur, data);
						if (event.result === false) {
							event.preventDefault();
						}
					}
				}
				event.type = type;
	
				// If nobody prevented the default action, do it now
				if (!onlyHandlers && !event.isDefaultPrevented()) {
	
					if ((!special._default || special._default.apply(eventPath.pop(), data) === false) && acceptData(elem)) {
	
						// Call a native DOM method on the target with the same name as the event.
						// Don't do default actions on window, that's where global variables be (#6170)
						if (ontype && isFunction(elem[type]) && !isWindow(elem)) {
	
							// Don't re-trigger an onFOO event when we call its FOO() method
							tmp = elem[ontype];
	
							if (tmp) {
								elem[ontype] = null;
							}
	
							// Prevent re-triggering of the same event, since we already bubbled it above
							jQuery.event.triggered = type;
	
							if (event.isPropagationStopped()) {
								lastElement.addEventListener(type, stopPropagationCallback);
							}
	
							elem[type]();
	
							if (event.isPropagationStopped()) {
								lastElement.removeEventListener(type, stopPropagationCallback);
							}
	
							jQuery.event.triggered = undefined;
	
							if (tmp) {
								elem[ontype] = tmp;
							}
						}
					}
				}
	
				return event.result;
			},
	
			// Piggyback on a donor event to simulate a different one
			// Used only for `focus(in | out)` events
			simulate: function simulate(type, elem, event) {
				var e = jQuery.extend(new jQuery.Event(), event, {
					type: type,
					isSimulated: true
				});
	
				jQuery.event.trigger(e, null, elem);
			}
	
		});
	
		jQuery.fn.extend({
	
			trigger: function trigger(type, data) {
				return this.each(function () {
					jQuery.event.trigger(type, data, this);
				});
			},
			triggerHandler: function triggerHandler(type, data) {
				var elem = this[0];
				if (elem) {
					return jQuery.event.trigger(type, data, elem, true);
				}
			}
		});
	
		// Support: Firefox <=44
		// Firefox doesn't have focus(in | out) events
		// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787
		//
		// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1
		// focus(in | out) events fire after focus & blur events,
		// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order
		// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857
		if (!support.focusin) {
			jQuery.each({ focus: "focusin", blur: "focusout" }, function (orig, fix) {
	
				// Attach a single capturing handler on the document while someone wants focusin/focusout
				var handler = function handler(event) {
					jQuery.event.simulate(fix, event.target, jQuery.event.fix(event));
				};
	
				jQuery.event.special[fix] = {
					setup: function setup() {
	
						// Handle: regular nodes (via `this.ownerDocument`), window
						// (via `this.document`) & document (via `this`).
						var doc = this.ownerDocument || this.document || this,
						    attaches = dataPriv.access(doc, fix);
	
						if (!attaches) {
							doc.addEventListener(orig, handler, true);
						}
						dataPriv.access(doc, fix, (attaches || 0) + 1);
					},
					teardown: function teardown() {
						var doc = this.ownerDocument || this.document || this,
						    attaches = dataPriv.access(doc, fix) - 1;
	
						if (!attaches) {
							doc.removeEventListener(orig, handler, true);
							dataPriv.remove(doc, fix);
						} else {
							dataPriv.access(doc, fix, attaches);
						}
					}
				};
			});
		}
		var location = window.location;
	
		var nonce = { guid: Date.now() };
	
		var rquery = /\?/;
	
		// Cross-browser xml parsing
		jQuery.parseXML = function (data) {
			var xml;
			if (!data || typeof data !== "string") {
				return null;
			}
	
			// Support: IE 9 - 11 only
			// IE throws on parseFromString with invalid input.
			try {
				xml = new window.DOMParser().parseFromString(data, "text/xml");
			} catch (e) {
				xml = undefined;
			}
	
			if (!xml || xml.getElementsByTagName("parsererror").length) {
				jQuery.error("Invalid XML: " + data);
			}
			return xml;
		};
	
		var rbracket = /\[\]$/,
		    rCRLF = /\r?\n/g,
		    rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
		    rsubmittable = /^(?:input|select|textarea|keygen)/i;
	
		function buildParams(prefix, obj, traditional, add) {
			var name;
	
			if (Array.isArray(obj)) {
	
				// Serialize array item.
				jQuery.each(obj, function (i, v) {
					if (traditional || rbracket.test(prefix)) {
	
						// Treat each array item as a scalar.
						add(prefix, v);
					} else {
	
						// Item is non-scalar (array or object), encode its numeric index.
						buildParams(prefix + "[" + ((typeof v === "undefined" ? "undefined" : _typeof(v)) === "object" && v != null ? i : "") + "]", v, traditional, add);
					}
				});
			} else if (!traditional && toType(obj) === "object") {
	
				// Serialize object item.
				for (name in obj) {
					buildParams(prefix + "[" + name + "]", obj[name], traditional, add);
				}
			} else {
	
				// Serialize scalar item.
				add(prefix, obj);
			}
		}
	
		// Serialize an array of form elements or a set of
		// key/values into a query string
		jQuery.param = function (a, traditional) {
			var prefix,
			    s = [],
			    add = function add(key, valueOrFunction) {
	
				// If value is a function, invoke it and use its return value
				var value = isFunction(valueOrFunction) ? valueOrFunction() : valueOrFunction;
	
				s[s.length] = encodeURIComponent(key) + "=" + encodeURIComponent(value == null ? "" : value);
			};
	
			if (a == null) {
				return "";
			}
	
			// If an array was passed in, assume that it is an array of form elements.
			if (Array.isArray(a) || a.jquery && !jQuery.isPlainObject(a)) {
	
				// Serialize the form elements
				jQuery.each(a, function () {
					add(this.name, this.value);
				});
			} else {
	
				// If traditional, encode the "old" way (the way 1.3.2 or older
				// did it), otherwise encode params recursively.
				for (prefix in a) {
					buildParams(prefix, a[prefix], traditional, add);
				}
			}
	
			// Return the resulting serialization
			return s.join("&");
		};
	
		jQuery.fn.extend({
			serialize: function serialize() {
				return jQuery.param(this.serializeArray());
			},
			serializeArray: function serializeArray() {
				return this.map(function () {
	
					// Can add propHook for "elements" to filter or add form elements
					var elements = jQuery.prop(this, "elements");
					return elements ? jQuery.makeArray(elements) : this;
				}).filter(function () {
					var type = this.type;
	
					// Use .is( ":disabled" ) so that fieldset[disabled] works
					return this.name && !jQuery(this).is(":disabled") && rsubmittable.test(this.nodeName) && !rsubmitterTypes.test(type) && (this.checked || !rcheckableType.test(type));
				}).map(function (_i, elem) {
					var val = jQuery(this).val();
	
					if (val == null) {
						return null;
					}
	
					if (Array.isArray(val)) {
						return jQuery.map(val, function (val) {
							return { name: elem.name, value: val.replace(rCRLF, "\r\n") };
						});
					}
	
					return { name: elem.name, value: val.replace(rCRLF, "\r\n") };
				}).get();
			}
		});
	
		var r20 = /%20/g,
		    rhash = /#.*$/,
		    rantiCache = /([?&])_=[^&]*/,
		    rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
	
	
		// #7653, #8125, #8152: local protocol detection
		rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
		    rnoContent = /^(?:GET|HEAD)$/,
		    rprotocol = /^\/\//,
	
	
		/* Prefilters
	  * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
	  * 2) These are called:
	  *    - BEFORE asking for a transport
	  *    - AFTER param serialization (s.data is a string if s.processData is true)
	  * 3) key is the dataType
	  * 4) the catchall symbol "*" can be used
	  * 5) execution will start with transport dataType and THEN continue down to "*" if needed
	  */
		prefilters = {},
	
	
		/* Transports bindings
	  * 1) key is the dataType
	  * 2) the catchall symbol "*" can be used
	  * 3) selection will start with transport dataType and THEN go to "*" if needed
	  */
		transports = {},
	
	
		// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
		allTypes = "*/".concat("*"),
	
	
		// Anchor tag for parsing the document origin
		originAnchor = document.createElement("a");
		originAnchor.href = location.href;
	
		// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
		function addToPrefiltersOrTransports(structure) {
	
			// dataTypeExpression is optional and defaults to "*"
			return function (dataTypeExpression, func) {
	
				if (typeof dataTypeExpression !== "string") {
					func = dataTypeExpression;
					dataTypeExpression = "*";
				}
	
				var dataType,
				    i = 0,
				    dataTypes = dataTypeExpression.toLowerCase().match(rnothtmlwhite) || [];
	
				if (isFunction(func)) {
	
					// For each dataType in the dataTypeExpression
					while (dataType = dataTypes[i++]) {
	
						// Prepend if requested
						if (dataType[0] === "+") {
							dataType = dataType.slice(1) || "*";
							(structure[dataType] = structure[dataType] || []).unshift(func);
	
							// Otherwise append
						} else {
							(structure[dataType] = structure[dataType] || []).push(func);
						}
					}
				}
			};
		}
	
		// Base inspection function for prefilters and transports
		function inspectPrefiltersOrTransports(structure, options, originalOptions, jqXHR) {
	
			var inspected = {},
			    seekingTransport = structure === transports;
	
			function inspect(dataType) {
				var selected;
				inspected[dataType] = true;
				jQuery.each(structure[dataType] || [], function (_, prefilterOrFactory) {
					var dataTypeOrTransport = prefilterOrFactory(options, originalOptions, jqXHR);
					if (typeof dataTypeOrTransport === "string" && !seekingTransport && !inspected[dataTypeOrTransport]) {
	
						options.dataTypes.unshift(dataTypeOrTransport);
						inspect(dataTypeOrTransport);
						return false;
					} else if (seekingTransport) {
						return !(selected = dataTypeOrTransport);
					}
				});
				return selected;
			}
	
			return inspect(options.dataTypes[0]) || !inspected["*"] && inspect("*");
		}
	
		// A special extend for ajax options
		// that takes "flat" options (not to be deep extended)
		// Fixes #9887
		function ajaxExtend(target, src) {
			var key,
			    deep,
			    flatOptions = jQuery.ajaxSettings.flatOptions || {};
	
			for (key in src) {
				if (src[key] !== undefined) {
					(flatOptions[key] ? target : deep || (deep = {}))[key] = src[key];
				}
			}
			if (deep) {
				jQuery.extend(true, target, deep);
			}
	
			return target;
		}
	
		/* Handles responses to an ajax request:
	  * - finds the right dataType (mediates between content-type and expected dataType)
	  * - returns the corresponding response
	  */
		function ajaxHandleResponses(s, jqXHR, responses) {
	
			var ct,
			    type,
			    finalDataType,
			    firstDataType,
			    contents = s.contents,
			    dataTypes = s.dataTypes;
	
			// Remove auto dataType and get content-type in the process
			while (dataTypes[0] === "*") {
				dataTypes.shift();
				if (ct === undefined) {
					ct = s.mimeType || jqXHR.getResponseHeader("Content-Type");
				}
			}
	
			// Check if we're dealing with a known content-type
			if (ct) {
				for (type in contents) {
					if (contents[type] && contents[type].test(ct)) {
						dataTypes.unshift(type);
						break;
					}
				}
			}
	
			// Check to see if we have a response for the expected dataType
			if (dataTypes[0] in responses) {
				finalDataType = dataTypes[0];
			} else {
	
				// Try convertible dataTypes
				for (type in responses) {
					if (!dataTypes[0] || s.converters[type + " " + dataTypes[0]]) {
						finalDataType = type;
						break;
					}
					if (!firstDataType) {
						firstDataType = type;
					}
				}
	
				// Or just use first one
				finalDataType = finalDataType || firstDataType;
			}
	
			// If we found a dataType
			// We add the dataType to the list if needed
			// and return the corresponding response
			if (finalDataType) {
				if (finalDataType !== dataTypes[0]) {
					dataTypes.unshift(finalDataType);
				}
				return responses[finalDataType];
			}
		}
	
		/* Chain conversions given the request and the original response
	  * Also sets the responseXXX fields on the jqXHR instance
	  */
		function ajaxConvert(s, response, jqXHR, isSuccess) {
			var conv2,
			    current,
			    conv,
			    tmp,
			    prev,
			    converters = {},
	
	
			// Work with a copy of dataTypes in case we need to modify it for conversion
			dataTypes = s.dataTypes.slice();
	
			// Create converters map with lowercased keys
			if (dataTypes[1]) {
				for (conv in s.converters) {
					converters[conv.toLowerCase()] = s.converters[conv];
				}
			}
	
			current = dataTypes.shift();
	
			// Convert to each sequential dataType
			while (current) {
	
				if (s.responseFields[current]) {
					jqXHR[s.responseFields[current]] = response;
				}
	
				// Apply the dataFilter if provided
				if (!prev && isSuccess && s.dataFilter) {
					response = s.dataFilter(response, s.dataType);
				}
	
				prev = current;
				current = dataTypes.shift();
	
				if (current) {
	
					// There's only work to do if current dataType is non-auto
					if (current === "*") {
	
						current = prev;
	
						// Convert response if prev dataType is non-auto and differs from current
					} else if (prev !== "*" && prev !== current) {
	
						// Seek a direct converter
						conv = converters[prev + " " + current] || converters["* " + current];
	
						// If none found, seek a pair
						if (!conv) {
							for (conv2 in converters) {
	
								// If conv2 outputs current
								tmp = conv2.split(" ");
								if (tmp[1] === current) {
	
									// If prev can be converted to accepted input
									conv = converters[prev + " " + tmp[0]] || converters["* " + tmp[0]];
									if (conv) {
	
										// Condense equivalence converters
										if (conv === true) {
											conv = converters[conv2];
	
											// Otherwise, insert the intermediate dataType
										} else if (converters[conv2] !== true) {
											current = tmp[0];
											dataTypes.unshift(tmp[1]);
										}
										break;
									}
								}
							}
						}
	
						// Apply converter (if not an equivalence)
						if (conv !== true) {
	
							// Unless errors are allowed to bubble, catch and return them
							if (conv && s.throws) {
								response = conv(response);
							} else {
								try {
									response = conv(response);
								} catch (e) {
									return {
										state: "parsererror",
										error: conv ? e : "No conversion from " + prev + " to " + current
									};
								}
							}
						}
					}
				}
			}
	
			return { state: "success", data: response };
		}
	
		jQuery.extend({
	
			// Counter for holding the number of active queries
			active: 0,
	
			// Last-Modified header cache for next request
			lastModified: {},
			etag: {},
	
			ajaxSettings: {
				url: location.href,
				type: "GET",
				isLocal: rlocalProtocol.test(location.protocol),
				global: true,
				processData: true,
				async: true,
				contentType: "application/x-www-form-urlencoded; charset=UTF-8",
	
				/*
	   timeout: 0,
	   data: null,
	   dataType: null,
	   username: null,
	   password: null,
	   cache: null,
	   throws: false,
	   traditional: false,
	   headers: {},
	   */
	
				accepts: {
					"*": allTypes,
					text: "text/plain",
					html: "text/html",
					xml: "application/xml, text/xml",
					json: "application/json, text/javascript"
				},
	
				contents: {
					xml: /\bxml\b/,
					html: /\bhtml/,
					json: /\bjson\b/
				},
	
				responseFields: {
					xml: "responseXML",
					text: "responseText",
					json: "responseJSON"
				},
	
				// Data converters
				// Keys separate source (or catchall "*") and destination types with a single space
				converters: {
	
					// Convert anything to text
					"* text": String,
	
					// Text to html (true = no transformation)
					"text html": true,
	
					// Evaluate text as a json expression
					"text json": JSON.parse,
	
					// Parse text as xml
					"text xml": jQuery.parseXML
				},
	
				// For options that shouldn't be deep extended:
				// you can add your own custom options here if
				// and when you create one that shouldn't be
				// deep extended (see ajaxExtend)
				flatOptions: {
					url: true,
					context: true
				}
			},
	
			// Creates a full fledged settings object into target
			// with both ajaxSettings and settings fields.
			// If target is omitted, writes into ajaxSettings.
			ajaxSetup: function ajaxSetup(target, settings) {
				return settings ?
	
				// Building a settings object
				ajaxExtend(ajaxExtend(target, jQuery.ajaxSettings), settings) :
	
				// Extending ajaxSettings
				ajaxExtend(jQuery.ajaxSettings, target);
			},
	
			ajaxPrefilter: addToPrefiltersOrTransports(prefilters),
			ajaxTransport: addToPrefiltersOrTransports(transports),
	
			// Main method
			ajax: function ajax(url, options) {
	
				// If url is an object, simulate pre-1.5 signature
				if ((typeof url === "undefined" ? "undefined" : _typeof(url)) === "object") {
					options = url;
					url = undefined;
				}
	
				// Force options to be an object
				options = options || {};
	
				var transport,
	
	
				// URL without anti-cache param
				cacheURL,
	
	
				// Response headers
				responseHeadersString,
				    responseHeaders,
	
	
				// timeout handle
				timeoutTimer,
	
	
				// Url cleanup var
				urlAnchor,
	
	
				// Request state (becomes false upon send and true upon completion)
				completed,
	
	
				// To know if global events are to be dispatched
				fireGlobals,
	
	
				// Loop variable
				i,
	
	
				// uncached part of the url
				uncached,
	
	
				// Create the final options object
				s = jQuery.ajaxSetup({}, options),
	
	
				// Callbacks context
				callbackContext = s.context || s,
	
	
				// Context for global events is callbackContext if it is a DOM node or jQuery collection
				globalEventContext = s.context && (callbackContext.nodeType || callbackContext.jquery) ? jQuery(callbackContext) : jQuery.event,
	
	
				// Deferreds
				deferred = jQuery.Deferred(),
				    completeDeferred = jQuery.Callbacks("once memory"),
	
	
				// Status-dependent callbacks
				_statusCode = s.statusCode || {},
	
	
				// Headers (they are sent all at once)
				requestHeaders = {},
				    requestHeadersNames = {},
	
	
				// Default abort message
				strAbort = "canceled",
	
	
				// Fake xhr
				jqXHR = {
					readyState: 0,
	
					// Builds headers hashtable if needed
					getResponseHeader: function getResponseHeader(key) {
						var match;
						if (completed) {
							if (!responseHeaders) {
								responseHeaders = {};
								while (match = rheaders.exec(responseHeadersString)) {
									responseHeaders[match[1].toLowerCase() + " "] = (responseHeaders[match[1].toLowerCase() + " "] || []).concat(match[2]);
								}
							}
							match = responseHeaders[key.toLowerCase() + " "];
						}
						return match == null ? null : match.join(", ");
					},
	
					// Raw string
					getAllResponseHeaders: function getAllResponseHeaders() {
						return completed ? responseHeadersString : null;
					},
	
					// Caches the header
					setRequestHeader: function setRequestHeader(name, value) {
						if (completed == null) {
							name = requestHeadersNames[name.toLowerCase()] = requestHeadersNames[name.toLowerCase()] || name;
							requestHeaders[name] = value;
						}
						return this;
					},
	
					// Overrides response content-type header
					overrideMimeType: function overrideMimeType(type) {
						if (completed == null) {
							s.mimeType = type;
						}
						return this;
					},
	
					// Status-dependent callbacks
					statusCode: function statusCode(map) {
						var code;
						if (map) {
							if (completed) {
	
								// Execute the appropriate callbacks
								jqXHR.always(map[jqXHR.status]);
							} else {
	
								// Lazy-add the new callbacks in a way that preserves old ones
								for (code in map) {
									_statusCode[code] = [_statusCode[code], map[code]];
								}
							}
						}
						return this;
					},
	
					// Cancel the request
					abort: function abort(statusText) {
						var finalText = statusText || strAbort;
						if (transport) {
							transport.abort(finalText);
						}
						done(0, finalText);
						return this;
					}
				};
	
				// Attach deferreds
				deferred.promise(jqXHR);
	
				// Add protocol if not provided (prefilters might expect it)
				// Handle falsy url in the settings object (#10093: consistency with old signature)
				// We also use the url parameter if available
				s.url = ((url || s.url || location.href) + "").replace(rprotocol, location.protocol + "//");
	
				// Alias method option to type as per ticket #12004
				s.type = options.method || options.type || s.method || s.type;
	
				// Extract dataTypes list
				s.dataTypes = (s.dataType || "*").toLowerCase().match(rnothtmlwhite) || [""];
	
				// A cross-domain request is in order when the origin doesn't match the current origin.
				if (s.crossDomain == null) {
					urlAnchor = document.createElement("a");
	
					// Support: IE <=8 - 11, Edge 12 - 15
					// IE throws exception on accessing the href property if url is malformed,
					// e.g. http://example.com:80x/
					try {
						urlAnchor.href = s.url;
	
						// Support: IE <=8 - 11 only
						// Anchor's host property isn't correctly set when s.url is relative
						urlAnchor.href = urlAnchor.href;
						s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !== urlAnchor.protocol + "//" + urlAnchor.host;
					} catch (e) {
	
						// If there is an error parsing the URL, assume it is crossDomain,
						// it can be rejected by the transport if it is invalid
						s.crossDomain = true;
					}
				}
	
				// Convert data if not already a string
				if (s.data && s.processData && typeof s.data !== "string") {
					s.data = jQuery.param(s.data, s.traditional);
				}
	
				// Apply prefilters
				inspectPrefiltersOrTransports(prefilters, s, options, jqXHR);
	
				// If request was aborted inside a prefilter, stop there
				if (completed) {
					return jqXHR;
				}
	
				// We can fire global events as of now if asked to
				// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
				fireGlobals = jQuery.event && s.global;
	
				// Watch for a new set of requests
				if (fireGlobals && jQuery.active++ === 0) {
					jQuery.event.trigger("ajaxStart");
				}
	
				// Uppercase the type
				s.type = s.type.toUpperCase();
	
				// Determine if request has content
				s.hasContent = !rnoContent.test(s.type);
	
				// Save the URL in case we're toying with the If-Modified-Since
				// and/or If-None-Match header later on
				// Remove hash to simplify url manipulation
				cacheURL = s.url.replace(rhash, "");
	
				// More options handling for requests with no content
				if (!s.hasContent) {
	
					// Remember the hash so we can put it back
					uncached = s.url.slice(cacheURL.length);
	
					// If data is available and should be processed, append data to url
					if (s.data && (s.processData || typeof s.data === "string")) {
						cacheURL += (rquery.test(cacheURL) ? "&" : "?") + s.data;
	
						// #9682: remove data so that it's not used in an eventual retry
						delete s.data;
					}
	
					// Add or update anti-cache param if needed
					if (s.cache === false) {
						cacheURL = cacheURL.replace(rantiCache, "$1");
						uncached = (rquery.test(cacheURL) ? "&" : "?") + "_=" + nonce.guid++ + uncached;
					}
	
					// Put hash and anti-cache on the URL that will be requested (gh-1732)
					s.url = cacheURL + uncached;
	
					// Change '%20' to '+' if this is encoded form body content (gh-2658)
				} else if (s.data && s.processData && (s.contentType || "").indexOf("application/x-www-form-urlencoded") === 0) {
					s.data = s.data.replace(r20, "+");
				}
	
				// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
				if (s.ifModified) {
					if (jQuery.lastModified[cacheURL]) {
						jqXHR.setRequestHeader("If-Modified-Since", jQuery.lastModified[cacheURL]);
					}
					if (jQuery.etag[cacheURL]) {
						jqXHR.setRequestHeader("If-None-Match", jQuery.etag[cacheURL]);
					}
				}
	
				// Set the correct header, if data is being sent
				if (s.data && s.hasContent && s.contentType !== false || options.contentType) {
					jqXHR.setRequestHeader("Content-Type", s.contentType);
				}
	
				// Set the Accepts header for the server, depending on the dataType
				jqXHR.setRequestHeader("Accept", s.dataTypes[0] && s.accepts[s.dataTypes[0]] ? s.accepts[s.dataTypes[0]] + (s.dataTypes[0] !== "*" ? ", " + allTypes + "; q=0.01" : "") : s.accepts["*"]);
	
				// Check for headers option
				for (i in s.headers) {
					jqXHR.setRequestHeader(i, s.headers[i]);
				}
	
				// Allow custom headers/mimetypes and early abort
				if (s.beforeSend && (s.beforeSend.call(callbackContext, jqXHR, s) === false || completed)) {
	
					// Abort if not done already and return
					return jqXHR.abort();
				}
	
				// Aborting is no longer a cancellation
				strAbort = "abort";
	
				// Install callbacks on deferreds
				completeDeferred.add(s.complete);
				jqXHR.done(s.success);
				jqXHR.fail(s.error);
	
				// Get transport
				transport = inspectPrefiltersOrTransports(transports, s, options, jqXHR);
	
				// If no transport, we auto-abort
				if (!transport) {
					done(-1, "No Transport");
				} else {
					jqXHR.readyState = 1;
	
					// Send global event
					if (fireGlobals) {
						globalEventContext.trigger("ajaxSend", [jqXHR, s]);
					}
	
					// If request was aborted inside ajaxSend, stop there
					if (completed) {
						return jqXHR;
					}
	
					// Timeout
					if (s.async && s.timeout > 0) {
						timeoutTimer = window.setTimeout(function () {
							jqXHR.abort("timeout");
						}, s.timeout);
					}
	
					try {
						completed = false;
						transport.send(requestHeaders, done);
					} catch (e) {
	
						// Rethrow post-completion exceptions
						if (completed) {
							throw e;
						}
	
						// Propagate others as results
						done(-1, e);
					}
				}
	
				// Callback for when everything is done
				function done(status, nativeStatusText, responses, headers) {
					var isSuccess,
					    success,
					    error,
					    response,
					    modified,
					    statusText = nativeStatusText;
	
					// Ignore repeat invocations
					if (completed) {
						return;
					}
	
					completed = true;
	
					// Clear timeout if it exists
					if (timeoutTimer) {
						window.clearTimeout(timeoutTimer);
					}
	
					// Dereference transport for early garbage collection
					// (no matter how long the jqXHR object will be used)
					transport = undefined;
	
					// Cache response headers
					responseHeadersString = headers || "";
	
					// Set readyState
					jqXHR.readyState = status > 0 ? 4 : 0;
	
					// Determine if successful
					isSuccess = status >= 200 && status < 300 || status === 304;
	
					// Get response data
					if (responses) {
						response = ajaxHandleResponses(s, jqXHR, responses);
					}
	
					// Use a noop converter for missing script
					if (!isSuccess && jQuery.inArray("script", s.dataTypes) > -1) {
						s.converters["text script"] = function () {};
					}
	
					// Convert no matter what (that way responseXXX fields are always set)
					response = ajaxConvert(s, response, jqXHR, isSuccess);
	
					// If successful, handle type chaining
					if (isSuccess) {
	
						// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
						if (s.ifModified) {
							modified = jqXHR.getResponseHeader("Last-Modified");
							if (modified) {
								jQuery.lastModified[cacheURL] = modified;
							}
							modified = jqXHR.getResponseHeader("etag");
							if (modified) {
								jQuery.etag[cacheURL] = modified;
							}
						}
	
						// if no content
						if (status === 204 || s.type === "HEAD") {
							statusText = "nocontent";
	
							// if not modified
						} else if (status === 304) {
							statusText = "notmodified";
	
							// If we have data, let's convert it
						} else {
							statusText = response.state;
							success = response.data;
							error = response.error;
							isSuccess = !error;
						}
					} else {
	
						// Extract error from statusText and normalize for non-aborts
						error = statusText;
						if (status || !statusText) {
							statusText = "error";
							if (status < 0) {
								status = 0;
							}
						}
					}
	
					// Set data for the fake xhr object
					jqXHR.status = status;
					jqXHR.statusText = (nativeStatusText || statusText) + "";
	
					// Success/Error
					if (isSuccess) {
						deferred.resolveWith(callbackContext, [success, statusText, jqXHR]);
					} else {
						deferred.rejectWith(callbackContext, [jqXHR, statusText, error]);
					}
	
					// Status-dependent callbacks
					jqXHR.statusCode(_statusCode);
					_statusCode = undefined;
	
					if (fireGlobals) {
						globalEventContext.trigger(isSuccess ? "ajaxSuccess" : "ajaxError", [jqXHR, s, isSuccess ? success : error]);
					}
	
					// Complete
					completeDeferred.fireWith(callbackContext, [jqXHR, statusText]);
	
					if (fireGlobals) {
						globalEventContext.trigger("ajaxComplete", [jqXHR, s]);
	
						// Handle the global AJAX counter
						if (! --jQuery.active) {
							jQuery.event.trigger("ajaxStop");
						}
					}
				}
	
				return jqXHR;
			},
	
			getJSON: function getJSON(url, data, callback) {
				return jQuery.get(url, data, callback, "json");
			},
	
			getScript: function getScript(url, callback) {
				return jQuery.get(url, undefined, callback, "script");
			}
		});
	
		jQuery.each(["get", "post"], function (_i, method) {
			jQuery[method] = function (url, data, callback, type) {
	
				// Shift arguments if data argument was omitted
				if (isFunction(data)) {
					type = type || callback;
					callback = data;
					data = undefined;
				}
	
				// The url can be an options object (which then must have .url)
				return jQuery.ajax(jQuery.extend({
					url: url,
					type: method,
					dataType: type,
					data: data,
					success: callback
				}, jQuery.isPlainObject(url) && url));
			};
		});
	
		jQuery.ajaxPrefilter(function (s) {
			var i;
			for (i in s.headers) {
				if (i.toLowerCase() === "content-type") {
					s.contentType = s.headers[i] || "";
				}
			}
		});
	
		jQuery._evalUrl = function (url, options, doc) {
			return jQuery.ajax({
				url: url,
	
				// Make this explicit, since user can override this through ajaxSetup (#11264)
				type: "GET",
				dataType: "script",
				cache: true,
				async: false,
				global: false,
	
				// Only evaluate the response if it is successful (gh-4126)
				// dataFilter is not invoked for failure responses, so using it instead
				// of the default converter is kludgy but it works.
				converters: {
					"text script": function textScript() {}
				},
				dataFilter: function dataFilter(response) {
					jQuery.globalEval(response, options, doc);
				}
			});
		};
	
		jQuery.fn.extend({
			wrapAll: function wrapAll(html) {
				var wrap;
	
				if (this[0]) {
					if (isFunction(html)) {
						html = html.call(this[0]);
					}
	
					// The elements to wrap the target around
					wrap = jQuery(html, this[0].ownerDocument).eq(0).clone(true);
	
					if (this[0].parentNode) {
						wrap.insertBefore(this[0]);
					}
	
					wrap.map(function () {
						var elem = this;
	
						while (elem.firstElementChild) {
							elem = elem.firstElementChild;
						}
	
						return elem;
					}).append(this);
				}
	
				return this;
			},
	
			wrapInner: function wrapInner(html) {
				if (isFunction(html)) {
					return this.each(function (i) {
						jQuery(this).wrapInner(html.call(this, i));
					});
				}
	
				return this.each(function () {
					var self = jQuery(this),
					    contents = self.contents();
	
					if (contents.length) {
						contents.wrapAll(html);
					} else {
						self.append(html);
					}
				});
			},
	
			wrap: function wrap(html) {
				var htmlIsFunction = isFunction(html);
	
				return this.each(function (i) {
					jQuery(this).wrapAll(htmlIsFunction ? html.call(this, i) : html);
				});
			},
	
			unwrap: function unwrap(selector) {
				this.parent(selector).not("body").each(function () {
					jQuery(this).replaceWith(this.childNodes);
				});
				return this;
			}
		});
	
		jQuery.expr.pseudos.hidden = function (elem) {
			return !jQuery.expr.pseudos.visible(elem);
		};
		jQuery.expr.pseudos.visible = function (elem) {
			return !!(elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length);
		};
	
		jQuery.ajaxSettings.xhr = function () {
			try {
				return new window.XMLHttpRequest();
			} catch (e) {}
		};
	
		var xhrSuccessStatus = {
	
			// File protocol always yields status code 0, assume 200
			0: 200,
	
			// Support: IE <=9 only
			// #1450: sometimes IE returns 1223 when it should be 204
			1223: 204
		},
		    xhrSupported = jQuery.ajaxSettings.xhr();
	
		support.cors = !!xhrSupported && "withCredentials" in xhrSupported;
		support.ajax = xhrSupported = !!xhrSupported;
	
		jQuery.ajaxTransport(function (options) {
			var _callback, errorCallback;
	
			// Cross domain only allowed if supported through XMLHttpRequest
			if (support.cors || xhrSupported && !options.crossDomain) {
				return {
					send: function send(headers, complete) {
						var i,
						    xhr = options.xhr();
	
						xhr.open(options.type, options.url, options.async, options.username, options.password);
	
						// Apply custom fields if provided
						if (options.xhrFields) {
							for (i in options.xhrFields) {
								xhr[i] = options.xhrFields[i];
							}
						}
	
						// Override mime type if needed
						if (options.mimeType && xhr.overrideMimeType) {
							xhr.overrideMimeType(options.mimeType);
						}
	
						// X-Requested-With header
						// For cross-domain requests, seeing as conditions for a preflight are
						// akin to a jigsaw puzzle, we simply never set it to be sure.
						// (it can always be set on a per-request basis or even using ajaxSetup)
						// For same-domain requests, won't change header if already provided.
						if (!options.crossDomain && !headers["X-Requested-With"]) {
							headers["X-Requested-With"] = "XMLHttpRequest";
						}
	
						// Set headers
						for (i in headers) {
							xhr.setRequestHeader(i, headers[i]);
						}
	
						// Callback
						_callback = function callback(type) {
							return function () {
								if (_callback) {
									_callback = errorCallback = xhr.onload = xhr.onerror = xhr.onabort = xhr.ontimeout = xhr.onreadystatechange = null;
	
									if (type === "abort") {
										xhr.abort();
									} else if (type === "error") {
	
										// Support: IE <=9 only
										// On a manual native abort, IE9 throws
										// errors on any property access that is not readyState
										if (typeof xhr.status !== "number") {
											complete(0, "error");
										} else {
											complete(
	
											// File: protocol always yields status 0; see #8605, #14207
											xhr.status, xhr.statusText);
										}
									} else {
										complete(xhrSuccessStatus[xhr.status] || xhr.status, xhr.statusText,
	
										// Support: IE <=9 only
										// IE9 has no XHR2 but throws on binary (trac-11426)
										// For XHR2 non-text, let the caller handle it (gh-2498)
										(xhr.responseType || "text") !== "text" || typeof xhr.responseText !== "string" ? { binary: xhr.response } : { text: xhr.responseText }, xhr.getAllResponseHeaders());
									}
								}
							};
						};
	
						// Listen to events
						xhr.onload = _callback();
						errorCallback = xhr.onerror = xhr.ontimeout = _callback("error");
	
						// Support: IE 9 only
						// Use onreadystatechange to replace onabort
						// to handle uncaught aborts
						if (xhr.onabort !== undefined) {
							xhr.onabort = errorCallback;
						} else {
							xhr.onreadystatechange = function () {
	
								// Check readyState before timeout as it changes
								if (xhr.readyState === 4) {
	
									// Allow onerror to be called first,
									// but that will not handle a native abort
									// Also, save errorCallback to a variable
									// as xhr.onerror cannot be accessed
									window.setTimeout(function () {
										if (_callback) {
											errorCallback();
										}
									});
								}
							};
						}
	
						// Create the abort callback
						_callback = _callback("abort");
	
						try {
	
							// Do send the request (this may raise an exception)
							xhr.send(options.hasContent && options.data || null);
						} catch (e) {
	
							// #14683: Only rethrow if this hasn't been notified as an error yet
							if (_callback) {
								throw e;
							}
						}
					},
	
					abort: function abort() {
						if (_callback) {
							_callback();
						}
					}
				};
			}
		});
	
		// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)
		jQuery.ajaxPrefilter(function (s) {
			if (s.crossDomain) {
				s.contents.script = false;
			}
		});
	
		// Install script dataType
		jQuery.ajaxSetup({
			accepts: {
				script: "text/javascript, application/javascript, " + "application/ecmascript, application/x-ecmascript"
			},
			contents: {
				script: /\b(?:java|ecma)script\b/
			},
			converters: {
				"text script": function textScript(text) {
					jQuery.globalEval(text);
					return text;
				}
			}
		});
	
		// Handle cache's special case and crossDomain
		jQuery.ajaxPrefilter("script", function (s) {
			if (s.cache === undefined) {
				s.cache = false;
			}
			if (s.crossDomain) {
				s.type = "GET";
			}
		});
	
		// Bind script tag hack transport
		jQuery.ajaxTransport("script", function (s) {
	
			// This transport only deals with cross domain or forced-by-attrs requests
			if (s.crossDomain || s.scriptAttrs) {
				var script, _callback2;
				return {
					send: function send(_, complete) {
						script = jQuery("<script>").attr(s.scriptAttrs || {}).prop({ charset: s.scriptCharset, src: s.url }).on("load error", _callback2 = function callback(evt) {
							script.remove();
							_callback2 = null;
							if (evt) {
								complete(evt.type === "error" ? 404 : 200, evt.type);
							}
						});
	
						// Use native DOM manipulation to avoid our domManip AJAX trickery
						document.head.appendChild(script[0]);
					},
					abort: function abort() {
						if (_callback2) {
							_callback2();
						}
					}
				};
			}
		});
	
		var oldCallbacks = [],
		    rjsonp = /(=)\?(?=&|$)|\?\?/;
	
		// Default jsonp settings
		jQuery.ajaxSetup({
			jsonp: "callback",
			jsonpCallback: function jsonpCallback() {
				var callback = oldCallbacks.pop() || jQuery.expando + "_" + nonce.guid++;
				this[callback] = true;
				return callback;
			}
		});
	
		// Detect, normalize options and install callbacks for jsonp requests
		jQuery.ajaxPrefilter("json jsonp", function (s, originalSettings, jqXHR) {
	
			var callbackName,
			    overwritten,
			    responseContainer,
			    jsonProp = s.jsonp !== false && (rjsonp.test(s.url) ? "url" : typeof s.data === "string" && (s.contentType || "").indexOf("application/x-www-form-urlencoded") === 0 && rjsonp.test(s.data) && "data");
	
			// Handle iff the expected data type is "jsonp" or we have a parameter to set
			if (jsonProp || s.dataTypes[0] === "jsonp") {
	
				// Get callback name, remembering preexisting value associated with it
				callbackName = s.jsonpCallback = isFunction(s.jsonpCallback) ? s.jsonpCallback() : s.jsonpCallback;
	
				// Insert callback into url or form data
				if (jsonProp) {
					s[jsonProp] = s[jsonProp].replace(rjsonp, "$1" + callbackName);
				} else if (s.jsonp !== false) {
					s.url += (rquery.test(s.url) ? "&" : "?") + s.jsonp + "=" + callbackName;
				}
	
				// Use data converter to retrieve json after script execution
				s.converters["script json"] = function () {
					if (!responseContainer) {
						jQuery.error(callbackName + " was not called");
					}
					return responseContainer[0];
				};
	
				// Force json dataType
				s.dataTypes[0] = "json";
	
				// Install callback
				overwritten = window[callbackName];
				window[callbackName] = function () {
					responseContainer = arguments;
				};
	
				// Clean-up function (fires after converters)
				jqXHR.always(function () {
	
					// If previous value didn't exist - remove it
					if (overwritten === undefined) {
						jQuery(window).removeProp(callbackName);
	
						// Otherwise restore preexisting value
					} else {
						window[callbackName] = overwritten;
					}
	
					// Save back as free
					if (s[callbackName]) {
	
						// Make sure that re-using the options doesn't screw things around
						s.jsonpCallback = originalSettings.jsonpCallback;
	
						// Save the callback name for future use
						oldCallbacks.push(callbackName);
					}
	
					// Call if it was a function and we have a response
					if (responseContainer && isFunction(overwritten)) {
						overwritten(responseContainer[0]);
					}
	
					responseContainer = overwritten = undefined;
				});
	
				// Delegate to script
				return "script";
			}
		});
	
		// Support: Safari 8 only
		// In Safari 8 documents created via document.implementation.createHTMLDocument
		// collapse sibling forms: the second one becomes a child of the first one.
		// Because of that, this security measure has to be disabled in Safari 8.
		// https://bugs.webkit.org/show_bug.cgi?id=137337
		support.createHTMLDocument = function () {
			var body = document.implementation.createHTMLDocument("").body;
			body.innerHTML = "<form></form><form></form>";
			return body.childNodes.length === 2;
		}();
	
		// Argument "data" should be string of html
		// context (optional): If specified, the fragment will be created in this context,
		// defaults to document
		// keepScripts (optional): If true, will include scripts passed in the html string
		jQuery.parseHTML = function (data, context, keepScripts) {
			if (typeof data !== "string") {
				return [];
			}
			if (typeof context === "boolean") {
				keepScripts = context;
				context = false;
			}
	
			var base, parsed, scripts;
	
			if (!context) {
	
				// Stop scripts or inline event handlers from being executed immediately
				// by using document.implementation
				if (support.createHTMLDocument) {
					context = document.implementation.createHTMLDocument("");
	
					// Set the base href for the created document
					// so any parsed elements with URLs
					// are based on the document's URL (gh-2965)
					base = context.createElement("base");
					base.href = document.location.href;
					context.head.appendChild(base);
				} else {
					context = document;
				}
			}
	
			parsed = rsingleTag.exec(data);
			scripts = !keepScripts && [];
	
			// Single tag
			if (parsed) {
				return [context.createElement(parsed[1])];
			}
	
			parsed = buildFragment([data], context, scripts);
	
			if (scripts && scripts.length) {
				jQuery(scripts).remove();
			}
	
			return jQuery.merge([], parsed.childNodes);
		};
	
		/**
	  * Load a url into a page
	  */
		jQuery.fn.load = function (url, params, callback) {
			var selector,
			    type,
			    response,
			    self = this,
			    off = url.indexOf(" ");
	
			if (off > -1) {
				selector = stripAndCollapse(url.slice(off));
				url = url.slice(0, off);
			}
	
			// If it's a function
			if (isFunction(params)) {
	
				// We assume that it's the callback
				callback = params;
				params = undefined;
	
				// Otherwise, build a param string
			} else if (params && (typeof params === "undefined" ? "undefined" : _typeof(params)) === "object") {
				type = "POST";
			}
	
			// If we have elements to modify, make the request
			if (self.length > 0) {
				jQuery.ajax({
					url: url,
	
					// If "type" variable is undefined, then "GET" method will be used.
					// Make value of this field explicit since
					// user can override it through ajaxSetup method
					type: type || "GET",
					dataType: "html",
					data: params
				}).done(function (responseText) {
	
					// Save response for use in complete callback
					response = arguments;
	
					self.html(selector ?
	
					// If a selector was specified, locate the right elements in a dummy div
					// Exclude scripts to avoid IE 'Permission Denied' errors
					jQuery("<div>").append(jQuery.parseHTML(responseText)).find(selector) :
	
					// Otherwise use the full result
					responseText);
	
					// If the request succeeds, this function gets "data", "status", "jqXHR"
					// but they are ignored because response was set above.
					// If it fails, this function gets "jqXHR", "status", "error"
				}).always(callback && function (jqXHR, status) {
					self.each(function () {
						callback.apply(this, response || [jqXHR.responseText, status, jqXHR]);
					});
				});
			}
	
			return this;
		};
	
		jQuery.expr.pseudos.animated = function (elem) {
			return jQuery.grep(jQuery.timers, function (fn) {
				return elem === fn.elem;
			}).length;
		};
	
		jQuery.offset = {
			setOffset: function setOffset(elem, options, i) {
				var curPosition,
				    curLeft,
				    curCSSTop,
				    curTop,
				    curOffset,
				    curCSSLeft,
				    calculatePosition,
				    position = jQuery.css(elem, "position"),
				    curElem = jQuery(elem),
				    props = {};
	
				// Set position first, in-case top/left are set even on static elem
				if (position === "static") {
					elem.style.position = "relative";
				}
	
				curOffset = curElem.offset();
				curCSSTop = jQuery.css(elem, "top");
				curCSSLeft = jQuery.css(elem, "left");
				calculatePosition = (position === "absolute" || position === "fixed") && (curCSSTop + curCSSLeft).indexOf("auto") > -1;
	
				// Need to be able to calculate position if either
				// top or left is auto and position is either absolute or fixed
				if (calculatePosition) {
					curPosition = curElem.position();
					curTop = curPosition.top;
					curLeft = curPosition.left;
				} else {
					curTop = parseFloat(curCSSTop) || 0;
					curLeft = parseFloat(curCSSLeft) || 0;
				}
	
				if (isFunction(options)) {
	
					// Use jQuery.extend here to allow modification of coordinates argument (gh-1848)
					options = options.call(elem, i, jQuery.extend({}, curOffset));
				}
	
				if (options.top != null) {
					props.top = options.top - curOffset.top + curTop;
				}
				if (options.left != null) {
					props.left = options.left - curOffset.left + curLeft;
				}
	
				if ("using" in options) {
					options.using.call(elem, props);
				} else {
					if (typeof props.top === "number") {
						props.top += "px";
					}
					if (typeof props.left === "number") {
						props.left += "px";
					}
					curElem.css(props);
				}
			}
		};
	
		jQuery.fn.extend({
	
			// offset() relates an element's border box to the document origin
			offset: function offset(options) {
	
				// Preserve chaining for setter
				if (arguments.length) {
					return options === undefined ? this : this.each(function (i) {
						jQuery.offset.setOffset(this, options, i);
					});
				}
	
				var rect,
				    win,
				    elem = this[0];
	
				if (!elem) {
					return;
				}
	
				// Return zeros for disconnected and hidden (display: none) elements (gh-2310)
				// Support: IE <=11 only
				// Running getBoundingClientRect on a
				// disconnected node in IE throws an error
				if (!elem.getClientRects().length) {
					return { top: 0, left: 0 };
				}
	
				// Get document-relative position by adding viewport scroll to viewport-relative gBCR
				rect = elem.getBoundingClientRect();
				win = elem.ownerDocument.defaultView;
				return {
					top: rect.top + win.pageYOffset,
					left: rect.left + win.pageXOffset
				};
			},
	
			// position() relates an element's margin box to its offset parent's padding box
			// This corresponds to the behavior of CSS absolute positioning
			position: function position() {
				if (!this[0]) {
					return;
				}
	
				var offsetParent,
				    offset,
				    doc,
				    elem = this[0],
				    parentOffset = { top: 0, left: 0 };
	
				// position:fixed elements are offset from the viewport, which itself always has zero offset
				if (jQuery.css(elem, "position") === "fixed") {
	
					// Assume position:fixed implies availability of getBoundingClientRect
					offset = elem.getBoundingClientRect();
				} else {
					offset = this.offset();
	
					// Account for the *real* offset parent, which can be the document or its root element
					// when a statically positioned element is identified
					doc = elem.ownerDocument;
					offsetParent = elem.offsetParent || doc.documentElement;
					while (offsetParent && (offsetParent === doc.body || offsetParent === doc.documentElement) && jQuery.css(offsetParent, "position") === "static") {
	
						offsetParent = offsetParent.parentNode;
					}
					if (offsetParent && offsetParent !== elem && offsetParent.nodeType === 1) {
	
						// Incorporate borders into its offset, since they are outside its content origin
						parentOffset = jQuery(offsetParent).offset();
						parentOffset.top += jQuery.css(offsetParent, "borderTopWidth", true);
						parentOffset.left += jQuery.css(offsetParent, "borderLeftWidth", true);
					}
				}
	
				// Subtract parent offsets and element margins
				return {
					top: offset.top - parentOffset.top - jQuery.css(elem, "marginTop", true),
					left: offset.left - parentOffset.left - jQuery.css(elem, "marginLeft", true)
				};
			},
	
			// This method will return documentElement in the following cases:
			// 1) For the element inside the iframe without offsetParent, this method will return
			//    documentElement of the parent window
			// 2) For the hidden or detached element
			// 3) For body or html element, i.e. in case of the html node - it will return itself
			//
			// but those exceptions were never presented as a real life use-cases
			// and might be considered as more preferable results.
			//
			// This logic, however, is not guaranteed and can change at any point in the future
			offsetParent: function offsetParent() {
				return this.map(function () {
					var offsetParent = this.offsetParent;
	
					while (offsetParent && jQuery.css(offsetParent, "position") === "static") {
						offsetParent = offsetParent.offsetParent;
					}
	
					return offsetParent || documentElement;
				});
			}
		});
	
		// Create scrollLeft and scrollTop methods
		jQuery.each({ scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function (method, prop) {
			var top = "pageYOffset" === prop;
	
			jQuery.fn[method] = function (val) {
				return access(this, function (elem, method, val) {
	
					// Coalesce documents and windows
					var win;
					if (isWindow(elem)) {
						win = elem;
					} else if (elem.nodeType === 9) {
						win = elem.defaultView;
					}
	
					if (val === undefined) {
						return win ? win[prop] : elem[method];
					}
	
					if (win) {
						win.scrollTo(!top ? val : win.pageXOffset, top ? val : win.pageYOffset);
					} else {
						elem[method] = val;
					}
				}, method, val, arguments.length);
			};
		});
	
		// Support: Safari <=7 - 9.1, Chrome <=37 - 49
		// Add the top/left cssHooks using jQuery.fn.position
		// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
		// Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347
		// getComputedStyle returns percent when specified for top/left/bottom/right;
		// rather than make the css module depend on the offset module, just check for it here
		jQuery.each(["top", "left"], function (_i, prop) {
			jQuery.cssHooks[prop] = addGetHookIf(support.pixelPosition, function (elem, computed) {
				if (computed) {
					computed = curCSS(elem, prop);
	
					// If curCSS returns percentage, fallback to offset
					return rnumnonpx.test(computed) ? jQuery(elem).position()[prop] + "px" : computed;
				}
			});
		});
	
		// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
		jQuery.each({ Height: "height", Width: "width" }, function (name, type) {
			jQuery.each({ padding: "inner" + name, content: type, "": "outer" + name }, function (defaultExtra, funcName) {
	
				// Margin is only for outerHeight, outerWidth
				jQuery.fn[funcName] = function (margin, value) {
					var chainable = arguments.length && (defaultExtra || typeof margin !== "boolean"),
					    extra = defaultExtra || (margin === true || value === true ? "margin" : "border");
	
					return access(this, function (elem, type, value) {
						var doc;
	
						if (isWindow(elem)) {
	
							// $( window ).outerWidth/Height return w/h including scrollbars (gh-1729)
							return funcName.indexOf("outer") === 0 ? elem["inner" + name] : elem.document.documentElement["client" + name];
						}
	
						// Get document width or height
						if (elem.nodeType === 9) {
							doc = elem.documentElement;
	
							// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],
							// whichever is greatest
							return Math.max(elem.body["scroll" + name], doc["scroll" + name], elem.body["offset" + name], doc["offset" + name], doc["client" + name]);
						}
	
						return value === undefined ?
	
						// Get width or height on the element, requesting but not forcing parseFloat
						jQuery.css(elem, type, extra) :
	
						// Set width or height on the element
						jQuery.style(elem, type, value, extra);
					}, type, chainable ? margin : undefined, chainable);
				};
			});
		});
	
		jQuery.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function (_i, type) {
			jQuery.fn[type] = function (fn) {
				return this.on(type, fn);
			};
		});
	
		jQuery.fn.extend({
	
			bind: function bind(types, data, fn) {
				return this.on(types, null, data, fn);
			},
			unbind: function unbind(types, fn) {
				return this.off(types, null, fn);
			},
	
			delegate: function delegate(selector, types, data, fn) {
				return this.on(types, selector, data, fn);
			},
			undelegate: function undelegate(selector, types, fn) {
	
				// ( namespace ) or ( selector, types [, fn] )
				return arguments.length === 1 ? this.off(selector, "**") : this.off(types, selector || "**", fn);
			},
	
			hover: function hover(fnOver, fnOut) {
				return this.mouseenter(fnOver).mouseleave(fnOut || fnOver);
			}
		});
	
		jQuery.each(("blur focus focusin focusout resize scroll click dblclick " + "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + "change select submit keydown keypress keyup contextmenu").split(" "), function (_i, name) {
	
			// Handle event binding
			jQuery.fn[name] = function (data, fn) {
				return arguments.length > 0 ? this.on(name, null, data, fn) : this.trigger(name);
			};
		});
	
		// Support: Android <=4.0 only
		// Make sure we trim BOM and NBSP
		var rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
	
		// Bind a function to a context, optionally partially applying any
		// arguments.
		// jQuery.proxy is deprecated to promote standards (specifically Function#bind)
		// However, it is not slated for removal any time soon
		jQuery.proxy = function (fn, context) {
			var tmp, args, proxy;
	
			if (typeof context === "string") {
				tmp = fn[context];
				context = fn;
				fn = tmp;
			}
	
			// Quick check to determine if target is callable, in the spec
			// this throws a TypeError, but we will just return undefined.
			if (!isFunction(fn)) {
				return undefined;
			}
	
			// Simulated bind
			args = _slice.call(arguments, 2);
			proxy = function proxy() {
				return fn.apply(context || this, args.concat(_slice.call(arguments)));
			};
	
			// Set the guid of unique handler to the same of original handler, so it can be removed
			proxy.guid = fn.guid = fn.guid || jQuery.guid++;
	
			return proxy;
		};
	
		jQuery.holdReady = function (hold) {
			if (hold) {
				jQuery.readyWait++;
			} else {
				jQuery.ready(true);
			}
		};
		jQuery.isArray = Array.isArray;
		jQuery.parseJSON = JSON.parse;
		jQuery.nodeName = nodeName;
		jQuery.isFunction = isFunction;
		jQuery.isWindow = isWindow;
		jQuery.camelCase = camelCase;
		jQuery.type = toType;
	
		jQuery.now = Date.now;
	
		jQuery.isNumeric = function (obj) {
	
			// As of jQuery 3.0, isNumeric is limited to
			// strings and numbers (primitives or objects)
			// that can be coerced to finite numbers (gh-2662)
			var type = jQuery.type(obj);
			return (type === "number" || type === "string") &&
	
			// parseFloat NaNs numeric-cast false positives ("")
			// ...but misinterprets leading-number strings, particularly hex literals ("0x...")
			// subtraction forces infinities to NaN
			!isNaN(obj - parseFloat(obj));
		};
	
		jQuery.trim = function (text) {
			return text == null ? "" : (text + "").replace(rtrim, "");
		};
	
		// Register as a named AMD module, since jQuery can be concatenated with other
		// files that may use define, but not via a proper concatenation script that
		// understands anonymous AMD modules. A named AMD is safest and most robust
		// way to register. Lowercase jquery is used because AMD module names are
		// derived from file names, and jQuery is normally delivered in a lowercase
		// file name. Do this after creating the global so that if an AMD module wants
		// to call noConflict to hide this version of jQuery, it will work.
	
		// Note that for maximum portability, libraries that are not jQuery should
		// declare themselves as anonymous modules, and avoid setting a global if an
		// AMD loader is present. jQuery is a special case. For more information, see
		// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
	
		if (true) {
			!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function () {
				return jQuery;
			}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
		}
	
		var
	
		// Map over jQuery in case of overwrite
		_jQuery = window.jQuery,
	
	
		// Map over the $ in case of overwrite
		_$ = window.$;
	
		jQuery.noConflict = function (deep) {
			if (window.$ === jQuery) {
				window.$ = _$;
			}
	
			if (deep && window.jQuery === jQuery) {
				window.jQuery = _jQuery;
			}
	
			return jQuery;
		};
	
		// Expose jQuery and $ identifiers, even in AMD
		// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
		// and CommonJS for browser emulators (#13566)
		if (typeof noGlobal === "undefined") {
			window.jQuery = window.$ = jQuery;
		}
	
		return jQuery;
	});
	/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(38)(module)))

/***/ }),
/* 981 */
/***/ (function(module, exports) {

	'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	angular.module('pusher-angular', []).factory('$pusher', ['$rootScope', '$channel', '$connection', function ($rootScope, $channel, $connection) {
	
	  function PusherAngular(pusherClient) {
	    if (!(this instanceof PusherAngular)) {
	      return new PusherAngular(pusherClient);
	    }
	
	    this._assertValidClient(pusherClient);
	    this.client = pusherClient;
	    this.connection = $connection(pusherClient.connection, pusherClient);
	    this.channels = {};
	  }
	
	  PusherAngular.prototype = {
	    /**
	     * Subscribe the client to the specified channelName and returns the channel object.
	     * {@link https://pusher.com/docs/client_api_guide/client_public_channels#subscribe}
	     *
	     * @param {String} channelName name of the channel
	     * @returns {Object} channel object
	     */
	    subscribe: function subscribe(channelName) {
	      var channel = this.client.channel(channelName);
	      if (channel === undefined) {
	        channel = this.client.subscribe(channelName);
	      }
	      channel = $channel(channel, this);
	      this.channels[channelName] = channel;
	      return channel;
	    },
	
	    /**
	     * Unsubscribes the client from the specified channel
	     * {@link https://pusher.com/docs/client_api_guide/client_public_channels#unsubscribe}
	     *
	     * @param {String} channelName name of the channel
	     */
	    unsubscribe: function unsubscribe(channelName) {
	      if (this.client.channel(channelName)) {
	        this.client.unsubscribe(channelName);
	        if (this.channels[channelName]) {
	          delete this.channels[channelName];
	        }
	      }
	    },
	
	    /**
	     * Binds to global events on the pusher client. You can attach behaviour to these events
	     * regardless of the channel the event is broadcast to.
	     *
	     * @param {String} eventName name of the event you want to bind to
	     * @param {Function|undefined} callback callback that you want called upon the event occurring
	     * @param {Object} context used as the `this` value when calling a handler
	     * @param {boolean} [invokeDigest=true] If set to `false` skips invoking $digest
	     * @returns {Function} the decorated version of the callback provided
	     */
	    bind: function bind(eventName, callback, context, invokeDigest) {
	      var skipDigest = angular.isDefined(invokeDigest) && !invokeDigest,
	          decoratedCallback = function decoratedCallback(data) {
	        callback(data);
	        if (!skipDigest) $rootScope.$digest();
	      };
	      this.client.bind(eventName, decoratedCallback, context);
	      return decoratedCallback;
	    },
	
	    /**
	     * Binds to all of the global client messages.
	     *
	     * @param {Function|undefined} callback callback that you want called upon a message being received
	     * @param {boolean} [invokeDigest=true] If set to `false` skips invoking $digest
	     */
	    bind_global: function bind_global(callback, invokeDigest) {
	      var skipDigest = angular.isDefined(invokeDigest) && !invokeDigest;
	      this.client.bind_global(function (eventName, data) {
	        callback(eventName, data);
	        if (!skipDigest) $rootScope.$digest();
	      });
	    },
	
	    /**
	     * Unbinds from global events on the pusher client.
	     *
	     * @param {String} eventName name of the event you want to bind from
	     * @param {Function|undefined} decoratedCallback the decorated version of the callback that you want to unbind
	     * @param {Object} context used as the `this` value when calling a handler
	     */
	    unbind: function unbind(eventName, decoratedCallback, context) {
	      this.client.unbind(eventName, decoratedCallback, context);
	    },
	
	    /**
	     * Disconnects the pusher client.
	     * {@link http://pusher.com/docs/client_api_guide/client_connect#disconnecting}
	     */
	    disconnect: function disconnect() {
	      this.client.disconnect();
	    },
	
	    /**
	     * Returns a pusher channel object.
	     * {@link https://pusher.com/docs/client_api_guide/client_channels#access}
	     *
	     * @param {String} channelName name of the channel
	     * @returns {Array} channel object
	     */
	    channel: function channel(channelName) {
	      return this.channels[channelName];
	    },
	
	    /**
	     * Returns a an array of the channels that the client is subscribed to.
	     * {@link https://pusher.com/docs/client_api_guide/client_channels#access}
	     *
	     * @returns {Array} array of subscribed channels
	     */
	    allChannels: function allChannels() {
	      return this.channels;
	    },
	
	    /**
	     * Asserts that the $pusher object is being initialised with valid pusherClient.
	     * Throws an error if pusherClient is invalid.
	     *
	     * @param {Object} pusherClient members object from base pusher channel object
	     */
	    _assertValidClient: function _assertValidClient(pusherClient) {
	      if (!angular.isObject(pusherClient) || !angular.isObject(pusherClient.connection) || typeof pusherClient.channel !== 'function') {
	        throw new Error('Invalid Pusher client object');
	      }
	    }
	  };
	
	  return PusherAngular;
	}]).factory('$channel', ['$rootScope', '$members', function ($rootScope, $members) {
	
	  function checkPresenceOrPrivateChannel(channelName) {
	    if (channelName.indexOf('presence-') == -1 && channelName.indexOf('private-') == -1) {
	      throw new Error('Presence or private channel required');
	    }
	  }
	
	  function $channel(baseChannel, $pusherClient) {
	    if (!(this instanceof $channel)) {
	      return new $channel(baseChannel, $pusherClient);
	    }
	
	    this._assertValidChannel(baseChannel);
	    this.baseChannel = baseChannel;
	    this.client = $pusherClient;
	    this.name = baseChannel.name;
	
	    if (baseChannel.name.indexOf('presence') == -1) {
	      this.members = function () {
	        throw new Error('Members object only exists for presence channels');
	      };
	    } else {
	      this.members = $members(baseChannel.members, baseChannel);
	    }
	  }
	
	  $channel.prototype = {
	    /**
	     * Binds to the given event name on the channel.
	     *
	     * @param {String} eventName name of the event you want to bind to
	     * @param {Function|undefined} callback callback that you want called upon the event occurring
	     * @param {Object} context used as the `this` value when calling a handler
	     * @param {boolean} [invokeDigest=true] If set to `false` skips invoking $digest
	     * @returns {Function} the decorated version of the callback provided
	     */
	    bind: function bind(eventName, callback, context, invokeDigest) {
	      var skipDigest = angular.isDefined(invokeDigest) && !invokeDigest,
	          decoratedCallback = function decoratedCallback(data) {
	        callback(data);
	        if (!skipDigest) $rootScope.$digest();
	      };
	      this.baseChannel.bind(eventName, decoratedCallback, context);
	      return decoratedCallback;
	    },
	
	    /**
	     * Unbinds from the given event name on the channel.
	     *
	     * @param {String} eventName name of the event you want to bind from
	     * @param {Function|undefined} decoratedCallback the decorated version of the callback that you want to unbind
	     * @param {Object} context used as the `this` value when calling a handler
	     */
	    unbind: function unbind(eventName, decoratedCallback, context) {
	      this.baseChannel.unbind(eventName, decoratedCallback, context);
	    },
	
	    /**
	     * Binds to all of the channel events.
	     *
	     * @param {Function|undefined} callback callback that you want called upon the event occurring
	     * @param {boolean} [invokeDigest=true] If set to `false` skips invoking $digest
	     */
	    bind_global: function bind_global(callback, invokeDigest) {
	      var skipDigest = angular.isDefined(invokeDigest) && !invokeDigest;
	      this.baseChannel.bind_global(function (eventName, data) {
	        callback(eventName, data);
	        if (!skipDigest) $rootScope.$digest();
	      });
	    },
	
	    /**
	     * Triggers a client event.
	     * {@link https://pusher.com/docs/client_api_guide/client_events#trigger-events}
	     *
	     * @param {String} channelName name of the channel
	     * @param {String} eventName name of the event
	     * @param {Object} obj object that you wish to pass along with your client event
	     * @returns {}
	     */
	    trigger: function trigger(eventName, obj) {
	      checkPresenceOrPrivateChannel(this.name);
	      if (eventName.indexOf('client-') == -1) {
	        throw new Error('Event name requires \'client-\' prefix');
	      }
	      return this.baseChannel.trigger(eventName, obj);
	    },
	
	    /**
	     * Asserts that the $channel object is being initialised with valid baseChannel.
	     * Throws an error if baseChannel is invalid.
	     *
	     * @param {Object} baseChannel channel object from base pusher channel object
	     */
	    _assertValidChannel: function _assertValidChannel(baseChannel) {
	      if (!angular.isObject(baseChannel) || typeof baseChannel.name !== 'string') {
	        throw new Error('Invalid Pusher channel object');
	      }
	    }
	  };
	
	  return $channel;
	}]).factory('$members', ['$rootScope', function ($rootScope) {
	
	  function $members(baseMembers, baseChannel) {
	    if (!(this instanceof $members)) {
	      return new $members(baseMembers, baseChannel);
	    }
	    var self = this;
	
	    this._assertValidMembers(baseMembers);
	    this.baseMembers = baseMembers;
	    this.baseChannel = baseChannel;
	    this.me = {};
	    this.count = 0;
	    this.members = {};
	
	    baseChannel.bind('pusher:subscription_succeeded', function (members) {
	      self.me = members.me;
	      self.count = members.count;
	      self.members = members.members;
	      $rootScope.$digest();
	    });
	
	    baseChannel.bind('pusher:member_added', function (member) {
	      self.count++;
	      if (member.info) {
	        self.members[member.id.toString()] = member.info;
	      } else {
	        self.members[member.id.toString()] = null;
	      }
	      $rootScope.$digest();
	    });
	
	    baseChannel.bind('pusher:member_removed', function (member) {
	      self.count--;
	      delete self.members[member.id.toString()];
	      $rootScope.$digest();
	    });
	  }
	
	  $members.prototype = {
	    /**
	     * Returns member's info for given id. Resulting object containts two fields - id and info.
	     *
	     * @param {Number} id user's id
	     * @return {Object} member's info or null
	     */
	    get: function get(id) {
	      return this.baseMembers.get(id);
	    },
	
	    /**
	     * Calls back for each member in unspecified order.
	     *
	     * @param {Function} callback callback function
	     */
	    each: function each(callback) {
	      this.baseMembers.each(function (member) {
	        callback(member);
	        $rootScope.$digest();
	      });
	    },
	
	    /**
	     * Asserts that the $members object is being initialised with valid baseMembers.
	     * Throws an error if baseMembers is invalid.
	     *
	     * @param {Object} baseMembers members object from base pusher channel object
	     */
	    _assertValidMembers: function _assertValidMembers(baseMembers) {
	      if (!angular.isObject(baseMembers) || _typeof(baseMembers.me) !== 'object') {
	        throw new Error('Invalid Pusher channel members object');
	      }
	    }
	  };
	
	  return $members;
	}]).factory('$connection', ['$rootScope', function ($rootScope) {
	
	  function $connection(baseConnection, baseClient) {
	    if (!(this instanceof $connection)) {
	      return new $connection(baseConnection, baseClient);
	    }
	
	    this._assertValidConnection(baseConnection);
	    this.baseConnection = baseConnection;
	    this.baseClient = baseClient;
	  }
	
	  $connection.prototype = {
	    /**
	     * Binds to the given event name on the connection.
	     *
	     * @param {String} eventName name of the event you want to bind to
	     * @param {Function|undefined} callback callback that you want called upon the event occurring
	     * @param {Object} context used as the `this` value when calling a handler
	     * @param {boolean} [invokeDigest=true] If set to `false` skips invoking $digest
	     */
	    bind: function bind(eventName, callback, context, invokeDigest) {
	      var skipDigest = angular.isDefined(invokeDigest) && !invokeDigest;
	      this.baseConnection.bind(eventName, function (data) {
	        callback(data);
	        if (!skipDigest) $rootScope.$digest();
	      }, context);
	    },
	
	    /**
	     * Binds to all of the global connection events.
	     *
	     * @param {Function|undefined} callback callback that you want called upon the event occurring
	     * @param {boolean} [invokeDigest=true] If set to `false` skips invoking $digest
	     */
	    bind_global: function bind_global(callback, invokeDigest) {
	      var skipDigest = angular.isDefined(invokeDigest) && !invokeDigest;
	      this.baseConnection.bind_global(function (eventName, data) {
	        callback(eventName, data);
	        if (!skipDigest) $rootScope.$digest();
	      });
	    },
	
	    /**
	     * Asserts that the $connection object is being initialised with valid baseConnection.
	     * Throws an error if baseConnection is invalid.
	     *
	     * @param {Object} baseConnection connection object from base pusher object
	     */
	    _assertValidConnection: function _assertValidConnection(baseConnection) {
	      if (!angular.isObject(baseConnection)) {
	        throw new Error('Invalid Pusher connection object');
	      }
	    }
	  };
	
	  return $connection;
	}]);

/***/ }),
/* 982 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-animation', []);
	// module.exports = 'ui-ng-animation';

/***/ }),
/* 983 */
/***/ (function(module, exports) {

	'use strict';
	
	var KEYS = {
	  ENTER: 13,
	  ESCAPE: 27,
	  SPACE: 32
	};
	
	angular.module('ui-ng-ax').factory('phxAxReturnFocusFactory', function () {
	  var focusFactory = {};
	  var currentFocusId = '';
	
	  focusFactory.setFocusId = function (focusId) {
	    return currentFocusId = focusId;
	  };
	
	  focusFactory.getFocusId = function () {
	    return currentFocusId;
	  };
	
	  return focusFactory;
	}).controller('phxAxReturnFocusController', function ($scope, phxFocusDelegate, phxAxReturnFocusFactory) {
	  $scope.returnFocus = function () {
	    phxFocusDelegate.focus(phxAxReturnFocusFactory.getFocusId());
	  };
	}).directive('phxAxReturnFocus', function phxAxReturnFocus() {
	  return {
	    restrict: 'A',
	    scope: {
	      eventKey: '@phxAxReturnFocus'
	    },
	    controller: 'phxAxReturnFocusController',
	    link: function link(scope, element, attrs) {
	      element.on('click', function (event) {
	        scope.returnFocus();
	      });
	
	      element.on('keyup', function (event) {
	        if (event.which === KEYS.ESCAPE && scope.eventKey === 'escape') {
	          scope.returnFocus();
	        }
	      });
	
	      element.on('keypress', function (event) {
	        event.cancelBubble = true;
	        if (event.which === KEYS.ENTER) {
	          scope.returnFocus();
	        }
	      });
	    }
	  };
	}).controller('phxAxSetFocusToReturnController', function ($scope, phxAxReturnFocusFactory) {
	  $scope.setReturnFocus = function (focusId) {
	    phxAxReturnFocusFactory.setFocusId(focusId);
	  };
	}).directive('phxAxSetFocusToReturn', function phxAxSetFocusToReturn() {
	  return {
	    restrict: 'A',
	    controller: 'phxAxSetFocusToReturnController',
	    link: function link(scope, element, attrs) {
	      element.on('click', function (event) {
	        if (!_.isUndefined(attrs.phxAxFocus)) {
	          scope.setReturnFocus(attrs.phxAxFocus);
	        }
	      });
	      element.on('keypress', function (event) {
	        if (event.which === KEYS.ENTER && !_.isUndefined(attrs.phxAxFocus)) {
	          scope.setReturnFocus(attrs.phxAxFocus);
	        }
	      });
	    }
	  };
	});

/***/ }),
/* 984 */
/***/ (function(module, exports) {

	'use strict';
	
	/**
	 * Created by kachavas on 6/24/16.
	 */
	angular.module('ui-ng-ax').directive('phxAxScrollToFocus', function phxAxScrollToFocus() {
	  return {
	    restrict: 'A',
	    link: function link(scope, element, attrs) {
	      var scrollPageToAdjustView = function scrollPageToAdjustView() {
	        var focusedElementCurrentPosition = angular.element(':focus').offset(),
	            viewportHeight = $(window).height(),
	            currentScroll = $(window).scrollTop(),
	            viewPortOffset = attrs.phxAxScrollToFocus ? parseInt(attrs.phxAxScrollToFocus) : 100;
	        if (focusedElementCurrentPosition && focusedElementCurrentPosition.top - currentScroll > viewportHeight - viewPortOffset) {
	          $(window).scrollTop(currentScroll + viewPortOffset);
	        }
	      };
	
	      $('body').on('keyup', scrollPageToAdjustView);
	    }
	  };
	});

/***/ }),
/* 985 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-ax').directive('title', function phxAxTitleAnnouncer($rootScope, DelegateResponder, phxAxTitleAnnouncerDelegateConfiguration) {
	  'use strict';
	
	  return {
	    scope: false,
	    restrict: 'E',
	    link: DelegateResponder(phxAxTitleAnnouncerDelegateConfiguration, function (scope, element, attrs) {
	      /**
	       *  @desc Automatic title change detector based on routes, Service to change titles dynamically.
	       */
	
	      var defaultTitle = element.html();
	      //Set Default title on start
	      element.html(defaultTitle);
	
	      //Set a live region to announce the page changes
	      var titleAlertAnnouncer = angular.element('body').find('#pageTitleAnnouncer');
	
	      if (_.isEmpty(titleAlertAnnouncer)) {
	        titleAlertAnnouncer = angular.element("<div id='pageTitleAnnouncer' role='status' class='sr-only hide-read' aria-live='polite'></div>");
	        angular.element('body').append(titleAlertAnnouncer);
	      }
	
	      //Get page title from route data configs or use default
	      var getComposedTitle = function getComposedTitle(toState) {
	        if (!toState || !toState.data) {
	          return defaultTitle;
	        }
	        var composedTitle = toState.data.pageTitle || toState.data.viewTitle;
	        composedTitle = composedTitle ? composedTitle + ' | ' + defaultTitle : defaultTitle;
	        //noinspection Eslint
	        return scope.titleSetManually ? scope.title : toState.data ? composedTitle : defaultTitle;
	      };
	
	      //Update live region to announce "<page title> page loaded" on route change finish
	      $rootScope.$on('$stateChangeSuccess', function (event, toState, toParams, fromState, fromParams, error) {
	        element.html(getComposedTitle(toState));
	        titleAlertAnnouncer.html(getComposedTitle(toState) + ' Page Loaded');
	        scope.titleSetManually = false;
	      });
	
	      scope.announceTitle = function announceTitle(title) {
	        element.html(title);
	        titleAlertAnnouncer.html(title + ' Page Loaded');
	        scope.titleSetManually = false;
	      };
	
	      scope.announceChange = function announceChange(message) {
	        titleAlertAnnouncer.html(message);
	      };
	
	      scope.updateTitle = function updateTitle(title) {
	        element.html(title + ' | ' + defaultTitle);
	      };
	    })
	  };
	}).constant('phxAxTitleAnnouncerDelegateConfiguration', {
	  uniqueComponent: 'title-announcer',
	  vocabulary: {
	    // set Title for OnEnter in routes
	    setTitle: function setTitle(scope, element, attrs, event, title) {
	      scope.title = title;
	      scope.titleSetManually = true;
	    },
	    // Set and announce title
	    announceTitle: function announceTitle(scope, element, attrs, event, title) {
	      scope.titleSetManually = true;
	      scope.announceTitle(title);
	    },
	    // Set and announce title
	    announceChange: function announceChange(scope, element, attrs, event, message) {
	      scope.announceChange(message);
	    },
	    // Set and announce title
	    updateTitle: function updateTitle(scope, element, attrs, event, title) {
	      scope.updateTitle(title);
	    }
	  }
	}).service('phxAxTitleAnnouncerDelegate', function phxAxTitleAnnouncerDelegate(DelegateController, phxAxTitleAnnouncerDelegateConfiguration) {
	  DelegateController(this, phxAxTitleAnnouncerDelegateConfiguration);
	});

/***/ }),
/* 986 */
/***/ (function(module, exports) {

	'use strict';
	
	/**
	 * Created by msacco on 6/24/16.
	 */
	
	angular.module('ui-ng-ax').directive('phxAxTrackInputMethod', function () {
	  return {
	    restrict: 'A',
	    link: function link($scope, $element) {
	      $element.attr('data-whatinput', '');
	    }
	  };
	}).factory('phxAxTrackInputMethod', function () {
	  return _.merge({}, {
	    // extend whatInput methods
	  });
	});

/***/ }),
/* 987 */
/***/ (function(module, exports) {

	'use strict';
	
	/**
	 * Created by kachavas on 6/24/16.
	 */
	angular.module('ui-ng-ax').directive('phxAxContainFocus', function phxFocusDirective(phxAxContainFocusServant) {
	  return {
	    restrict: 'A',
	    scope: false,
	    link: function link(scope, element) {
	      phxAxContainFocusServant.trapFocus(element);
	    }
	  };
	});

/***/ }),
/* 988 */
/***/ (function(module, exports) {

	'use strict';
	
	/**
	 * Created by kachavas on 6/24/16.
	 */
	angular.module('ui-ng-ax').constant('phxAxFocusDelegateConfiguration', {
	  uniqueComponent: 'phx-ax-focus',
	  vocabulary: {
	    focus: function focus(scope, element, attrs, event, focusRequired) {
	      if (focusRequired === attrs.phxAxFocus) {
	        if (element[0].hasAttribute('tabindex')) {
	          element.focus();
	        } else {
	          element.attr('tabindex', -1).on('blur focusout', function () {
	            element.removeAttr('tabindex');
	          }).focus();
	        }
	      }
	    }
	  }
	}).directive('phxAxFocus', function phxFocusDirective(DelegateResponder, phxAxFocusDelegateConfiguration) {
	  return {
	    link: DelegateResponder(phxAxFocusDelegateConfiguration, function () {})
	  };
	}).service('phxFocusDelegate', function phxFocusDelegate(DelegateController, phxAxFocusDelegateConfiguration) {
	  DelegateController(this, phxAxFocusDelegateConfiguration);
	});

/***/ }),
/* 989 */
/***/ (function(module, exports) {

	'use strict';
	
	/**
	 * @phxAx
	 */
	angular.module('ui-ng-ax', ['ui-ng-delegate']).controller('phxAxController', function Controller($scope) {}).constant('phxAxDelegateConstant', {
	  uniqueComponent: 'phx-ax',
	  vocabulary: {}
	}).directive('phxAx', function (DelegateResponder, phxAxDelegateConstant) {
	  return {
	    restrict: 'E',
	    replace: false,
	    templateUrl: 'ui-ng-ax/src/templates/standard.html',
	    controller: 'phxAxController',
	    scope: {
	      ngModel: '='
	    },
	    compile: function Compile(element, attrs) {
	      return DelegateResponder(phxAxDelegateConstant, function (scope, element, attrs) {});
	    }
	  };
	}).service('phxAxDelegate', function (DelegateController, phxAxDelegateConstant) {
	  DelegateController(this, phxAxDelegateConstant);
	});

/***/ }),
/* 990 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-ax').factory('phxAxContainFocusServant', function phxAxContainFocusService() {
	  var focusableElementsString = 'a[href], area[href], fieldset[role=radiogroup], input:not([type=radio]):not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex]:not([disabled]), *[contenteditable]:not([disabled])';
	
	  // account for fieldsets always being index -1
	  var getSpecialFocus = function getSpecialFocus(item) {
	    if (item.nodeName === 'FIELDSET') {
	      item = item.elements[0];
	    }
	    return item;
	  };
	
	  // undo fieldset children focus
	  var correctForSpecialFocus = function correctForSpecialFocus(focusItem, focusList) {
	    if (_.result(focusItem[0], 'type') === 'radio') {
	      focusItem = _.filter(focusList, function (item) {
	        return item.nodeName === 'FIELDSET';
	      });
	    }
	    return focusItem;
	  };
	
	  // construct focusables
	  var focusable = function focusable(elementList) {
	    var isFocusableList = elementList.filter(focusableElementsString).filter(':visible');
	    var size = isFocusableList.length - 1;
	    return {
	      list: isFocusableList,
	      first: isFocusableList[0],
	      last: isFocusableList[size],
	      size: size
	    };
	  };
	
	  return {
	    focusableElementsString: focusableElementsString,
	    trapFocus: function trapFocus(obj) {
	      var TABKEYCODE = 9;
	      obj = angular.element(obj);
	      obj.on('keydown', function (evt) {
	        if (evt.which == TABKEYCODE) {
	          var o = obj.find('*');
	          var focusableItems = focusable(o);
	          var focusedItem = _.first(correctForSpecialFocus(angular.element(':focus'), focusableItems.list));
	          var movedFocus = void 0;
	
	          // reverse wrapping
	          if (evt.shiftKey) {
	            if (focusedItem === focusableItems.first) {
	              movedFocus = getSpecialFocus(focusableItems.last);
	              movedFocus.focus();
	              evt.preventDefault();
	            }
	          } else {
	            // forward wrapping
	            if (focusedItem === focusableItems.last) {
	              movedFocus = getSpecialFocus(focusableItems.first);
	              movedFocus.focus();
	              evt.preventDefault();
	            }
	          }
	        }
	      });
	    }
	  };
	});

/***/ }),
/* 991 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-ax').service('phxMobileTrapFocus', function () {
	  var getTopLevelNodes = function getTopLevelNodes() {
	    var topLevelNodes = [];
	    var bodyEl = document.querySelector('body');
	    if (bodyEl) {
	      topLevelNodes = Array.from(bodyEl.children);
	    }
	    return topLevelNodes;
	  };
	  var enableTrapFocus = function enableTrapFocus(tagName) {
	    getTopLevelNodes().forEach(function (el) {
	      if (el.nodeName.toLowerCase() !== tagName.toLowerCase()) {
	        el.setAttribute('aria-hidden', 'true');
	        el.setAttribute('inert', true);
	      }
	    });
	  };
	  var disableTrapFocus = function disableTrapFocus(tagName) {
	    getTopLevelNodes().forEach(function (el) {
	      if (el.nodeName !== tagName.toLowerCase()) {
	        el.removeAttribute('aria-hidden');
	        el.removeAttribute('inert');
	      }
	    });
	  };
	  return {
	    enableTrapFocus: enableTrapFocus,
	    disableTrapFocus: disableTrapFocus
	  };
	});

/***/ }),
/* 992 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(12);
	
	__webpack_require__(16);
	
	__webpack_require__(22);
	
	module.exports = 'ui-ng-button'; /**
	                                  * @ ui-ng-button
	                                  */
	
	
	angular.module('ui-ng-button', ['ui-ng-delegate', 'utility-ng-enumeration']);

/***/ }),
/* 993 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-button').factory('phxActionButtonTypeEnum', function (Enumeration, $q, $http, $injector) {
	  var STARTS_WITH_PARAM = /^param/i;
	  var SPLIT_NUMERAL = /^param-(\d\d?)/i;
	  var SPLIT_KEY = /^param-(.*)/i;
	  var KEBAB_TO_SNAKE = /-/g;
	
	  var parseNumericParameters = function parseNumericParameters(attrs) {
	    return _.map(_.sortBy(_.filter(attrs, function (value, key) {
	      return key.match(STARTS_WITH_PARAM) !== null;
	    }), function (value, key) {
	      var getNumeral = SPLIT_NUMERAL.exec(key);
	      return getNumeral === null ? 0 : _.last(getNumeral);
	    }), function (value, key) {
	      return value;
	    });
	  };
	
	  var parseKeyParameters = function parseKeyParameters(attrs) {
	    var parameters = {};
	    _.each(_.filter(attrs, function (value, key) {
	      return key.match(STARTS_WITH_PARAM) !== null;
	    }), function (value, key) {
	      var variable = SPLIT_KEY.exec(key);
	      if (variable !== null) {
	        this[_.last(variable.replace(KEBAB_TO_SNAKE, '_'))] = value;
	      }
	    }, parameters);
	
	    return parameters;
	  };
	
	  return Enumeration.useDefinitionAsEnum({
	    COMMAND: {
	      activate: function activate(scope, element, attrs) {
	        var commandFn = $injector.get(attrs.command);
	        return commandFn.apply(null, parseNumericParameters(attrs));
	      }
	    },
	    NETWORK: {
	      activate: function activate(scope, element, attrs) {
	        var deferred = $q.defer();
	
	        $http({
	          method: attrs.method || 'GET',
	          url: attrs.url,
	          params: parseKeyParameters(attrs)
	        }).then(function (o) {
	          deferred.resolve(o.data);
	        }).catch(function (o) {
	          deferred.reject(o.error);
	        });
	
	        return deferred.promise;
	      }
	    },
	    FUNCTION: {
	      activate: function activate(scope, element, attrs) {
	        var deferred;
	        var promise;
	        var rtn = scope.function();
	
	        if (rtn && _.isObject(rtn.promise)) {
	          promise = rtn.promise;
	        } else if (rtn && _.isObject(rtn.then)) {
	          promise = rtn;
	        } else {
	          deferred = $q.defer();
	
	          if (!_.isUndefined(rtn) && !_.isNull(rtn)) {
	            deferred.resolve(rtn);
	          } else {
	            deferred.reject(rtn);
	          }
	
	          promise = deferred.promise;
	        }
	
	        return promise;
	      }
	    }
	  });
	}).factory('phxActionButtonStatusEnum', function (Enumeration) {
	  return Enumeration(['WAITING', 'DEFAULT']);
	}).controller('phxActionButtonController', function phxActionButtonController($scope, phxActionButtonStatusEnum, phxActionButtonTypeEnum) {
	  $scope.enums = {
	    actionStatus: phxActionButtonStatusEnum,
	    actionType: phxActionButtonTypeEnum
	  };
	
	  $scope.flags = {
	    isDisabled: false,
	    status: phxActionButtonStatusEnum.variableOf(),
	    type: phxActionButtonTypeEnum.variableOf()
	  };
	
	  $scope.flags.status('DEFAULT');
	
	  $scope.isWaiting = function isWaiting() {
	    return phxActionButtonStatusEnum.isEqual($scope.flags.status(), 'WAITING');
	  };
	}).factory('phxActionButtonDelegateConstant', function () {
	  return {
	    uniqueComponent: 'ui-ng-button',
	    vocabulary: {
	      activate: function activate(scope, element, attrs) {
	        var typeDefinition;
	
	        element.addClass('interaction-off phx-action-button--waiting');
	
	        if (scope.isWaiting()) {
	          return;
	        }
	
	        scope.flags.status('WAITING');
	
	        if (attrs.url) {
	          scope.flags.type(scope.enums.actionType.NETWORK);
	        } else if (attrs.command) {
	          scope.flags.type(scope.enums.actionType.COMMAND);
	        } else if (attrs.function) {
	          scope.flags.type(scope.enums.actionType.FUNCTION);
	        } else {
	          throw new EABError('ui-ng-button', 100, {
	            attrs: attrs
	          });
	        }
	
	        typeDefinition = scope.flags.type();
	        if (!typeDefinition) {
	          return;
	        }
	
	        typeDefinition.activate(scope, element, attrs).then(function (o) {
	          if (scope.onSuccess) {
	            scope.onSuccess({ response: o });
	          }
	        }).catch(function (o) {
	          if (scope.onFailure) {
	            scope.onFailure({ response: o });
	          }
	        }).finally(function (o) {
	          if (scope.onFinally) {
	            scope.onFinally({ response: o });
	          }
	          element.removeClass('interaction-off phx-action-button--waiting');
	          scope.flags.status('DEFAULT');
	          // TODO this still requires a tab
	          element[0].focus();
	        });
	      }
	    }
	  };
	}).directive('phxActionButton', function phxActionButton(DelegateResponder, phxActionButtonDelegateConstant) {
	  return {
	    restrict: 'E',
	    replace: false,
	    transclude: true,
	    templateUrl: 'ui-ng-button/src/templates/action.html',
	    controller: 'phxActionButtonController',
	    scope: {
	      url: '@',
	      method: '@',
	      command: '&',
	      function: '&',
	      onSuccess: '&',
	      onFailure: '&',
	      onFinally: '&',
	      isDisabled: '@'
	    },
	    compile: function phxActionButtonCompile(element, attrs) {
	      element.addClass('phx-action-button');
	
	      return DelegateResponder(phxActionButtonDelegateConstant, function (scope, element, attrs) {
	        var buttonElement = angular.element(_.first(element.children()));
	        var handleDisabled = function handleDisabled(isDisabled) {
	          scope.flags.isDisabled = isDisabled === '' || isDisabled === 'true';
	
	          if (scope.flags.isDisabled) {
	            buttonElement.removeAttr('tabindex');
	          } else {
	            buttonElement.attr('tabindex', '0');
	          }
	        };
	
	        element.attr('tabindex', '-1');
	        attrs.$observe('isDisabled', handleDisabled);
	        handleDisabled(attrs.isDisabled);
	      });
	    }
	  };
	}).service('phxActionButtonDelegate', function phxActionButtonDelegate(DelegateController, phxActionButtonDelegateConstant) {
	  DelegateController(this, phxActionButtonDelegateConstant);
	});

/***/ }),
/* 994 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(992);
	
	__webpack_require__(993);

/***/ }),
/* 995 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-calendar-time').constant('CalendarWeekTimeDTD', {
	  day_of_week: {
	    required: true,
	    type: 'ordinal',
	    typeDef: 'DayOfTheWeekEnum',
	    defaultValue: '',
	    writeToKey: 'day'
	  },
	  from_tm: {
	    required: true,
	    type: 'clock',
	    writeToKey: 'from'
	  },
	  to_tm: {
	    required: true,
	    type: 'clock',
	    writeToKey: 'to'
	  },
	  id: 'key',
	  trackingId: 'auto-id',
	  beginMinutes: 'integer',
	  endMinutes: 'integer',
	  bkgColorClass: 'string',
	  content: 'string',
	  appId: '*'
	}).factory('CalendarWeekTimeBuilder', function CalendarWeekTimeBuilder(Interface, CalendarWeekTimeDTD) {
	  return function CalendarWeekTimeBuilderDTO(o) {
	    Interface.implement(CalendarWeekTimeDTD, o, this);
	
	    this.fromMinutes = this.from.hour() * 60 + this.from.minute();
	    this.toMinutes = this.to.hour() * 60 + this.to.minute();
	
	    this.fromInput = this.from.toDate();
	    this.toInput = this.to.toDate();
	  };
	});

/***/ }),
/* 996 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-calendar-time').controller('ListCalendarTimeController', function ($scope) {
	  $scope.onTimeChanged = function onTimeChanged(time, timeProperty) {
	    if (!_.isUndefined(time[timeProperty + 'Input'])) {
	      var hour = time[timeProperty + 'Input'].getHours();
	      var minutes = time[timeProperty + 'Input'].getMinutes();
	
	      time[timeProperty] = moment(hour + ':' + minutes + ':00', 'HH:mm:ss');
	    }
	  };
	
	  $scope.onDayChanged = function onDayChanged(time) {};
	
	  $scope.preserveLastEmptyTime = function preserveLastEmptyTime() {
	    if (_.isEmpty($scope.times) || !!_.last($scope.times).day) {
	      $scope.addEmptyTime();
	      $scope.whenUpdated({ times: $scope.times });
	    }
	  };
	}).directive('listCalendarTime', function calendarWeek() {
	  'use strict';
	
	  return {
	    restrict: 'E',
	    require: '^calendarTime',
	    replace: false,
	    scope: false,
	    controller: 'ListCalendarTimeController',
	    templateUrl: 'ui-ng-calendar-time/src/components/list_calendar_time/list_calendar_time.html',
	    link: function link(scope, element, attrs) {
	      element.addClass('list-calendar-time');
	    }
	  };
	});

/***/ }),
/* 997 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-calendar-time').controller('WeekCalendarTimeController', function ($scope, DayOfTheWeekEnum, calendarTimeFn) {
	  var TIME_HELPER = moment();
	
	  $scope.visualization = {};
	  $scope.visualization.hourDivisions = parseInt(($scope.specification.hourEnd - $scope.specification.hourBegin) / $scope.specification.hourStep, 10) + 1;
	  $scope.visualization.hourPercentageHeight = 100 / $scope.visualization.hourDivisions;
	  $scope.visualization.hourRange = _.times($scope.visualization.hourDivisions, function (i) {
	    return {
	      humanFormat: TIME_HELPER.hour($scope.specification.hourBegin + i).minute(0).format('h a'),
	      val: $scope.specification.hourBegin + i
	    };
	  });
	
	  $scope.visualization.onlineClasses = function () {
	    return _.filter($scope.times, function (time) {
	      return DayOfTheWeekEnum.isEqual(time.day, DayOfTheWeekEnum.ONLINE);
	    });
	  };
	
	  $scope.visualization.offlineClasses = function () {
	    return _.filter($scope.times, function (time) {
	      return !DayOfTheWeekEnum.isEqual(time.day, DayOfTheWeekEnum.ONLINE);
	    });
	  };
	
	  $scope.timeRequest = {
	    isPainting: false,
	    day: undefined,
	    anchor: {},
	    seekTo: {},
	    draw: {
	      height: undefined,
	      top: undefined
	    }
	  };
	
	  $scope.getOnlineClassColSpan = function getOnlineClassColSpan(includeWeekends) {
	    return includeWeekends === 'false' ? 5 : 7;
	  };
	
	  $scope.calculateMarginOffset = function calculateMarginOffset(onlineClasses) {
	    return onlineClasses.length * 18 + 'px';
	  };
	
	  $scope.isInTimeRange = function isInTimeRange(timeRequest, hourValue) {
	    var firstHour, lastHour, currentHour, anchorHourValue, seekToHourValue;
	
	    if (!$scope.timeRequest.isPainting) {
	      return false;
	    }
	
	    anchorHourValue = timeRequest.anchor.value + $scope.specification.hourBegin;
	    seekToHourValue = timeRequest.seekTo.value + $scope.specification.hourBegin;
	
	    if (!!anchorHourValue && !!seekToHourValue) {
	      firstHour = Math.floor(Math.min(seekToHourValue, anchorHourValue));
	      lastHour = Math.ceil(Math.max(seekToHourValue, anchorHourValue));
	      currentHour = hourValue;
	      return currentHour >= firstHour && currentHour <= lastHour;
	    } else {
	      return false;
	    }
	  };
	
	  $scope.timeToPercentage = function timeToPercentage(time) {
	    return $scope.visualization.hourPercentageHeight * time;
	  };
	
	  $scope.calculateSpatialTime = function calculateSpatialTime(hour, minutes) {
	    return hour - $scope.specification.hourBegin + $scope.convertMinutesToHours(minutes);
	  };
	
	  $scope.convertMinutesToHours = function convertMinutesToHours(minutes) {
	    return minutes / 60;
	  };
	
	  $scope.timeUnitTop = function timeUnitTop(time) {
	    var hour = time.from.hour() - $scope.specification.hourBegin;
	    var minutes = $scope.convertMinutesToHours(time.from.minutes());
	
	    return $scope.timeToPercentage(hour + minutes) + '%';
	  };
	
	  $scope.timeUnitHeight = function timeUnitHeight(time) {
	    var to = $scope.calculateSpatialTime(time.to.hour(), time.to.minutes());
	    var from = $scope.calculateSpatialTime(time.from.hour(), time.from.minutes());
	
	    return $scope.timeToPercentage(to - from) + '%';
	  };
	
	  $scope.startPainting = function startPainting($event) {
	    var hour, minutes;
	
	    if (!!$scope.readOnly) {
	      return;
	    }
	
	    $scope.timeRequest.isPainting = true;
	
	    if (_.isUndefined($event.target.attributes['data-day'])) {
	      return;
	    }
	
	    $scope.timeRequest.draw.height = undefined;
	    $scope.timeRequest.draw.top = undefined;
	
	    $scope.timeRequest.day = $event.target.attributes['data-day'].value;
	    hour = $scope.timeRequest.anchor.hour = parseInt($event.target.attributes['data-hour'].value, 10);
	    minutes = $scope.timeRequest.anchor.minutes = parseInt($event.target.attributes['data-minutes'].value, 10);
	    $scope.timeRequest.anchor.value = $scope.calculateSpatialTime($scope.timeRequest.anchor.hour, $scope.timeRequest.anchor.minutes);
	    $scope.timeRequest.anchor.moment = moment(hour + ':' + minutes, 'HH:mm');
	
	    $scope.timeRequest.seekTo.value = $scope.timeRequest.anchor.value;
	    $scope.timeRequest.hasStartedOnTime = calendarTimeFn.doesDayHaveTime($scope.times, $scope.timeRequest.day, $scope.timeRequest.anchor.moment);
	  };
	
	  $scope.painting = function painting($event) {
	    var anchor, seekTo, hour, minutes;
	
	    if (!!$scope.readOnly) {
	      return;
	    }
	
	    if (!$scope.timeRequest.isPainting) {
	      return;
	    }
	
	    if (_.isUndefined($event.target.attributes['data-day'])) {
	      return;
	    }
	
	    hour = parseInt($event.target.attributes['data-hour'].value, 10);
	    minutes = parseInt($event.target.attributes['data-minutes'].value, 10);
	
	    seekTo = $scope.calculateSpatialTime(hour, minutes);
	    anchor = $scope.timeRequest.anchor.value;
	
	    $scope.timeRequest.seekTo.value = seekTo;
	
	    $scope.timeRequest.draw.height = $scope.timeToPercentage(Math.abs(anchor - seekTo)) + '%';
	    $scope.timeRequest.draw.top = anchor < seekTo ? $scope.timeToPercentage(anchor) + '%' : $scope.timeToPercentage(seekTo) + '%';
	  };
	
	  $scope.endPainting = function endPainting($event) {
	    var shouldAdd, shouldJoin, hasStartedOnTime, hasEndedOnTime;
	    var startedTimeBlock, endedTimeBlock;
	
	    var anchor = $scope.timeRequest.anchor;
	    var hour = parseInt($event.target.attributes['data-hour'].value, 10);
	    var minutes = parseInt($event.target.attributes['data-minutes'].value, 10);
	
	    var anchorMoment = anchor.moment;
	    var seekToMoment = moment(hour + ':' + minutes, 'HH:mm');
	
	    var anchorTime = $scope.calculateSpatialTime(anchor.hour, anchor.minutes);
	    var seekToTime = $scope.calculateSpatialTime(hour, minutes);
	
	    var killTime;
	    var operationArea = {};
	
	    if (!!$scope.readOnly) {
	      return;
	    }
	
	    $scope.timeRequest.isPainting = false;
	
	    if (anchorTime > seekToTime) {
	      operationArea.from = seekToMoment;
	      operationArea.to = anchorMoment;
	    } else if (anchorTime < seekToTime) {
	      operationArea.from = anchorMoment;
	      operationArea.to = seekToMoment;
	    } else {
	      killTime = calendarTimeFn.findTimeForDay($scope.times, $scope.timeRequest.day, anchorMoment);
	      if (!!killTime && (!$scope.onSelected || $scope.onSelected({ time: killTime }) !== false)) {
	        _.remove($scope.times, killTime);
	      }
	    }
	
	    if (_.isEmpty(operationArea)) {
	      $scope.whenUpdated({ times: $scope.times });
	      return;
	    }
	
	    hasStartedOnTime = $scope.timeRequest.hasStartedOnTime;
	    startedTimeBlock = calendarTimeFn.findTimeForDay($scope.times, $scope.timeRequest.day, anchorMoment);
	    endedTimeBlock = calendarTimeFn.findTimeForDay($scope.times, $scope.timeRequest.day, seekToMoment);
	
	    hasEndedOnTime = !_.isUndefined(endedTimeBlock);
	    shouldAdd = !hasStartedOnTime && !hasEndedOnTime || hasStartedOnTime && !hasEndedOnTime;
	    shouldJoin = hasStartedOnTime && hasEndedOnTime && startedTimeBlock !== endedTimeBlock;
	
	    if (shouldJoin || shouldAdd) {
	      $scope.$parent.times = calendarTimeFn.addTimeOfDay($scope.times, $scope.timeRequest.day, operationArea);
	    } else {
	      $scope.$parent.times = calendarTimeFn.removeTimeFromDay($scope.times, $scope.timeRequest.day, operationArea);
	    }
	
	    $scope.$parent.times = calendarTimeFn.collapseTimes($scope.times);
	    $scope.whenUpdated({ times: $scope.times });
	  };
	}).directive('weekCalendarTime', function calendarWeek() {
	  'use strict';
	
	  return {
	    restrict: 'E',
	    require: '^calendarTime',
	    replace: false,
	    scope: false,
	    controller: 'WeekCalendarTimeController',
	    templateUrl: 'ui-ng-calendar-time/src/components/week_calendar_time/week_calendar_time.html',
	    link: function link(scope, element, attrs) {
	      var className = 'week-calendar-time';
	      if (scope.includeWeekends === 'false') {
	        className += ' week-calendar-time--weekdays-only';
	      }
	      if (scope.alignTimes === 'left' || scope.alignTimes === 'both') {
	        className += ' week-calendar-time--times-left';
	      }
	      if (scope.alignTimes === 'right' || scope.alignTimes === 'both') {
	        className += ' week-calendar-time--times-right';
	      }
	      element.addClass(className);
	    }
	  };
	});

/***/ }),
/* 998 */
/***/ (function(module, exports) {

	"use strict";

/***/ }),
/* 999 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-calendar-time').factory('calendarTimeFn', function calendarTimeFn(DayOfTheWeekEnum, CalendarWeekTimeBuilder) {
	  var convertTimesToUnix = function convertTimesToUnix(times) {
	    return _.sortBy(_.map(times, function (time) {
	      return {
	        day: time.day,
	        from: time.from.unix(),
	        to: time.to.unix(),
	        content: time.content,
	        bkgColorClass: time.bkgColorClass,
	        appId: time.appId
	      };
	    }), 'from');
	  };
	
	  var convertTimesFromUnix = function convertTimesFromUnix(times) {
	    return _.map(_.compact(times), function (time) {
	      return new CalendarWeekTimeBuilder({
	        from_tm: moment.unix(time.from),
	        to_tm: moment.unix(time.to),
	        day_of_week: time.day.ordinal,
	        content: time.content,
	        bkgColorClass: time.bkgColorClass,
	        appId: time.appId
	      });
	    });
	  };
	
	  var removeOverlappingTimes = function removeOverlappingTimes(times) {
	    var collpaseWasNecessary = false;
	
	    for (var i = times.length - 1; i > 0; i--) {
	      if (times[i].from < times[i - 1].to && times[i].day.key !== 'online') {
	        collpaseWasNecessary = true;
	
	        times[i - 1].to = Math.max(times[i].to, times[i - 1].to);
	
	        times[i - 1].from = Math.min(times[i].from, times[i - 1].from);
	
	        times[i] = undefined;
	      }
	    }
	
	    return collpaseWasNecessary;
	  };
	
	  var collpaseDay = function collapseDay(times) {
	    var collpaseWasNecessary;
	
	    do {
	      times = convertTimesToUnix(times);
	      collpaseWasNecessary = removeOverlappingTimes(times);
	      times = convertTimesFromUnix(times);
	    } while (collpaseWasNecessary);
	
	    return times;
	  };
	
	  return {
	    exportTimeFormat: function exportTime(time) {
	      return time.format('HH:mm') + ':00';
	    },
	
	    exportDay: function exportDay(day) {
	      return day.ordinal;
	    },
	
	    findTimesForDay: function findTimesForDay(times, day) {
	      var validTimes = _.compact(_.filter(times, function (time) {
	        return !!time.day;
	      }));
	
	      return _.filter(validTimes, function (time) {
	        return DayOfTheWeekEnum.isEqual(time.day, day);
	      });
	    },
	
	    findTimeForDay: function findTimeForDay(times, day, hasTime) {
	      return _.find(this.findTimesForDay(times, day), function (timeBlock) {
	        return hasTime.unix() >= timeBlock.from.unix() && hasTime.unix() <= timeBlock.to.unix();
	      });
	    },
	
	    doesDayHaveTime: function doesDayHaveTime(times, day, hasTime) {
	      return !_.isUndefined(this.findTimeForDay(times, day, hasTime));
	    },
	
	    removeTimeFromDay: function removeTimeFromDay(times, day, removeTimeBlock) {
	      var rmF = removeTimeBlock.from.unix();
	      var rmT = removeTimeBlock.to.unix();
	      var addedTimes = [];
	
	      _.each(this.findTimesForDay(times, day), function (timeBlock) {
	        var tbF = timeBlock.from.unix();
	        var tbT = timeBlock.to.unix();
	
	        var doesFIntersect = rmF > tbF && rmF < tbT;
	        var doesTIntersect = rmT < tbT && rmT > tbF;
	        var doesEncompass = rmF <= tbF && rmT >= tbT;
	
	        if (doesEncompass) {
	          timeBlock.erase = true;
	        } else if (doesFIntersect && doesTIntersect) {
	          addedTimes.push(new CalendarWeekTimeBuilder({
	            day_of_week: this.exportDay(timeBlock.day),
	            from_tm: this.exportTimeFormat(removeTimeBlock.to),
	            to_tm: this.exportTimeFormat(timeBlock.to)
	          }));
	
	          timeBlock.to = moment(removeTimeBlock.from);
	        } else if (doesFIntersect && rmT > tbT) {
	          timeBlock.to = moment(removeTimeBlock.from);
	        } else if (doesTIntersect && rmF < tbF) {
	          timeBlock.from = moment(removeTimeBlock.to);
	        }
	      }, this);
	
	      // NOTE times updated
	      _.remove(times, function (timeBlock) {
	        return timeBlock.erase;
	      });
	
	      return times.concat(addedTimes);
	    },
	
	    addEmptyTimeOfDay: function addEmptyTimeOfDay(times, firstHour, lastHour) {
	      var nextDay = !_.isEmpty(times) ? _.last(times).day.ordinal + 1 : DayOfTheWeekEnum.MO.ordinal;
	
	      if (nextDay > DayOfTheWeekEnum.SA.ordinal) {
	        nextDay = DayOfTheWeekEnum.SU.ordinal;
	      }
	
	      // NOTE times updated
	      times.push(new CalendarWeekTimeBuilder({
	        from_tm: firstHour,
	        to_tm: lastHour,
	        day_of_week: nextDay
	      }));
	
	      return times;
	    },
	
	    addTimeOfDay: function addTimeOfDay(times, day, addTimeBlock) {
	      // NOTE times updated
	      times.push(new CalendarWeekTimeBuilder({
	        day_of_week: this.exportDay(DayOfTheWeekEnum.get(day)),
	        from_tm: this.exportTimeFormat(addTimeBlock.from),
	        to_tm: this.exportTimeFormat(addTimeBlock.to)
	      }));
	
	      return times;
	    },
	
	    collapseTimes: function collapseTimes(times) {
	      var validTimes = _.compact(_.filter(times, function (time) {
	        return !!time.day;
	      }));
	
	      var eachDaysTime = _.groupBy(validTimes, function (time) {
	        return time.day.id;
	      });
	
	      var collapsedTime = _.reduce(eachDaysTime, function (collpasedTime, dayTimes) {
	        return collpasedTime.concat(collpaseDay(dayTimes));
	      }, []);
	
	      return _.sortBy(collapsedTime, function (time) {
	        return time.day.ordinal;
	      });
	    },
	
	    importTimes: function importTimes(times) {
	      return _.map(times, function (time) {
	        return this.importTime(time);
	      }, this);
	    },
	
	    importTime: function importTime(time) {
	      return new CalendarWeekTimeBuilder(time);
	    },
	
	    exportTimes: function exportTimes(times) {
	      return _.map(times, function (time) {
	        return this.exportTime(time);
	      }, this);
	    },
	
	    exportTime: function exportTime(time) {
	      return {
	        id: time.id,
	        day_of_week: this.exportDay(time.day),
	        from_tm: this.exportTimeFormat(time.from),
	        to_tm: this.exportTimeFormat(time.to)
	      };
	    }
	  };
	});

/***/ }),
/* 1000 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-calendar-time').directive('inputFormatterTime', function inputFormatterTime($filter) {
	  var ERASE_SECONDS_AND_TIME_UNITS = /:\d{2}[.,]\d{3}$/;
	
	  return {
	    require: '?ngModel',
	    link: function link(scope, elem, attr, ngModel) {
	      if (!ngModel) {
	        return;
	      }
	
	      if (attr.type !== 'time') {
	        return;
	      }
	
	      ngModel.$formatters.unshift(function (value) {
	        return value.replace(ERASE_SECONDS_AND_TIME_UNITS, '');
	      });
	    }
	  };
	});

/***/ }),
/* 1001 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-calendar-time').controller('CalendarTimeController', function ($scope, $attrs, $timeout, calendarTimeFn, DayOfTheWeekEnum) {
	  function filterDayColumns(days, includeWeekends, useMicroname) {
	    return _.map(_.filter(days, function (day) {
	      return includeWeekends === 'false' && (day.key === 'su' || day.key === 'sa') || day.key === 'online' ? false : true;
	    }), function (day) {
	      if (useMicroname === 'true') {
	        return {
	          id: day.id,
	          name: day.value.microname
	        };
	      }
	
	      return {
	        id: day.id,
	        name: day.value.shortname
	      };
	    });
	  }
	
	  $scope.padWithZero = function padWithZero(v) {
	    return parseInt(v, 10) < 10 ? '0' + v : v;
	  };
	
	  $scope.writeTimeFormat = function writeTimeFormat(hours, minutes) {
	    return $scope.padWithZero(hours) + ':' + $scope.padWithZero(minutes) + ':00';
	  };
	
	  $scope.flags = {
	    includeCalendar: true,
	    includeList: true,
	    includeInstructions: true
	  };
	
	  $scope.colors = ['#3381b0'];
	
	  $scope.enums = {
	    dayOfTheWeek: DayOfTheWeekEnum,
	    allDays: _.filter(DayOfTheWeekEnum.iterator(), function (day) {
	      return !DayOfTheWeekEnum.isEqual(day, DayOfTheWeekEnum.ONLINE);
	    }),
	    days: filterDayColumns(_.toArray(DayOfTheWeekEnum.iterator()), $scope.includeWeekends, $scope.microheaders)
	  };
	
	  $scope.specification = {
	    hourStep: parseInt($scope.hourStep || 1, 10),
	    hourBegin: parseInt($scope.hourBegin || 8, 10),
	    hourEnd: parseInt($scope.hourEnd || 22, 10),
	    colorIndex: 0
	  };
	
	  $scope.specification.firstHour = $scope.writeTimeFormat($scope.specification.hourBegin, 0);
	  $scope.specification.lastHour = $scope.writeTimeFormat($scope.specification.hourEnd, 0);
	
	  $scope.isCalendarEmpty = function isCalendarEmpty() {
	    return _.isEmpty($scope.times);
	  };
	
	  $scope.eraseTime = function eraseTime(time) {
	    // NOTE times updated
	    _.remove($scope.times, time);
	    $scope.whenUpdated({ times: $scope.times });
	  };
	
	  $scope.addEmptyTime = function addEmptyTime() {
	    $scope.times = calendarTimeFn.addEmptyTimeOfDay($scope.times, $scope.specification.firstHour, $scope.specification.lastHour);
	    $scope.whenUpdated({ times: $scope.times });
	    $timeout(function () {
	      $element.find('tr.mrm-children').last().find('td > *').first().focus();
	    }, 0);
	  };
	
	  $scope.addEmptyTimeByKey = function (event) {
	    if (event && event.which === 13) {
	      $scope.addEmptyTime();
	    }
	  };
	
	  // manage time collapse
	
	  $scope.alignTimesColumnLeft = function alignTimesColumnLeft(alignTimes) {
	    return alignTimes === 'left' || alignTimes === 'both';
	  };
	
	  $scope.alignTimesColumnRight = function alignTimesColumnRight(alignTimes) {
	    return alignTimes === 'right' || alignTimes === 'both';
	  };
	
	  $scope.collapseOnce = true;
	  $scope.collapseTime = function collapseTime(times, forceCollapse) {
	    $scope.collapseOnce = !_.isUndefined(forceCollapse) ? true : $scope.collapseOnce;
	
	    if (!$scope.collapseOnce) {
	      return;
	    }
	
	    $scope.times = calendarTimeFn.collapseTimes($scope.times);
	    $scope.whenUpdated({ times: $scope.times });
	    $scope.collapseOnce = false;
	  };
	
	  $scope.collapseTimeByKey = function collapseTimeByKey(event, times, forceCollapse) {
	    if (event && event.which === 13) {
	      $scope.collapseTime(times, forceCollapse);
	    }
	  };
	
	  var removeTimesWatch = $scope.$watch('times', function () {
	    if (($attrs.autoCollapse === '' || $attrs.autoCollapse === 'true') && _.size($scope.times) > 0) {
	      // NOTE times updated
	      $scope.times = calendarTimeFn.collapseTimes($scope.times);
	      removeTimesWatch();
	    }
	  });
	}).factory('calendarTimeDelegateConfiguration', function (calendarTimeFn) {
	  return {
	    uniqueComponent: 'calendar-time',
	    vocabulary: {
	      cleanup: function cleanup(scope, element, attrs, event, times) {
	        scope.$applyAsync(function () {
	          // NOTE times updated
	          scope.times = calendarTimeFn.collapseTimes(times || scope.times);
	        });
	      }
	    }
	  };
	}).directive('calendarTime', function calendarWeek(DelegateResponder, calendarTimeDelegateConfiguration) {
	  'use strict';
	
	  return {
	    restrict: 'E',
	    replace: false,
	    scope: {
	      times: '=',
	      includeCalendar: '@',
	      includeList: '@',
	      readOnly: '@',
	      autoCollapse: '@',
	      includeInstructions: '@',
	      hourEnd: '@',
	      hourStep: '@',
	      hourBegin: '@',
	      emptyMessage: '@',
	      whenUpdated: '&',
	      includeWeekends: '@',
	      microheaders: '@',
	      alignTimes: '@',
	      onSelected: '&'
	    },
	    controller: 'CalendarTimeController',
	    templateUrl: 'ui-ng-calendar-time/src/view/calendar_time.html',
	    compile: function compile(element, attrs) {
	      element.addClass('calendar-time');
	
	      return DelegateResponder(calendarTimeDelegateConfiguration, function (scope, element, attrs) {
	        var assignInteractionMode = function assignInteractionMode() {
	          if (attrs.readOnly === '' || attrs.readOnly === 'true' || attrs.readOnly === 'readOnly') {
	            scope.readOnly = true;
	            element.addClass('read-only');
	          } else {
	            scope.readOnly = false;
	            element.removeClass('read-only');
	          }
	        };
	
	        attrs.$observe('readOnly', assignInteractionMode);
	        assignInteractionMode();
	
	        attrs.$observe('includeList', function (v) {
	          scope.flags.includeList = v === '' || v === 'true' || v === 'includeList';
	        });
	
	        attrs.$observe('includeCalendar', function (v) {
	          scope.flags.includeCalendar = v === '' || v === 'true' || v === 'includeCalendar';
	        });
	
	        attrs.$observe('includeInstructions', function (v) {
	          scope.flags.includeInstructions = v === '' || v === 'true' || v === 'includeInstructions';
	        });
	      });
	    }
	  };
	}).service('calendarTimeDelegate', function lightBulbDelegate(DelegateController, calendarTimeDelegateConfiguration) {
	  DelegateController(this, calendarTimeDelegateConfiguration);
	});

/***/ }),
/* 1002 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-calendar').factory('calendarTimeFn', function calendarTimeFn(DayOfTheWeekEnum, TimeOccurrenceDTD, Interface, CalendarWeekTimeBuilder) {
	  var convertTimesToUnix = function convertTimesToUnix(times) {
	    return _.sortBy(_.map(times, function (time) {
	      return {
	        day: time.day,
	        from: time.from.unix(),
	        to: time.to.unix(),
	        content: time.content,
	        bkgColorClass: time.bkgColorClass,
	        appId: time.appId
	      };
	    }), 'from');
	  };
	
	  var convertTimesFromUnix = function convertTimesFromUnix(times) {
	    return _.map(_.compact(times), function (time) {
	      return Interface.make(TimeOccurrenceDTD, {
	        from_tm: moment.unix(time.from),
	        to_tm: moment.unix(time.to),
	        day_of_week: time.day.ordinal,
	        content: time.content,
	        bkgColorClass: time.bkgColorClass,
	        appId: time.appId
	      });
	    });
	  };
	
	  var removeOverlappingTimes = function removeOverlappingTimes(times) {
	    var collpaseWasNecessary = false;
	
	    for (var i = times.length - 1; i > 0; i--) {
	      if (times[i].from < times[i - 1].to && times[i].day.key !== 'online') {
	        collpaseWasNecessary = true;
	
	        times[i - 1].to = Math.max(times[i].to, times[i - 1].to);
	
	        times[i - 1].from = Math.min(times[i].from, times[i - 1].from);
	
	        times[i] = undefined;
	      }
	    }
	
	    return collpaseWasNecessary;
	  };
	
	  var collpaseDay = function collapseDay(times) {
	    var collpaseWasNecessary;
	
	    do {
	      times = convertTimesToUnix(times);
	      collpaseWasNecessary = removeOverlappingTimes(times);
	      times = convertTimesFromUnix(times);
	    } while (collpaseWasNecessary);
	
	    return times;
	  };
	
	  return {
	    exportTimeFormat: function exportTime(time) {
	      return time.format('HH:mm') + ':00';
	    },
	
	    exportDay: function exportDay(day) {
	      return day.ordinal;
	    },
	
	    findTimesForDay: function findTimesForDay(times, day) {
	      var validTimes = _.compact(_.filter(times, function (time) {
	        return !!time.day;
	      }));
	
	      return _.filter(validTimes, function (time) {
	        return DayOfTheWeekEnum.isEqual(time.day, day);
	      });
	    },
	
	    findTimeForDay: function findTimeForDay(times, day, hasTime) {
	      return _.find(this.findTimesForDay(times, day), function (timeBlock) {
	        return hasTime.unix() >= timeBlock.from.unix() && hasTime.unix() <= timeBlock.to.unix();
	      });
	    },
	
	    doesDayHaveTime: function doesDayHaveTime(times, day, hasTime) {
	      return !_.isUndefined(this.findTimeForDay(times, day, hasTime));
	    },
	
	    removeTimeFromDay: function removeTimeFromDay(times, day, removeTimeBlock) {
	      var rmF = removeTimeBlock.from.unix();
	      var rmT = removeTimeBlock.to.unix();
	      var addedTimes = [];
	
	      _.each(this.findTimesForDay(times, day), function (timeBlock) {
	        var tbF = timeBlock.from.unix();
	        var tbT = timeBlock.to.unix();
	
	        var doesFIntersect = rmF > tbF && rmF < tbT;
	        var doesTIntersect = rmT < tbT && rmT > tbF;
	        var doesEncompass = rmF <= tbF && rmT >= tbT;
	
	        if (doesEncompass) {
	          timeBlock.erase = true;
	        } else if (doesFIntersect && doesTIntersect) {
	          addedTimes.push(new CalendarWeekTimeBuilder({
	            day_of_week: this.exportDay(timeBlock.day),
	            from_tm: this.exportTimeFormat(removeTimeBlock.to),
	            to_tm: this.exportTimeFormat(timeBlock.to)
	          }));
	
	          timeBlock.to = moment(removeTimeBlock.from);
	        } else if (doesFIntersect && rmT > tbT) {
	          timeBlock.to = moment(removeTimeBlock.from);
	        } else if (doesTIntersect && rmF < tbF) {
	          timeBlock.from = moment(removeTimeBlock.to);
	        }
	      }, this);
	
	      // NOTE times updated
	      _.remove(times, function (timeBlock) {
	        return timeBlock.erase;
	      });
	
	      return times.concat(addedTimes);
	    },
	
	    addEmptyTimeOfDay: function addEmptyTimeOfDay(times, firstHour, lastHour) {
	      var nextDay = !_.isEmpty(times) ? _.last(times).day.ordinal + 1 : DayOfTheWeekEnum.MO.ordinal;
	
	      if (nextDay > DayOfTheWeekEnum.SA.ordinal) {
	        nextDay = DayOfTheWeekEnum.SU.ordinal;
	      }
	
	      // NOTE times updated
	      times.push(new CalendarWeekTimeBuilder({
	        from_tm: firstHour,
	        to_tm: lastHour,
	        day_of_week: nextDay
	      }));
	
	      return times;
	    },
	
	    addTimeOfDay: function addTimeOfDay(times, day, addTimeBlock) {
	      // NOTE times updated
	      times.push(new CalendarWeekTimeBuilder({
	        day_of_week: this.exportDay(DayOfTheWeekEnum.get(day)),
	        from_tm: this.exportTimeFormat(addTimeBlock.from),
	        to_tm: this.exportTimeFormat(addTimeBlock.to)
	      }));
	
	      return times;
	    },
	
	    collapseTimes: function collapseTimes(times) {
	      var validTimes = _.compact(_.filter(times, function (time) {
	        return !!time.day;
	      }));
	
	      var eachDaysTime = _.groupBy(validTimes, function (time) {
	        return time.day.id;
	      });
	
	      var collapsedTime = _.reduce(eachDaysTime, function (collpasedTime, dayTimes) {
	        return collpasedTime.concat(collpaseDay(dayTimes));
	      }, []);
	
	      return _.sortBy(collapsedTime, function (time) {
	        return time.day.ordinal;
	      });
	    },
	
	    importTimes: function importTimes(times) {
	      return _.map(times, function (time) {
	        return this.importTime(time);
	      }, this);
	    },
	
	    importTime: function importTime(time) {
	      return new CalendarWeekTimeBuilder(time);
	    },
	
	    exportTimes: function exportTimes(times) {
	      return _.map(times, function (time) {
	        return this.exportTime(time);
	      }, this);
	    },
	
	    exportTime: function exportTime(time) {
	      return {
	        id: time.id,
	        day_of_week: this.exportDay(time.day),
	        from_tm: this.exportTimeFormat(time.from),
	        to_tm: this.exportTimeFormat(time.to)
	      };
	    }
	  };
	});

/***/ }),
/* 1003 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-calendar').factory('TimeActionsEnum', function (Enumeration) {
	  return Enumeration('TimeActionsEnum', {
	    LOAD: {
	      name: 'load',
	      command: 'loadUnavailableTimesCommand'
	    },
	    SAVE: {
	      name: 'save',
	      command: 'saveUnavailableTimeCommand'
	    },
	    DELETE: {
	      name: 'delete',
	      command: 'deleteUnavailableTimeCommand'
	    }
	  });
	});

/***/ }),
/* 1004 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-calendar').factory('executeCommandInSerial', function () {
	  var queue = [];
	
	  var _execute = function _execute() {
	    if (!_.isEmpty(queue)) {
	      var command = queue[0];
	      command().finally(function () {
	        queue.shift();
	        _execute();
	      });
	    }
	  };
	
	  return function (command) {
	    queue.push(command);
	    if (queue.length <= 1) {
	      _execute();
	    }
	  };
	});

/***/ }),
/* 1005 */
/***/ (function(module, exports) {

	'use strict';
	
	module.exports = angular.module('mgcrea.ngStrap.helpers.dateFormatter', []).service('$dateFormatter', function ($locale, dateFilter) {
	  // The unused `lang` arguments are on purpose. The default implementation does not
	  // use them and it always uses the locale loaded into the `$locale` service.
	  // Custom implementations might use it, thus allowing different directives to
	  // have different languages.
	
	  this.getDefaultLocale = function () {
	    return $locale.id;
	  };
	
	  // Format is either a data format name, e.g. "shortTime" or "fullDate", or a date format
	  // Return either the corresponding date format or the given date format.
	  this.getDatetimeFormat = function (format, lang) {
	    return $locale.DATETIME_FORMATS[format] || format;
	  };
	
	  this.weekdaysShort = function (lang) {
	    return $locale.DATETIME_FORMATS.SHORTDAY;
	  };
	
	  function splitTimeFormat(format) {
	    return (/(h+)([:\.])?(m+)[ ]?(a?)/i.exec(format).slice(1)
	    );
	  }
	
	  // h:mm a => h
	  this.hoursFormat = function (timeFormat) {
	    return splitTimeFormat(timeFormat)[0];
	  };
	
	  // h:mm a => mm
	  this.minutesFormat = function (timeFormat) {
	    return splitTimeFormat(timeFormat)[2];
	  };
	
	  // h:mm a => :
	  this.timeSeparator = function (timeFormat) {
	    return splitTimeFormat(timeFormat)[1];
	  };
	
	  // h:mm a => true, H.mm => false
	  this.showAM = function (timeFormat) {
	    return !!splitTimeFormat(timeFormat)[3];
	  };
	
	  this.formatDate = function (date, format, lang, timezone) {
	    return dateFilter(date, format, timezone);
	  };
	});

/***/ }),
/* 1006 */
/***/ (function(module, exports) {

	'use strict';
	
	module.exports = angular.module('mgcrea.ngStrap.helpers.dateParser', []).provider('$dateParser', function ($localeProvider) {
	  // define a custom ParseDate object to use instead of native Date
	  // to avoid date values wrapping when setting date component values
	  function ParseDate() {
	    this.year = 1970;
	    this.month = 0;
	    this.day = 1;
	    this.hours = 0;
	    this.minutes = 0;
	    this.seconds = 0;
	    this.milliseconds = 0;
	  }
	
	  ParseDate.prototype.setMilliseconds = function (value) {
	    this.milliseconds = value;
	  };
	  ParseDate.prototype.setSeconds = function (value) {
	    this.seconds = value;
	  };
	  ParseDate.prototype.setMinutes = function (value) {
	    this.minutes = value;
	  };
	  ParseDate.prototype.setHours = function (value) {
	    this.hours = value;
	  };
	  ParseDate.prototype.getHours = function () {
	    return this.hours;
	  };
	  ParseDate.prototype.setDate = function (value) {
	    this.day = value;
	  };
	  ParseDate.prototype.setMonth = function (value) {
	    this.month = value;
	  };
	  ParseDate.prototype.setFullYear = function (value) {
	    this.year = value;
	  };
	  ParseDate.prototype.fromDate = function (value) {
	    this.year = value.getFullYear();
	    this.month = value.getMonth();
	    this.day = value.getDate();
	    this.hours = value.getHours();
	    this.minutes = value.getMinutes();
	    this.seconds = value.getSeconds();
	    this.milliseconds = value.getMilliseconds();
	    return this;
	  };
	
	  ParseDate.prototype.toDate = function () {
	    return new Date(this.year, this.month, this.day, this.hours, this.minutes, this.seconds, this.milliseconds);
	  };
	
	  var proto = ParseDate.prototype;
	
	  function noop() {}
	
	  function isNumeric(n) {
	    return !isNaN(parseFloat(n)) && isFinite(n);
	  }
	
	  function indexOfCaseInsensitive(array, value) {
	    var len = array.length,
	        str = value.toString().toLowerCase();
	    for (var i = 0; i < len; i++) {
	      if (array[i].toLowerCase() === str) {
	        return i;
	      }
	    }
	    return -1; // Return -1 per the "Array.indexOf()" method.
	  }
	
	  var defaults = this.defaults = {
	    format: 'shortDate',
	    strict: false
	  };
	
	  this.$get = function ($locale, dateFilter) {
	    var DateParserFactory = function DateParserFactory(config) {
	      var options = angular.extend({}, defaults, config);
	
	      var $dateParser = {};
	
	      var regExpMap = {
	        sss: '[0-9]{3}',
	        ss: '[0-5][0-9]',
	        s: options.strict ? '[1-5]?[0-9]' : '[0-9]|[0-5][0-9]',
	        mm: '[0-5][0-9]',
	        m: options.strict ? '[1-5]?[0-9]' : '[0-9]|[0-5][0-9]',
	        HH: '[01][0-9]|2[0-3]',
	        H: options.strict ? '1?[0-9]|2[0-3]' : '[01]?[0-9]|2[0-3]',
	        hh: '[0][1-9]|[1][012]',
	        h: options.strict ? '[1-9]|1[012]' : '0?[1-9]|1[012]',
	        a: 'AM|PM',
	        EEEE: $locale.DATETIME_FORMATS.DAY.join('|'),
	        EEE: $locale.DATETIME_FORMATS.SHORTDAY.join('|'),
	        dd: '0[1-9]|[12][0-9]|3[01]',
	        d: options.strict ? '[1-9]|[1-2][0-9]|3[01]' : '0?[1-9]|[1-2][0-9]|3[01]',
	        MMMM: $locale.DATETIME_FORMATS.MONTH.join('|'),
	        MMM: $locale.DATETIME_FORMATS.SHORTMONTH.join('|'),
	        MM: '0[1-9]|1[012]',
	        M: options.strict ? '[1-9]|1[012]' : '0?[1-9]|1[012]',
	        yyyy: '[1]{1}[0-9]{3}|[2]{1}[0-9]{3}',
	        yy: '[0-9]{2}',
	        y: options.strict ? '-?(0|[1-9][0-9]{0,3})' : '-?0*[0-9]{1,4}'
	      };
	
	      var setFnMap = {
	        sss: proto.setMilliseconds,
	        ss: proto.setSeconds,
	        s: proto.setSeconds,
	        mm: proto.setMinutes,
	        m: proto.setMinutes,
	        HH: proto.setHours,
	        H: proto.setHours,
	        hh: proto.setHours,
	        h: proto.setHours,
	        EEEE: noop,
	        EEE: noop,
	        dd: proto.setDate,
	        d: proto.setDate,
	        a: function a(value) {
	          var hours = this.getHours() % 12;
	          return this.setHours(value.match(/pm/i) ? hours + 12 : hours);
	        },
	        MMMM: function MMMM(value) {
	          return this.setMonth(indexOfCaseInsensitive($locale.DATETIME_FORMATS.MONTH, value));
	        },
	        MMM: function MMM(value) {
	          return this.setMonth(indexOfCaseInsensitive($locale.DATETIME_FORMATS.SHORTMONTH, value));
	        },
	        MM: function MM(value) {
	          return this.setMonth(1 * value - 1);
	        },
	        M: function M(value) {
	          return this.setMonth(1 * value - 1);
	        },
	        yyyy: proto.setFullYear,
	        yy: function yy(value) {
	          return this.setFullYear(2000 + 1 * value);
	        },
	        y: proto.setFullYear
	      };
	
	      var regex, setMap;
	
	      $dateParser.init = function () {
	        $dateParser.$format = $locale.DATETIME_FORMATS[options.format] || options.format;
	        regex = regExpForFormat($dateParser.$format);
	        setMap = setMapForFormat($dateParser.$format);
	      };
	
	      $dateParser.isValid = function (date) {
	        if (angular.isDate(date)) return !isNaN(date.getTime());
	        return regex.test(date);
	      };
	
	      $dateParser.parse = function (value, baseDate, format, timezone) {
	        // check for date format special names
	        if (format) format = $locale.DATETIME_FORMATS[format] || format;
	        if (angular.isDate(value)) value = dateFilter(value, format || $dateParser.$format, timezone);
	        var formatRegex = format ? regExpForFormat(format) : regex;
	        var formatSetMap = format ? setMapForFormat(format) : setMap;
	        var matches = formatRegex.exec(value);
	        if (!matches) return false;
	        // use custom ParseDate object to set parsed values
	        var date = baseDate && !isNaN(baseDate.getTime()) ? new ParseDate().fromDate(baseDate) : new ParseDate().fromDate(new Date(1970, 0, 1, 0));
	        for (var i = 0; i < matches.length - 1; i++) {
	          formatSetMap[i] && formatSetMap[i].call(date, matches[i + 1]);
	        }
	        // convert back to native Date object
	        var newDate = date.toDate();
	
	        // check new native Date object for day values overflow
	        if (parseInt(date.day, 10) !== newDate.getDate()) {
	          return false;
	        }
	
	        return newDate;
	      };
	
	      $dateParser.getDateForAttribute = function (key, value) {
	        var date;
	
	        if (value === 'today') {
	          var today = new Date();
	          date = new Date(today.getFullYear(), today.getMonth(), today.getDate() + (key === 'maxDate' ? 1 : 0), 0, 0, 0, key === 'minDate' ? 0 : -1);
	        } else if (angular.isString(value) && value.match(/^".+"$/)) {
	          // Support {{ dateObj }}
	          date = new Date(value.substr(1, value.length - 2));
	        } else if (isNumeric(value)) {
	          date = new Date(parseInt(value, 10));
	        } else if (angular.isString(value) && 0 === value.length) {
	          // Reset date
	          date = key === 'minDate' ? -Infinity : +Infinity;
	        } else {
	          date = new Date(value);
	        }
	
	        return date;
	      };
	
	      $dateParser.getTimeForAttribute = function (key, value) {
	        var time;
	
	        if (value === 'now') {
	          time = new Date().setFullYear(1970, 0, 1);
	        } else if (angular.isString(value) && value.match(/^".+"$/)) {
	          time = new Date(value.substr(1, value.length - 2)).setFullYear(1970, 0, 1);
	        } else if (isNumeric(value)) {
	          time = new Date(parseInt(value, 10)).setFullYear(1970, 0, 1);
	        } else if (angular.isString(value) && 0 === value.length) {
	          // Reset time
	          time = key === 'minTime' ? -Infinity : +Infinity;
	        } else {
	          time = $dateParser.parse(value, new Date(1970, 0, 1, 0));
	        }
	
	        return time;
	      };
	
	      /* Handle switch to/from daylight saving.
	       * Hours may be non-zero on daylight saving cut-over:
	       * > 12 when midnight changeover, but then cannot generate
	       * midnight datetime, so jump to 1AM, otherwise reset.
	       * @param  date  (Date) the date to check
	       * @return  (Date) the corrected date
	       *
	       * __ copied from jquery ui datepicker __
	       */
	      $dateParser.daylightSavingAdjust = function (date) {
	        if (!date) {
	          return null;
	        }
	        date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0);
	        return date;
	      };
	
	      /* Correct the date for timezone offset.
	       * @param  date  (Date) the date to adjust
	       * @param  timezone  (string) the timezone to adjust for
	       * @param  undo  (boolean) to add or subtract timezone offset
	       * @return  (Date) the corrected date
	       */
	      $dateParser.timezoneOffsetAdjust = function (date, timezone, undo) {
	        if (!date) {
	          return null;
	        }
	        // Right now, only 'UTC' is supported.
	        if (timezone && timezone === 'UTC') {
	          date = new Date(date.getTime());
	          date.setMinutes(date.getMinutes() + (undo ? -1 : 1) * date.getTimezoneOffset());
	        }
	        return date;
	      };
	
	      // Private functions
	
	      function setMapForFormat(format) {
	        var keys = Object.keys(setFnMap),
	            i;
	        var map = [],
	            sortedMap = [];
	        // Map to setFn
	        var clonedFormat = format;
	        for (i = 0; i < keys.length; i++) {
	          if (format.split(keys[i]).length > 1) {
	            var index = clonedFormat.search(keys[i]);
	            format = format.split(keys[i]).join('');
	            if (setFnMap[keys[i]]) {
	              map[index] = setFnMap[keys[i]];
	            }
	          }
	        }
	        // Sort result map
	        angular.forEach(map, function (v) {
	          // conditional required since angular.forEach broke around v1.2.21
	          // related pr: https://github.com/angular/angular.js/pull/8525
	          if (v) sortedMap.push(v);
	        });
	        return sortedMap;
	      }
	
	      function escapeReservedSymbols(text) {
	        return text.replace(/\//g, '[\\/]').replace('/-/g', '[-]').replace(/\./g, '[.]').replace(/\\s/g, '[\\s]');
	      }
	
	      function regExpForFormat(format) {
	        var keys = Object.keys(regExpMap),
	            i;
	
	        var re = format;
	        // Abstract replaces to avoid collisions
	        for (i = 0; i < keys.length; i++) {
	          re = re.split(keys[i]).join('${' + i + '}');
	        }
	        // Replace abstracted values
	        for (i = 0; i < keys.length; i++) {
	          re = re.split('${' + i + '}').join('(' + regExpMap[keys[i]] + ')');
	        }
	        format = escapeReservedSymbols(format);
	
	        return new RegExp('^' + re + '$', ['i']);
	      }
	
	      $dateParser.init();
	      return $dateParser;
	    };
	
	    return DateParserFactory;
	  };
	});

/***/ }),
/* 1007 */
/***/ (function(module, exports) {

	'use strict';
	
	module.exports = angular.module('mgcrea.ngStrap.helpers.debounce', [])
	
	// @source jashkenas/underscore
	// @url https://github.com/jashkenas/underscore/blob/1.5.2/underscore.js#L693
	.factory('debounce', function ($timeout) {
	  return function (func, wait, immediate) {
	    var timeout = null;
	    return function () {
	      var context = this,
	          args = arguments,
	          callNow = immediate && !timeout;
	      if (timeout) {
	        $timeout.cancel(timeout);
	      }
	      timeout = $timeout(function later() {
	        timeout = null;
	        if (!immediate) {
	          func.apply(context, args);
	        }
	      }, wait, false);
	      if (callNow) {
	        func.apply(context, args);
	      }
	      return timeout;
	    };
	  };
	})
	
	// @source jashkenas/underscore
	// @url https://github.com/jashkenas/underscore/blob/1.5.2/underscore.js#L661
	.factory('throttle', function ($timeout) {
	  return function (func, wait, options) {
	    var timeout = null;
	    options || (options = {});
	    return function () {
	      var context = this,
	          args = arguments;
	      if (!timeout) {
	        if (options.leading !== false) {
	          func.apply(context, args);
	        }
	        timeout = $timeout(function later() {
	          timeout = null;
	          if (options.trailing !== false) {
	            func.apply(context, args);
	          }
	        }, wait, false);
	      }
	    };
	  };
	});

/***/ }),
/* 1008 */
/***/ (function(module, exports) {

	'use strict';
	
	module.exports = angular.module('mgcrea.ngStrap.helpers.dimensions', []).factory('dimensions', function ($document, $window) {
	  var jqLite = angular.element;
	  var fn = {};
	
	  /**
	   * Test the element nodeName
	   * @param element
	   * @param name
	   */
	  var nodeName = fn.nodeName = function (element, name) {
	    return element.nodeName && element.nodeName.toLowerCase() === name.toLowerCase();
	  };
	
	  /**
	   * Returns the element computed style
	   * @param element
	   * @param prop
	   * @param extra
	   */
	  fn.css = function (element, prop, extra) {
	    var value;
	    if (element.currentStyle) {
	      //IE
	      value = element.currentStyle[prop];
	    } else if (window.getComputedStyle) {
	      value = window.getComputedStyle(element)[prop];
	    } else {
	      value = element.style[prop];
	    }
	    return extra === true ? parseFloat(value) || 0 : value;
	  };
	
	  /**
	   * Provides read-only equivalent of jQuery's offset function:
	   * @required-by bootstrap-tooltip, bootstrap-affix
	   * @url http://api.jquery.com/offset/
	   * @param element
	   */
	  fn.offset = function (element) {
	    var boxRect = element.getBoundingClientRect();
	    var docElement = element.ownerDocument;
	    return {
	      width: boxRect.width || element.offsetWidth,
	      height: boxRect.height || element.offsetHeight,
	      top: boxRect.top + (window.pageYOffset || docElement.documentElement.scrollTop) - (docElement.documentElement.clientTop || 0),
	      left: boxRect.left + (window.pageXOffset || docElement.documentElement.scrollLeft) - (docElement.documentElement.clientLeft || 0)
	    };
	  };
	
	  /**
	   * Provides set equivalent of jQuery's offset function:
	   * @required-by bootstrap-tooltip
	   * @url http://api.jquery.com/offset/
	   * @param element
	   * @param options
	   * @param i
	   */
	  fn.setOffset = function (element, options, i) {
	    var curPosition,
	        curLeft,
	        curCSSTop,
	        curTop,
	        curOffset,
	        curCSSLeft,
	        calculatePosition,
	        position = fn.css(element, 'position'),
	        curElem = angular.element(element),
	        props = {};
	
	    // Set position first, in-case top/left are set even on static elem
	    if (position === 'static') {
	      element.style.position = 'relative';
	    }
	
	    curOffset = fn.offset(element);
	    curCSSTop = fn.css(element, 'top');
	    curCSSLeft = fn.css(element, 'left');
	    calculatePosition = (position === 'absolute' || position === 'fixed') && (curCSSTop + curCSSLeft).indexOf('auto') > -1;
	
	    // Need to be able to calculate position if either
	    // top or left is auto and position is either absolute or fixed
	    if (calculatePosition) {
	      curPosition = fn.position(element);
	      curTop = curPosition.top;
	      curLeft = curPosition.left;
	    } else {
	      curTop = parseFloat(curCSSTop) || 0;
	      curLeft = parseFloat(curCSSLeft) || 0;
	    }
	
	    if (angular.isFunction(options)) {
	      options = options.call(element, i, curOffset);
	    }
	
	    if (options.top !== null) {
	      props.top = options.top - curOffset.top + curTop;
	    }
	    if (options.left !== null) {
	      props.left = options.left - curOffset.left + curLeft;
	    }
	
	    if ('using' in options) {
	      options.using.call(curElem, props);
	    } else {
	      curElem.css({
	        top: props.top + 'px',
	        left: props.left + 'px'
	      });
	    }
	  };
	
	  /**
	   * Provides read-only equivalent of jQuery's position function
	   * @required-by bootstrap-tooltip, bootstrap-affix
	   * @url http://api.jquery.com/offset/
	   * @param element
	   */
	  fn.position = function (element) {
	    var offsetParentRect = { top: 0, left: 0 },
	        offsetParentElement,
	        offset;
	
	    // Fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is it's only offset parent
	    if (fn.css(element, 'position') === 'fixed') {
	      // We assume that getBoundingClientRect is available when computed position is fixed
	      offset = element.getBoundingClientRect();
	    } else {
	      // Get *real* offsetParentElement
	      offsetParentElement = offsetParent(element);
	
	      // Get correct offsets
	      offset = fn.offset(element);
	      if (!nodeName(offsetParentElement, 'html')) {
	        offsetParentRect = fn.offset(offsetParentElement);
	      }
	
	      // Add offsetParent borders
	      offsetParentRect.top += fn.css(offsetParentElement, 'borderTopWidth', true);
	      offsetParentRect.left += fn.css(offsetParentElement, 'borderLeftWidth', true);
	    }
	
	    // Subtract parent offsets and element margins
	    return {
	      width: element.offsetWidth,
	      height: element.offsetHeight,
	      top: offset.top - offsetParentRect.top - fn.css(element, 'marginTop', true),
	      left: offset.left - offsetParentRect.left - fn.css(element, 'marginLeft', true)
	    };
	  };
	
	  /**
	   * Returns the closest, non-statically positioned offsetParent of a given element
	   * @required-by fn.position
	   * @param element
	   */
	  var offsetParent = function offsetParentElement(element) {
	    var docElement = element.ownerDocument;
	    var offsetParent = element.offsetParent || docElement;
	    if (nodeName(offsetParent, '#document')) return docElement.documentElement;
	    while (offsetParent && !nodeName(offsetParent, 'html') && fn.css(offsetParent, 'position') === 'static') {
	      offsetParent = offsetParent.offsetParent;
	    }
	    return offsetParent || docElement.documentElement;
	  };
	
	  /**
	   * Provides equivalent of jQuery's height function
	   * @required-by bootstrap-affix
	   * @url http://api.jquery.com/height/
	   * @param element
	   * @param outer
	   */
	  fn.height = function (element, outer) {
	    var value = element.offsetHeight;
	    if (outer) {
	      value += fn.css(element, 'marginTop', true) + fn.css(element, 'marginBottom', true);
	    } else {
	      value -= fn.css(element, 'paddingTop', true) + fn.css(element, 'paddingBottom', true) + fn.css(element, 'borderTopWidth', true) + fn.css(element, 'borderBottomWidth', true);
	    }
	    return value;
	  };
	
	  /**
	   * Provides equivalent of jQuery's width function
	   * @required-by bootstrap-affix
	   * @url http://api.jquery.com/width/
	   * @param element
	   * @param outer
	   */
	  fn.width = function (element, outer) {
	    var value = element.offsetWidth;
	    if (outer) {
	      value += fn.css(element, 'marginLeft', true) + fn.css(element, 'marginRight', true);
	    } else {
	      value -= fn.css(element, 'paddingLeft', true) + fn.css(element, 'paddingRight', true) + fn.css(element, 'borderLeftWidth', true) + fn.css(element, 'borderRightWidth', true);
	    }
	    return value;
	  };
	
	  return fn;
	});

/***/ }),
/* 1009 */
/***/ (function(module, exports) {

	'use strict';
	
	module.exports = angular.module('mgcrea.ngStrap.helpers.parseOptions', []).provider('$parseOptions', function () {
	  var defaults = this.defaults = {
	    regexp: /^\s*(.*?)(?:\s+as\s+(.*?))?(?:\s+group\s+by\s+(.*))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+(.*?)(?:\s+track\s+by\s+(.*?))?$/
	  };
	
	  this.$get = function ($parse, $q) {
	    function ParseOptionsFactory(attr, config) {
	      var $parseOptions = {};
	
	      // Common vars
	      var options = angular.extend({}, defaults, config);
	      $parseOptions.$values = [];
	
	      // Private vars
	      var match, displayFn, valueName, keyName, groupByFn, valueFn, valuesFn;
	
	      $parseOptions.init = function () {
	        $parseOptions.$match = match = attr.match(options.regexp);
	        displayFn = $parse(match[2] || match[1]), valueName = match[4] || match[6], keyName = match[5], groupByFn = $parse(match[3] || ''), valueFn = $parse(match[2] ? match[1] : valueName), valuesFn = $parse(match[7]);
	      };
	
	      $parseOptions.valuesFn = function (scope, controller) {
	        return $q.when(valuesFn(scope, controller)).then(function (values) {
	          $parseOptions.$values = values ? parseValues(values, scope) : {};
	          return $parseOptions.$values;
	        });
	      };
	
	      $parseOptions.displayValue = function (modelValue) {
	        var scope = {};
	        scope[valueName] = modelValue;
	        return displayFn(scope);
	      };
	
	      // Private functions
	
	      function parseValues(values, scope) {
	        return values.map(function (match, index) {
	          var locals = {},
	              label,
	              value;
	          locals[valueName] = match;
	          label = displayFn(scope, locals);
	          value = valueFn(scope, locals);
	          return { label: label, value: value, index: index };
	        });
	      }
	
	      $parseOptions.init();
	      return $parseOptions;
	    }
	
	    return ParseOptionsFactory;
	  };
	});

/***/ }),
/* 1010 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.version.minor < 3 && angular.version.dot < 14 && angular.module('ng').factory('$$rAF', function ($window, $timeout) {
	  var requestAnimationFrame = $window.requestAnimationFrame || $window.webkitRequestAnimationFrame || $window.mozRequestAnimationFrame;
	
	  var cancelAnimationFrame = $window.cancelAnimationFrame || $window.webkitCancelAnimationFrame || $window.mozCancelAnimationFrame || $window.webkitCancelRequestAnimationFrame;
	
	  var rafSupported = !!requestAnimationFrame;
	  var raf = rafSupported ? function (fn) {
	    var id = requestAnimationFrame(fn);
	    return function () {
	      cancelAnimationFrame(id);
	    };
	  } : function (fn) {
	    var timer = $timeout(fn, 16.66, false); // 1000 / 60 = 16.666
	    return function () {
	      $timeout.cancel(timer);
	    };
	  };
	
	  raf.supported = rafSupported;
	
	  return raf;
	});
	
	// .factory('$$animateReflow', function($$rAF, $document) {
	
	//   var bodyEl = $document[0].body;
	
	//   return function(fn) {
	//     //the returned function acts as the cancellation function
	//     return $$rAF(function() {
	//       //the line below will force the browser to perform a repaint
	//       //so that all the animated elements within the animation frame
	//       //will be properly updated and drawn on screen. This is
	//       //required to perform multi-class CSS based animations with
	//       //Firefox. DO NOT REMOVE THIS LINE.
	//       var a = bodyEl.offsetWidth + 1;
	//       fn();
	//     });
	//   };
	
	// });

/***/ }),
/* 1011 */
/***/ (function(module, exports) {

	'use strict';
	
	/** @class Delegate */
	angular.module('ui-ng-delegate', []).constant('DelegateDefinition', function DelegateDefinition(id, handle) {
	  /**
	   * @what the core of a delegate object; which only needs delegation methods
	   */
	  this._id = id;
	  this._handle = handle;
	
	  /**
	   * specific delegate
	   * @memberof Delegate
	   */
	  this.id = function getIdDelegate() {
	    return this._id;
	  };
	
	  /**
	   * get handle
	   * @memberof Delegate
	   */
	  this.getHandle = function getHandleDelegate() {
	    return this._handle;
	  };
	
	  /**
	   * create a new delegate and assign a handle
	   * @memberof Delegate
	   */
	  this.handle = function handleDelegate(handle) {
	    return _.isUndefined(handle) ? this.getHandle() : assignTo.call(this, _.clone(this), handle);
	  };
	
	  /**
	   * @deprecated
	   */
	  this.restrictTo = this.handle;
	
	  /**
	   * assign handle name for grouped messages
	   * @memberof Delegate
	   */
	  var assignTo = function assignToDelegate(delegate, h) {
	    this._handle = h;
	    delegate._handle = h;
	    return delegate;
	  };
	}).provider('DelegateActiveModel', function DelegateActiveModel() {
	  var model = this.model = {
	    activeComponents: {}
	  };
	
	  this.$get = function DelegateActiveModelDefinition() {
	    return {
	      model: model
	    };
	  };
	}).provider('DelegateController', ['DelegateActiveModelProvider', function DelegateController(DelegateActiveModelProvider) {
	  /**
	   * @what defines one specific delegate, constructor for a delegate adding methods and core delegate services
	   */
	  var buildSpecificDelegateObject = function buildSpecificDelegateObject(service, configuration, DelegateDefinition) {
	    return _.merge(service, new DelegateDefinition(configuration.uniqueComponent, undefined));
	  };
	
	  var applyMethodsToDelegate = function applyMethodsToDelegate($q, service, configuration) {
	    _.each(configuration.vocabulary, function (methodsNameIsIgnored, methodName) {
	      (function (service) {
	        service[methodName] = function () {
	          var deferred = $q.defer();
	          var expectedReceiveMessages = DelegateActiveModelProvider.model.activeComponents[configuration.uniqueComponent];
	          var returnValues = [];
	
	          var handle = this.getHandle();
	          var message = !handle ? 'eabui.' + this.id() + '.' + methodName : 'eabui.' + this.id() + '.' + handle + '.' + methodName;
	
	          this._$rootScope.$$listeners[message + '.receive'] = [];
	          this._$rootScope.$on(message + '.receive', function (event, returnValue) {
	            var received;
	
	            if (returnValue && returnValue.promise) {
	              received = returnValue.promise;
	            } else if (returnValue && _.isFunction(returnValue.then)) {
	              received = returnValue;
	            } else {
	              received = $q.defer();
	              received.resolve(returnValue);
	              received = received.promise;
	            }
	
	            returnValues.push(received);
	
	            if (returnValues.length >= expectedReceiveMessages) {
	              $q.all(returnValues).then(function () {
	                deferred.resolve.apply(deferred, Array.prototype.slice.call(arguments));
	              });
	            }
	          });
	
	          this._$rootScope.$broadcast(message, Array.prototype.slice.call(arguments));
	          return deferred.promise;
	        };
	      })(this);
	    }, service);
	  };
	
	  var applyRootscopeToService = function applyRootscopeToService(service, $rootScope) {
	    service._$rootScope = $rootScope;
	  };
	
	  return {
	    $get: function $get(DelegateDefinition, $rootScope, $q) {
	      return function createDelegate(service, configuration) {
	        buildSpecificDelegateObject(service, configuration, DelegateDefinition);
	        applyMethodsToDelegate($q, service, configuration);
	        applyRootscopeToService(service, $rootScope);
	      };
	    }
	  };
	}]).provider('DelegateResponder', function DelegateResponder() {
	  var _$rootScope;
	
	  var standardRemapResponseFunction = function standardRemapResponseFunction(scope) {
	    return function (responseFn) {
	      return function (messageName) {
	        return function () {
	          var rtn = responseFn.apply(scope, _.flatten(Array.prototype.slice.call(arguments)));
	
	          if (messageName) {
	            _$rootScope.$emit(messageName + '.receive', rtn);
	          }
	
	          return rtn;
	        };
	      };
	    };
	  };
	
	  var informedRemapResponseFunction = function informedRemapResponseFunction(scope, element, attrs) {
	    var linkerParameters = [scope, element, attrs];
	
	    return function (responseFn) {
	      return function (messageName) {
	        return function () {
	          var rtn = responseFn.apply(scope, linkerParameters.concat(_.flatten(Array.prototype.slice.call(arguments))));
	
	          if (messageName) {
	            _$rootScope.$emit(messageName + '.receive', rtn);
	          }
	
	          return rtn;
	        };
	      };
	    };
	  };
	
	  var applyLocalListeners = function applyLocalListeners($scope, configuration, responseFn, responseKey) {
	    var messageName = 'eabui.' + configuration.uniqueComponent + '.' + configuration.handle + '.' + responseKey;
	    if (!!configuration.handle) {
	      $scope.$on(messageName, responseFn(messageName));
	    }
	  };
	
	  var applyGlobalListeners = function applyGlobalListeners($scope, configuration, responseFn, responseKey) {
	    var messageName = 'eabui.' + configuration.uniqueComponent + '.' + responseKey;
	    $scope.$on(messageName, responseFn(messageName));
	  };
	
	  var applyDirectMethodCall = function applyDirectMethodCall($scope, configuration, responseFn, responseKey) {
	    var responseFnCall = responseFn();
	
	    $scope[responseKey] = function () {
	      return responseFnCall(null, Array.prototype.slice.call(arguments));
	    };
	  };
	
	  this.$get = function ($rootScope, DelegateActiveModel) {
	    var createStandardDelegate = function createStandardDelegate($scope, attrs, configuration, remapResponseFunction) {
	      // TODO remove if-statement when next DEPRECATED message is removed
	      if (configuration !== undefined) {
	        configuration.handle = attrs.handle;
	      }
	
	      // DEPRECATED remove eventually, this will allow the attrs to stay on the configuration which could cause memory leaks
	      else if (configuration === undefined) {
	          configuration = attrs;
	          configuration.handle = configuration.attrs.handle;
	        }
	
	      DelegateActiveModel.model.activeComponents[configuration.uniqueComponent] = DelegateActiveModel.model.activeComponents[configuration.uniqueComponent] || 0;
	      DelegateActiveModel.model.activeComponents[configuration.uniqueComponent] += 1;
	
	      $scope.$on('$destroy', function () {
	        DelegateActiveModel.model.activeComponents[configuration.uniqueComponent] -= 1;
	      });
	
	      _.each(configuration.vocabulary, function (responseFn, responseKey) {
	        (function ($scope) {
	          responseFn = remapResponseFunction(responseFn);
	          applyLocalListeners($scope, configuration, responseFn, responseKey);
	          applyGlobalListeners($scope, configuration, responseFn, responseKey);
	          applyDirectMethodCall($scope, configuration, responseFn, responseKey);
	        })(this);
	      }, $scope);
	    };
	
	    var createInformedDelegate = function createInformedDelegate(configuration, linkerFn) {
	      return function (scope, element, attrs) {
	        createStandardDelegate(scope, attrs, configuration, informedRemapResponseFunction(scope, element, attrs));
	        return linkerFn.apply(this, Array.prototype.slice.call(arguments));
	      };
	    };
	
	    /**
	     * we need $rootScope to $emit, so there is no tag chaining
	     */
	    _$rootScope = $rootScope;
	
	    /**
	     * scenario 1:
	     * - p1: $scope
	     * - p2: configuration
	     *
	     * scenario 2:
	     * - p1: $scope
	     * - p2: attrs
	     * - p3: configuration
	     *
	     * scenario 3:
	     * - p1: configuration
	     * - p2: linkerFn
	     *
	     * prefer (scenario 3)
	     */
	    return function createDelegateResponse(p1, p2, p3) {
	      if (_.isFunction(p2)) {
	        return createInformedDelegate(p1, p2);
	      } else {
	        return createStandardDelegate(p1, p2, p3, standardRemapResponseFunction(p1));
	      }
	    };
	  };
	});

/***/ }),
/* 1012 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-drag-drop').directive('dragDropZone', function dragDropZone() {
	  return {
	    restrict: 'EA',
	    link: function link(scope, element) {
	      element.addClass('drag-drop-zone');
	    }
	  };
	});

/***/ }),
/* 1013 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-drag-drop').service('dragDropDelegate', function dragDropDelegate(DelegateController) {
	  DelegateController(this, {
	    uniqueComponent: 'drag-drop',
	    vocabulary: {}
	  });
	});

/***/ }),
/* 1014 */
/***/ (function(module, exports) {

	'use strict';
	
	/**
	 * angular-drag-and-drop-lists v2.1.0
	 *
	 * Copyright (c) 2014 Marcel Juenemann marcel@juenemann.cc
	 * Copyright (c) 2014-2017 Google Inc.
	 * https://github.com/marceljuenemann/angular-drag-and-drop-lists
	 *
	 * License: MIT
	 */
	(function (dndLists) {
	  // In standard-compliant browsers we use a custom mime type and also encode the dnd-type in it.
	  // However, IE and Edge only support a limited number of mime types. The workarounds are described
	  // in https://github.com/marceljuenemann/angular-drag-and-drop-lists/wiki/Data-Transfer-Design
	  var MIME_TYPE = 'application/x-dnd';
	  var EDGE_MIME_TYPE = 'application/json';
	  var MSIE_MIME_TYPE = 'Text';
	
	  // All valid HTML5 drop effects, in the order in which we prefer to use them.
	  var ALL_EFFECTS = ['move', 'copy', 'link'];
	
	  /**
	   * Use the dnd-draggable attribute to make your element draggable
	   *
	   * Attributes:
	   * - dnd-draggable      Required attribute. The value has to be an object that represents the data
	   *                      of the element. In case of a drag and drop operation the object will be
	   *                      serialized and unserialized on the receiving end.
	   * - dnd-effect-allowed Use this attribute to limit the operations that can be performed. Valid
	   *                      options are "move", "copy" and "link", as well as "all", "copyMove",
	   *                      "copyLink" and "linkMove". The semantics of these operations are up to you
	   *                      and have to be implemented using the callbacks described below. If you
	   *                      allow multiple options, the user can choose between them by using the
	   *                      modifier keys (OS specific). The cursor will be changed accordingly,
	   *                      expect for IE and Edge, where this is not supported.
	   * - dnd-type           Use this attribute if you have different kinds of items in your
	   *                      application and you want to limit which items can be dropped into which
	   *                      lists. Combine with dnd-allowed-types on the dnd-list(s). This attribute
	   *                      must be a lower case string. Upper case characters can be used, but will
	   *                      be converted to lower case automatically.
	   * - dnd-disable-if     You can use this attribute to dynamically disable the draggability of the
	   *                      element. This is useful if you have certain list items that you don't want
	   *                      to be draggable, or if you want to disable drag & drop completely without
	   *                      having two different code branches (e.g. only allow for admins).
	   *
	   * Callbacks:
	   * - dnd-dragstart      Callback that is invoked when the element was dragged. The original
	   *                      dragstart event will be provided in the local event variable.
	   * - dnd-moved          Callback that is invoked when the element was moved. Usually you will
	   *                      remove your element from the original list in this callback, since the
	   *                      directive is not doing that for you automatically. The original dragend
	   *                      event will be provided in the local event variable.
	   * - dnd-copied         Same as dnd-moved, just that it is called when the element was copied
	   *                      instead of moved, so you probably want to implement a different logic.
	   * - dnd-linked         Same as dnd-moved, just that it is called when the element was linked
	   *                      instead of moved, so you probably want to implement a different logic.
	   * - dnd-canceled       Callback that is invoked if the element was dragged, but the operation was
	   *                      canceled and the element was not dropped. The original dragend event will
	   *                      be provided in the local event variable.
	   * - dnd-dragend        Callback that is invoked when the drag operation ended. Available local
	   *                      variables are event and dropEffect.
	   * - dnd-selected       Callback that is invoked when the element was clicked but not dragged.
	   *                      The original click event will be provided in the local event variable.
	   * - dnd-callback       Custom callback that is passed to dropzone callbacks and can be used to
	   *                      communicate between source and target scopes. The dropzone can pass user
	   *                      defined variables to this callback.
	   *
	   * CSS classes:
	   * - dndDragging        This class will be added to the element while the element is being
	   *                      dragged. It will affect both the element you see while dragging and the
	   *                      source element that stays at it's position. Do not try to hide the source
	   *                      element with this class, because that will abort the drag operation.
	   * - dndDraggingSource  This class will be added to the element after the drag operation was
	   *                      started, meaning it only affects the original element that is still at
	   *                      it's source position, and not the "element" that the user is dragging with
	   *                      his mouse pointer.
	   */
	  dndLists.directive('dndDraggable', ['$parse', '$timeout', function ($parse, $timeout) {
	    return function (scope, element, attr) {
	      // Set the HTML5 draggable attribute on the element.
	      element.attr('draggable', 'true');
	
	      // If the dnd-disable-if attribute is set, we have to watch that.
	      if (attr.dndDisableIf) {
	        scope.$watch(attr.dndDisableIf, function (disabled) {
	          element.attr('draggable', !disabled);
	        });
	      }
	
	      /**
	       * When the drag operation is started we have to prepare the dataTransfer object,
	       * which is the primary way we communicate with the target element
	       */
	      element.on('dragstart', function (event) {
	        event = event.originalEvent || event;
	
	        // Check whether the element is draggable, since dragstart might be triggered on a child.
	        if (element.attr('draggable') == 'false') return true;
	
	        // Initialize global state.
	        dndState.isDragging = true;
	        dndState.itemType = attr.dndType && scope.$eval(attr.dndType).toLowerCase();
	
	        // Set the allowed drop effects. See below for special IE handling.
	        dndState.dropEffect = 'none';
	        dndState.effectAllowed = attr.dndEffectAllowed || ALL_EFFECTS[0];
	        event.dataTransfer.effectAllowed = dndState.effectAllowed;
	
	        // Internet Explorer and Microsoft Edge don't support custom mime types, see design doc:
	        // https://github.com/marceljuenemann/angular-drag-and-drop-lists/wiki/Data-Transfer-Design
	        var item = scope.$eval(attr.dndDraggable);
	        var mimeType = MIME_TYPE + (dndState.itemType ? '-' + dndState.itemType : '');
	        try {
	          event.dataTransfer.setData(mimeType, angular.toJson(item));
	        } catch (e) {
	          // Setting a custom MIME type did not work, we are probably in IE or Edge.
	          var data = angular.toJson({ item: item, type: dndState.itemType });
	          try {
	            event.dataTransfer.setData(EDGE_MIME_TYPE, data);
	          } catch (e) {
	            // We are in Internet Explorer and can only use the Text MIME type. Also note that IE
	            // does not allow changing the cursor in the dragover event, therefore we have to choose
	            // the one we want to display now by setting effectAllowed.
	            var effectsAllowed = filterEffects(ALL_EFFECTS, dndState.effectAllowed);
	            event.dataTransfer.effectAllowed = effectsAllowed[0];
	            event.dataTransfer.setData(MSIE_MIME_TYPE, data);
	          }
	        }
	
	        // Add CSS classes. See documentation above.
	        element.addClass('dndDragging');
	        $timeout(function () {
	          element.addClass('dndDraggingSource');
	        }, 0);
	
	        // Try setting a proper drag image if triggered on a dnd-handle (won't work in IE).
	        if (event._dndHandle && event.dataTransfer.setDragImage) {
	          event.dataTransfer.setDragImage(element[0], 0, 0);
	        }
	
	        // Invoke dragstart callback and prepare extra callback for dropzone.
	        $parse(attr.dndDragstart)(scope, { event: event });
	        if (attr.dndCallback) {
	          var callback = $parse(attr.dndCallback);
	          dndState.callback = function (params) {
	            return callback(scope, params || {});
	          };
	        }
	
	        event.stopPropagation();
	      });
	
	      /**
	       * The dragend event is triggered when the element was dropped or when the drag
	       * operation was aborted (e.g. hit escape button). Depending on the executed action
	       * we will invoke the callbacks specified with the dnd-moved or dnd-copied attribute.
	       */
	      element.on('dragend', function (event) {
	        event = event.originalEvent || event;
	
	        // Invoke callbacks. Usually we would use event.dataTransfer.dropEffect to determine
	        // the used effect, but Chrome has not implemented that field correctly. On Windows
	        // it always sets it to 'none', while Chrome on Linux sometimes sets it to something
	        // else when it's supposed to send 'none' (drag operation aborted).
	        scope.$apply(function () {
	          var dropEffect = dndState.dropEffect;
	          var cb = { copy: 'dndCopied', link: 'dndLinked', move: 'dndMoved', none: 'dndCanceled' };
	          $parse(attr[cb[dropEffect]])(scope, { event: event });
	          $parse(attr.dndDragend)(scope, { event: event, dropEffect: dropEffect });
	        });
	
	        // Clean up
	        dndState.isDragging = false;
	        dndState.callback = undefined;
	        element.removeClass('dndDragging');
	        element.removeClass('dndDraggingSource');
	        event.stopPropagation();
	
	        // In IE9 it is possible that the timeout from dragstart triggers after the dragend handler.
	        $timeout(function () {
	          element.removeClass('dndDraggingSource');
	        }, 0);
	      });
	
	      /**
	       * When the element is clicked we invoke the callback function
	       * specified with the dnd-selected attribute.
	       */
	      element.on('click', function (event) {
	        if (!attr.dndSelected) return;
	
	        event = event.originalEvent || event;
	        scope.$apply(function () {
	          $parse(attr.dndSelected)(scope, { event: event });
	        });
	
	        // Prevent triggering dndSelected in parent elements.
	        event.stopPropagation();
	      });
	
	      /**
	       * Workaround to make element draggable in IE9
	       */
	      element.on('selectstart', function () {
	        if (this.dragDrop) this.dragDrop();
	      });
	    };
	  }]);
	
	  /**
	   * Use the dnd-list attribute to make your list element a dropzone. Usually you will add a single
	   * li element as child with the ng-repeat directive. If you don't do that, we will not be able to
	   * position the dropped element correctly. If you want your list to be sortable, also add the
	   * dnd-draggable directive to your li element(s).
	   *
	   * Attributes:
	   * - dnd-list             Required attribute. The value has to be the array in which the data of
	   *                        the dropped element should be inserted. The value can be blank if used
	   *                        with a custom dnd-drop handler that always returns true.
	   * - dnd-allowed-types    Optional array of allowed item types. When used, only items that had a
	   *                        matching dnd-type attribute will be dropable. Upper case characters will
	   *                        automatically be converted to lower case.
	   * - dnd-effect-allowed   Optional string expression that limits the drop effects that can be
	   *                        performed in the list. See dnd-effect-allowed on dnd-draggable for more
	   *                        details on allowed options. The default value is all.
	   * - dnd-disable-if       Optional boolean expresssion. When it evaluates to true, no dropping
	   *                        into the list is possible. Note that this also disables rearranging
	   *                        items inside the list.
	   * - dnd-horizontal-list  Optional boolean expresssion. When it evaluates to true, the positioning
	   *                        algorithm will use the left and right halfs of the list items instead of
	   *                        the upper and lower halfs.
	   * - dnd-external-sources Optional boolean expression. When it evaluates to true, the list accepts
	   *                        drops from sources outside of the current browser tab. This allows to
	   *                        drag and drop accross different browser tabs. The only major browser
	   *                        that does not support this is currently Microsoft Edge.
	   *
	   * Callbacks:
	   * - dnd-dragover         Optional expression that is invoked when an element is dragged over the
	   *                        list. If the expression is set, but does not return true, the element is
	   *                        not allowed to be dropped. The following variables will be available:
	   *                        - event: The original dragover event sent by the browser.
	   *                        - index: The position in the list at which the element would be dropped.
	   *                        - type: The dnd-type set on the dnd-draggable, or undefined if non was
	   *                          set. Will be null for drops from external sources in IE and Edge,
	   *                          since we don't know the type in those cases.
	   *                        - dropEffect: One of move, copy or link, see dnd-effect-allowed.
	   *                        - external: Whether the element was dragged from an external source.
	   *                        - callback: If dnd-callback was set on the source element, this is a
	   *                          function reference to the callback. The callback can be invoked with
	   *                          custom variables like this: callback({var1: value1, var2: value2}).
	   *                          The callback will be executed on the scope of the source element. If
	   *                          dnd-external-sources was set and external is true, this callback will
	   *                          not be available.
	   * - dnd-drop             Optional expression that is invoked when an element is dropped on the
	   *                        list. The same variables as for dnd-dragover will be available, with the
	   *                        exception that type is always known and therefore never null. There
	   *                        will also be an item variable, which is the transferred object. The
	   *                        return value determines the further handling of the drop:
	   *                        - falsy: The drop will be canceled and the element won't be inserted.
	   *                        - true: Signalises that the drop is allowed, but the dnd-drop
	   *                          callback already took care of inserting the element.
	   *                        - otherwise: All other return values will be treated as the object to
	   *                          insert into the array. In most cases you want to simply return the
	   *                          item parameter, but there are no restrictions on what you can return.
	   * - dnd-inserted         Optional expression that is invoked after a drop if the element was
	   *                        actually inserted into the list. The same local variables as for
	   *                        dnd-drop will be available. Note that for reorderings inside the same
	   *                        list the old element will still be in the list due to the fact that
	   *                        dnd-moved was not called yet.
	   *
	   * CSS classes:
	   * - dndPlaceholder       When an element is dragged over the list, a new placeholder child
	   *                        element will be added. This element is of type li and has the class
	   *                        dndPlaceholder set. Alternatively, you can define your own placeholder
	   *                        by creating a child element with dndPlaceholder class.
	   * - dndDragover          Will be added to the list while an element is dragged over the list.
	   */
	  dndLists.directive('dndList', ['$parse', function ($parse) {
	    return function (scope, element, attr) {
	      // While an element is dragged over the list, this placeholder element is inserted
	      // at the location where the element would be inserted after dropping.
	      var placeholder = getPlaceholderElement();
	      placeholder.remove();
	
	      var placeholderNode = placeholder[0];
	      var listNode = element[0];
	      var listSettings = {};
	
	      /**
	       * The dragenter event is fired when a dragged element or text selection enters a valid drop
	       * target. According to the spec, we either need to have a dropzone attribute or listen on
	       * dragenter events and call preventDefault(). It should be noted though that no browser seems
	       * to enforce this behaviour.
	       */
	      element.on('dragenter', function (event) {
	        event = event.originalEvent || event;
	
	        // Calculate list properties, so that we don't have to repeat this on every dragover event.
	        var types = attr.dndAllowedTypes && scope.$eval(attr.dndAllowedTypes);
	        listSettings = {
	          allowedTypes: angular.isArray(types) && types.join('|').toLowerCase().split('|'),
	          disabled: attr.dndDisableIf && scope.$eval(attr.dndDisableIf),
	          externalSources: attr.dndExternalSources && scope.$eval(attr.dndExternalSources),
	          horizontal: attr.dndHorizontalList && scope.$eval(attr.dndHorizontalList)
	        };
	
	        var mimeType = getMimeType(event.dataTransfer.types);
	        if (!mimeType || !isDropAllowed(getItemType(mimeType))) return true;
	        event.preventDefault();
	      });
	
	      /**
	       * The dragover event is triggered "every few hundred milliseconds" while an element
	       * is being dragged over our list, or over an child element.
	       */
	      element.on('dragover', function (event) {
	        event = event.originalEvent || event;
	
	        // Check whether the drop is allowed and determine mime type.
	        var mimeType = getMimeType(event.dataTransfer.types);
	        var itemType = getItemType(mimeType);
	        if (!mimeType || !isDropAllowed(itemType)) return true;
	
	        // Make sure the placeholder is shown, which is especially important if the list is empty.
	        if (placeholderNode.parentNode != listNode) {
	          element.append(placeholder);
	        }
	
	        if (event.target != listNode) {
	          // Try to find the node direct directly below the list node.
	          var listItemNode = event.target;
	          while (listItemNode.parentNode != listNode && listItemNode.parentNode) {
	            listItemNode = listItemNode.parentNode;
	          }
	
	          if (listItemNode.parentNode == listNode && listItemNode != placeholderNode) {
	            // If the mouse pointer is in the upper half of the list item element,
	            // we position the placeholder before the list item, otherwise after it.
	            var rect = listItemNode.getBoundingClientRect();
	            if (listSettings.horizontal) {
	              var isFirstHalf = event.clientX < rect.left + rect.width / 2;
	            } else {
	              var isFirstHalf = event.clientY < rect.top + rect.height / 2;
	            }
	            listNode.insertBefore(placeholderNode, isFirstHalf ? listItemNode : listItemNode.nextSibling);
	          }
	        }
	
	        // In IE we set a fake effectAllowed in dragstart to get the correct cursor, we therefore
	        // ignore the effectAllowed passed in dataTransfer. We must also not access dataTransfer for
	        // drops from external sources, as that throws an exception.
	        var ignoreDataTransfer = mimeType == MSIE_MIME_TYPE;
	        var dropEffect = getDropEffect(event, ignoreDataTransfer);
	        if (dropEffect == 'none') return stopDragover();
	
	        // At this point we invoke the callback, which still can disallow the drop.
	        // We can't do this earlier because we want to pass the index of the placeholder.
	        if (attr.dndDragover && !invokeCallback(attr.dndDragover, event, dropEffect, itemType)) {
	          return stopDragover();
	        }
	
	        // Set dropEffect to modify the cursor shown by the browser, unless we're in IE, where this
	        // is not supported. This must be done after preventDefault in Firefox.
	        event.preventDefault();
	        if (!ignoreDataTransfer) {
	          event.dataTransfer.dropEffect = dropEffect;
	        }
	
	        element.addClass('dndDragover');
	        event.stopPropagation();
	        return false;
	      });
	
	      /**
	       * When the element is dropped, we use the position of the placeholder element as the
	       * position where we insert the transferred data. This assumes that the list has exactly
	       * one child element per array element.
	       */
	      element.on('drop', function (event) {
	        event = event.originalEvent || event;
	
	        // Check whether the drop is allowed and determine mime type.
	        var mimeType = getMimeType(event.dataTransfer.types);
	        var itemType = getItemType(mimeType);
	        if (!mimeType || !isDropAllowed(itemType)) return true;
	
	        // The default behavior in Firefox is to interpret the dropped element as URL and
	        // forward to it. We want to prevent that even if our drop is aborted.
	        event.preventDefault();
	
	        // Unserialize the data that was serialized in dragstart.
	        try {
	          var data = JSON.parse(event.dataTransfer.getData(mimeType));
	        } catch (e) {
	          return stopDragover();
	        }
	
	        // Drops with invalid types from external sources might not have been filtered out yet.
	        if (mimeType == MSIE_MIME_TYPE || mimeType == EDGE_MIME_TYPE) {
	          itemType = data.type || undefined;
	          data = data.item;
	          if (!isDropAllowed(itemType)) return stopDragover();
	        }
	
	        // Special handling for internal IE drops, see dragover handler.
	        var ignoreDataTransfer = mimeType == MSIE_MIME_TYPE;
	        var dropEffect = getDropEffect(event, ignoreDataTransfer);
	        if (dropEffect == 'none') return stopDragover();
	
	        // Invoke the callback, which can transform the transferredObject and even abort the drop.
	        var index = getPlaceholderIndex();
	        if (attr.dndDrop) {
	          data = invokeCallback(attr.dndDrop, event, dropEffect, itemType, index, data);
	          if (!data) return stopDragover();
	        }
	
	        // The drop is definitely going to happen now, store the dropEffect.
	        dndState.dropEffect = dropEffect;
	        if (!ignoreDataTransfer) {
	          event.dataTransfer.dropEffect = dropEffect;
	        }
	
	        // Insert the object into the array, unless dnd-drop took care of that (returned true).
	        if (data !== true) {
	          scope.$apply(function () {
	            scope.$eval(attr.dndList).splice(index, 0, data);
	          });
	        }
	        invokeCallback(attr.dndInserted, event, dropEffect, itemType, index, data);
	
	        // Clean up
	        stopDragover();
	        event.stopPropagation();
	        return false;
	      });
	
	      /**
	       * We have to remove the placeholder when the element is no longer dragged over our list. The
	       * problem is that the dragleave event is not only fired when the element leaves our list,
	       * but also when it leaves a child element. Therefore, we determine whether the mouse cursor
	       * is still pointing to an element inside the list or not.
	       */
	      element.on('dragleave', function (event) {
	        event = event.originalEvent || event;
	
	        var newTarget = document.elementFromPoint(event.clientX, event.clientY);
	        if (listNode.contains(newTarget) && !event._dndPhShown) {
	          // Signalize to potential parent lists that a placeholder is already shown.
	          event._dndPhShown = true;
	        } else {
	          stopDragover();
	        }
	      });
	
	      /**
	       * Given the types array from the DataTransfer object, returns the first valid mime type.
	       * A type is valid if it starts with MIME_TYPE, or it equals MSIE_MIME_TYPE or EDGE_MIME_TYPE.
	       */
	      function getMimeType(types) {
	        if (!types) return MSIE_MIME_TYPE; // IE 9 workaround.
	        for (var i = 0; i < types.length; i++) {
	          if (types[i] == MSIE_MIME_TYPE || types[i] == EDGE_MIME_TYPE || types[i].substr(0, MIME_TYPE.length) == MIME_TYPE) {
	            return types[i];
	          }
	        }
	        return null;
	      }
	
	      /**
	       * Determines the type of the item from the dndState, or from the mime type for items from
	       * external sources. Returns undefined if no item type was set and null if the item type could
	       * not be determined.
	       */
	      function getItemType(mimeType) {
	        if (dndState.isDragging) return dndState.itemType || undefined;
	        if (mimeType == MSIE_MIME_TYPE || mimeType == EDGE_MIME_TYPE) return null;
	        return mimeType && mimeType.substr(MIME_TYPE.length + 1) || undefined;
	      }
	
	      /**
	       * Checks various conditions that must be fulfilled for a drop to be allowed, including the
	       * dnd-allowed-types attribute. If the item Type is unknown (null), the drop will be allowed.
	       */
	      function isDropAllowed(itemType) {
	        if (listSettings.disabled) return false;
	        if (!listSettings.externalSources && !dndState.isDragging) return false;
	        if (!listSettings.allowedTypes || itemType === null) return true;
	        return itemType && listSettings.allowedTypes.indexOf(itemType) != -1;
	      }
	
	      /**
	       * Determines which drop effect to use for the given event. In Internet Explorer we have to
	       * ignore the effectAllowed field on dataTransfer, since we set a fake value in dragstart.
	       * In those cases we rely on dndState to filter effects. Read the design doc for more details:
	       * https://github.com/marceljuenemann/angular-drag-and-drop-lists/wiki/Data-Transfer-Design
	       */
	      function getDropEffect(event, ignoreDataTransfer) {
	        var effects = ALL_EFFECTS;
	        if (!ignoreDataTransfer) {
	          effects = filterEffects(effects, event.dataTransfer.effectAllowed);
	        }
	        if (dndState.isDragging) {
	          effects = filterEffects(effects, dndState.effectAllowed);
	        }
	        if (attr.dndEffectAllowed) {
	          effects = filterEffects(effects, attr.dndEffectAllowed);
	        }
	        // MacOS automatically filters dataTransfer.effectAllowed depending on the modifier keys,
	        // therefore the following modifier keys will only affect other operating systems.
	        if (!effects.length) {
	          return 'none';
	        } else if (event.ctrlKey && effects.indexOf('copy') != -1) {
	          return 'copy';
	        } else if (event.altKey && effects.indexOf('link') != -1) {
	          return 'link';
	        } else {
	          return effects[0];
	        }
	      }
	
	      /**
	       * Small helper function that cleans up if we aborted a drop.
	       */
	      function stopDragover() {
	        placeholder.remove();
	        element.removeClass('dndDragover');
	        return true;
	      }
	
	      /**
	       * Invokes a callback with some interesting parameters and returns the callbacks return value.
	       */
	      function invokeCallback(expression, event, dropEffect, itemType, index, item) {
	        return $parse(expression)(scope, {
	          callback: dndState.callback,
	          dropEffect: dropEffect,
	          event: event,
	          external: !dndState.isDragging,
	          index: index !== undefined ? index : getPlaceholderIndex(),
	          item: item || undefined,
	          type: itemType
	        });
	      }
	
	      /**
	       * We use the position of the placeholder node to determine at which position of the array the
	       * object needs to be inserted
	       */
	      function getPlaceholderIndex() {
	        return Array.prototype.indexOf.call(listNode.children, placeholderNode);
	      }
	
	      /**
	       * Tries to find a child element that has the dndPlaceholder class set. If none was found, a
	       * new li element is created.
	       */
	      function getPlaceholderElement() {
	        var placeholder;
	        angular.forEach(element.children(), function (childNode) {
	          var child = angular.element(childNode);
	          if (child.hasClass('dndPlaceholder')) {
	            placeholder = child;
	          }
	        });
	        return placeholder || angular.element("<li class='dndPlaceholder'></li>");
	      }
	    };
	  }]);
	
	  /**
	   * Use the dnd-nodrag attribute inside of dnd-draggable elements to prevent them from starting
	   * drag operations. This is especially useful if you want to use input elements inside of
	   * dnd-draggable elements or create specific handle elements. Note: This directive does not work
	   * in Internet Explorer 9.
	   */
	  dndLists.directive('dndNodrag', function () {
	    return function (scope, element, attr) {
	      // Set as draggable so that we can cancel the events explicitly
	      element.attr('draggable', 'true');
	
	      /**
	       * Since the element is draggable, the browser's default operation is to drag it on dragstart.
	       * We will prevent that and also stop the event from bubbling up.
	       */
	      element.on('dragstart', function (event) {
	        event = event.originalEvent || event;
	
	        if (!event._dndHandle) {
	          // If a child element already reacted to dragstart and set a dataTransfer object, we will
	          // allow that. For example, this is the case for user selections inside of input elements.
	          if (!(event.dataTransfer.types && event.dataTransfer.types.length)) {
	            event.preventDefault();
	          }
	          event.stopPropagation();
	        }
	      });
	
	      /**
	       * Stop propagation of dragend events, otherwise dnd-moved might be triggered and the element
	       * would be removed.
	       */
	      element.on('dragend', function (event) {
	        event = event.originalEvent || event;
	        if (!event._dndHandle) {
	          event.stopPropagation();
	        }
	      });
	    };
	  });
	
	  /**
	   * Use the dnd-handle directive within a dnd-nodrag element in order to allow dragging with that
	   * element after all. Therefore, by combining dnd-nodrag and dnd-handle you can allow
	   * dnd-draggable elements to only be dragged via specific "handle" elements. Note that Internet
	   * Explorer will show the handle element as drag image instead of the dnd-draggable element. You
	   * can work around this by styling the handle element differently when it is being dragged. Use
	   * the CSS selector .dndDragging:not(.dndDraggingSource) [dnd-handle] for that.
	   */
	  dndLists.directive('dndHandle', function () {
	    return function (scope, element, attr) {
	      element.attr('draggable', 'true');
	
	      element.on('dragstart dragend', function (event) {
	        event = event.originalEvent || event;
	        event._dndHandle = true;
	      });
	    };
	  });
	
	  /**
	   * Filters an array of drop effects using a HTML5 effectAllowed string.
	   */
	  function filterEffects(effects, effectAllowed) {
	    if (effectAllowed == 'all') return effects;
	    return effects.filter(function (effect) {
	      return effectAllowed.toLowerCase().indexOf(effect) != -1;
	    });
	  }
	
	  /**
	   * For some features we need to maintain global state. This is done here, with these fields:
	   * - callback: A callback function set at dragstart that is passed to internal dropzone handlers.
	   * - dropEffect: Set in dragstart to "none" and to the actual value in the drop handler. We don't
	   *   rely on the dropEffect passed by the browser, since there are various bugs in Chrome and
	   *   Safari, and Internet Explorer defaults to copy if effectAllowed is copyMove.
	   * - effectAllowed: Set in dragstart based on dnd-effect-allowed. This is needed for IE because
	   *   setting effectAllowed on dataTransfer might result in an undesired cursor.
	   * - isDragging: True between dragstart and dragend. Falsy for drops from external sources.
	   * - itemType: The item type of the dragged element set via dnd-type. This is needed because IE
	   *   and Edge don't support custom mime types that we can use to transfer this information.
	   */
	  var dndState = {};
	})(angular.module('dndLists', []));

/***/ }),
/* 1015 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-draggable').directive('phxDraggableList', function (phxDraggableService, ngScreenQueryServant) {
	  var events = {
	    cancel: false,
	    cloned: false,
	    drag: false,
	    dragend: false,
	    drop: false,
	    out: false,
	    over: false,
	    remove: false,
	    shadow: false
	  };
	
	  return {
	    restrict: 'E',
	    scope: {
	      identifier: '@',
	      onCancel: '&?',
	      onCloned: '&?',
	      onDrag: '&?',
	      onDragend: '&?',
	      onDrop: '&?',
	      onOut: '&?',
	      onOver: '&?',
	      onRemove: '&?',
	      onShadow: '&?'
	    },
	    link: function link(scope, el, attrs) {
	      if (ngScreenQueryServant.isScreenMobile()) {
	        return;
	      }
	
	      phxDraggableService.addContainer(el[0], attrs.identifier, attrs.nonDraggableTag);
	
	      var drake = phxDraggableService.getDrake(scope.identifier) || {};
	
	      _.map(Object.keys(events), function (event) {
	        var methodName = 'on' + event.charAt(0).toUpperCase() + event.slice(1);
	
	        if (_.isEmpty(drake) || events[event] || !_.has(scope, methodName)) {
	          return;
	        }
	
	        events[event] = true;
	
	        drake.on(event, function () {
	          try {
	            scope[methodName]({ args: arguments });
	          } catch (e) {}
	        });
	      });
	
	      scope.$on('$destroy', function () {
	        phxDraggableService.removeContainer(el[0], attrs.identifier);
	        var shouldClearDrake = drake.containers.length === 0;
	        if (!shouldClearDrake) {
	          return;
	        }
	        _.map(Object.keys(events), function (event) {
	          drake.off(event);
	          events[event] = false;
	        });
	        phxDraggableService.clearDrake(attrs.identifier);
	      });
	    }
	  };
	});

/***/ }),
/* 1016 */
/***/ (function(module, exports) {

	"use strict";
	
	module.exports = function atoa(a, n) {
	  return Array.prototype.slice.call(a, n);
	};

/***/ }),
/* 1017 */
/***/ (function(module, exports) {

	'use strict';
	
	var cache = {};
	var start = '(?:^|\\s)';
	var end = '(?:\\s|$)';
	
	function lookupClass(className) {
	  var cached = cache[className];
	  if (cached) {
	    cached.lastIndex = 0;
	  } else {
	    cache[className] = cached = new RegExp(start + className + end, 'g');
	  }
	  return cached;
	}
	
	function addClass(el, className) {
	  var current = el.className;
	  if (!current.length) {
	    el.className = className;
	  } else if (!lookupClass(className).test(current)) {
	    el.className += ' ' + className;
	  }
	}
	
	function rmClass(el, className) {
	  el.className = el.className.replace(lookupClass(className), ' ').trim();
	}
	
	module.exports = {
	  add: addClass,
	  rm: rmClass
	};

/***/ }),
/* 1018 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	var ticky = __webpack_require__(1024);
	
	module.exports = function debounce(fn, args, ctx) {
	  if (!fn) {
	    return;
	  }
	  ticky(function run() {
	    fn.apply(ctx || null, args || []);
	  });
	};

/***/ }),
/* 1019 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	var atoa = __webpack_require__(1016);
	var debounce = __webpack_require__(1018);
	
	module.exports = function emitter(thing, options) {
	  var opts = options || {};
	  var evt = {};
	  if (thing === undefined) {
	    thing = {};
	  }
	  thing.on = function (type, fn) {
	    if (!evt[type]) {
	      evt[type] = [fn];
	    } else {
	      evt[type].push(fn);
	    }
	    return thing;
	  };
	  thing.once = function (type, fn) {
	    fn._once = true; // thing.off(fn) still works!
	    thing.on(type, fn);
	    return thing;
	  };
	  thing.off = function (type, fn) {
	    var c = arguments.length;
	    if (c === 1) {
	      delete evt[type];
	    } else if (c === 0) {
	      evt = {};
	    } else {
	      var et = evt[type];
	      if (!et) {
	        return thing;
	      }
	      et.splice(et.indexOf(fn), 1);
	    }
	    return thing;
	  };
	  thing.emit = function () {
	    var args = atoa(arguments);
	    return thing.emitterSnapshot(args.shift()).apply(this, args);
	  };
	  thing.emitterSnapshot = function (type) {
	    var et = (evt[type] || []).slice(0);
	    return function () {
	      var args = atoa(arguments);
	      var ctx = this || thing;
	      if (type === 'error' && opts.throws !== false && !et.length) {
	        throw args.length === 1 ? args[0] : args;
	      }
	      et.forEach(function emitter(listen) {
	        if (opts.async) {
	          debounce(listen, args, ctx);
	        } else {
	          listen.apply(ctx, args);
	        }
	        if (listen._once) {
	          thing.off(type, listen);
	        }
	      });
	      return thing;
	    };
	  };
	  return thing;
	};

/***/ }),
/* 1020 */
/***/ (function(module, exports) {

	'use strict';
	
	var eventmap = [];
	var eventname = '';
	var ron = /^on/;
	
	for (eventname in window) {
	  if (ron.test(eventname)) {
	    eventmap.push(eventname.slice(2));
	  }
	}
	//
	module.exports = eventmap;

/***/ }),
/* 1021 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	var customEvent = __webpack_require__(1022);
	var eventmap = __webpack_require__(1020);
	var doc = window.document;
	var addEvent = addEventEasy;
	var removeEvent = removeEventEasy;
	var hardCache = [];
	
	if (!window.addEventListener) {
	  addEvent = addEventHard;
	  removeEvent = removeEventHard;
	}
	
	module.exports = {
	  add: addEvent,
	  remove: removeEvent,
	  fabricate: fabricateEvent
	};
	
	function addEventEasy(el, type, fn, capturing) {
	  return el.addEventListener(type, fn, capturing);
	}
	
	function addEventHard(el, type, fn) {
	  return el.attachEvent('on' + type, wrap(el, type, fn));
	}
	
	function removeEventEasy(el, type, fn, capturing) {
	  return el.removeEventListener(type, fn, capturing);
	}
	
	function removeEventHard(el, type, fn) {
	  var listener = unwrap(el, type, fn);
	  if (listener) {
	    return el.detachEvent('on' + type, listener);
	  }
	}
	
	function fabricateEvent(el, type, model) {
	  var e = eventmap.indexOf(type) === -1 ? makeCustomEvent() : makeClassicEvent();
	  if (el.dispatchEvent) {
	    el.dispatchEvent(e);
	  } else {
	    el.fireEvent('on' + type, e);
	  }
	  function makeClassicEvent() {
	    var e;
	    if (doc.createEvent) {
	      e = doc.createEvent('Event');
	      e.initEvent(type, true, true);
	    } else if (doc.createEventObject) {
	      e = doc.createEventObject();
	    }
	    return e;
	  }
	  function makeCustomEvent() {
	    return new customEvent(type, { detail: model });
	  }
	}
	
	function wrapperFactory(el, type, fn) {
	  return function wrapper(originalEvent) {
	    var e = originalEvent || window.event;
	    e.target = e.target || e.srcElement;
	    e.preventDefault = e.preventDefault || function preventDefault() {
	      e.returnValue = false;
	    };
	    e.stopPropagation = e.stopPropagation || function stopPropagation() {
	      e.cancelBubble = true;
	    };
	    e.which = e.which || e.keyCode;
	    fn.call(el, e);
	  };
	}
	
	function wrap(el, type, fn) {
	  var wrapper = unwrap(el, type, fn) || wrapperFactory(el, type, fn);
	  hardCache.push({
	    wrapper: wrapper,
	    element: el,
	    type: type,
	    fn: fn
	  });
	  return wrapper;
	}
	
	function unwrap(el, type, fn) {
	  var i = find(el, type, fn);
	  if (i) {
	    var wrapper = hardCache[i].wrapper;
	    hardCache.splice(i, 1); // free up a tad of memory
	    return wrapper;
	  }
	}
	
	function find(el, type, fn) {
	  var i, item;
	  for (i = 0; i < hardCache.length; i++) {
	    item = hardCache[i];
	    if (item.element === el && item.type === type && item.fn === fn) {
	      return i;
	    }
	  }
	}

/***/ }),
/* 1022 */
/***/ (function(module, exports) {

	'use strict';
	
	var NativeCustomEvent = window.CustomEvent;
	
	function useNative() {
	  try {
	    var p = new NativeCustomEvent('cat', { detail: { foo: 'bar' } });
	    return 'cat' === p.type && 'bar' === p.detail.foo;
	  } catch (e) {}
	  return false;
	}
	
	/**
	 * Cross-browser `CustomEvent` constructor.
	 *
	 * https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent.CustomEvent
	 *
	 * @public
	 */
	
	module.exports = useNative() ? NativeCustomEvent : // IE >= 9
	'function' === typeof document.createEvent ? function CustomEvent(type, params) {
	  var e = document.createEvent('CustomEvent');
	  if (params) {
	    e.initCustomEvent(type, params.bubbles, params.cancelable, params.detail);
	  } else {
	    e.initCustomEvent(type, false, false, void 0);
	  }
	  return e;
	} : // IE <= 8
	function CustomEvent(type, params) {
	  var e = document.createEventObject();
	  e.type = type;
	  if (params) {
	    e.bubbles = Boolean(params.bubbles);
	    e.cancelable = Boolean(params.cancelable);
	    e.detail = params.detail;
	  } else {
	    e.bubbles = false;
	    e.cancelable = false;
	    e.detail = void 0;
	  }
	  return e;
	};

/***/ }),
/* 1023 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	var emitter = __webpack_require__(1019);
	var crossvent = __webpack_require__(1021);
	var classes = __webpack_require__(1017);
	var doc = document;
	var documentElement = doc.documentElement;
	
	function dragula(initialContainers, options) {
	  var len = arguments.length;
	  if (len === 1 && Array.isArray(initialContainers) === false) {
	    options = initialContainers;
	    initialContainers = [];
	  }
	  var _mirror; // mirror image
	  var _source; // source container
	  var _item; // item being dragged
	  var _offsetX; // reference x
	  var _offsetY; // reference y
	  var _moveX; // reference move x
	  var _moveY; // reference move y
	  var _initialSibling; // reference sibling when grabbed
	  var _currentSibling; // reference sibling now
	  var _copy; // item used for copying
	  var _renderTimer; // timer for setTimeout renderMirrorImage
	  var _lastDropTarget = null; // last container item was over
	  var _grabbed; // holds mousedown context until first mousemove
	
	  var o = options || {};
	  if (o.moves === void 0) {
	    o.moves = always;
	  }
	  if (o.accepts === void 0) {
	    o.accepts = always;
	  }
	  if (o.invalid === void 0) {
	    o.invalid = invalidTarget;
	  }
	  if (o.containers === void 0) {
	    o.containers = initialContainers || [];
	  }
	  if (o.isContainer === void 0) {
	    o.isContainer = never;
	  }
	  if (o.copy === void 0) {
	    o.copy = false;
	  }
	  if (o.copySortSource === void 0) {
	    o.copySortSource = false;
	  }
	  if (o.revertOnSpill === void 0) {
	    o.revertOnSpill = false;
	  }
	  if (o.removeOnSpill === void 0) {
	    o.removeOnSpill = false;
	  }
	  if (o.direction === void 0) {
	    o.direction = 'vertical';
	  }
	  if (o.ignoreInputTextSelection === void 0) {
	    o.ignoreInputTextSelection = true;
	  }
	  if (o.mirrorContainer === void 0) {
	    o.mirrorContainer = doc.body;
	  }
	
	  var drake = emitter({
	    containers: o.containers,
	    start: manualStart,
	    end: end,
	    cancel: cancel,
	    remove: remove,
	    destroy: destroy,
	    canMove: canMove,
	    dragging: false
	  });
	
	  if (o.removeOnSpill === true) {
	    drake.on('over', spillOver).on('out', spillOut);
	  }
	
	  events();
	
	  return drake;
	
	  function isContainer(el) {
	    return drake.containers.indexOf(el) !== -1 || o.isContainer(el);
	  }
	
	  function events(remove) {
	    var op = remove ? 'remove' : 'add';
	    touchy(documentElement, op, 'mousedown', grab);
	    touchy(documentElement, op, 'mouseup', release);
	  }
	
	  function eventualMovements(remove) {
	    var op = remove ? 'remove' : 'add';
	    touchy(documentElement, op, 'mousemove', startBecauseMouseMoved);
	  }
	
	  function movements(remove) {
	    var op = remove ? 'remove' : 'add';
	    crossvent[op](documentElement, 'selectstart', preventGrabbed); // IE8
	    crossvent[op](documentElement, 'click', preventGrabbed);
	  }
	
	  function destroy() {
	    events(true);
	    release({});
	  }
	
	  function preventGrabbed(e) {
	    if (_grabbed) {
	      e.preventDefault();
	    }
	  }
	
	  function grab(e) {
	    _moveX = e.clientX;
	    _moveY = e.clientY;
	
	    var ignore = whichMouseButton(e) !== 1 || e.metaKey || e.ctrlKey;
	    if (ignore) {
	      return; // we only care about honest-to-god left clicks and touch events
	    }
	    var item = e.target;
	    var context = canStart(item);
	    if (!context) {
	      return;
	    }
	    _grabbed = context;
	    eventualMovements();
	    if (e.type === 'mousedown') {
	      if (isInput(item)) {
	        // see also: https://github.com/bevacqua/dragula/issues/208
	        item.focus(); // fixes https://github.com/bevacqua/dragula/issues/176
	      } else {
	        e.preventDefault(); // fixes https://github.com/bevacqua/dragula/issues/155
	      }
	    }
	  }
	
	  function startBecauseMouseMoved(e) {
	    if (!_grabbed) {
	      return;
	    }
	    if (whichMouseButton(e) === 0) {
	      release({});
	      return; // when text is selected on an input and then dragged, mouseup doesn't fire. this is our only hope
	    }
	    // truthy check fixes #239, equality fixes #207
	    if (e.clientX !== void 0 && e.clientX === _moveX && e.clientY !== void 0 && e.clientY === _moveY) {
	      return;
	    }
	    if (o.ignoreInputTextSelection) {
	      var clientX = getCoord('clientX', e);
	      var clientY = getCoord('clientY', e);
	      var elementBehindCursor = doc.elementFromPoint(clientX, clientY);
	      if (isInput(elementBehindCursor)) {
	        return;
	      }
	    }
	
	    var grabbed = _grabbed; // call to end() unsets _grabbed
	    eventualMovements(true);
	    movements();
	    end();
	    start(grabbed);
	
	    var offset = getOffset(_item);
	    _offsetX = getCoord('pageX', e) - offset.left;
	    _offsetY = getCoord('pageY', e) - offset.top;
	
	    classes.add(_copy || _item, 'gu-transit');
	    renderMirrorImage();
	    drag(e);
	  }
	
	  function canStart(item) {
	    if (drake.dragging && _mirror) {
	      return;
	    }
	    if (isContainer(item)) {
	      return; // don't drag container itself
	    }
	    var handle = item;
	    while (getParent(item) && isContainer(getParent(item)) === false) {
	      if (o.invalid(item, handle)) {
	        return;
	      }
	      item = getParent(item); // drag target should be a top element
	      if (!item) {
	        return;
	      }
	    }
	    var source = getParent(item);
	    if (!source) {
	      return;
	    }
	    if (o.invalid(item, handle)) {
	      return;
	    }
	
	    var movable = o.moves(item, source, handle, nextEl(item));
	    if (!movable) {
	      return;
	    }
	
	    return {
	      item: item,
	      source: source
	    };
	  }
	
	  function canMove(item) {
	    return !!canStart(item);
	  }
	
	  function manualStart(item) {
	    var context = canStart(item);
	    if (context) {
	      start(context);
	    }
	  }
	
	  function start(context) {
	    if (isCopy(context.item, context.source)) {
	      _copy = context.item.cloneNode(true);
	      drake.emit('cloned', _copy, context.item, 'copy');
	    }
	
	    _source = context.source;
	    _item = context.item;
	    _initialSibling = _currentSibling = nextEl(context.item);
	
	    drake.dragging = true;
	    drake.emit('drag', _item, _source);
	  }
	
	  function invalidTarget() {
	    return false;
	  }
	
	  function end() {
	    if (!drake.dragging) {
	      return;
	    }
	    var item = _copy || _item;
	    drop(item, getParent(item));
	  }
	
	  function ungrab() {
	    _grabbed = false;
	    eventualMovements(true);
	    movements(true);
	  }
	
	  function release(e) {
	    ungrab();
	
	    if (!drake.dragging) {
	      return;
	    }
	    var item = _copy || _item;
	    var clientX = getCoord('clientX', e);
	    var clientY = getCoord('clientY', e);
	    var elementBehindCursor = getElementBehindPoint(_mirror, clientX, clientY);
	    var dropTarget = findDropTarget(elementBehindCursor, clientX, clientY);
	    if (dropTarget && (_copy && o.copySortSource || !_copy || dropTarget !== _source)) {
	      drop(item, dropTarget);
	    } else if (o.removeOnSpill) {
	      remove();
	    } else {
	      cancel();
	    }
	  }
	
	  function drop(item, target) {
	    var parent = getParent(item);
	    if (_copy && o.copySortSource && target === _source) {
	      parent.removeChild(_item);
	    }
	    if (isInitialPlacement(target)) {
	      drake.emit('cancel', item, _source, _source);
	    } else {
	      drake.emit('drop', item, target, _source, _currentSibling);
	    }
	    cleanup();
	  }
	
	  function remove() {
	    if (!drake.dragging) {
	      return;
	    }
	    var item = _copy || _item;
	    var parent = getParent(item);
	    if (parent) {
	      parent.removeChild(item);
	    }
	    drake.emit(_copy ? 'cancel' : 'remove', item, parent, _source);
	    cleanup();
	  }
	
	  function cancel(revert) {
	    if (!drake.dragging) {
	      return;
	    }
	    var reverts = arguments.length > 0 ? revert : o.revertOnSpill;
	    var item = _copy || _item;
	    var parent = getParent(item);
	    var initial = isInitialPlacement(parent);
	    if (initial === false && reverts) {
	      if (_copy) {
	        parent.removeChild(_copy);
	      } else {
	        _source.insertBefore(item, _initialSibling);
	      }
	    }
	    if (initial || reverts) {
	      drake.emit('cancel', item, _source, _source);
	    } else {
	      drake.emit('drop', item, parent, _source, _currentSibling);
	    }
	    cleanup();
	  }
	
	  function cleanup() {
	    var item = _copy || _item;
	    ungrab();
	    removeMirrorImage();
	    if (item) {
	      classes.rm(item, 'gu-transit');
	    }
	    if (_renderTimer) {
	      clearTimeout(_renderTimer);
	    }
	    drake.dragging = false;
	    if (_lastDropTarget) {
	      drake.emit('out', item, _lastDropTarget, _source);
	    }
	    drake.emit('dragend', item);
	    _source = _item = _copy = _initialSibling = _currentSibling = _renderTimer = _lastDropTarget = null;
	  }
	
	  function isInitialPlacement(target, s) {
	    var sibling;
	    if (s !== void 0) {
	      sibling = s;
	    } else if (_mirror) {
	      sibling = _currentSibling;
	    } else {
	      sibling = nextEl(_copy || _item);
	    }
	    return target === _source && sibling === _initialSibling;
	  }
	
	  function findDropTarget(elementBehindCursor, clientX, clientY) {
	    var target = elementBehindCursor;
	    while (target && !accepted()) {
	      target = getParent(target);
	    }
	    return target;
	
	    function accepted() {
	      var droppable = isContainer(target);
	      if (droppable === false) {
	        return false;
	      }
	
	      var immediate = getImmediateChild(target, elementBehindCursor);
	      var reference = getReference(target, immediate, clientX, clientY);
	      var initial = isInitialPlacement(target, reference);
	      if (initial) {
	        return true; // should always be able to drop it right back where it was
	      }
	      return o.accepts(_item, target, _source, reference);
	    }
	  }
	
	  function drag(e) {
	    if (!_mirror) {
	      return;
	    }
	    e.preventDefault();
	
	    var clientX = getCoord('clientX', e);
	    var clientY = getCoord('clientY', e);
	    var x = clientX - _offsetX;
	    var y = clientY - _offsetY;
	
	    _mirror.style.left = x + 'px';
	    _mirror.style.top = y + 'px';
	
	    var item = _copy || _item;
	    var elementBehindCursor = getElementBehindPoint(_mirror, clientX, clientY);
	    var dropTarget = findDropTarget(elementBehindCursor, clientX, clientY);
	    var changed = dropTarget !== null && dropTarget !== _lastDropTarget;
	    if (changed || dropTarget === null) {
	      out();
	      _lastDropTarget = dropTarget;
	      over();
	    }
	    var parent = getParent(item);
	    if (dropTarget === _source && _copy && !o.copySortSource) {
	      if (parent) {
	        parent.removeChild(item);
	      }
	      return;
	    }
	    var reference;
	    var immediate = getImmediateChild(dropTarget, elementBehindCursor);
	    if (immediate !== null) {
	      reference = getReference(dropTarget, immediate, clientX, clientY);
	    } else if (o.revertOnSpill === true && !_copy) {
	      reference = _initialSibling;
	      dropTarget = _source;
	    } else {
	      if (_copy && parent) {
	        parent.removeChild(item);
	      }
	      return;
	    }
	    if (reference === null && changed || reference !== item && reference !== nextEl(item)) {
	      _currentSibling = reference;
	      dropTarget.insertBefore(item, reference);
	      drake.emit('shadow', item, dropTarget, _source);
	    }
	    function moved(type) {
	      drake.emit(type, item, _lastDropTarget, _source);
	    }
	    function over() {
	      if (changed) {
	        moved('over');
	      }
	    }
	    function out() {
	      if (_lastDropTarget) {
	        moved('out');
	      }
	    }
	  }
	
	  function spillOver(el) {
	    classes.rm(el, 'gu-hide');
	  }
	
	  function spillOut(el) {
	    if (drake.dragging) {
	      classes.add(el, 'gu-hide');
	    }
	  }
	
	  function renderMirrorImage() {
	    if (_mirror) {
	      return;
	    }
	    var rect = _item.getBoundingClientRect();
	    _mirror = _item.cloneNode(true);
	    _mirror.style.width = getRectWidth(rect) + 'px';
	    _mirror.style.height = getRectHeight(rect) + 'px';
	    classes.rm(_mirror, 'gu-transit');
	    classes.add(_mirror, 'gu-mirror');
	    o.mirrorContainer.appendChild(_mirror);
	    touchy(documentElement, 'add', 'mousemove', drag);
	    classes.add(o.mirrorContainer, 'gu-unselectable');
	    drake.emit('cloned', _mirror, _item, 'mirror');
	  }
	
	  function removeMirrorImage() {
	    if (_mirror) {
	      classes.rm(o.mirrorContainer, 'gu-unselectable');
	      touchy(documentElement, 'remove', 'mousemove', drag);
	      getParent(_mirror).removeChild(_mirror);
	      _mirror = null;
	    }
	  }
	
	  function getImmediateChild(dropTarget, target) {
	    var immediate = target;
	    while (immediate !== dropTarget && getParent(immediate) !== dropTarget) {
	      immediate = getParent(immediate);
	    }
	    if (immediate === documentElement) {
	      return null;
	    }
	    return immediate;
	  }
	
	  function getReference(dropTarget, target, x, y) {
	    var horizontal = o.direction === 'horizontal';
	    var reference = target !== dropTarget ? inside() : outside();
	    return reference;
	
	    function outside() {
	      // slower, but able to figure out any position
	      var len = dropTarget.children.length;
	      var i;
	      var el;
	      var rect;
	      for (i = 0; i < len; i++) {
	        el = dropTarget.children[i];
	        rect = el.getBoundingClientRect();
	        if (horizontal && rect.left + rect.width / 2 > x) {
	          return el;
	        }
	        if (!horizontal && rect.top + rect.height / 2 > y) {
	          return el;
	        }
	      }
	      return null;
	    }
	
	    function inside() {
	      // faster, but only available if dropped inside a child element
	      var rect = target.getBoundingClientRect();
	      if (horizontal) {
	        return resolve(x > rect.left + getRectWidth(rect) / 2);
	      }
	      return resolve(y > rect.top + getRectHeight(rect) / 2);
	    }
	
	    function resolve(after) {
	      return after ? nextEl(target) : target;
	    }
	  }
	
	  function isCopy(item, container) {
	    return typeof o.copy === 'boolean' ? o.copy : o.copy(item, container);
	  }
	}
	
	function touchy(el, op, type, fn) {
	  var touch = {
	    mouseup: 'touchend',
	    mousedown: 'touchstart',
	    mousemove: 'touchmove'
	  };
	  var pointers = {
	    mouseup: 'pointerup',
	    mousedown: 'pointerdown',
	    mousemove: 'pointermove'
	  };
	  var microsoft = {
	    mouseup: 'MSPointerUp',
	    mousedown: 'MSPointerDown',
	    mousemove: 'MSPointerMove'
	  };
	  if (window.navigator.pointerEnabled) {
	    crossvent[op](el, pointers[type], fn);
	  } else if (window.navigator.msPointerEnabled) {
	    crossvent[op](el, microsoft[type], fn);
	  } else {
	    crossvent[op](el, touch[type], fn);
	    crossvent[op](el, type, fn);
	  }
	}
	
	function whichMouseButton(e) {
	  if (e.touches !== void 0) {
	    return e.touches.length;
	  }
	  if (e.which !== void 0 && e.which !== 0) {
	    return e.which;
	  } // see https://github.com/bevacqua/dragula/issues/261
	  if (e.buttons !== void 0) {
	    return e.buttons;
	  }
	  var button = e.button;
	  if (button !== void 0) {
	    // see https://github.com/jquery/jquery/blob/99e8ff1baa7ae341e94bb89c3e84570c7c3ad9ea/src/event.js#L573-L575
	    return button & 1 ? 1 : button & 2 ? 3 : button & 4 ? 2 : 0;
	  }
	}
	
	function getOffset(el) {
	  var rect = el.getBoundingClientRect();
	  return {
	    left: rect.left + getScroll('scrollLeft', 'pageXOffset'),
	    top: rect.top + getScroll('scrollTop', 'pageYOffset')
	  };
	}
	
	function getScroll(scrollProp, offsetProp) {
	  if (typeof window[offsetProp] !== 'undefined') {
	    return window[offsetProp];
	  }
	  if (documentElement.clientHeight) {
	    return documentElement[scrollProp];
	  }
	  return doc.body[scrollProp];
	}
	
	function getElementBehindPoint(point, x, y) {
	  var p = point || {};
	  var state = p.className;
	  var el;
	  p.className += ' gu-hide';
	  el = doc.elementFromPoint(x, y);
	  p.className = state;
	  return el;
	}
	
	function never() {
	  return false;
	}
	function always() {
	  return true;
	}
	function getRectWidth(rect) {
	  return rect.width || rect.right - rect.left;
	}
	function getRectHeight(rect) {
	  return rect.height || rect.bottom - rect.top;
	}
	function getParent(el) {
	  return el.parentNode === doc ? null : el.parentNode;
	}
	function isInput(el) {
	  return el.tagName === 'INPUT' || el.tagName === 'TEXTAREA' || el.tagName === 'SELECT' || isEditable(el);
	}
	function isEditable(el) {
	  if (!el) {
	    return false;
	  } // no parents were editable
	  if (el.contentEditable === 'false') {
	    return false;
	  } // stop the lookup
	  if (el.contentEditable === 'true') {
	    return true;
	  } // found a contentEditable element in the chain
	  return isEditable(getParent(el)); // contentEditable is set to 'inherit'
	}
	
	function nextEl(el) {
	  return el.nextElementSibling || manually();
	  function manually() {
	    var sibling = el;
	    do {
	      sibling = sibling.nextSibling;
	    } while (sibling && sibling.nodeType !== 1);
	    return sibling;
	  }
	}
	
	function getEventHost(e) {
	  // on touchend event, we have to use `e.changedTouches`
	  // see http://stackoverflow.com/questions/7192563/touchend-event-properties
	  // see https://github.com/bevacqua/dragula/issues/34
	  if (e.targetTouches && e.targetTouches.length) {
	    return e.targetTouches[0];
	  }
	  if (e.changedTouches && e.changedTouches.length) {
	    return e.changedTouches[0];
	  }
	  return e;
	}
	
	function getCoord(coord, e) {
	  var host = getEventHost(e);
	  var missMap = {
	    pageX: 'clientX', // IE8
	    pageY: 'clientY' // IE8
	  };
	  if (coord in missMap && !(coord in host) && missMap[coord] in host) {
	    coord = missMap[coord];
	  }
	  return host[coord];
	}
	
	module.exports = dragula;

/***/ }),
/* 1024 */
/***/ (function(module, exports, __webpack_require__) {

	/* WEBPACK VAR INJECTION */(function(setImmediate) {'use strict';
	
	var si = typeof setImmediate === 'function',
	    tick;
	if (si) {
	  tick = function tick(fn) {
	    setImmediate(fn);
	  };
	} else {
	  tick = function tick(fn) {
	    setTimeout(fn, 0);
	  };
	}
	
	module.exports = tick;
	/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1091).setImmediate))

/***/ }),
/* 1025 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-draggable').service('phxDraggableService', function () {
	  var drakes = {};
	
	  this.addContainer = function (container, identifier, nonDraggableTag) {
	    if (_.isUndefined(drakes[identifier])) {
	      drakes[identifier] = dragula({
	        revertOnSpill: true,
	        invalid: function invalid(el, handle) {
	          return el.tagName === nonDraggableTag || _.has(el.attributes, 'phx-draggable') && el.attributes['phx-draggable'].value === 'false';
	        }
	      });
	    }
	
	    drakes[identifier].containers.push(container);
	  };
	
	  this.removeContainer = function (container, identifier) {
	    if (_.isUndefined(drakes[identifier])) {
	      return;
	    }
	    var index = drakes[identifier].containers.findIndex(function (el) {
	      return el instanceof Element && el.isSameNode(container);
	    });
	    if (index >= 0) {
	      drakes[identifier].containers.splice(index);
	    }
	  };
	
	  this.getDrake = function (identifier) {
	    return drakes[identifier];
	  };
	
	  this.getAllDrakes = function () {
	    return drakes;
	  };
	
	  this.clearDrake = function (identifier) {
	    drakes[identifier] = undefined;
	  };
	});

/***/ }),
/* 1026 */
/***/ (function(module, exports) {

	'use strict';
	
	// Author: Sina Khelil 6/3/15
	
	/**
	 * @license MIT http://jseppi.mit-license.org/license.html
	 */
	(function (window, angular, undefined) {
	  'use strict';
	
	  var dd = angular.module('ngDropdowns', []);
	
	  dd.run(['$templateCache', function ($templateCache) {
	    $templateCache.put('ngDropdowns/templates/dropdownSelect.html', ['<div ng-class="{\'disabled\': dropdownDisabled}" class="wrap-dd-select" aria-haspopup="true">', '<span class="selected">{{dropdownModel[labelField]}}</span>', '<ul class="dropdown" role="listbox">', '<li ng-repeat="item in dropdownSelect"', ' class="dropdown-item"', ' role="option"', ' dropdown-select-item="item"', ' dropdown-last-item="$last"', ' dropdown-item-label="labelField">', '</li>', '</ul>', '</div>'].join(''));
	
	    $templateCache.put('ngDropdowns/templates/dropdownSelectItem.html', ['<li ng-class="{divider: (dropdownSelectItem.divider && !dropdownSelectItem[dropdownItemLabel]), \'divider-label\': (dropdownSelectItem.divider && dropdownSelectItem[dropdownItemLabel])}">', '<a href="" class="dropdown-item"', ' ng-if="!dropdownSelectItem.divider"', ' ng-href="{{dropdownSelectItem.href}}"', ' ng-click="selectItem()" ng-keypress="selectItemKeyPress($event)" tabindex="0" ng-blur="closeDropDown()">', '{{dropdownSelectItem[dropdownItemLabel]}}', '</a>', '<span ng-if="dropdownSelectItem.divider">', '{{dropdownSelectItem[dropdownItemLabel]}}', '</span>', '</li>'].join(''));
	
	    $templateCache.put('ngDropdowns/templates/dropdownMenu.html', ['<ul class="dropdown" role="listbox">', '<li ng-repeat="item in dropdownMenu"', ' class="dropdown-item"', ' dropdown-item-label="labelField"', ' dropdown-menu-item="item"', ' dropdown-last-item="$last">', '</li>', '</ul>'].join(''));
	
	    $templateCache.put('ngDropdowns/templates/dropdownMenuItem.html', ['<li ng-class="{divider: dropdownMenuItem.divider, \'divider-label\': dropdownMenuItem.divider && dropdownMenuItem[dropdownItemLabel]}">', '<a href="" class="dropdown-item"', ' ng-if="!dropdownMenuItem.divider"', ' ng-href="{{dropdownMenuItem.href}}"', ' ng-click="selectItem()" ng-keypress="selectItemKeyPress($event)" tabindex="0" role="option" ng-blur="closeDropDown()">', '{{dropdownMenuItem[dropdownItemLabel]}}', '</a>', '<span ng-if="dropdownMenuItem.divider">', '{{dropdownMenuItem[dropdownItemLabel]}}', '</span>', '</li>'].join(''));
	  }]);
	
	  dd.directive('dropdownSelect', ['DropdownDelegate', function (DropdownService) {
	    return {
	      restrict: 'A',
	      replace: true,
	      scope: {
	        dropdownSelect: '=',
	        dropdownModel: '=',
	        dropdownItemLabel: '@',
	        dropdownOnchange: '&',
	        dropdownDisabled: '='
	      },
	
	      controller: ['$scope', '$element', function ($scope, $element) {
	        $scope.labelField = $scope.dropdownItemLabel || 'text';
	
	        DropdownService.register($element);
	
	        this.select = function (selected) {
	          if (selected !== $scope.dropdownModel) {
	            angular.copy(selected, $scope.dropdownModel);
	          }
	          $scope.dropdownOnchange({
	            selected: selected
	          });
	          $element.focus();
	        };
	
	        this.closeDropDown = function () {
	          DropdownService.toggleActive($element);
	        };
	
	        $element.bind('click', function (event) {
	          event.stopPropagation();
	          if (!$scope.dropdownDisabled) {
	            DropdownService.toggleActive($element);
	          }
	        });
	        $element.bind('keypress', function (event) {
	          event.stopPropagation();
	          if (event && event.which === 13) {
	            if (!$scope.dropdownDisabled) {
	              DropdownService.toggleActive($element);
	              if ($element.hasClass('active')) {
	                $element.find('ul').attr('aria-hidden', 'false').children().first().find('a').focus();
	              } else {
	                $element.attr('aria-hidden', 'true');
	              }
	            }
	          }
	        });
	
	        $element.bind('blur', function (event) {
	          if ($element.hasClass('active')) {
	            DropdownService.toggleActive($element);
	            $element.find('ul').attr('aria-hidden', 'true');
	          }
	        });
	
	        $scope.$on('$destroy', function () {
	          DropdownService.unregister($element);
	        });
	      }],
	      templateUrl: 'ngDropdowns/templates/dropdownSelect.html'
	    };
	  }]);
	
	  dd.directive('dropdownSelectItem', [function () {
	    return {
	      require: '^dropdownSelect',
	      replace: true,
	      scope: {
	        dropdownItemLabel: '=',
	        dropdownSelectItem: '=',
	        dropdownLastItem: '='
	      },
	
	      link: function link(scope, element, attrs, dropdownSelectCtrl) {
	        scope.selectItem = function () {
	          if (scope.dropdownSelectItem.href) {
	            return;
	          }
	          dropdownSelectCtrl.select(scope.dropdownSelectItem);
	        };
	        scope.selectItemKeyPress = function (event) {
	          if (event && event.which === 13) {
	            if (scope.dropdownSelectItem.href) {
	              return;
	            }
	            dropdownSelectCtrl.select(scope.dropdownSelectItem);
	          }
	        };
	        scope.closeDropDown = function () {
	          if (scope.dropdownLastItem) {
	            dropdownSelectCtrl.closeDropDown();
	          }
	        };
	      },
	
	      templateUrl: 'ngDropdowns/templates/dropdownSelectItem.html'
	    };
	  }]);
	
	  dd.directive('dropdownMenu', ['$parse', '$compile', 'DropdownDelegate', '$templateCache', function ($parse, $compile, DropdownService, $templateCache) {
	    return {
	      restrict: 'A',
	      replace: false,
	      scope: {
	        dropdownMenu: '=',
	        dropdownModel: '=',
	        dropdownItemLabel: '@',
	        dropdownOnchange: '&',
	        dropdownDisabled: '='
	      },
	
	      controller: ['$scope', '$element', function ($scope, $element) {
	        $scope.labelField = $scope.dropdownItemLabel || 'text';
	
	        var $template = angular.element($templateCache.get('ngDropdowns/templates/dropdownMenu.html'));
	        // Attach this controller to the element's data
	        $template.data('$dropdownMenuController', this);
	
	        var tpl = $compile($template)($scope);
	        var $wrap = $compile(angular.element('<div class="wrap-dd-menu" ng-class="{\'disabled\': dropdownDisabled}"></div>'))($scope);
	
	        $element.replaceWith($wrap);
	        $wrap.append($element);
	        $wrap.append($template);
	
	        DropdownService.register(tpl);
	
	        this.select = function (selected) {
	          if (selected !== $scope.dropdownModel) {
	            angular.copy(selected, $scope.dropdownModel);
	          }
	          $scope.dropdownOnchange({
	            selected: selected
	          });
	          $element.focus();
	          DropdownService.toggleActive(tpl);
	        };
	
	        this.closeDropDown = function () {
	          DropdownService.toggleActive(tpl);
	        };
	
	        $element.bind('click', function (event) {
	          event.stopPropagation();
	          if (!$scope.dropdownDisabled) {
	            DropdownService.toggleActive(tpl);
	          }
	        });
	        $element.bind('keypress', function (event) {
	          event.stopPropagation();
	          if (event && event.which === 13) {
	            if (!$scope.dropdownDisabled) {
	              DropdownService.toggleActive(tpl);
	              if (tpl.hasClass('active')) {
	                tpl.attr('aria-hidden', 'false').children().first().find('a').focus();
	              } else {
	                tpl.attr('aria-hidden', 'true');
	              }
	            }
	          }
	        });
	
	        $scope.$on('$destroy', function () {
	          DropdownService.unregister(tpl);
	        });
	      }]
	    };
	  }]);
	
	  dd.directive('dropdownMenuItem', [function () {
	    return {
	      require: '^dropdownMenu',
	      replace: true,
	      scope: {
	        dropdownMenuItem: '=',
	        dropdownItemLabel: '=',
	        dropdownLastItem: '='
	      },
	
	      link: function link(scope, element, attrs, dropdownMenuCtrl) {
	        scope.selectItem = function () {
	          if (scope.dropdownMenuItem.href) {
	            return;
	          }
	          dropdownMenuCtrl.select(scope.dropdownMenuItem);
	        };
	        scope.selectItemKeyPress = function (event) {
	          if (event && event.which === 13) {
	            if (scope.dropdownMenuItem.href) {
	              return;
	            }
	            dropdownMenuCtrl.select(scope.dropdownMenuItem);
	          }
	        };
	        scope.closeDropDown = function () {
	          if (scope.dropdownLastItem) {
	            dropdownMenuCtrl.closeDropDown();
	          }
	        };
	      },
	
	      templateUrl: 'ngDropdowns/templates/dropdownMenuItem.html'
	    };
	  }]);
	
	  dd.factory('DropdownDelegate', ['$document', function ($document) {
	    var body = $document.find('body'),
	        service = {},
	        _dropdowns = [];
	
	    body.bind('click', function () {
	      angular.forEach(_dropdowns, function (el) {
	        el.removeClass('active');
	      });
	    });
	
	    service.register = function (ddEl) {
	      _dropdowns.push(ddEl);
	    };
	
	    service.unregister = function (ddEl) {
	      var index;
	      index = _dropdowns.indexOf(ddEl);
	      if (index > -1) {
	        _dropdowns.splice(index, 1);
	      }
	    };
	
	    service.toggleActive = function (ddEl) {
	      angular.forEach(_dropdowns, function (el) {
	        if (el !== ddEl) {
	          el.removeClass('active');
	        }
	      });
	      ddEl.toggleClass('active');
	    };
	
	    return service;
	  }]);
	})(window, window.angular);

/***/ }),
/* 1027 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-feature').factory('phxFeatureDelegateConstant', ['$compile', 'phxFeatureDatastore', 'ngIfDirective', function ($compile, phxFeatureDatastore, ngIfDirective) {
	  /**
	   * consistent configuration lookup
	   */
	  var getFeatureConfiguration = function getFeatureConfiguration(scope, element, attrs, event, configuration) {
	    return configuration[attrs.phxFeature];
	  };
	
	  /**
	   * apply `include` property with a dynamic `ng-if`
	   */
	  var applyInclude = function applyInclude(scope, element, attrs, event, featureConfiguration) {
	    if (!_.isBoolean(featureConfiguration.include)) {
	      return;
	    }
	
	    element.css('display', featureConfiguration.include !== false ? 'initial' : 'none');
	  };
	
	  /**
	   * append html content as a dynamic angular content snippet
	   */
	  var applyAppendHTML = function applyAppendHTML(scope, element, attrs, event, featureConfiguration) {
	    var angularElement;
	
	    if (!_.isString(featureConfiguration.appendHTML)) {
	      return;
	    }
	
	    if (!_.isUndefined(element.attr('feature-appended-html'))) {
	      return;
	    }
	
	    element.attr('feature-appended-html', 'true');
	    angularElement = $compile(featureConfiguration.appendHTML)(scope);
	    element.append(angularElement);
	  };
	
	  var applyAssignContent = function applyAssignContent(scope, element, attrs, event, featureConfiguration) {
	    if (!_.isString(featureConfiguration.assignContent)) {
	      return;
	    }
	
	    element.html(featureConfiguration.assignContent);
	  };
	
	  var isConfigurationValid = function isConfigurationValid(featureConfiguration) {
	    return !_.isEmpty(featureConfiguration) && !_.includes(['appendHTML', 'assignContent', 'include', 'if'], featureConfiguration);
	  };
	
	  return {
	    uniqueComponent: 'ui-ng-feature',
	    vocabulary: {
	      refreshFeatures: function refreshFeatures(scope, element, attrs, event) {
	        var configuration = phxFeatureDatastore.store;
	        var featureConfiguration = getFeatureConfiguration(scope, element, attrs, event, configuration);
	
	        if (!featureConfiguration) {
	          return;
	        }
	
	        applyInclude(scope, element, attrs, event, featureConfiguration);
	        applyAssignContent(scope, element, attrs, event, featureConfiguration);
	        applyAppendHTML(scope, element, attrs, event, featureConfiguration);
	      }
	    }
	  };
	}]).directive('phxFeature', ['DelegateResponder', 'phxFeatureDelegateConstant', function phxFeature(DelegateResponder, phxFeatureDelegateConstant) {
	  return {
	    replace: false,
	    restrict: 'A',
	    scope: false,
	    compile: function compile() {
	      return DelegateResponder(phxFeatureDelegateConstant, function (scope, element, attrs) {
	        scope.refreshFeatures();
	      });
	    }
	  };
	}]).service('phxFeature', ['DelegateController', 'phxFeatureDelegateConstant', function phxFeatureDelegate(DelegateController, phxFeatureDelegateConstant) {
	  DelegateController(this, phxFeatureDelegateConstant);
	}]).directive('phxFeatureIf', ['ngIfDirective', 'phxFeatureDatastore', function phxFeatureIf(ngIfDirective, phxFeatureDatastore) {
	  var ngIf = ngIfDirective[0];
	  return {
	    transclude: ngIf.transclude,
	    priority: ngIf.priority - 1,
	    terminal: ngIf.terminal,
	    restrict: ngIf.restrict,
	    link: function link(scope, element, attrs) {
	      var featureConfiguration = phxFeatureDatastore.store[attrs.phxFeature];
	      // find the initial ng-if attribute
	      var initialNgIf = attrs.ngIf,
	          ifEvaluator = void 0;
	      // if it exists, evaluates ngIf && featureConfiguration.if
	      if (initialNgIf) {
	        ifEvaluator = function ifEvaluator() {
	          return scope.$eval(initialNgIf) && featureConfiguration.if;
	        };
	      } else {
	        // if there's no ng-if, process normally
	        ifEvaluator = function ifEvaluator() {
	          return featureConfiguration.if;
	        };
	      }
	      attrs.ngIf = ifEvaluator;
	      ngIf.link.apply(ngIf, arguments);
	    }
	  };
	}]);

/***/ }),
/* 1028 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-feature').constant('phxFeatureDatastore', {
	  store: {}
	}).provider('phxFeatureConfiguration', ['phxFeatureDatastore', function phxFeatureConfigurationProvider(phxFeatureDatastore) {
	  var _features = this.features = this.write = function features_phxFeatureConfiguration(appendFeatureConfiguration) {
	    if (_.isPlainObject(appendFeatureConfiguration)) {
	      phxFeatureDatastore.store = _.merge(phxFeatureDatastore.store, appendFeatureConfiguration);
	    }
	
	    return phxFeatureDatastore.store;
	  };
	
	  /**
	   * @param o the object to scrub
	   * @param featureKey the feature to use
	   * @param searchTerm the word to search for
	   */
	  var _scrub = this.scrub = function (o, featureKey, searchTerm) {
	    var searchRegex = !_.isRegExp(searchTerm) ? new RegExp(searchTerm, 'g') : searchTerm;
	
	    var feature = phxFeatureDatastore.store[featureKey];
	
	    if (!feature) {
	      return o;
	    }
	
	    var alterationRule = feature.include === false ? '' : feature.assignContent || '';
	
	    return traverse(o, function (value) {
	      if (!_.isString(value)) {
	        return value;
	      }
	
	      if (!value.match(searchRegex)) {
	        return value;
	      }
	
	      return value.split(searchRegex).join(alterationRule);
	    });
	  };
	
	  var traverse = function traverse(o, fn) {
	    if (!_.isObject(o)) {
	      return fn(o);
	    }
	
	    _.each(o, function (v, k, o) {
	      o[k] = _.isObject(v) ? traverse(v, fn) : fn(v, k);
	    });
	
	    return o;
	  };
	
	  var _read = this.read = function read_phxFeatureConfiguration(featureKey) {
	    return phxFeatureDatastore.store[featureKey];
	  };
	
	  var _safeRead = this.safeRead = function safeRead_phxFeatureConfiguration(featureKey) {
	    return phxFeatureDatastore.store[featureKey] || {};
	  };
	
	  var _reset = this.reset = function reset_phxFeatureConfiguration() {
	    phxFeatureDatastore.store = {};
	    return phxFeatureDatastore.store;
	  };
	
	  this.$get = function phxFeatureConfigurationGetter(phxFeature) {
	    return {
	      scrub: function scrub(o, featureKey, searchTerm) {
	        return _scrub(o, featureKey, searchTerm);
	      },
	      features: function features(appendFeatureConfiguration) {
	        _features(appendFeatureConfiguration);
	        phxFeature.refreshFeatures();
	      },
	      read: function read(featureKey) {
	        return _read(featureKey);
	      },
	      safeRead: function safeRead(featureKey) {
	        return _safeRead(featureKey);
	      },
	      reset: function reset() {
	        _reset();
	        phxFeature.refreshFeatures();
	      }
	    };
	  };
	}]);

/***/ }),
/* 1029 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('mgcrea.ngStrap.modal', ['mgcrea.ngStrap.helpers.dimensions', 'ui-ng-ax']).provider('$modal', function () {
	  var defaults = this.defaults = {
	    animation: 'am-modal-fade',
	    backdropAnimation: 'am-modal-fade',
	    prefixClass: 'modal',
	    prefixEvent: 'modal',
	    placement: 'top',
	    template: 'ui-ng-modal/dist/lib/external/modal.tpl.html',
	    contentTemplate: false,
	    container: false,
	    element: null,
	    backdrop: true,
	    keyboard: true,
	    html: false,
	    show: true,
	    disableAutoFocus: false
	  };
	
	  this.$get = function ($window, $rootScope, $compile, $q, $templateCache, $http, $animate, $timeout, $sce, dimensions, phxAxContainFocusServant) {
	    var forEach = angular.forEach;
	    var trim = String.prototype.trim;
	    var requestAnimationFrame = $window.requestAnimationFrame || $window.setTimeout;
	    var bodyElement = angular.element($window.document.body);
	    var htmlReplaceRegExp = /ng-bind="/gi;
	
	    function ModalFactory(config) {
	      var $modal = {};
	
	      // Common vars
	      var options = $modal.$options = angular.extend({}, defaults, config);
	      $modal.$promise = fetchTemplate(options.template);
	      var scope = $modal.$scope = options.scope && options.scope.$new() || $rootScope.$new();
	      if (!options.element && !options.container) {
	        options.container = 'body';
	      }
	
	      // store $id to identify the triggering element in events
	      // give priority to options.id, otherwise, try to use
	      // element id if defined
	      $modal.$id = options.id || options.element && options.element.attr('id') || '';
	
	      // Support scope as string options
	      forEach(['title', 'content'], function (key) {
	        if (options[key]) {
	          scope[key] = $sce.trustAsHtml(options[key]);
	        }
	      });
	
	      // Provide scope helpers
	      scope.$hide = function () {
	        scope.$$postDigest(function () {
	          $modal.hide();
	        });
	      };
	      scope.$show = function () {
	        scope.$$postDigest(function () {
	          $modal.show();
	        });
	      };
	      scope.$toggle = function () {
	        scope.$$postDigest(function () {
	          $modal.toggle();
	        });
	      };
	      // Publish isShown as a protected var on scope
	      $modal.$isShown = scope.$isShown = false;
	
	      // Support contentTemplate option
	      if (options.contentTemplate) {
	        $modal.$promise = $modal.$promise.then(function (template) {
	          var templateEl = angular.element(template);
	          return fetchTemplate(options.contentTemplate).then(function (contentTemplate) {
	            var contentEl = findElement('[ng-bind="content"]', templateEl[0]).removeAttr('ng-bind').html(contentTemplate);
	            // Drop the default footer as you probably don't want it if you use a custom contentTemplate
	            if (!config.template) {
	              contentEl.next().remove();
	            }
	            return templateEl[0].outerHTML;
	          });
	        });
	      }
	
	      // Fetch, compile then initialize modal
	      var modalLinker, modalElement;
	      var backdropElement = angular.element('<div class="' + options.prefixClass + '-backdrop"/>');
	      backdropElement.css({
	        position: 'fixed',
	        top: '0px',
	        left: '0px',
	        bottom: '0px',
	        right: '0px',
	        'z-index': 1038
	      }).attr('tabindex', '-1');
	      $modal.$promise.then(function (template) {
	        if (angular.isObject(template)) {
	          template = template.data;
	        }
	        if (options.html) {
	          template = template.replace(htmlReplaceRegExp, 'ng-bind-html="');
	        }
	        template = trim.apply(template);
	        modalLinker = $compile(template);
	        $modal.init();
	      });
	
	      $modal.init = function () {
	        // Options: show
	        if (options.show) {
	          scope.$$postDigest(function () {
	            $modal.show();
	          });
	        }
	      };
	
	      $modal.destroy = function () {
	        // Remove element
	        if (modalElement) {
	          modalElement.remove();
	          modalElement = null;
	        }
	        if (backdropElement) {
	          backdropElement.remove();
	          backdropElement = null;
	        }
	
	        // Destroy scope
	        scope.$destroy();
	      };
	
	      $modal.show = function () {
	        if ($modal.$isShown) {
	          return;
	        }
	
	        var parent, after;
	        if (angular.isElement(options.container)) {
	          parent = options.container;
	          after = options.container[0].lastChild ? angular.element(options.container[0].lastChild) : null;
	        } else {
	          if (options.container) {
	            parent = findElement(options.container);
	            after = parent[0].lastChild ? angular.element(parent[0].lastChild) : null;
	          } else {
	            parent = null;
	            after = options.element;
	          }
	        }
	
	        // Fetch a cloned element linked from template
	        modalElement = $modal.$element = modalLinker(scope, function (clonedElement, scope) {});
	
	        if (scope.$emit(options.prefixEvent + '.show.before', $modal).defaultPrevented) {
	          return;
	        }
	
	        // Set the initial positioning.
	        modalElement.css({ display: 'block' }).addClass(options.placement);
	
	        // Options: animation
	        if (options.animation) {
	          if (options.backdrop) {
	            backdropElement.addClass(options.backdropAnimation);
	          }
	          modalElement.addClass(options.animation);
	        }
	
	        if (options.backdrop) {
	          $animate.enter(backdropElement, bodyElement, null);
	        }
	        // Support v1.3+ $animate
	        // https://github.com/angular/angular.js/commit/bf0f5502b1bbfddc5cdd2f138efd9188b8c652a9
	        var promise = $animate.enter(modalElement, parent, after, enterAnimateCallback);
	        if (promise && promise.then) {
	          promise.then(enterAnimateCallback);
	        }
	
	        $modal.$isShown = scope.$isShown = true;
	        safeDigest(scope);
	        // Focus once the enter-animation has started
	        // Weird PhantomJS bug hack
	        var el = modalElement[0];
	        requestAnimationFrame(function () {
	          el.focus();
	        });
	
	        bodyElement.addClass(options.prefixClass + '-activated');
	        if (options.animation) {
	          bodyElement.addClass(options.prefixClass + '-with-' + options.animation);
	        }
	
	        // Bind events
	        if (options.backdrop && !options.disableHideBackdropClick) {
	          modalElement.on('click', hideOnBackdropClick);
	          backdropElement.on('click', hideOnBackdropClick);
	          backdropElement.on('wheel', preventEventDefault);
	        }
	        if (options.keyboard) {
	          modalElement.on('keyup', $modal.$onKeyUp);
	          modalElement.on('keydown', $modal.$onKeyDown);
	        }
	
	        if (!options.disableAutoFocus) {
	          $timeout(function () {
	            el.focus();
	            phxAxContainFocusServant.trapFocus(el);
	          }, 200);
	        }
	      };
	
	      function enterAnimateCallback() {
	        scope.$emit(options.prefixEvent + '.show', $modal);
	      }
	
	      $modal.hide = function () {
	        if (!$modal.$isShown) {
	          return;
	        }
	
	        if (scope.$emit(options.prefixEvent + '.hide.before', $modal).defaultPrevented) {
	          return;
	        }
	        var promise = $animate.leave(modalElement, leaveAnimateCallback);
	        // Support v1.3+ $animate
	        // https://github.com/angular/angular.js/commit/bf0f5502b1bbfddc5cdd2f138efd9188b8c652a9
	        if (promise && promise.then) {
	          promise.then(leaveAnimateCallback);
	        }
	
	        if (options.backdrop) {
	          $animate.leave(backdropElement);
	        }
	        $modal.$isShown = scope.$isShown = false;
	        safeDigest(scope);
	
	        // Unbind events
	        if (options.backdrop) {
	          modalElement.off('click', hideOnBackdropClick);
	          backdropElement.off('click', hideOnBackdropClick);
	          backdropElement.off('wheel', preventEventDefault);
	        }
	        if (options.keyboard) {
	          modalElement.off('keyup', $modal.$onKeyUp);
	          modalElement.off('keydown', $modal.$onKeyDown);
	        }
	      };
	
	      function leaveAnimateCallback() {
	        scope.$emit(options.prefixEvent + '.hide', $modal);
	        bodyElement.removeClass(options.prefixClass + '-activated');
	        if (options.animation) {
	          bodyElement.removeClass(options.prefixClass + '-with-' + options.animation);
	        }
	      }
	
	      $modal.toggle = function () {
	        $modal.$isShown ? $modal.hide() : $modal.show();
	      };
	
	      $modal.focus = function () {
	        modalElement[0].focus();
	      };
	
	      // Protected methods
	
	      $modal.$onKeyUp = function (evt) {
	        if (evt.which === 27 && $modal.$isShown) {
	          $modal.hide();
	          evt.stopPropagation();
	        }
	      };
	
	      // Private methods
	
	      function hideOnBackdropClick(evt) {
	        if (evt.target !== evt.currentTarget) {
	          return;
	        }
	        options.backdrop === 'static' ? $modal.focus() : $modal.hide();
	      }
	
	      function preventEventDefault(evt) {
	        evt.preventDefault();
	      }
	
	      return $modal;
	    }
	
	    // Helper functions
	
	    function safeDigest(scope) {
	      scope.$$phase || scope.$root && scope.$root.$$phase || scope.$digest();
	    }
	
	    function findElement(query, element) {
	      return angular.element((element || document).querySelectorAll(query));
	    }
	
	    var fetchPromises = {};
	
	    function fetchTemplate(template) {
	      if (fetchPromises[template]) {
	        return fetchPromises[template];
	      }
	      return fetchPromises[template] = $http.get(template, { cache: $templateCache }).then(function (res) {
	        return res.data;
	      });
	    }
	
	    return ModalFactory;
	  };
	}).directive('phxModal', function ($window, $sce, $modal) {
	  return {
	    restrict: 'EAC',
	    scope: true,
	    link: function postLink(scope, element, attr, transclusion) {
	      // Directive options
	      var options = {
	        scope: scope,
	        element: element,
	        show: false
	      };
	      angular.forEach(['template', 'contentTemplate', 'placement', 'container', 'animation', 'id'], function (key) {
	        if (angular.isDefined(attr[key])) {
	          options[key] = attr[key];
	        }
	      });
	
	      // use string regex match for boolean values
	      var falseValueRegExp = /^(false|0|)$/;
	      angular.forEach(['keyboard', 'html'], function (key) {
	        if (angular.isDefined(attr[key])) {
	          options[key] = !falseValueRegExp.test(attr[key]);
	        }
	      });
	
	      if (angular.isDefined(attr.backdrop)) {
	        options.backdrop = falseValueRegExp.test(attr.backdrop) ? false : attr.backdrop;
	      }
	
	      // Support scope as data-attrs
	      angular.forEach(['title', 'content'], function (key) {
	        attr[key] && attr.$observe(key, function (newValue, oldValue) {
	          scope[key] = $sce.trustAsHtml(newValue);
	        });
	      });
	
	      // Support scope as an object
	      attr.phxModal && scope.$watch(attr.phxModal, function (newValue, oldValue) {
	        if (angular.isObject(newValue)) {
	          angular.extend(scope, newValue);
	        } else {
	          scope.content = newValue;
	        }
	      }, true);
	
	      // Initialize modal
	      var modal = $modal(options);
	
	      // Trigger
	      element.on(attr.trigger || 'click', modal.toggle);
	
	      // Garbage collection
	      scope.$on('$destroy', function () {
	        if (modal) {
	          modal.destroy();
	        }
	        options = null;
	        modal = null;
	      });
	    }
	  };
	});

/***/ }),
/* 1030 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(49);
	
	angular.module('ui-ng-notification').constant('phxNotificationMessageBuilderDTD', {
	  id: 'auto-id',
	  content: {
	    required: true,
	    type: 'string'
	  },
	  name: 'string',
	  status: {
	    required: true,
	    type: 'enum',
	    typeDef: 'phxNotificationMessageStatusEnum',
	    defaultValue: 'INFO'
	  },
	  additionalClasses: 'string',
	  showIcon: 'boolean',
	  iconClass: 'string',
	  timeout: {
	    type: 'integer',
	    defaultValue: 20000
	  },
	  dismissButton: {
	    type: 'boolean',
	    defaultValue: true
	  },
	  dismissOnTimeout: {
	    type: 'boolean',
	    defaultValue: true
	  },
	  dismissOnClick: {
	    type: 'boolean',
	    defaultValue: true
	  },
	  compileContent: '*',
	  count: {
	    optional: true,
	    type: 'integer'
	  }
	}).factory('phxNotificationMessageBuilder', function phxNotificationMessageBuilder(Interface, phxNotificationMessageBuilderDTD) {
	  return function PhxNotificationMessageDTO(notificationMessage) {
	    Interface.implement(phxNotificationMessageBuilderDTD, notificationMessage, this);
	  };
	});

/***/ }),
/* 1031 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(49);
	
	angular.module('ui-ng-notification').factory('phxNotificationDelegateConfiguration', function (phxNotificationMessageBuilder, phxNotificationMessageStatusEnum) {
	  return {
	    uniqueComponent: 'phx-notification',
	    vocabulary: {
	      create: function create(scope, element, attrs, event, content, status) {
	        var i;
	        var _msg;
	        var message = _.isString(content) ? { content: content } : content;
	
	        if (_.isUndefined(message)) {
	          return;
	        }
	
	        message.status = phxNotificationMessageStatusEnum.get(message.status || status || phxNotificationMessageStatusEnum.INFO);
	        message = new phxNotificationMessageBuilder(message);
	
	        if (scope.verticalPosition === 'bottom') {
	          scope.messages.unshift(message);
	        } else {
	          scope.messages.push(message);
	        }
	
	        scope.messageStack.push(message.id);
	        scope.$applyAsync();
	        return message.id;
	      },
	      success: function success(scope, element, attrs, event, messageContent) {
	        return this.create(messageContent, phxNotificationMessageStatusEnum.SUCCESS);
	      },
	      info: function info(scope, element, attrs, event, messageContent) {
	        return this.create(messageContent, phxNotificationMessageStatusEnum.INFO);
	      },
	      warn: function warn(scope, element, attrs, event, messageContent) {
	        return this.create(messageContent, phxNotificationMessageStatusEnum.WARN);
	      },
	      error: function error(scope, element, attrs, event, messageContent) {
	        return this.create(messageContent, phxNotificationMessageStatusEnum.ERROR);
	      },
	      dismissAlertByName: function dismissAlertByName(scope, element, attrs, event, name) {
	        scope.dismissByName(name);
	      }
	    }
	  };
	}).controller('phxNotificationController', function phxNotificationController($scope) {
	  $scope.messages = [];
	  $scope.messageStack = [];
	
	  $scope.dismiss = function (id) {
	    if (id) {
	      for (var i = $scope.messages.length - 1; i >= 0; i--) {
	        if ($scope.messages[i].id === id) {
	          $scope.messages.splice(i, 1);
	          $scope.messageStack.splice($scope.messageStack.indexOf(id), 1);
	          return;
	        }
	      }
	    } else {
	      $scope.messageStack = [];
	    }
	  };
	  $scope.dismissByName = function (name) {
	    var notification = _.find($scope.messages, {
	      name: name
	    });
	
	    if (notification) {
	      $scope.dismiss(notification.id);
	    }
	  };
	}).directive('phxNotification', function (DelegateResponder, phxNotificationDelegateConfiguration, $templateCache) {
	  return {
	    replace: false,
	    restrict: 'E',
	    templateUrl: function templateUrl(element, attrs) {
	      return 'ui-ng-notification/src/templates/' + (attrs.type || 'standard') + '.html';
	    },
	    scope: {},
	    controller: 'phxNotificationController',
	    compile: function compile(element, attrs) {
	      var template;
	
	      if (attrs.template) {
	        template = $templateCache.get(attrs.template);
	        if (!template) {
	          throw new EABError('ui-ng-notification', 100, {
	            templateURL: attrs.template
	          });
	        }
	
	        element.replaceWith(template);
	      }
	
	      return DelegateResponder(phxNotificationDelegateConfiguration, function notificationLinker(scope, element, attrs) {
	        scope.respectEabHeader = _.isString(attrs.respectEabHeader) ? attrs.respectEabHeader === 'true' : false;
	
	        scope.combineDuplications = _.isString(attrs.combineDuplications) ? attrs.combineDuplications === 'true' : true;
	
	        scope.horizontalPosition = _.isString(attrs.horizontalPosition) ? attrs.horizontalPosition : 'right';
	
	        scope.verticalPosition = _.isString(attrs.verticalPosition) ? attrs.verticalPosition : 'top';
	
	        scope.animation = _.isString(attrs.animation) ? attrs.animation : 'slide';
	      });
	    }
	  };
	}).service('phxNotificationDelegate', function phxSelectDelegate(DelegateController, phxNotificationDelegateConfiguration) {
	  DelegateController(this, phxNotificationDelegateConfiguration);
	});

/***/ }),
/* 1032 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(49);
	
	angular.module('ui-ng-notification').controller('phxNotificationMessageController', function ($scope, $timeout) {
	  $scope.dismissTimeout;
	
	  $scope.$watch('message.count', function () {
	    $scope.startTimeout();
	  });
	
	  $scope.messageCount = function messageCount() {
	    return parseInt($scope.message.count, 10) + 1;
	  };
	
	  $scope.cancelTimeout = function () {
	    $timeout.cancel($scope.dismissTimeout);
	  };
	
	  $scope.getIcon = function () {
	    return $scope.message.iconClass || $scope.message.status.value.icon;
	  };
	
	  $scope.startTimeout = function () {
	    if ($scope.message.dismissOnTimeout) {
	      $scope.cancelTimeout();
	      $scope.dismissTimeout = $timeout(function () {
	        $scope.dismiss($scope.message.id);
	      }, $scope.message.timeout);
	    }
	  };
	
	  $scope.onMouseEnter = function () {
	    $scope.cancelTimeout();
	  };
	
	  $scope.onMouseLeave = function () {
	    $scope.startTimeout();
	  };
	
	  $scope.$on('$destroy', function () {
	    $scope.cancelTimeout();
	  });
	}).directive('phxNotificationMessage', function () {
	  return {
	    scope: false,
	    restrict: 'E',
	    replace: false,
	    transclude: true,
	    requires: '^phxNotification',
	    controller: 'phxNotificationMessageController',
	    templateUrl: 'ui-ng-notification/src/templates/standard_message.html',
	    link: function link(scope, element, attrs, ctrl, transclude) {
	      element.attr('data-message-id', scope.message.id);
	      scope.startTimeout();
	
	      element.on('click keyup', function (event) {
	        var isClickable = event.target.nodeName === 'A' || event.target.nodeName === 'BUTTON';
	        var isActivated = event.type === 'click' || event.type === 'keyup' && (event.which === 13 || event.which === 32);
	        if (isClickable && isActivated) {
	          scope.$applyAsync(function () {
	            scope.dismiss(scope.message.id);
	          });
	        }
	      });
	
	      if (scope.message.dismissButton) {
	        element.bind('keyup', function (event) {
	          if (event.which === 13 || event.which === 32) {
	            scope.$applyAsync(function () {
	              scope.dismiss(scope.message.id);
	            });
	          }
	        });
	      }
	
	      scope.$on('$destroy', function () {
	        element.unbind('keyup');
	        element.find('.alert-content').unbind('click keyup');
	      });
	    }
	  };
	});

/***/ }),
/* 1033 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(49);
	
	angular.module('ui-ng-notification').factory('phxNotificationMessageStatusEnum', function (Enumeration) {
	  return Enumeration('phxNotificationMessageStatusEnum', {
	    INFO: {
	      cssClass: 'info',
	      icon: 'eab-icon-checkmark'
	    },
	    SUCCESS: {
	      cssClass: 'success',
	      icon: 'eab-icon-checkmark'
	    },
	    WARN: {
	      cssClass: 'warning',
	      icon: 'eab-icon-caution'
	    },
	    ERROR: {
	      cssClass: 'error',
	      icon: 'eab-icon-caution'
	    }
	  });
	});

/***/ }),
/* 1034 */
/***/ (function(module, exports) {

	'use strict';
	
	module.exports = angular.module('ui-ng-pie', []).directive('phxPie', function () {
	  var COMPONENT = 'ui-ng-pie';
	  var PI = 3.14159;
	  var BRAND_COLOR_REGEX = /^(\$*)brand-color--/;
	  var makeSVG = function makeSVG(tag, attrs) {
	    var el = document.createElementNS('http://www.w3.org/2000/svg', tag);
	    for (var k in attrs) {
	      el.setAttribute(k, attrs[k]);
	    }
	    return el;
	  };
	
	  return {
	    restrict: 'E',
	    scope: {
	      diameter: '@',
	      values: '=',
	      colors: '=',
	      isRadial: '<?'
	    },
	    template: '<svg class="phx-chart-pie"></svg>',
	    compile: function compile(element, attrs) {
	      element.addClass('phx-chart-pie');
	      return function (scope, element, attrs) {
	        var size = Number(scope.diameter);
	        var valuesList = scope.values;
	        var isRadial = !!scope.isRadial;
	        // these are now straight colors and not color names
	        //
	        var colorsList = scope.colors;
	
	        if (!Array.isArray(valuesList) || !Array.isArray(colorsList)) {
	          throw new EABError(COMPONENT, 100);
	        }
	
	        if (isNaN(size) || typeof size !== 'number') {
	          throw new EABError(COMPONENT, 101);
	        }
	
	        if (valuesList.length > colorsList.length) {
	          throw new EABError(COMPONENT, 102);
	        }
	
	        // we do not need to re-write the color list, it already has colors and not color names
	        //
	        // _.each(colorsList, function (color, i) {
	        //   if (BRAND_COLOR_REGEX.test(color)) {
	        //     if (!Brand.color[color]) {
	        //       throw new EABError(COMPONENT, 103);
	        //     }
	        //     this[i] = Brand.color[color];
	        //   }
	        // }, colorsList);
	
	        var radius = size / 4;
	        var circleX = size / 2;
	        var circleY = size / 2;
	
	        var circumference = 2 * PI * radius;
	        var total = _.reduce(valuesList, _.add);
	
	        var percentages = _.map(valuesList, function (n, i) {
	          return {
	            percent: n / this,
	            accumulated: n / this + (i > 0 ? _.reduce(_.map(valuesList.slice(0, i), function (val) {
	              return val / this;
	            }, total), _.add) : 0)
	          };
	        }, total);
	
	        var svg = element.children();
	
	        _.first(svg).setAttributeNS(null, 'height', size);
	        _.first(svg).setAttributeNS(null, 'width', size);
	
	        _.times(percentages.length - 1, function (n) {
	          svg.append(makeSVG('circle', {
	            cx: circleX,
	            cy: circleY,
	            r: radius
	          }));
	        });
	
	        var circles = element.children().children();
	
	        _.each(percentages, function (val, i) {
	          if (i > 0) {
	            circles.eq(percentages.length - 1 - i).css('stroke', colorsList[i - 1]).css('stroke-width', radius * 2).css('stroke-dasharray', percentages[i - 1].accumulated * circumference + ' ' + circumference);
	          }
	        });
	
	        circles.css('fill', 'none');
	
	        if (isRadial) {
	          svg.append(makeSVG('circle', {
	            cx: circleX,
	            cy: circleY,
	            r: radius * 1.6,
	            fill: 'white'
	          }));
	        }
	
	        element.children().css('background', colorsList[percentages.length - 1]);
	      };
	    }
	  };
	});

/***/ }),
/* 1035 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(12);
	
	__webpack_require__(1034);

/***/ }),
/* 1036 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	/**
	 * Created by kachavas on 1/21/16.
	 */
	var EABError = __webpack_require__(12);
	
	angular.module('ui-ng-popover').constant('popoverDataEnum', Enumeration('popoverDataEnum', {
	  DEFAULT: {
	    title: 'Use popoverDataEnum',
	    content: 'Use popoverDataEnum to add popover data to your application, This helps maintain all your popover data in one place. use data-enum attribute with key on smartPopover to add data'
	  }
	})).service('popoverDataService', function (popoverDataEnum) {
	  this.update = this.updateEnum = function update(Enum) {
	    popoverDataEnum.union(Enum);
	  };
	
	  this.replace = this.replaceEnum = function replace(Enum) {
	    popoverDataEnum.replace(Enum);
	  };
	
	  this.add = this.set = function add(name, values) {
	    var enumObj = {};
	    if (_.isUndefined(name)) {
	      throw new EABError('popoverDataService', 100, 'Popover Data Enumeration object needs a name');
	    } else if (_.isUndefined(values)) {
	      throw new EABError('popoverDataService', 100, {
	        key: name,
	        details: 'Popover Data Enumeration object needs values for title and content'
	      });
	    } else if (_.isUndefined(values.title)) {
	      throw new EABError('popoverDataService', 100, {
	        key: name,
	        details: 'Popover Data Enumeration object needs values for title'
	      });
	    } else if (_.isUndefined(values.content)) {
	      throw new EABError('popoverDataService', 100, {
	        key: name,
	        details: 'Popover Data Enumeration object needs values for content'
	      });
	    }
	    enumObj[name] = values;
	    popoverDataEnum.add(enumObj);
	  };
	
	  var getDataByKey = function getDataByKey(enumKey) {
	    return popoverDataEnum.get(enumKey);
	  };
	
	  this.get = this.getPopoverDataForKey = function getPopoverDataForKey(enumKey) {
	    var data = getDataByKey(enumKey);
	    return _.isEmpty(data) ? {} : data.value;
	  };
	
	  this.getPopoverTitle = function getPopoverTitle(enumKey) {
	    var data = getDataByKey(enumKey);
	    return _.isEmpty(data) ? '' : data.value.title;
	  };
	
	  this.getPopoverContent = function getPopoverContent(enumKey) {
	    var data = getDataByKey(enumKey);
	    return _.isEmpty(data) ? '' : data.value.content;
	  };
	});

/***/ }),
/* 1037 */
/***/ (function(module, exports) {

	'use strict';
	
	/**
	 * Created by kachavas on 1/21/16.
	 */
	angular.module('ui-ng-popover').directive('phxSmartPopover', function ($timeout, $popover, $window, $sce, popoverDataService, $interpolate) {
	  'use strict';
	
	  return {
	    restrict: 'A',
	    link: function link(scope, element, attrs) {
	      var startTimer,
	          hideTimer,
	          hideDelay = 500;
	      var requestAnimationFrame = $window.requestAnimationFrame || $window.setTimeout;
	
	      var popoverOptions = {
	        placement: attrs.placement || 'auto',
	        title: attrs.title,
	        content: attrs.content,
	        key: attrs.key || attrs.phxSmartPopover,
	        trigger: 'manual click focus',
	        html: true,
	        customClass: attrs.customClass,
	        delay: attrs.delay,
	        container: attrs.container || 'body',
	        viewport: attrs.viewport || {
	          selector: 'body',
	          padding: 0
	        }
	      };
	
	      if (!_.isEmpty(_.trim(popoverOptions.key))) {
	        popoverOptions.title = popoverDataService.getPopoverTitle(popoverOptions.key);
	        popoverOptions.content = popoverDataService.getPopoverContent(popoverOptions.key);
	      }
	      popoverOptions.content = $sce.trustAsHtml(popoverOptions.content);
	      scope.pop = $popover(element, popoverOptions);
	
	      var adjustVerticalPosition = function adjustVerticalPosition() {
	        //AUTO POSITION
	        /*
	         Popover has auto positioning already built in, So it handles left and right overflow.
	         Below code fixes the issue with bottom positioned popover from flowing out of view.
	         */
	        var popover = scope.pop.$element;
	        if (popover && !(scope.pop.$options.placement === 'left' || scope.pop.$options.placement === 'right')) {
	          var offset = element.offset(),
	              bottom_available_y = $window.pageYOffset + $window.innerHeight - offset.top,
	              top_available_y = offset.top - $window.pageYOffset,
	              position = bottom_available_y < top_available_y ? 'top' : 'bottom';
	          // Adjust position to which ever direction has space
	          scope.pop.$options.placement = position; //flip the placement direction
	          popover.removeClass('top bottom ').addClass(position); //adjust class to fix the positioning of the arrow
	          requestAnimationFrame(function () {
	            scope.pop.$applyPlacement();
	          });
	        }
	      };
	
	      var isValidOffset = function isValidOffset(elemOffset) {
	        return !_.isUndefined(elemOffset.top) && !_.isUndefined(elemOffset.left) ? elemOffset.top > 0 && elemOffset.left > 0 : false;
	      };
	
	      var showPopover = function showPopover() {
	        //Don't show popover when a title or content is not provided or when there is no valid offset
	        var elHasValidOffset = isValidOffset(element.offset());
	        if (!_.isEmpty(popoverOptions.title) && !_.isEmpty(popoverOptions.content) && elHasValidOffset) {
	          var contentSource = attrs.content,
	              titleSource = attrs.title;
	          if (!_.isEmpty(_.trim(popoverOptions.key))) {
	            contentSource = popoverDataService.getPopoverContent(popoverOptions.key);
	            titleSource = popoverDataService.getPopoverTitle(popoverOptions.key);
	          }
	          if ($sce.trustAsHtml(contentSource) !== popoverOptions.content || titleSource !== popoverOptions.title) {
	            popoverOptions.content = $sce.trustAsHtml(contentSource);
	            popoverOptions.title = titleSource;
	            scope.pop.destroy();
	            scope.pop = $popover(element, popoverOptions);
	            scope.pop.$promise.then(function () {
	              scope.pop.show();
	            });
	          } else {
	            scope.pop.show();
	          }
	          adjustVerticalPosition();
	        }
	      };
	
	      var hidePopover = function hidePopover() {
	        scope.pop.hide();
	        clearTimeout(hideTimer);
	      };
	
	      var mouseEnterFunction = function mouseEnterFunction() {
	        clearTimeout(hideTimer);
	        startTimer = setTimeout(function () {
	          showPopover();
	          $('.popover').on('mouseenter', function () {
	            clearTimeout(hideTimer);
	          }).on('mouseleave', function () {
	            $('.popover').off('mouseenter mouseleave');
	            hidePopover();
	          });
	        }, hideDelay);
	      };
	
	      var mouseLeaveFunction = function mouseLeaveFunction() {
	        clearTimeout(startTimer); //Dont trigger
	        hideTimer = setTimeout(function () {
	          hidePopover();
	        }, hideDelay);
	      };
	
	      element.on('mouseenter', mouseEnterFunction);
	      element.on('mouseleave', mouseLeaveFunction);
	
	      var textContent = element.text() || '';
	      var iconTitle = attrs.iconTitle || '';
	
	      textContent = $interpolate(textContent)(scope);
	      var ariaLabel = !_.isEmpty(_.trim(popoverOptions.key)) ? angular.element('<p>' + popoverOptions.title + '. ' + popoverOptions.content + '</p>').text() : angular.element('<p>' + attrs.title + '. ' + attrs.content + '</p>').text();
	
	      textContent = _.isUndefined(textContent) ? '' : textContent;
	
	      element.attr({
	        //Build aria-label with title and content
	        'aria-label': textContent + ' ' + iconTitle + ' ' + ariaLabel
	      });
	
	      if (!attrs.tabindex) {
	        //Add tabIndex to make it accessible via keyboard
	        element.attr({ tabindex: 0 });
	      }
	
	      scope.$on('$destroy', function () {
	        hidePopover();
	        element.off('mouseenter mouseleave');
	      });
	    }
	  };
	});

/***/ }),
/* 1038 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('mgcrea.ngStrap.popover', ['mgcrea.ngStrap.tooltip']).provider('$popover', function () {
	  var defaults = this.defaults = {
	    animation: 'am-fade',
	    customClass: '',
	    container: false,
	    target: false,
	    placement: 'bottom',
	    template: 'ui-ng-popover/dist/lib/popover.tpl.html',
	    contentTemplate: false,
	    trigger: 'hover focus',
	    keyboard: true,
	    html: false,
	    title: '',
	    content: '',
	    delay: 0,
	    autoClose: false
	  };
	
	  this.$get = function ($tooltip) {
	    function PopoverFactory(element, config) {
	      var options = angular.extend({}, defaults, config);
	      var $popover = $tooltip(element, options);
	
	      if (options.content) {
	        $popover.$scope.content = options.content;
	      }
	
	      return $popover;
	    }
	
	    return PopoverFactory;
	  };
	}).directive('phxPopover', function ($window, $sce, $popover) {
	  var requestAnimationFrame = $window.requestAnimationFrame || $window.setTimeout;
	
	  return {
	    restrict: 'EAC',
	    scope: true,
	    link: function postLink(scope, element, attr) {
	      // Directive options
	      var options = { scope: scope };
	      angular.forEach(['template', 'contentTemplate', 'placement', 'container', 'target', 'delay', 'trigger', 'keyboard', 'html', 'animation', 'customClass', 'autoClose', 'id'], function (key) {
	        if (angular.isDefined(attr[key])) {
	          options[key] = attr[key];
	        }
	      });
	
	      // Support scope as data-attrs
	      angular.forEach(['title', 'content'], function (key) {
	        attr[key] && attr.$observe(key, function (newValue, oldValue) {
	          scope[key] = $sce.trustAsHtml(newValue);
	          angular.isDefined(oldValue) && requestAnimationFrame(function () {
	            popover && popover.$applyPlacement();
	          });
	        });
	      });
	
	      // Support scope as an object
	      attr.phxPopover && scope.$watch(attr.phxPopover, function (newValue, oldValue) {
	        if (angular.isObject(newValue)) {
	          angular.extend(scope, newValue);
	        } else {
	          scope.content = newValue;
	        }
	        angular.isDefined(oldValue) && requestAnimationFrame(function () {
	          popover && popover.$applyPlacement();
	        });
	      }, true);
	
	      // Visibility binding support
	      attr.phxShow && scope.$watch(attr.phxShow, function (newValue, oldValue) {
	        if (!popover || !angular.isDefined(newValue)) {
	          return;
	        }
	        if (angular.isString(newValue)) {
	          newValue = !!newValue.match(/true|,?(popover),?/i);
	        }
	        newValue === true ? popover.show() : popover.hide();
	      });
	
	      // Viewport support
	      attr.viewport && scope.$watch(attr.viewport, function (newValue) {
	        if (!popover || !angular.isDefined(newValue)) {
	          return;
	        }
	        popover.setViewport(newValue);
	      });
	
	      // Initialize popover
	      var popover = $popover(element, options);
	
	      var textContent = element.text() || '';
	      var iconTitle = attr.iconTitle || '';
	
	      //Build aria-label with title and content
	      if (!attr.template) {
	        element.attr('aria-label', attr.iconTitle + ' ' + textContent + ' ' + angular.element('<p>' + attr.title + '. ' + attr.content + '</p>').text());
	      }
	
	      //Add tabIndex to make it accessible via keyboard
	      if (!attr.tabindex) {
	        element.attr({ tabindex: 0 });
	      }
	
	      // Garbage collection
	      scope.$on('$destroy', function () {
	        if (popover) {
	          popover.destroy();
	        }
	        options = null;
	        popover = null;
	      });
	    }
	  };
	});

/***/ }),
/* 1039 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-session-timer').factory('extendSessionCommand', function extendSessionCommandDefinition($q, $http, defineCommand) {
	  return defineCommand('extendSessionCommand', function extendSessionCommand(deferred) {
	    $http.post('core/login/extendsession/').then(function (res) {
	      deferred.resolve(res);
	    }).catch(function (err) {
	      deferred.reject(err);
	    });
	  });
	});

/***/ }),
/* 1040 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-session-timer').constant('sessionTimerDelegateConfiguration', {
	  uniqueComponent: 'session-timer',
	  vocabulary: {
	    setSession: function setSession(scope, element, attrs, event, waitTime) {
	      scope.restartSession(waitTime);
	    },
	    isAtEnd: function isAtEnd(scope) {
	      return scope.sessionTime <= 0;
	    },
	    restartSession: function restartSession(scope, element, attrs, event, waitTime) {
	      var masterSessionTime = waitTime || scope.waitTime;
	      var sessionTime = parseInt(masterSessionTime);
	      var unit = typeof masterSessionTime === 'string' ? masterSessionTime.slice(-1) : 's';
	
	      switch (unit) {
	        case 'h':
	          scope.sessionTime = sessionTime * 60 * 60;
	          break;
	        case 'm':
	          scope.sessionTime = sessionTime * 60;
	          break;
	        case 's':
	        default:
	          scope.sessionTime = sessionTime;
	      }
	
	      clearInterval(scope.sessionWatcher);
	      scope.onTick({
	        count: scope.sessionTime
	      });
	      scope.sessionWatcher = setInterval(function () {
	        scope.sessionTime = scope.sessionTime - 1;
	
	        if (scope.isAtEnd()) {
	          clearInterval(scope.sessionWatcher);
	          scope.$applyAsync();
	          scope.onEnd();
	        } else if (_.isFunction(scope.onTick)) {
	          scope.onTick({
	            count: scope.sessionTime
	          });
	          scope.$applyAsync();
	        }
	      }, 1000);
	    },
	    cancelSession: function cancelSession(scope) {
	      clearInterval(scope.sessionWatcher);
	    }
	  }
	}).directive('sessionTimer', function (DelegateResponder, sessionTimerDelegateConfiguration) {
	  return {
	    restrict: 'E',
	    transclude: true,
	    template: '<span ng-if="isAtEnd()" ng-transclude></span>',
	    scope: {
	      waitTime: '@',
	      onTick: '&?',
	      onEnd: '&'
	    },
	    link: DelegateResponder(sessionTimerDelegateConfiguration, function (scope, element, attrs) {
	      scope.setSession();
	      scope.$on('$destroy', function () {
	        scope.cancelSession();
	      });
	    })
	  };
	}).service('sessionTimerDelegate', function (sessionTimerDelegateConfiguration, DelegateController) {
	  DelegateController(this, sessionTimerDelegateConfiguration);
	});

/***/ }),
/* 1041 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-session-timer').component('userSessionTimer', {
	  template: '<session-timer wait-time="{{$ctrl.waitTime}}" on-tick="$ctrl.onTick(count)" on-end="$ctrl.warningCallBack()"></session-timer>',
	  controller: 'userSessionTimerController',
	  bindings: {
	    waitTime: '@',
	    notificationHandle: '@'
	  }
	}).controller('userSessionTimerController', function userSessionTimerController($scope, $modal, logoutCommand, sessionTimerDelegate, $state, $timeout, phxNotificationDelegate, extendSessionCommand) {
	  var _this = this;
	
	  var warningModal = void 0;
	  var WAIT_TIME_DEFAULT = 180;
	
	  this.$onInit = function () {
	    _this.countDown;
	    _this.modal = {
	      isModalVisible: false
	    };
	    _this.waitTime = _this.waitTime ? _this.waitTime : '30m';
	    _this.notificationHandle = _this.notificationHandle ? _this.notificationHandle : 'session-timeout';
	  };
	
	  this.showWarning = function () {
	    warningModal = $modal({
	      backdrop: 'static',
	      scope: $scope,
	      template: 'ui-ng-session-timer/dist/components/user_session_timeout_modal/user_session_timer_modal.html',
	      show: false,
	      placement: 'center'
	    });
	    warningModal.$promise.then(warningModal.show);
	    _this.modal.isModalVisible = true;
	  };
	
	  this.onTick = function (count) {
	    if (count < WAIT_TIME_DEFAULT && !_this.modal.isModalVisible) {
	      _this.showWarning();
	    }
	    _this.countDown = count;
	  };
	
	  this.warningCallBack = function () {
	    if (_this.modal.isModalVisible) {
	      _this.logout();
	      phxNotificationDelegate.restrictTo(_this.notificationHandle).warn({
	        content: 'You were logged out because of inactivity.',
	        dismissOnTimeout: false,
	        name: 'session-logged-out-warning'
	      });
	    }
	  };
	
	  this.logout = function () {
	    logoutCommand().then(function () {
	      _this.modal.isModalVisible = false;
	      warningModal.hide();
	    });
	  };
	
	  this.keepWorking = function () {
	    extendSessionCommand().then(function () {
	      sessionTimerDelegate.restartSession();
	      _this.modal.isModalVisible = false;
	      warningModal.hide();
	    }).catch(function () {
	      _this.warningCallBack();
	    });
	  };
	});

/***/ }),
/* 1042 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-session-timer').config(function ($httpProvider) {
	  $httpProvider.interceptors.push(function ($q, accountModel) {
	    return {
	      responseError: function responseError(response) {
	        if (response.status === 401 || response.status === 419) {
	          /*
	           * we can't use $state since $state depends on $httpProvider,
	           * so we empty the accountModel which results in a redirect to
	           * the landing page
	           */
	          !response.config.headers.isCampusAPI && accountModel.clear();
	        }
	        return $q.reject(response);
	      }
	    };
	  });
	  // Reset session timer on every http request
	  $httpProvider.interceptors.push(function (sessionTimerDelegate) {
	    var IS_RESOURCE_REQUEST = /\.\w{3,4}$/i;
	    return {
	      request: function request(config) {
	        var hasExtension = IS_RESOURCE_REQUEST.test(config.url);
	        var isAnAPIRequest = !hasExtension;
	        if (isAnAPIRequest) {
	          sessionTimerDelegate.restartSession();
	        }
	        return config;
	      }
	    };
	  });
	});

/***/ }),
/* 1043 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-session-timer', ['ui-ng-delegate', 'ui-ng-modal', 'ui-ng-notification']);

/***/ }),
/* 1044 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(16);
	
	__webpack_require__(1043);
	
	__webpack_require__(113);
	__webpack_require__(67);
	
	__webpack_require__(1040);
	__webpack_require__(1041);
	__webpack_require__(1039);
	__webpack_require__(1042);
	
	// module.exports = 'ui-ng-session-timer';

/***/ }),
/* 1045 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-sibling', []);

/***/ }),
/* 1046 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-sibling').controller('siblingMediatorController', function ($scope) {
	  var mediation = {};
	
	  this.onMessage = function onMessage(channelName, $scope, fn) {
	    mediation[channelName] = mediation[channelName] || [];
	    mediation[channelName].push({
	      $scope: $scope,
	      fn: fn
	    });
	  };
	
	  this.siblingMessage = function siblingMessage(channelName, $scope, value) {
	    _.each(mediation[channelName], function (sibling) {
	      if (sibling.$scope.$id !== $scope.$id) {
	        sibling.fn.call(sibling.$scope, value);
	      }
	    });
	  };
	
	  this.siblingBroadcast = function siblingBroadcast(channelName, $scope, value) {
	    _.each(mediation[channelName], function (sibling) {
	      sibling.fn.call(sibling.$scope, value);
	    });
	  };
	
	  $scope.$on('$destroy', function () {
	    mediation = undefined;
	  });
	}).directive('siblingMediator', function () {
	  return {
	    scope: false,
	    restrict: 'EA',
	    controller: 'siblingMediatorController'
	  };
	});

/***/ }),
/* 1047 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-sibling').directive('sibling', function ($parse) {
	  var IS_MESSAGE = /^siblingMessage(.*)/;
	  var IS_BROADCAST = /^siblingBroadcast(.*)/;
	
	  return {
	    scope: false,
	    restrict: 'EA',
	    require: '^siblingMediator',
	    link: function link(scope, element, attrs, siblingMediatorController) {
	      _.each(attrs.$attr, function (attr, variable) {
	        var channelName;
	        var channelExpressionResponse;
	        var isMessage = IS_MESSAGE.exec(variable);
	        var isBroadcast = IS_BROADCAST.exec(variable);
	
	        if (isMessage !== null) {
	          channelName = _.last(isMessage);
	        }
	
	        if (isBroadcast !== null) {
	          channelName = _.last(isBroadcast);
	        }
	
	        if (isMessage !== null || isBroadcast !== null) {
	          channelExpressionResponse = $parse(attrs[variable]);
	
	          siblingMediatorController.onMessage(channelName, scope, function (changedValue) {
	            scope.$$activeSiblingsMessage = changedValue;
	            channelExpressionResponse(scope);
	          });
	        }
	
	        if (isMessage !== null) {
	          scope['notify' + channelName] = function (v) {
	            siblingMediatorController.siblingMessage(channelName, scope, v);
	          };
	        }
	
	        if (isBroadcast !== null && !_.isFunction(scope.$parent['notify' + channelName])) {
	          scope.$parent['notify' + channelName] = function (v) {
	            siblingMediatorController.siblingBroadcast(channelName, scope, v);
	          };
	        }
	      });
	    }
	  };
	});

/***/ }),
/* 1048 */
/***/ (function(module, exports) {

	'use strict';
	
	(function () {
	  'use strict';
	
	  var module = angular.module('sticky', []);
	
	  // Directive: sticky
	  //
	  module.directive('sticky', function () {
	    return {
	      restrict: 'A', // this directive can only be used as an attribute.
	      link: linkFn
	    };
	
	    function linkFn($scope, $elem, $attrs) {
	      var mediaQuery, stickyClass, bodyClass, elem, $window, $body, doc, initialCSS, initialStyle, isPositionFixed, isSticking, stickyLine, offset, anchor, prevOffset, matchMedia;
	
	      isPositionFixed = false;
	      isSticking = false;
	
	      matchMedia = window.matchMedia;
	
	      // elements
	      $window = angular.element(window);
	      $body = angular.element(document.body);
	      elem = $elem[0];
	      doc = document.documentElement;
	
	      // attributes
	      mediaQuery = $attrs.mediaQuery || false;
	      stickyClass = $attrs.stickyClass || '';
	      bodyClass = $attrs.bodyClass || '';
	
	      initialStyle = $elem.attr('style');
	
	      offset = typeof $attrs.offset === 'string' ? parseInt($attrs.offset.replace(/px;?/, '')) : 0;
	
	      anchor = typeof $attrs.anchor === 'string' ? $attrs.anchor.toLowerCase().trim() : 'top';
	
	      // initial style
	      initialCSS = {
	        top: $elem.css('top'),
	        width: $elem.css('width'),
	        position: $elem.css('position'),
	        marginTop: $elem.css('margin-top'),
	        cssLeft: $elem.css('left')
	      };
	
	      switch (anchor) {
	        case 'top':
	        case 'bottom':
	          break;
	        default:
	          console.log('Unknown anchor ' + anchor + ', defaulting to top');
	          anchor = 'top';
	          break;
	      }
	
	      // Listeners
	      //
	      $window.on('scroll', checkIfShouldStick);
	      $window.on('resize', $scope.$apply.bind($scope, onResize));
	      $scope.$on('$destroy', onDestroy);
	
	      function onResize() {
	        initialCSS.offsetWidth = elem.offsetWidth;
	        checkIfShouldStick();
	
	        if (isSticking) {
	          var parent = window.getComputedStyle(elem.parentElement, null),
	              initialOffsetWidth = elem.parentElement.offsetWidth - parent.getPropertyValue('padding-right').replace('px', '') - parent.getPropertyValue('padding-left').replace('px', '');
	
	          $elem.css('width', initialOffsetWidth + 'px');
	        }
	      }
	
	      function onDestroy() {
	        $window.off('scroll', checkIfShouldStick);
	        $window.off('resize', onResize);
	
	        if (bodyClass) {
	          $body.removeClass(bodyClass);
	        }
	      }
	
	      // Watcher
	      //
	      prevOffset = _getTopOffset(elem);
	
	      $scope.$watch(function () {
	        // triggered on load and on digest cycle
	        if (isSticking) return prevOffset;
	
	        prevOffset = anchor === 'top' ? _getTopOffset(elem) : _getBottomOffset(elem);
	
	        return prevOffset;
	      }, function (newVal, oldVal) {
	        if (newVal !== oldVal || typeof stickyLine === 'undefined') {
	          stickyLine = newVal - offset;
	          checkIfShouldStick();
	        }
	      });
	
	      // Methods
	      //
	      function checkIfShouldStick() {
	        var scrollTop, shouldStick, scrollBottom, scrolledDistance;
	        var justRefreshed = stickyLine === 0;
	
	        if (mediaQuery && !matchMedia('(' + mediaQuery + ')').matches) return;
	
	        if (anchor === 'top') {
	          scrolledDistance = window.pageYOffset || doc.scrollTop;
	          scrollTop = scrolledDistance - (doc.clientTop || 0);
	          shouldStick = scrollTop >= stickyLine && !justRefreshed;
	        } else {
	          scrollBottom = window.pageYOffset + window.innerHeight;
	          shouldStick = scrollBottom <= stickyLine;
	        }
	
	        // Switch the sticky mode if the element crosses the sticky line
	        if (shouldStick && !isSticking) stickElement();else if (!shouldStick && isSticking) unstickElement();
	      }
	
	      function stickElement() {
	        var rect, absoluteLeft;
	
	        rect = $elem[0].getBoundingClientRect();
	        absoluteLeft = rect.left;
	
	        initialCSS.offsetWidth = elem.offsetWidth;
	
	        isSticking = true;
	
	        if (bodyClass) {
	          $body.addClass(bodyClass);
	        }
	
	        if (stickyClass) {
	          $elem.addClass(stickyClass);
	        }
	
	        $elem.css('width', elem.offsetWidth + 'px').css('position', 'fixed').css(anchor, offset + 'px').css('left', absoluteLeft).css('margin-top', 0);
	
	        if (anchor === 'bottom') {
	          $elem.css('margin-bottom', 0);
	        }
	      }
	
	      function unstickElement() {
	        $elem.attr('style', $elem.initialStyle);
	        isSticking = false;
	
	        if (bodyClass) {
	          $body.removeClass(bodyClass);
	        }
	
	        if (stickyClass) {
	          $elem.removeClass(stickyClass);
	        }
	
	        $elem.css('width', '').css('top', initialCSS.top).css('position', initialCSS.position).css('left', initialCSS.cssLeft).css('margin-top', initialCSS.marginTop);
	      }
	
	      function _getTopOffset(element) {
	        var pixels = 0;
	
	        if (element.offsetParent) {
	          do {
	            pixels += element.offsetTop;
	            element = element.offsetParent;
	          } while (element);
	        }
	
	        return pixels;
	      }
	
	      function _getBottomOffset(element) {
	        return element.offsetTop + element.clientHeight;
	      }
	    }
	  });
	
	  // Shiv: matchMedia
	  //
	  window.matchMedia = window.matchMedia || function () {
	    var warning = 'angular-sticky: This browser does not support ' + 'matchMedia, therefore the minWidth option will not work on ' + 'this browser. Polyfill matchMedia to fix this issue.';
	
	    if (window.console && console.warn) {
	      console.warn(warning);
	    }
	
	    return function () {
	      return {
	        matches: true
	      };
	    };
	  }();
	})();

/***/ }),
/* 1049 */
/***/ (function(module, exports) {

	'use strict';
	
	module.exports = function () {
	  'use strict';
	
	  var phxSvgIconDefinition = {
	    bindings: {
	      className: '@',
	      name: '@'
	    },
	    controller: 'PhxSvgIconController as svg',
	    templateUrl: 'ui-ng-svg-icons/src/templates/svg.html'
	  };
	
	  angular.module('ui-ng-svg-icons').component('phxSvgIcon', phxSvgIconDefinition);
	}();

/***/ }),
/* 1050 */
/***/ (function(module, exports) {

	'use strict';
	
	module.exports = function () {
	  'use strict';
	
	  function PhxSvgIconController() {
	    this.getSVGPath = function (iconName) {
	      return './icons.svg#' + iconName;
	    };
	  }
	
	  angular.module('ui-ng-svg-icons').controller('PhxSvgIconController', PhxSvgIconController);
	}();

/***/ }),
/* 1051 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(12);
	
	__webpack_require__(16);
	
	// module.exports = 'ui-ng-svg-icons';
	
	/**
	 * @phxRadial
	 */
	angular.module('ui-ng-svg-icons', ['ui-ng-delegate']);
	
	__webpack_require__(1049);
	__webpack_require__(1050);

/***/ }),
/* 1052 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(115);
	
	angular.module('ui-ng-time-input').controller('phxTimeInputController', function phxTimeInputController($scope) {
	  $scope.flags = {
	    disabled: false
	  };
	
	  $scope.models = {
	    hours: 0,
	    minutes: 0,
	    displayHours: 0,
	    displayMinutes: 0,
	    displayPeriod: 'AM'
	  };
	
	  $scope.updatedModel = function updatedModel() {
	    if (_.isUndefined($scope.ngModel)) {
	      return;
	    }
	
	    if (_.isDate($scope.ngModel)) {
	      $scope.ngModel.setHours($scope.models.hours);
	      $scope.ngModel.setMinutes($scope.models.minutes);
	    } else {
	      $scope.ngModel.hour($scope.models.hours);
	      $scope.ngModel.minutes($scope.models.minutes);
	    }
	
	    $scope.displayHours();
	    $scope.displayMinutes();
	    $scope.displayPeriod();
	  };
	
	  $scope.changedModel = function changedModel() {
	    $scope.updatedModel();
	
	    if (_.isFunction($scope.onChanged)) {
	      $scope.onChanged({
	        time: $scope.ngModel,
	        formattedTime: moment($scope.ngModel).format('hh:mm a')
	      });
	    }
	  };
	
	  $scope.$watch('ngModel', function (v) {
	    $scope.setTime(v);
	  });
	
	  $scope.increaseHours = function () {
	    if ($scope.models.hours < 23) {
	      $scope.models.hours = ++$scope.models.hours;
	    } else {
	      $scope.models.hours = 0;
	    }
	
	    $scope.changedModel();
	  };
	
	  $scope.decreaseHours = function () {
	    $scope.models.hours = $scope.models.hours <= 0 ? 23 : --$scope.models.hours;
	
	    $scope.changedModel();
	  };
	
	  $scope.increaseMinutes = function () {
	    if ($scope.models.minutes >= 59) {
	      $scope.models.minutes = 0;
	    } else {
	      $scope.models.minutes++;
	    }
	
	    $scope.changedModel();
	  };
	
	  $scope.decreaseMinutes = function () {
	    if ($scope.models.minutes <= 0) {
	      $scope.models.minutes = 59;
	    } else {
	      $scope.models.minutes = --$scope.models.minutes;
	    }
	
	    $scope.changedModel();
	  };
	
	  $scope.switchPeriod = function () {
	    $scope.models.hours = $scope.models.hours >= 12 ? $scope.models.hours - 12 : $scope.models.hours + 12;
	
	    $scope.changedModel();
	  };
	
	  $scope.displayHours = function () {
	    var hoursToDisplay = $scope.models.hours;
	
	    if ($scope.models.hours > 12) {
	      hoursToDisplay = $scope.models.hours - 12;
	    }
	
	    if (hoursToDisplay == 0) {
	      hoursToDisplay = 12;
	    }
	
	    $scope.models.displayHours = hoursToDisplay;
	    return hoursToDisplay;
	  };
	
	  $scope.displayMinutes = function () {
	    $scope.models.displayMinutes = $scope.models.minutes;
	    return $scope.models.displayMinutes;
	  };
	
	  $scope.displayPeriod = function () {
	    $scope.models.displayPeriod = $scope.models.hours >= 12 ? 'PM' : 'AM';
	    return $scope.models.displayPeriod;
	  };
	
	  $scope.onChangeHours = function onChangeHours(hours) {
	    var hours = parseInt(hours, 10);
	
	    if (_.isNumber(hours) && !_.isNaN(hours)) {
	      $scope.models.hours = hours % 12;
	
	      if ($scope.models.displayPeriod === 'PM') {
	        $scope.models.hours += 12;
	      }
	    }
	
	    $scope.changedModel();
	  };
	
	  $scope.onChangeMinutes = function onChangeMinutes(minutes) {
	    var minutes = parseInt(minutes, 10);
	
	    if (_.isNumber(minutes) && !_.isNaN(minutes)) {
	      $scope.models.minutes = minutes % 60;
	    }
	
	    $scope.changedModel();
	  };
	
	  $scope.onChangePeriod = function onChangePeriod(period) {
	    if (!period) {
	      period = $scope.displayPeriod();
	    }
	
	    period = period.toUpperCase();
	
	    if (!(period === 'AM' || period === 'PM')) {
	      period = $scope.displayPeriod();
	    }
	
	    if (period === 'AM' && $scope.models.hours >= 12) {
	      $scope.models.hours -= 12;
	    } else if (period === 'PM' && $scope.models.hours < 12) {
	      $scope.models.hours += 12;
	    }
	
	    $scope.changedModel();
	  };
	}).constant('phxTimeInputDelegateConstant', {
	  uniqueComponent: 'ui-ng-time-input',
	  vocabulary: {
	    setTime: function setTime_phxTimeInput(scope, element, attrs, event, time) {
	      var time = moment(time);
	
	      scope.models.hours = time.hour();
	      scope.models.minutes = time.minutes();
	      scope.changedModel();
	    }
	  }
	}).directive('phxTimeInput', function phxTimeInput(DelegateResponder, phxTimeInputDelegateConstant) {
	  return {
	    restrict: 'E',
	    replace: false,
	    require: '?ngModel',
	    templateUrl: 'ui-ng-time-input/src/templates/standard.html',
	    controller: 'phxTimeInputController',
	    scope: {
	      ngModel: '=?',
	      disabled: '@',
	      onChanged: '&?'
	    },
	    compile: function phxTimeInputCompile(element, attrs) {
	      element.addClass('phx-time-input');
	
	      return DelegateResponder(phxTimeInputDelegateConstant, function (scope, element, attrs) {
	        attrs.$observe('disabled', function handleDisabled(isDisabled) {
	          scope.flags.isDisabled = isDisabled === 'disabled' || isDisabled === 'true' || isDisabled === '';
	
	          if (scope.flags.isDisabled) {
	            element.attr('tabindex', '-1');
	          } else {
	            element.attr('tabindex', '0');
	          }
	        });
	      });
	    }
	  };
	}).service('phxTimeInputDelegate', function phxTimeInputDelegate(DelegateController, phxTimeInputDelegateConstant) {
	  DelegateController(this, phxTimeInputDelegateConstant);
	});

/***/ }),
/* 1053 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(115);
	
	angular.module('ui-ng-time-input').directive('phxTimeInputFormatter', function phxTimeInputFormatter($filter) {
	  var ERASE_SECONDS_AND_TIME_UNITS = /:\d{2}[.,]\d{3}$/;
	
	  return {
	    require: '?ngModel',
	    link: function link(scope, elem, attr, ngModel) {
	      if (!ngModel) {
	        return;
	      }
	
	      if (attr.type !== 'time') {
	        return;
	      }
	
	      ngModel.$formatters.unshift(function (value) {
	        return value.replace(ERASE_SECONDS_AND_TIME_UNITS, '');
	      });
	    }
	  };
	});

/***/ }),
/* 1054 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('mgcrea.ngStrap.tooltip', ['mgcrea.ngStrap.helpers.dimensions']).provider('$tooltip', function () {
	  var defaults = this.defaults = {
	    animation: 'am-fade',
	    customClass: '',
	    prefixClass: 'tooltip',
	    prefixEvent: 'tooltip',
	    container: false,
	    target: false,
	    placement: 'top',
	    template: 'ui-ng-tooltip/dist/lib/tooltip.tpl.html',
	    contentTemplate: false,
	    trigger: 'hover focus',
	    keyboard: false,
	    html: true,
	    show: false,
	    title: '',
	    type: '',
	    delay: 0,
	    autoClose: false,
	    phxEnabled: true,
	    viewport: {
	      selector: 'body',
	      padding: 0
	    }
	  };
	
	  this.$get = function ($window, $rootScope, $compile, $q, $templateCache, $http, $animate, $sce, dimensions, $$rAF, $timeout) {
	    var trim = String.prototype.trim;
	    var isTouch = 'createTouch' in $window.document;
	    var htmlReplaceRegExp = /ng-bind="/gi;
	    var $body = angular.element($window.document);
	
	    function TooltipFactory(element, config) {
	      var $tooltip = {};
	
	      // Common vars
	      var nodeName = element[0].nodeName.toLowerCase();
	      var options = $tooltip.$options = angular.extend({}, defaults, config);
	      $tooltip.$promise = fetchTemplate(options.template);
	      var scope = $tooltip.$scope = options.scope && options.scope.$new() || $rootScope.$new();
	      if (options.delay && angular.isString(options.delay)) {
	        var split = options.delay.split(',').map(parseFloat);
	        options.delay = split.length > 1 ? { show: split[0], hide: split[1] } : split[0];
	      }
	
	      // store $id to identify the triggering element in events
	      // give priority to options.id, otherwise, try to use
	      // element id if defined
	      $tooltip.$id = options.id || element.attr('id') || '';
	
	      // Support scope as string options
	      if (options.title) {
	        scope.title = $sce.trustAsHtml(options.title);
	      }
	
	      // Provide scope helpers
	      scope.$setEnabled = function (isEnabled) {
	        scope.$$postDigest(function () {
	          $tooltip.setEnabled(isEnabled);
	        });
	      };
	      scope.$hide = function () {
	        scope.$$postDigest(function () {
	          $tooltip.hide();
	        });
	      };
	      scope.$show = function () {
	        scope.$$postDigest(function () {
	          $tooltip.show();
	        });
	      };
	      scope.$toggle = function () {
	        scope.$$postDigest(function () {
	          $tooltip.toggle();
	        });
	      };
	      // Publish isShown as a protected var on scope
	      $tooltip.$isShown = scope.$isShown = false;
	
	      // Private vars
	      var timeout, hoverState;
	
	      // Support contentTemplate option
	      if (options.contentTemplate) {
	        $tooltip.$promise = $tooltip.$promise.then(function (template) {
	          var templateEl = angular.element(template);
	          return fetchTemplate(options.contentTemplate).then(function (contentTemplate) {
	            var contentEl = findElement('[ng-bind="content"]', templateEl[0]);
	            if (!contentEl.length) contentEl = findElement('[ng-bind="title"]', templateEl[0]);
	            contentEl.removeAttr('ng-bind').html(contentTemplate);
	            return templateEl[0].outerHTML;
	          });
	        });
	      }
	
	      // Fetch, compile then initialize tooltip
	      var tipLinker, tipElement, tipTemplate, tipContainer, tipScope;
	      $tooltip.$promise.then(function (template) {
	        if (angular.isObject(template)) template = template.data;
	        if (options.html) template = template.replace(htmlReplaceRegExp, 'ng-bind-html="');
	        template = trim.apply(template);
	        tipTemplate = template;
	        tipLinker = $compile(template);
	        $tooltip.init();
	      });
	
	      $tooltip.init = function () {
	        // Options: delay
	        if (options.delay && angular.isNumber(options.delay)) {
	          options.delay = {
	            show: options.delay,
	            hide: options.delay
	          };
	        }
	
	        // Replace trigger on touch devices ?
	        // if(isTouch && options.trigger === defaults.trigger) {
	        //   options.trigger.replace(/hover/g, 'click');
	        // }
	
	        // Options : container
	        if (options.container === 'self') {
	          tipContainer = element;
	        } else if (angular.isElement(options.container)) {
	          tipContainer = options.container;
	        } else if (options.container) {
	          tipContainer = findElement(options.container);
	        }
	
	        // Options: trigger
	        bindTriggerEvents();
	
	        // Options: target
	        if (options.target) {
	          options.target = angular.isElement(options.target) ? options.target : findElement(options.target);
	        }
	
	        // Options: show
	        if (options.show) {
	          scope.$$postDigest(function () {
	            options.trigger === 'focus' ? element[0].focus() : $tooltip.show();
	          });
	        }
	      };
	
	      $tooltip.destroy = function () {
	        // Unbind events
	        unbindTriggerEvents();
	
	        // Remove element
	        destroyTipElement();
	
	        // Destroy scope
	        scope.$destroy();
	      };
	
	      $tooltip.enter = function () {
	        clearTimeout(timeout);
	        hoverState = 'in';
	        if (!options.delay || !options.delay.show) {
	          return $tooltip.show();
	        }
	
	        timeout = setTimeout(function () {
	          if (hoverState === 'in') $tooltip.show();
	        }, options.delay.show);
	      };
	
	      $tooltip.show = function () {
	        if (!options.phxEnabled || $tooltip.$isShown) return;
	
	        scope.$emit(options.prefixEvent + '.show.before', $tooltip);
	        var parent, after;
	        if (options.container) {
	          parent = tipContainer;
	          if (tipContainer[0].lastChild) {
	            after = angular.element(tipContainer[0].lastChild);
	          } else {
	            after = null;
	          }
	        } else {
	          parent = null;
	          after = element;
	        }
	
	        // Hide any existing tipElement
	        if (tipElement) destroyTipElement();
	        // Fetch a cloned element linked from template
	        tipScope = $tooltip.$scope.$new();
	        tipElement = $tooltip.$element = tipLinker(tipScope, function (clonedElement, scope) {});
	
	        // Set the initial positioning.  Make the tooltip invisible
	        // so IE doesn't try to focus on it off screen.
	        tipElement.css({ top: '-9999px', left: '-9999px', display: 'block', visibility: 'hidden' });
	
	        // Options: animation
	        if (options.animation) tipElement.addClass(options.animation);
	        // Options: type
	        if (options.type) tipElement.addClass(options.prefixClass + '-' + options.type);
	        // Options: custom classes
	        if (options.customClass) tipElement.addClass(options.customClass);
	
	        // Append the element, without any animations.  If we append
	        // using $animate.enter, some of the animations cause the placement
	        // to be off due to the transforms.
	        after ? after.after(tipElement) : parent.prepend(tipElement);
	
	        $tooltip.$isShown = scope.$isShown = true;
	        safeDigest(scope);
	
	        // Now, apply placement
	        $tooltip.$applyPlacement();
	
	        // Once placed, animate it.
	        // Support v1.3+ $animate
	        // https://github.com/angular/angular.js/commit/bf0f5502b1bbfddc5cdd2f138efd9188b8c652a9
	        var promise = $animate.enter(tipElement, parent, after, enterAnimateCallback);
	        if (promise && promise.then) promise.then(enterAnimateCallback);
	        safeDigest(scope);
	
	        $$rAF(function () {
	          // Once the tooltip is placed and the animation starts, make the tooltip visible
	          if (tipElement) tipElement.css({ visibility: 'visible' });
	        });
	
	        // Bind events
	        if (options.keyboard) {
	          if (options.trigger !== 'focus') {
	            $tooltip.focus();
	          }
	          bindKeyboardEvents();
	        }
	
	        if (options.autoClose) {
	          bindAutoCloseEvents();
	        }
	      };
	
	      function enterAnimateCallback() {
	        scope.$emit(options.prefixEvent + '.show', $tooltip);
	      }
	
	      $tooltip.leave = function () {
	        clearTimeout(timeout);
	        hoverState = 'out';
	        if (!options.delay || !options.delay.hide) {
	          return $tooltip.hide();
	        }
	        timeout = setTimeout(function () {
	          if (hoverState === 'out') {
	            $tooltip.hide();
	          }
	        }, options.delay.hide);
	      };
	
	      var _blur;
	      var _tipToHide;
	      $tooltip.hide = function (blur) {
	        if (!$tooltip.$isShown) return;
	        scope.$emit(options.prefixEvent + '.hide.before', $tooltip);
	
	        // store blur value for leaveAnimateCallback to use
	        _blur = blur;
	
	        // store current tipElement reference to use
	        // in leaveAnimateCallback
	        _tipToHide = tipElement;
	
	        // Support v1.3+ $animate
	        // https://github.com/angular/angular.js/commit/bf0f5502b1bbfddc5cdd2f138efd9188b8c652a9
	        var promise = $animate.leave(tipElement, leaveAnimateCallback);
	        if (promise && promise.then) promise.then(leaveAnimateCallback);
	
	        $tooltip.$isShown = scope.$isShown = false;
	        safeDigest(scope);
	
	        // Unbind events
	        if (options.keyboard && tipElement !== null) {
	          unbindKeyboardEvents();
	        }
	
	        if (options.autoClose && tipElement !== null) {
	          unbindAutoCloseEvents();
	        }
	      };
	
	      function leaveAnimateCallback() {
	        scope.$emit(options.prefixEvent + '.hide', $tooltip);
	
	        // check if current tipElement still references
	        // the same element when hide was called
	        if (tipElement === _tipToHide) {
	          // Allow to blur the input when hidden, like when pressing enter key
	          if (_blur && options.trigger === 'focus') {
	            return element[0].blur();
	          }
	
	          // clean up child scopes
	          destroyTipElement();
	        }
	      }
	
	      $tooltip.toggle = function () {
	        $tooltip.$isShown ? $tooltip.leave() : $tooltip.enter();
	      };
	
	      $tooltip.focus = function () {
	        tipElement[0].focus();
	      };
	
	      $tooltip.setEnabled = function (isEnabled) {
	        options.phxEnabled = isEnabled;
	      };
	
	      $tooltip.setViewport = function (viewport) {
	        options.viewport = viewport;
	      };
	
	      // Protected methods
	
	      $tooltip.$applyPlacement = function () {
	        if (!tipElement) return;
	
	        // Determine if we're doing an auto or normal placement
	        var placement = options.placement,
	            autoToken = /\s?auto?\s?/i,
	            autoPlace = autoToken.test(placement);
	
	        if (autoPlace) {
	          placement = placement.replace(autoToken, '') || defaults.placement;
	        }
	
	        // Need to add the position class before we get
	        // the offsets
	        tipElement.addClass(options.placement);
	
	        // Get the position of the target element
	        // and the height and width of the tooltip so we can center it.
	        var elementPosition = getPosition(),
	            tipWidth = tipElement.prop('offsetWidth'),
	            tipHeight = tipElement.prop('offsetHeight');
	
	        // If we're auto placing, we need to check the positioning
	        if (autoPlace) {
	          var originalPlacement = placement;
	          var container = options.container ? findElement(options.container) : element.parent();
	          var containerPosition = getPosition(container);
	
	          // Determine if the vertical placement
	          if (originalPlacement.indexOf('bottom') >= 0 && elementPosition.bottom + tipHeight > containerPosition.bottom) {
	            placement = originalPlacement.replace('bottom', 'top');
	          } else if (originalPlacement.indexOf('top') >= 0 && elementPosition.top - tipHeight < containerPosition.top) {
	            placement = originalPlacement.replace('top', 'bottom');
	          }
	
	          // Determine the horizontal placement
	          // The exotic placements of left and right are opposite of the standard placements.  Their arrows are put on the left/right
	          // and flow in the opposite direction of their placement.
	          if ((originalPlacement === 'right' || originalPlacement === 'bottom-left' || originalPlacement === 'top-left') && elementPosition.right + tipWidth > containerPosition.width) {
	            placement = originalPlacement === 'right' ? 'left' : placement.replace('left', 'right');
	          } else if ((originalPlacement === 'left' || originalPlacement === 'bottom-right' || originalPlacement === 'top-right') && elementPosition.left - tipWidth < containerPosition.left) {
	            placement = originalPlacement === 'left' ? 'right' : placement.replace('right', 'left');
	          }
	
	          tipElement.removeClass(originalPlacement).addClass(placement);
	        }
	
	        // Get the tooltip's top and left coordinates to center it with this directive.
	        var tipPosition = getCalculatedOffset(placement, elementPosition, tipWidth, tipHeight);
	        applyPlacement(tipPosition, placement);
	      };
	
	      $tooltip.$onKeyUp = function (evt) {
	        if (evt.which === 27 && $tooltip.$isShown) {
	          $tooltip.hide();
	          evt.stopPropagation();
	        }
	      };
	
	      $tooltip.$onFocusKeyUp = function (evt) {
	        if (evt.which === 27) {
	          element[0].blur();
	          evt.stopPropagation();
	        }
	      };
	
	      $tooltip.$onFocusElementMouseDown = function (evt) {
	        evt.preventDefault();
	        evt.stopPropagation();
	        // Some browsers do not auto-focus buttons (eg. Safari)
	        $tooltip.$isShown ? element[0].blur() : element[0].focus();
	      };
	
	      // bind/unbind events
	      function bindTriggerEvents() {
	        var triggers = options.trigger.split(' ');
	        angular.forEach(triggers, function (trigger) {
	          if (trigger === 'click') {
	            element.on('click', $tooltip.toggle);
	          } else if (trigger !== 'manual') {
	            element.on(trigger === 'hover' ? 'mouseenter' : 'focus', $tooltip.enter);
	            element.on(trigger === 'hover' ? 'mouseleave' : 'blur', $tooltip.leave);
	            nodeName === 'button' && trigger !== 'hover' && element.on(isTouch ? 'touchstart' : 'mousedown', $tooltip.$onFocusElementMouseDown);
	          }
	        });
	      }
	
	      function unbindTriggerEvents() {
	        var triggers = options.trigger.split(' ');
	        for (var i = triggers.length; i--;) {
	          var trigger = triggers[i];
	          if (trigger === 'click') {
	            element.off('click', $tooltip.toggle);
	          } else if (trigger !== 'manual') {
	            element.off(trigger === 'hover' ? 'mouseenter' : 'focus', $tooltip.enter);
	            element.off(trigger === 'hover' ? 'mouseleave' : 'blur', $tooltip.leave);
	            nodeName === 'button' && trigger !== 'hover' && element.off(isTouch ? 'touchstart' : 'mousedown', $tooltip.$onFocusElementMouseDown);
	          }
	        }
	      }
	
	      function bindKeyboardEvents() {
	        if (options.trigger !== 'focus') {
	          tipElement.on('keyup', $tooltip.$onKeyUp);
	        } else {
	          element.on('keyup', $tooltip.$onFocusKeyUp);
	        }
	      }
	
	      function unbindKeyboardEvents() {
	        if (options.trigger !== 'focus') {
	          tipElement.off('keyup', $tooltip.$onKeyUp);
	        } else {
	          element.off('keyup', $tooltip.$onFocusKeyUp);
	        }
	      }
	
	      var _autoCloseEventsBinded = false;
	      function bindAutoCloseEvents() {
	        // use timeout to hookup the events to prevent
	        // event bubbling from being processed imediately.
	        $timeout(function () {
	          // Stop propagation when clicking inside tooltip
	          tipElement.on('click', stopEventPropagation);
	
	          // Hide when clicking outside tooltip
	          $body.on('click', $tooltip.hide);
	
	          _autoCloseEventsBinded = true;
	        }, 0, false);
	      }
	
	      function unbindAutoCloseEvents() {
	        if (_autoCloseEventsBinded) {
	          tipElement.off('click', stopEventPropagation);
	          $body.off('click', $tooltip.hide);
	          _autoCloseEventsBinded = false;
	        }
	      }
	
	      function stopEventPropagation(event) {
	        event.stopPropagation();
	      }
	
	      // Private methods
	
	      function getPosition($element) {
	        $element = $element || options.target || element;
	
	        var el = $element[0],
	            isBody = el.tagName === 'BODY';
	
	        var elRect = el.getBoundingClientRect();
	        var rect = {};
	
	        // IE8 has issues with angular.extend and using elRect directly.
	        // By coping the values of elRect into a new object, we can continue to use extend
	        for (var p in elRect) {
	          // DO NOT use hasOwnProperty when inspecting the return of getBoundingClientRect.
	          rect[p] = elRect[p];
	        }
	
	        if (rect.width === null) {
	          // width and height are missing in IE8, so compute them manually; see https://github.com/twbs/bootstrap/issues/14093
	          rect = angular.extend({}, rect, { width: elRect.right - elRect.left, height: elRect.bottom - elRect.top });
	        }
	        var elOffset = isBody ? { top: 0, left: 0 } : dimensions.offset(el),
	            scroll = {
	          scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.prop('scrollTop') || 0
	        },
	            outerDims = isBody ? { width: document.documentElement.clientWidth, height: $window.innerHeight } : null;
	
	        return angular.extend({}, rect, scroll, outerDims, elOffset);
	      }
	
	      function getCalculatedOffset(placement, position, actualWidth, actualHeight) {
	        var offset;
	        var split = placement.split('-');
	
	        switch (split[0]) {
	          case 'right':
	            offset = {
	              top: position.top + position.height / 2 - actualHeight / 2,
	              left: position.left + position.width
	            };
	            break;
	          case 'bottom':
	            offset = {
	              top: position.top + position.height,
	              left: position.left + position.width / 2 - actualWidth / 2
	            };
	            break;
	          case 'left':
	            offset = {
	              top: position.top + position.height / 2 - actualHeight / 2,
	              left: position.left - actualWidth
	            };
	            break;
	          default:
	            offset = {
	              top: position.top - actualHeight,
	              left: position.left + position.width / 2 - actualWidth / 2
	            };
	            break;
	        }
	
	        if (!split[1]) {
	          return offset;
	        }
	
	        // Add support for corners @todo css
	        if (split[0] === 'top' || split[0] === 'bottom') {
	          switch (split[1]) {
	            case 'left':
	              offset.left = position.left;
	              break;
	            case 'right':
	              offset.left = position.left + position.width - actualWidth;
	          }
	        } else if (split[0] === 'left' || split[0] === 'right') {
	          switch (split[1]) {
	            case 'top':
	              offset.top = position.top - actualHeight;
	              break;
	            case 'bottom':
	              offset.top = position.top + position.height;
	          }
	        }
	
	        return offset;
	      }
	
	      function applyPlacement(offset, placement) {
	        var tip = tipElement[0],
	            width = tip.offsetWidth,
	            height = tip.offsetHeight;
	
	        // manually read margins because getBoundingClientRect includes difference
	        var marginTop = parseInt(dimensions.css(tip, 'margin-top'), 10),
	            marginLeft = parseInt(dimensions.css(tip, 'margin-left'), 10);
	
	        // we must check for NaN for ie 8/9
	        if (isNaN(marginTop)) marginTop = 0;
	        if (isNaN(marginLeft)) marginLeft = 0;
	
	        offset.top = offset.top + marginTop;
	        offset.left = offset.left + marginLeft;
	
	        // dimensions setOffset doesn't round pixel values
	        // so we use setOffset directly with our own function
	        dimensions.setOffset(tip, angular.extend({
	          using: function using(props) {
	            tipElement.css({
	              top: Math.round(props.top) + 'px',
	              left: Math.round(props.left) + 'px'
	            });
	          }
	        }, offset), 0);
	
	        // check to see if placing tip in new offset caused the tip to resize itself
	        var actualWidth = tip.offsetWidth,
	            actualHeight = tip.offsetHeight;
	
	        if (placement === 'top' && actualHeight !== height) {
	          offset.top = offset.top + height - actualHeight;
	        }
	
	        // If it's an exotic placement, exit now instead of
	        // applying a delta and changing the arrow
	        if (/top-left|top-right|bottom-left|bottom-right/.test(placement)) return;
	
	        var delta = getViewportAdjustedDelta(placement, offset, actualWidth, actualHeight);
	
	        if (delta.left) {
	          offset.left += delta.left;
	        } else {
	          offset.top += delta.top;
	        }
	
	        dimensions.setOffset(tip, offset);
	
	        if (/top|right|bottom|left/.test(placement)) {
	          var isVertical = /top|bottom/.test(placement),
	              arrowDelta = isVertical ? delta.left * 2 - width + actualWidth : delta.top * 2 - height + actualHeight,
	              arrowOffsetPosition = isVertical ? 'offsetWidth' : 'offsetHeight';
	
	          replaceArrow(arrowDelta, tip[arrowOffsetPosition], isVertical);
	        }
	      }
	
	      function getViewportAdjustedDelta(placement, position, actualWidth, actualHeight) {
	        var delta = { top: 0, left: 0 },
	            $viewport = options.viewport && findElement(options.viewport.selector || options.viewport);
	
	        if (!$viewport) {
	          return delta;
	        }
	
	        var viewportPadding = options.viewport && options.viewport.padding || 0,
	            viewportDimensions = getPosition($viewport);
	
	        if (/right|left/.test(placement)) {
	          var topEdgeOffset = position.top - viewportPadding - viewportDimensions.scroll,
	              bottomEdgeOffset = position.top + viewportPadding - viewportDimensions.scroll + actualHeight;
	          if (topEdgeOffset < viewportDimensions.top) {
	            // top overflow
	            delta.top = viewportDimensions.top - topEdgeOffset;
	          } else if (bottomEdgeOffset > viewportDimensions.top + viewportDimensions.height) {
	            // bottom overflow
	            delta.top = viewportDimensions.top + viewportDimensions.height - bottomEdgeOffset;
	          }
	        } else {
	          var leftEdgeOffset = position.left - viewportPadding,
	              rightEdgeOffset = position.left + viewportPadding + actualWidth;
	          if (leftEdgeOffset < viewportDimensions.left) {
	            // left overflow
	            delta.left = viewportDimensions.left - leftEdgeOffset;
	          } else if (rightEdgeOffset > viewportDimensions.width) {
	            // right overflow
	            delta.left = viewportDimensions.left + viewportDimensions.width - rightEdgeOffset;
	          }
	        }
	
	        return delta;
	      }
	
	      function replaceArrow(delta, dimension, isHorizontal) {
	        var $arrow = findElement('.tooltip-arrow, .arrow', tipElement[0]);
	
	        $arrow.css(isHorizontal ? 'left' : 'top', 50 * (1 - delta / dimension) + '%').css(isHorizontal ? 'top' : 'left', '');
	      }
	
	      function destroyTipElement() {
	        // Cancel pending callbacks
	        clearTimeout(timeout);
	
	        if ($tooltip.$isShown && tipElement !== null) {
	          if (options.autoClose) {
	            unbindAutoCloseEvents();
	          }
	
	          if (options.keyboard) {
	            unbindKeyboardEvents();
	          }
	        }
	
	        if (tipScope) {
	          tipScope.$destroy();
	          tipScope = null;
	        }
	
	        if (tipElement) {
	          tipElement.remove();
	          tipElement = $tooltip.$element = null;
	        }
	      }
	
	      return $tooltip;
	    }
	
	    // Helper functions
	
	    function safeDigest(scope) {
	      scope.$$phase || scope.$root && scope.$root.$$phase || scope.$digest();
	    }
	
	    function findElement(query, element) {
	      return angular.element((element || document).querySelectorAll(query));
	    }
	
	    var fetchPromises = {};
	    function fetchTemplate(template) {
	      if (fetchPromises[template]) return fetchPromises[template];
	      return fetchPromises[template] = $http.get(template, { cache: $templateCache }).then(function (res) {
	        return res.data;
	      });
	    }
	
	    return TooltipFactory;
	  };
	}).directive('phxTooltip', function ($window, $location, $sce, $tooltip, $$rAF) {
	  return {
	    restrict: 'EAC',
	    scope: true,
	    link: function postLink(scope, element, attr, transclusion) {
	      // Directive options
	      var options = { scope: scope };
	      angular.forEach(['template', 'contentTemplate', 'placement', 'container', 'delay', 'trigger', 'keyboard', 'html', 'animation', 'backdropAnimation', 'type', 'customClass', 'id'], function (key) {
	        if (angular.isDefined(attr[key])) options[key] = attr[key];
	      });
	
	      // should not parse target attribute, only data-target
	      if (element.attr('data-target')) {
	        options.target = element.attr('data-target');
	      }
	
	      // overwrite inherited title value when no value specified
	      // fix for angular 1.3.1 531a8de72c439d8ddd064874bf364c00cedabb11
	      if (!scope.hasOwnProperty('title')) {
	        scope.title = '';
	      }
	
	      // Observe scope attributes for change
	      attr.$observe('title', function (newValue) {
	        if (angular.isDefined(newValue) || !scope.hasOwnProperty('title')) {
	          var oldValue = scope.title;
	          scope.title = $sce.trustAsHtml(newValue);
	          angular.isDefined(oldValue) && $$rAF(function () {
	            tooltip && tooltip.$applyPlacement();
	          });
	        }
	      });
	
	      // Support scope as an object
	      attr.phxTooltip && scope.$watch(attr.phxTooltip, function (newValue, oldValue) {
	        if (angular.isObject(newValue)) {
	          angular.extend(scope, newValue);
	        } else {
	          scope.title = newValue;
	        }
	        angular.isDefined(oldValue) && $$rAF(function () {
	          tooltip && tooltip.$applyPlacement();
	        });
	      }, true);
	
	      // Visibility binding support
	      attr.phxShow && scope.$watch(attr.phxShow, function (newValue, oldValue) {
	        if (!tooltip || !angular.isDefined(newValue)) return;
	        if (angular.isString(newValue)) newValue = !!newValue.match(/true|,?(tooltip),?/i);
	        newValue === true ? tooltip.show() : tooltip.hide();
	      });
	
	      // Enabled binding support
	      attr.phxEnabled && scope.$watch(attr.phxEnabled, function (newValue, oldValue) {
	        // console.warn('scope.$watch(%s)', attr.phxEnabled, newValue, oldValue);
	        if (!tooltip || !angular.isDefined(newValue)) return;
	        if (angular.isString(newValue)) newValue = !!newValue.match(/true|1|,?(tooltip),?/i);
	        newValue === false ? tooltip.setEnabled(false) : tooltip.setEnabled(true);
	      });
	
	      // Viewport support
	      attr.viewport && scope.$watch(attr.viewport, function (newValue) {
	        if (!tooltip || !angular.isDefined(newValue)) return;
	        tooltip.setViewport(newValue);
	      });
	
	      // Initialize popover
	      var tooltip = $tooltip(element, options);
	
	      // Garbage collection
	      scope.$on('$destroy', function () {
	        if (tooltip) tooltip.destroy();
	        options = null;
	        tooltip = null;
	      });
	    }
	  };
	});

/***/ }),
/* 1055 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('ui-ng-university-branding').constant('universityBrandingDelegateConfiguration', {
	  uniqueComponent: 'university-branding',
	  vocabulary: {
	    read: function read(event) {
	      this.read();
	    },
	    update: function update(scope, element, attrs, event, config, defaultConfig) {
	      this.updateColors(config, defaultConfig);
	    }
	  }
	}).service('universityBrandingDelegate', function universityBrandingDelegate(DelegateController, universityBrandingDelegateConfiguration) {
	  DelegateController(this, universityBrandingDelegateConfiguration);
	});

/***/ }),
/* 1056 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	var ColorUtility = __webpack_require__(17).ColorUtility;
	
	angular.module('ui-ng-university-branding').directive('universityBranding', function universityBrandingDefinition(DelegateResponder, universityBrandingDelegateConfiguration) {
	  return {
	    scope: {
	      primaryColor: '=?',
	      secondaryColor: '=?',
	      textColor: '=?',
	      additionalStyles: '=?'
	    },
	    restrict: 'E',
	    link: DelegateResponder(universityBrandingDelegateConfiguration, function (scope, element, attrs) {}),
	    controller: function universityBrandingController($scope, $element, universityBrandingSettings) {
	      var transformTextToColor = function transformTextToColor(hexColor) {
	        if (hexColor === defaultBranding.cssDefault || _.isEmpty(hexColor)) {
	          return defaultBranding.defaultColor;
	        }
	        return hexColor;
	      };
	
	      // not used anymore
	      //
	      // const handleDefaultTextColor = (hexColor) => {
	      //   if (hexColor === defaultBranding.cssDefault || _.isEmpty(hexColor)) {
	      //     return defaultBranding.defaultWhite;
	      //   }
	      //   return hexColor;
	      // };
	
	      var hexToShadedRGB = function hexToShadedRGB(hexColor) {
	        return ColorUtility.getAllShadesOfHex(transformTextToColor(hexColor));
	      };
	
	      var hexToTintedRGB = function hexToTintedRGB(hexColor) {
	        return ColorUtility.getAllTintsOfHex(transformTextToColor(hexColor));
	      };
	
	      /**
	       * we add colors to a global and intend to carry these in to other functions in mobile
	       */
	      var updateBrandObject = function updateBrandObject(brandConfig) {
	        var primaryColor = brandConfig.primaryColor,
	            secondaryColor = brandConfig.secondaryColor,
	            textColor = brandConfig.textColor,
	            tint = brandConfig.tint,
	            shade = brandConfig.shade;
	        // this is a terrible way to share data (dumping values on a global)
	        //
	
	        ColorUtility.universityStyles = { primaryColor: primaryColor, secondaryColor: secondaryColor, textColor: textColor, tint: tint, shade: shade };
	      };
	
	      var defaultBranding = universityBrandingSettings.getBrandingDefaultColor();
	
	      var DEFAULTS = {
	        primaryColor: defaultBranding.cssDefault,
	        secondaryColor: defaultBranding.cssDefault,
	        textColor: defaultBranding.cssDefault,
	        additionalStyles: '',
	        tint: hexToTintedRGB(defaultBranding.cssDefault),
	        shade: hexToShadedRGB(defaultBranding.cssDefault)
	      };
	
	      var brandConfig = universityBrandingSettings.updateBrandConfiguration(DEFAULTS, {});
	
	      var parseStyles = function parseStyles(template) {
	        var hexColor = $scope.primaryColor === defaultBranding.cssDefault ? defaultBranding.defaultColor : $scope.primaryColor;
	        var compileTpl = _.template(template);
	
	        return compileTpl({
	          primary: $scope.primaryColor,
	          secondary: $scope.secondaryColor,
	          text: $scope.textColor,
	          tint: hexToTintedRGB(hexColor),
	          shade: hexToShadedRGB(hexColor)
	        });
	      };
	
	      var styleTemplate = universityBrandingSettings.getBrandingTemplate();
	
	      var updateStyles = function updateStyles() {
	        _.assign($scope, brandConfig);
	
	        $scope.compiledAdditionalStyles = parseStyles($scope.additionalStyles);
	        $scope.universityStyles = parseStyles(styleTemplate) + $scope.compiledAdditionalStyles;
	        $element.html('<style type=\'text/css\'> ' + $scope.universityStyles + '</style>');
	        updateBrandObject(brandConfig);
	      };
	
	      updateStyles();
	
	      $scope.updateColors = function (config) {
	        brandConfig = universityBrandingSettings.updateBrandConfiguration(DEFAULTS, config);
	        updateBrandObject(brandConfig);
	        updateStyles();
	      };
	    }
	  };
	});

/***/ }),
/* 1057 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(12);
	
	__webpack_require__(16);
	
	// module.exports = 'ui-ng-validation';
	
	/**
	 * @ui-ng-validation
	 */
	angular.module('ui-ng-validation', ['ui-ng-delegate']).factory('phxValidationFacade', function (phxValidationConditionDelegate) {
	  var phxValidationFacade = function phxValidationFacade() {
	    this.conditions = {};
	
	    /** @deprecated not needed */
	    this.initialize = function () {
	      this.conditions = {};
	      return this;
	    };
	
	    this.enableValidation = function () {
	      phxValidationConditionDelegate.enableValidation();
	      return this;
	    };
	
	    this.disableValidation = function () {
	      phxValidationConditionDelegate.disableValidation();
	      return this;
	    };
	
	    this.areAllValid = function areAllValid() {
	      return _.reduce(this.conditions, function (areAllValid, condition) {
	        return areAllValid && condition.isValid();
	      }, true);
	    };
	  };
	
	  return new phxValidationFacade();
	}).constant('phxValidationConditionDelegateConstant', {
	  uniqueComponent: 'phx-validation-condition',
	  vocabulary: {
	    enableValidation: function enableValidation(scope) {
	      scope.flags.evaluationRequested = true;
	    },
	    disableValidation: function disableValidation(scope) {
	      scope.flags.evaluationRequested = false;
	    }
	  }
	}).directive('phxValidationCondition', function (DelegateResponder, phxValidationConditionDelegateConstant, phxValidationFacade) {
	  var uniqueId = 0;
	
	  return {
	    restrict: 'E',
	    replace: false,
	    transclude: true,
	    templateUrl: 'ui-ng-validation/src/templates/condition.html',
	    scope: {
	      condition: '='
	    },
	    compile: function compile(element, attrs) {
	      element.addClass('phx-validation-condition');
	      return {
	        pre: function pre(scope, element, attrs) {
	          uniqueId += 1;
	
	          scope.flags = {
	            uniqueId: uniqueId,
	            evaluationRequested: false
	          };
	
	          scope.isInvalid = function isInvalid() {
	            return !scope.condition.isValid();
	          };
	
	          scope.$watch('condition', function (condition) {
	            if (!!condition && !_.isFunction(condition.isValid)) {
	              throw new EABError('ui-ng-validation', 100, {
	                condition: condition
	              });
	            }
	
	            phxValidationFacade.conditions[scope.flags.uniqueId] = condition;
	          });
	
	          scope.$on('$destroy', function () {
	            delete phxValidationFacade.conditions[scope.flags.uniqueId];
	          });
	        },
	        post: DelegateResponder(phxValidationConditionDelegateConstant, function () {})
	      };
	    }
	  };
	}).service('phxValidationConditionDelegate', function phxValidationDelegate(DelegateController, phxValidationConditionDelegateConstant) {
	  DelegateController(this, phxValidationConditionDelegateConstant);
	});

/***/ }),
/* 1058 */
/***/ (function(module, exports) {

	"use strict";
	
	/** UI-Router Extras v.0.1.3 Module: dsr http://christopherthielen.github.io/ui-router-extras/ - MIT License */
	!function (t, e) {
	  "use strict";
	  function r() {
	    n = e;
	  }var n;t.module("ct.ui.router.extras.dsr", ["ct.ui.router.extras.core"]).config(["$provide", function (t) {
	    var e;t.decorator("$state", ["$delegate", "$q", function (t, a) {
	      return e = t.transitionTo, t.transitionTo = function (o, i, u) {
	        return u && u.ignoreDsr && (n = u.ignoreDsr), e.apply(t, arguments).then(function (t) {
	          return r(), t;
	        }, function (t) {
	          return r(), a.reject(t);
	        });
	      }, t;
	    }]);
	  }]), t.module("ct.ui.router.extras.dsr").service("$deepStateRedirect", ["$rootScope", "$state", "$injector", function (r, a, o) {
	    function i(t) {
	      var e = t.name;return v.hasOwnProperty(e) ? v[e] : void s(e);
	    }function u(e) {
	      var r = e.deepStateRedirect || e.dsr;if (!r) return { dsr: !1 };var n = { dsr: !0 };return t.isFunction(r) ? n.fn = r : t.isObject(r) && (n = t.extend(n, r)), t.isString(n["default"]) && (n["default"] = { state: n["default"] }), n.fn || (n.fn = ["$dsr$", function (t) {
	        return t.redirect.state != t.to.state;
	      }]), n;
	    }function s(t) {
	      var r = a.get(t);if (!r) return !1;var n = u(r);n.dsr && (v[r.name] = m, d[t] === e && (d[t] = {}));var o = r.$$state && r.$$state().parent;if (o) {
	        var i = s(o.self.name);i && v[r.name] === e && (v[r.name] = $);
	      }return v[r.name] || !1;
	    }function c(r, n) {
	      n === !0 && (n = Object.keys(r)), null !== n && n !== e || (n = []);var a = {};return t.forEach(n.sort(), function (t) {
	        a[t] = r[t];
	      }), a;
	    }function f(e, r) {
	      function n(t) {
	        return t ? t.toString() : t;
	      }var a = c(e, r),
	          o = {};return t.forEach(a, function (t, e) {
	        o[e] = n(t);
	      }), t.toJson(o);
	    }var d = {},
	        v = {},
	        m = "Redirect",
	        $ = "AncestorRedirect";return r.$on("$stateChangeStart", function (e, r, s, v, $) {
	      var p = u(r);if (!n && (i(r) === m || p["default"])) {
	        var l = f(s, p.params),
	            g = d[r.name][l] || p["default"];if (g) {
	          var h = { redirect: { state: g.state, params: g.params }, to: { state: r.name, params: s } },
	              S = o.invoke(p.fn, r, { $dsr$: h });if (S) {
	            S.state && (g = S), e.preventDefault();var x = c(s, p.params);a.go(g.state, t.extend(x, g.params));
	          }
	        }
	      }
	    }), r.$on("$stateChangeSuccess", function (e, r, n, o, s) {
	      var c = i(r);if (c) {
	        var v = r.name;t.forEach(d, function (e, o) {
	          var i = u(a.get(o)),
	              s = f(n, i.params);r.$$state().includes[o] && (d[o][s] = { state: v, params: t.copy(n) });
	        });
	      }
	    }), { getRedirect: function getRedirect(t, e) {
	        var r = a.get(t);i(r);var n = u(r),
	            o = f(e, n.params),
	            s = d[r.name];return s = s && s[o] ? s[o] : n["default"];
	      }, reset: function reset(e, r) {
	        if (e) {
	          var n = a.get(e);if (!n) throw new Error("Unknown state: " + e);if (d[n.name]) if (r) {
	            var o = f(r, u(n).params);delete d[n.name][o];
	          } else d[n.name] = {};
	        } else t.forEach(d, function (t, e) {
	          d[e] = {};
	        });
	      } };
	  }]), t.module("ct.ui.router.extras.dsr").run(["$deepStateRedirect", function (t) {}]);
	}(angular);

/***/ }),
/* 1059 */
/***/ (function(module, exports) {

	"use strict";
	
	/** UI-Router Extras v.0.1.3 Module: previous http://christopherthielen.github.io/ui-router-extras/ - MIT License */
	!function (t, e) {
	  "use strict";
	  t.module("ct.ui.router.extras.previous", ["ct.ui.router.extras.core", "ct.ui.router.extras.transition"]).service("$previousState", ["$rootScope", "$state", "$q", function (t, r, o) {
	    var n = null,
	        u = null,
	        a = {};t.$on("$transitionStart", function (t, e) {
	      function r() {
	        u = null;
	      }function o() {
	        n = u;
	      }var a = e.from,
	          s = a.state && a.state.$$state && a.state.$$state();s && (u = n, n = e.from, e.promise.then(r)["catch"](o));
	    });var s = { get: function get(t) {
	        return t ? a[t] : n;
	      }, set: function set(t, e, o) {
	        a[t] = { state: r.get(e), params: o };
	      }, go: function go(t, e) {
	        var n = s.get(t);return n ? r.go(n.state, n.params, e) : o.reject(new Error("no previous state " + (t ? "for memo: " + t : "")));
	      }, memo: function memo(t, e, o) {
	        a[t] = n || { state: r.get(e), params: o };
	      }, forget: function forget(t) {
	        t ? delete a[t] : n = e;
	      } };return s;
	  }]), t.module("ct.ui.router.extras.previous").run(["$previousState", function (t) {}]);
	}(angular);

/***/ }),
/* 1060 */
/***/ (function(module, exports) {

	"use strict";
	
	/** UI-Router Extras v.0.1.3 Module: sticky http://christopherthielen.github.io/ui-router-extras/ - MIT License */
	!function (e, t) {
	  "use strict";
	  function n(t, n) {
	    var a = n,
	        r = a.inheritParams,
	        o = (a.objectKeys, a.protoKeys),
	        i = a.forEach,
	        s = a.map,
	        c = {},
	        l = {},
	        f = !1;this.registerStickyState = function (e) {
	      l[e.name] = e;
	    }, this.enableDebug = this.debugMode = function (t) {
	      return e.isDefined(t) && (f = t), f;
	    }, this.$get = ["$rootScope", "$state", "$stateParams", "$injector", "$log", function (t, n, a, l, v) {
	      function d() {
	        var t = {};return e.forEach(c, function (e, n) {
	          for (var a = m(e), r = 0; r < a.length; r++) {
	            var o = a[r].parent;t[o.name] = t[o.name] || [], t[o.name].push(e);
	          }t[""] && (t.__inactives = t[""]);
	        }), t;
	      }function p() {
	        var e = {};return i(c, function (t) {
	          i(t.path, function (n) {
	            n !== t && (e[n.name] = e[n.name] || [], e[n.name].push(t));
	          });
	        }), e;
	      }function m(e) {
	        var t = [];if (!e) return t;do {
	          e.sticky && t.push(e), e = e.parent;
	        } while (e);return t.reverse(), t;
	      }function g(e, t, n, a) {
	        if (a) return "reload";var r = c[e.self.name];if (!r) return "enter";if (e.self === n) return "reload";var o = $(e.ownParams, t, r.locals.globals.$stateParams);return o ? "reactivate" : "reload";
	      }function h(e, t) {
	        var n = c[e.name];if (!n) return null;if (!t) return n;var a = $(e.ownParams, t, n.locals.globals.$stateParams);return a ? n : null;
	      }function $(e, t, n) {
	        return "function" == typeof e.$$equals ? e.$$equals(t, n) : x(t, n, e);
	      }function x(t, n, a) {
	        if (!e.isArray(a) && e.isObject(a) && (a = o(a, ["$$keys", "$$values", "$$equals", "$$validates", "$$new", "$$parent"])), !a) {
	          a = [];for (var r in t) {
	            a.push(r);
	          }
	        }for (var i = 0; i < a.length; i++) {
	          var s = a[i];if (t[s] != n[s]) return !1;
	        }return !0;
	      }function b(e) {
	        var t = e.fromState.path,
	            o = e.toState.path,
	            i = e.toParams,
	            s = 0,
	            u = o[s];for (e.options && e.options.inherit && (i = e.toParams = r(a, i || {}, n.$current, e.toState)); u && u === t[s] && $(u.ownParams, i, e.fromParams);) {
	          u = o[++s];
	        }return { keep: s, retained: t.slice(0, s), exiting: t.slice(s), entering: o.slice(s) };
	      }function S(e, t) {
	        return e.name.split(".").length - t.name.split(".").length;
	      }var E = { getInactiveStates: function getInactiveStates() {
	          return s(c, e.identity).sort(S);
	        }, getInactiveStatesByParent: function getInactiveStatesByParent() {
	          return d();
	        }, processTransition: function processTransition(t) {
	          function n(e) {
	            return function (t) {
	              return -1 === e.indexOf(t);
	            };
	          }function a(e, t) {
	            return e.concat(t);
	          }function r(e) {
	            return function (t) {
	              return t[e];
	            };
	          }function o(e) {
	            return function (t) {
	              return t.type === e;
	            };
	          }function i(e) {
	            return function (t) {
	              return t.parent === e;
	            };
	          }function s(e) {
	            return !e.sticky;
	          }var u,
	              c,
	              l,
	              f = b(t),
	              v = E.getInactiveStates(),
	              d = f.keep,
	              m = n(f.entering),
	              h = f.exiting[0] && f.exiting[0].sticky && f.entering.length > 0;c = f.exiting.map(function (e) {
	            var t = -1 !== f.entering.indexOf(e),
	                n = h && !t ? "inactivate" : "exit";return { type: n, state: e };
	          });var $ = t.options && !!t.options.reload;l = f.entering.map(function (e) {
	            var n = g(e, t.toParams, t.reloadStateTree, $);return $ = $ || "reload" === n, { type: n, state: e };
	          });var x = f.entering.map(function (e) {
	            return v.filter(i(e.parent));
	          }).reduce(a, []).filter(m).filter(s).concat(v.filter(i(t.toState))),
	              y = p(),
	              P = x.map(function (e) {
	            return y[e.name];
	          }).filter(e.isDefined).reduce(a, []).concat(x).sort(S),
	              k = c.filter(o("exit")).map(r("state")).concat(P);return u = v.filter(n(k)).filter(n(f.entering)).concat(c.filter(o("inactivate")).map(r("state"))).sort(S), { keep: d, enter: new Array(d).concat(l.map(r("type"))), exit: new Array(d).concat(c.map(r("type"))), inactives: u, reactivatingStates: l.filter(o("reactivate")).map(r("state")), orphans: P };
	        }, stateInactivated: function stateInactivated(e) {
	          c[e.self.name] = e, e.self.status = "inactive", e.self.onInactivate && l.invoke(e.self.onInactivate, e.self, e.locals.globals);
	        }, stateReactivated: function stateReactivated(e) {
	          c[e.self.name] && delete c[e.self.name], e.self.status = "entered", e.self.onReactivate && l.invoke(e.self.onReactivate, e.self, e.locals.globals);
	        }, stateExiting: function stateExiting(t, n, a) {
	          var r = {};e.forEach(n, function (e) {
	            r[e.self.name] = !0;
	          }), e.forEach(c, function (n, a) {
	            !r[a] && n.includes[t.name] && (f && v.debug("Exiting " + a + " because it's a substate of " + t.name + " and wasn't found in ", r), n.self.onExit && l.invoke(n.self.onExit, n.self, n.locals.globals), e.forEach(n.locals, function (e, t) {
	              delete u.locals[t];
	            }), n.locals = null, n.self.status = "exited", delete c[a]);
	          }), a && l.invoke(a, t.self, t.locals.globals), t.locals = null, t.self.status = "exited", delete c[t.self.name];
	        }, stateEntering: function stateEntering(e, t, n, a) {
	          var r = h(e);if (r && (a || !h(e, t))) {
	            var o = e.locals;this.stateExiting(r), e.locals = o;
	          }e.self.status = "entered", n && l.invoke(n, e.self, e.locals.globals);
	        }, reset: function reset(a, r) {
	          function o(e) {
	            E.reset(e);
	          }if ("*" === a) return e.forEach(E.getInactiveStates(), o), !0;var i = n.get(a);if (!i) return !1;var s = h(i, r);return s ? (E.stateExiting(s), t.$broadcast("$viewContentLoading"), !0) : !1;
	        } };return E;
	    }];
	  }function a(e) {
	    return { resolve: {}, locals: { globals: i && i.locals && i.locals.globals }, views: {}, self: {}, params: {}, ownParams: f.hasParamSet ? { $$equals: function $$equals() {
	          return !0;
	        } } : [], surrogateType: e };
	  }e.module("ct.ui.router.extras.sticky", ["ct.ui.router.extras.core"]);var r = e.module("ct.ui.router.extras.sticky");n.$inject = ["$stateProvider", "uirextras_coreProvider"], r.provider("$stickyState", n);var o,
	      i,
	      s,
	      u,
	      c = [],
	      l = {},
	      f = { hasParamSet: !1 };e.module("ct.ui.router.extras.sticky").run(["$stickyState", function (e) {
	    o = e;
	  }]), e.module("ct.ui.router.extras.sticky").config(["$provide", "$stateProvider", "$stickyStateProvider", "$urlMatcherFactoryProvider", "uirextras_coreProvider", function (n, r, v, d, p) {
	    function m(t, n, a) {
	      function r(e, t, n) {
	        return e[t] ? e[t].toUpperCase() + ": " + n.self.name : "(" + n.self.name + ")";
	      }var i = S(a.inactives, function (e) {
	        return e.self.name;
	      }),
	          s = S(n.toState.path, function (e, t) {
	        return r(a.enter, t, e);
	      }),
	          u = S(n.fromState.path, function (e, t) {
	        return r(a.exit, t, e);
	      }),
	          c = n.fromState.self.name + ": " + e.toJson(n.fromParams) + ":  -> " + n.toState.self.name + ": " + e.toJson(n.toParams);t.debug("------------------------------------------------------"), t.debug("   Current transition: ", c), t.debug("Before transition, inactives are:   : ", S(o.getInactiveStates(), function (e) {
	        return e.self.name;
	      })), t.debug("After transition,  inactives will be: ", i), t.debug("Transition will exit:  ", u), t.debug("Transition will enter: ", s);
	    }function g(e, t, n) {
	      e.debug("Current state: " + t.self.name + ", inactive states: ", S(o.getInactiveStates(), function (e) {
	        return e.self.name;
	      }));for (var a = function a(e, t) {
	        return "globals" != t && "resolve" != t;
	      }, r = function r(e) {
	        var t = E(e.locals, a);return Object.keys(t).length || (t[""] = { $$state: { name: null } }), S(t, function (t, n) {
	          return { localsFor: e.self.name ? e.self.name : "(root)", uiViewName: n || null, filledByState: t.$$state.name };
	        });
	      }, i = r(t), s = t.parent; s && s !== t;) {
	        i = i.concat(r(s)), t = s, s = t.parent;
	      }e.debug("Views active on each state:"), console.table(i.reverse());
	    }var h = p,
	        $ = h.internalStates,
	        x = h.inherit,
	        b = (h.inheritParams, h.forEach),
	        S = h.map,
	        E = h.filterObj;f.hasParamSet = !!d.ParamSet, u = e.extend(new a("__inactives"), { self: { name: "__inactives" } }), i = s = t, c = [], p.onStateRegistered(function (e) {
	      e.self.sticky === !0 && v.registerStickyState(e.self);
	    });var y;n.decorator("$state", ["$delegate", "$log", "$q", function (n, r, p) {
	      return i = n.$current, $[""] = i, i.parent = u, u.parent = t, u.locals = x(l, u.locals), i.locals = x(u.locals, i.locals), delete u.locals.globals, y = n.transitionTo, n.transitionTo = function (t, h, x) {
	        function E(t) {
	          var n = e.extend(new a("reactivate_phase1"), { locals: t.locals });return n.self = e.extend({}, t.self), n;
	        }function P(t) {
	          var n = e.extend(new a("reactivate_phase2"), t),
	              r = n.self.onEnter;return n.resolve = {}, n.views = {}, n.self.onEnter = function () {
	            n.locals = t.locals, o.stateReactivated(t);
	          }, _V.addRestoreFunction(function () {
	            t.self.onEnter = r;
	          }), n;
	        }function k(e) {
	          var t = new a("inactivate");t.self = e.self;var n = e.self.onExit;return t.self.onExit = function () {
	            o.stateInactivated(e);
	          }, _V.addRestoreFunction(function () {
	            e.self.onExit = n;
	          }), t;
	        }function w(e, t) {
	          var n = e.self.onEnter;return e.self.onEnter = function () {
	            o.stateEntering(e, t, n);
	          }, _V.addRestoreFunction(function () {
	            e.self.onEnter = n;
	          }), e;
	        }function F(e, t) {
	          var n = e.self.onEnter;return e.self.onEnter = function () {
	            o.stateEntering(e, t, n, !0);
	          }, _V.addRestoreFunction(function () {
	            e.self.onEnter = n;
	          }), e;
	        }function R(e) {
	          var t = e.self.onExit;return e.self.onExit = function () {
	            o.stateExiting(e, J, t);
	          }, _V.addRestoreFunction(function () {
	            e.self.onExit = t;
	          }), e;
	        }var T = v.debugMode();u.locals || (u.locals = i.locals);var I = c.length;s && (s(), T && r.debug("Restored paths from pending transition"));var _,
	            j,
	            O,
	            q,
	            A = n.$current,
	            C = n.params,
	            M = x && x.relative || n.$current,
	            B = n.get(t, M),
	            D = [],
	            J = [];h = h || {}, arguments[1] = h;var K = function K() {},
	            _V = function V() {
	          _ && (L.path = _, _ = null), j && (A.path = j, j = null), e.forEach(_V.restoreFunctions, function (e) {
	            e();
	          }), _V = K, s = null, c.splice(I, 1);
	        };if (_V.restoreFunctions = [], _V.addRestoreFunction = function (e) {
	          this.restoreFunctions.push(e);
	        }, B) {
	          var L = $[B.name];if (L) {
	            _ = L.path, j = A.path;var N = x && x.reload || !1,
	                U = N && (N === !0 ? _[0].self : n.get(N, M));x && N && N !== !0 && delete x.reload;var z = { toState: L, toParams: h || {}, fromState: A, fromParams: C || {}, options: x, reloadStateTree: U };if (c.push(z), s = _V, U) {
	              z.toParams.$$uirouterextrasreload = Math.random();var G = U.$$state().params,
	                  H = U.$$state().ownParams;if (f.hasParamSet) {
	                var Q = new d.Param("$$uirouterextrasreload");G.$$uirouterextrasreload = H.$$uirouterextrasreload = Q, _V.restoreFunctions.push(function () {
	                  delete G.$$uirouterextrasreload, delete H.$$uirouterextrasreload;
	                });
	              } else G.push("$$uirouterextrasreload"), H.push("$$uirouterextrasreload"), _V.restoreFunctions.push(function () {
	                G.length = G.length - 1, H.length = H.length - 1;
	              });
	            }O = o.processTransition(z), T && m(r, z, O);var W = L.path.slice(0, O.keep),
	                X = A.path.slice(0, O.keep);e.forEach(u.locals, function (e, t) {
	              -1 != t.indexOf("@") && delete u.locals[t];
	            });var Y = function Y(e) {
	              return function (t, n) {
	                -1 !== n.indexOf("@") && (e[n] = t);
	              };
	            };b(O.inactives, function (e) {
	              b(e.locals, Y(u.locals));
	            }), b(O.reactivatingStates, function (e) {
	              b(e.locals, Y(l));
	            }), _V.addRestoreFunction(function () {
	              b(l, function (e, t) {
	                delete l[t];
	              });
	            }), e.forEach(O.enter, function (e, t) {
	              var n,
	                  a = L.path[t];"reactivate" === e ? (n = E(a), W.push(n), X.push(n), D.push(P(a)), q = a) : "reload" === e ? (W.push(F(a)), q = a) : "enter" === e && W.push(w(a));
	            }), e.forEach(O.exit, function (e, t) {
	              var n = A.path[t];"inactivate" === e ? (X.push(k(n)), J.push(n)) : "exit" === e && (X.push(R(n)), J.push(n));
	            }), D.length && e.forEach(D, function (e) {
	              W.push(e);
	            });var Z = O.orphans;X = X.concat(S(Z, function (e) {
	              return R(e);
	            })), J = J.concat(Z), A.path = X, L.path = W;var ee = function ee(e) {
	              return (e.surrogateType ? e.surrogateType + ":" : "") + e.self.name;
	            };T && r.debug("SurrogateFromPath: ", S(X, ee)), T && r.debug("SurrogateToPath:   ", S(W, ee));
	          }
	        }var te = y.apply(n, arguments);return te.then(function (e) {
	          return _V(), T && g(r, $[e.name], n), e.status = "active", e;
	        }, function (e) {
	          return _V(), T && "transition prevented" !== e.message && "transition aborted" !== e.message && "transition superseded" !== e.message && (r.debug("transition failed", e), r.debug(e.stack)), p.reject(e);
	        });
	      }, n;
	    }]);
	  }]);
	}(angular);

/***/ }),
/* 1061 */
/***/ (function(module, exports) {

	"use strict";
	
	/** UI-Router Extras v.0.1.3 Module: transition http://christopherthielen.github.io/ui-router-extras/ - MIT License */
	!function (t, n) {
	  "use strict";
	  t.module("ct.ui.router.extras.transition", ["ct.ui.router.extras.core"]).config(["$provide", function (n) {
	    n.decorator("$state", ["$delegate", "$rootScope", "$q", "$injector", function (n, r, e, o) {
	      function i(n) {
	        var r = o.invoke,
	            e = o.instantiate;return o.invoke = function (e, o, i) {
	          return r(e, o, t.extend({ $transition$: n }, i));
	        }, o.instantiate = function (r, o) {
	          return e(r, t.extend({ $transition$: n }, o));
	        }, function () {
	          o.invoke = r, o.instantiate = e;
	        };
	      }function a() {
	        p.pop()(), $.pop(), f--;
	      }function u(t, n) {
	        return function (e) {
	          return a(), r.$broadcast("$transitionSuccess", n), t.resolve(e), e;
	        };
	      }function c(t, n) {
	        return function (o) {
	          return a(), r.$broadcast("$transitionError", n, o), t.reject(o), e.reject(o);
	        };
	      }var s = n.transitionTo,
	          f = -1,
	          $ = [],
	          p = [];return n.transitionTo = function (t, r, o) {
	        var i = e.defer(),
	            a = $[++f] = { promise: i.promise };p[f] = function () {};var d = s.apply(n, arguments);return d.then(u(i, a), c(i, a));
	      }, r.$on("$stateChangeStart", function (n, e, o, a, u) {
	        if (!(f >= $.length)) {
	          var c = f,
	              s = t.extend($[c], { to: { state: e, params: o }, from: { state: a, params: u } }),
	              d = i(s);p[c] = d, r.$broadcast("$transitionStart", s);
	        }
	      }), n;
	    }]);
	  }]);
	}(angular);

/***/ }),
/* 1062 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	var _ = __webpack_require__(7);
	
	module.exports = {
	  MATCH_DESCENDANT_KEY: /Definition$/,
	  DEFAULT_CONFIGURATION: {
	    defaultToRequired: false,
	    integritySafeguards: true,
	    failFast: false,
	    logFailureFn: function logFailureFn() {
	      var args = Array.prototype.slice.call(arguments);
	
	      if (!!window.log) {
	        window.log.error.apply(log, args);
	      } else {
	        console.error.apply(console, args);
	      }
	    }
	  },
	  discoverType: function discoverType() {
	    var class2type = {};
	
	    _.each(['Boolean', 'Number', 'String', 'Function', 'Array', 'Date', 'RegExp', 'Object', 'Error'], function (name, i) {
	      this['[object ' + name + ']'] = name.toLowerCase();
	    }, class2type);
	
	    return function typeFinder(obj) {
	      if (obj == null) {
	        return obj + '';
	      }
	
	      return (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' || typeof obj === 'function' ? class2type[class2type.toString.call(obj)] || 'object' : typeof obj === 'undefined' ? 'undefined' : _typeof(obj);
	    };
	  }()
	};

/***/ }),
/* 1063 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	var Interface = __webpack_require__(24);
	var _ = __webpack_require__(7);
	
	Interface.postprocessor('side-load-lookup', {
	  // TODO does this work with arrays and objects like below (see the _.map)
	  convertToSource: function convertToSource(sync, req) {
	    return _.isString(req.hint.idKey) ? sync[req.hint.idKey] : sync;
	  },
	
	  /** */
	  convertToSync: function convertToSync(sync, req, dtdQueue) {
	    var rootDtd = dtdQueue[0];
	
	    if (!!req.hint) {
	      sync = !(_.isPlainObject(sync) || _.isArray(sync)) ? rootDtd[req.hint.lookupKey][sync] : _.map(sync, function (key) {
	        return rootDtd[req.hint.lookupKey][key];
	      });
	    }
	
	    return sync;
	  }
	});

/***/ }),
/* 1064 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	var Interface = __webpack_require__(24);
	var _ = __webpack_require__(7);
	
	Interface.preprocessor('key-value-pair', {
	  convertToSource: function convertBackToArray(sync) {
	    return _.map(sync, function (value, key) {
	      return {
	        value: value,
	        key: key
	      };
	    });
	  },
	
	  /**
	   * [ { key:'prop', value:'val' }, ... ] => { prop:val }
	   */
	  convertToSync: function convertToSync(source) {
	    var sourceProperties = {};
	
	    _.each(source, function (o) {
	      this[o.key] = o.value;
	    }, sourceProperties);
	
	    return sourceProperties;
	  }
	});

/***/ }),
/* 1065 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	var Interface = __webpack_require__(24);
	var _ = __webpack_require__(7);
	
	Interface.preprocessor('reverse-side-load-lookup', {
	  convertToSource: function convertToSource(sync, dtdReq) {
	    _.each(sync, function (o) {
	      delete o[dtdReq.hint.writeProperty];
	    });
	
	    return sync;
	  },
	
	  /**
	   * resource_detail: {
	   *   resource: 1
	   * },
	   * resource: {
	   *   "1": {
	   *     resource_detail: <lookup>
	   *   }
	   * }
	   */
	  convertToSync: function convertToSync(source, dtdReq, dtdQueue) {
	    var requestArray = false;
	    var conversionFn = _.identity;
	    var reverseLookup = {};
	    var rootDtd = dtdQueue[0];
	    var lookup = rootDtd[dtdReq.hint.readHash];
	
	    _.each(lookup, function (o, key) {
	      var readValue = o[dtdReq.hint.readProperty];
	
	      reverseLookup[readValue] = reverseLookup[readValue] || {};
	      reverseLookup[readValue][key] = o;
	    });
	
	    requestArray = dtdReq.typeDef[dtdReq.hint.writeProperty] === 'array';
	
	    dtdReq.typeDef = dtdReq.typeDef || {};
	    dtdReq.typeDef[dtdReq.hint.writeProperty] = requestArray ? 'array' : 'object';
	
	    conversionFn = requestArray ? _.toArray : _.identity;
	
	    _.each(source, function (sourceValue, sourceKey) {
	      sourceValue[dtdReq.hint.writeProperty] = conversionFn.call(_, reverseLookup[sourceKey]);
	    });
	
	    return source;
	  }
	});

/***/ }),
/* 1066 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	var Interface = __webpack_require__(24);
	var _ = __webpack_require__(7);
	
	var findDTD = function findDTD(req, sync) {
	  var dtdType = undefined;
	  var dtd = _.reduce(req.typeDef.dtdProperty.split('.'), function (o, propertyName) {
	    return o[propertyName];
	  }, sync);
	
	  if (!!req.typeDef.dtdType) {
	    dtdType = req.typeDef.dtdType;
	  }
	
	  if (!!req.typeDef.dtdDynamicType) {
	    dtdType = _.reduce(req.typeDef.dtdDynamicType.split('.'), function (o, propertyName) {
	      return o[propertyName];
	    }, sync);
	  }
	
	  if (!!dtdType) {
	    dtd = {
	      __singleDataValue__: {
	        type: dtdType,
	        typeDef: dtd
	      }
	    };
	  }
	
	  return dtd;
	};
	
	var automaticRemoveSingleValue = function automaticRemoveSingleValue(req) {
	  if (!!req.typeDef && !!req.typeDef.__singleDataValue__) {
	    req.typeDef = undefined;
	  }
	
	  return req;
	};
	
	var automaticAddSingleValue = function automaticAddSingleValue(req) {
	  if (_.isString(req.typeDef)) {
	    req.typeDef = {
	      __singleDataValue__: {
	        type: req.typeDef
	      }
	    };
	  }
	
	  return req;
	};
	
	Interface.type('definition', {
	  defaultValue: function defaultValue() {
	    return {};
	  },
	  convertToSource: function convertBackToArray(syncProp, req) {
	    return this[this.activeMethod].call(this, automaticRemoveSingleValue(req).typeDef, syncProp);
	  },
	  convertToSync: function convertToSync(sourceProp, req, source, sync, isRequired) {
	    return isRequired && !_.isUndefined(sourceProp) ? this[this.activeMethod].call(this, automaticAddSingleValue(req).typeDef, sourceProp, {}) : sourceProp;
	  },
	  isOfType: function isOfType(val, req) {
	    return this.discoverType(val) === 'object';
	  }
	}).type('dynamic-definition', {
	  convertToSource: function convertToSource(syncProp, req, source, sync) {
	    return this[this.activeMethod].call(this, findDTD(req, source), syncProp);
	  },
	  convertToSync: function convertToSync(sourceProp, req, source, sync, isRequired) {
	    return this[this.activeMethod].call(this, findDTD(req, sync), sourceProp, {});
	  },
	  isOfType: function isOfType() {
	    // NOTE it is always true, because we are using Interface so it will fail if not in the coversion
	    return true;
	  }
	}).type('array', {
	  defaultValue: function defaultValue() {
	    return [];
	  },
	  convertToSource: function convertBackToArray(syncProp, req) {
	    automaticRemoveSingleValue(req);
	    return _.map(syncProp, function (obj) {
	      return this[this.activeMethod].call(this, req.typeDef, obj);
	    }, this);
	  },
	  convertToSync: function convertToSync(sourceProp, req, source, sync, isRequired) {
	    if (!isRequired && _.isUndefined(sourceProp)) {
	      return sourceProp;
	    }
	
	    // note unfortunately we need to capture this here because map will create an array
	    if (this.discoverType(sourceProp) !== 'array') {
	      return {};
	    }
	
	    automaticAddSingleValue(req);
	    sourceProp = _.map(sourceProp, function (obj) {
	      return this[this.activeMethod].call(this, req.typeDef, obj, {});
	    }, this);
	
	    return sourceProp;
	  },
	  isOfType: function isOfType(val) {
	    return this.discoverType(val) === 'array';
	  }
	}).type('object', {
	  defaultValue: function defaultValue() {
	    return {};
	  },
	  convertToSource: function convertBackToArray(syncProp, req) {
	    automaticRemoveSingleValue(req);
	    return _.zipObject(_.keys(syncProp), _.map(syncProp, function (obj) {
	      return this[this.activeMethod].call(this, req.typeDef, obj);
	    }, this));
	  },
	  convertToSync: function convertToSync(sourceProp, req, source, sync, isRequired) {
	    if (!isRequired && _.isUndefined(sourceProp)) {
	      return sourceProp;
	    }
	
	    automaticAddSingleValue(req);
	    _.each(sourceProp, function (obj, k) {
	      sourceProp[k] = this[this.activeMethod].call(this, req.typeDef, obj, {});
	    }, this);
	
	    return sourceProp;
	  },
	  isOfType: function isOfType(val, req) {
	    return this.discoverType(val) === 'object';
	  }
	});

/***/ }),
/* 1067 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	var Interface = __webpack_require__(24);
	var _ = __webpack_require__(7);
	
	Interface.type('*', {
	  defaultValue: undefined,
	  isOfType: function verifyTypeAnything() {
	    return true;
	  }
	}).type('auto-id', {
	  defaultValue: 0, // not used isOfType always succeeds
	  isOfType: function verifyTypeInt() {
	    return true;
	  },
	  convertToSync: function convertToSync() {
	    return _.uniqueId();
	  }
	}).type('id', {
	  defaultValue: undefined,
	  convertToSource: function convertToSource(source) {
	    return _.isUndefined(source) ? null : source;
	  },
	  isOfType: function verifyIdType(val) {
	    return _.isNumber(val) || _.isString(val);
	  }
	}).type('key', Interface.type('id'));

/***/ }),
/* 1068 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	var Interface = __webpack_require__(24);
	var _ = __webpack_require__(7);
	var moment = __webpack_require__(2);
	
	var defaultMoment = function defaultMoment(val, req) {
	  if ((val === null || val === undefined) && req.rules && req.rules.defaultsToNow === false) {
	    return null;
	  }
	
	  return moment();
	};
	
	var isValidMoment = function isValidMoment(val, req) {
	  if ((val === null || val === undefined) && req.rules && req.rules.defaultsToNow === false) {
	    return true;
	  }
	
	  return val.isValid();
	};
	
	var afterConvertToSync = function afterConvertToSync(syncValue) {
	  return syncValue === null ? undefined : syncValue;
	};
	
	Interface.type('moment', {
	  defaultValue: defaultMoment,
	  isOfType: isValidMoment,
	  afterConvertToSync: afterConvertToSync,
	  convertToSync: function convertToSync(sourceProp, req) {
	    if ((sourceProp === null || sourceProp === undefined) && req.rules && req.rules.defaultsToNow === false) {
	      return null;
	    }
	
	    return req.typeDef ? moment(sourceProp, req.typeDef) : moment(sourceProp);
	  },
	  convertToSource: function convertToSource(sync, req) {
	    return !!sync ? sync.format(req.typeDef) : null;
	  }
	}).type('utc', {
	  defaultValue: defaultMoment,
	  isOfType: isValidMoment,
	  afterConvertToSync: afterConvertToSync,
	  convertToSync: function convertToSync(sourceProp, req) {
	    if ((sourceProp === null || sourceProp === undefined) && req.rules && req.rules.defaultsToNow === false) {
	      return null;
	    }
	
	    return moment(sourceProp).utc();
	  },
	  convertToSource: function convertToSource(sync) {
	    return !!sync ? sync.format(req.typeDef) : null;
	  }
	}).type('unix', {
	  defaultValue: defaultMoment,
	  isOfType: isValidMoment,
	  afterConvertToSync: afterConvertToSync,
	  convertToSync: function convertToSync(sourceProp, req) {
	    if ((sourceProp === null || sourceProp === undefined) && req.rules && req.rules.defaultsToNow === false) {
	      return null;
	    }
	
	    return moment.unix(sourceProp);
	  },
	  convertToSource: function convertToSource(sync) {
	    return !!sync ? moment(sync).unix() : null;
	  }
	}).type('timestamp', {
	  defaultValue: null,
	  isOfType: function isOfType(val) {
	    var date = new Date(val);
	    return val && typeof date.getMonth === 'function';
	  },
	  convertToSync: function convertToSync(sourceProp, req) {
	    if ((sourceProp === null || sourceProp === undefined) && req.rules && req.rules.defaultsToNow === false) {
	      return null;
	    }
	
	    return sourceProp ? new Date(sourceProp).toLocaleString() : null;
	  },
	  convertToSource: function convertToSource(sync) {
	    return !!sync ? new Date(sync).getTime() : null;
	  }
	}).type('clock', {
	  defaultValue: defaultMoment,
	  isOfType: isValidMoment,
	  afterConvertToSync: afterConvertToSync,
	  convertToSync: function convertToSync(sourceProp, req) {
	    if ((sourceProp === null || sourceProp === undefined) && req.rules && req.rules.defaultsToNow === false) {
	      return null;
	    }
	
	    return moment(sourceProp, 'HH:mm:ss');
	  },
	  convertToSource: function convertToSource(sync) {
	    if (!sync) {
	      return null;
	    }
	
	    sync = moment(sync, 'HH:mm:ss');
	    return sync.hours() + ':' + sync.minutes() + ':' + sync.seconds();
	  }
	});

/***/ }),
/* 1069 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	var Interface = __webpack_require__(24);
	var numeral = __webpack_require__(439);
	var _ = __webpack_require__(7);
	
	var matchesMinMaxRules = function matchesMinMaxRules(val, rules) {
	  var isValid = true;
	
	  if (rules) {
	    if (rules.min !== undefined) {
	      isValid = isValid && val >= rules.min;
	    }
	
	    if (rules.max !== undefined) {
	      isValid = isValid && val <= rules.max;
	    }
	  }
	
	  return isValid;
	};
	
	var isTrueNumber = function isTrueNumber(val) {
	  return !_.isNaN(val) && this.discoverType(val) === 'number';
	};
	
	var REMOVE_NON_NUMERIC = /[^0-9.]/g;
	
	Interface.type('integer', {
	  defaultValue: 0,
	  convertToSource: function convertToSource(syncProp, dtdRequirement, source, sync) {
	    return parseInt((syncProp + '').replace(REMOVE_NON_NUMERIC, ''), 10);
	  },
	  convertToSync: function convertToSync(sourceProp, dtdRequirement, source, sync) {
	    var value = parseInt(sourceProp, 10);
	    if (!!dtdRequirement.rules && dtdRequirement.rules.format) {
	      value = numeral(value).format(dtdRequirement.rules.format);
	    }
	
	    return value;
	  },
	  isOfType: function verifyTypeInt(val, req) {
	    return isTrueNumber.call(this, val) && Math.floor(val) === val && matchesMinMaxRules(val, req.rules);
	  }
	}).type('real', {
	  defaultValue: 0.0,
	  convertToSource: function convertToSource(syncProp, dtdRequirement, source, sync) {
	    return parseFloat((syncProp + '').replace(REMOVE_NON_NUMERIC, ''));
	  },
	  convertToSync: function convertToSync(sourceProp, dtdRequirement) {
	    var value = parseFloat(sourceProp);
	    if (!!dtdRequirement.rules && dtdRequirement.rules.format) {
	      value = numeral(value).format(dtdRequirement.rules.format);
	    }
	
	    return value;
	  },
	  isOfType: function verifyTypeNumber(val, req) {
	    return isTrueNumber.call(this, val) && matchesMinMaxRules(val, req.rules);
	  }
	}).type('number', Interface.type('real'));

/***/ }),
/* 1070 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	var Interface = __webpack_require__(24);
	var _ = __webpack_require__(7);
	
	var verifyTypeFactoryPatterns = function verifyTypeFactoryPatterns(val, stringPattern) {
	  return this.discoverType(val) === 'string' && stringPattern.test(val);
	};
	
	var convertToSyncPatterns = function convertTypePatterns(sourceValue) {
	  return sourceValue + '';
	};
	
	Interface.type('pattern', {
	  defaultValue: '',
	  convertToSync: function convertToSync(sourceValue) {
	    return sourceValue + '';
	  },
	  isOfType: function verifyTypeFactory(val, req) {
	    return this.discoverType(req.typeDef) === 'regexp' && this.discoverType(val) === 'string' && req.typeDef.test(val);
	  }
	});
	
	var patternStringValidators = {
	  hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,
	  snakecase: /^[a-z0-9-]+$/,
	  email: /^[A-Za-z0-9._%+-]+@([A-Za-z0-9-]+\.)+([A-Za-z0-9]{2,4}|museum)$/,
	  url: /^([a-z]+:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/i,
	  phone: /(\+*\d{1,})*([ |\(])*(\d{3})[^\d]*(\d{3})[^\d]*(\d{4})/,
	  zipcode: /^\d{5}(?:[-\s]\d{4})?$/
	};
	
	// zipcode needs optional -\d{4}
	_.each(patternStringValidators, function addSpecificPatternTypes(regularExpression, interfaceType) {
	  this.type(interfaceType, {
	    defaultValue: '',
	    convertToSync: convertToSyncPatterns,
	    isOfType: function verifyTypeFactory(val, req) {
	      return verifyTypeFactoryPatterns.call(this, val, regularExpression);
	    }
	  });
	}, Interface);

/***/ }),
/* 1071 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	var Interface = __webpack_require__(24);
	var _ = __webpack_require__(7);
	
	var forceToString = function forceToString(val) {
	  return _.isEmpty(val) ? '' : val.toString();
	};
	
	var standardTypeDefaults = {
	  // @deprecated
	  regexp: function regexp() {
	    return new RegExp();
	  },
	  null: null,
	  undefined: undefined
	};
	
	_.each(standardTypeDefaults, function (_defaultValue, standardType) {
	  this.type(standardType, {
	    defaultValue: function defaultValue() {
	      return _defaultValue;
	    },
	    isOfType: function isOfType(val, req) {
	      return this.discoverType(val) === req.type;
	    }
	  });
	}, Interface);
	
	Interface.type('string', {
	  defaultValue: '',
	  convertToSource: forceToString,
	  isOfType: function isOfType(val, req) {
	    var rules = req.rules,
	        len = !!val && val.length ? val.length : 0;
	
	    if (!_.isString(val)) {
	      return false;
	    } else if (rules && rules.min && len < rules.min) {
	      return false;
	    } else if (rules && rules.max && len > rules.max) {
	      return false;
	    }
	
	    return _.isString(val);
	  },
	  convertToSync: function convertToSync(val) {
	    return _.isUndefined(val) || _.isNull(val) ? val : val + '';
	  }
	});
	
	Interface.type('boolean', {
	  isOfType: function isOfType(val, req) {
	    return val === true || val === false;
	  },
	  afterConvertToSync: function afterConvertToSync(val) {
	    return !!val;
	  }
	});
	
	Interface.type('tri-state', {
	  isOfType: function isOfType(val, req) {
	    return _.isUndefined(val) || _.isNull(val) || _.isBoolean(val);
	  },
	  afterConvertToSync: function afterConvertToSync(val) {
	    return _.isNull(val) ? undefined : val;
	  }
	});
	
	/*
	 rules: {
	 trueValue:'Y',
	 falseValue:'N'
	 }
	 */
	
	(function (Interface) {
	  var defaultRules = {
	    yN: {
	      trueValue: 'Y',
	      falseValue: 'N'
	    },
	    yesNo: {
	      trueValue: 'yes',
	      falseValue: 'no'
	    },
	    tF: {
	      trueValue: 't',
	      falseValue: 'f'
	    },
	    trueFalse: {
	      trueValue: 'true',
	      falseValue: 'false'
	    },
	    number: {
	      trueValue: 1,
	      falseValue: 0
	    }
	  },
	      defaultConversions = {
	    n: {
	      value: false,
	      rules: defaultRules.yN
	    },
	    no: {
	      value: false,
	      rules: defaultRules.yesNo
	    },
	    f: {
	      value: false,
	      rules: defaultRules.tF
	    },
	    false: {
	      value: false,
	      rules: defaultRules.trueFalse
	    },
	    y: {
	      value: true,
	      rules: defaultRules.yN
	    },
	    yes: {
	      value: true,
	      rules: defaultRules.yesNo
	    },
	    t: {
	      value: true,
	      rules: defaultRules.tF
	    },
	    true: {
	      value: true,
	      rules: defaultRules.trueFalse
	    }
	  };
	
	  Interface.type('smart-boolean', {
	    convertToSource: function convertToSource(val, req) {
	      var falseValue = !!req.rules && !!req.rules.falseValue ? req.rules.falseValue : 'N',
	          trueValue = !!req.rules && !!req.rules.trueValue ? req.rules.trueValue : 'Y';
	
	      if (val === true) {
	        return trueValue;
	      } else if (val === false) {
	        return falseValue;
	      } else {
	        return null;
	      }
	    },
	    convertToSync: function convertToSync(sourceProp, req) {
	      if (_.isString(sourceProp)) {
	        sourceProp = sourceProp.toLowerCase();
	
	        if (!!req.rules) {
	          if (req.rules.falseValue.toLowerCase() === sourceProp) {
	            sourceProp = false;
	          } else if (req.rules.trueValue.toLowerCase() === sourceProp) {
	            sourceProp = true;
	          }
	        } else {
	          var conversionClassification = _.find(defaultConversions, function (v, k) {
	            return k === sourceProp;
	          });
	
	          if (!!conversionClassification) {
	            sourceProp = conversionClassification.value;
	            req.rules = conversionClassification.rules;
	          }
	        }
	      } else if (_.isNumber(sourceProp)) {
	        sourceProp = parseInt(sourceProp) > 0;
	        req.rules = defaultRules.number;
	      }
	
	      if (!_.isBoolean(sourceProp)) {
	        sourceProp = undefined;
	      }
	
	      return sourceProp;
	    },
	    isOfType: function isOfType(val) {
	      return val === true || val === false;
	    },
	    afterConvertToSync: function afterConvertToSync(val) {
	      return !!val;
	    }
	  });
	})(Interface);
	
	(function (Interface) {
	  var isFunction = /^\s*function[a-zA-Z0-9\s]*\(.*\)\s*{.*};?\s*$/;
	  var functionDefault = function NOOP() {
	    return 'noop';
	  };
	
	  Interface.type('function', {
	    defaultValue: function defaultValue(f) {
	      return f || functionDefault;
	    },
	    isOfType: function isOfType(val) {
	      return isFunction.test(val);
	    },
	    convertToSource: forceToString,
	    afterConvertToSync: function afterConvertToSync(val) {
	      var fn;
	
	      try {
	        if (!isFunction.test(val)) {
	          throw Error('will be caught immediately');
	        }
	
	        fn = eval('(' + val + ')');
	      } catch (e) {
	        fn = functionDefault;
	      } finally {
	        return fn;
	      }
	    }
	  });
	})(Interface);
	
	Interface.type('regexp').convertToSource = forceToString;

/***/ }),
/* 1072 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	var Interface = __webpack_require__(24);
	var Enumeration = __webpack_require__(33).default;
	var _ = __webpack_require__(7);
	
	Interface.type('html', {
	  defaultValue: '',
	  isOfType: function isOfTypeHMTL(val) {
	    return this.discoverType(val) === 'string';
	  }
	}).type('enum', {
	  convertToSync: function convertToSync(sourceValue, requirement) {
	    var enumeration = requirement.typeDef.isEnumType ? requirement.typeDef : Enumeration.__registered__[requirement.typeDef];
	
	    if (!enumeration) {
	      return undefined;
	    }
	
	    // TODO make this only happen once, it will because it will not be a string afterwards, but it is stupid
	    if (_.isString(requirement.defaultValue)) {
	      requirement.defaultValue = enumeration.get(requirement.defaultValue);
	    }
	
	    return !sourceValue || !enumeration ? undefined : enumeration.get(sourceValue);
	  },
	  isOfType: function verifyTypeEnumeration(val) {
	    return val && val.isEnum;
	  },
	  convertToSource: function enum_convertToSource(sourceProp) {
	    return sourceProp.key;
	  }
	}).type('ordinal', {
	  convertToSync: function convertToSync(sourceValue, requirement) {
	    var enumeration = requirement.typeDef.isEnumType ? requirement.typeDef : Enumeration.__registered__[requirement.typeDef];
	
	    if (sourceValue && sourceValue.ordinal) {
	      sourceValue = sourceValue.ordinal;
	    }
	
	    // TODO make this only happen once, it will because it will not be a string afterwards, but it is stupid
	    if (_.isString(requirement.defaultValue)) {
	      requirement.defaultValue = enumeration.get(requirement.defaultValue);
	    }
	
	    return sourceValue === undefined || enumeration === undefined ? undefined : enumeration.ordinal(sourceValue);
	  },
	  isOfType: function verifyTypeEnumeration(val) {
	    return val && val.isEnum;
	  },
	  convertToSource: function convertToSource(sourceProp) {
	    return sourceProp.ordinal;
	  }
	});

/***/ }),
/* 1073 */
/***/ (function(module, exports, __webpack_require__) {

	/* WEBPACK VAR INJECTION */(function(module) {'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	_.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
	
	/**
	 * A logging utility library based on SLF4J, for trapping/tracking errors, activity messages, and tracking user activity
	 *
	 * @license Copyright (c) 2012-2014 The Advisory Board Company
	 * @global
	 *
	 */
	var Logger = function Logger(id) {
	  window[id] = this;
	  this.id = id;
	};
	
	/**
	 * @lends Logger.prototype
	 */
	Logger.prototype = new function LoggerFn() {
	  // circular reference for adding methods to Logger
	  this.fn = this;
	
	  /**
	   * default configuration values applied one each new log.create() method
	   *
	   * @usage override or add to the configuration of a logger, at any time
	   * @see Logger#configuration
	   *
	   */
	  this.defaults = {
	    serializer: {
	      on: true,
	      charactersBetweenToken: '\t',
	      withoutToStringFailsafe: ''
	    },
	    packager: {
	      parameterMapping: []
	    },
	    logChannels: {
	      INTERNAL: {
	        color: '#000'
	      },
	      TRACE: {
	        color: '#d2d2d4'
	      },
	      LIBRARY: {
	        color: '#000'
	      },
	      DEBUG: {
	        color: '#39E24D'
	      },
	      DEPRECATED: {
	        color: '#000'
	      },
	      INFO: {
	        color: '#0F4FA8'
	      },
	      ISSUE: {
	        color: '#000'
	      },
	      PROBLEM: {
	        color: '#000'
	      },
	      EVENT: {
	        color: '#000'
	      },
	      SUCCESS: {
	        color: '#4FA80F'
	      },
	      WARN: {
	        color: '#FF6A00'
	      },
	      ERROR: {
	        color: '#FF2300'
	      },
	      FATAL: {
	        color: '#DB0058'
	      },
	      UNCAUGHT: {
	        color: '#231212'
	      }
	    },
	    defaultChannel: {
	      priority: undefined,
	      on: true
	    },
	    defaultSync: {
	      activeInitially: false,
	      serialized: true,
	      queued: false,
	      disallow: [],
	      allow: []
	    },
	    defaultQueuedSync: {
	      accumulationLimit: 100,
	      queue: []
	    },
	    codes: {},
	    syncs: {
	      console: {
	        template: _.template('{{ logger }} ({{ channel }}) {{ time }} {{ message }} {{ serialized }}'),
	        activeInitially: true
	      },
	      memory: {
	        queue: [],
	        accumulationLimit: 100,
	        circularIndex: 0,
	        serialized: false,
	        queued: false
	      }
	    },
	    syncsFn: {
	      /**
	       * sync for console
	       *
	       * @param entry object holding message, channel, and logger-id
	       * @param channelDef definition of channel (info, warn, error, ...)
	       */
	      console: function loggerSyncConsole(entry, channelDef) {
	        var consoleMethods = ['trace', 'debug', 'info', 'warn', 'error'],
	            fn = _.contains(consoleMethods, channelDef.id) ? channelDef.id : 'log';
	
	        if (window.console && window.console[fn]) {
	          window.console[fn]('%c' + entry.templatized, 'color:' + channelDef.color);
	        }
	      },
	
	      /**
	       * sync to an array
	       *
	       * @default list in array configuration
	       * @param entry object holding message, channel, and logger-id
	       */
	      memory: function loggerSyncMemory(entry) {
	        var config = this._.configuration.syncs.memory;
	
	        config.queue[config.circularIndex] = entry;
	        config.circularIndex = (config.circularIndex + 1) % config.accumulationLimit;
	      }
	    },
	    syncsQueuedFn: {}
	  };
	
	  /**
	   *
	   * @param additionalFunctions
	   * @returns {Logger}
	   */
	  this.addFunctionality = function addFunctionality_logger(additionalFunctions) {
	    this.fn = _.merge(this.fn, additionalFunctions);
	    return this;
	  };
	
	  /**
	   * create a new logger, for instance for a different purpose or section of the application
	   *
	   * @memberof Logger
	   * @param id name of log object window[id]
	   * @returns {Logger} new log object
	   */
	  this.create = function loggerCreate(id) {
	    return new Logger(id).reset();
	  };
	
	  /**
	   * resets all data for the logger, but persists the configuration object
	   *
	   * @memberof Logger
	   * @see Logger#configure
	   * @returns {Logger}
	   */
	  this.reset = function loggerReset() {
	    this._ = {};
	    this._.on = true;
	    this._.configuration = {};
	    this._.listener = [];
	    this._.listeners = {};
	    this._.syncs = {};
	    this._.entry = undefined;
	    this._.forceSync = false;
	    this._.getChannelName = getChannelName;
	    this._.getChannel = getChannel;
	
	    // use translation codes if you want to build a translation library so your
	    // error messages are shorter and are translated when added to message objects
	    this._.eventCodes = {};
	    this._.eventCodeHierarchy = {};
	
	    this.configure(this._.configuration);
	    return this;
	  };
	
	  /**
	   * @memberof Logger
	   * @return last entry logged
	   */
	  this.entry = function loggerEntry() {
	    return this._.entry;
	  };
	
	  /**
	   * force queue to empty and write to any queued syncs
	   * @returns {Logger}
	   */
	  this.flush = function loggerFlush() {
	    this._.forceSync = true;
	
	    _.each(this._.configuration.syncsQueuedFn, function (queuedSyncFn) {
	      queuedSyncFn.call(this);
	    }, this);
	
	    this._.forceSync = false;
	    return this;
	  };
	
	  /**
	   * configure logger, but overlay the current configuration, instead of erase it like Logger#configure
	   * @deprecated Logger#configurePreserve
	   * @param overlayedConfiguration
	   * @returns {Logger}
	   */
	  this.configurePreserve = function configurePreserve_logger(overlayedConfiguration) {
	    return this.configure(_.merge(this.configuration(), overlayedConfiguration));
	  };
	
	  /**
	   * configure logger, but overlay the current configuration, instead of erase it like Logger#configure
	   * @param updateConfigurationWith
	   * @returns {Logger}
	   */
	  this.update = function update_logger(updateConfigurationWith) {
	    return this.configure(_.merge(this.configuration(), updateConfigurationWith));
	  };
	
	  /**
	   * @memberof Logger
	   * @returns current configuration object for logger
	   */
	  this.configuration = function loggerConfiguration() {
	    return this._.configuration;
	  };
	
	  /**
	   * used for debugging, if the condition is true, nothing happens; if the condition is false, a fatal error
	   * message is sent, and the application fails
	   *
	   * @memberof Logger
	   * @param condition boolean expression
	   * @param message passed off to <logger>.fatal
	   * @returns {Logger}
	   */
	  this.assert = function loggerAssert(condition, message) {
	    if (!condition) {
	      this.fatal(message);
	      throw message;
	    }
	
	    return this;
	  };
	
	  /**
	   * assigns the global#onerror global error handler, there can only be one
	   * the method signature of the global error handler is (msg, url, linenumber)
	   *
	   * @param arg {String|Function} if a string, then it determines the log channel
	   * used to send messages (default:uncaught); if a function, then must return (true/false) to set if the
	   * browser error handling is silent or active and stops execution (true is silent mode)
	   *
	   * @note if a method exists, then a warning is given, but the assign will take place
	   * @memberof Logger
	   * @returns {Logger}
	   */
	  this.global = function loggerGlobal(arg) {
	    var logger = this,
	        channel,
	        fn;
	
	    channel = !!arg && _.isString(arg) ? arg : 'uncaught';
	
	    fn = _.isFunction(arg) ? arg : function loggerOnError(msg, url, linenumber) {
	      logger[channel](msg, {
	        url: url,
	        line: linenumber
	      });
	      return true;
	    };
	
	    if (window.onerror) {
	      throw new EABError('utility-js-log', 100);
	    }
	
	    window.onerror = fn;
	    return this;
	  };
	
	  /**
	   * reconfigure the logger, if a logChannelEnum is removed or added, then the corresponding method will be removed or added
	   *
	   * @memberof Logger
	   * @param configuration override default configuration, at any time, all methods draw from the configuration at runtime
	   * @returns {Logger}
	   */
	  this.configure = function loggerConfigure(configuration) {
	    // remove all log channel functions
	    var existingLogFunctions = this.channels ? this.channels : [];
	
	    _.each(existingLogFunctions, function (channelDef) {
	      delete this[channelDef.id];
	    }, this);
	
	    // update configuration
	    configuration = this._.configuration = _.merge({}, this.defaults, configuration);
	    this.channels = configuration.logChannels;
	
	    assignDefaultLogChannelValues.call(this, this.channels);
	    assignDefaultSyncConfigurations.call(this, configuration.syncs);
	    assignQueuedSyncReconfigurations.call(this, configuration);
	    assignReverseLookupCodeHierarchy.call(this, configuration.codes, []);
	
	    // assign syncs initially
	    this._.syncs = {};
	    _.each(configuration.syncs, function (sync, syncName) {
	      if (sync.activeInitially) {
	        this.addSync(syncName);
	      }
	    }, this);
	
	    _.each(this.channels, function (channelDef) {
	      this._.listeners[channelDef.id] = [];
	    }, this);
	
	    // add log channel functions
	    return createLogFn.call(this);
	  };
	
	  /**
	   * assign default values for channels, useful for limiting code
	   */
	  var assignDefaultLogChannelValues = function assignDefaultLogChannelValues(logChannels) {
	    var i = 0,
	        defaultChannel = this._.configuration.defaultChannel;
	
	    _.each(logChannels, function (channel, key) {
	      channel = _.extend(channel, defaultChannel);
	      channel.id = key.toLowerCase();
	      channel.priority = channel.priority === undefined ? i : channel.priority;
	      i++;
	    });
	  };
	
	  /**
	   * assign default values to sync configurations
	   */
	  var assignDefaultSyncConfigurations = function assignDefaultSyncConfigurations(syncConfigurations) {
	    _.each(syncConfigurations, function (sync) {
	      _.defaults(sync, this.defaultSync);
	    }, this._.configuration);
	
	    syncConfigurations.console.activeInitially = true;
	  };
	
	  /**
	   * re-write any sync functions with the queued override if queued flag is set
	   */
	  var assignQueuedSyncReconfigurations = function assignQueuedSyncReconfigurations(configuration) {
	    _.each(configuration.syncs, function (syncConfig, syncName) {
	      if (syncConfig.queued) {
	        this.syncs[syncName] = _.defaults(syncConfig, this.defaultQueuedSync);
	        this.syncsQueuedFn[syncName] = _.partial(overrideSyncFunctionWithQueuedSync, this.syncsFn[syncName], syncConfig, syncName);
	      }
	    }, configuration);
	  };
	
	  /**
	   * create a reverse lookup for each code that delivers all of the hierarchy used to describe the code
	   *
	   * @param codes codes off of configuration
	   * @param stack track progress to map heirarchy
	   */
	  var assignReverseLookupCodeHierarchy = function assignReverseLookupCodeHierarchy(codes, stack) {
	    _.each(codes, function (code, codeKey) {
	      if (_.isString(code)) {
	        this._.eventCodes[codeKey] = code;
	        this._.eventCodeHierarchy[codeKey] = _.isEmpty(stack) ? stack : _.clone(stack);
	      } else {
	        stack.push(codeKey);
	        assignReverseLookupCodeHierarchy.call(this, code, stack);
	        stack.pop();
	      }
	    }, this);
	  };
	
	  /**
	   * wrap the sync function and call after the accumulation limit for the queue is reached
	   *
	   * @param configuration partially apply configuration for sync
	   * @param syncName partially apply name of sync
	   * @param entry standard syncFn parameter, the entry to sync
	   * @param channelDef not used, but will be passed in
	   *
	   * TODO evaluate if we can assign length to zero or if we should assign new queue for memory sanity, qualification is based on interoperability with worker or async.js library
	   */
	  var overrideSyncFunctionWithQueuedSync = function overrideSyncFunctionWithQueuedSync(originalSyncFn, syncConfiguration, syncName, entry) {
	    if (!!this._.forceSync || syncConfiguration.queue.length >= syncConfiguration.accumulationLimit - 1) {
	      originalSyncFn.call(this, syncConfiguration.queue);
	      syncConfiguration.queue = [];
	    } else {
	      syncConfiguration.queue.push(entry);
	    }
	  };
	
	  /**
	   * add logChannelEnum methods to the logger
	   *
	   * @memberof Logger
	   * @returns {Logger}
	   */
	  var createLogFn = function loggerCreateLogFn() {
	    _.each(this.channels, function (channelDef) {
	      var channel = channelDef.id.toLowerCase();
	
	      this[channel.toUpperCase()] = channel;
	      this[channel] = function logWithPayload(message) {
	        return this._.on && channelDef.on ? logFn.call(this, channelDef, message, this.package.apply(this, Array.prototype.splice.call(arguments, 1))) : this;
	      };
	    }, this);
	
	    return this;
	  };
	
	  /**
	   * the workhorse of the application, each log function programs this function
	   *
	   * @important do not keep a reference to the description object past the life of the event handler or sync
	   * @param channelDef definition of channel (info, warn, error, ...)
	   * @param entry object holding message, channel, and logger-id
	   * @returns {Logger}
	   */
	  var logFn = function hideCommonLogMessage() {
	    var orderedEntry = 0;
	
	    return function loggerLogFn(channelDef, message, payload) {
	      var entry = {};
	      var codedMessage = message;
	      var translationExists = this._.eventCodes[message] !== undefined;
	      var translatedMessage = translationExists ? _.isFunction(this._.eventCodes[message]) ? this._.eventCodes[message](channelDef, message) : this._.eventCodes[message] : message;
	
	      if (translationExists) {
	        entry.code = codedMessage;
	        entry.category = this._.eventCodeHierarchy[entry.code];
	      }
	
	      entry.order = orderedEntry;
	      entry.time = _.now();
	      entry.logger = this.id;
	      entry.channel = channelDef.id;
	      entry.message = translatedMessage;
	      entry.payload = payload;
	
	      orderedEntry += 1;
	
	      this._.entry = entry;
	      logEntryDispatch.call(this, entry);
	      return this;
	    };
	  }();
	
	  /**
	   * send entry to all listeners and dispense to syncs
	   */
	  var logEntryDispatch = function loggerLogEntryDispatch(entry) {
	    dispatchToEventListeners.call(this, entry);
	    dispatchToSyncs.call(this, entry);
	    return this;
	  };
	
	  /**
	   * write entry to all event listeners
	   */
	  var dispatchToEventListeners = function dispatchToEventListeners(entry) {
	    _.each(this._.listener, function (fn) {
	      fn.call(this, entry, entry);
	    }, this);
	
	    _.each(this._.listeners[entry.channel], function (fn) {
	      fn.call(this, entry, entry);
	    }, this);
	  };
	
	  /**
	   * write entry to to all syncs
	   */
	  var dispatchToSyncs = function dispatchToSyncs(entry) {
	    _.each(this._.syncs, function (sync, syncName) {
	      dispatchOneEntry.call(this, sync, syncName, entry);
	    }, this);
	  };
	
	  /**
	   * if should write entry to sync, then serialize data and send to sync
	   */
	  var dispatchOneEntry = function loggerDispatchOneEntry(sync, syncName, entry) {
	    var syncConfig = this._.configuration.syncs[syncName];
	
	    // performance bottleneck - could be asked 100 times; but we need to evaluate for each entry because channel may be blocked
	    if (shouldWrite.call(this, syncName, entry.channel)) {
	      if (!!syncConfig.serialized && !entry.serialized) {
	        entry.serialized = serializePayload.call(this, syncName, entry);
	      }
	
	      if (!!syncConfig.serialized && !!syncConfig.template && !entry.templatized) {
	        entry.templatized = syncConfig.template(entry);
	      }
	
	      sync.call(this, entry, getChannel.call(this, entry.channel));
	    }
	  };
	
	  /**
	   * @param entry entry holds a payload
	   * @returns {String} the payload serialized, or empty if there is no payload
	   */
	  var serializePayload = function loggerSerializePayload(syncName, entry) {
	    var config = this._.configuration;
	
	    return config.serializer.on && config.syncs[syncName].serialized && entry.payload !== undefined ? this.serialize(entry.payload) : '';
	  };
	
	  /**
	   * is channel in the sync's disallow list, if so then we should not write to that sync
	   * is channel in the sync's allow list, if so then we should write to that sync
	   * allow supercedes disallow
	   *
	   * @returns {boolean}
	   */
	  var shouldWrite = function loggerShouldWrite(syncName, channelName) {
	    var syncConfig = this._.configuration.syncs[syncName],
	        hasAllowRules = syncConfig.allow.length > 0,
	        hasDisallowRules = syncConfig.disallow.length > 0;
	
	    if (!hasAllowRules && !hasDisallowRules) {
	      return true;
	    } else if (hasAllowRules && _.contains(syncConfig.allow, channelName)) {
	      return true;
	    } else if (hasAllowRules) {
	      return false;
	    } else if (hasDisallowRules && _.contains(syncConfig.disallow, channelName)) {
	      return false;
	    } else if (hasDisallowRules) {
	      return true;
	    } else {
	      // NOTE never executes; true/true never happens because t/f or f/t catches with a return and f/f is above
	      return false;
	    }
	  };
	
	  /**
	   * erase logger, but the core object is returned so you can use it to create a new object
	   *
	   * @example <caption>build a new logger from the old</caption>
	   * new log.destroy()('logger');
	   * logger.info('use logger now instead of log');
	   *
	   * @memberof Logger
	   * @returns {Logger} core logger function to create a new logger
	   */
	  this.destroy = function loggerDestroy() {
	    window[this.id] = undefined;
	    delete window[this.id];
	    return Logger;
	  };
	
	  /**
	   * serialize an object for string transport
	   *
	   * @memberof Logger
	   * @param token convert one object to a string
	   * @returns {Mixed|*}
	   */
	  this.serialize = function loggerSerializer(token) {
	    var rtn;
	    var config = this._.configuration.serializer;
	
	    try {
	      if (canBeStringified(token)) {
	        rtn = token.toString();
	      } else if (JSON) {
	        rtn = JSON.stringify(token, null, config.charactersBetweenToken);
	      } else if (_.isFunction(config.withoutToStringFailsafe)) {
	        rtn = config.withoutToStringFailsafe(token);
	      } else {
	        rtn = config.withoutToStringFailsafe;
	      }
	    } catch (e) {
	      throw new EABError('utility-js-log', 200, {
	        error: e,
	        token: token
	      });
	    } finally {
	      return rtn;
	    }
	  };
	
	  /**
	   * will toString work on an object
	   *
	   * @param o the string to inspect
	   * @return {Boolean} true if o.toString() will work
	   */
	  var canBeStringified = function canBeStringified(o) {
	    return o !== undefined && o !== null && !_.isPlainObject(o) && !_.isArray(o) && o.toString && o.toString() !== '[object Object]';
	  };
	
	  /**
	   * collect all parameters given to a log function and coalesce them into one object, referred to as a payload
	   *
	   * @memberof Logger
	   * @returns {PlainObject}
	   */
	  this.package = function loggerPackager() {
	    var packaged, mapping;
	    var args = Array.prototype.slice.apply(arguments);
	
	    if (args.length === 0) {
	      return undefined;
	    } else if (args.length === 1) {
	      return args[0];
	    }
	
	    // TODO split this off into a different function
	
	    packaged = {};
	    mapping = this._.configuration.packager.parameterMapping;
	
	    _.each(args, function (o, i) {
	      var key = mapping.length > i ? mapping[i] : 'p' + i;
	
	      packaged[key] = o;
	    }, this);
	
	    return packaged;
	  };
	
	  /**
	   * filters messages based on string or regular expressions, for
	   * example if messages are coded C0XXX and C1XXX and you want to
	   * filter with a regular expression only C1*** messages
	   *
	   * @memberof Logger
	   * @param ifExistsInMessageThenAllow if this pattern or string exists in a message, then allow the function call
	   * @param fn the callback function to be called if the first parameter matches
	   */
	  this.only = function loggerOnly(ifExistsInMessageThenAllow, fn) {
	    return function filteredLogHandler(entry) {
	      var doesNotExistInMessage;
	      var NO_MATCH = -1;
	
	      if (ifExistsInMessageThenAllow) {
	        doesNotExistInMessage = entry.message && entry.message.search(ifExistsInMessageThenAllow) === NO_MATCH;
	        doesNotExistInMessage = doesNotExistInMessage && entry.code && entry.code.search(ifExistsInMessageThenAllow) === NO_MATCH;
	        if (doesNotExistInMessage) {
	          return false;
	        }
	      }
	
	      fn(entry);
	      return true;
	    };
	  };
	
	  /**
	   * sets the lowest channel to include in logging
	   * (trace, debug, info, warn, error, fatal)
	   *
	   * @memberof Logger
	   * @param channel enum or id string ('warn', ...)
	   * @returns {Logger}
	   */
	  this.lowest = function loggerLowest(channel, sync) {
	    var lowestChannelOrdinal = getChannel.call(this, channel).priority;
	
	    _.each(_.filter(this.channels, function filterOutChannels(channelDef) {
	      return channelDef.priority < lowestChannelOrdinal;
	    }, this), function turnChannelsOff(channelDef) {
	      this.disable(channelDef.id, sync);
	    }, this);
	
	    return this;
	  };
	
	  /**
	   * sets the highest channel to include in logging
	   * (trace, debug, info, warn, error, fatal)
	   *
	   * @memberof Logger
	   * @param channel enum or id string ('warn', ...)
	   * @returns {Logger}
	   */
	  this.highest = function loggerHighest(channel, sync) {
	    var highestChannelOrdinal = getChannel.call(this, channel).priority;
	
	    _.each(_.filter(this.channels, function filterOutChannels(channelDef) {
	      return channelDef.priority > highestChannelOrdinal;
	    }, this), function turnChannelsOff(channelDef) {
	      this.disable(channelDef.id, sync);
	    }, this);
	
	    return this;
	  };
	
	  /**
	   * query status of a logger, a channel, or a channel against a sync
	   *
	   * @memberof Logger
	   * @param channel enum or id string ('warn', ...)
	   * @param sync (optional) enable this channel for just one sync, it will not enable the channel
	   * @returns {boolean} true if channel is enabled
	   */
	  this.enabled = function loggerEnabled(channel, sync) {
	    if (arguments.length === 0) {
	      return this._.on === true;
	    } else if (sync === undefined) {
	      return getChannel.call(this, channel).on === true;
	    } else {
	      return querySyncChannelPermissions.call(this, channel, sync, 'allow');
	    }
	  };
	
	  /**
	   * set this channel, so if we call log.<channel>('message') then it will output to syncs
	   *
	   * @memberof Logger
	   * @param channel enum or id string ('warn', ...)
	   * @param sync (optional) enable this channel for just one sync, it will not enable the channel
	   * @returns {Logger}
	   */
	  this.enable = function loggerEnable(channel, sync) {
	    if (arguments.length === 0) {
	      this._.on = true;
	    } else if (sync === undefined) {
	      getChannel.call(this, channel).on = true;
	    } else {
	      syncEnableForChannel.call(this, channel, sync);
	    }
	
	    return this;
	  };
	
	  /**
	   * enable that a log channel should be allowed to access a sync;
	   * the sync must be active and added and the log channel must also be active
	   */
	  var syncEnableForChannel = function loggerSyncEnableForChannel(channel, sync) {
	    return alterSyncChannelPermissions.call(this, channel, sync, 'allow', 'disallow');
	  };
	
	  /**
	   * query status of a logger, a channel, or a channel against a sync
	   *
	   * @memberof Logger
	   * @param channel enum or id string ('warn', ...)
	   * @param sync (optional) enable this channel for just one sync, it will not enable the channel
	   * @returns {boolean} true if channel is disabled
	   */
	  this.disabled = function disabled_logger(channel, sync) {
	    if (arguments.length === 0) {
	      return this._.on === false;
	    } else if (sync === undefined) {
	      return getChannel.call(this, channel).on === false;
	    } else {
	      return querySyncChannelPermissions.call(this, channel, sync, 'disallow');
	    }
	  };
	
	  /**
	   * set this channel, so if we call log.<channel>('message') then it will NOT output to syncs
	   *
	   * @memberof Logger
	   * @param channel enum or id string ('warn', ...)
	   * @param sync (optional) disable this channel for just one sync, it will not disable the channel
	   * @returns {Logger}
	   */
	  this.disable = function loggerDisable(channel, sync) {
	    if (arguments.length === 0) {
	      this._.on = false;
	    } else if (sync === undefined) {
	      getChannel.call(this, channel).on = false;
	    } else {
	      syncDisableForChannel.call(this, channel, sync);
	    }
	
	    return this;
	  };
	
	  /**
	   * disable that a log channel should be allowed to access a sync;
	   * even if the sync must be active and added and the log channel must also be active
	   */
	  var syncDisableForChannel = function loggerSyncDisableForChannel(channel, sync) {
	    return alterSyncChannelPermissions.call(this, channel, sync, 'disallow', 'allow');
	  };
	
	  /**
	   * supports matching sync-channel permissions
	   *
	   * @see Logger#enabled
	   * @see Logger#disabled
	   * @param channel
	   * @param sync
	   * @returns {boolean}
	   */
	  var querySyncChannelPermissions = function querySyncChannelIsAllowed_logger(channel, sync, permission) {
	    var syncConfiguration = this._.configuration.syncs[sync];
	    var isAllowed = permission === 'allow';
	
	    return isAllowed === _.contains(syncConfiguration.allow, channel) && isAllowed !== _.contains(syncConfiguration.disallow, channel);
	  };
	
	  /**
	   * called by syncDisableForChannel or syncEnableForChannel to manage the allow and disallow lists
	   * @param addTo either disallow or allow array
	   * @param removeFrom opposite of addTo
	   */
	  var alterSyncChannelPermissions = function alterSyncChannelPermissions(channel, sync, addTo, removeFrom) {
	    var index;
	    var syncConfiguration = this._.configuration.syncs[sync];
	
	    // add to disallow
	    if (syncConfiguration[addTo].indexOf(channel) === -1) {
	      syncConfiguration[addTo].push(channel);
	    }
	
	    // erase from allow
	    index = syncConfiguration[removeFrom].indexOf(channel);
	    syncConfiguration[removeFrom].splice(index, 1);
	
	    return this;
	  };
	
	  /**
	   * register a method to be called for log messages of a certain channel or all log messages if no channel if provided
	   *
	   * @memberof Logger
	   * @param channel enum or id string ('warn', ...)
	   * @param fn function to call when this logger is called
	   * @returns {Logger}
	   */
	  this.on = function loggerOn(channel, fn) {
	    if (fn === undefined) {
	      return onAnyChannel.call(this, channel);
	    }
	
	    _.each(channel.split(' '), function (ch) {
	      onChannel.call(this, ch, fn);
	    }, this);
	
	    return this;
	  };
	
	  /**
	   * add listener to specific channel
	   */
	  var onAnyChannel = function onAnyChannel(fn) {
	    this._.listener.push(fn);
	    return this;
	  };
	
	  /**
	   * add listener to any channel
	   */
	  var onChannel = function onChannel(channel, fn) {
	    var channelName = getChannelName(channel);
	
	    if (!_.isArray(this._.listeners[channelName])) {
	      throw new EABError('utility-js-log', 300, {
	        channelName: channelName
	      });
	    }
	
	    this._.listeners[channelName].push(fn);
	    return this;
	  };
	
	  /**
	   * unregister all listeners or just one listener if provided
	   *
	   * @memberof Logger
	   * @param channel enum or id string ('warn', ...)
	   * @param fn function to call when this logger is called
	   * @returns {Logger}
	   */
	  this.off = function loggerOff(channel, fn) {
	    if (fn === undefined) {
	      return offAnyChannel.call(this, channel);
	    }
	
	    _.each(channel.split(' '), function (ch) {
	      offChannel.call(this, ch, fn);
	    }, this);
	
	    return this;
	  };
	
	  /**
	   * remove listener from specific channel
	   */
	  var offAnyChannel = function offAnyChannel(fn) {
	    if (fn !== undefined) {
	      _.remove(this._.listener, fn);
	    } else {
	      this._.listener = [];
	    }
	
	    return this;
	  };
	
	  /**
	   * remove listener to any channel
	   */
	  var offChannel = function offChannel(channel, fn) {
	    _.remove(this._.listeners[getChannelName(channel)], fn);
	  };
	
	  /**
	   * assign a sync that will intercept all active messages, intended to write the messages to another source
	   *
	   * @memberof Logger
	   * @default console
	   * @param sync string (ie. 'session') or a function with the signature (<channelDef>, <aboutMessage>)
	   * @returns {Logger}
	   */
	  this.addSync = function loggerSyncAdd(sync, customFn) {
	    var syncConfig = this._.configuration.syncs[sync] = this._.configuration.syncs[sync] || _.clone(this._.configuration.defaultSync);
	
	    if (_.isFunction(customFn)) {
	      this._.syncs[sync] = customFn;
	    } else if (syncConfig.queued) {
	      this._.syncs[sync] = this._.configuration.syncsQueuedFn[sync];
	    } else {
	      this._.syncs[sync] = this._.configuration.syncsFn[sync];
	    }
	
	    return this;
	  };
	
	  /**
	   * remove a sync previously added
	   *
	   * @memberof Logger
	   * @returns {Logger}
	   */
	  this.removeSync = function loggerSyncRemove(sync) {
	    delete this._.syncs[sync];
	    return this;
	  };
	
	  /**
	   *
	   * @memberof Logger
	   * @returns current configuration object for sync
	   */
	  this.configurationOfSync = function loggerConfigurationOfSync(syncName) {
	    return this._.configuration.syncs[syncName];
	  };
	
	  /**
	   * apply event codes to configuration or retrieve codes
	   *
	   * @param codeObject if not undefined, then apply codes to configuration
	   * @returns {Logger}
	   */
	  this.codes = function codes_logger(codeObject) {
	    if (!!codeObject) {
	      return this.update({
	        codes: codeObject
	      });
	    }
	
	    return this._.eventCodes;
	  };
	
	  /**
	   * return the channel name of a channel enum
	   *
	   * @param channel enum or id string ('warn', ...)
	   * @returns {string}
	   */
	  var getChannelName = function GetChannelName_logger(channel) {
	    return channel.toLowerCase();
	  };
	
	  /**
	   * return the channel Enumeration of a channel enum
	   *
	   * @param channel enum or id string ('warn', ...)
	   * @returns {string}
	   */
	  var getChannel = function GetChannel_logger(channel) {
	    return this._.configuration.logChannels[channel.toUpperCase()];
	  };
	}();
	
	var log = new Logger('log').reset();
	
	if (( false ? 'undefined' : _typeof(module)) === 'object' && module.exports) {
	  module.exports = log;
	} else {
	  window.log = log;
	}
	/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(38)(module)))

/***/ }),
/* 1074 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(12);
	
	var UtilityJsWebcrypto = function UtilityJsWebcrypto(config) {
	  if (!(this instanceof UtilityJsWebcrypto)) {
	    return new UtilityJsWebcrypto();
	  }
	
	  var webcrypto = window.crypto || window.msCrypto || window.webkitCrypto || window.mozCrypto;
	  var subtle = webcrypto.subtle || webcrypto.msSubtle || webcrypto.webkitSubtle || webcrypto.mozSubtle;
	  var webCryptoKey;
	  var arrayBufferStorage;
	  var seeded = false;
	  var DEFAULT = {
	    algo: {
	      name: 'AES-GCM',
	      length: 256
	    },
	    exportType: 'jwk',
	    exportableKey: true,
	    cryptoAllowedFunctions: ['encrypt', 'decrypt'],
	    generateOptions: function generateOptions(seed) {
	      return {
	        kty: 'oct',
	        k: seed,
	        alg: 'A256GCM',
	        ext: true
	      };
	    },
	    generateEncryption: function generateEncryption() {
	      return {
	        name: 'AES-GCM',
	        iv: arrayBufferStorage
	      };
	    }
	  };
	
	  var transformToString = function transformToString(nonString) {
	    if (_.isString(nonString)) {
	      return nonString;
	    }
	    if (_.isArray(nonString)) {
	      return nonString.toString();
	    }
	    if (_.isObject(nonString)) {
	      return JSON.stringify(nonString);
	    }
	  };
	
	  //web crypto require array buffers to work, so these functions are helpers
	  var arrayBufferToString = function arrayBufferToString(buf) {
	    if (_.isNull(buf) || _.isUndefined(buf)) {
	      return buf;
	    }
	    return String.fromCharCode.apply(null, new Uint16Array(buf));
	  };
	
	  var stringToArrayBuffer = function stringToArrayBuffer(str) {
	    if (_.isNull(str) || _.isUndefined(str)) {
	      return str;
	    }
	    var buf = new ArrayBuffer(str.length * 2); // 2 bytes for each char
	    var bufView = new Uint16Array(buf);
	    for (var i = 0, strLen = str.length; i < strLen; i++) {
	      bufView[i] = str.charCodeAt(i);
	    }
	    return buf;
	  };
	
	  var randomCharCodeGenerator = function randomCharCodeGenerator(multiplier) {
	    if (_.isUndefined(multiplier)) {
	      multiplier = 260; // 260 = 256 (encoding) + 4 (character change in the cipher)
	    }
	    return Math.round(Math.random() * multiplier);
	  };
	
	  var simpleCipherSeed = function simpleCipherSeed(unObfuscatedSeed) {
	    var cipher = [[], []];
	    var saltNum;
	    var x, i;
	
	    /*
	     * saltNum becomes the key to decipher the seed and the buffer
	     * around the actual seed. So we store it as the first number in the second array
	     */
	    saltNum = randomCharCodeGenerator();
	    cipher[0].push(randomCharCodeGenerator());
	    cipher[1].push(saltNum);
	
	    saltNum = saltNum % 26;
	
	    //pad the arrays
	    for (x = 0; x < saltNum - 1; x++) {
	      cipher[0].push(randomCharCodeGenerator());
	      cipher[1].push(randomCharCodeGenerator());
	    }
	
	    //shuffle loop
	    for (i = 0, strLen = unObfuscatedSeed.length; i < strLen; i++) {
	      var seedChar = unObfuscatedSeed.charCodeAt(i);
	      var dummyChar = randomCharCodeGenerator();
	
	      //if this number is odd, add 2, if even, add 4
	      !(seedChar % 2) ? seedChar += 2 : seedChar += 4;
	
	      //alternate arrays for each seed character
	      if (i % 2 === 0) {
	        cipher[0].push(seedChar);
	        cipher[1].push(dummyChar);
	      } else {
	        cipher[0].push(dummyChar);
	        cipher[1].push(seedChar);
	      }
	    }
	
	    //pad the arrays
	    for (x = 0; x < saltNum; x++) {
	      cipher[0].push(randomCharCodeGenerator());
	      cipher[1].push(randomCharCodeGenerator());
	    }
	
	    cipher = cipher[0].concat(cipher[1]);
	    return cipher;
	  };
	
	  var simpleDecipherSeed = function simpleDecipherSeed(obfuscatedSeed) {
	    obfuscatedSeed = obfuscatedSeed.split(',');
	
	    var brokenUpSeed = [[], []];
	    var decipheredSeed = '';
	    var test = obfuscatedSeed.splice(obfuscatedSeed.length / 2);
	    var saltNum = test[0] % 26;
	    var arrayLen = obfuscatedSeed.length - 2 * saltNum;
	
	    obfuscatedSeed.splice(0, saltNum);
	    brokenUpSeed[0] = obfuscatedSeed.splice(0, arrayLen);
	
	    test.splice(0, saltNum);
	    brokenUpSeed[1] = test.splice(0, arrayLen);
	
	    for (var i = 0, strLen = brokenUpSeed[0].length; i < strLen; i++) {
	      var arrayToLookAt = i % 2;
	      var seedChar = brokenUpSeed[arrayToLookAt][i];
	
	      !(seedChar % 2) ? seedChar -= 2 : seedChar -= 4;
	
	      decipheredSeed += String.fromCharCode(seedChar);
	    }
	
	    return decipheredSeed;
	  };
	
	  var exportWebcyrptoKey = function exportWebcyrptoKey() {
	    return subtle.exportKey(DEFAULT.exportType, webCryptoKey).then(function (keydata) {
	      arrayBufferStorage = stringToArrayBuffer(keydata.k);
	      return simpleCipherSeed(keydata.k);
	    }).catch(function (err) {
	      return err;
	    });
	  };
	
	  var generateNewKey = function generateNewKey() {
	    return subtle.generateKey(DEFAULT.algo, DEFAULT.exportableKey, DEFAULT.cryptoAllowedFunctions).then(function (key) {
	      webCryptoKey = key;
	      return exportWebcyrptoKey();
	    }).catch(function (err) {
	      return err;
	    });
	  };
	
	  var regenerateKeyFromSeed = function regenerateKeyFromSeed(seed) {
	    seed = simpleDecipherSeed(seed);
	
	    return subtle.importKey(DEFAULT.exportType, DEFAULT.generateOptions(seed), { name: DEFAULT.algo.name }, DEFAULT.exportableKey, DEFAULT.cryptoAllowedFunctions).then(function (keydata) {
	      webCryptoKey = keydata;
	      return exportWebcyrptoKey();
	    }).catch(function (err) {
	      return err;
	    });
	  };
	
	  this.getKeySeed = function getKeySeed() {
	    return exportWebcyrptoKey();
	  };
	
	  this.encrypt = function encrypt(string) {
	    if (!_.isString(string)) {
	      string = transformToString(string);
	    }
	
	    var stringAB = stringToArrayBuffer(string);
	    return subtle.encrypt(DEFAULT.generateEncryption(), webCryptoKey, stringAB).then(function (encrypted) {
	      return arrayBufferToString(encrypted);
	    }).catch(function (err) {
	      return err;
	    });
	  };
	
	  this.decrypt = function decrypt(encryptedString) {
	    var encryptedAB = stringToArrayBuffer(encryptedString);
	    return subtle.decrypt(DEFAULT.generateEncryption(), webCryptoKey, encryptedAB).then(function (decryptedAB) {
	      return arrayBufferToString(decryptedAB);
	    }).catch(function (err) {
	      return err;
	    });
	  };
	
	  this.seed = function seed(string) {
	    if ((_.isUndefined(string) || _.isNull(string) || _.isEmpty(string)) && !seeded) {
	      seeded = true;
	      return generateNewKey();
	    } else if (!seeded) {
	      seeded = true;
	      return regenerateKeyFromSeed(string);
	    } else {
	      throw "I've already been seeded";
	    }
	  };
	
	  this.isSeeded = function isSeeded() {
	    return seeded;
	  };
	}; /**
	    * @utility-js-webcrypto
	    */
	
	
	module.exports = UtilityJsWebcrypto;

/***/ }),
/* 1075 */
/***/ (function(module, exports) {

	'use strict';
	
	/**
	 * @what set the default route (should be /oops/) and ?
	 * @why make sure that if there are any issues with routing to the wrong place we can provide meaningful messages
	 */
	angular.module('utility-ng-configuration').provider('ConsistentPageConfiguration', function () {
	  var DEFAULTS = {
	    pageName: undefined,
	    pageClassName: undefined,
	    previousRoute: undefined,
	    classPrefix: 'view'
	  };
	
	  var configuration = _.merge({}, DEFAULTS);
	
	  var configure = this.configure = function configure_ConsistentPageConfiguration(userConfig) {
	    if (!!userConfig) {
	      configuration = _.merge({}, DEFAULTS, userConfig);
	    }
	
	    return configuration;
	  };
	
	  this.activate = function activate_ConsistentPageConfiguration() {
	    throw new EABError('utility-ng-configuration', 101);
	  };
	
	  this.$get = function ($rootScope, $state) {
	    return {
	      configure: function configuration_ConsistentPageConfiguration(userConfig) {
	        return configure(userConfig);
	      },
	      activate: function activate_ConsistentPageConfiguration(userConfig) {
	        $state.__previousRoutes__ = [];
	        $state.__shouldSavePreviousRoute__ = true;
	        $state.__goToPrevious__ = function __goToPrevious__ConsistentPageConfiguration() {
	          var lastState = $state.__previousRoutes__.pop();
	          $state.__shouldSavePreviousRoute__ = false;
	          return $state.go(lastState.state.name, lastState.params);
	        };
	
	        if (!!userConfig) {
	          this.configure(userConfig);
	        }
	
	        $rootScope.$on('$stateChangeSuccess', function (event, toState, toParams, fromState, fromParams, error) {
	          configuration.pageClassName = configuration.classPrefix + '-' + toState.name.toLowerCase().replace(/\./g, '-');
	          configuration.pageName = !!toState.data && _.size(toState.data.viewTitle) > 0 ? toState.data.viewTitle : _.reduce(toState.name.toLowerCase().replace(/-/g, ' ').replace(/\./g, ' ').split(' '), function (S, str) {
	            return S + _.capitalize(str) + ' ';
	          }, '');
	
	          configuration.previousRoute = {
	            state: fromState,
	            params: fromParams
	          };
	
	          $rootScope.__pageName__ = configuration.pageName;
	          if ($state.__shouldSavePreviousRoute__) {
	            $state.__previousRoute__ = configuration.previousRoute;
	            $state.__previousRoutes__.push(configuration.previousRoute);
	          }
	          $state.__shouldSavePreviousRoute__ = true;
	          angular.element('body').attr('class', configuration.classPrefix).addClass(configuration.pageClassName);
	        });
	      }
	    };
	  };
	});

/***/ }),
/* 1076 */
/***/ (function(module, exports) {

	'use strict';
	
	/**
	 * @what set the default route (should be /oops/) and ?
	 * @why make sure that if there are any issues with routing to the wrong place we can provide meaningful messages
	 */
	angular.module('utility-ng-configuration').provider('ConsistentRouteConfiguration', function ($urlRouterProvider) {
	  var configuration;
	  var DEFAULTS = {
	    faultRoute: '/support/'
	  };
	
	  var configure = this.configure = function configure_ConsistentRouteConfiguration(userConfig) {
	    if (!!userConfig) {
	      configuration = _.merge({}, DEFAULTS, userConfig);
	    }
	
	    return configuration;
	  };
	
	  this.activate = function activate_ConsistentRouteConfiguration(userConfig) {
	    this.configure(userConfig);
	
	    $urlRouterProvider.otherwise(configuration.faultRoute).rule(function ($injector, $location) {
	      var $_location = $location,
	          path = $_location.path(),
	          search = $_location.search(),
	          params;
	
	      if (path[path.length - 1] === '/') {
	        return '';
	      }
	
	      if (Object.keys(search).length === 0) {
	        return path + '/';
	      }
	
	      params = _.map(search, function (v, k) {
	        return k + '=' + v;
	      });
	
	      return path + '/?' + params.join('&');
	    });
	
	    return configuration;
	  };
	
	  this.$get = function () {
	    return {
	      configure: configure
	    };
	  };
	});

/***/ }),
/* 1077 */
/***/ (function(module, exports) {

	'use strict';
	
	/**
	 * @what manipulate the system (js engine)
	 * @why important for global errors
	 */
	angular.module('utility-ng-configuration').provider('FaultToleranceConfiguration', function FaultToleranceConfigurationProvider(log, $provide) {
	  var configuration;
	  var DEFAULTS = {
	    captureErrors: false,
	    failFast: false
	  };
	
	  var configure = this.configure = function configuration__FaultToleranceConfiguration(userConfig) {
	    if (!!userConfig) {
	      configuration = _.merge({}, DEFAULTS, userConfig);
	    }
	
	    return configuration;
	  };
	
	  this.activate = function activate_FaultToleranceConfiguration(userConfig) {
	    this.configure(userConfig);
	
	    if (!!angular && !!configuration.captureErrors) {
	      return;
	    }
	
	    $provide.decorator('$exceptionHandler', ['$delegate', function ($delegate) {
	      return function (exception, cause) {
	        $delegate(exception, cause);
	
	        if (_.isFunction(log.fatal)) {
	          log.system.fatal(exception.message, cause);
	        }
	
	        if (!!configuration.failFast && EABError) {
	          EABError.FAIL('application', 105, {
	            message: exception.message,
	            cause: cause
	          });
	        }
	      };
	    }]);
	
	    return configuration;
	  };
	
	  this.$get = function () {
	    return {};
	  };
	});

/***/ }),
/* 1078 */
/***/ (function(module, exports) {

	'use strict';
	
	/**
	 * @what intercepts log.user requests and sends them to a user-notification
	 * @why easy notifications to the user
	 */
	angular.module('utility-ng-configuration').provider('NotificationConfiguration', function NotificationConfigurationProvider() {
	  var DEFAULTS = {
	    notificationHandle: 'user-notification',
	    notificationChannels: ['info', 'success', 'warn', 'error']
	  };
	
	  this.$get = function (log, phxNotificationDelegate) {
	    var configuration = _.merge({}, DEFAULTS);
	
	    return {
	      configure: function configure_NotificationConfiguration(userConfig) {
	        if (!!userConfig) {
	          configuration = _.merge({}, DEFAULTS, userConfig);
	        }
	        return configuration;
	      },
	      activate: function activate_NotificationConfiguration(userConfiguration) {
	        var userNotificationDelegate;
	
	        if (!!userConfiguration) {
	          this.configure(userConfiguration);
	        }
	
	        userNotificationDelegate = phxNotificationDelegate.restrictTo(configuration.notificationHandle);
	
	        _.each(configuration.notificationChannels, function (logChannel) {
	          this.on(logChannel, function (event) {
	            userNotificationDelegate[event.channel](event.message);
	          });
	        }, log.user);
	      }
	    };
	  };
	});

/***/ }),
/* 1079 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	var _ = __webpack_require__(7);
	var angular = __webpack_require__(29);
	__webpack_require__(64);
	
	angular.module('utility-ng-interface').factory('ArrayListBuilder', function ArrayListBuilderDefinition($injector) {
	  return function ArrayListBuilder(list, builder) {
	    builder = _.isString(builder) ? $injector.get(builder) : builder;
	
	    return _.map(list, function (o) {
	      return new this(o);
	    }, builder);
	  };
	});

/***/ }),
/* 1080 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	var _ = __webpack_require__(7);
	var angular = __webpack_require__(29);
	__webpack_require__(64);
	
	angular.module('utility-ng-interface').factory('ObjectListBuilder', function ObjectListBuilderDefinition(ArrayListBuilder) {
	  return function ObjectListBuilder(list, builder) {
	    return _.zipObject(_.keys(list), ArrayListBuilder(list, builder));
	  };
	});

/***/ }),
/* 1081 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	var _ = __webpack_require__(7);
	var angular = __webpack_require__(29);
	__webpack_require__(64);
	
	angular.module('utility-ng-interface').run(function (Interface, $injector) {
	  Interface.type('builder', {
	    defaultValue: function defaultValue() {
	      return {};
	    },
	    convertToSource: function convertBackToCollection(syncProp, req) {
	      var fn = this[this.activeMethod];
	      return fn.call(this, req.typeDef, syncProp);
	    },
	    afterConvertToSync: function afterConvertToSync(sourceProp, dtdReq) {
	      var Builder = $injector.get(dtdReq.typeDef);
	
	      return new Builder(sourceProp);
	    },
	    isOfType: function verifyTypeFactory(val) {
	      return !_.isNull(val) && !_.isUndefined(val) && _.isObject(val);
	    }
	  });
	
	  Interface.type('ngDefinition', Interface.type('builder'));
	});

/***/ }),
/* 1082 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	var _ = __webpack_require__(7);
	var angular = __webpack_require__(29);
	__webpack_require__(64);
	
	angular.module('utility-ng-interface').run(function (Interface, $injector) {
	  Interface.type('ngArray', {
	    defaultValue: function defaultValue() {
	      return [];
	    },
	    convertToSource: function convertBackToArray(syncProp, req) {
	      return _.map(syncProp, function (obj) {
	        var fn = this[this.activeMethod];
	        return fn.call(this, req.typeDef, obj);
	      }, this);
	    },
	    convertToSync: function convertToSync(sourceProp, req, source, sync, isRequired) {
	      if (!isRequired && _.isUndefined(sourceProp)) {
	        return sourceProp;
	      }
	
	      var Builder = _.isString(req.typeDef) ? $injector.get(req.typeDef) : req.typeDef;
	
	      return _.map(sourceProp, function (obj, key) {
	        return new Builder(obj);
	      });
	    },
	    isOfType: function verifyTypeFactory(val) {
	      return !_.isNull(val) && !_.isUndefined(val) && _.isArray(val);
	    }
	  }).type('ngObject', {
	    defaultValue: function defaultValue() {
	      return {};
	    },
	    convertToSource: function convertBackToArray(syncProp, req) {
	      return _.zipObject(_.keys(syncProp), _.map(syncProp, function (obj) {
	        var fn = this[this.activeMethod];
	        return fn.call(this, req.typeDef, obj);
	      }, this));
	    },
	    convertToSync: function convertToSync(sourceProp, req, source, sync, isRequired) {
	      if (!isRequired && _.isUndefined(sourceProp)) {
	        return sourceProp;
	      }
	
	      var Builder = _.isString(req.typeDef) ? $injector.get(req.typeDef) : req.typeDef;
	
	      _.each(sourceProp, function (obj, key, o) {
	        o[key] = Builder ? new Builder(obj) : obj;
	      });
	
	      return sourceProp;
	    },
	    isOfType: function verifyTypeFactory(val) {
	      return !_.isNull(val) && !_.isUndefined(val) && _.isObject(val);
	    }
	  });
	});

/***/ }),
/* 1083 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	var _ = __webpack_require__(7);
	var angular = __webpack_require__(29);
	__webpack_require__(64);
	
	angular.module('utility-ng-interface').run(function (Interface, $injector) {
	  Interface.type('ngEnum', _.clone(Interface.type('enum')));
	  Interface.type('ngOrdinal', _.clone(Interface.type('ordinal')));
	
	  Interface.type('ngEnum').convertToSync = function (sourceValue, requirement) {
	    requirement.typeDef = !!requirement.typeDef.isEnumType ? requirement.typeDef : $injector.get(requirement.typeDef);
	
	    return Interface.type('enum').convertToSync(sourceValue, requirement);
	  };
	
	  Interface.type('ngOrdinal').convertToSync = function (sourceValue, requirement) {
	    requirement.typeDef = !!requirement.typeDef.isEnumType ? requirement.typeDef : $injector.get(requirement.typeDef);
	
	    return Interface.type('ordinal').convertToSync(sourceValue, requirement);
	  };
	});

/***/ }),
/* 1084 */
/***/ (function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(module) {'use strict';
	
	var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
	
	!function (e, t) {
	  'object' == ( false ? 'undefined' : _typeof(exports)) && 'object' == ( false ? 'undefined' : _typeof(module)) ? module.exports = t(__webpack_require__(29)) :  true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(29)], __WEBPACK_AMD_DEFINE_FACTORY__ = (t), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : 'object' == (typeof exports === 'undefined' ? 'undefined' : _typeof(exports)) ? exports.angularCacheModuleName = t(require('angular')) : e.angularCacheModuleName = t(e.angular);
	}(undefined, function (e) {
	  return function (e) {
	    function t(i) {
	      if (r[i]) return r[i].exports;
	      var n = r[i] = { exports: {}, id: i, loaded: !1 };
	      return e[i].call(n.exports, n, n.exports, t), n.loaded = !0, n.exports;
	    }
	    var r = {};
	    return t.m = e, t.c = r, t.p = '', t(0);
	  }([function (e, t, r) {
	    function i(e, t, r) {
	      for (var i = e[r], n = t(i); r > 0;) {
	        var s = Math.floor((r + 1) / 2) - 1,
	            o = e[s];
	        if (n >= t(o)) break;
	        e[s] = i, e[r] = o, r = s;
	      }
	    }
	    var n = function n(e) {
	      return e && e.__esModule ? e['default'] : e;
	    },
	        s = function s(e, t) {
	      if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function');
	    },
	        o = n(r(1)),
	        a = function a(e) {
	      var t = [],
	          r = void 0;
	      for (r in e) {
	        e.hasOwnProperty(r) && t.push(r);
	      }return t;
	    },
	        c = function c(e) {
	      return e && 'function' == typeof e.then;
	    },
	        l = function l(e) {
	      return o.isNumber(e) ? e.toString() : e;
	    },
	        u = function u(e) {
	      var t,
	          r = {};
	      for (t in e) {
	        e.hasOwnProperty(t) && (r[t] = t);
	      }return r;
	    },
	        h = function h(e, t, r) {
	      for (var i = e.length, n = e[r], s = t(n);;) {
	        var o = 2 * (r + 1),
	            a = o - 1,
	            c = null;
	        if (i > a) {
	          var l = e[a],
	              u = t(l);
	          s > u && (c = a);
	        }
	        if (i > o) {
	          var h = e[o],
	              f = t(h);
	          f < (null === c ? s : t(e[a])) && (c = o);
	        }
	        if (null === c) break;
	        e[r] = e[c], e[c] = n, r = c;
	      }
	    },
	        f = function m(e, t) {
	      var r = this;
	      if (s(this, m), e || (e = function e(_e) {
	        return _e;
	      }), t || (t = function t(e, _t) {
	        return e === _t;
	      }), 'function' != typeof e) throw new Error('BinaryHeap([weightFunc][, compareFunc]): "weightFunc" must be a function!');
	      if ('function' != typeof t) throw new Error('BinaryHeap([weightFunc][, compareFunc]): "compareFunc" must be a function!');
	      this.weightFunc = e, this.compareFunc = t, this.heap = [], this.push = function (e) {
	        r.heap.push(e), i(r.heap, r.weightFunc, r.heap.length - 1);
	      }, this.peek = function () {
	        return r.heap[0];
	      }, this.pop = function () {
	        var e = r.heap[0],
	            t = r.heap.pop();
	        return r.heap.length > 0 && (r.heap[0] = t, h(r.heap, r.weightFunc, 0)), e;
	      }, this.remove = function (e) {
	        for (var t = r.heap.length, n = 0; t > n; n++) {
	          if (r.compareFunc(r.heap[n], e)) {
	            var s = r.heap[n],
	                o = r.heap.pop();
	            return n !== t - 1 && (r.heap[n] = o, i(r.heap, r.weightFunc, n), h(r.heap, r.weightFunc, n)), s;
	          }
	        }return null;
	      }, this.removeAll = function () {
	        r.heap = [];
	      }, this.size = function () {
	        return r.heap.length;
	      };
	    },
	        p = function v() {
	      s(this, v), this.$get = function () {
	        return f;
	      };
	    },
	        $ = function d() {
	      var e = this;
	      s(this, d);
	      var t = this.defaults = {
	        capacity: Number.MAX_VALUE,
	        maxAge: Number.MAX_VALUE,
	        deleteOnExpire: 'none',
	        onExpire: null,
	        cacheFlushInterval: null,
	        recycleFreq: 1e3,
	        storageMode: 'memory',
	        storageImpl: null,
	        disabled: !1,
	        storagePrefix: 'angular-cache.caches.',
	        storeOnResolve: !1,
	        storeOnReject: !1
	      };
	      this.$get = ['$q', function (r) {
	        function i(e, t) {
	          return s(e, t);
	        }
	        var n = {},
	            s = function s(e, i) {
	          if (e in n) throw new Error('' + e + ' already exists!');
	          if (!o.isString(e)) throw new Error('cacheId must be a string!');
	          var s = {},
	              h = {},
	              p = null,
	              $ = new f(function (e) {
	            return e.expires;
	          }, o.equals),
	              m = new f(function (e) {
	            return e.accessed;
	          }, o.equals),
	              v = n[e] = {
	            $$id: e,
	            destroy: function destroy() {
	              clearInterval(this.$$cacheFlushIntervalId), clearInterval(this.$$recycleFreqId), this.removeAll(), p && (p().removeItem('' + this.$$prefix + '.keys'), p().removeItem(this.$$prefix)), p = null, s = null, m = null, $ = null, this.$$prefix = null, delete n[this.$$id];
	            },
	            disable: function disable() {
	              this.$$disabled = !0;
	            },
	            enable: function enable() {
	              delete this.$$disabled;
	            },
	            get: function get(e, t) {
	              var r = this;
	              if (o.isArray(e)) {
	                var i = function () {
	                  var i = e,
	                      n = [];
	                  return o.forEach(i, function (e) {
	                    var i = r.get(e, t);
	                    null !== i && void 0 !== i && n.push(i);
	                  }), { v: n };
	                }();
	                if ('object' == (typeof i === 'undefined' ? 'undefined' : _typeof(i))) return i.v;
	              } else if (e = l(e), this.$$disabled) return;
	              if (t = t || {}, !o.isString(e)) throw new Error('key must be a string!');
	              if (t && !o.isObject(t)) throw new Error('options must be an object!');
	              if (t.onExpire && !o.isFunction(t.onExpire)) throw new Error('options.onExpire must be a function!');
	              var n = void 0;
	              if (p) {
	                if (h[e]) return h[e];
	                var a = p().getItem('' + this.$$prefix + '.data.' + e);
	                if (!a) return;
	                n = o.fromJson(a);
	              } else {
	                if (!(e in s)) return;
	                n = s[e];
	              }
	              var c = n.value,
	                  u = new Date().getTime();
	              return p ? (m.remove({ key: e, accessed: n.accessed }), n.accessed = u, m.push({ key: e, accessed: u })) : (m.remove(n), n.accessed = u, m.push(n)), 'passive' === this.$$deleteOnExpire && 'expires' in n && n.expires < u ? (this.remove(e), this.$$onExpire ? this.$$onExpire.call(this, e, n.value, t.onExpire) : t.onExpire && t.onExpire.call(this, e, n.value), c = void 0) : p && p().setItem('' + this.$$prefix + '.data.' + e, JSON.stringify(n)), c;
	            },
	            info: function info(e) {
	              if (e) {
	                var t = void 0;
	                if (p) {
	                  var r = p().getItem('' + this.$$prefix + '.data.' + e);
	                  return r ? (t = o.fromJson(r), {
	                    created: t.created,
	                    accessed: t.accessed,
	                    expires: t.expires,
	                    isExpired: new Date().getTime() - t.created > this.$$maxAge
	                  }) : void 0;
	                }
	                return e in s ? (t = s[e], {
	                  created: t.created,
	                  accessed: t.accessed,
	                  expires: t.expires,
	                  isExpired: new Date().getTime() - t.created > this.$$maxAge
	                }) : void 0;
	              }
	              return {
	                id: this.$$id,
	                capacity: this.$$capacity,
	                maxAge: this.$$maxAge,
	                deleteOnExpire: this.$$deleteOnExpire,
	                onExpire: this.$$onExpire,
	                cacheFlushInterval: this.$$cacheFlushInterval,
	                recycleFreq: this.$$recycleFreq,
	                storageMode: this.$$storageMode,
	                storageImpl: p ? p() : void 0,
	                disabled: !!this.$$disabled,
	                size: m && m.size() || 0
	              };
	            },
	            keys: function keys() {
	              if (p) {
	                var e = p().getItem('' + this.$$prefix + '.keys');
	                return e ? o.fromJson(e) : [];
	              }
	              return a(s);
	            },
	            keySet: function keySet() {
	              if (p) {
	                var e = p().getItem('' + this.$$prefix + '.keys'),
	                    t = {};
	                if (e) for (var r = o.fromJson(e), i = 0; i < r.length; i++) {
	                  t[r[i]] = r[i];
	                }return t;
	              }
	              return u(s);
	            },
	            put: function put(e, t, i) {
	              var n = this;
	              i = i || {};
	              var a = 'storeOnResolve' in i ? !!i.storeOnResolve : this.$$storeOnResolve,
	                  u = 'storeOnReject' in i ? !!i.storeOnReject : this.$$storeOnReject,
	                  f = function f(t, i) {
	                return function (s) {
	                  return t && (delete h[e], o.isObject(s) && 'status' in s && 'data' in s ? (s = [s.status, s.data, s.headers(), s.statusText], n.put(e, s)) : n.put(e, s)), i ? r.reject(s) : s;
	                };
	              };
	              if (!this.$$disabled && null !== t && void 0 !== t) {
	                if (e = l(e), !o.isString(e)) throw new Error('key must be a string!');
	                var v = new Date().getTime(),
	                    d = { key: e, value: c(t) ? t.then(f(a, !1), f(u, !0)) : t, created: v, accessed: v };
	                if (d.expires = d.created + this.$$maxAge, p) {
	                  if (c(d.value)) return h[e] = d.value, h[e];
	                  var g = p().getItem('' + this.$$prefix + '.keys'),
	                      x = g ? o.fromJson(g) : [],
	                      y = p().getItem('' + this.$$prefix + '.data.' + e);
	                  y && this.remove(e), $.push({ key: e, expires: d.expires }), m.push({ key: e, accessed: d.accessed }), p().setItem('' + this.$$prefix + '.data.' + e, JSON.stringify(d));
	                  for (var E = !1, I = 0; I < x.length; I++) {
	                    if (x[I] === e) {
	                      E = !0;
	                      break;
	                    }
	                  }E || x.push(e), p().setItem('' + this.$$prefix + '.keys', JSON.stringify(x));
	                } else s[e] && this.remove(e), $.push(d), m.push(d), s[e] = d, delete h[e];
	                return m.size() > this.$$capacity && this.remove(m.peek().key), t;
	              }
	            },
	            remove: function remove(e) {
	              if (e += '', delete h[e], !p) {
	                var t = s[e] ? s[e].value : void 0;
	                return m.remove(s[e]), $.remove(s[e]), s[e] = null, delete s[e], t;
	              }
	              var r = p().getItem('' + this.$$prefix + '.data.' + e);
	              if (r) {
	                var i = o.fromJson(r);
	                m.remove({ key: e, accessed: i.accessed }), $.remove({ key: e, expires: i.expires }), p().removeItem('' + this.$$prefix + '.data.' + e);
	                var n = p().getItem('' + this.$$prefix + '.keys'),
	                    a = n ? o.fromJson(n) : [],
	                    c = a.indexOf(e);
	                return c >= 0 && a.splice(c, 1), p().setItem('' + this.$$prefix + '.keys', JSON.stringify(a)), i.value;
	              }
	            },
	            removeAll: function removeAll() {
	              if (p) {
	                m.removeAll(), $.removeAll();
	                var e = p().getItem('' + this.$$prefix + '.keys');
	                if (e) for (var t = o.fromJson(e), r = 0; r < t.length; r++) {
	                  this.remove(t[r]);
	                }p().setItem('' + this.$$prefix + '.keys', JSON.stringify([]));
	              } else {
	                m.removeAll(), $.removeAll();
	                for (var i in s) {
	                  s[i] = null;
	                }s = {};
	              }
	            },
	            removeExpired: function removeExpired() {
	              for (var e = new Date().getTime(), t = {}, r = void 0, i = void 0; (i = $.peek()) && i.expires <= e;) {
	                t[i.key] = i.value ? i.value : null, $.pop();
	              }if (p) for (r in t) {
	                var n = p().getItem('' + this.$$prefix + '.data.' + r);
	                n && (t[r] = o.fromJson(n).value, this.remove(r));
	              } else for (r in t) {
	                this.remove(r);
	              }if (this.$$onExpire) for (r in t) {
	                this.$$onExpire.call(this, r, t[r]);
	              }return t;
	            },
	            setCacheFlushInterval: function setCacheFlushInterval(e) {
	              if (null === e) delete this.$$cacheFlushInterval;else {
	                if (!o.isNumber(e)) throw new Error('cacheFlushInterval must be a number!');
	                if (0 > e) throw new Error('cacheFlushInterval must be greater than zero!');
	                e !== this.$$cacheFlushInterval && (this.$$cacheFlushInterval = e, clearInterval(this.$$cacheFlushIntervalId), function (e) {
	                  e.$$cacheFlushIntervalId = setInterval(function () {
	                    e.removeAll();
	                  }, e.$$cacheFlushInterval);
	                }(this));
	              }
	            },
	            setCapacity: function setCapacity(e) {
	              if (null === e) delete this.$$capacity;else {
	                if (!o.isNumber(e)) throw new Error('capacity must be a number!');
	                if (0 > e) throw new Error('capacity must be greater than zero!');
	                this.$$capacity = e;
	              }
	              for (var t = {}; m.size() > this.$$capacity;) {
	                t[m.peek().key] = this.remove(m.peek().key);
	              }return t;
	            },
	            setDeleteOnExpire: function setDeleteOnExpire(e, t) {
	              if (null === e) delete this.$$deleteOnExpire;else {
	                if (!o.isString(e)) throw new Error('deleteOnExpire must be a string!');
	                if ('none' !== e && 'passive' !== e && 'aggressive' !== e) throw new Error('deleteOnExpire must be "none", "passive" or "aggressive"!');
	                this.$$deleteOnExpire = e;
	              }
	              t !== !1 && this.setRecycleFreq(this.$$recycleFreq);
	            },
	            setMaxAge: function setMaxAge(e) {
	              if (null === e) this.$$maxAge = Number.MAX_VALUE;else {
	                if (!o.isNumber(e)) throw new Error('maxAge must be a number!');
	                if (0 > e) throw new Error('maxAge must be greater than zero!');
	                this.$$maxAge = e;
	              }
	              var t = void 0,
	                  r = void 0,
	                  i = void 0;
	              if ($.removeAll(), p) {
	                var n = p().getItem('' + this.$$prefix + '.keys');
	                for (r = n ? o.fromJson(n) : [], t = 0; t < r.length; t++) {
	                  i = r[t];
	                  var c = p().getItem('' + this.$$prefix + '.data.' + i);
	                  if (c) {
	                    var l = o.fromJson(c);
	                    this.$$maxAge === Number.MAX_VALUE ? l.expires = Number.MAX_VALUE : l.expires = l.created + this.$$maxAge, $.push({ key: i, expires: l.expires });
	                  }
	                }
	              } else for (r = a(s), t = 0; t < r.length; t++) {
	                i = r[t], this.$$maxAge === Number.MAX_VALUE ? s[i].expires = Number.MAX_VALUE : s[i].expires = s[i].created + this.$$maxAge, $.push(s[i]);
	              }return 'aggressive' === this.$$deleteOnExpire ? this.removeExpired() : {};
	            },
	            setOnExpire: function setOnExpire(e) {
	              if (null === e) delete this.$$onExpire;else {
	                if (!o.isFunction(e)) throw new Error('onExpire must be a function!');
	                this.$$onExpire = e;
	              }
	            },
	            setOptions: function setOptions(e, r) {
	              if (e = e || {}, r = !!r, !o.isObject(e)) throw new Error('cacheOptions must be an object!');
	              'storagePrefix' in e ? this.$$storagePrefix = e.storagePrefix : r && (this.$$storagePrefix = t.storagePrefix), this.$$prefix = this.$$storagePrefix + this.$$id, 'disabled' in e ? this.$$disabled = !!e.disabled : r && (this.$$disabled = t.disabled), 'storageMode' in e || 'storageImpl' in e ? this.setStorageMode(e.storageMode, e.storageImpl) : r && this.setStorageMode(t.storageMode, t.storageImpl), 'storeOnResolve' in e ? this.$$storeOnResolve = !!e.storeOnResolve : r && (this.$$storeOnResolve = t.storeOnResolve), 'storeOnReject' in e ? this.$$storeOnReject = !!e.storeOnReject : r && (this.$$storeOnReject = t.storeOnReject), 'capacity' in e ? this.setCapacity(e.capacity) : r && this.setCapacity(t.capacity), 'deleteOnExpire' in e ? this.setDeleteOnExpire(e.deleteOnExpire, !1) : r && this.setDeleteOnExpire(t.deleteOnExpire, !1), 'maxAge' in e ? this.setMaxAge(e.maxAge) : r && this.setMaxAge(t.maxAge), 'recycleFreq' in e ? this.setRecycleFreq(e.recycleFreq) : r && this.setRecycleFreq(t.recycleFreq), 'cacheFlushInterval' in e ? this.setCacheFlushInterval(e.cacheFlushInterval) : r && this.setCacheFlushInterval(t.cacheFlushInterval), 'onExpire' in e ? this.setOnExpire(e.onExpire) : r && this.setOnExpire(t.onExpire);
	            },
	            setRecycleFreq: function setRecycleFreq(e) {
	              if (null === e) delete this.$$recycleFreq;else {
	                if (!o.isNumber(e)) throw new Error('recycleFreq must be a number!');
	                if (0 > e) throw new Error('recycleFreq must be greater than zero!');
	                this.$$recycleFreq = e;
	              }
	              clearInterval(this.$$recycleFreqId), 'aggressive' === this.$$deleteOnExpire ? !function (e) {
	                e.$$recycleFreqId = setInterval(function () {
	                  e.removeExpired();
	                }, e.$$recycleFreq);
	              }(this) : delete this.$$recycleFreqId;
	            },
	            setStorageMode: function setStorageMode(e, t) {
	              if (!o.isString(e)) throw new Error('storageMode must be a string!');
	              if ('memory' !== e && 'localStorage' !== e && 'sessionStorage' !== e) throw new Error('storageMode must be "memory", "localStorage" or "sessionStorage"!');
	              var r = !1,
	                  i = {};
	              if ('string' == typeof this.$$storageMode && this.$$storageMode !== e) {
	                var n = this.keys();
	                if (n.length) {
	                  for (var s = 0; s < n.length; s++) {
	                    i[n[s]] = this.get(n[s]);
	                  }for (s = 0; s < n.length; s++) {
	                    this.remove(n[s]);
	                  }r = !0;
	                }
	              }
	              if (this.$$storageMode = e, t) {
	                if (!o.isObject(t)) throw new Error('storageImpl must be an object!');
	                if (!('setItem' in t && 'function' == typeof t.setItem)) throw new Error('storageImpl must implement "setItem(key, value)"!');
	                if (!('getItem' in t && 'function' == typeof t.getItem)) throw new Error('storageImpl must implement "getItem(key)"!');
	                if (!('removeItem' in t) || 'function' != typeof t.removeItem) throw new Error('storageImpl must implement "removeItem(key)"!');
	                p = function p() {
	                  return t;
	                };
	              } else if ('localStorage' === this.$$storageMode) try {
	                localStorage.setItem('angular-cache', 'angular-cache'), localStorage.removeItem('angular-cache'), p = function p() {
	                  return localStorage;
	                };
	              } catch (a) {
	                p = null, this.$$storageMode = 'memory';
	              } else if ('sessionStorage' === this.$$storageMode) try {
	                sessionStorage.setItem('angular-cache', 'angular-cache'), sessionStorage.removeItem('angular-cache'), p = function p() {
	                  return sessionStorage;
	                };
	              } catch (a) {
	                p = null, this.$$storageMode = 'memory';
	              }
	              if (r) for (var c in i) {
	                this.put(c, i[c]);
	              }
	            },
	            touch: function touch(e) {
	              var t = this;
	              if (e) {
	                var r = this.get(e, {
	                  onExpire: function onExpire(e, r) {
	                    return t.put(e, r);
	                  }
	                });
	                r && this.put(e, r);
	              } else for (var i = this.keys(), n = 0; n < i.length; n++) {
	                this.touch(i[n]);
	              }
	            }
	          };
	          return v.setOptions(i, !0), v;
	        };
	        return i.createCache = s, i.info = function () {
	          var t = a(n),
	              r = { size: t.length, caches: {} };
	          o.extend(r, e.defaults);
	          for (var i = 0; i < t.length; i++) {
	            var s = t[i];
	            r.caches[s] = n[s].info();
	          }
	          return r;
	        }, i.get = function (e) {
	          return n[e];
	        }, i.keySet = function () {
	          return u(n);
	        }, i.keys = function () {
	          return a(n);
	        }, i.destroy = function (e) {
	          n[e] && (n[e].destroy(), delete n[e]);
	        }, i.destroyAll = function () {
	          for (var e in n) {
	            n[e].destroy();
	          }n = {};
	        }, i.clearAll = function () {
	          for (var e in n) {
	            n[e].removeAll();
	          }
	        }, i.removeExpiredFromAll = function () {
	          var e = {};
	          for (var t in n) {
	            e[t] = n[t].removeExpired();
	          }return e;
	        }, i.enableAll = function () {
	          for (var e in n) {
	            n[e].$$disabled = !1;
	          }
	        }, i.disableAll = function () {
	          for (var e in n) {
	            n[e].$$disabled = !0;
	          }
	        }, i.touchAll = function () {
	          for (var e in n) {
	            n[e].touch();
	          }
	        }, i;
	      }];
	    };
	    o.module('angular-cache', []).provider('BinaryHeap', p).provider('CacheFactory', $), e.exports = 'angular-cache';
	  }, function (t, r, i) {
	    t.exports = e;
	  }]);
	});
	/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(38)(module)))

/***/ }),
/* 1085 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(12);
	
	module.exports = 'utility-ng-pipeline'; /**
	                                         * @utility-ng-pipeline
	                                         */
	
	
	angular.module('utility-ng-pipeline', []).provider('Pipeline', function PipelineProvider() {
	  var Pipeline = function Pipeline(pipeline, $injector) {
	    this.$injector = $injector;
	    this.queue = [];
	    this.decoratePipeline(pipeline);
	  };
	
	  var PipelineFn = function PipelineFn() {
	    var PARSE_PIPELINE_UNIT_TYPE = /(sequencer|metadata|reporter|\(.*\)$)/i;
	    var INJECTED_METADATA = /^([a-zA-Z0-9]+)\s+\(([^\)]+)\)$/i;
	
	    var createTask = {
	      sequencer: function sequencer(task, list, userConfiguration) {
	        return task.fn(list, userConfiguration);
	      },
	      reporter: function reporter(task, list, userConfiguration) {
	        return _.map(list, function (unit) {
	          return this(unit, userConfiguration);
	        }, task.fn);
	      },
	      metadata: function metadata(task, list, userConfiguration) {
	        _.each(list, function (unit) {
	          unit.metadata[this.property] = this.fn(unit, userConfiguration);
	        }, task);
	
	        return list;
	      }
	    };
	
	    this.injectTask = function injectTask(unitName) {
	      var unitType = _.last(PARSE_PIPELINE_UNIT_TYPE.exec(unitName));
	      var injectMethodName = unitType.indexOf('(') !== -1 ? 'injectMetadata' : 'inject' + _.capitalize(unitType);
	
	      return this[injectMethodName](unitName);
	    };
	
	    this.injectMetadata = function injectMetadata(unitName) {
	      var splitName = INJECTED_METADATA.exec(unitName);
	      var nameOfProperty = splitName[2];
	
	      this.addMetadata(unitName, this.$injector.get(unitName));
	      _.last(this.queue).property = nameOfProperty;
	      return this;
	    };
	
	    this.addMetadata = function addMetadata(propertyName, fn) {
	      this.addUnit('metadata', propertyName, fn);
	      _.last(this.queue).property = propertyName;
	      return this;
	    };
	
	    this.injectSequencer = function injectSequencer(unitName) {
	      return this.addSequencer(unitName, this.$injector.get(unitName));
	    };
	
	    this.addSequencer = function addSequencer(name, fn) {
	      return this.addUnit('sequencer', name, fn);
	    };
	
	    this.injectReporter = function injectReporter(unitName) {
	      return this.addReporter(unitName, this.$injector.get(unitName));
	    };
	
	    this.addReporter = function addReporter(name, fn) {
	      return this.addUnit('reporter', name, fn);
	    };
	
	    this.addUnit = function addUnit(type, name, fn) {
	      this.queue.push({
	        type: type,
	        name: name,
	        fn: fn
	      });
	      return this;
	    };
	
	    this.decoratePipeline = function decoratePipeline(pipeline) {
	      this.pipeline = pipeline;
	      return this;
	    };
	
	    this.appendPipeline = function appendPipeline(pipeline) {
	      this.queue = this.queue.concat(pipeline.queue);
	      return this;
	    };
	
	    this.removePipeline = function removePipeline(pipeline) {
	      var start = -1;
	      var end = -1;
	      var queue = this.queue;
	      var queueRemove = pipeline.queue;
	      var n = queue.length;
	      var m = queueRemove.length;
	      var i = 0;
	      var j = 0;
	
	      for (i = 0; i < n - m; i++) {
	        start = i;
	        for (j = 0; j < m; j++) {
	          if (queue[i + j].name !== queueRemove[j].name) {
	            break;
	          }
	        }
	        if (j === m) {
	          end = i + j;
	          break;
	        }
	      }
	
	      if (start >= 0 && end >= 0) {
	        this.queue.splice(start, end - start);
	      }
	
	      return this;
	    };
	
	    this.run = function runPipeline(list, userConfiguration) {
	      if (!!this.pipeline) {
	        list = this.pipeline.run(list, userConfiguration);
	      }
	
	      if (_.size(list) <= 0) {
	        return list;
	      }
	
	      return _.reduce(this.queue, function (_list, task) {
	        return this[task.type](task, _list, userConfiguration);
	      }, list, createTask);
	    };
	  };
	
	  Pipeline.fn = new PipelineFn();
	  Pipeline.prototype = Pipeline.fn;
	
	  this.$get = function $get_Pipeline($injector) {
	    return function (pipeline) {
	      return new Pipeline(pipeline, $injector);
	    };
	  };
	}).constant('applyPipelineToModel', function (pipeline, model) {
	  return pipeline.run(model.list);
	});

/***/ }),
/* 1086 */
/***/ (function(module, exports) {

	'use strict';
	
	angular.module('utility-ng-time').constant('DateRangBuilderDTD', {
	  start: 'moment',
	  end: 'moment'
	}).factory('DateRangeBuilder', function (Interface, DateRangBuilderDTD) {
	  return function DateRangeBuilder(data) {
	    if (!(this instanceof DateRangeBuilder)) {
	      return new DateRangeBuilder(data);
	    }
	
	    return Interface.implement(DateRangBuilderDTD, data, this);
	  };
	});

/***/ }),
/* 1087 */
/***/ (function(module, exports, __webpack_require__) {

	'use strict';
	
	__webpack_require__(12);
	
	module.exports = 'utility-ng-webcrypto'; /**
	                                          * @utility-ng-webcrypto
	                                          */
	
	
	angular.module('utility-ng-webcrypto', []).constant('Crypto', __webpack_require__(1074)).provider('safeStorage', function safeStorage() {
	  //TODO: add a storage solution that is configurable
	  this.$get = function ($q, Crypto) {
	    //var seed = localStorage.getItem('gUAm1dE'),
	    //	crypto = new Crypto();
	    //
	    //if (_.isNull(seed) || _.isUndefined(seed)) {
	    //	crypto.seed().then(function(newSeed) {
	    //		seed = newSeed;
	    //		localStorage.setItem('gUAm1dE', seed)
	    //	})
	    //} else {
	    //	crypto.seed(seed);
	    //}
	
	    var transformToString = function transformToString(nonString) {
	      if (_.isString(nonString)) {
	        return nonString;
	      }
	      if (_.isArray(nonString)) {
	        return nonString.toString();
	      }
	      if (_.isObject(nonString)) {
	        return JSON.stringify(nonString);
	      }
	    };
	
	    var set_safeStorage = function set_safeStorage(key, value) {
	      var deferred = $q.defer();
	      value = transformToString(value);
	
	      localStorage.setItem(key, value);
	      deferred.resolve();
	      //crypto.encrypt(value).then(function(encrypted){
	      //	localStorage.setItem(key, encrypted);
	      //	deferred.resolve();
	      //});
	
	      return deferred.promise;
	    };
	
	    var get_safeStorage = function get_safeStorage(key) {
	      var deferred = $q.defer();
	      var value = localStorage.getItem(key);
	
	      //if (_.isNull(value) || _.isUndefined(value)) {
	      //	deferred.resolve(value);
	      //} else {
	      //
	      //	crypto.decrypt(value).then(function(decrypted) {
	      //		deferred.resolve(decrypted);
	      //	});
	      //
	      //}
	
	      deferred.resolve(value);
	
	      return deferred.promise;
	    };
	
	    return {
	      set: set_safeStorage,
	      setItem: set_safeStorage,
	      get: get_safeStorage,
	      getItem: get_safeStorage
	    };
	  };
	});

/***/ }),
/* 1088 */
/***/ (function(module, exports) {

	"use strict";
	
	/**
	 * @license Copyright (c) 2012-2014 The Advisory Board Company
	 */
	var EABPusher = function getPusher(Pusher) {
	  var pusherInstance;
	
	  return function getPusherInstance(key) {
	    if (!pusherInstance) {
	      pusherInstance = new Pusher(key, { encrypted: true });
	    }
	    return pusherInstance;
	  };
	}(Pusher);
	
	module.exports = window.EABPusher = EABPusher;

/***/ }),
/* 1089 */
/***/ (function(module, exports) {

	// shim for using process in browser
	var process = module.exports = {};
	
	// cached from whatever global is present so that test runners that stub it
	// don't break things.  But we need to wrap it in a try catch in case it is
	// wrapped in strict mode code which doesn't define any globals.  It's inside a
	// function because try/catches deoptimize in certain engines.
	
	var cachedSetTimeout;
	var cachedClearTimeout;
	
	function defaultSetTimout() {
	    throw new Error('setTimeout has not been defined');
	}
	function defaultClearTimeout () {
	    throw new Error('clearTimeout has not been defined');
	}
	(function () {
	    try {
	        if (typeof setTimeout === 'function') {
	            cachedSetTimeout = setTimeout;
	        } else {
	            cachedSetTimeout = defaultSetTimout;
	        }
	    } catch (e) {
	        cachedSetTimeout = defaultSetTimout;
	    }
	    try {
	        if (typeof clearTimeout === 'function') {
	            cachedClearTimeout = clearTimeout;
	        } else {
	            cachedClearTimeout = defaultClearTimeout;
	        }
	    } catch (e) {
	        cachedClearTimeout = defaultClearTimeout;
	    }
	} ())
	function runTimeout(fun) {
	    if (cachedSetTimeout === setTimeout) {
	        //normal enviroments in sane situations
	        return setTimeout(fun, 0);
	    }
	    // if setTimeout wasn't available but was latter defined
	    if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
	        cachedSetTimeout = setTimeout;
	        return setTimeout(fun, 0);
	    }
	    try {
	        // when when somebody has screwed with setTimeout but no I.E. maddness
	        return cachedSetTimeout(fun, 0);
	    } catch(e){
	        try {
	            // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
	            return cachedSetTimeout.call(null, fun, 0);
	        } catch(e){
	            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
	            return cachedSetTimeout.call(this, fun, 0);
	        }
	    }
	
	
	}
	function runClearTimeout(marker) {
	    if (cachedClearTimeout === clearTimeout) {
	        //normal enviroments in sane situations
	        return clearTimeout(marker);
	    }
	    // if clearTimeout wasn't available but was latter defined
	    if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
	        cachedClearTimeout = clearTimeout;
	        return clearTimeout(marker);
	    }
	    try {
	        // when when somebody has screwed with setTimeout but no I.E. maddness
	        return cachedClearTimeout(marker);
	    } catch (e){
	        try {
	            // When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally
	            return cachedClearTimeout.call(null, marker);
	        } catch (e){
	            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
	            // Some versions of I.E. have different rules for clearTimeout vs setTimeout
	            return cachedClearTimeout.call(this, marker);
	        }
	    }
	
	
	
	}
	var queue = [];
	var draining = false;
	var currentQueue;
	var queueIndex = -1;
	
	function cleanUpNextTick() {
	    if (!draining || !currentQueue) {
	        return;
	    }
	    draining = false;
	    if (currentQueue.length) {
	        queue = currentQueue.concat(queue);
	    } else {
	        queueIndex = -1;
	    }
	    if (queue.length) {
	        drainQueue();
	    }
	}
	
	function drainQueue() {
	    if (draining) {
	        return;
	    }
	    var timeout = runTimeout(cleanUpNextTick);
	    draining = true;
	
	    var len = queue.length;
	    while(len) {
	        currentQueue = queue;
	        queue = [];
	        while (++queueIndex < len) {
	            if (currentQueue) {
	                currentQueue[queueIndex].run();
	            }
	        }
	        queueIndex = -1;
	        len = queue.length;
	    }
	    currentQueue = null;
	    draining = false;
	    runClearTimeout(timeout);
	}
	
	process.nextTick = function (fun) {
	    var args = new Array(arguments.length - 1);
	    if (arguments.length > 1) {
	        for (var i = 1; i < arguments.length; i++) {
	            args[i - 1] = arguments[i];
	        }
	    }
	    queue.push(new Item(fun, args));
	    if (queue.length === 1 && !draining) {
	        runTimeout(drainQueue);
	    }
	};
	
	// v8 likes predictible objects
	function Item(fun, array) {
	    this.fun = fun;
	    this.array = array;
	}
	Item.prototype.run = function () {
	    this.fun.apply(null, this.array);
	};
	process.title = 'browser';
	process.browser = true;
	process.env = {};
	process.argv = [];
	process.version = ''; // empty string to avoid regexp issues
	process.versions = {};
	
	function noop() {}
	
	process.on = noop;
	process.addListener = noop;
	process.once = noop;
	process.off = noop;
	process.removeListener = noop;
	process.removeAllListeners = noop;
	process.emit = noop;
	process.prependListener = noop;
	process.prependOnceListener = noop;
	
	process.listeners = function (name) { return [] }
	
	process.binding = function (name) {
	    throw new Error('process.binding is not supported');
	};
	
	process.cwd = function () { return '/' };
	process.chdir = function (dir) {
	    throw new Error('process.chdir is not supported');
	};
	process.umask = function() { return 0; };


/***/ }),
/* 1090 */
/***/ (function(module, exports, __webpack_require__) {

	/* WEBPACK VAR INJECTION */(function(global, process) {(function (global, undefined) {
	    "use strict";
	
	    if (global.setImmediate) {
	        return;
	    }
	
	    var nextHandle = 1; // Spec says greater than zero
	    var tasksByHandle = {};
	    var currentlyRunningATask = false;
	    var doc = global.document;
	    var registerImmediate;
	
	    function setImmediate(callback) {
	      // Callback can either be a function or a string
	      if (typeof callback !== "function") {
	        callback = new Function("" + callback);
	      }
	      // Copy function arguments
	      var args = new Array(arguments.length - 1);
	      for (var i = 0; i < args.length; i++) {
	          args[i] = arguments[i + 1];
	      }
	      // Store and register the task
	      var task = { callback: callback, args: args };
	      tasksByHandle[nextHandle] = task;
	      registerImmediate(nextHandle);
	      return nextHandle++;
	    }
	
	    function clearImmediate(handle) {
	        delete tasksByHandle[handle];
	    }
	
	    function run(task) {
	        var callback = task.callback;
	        var args = task.args;
	        switch (args.length) {
	        case 0:
	            callback();
	            break;
	        case 1:
	            callback(args[0]);
	            break;
	        case 2:
	            callback(args[0], args[1]);
	            break;
	        case 3:
	            callback(args[0], args[1], args[2]);
	            break;
	        default:
	            callback.apply(undefined, args);
	            break;
	        }
	    }
	
	    function runIfPresent(handle) {
	        // From the spec: "Wait until any invocations of this algorithm started before this one have completed."
	        // So if we're currently running a task, we'll need to delay this invocation.
	        if (currentlyRunningATask) {
	            // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a
	            // "too much recursion" error.
	            setTimeout(runIfPresent, 0, handle);
	        } else {
	            var task = tasksByHandle[handle];
	            if (task) {
	                currentlyRunningATask = true;
	                try {
	                    run(task);
	                } finally {
	                    clearImmediate(handle);
	                    currentlyRunningATask = false;
	                }
	            }
	        }
	    }
	
	    function installNextTickImplementation() {
	        registerImmediate = function(handle) {
	            process.nextTick(function () { runIfPresent(handle); });
	        };
	    }
	
	    function canUsePostMessage() {
	        // The test against `importScripts` prevents this implementation from being installed inside a web worker,
	        // where `global.postMessage` means something completely different and can't be used for this purpose.
	        if (global.postMessage && !global.importScripts) {
	            var postMessageIsAsynchronous = true;
	            var oldOnMessage = global.onmessage;
	            global.onmessage = function() {
	                postMessageIsAsynchronous = false;
	            };
	            global.postMessage("", "*");
	            global.onmessage = oldOnMessage;
	            return postMessageIsAsynchronous;
	        }
	    }
	
	    function installPostMessageImplementation() {
	        // Installs an event handler on `global` for the `message` event: see
	        // * https://developer.mozilla.org/en/DOM/window.postMessage
	        // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages
	
	        var messagePrefix = "setImmediate$" + Math.random() + "$";
	        var onGlobalMessage = function(event) {
	            if (event.source === global &&
	                typeof event.data === "string" &&
	                event.data.indexOf(messagePrefix) === 0) {
	                runIfPresent(+event.data.slice(messagePrefix.length));
	            }
	        };
	
	        if (global.addEventListener) {
	            global.addEventListener("message", onGlobalMessage, false);
	        } else {
	            global.attachEvent("onmessage", onGlobalMessage);
	        }
	
	        registerImmediate = function(handle) {
	            global.postMessage(messagePrefix + handle, "*");
	        };
	    }
	
	    function installMessageChannelImplementation() {
	        var channel = new MessageChannel();
	        channel.port1.onmessage = function(event) {
	            var handle = event.data;
	            runIfPresent(handle);
	        };
	
	        registerImmediate = function(handle) {
	            channel.port2.postMessage(handle);
	        };
	    }
	
	    function installReadyStateChangeImplementation() {
	        var html = doc.documentElement;
	        registerImmediate = function(handle) {
	            // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted
	            // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.
	            var script = doc.createElement("script");
	            script.onreadystatechange = function () {
	                runIfPresent(handle);
	                script.onreadystatechange = null;
	                html.removeChild(script);
	                script = null;
	            };
	            html.appendChild(script);
	        };
	    }
	
	    function installSetTimeoutImplementation() {
	        registerImmediate = function(handle) {
	            setTimeout(runIfPresent, 0, handle);
	        };
	    }
	
	    // If supported, we should attach to the prototype of global, since that is where setTimeout et al. live.
	    var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global);
	    attachTo = attachTo && attachTo.setTimeout ? attachTo : global;
	
	    // Don't get fooled by e.g. browserify environments.
	    if ({}.toString.call(global.process) === "[object process]") {
	        // For Node.js before 0.9
	        installNextTickImplementation();
	
	    } else if (canUsePostMessage()) {
	        // For non-IE10 modern browsers
	        installPostMessageImplementation();
	
	    } else if (global.MessageChannel) {
	        // For web workers, where supported
	        installMessageChannelImplementation();
	
	    } else if (doc && "onreadystatechange" in doc.createElement("script")) {
	        // For IE 6–8
	        installReadyStateChangeImplementation();
	
	    } else {
	        // For older browsers
	        installSetTimeoutImplementation();
	    }
	
	    attachTo.setImmediate = setImmediate;
	    attachTo.clearImmediate = clearImmediate;
	}(typeof self === "undefined" ? typeof global === "undefined" ? this : global : self));
	
	/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(1089)))

/***/ }),
/* 1091 */
/***/ (function(module, exports, __webpack_require__) {

	/* WEBPACK VAR INJECTION */(function(global) {var scope = (typeof global !== "undefined" && global) ||
	            (typeof self !== "undefined" && self) ||
	            window;
	var apply = Function.prototype.apply;
	
	// DOM APIs, for completeness
	
	exports.setTimeout = function() {
	  return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);
	};
	exports.setInterval = function() {
	  return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);
	};
	exports.clearTimeout =
	exports.clearInterval = function(timeout) {
	  if (timeout) {
	    timeout.close();
	  }
	};
	
	function Timeout(id, clearFn) {
	  this._id = id;
	  this._clearFn = clearFn;
	}
	Timeout.prototype.unref = Timeout.prototype.ref = function() {};
	Timeout.prototype.close = function() {
	  this._clearFn.call(scope, this._id);
	};
	
	// Does not start the time, just sets up the members needed.
	exports.enroll = function(item, msecs) {
	  clearTimeout(item._idleTimeoutId);
	  item._idleTimeout = msecs;
	};
	
	exports.unenroll = function(item) {
	  clearTimeout(item._idleTimeoutId);
	  item._idleTimeout = -1;
	};
	
	exports._unrefActive = exports.active = function(item) {
	  clearTimeout(item._idleTimeoutId);
	
	  var msecs = item._idleTimeout;
	  if (msecs >= 0) {
	    item._idleTimeoutId = setTimeout(function onTimeout() {
	      if (item._onTimeout)
	        item._onTimeout();
	    }, msecs);
	  }
	};
	
	// setimmediate attaches itself to the global object
	__webpack_require__(1090);
	// On some exotic environments, it's not clear which object `setimmediate` was
	// able to install onto.  Search each possibility in the same order as the
	// `setimmediate` library.
	exports.setImmediate = (typeof self !== "undefined" && self.setImmediate) ||
	                       (typeof global !== "undefined" && global.setImmediate) ||
	                       (this && this.setImmediate);
	exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
	                         (typeof global !== "undefined" && global.clearImmediate) ||
	                         (this && this.clearImmediate);
	
	/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))

/***/ }),
/* 1092 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var AboutController = /** @class */ (function () {
	    function AboutController(accountModel) {
	        this.accountModel = accountModel;
	    }
	    AboutController.prototype.$onInit = function () {
	        this.isLoggedIn = this.accountModel.isLoggedIn();
	    };
	    return AboutController;
	}());
	exports.AboutController = AboutController;
	var AboutComponent = /** @class */ (function () {
	    function AboutComponent() {
	        this.controller = AboutController;
	        this.templateUrl = 'lib/about/about.html';
	        this.controllerAs = '$ctrl';
	    }
	    return AboutComponent;
	}());
	exports.AboutComponent = AboutComponent;


/***/ }),
/* 1093 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ap3_1 = __webpack_require__(450);
	function AP3DockRoutes($stateProvider, $urlRouterProvider) {
	    $stateProvider
	        .state('my.ap3', {
	        abstract: true,
	        template: '<micro-nav-ap3></micro-nav-ap3>',
	        data: {
	            preventResetFocus: true
	        }
	    })
	        .state('my.ap3.active', {
	        url: 'ap3/{path:.*}',
	        data: {
	            preventResetFocus: true
	        }
	    })
	        .state('my.ap3-restart', {
	        url: 'ap3-restart',
	        template: '',
	        data: {
	            preventResetFocus: true
	        },
	        controller: ap3_1.SGDAp3Controller
	    });
	}
	exports.AP3DockRoutes = AP3DockRoutes;


/***/ }),
/* 1094 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var AppStoreBannerController = /** @class */ (function () {
	    function AppStoreBannerController(appConfigModel, ngDeeplinkConfig, ngBrowserDetectDelegate) {
	        this.appConfigModel = appConfigModel;
	        this.ngDeeplinkConfig = ngDeeplinkConfig;
	        this.ngBrowserDetectDelegate = ngBrowserDetectDelegate;
	        this.showBanner = false;
	        this.browserName = 'Web Browser';
	        this.showCheckSettingsNotice = false;
	        var appStoreLink = 'http://guide.app.link';
	        var deepLink = this.ngDeeplinkConfig.getOriginalDeeplink();
	        if (deepLink) {
	            appStoreLink = appStoreLink + "/app/" + deepLink.split('app/')[1];
	        }
	        this.isMobile = this.isMobileDevice();
	        this.appStoreConfig = {
	            appName: 'Navigate360',
	            appStoreLink: appStoreLink,
	            appStoreText: 'For an optimized mobile experience, please view your school account in our mobile app'
	        };
	        this.browserName = this.ngBrowserDetectDelegate.getBrowserName();
	        this.showBanner = this.isMobile;
	        this.showCheckSettingsNotice = appStoreLink.includes('/dl/apt?pal_guid') && this.isAndroid();
	        this.checkDefaults();
	    }
	    AppStoreBannerController.prototype.isMobileDevice = function () {
	        return typeof window.orientation !== 'undefined';
	    };
	    AppStoreBannerController.prototype.isAndroid = function () {
	        return window.navigator.userAgent.includes('Android');
	    };
	    AppStoreBannerController.prototype.openMobileApp = function () {
	        window.location.assign(this.appStoreConfig.appStoreLink);
	    };
	    AppStoreBannerController.prototype.continueToWebApp = function () {
	        this.showBanner = false;
	    };
	    AppStoreBannerController.prototype.checkDefaults = function () {
	        var changeBrowserText = ' and set your default browser to ';
	        if (this.isAndroid() && this.browserName !== 'Chrome') {
	            this.appStoreConfig.appStoreText = this.appStoreConfig.appStoreText + changeBrowserText + 'Chrome.';
	        }
	        else if (!this.isAndroid() && this.browserName !== 'Safari') {
	            this.appStoreConfig.appStoreText = this.appStoreConfig.appStoreText + changeBrowserText + 'Safari.';
	        }
	        else {
	            this.appStoreConfig.appStoreText = this.appStoreConfig.appStoreText + '.';
	        }
	    };
	    return AppStoreBannerController;
	}());
	exports.AppStoreBannerController = AppStoreBannerController;
	var AppStoreBannerComponent = /** @class */ (function () {
	    function AppStoreBannerComponent() {
	        this.templateUrl = 'lib/appstore_banner/app_store_banner.html';
	        this.controller = AppStoreBannerController;
	        this.controllerAs = '$ctrl';
	    }
	    return AppStoreBannerComponent;
	}());
	exports.AppStoreBannerComponent = AppStoreBannerComponent;


/***/ }),
/* 1095 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	// tslint:disable-next-line:cognitive-complexity
	function Routing($rootScope, $stickyState, $deepStateRedirect, ConsistentPageConfiguration, featureConfigAdapter, log, $timeout, DefaultRoute, appDetails, accountModel, appConfigModel, ngNavigationHistoryStack) {
	    ngNavigationHistoryStack.defaultStateName = DefaultRoute;
	    // check for hosted eab domain and not localdev
	    var isEabHostedDomain = _4.includes(location.hostname, 'eab.com');
	    var focusOnHeader = function () {
	        angular.element('#appHeader').attr('tabindex', '-1').focus().removeAttr('tabindex');
	    };
	    /**
	     * @returns true if a string partially exists in an array
	     */
	    var hasGroupOf = function (groups, s) { return groups.join(' ').indexOf(s) >= 0; };
	    /**
	     * @returns true if a string partially exists in a uri (or any string)
	     */
	    var inURL = function (url, s) { return url.indexOf(s) >= 0; };
	    var createUserTracking = function () {
	        // map group_names to *_user_types
	        //
	        var groupNames = accountModel.groupNames || [];
	        var hasGroupOther = groupNames.find(function (_) { return !hasGroupOf(groupNames, 'student') && !hasGroupOf(groupNames, 'advisor'); }) !== null;
	        var userTypes = [
	            hasGroupOf(groupNames, 'student') ? 'Student' : undefined,
	            hasGroupOf(groupNames, 'advisor') ? 'Advisor' : undefined,
	            hasGroupOther ? 'Content Admin' : undefined
	        ]
	            .filter(function (_) { return _; })
	            .join(',');
	        var visitor__gainSightPX = {
	            id: accountModel.gainsight_id || accountModel.tracking_id,
	            sgd_first_name: accountModel.firstName,
	            sgd_last_name: accountModel.lastName,
	            sgd_email: accountModel.email,
	            sgd_user_types: userTypes,
	            sgd_classification: "" + accountModel.yearClassification,
	            language: 'en_US',
	            sgd_device: 'Desktop'
	        };
	        // add an `id` to the visitor if the visitor is not FAKE, SuperUser, or Guest
	        //
	        var visitorID = accountModel.gainsight_id || accountModel.tracking_id;
	        var isFakeStudent = visitorID.indexOf('FAKE') >= 0;
	        var isSuperUser = accountModel.isSuperuser;
	        // TODO is not `is_guest`
	        if (!isFakeStudent || !isSuperUser) {
	            visitor__gainSightPX.id = accountModel.gainsight_id;
	        }
	        return visitor__gainSightPX;
	    };
	    var createAccountTracking = function () {
	        var url = location.hostname.toLowerCase();
	        // compute actual environment and not built environment
	        //
	        var sgd_environment = inURL(url, 'impl')
	            ? 'Impl'
	            : inURL(url, 'dev') || url.match(/\d+\.\d+\.\d+\.\d+/) !== null
	                ? 'Dev'
	                : inURL(url, 'sandbox') || inURL(url, 'demo') || inURL(url, 'realtime')
	                    ? 'Other'
	                    : 'Prod';
	        return {
	            id: accountModel.account_name,
	            sgd_product: 'Smart Guidance',
	            name: (appConfigModel.model.member_configs || {})['core-inst_name'],
	            sgd_has_ap: appConfigModel.isFeatureEnabled('ap3-academic_planner_v3'),
	            sgd_has_registration: appConfigModel.isFeatureEnabled('reg-scheduler'),
	            sgd_environment: sgd_environment
	        };
	    };
	    // TODO wrap this in _4.once
	    var initializeGainSightPX = function (user, account) {
	        var hasAptrinsic = 'aptrinsic' in window && _4.isFunction(window['aptrinsic']);
	        if (isEabHostedDomain && hasAptrinsic) {
	            window['aptrinsic']('identify', user, account);
	            window['aptrinsic']('set', 'globalContext', { Device: user['Device'] });
	        }
	    };
	    ConsistentPageConfiguration.activate();
	    // DEBT leave alone, this will be fixed in a broader UI solution for error handling
	    $rootScope.$on('$stateChangeError', function (event, toState, toParams, fromState, fromParams, error) {
	        log.view('state-error', {
	            screenName: toState,
	            error: error
	        });
	        log.error(error);
	    });
	    // DEBT leave alone, this will be fixed in a broader UI solution for error handling
	    $rootScope.$on('$stateNotFound', function (event, unfoundState, fromState, fromParams) {
	        log.issue('The page you attempted to navigate to was not found');
	        log.view('state-not-found', {
	            screenName: unfoundState
	        });
	    });
	    $rootScope.$on('$stateChangeSuccess', function (event, toState, toParams, fromState, fromParams, error) {
	        var state = {
	            name: fromState.name,
	            params: fromParams,
	            data: fromState.data
	        };
	        if (accountModel.isLoggedIn()) {
	            initializeGainSightPX(createUserTracking(), createAccountTracking());
	        }
	        ngNavigationHistoryStack.changeNavigatioHistoryStack(state, toState);
	        $rootScope.requestedTransitionDirection = $rootScope.transitionDirection;
	        $rootScope.previousState = fromState;
	        $rootScope.previousState['params'] = fromParams;
	        $('body')
	            .prop('class', '')
	            .addClass('page ' + toState.name.split('.').join(' '));
	        log.view('state-start', {
	            screenName: toState.name
	        });
	        /*
	         * Resets the focus on every page navigation unless specified in `preventResetFocus`
	         */
	        if (!_4.get(toState, 'data.preventResetFocus', false)) {
	            $timeout(function () {
	                focusOnHeader();
	            }, 100);
	        }
	        // document.activeElement.nodeName === 'BODY'
	        /*
	          DSR is used only with `my.routeModal` route
	        */
	        var isRouteModalState = _4.includes(toState, 'my.routeModal');
	        if (isRouteModalState) {
	            $stickyState.reset('*');
	            $deepStateRedirect.reset(fromState.name);
	        }
	    });
	    $rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams) {
	        ngNavigationHistoryStack.changeStateStatus(fromState, toState);
	        if (toParams.path === fromParams.path && fromState.name === 'my.fp.active' && toState.name === 'my.fp.active') {
	            toParams.path = '';
	        }
	        $('body').removeClass('modal-activate');
	        var openModal = angular.element('body').find("[role='dialog']");
	        if (openModal.length > 0 && openModal.scope() && _4.isFunction(openModal.scope().$hide)) {
	            openModal.scope().$hide();
	        }
	    });
	    featureConfigAdapter.enableFeatureStateBlocking();
	}
	exports.Routing = Routing;


/***/ }),
/* 1096 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(7);
	var APIRequestSGDToSTCAuthorization = /** @class */ (function () {
	    function APIRequestSGDToSTCAuthorization(sTCAPIAdatper, appConfigModel, authToken, $http) {
	        this.sTCAPIAdatper = sTCAPIAdatper;
	        this.appConfigModel = appConfigModel;
	        this.authToken = authToken;
	        this.$http = $http;
	        this.id = 'api-sgd-to-stc-authorization';
	        this.type = 'request';
	    }
	    APIRequestSGDToSTCAuthorization.prototype.invoke = function (infoIO) {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            var sTCAPIAdatper, campusUrl, isCampusAPI, needsJWT, accessToken, _a, authorizationToken;
	            return tslib_1.__generator(this, function (_b) {
	                switch (_b.label) {
	                    case 0:
	                        sTCAPIAdatper = this.sTCAPIAdatper;
	                        campusUrl = this.appConfigModel.getConfigProperty("core-campus_url");
	                        isCampusAPI = sTCAPIAdatper.isCampusAPI(infoIO.uri, campusUrl);
	                        if (!!isCampusAPI) return [3 /*break*/, 2];
	                        // a hack probably only needed for hi-http
	                        //
	                        return [4 /*yield*/, sTCAPIAdatper.dummyPromise()];
	                    case 1:
	                        // a hack probably only needed for hi-http
	                        //
	                        _b.sent();
	                        return [2 /*return*/, infoIO];
	                    case 2:
	                        infoIO.uri = sTCAPIAdatper.prefixCampusURI(infoIO.uri, campusUrl);
	                        needsJWT = sTCAPIAdatper.needsJWTToken(infoIO.uri);
	                        if (!needsJWT) return [3 /*break*/, 4];
	                        return [4 /*yield*/, sTCAPIAdatper.fetchJWTToken()];
	                    case 3:
	                        _a = _b.sent();
	                        return [3 /*break*/, 6];
	                    case 4: return [4 /*yield*/, this.authToken.getToken()];
	                    case 5:
	                        _a = _b.sent();
	                        _b.label = 6;
	                    case 6:
	                        accessToken = _a;
	                        authorizationToken = needsJWT ? "" + accessToken : "Bearer " + accessToken;
	                        infoIO.packet.headers = infoIO.packet.headers || {};
	                        infoIO.packet.headers = Object.assign(infoIO.packet.headers, {
	                            Authorization: authorizationToken
	                        });
	                        return [2 /*return*/, infoIO];
	                }
	            });
	        });
	    };
	    return APIRequestSGDToSTCAuthorization;
	}());
	exports.APIRequestSGDToSTCAuthorization = APIRequestSGDToSTCAuthorization;
	/**
	 * a collection of functions used to decorate API calls for
	 * hi-http and pi-io so we can make calls to STC/API endpoints
	 */
	var STCAPIAdatper = /** @class */ (function () {
	    function STCAPIAdatper(appConfigModel, authToken, $http) {
	        this.appConfigModel = appConfigModel;
	        this.authToken = authToken;
	        this.$http = $http;
	    }
	    STCAPIAdatper.prototype.dummyPromise = function () {
	        return Promise.resolve(undefined);
	    };
	    STCAPIAdatper.prototype.fetchJWTToken = function () {
	        var _this = this;
	        return new Promise(function (resolve, reject) {
	            _this.$http
	                .get('core/client_jwt')
	                .then(function (response) {
	                return resolve(response.data.access_token);
	            })
	                .catch(function (e) {
	                return reject(e);
	            });
	        });
	    };
	    /*
	      reportsAPIs (including appt summ, notes, progress report) =
	        /api/v3/students/[student id]/...
	      pronounsAPIs =
	        /api/v3/student_resources/pronouns?primary_user_ids=[student id]
	      self alerts APIs =
	        /api/v3/student_resources/alerts/form_options
	        /api/v3/student_resources/alerts
	  
	      This function returns true (needs JWT token) for the above URLs
	  
	      student scheduling APIs =
	        /api/v3/student_resources/...
	      followed by options including schedulable, visitable, requestable, confirm_appointment, appointments, appointment_campaigns/scheduler_times, appointment_campaigns/appointments, etc.etc.etc.
	  
	      This function returns false for the above student scheduling URLs
	    */
	    STCAPIAdatper.prototype.needsJWTToken = function (uri) {
	        return ['api/v3/students', 'pronouns', 'alerts'].some(function (str) { return uri.includes(str); });
	    };
	    STCAPIAdatper.prototype.isCampusAPI = function (uri, campusUrl) {
	        if (uri === void 0) { uri = ''; }
	        if (_4.isEmpty(campusUrl)) {
	            return false;
	        }
	        var implicitCampusURI = uri.includes('/api/v2') || uri.includes('/api/v3');
	        return uri.includes(campusUrl) || implicitCampusURI;
	    };
	    STCAPIAdatper.prototype.isSGDAPI = function (uri) {
	        if (uri === void 0) { uri = ''; }
	        return uri.includes('/api/v1');
	    };
	    STCAPIAdatper.prototype.prefixCampusURI = function (api, campusUrl) {
	        if (api === void 0) { api = ''; }
	        var APISeparator = '/api/';
	        var relativeURI = api.split(APISeparator)[1];
	        return "" + campusUrl + APISeparator + relativeURI;
	    };
	    STCAPIAdatper.prototype.handleHTTPError = function (error) {
	        window['HIP'].fn.notify({
	            title: 'Service Unavailable',
	            details: 'This service is temporarily unavailable, please check your network or try again at a later time.'
	        });
	        return Promise.reject(error);
	    };
	    STCAPIAdatper.prototype.createHTTPPointCut = function (httpInvokeFn) {
	        var that = this;
	        return function (httpPayload) {
	            return tslib_1.__awaiter(this, void 0, void 0, function () {
	                var campusUrl, isCampusAPI, needsJWT, accessToken, _a, authorizationToken;
	                var _this = this;
	                return tslib_1.__generator(this, function (_b) {
	                    switch (_b.label) {
	                        case 0:
	                            campusUrl = that.appConfigModel.getConfigProperty("core-campus_url");
	                            isCampusAPI = that.isCampusAPI(this.uri, campusUrl);
	                            return [4 /*yield*/, that.dummyPromise()];
	                        case 1:
	                            _b.sent();
	                            if (!isCampusAPI) {
	                                return [2 /*return*/, httpInvokeFn.call(this, httpPayload).catch(function (e) { return _this.handleHTTPError(e); })];
	                            }
	                            this.uri = that.prefixCampusURI(this.uri, campusUrl);
	                            needsJWT = that.needsJWTToken(this.uri);
	                            if (!needsJWT) return [3 /*break*/, 3];
	                            return [4 /*yield*/, that.fetchJWTToken()];
	                        case 2:
	                            _a = _b.sent();
	                            return [3 /*break*/, 5];
	                        case 3: return [4 /*yield*/, that.authToken.getToken()];
	                        case 4:
	                            _a = _b.sent();
	                            _b.label = 5;
	                        case 5:
	                            accessToken = _a;
	                            authorizationToken = needsJWT ? "" + accessToken : "Bearer " + accessToken;
	                            this.headers = Object.assign(this.headers, {
	                                Authorization: authorizationToken
	                            });
	                            return [2 /*return*/, httpInvokeFn.call(this, httpPayload).catch(function (e) { return _this.handleHTTPError(e); })];
	                    }
	                });
	            });
	        };
	    };
	    STCAPIAdatper.prototype.createIOInterceptor = function () {
	        return new APIRequestSGDToSTCAuthorization(this, this.appConfigModel, this.authToken, this.$http);
	    };
	    return STCAPIAdatper;
	}());
	exports.STCAPIAdatper = STCAPIAdatper;


/***/ }),
/* 1097 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var CapabilityConfigurationService = /** @class */ (function () {
	    function CapabilityConfigurationService(appConfigModel, ngEmailManagementService, DefaultRoute, FEATURE_HOLDS, FEATURE_NOTIFICATIONS, FEATURE_PERSONAL_REMINDERS, FEATURE_MAJOR_EXPLORER, FEATURE_RESOURCES, FEATURE_CONNECT, FEATURE_APPOINTMENTS, FEATURE_STUDY_BUDDIES, FEATURE_SHOW_STUDENT_NK, FEATURE_SELF_ALERT, FEATURE_TODOS, FEATURE_STUDENT_FEEDBACK, ngPriorityFeedCapabilityConfiguration, ngMajorExplorerCapabilityConfiguration, ngFavoriteCapabilityConfiguration, ngConversationsCapabilityConfiguration, ngCourseScheduleCapabilityConfiguration, ngAppointmentSchedulingConfiguration, ngStudyGroupsCapabilityConfiguration, ngSettingsCapabilityConfiguration, ngPollCapabilityConfiguration) {
	        this.appConfigModel = appConfigModel;
	        this.ngEmailManagementService = ngEmailManagementService;
	        this.DefaultRoute = DefaultRoute;
	        this.FEATURE_HOLDS = FEATURE_HOLDS;
	        this.FEATURE_NOTIFICATIONS = FEATURE_NOTIFICATIONS;
	        this.FEATURE_PERSONAL_REMINDERS = FEATURE_PERSONAL_REMINDERS;
	        this.FEATURE_MAJOR_EXPLORER = FEATURE_MAJOR_EXPLORER;
	        this.FEATURE_RESOURCES = FEATURE_RESOURCES;
	        this.FEATURE_CONNECT = FEATURE_CONNECT;
	        this.FEATURE_APPOINTMENTS = FEATURE_APPOINTMENTS;
	        this.FEATURE_STUDY_BUDDIES = FEATURE_STUDY_BUDDIES;
	        this.FEATURE_SHOW_STUDENT_NK = FEATURE_SHOW_STUDENT_NK;
	        this.FEATURE_SELF_ALERT = FEATURE_SELF_ALERT;
	        this.FEATURE_TODOS = FEATURE_TODOS;
	        this.FEATURE_STUDENT_FEEDBACK = FEATURE_STUDENT_FEEDBACK;
	        this.ngPriorityFeedCapabilityConfiguration = ngPriorityFeedCapabilityConfiguration;
	        this.ngMajorExplorerCapabilityConfiguration = ngMajorExplorerCapabilityConfiguration;
	        this.ngFavoriteCapabilityConfiguration = ngFavoriteCapabilityConfiguration;
	        this.ngConversationsCapabilityConfiguration = ngConversationsCapabilityConfiguration;
	        this.ngCourseScheduleCapabilityConfiguration = ngCourseScheduleCapabilityConfiguration;
	        this.ngAppointmentSchedulingConfiguration = ngAppointmentSchedulingConfiguration;
	        this.ngStudyGroupsCapabilityConfiguration = ngStudyGroupsCapabilityConfiguration;
	        this.ngSettingsCapabilityConfiguration = ngSettingsCapabilityConfiguration;
	        this.ngPollCapabilityConfiguration = ngPollCapabilityConfiguration;
	    }
	    CapabilityConfigurationService.prototype.configure = function () {
	        this.configurePriorityFeed();
	        this.configureMajorExplorer();
	        this.configureFavorites();
	        this.configureCourseSchedule();
	        this.configureConversations();
	        this.configureAppointments();
	        this.configureStudyGroups();
	        this.configureSettings();
	        this.configurePoll();
	        this.configureReports();
	    };
	    CapabilityConfigurationService.prototype.configurePriorityFeed = function () {
	        this.ngPriorityFeedCapabilityConfiguration.setConfigs({
	            isMobile: false,
	            isReminderEnabled: this.appConfigModel.isFeatureEnabled(this.FEATURE_PERSONAL_REMINDERS),
	            isHoldEnabled: this.appConfigModel.isFeatureEnabled(this.FEATURE_HOLDS),
	            isNotificationsEnabled: this.appConfigModel.isFeatureEnabled(this.FEATURE_NOTIFICATIONS),
	            isAppointmentEnabled: this.appConfigModel.isFeatureEnabled(this.FEATURE_APPOINTMENTS),
	            isStudyGroupEnabled: this.appConfigModel.isFeatureEnabled(this.FEATURE_STUDY_BUDDIES),
	            isSelfAlertEnabled: this.appConfigModel.isFeatureEnabled(this.FEATURE_SELF_ALERT),
	            isTodosEnabled: this.appConfigModel.isFeatureEnabled(this.FEATURE_TODOS),
	            isStudentFeedbackEnabled: this.appConfigModel.isFeatureEnabled(this.FEATURE_STUDENT_FEEDBACK),
	            institutionMediaURL: this.appConfigModel.getInstitutionMediaPath('reg_dashboard'),
	            isKnowledgeBotEnabled: this.appConfigModel.isFeatureEnabled('core-knowledge_bot')
	        });
	    };
	    CapabilityConfigurationService.prototype.configureMajorExplorer = function () {
	        this.ngMajorExplorerCapabilityConfiguration.config = {
	            isMobile: false,
	            devReqStrategy: this.appConfigModel.getConfigProperty('cat-devreq_assignment_strategy'),
	            navIconTheme: this.appConfigModel.navIconTheme()
	        };
	    };
	    CapabilityConfigurationService.prototype.configureFavorites = function () {
	        this.ngFavoriteCapabilityConfiguration.config = {
	            isMajorExplorerEnabled: this.appConfigModel.isFeatureEnabled(this.FEATURE_MAJOR_EXPLORER),
	            isResourcesEnabled: this.appConfigModel.isFeatureEnabled(this.FEATURE_RESOURCES)
	        };
	    };
	    CapabilityConfigurationService.prototype.configureCourseSchedule = function () {
	        this.ngCourseScheduleCapabilityConfiguration.config = {
	            isMobile: false,
	            navIconTheme: this.appConfigModel.navIconTheme()
	        };
	    };
	    CapabilityConfigurationService.prototype.configureConversations = function () {
	        this.ngConversationsCapabilityConfiguration.config = {
	            isMobile: false,
	            navIconTheme: this.appConfigModel.navIconTheme(),
	            isConnectEnabled: this.appConfigModel.isFeatureEnabled(this.FEATURE_CONNECT)
	        };
	    };
	    CapabilityConfigurationService.prototype.configureAppointments = function () {
	        this.ngAppointmentSchedulingConfiguration.config = {
	            isMobile: false,
	            notificationHandle: 'app-alerts'
	        };
	    };
	    CapabilityConfigurationService.prototype.configureStudyGroups = function () {
	        this.ngStudyGroupsCapabilityConfiguration.config = {
	            isMobile: false,
	            emailService: this.ngEmailManagementService,
	            notificationHandle: 'app-alerts'
	        };
	    };
	    CapabilityConfigurationService.prototype.configureSettings = function () {
	        this.ngSettingsCapabilityConfiguration.config = {
	            isMobile: false,
	            hasIntakePoll: this.appConfigModel.useIntakePoll(),
	            hasFirstTerm: this.appConfigModel.useFirstTermPoll(),
	            institutionMediaPath: this.appConfigModel.getInstitutionMediaPath('core_mobile_school_logo'),
	            isStudentNKCardEnabled: this.appConfigModel.isFeatureEnabled(this.FEATURE_SHOW_STUDENT_NK)
	        };
	    };
	    CapabilityConfigurationService.prototype.configurePoll = function () {
	        this.ngPollCapabilityConfiguration.config = {
	            isMobile: false,
	            hasIntakePoll: this.appConfigModel.useIntakePoll(),
	            hasFirstTerm: this.appConfigModel.useFirstTermPoll(),
	            intakeOrFirstTermID: this.appConfigModel.intakeOrFirstTermID(),
	            defaultRoute: this.DefaultRoute
	        };
	    };
	    CapabilityConfigurationService.prototype.configureReports = function () {
	        localStorage.setItem('eab.navigate.self_alert_create', this.appConfigModel.model.member_features['ssccampus-self_alert_create'].toString());
	    };
	    return CapabilityConfigurationService;
	}());
	exports.CapabilityConfigurationService = CapabilityConfigurationService;


/***/ }),
/* 1098 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var EmailManagementService = /** @class */ (function () {
	    function EmailManagementService(accountModel, appConfigModel, $location, $window) {
	        this.accountModel = accountModel;
	        this.appConfigModel = appConfigModel;
	        this.$location = $location;
	        this.$window = $window;
	        this.supportEmail = 'NavigateStudentTechSupport@eab.com';
	    }
	    EmailManagementService.prototype.trackingId = function () {
	        var tracking_id = this.accountModel.tracking_id;
	        return tracking_id ? "\n** Reference#: " + tracking_id : tracking_id;
	    };
	    EmailManagementService.prototype.studentNK = function () {
	        var student_nk = this.accountModel.student_nk;
	        return student_nk ? "\n** Student_NK#: " + student_nk : student_nk;
	    };
	    EmailManagementService.prototype.institutionName = function () {
	        return "\n** Institution Name: " + this.appConfigModel.getConfigProperty('core-inst_name');
	    };
	    EmailManagementService.prototype.currentPageURL = function () {
	        return "\n** Page URL: " + this.$location.absUrl();
	    };
	    EmailManagementService.prototype.userType = function () {
	        var userType = '\n** User Type: ';
	        if (this.accountModel.isAdvisor) {
	            return userType + "Advisor";
	        }
	        if (this.accountModel.isInstructor) {
	            return userType + "Instructor";
	        }
	        return userType + "Student";
	    };
	    EmailManagementService.prototype.getSupportEmailSubject = function (isFeedback) {
	        return isFeedback ? "User feedback" : "User Support";
	    };
	    EmailManagementService.prototype.getSupportEmailBody = function (isFeedback) {
	        return isFeedback
	            ? '< Type in what feedback you would like to provide >'
	            : '< Type in what problem you would like to report >';
	    };
	    EmailManagementService.prototype.emailFieldStrings = function (text) {
	        return text ? _4.toString(text) : '';
	    };
	    EmailManagementService.prototype.sendSupportEmail = function (data, isFeedBack) {
	        var emailData = {
	            to: this.supportEmail,
	            subject: this.getSupportEmailSubject(isFeedBack),
	            body: this.getSupportEmailBody(isFeedBack) + "\n                    " + this.trackingId() + "\n                    " + this.studentNK() + "\n                    " + this.userType() + "\n                    " + this.institutionName() + "\n                    " + this.currentPageURL()
	        };
	        this.sendEmail(_4.merge(emailData, data));
	    };
	    EmailManagementService.prototype.sendEmail = function (emailData) {
	        var url = "mailto:" + _4.toString(emailData.to) + "?\n          " + (emailData.subject ? 'subject=' + _4.toString(emailData.subject) : '') + "\n          " + (emailData.body ? '&body=' + _4.toString(emailData.body) : '');
	        this.$window.open(url);
	    };
	    return EmailManagementService;
	}());
	exports.EmailManagementService = EmailManagementService;


/***/ }),
/* 1099 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	function PersonalReminderRoutes($stateProvider) {
	    $stateProvider.state('my.newreminder', {
	        url: 'new-reminder/',
	        templateUrl: 'lib/create_personal_reminder/create_personal_reminder.html',
	        controller: 'NewPersonalReminderController',
	        controllerAs: '$ctrl',
	        params: { personalTodoID: undefined },
	        data: { viewTitle: 'Add your own personal to-do' }
	    });
	}
	exports.PersonalReminderRoutes = PersonalReminderRoutes;


/***/ }),
/* 1100 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var CalendarFacadeService = /** @class */ (function () {
	    function CalendarFacadeService() {
	    }
	    CalendarFacadeService.prototype.registerEvent = function () {
	        angular.noop();
	    };
	    CalendarFacadeService.prototype.hasPermissions = function () {
	        angular.noop();
	    };
	    return CalendarFacadeService;
	}());
	exports.CalendarFacadeService = CalendarFacadeService;


/***/ }),
/* 1101 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PusherService = /** @class */ (function () {
	    function PusherService() {
	        this.subscribed = false;
	    }
	    // pusher.disconnect();
	    // Note: connections automatically close when a user navigates to another web page or closes their web browser so there is no need to do this manually.
	    // NOTE: Channel name is limited to 164 characters
	    // channelName for our app is the users email and has to be subscribed once per app session - So its done in header.js
	    PusherService.prototype.configure = function (config) {
	        if (!config.key) {
	            console.warn('Pusher key is missing');
	        }
	        this.pusher = new Pusher(config.key, {
	            cluster: config.cluster || 'mt1',
	            encrypted: true
	        });
	        return this;
	    };
	    PusherService.prototype.startChannel = function (channelName, config) {
	        var _this = this;
	        if (_.isEmpty(channelName)) {
	            console.warn('Unable to start Pusher channel as channel name is not set');
	            return;
	        }
	        // Prevent creating multiple pusher channels
	        if (!this.pusher && config) {
	            this.configure(config);
	        }
	        if (!this.pusher) {
	            console.warn('No pusher initiated, configure first');
	            return;
	        }
	        if (!this.pusherChannel) {
	            this.pusherChannel = this.pusher.subscribe(channelName);
	        }
	        if (this.pusherChannel.name !== channelName) {
	            this.pusherChannel = undefined;
	            this.pusherChannel = this.pusher.subscribe(channelName);
	        }
	        this.waitForSubScription(channelName, function () {
	            _this.subscribed = true;
	        });
	    };
	    PusherService.prototype.waitForSubScription = function (channelName, callback) {
	        if (this.subscribed) {
	            callback();
	        }
	        else {
	            this.bindToPusherEvent(channelName, 'pusher:subscription_succeeded', callback, true);
	        }
	    };
	    // tslint:disable-next-line: bool-param-default
	    PusherService.prototype.bindToPusherEvent = function (channelName, listeningEvent, callbackFunction, preventUnbind) {
	        if (!!this.pusherChannel) {
	            if (!preventUnbind) {
	                this.pusherChannel.unbind(listeningEvent); // unbind any previous callbacks to maintain single callback.
	            }
	            this.pusherChannel.bind(listeningEvent, callbackFunction);
	        }
	    };
	    PusherService.prototype.unBindToPusherEvent = function (channelName, listeningEvent, callbackFunction) {
	        if (!!this.pusherChannel) {
	            this.pusherChannel.unbind(listeningEvent, callbackFunction);
	        }
	    };
	    // Fallback method for old code
	    PusherService.prototype.startPusherChannel = function (channelName, listeningEvent, callbackFunction) {
	        // Prevent multiple bindings to same channel every time we click register or drop course buttons
	        this.unBindToPusherEvent(channelName, listeningEvent, callbackFunction);
	        this.bindToPusherEvent(channelName, listeningEvent, callbackFunction);
	    };
	    return PusherService;
	}());
	exports.PusherService = PusherService;


/***/ }),
/* 1102 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var StringServant = /** @class */ (function () {
	    function StringServant() {
	    }
	    StringServant.build = function () {
	        return new StringServant();
	    };
	    StringServant.prototype.toNumber = function (str) {
	        return _.reduce(str, function (sum, letter) {
	            sum += letter.charCodeAt(0);
	            return sum;
	        }, 0);
	    };
	    /*
	    we can curry any method or now we can just use the method and it got easier to write/test
	    const shouldUpdate = _.curry(pluralize)('single-text', 'plural-text')
	    const finalValue = pluralize('single-text', 'plural-text', 2);
	    */
	    StringServant.prototype.pluralize = function (singularText, pluralText) {
	        return function (changes) {
	            return changes > 1 ? pluralText : singularText;
	        };
	    };
	    return StringServant;
	}());
	exports.StringServant = StringServant;


/***/ }),
/* 1103 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular.module('lib').service('stopImpersonationCommand', function ($http, defineCommand) {
	    return defineCommand('stopImpersonationCommand', function (deferred) {
	        $http
	            .delete('/core/impersonation/')
	            .then(function (response) {
	            deferred.resolve(response.data);
	        })
	            .catch(function (response) {
	            return deferred.reject(response.data);
	        });
	    });
	});


/***/ }),
/* 1104 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var AppHeaderController = /** @class */ (function () {
	    function AppHeaderController(DefaultRoute, $state, appConfigModel, ngUserModesService, $location, ngComponentCommunicatorService, openOpenableElementCommand, accountModel, stopImpersonationCommand, log) {
	        var _this = this;
	        this.DefaultRoute = DefaultRoute;
	        this.$state = $state;
	        this.appConfigModel = appConfigModel;
	        this.ngUserModesService = ngUserModesService;
	        this.$location = $location;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.openOpenableElementCommand = openOpenableElementCommand;
	        this.accountModel = accountModel;
	        this.stopImpersonationCommand = stopImpersonationCommand;
	        this.log = log;
	        this.goHome = function () {
	            _this.$state.go(_this.DefaultRoute);
	        };
	    }
	    AppHeaderController.prototype.$onInit = function () {
	        this.productHeader = this.appConfigModel.productName().toLowerCase() + "-header";
	        this.institutionName = this.appConfigModel.getConfigProperty('core-inst_name');
	        this.isStudentPreview = this.ngUserModesService.isStudentPreview;
	        this.isUserModeStudent =
	            this.ngUserModesService.isUserModeStudent ||
	                window.location.href.includes('/#/my') ||
	                window.location.href.includes('/#/dl');
	        this.defaultStateContext = this.$state.is('poll') ? "poll" : this.DefaultRoute;
	    };
	    AppHeaderController.prototype.openHelp = function () {
	        this.openOpenableElementCommand('appSupportDrawer');
	    };
	    AppHeaderController.prototype.showHelpButton = function () {
	        return this.$location.url().search(/authentication/) === -1 && this.isUserModeStudent;
	    };
	    AppHeaderController.prototype.stopImpersonation = function () {
	        var _this = this;
	        this.stopImpersonationCommand()
	            .then(function () {
	            window.open("/content", '_self');
	            _this.log.user.success("You stopped impersonating " + _this.accountModel.fullname + ".");
	        })
	            .catch(function (error) {
	            _this.log.error(error);
	        });
	    };
	    return AppHeaderController;
	}());
	exports.AppHeaderController = AppHeaderController;
	var AppHeaderComponent = /** @class */ (function () {
	    function AppHeaderComponent() {
	        this.templateUrl = 'lib/header/components/app_header/app_header.html';
	        this.controller = AppHeaderController;
	        this.transclude = true;
	    }
	    return AppHeaderComponent;
	}());
	exports.AppHeaderComponent = AppHeaderComponent;


/***/ }),
/* 1105 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MyHeaderController = /** @class */ (function () {
	    function MyHeaderController(FEATURE_ACCOUNT_HOLD_NK, LEANAP_EXPOSE_LEANAP_APIS, FEATURE_STANDALONE_SCHEDULER, DefaultRoute, $state, $rootScope, ngUserModesService, appConfigModel) {
	        this.FEATURE_ACCOUNT_HOLD_NK = FEATURE_ACCOUNT_HOLD_NK;
	        this.LEANAP_EXPOSE_LEANAP_APIS = LEANAP_EXPOSE_LEANAP_APIS;
	        this.FEATURE_STANDALONE_SCHEDULER = FEATURE_STANDALONE_SCHEDULER;
	        this.DefaultRoute = DefaultRoute;
	        this.$state = $state;
	        this.$rootScope = $rootScope;
	        this.ngUserModesService = ngUserModesService;
	        this.appConfigModel = appConfigModel;
	        this.isStandaloneSchedulerEnabled = false;
	        this.ap3Url = '';
	        this.isPlannerActive = false;
	        this.isExplorerActive = false;
	        this.isPlanner3Active = false;
	        this.isPlanner3Enabled = false;
	        this.isStandaloneSchedulerActive = false;
	    }
	    MyHeaderController.prototype.$onInit = function () {
	        this.reflectStateUpdates();
	        this.reflectStateUpdatesBound = this.$rootScope.$on('$stateChangeSuccess', this.reflectStateUpdates.bind(this));
	    };
	    MyHeaderController.prototype.$onChanges = function () {
	        this.reflectStateUpdates();
	    };
	    MyHeaderController.prototype.$onDestroy = function () {
	        // unsubscribing from the rootscope event
	        this.reflectStateUpdatesBound();
	    };
	    MyHeaderController.prototype.reflectStateUpdates = function () {
	        this.isAccountHoldEnabled = this.appConfigModel.isFeatureEnabled(this.FEATURE_ACCOUNT_HOLD_NK);
	        this.isStandaloneSchedulerEnabled = this.appConfigModel.isFeatureEnabled(this.FEATURE_STANDALONE_SCHEDULER);
	        this.ap3Url = this.ngUserModesService.isAdvisorOnly ? "#/my/ap3/advisor/" : "#/my/ap3/student/";
	        var AP3States = ['my.ap3'];
	        this.isPlanner3Active = _.some(AP3States, this.$state.includes);
	        this.isPlanner3Enabled = this.appConfigModel.isFeatureEnabled(this.LEANAP_EXPOSE_LEANAP_APIS);
	        var AP1States = ['my.planner', 'my.routeModal.course_details', 'my.routeModal.courseDetails'];
	        var schedulerState = 'my.schedule';
	        if (!this.isStandaloneSchedulerEnabled) {
	            AP1States.push(schedulerState);
	        }
	        this.isPlannerActive = _.some(AP1States, this.$state.includes);
	        this.isStandaloneSchedulerActive = !this.isStandaloneSchedulerEnabled
	            ? false
	            : _.some(['my.standalonescheduler', schedulerState], this.$state.includes);
	        this.isExplorerActive = this.isStandaloneSchedulerActive ? false : !this.isPlannerActive && !this.isPlanner3Active;
	    };
	    return MyHeaderController;
	}());
	exports.MyHeaderController = MyHeaderController;
	var MyHeaderComponent = /** @class */ (function () {
	    function MyHeaderComponent() {
	        this.templateUrl = 'lib/header/components/my_header/my_header.html';
	        this.controller = MyHeaderController;
	    }
	    return MyHeaderComponent;
	}());
	exports.MyHeaderComponent = MyHeaderComponent;


/***/ }),
/* 1106 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var NavCalendarController = /** @class */ (function () {
	    function NavCalendarController(accountModel, NetworkUrlConfiguration, appConfigModel) {
	        this.accountModel = accountModel;
	        this.NetworkUrlConfiguration = NetworkUrlConfiguration;
	        this.appConfigModel = appConfigModel;
	    }
	    return NavCalendarController;
	}());
	exports.NavCalendarController = NavCalendarController;
	exports.NavCalendarDirective = {
	    restrict: 'E',
	    replace: false,
	    // we want to pollute the scope to save the micro and shut it down on element.destroy
	    //
	    scope: true,
	    controller: 'NavCalendarController',
	    link: function (scope, element, attrs, controller) {
	        var calendarMicroEl = element[0];
	        var NetworkUrlConfiguration = controller.NetworkUrlConfiguration, accountModel = controller.accountModel;
	        var hasUserLoggedIn = accountModel.id > 0;
	        if (!hasUserLoggedIn) {
	            return;
	        }
	        window.$ip
	            .requires([
	            './ad694d3a72cc6b21/micros/nav/calendar/bin/index.js?resource_type=module',
	            './ad694d3a72cc6b21/micros/nav/calendar/bin/index.css'
	        ])
	            .then(function (_a) {
	            var microDelegate = _a[0];
	            // we will need this soon when we connect to STC
	            // const stcURI = appConfigModel.model['core-campus_url'];
	            var sgdURI = NetworkUrlConfiguration.configure().prependUrl;
	            var account = {
	                user_mode: 'student'
	            };
	            scope.microDelegate = microDelegate;
	            return microDelegate.startup(calendarMicroEl, {
	                routes: {
	                    uri: '/my/calendar'
	                },
	                view: {
	                    configuration: {
	                        account: account,
	                        endpoints: {
	                            host: {
	                                application_name: 'sgd',
	                                server: sgdURI
	                            },
	                            authorization: {
	                                type: 'csrf'
	                            }
	                        }
	                    }
	                }
	            });
	        });
	        scope.$on('$destroy', function () {
	            scope.microDelegate.shutdown();
	        });
	    }
	};


/***/ }),
/* 1107 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var NavFpMicroController = /** @class */ (function () {
	    function NavFpMicroController(accountModel, NetworkUrlConfiguration, appConfigModel) {
	        this.accountModel = accountModel;
	        this.NetworkUrlConfiguration = NetworkUrlConfiguration;
	        this.appConfigModel = appConfigModel;
	    }
	    return NavFpMicroController;
	}());
	exports.NavFpMicroController = NavFpMicroController;
	exports.NavFpMicroDirective = {
	    restrict: 'E',
	    replace: false,
	    // we want to pollute the scope to save the micro and shut it down on element.destroy
	    //
	    scope: true,
	    controller: 'NavFpMicroController',
	    link: function (scope, element, attrs, controller) {
	        var appEl = element[0];
	        var NetworkUrlConfiguration = controller.NetworkUrlConfiguration, accountModel = controller.accountModel;
	        var hasUserLoggedIn = accountModel.id > 0;
	        if (!hasUserLoggedIn) {
	            return;
	        }
	        window.$ip
	            .requires([
	            './ad694d3a72cc6b21/micros/nav/financial-planner/bin/index.js?resource_type=module',
	            './ad694d3a72cc6b21/micros/nav/financial-planner/bin/index.css'
	        ])
	            .then(function (_a) {
	            var microDelegate = _a[0];
	            // we will need this soon when we connect to STC
	            // const stcURI = appConfigModel.model['core-campus_url'];
	            var sgdURI = NetworkUrlConfiguration.configure().prependUrl;
	            var account = {
	                user_mode: 'student'
	            };
	            scope.microDelegate = microDelegate;
	            return microDelegate.startup(appEl, {
	                routes: {
	                    uri: '/my/fp'
	                },
	                view: {
	                    configuration: {
	                        account: account,
	                        endpoints: {
	                            host: {
	                                application_name: 'sgd',
	                                server: sgdURI
	                            },
	                            authorization: {
	                                type: 'csrf'
	                            }
	                        }
	                    }
	                }
	            });
	        });
	        scope.$on('$destroy', function () {
	            scope.microDelegate.shutdown();
	        });
	    }
	};


/***/ }),
/* 1108 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var NavHostController = /** @class */ (function () {
	    function NavHostController(ngMicroRoutes, ngHostingService) {
	        this.ngMicroRoutes = ngMicroRoutes;
	        this.ngHostingService = ngHostingService;
	    }
	    return NavHostController;
	}());
	exports.NavHostController = NavHostController;
	exports.NavHostDirective = {
	    restrict: 'E',
	    replace: false,
	    // we want to pollute the scope to save the micro and shut it down on element.destroy
	    //
	    scope: true,
	    controller: 'NavHostController',
	    link: function (scope, element, attrs, controller) {
	        var hostMicroEl = element[0];
	        var ngMicroRoutes = controller.ngMicroRoutes, ngHostingService = controller.ngHostingService;
	        // hosting service does not shutdown when we clear browser cache and hard refresh the app, which causing the api calls to fails because of missing authorization token
	        if (ngHostingService.hostMicro) {
	            ngHostingService.hostMicro.shutdown();
	        }
	        ngHostingService.defineGlobalConstants();
	        ngHostingService.initializeMicro(hostMicroEl, ngMicroRoutes).then(function () {
	            scope.hostMicro = ngHostingService.hostMicro;
	            scope.hostListener = ngHostingService.hostListener;
	        });
	        scope.$on('$destroy', function () {
	            scope.hostMicro.ess.off(scope.hostListener);
	            scope.hostMicro.shutdown();
	        });
	    }
	};


/***/ }),
/* 1109 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var NavSurveyHomeMicroController = /** @class */ (function () {
	    function NavSurveyHomeMicroController(accountModel, NetworkUrlConfiguration, appConfigModel) {
	        this.accountModel = accountModel;
	        this.NetworkUrlConfiguration = NetworkUrlConfiguration;
	        this.appConfigModel = appConfigModel;
	    }
	    NavSurveyHomeMicroController.prototype.$onInit = function () {
	        window.location.assign('#/my/survey-home/list');
	    };
	    return NavSurveyHomeMicroController;
	}());
	exports.NavSurveyHomeMicroController = NavSurveyHomeMicroController;
	exports.NavSurveyHomeMicroDirective = {
	    restrict: 'E',
	    replace: false,
	    // we want to pollute the scope to save the micro and shut it down on element.destroy
	    //
	    scope: true,
	    controller: 'NavSurveyHomeMicroController',
	    link: function (scope, element, attrs, controller) {
	        var appEl = element[0];
	        var NetworkUrlConfiguration = controller.NetworkUrlConfiguration, accountModel = controller.accountModel;
	        var hasUserLoggedIn = accountModel.id > 0;
	        if (!hasUserLoggedIn) {
	            return;
	        }
	        window.$ip
	            .requires([
	            './ad694d3a72cc6b21/micros/nav/survey-home/bin/index.js?resource_type=module',
	            './ad694d3a72cc6b21/micros/nav/survey-home/bin/index.css'
	        ])
	            .then(function (_a) {
	            var microDelegate = _a[0];
	            var sgdURI = NetworkUrlConfiguration.configure().prependUrl;
	            var account = {
	                user_mode: 'student'
	            };
	            scope.microDelegate = microDelegate;
	            return microDelegate.startup(appEl, {
	                routes: {
	                    uri: '/my/survey-home'
	                },
	                view: {
	                    configuration: {
	                        account: account,
	                        endpoints: {
	                            host: {
	                                application_name: 'sgd',
	                                server: sgdURI
	                            },
	                            authorization: {
	                                type: 'csrf'
	                            }
	                        }
	                    }
	                }
	            });
	        });
	        scope.$on('$destroy', function () {
	            scope.microDelegate.shutdown();
	        });
	    }
	};


/***/ }),
/* 1110 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var nav_fp_micro_1 = __webpack_require__(1107);
	var nav_survey_home_micro_1 = __webpack_require__(1109);
	var nav_host_1 = __webpack_require__(1108);
	var nav_calendar_1 = __webpack_require__(1106);
	var hosting_service_1 = __webpack_require__(1112);
	var micro_routes_1 = __webpack_require__(1113);
	var host_routes_1 = __webpack_require__(1111);
	angular
	    .module('host', [])
	    // /my/fp
	    //
	    .controller('NavFpMicroController', nav_fp_micro_1.NavFpMicroController)
	    .directive('navFpMicro', function () { return nav_fp_micro_1.NavFpMicroDirective; })
	    // /my/survey_home
	    //
	    .controller('NavSurveyHomeMicroController', nav_survey_home_micro_1.NavSurveyHomeMicroController)
	    .directive('navSurveyHomeMicro', function () { return nav_survey_home_micro_1.NavSurveyHomeMicroDirective; })
	    // /my/host
	    //
	    .controller('NavHostController', nav_host_1.NavHostController)
	    .directive('navHost', function () { return nav_host_1.NavHostDirective; })
	    // /my/calendar
	    //
	    .controller('NavCalendarController', nav_calendar_1.NavCalendarController)
	    .directive('navCalendar', function () { return nav_calendar_1.NavCalendarDirective; })
	    // host (fi-hosting)
	    //
	    .service('ngHostingService', hosting_service_1.HostingService)
	    .constant('ngMicroRoutes', micro_routes_1.MicroRoutes)
	    .run(hosting_service_1.initializeHosting)
	    .config(host_routes_1.HostRoutes);


/***/ }),
/* 1111 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	function HostRoutes($stateProvider, $urlRouterProvider) {
	    $stateProvider
	        // go to `#/my/fp`
	        //
	        //
	        .state('my.fp', {
	        abstract: true,
	        templateUrl: 'lib/host/views/nav-fp-micro/nav-fp-micro.html'
	    })
	        .state('my.fp.active', {
	        url: 'fp/{path:.*}',
	        data: {
	            viewTitle: 'Financial Planner'
	        }
	    })
	        .state('my.surveys', {
	        abstract: true,
	        templateUrl: 'lib/host/views/nav-survey-home-micro/nav-survey-home-micro.html'
	    })
	        .state('my.surveys.list', {
	        url: 'survey-home/{path:.*}'
	    })
	        .state('my.host', {
	        abstract: true,
	        templateUrl: 'lib/host/views/nav-host/nav-host.html'
	    })
	        .state('my.host.active', {
	        url: 'host/{path:.*}'
	    })
	        .state('my.calendar', {
	        abstract: true,
	        templateUrl: 'lib/host/views/nav-calendar/nav-calendar.html'
	    })
	        .state('my.calendar.active', {
	        url: 'calendar/{path:.*}'
	    })
	        .state('my.journeys.active', {
	        url: 'journeys/{path:.*}'
	    });
	}
	exports.HostRoutes = HostRoutes;


/***/ }),
/* 1112 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var subscribers_1 = __webpack_require__(1114);
	var HostingService = /** @class */ (function () {
	    function HostingService() {
	        this.disabledProcesses = [
	            'authentication',
	            'interaction',
	            'navigation',
	            'analytics',
	            'loading',
	            'logging',
	            'product',
	            'session',
	            'sentry',
	            'menu',
	            'view'
	            //'history',
	            // 'network',
	        ].reduce(function (_, processName) {
	            var _a;
	            return (tslib_1.__assign(tslib_1.__assign({}, _), (_a = {}, _a[processName] = { disabled: true }, _a)));
	        }, {});
	    }
	    HostingService.prototype.initializeHosting = function () {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            var Hosting, hosting;
	            return tslib_1.__generator(this, function (_a) {
	                switch (_a.label) {
	                    case 0: return [4 /*yield*/, window.$ip.require('@eab-fip/fi-hosting')];
	                    case 1:
	                        Hosting = _a.sent();
	                        hosting = new Hosting();
	                        // startup the hosting instance
	                        //
	                        return [4 /*yield*/, hosting.startup(tslib_1.__assign({}, this.disabledProcesses))];
	                    case 2:
	                        // startup the hosting instance
	                        //
	                        _a.sent();
	                        this.hosting = hosting;
	                        return [2 /*return*/, this];
	                }
	            });
	        });
	    };
	    HostingService.prototype.initializeMicro = function (hostMicroEl, ngMicroRoutes) {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            var Micro, hostMicro, routes, microEventQuery, hostListener;
	            return tslib_1.__generator(this, function (_a) {
	                switch (_a.label) {
	                    case 0: return [4 /*yield*/, window.$ip.require('@eab-fip/fi-micro')];
	                    case 1:
	                        Micro = _a.sent();
	                        hostMicro = new Micro();
	                        routes = ngMicroRoutes.createRoutes({
	                            token: this.accountModel.token,
	                            server: this.NetworkUrlConfiguration.configure().prependUrl || ''
	                        });
	                        subscribers_1.addSubscribers(hostMicro);
	                        return [4 /*yield*/, hostMicro.startup(hostMicroEl, {
	                                id: 'sgd-host-micro',
	                                micro_interlink: routes.micro_interlink,
	                                routes: routes,
	                                view: {
	                                    environment: 'local',
	                                    configuration: {},
	                                    parameters: {},
	                                    constants: {}
	                                },
	                                settings: {
	                                    use_life_cycle: true
	                                }
	                            })];
	                    case 2:
	                        _a.sent();
	                        microEventQuery = { site: 'fi-micro', status: ['failure', 'success'] };
	                        hostListener = hostMicro.ess.on(microEventQuery, hostMicro.ess.reporters.console);
	                        // if you think routes are not being converted correctly
	                        //
	                        // hostMicro.ess.on(
	                        //   {
	                        //     site: 'fi-micro',
	                        //     source: 'view_model',
	                        //     action: 'build-routing-table'
	                        //   },
	                        //   (e) => console.dir(e)
	                        // );
	                        this.hostListener = hostListener;
	                        this.hostMicro = hostMicro;
	                        return [2 /*return*/, this];
	                }
	            });
	        });
	    };
	    HostingService.prototype.initializeIO = function (ngSTCAPIAdatper) {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            var io, apiHostingIO, $win;
	            return tslib_1.__generator(this, function (_a) {
	                switch (_a.label) {
	                    case 0: return [4 /*yield*/, window.$ip.require('@eab-pip/pi-io')];
	                    case 1:
	                        io = _a.sent();
	                        apiHostingIO = io.adapter('api/hosting');
	                        // turn on csrf authorization on all pi-io invocations
	                        //
	                        apiHostingIO
	                            .intercept(io.fn.api.request.authorization)
	                            .intercept(io.fn.api.request.defaults)
	                            .intercept(io.fn.api.response.noContent)
	                            .intercept(io.fn.api.response.exposeRedirect)
	                            .intercept(io.fn.api.response.humanReadableErrors)
	                            .options({
	                            defaults: {
	                                api: {
	                                    headers: {
	                                        'Content-Type': 'application/json;odata=verbose',
	                                        'user-mode': 'student'
	                                    }
	                                }
	                            },
	                            authorization: {
	                                type: 'csrf',
	                                overwrite_authorization: false
	                            }
	                        });
	                        $win = window;
	                        $win.hiReady(function () {
	                            $win.HIP.aop.pointCut('hi-http', 'invoke', function (httpInvokeFn) {
	                                return ngSTCAPIAdatper.createHTTPPointCut(httpInvokeFn);
	                            });
	                        });
	                        // integrate stc api with pi-io
	                        //
	                        apiHostingIO.intercept(ngSTCAPIAdatper.createIOInterceptor());
	                        // for debugging
	                        //
	                        this.apiHostingIO = apiHostingIO;
	                        return [2 /*return*/, this];
	                }
	            });
	        });
	    };
	    /**
	     * called before we startup the micro
	     */
	    HostingService.prototype.defineGlobalConstants = function () {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            var $win;
	            return tslib_1.__generator(this, function (_a) {
	                $win = window;
	                $win.$ip.constants.upgrade({
	                    '@stc_api_base_uri': this.appConfigModel.getConfigProperty('core-campus_url') || '',
	                    '@sgd_api_base_uri': this.NetworkUrlConfiguration.configure().prependUrl || '',
	                    '@sgd_var__student_nk': this.accountModel.student_nk
	                });
	                return [2 /*return*/];
	            });
	        });
	    };
	    return HostingService;
	}());
	exports.HostingService = HostingService;
	exports.initializeHosting = function (ngHostingService, ngSTCAPIAdatper, NetworkUrlConfiguration, appConfigModel, accountModel) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
	    var e_1;
	    return tslib_1.__generator(this, function (_a) {
	        switch (_a.label) {
	            case 0:
	                _a.trys.push([0, 3, , 4]);
	                ngHostingService.NetworkUrlConfiguration = NetworkUrlConfiguration;
	                ngHostingService.appConfigModel = appConfigModel;
	                ngHostingService.accountModel = accountModel;
	                return [4 /*yield*/, ngHostingService.initializeHosting()];
	            case 1:
	                _a.sent();
	                return [4 /*yield*/, ngHostingService.initializeIO(ngSTCAPIAdatper)];
	            case 2:
	                _a.sent();
	                return [3 /*break*/, 4];
	            case 3:
	                e_1 = _a.sent();
	                return [3 /*break*/, 4];
	            case 4: return [2 /*return*/];
	        }
	    });
	}); };


/***/ }),
/* 1113 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MicroRoutes = /** @class */ (function () {
	    function MicroRoutes() {
	    }
	    MicroRoutes.createRoutes = function (options) {
	        var configuration = {
	            view: {
	                configuration: {
	                    account: {
	                        user_mode: 'student'
	                    },
	                    endpoints: {
	                        host: {
	                            application_name: 'sgd',
	                            server: options.server
	                        },
	                        authorization: {
	                            type: 'digest',
	                            token: options.token
	                        }
	                    }
	                }
	            }
	        };
	        var micro_interlink = [
	            {
	                configuration: configuration,
	                id: 'micro_sgd_resource',
	                location_uri: '/resources',
	                resource_uri: './ad694d3a72cc6b21/micros/nav/resources/bin',
	                source_uri: [
	                    './ad694d3a72cc6b21/micros/nav/resources/bin/index.json',
	                    './ad694d3a72cc6b21/micros/nav/resources/bin/index.css'
	                ]
	            },
	            {
	                configuration: configuration,
	                id: 'micro_sgd_financial_planner',
	                location_uri: '/fp',
	                resource_uri: './ad694d3a72cc6b21/micros/nav/financial-planner/resources',
	                source_uri: [
	                    './ad694d3a72cc6b21/micros/nav/financial-planner/bin/index.json',
	                    './ad694d3a72cc6b21/micros/nav/financial-planner/bin/index.css'
	                ]
	            },
	            {
	                configuration: configuration,
	                id: 'micro_sgd_survey_home',
	                location_uri: '/survey_home',
	                resource_uri: './ad694d3a72cc6b21/micros/nav/survey-home/resources',
	                source_uri: [
	                    './ad694d3a72cc6b21/micros/nav/survey-home/bin/index.json',
	                    './ad694d3a72cc6b21/micros/nav/survey-home/bin/index.css'
	                ]
	            },
	            {
	                configuration: configuration,
	                id: 'micro_sgd_calendar',
	                location_uri: '/calendar',
	                resource_uri: './ad694d3a72cc6b21/micros/nav/calendar/resources',
	                source_uri: [
	                    './ad694d3a72cc6b21/micros/nav/calendar/bin/index',
	                    './ad694d3a72cc6b21/micros/nav/calendar/bin/index.css'
	                ]
	            },
	            {
	                configuration: configuration,
	                id: 'micro_sgd_journeys',
	                location_uri: '/events',
	                resource_uri: './ad694d3a72cc6b21/micros/nav/student-journeys/resources',
	                source_uri: [
	                    './ad694d3a72cc6b21/micros/nav/student-journeys/bin/index',
	                    './ad694d3a72cc6b21/micros/nav/student-journeys/bin/index.css'
	                ]
	            }
	        ];
	        var routes = [
	            {
	                uri: '/resources/*',
	                layout_scheme: 'main',
	                title: 'Resources',
	                marker: '/micro/resources',
	                regions: [
	                    {
	                        region: 'main',
	                        view_preloaded: 'micro_sgd_resource'
	                    }
	                ]
	            },
	            {
	                uri: '/calendar/*',
	                layout_scheme: 'main',
	                title: 'Calendar',
	                marker: '/micro/calendar',
	                regions: [
	                    {
	                        region: 'main',
	                        view_preloaded: 'micro_sgd_calendar'
	                    }
	                ]
	            },
	            {
	                uri: '/fp/*',
	                layout_scheme: 'main',
	                title: 'Financial Planner',
	                marker: '/micro/fp',
	                regions: [
	                    {
	                        region: 'main',
	                        view_preloaded: 'micro_sgd_financial_planner'
	                    }
	                ]
	            },
	            {
	                uri: '/survey_home/*',
	                layout_scheme: 'main',
	                title: 'Survey Home',
	                marker: '/micro/survey_home',
	                regions: [
	                    {
	                        region: 'main',
	                        view_preloaded: 'micro_sgd_survey_home'
	                    }
	                ]
	            },
	            {
	                uri: '/events/*',
	                layout_scheme: 'main',
	                title: 'Journeys',
	                marker: '/micro/journeys',
	                regions: [
	                    {
	                        region: 'main',
	                        view_preloaded: 'micro_sgd_journeys'
	                    }
	                ]
	            },
	            {
	                uri: '/kbi',
	                layout_scheme: 'main',
	                title: 'Knowledge Bot',
	                regions: [
	                    {
	                        region: 'main',
	                        view_tag: 'eab-nav-knowledge-bot',
	                        on_enter: 'on_enter -> /kbi',
	                        properties: {
	                            image: './ad694d3a72cc6b21/res/eab-bot-logo.png',
	                            heading: 'Knowledge Bot',
	                            placeholder: 'Ask me a question',
	                            uri: 'wss://-- ctm endpoint --',
	                            ctmWs: {
	                                endpoint_uri: '/api/v1/core/retrieve_endpoint/?service_key=navai&endpoint_name=ws',
	                                endpoint_token: '/api/v1/core/client_jwt/',
	                                uri_suffix: '1'
	                            }
	                        }
	                    }
	                ]
	            }
	        ];
	        return {
	            uri: '/my/host',
	            on_enter: 'my_host -> on_enter',
	            micro_interlink: micro_interlink,
	            routes: routes
	        };
	    };
	    return MicroRoutes;
	}());
	exports.MicroRoutes = MicroRoutes;


/***/ }),
/* 1114 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	function addSubscribers(hostMicro) {
	    var _this = this;
	    hostMicro
	        .on('initialize', function () { })
	        .on('activate', function () { })
	        .on('mount', function () { });
	    hostMicro.subscribe('enter -> /micro/survey-home', function (parameters) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
	        return tslib_1.__generator(this, function (_a) {
	            window.location.assign('#/my/host/survey-home/list');
	            return [2 /*return*/];
	        });
	    }); });
	    // load knowledge bot when we go to kbi
	    //
	    //
	    hostMicro.subscribe('on_enter -> /kbi', function (parameters) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
	        var $ip;
	        return tslib_1.__generator(this, function (_a) {
	            switch (_a.label) {
	                case 0:
	                    $ip = window['$ip'];
	                    // wait for knowledge bot
	                    //
	                    return [4 /*yield*/, $ip.$loader.loadCrate('@eab-nav/knowledge-bot', 'local')];
	                case 1:
	                    // wait for knowledge bot
	                    //
	                    _a.sent();
	                    // load HI/F tools
	                    //
	                    $ip.requires(['@eab-pip/pi-f1', '@eab-pip/pi-io']).then(function (_a) {
	                        var f1 = _a[0], io = _a[1];
	                        // after load of element we need to send message to bot
	                        //
	                        setTimeout(function () {
	                            var $ip = window['$ip'];
	                            var baseURI = (localStorage.getItem('NetworkConfiguration') || '').trim().replace(/"/g, '');
	                            new Promise(function (resolve) {
	                                // load the title of the knowledge bot
	                                //
	                                //
	                                io.create('api')
	                                    .include('api/hosting')
	                                    .intercept(io.fn.api.request.ctm)
	                                    .options({
	                                    authorization: {
	                                        type: 'ctm'
	                                    },
	                                    servers: {
	                                        ctm: {
	                                            endpoint_uri_headers: {},
	                                            endpoint_token_headers: {},
	                                            endpoint_uri: "/api/v1/core/retrieve_endpoint/?service_key=navai&endpoint_name=products",
	                                            endpoint_token: "/api/v1/core/client_jwt/",
	                                            endpoint_token_response_ptr: "/access_token",
	                                            endpoint_uri_response_ptr: "/access_url",
	                                            endpoint_uri_split_string: "/split"
	                                        }
	                                    }
	                                })
	                                    .intercept({
	                                    type: 'request',
	                                    invoke: function (infoIO) {
	                                        return tslib_1.__awaiter(this, void 0, void 0, function () {
	                                            return tslib_1.__generator(this, function (_a) {
	                                                infoIO.uri = infoIO.uri.replace('/products/split', '') + "/products/1";
	                                                return [2 /*return*/, infoIO];
	                                            });
	                                        });
	                                    }
	                                })
	                                    .invoke('')
	                                    .then(function (response) {
	                                    if (!response.data) {
	                                        return resolve({});
	                                    }
	                                    var kbiEl = document.querySelector('eab-nav-knowledge-bot');
	                                    if (!kbiEl) {
	                                        return resolve({});
	                                    }
	                                    // only if there is a name should we update
	                                    //
	                                    if (response.data.name) {
	                                        kbiEl.heading = response.data.name;
	                                    }
	                                    return resolve(response.data);
	                                });
	                            }).then(function (product) {
	                                //
	                                //
	                                //
	                                io.create('api')
	                                    .include('api/hosting')
	                                    .intercept(io.fn.api.request.ctm)
	                                    .options({
	                                    authorization: {
	                                        type: 'ctm'
	                                    },
	                                    servers: {
	                                        ctm: {
	                                            endpoint_uri_headers: {},
	                                            endpoint_token_headers: {},
	                                            endpoint_uri: "/api/v1/core/retrieve_endpoint/?service_key=navai&endpoint_name=legal_notice",
	                                            endpoint_token: "/api/v1/core/client_jwt/",
	                                            endpoint_token_response_ptr: '/access_token',
	                                            endpoint_uri_response_ptr: '/access_url',
	                                            endpoint_uri_split_string: '?'
	                                        }
	                                    }
	                                })
	                                    .invoke('')
	                                    .then(function (response) {
	                                    if (!response.data) {
	                                        return;
	                                    }
	                                    var kbiEl = document.querySelector('eab-nav-knowledge-bot');
	                                    if (!kbiEl) {
	                                        return;
	                                    }
	                                    kbiEl.prompts = kbiEl.prompts || [];
	                                    if (response.data.notice) {
	                                        kbiEl.prompts.push({ html: response.data.notice });
	                                    }
	                                    if (product.use_greeting && product.greeting) {
	                                        kbiEl.prompts.push({ html: product.greeting });
	                                    }
	                                    else if (!product.use_greeting) {
	                                        kbiEl.prompts.push({ html: "Hello! I am a knowledge bot here to answer student questions. How can I help you today?" });
	                                    }
	                                });
	                            });
	                            // load the image for the knowledge bot
	                            //
	                            //
	                            io.create('null')
	                                .include('api/hosting')
	                                .intercept(io.fn.api.request.ctm)
	                                .options({
	                                authorization: {
	                                    type: 'ctm'
	                                },
	                                servers: {
	                                    ctm: {
	                                        endpoint_uri_headers: {},
	                                        endpoint_token_headers: {},
	                                        endpoint_uri: "/api/v1/core/retrieve_endpoint/?service_key=navai&endpoint_name=products",
	                                        endpoint_token: "/api/v1/core/client_jwt/",
	                                        endpoint_token_response_ptr: "/access_token",
	                                        endpoint_uri_response_ptr: "/access_url",
	                                        endpoint_uri_split_string: "/split"
	                                    }
	                                }
	                            })
	                                .intercept({
	                                type: 'request',
	                                invoke: function (infoIO) {
	                                    return tslib_1.__awaiter(this, void 0, void 0, function () {
	                                        var request, kbiEl, response, content, blobUri, e_1;
	                                        return tslib_1.__generator(this, function (_a) {
	                                            switch (_a.label) {
	                                                case 0:
	                                                    _a.trys.push([0, 3, , 4]);
	                                                    request = f1.merge('over', {
	                                                        method: 'GET',
	                                                        referrerPolicy: 'origin-when-cross-origin',
	                                                        credentials: 'same-origin',
	                                                        cache: 'default',
	                                                        redirect: 'follow',
	                                                        mode: 'cors'
	                                                    }, infoIO.packet);
	                                                    infoIO.uri = infoIO.uri.replace('/products/split', '') + "/products/1/image";
	                                                    kbiEl = document.querySelector('eab-nav-knowledge-bot');
	                                                    return [4 /*yield*/, fetch(infoIO.uri, request)];
	                                                case 1:
	                                                    response = _a.sent();
	                                                    return [4 /*yield*/, response.blob()];
	                                                case 2:
	                                                    content = _a.sent();
	                                                    try {
	                                                        blobUri = URL.createObjectURL(content);
	                                                        if (kbiEl && blobUri) {
	                                                            kbiEl.image = blobUri;
	                                                        }
	                                                    }
	                                                    catch (_b) { }
	                                                    return [2 /*return*/, {
	                                                            metadata: {},
	                                                            data: null,
	                                                            response: response
	                                                        }];
	                                                case 3:
	                                                    e_1 = _a.sent();
	                                                    return [2 /*return*/, infoIO];
	                                                case 4: return [2 /*return*/];
	                                            }
	                                        });
	                                    });
	                                }
	                            })
	                                .invoke('');
	                            // load the context for the knowledge bot
	                            //
	                            //
	                            io.create('api')
	                                .include('api/hosting')
	                                .invoke('/api/v1/core/knowledge_bot_context/')
	                                .then(function (_) {
	                                var kbiEl = document.querySelector('eab-nav-knowledge-bot');
	                                if (!kbiEl) {
	                                    return;
	                                }
	                                var message = f1.read('/data', {}, _);
	                                var kbi = kbiEl.bot;
	                                // send object to knowledge bot
	                                //
	                                kbi.startup().then(function () {
	                                    kbi.shareWith(message);
	                                });
	                            });
	                        }, 250);
	                    });
	                    return [2 /*return*/];
	            }
	        });
	    }); });
	    return hostMicro;
	}
	exports.addSubscribers = addSubscribers;


/***/ }),
/* 1115 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('lib')
	    .run(function (log, appNotificationDelegate, ngPopupService) {
	    log.on('issue', function (entry) {
	        appNotificationDelegate.warn(entry.message);
	    });
	    // TODO: standarize all notification syntax. `log.issue` should log to console, `log.user.issue` should display to user
	    log.user.on('issue', function (entry) {
	        appNotificationDelegate.warn(entry.message);
	    });
	    log.user.on('success', function (entry) {
	        appNotificationDelegate.success(entry.message);
	    });
	    log.on('prompt', function (entry) {
	        ngPopupService.show(entry.message);
	    });
	});


/***/ }),
/* 1116 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var app_notification_service_1 = __webpack_require__(451);
	var app_store_banner_1 = __webpack_require__(1094);
	var create_personal_reminder_1 = __webpack_require__(452);
	var reminder_routes_1 = __webpack_require__(1099);
	var app_header_1 = __webpack_require__(1104);
	var stc_integration_1 = __webpack_require__(1096);
	var my_header_1 = __webpack_require__(1105);
	var app_config_model_1 = __webpack_require__(453);
	var notification_settings_info_1 = __webpack_require__(1124);
	var path_preferences_1 = __webpack_require__(1125);
	var notification_settings_controller_1 = __webpack_require__(1127);
	var routes_1 = __webpack_require__(1126);
	var responsive_navigation_1 = __webpack_require__(454);
	var startup_1 = __webpack_require__(1142);
	var tos_1 = __webpack_require__(1146);
	var check_student_status_service_1 = __webpack_require__(1147);
	var user_modes_1 = __webpack_require__(1148);
	var user_modes_service_1 = __webpack_require__(1149);
	var email_management_service_1 = __webpack_require__(1098);
	var routing_1 = __webpack_require__(1095);
	var capability_configuration_service_1 = __webpack_require__(1097);
	var about_1 = __webpack_require__(1092);
	var ap3_1 = __webpack_require__(450);
	var routes_2 = __webpack_require__(1093);
	var capability_ng_poll_1 = __webpack_require__(679);
	var student_menu_query_1 = __webpack_require__(1141);
	var string_servant_1 = __webpack_require__(1102);
	var calendar_facade_1 = __webpack_require__(1100);
	var pusher_service_1 = __webpack_require__(1101);
	__webpack_require__(1110);
	__webpack_require__(451);
	__webpack_require__(453);
	__webpack_require__(452);
	__webpack_require__(454);
	__webpack_require__(1117);
	__webpack_require__(1128);
	angular
	    .module('lib', ['my-resources', 'my-todos', 'host'])
	    .factory('ngStringServant', string_servant_1.StringServant.build)
	    .service('calendarFacade', calendar_facade_1.CalendarFacadeService)
	    .service('pusherService', pusher_service_1.PusherService)
	    .run(function settingsStateConfig(ngSettingsStateConfigurationService) {
	    ngSettingsStateConfigurationService.configure({
	        favorites: 'my.favorites',
	        topics: 'my.settings.path-settings',
	        intake: 'intake-poll',
	        firstTerm: 'first-term-poll'
	    });
	})
	    .service('appDetails', app_config_model_1.ApplicationDetails)
	    .provider('appConfigModel', app_config_model_1.ApplicationConfigurationModel)
	    .factory('appNotificationDelegate', function (phxNotificationDelegate) {
	    return new app_notification_service_1.AppNotificationDelegate(phxNotificationDelegate);
	})
	    .controller('NewPersonalReminderController', create_personal_reminder_1.NewPersonalReminderController)
	    .controller('responsiveNavigationController', responsive_navigation_1.ResponsiveNavigationController)
	    .controller('NotificationSettingsController', notification_settings_controller_1.NotificationSettingsController)
	    .component('responsiveNavigation', new responsive_navigation_1.ResponsiveNavigationComponent())
	    .component('notificationsSettingsInfo', new notification_settings_info_1.NotificationSettingInfoComponent())
	    .component('pathPreferences', new path_preferences_1.PathPreferencesComponent())
	    .component('appStoreBanner', new app_store_banner_1.AppStoreBannerComponent())
	    .component('userModes', new user_modes_1.UserModesComponent())
	    .component('startup', new startup_1.StartupComponent())
	    .component('termsOfService', new tos_1.TOSComponent())
	    .component('appHeader', new app_header_1.AppHeaderComponent())
	    .component('myHeader', new my_header_1.MyHeaderComponent())
	    .component('about', new about_1.AboutComponent())
	    .service('ngUserModesService', user_modes_service_1.UserModesService)
	    .service('ngCheckStudentStatusService', check_student_status_service_1.CheckStudentStatusService)
	    .service('ngRedirectAfterPollForSurvey', capability_ng_poll_1.RedirectAfterPollForSurveyCommand)
	    .service('ngEmailManagementService', email_management_service_1.EmailManagementService)
	    .service('ngCapabilityConfigurationService', capability_configuration_service_1.CapabilityConfigurationService)
	    .service('ngSTCAPIAdatper', stc_integration_1.STCAPIAdatper)
	    .service('ngStudentMenuQuery', student_menu_query_1.StudentMenuQuery)
	    .config(reminder_routes_1.PersonalReminderRoutes)
	    .config(routes_1.MySettingsRoutes)
	    .run(routing_1.Routing)
	    .controller('MicroNavAp3Controller', ap3_1.MicroNavAp3Controller)
	    .directive('microNavAp3', function () { return ap3_1.MicroNavAp3Directive; })
	    .config(routes_2.AP3DockRoutes);
	__webpack_require__(1144);
	__webpack_require__(1145);
	__webpack_require__(1143);
	__webpack_require__(1139);
	__webpack_require__(1140);
	__webpack_require__(1103);
	__webpack_require__(1115);


/***/ }),
/* 1117 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var resources_routes_1 = __webpack_require__(1118);
	var my_people_detail_controller_1 = __webpack_require__(1119);
	var my_people_list_1 = __webpack_require__(1120);
	var my_place_detail_controller_1 = __webpack_require__(1121);
	var my_places_list_1 = __webpack_require__(1122);
	var my_resources_1 = __webpack_require__(1123);
	angular
	    .module('my-resources', ['capability-ng-resources'])
	    .component('myResources', new my_resources_1.MyResourcesComponent())
	    .controller('MyPlacesListController', my_places_list_1.MyPlacesListController)
	    .controller('MyPlaceDetailViewController', my_place_detail_controller_1.MyPlaceDetailViewController)
	    .controller('MyPeopleListController', my_people_list_1.MyPeopleListController)
	    .controller('MyPeopleDetailViewController', my_people_detail_controller_1.MyPeopleDetailViewController)
	    .config(resources_routes_1.MyResourceRoutes);


/***/ }),
/* 1118 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	function MyResourceRoutes($stateProvider) {
	    $stateProvider
	        .state('my.resources', {
	        url: 'resources/',
	        template: '<my-resources/>',
	        params: {
	            childState: ''
	        },
	        sticky: true,
	        data: {
	            viewTitle: 'Resources',
	            ignoredInHistory: true,
	            preventResetFocus: true
	        }
	    })
	        .state('my.resources.places', {
	        url: 'places/',
	        views: {
	            'tab-content': {
	                templateUrl: 'lib/my_resources/views/my_places_list/my_places_list.html',
	                controller: 'MyPlacesListController',
	                controllerAs: '$ctrl'
	            }
	        },
	        params: {
	            activeCategory: ''
	        },
	        data: {
	            viewTitle: 'Resources | Places',
	            ignoredInHistory: false
	        },
	        sticky: true,
	        resolve: {
	            categoryList: function (loadResourceCategoriesCommand) {
	                return loadResourceCategoriesCommand();
	            }
	        }
	    })
	        .state('my.resources.people', {
	        url: 'people/',
	        views: {
	            'tab-content': {
	                templateUrl: 'lib/my_resources/views/my_people_list/my_people_list.html',
	                controller: 'MyPeopleListController',
	                controllerAs: '$ctrl'
	            }
	        },
	        params: {
	            activeRelation: ''
	        },
	        data: {
	            viewTitle: 'Resource | People',
	            ignoredInHistory: false,
	            preventResetFocus: true
	        }
	    })
	        .state('my.resourcesDetail', {
	        url: 'resources/detail/{id:int}',
	        templateUrl: 'lib/my_resources/views/my_place_detail/my_place_detail.html',
	        controller: 'MyPlaceDetailViewController',
	        controllerAs: '$ctrl',
	        data: {
	            viewTitle: 'Resource Detail'
	        },
	        resolve: {
	            resource: function (loadResourceDetailCommand, $stateParams) {
	                return loadResourceDetailCommand($stateParams.id);
	            }
	        }
	    })
	        .state('my.contactDetail', {
	        url: 'contact-detail/:relationship/:contactId',
	        templateUrl: 'lib/my_resources/views/my_people_detail/my_people_detail.html',
	        controller: 'MyPeopleDetailViewController',
	        controllerAs: '$ctrl',
	        data: {
	            viewTitle: 'Connection Detail'
	        },
	        sticky: true
	    });
	}
	exports.MyResourceRoutes = MyResourceRoutes;


/***/ }),
/* 1119 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MyPeopleDetailViewController = /** @class */ (function () {
	    function MyPeopleDetailViewController(ngContactsByRelationQuery, $stateParams) {
	        this.ngContactsByRelationQuery = ngContactsByRelationQuery;
	        this.$stateParams = $stateParams;
	        this.contact = ngContactsByRelationQuery.getContactFromGroup($stateParams.relationship, $stateParams.contactId);
	        this.relationship = this.contact.relationship;
	    }
	    return MyPeopleDetailViewController;
	}());
	exports.MyPeopleDetailViewController = MyPeopleDetailViewController;


/***/ }),
/* 1120 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MyPeopleListController = /** @class */ (function () {
	    function MyPeopleListController(ngContactsByRelationQuery, $state, ngContactListService, ngContactsSearchModel, ngContactsSearchQuery, $stateParams) {
	        this.ngContactsByRelationQuery = ngContactsByRelationQuery;
	        this.$state = $state;
	        this.ngContactListService = ngContactListService;
	        this.ngContactsSearchModel = ngContactsSearchModel;
	        this.ngContactsSearchQuery = ngContactsSearchQuery;
	        this.$stateParams = $stateParams;
	        this.isSearching = !_4.isEmpty(this.searchTerm);
	        this.ngContactListService.loadContacts($stateParams.activeRelation);
	    }
	    MyPeopleListController.prototype.$onInit = function () {
	        this.searchPeople = this.search.bind(this);
	    };
	    MyPeopleListController.prototype.hasRelationships = function () {
	        return !_4.isEmpty(this.ngContactsByRelationQuery.result.relationships);
	    };
	    MyPeopleListController.prototype.setActiveRelationship = function (event) {
	        var relationship = _4.get(event, 'detail.value', this.$stateParams.activeRelation);
	        this.$state.params.activeRelation = relationship;
	        this.ngContactListService.activateRelationship(relationship);
	    };
	    MyPeopleListController.prototype.isActiveRelationship = function (relationship) {
	        return _4.isEmpty(this.ngContactListService.activeRelationship)
	            ? false
	            : relationship === this.ngContactListService.activeRelationship;
	    };
	    MyPeopleListController.prototype.search = function (term) {
	        this.isSearching = !_4.isEmpty(term);
	        this.ngContactsSearchModel.write({ searchTerm: term });
	        this.ngContactsSearchQuery.run();
	    };
	    Object.defineProperty(MyPeopleListController.prototype, "searchTerm", {
	        get: function () {
	            var searchTerm = this.ngContactsSearchModel.read().searchTerm;
	            return searchTerm;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return MyPeopleListController;
	}());
	exports.MyPeopleListController = MyPeopleListController;


/***/ }),
/* 1121 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MyPlaceDetailViewController = /** @class */ (function () {
	    function MyPlaceDetailViewController(ngResourceListServant, $stateParams, unfavoriteResourceCommand, favoriteResourceCommand, log, loadResourcesCommand, loadResourceCategoriesCommand) {
	        this.ngResourceListServant = ngResourceListServant;
	        this.$stateParams = $stateParams;
	        this.unfavoriteResourceCommand = unfavoriteResourceCommand;
	        this.favoriteResourceCommand = favoriteResourceCommand;
	        this.log = log;
	        this.loadResourcesCommand = loadResourcesCommand;
	        this.loadResourceCategoriesCommand = loadResourceCategoriesCommand;
	        this._getResourse();
	    }
	    MyPlaceDetailViewController.prototype._getResourse = function () {
	        this.resource = this.ngResourceListServant.getResource(this.$stateParams.id);
	    };
	    MyPlaceDetailViewController.prototype.toggleFavorite = function () {
	        var _this = this;
	        this.resource.favorite_id
	            ? this.unfavoriteResourceCommand(this.resource)
	                .then(function (res) { return _.assign(_this.resource, res); })
	                .catch(function () { return _this.log.user.error("Looks like I couldn't unfavorite that."); })
	            : this.favoriteResourceCommand(this.resource)
	                .then(function (res) { return _.assign(_this.resource, res); })
	                .catch(function () { return _this.log.user.error("Looks like I couldn't favorite that."); });
	    };
	    return MyPlaceDetailViewController;
	}());
	exports.MyPlaceDetailViewController = MyPlaceDetailViewController;


/***/ }),
/* 1122 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MyPlacesListController = /** @class */ (function () {
	    function MyPlacesListController($state, ngResourceCategoryQuery, ngResourceListServant, loadResourcesCommand, ngResourceSearchModel, ngResourceSearchQuery, $stateParams) {
	        var _this = this;
	        this.$state = $state;
	        this.ngResourceCategoryQuery = ngResourceCategoryQuery;
	        this.ngResourceListServant = ngResourceListServant;
	        this.loadResourcesCommand = loadResourcesCommand;
	        this.ngResourceSearchModel = ngResourceSearchModel;
	        this.ngResourceSearchQuery = ngResourceSearchQuery;
	        this.$stateParams = $stateParams;
	        this.isSearching = !_4.isEmpty(this.searchTerm);
	        this.resourceList = [];
	        this.placeCategoryList = ngResourceCategoryQuery.result;
	        if (this.hasCategories()) {
	            this.activeCategory = _4.isEmpty(this.$stateParams.activeCategory)
	                ? _4.first(this.placeCategoryList)
	                : this.$stateParams.activeCategory;
	        }
	        this.loadResourcesCommand().then(function () {
	            _this.setActiveCategory(_this.activeCategory);
	        });
	    }
	    MyPlacesListController.prototype.$onInit = function () {
	        this.searchPlaces = this.search.bind(this);
	    };
	    MyPlacesListController.prototype.hasCategories = function () {
	        return !_4.isEmpty(this.placeCategoryList);
	    };
	    MyPlacesListController.prototype.updateActiveCategory = function (event) {
	        var category = _4.get(event, 'detail.value', this.activeCategory);
	        if (!_4.isEmpty(category)) {
	            this.setActiveCategory(category);
	        }
	    };
	    MyPlacesListController.prototype.setActiveCategory = function (category) {
	        this.activeCategory = category;
	        this.$state.params.activeCategory = category;
	        this.resourceList = this.ngResourceListServant.getResourceForCategory(category.id);
	    };
	    MyPlacesListController.prototype.goToResource = function (resource) {
	        this.$state.go('my.resourcesDetail', {
	            id: resource.id
	        });
	    };
	    MyPlacesListController.prototype.isActiveCategory = function (category) {
	        return _4.isEmpty(this.activeCategory) ? false : category.id === this.activeCategory.id;
	    };
	    MyPlacesListController.prototype.hasResources = function () {
	        return !_4.isEmpty(this.resourceList);
	    };
	    MyPlacesListController.prototype.search = function (term) {
	        this.isSearching = !_4.isEmpty(term);
	        this.ngResourceSearchModel.write({ searchTerm: term });
	        this.ngResourceSearchQuery.run();
	    };
	    MyPlacesListController.prototype.hasSearchResults = function () {
	        return !_4.isEmpty(this.ngResourceSearchQuery.result);
	    };
	    Object.defineProperty(MyPlacesListController.prototype, "searchTerm", {
	        get: function () {
	            var searchTerm = this.ngResourceSearchModel.read().searchTerm;
	            return searchTerm;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return MyPlacesListController;
	}());
	exports.MyPlacesListController = MyPlacesListController;


/***/ }),
/* 1123 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MyResourcesController = /** @class */ (function () {
	    function MyResourcesController($state, $stateParams, appConfigModel, ResourceTabEnum, ngResourceSearchModel, ngResourceSearchQuery, ngContactsSearchModel, ngContactsSearchQuery) {
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	        this.appConfigModel = appConfigModel;
	        this.ResourceTabEnum = ResourceTabEnum;
	        this.ngResourceSearchModel = ngResourceSearchModel;
	        this.ngResourceSearchQuery = ngResourceSearchQuery;
	        this.ngContactsSearchModel = ngContactsSearchModel;
	        this.ngContactsSearchQuery = ngContactsSearchQuery;
	        this.hasPlacesEnabled = true;
	        this.hasPeopleEnabled = true;
	    }
	    MyResourcesController.prototype.$onInit = function () {
	        this.hasPlacesEnabled = this.appConfigModel.isFeatureEnabled('inst-resource');
	        this.hasPeopleEnabled = this.appConfigModel.isFeatureEnabled('ssccampus-campus_success_network');
	    };
	    MyResourcesController.prototype.clearSearchTerms = function () {
	        this.ngResourceSearchModel.write({ searchTerm: '' });
	        this.ngResourceSearchQuery.run();
	        this.ngContactsSearchModel.write({ searchTerm: '' });
	        this.ngContactsSearchQuery.run();
	    };
	    return MyResourcesController;
	}());
	exports.MyResourcesController = MyResourcesController;
	var MyResourcesComponent = /** @class */ (function () {
	    function MyResourcesComponent() {
	        this.templateUrl = 'lib/my_resources/views/my_resources/my_resources.html';
	        this.controller = MyResourcesController;
	    }
	    return MyResourcesComponent;
	}());
	exports.MyResourcesComponent = MyResourcesComponent;


/***/ }),
/* 1124 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var NotificationSettingInfoComponentController = /** @class */ (function () {
	    function NotificationSettingInfoComponentController(contactInformationModel, TypeUtility, phoneNumberService) {
	        this.contactInformationModel = contactInformationModel;
	        this.TypeUtility = TypeUtility;
	        this.phoneNumberService = phoneNumberService;
	        this.models = {
	            email: "",
	            phoneNumber: ""
	        };
	        this.flags = {
	            hasEmail: true,
	            hasNumber: true,
	            isValidNumber: true,
	            isEditable: true,
	            verifyingNumber: false
	        };
	    }
	    NotificationSettingInfoComponentController.prototype.$onInit = function () {
	        this.models = {
	            email: this.contactInformationModel.updateWithAccountModelEmail(),
	            phoneNumber: this.contactInformationModel.getPhoneNumber()
	        };
	        this.flags = {
	            hasEmail: !_.isEmpty(this.models.email),
	            hasNumber: !_.isEmpty(this.models.phoneNumber),
	            isValidNumber: this.contactInformationModel.isVerifiedPhoneNumber(),
	            isEditable: this.isEditable,
	            verifyingNumber: false
	        };
	    };
	    NotificationSettingInfoComponentController.prototype.$onChanges = function (changeObj) {
	        this.models.phoneNumber = this.contactInformationModel.getPhoneNumber();
	        this.updateFlags(changeObj.isEditable.currentValue);
	    };
	    NotificationSettingInfoComponentController.prototype.getPhoneNumberDisplay = function (number) {
	        return !_.isEmpty(number) ? this.phoneNumberService.getDisplayNumber(number) : "No cell number";
	    };
	    NotificationSettingInfoComponentController.prototype.updateFlags = function (isEditableValue) {
	        if (!isEditableValue) {
	            this.resetVerifyingFlag();
	        }
	        _.merge(this.flags, {
	            hasEmail: !_.isEmpty(this.models.email),
	            hasNumber: !_.isEmpty(this.models.phoneNumber),
	            isValidNumber: this.contactInformationModel.isVerifiedPhoneNumber(),
	            isEditable: isEditableValue
	        });
	    };
	    NotificationSettingInfoComponentController.prototype.isVerifying = function () {
	        this.flags.verifyingNumber = true;
	    };
	    NotificationSettingInfoComponentController.prototype.resetVerifyingFlag = function () {
	        this.flags.verifyingNumber = false;
	    };
	    NotificationSettingInfoComponentController.prototype.truncatedEmail = function () {
	        return this.TypeUtility.StringUtility.truncateString(28, this.models.email);
	    };
	    return NotificationSettingInfoComponentController;
	}());
	exports.NotificationSettingInfoComponentController = NotificationSettingInfoComponentController;
	var NotificationSettingInfoComponent = /** @class */ (function () {
	    function NotificationSettingInfoComponent() {
	        this.templateUrl = 'lib/my_settings/components/notification_settings_info/notification_settings_info.html';
	        this.controller = NotificationSettingInfoComponentController;
	        this.bindings = {
	            isEditable: '<'
	        };
	    }
	    return NotificationSettingInfoComponent;
	}());
	exports.NotificationSettingInfoComponent = NotificationSettingInfoComponent;


/***/ }),
/* 1125 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PathPreferencesController = /** @class */ (function () {
	    function PathPreferencesController($state, loginConfigModel, ngCurrentTopicsQuery) {
	        this.$state = $state;
	        this.loginConfigModel = loginConfigModel;
	        this.ngCurrentTopicsQuery = ngCurrentTopicsQuery;
	    }
	    PathPreferencesController.prototype.$onInit = function () {
	        this.models = {
	            loginConfig: this.loginConfigModel,
	            topics: this.ngCurrentTopicsQuery
	        };
	        this.flags = {
	            hasTopics: !_4.isEmpty(this.models.topics)
	        };
	    };
	    PathPreferencesController.prototype.resetPathPereferences = function (resetReason) {
	        if (resetReason !== 'cancel') {
	            this.$state.__goToPrevious__();
	        }
	    };
	    return PathPreferencesController;
	}());
	exports.PathPreferencesController = PathPreferencesController;
	var PathPreferencesComponent = /** @class */ (function () {
	    function PathPreferencesComponent() {
	        this.templateUrl = 'lib/my_settings/components/path_preferences/path_preferences.html';
	        this.controller = PathPreferencesController;
	        this.bindings = { allTopics: '<' };
	    }
	    return PathPreferencesComponent;
	}());
	exports.PathPreferencesComponent = PathPreferencesComponent;


/***/ }),
/* 1126 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	function MySettingsRoutes($urlRouterProvider, $stateProvider) {
	    $urlRouterProvider.when('/my/profile/favorites', '/my/settings/favorites/');
	    $stateProvider
	        .state('my.settings', {
	        url: 'settings/',
	        templateUrl: 'lib/my_settings/settings.html',
	        data: {
	            pageTitle: 'Account'
	        },
	        resolve: {
	            contactInfo: function (loadContactInfoCommand) {
	                return loadContactInfoCommand();
	            }
	        }
	    })
	        .state('my.notificationsettings', {
	        url: 'notification_settings/',
	        views: {
	            '@my': {
	                templateUrl: 'lib/my_settings/views/notification_settings/notification_settings.html',
	                controller: 'NotificationSettingsController',
	                controllerAs: '$ctrl'
	            }
	        },
	        data: {
	            pageTitle: 'Notification Settings'
	        },
	        resolve: {
	            preferences: function (loadNotificationSettingsCommand) {
	                return loadNotificationSettingsCommand().then(function (model) { return model.getAllCategories(); });
	            },
	            contactInfo: function (loadContactInfoCommand) {
	                return loadContactInfoCommand();
	            }
	        }
	    })
	        .state('my.contactInformation', {
	        url: 'contact-information/',
	        templateUrl: 'lib/my_settings/views/notification_settings/contact_information.html',
	        data: {
	            viewTitle: 'Contact Information'
	        }
	    })
	        .state('my.settings.path-settings', {
	        url: 'path_update_topics/',
	        views: {
	            '@my': {
	                template: '<path-preferences all-topics="$resolve.allTopics"></path-preferences>'
	            }
	        },
	        data: {
	            pageTitle: 'Todo Topic Settings'
	        },
	        resolve: {
	            allTopics: function (loadAllTopicsCommand) {
	                return loadAllTopicsCommand();
	            }
	        }
	    })
	        .state('my.routeModal.path_preferences_confirm', {
	        url: 'path_preferences_confirm/',
	        templateUrl: 'lib/my_settings/views/path_preferences_confirm/path_preferences_confirm.html',
	        controller: 'PathPreferencesConfirmController',
	        controllerAs: '$ctrl'
	    });
	}
	exports.MySettingsRoutes = MySettingsRoutes;


/***/ }),
/* 1127 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var NotificationSettingsController = /** @class */ (function () {
	    function NotificationSettingsController(ngContactChannelExplanationService) {
	        this.ngContactChannelExplanationService = ngContactChannelExplanationService;
	    }
	    NotificationSettingsController.prototype.openExplanation = function () {
	        this.ngContactChannelExplanationService.toggleOpen(true);
	    };
	    return NotificationSettingsController;
	}());
	exports.NotificationSettingsController = NotificationSettingsController;


/***/ }),
/* 1128 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var todo_routes_1 = __webpack_require__(1129);
	var my_todo_reminder_details_controller_1 = __webpack_require__(1130);
	var my_todo_tip_details_controller_1 = __webpack_require__(1131);
	var my_todos_controller_1 = __webpack_require__(1132);
	var my_todos_appointment_details_controller_1 = __webpack_require__(1133);
	var my_todos_appointment_request_details_controller_1 = __webpack_require__(1134);
	var my_todos_detail_controller_1 = __webpack_require__(1135);
	var my_todos_placement_tests_controller_1 = __webpack_require__(1136);
	var my_todos_staff_todos_detail_controller_1 = __webpack_require__(1137);
	angular.module('my-todos', []);
	angular
	    .module('my-todos')
	    .controller('MyTodoReminderDetailController', my_todo_reminder_details_controller_1.MyTodoReminderDetailController)
	    .controller('MyTodosStaffTodosDetailController', my_todos_staff_todos_detail_controller_1.MyTodosStaffTodosDetailController)
	    .controller('MyTodoTipDetailController', my_todo_tip_details_controller_1.MyTodoTipDetailController)
	    .controller('MyTodosController', my_todos_controller_1.MyTodosController)
	    .controller('MyTodosDetailController', my_todos_detail_controller_1.MyTodosDetailController)
	    .controller('MyTodosAppointmentDetailsController', my_todos_appointment_details_controller_1.MyTodosAppointmentDetailsController)
	    .controller('MyTodosAppointmentRequestDetailsController', my_todos_appointment_request_details_controller_1.MyTodosAppointmentRequestDetailsController)
	    .controller('MyTodosPlacementTestsController', my_todos_placement_tests_controller_1.MyTodosPlacementTestsController)
	    .config(todo_routes_1.MyTodoRoutes);


/***/ }),
/* 1129 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	function MyTodoRoutes($stateProvider) {
	    // todos route
	    $stateProvider
	        .state('my.todos', {
	        url: 'todos/:filterBy/',
	        templateUrl: 'lib/my_todos/views/my_todos/my_todos.html',
	        controller: 'MyTodosController',
	        controllerAs: '$ctrl',
	        params: {
	            filterBy: {
	                value: 'all'
	            }
	        },
	        sticky: true,
	        data: {
	            viewTitle: 'To-Dos and Events',
	            hasMainMenu: true
	        }
	    })
	        // todos details route
	        .state('my.todos.details', {
	        url: 'details/:eventId/:repeatedBy',
	        views: {
	            '@my': {
	                templateUrl: 'lib/my_todos/views/my_todos_detail/my_todos_detail.html',
	                controller: 'MyTodosDetailController',
	                controllerAs: '$ctrl'
	            }
	        },
	        data: {
	            viewTitle: 'To-Do Detail',
	            suppressTrackingPage: true
	        },
	        params: {
	            topic: undefined
	        },
	        resolve: {
	            pathTaskDetail: function (loadPathItemCommand, $stateParams, $state) { return loadPathItemCommand($stateParams.eventId, $stateParams.repeatedBy); }
	        }
	    })
	        // Appointment details route
	        .state('my.todos.appointment', {
	        url: 'appointment/:eventId/:repeatedBy',
	        views: {
	            '@my': {
	                templateUrl: 'lib/my_todos/views/my_todos_appointment_details/my_todos_appointment_details.html',
	                controller: 'MyTodosAppointmentDetailsController',
	                controllerAs: '$ctrl'
	            }
	        },
	        data: {
	            viewTitle: 'Appointment Details'
	        },
	        resolve: {
	            previousState: function ($state) { return ({ state: $state.current.name, params: $state.params }); },
	            pathTaskDetail: function (loadPathItemCommand, $stateParams, $state) { return loadPathItemCommand($stateParams.eventId, $stateParams.repeatedBy); },
	            appointmentDetails: function ($state, $stateParams, loadAppointmentDetailsCommand) { return loadAppointmentDetailsCommand($stateParams.eventId, $stateParams.repeatedBy); }
	        }
	    })
	        // Appointment request details route
	        .state('my.todos.appointmentRequest', {
	        url: 'appointment_request/:eventId/:repeatedBy',
	        views: {
	            '@my': {
	                templateUrl: 'lib/my_todos/views/my_todos_appointment_request_details/my_todos_appointment_request_details.html',
	                controller: 'MyTodosAppointmentRequestDetailsController',
	                controllerAs: '$ctrl'
	            }
	        },
	        sticky: true,
	        data: {
	            viewTitle: 'Appointment Request Details'
	        },
	        params: {
	            topic: undefined
	        },
	        resolve: {
	            previousState: function ($state) { return ({ state: $state.current.name, params: $state.params }); },
	            pathTaskDetail: function (loadPathItemCommand, $stateParams, $state) { return loadPathItemCommand($stateParams.eventId, $stateParams.repeatedBy); },
	            appointmentRequestDetails: function ($state, $stateParams, loadAppointmentRequestCommand) { return loadAppointmentRequestCommand($stateParams.eventId, $stateParams.repeatedBy); }
	        }
	    })
	        // todo placement details route
	        .state('my.todos.placement', {
	        url: 'placement/:eventId/:repeatedBy',
	        views: {
	            '@my': {
	                templateUrl: 'lib/my_todos/views/my_todos_placement_tests/my_todos_placement_tests.html',
	                controller: 'MyTodosPlacementTestsController',
	                controllerAs: '$ctrl'
	            }
	        },
	        sticky: true,
	        resolve: {
	            placementTestScores: function (loadPlacementTestScoresCommand) { return loadPlacementTestScoresCommand(); },
	            pathTaskDetail: function (loadPathItemCommand, $stateParams, $state) { return loadPathItemCommand($stateParams.eventId, $stateParams.repeatedBy); }
	        },
	        data: {
	            viewTitle: 'Placement Tests'
	        }
	    })
	        .state('my.todos.tip', {
	        url: 'tip/:eventId/:repeatedBy',
	        views: {
	            '@my': {
	                templateUrl: 'lib/my_todos/views/my_todo_tip_details/my_todo_tip_details.html',
	                controller: 'MyTodoTipDetailController',
	                controllerAs: '$ctrl'
	            }
	        },
	        data: {
	            viewTitle: 'Tip Detail'
	        },
	        resolve: {
	            pathTipDetail: function (loadPathItemCommand, $stateParams, $state) {
	                return loadPathItemCommand($stateParams.eventId, $stateParams.repeatedBy);
	            }
	        }
	    })
	        .state('my.todos.reminder', {
	        url: 'reminder/:personalTodoID',
	        views: {
	            '@my': {
	                templateUrl: 'lib/my_todos/views/my_todo_reminder_details/my_todo_reminder_details.html',
	                controller: 'MyTodoReminderDetailController',
	                controllerAs: '$ctrl'
	            }
	        },
	        data: {
	            viewTitle: 'Personal To-Do Details'
	        },
	        sticky: true,
	        resolve: {
	            pathReminderDetail: function (loadReminderCommand, $stateParams, $state) {
	                return loadReminderCommand($stateParams.personalTodoID);
	            }
	        }
	    })
	        .state('my.todos.stafftodo', {
	        url: 'details/:staffTodoID',
	        views: {
	            '@my': {
	                templateUrl: 'lib/my_todos/views/my_todos_staff_todos_detail/my_todos_staff_todos_detail.html',
	                controller: 'MyTodosStaffTodosDetailController',
	                controllerAs: '$ctrl'
	            }
	        },
	        data: {
	            viewTitle: 'To-Do Detail',
	            suppressTrackingPage: true
	        },
	        params: {
	            topic: undefined
	        },
	        resolve: {
	            staffTodoID: function ($stateParams) {
	                return $stateParams.staffTodoID;
	            }
	        }
	    });
	}
	exports.MyTodoRoutes = MyTodoRoutes;


/***/ }),
/* 1130 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MyTodoReminderDetailController = /** @class */ (function () {
	    function MyTodoReminderDetailController($state, ngReminderQuery) {
	        var _this = this;
	        this.$state = $state;
	        this.ngReminderQuery = ngReminderQuery;
	        this.goToEditReminder = function () {
	            _this.$state.go('my.newreminder', {
	                personalTodoID: _this.ngReminderQuery.result.id
	            });
	        };
	    }
	    return MyTodoReminderDetailController;
	}());
	exports.MyTodoReminderDetailController = MyTodoReminderDetailController;


/***/ }),
/* 1131 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MyTodoTipDetailController = /** @class */ (function () {
	    function MyTodoTipDetailController(pathTipDetail, $state, TaskStatusEnum, taskUpdateFn) {
	        this.pathTipDetail = pathTipDetail;
	        this.$state = $state;
	        this.TaskStatusEnum = TaskStatusEnum;
	        this.taskUpdateFn = taskUpdateFn;
	        this.task = this.pathTipDetail.source.task;
	    }
	    MyTodoTipDetailController.prototype.toggleDismissed = function () {
	        var _this = this;
	        var initialStatus = this.task.status;
	        this.task.status = this.taskUpdateFn.getNewStatusAsString(this.task, initialStatus, true);
	        this.taskUpdateFn.toggleDismissed(this.task, initialStatus).then(function (updatedTip) {
	            _this.pathTipDetail.source.task = updatedTip;
	            if (_this.TaskStatusEnum.isEqual(updatedTip.status, _this.TaskStatusEnum.DISMISSED)) {
	                _this.$state.go('my.todos');
	            }
	        }, function (err) {
	            _this.pathTipDetail.source.task.status = initialStatus;
	        });
	    };
	    return MyTodoTipDetailController;
	}());
	exports.MyTodoTipDetailController = MyTodoTipDetailController;


/***/ }),
/* 1132 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MyTodosController = /** @class */ (function () {
	    function MyTodosController($state, $scope, TodoFilterEnum, ngTodoDateRangeService, loadAllPathStatusCommand, loadAllReminderDateRangeCommand, ngTodosContentService) {
	        this.$state = $state;
	        this.$scope = $scope;
	        this.TodoFilterEnum = TodoFilterEnum;
	        this.ngTodoDateRangeService = ngTodoDateRangeService;
	        this.loadAllPathStatusCommand = loadAllPathStatusCommand;
	        this.loadAllReminderDateRangeCommand = loadAllReminderDateRangeCommand;
	        this.ngTodosContentService = ngTodosContentService;
	        var filterBy = $state.params.filterBy || 'all';
	        var activeFilter = _.find(TodoFilterEnum.__keys__, function (filter) { return filter.stateParam === filterBy; });
	        ngTodosContentService.initialize(activeFilter);
	        this.viewTitle = activeFilter === TodoFilterEnum.ALL_TODO_AND_EVENT ? 'To-Dos and Events' : activeFilter.name;
	    }
	    return MyTodosController;
	}());
	exports.MyTodosController = MyTodosController;


/***/ }),
/* 1133 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var utility_ts_orm_1 = __webpack_require__(3);
	var MyTodosAppointmentDetailsController = /** @class */ (function () {
	    function MyTodosAppointmentDetailsController(pathTaskDetail, appointmentPathItemFn, appointmentDetails, taskUpdateFn, EventCategoryEnum, $state, ngPathTaskDatastore, previousState, $stateParams) {
	        var _this = this;
	        this.pathTaskDetail = pathTaskDetail;
	        this.appointmentPathItemFn = appointmentPathItemFn;
	        this.appointmentDetails = appointmentDetails;
	        this.taskUpdateFn = taskUpdateFn;
	        this.EventCategoryEnum = EventCategoryEnum;
	        this.$state = $state;
	        this.ngPathTaskDatastore = ngPathTaskDatastore;
	        this.previousState = previousState;
	        this.$stateParams = $stateParams;
	        this.appointmentCancelledCallback = function (cancelForm) {
	            _this.cancellationForm = cancelForm.cancellationForm;
	            _this.isAppointmentCancelled = true;
	            _this.closeModal();
	            var id = _this.models.task.event + "_" + _this.models.task.repeated_by;
	            _this.$state.go('my.todos.appointment', {
	                eventId: _this.models.task.event,
	                repeated_by: _this.models.task.repeated_by
	            });
	            _this.ngPathTaskDatastore.del(tslib_1.__assign(tslib_1.__assign({}, _this.models.task), { id: id }));
	            utility_ts_orm_1.ORM.run(_this.ngPathTaskDatastore);
	        };
	        this._initialize();
	        this.closeModal = this.closeModal.bind(this);
	    }
	    MyTodosAppointmentDetailsController.prototype._initialize = function () {
	        this.showCancelForm = false;
	        this.models = {
	            pathItem: this.pathTaskDetail,
	            item: this.pathTaskDetail.root,
	            task: this.pathTaskDetail.source.task,
	            topic: this.$stateParams.topic,
	            appointment: this.appointmentPathItemFn.generateAppointmentDetails(this.appointmentDetails)
	        };
	        this.flags = {
	            isDateMarkerEvent: this.EventCategoryEnum.isDateMarker(this.models.task.category),
	            hasChildren: !_.isEmpty(this.pathTaskDetail.root.children)
	        };
	        this.isAppointmentCancelled = this._isAppointmentCancelled;
	        this.appointment = this.appointmentDetails;
	    };
	    MyTodosAppointmentDetailsController.prototype.isOverdue = function (task) {
	        return this.taskUpdateFn.isOverdue(task);
	    };
	    MyTodosAppointmentDetailsController.prototype.cancelAppointment = function () {
	        this.showCancelForm = true;
	    };
	    Object.defineProperty(MyTodosAppointmentDetailsController.prototype, "_isAppointmentCancelled", {
	        get: function () {
	            return this.models.appointment.is_cancelled;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    MyTodosAppointmentDetailsController.prototype.closeModal = function () {
	        this.showCancelForm = false;
	    };
	    MyTodosAppointmentDetailsController.prototype.reSchedule = function () {
	        this.closeModal();
	        this.$state.go('my.appointments');
	    };
	    return MyTodosAppointmentDetailsController;
	}());
	exports.MyTodosAppointmentDetailsController = MyTodosAppointmentDetailsController;


/***/ }),
/* 1134 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MyTodosAppointmentRequestDetailsController = /** @class */ (function () {
	    function MyTodosAppointmentRequestDetailsController(pathTaskDetail, taskUpdateFn, log, appointmentRequestDetails, $state, $stateParams, appointmentPathItemFn, prepareAppointmentCampaignRequestCommand, previousState, ngStcSchedulingConfigModel, ngAppointmentSchedulingServant) {
	        this.pathTaskDetail = pathTaskDetail;
	        this.taskUpdateFn = taskUpdateFn;
	        this.log = log;
	        this.appointmentRequestDetails = appointmentRequestDetails;
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	        this.appointmentPathItemFn = appointmentPathItemFn;
	        this.prepareAppointmentCampaignRequestCommand = prepareAppointmentCampaignRequestCommand;
	        this.previousState = previousState;
	        this.ngStcSchedulingConfigModel = ngStcSchedulingConfigModel;
	        this.ngAppointmentSchedulingServant = ngAppointmentSchedulingServant;
	        this._initialize();
	    }
	    MyTodosAppointmentRequestDetailsController.prototype._initialize = function () {
	        this.models = {
	            taskDetails: this.pathTaskDetail,
	            topic: this.$stateParams.topic,
	            task: this.pathTaskDetail.source.task,
	            appointmentRequest: this.appointmentPathItemFn.generateAppointmentRequestDetails(this.appointmentRequestDetails)
	        };
	    };
	    MyTodosAppointmentRequestDetailsController.prototype.isDismissible = function (task) {
	        return task.is_dismissible && !this.taskUpdateFn.isCompleted(task);
	    };
	    MyTodosAppointmentRequestDetailsController.prototype.scheduleAppointment = function () {
	        var _this = this;
	        this.ngAppointmentSchedulingServant.getSchedulingConfig().then(function () {
	            _this.prepareAppointmentCampaignRequestCommand(_this.models.appointmentRequest).then(function () {
	                var returnState = { state: _this.previousState.state, params: _this.previousState.params };
	                if (_this.ngStcSchedulingConfigModel.read().v3_student_scheduler_flag) {
	                    _this.$state.go('my.appointment-invitation-results', {
	                        invitation_id: "" + _this.models.appointmentRequest.id
	                    });
	                }
	                else {
	                    _this.$state.go('my.appointments.available_times', {
	                        invitationId: _this.models.appointmentRequest.id,
	                        returnState: returnState
	                    });
	                }
	            });
	        });
	    };
	    MyTodosAppointmentRequestDetailsController.prototype.getHideText = function (isDimissed) {
	        return !isDimissed ? 'Hide' : 'Unhide';
	    };
	    MyTodosAppointmentRequestDetailsController.prototype.isDismissed = function (task) {
	        return this.taskUpdateFn.isDismissed(task);
	    };
	    MyTodosAppointmentRequestDetailsController.prototype.toggleDismissed = function (task) {
	        var _this = this;
	        var initialStatus = task.status;
	        task.status = this.taskUpdateFn.getNewStatusAsString(task, initialStatus, true);
	        this.taskUpdateFn.toggleDismissed(task, initialStatus, false).then(function (updatedTask) {
	            _this.models.task = updatedTask;
	        }, function (err) {
	            _this.models.task.status = initialStatus;
	            _this.log.user.error(err);
	        });
	    };
	    return MyTodosAppointmentRequestDetailsController;
	}());
	exports.MyTodosAppointmentRequestDetailsController = MyTodosAppointmentRequestDetailsController;


/***/ }),
/* 1135 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var MyTodosDetailController = /** @class */ (function () {
	    function MyTodosDetailController(pathTaskDetail, taskUpdateFn, $stateParams, log, pathItemPresenterDetailEnum, ngCurrentTopicsQuery, loadPathTaskTopicsCommand, loadPathTasksCommand, EventCategoryEnum, ngPathTaskDatastore) {
	        var _this = this;
	        this.pathTaskDetail = pathTaskDetail;
	        this.taskUpdateFn = taskUpdateFn;
	        this.$stateParams = $stateParams;
	        this.log = log;
	        this.pathItemPresenterDetailEnum = pathItemPresenterDetailEnum;
	        this.ngCurrentTopicsQuery = ngCurrentTopicsQuery;
	        this.loadPathTaskTopicsCommand = loadPathTaskTopicsCommand;
	        this.loadPathTasksCommand = loadPathTasksCommand;
	        this.EventCategoryEnum = EventCategoryEnum;
	        this.ngPathTaskDatastore = ngPathTaskDatastore;
	        this.models = {
	            taskDetails: this.pathTaskDetail,
	            specialPresenter: this.pathItemPresenterDetailEnum.get(this.pathTaskDetail.root.presenter.key).value,
	            resources: this.pathTaskDetail.resource,
	            topic: $stateParams.topic,
	            task: this.pathTaskDetail.source.task
	        };
	        if (_4.isEmpty(this.ngPathTaskDatastore.values())) {
	            this.loadPathTasksCommand().then(function () {
	                _this.updateTaskTopic(_this.models.task.event, _this.models.task.repeated_by);
	            });
	        }
	        else {
	            this.updateTaskTopic(this.models.task.event, this.models.task.repeated_by);
	        }
	        this.pageTitle = this.EventCategoryEnum.isDateMarker(this.models.task.category) ? 'Event' : 'To-Do';
	    }
	    MyTodosDetailController.prototype.updateTaskTopic = function (eventId, repeatedBy) {
	        var _this = this;
	        this.loadPathTaskTopicsCommand(eventId, repeatedBy).then(function () {
	            _this.models.topics = _this.ngCurrentTopicsQuery;
	        });
	    };
	    MyTodosDetailController.prototype.isDismissed = function (task) {
	        return this.taskUpdateFn.isDismissed(task);
	    };
	    MyTodosDetailController.prototype.isDismissible = function (task) {
	        return task.is_dismissible && !this.taskUpdateFn.isCompleted(task);
	    };
	    MyTodosDetailController.prototype.getHideText = function (isDimissed) {
	        return !this.isDismissed(this.models.task) ? 'Hide' : 'Unhide';
	    };
	    MyTodosDetailController.prototype.toggleDismissed = function (task) {
	        var _this = this;
	        var initialStatus = task.status;
	        task.status = this.taskUpdateFn.getNewStatusAsString(task, initialStatus, true);
	        this.taskUpdateFn.toggleDismissed(task, initialStatus, false).then(function (updatedTask) {
	            _this.models.task = updatedTask;
	            _this.pathTaskDetail = tslib_1.__assign({}, _this.pathTaskDetail);
	        }, function (err) {
	            _this.models.task.status = initialStatus;
	            _this.log.user.error(err);
	        });
	    };
	    return MyTodosDetailController;
	}());
	exports.MyTodosDetailController = MyTodosDetailController;


/***/ }),
/* 1136 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MyTodosPlacementTestsController = /** @class */ (function () {
	    function MyTodosPlacementTestsController(pathTaskDetail, pathDetailLocationService, placementTestScores, PlacementEnum) {
	        this.pathTaskDetail = pathTaskDetail;
	        this.pathDetailLocationService = pathDetailLocationService;
	        this.placementTestScores = placementTestScores;
	        this.PlacementEnum = PlacementEnum;
	        this.taskDetails = this.pathTaskDetail;
	        this.placementData = this.placementTestScores;
	        this.placementLocations = this.placementTestLocations(this.placementData.placement_locations);
	        this.placementTask = this.pathTaskDetail.source.task;
	        this.expectItem = _.find(this.taskDetails.source.items, {
	            nk: this.PlacementEnum.EI_PLACEMENT_TEST_WHAT_TO_EXPECT.value
	        });
	    }
	    MyTodosPlacementTestsController.prototype.placementTestLocations = function (placementLocations) {
	        return this.pathDetailLocationService.getFormattedLocations(placementLocations);
	    };
	    return MyTodosPlacementTestsController;
	}());
	exports.MyTodosPlacementTestsController = MyTodosPlacementTestsController;


/***/ }),
/* 1137 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MyTodosStaffTodosDetailController = /** @class */ (function () {
	    function MyTodosStaffTodosDetailController(staffTodoID) {
	        this.staffTodoID = staffTodoID;
	    }
	    return MyTodosStaffTodosDetailController;
	}());
	exports.MyTodosStaffTodosDetailController = MyTodosStaffTodosDetailController;


/***/ }),
/* 1138 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var StudentMenu = /** @class */ (function () {
	    function StudentMenu(studentMenu) {
	        _4.merge(this, studentMenu);
	    }
	    StudentMenu.build = function (studentMenu) {
	        return new StudentMenu(studentMenu);
	    };
	    return StudentMenu;
	}());
	exports.StudentMenu = StudentMenu;


/***/ }),
/* 1139 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('lib')
	    .factory('loadStudentMenuCommand', function ($http, defineCommandORM, ngStudentMenuDatasource, log) {
	    return defineCommandORM('loadStudentMenuCommand', function (deferred) {
	        var pullData = new Promise(function (resolve) {
	            return $http({
	                method: 'GET',
	                url: "config/studentmenuitems/"
	            }).then(resolve);
	        });
	        pullData
	            .then(function (_a) {
	            var data = _a.data;
	            data.data.forEach(function (o) {
	                o.id = o.nk;
	                o.icon_theme = o.icon_color;
	                o.title = o.name;
	                o.release_status = o.is_in_beta ? 'beta' : o.is_new ? 'new' : '';
	                o.uri = o.url ? o.url : '';
	                o.target = o.url ? '_blank' : '_self';
	            });
	            var menuItems = data.data;
	            ngStudentMenuDatasource.clear().write(menuItems);
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue('Failed to get custom menu');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1140 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_datasource_1 = __webpack_require__(9);
	var student_menu_builder_1 = __webpack_require__(1138);
	angular.module('lib').factory('ngStudentMenuDatasource', function () {
	    return new utility_ts_datasource_1.Datasource({
	        builderType: student_menu_builder_1.StudentMenu,
	        autoId: false
	    });
	});


/***/ }),
/* 1141 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var StudentMenuQuery = /** @class */ (function () {
	    function StudentMenuQuery(ngStudentMenuDatasource, ngToDoPriorityFeedQuery, staffTodoListDatastore, reminderListDatastore, ngPathItemDatastore, ngPathTaskDatastore, ngConversationDatastore, ngConversationsPriorityFeedQuery, ngAppointmentRequestPriorityFeedQuery, ngHoldPriorityFeedQuery, ngHoldDatastore, ngSurveyPriorityFeedQuery, ngSurveyDatastore, ngStudyGroupsPriorityFeedQuery, ngStudygroupsPriorityFeedDatasource, ngReportsPriorityFeedQuery, ngApptSummariesDatasource, ngNotesDatasource, ngProgressReportsDatasource, ngSTCConfigsModel, ngKnowledgeBotModel, ngKnowledgeBotQuery) {
	        var _this = this;
	        this.ngStudentMenuDatasource = ngStudentMenuDatasource;
	        this.ngToDoPriorityFeedQuery = ngToDoPriorityFeedQuery;
	        this.staffTodoListDatastore = staffTodoListDatastore;
	        this.reminderListDatastore = reminderListDatastore;
	        this.ngPathItemDatastore = ngPathItemDatastore;
	        this.ngPathTaskDatastore = ngPathTaskDatastore;
	        this.ngConversationDatastore = ngConversationDatastore;
	        this.ngConversationsPriorityFeedQuery = ngConversationsPriorityFeedQuery;
	        this.ngAppointmentRequestPriorityFeedQuery = ngAppointmentRequestPriorityFeedQuery;
	        this.ngHoldPriorityFeedQuery = ngHoldPriorityFeedQuery;
	        this.ngHoldDatastore = ngHoldDatastore;
	        this.ngSurveyPriorityFeedQuery = ngSurveyPriorityFeedQuery;
	        this.ngSurveyDatastore = ngSurveyDatastore;
	        this.ngStudyGroupsPriorityFeedQuery = ngStudyGroupsPriorityFeedQuery;
	        this.ngStudygroupsPriorityFeedDatasource = ngStudygroupsPriorityFeedDatasource;
	        this.ngReportsPriorityFeedQuery = ngReportsPriorityFeedQuery;
	        this.ngApptSummariesDatasource = ngApptSummariesDatasource;
	        this.ngNotesDatasource = ngNotesDatasource;
	        this.ngProgressReportsDatasource = ngProgressReportsDatasource;
	        this.ngSTCConfigsModel = ngSTCConfigsModel;
	        this.ngKnowledgeBotModel = ngKnowledgeBotModel;
	        this.ngKnowledgeBotQuery = ngKnowledgeBotQuery;
	        this.defaultMenuList = {
	            HOME: {
	                uri: '#/my/priority-feed/',
	                badgeCountStrategy: function (menuItem) { return menuItem.badge_count; }
	            },
	            TODOS: {
	                uri: '#/my/todos/all/',
	                badgeCountStrategy: function (menuItem) { return _this.ngToDoPriorityFeedQuery.count; }
	            },
	            APPOINTMENTS: {
	                uri: '#/my/appointment-dashboard?tab_name=appointments',
	                badgeCountStrategy: function (menuItem) { return _this.ngAppointmentRequestPriorityFeedQuery.count; }
	            },
	            CALENDAR: {
	                uri: '#/my/calendar',
	                badgeCountStrategy: function (menuItem) { return menuItem.badge_count; }
	            },
	            DOCS: {
	                uri: '#/my/reports',
	                badgeCountStrategy: function (menuItem) { return _this.ngReportsPriorityFeedQuery.count; }
	            },
	            DOCS_APPOINTMENT_SUMMARY: {
	                uri: '#/my/appointment-summary',
	                badgeCountStrategy: function (menuItem) { return menuItem.badge_count; }
	            },
	            DOCS_NOTES: {
	                uri: '#/my/notes',
	                badgeCountStrategy: function (menuItem) { return menuItem.badge_count; }
	            },
	            DOCS_PROGRESS: {
	                uri: '#/my/progress-report',
	                badgeCountStrategy: function (menuItem) { return menuItem.badge_count; }
	            },
	            HAND_RAISE: {
	                uri: '#/my/self-alerts',
	                badgeCountStrategy: function (menuItem) { return menuItem.badge_count; }
	            },
	            STUDY_BUDDIES: {
	                uri: '#/my/study-groups',
	                badgeCountStrategy: function (menuItem) { return _this.ngStudyGroupsPriorityFeedQuery.count; }
	            },
	            RESOURCES: {
	                // FIXME: the resources micro is hard-coded to link to #/my/resources
	                //
	                //
	                uri: '#/my/host/resources/index',
	                badgeCountStrategy: function (menuItem) { return menuItem.badge_count; }
	            },
	            PLACES: {
	                uri: '#/my/resources/places',
	                badgeCountStrategy: function (menuItem) { return menuItem.badge_count; }
	            },
	            PEOPLE: {
	                uri: '#/my/resources/people',
	                badgeCountStrategy: function (menuItem) { return menuItem.badge_count; }
	            },
	            SURVEYS: {
	                uri: '#/my/survey-home/list',
	                badgeCountStrategy: function (menuItem) { return _this.ngSurveyPriorityFeedQuery.count; }
	            },
	            NOTIFICATIONS: {
	                uri: '#/my/conversations/all/',
	                badgeCountStrategy: function (menuItem) { return _this.ngConversationsPriorityFeedQuery.count; }
	            },
	            HOLDS: {
	                uri: '#/my/hold-center/',
	                badgeCountStrategy: function (menuItem) { return _this.ngHoldPriorityFeedQuery.count; }
	            },
	            CLASS_SCHEDULE: {
	                uri: '#/my/course_schedule/term/',
	                badgeCountStrategy: function (menuItem) { return menuItem.badge_count; }
	            },
	            MAJOR_EXPLORER: {
	                uri: '#/my/begin/',
	                badgeCountStrategy: function (menuItem) { return menuItem.badge_count; }
	            },
	            FINANCIAL_PLANNER: {
	                uri: '#/my/fp/',
	                badgeCountStrategy: function (menuItem) { return menuItem.badge_count; }
	            },
	            FAVORITES: {
	                uri: '#/my/favorites/',
	                badgeCountStrategy: function (menuItem) { return menuItem.badge_count; }
	            },
	            HELP: {
	                uri: '#',
	                badgeCountStrategy: function (menuItem) { return menuItem.badge_count; }
	            },
	            ACCOUNT: {
	                uri: '#/my/settings/',
	                badgeCountStrategy: function (menuItem) { return menuItem.badge_count; }
	            },
	            KNOWLEDGE_BOT: {
	                uri: '#/my/host/kbi/',
	                badgeCountStrategy: function (menuItem) { return menuItem.badge_count; }
	            },
	            CHECKLISTS: {
	                uri: '#/my/host/events/checklist/items',
	                badgeCountStrategy: function (menuItem) { return menuItem.badge_count; }
	            },
	            JOURNEYS: {
	                uri: '#/my/host/events/journeys',
	                badgeCountStrategy: function (menuItem) { return menuItem.badge_count; }
	            }
	        };
	        utility_ts_orm_1.Query.registerQuery(this, ngStudentMenuDatasource, staffTodoListDatastore, reminderListDatastore, ngPathItemDatastore, ngPathTaskDatastore, ngConversationDatastore, ngHoldDatastore, ngSurveyDatastore, ngStudygroupsPriorityFeedDatasource, ngApptSummariesDatasource, ngNotesDatasource, ngProgressReportsDatasource, ngSTCConfigsModel, ngKnowledgeBotModel);
	    }
	    StudentMenuQuery.prototype.run = function () {
	        var _this = this;
	        this.ngToDoPriorityFeedQuery.run();
	        this.ngAppointmentRequestPriorityFeedQuery.run();
	        this.ngConversationsPriorityFeedQuery.run();
	        this.ngHoldPriorityFeedQuery.run();
	        this.ngSurveyPriorityFeedQuery.run();
	        this.ngStudyGroupsPriorityFeedQuery.run();
	        this.ngReportsPriorityFeedQuery.run();
	        this.ngKnowledgeBotQuery.run();
	        this._result = { menuItems: [] };
	        this._result.menuItems = _4.filter(this.ngStudentMenuDatasource.values(), function (menuItem) { return menuItem.display_in_menu; });
	        this._result.menuItems = this._result.menuItems.map(function (menuItem) {
	            // read in STC config name for Hand Raise / Self Alert
	            //
	            if (menuItem.nk === 'HAND_RAISE') {
	                menuItem.title = _this.ngSTCConfigsModel.read().self_alert_label;
	            }
	            //Knowledge bot name is configured in navai
	            if (menuItem.nk === 'KNOWLEDGE_BOT') {
	                menuItem.title = _this.ngKnowledgeBotQuery.result.name;
	            }
	            menuItem.badge_count = _this.defaultMenuList[menuItem.nk]
	                ? _this.defaultMenuList[menuItem.nk].badgeCountStrategy(menuItem)
	                : undefined;
	            // we do not receive uri's for EAB controlled features, so we use the above strategy
	            //
	            if (!_4.isEmpty(menuItem.uri)) {
	                return menuItem;
	            }
	            return tslib_1.__assign(tslib_1.__assign({}, menuItem), { uri: _4.get(_this.defaultMenuList, menuItem.nk + '.uri', menuItem.url) });
	        });
	        this._result.menuItems = _4.orderBy(this._result.menuItems, 'rank', 'asc');
	        return this;
	    };
	    Object.defineProperty(StudentMenuQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return StudentMenuQuery;
	}());
	exports.StudentMenuQuery = StudentMenuQuery;


/***/ }),
/* 1142 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var StartupController = /** @class */ (function () {
	    function StartupController(applicationLoginConfiguration, ngDeeplinkConfig, $state, accountModel, loginConfigModel, ngUserModesService, appConfigModel, utilityConstant) {
	        this.applicationLoginConfiguration = applicationLoginConfiguration;
	        this.ngDeeplinkConfig = ngDeeplinkConfig;
	        this.$state = $state;
	        this.accountModel = accountModel;
	        this.loginConfigModel = loginConfigModel;
	        this.ngUserModesService = ngUserModesService;
	        this.appConfigModel = appConfigModel;
	        this.utilityConstant = utilityConstant;
	    }
	    StartupController.prototype.$onInit = function () {
	        this.applicationLoginConfiguration.configure();
	        var deepLinkState = this.ngDeeplinkConfig.getStoredState();
	        var deepLinkHref = this.ngDeeplinkConfig.getStoredHref();
	        var sgdRedirectUrl = localStorage.getItem(this.utilityConstant.REDIRECT_URL_KEY);
	        var willRedirectHasAcceptedTerms = this.accountModel.acceptedTerms;
	        // TODO: Auth Check should be in force_app_config_load.es
	        if (!this.accountModel.isLoggedIn()) {
	            this.ngUserModesService.forceAuthentication();
	            return;
	        }
	        if (!willRedirectHasAcceptedTerms) {
	            this.ngUserModesService.checkTOS();
	            return;
	        }
	        if (this.accountModel.isLoggedIn() && !_4.isEmpty(deepLinkHref)) {
	            this.ngUserModesService.userMode = "student";
	            location.assign(deepLinkHref);
	            return;
	        }
	        if (this.accountModel.isLoggedIn() && !_4.isEmpty(deepLinkState)) {
	            this.ngUserModesService.userMode = "student";
	            this.$state.go(deepLinkState.state, deepLinkState.stateParams);
	            return;
	        }
	        if (sgdRedirectUrl) {
	            location.assign(sgdRedirectUrl);
	            localStorage.removeItem(this.utilityConstant.REDIRECT_URL_KEY);
	            return;
	        }
	        this.ngUserModesService.checkTOS();
	    };
	    return StartupController;
	}());
	var StartupComponent = /** @class */ (function () {
	    function StartupComponent() {
	        this.templateUrl = 'lib/startup/startup.html';
	        this.controller = StartupController;
	    }
	    return StartupComponent;
	}());
	exports.StartupComponent = StartupComponent;


/***/ }),
/* 1143 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('lib')
	    .service('acceptTOUCommand', function (defineCommandORM, $state, accountModel, $http, ngUserModesService) {
	    return defineCommandORM('acceptTOUCommand', function (deferred) {
	        var navigateAfterAcceptance = function () {
	            $state.go("user-modes");
	        };
	        if (accountModel.acceptedTerms) {
	            return navigateAfterAcceptance();
	        }
	        $http
	            .post('/core/tandc/', {
	            tandc_accepted: true
	        })
	            .then(function (response) {
	            if (response.data.tandc_accepted) {
	                accountModel.acceptedTerms = true;
	            }
	            ngUserModesService.processDefaultMode();
	        })
	            .finally(function () {
	            navigateAfterAcceptance();
	            deferred.resolve();
	        });
	    });
	});


/***/ }),
/* 1144 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	/**
	 *
	 */
	var universitiesAllowedToAutoAcceptTOU = ['si-umich'];
	angular
	    .module('lib')
	    .service('autoAcceptTOUCommand', function (defineCommandORM, acceptTOUCommand, accountModel) {
	    return defineCommandORM('autoAcceptTOUCommand', function (deferred) {
	        var isPartnerAllowedToAutoAcceptTOU = universitiesAllowedToAutoAcceptTOU.includes(accountModel.partner_nk);
	        if (!isPartnerAllowedToAutoAcceptTOU) {
	            return deferred.resolve();
	        }
	        acceptTOUCommand().then(function () {
	            deferred.resolve();
	        });
	    });
	});


/***/ }),
/* 1145 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular.module('lib').service('declineTOUCommand', function (defineCommandORM, logoutCommand, $state) {
	    return defineCommandORM('declineTOUCommand', function (deferred) {
	        logoutCommand($state);
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1146 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var TosController = /** @class */ (function () {
	    function TosController(acceptTOUCommand, declineTOUCommand, accountModel, appConfigModel) {
	        this.acceptTOUCommand = acceptTOUCommand;
	        this.declineTOUCommand = declineTOUCommand;
	        this.accountModel = accountModel;
	        this.appConfigModel = appConfigModel;
	        this.institutionPrivacyURL = this.appConfigModel.getConfigProperty('core-privacy_policy_url');
	    }
	    TosController.prototype.declineTerms = function () {
	        this.declineTOUCommand();
	    };
	    TosController.prototype.acceptTerms = function () {
	        this.acceptTOUCommand();
	    };
	    return TosController;
	}());
	exports.TosController = TosController;
	var TOSComponent = /** @class */ (function () {
	    function TOSComponent() {
	        this.templateUrl = 'lib/tos/components/tos/tos.html';
	        this.controller = TosController;
	    }
	    return TOSComponent;
	}());
	exports.TOSComponent = TOSComponent;


/***/ }),
/* 1147 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var CheckStudentStatusService = /** @class */ (function () {
	    function CheckStudentStatusService(ngCheckScheduledPollsServant, ngRedirectAfterPollForSurvey, logoutCommand, ngMemberConfigurationDatastore, DefaultRoute, accountModel, $state, log) {
	        this.ngCheckScheduledPollsServant = ngCheckScheduledPollsServant;
	        this.ngRedirectAfterPollForSurvey = ngRedirectAfterPollForSurvey;
	        this.logoutCommand = logoutCommand;
	        this.ngMemberConfigurationDatastore = ngMemberConfigurationDatastore;
	        this.DefaultRoute = DefaultRoute;
	        this.accountModel = accountModel;
	        this.$state = $state;
	        this.log = log;
	        this.states = {
	            termsOfService: 'tos',
	            default: this.DefaultRoute,
	            notAuthed: 'authentication',
	            polls: this.ngCheckScheduledPollsServant.route
	        };
	    }
	    CheckStudentStatusService.prototype.run = function () {
	        this.__checkPollStatus();
	    };
	    CheckStudentStatusService.prototype.__checkPollStatus = function () {
	        var _this = this;
	        this.ngCheckScheduledPollsServant
	            .load()
	            .then(function () {
	            if (_this.ngCheckScheduledPollsServant.hasScheduledPolls()) {
	                return _this.$state.go(_this.states.polls);
	            }
	            return _this.ngRedirectAfterPollForSurvey.redirect();
	        })
	            .catch(function (err) {
	            _this.log.error(err);
	            _this.log.issue('Unable to check intake poll status');
	        });
	    };
	    CheckStudentStatusService.prototype.__userAuthenticationIssues = function () {
	        if (this.accountModel.isSuperuser) {
	            this.accountModel.clear();
	            this.$state.go(this.states.notAuthed);
	            return;
	        }
	    };
	    return CheckStudentStatusService;
	}());
	exports.CheckStudentStatusService = CheckStudentStatusService;


/***/ }),
/* 1148 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var UserModesController = /** @class */ (function () {
	    function UserModesController($state, accountModel, LEANAP_EXPOSE_LEANAP_APIS, ngUserModesService, appConfigModel) {
	        this.$state = $state;
	        this.accountModel = accountModel;
	        this.LEANAP_EXPOSE_LEANAP_APIS = LEANAP_EXPOSE_LEANAP_APIS;
	        this.ngUserModesService = ngUserModesService;
	        this.appConfigModel = appConfigModel;
	        this.isAdvisorMode = false;
	        this.hasStudentRole = true;
	        this.hasContentManagerRole = false;
	        this.showDialog = false;
	        this.studentNk = '';
	    }
	    UserModesController.prototype.$onInit = function () {
	        this.userName = this.accountModel.fullname;
	        this.campusUrl = this.appConfigModel.getConfigProperty("core-campus_url");
	        this.hasStudentRole = this.ngUserModesService.hasStudentRole;
	        this.hasContentManagerRole = this.ngUserModesService.hasContentManagerRole;
	        // TODO: Auth Check should be in force_app_config_load.es
	        if (!this.accountModel.isLoggedIn()) {
	            this.ngUserModesService.forceAuthentication();
	        }
	        if (this.ngUserModesService.isAdvisorOnly) {
	            this.isAdvisorMode = true;
	        }
	    };
	    UserModesController.prototype.isPlanner3Enabled = function () {
	        return this.appConfigModel.isFeatureEnabled(this.LEANAP_EXPOSE_LEANAP_APIS);
	    };
	    UserModesController.prototype.accessStudentAP = function () {
	        this.showDialog = true;
	    };
	    UserModesController.prototype.hideDialog = function () {
	        this.showDialog = false;
	    };
	    UserModesController.prototype.updateStudentNk = function (evnt) {
	        this.studentNk = evnt.detail.value;
	    };
	    UserModesController.prototype.navigateToAP3Advisor = function () {
	        window.sessionStorage.setItem('external_id', this.studentNk);
	        window.location.assign('#/my/ap3/advisor');
	    };
	    return UserModesController;
	}());
	exports.UserModesController = UserModesController;
	var UserModesComponent = /** @class */ (function () {
	    function UserModesComponent() {
	        this.templateUrl = 'lib/user_modes/user_modes.html';
	        this.controller = UserModesController;
	    }
	    return UserModesComponent;
	}());
	exports.UserModesComponent = UserModesComponent;


/***/ }),
/* 1149 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var UserModesService = /** @class */ (function () {
	    function UserModesService(accountModel, NetworkUrlConfiguration, ngCheckStudentStatusService, $state, loginConfigModel, appConfigModel) {
	        this.accountModel = accountModel;
	        this.NetworkUrlConfiguration = NetworkUrlConfiguration;
	        this.ngCheckStudentStatusService = ngCheckStudentStatusService;
	        this.$state = $state;
	        this.loginConfigModel = loginConfigModel;
	        this.appConfigModel = appConfigModel;
	    }
	    Object.defineProperty(UserModesService.prototype, "hasAdvisorRole", {
	        get: function () {
	            return _4.includes(this.accountModel.groupNames, "advisor");
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(UserModesService.prototype, "hasStudentRole", {
	        get: function () {
	            return _4.includes(this.accountModel.groupNames, "use_student");
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(UserModesService.prototype, "hasMultipleRoles", {
	        get: function () {
	            return this.accountModel.groupNames.length > 1;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(UserModesService.prototype, "isAdvisorOnly", {
	        get: function () {
	            return !this.hasMultipleRoles && this.hasAdvisorRole;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(UserModesService.prototype, "isStudentOnly", {
	        get: function () {
	            return !this.hasMultipleRoles && this.hasStudentRole;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(UserModesService.prototype, "nonAdvisorRoles", {
	        get: function () {
	            return _4.without(this.accountModel.groupNames, "advisor");
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(UserModesService.prototype, "hasNonAdvisorDefaultRole", {
	        get: function () {
	            return this.nonAdvisorRoles.length === 1;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(UserModesService.prototype, "defaultToStudent", {
	        get: function () {
	            return this.hasNonAdvisorDefaultRole && this.hasStudentRole;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(UserModesService.prototype, "isContentManagerOnly", {
	        get: function () {
	            return this.hasMultipleRoles && !this.hasAdvisorRole && !this.hasStudentRole;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(UserModesService.prototype, "defaultToContentManager", {
	        get: function () {
	            return this.nonAdvisorRoles.length > 0 && !this.hasStudentRole;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(UserModesService.prototype, "hasContentManagerRole", {
	        get: function () {
	            var otherRoles = _4.without(this.accountModel.groupNames, "advisor", "use_student");
	            return otherRoles.length > 0;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(UserModesService.prototype, "userMode", {
	        set: function (mode) {
	            this.isUserModeStudent = mode === 'student';
	            this.NetworkUrlConfiguration.configure({
	                defaultHeaders: {
	                    'user-mode': mode
	                }
	            });
	        },
	        enumerable: true,
	        configurable: true
	    });
	    UserModesService.prototype.accessAsStudent = function () {
	        this.userMode = "student";
	        this.ngCheckStudentStatusService.run();
	    };
	    UserModesService.prototype.accessAsContentManager = function () {
	        window.open("/content", '_self');
	    };
	    UserModesService.prototype.processDefaultMode = function () {
	        /* Group Roles as of Oct 10, 2018
	          advisor
	          content_manager
	          eab_content_manager
	          eab_delivery
	          instructor
	          member_content_manager
	          path_default_editor
	          path_default_moderator
	          path_default_viewer
	          path_editor
	          path_moderator
	          path_publisher
	          path_viewer
	          program_editor
	          program_global_moderator
	          program_moderator
	          program_publisher
	          program_viewer
	          use_contentmanager
	          use_student
	          use_student_selector
	        */
	        this.isUserModeStudent = false;
	        if (this.isStudentOnly || this.defaultToStudent) {
	            this.accessAsStudent();
	            return;
	        }
	        if (this.isContentManagerOnly || this.defaultToContentManager) {
	            this.accessAsContentManager();
	            return;
	        }
	        this.$state.go("user-modes");
	    };
	    UserModesService.prototype.checkTOS = function () {
	        if (this.accountModel.acceptedTerms) {
	            this.processDefaultMode();
	        }
	        else {
	            this.$state.go("tos");
	        }
	    };
	    UserModesService.prototype.forceAuthentication = function () {
	        this.accountModel.clear();
	        this.loginConfigModel.clear();
	        this.userMode = undefined;
	        this.$state.go('authentication');
	    };
	    Object.defineProperty(UserModesService.prototype, "isStudentPreview", {
	        get: function () {
	            // Student Preview user has nk as `FAKE_my_user_name_$$_student_nk`;
	            var FAKESTUDENTPREFIX = "FAKE";
	            return _4.isEqual(_4.first(_4.split(this.accountModel.student_nk, '_')), FAKESTUDENTPREFIX);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return UserModesService;
	}());
	exports.UserModesService = UserModesService;


/***/ }),
/* 1150 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(934);
	__webpack_require__(935);
	__webpack_require__(936);
	__webpack_require__(937);
	__webpack_require__(938);


/***/ }),
/* 1151 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	__webpack_require__(21);
	__webpack_require__(443);
	angular.module('biz-ng-career-details', ['utility-ng-interface', 'ui-ng-progress']);
	__webpack_require__(1150);
	exports.default = 'biz-ng-career-details';


/***/ }),
/* 1152 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(455);
	__webpack_require__(456);
	__webpack_require__(457);
	__webpack_require__(458);


/***/ }),
/* 1153 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var placement_test_tile_modal_1 = __webpack_require__(458);
	angular.module('biz-ng-path-placement', []).component('placementTestTileModal', new placement_test_tile_modal_1.PlacementTestTileModalComponent());
	__webpack_require__(1152);
	tslib_1.__exportStar(__webpack_require__(456), exports);
	tslib_1.__exportStar(__webpack_require__(455), exports);
	tslib_1.__exportStar(__webpack_require__(457), exports);


/***/ }),
/* 1154 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(459);
	__webpack_require__(118);
	__webpack_require__(1155);


/***/ }),
/* 1155 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular.module('biz-ng-requisite-tree').directive('addAttr', [
	    '$timeout',
	    '$parse',
	    function ($timeout, $parse) { return ({
	        restrict: 'A',
	        link: function ($scope, $elem, $attrs) {
	            var notParsedConfig = $attrs['addAttr'];
	            if (_4.isEmpty(notParsedConfig)) {
	                return;
	            }
	            var parsedConfig = $parse(notParsedConfig)({});
	            var attributeToAdd = parsedConfig['attribute'] || '';
	            var timeout = _4.toNumber(parsedConfig['timeout']) || 0;
	            $timeout(function () {
	                $elem.attr(attributeToAdd, '');
	            }, timeout);
	        }
	    }); }
	]);


/***/ }),
/* 1156 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .factory('createEmptySuggestedPlanCommand', function createEmptySuggestedPlanCommandDefinition($http, defineCommand, ngAPNotificationDelegate, ngFeedbackSuggestedPlanModel, log) {
	    return defineCommand('createEmptySuggestedPlanCommand', function createEmptySuggestedPlanCommand(deferred, showSuccessNotification) {
	        if (showSuccessNotification === void 0) { showSuccessNotification = true; }
	        $http
	            .post('academicplan/suggested_plan/create/', {})
	            .then(function (response) {
	            ngFeedbackSuggestedPlanModel.clear().write(response.data);
	            if (showSuccessNotification) {
	                ngAPNotificationDelegate.success('Successfully created a new draft of suggestions.');
	            }
	            ngFeedbackSuggestedPlanModel.clear().write(response.data);
	            deferred.resolve(response.data);
	        })
	            .catch(function (e) {
	            ngAPNotificationDelegate.error("Unable to create a new draft of suggestions: " + e.data.detail);
	            log.error(e);
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1157 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var AutoGeneratePlanHeader = /** @class */ (function () {
	    function AutoGeneratePlanHeader(ngAPStudentDetailsQuery) {
	        this.ngAPStudentDetailsQuery = ngAPStudentDetailsQuery;
	    }
	    return AutoGeneratePlanHeader;
	}());
	angular.module('capability-ng-academic-planner').component('autoGeneratedPlanHeader', {
	    controller: AutoGeneratePlanHeader,
	    templateUrl: 'capability-ng-academic-planner/src/advisor_header/components/auto_generated_plan_header/auto_generated_plan_header.html'
	});


/***/ }),
/* 1158 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var DiscardDraftPopup = /** @class */ (function () {
	    function DiscardDraftPopup($state, $element, $timeout, ngAPNotificationDelegate, deleteSuggestedPlanCommand) {
	        this.$state = $state;
	        this.$element = $element;
	        this.$timeout = $timeout;
	        this.ngAPNotificationDelegate = ngAPNotificationDelegate;
	        this.deleteSuggestedPlanCommand = deleteSuggestedPlanCommand;
	    }
	    DiscardDraftPopup.prototype.openedChanged = function () {
	        this.open = false;
	    };
	    DiscardDraftPopup.prototype.confirmDiscard = function () {
	        var _this = this;
	        this.open = false;
	        this.deleteSuggestedPlanCommand()
	            .then(function () {
	            _this.ngAPNotificationDelegate.success("Successfully deleted your suggestions draft.");
	            _this.$state.go('ap-advisor.plan', {}, { reload: true });
	        })
	            .catch(function () {
	            _this.ngAPNotificationDelegate.success("Unable to delete your suggestions draft.");
	        });
	    };
	    return DiscardDraftPopup;
	}());
	angular.module('capability-ng-academic-planner').component('discardDraftPopup', {
	    templateUrl: 'capability-ng-academic-planner/src/advisor_header/components/discard_draft_popup/discard_draft_popup.html',
	    controller: DiscardDraftPopup,
	    bindings: {
	        open: '='
	    }
	});


/***/ }),
/* 1159 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var DEFAULT_SUGGESTION_TITLE = 'Suggest Changes';
	var AdvisorHeaderEditPlan = /** @class */ (function () {
	    function AdvisorHeaderEditPlan(ngAPStudentDetailsQuery, createEmptySuggestedPlanCommand, $state, ngFeedbackSuggestedPlanModel, ngAPAdvisorHeaderDetailsQuery, loadPlanFeedbackCommand, ngAPNotificationDelegate) {
	        this.ngAPStudentDetailsQuery = ngAPStudentDetailsQuery;
	        this.createEmptySuggestedPlanCommand = createEmptySuggestedPlanCommand;
	        this.$state = $state;
	        this.ngFeedbackSuggestedPlanModel = ngFeedbackSuggestedPlanModel;
	        this.ngAPAdvisorHeaderDetailsQuery = ngAPAdvisorHeaderDetailsQuery;
	        this.loadPlanFeedbackCommand = loadPlanFeedbackCommand;
	        this.ngAPNotificationDelegate = ngAPNotificationDelegate;
	        this.comparingStudentPlan = false;
	        this.openCommentDialog = false;
	        this.suggestionsTitle = DEFAULT_SUGGESTION_TITLE;
	        this.openDiscardDialog = false;
	    }
	    AdvisorHeaderEditPlan.prototype.$onInit = function () {
	        this.name = this.ngAPStudentDetailsQuery.result.first_name;
	        this.createdDate = moment().format('MMM DD, YYYY @ H:mm A');
	        this.suggestedPlan = this.ngFeedbackSuggestedPlanModel.read();
	        this.comparingStudentPlan = this.$state.includes('ap-advisor.plan.edit.compare');
	    };
	    AdvisorHeaderEditPlan.prototype.createEmptySuggestionClicked = function () {
	        this.createEmptySuggestedPlanCommand();
	    };
	    AdvisorHeaderEditPlan.prototype.loadPlanFeedback = function (dialogTitle) {
	        var _this = this;
	        this.loadPlanFeedbackCommand()
	            .then(function () {
	            _this.suggestionsTitle = dialogTitle;
	            _this.openCommentDialog = true;
	        })
	            .catch(function () {
	            _this.ngAPNotificationDelegate.error("Unable to load suggestions summary.");
	        });
	    };
	    AdvisorHeaderEditPlan.prototype.triggerSuggestionsDialog = function () {
	        this.loadPlanFeedback('Suggest Changes');
	    };
	    AdvisorHeaderEditPlan.prototype.triggerCommentsDialog = function () {
	        this.loadPlanFeedback('Send Comment');
	    };
	    AdvisorHeaderEditPlan.prototype.viewHistory = function () {
	        this.$state.go('ap-advisor.changelog');
	    };
	    AdvisorHeaderEditPlan.prototype.compareToggle = function () {
	        this.$state.go("ap-advisor.plan.edit." + (this.comparingStudentPlan ? 'default' : 'compare'));
	    };
	    AdvisorHeaderEditPlan.prototype.discardPlans = function () {
	        this.openDiscardDialog = true;
	    };
	    return AdvisorHeaderEditPlan;
	}());
	angular.module('capability-ng-academic-planner').component('advisorEditPlanHeader', {
	    templateUrl: 'capability-ng-academic-planner/src/advisor_header/components/edit_plan/edit_plan.html',
	    controller: AdvisorHeaderEditPlan
	});


/***/ }),
/* 1160 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var external_registration_link_model_1 = __webpack_require__(460);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('externalRegistrationLinkCommand', function ($http, ngExternalRegistrationLinkModel, log, defineCommand) {
	    return defineCommand('externalRegistrationLinkCommand', function (deferred) {
	        $http
	            .get("config/customtext/" + external_registration_link_model_1.externalRegistrationLinkNk + "/")
	            .then(function (_a) {
	            var data = _a.data;
	            ngExternalRegistrationLinkModel.clear().write(data);
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue('failed to retrieve info for course');
	            deferred.reject(e.data);
	        });
	    });
	});


/***/ }),
/* 1161 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ExternalRegistrationLinkController = /** @class */ (function () {
	    function ExternalRegistrationLinkController(ngExternalRegistrationLinkModel) {
	        this.ngExternalRegistrationLinkModel = ngExternalRegistrationLinkModel;
	    }
	    ExternalRegistrationLinkController.prototype.$onChanges = function () {
	        this.externalRegistrationLinkUrl = this.ngExternalRegistrationLinkModel.read().text;
	    };
	    return ExternalRegistrationLinkController;
	}());
	angular.module('capability-ng-academic-planner').component('externalRegistrationLink', {
	    controller: ExternalRegistrationLinkController,
	    templateUrl: 'capability-ng-academic-planner/src/advisor_header/components/external_registration_link/external_registration_link.html'
	});


/***/ }),
/* 1162 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PlanLooksGood = /** @class */ (function () {
	    function PlanLooksGood(ngAPAdvisorHeaderDetailsQuery, createEmptySuggestedPlanCommand, $state, ngAPNotificationDelegate, ngFeedbackSuggestedPlanModel, deleteSuggestedPlanCommand, commitSuggestedPlanCommand) {
	        this.ngAPAdvisorHeaderDetailsQuery = ngAPAdvisorHeaderDetailsQuery;
	        this.createEmptySuggestedPlanCommand = createEmptySuggestedPlanCommand;
	        this.$state = $state;
	        this.ngAPNotificationDelegate = ngAPNotificationDelegate;
	        this.ngFeedbackSuggestedPlanModel = ngFeedbackSuggestedPlanModel;
	        this.deleteSuggestedPlanCommand = deleteSuggestedPlanCommand;
	        this.commitSuggestedPlanCommand = commitSuggestedPlanCommand;
	        this.disablePlanLooksGood = false;
	    }
	    PlanLooksGood.prototype.createPlan = function () {
	        var showSuccessNotification = false;
	        return this.createEmptySuggestedPlanCommand(showSuccessNotification);
	    };
	    PlanLooksGood.prototype.addCommentAndSendPlan = function () {
	        var suggestedPlan = this.ngFeedbackSuggestedPlanModel.read();
	        var comment = 'Plan looks good!';
	        return this.commitSuggestedPlanCommand(comment, suggestedPlan.id);
	    };
	    PlanLooksGood.prototype.sendPlanLooksGood = function () {
	        var _this = this;
	        this.disablePlanLooksGood = true;
	        var sendPlanAlertName = 'send-plan-alert-name';
	        this.ngAPNotificationDelegate.info({ content: 'Sending plan...', name: sendPlanAlertName });
	        this.createPlan()
	            .then(function () { return _this.addCommentAndSendPlan(); })
	            .then(function () {
	            _this.$state.go("ap-advisor.student-plan-progress", {}, { reload: true });
	            _this.ngAPNotificationDelegate.dismissAlertByName(sendPlanAlertName);
	            return _this.ngAPNotificationDelegate.success("Successfully sent plan!");
	        })
	            .catch(function () {
	            _this.ngAPNotificationDelegate.dismissAlertByName(sendPlanAlertName);
	            var suggestedPlan = _this.ngFeedbackSuggestedPlanModel.read();
	            if (suggestedPlan.id) {
	                // regardless whatever happened, we want to show error message at the end
	                return _this.deleteSuggestedPlanCommand().finally(function () {
	                    return _this.ngAPNotificationDelegate.error("Unable to send the plan");
	                });
	            }
	            else {
	                return _this.ngAPNotificationDelegate.error("Unable to send the plan");
	            }
	        })
	            .finally(function () { return (_this.disablePlanLooksGood = false); });
	    };
	    return PlanLooksGood;
	}());
	angular.module('capability-ng-academic-planner').component('planLooksGood', {
	    templateUrl: 'capability-ng-academic-planner/src/advisor_header/components/plan_looks_good/plan_looks_good.html',
	    controller: PlanLooksGood
	});


/***/ }),
/* 1163 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-academic-planner').factory('ngStudentProfilesListingModel', function () {
	    return new utility_ts_orm_1.Model({
	        url: undefined,
	        text: undefined,
	        enabled: false /* default this functionality is disabled,
	      we expect this button to be shown only when ap is loaded inside a container not part of SPD */
	    });
	});


/***/ }),
/* 1164 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var StudentProfilesListing = /** @class */ (function () {
	    function StudentProfilesListing(ngStudentProfilesListingModel) {
	        this.ngStudentProfilesListingModel = ngStudentProfilesListingModel;
	    }
	    StudentProfilesListing.prototype.navigateToUrl = function () {
	        if (this.url) {
	            window.location.assign(this.url);
	        }
	    };
	    StudentProfilesListing.prototype.$onInit = function () {
	        var details = this.ngStudentProfilesListingModel.read();
	        this.text = details.text;
	        this.url = details.url;
	        this.enabled = details.enabled;
	    };
	    return StudentProfilesListing;
	}());
	angular.module('capability-ng-academic-planner').component('studentProfilesListing', {
	    templateUrl: 'capability-ng-academic-planner/src/advisor_header/components/student_profiles_listing/student_profiles_listing.html',
	    controller: StudentProfilesListing
	});


/***/ }),
/* 1165 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var AdvisorHeaderViewPlan = /** @class */ (function () {
	    function AdvisorHeaderViewPlan(ngAPStudentDetailsQuery, createEmptySuggestedPlanCommand, changeSuggestedPlanStatusCommand, $state, ngAPNotificationDelegate, navigateIfPlanBlockedCommand, ngAPAdvisorHeaderDetailsQuery) {
	        this.ngAPStudentDetailsQuery = ngAPStudentDetailsQuery;
	        this.createEmptySuggestedPlanCommand = createEmptySuggestedPlanCommand;
	        this.changeSuggestedPlanStatusCommand = changeSuggestedPlanStatusCommand;
	        this.$state = $state;
	        this.ngAPNotificationDelegate = ngAPNotificationDelegate;
	        this.navigateIfPlanBlockedCommand = navigateIfPlanBlockedCommand;
	        this.ngAPAdvisorHeaderDetailsQuery = ngAPAdvisorHeaderDetailsQuery;
	        this.showRevokeDialog = false;
	        this.disableRevoke = false;
	    }
	    AdvisorHeaderViewPlan.prototype.initialize = function () {
	        this.name = this.ngAPStudentDetailsQuery.result.first_name;
	        this.disableRevoke = this.ngAPAdvisorHeaderDetailsQuery.result.disableRevoke;
	    };
	    AdvisorHeaderViewPlan.prototype.$onInit = function () {
	        this.initialize();
	    };
	    AdvisorHeaderViewPlan.prototype.toggleRevokeDialog = function (openTheRevokePopup) {
	        var _this = this;
	        if (!openTheRevokePopup) {
	            this.showRevokeDialog = false;
	            return;
	        }
	        var sendPlanAlertName = 'check-plan-status-alert-name';
	        this.ngAPNotificationDelegate.info({ content: 'Checking the status of the plan...', name: sendPlanAlertName });
	        this.navigateIfPlanBlockedCommand()
	            .then(function () {
	            _this.showRevokeDialog = true;
	        })
	            .finally(function () { return _this.ngAPNotificationDelegate.dismissAlertByName(sendPlanAlertName); });
	    };
	    AdvisorHeaderViewPlan.prototype.revokePopupOpenedChanged = function ($event) {
	        if (!$event.detail.value) {
	            this.showRevokeDialog = false;
	        }
	    };
	    AdvisorHeaderViewPlan.prototype.revokePlan = function () {
	        var _this = this;
	        this.toggleRevokeDialog(false);
	        this.changeSuggestedPlanStatusCommand('EDITING')
	            .then(function () {
	            _this.$state.go('ap-advisor.plan.edit.default');
	            _this.ngAPNotificationDelegate.success('Successfully revoked your suggestions.');
	        })
	            .catch(function (error) {
	            if (error.status === 400) {
	                _this.disableRevoke = true;
	            }
	            _this.$state.go('ap-advisor.plan.view.default');
	            _this.ngAPNotificationDelegate.error('Unable to revoke current suggestions as student has started acting on it.');
	        });
	    };
	    AdvisorHeaderViewPlan.prototype.createEmptySuggestion = function () {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            return tslib_1.__generator(this, function (_a) {
	                switch (_a.label) {
	                    case 0: return [4 /*yield*/, this.createEmptySuggestedPlanCommand()];
	                    case 1:
	                        _a.sent();
	                        this.$state.go('ap-advisor.plan.edit.default');
	                        return [2 /*return*/];
	                }
	            });
	        });
	    };
	    return AdvisorHeaderViewPlan;
	}());
	angular.module('capability-ng-academic-planner').component('advisorHeaderViewPlan', {
	    templateUrl: 'capability-ng-academic-planner/src/advisor_header/components/view_plan/view_plan.html',
	    controller: AdvisorHeaderViewPlan
	});


/***/ }),
/* 1166 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APAlternatePlanDetailsSlot = /** @class */ (function () {
	    function APAlternatePlanDetailsSlot(alternatePlanDetailsSlot) {
	        _4.merge(this, alternatePlanDetailsSlot);
	    }
	    APAlternatePlanDetailsSlot.build = function (alternatePlanDetailsSlot) {
	        return new APAlternatePlanDetailsSlot(alternatePlanDetailsSlot);
	    };
	    return APAlternatePlanDetailsSlot;
	}());
	exports.APAlternatePlanDetailsSlot = APAlternatePlanDetailsSlot;


/***/ }),
/* 1167 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .service('changeSpecializationPlanCommand', function changeSpecializationPlanCommand(defineCommandORM, ngAlternatePlanComparePlansModel, $http, ngAPNotificationDelegate, log) {
	    return defineCommandORM('changeSpecializationPlanCommand', function (deferred) {
	        // if we don't have 'to'/'from' plan selected, we can't change specialization
	        var currentSelectedPlans = ngAlternatePlanComparePlansModel.read();
	        if (_4.isUndefined(currentSelectedPlans.to) || _4.isUndefined(currentSelectedPlans.from)) {
	            deferred.reject();
	            return;
	        }
	        $http
	            .post("/academicplan/program/change_specialization/", {
	            from_plan_id: _4.get(currentSelectedPlans.from, 'id'),
	            to_plan_id: _4.get(currentSelectedPlans.to, 'id')
	        })
	            .then(function (response) {
	            ngAPNotificationDelegate.success('Successfully changed the specialization!');
	            ngAlternatePlanComparePlansModel.clear();
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            var errorMessage = 'failed to change the specialization';
	            ngAPNotificationDelegate.error(errorMessage);
	            log.error(errorMessage);
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1168 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .service('getNonExistingCoursesNewPlanCommand', function getNonExistingCoursesNewPlanCommand(defineCommandORM, ngAlternatePlanComparePlansModel, $http, ngAPNotificationDelegate, ngAPAlternatePlanNonExistingCoursesDatasource, log) {
	    return defineCommandORM('getNonExistingCoursesNewPlanCommand', function (deferred) {
	        // if we don't have 'to' plan selected, we can't load any details
	        if (_4.isUndefined(ngAlternatePlanComparePlansModel.read().to)) {
	            deferred.reject();
	            return;
	        }
	        var toPlanId = _4.get(ngAlternatePlanComparePlansModel.read().to, 'id');
	        $http
	            .get("/academicplan/program/" + toPlanId + "/unused_coursework/")
	            .then(function (response) {
	            ngAPAlternatePlanNonExistingCoursesDatasource.clear().write(response.data);
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            var errorMessage = 'failed to get non existing courses in the new plan';
	            ngAPNotificationDelegate.error(errorMessage);
	            log.error(errorMessage);
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1169 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	angular
	    .module('capability-ng-academic-planner')
	    .service('loadAlternatePlanDetailsCommand', function loadAlternatePlanDetailsCommand(defineCommandORM, ngAlternatePlanComparePlansModel, $http, ngAPNotificationDelegate, log) {
	    return defineCommandORM('loadAlternatePlanDetailsCommand', function (deferred, programId, updatePlanKey) {
	        $http
	            .get("/academicplan/program/" + programId + "/slots/")
	            .then(function (response) {
	            var _a;
	            var currentCompareModel = ngAlternatePlanComparePlansModel.read();
	            ngAlternatePlanComparePlansModel.clear().write(tslib_1.__assign(tslib_1.__assign({}, currentCompareModel), (_a = {}, _a[updatePlanKey] = {
	                id: programId,
	                slots: response.data
	            }, _a)));
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            var errorMessage = 'failed to get details for the plan';
	            ngAPNotificationDelegate.error(errorMessage);
	            log.error(errorMessage);
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1170 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .service('loadAlternatePlanListCommand', function loadAlternatePlanListCommand(defineCommandORM, ngAPAlternatePlanListDatasource, ngAPModel, $http, ngAPNotificationDelegate, log) {
	    return defineCommandORM('loadAlternatePlanListCommand', function (deferred) {
	        var currentProgram = _4.head(_4.toArray(ngAPModel.read().program));
	        $http
	            .get("/academicplan/programs/" + currentProgram.id + "/available_plans/")
	            .then(function (response) {
	            var currentPlan = response.data.current_plan || {};
	            var availablePlans = response.data.available_plans || [];
	            var alternatePlansData = tslib_1.__spreadArrays([currentPlan], availablePlans);
	            ngAPAlternatePlanListDatasource.clear().write(alternatePlansData);
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            var errorMessage = 'failed to get alternate plan list';
	            ngAPNotificationDelegate.error(errorMessage);
	            log.error(errorMessage);
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1171 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var AlternatePlanChangePlanPopupController = /** @class */ (function () {
	    function AlternatePlanChangePlanPopupController($state, changeSpecializationPlanCommand, ngAPUserModeConfig, ngAlternatePlanChangePlanPopupDetailsQuery) {
	        this.$state = $state;
	        this.changeSpecializationPlanCommand = changeSpecializationPlanCommand;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.ngAlternatePlanChangePlanPopupDetailsQuery = ngAlternatePlanChangePlanPopupDetailsQuery;
	        this.showPopup = true;
	    }
	    AlternatePlanChangePlanPopupController.prototype.changePlanOpenedChanged = function ($event) {
	        this.showPopup = $event.detail.value;
	        if (!this.showPopup) {
	            this.$state.go('^.^.alternate-plans');
	        }
	    };
	    AlternatePlanChangePlanPopupController.prototype.changePlan = function () {
	        var _this = this;
	        this.changeSpecializationPlanCommand().then(function () {
	            var stateName = _this.ngAPUserModeConfig.isAdvisor()
	                ? 'ap-advisor.plan.view.default'
	                : 'my.planner.plan.default';
	            _this.$state.go(stateName, {}, { reload: true });
	        });
	    };
	    AlternatePlanChangePlanPopupController.prototype.closePopup = function () {
	        this.showPopup = false;
	    };
	    return AlternatePlanChangePlanPopupController;
	}());
	angular.module('capability-ng-academic-planner').component('alternatePlanChangePlanPopup', {
	    templateUrl: 'capability-ng-academic-planner/src/alternate_plans/components/alternate_plan_change_plan_popup/alternate_plan_change_plan_popup.html',
	    controller: AlternatePlanChangePlanPopupController
	});


/***/ }),
/* 1172 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var slot_status_badge_html_servant_1 = __webpack_require__(70);
	var AlternatePlanDetails = /** @class */ (function () {
	    function AlternatePlanDetails($state, appConfigModel, routerHelper, ngAPUserModeConfig, ngAPAlternatePlanComparePlansQuery) {
	        this.$state = $state;
	        this.appConfigModel = appConfigModel;
	        this.routerHelper = routerHelper;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.ngAPAlternatePlanComparePlansQuery = ngAPAlternatePlanComparePlansQuery;
	        this.showBasePlanWarning = false;
	        this.showAdvisorMeetLink = false;
	        this.showChangeToThisButton = false;
	        this.isCurrentPlan = false;
	        this.isSelectableByStudent = false;
	        this.isVisibleToStudent = false;
	        this.noCoursesAvailable = false;
	        this.basePlanWarningText = '';
	    }
	    AlternatePlanDetails.prototype.getSlotBadge = function (slot) {
	        return {
	            cssClass: slot_status_badge_html_servant_1.SlotStatusCssClassColorMap[slot_status_badge_html_servant_1.SlotStatusTextToColorMap[slot.status]],
	            text: slot_status_badge_html_servant_1.SlotStatusTextMap[slot.status]
	        };
	    };
	    AlternatePlanDetails.prototype.initialize = function () {
	        this.advisorLabel = _4.get(this.appConfigModel, 'model.member_configs.advisor_label', 'advisor');
	        this.showAdvisorMeetLink = this.ngAPUserModeConfig.isStudent() && this.planDetails.has_plan_exist;
	        if (this.planDetails.has_plan_exist) {
	            this.isCurrentPlan = _4.get(this.planDetails, 'plan.is_current_plan', false);
	            this.isSelectableByStudent = _4.get(this.planDetails, 'plan.is_selectable_by_student', false);
	            this.isVisibleToStudent = _4.get(this.planDetails, 'plan.is_visible_to_student', false);
	            // for advisor we will show this button by default if its not current plan
	            this.showChangeToThisButton = !this.isCurrentPlan;
	            if (this.ngAPUserModeConfig.isStudent()) {
	                this.showChangeToThisButton = this.showChangeToThisButton && this.isSelectableByStudent;
	                this.isVisibleToStudent = false;
	            }
	            this.noCoursesAvailable = _4.get(this.planDetails, 'plan.slots.length', 0) === 0;
	            if (this.showAdvisorMeetLink) {
	                this.showAdvisorMeetLink = !this.isCurrentPlan && !this.isSelectableByStudent;
	            }
	        }
	        this.basePlanWarningText = "This base plan is out of date with your calendar year start date. Please update you base plan by selecting '" + this.ngAPAlternatePlanComparePlansQuery.result.correctBasePlanName + "' plan on the left.";
	    };
	    AlternatePlanDetails.prototype.showChangePlanPopup = function () {
	        this.$state.go('.change-plan');
	    };
	    AlternatePlanDetails.prototype.$onInit = function () {
	        this.initialize();
	    };
	    AlternatePlanDetails.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    return AlternatePlanDetails;
	}());
	angular.module('capability-ng-academic-planner').component('alternatePlanDetails', {
	    templateUrl: 'capability-ng-academic-planner/src/alternate_plans/components/alternate_plan_details/alternate_plan_details.html',
	    controller: AlternatePlanDetails,
	    bindings: {
	        planDetails: '<',
	        showBasePlanWarning: '<'
	    }
	});


/***/ }),
/* 1173 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var AlternatePlanHeader = /** @class */ (function () {
	    function AlternatePlanHeader($state, ngAPUserModeConfig, ngAPProgramDetailsQuery) {
	        this.$state = $state;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.ngAPProgramDetailsQuery = ngAPProgramDetailsQuery;
	    }
	    AlternatePlanHeader.prototype.backToPlanner = function () {
	        if (this.ngAPUserModeConfig.isAdvisor()) {
	            this.$state.go('^.plan.view.default');
	        }
	        else {
	            this.$state.go('my.planner.plan.default');
	        }
	    };
	    return AlternatePlanHeader;
	}());
	angular.module('capability-ng-academic-planner').component('alternatePlanHeader', {
	    templateUrl: 'capability-ng-academic-planner/src/alternate_plans/components/alternate_plan_header/alternate_plan_header.html',
	    controller: AlternatePlanHeader
	});


/***/ }),
/* 1174 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var AlternatePlanLink = /** @class */ (function () {
	    function AlternatePlanLink($state, ngAPProgramDetailsQuery, ngAPAlternatePlanListQuery, ngAPUserModeConfig) {
	        this.$state = $state;
	        this.ngAPProgramDetailsQuery = ngAPProgramDetailsQuery;
	        this.ngAPAlternatePlanListQuery = ngAPAlternatePlanListQuery;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	    }
	    AlternatePlanLink.prototype.navigateToAlternatePlans = function () {
	        var statePrefix = this.ngAPUserModeConfig.isAdvisor() ? 'ap-advisor' : 'my.planner';
	        this.$state.go(statePrefix + ".alternate-plans");
	    };
	    return AlternatePlanLink;
	}());
	angular.module('capability-ng-academic-planner').component('alternatePlanLink', {
	    templateUrl: 'capability-ng-academic-planner/src/alternate_plans/components/alternate_plan_link/alternate_plan_link.html',
	    controller: AlternatePlanLink
	});


/***/ }),
/* 1175 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var AlternatePlanList = /** @class */ (function () {
	    function AlternatePlanList(ngAPAlternatePlanListQuery) {
	        this.ngAPAlternatePlanListQuery = ngAPAlternatePlanListQuery;
	    }
	    return AlternatePlanList;
	}());
	angular.module('capability-ng-academic-planner').component('alternatePlanList', {
	    templateUrl: 'capability-ng-academic-planner/src/alternate_plans/components/alternate_plan_list/alternate_plan_list.html',
	    controller: AlternatePlanList
	});


/***/ }),
/* 1176 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var AlternatePlansListItem = /** @class */ (function () {
	    function AlternatePlansListItem($state, ngAPUserModeConfig, loadAlternatePlanDetailsCommand) {
	        this.$state = $state;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.loadAlternatePlanDetailsCommand = loadAlternatePlanDetailsCommand;
	    }
	    AlternatePlansListItem.prototype.loadToPlan = function () {
	        return this.loadAlternatePlanDetailsCommand(this.item.id, 'to');
	    };
	    return AlternatePlansListItem;
	}());
	angular.module('capability-ng-academic-planner').component('alternatePlanListItem', {
	    templateUrl: 'capability-ng-academic-planner/src/alternate_plans/components/alternate_plan_list_item/alternate_plan_list_item.html',
	    controller: AlternatePlansListItem,
	    bindings: {
	        item: '<'
	    }
	});


/***/ }),
/* 1177 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var AlternatePlansController = /** @class */ (function () {
	    function AlternatePlansController(ngAPAlternatePlanComparePlansQuery) {
	        this.ngAPAlternatePlanComparePlansQuery = ngAPAlternatePlanComparePlansQuery;
	    }
	    return AlternatePlansController;
	}());
	angular.module('capability-ng-academic-planner').component('alternatePlans', {
	    templateUrl: 'capability-ng-academic-planner/src/alternate_plans/components/alternate_plans/alternate_plans.html',
	    controller: AlternatePlansController
	});


/***/ }),
/* 1178 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var ap_alternate_plan_list_item_builder_1 = __webpack_require__(119);
	angular.module('capability-ng-academic-planner').factory('ngAPAlternatePlanListDatasource', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: ap_alternate_plan_list_item_builder_1.APAlternatePlanListItem,
	        updateMode: 'merge'
	    });
	});


/***/ }),
/* 1179 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var ap_alternate_plan_non_existing_course_builder_1 = __webpack_require__(461);
	angular.module('capability-ng-academic-planner').factory('ngAPAlternatePlanNonExistingCoursesDatasource', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: ap_alternate_plan_non_existing_course_builder_1.APAlternatePlanNonExistingCourse,
	        updateMode: 'merge'
	    });
	});


/***/ }),
/* 1180 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-academic-planner').factory('ngAlternatePlanComparePlansModel', function () {
	    return new utility_ts_orm_1.Model({
	        from: undefined,
	        to: undefined
	    });
	});


/***/ }),
/* 1181 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var slot_status_badge_html_servant_1 = __webpack_require__(70);
	var AlternatePlanChangePlanPopupDetailsQuery = /** @class */ (function () {
	    function AlternatePlanChangePlanPopupDetailsQuery(ngAlternatePlanComparePlansModel, ngAPAlternatePlanListDatasource, ngApStudentDetailsModel, ngAPUserModeConfig, ngAPAlternatePlanNonExistingCoursesDatasource, ngAPModel) {
	        this.ngAlternatePlanComparePlansModel = ngAlternatePlanComparePlansModel;
	        this.ngAPAlternatePlanListDatasource = ngAPAlternatePlanListDatasource;
	        this.ngApStudentDetailsModel = ngApStudentDetailsModel;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.ngAPAlternatePlanNonExistingCoursesDatasource = ngAPAlternatePlanNonExistingCoursesDatasource;
	        this.ngAPModel = ngAPModel;
	        this._result = {
	            title: '',
	            description: '',
	            creditsText: '',
	            nonExistingCourses: [],
	            showAdvisorMeetingText: false
	        };
	        utility_ts_orm_1.ORMMediator.registerQuery(this, ngAPModel, ngAPAlternatePlanNonExistingCoursesDatasource, ngAlternatePlanComparePlansModel, ngAPAlternatePlanListDatasource);
	    }
	    AlternatePlanChangePlanPopupDetailsQuery.prototype.run = function () {
	        var toPlanInfo = this.ngAlternatePlanComparePlansModel.read().to;
	        // will return default values if we don't have to plan selected
	        if (_4.isUndefined(toPlanInfo)) {
	            return this;
	        }
	        var currentPlan = this.ngAPAlternatePlanListDatasource.get(this.ngAPModel.currentProgram().id);
	        var toPlan = this.ngAPAlternatePlanListDatasource.get(toPlanInfo.id);
	        this._result.showAdvisorMeetingText = true;
	        var planApplyingUserLabel = 'your';
	        if (this.ngAPUserModeConfig.isAdvisor()) {
	            this._result.showAdvisorMeetingText = false;
	            planApplyingUserLabel = this.ngApStudentDetailsModel.read().first_name + "'s";
	        }
	        this._result.title = "Change " + _4.upperFirst(planApplyingUserLabel) + " Academic Plan";
	        this._result.description = "You are about to change " + planApplyingUserLabel + " specialty of <span class=\"text-bold\">" + this.ngAPModel.currentProgram().name + "</span> from the <span class=\"text-bold\">" + currentPlan.name + "</span> to <span class=\"text-bold\">" + toPlan.name + "</span>";
	        var toPlanRemainingCredits = toPlan.max_credits - toPlan.taken_credits;
	        var currentPlanRemainingCredits = currentPlan.max_credits - currentPlan.taken_credits;
	        this._result.creditsText = '';
	        // we don't display creditText if both are same
	        if (_4.gt(toPlanRemainingCredits, currentPlanRemainingCredits)) {
	            this._result.creditsText = "This new plan has " + (toPlanRemainingCredits - currentPlanRemainingCredits) + " more credits remaining than the current plan";
	        }
	        else if (_4.gt(currentPlanRemainingCredits, toPlanRemainingCredits)) {
	            this._result.creditsText = "This plan has " + (currentPlanRemainingCredits - toPlanRemainingCredits) + " fewer credits than the current plan";
	        }
	        var nonExistingCoursesInNewPlan = _4.sortBy(this.ngAPAlternatePlanNonExistingCoursesDatasource.read(), 'slot');
	        this._result.nonExistingCourses = _4.map(nonExistingCoursesInNewPlan, function (course) { return ({
	            title: course.cd + " " + course.title,
	            badge: !_4.isEmpty(course.status)
	                ? {
	                    cssClass: slot_status_badge_html_servant_1.SlotStatusCssClassColorMap[slot_status_badge_html_servant_1.SlotStatusTextToColorMap[course.status]],
	                    text: slot_status_badge_html_servant_1.SlotStatusTextMap[course.status]
	                }
	                : undefined
	        }); });
	        return this;
	    };
	    Object.defineProperty(AlternatePlanChangePlanPopupDetailsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return AlternatePlanChangePlanPopupDetailsQuery;
	}());
	exports.AlternatePlanChangePlanPopupDetailsQuery = AlternatePlanChangePlanPopupDetailsQuery;
	angular
	    .module('capability-ng-academic-planner')
	    .service('ngAlternatePlanChangePlanPopupDetailsQuery', AlternatePlanChangePlanPopupDetailsQuery);


/***/ }),
/* 1182 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var slot_status_badge_html_servant_1 = __webpack_require__(70);
	var ap_alternate_plan_list_item_builder_1 = __webpack_require__(119);
	var APAlternatePlanComparePlansQuery = /** @class */ (function () {
	    function APAlternatePlanComparePlansQuery(ngAlternatePlanComparePlansModel, ngAPAlternatePlanListDatasource, ngAPUserModeConfig, ngAPModel) {
	        this.ngAlternatePlanComparePlansModel = ngAlternatePlanComparePlansModel;
	        this.ngAPAlternatePlanListDatasource = ngAPAlternatePlanListDatasource;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.ngAPModel = ngAPModel;
	        this._result = {
	            from_plan: undefined,
	            to_plan: undefined,
	            showBasePlanWarning: false,
	            correctBasePlanName: ''
	        };
	        utility_ts_orm_1.ORMMediator.registerQuery(this, ngAPModel, ngAlternatePlanComparePlansModel);
	    }
	    APAlternatePlanComparePlansQuery.prototype.getCorrectBasePlanName = function () {
	        var correctBasePlanName = '';
	        var currentProgramId = _4.get(this.ngAPModel.currentProgram(), 'id', 0);
	        if (currentProgramId) {
	            var basePlansList = _4.filter(this.ngAPAlternatePlanListDatasource.read(), function (alternatePlan) { return alternatePlan.is_base_plan; });
	            var correctBasePlan = _4.first(_4.reject(basePlansList, { id: currentProgramId }));
	            correctBasePlanName = _4.get(correctBasePlan, 'name', '');
	        }
	        return correctBasePlanName;
	    };
	    APAlternatePlanComparePlansQuery.prototype.buildIndividualPlanDetails = function (planEntry) {
	        var currentProgram = this.ngAPModel.currentProgram();
	        var hasPlanExist = _4.has(planEntry, 'id');
	        if (!hasPlanExist) {
	            return {
	                has_plan_exist: false,
	                plan: undefined
	            };
	        }
	        var slots = _4.sortBy(planEntry.slots, 'slot').map(function (slot) { return (tslib_1.__assign(tslib_1.__assign({}, slot), { title: slot.desc, badge: !_4.isEmpty(slot.status)
	                ? {
	                    cssClass: slot_status_badge_html_servant_1.SlotStatusCssClassColorMap[slot_status_badge_html_servant_1.SlotStatusTextToColorMap[slot.status]],
	                    text: slot_status_badge_html_servant_1.SlotStatusTextMap[slot.status]
	                }
	                : undefined, status: _4.includes(['REGISTERED', 'SECTION_PICKED', 'IN_PROGRESS'], slot.status) ? 'IN_PROGRESS' : slot.status })); });
	        var planDetailsInList = this.ngAPAlternatePlanListDatasource.get(planEntry.id);
	        if (!planDetailsInList) {
	            planDetailsInList = ap_alternate_plan_list_item_builder_1.APAlternatePlanListItem.build({
	                taken_credits: 0,
	                max_credits: 0,
	                min_credits: 0,
	                is_visible_to_student: false,
	                is_selectable_by_student: false,
	                name: ''
	            });
	        }
	        return {
	            plan: {
	                id: planEntry.id,
	                slots: slots,
	                taken_credits: planDetailsInList.taken_credits,
	                max_credits: planDetailsInList.max_credits,
	                remaining_credits: planDetailsInList.max_credits - planDetailsInList.taken_credits,
	                credit_range: planDetailsInList.max_credits !== planDetailsInList.min_credits
	                    ? planDetailsInList.min_credits + " - " + planDetailsInList.max_credits
	                    : "" + planDetailsInList.min_credits,
	                is_current_plan: currentProgram.id === planEntry.id,
	                is_visible_to_student: _4.get(planDetailsInList, 'is_visible_to_student', false),
	                is_selectable_by_student: _4.get(planDetailsInList, 'is_selectable_by_student', false),
	                name: _4.get(planDetailsInList, 'name', '')
	            },
	            has_plan_exist: hasPlanExist
	        };
	    };
	    APAlternatePlanComparePlansQuery.prototype.getNumberOfBasePlans = function () {
	        return _4.size(_4.filter(this.ngAPAlternatePlanListDatasource.read(), function (alternatePlan) { return alternatePlan.is_base_plan; }));
	    };
	    APAlternatePlanComparePlansQuery.prototype.run = function () {
	        var comparePlans = this.ngAlternatePlanComparePlansModel.read();
	        this._result.from_plan = this.buildIndividualPlanDetails(comparePlans.from);
	        this._result.to_plan = this.buildIndividualPlanDetails(comparePlans.to);
	        this._result.showBasePlanWarning = _4.gt(this.getNumberOfBasePlans(), 1);
	        this._result.correctBasePlanName = this.getCorrectBasePlanName();
	        return this;
	    };
	    Object.defineProperty(APAlternatePlanComparePlansQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APAlternatePlanComparePlansQuery;
	}());
	exports.APAlternatePlanComparePlansQuery = APAlternatePlanComparePlansQuery;
	angular
	    .module('capability-ng-academic-planner')
	    .service('ngAPAlternatePlanComparePlansQuery', APAlternatePlanComparePlansQuery);


/***/ }),
/* 1183 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var plan_feedback_servant_1 = __webpack_require__(13);
	var APAlternatePlanListQuery = /** @class */ (function () {
	    function APAlternatePlanListQuery(ngAPAlternatePlanListDatasource, ngAPModel, ngAPUserModeConfig, ngFeedbackSuggestedPlanModel) {
	        this.ngAPAlternatePlanListDatasource = ngAPAlternatePlanListDatasource;
	        this.ngAPModel = ngAPModel;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.ngFeedbackSuggestedPlanModel = ngFeedbackSuggestedPlanModel;
	        utility_ts_orm_1.ORMMediator.registerQuery(this, ngAPAlternatePlanListDatasource, ngFeedbackSuggestedPlanModel);
	    }
	    APAlternatePlanListQuery.prototype.getPlanList = function () {
	        var _this = this;
	        var currentProgramId = this.ngAPModel.currentProgram().id;
	        var planListWithoutCurrentPlan = _4.reject(this.ngAPAlternatePlanListDatasource.read(), { id: currentProgramId });
	        return _4.map(planListWithoutCurrentPlan, function (planListItem) { return ({
	            id: planListItem.id,
	            name: planListItem.name,
	            credit_range: planListItem.max_credits === planListItem.min_credits
	                ? "" + planListItem.max_credits
	                : planListItem.min_credits + " - " + planListItem.max_credits,
	            is_visible_to_student: _this.ngAPUserModeConfig.isAdvisor() && planListItem.is_visible_to_student,
	            is_selectable_by_student: _this.ngAPUserModeConfig.isAdvisor() && planListItem.is_selectable_by_student
	        }); });
	    };
	    APAlternatePlanListQuery.prototype.getNumberOfBasePlans = function () {
	        return _4.size(_4.filter(this.ngAPAlternatePlanListDatasource.read(), function (alternatePlan) { return alternatePlan.is_base_plan; }));
	    };
	    APAlternatePlanListQuery.prototype.run = function () {
	        var currentProgramId = this.ngAPModel.currentProgram().id;
	        var advisorInViewMode = plan_feedback_servant_1.PlanFeedbackServant.isPlanReadOnlyMode(this.ngFeedbackSuggestedPlanModel.read());
	        var planList = this.getPlanList();
	        var planListWithoutCurrentPlan = _4.reject(planList, { id: currentProgramId });
	        var isAdvisorViewMode = this.ngAPUserModeConfig.isAdvisor() && advisorInViewMode;
	        var showAlternatePlanLink = !_4.isEmpty(planListWithoutCurrentPlan) && (isAdvisorViewMode || this.ngAPUserModeConfig.isStudent());
	        var specializationName = showAlternatePlanLink
	            ? _4.get(this.ngAPAlternatePlanListDatasource.get(currentProgramId), 'name', '')
	            : '';
	        var isWrongBasePlanAssigned = _4.gt(this.getNumberOfBasePlans(), 1);
	        this.__result = {
	            hasPlans: showAlternatePlanLink,
	            planList: planList,
	            specializationName: specializationName,
	            shouldShowBasePlanWarning: isWrongBasePlanAssigned
	        };
	        return this;
	    };
	    Object.defineProperty(APAlternatePlanListQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APAlternatePlanListQuery;
	}());
	exports.APAlternatePlanListQuery = APAlternatePlanListQuery;
	angular.module('capability-ng-academic-planner').service('ngAPAlternatePlanListQuery', APAlternatePlanListQuery);


/***/ }),
/* 1184 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('loadChangelogCommand', function loadChangelogCommand(defineCommandORM, ngAPChangelogDatasource, $http) {
	    return defineCommandORM('loadChangelogCommand', function (deferred) {
	        $http
	            .get("/academicplan/suggested_plan/history/")
	            .then(function (response) {
	            ngAPChangelogDatasource.write(response.data);
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1185 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var Changelog = /** @class */ (function () {
	    function Changelog(loadChangelogCommand, routerHelper, $state, ngAPChangelogQuery, ngAPAdvisorText, appConfigModel, phxFeatureConfiguration) {
	        this.loadChangelogCommand = loadChangelogCommand;
	        this.routerHelper = routerHelper;
	        this.$state = $state;
	        this.ngAPChangelogQuery = ngAPChangelogQuery;
	        this.ngAPAdvisorText = ngAPAdvisorText;
	        this.appConfigModel = appConfigModel;
	        this.phxFeatureConfiguration = phxFeatureConfiguration;
	        this.showLoading = true;
	        this.query = ngAPChangelogQuery;
	    }
	    Changelog.prototype.$onInit = function () {
	        this.loadChangelog();
	        this.advisorText = this.ngAPAdvisorText.advisorLabel;
	    };
	    Changelog.prototype.loadChangelog = function () {
	        var _this = this;
	        this.loadChangelogCommand().then(function () {
	            _this.showLoading = false;
	        });
	    };
	    Changelog.prototype.print = function () {
	        window.print();
	    };
	    Changelog.prototype.getInitials = function (sender_info) {
	        var firstName = _4.get(sender_info, 'first_name', '');
	        var lastName = _4.get(sender_info, 'last_name', '');
	        if (_4.isEmpty(firstName) || _4.isEmpty(lastName)) {
	            return '';
	        }
	        return _4.upperCase(_4.first(firstName)) + " " + _4.upperCase(_4.first(lastName));
	    };
	    Changelog.prototype.isAp3FeatureEnabled = function () {
	        return this.appConfigModel.isFeatureEnabled('ap3-academic_planner_v3');
	    };
	    Changelog.prototype.goBack = function () {
	        if (this.isAp3FeatureEnabled()) {
	            window.location.assign('#/my/ap3/student/');
	            return;
	        }
	        if (this.$state.__previousRoute__.state.name !== '') {
	            return this.$state.__goToPrevious__();
	        }
	        return this.routerHelper.findStateAndGo('.default');
	    };
	    return Changelog;
	}());
	angular.module('capability-ng-academic-planner').component('changelog', {
	    templateUrl: 'capability-ng-academic-planner/src/changelog/components/changelog/changelog.html',
	    controller: Changelog
	});


/***/ }),
/* 1186 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var ap_changelog_builder_1 = __webpack_require__(462);
	angular.module('capability-ng-academic-planner').factory('ngAPChangelogDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ap_changelog_builder_1.APChangelog,
	        updateMode: 'merge'
	    });
	});


/***/ }),
/* 1187 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var utility_ts_datasource_1 = __webpack_require__(9);
	var ap_changelog_servant_1 = __webpack_require__(120);
	var APChangelogQuery = /** @class */ (function () {
	    function APChangelogQuery(ngAPChangelogDatasource) {
	        this.ngAPChangelogDatasource = ngAPChangelogDatasource;
	        utility_ts_datasource_1.ORMMediator.registerQuery(this, ngAPChangelogDatasource);
	    }
	    APChangelogQuery.prototype.run = function () {
	        var changelog = this.ngAPChangelogDatasource.read();
	        var changelogWithDisplayText = _4.map(changelog, function (changeLogItem) { return (tslib_1.__assign(tslib_1.__assign({}, ap_changelog_servant_1.APChangelogServant.getChangelogDisplayText(changeLogItem)), { latestComment: _4.last(_4.sortBy(changeLogItem.comments, function (comment) { return moment(comment['updated_ts']); })) })); });
	        var orderedChangelog = _4.orderBy(changelogWithDisplayText, 'committed_ts', 'desc');
	        this.__result = {
	            changelog: orderedChangelog
	        };
	        return this;
	    };
	    Object.defineProperty(APChangelogQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APChangelogQuery;
	}());
	exports.APChangelogQuery = APChangelogQuery;
	angular.module('capability-ng-academic-planner').service('ngAPChangelogQuery', APChangelogQuery);


/***/ }),
/* 1188 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var utility_ts_datasource_1 = __webpack_require__(9);
	var comment_builder_1 = __webpack_require__(464);
	angular.module('capability-ng-academic-planner').factory('ngCommentsDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: comment_builder_1.CommentBuilder
	    }).includeMetasource(function (datasource) {
	        return new utility_ts_datasource_1.Metasource(datasource)
	            .includeAttribute('_created_ts', function (comment) { return moment(comment.created_ts); })
	            .includeAttribute('_updated_ts', function (comment) { return moment(comment.updated_ts); });
	    });
	});


/***/ }),
/* 1189 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var ap_advisor_changelog_routes_1 = __webpack_require__(500);
	var ap_advisor_course_detail_routes_1 = __webpack_require__(127);
	var ap_advisor_plan_routes_1 = __webpack_require__(501);
	var ap_advisor_preview_plan_routes_1 = __webpack_require__(502);
	var ap_alternate_plan_routes_1 = __webpack_require__(128);
	var ap_changelog_routes_1 = __webpack_require__(509);
	var ap_course_details_routes_1 = __webpack_require__(37);
	var ap_default_root_routes_1 = __webpack_require__(510);
	var ap_plan_feedback_routes_1 = __webpack_require__(511);
	var ap_plan_routes_1 = __webpack_require__(42);
	var ap_preview_plan_routes_1 = __webpack_require__(512);
	var planDefaultRoute = '/my/planner/plan/default/';
	var ApStateProvider = /** @class */ (function () {
	    function ApStateProvider($stateProvider, $urlRouterProvider) {
	        this.$stateProvider = $stateProvider;
	        this.$urlRouterProvider = $urlRouterProvider;
	        this.$get = function () { return ({}); };
	    }
	    ApStateProvider.prototype.setDefaultUrlStates = function () {
	        this.$urlRouterProvider.when('/my/planner/', '/my/planner/map/');
	        this.$urlRouterProvider.when('/my/planner/map', planDefaultRoute);
	        this.$urlRouterProvider.when('/my/planner/plan/map', planDefaultRoute);
	        this.$urlRouterProvider.when('/my/planner/plan/favorite', planDefaultRoute);
	        this.$urlRouterProvider.when('/my/planner/plan/search', planDefaultRoute);
	        this.$urlRouterProvider.when('/advisor/student/plan', '/advisor/student/plan/default');
	    };
	    ApStateProvider.prototype.getStates = function () {
	        return tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, ap_default_root_routes_1.ApDefaultRootRoutes), ap_plan_routes_1.ApPlanRoutes), ap_plan_routes_1.APMultiPlanRoutes), ap_advisor_plan_routes_1.ApPlanAdvisorRoutes), ap_preview_plan_routes_1.ApPreviewPlanRoutes), ap_plan_feedback_routes_1.ApPlanFeedbackRoutes), ap_advisor_course_detail_routes_1.ApAdvisorCourseDetailRoutes), ap_advisor_preview_plan_routes_1.AdvisorPreviewPlanRoutes), ap_course_details_routes_1.ApModelRoutes), ap_course_details_routes_1.MultiApModelRoutes), ap_changelog_routes_1.ApChangelogRoutes), ap_alternate_plan_routes_1.AlternatePlanRoutes), ap_advisor_changelog_routes_1.ApAdvisorChangelogRoutes);
	    };
	    ApStateProvider.prototype.state = function () {
	        var _this = this;
	        this.setDefaultUrlStates();
	        var existingStates = this.getStates();
	        _4.forOwn(existingStates, function (value, key) { return _this.$stateProvider.state(key, value); });
	    };
	    return ApStateProvider;
	}());
	angular
	    .module('capability-ng-academic-planner')
	    .provider('academicPlannerStateConfiguration', ApStateProvider)
	    .run(function ($rootScope, $state, $injector) {
	    var stateChangeNotificationName = 'STATE-TRANSITION-NOTIFICATION';
	    $rootScope.$on('$stateChangeError', function (event, toState, toParams, fromState, fromParams, rejection) {
	        $injector.get('ngAPNotificationDelegate').dismissAlertByName(stateChangeNotificationName);
	        if (_4.isFunction(toState.onErrorState)) {
	            var errorStateToGo = toState.onErrorState(event, toState, toParams, fromState, fromParams, rejection);
	            $state.go(errorStateToGo);
	        }
	    });
	    $rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams) {
	        $injector.get('ngAPNotificationDelegate').info({
	            content: "<span l-no-wrap l-kind=\"hort\" l-align=\"center\" l-width-fixed><hi-indicator theme=\"white\" size='small' class=\"mrm display-block\" l-size=\"grow\"></hi-indicator>Loading " + _4.get(toState.data, 'pageTitle', '...') + "</span>",
	            name: stateChangeNotificationName
	        });
	    });
	    $rootScope.$on('$stateChangeSuccess', function (event, toState, toParams, fromState, fromParams) {
	        $injector.get('ngAPNotificationDelegate').dismissAlertByName(stateChangeNotificationName);
	    });
	});


/***/ }),
/* 1190 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APDataConfiguration = /** @class */ (function () {
	    function APDataConfiguration() {
	        this.APCONFIGDEFAULTS = {
	            featureToggles: {},
	            services: {
	                appConfigModel: {
	                    isFeatureEnabled: APDataConfiguration.NOOP('appConfigModel.isFeatureEnabled')
	                },
	                appNotificationDelegate: {
	                    error: APDataConfiguration.NOOP('appNotificationDelegate.error')
	                }
	            }
	        };
	        this.configuration = _4.merge({}, this.APCONFIGDEFAULTS);
	    }
	    APDataConfiguration.NOOP = function (expectedFn) {
	        return function academicPlanner_NOOP() {
	            console.error('academic-planner injection does not exist: ' + expectedFn);
	        };
	    };
	    APDataConfiguration.prototype.configure = function (config) {
	        if (!!config) {
	            this.configuration = _4.merge({}, this.APCONFIGDEFAULTS, this.configuration, config);
	        }
	        return this.configuration;
	    };
	    APDataConfiguration.prototype.activate = function (config) {
	        return this.configure(config);
	    };
	    APDataConfiguration.prototype.read = function () {
	        return this.configuration;
	    };
	    APDataConfiguration.prototype.injectService = function ($injector, serviceName) {
	        return $injector.has(serviceName) ? $injector.get(serviceName) : undefined;
	    };
	    APDataConfiguration.prototype.$get = function ($q, $injector) {
	        this.configure({
	            featureToggles: {},
	            services: {
	                appNotificationDelegate: this.injectService($injector, 'appNotificationDelegate'),
	                appConfigModel: this.injectService($injector, 'appConfigModel')
	            }
	        });
	        return {
	            configure: this.configure,
	            activate: this.activate,
	            read: this.read
	        };
	    };
	    return APDataConfiguration;
	}());
	exports.APDataConfiguration = APDataConfiguration;
	angular.module('capability-ng-academic-planner').provider('ngAPDataConfiguration', APDataConfiguration);


/***/ }),
/* 1191 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(1156);
	__webpack_require__(1157);
	__webpack_require__(1158);
	__webpack_require__(1159);
	__webpack_require__(1160);
	__webpack_require__(1161);
	__webpack_require__(460);
	__webpack_require__(1162);
	__webpack_require__(1163);
	__webpack_require__(1164);
	__webpack_require__(1165);
	__webpack_require__(1166);
	__webpack_require__(119);
	__webpack_require__(461);
	__webpack_require__(1167);
	__webpack_require__(1168);
	__webpack_require__(1169);
	__webpack_require__(1170);
	__webpack_require__(1171);
	__webpack_require__(1172);
	__webpack_require__(1173);
	__webpack_require__(1174);
	__webpack_require__(1175);
	__webpack_require__(1176);
	__webpack_require__(1177);
	__webpack_require__(1178);
	__webpack_require__(1179);
	__webpack_require__(1180);
	__webpack_require__(1181);
	__webpack_require__(1182);
	__webpack_require__(1183);
	__webpack_require__(462);
	__webpack_require__(1184);
	__webpack_require__(1185);
	__webpack_require__(1186);
	__webpack_require__(1187);
	__webpack_require__(120);
	__webpack_require__(463);
	__webpack_require__(464);
	__webpack_require__(1188);
	__webpack_require__(68);
	__webpack_require__(1189);
	__webpack_require__(1190);
	__webpack_require__(465);
	__webpack_require__(1192);
	__webpack_require__(1193);
	__webpack_require__(1194);
	__webpack_require__(466);
	__webpack_require__(69);
	__webpack_require__(467);
	__webpack_require__(35);
	__webpack_require__(468);
	__webpack_require__(469);
	__webpack_require__(470);
	__webpack_require__(471);
	__webpack_require__(472);
	__webpack_require__(473);
	__webpack_require__(474);
	__webpack_require__(475);
	__webpack_require__(476);
	__webpack_require__(477);
	__webpack_require__(478);
	__webpack_require__(479);
	__webpack_require__(480);
	__webpack_require__(481);
	__webpack_require__(1195);
	__webpack_require__(1196);
	__webpack_require__(482);
	__webpack_require__(1197);
	__webpack_require__(1198);
	__webpack_require__(1199);
	__webpack_require__(1200);
	__webpack_require__(1201);
	__webpack_require__(1202);
	__webpack_require__(1203);
	__webpack_require__(1204);
	__webpack_require__(1205);
	__webpack_require__(1206);
	__webpack_require__(1207);
	__webpack_require__(1208);
	__webpack_require__(483);
	__webpack_require__(1209);
	__webpack_require__(1210);
	__webpack_require__(1211);
	__webpack_require__(1212);
	__webpack_require__(1213);
	__webpack_require__(1214);
	__webpack_require__(1215);
	__webpack_require__(1216);
	__webpack_require__(1217);
	__webpack_require__(1218);
	__webpack_require__(1219);
	__webpack_require__(484);
	__webpack_require__(485);
	__webpack_require__(1220);
	__webpack_require__(1221);
	__webpack_require__(1222);
	__webpack_require__(1223);
	__webpack_require__(1224);
	__webpack_require__(486);
	__webpack_require__(1225);
	__webpack_require__(1226);
	__webpack_require__(1227);
	__webpack_require__(1228);
	__webpack_require__(1229);
	__webpack_require__(1230);
	__webpack_require__(1231);
	__webpack_require__(1232);
	__webpack_require__(1233);
	__webpack_require__(1234);
	__webpack_require__(1235);
	__webpack_require__(1236);
	__webpack_require__(1237);
	__webpack_require__(1238);
	__webpack_require__(1239);
	__webpack_require__(1240);
	__webpack_require__(1241);
	__webpack_require__(1242);
	__webpack_require__(487);
	__webpack_require__(1243);
	__webpack_require__(1244);
	__webpack_require__(1245);
	__webpack_require__(1246);
	__webpack_require__(1247);
	__webpack_require__(1248);
	__webpack_require__(1249);
	__webpack_require__(1250);
	__webpack_require__(1251);
	__webpack_require__(1252);
	__webpack_require__(1253);
	__webpack_require__(1254);
	__webpack_require__(1255);
	__webpack_require__(1256);
	__webpack_require__(1257);
	__webpack_require__(1258);
	__webpack_require__(1259);
	__webpack_require__(1260);
	__webpack_require__(1261);
	__webpack_require__(1262);
	__webpack_require__(1263);
	__webpack_require__(1264);
	__webpack_require__(1265);
	__webpack_require__(1266);
	__webpack_require__(1267);
	__webpack_require__(1268);
	__webpack_require__(1269);
	__webpack_require__(11);
	__webpack_require__(1270);
	__webpack_require__(1271);
	__webpack_require__(1272);
	__webpack_require__(1273);
	__webpack_require__(1274);
	__webpack_require__(1275);
	__webpack_require__(1276);
	__webpack_require__(1277);
	__webpack_require__(1278);
	__webpack_require__(1279);
	__webpack_require__(1280);
	__webpack_require__(1281);
	__webpack_require__(1282);
	__webpack_require__(1283);
	__webpack_require__(1284);
	__webpack_require__(1285);
	__webpack_require__(1286);
	__webpack_require__(1287);
	__webpack_require__(1288);
	__webpack_require__(1289);
	__webpack_require__(1290);
	__webpack_require__(1291);
	__webpack_require__(1292);
	__webpack_require__(1293);
	__webpack_require__(1294);
	__webpack_require__(1295);
	__webpack_require__(1296);
	__webpack_require__(1297);
	__webpack_require__(25);
	__webpack_require__(18);
	__webpack_require__(41);
	__webpack_require__(15);
	__webpack_require__(488);
	__webpack_require__(20);
	__webpack_require__(489);
	__webpack_require__(1298);
	__webpack_require__(1299);
	__webpack_require__(490);
	__webpack_require__(121);
	__webpack_require__(122);
	__webpack_require__(123);
	__webpack_require__(28);
	__webpack_require__(1300);
	__webpack_require__(124);
	__webpack_require__(1301);
	__webpack_require__(1302);
	__webpack_require__(1303);
	__webpack_require__(1304);
	__webpack_require__(1305);
	__webpack_require__(1306);
	__webpack_require__(1308);
	__webpack_require__(1309);
	__webpack_require__(1310);
	__webpack_require__(1311);
	__webpack_require__(1312);
	__webpack_require__(1313);
	__webpack_require__(1314);
	__webpack_require__(1315);
	__webpack_require__(1316);
	__webpack_require__(1317);
	__webpack_require__(1318);
	__webpack_require__(1319);
	__webpack_require__(1320);
	__webpack_require__(1321);
	__webpack_require__(1322);
	__webpack_require__(1323);
	__webpack_require__(1324);
	__webpack_require__(1325);
	__webpack_require__(1326);
	__webpack_require__(1327);
	__webpack_require__(1328);
	__webpack_require__(1329);
	__webpack_require__(1330);
	__webpack_require__(1331);
	__webpack_require__(1332);
	__webpack_require__(1333);
	__webpack_require__(1334);
	__webpack_require__(1335);
	__webpack_require__(1336);
	__webpack_require__(1337);
	__webpack_require__(1338);
	__webpack_require__(1339);
	__webpack_require__(1340);
	__webpack_require__(1341);
	__webpack_require__(1342);
	__webpack_require__(1343);
	__webpack_require__(1344);
	__webpack_require__(1345);
	__webpack_require__(1346);
	__webpack_require__(1347);
	__webpack_require__(1348);
	__webpack_require__(1349);
	__webpack_require__(1350);
	__webpack_require__(1351);
	__webpack_require__(1352);
	__webpack_require__(1353);
	__webpack_require__(1354);
	__webpack_require__(1355);
	__webpack_require__(1356);
	__webpack_require__(1357);
	__webpack_require__(36);
	__webpack_require__(1358);
	__webpack_require__(1359);
	__webpack_require__(1360);
	__webpack_require__(1361);
	__webpack_require__(1362);
	__webpack_require__(1363);
	__webpack_require__(1364);
	__webpack_require__(1365);
	__webpack_require__(1366);
	__webpack_require__(1367);
	__webpack_require__(1368);
	__webpack_require__(1369);
	__webpack_require__(70);
	__webpack_require__(1370);
	__webpack_require__(1371);
	__webpack_require__(1372);
	__webpack_require__(1373);
	__webpack_require__(491);
	__webpack_require__(1374);
	__webpack_require__(1375);
	__webpack_require__(1376);
	__webpack_require__(1377);
	__webpack_require__(1378);
	__webpack_require__(1379);
	__webpack_require__(23);
	__webpack_require__(1380);
	__webpack_require__(1381);
	__webpack_require__(1382);
	__webpack_require__(1383);
	__webpack_require__(1384);
	__webpack_require__(1385);
	__webpack_require__(1386);
	__webpack_require__(1387);
	__webpack_require__(1388);
	__webpack_require__(1389);
	__webpack_require__(1390);
	__webpack_require__(1391);
	__webpack_require__(1392);
	__webpack_require__(1393);
	__webpack_require__(1394);
	__webpack_require__(1395);
	__webpack_require__(1396);
	__webpack_require__(492);
	__webpack_require__(493);
	__webpack_require__(494);
	__webpack_require__(1397);
	__webpack_require__(1398);
	__webpack_require__(1399);
	__webpack_require__(1400);
	__webpack_require__(1401);
	__webpack_require__(1402);
	__webpack_require__(1403);
	__webpack_require__(1404);
	__webpack_require__(1405);
	__webpack_require__(1406);
	__webpack_require__(125);
	__webpack_require__(495);
	__webpack_require__(496);
	__webpack_require__(497);
	__webpack_require__(498);
	__webpack_require__(126);
	__webpack_require__(1407);
	__webpack_require__(1408);
	__webpack_require__(1409);
	__webpack_require__(1410);
	__webpack_require__(1411);
	__webpack_require__(1412);
	__webpack_require__(1413);
	__webpack_require__(1414);
	__webpack_require__(1415);
	__webpack_require__(1416);
	__webpack_require__(1417);
	__webpack_require__(1418);
	__webpack_require__(1419);
	__webpack_require__(1420);
	__webpack_require__(1421);
	__webpack_require__(1422);
	__webpack_require__(1423);
	__webpack_require__(1424);
	__webpack_require__(53);
	__webpack_require__(1425);
	__webpack_require__(1426);
	__webpack_require__(1427);
	__webpack_require__(1428);
	__webpack_require__(1429);
	__webpack_require__(1430);
	__webpack_require__(1431);
	__webpack_require__(499);
	__webpack_require__(500);
	__webpack_require__(127);
	__webpack_require__(501);
	__webpack_require__(502);
	__webpack_require__(503);
	__webpack_require__(504);
	__webpack_require__(505);
	__webpack_require__(506);
	__webpack_require__(507);
	__webpack_require__(508);
	__webpack_require__(128);
	__webpack_require__(509);
	__webpack_require__(37);
	__webpack_require__(510);
	__webpack_require__(511);
	__webpack_require__(42);
	__webpack_require__(512);
	__webpack_require__(71);
	__webpack_require__(129);
	__webpack_require__(1432);
	__webpack_require__(1434);
	__webpack_require__(1435);
	__webpack_require__(1436);
	__webpack_require__(1433);
	__webpack_require__(513);
	__webpack_require__(1437);
	__webpack_require__(1438);
	__webpack_require__(1439);
	__webpack_require__(1440);
	__webpack_require__(1441);
	__webpack_require__(1442);
	__webpack_require__(514);
	__webpack_require__(515);
	__webpack_require__(130);
	__webpack_require__(516);
	__webpack_require__(1443);
	__webpack_require__(1444);
	__webpack_require__(517);
	__webpack_require__(518);
	__webpack_require__(1445);
	__webpack_require__(72);
	__webpack_require__(1446);
	__webpack_require__(1447);
	__webpack_require__(1448);
	__webpack_require__(1449);
	__webpack_require__(1450);
	__webpack_require__(1451);
	__webpack_require__(1452);
	__webpack_require__(1453);
	__webpack_require__(1454);
	__webpack_require__(1455);
	__webpack_require__(1456);
	__webpack_require__(1457);
	__webpack_require__(1458);
	__webpack_require__(1459);
	__webpack_require__(1460);
	__webpack_require__(1461);
	__webpack_require__(1462);
	__webpack_require__(519);
	__webpack_require__(520);
	__webpack_require__(131);
	__webpack_require__(521);
	__webpack_require__(522);
	__webpack_require__(523);
	__webpack_require__(1463);
	__webpack_require__(1464);
	__webpack_require__(1465);
	__webpack_require__(1466);
	__webpack_require__(1467);
	__webpack_require__(1468);
	__webpack_require__(1469);
	__webpack_require__(1470);
	__webpack_require__(1471);
	__webpack_require__(1472);
	__webpack_require__(1473);
	__webpack_require__(1474);
	__webpack_require__(1475);
	__webpack_require__(1476);
	__webpack_require__(1477);
	__webpack_require__(1478);
	__webpack_require__(1479);
	__webpack_require__(1480);
	__webpack_require__(1481);
	__webpack_require__(1482);
	__webpack_require__(1483);
	__webpack_require__(1484);
	__webpack_require__(1485);
	__webpack_require__(1486);
	__webpack_require__(1487);
	__webpack_require__(524);
	__webpack_require__(1488);
	__webpack_require__(1489);
	__webpack_require__(1490);
	__webpack_require__(1491);
	__webpack_require__(1492);
	__webpack_require__(1493);
	__webpack_require__(1494);
	__webpack_require__(1495);
	__webpack_require__(1496);
	__webpack_require__(1497);
	__webpack_require__(1498);
	__webpack_require__(1499);
	__webpack_require__(1500);
	__webpack_require__(1501);
	__webpack_require__(13);
	__webpack_require__(525);
	__webpack_require__(54);
	__webpack_require__(526);
	__webpack_require__(43);
	__webpack_require__(1502);
	__webpack_require__(1503);


/***/ }),
/* 1192 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('loadCustomTextCommand', function (defineCommandORM, ngAPCustomTextDatasource, ngAPNotificationDelegate, log, $http) {
	    return defineCommandORM('loadCustomTextCommand', function (deferred) {
	        return $http
	            .get("config/customtext/")
	            .then(function (response) {
	            ngAPCustomTextDatasource.clear().write(response.data);
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            var errorMessage = 'Failed to get custom texts for academic plan';
	            ngAPNotificationDelegate.error(errorMessage);
	            log.error(errorMessage);
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1193 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var custom_text_builder_1 = __webpack_require__(465);
	angular.module('capability-ng-academic-planner').factory('ngAPCustomTextDatasource', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: custom_text_builder_1.APCustomText,
	        updateMode: 'merge',
	        autoId: false
	    });
	});


/***/ }),
/* 1194 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var APCustomTextQuery = /** @class */ (function () {
	    function APCustomTextQuery(ngAPCustomTextDatasource) {
	        this.ngAPCustomTextDatasource = ngAPCustomTextDatasource;
	        utility_ts_orm_1.ORMMediator.registerQuery(this, ngAPCustomTextDatasource);
	    }
	    APCustomTextQuery.prototype.run = function () {
	        this.__result = _4.keyBy(this.ngAPCustomTextDatasource.values(), 'nk');
	        return this;
	    };
	    Object.defineProperty(APCustomTextQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APCustomTextQuery;
	}());
	exports.APCustomTextQuery = APCustomTextQuery;
	angular.module('capability-ng-academic-planner').service('ngAPCustomTextQuery', APCustomTextQuery);


/***/ }),
/* 1195 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var lodash4_1 = __webpack_require__(1);
	var PlannedCourse = /** @class */ (function () {
	    function PlannedCourse(block) {
	        lodash4_1.merge(this, block);
	    }
	    PlannedCourse.build = function (block) {
	        return new PlannedCourse(block);
	    };
	    return PlannedCourse;
	}());
	exports.PlannedCourse = PlannedCourse;


/***/ }),
/* 1196 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var lodash4_1 = __webpack_require__(1);
	var PlannedCourseGroup = /** @class */ (function () {
	    function PlannedCourseGroup(block) {
	        lodash4_1.merge(this, block);
	    }
	    PlannedCourseGroup.build = function (block) {
	        return new PlannedCourseGroup(block);
	    };
	    return PlannedCourseGroup;
	}());
	exports.PlannedCourseGroup = PlannedCourseGroup;


/***/ }),
/* 1197 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('initializeUserActivityTrackingCommand', function (accountModel, appConfigModel, defineCommand) {
	    return defineCommand('initializeUserActivityTrackingCommand', function initializeUserActivityTrackingCommand(deferred) {
	        try {
	            var createUserTracking = function () {
	                // add an `id` to the visitor if the visitor is not FAKE, SuperUser, or Guest
	                var visitorID = accountModel.gainsight_id || accountModel.tracking_id;
	                var isFakeStudent = visitorID.indexOf('FAKE') >= 0;
	                var isSuperUser = accountModel.isSuperuser;
	                // TODO is not `is_guest`
	                if (!isFakeStudent || !isSuperUser) {
	                    visitorID = accountModel.gainsight_id;
	                }
	                return {
	                    id: visitorID,
	                    firstName: accountModel.firstName,
	                    lastName: accountModel.lastName,
	                    email: accountModel.email,
	                    super_user: accountModel.isSuperuser,
	                    user_types: 'advisor',
	                    sgd_user_types: 'Staff',
	                    language: 'en_US',
	                    Device: 'Desktop'
	                };
	            };
	            var getEnvironment_1 = function () {
	                var inURL = function (url, s) { return url.indexOf(s) >= 0; };
	                var searchParams = new URLSearchParams(window.location.search);
	                var env = searchParams.get('env');
	                if (!env) {
	                    return 'Prod';
	                }
	                return inURL(env, 'impl')
	                    ? 'Impl'
	                    : inURL(env, 'dev') || env.match(/\d+\.\d+\.\d+\.\d+/) !== null
	                        ? 'Dev'
	                        : inURL(env, 'sandbox') || inURL(env, 'demo') || inURL(env, 'realtime')
	                            ? 'Other'
	                            : 'Prod';
	            };
	            var createAccountTracking = function () {
	                return {
	                    id: accountModel.account_name,
	                    sgd_product: 'Smart Guidance',
	                    stc_product: 'Strategic Care',
	                    name: appConfigModel.getConfigProperty('core-inst_name'),
	                    has_ap: appConfigModel.isFeatureEnabled('ap3-academic_planner_v3'),
	                    has_registration: appConfigModel.isFeatureEnabled('reg-scheduler'),
	                    Environment: getEnvironment_1(),
	                    account_type: accountModel.account_type
	                };
	            };
	            var initializeGainSightPX = function (user, account) {
	                if ('aptrinsic' in window && _4.isFunction(window['aptrinsic'])) {
	                    window['aptrinsic']('identify', user, account);
	                    window['aptrinsic']('set', 'globalContext', { Device: user['Device'] });
	                }
	            };
	            initializeGainSightPX(createUserTracking(), createAccountTracking());
	        }
	        finally {
	            deferred.resolve();
	        }
	    });
	});


/***/ }),
/* 1198 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var user_mode_api_strategy_1 = __webpack_require__(28);
	angular
	    .module('capability-ng-academic-planner')
	    .service('loadAcademicPlanCommand', function (defineCommand, $http, $state, updatePlanDataHelper, ngAPVerifyAcademicPlanData, log) {
	    return defineCommand('loadAcademicPlanCommand', function (deferred, ap_plan_url) {
	        ap_plan_url =
	            ap_plan_url ||
	                _4.get(user_mode_api_strategy_1.APUserModeAPIStrategy[user_mode_api_strategy_1.RoleTypeStrategy.evaluate($state)], 'AP_PLAN_API_URL', 'reg/academicplan');
	        $http
	            .get("" + ap_plan_url)
	            .then(function (response) {
	            return updatePlanDataHelper(response);
	        })
	            .then(function () { return deferred.resolve(); })
	            .catch(function (e) {
	            log.issue('failed to load academic plan');
	            deferred.reject(e);
	        })
	            .finally(function () { return ngAPVerifyAcademicPlanData.verify(); });
	    });
	});


/***/ }),
/* 1199 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var user_mode_api_strategy_1 = __webpack_require__(28);
	angular
	    .module('capability-ng-academic-planner')
	    .service('loadAcademicPlanForAdvisor', function loadAcademicPlanForAdvisor(loadAcademicPlanCommand) {
	    var _this = this;
	    return function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
	        var er_1;
	        return tslib_1.__generator(this, function (_a) {
	            switch (_a.label) {
	                case 0:
	                    _a.trys.push([0, 2, , 5]);
	                    return [4 /*yield*/, loadAcademicPlanCommand()];
	                case 1:
	                    _a.sent();
	                    return [2 /*return*/, true];
	                case 2:
	                    er_1 = _a.sent();
	                    if (!(er_1.status === 400)) return [3 /*break*/, 4];
	                    return [4 /*yield*/, loadAcademicPlanCommand(user_mode_api_strategy_1.APUserModeAPIStrategy['student'].AP_PLAN_API_URL)];
	                case 3:
	                    _a.sent();
	                    return [2 /*return*/, true];
	                case 4: return [2 /*return*/, false];
	                case 5: return [2 /*return*/];
	            }
	        });
	    }); };
	});


/***/ }),
/* 1200 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .factory('loadGradeConfigsCommand', function (log, defineCommandORM, $http, ngAPGradeConfigsDatasource) {
	    return defineCommandORM('loadGradeConfigsCommand', function loadGradeConfigsCommand(deferred) {
	        $http
	            .get("cat/gradeconfigs/")
	            .then(function (response) {
	            var _grades = response.data.data;
	            ngAPGradeConfigsDatasource.clear().write(_grades);
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue('failed to load grade configurations.');
	            deferred.reject(e.data);
	        });
	    });
	});


/***/ }),
/* 1201 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .factory('loadAvailableTermsCommand', function (log, defineCommandORM, $http, ngAPAvailableTermsDatasource) {
	    return defineCommandORM('loadAvailableTermsCommand', function loadAvailableTermsCommand(deferred, studentNk) {
	        $http
	            .get("academicplan/students/" + studentNk + "/available_terms")
	            .then(function (response) {
	            var _availableTerms = response.data.data;
	            ngAPAvailableTermsDatasource.clear().write(_availableTerms);
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue('failed to load available terms.');
	            deferred.reject(e.data);
	        });
	    });
	});


/***/ }),
/* 1202 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('loadFavoriteCoursesCommand', function (log, defineCommandORM, ngAPCoursesDatasource, ngAPSectionTypeDatasource, $http) {
	    return defineCommandORM('loadFavoriteCoursesCommand', function loadFavoriteCoursesCommand(deferred) {
	        $http
	            .get('/reg/favoritecourse/')
	            .then(function (response) {
	            ngAPSectionTypeDatasource.write(response.data.section_type);
	            // NAV-6300 Favorite UI caching issue
	            // you login as a student with some favorite courses, goto favorite courses tab and logout.
	            // Login as another student and goto favorites tab again, you will see the old favorites listed for the previous student there.
	            // ngAPCoursesDatasource is being filled from several places, so we don't have flexibility to clear the whole data
	            // before writing new. So clearing favorited entries because this is the only place it gets insterted to datasource
	            ngAPCoursesDatasource.rewrite(function (db) {
	                return _4.keyBy(_4.filter(db, function (course) { return !course.is_favorite; }), 'id');
	            });
	            ngAPCoursesDatasource.write(response.data.course);
	            ngAPCoursesDatasource.cursor(response.data.course, function (course) {
	                course.is_favorite = true;
	                return course;
	            });
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue('failed to load favorite courses');
	            deferred.reject(e.data);
	        });
	    });
	});


/***/ }),
/* 1203 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .factory('loadGoalSetsCommand', function (log, defineCommandORM, ngAPGoalSetstDatasource, $http) {
	    return defineCommandORM('loadGoalSetsCommand', function loadGoalSetsCommand(deferred, studentId) {
	        $http
	            .get("/cat/students/" + studentId + "/studentgoalsets/")
	            .then(function (response) {
	            var _goalSetsData = response.data.data;
	            ngAPGoalSetstDatasource.clear().write(_goalSetsData);
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue('failed to load student goal sets');
	            deferred.reject(e.data);
	        });
	    });
	});


/***/ }),
/* 1204 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .factory('loadGoalsCommand', function (log, defineCommandORM, $http, ngAPGoalsDatasource) {
	    return defineCommandORM('loadGoalsCommand', function loadGoalsCommand(deferred, goalSetId) {
	        $http
	            .get("/cat/goalsets/" + goalSetId)
	            .then(function (response) {
	            var _goals = response.data.goals;
	            ngAPGoalsDatasource.clear().write(_goals);
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue('failed to load goals');
	            deferred.reject(e.data);
	        });
	    });
	});


/***/ }),
/* 1205 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-academic-planner')
	    .service('loadMmDegreeMapCommand', function (defineCommandORM, $http, ngAPMultiTemplateSlotDatasource, ngAPMultiDevReqTemplateSlotDatasource, ngAPProgramInfoDatasource, ngAPMmDataHelper, ngAPNotificationDelegate, ngComponentCommunicatorService, log) {
	    return defineCommandORM('loadMmDegreeMapCommand', function (deferred, studentId, goalSetId) {
	        if (studentId === void 0) { studentId = 0; }
	        if (goalSetId === void 0) { goalSetId = 0; }
	        ngComponentCommunicatorService.publish('DEGREE_MAP_LOADING');
	        $http
	            .get("/academicplan/students/" + studentId + "/studentgoalsets/" + goalSetId + "/degree_map")
	            .then(function (_a) {
	            var data = _a.data;
	            ngComponentCommunicatorService.publish('DEGREE_MAP_LOADING_SUCCESS');
	            ngAPProgramInfoDatasource.clear().write([data.data.program]);
	            ngAPMultiDevReqTemplateSlotDatasource.clear().write(data.data.devreq_courses);
	            var queryResultDataMock = ngAPMmDataHelper.constructGenericSlots(data.data.program_slots);
	            ngAPMultiTemplateSlotDatasource.clear().write(queryResultDataMock);
	            deferred.resolve();
	        })
	            .catch(function () {
	            ngAPMultiDevReqTemplateSlotDatasource.clear();
	            ngAPMultiTemplateSlotDatasource.clear();
	            utility_ts_orm_1.ORM.run();
	            ngComponentCommunicatorService.publish('DEGREE_MAP_LOADING_FAILURE');
	            ngAPNotificationDelegate.error("Unable to load degreemap");
	            log.issue('failed to load degreemap');
	            deferred.reject();
	        });
	    });
	});


/***/ }),
/* 1206 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('loadMmFavoriteCoursesCommand', function (log, defineCommandORM, ngAPMmFavoriteCoursesDatasource, $http) {
	    return defineCommandORM('loadMmFavoriteCoursesCommand', function loadMmFavoriteCoursesCommand(deferred) {
	        $http
	            .get('/reg/favoritecourse/')
	            .then(function (response) {
	            var _favoriteCourse = _4.map(response.data.course, function (course) {
	                return _4.pick(course, ['id', 'cd', 'nk', 'title']);
	            });
	            ngAPMmFavoriteCoursesDatasource.clear().write(_favoriteCourse);
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue('Failed to load favorite courses');
	            deferred.reject(e.data);
	        });
	    });
	});


/***/ }),
/* 1207 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('loadMmAcademicPlanCommand', function (defineCommandORM, $http, ngAPMmDataHelper, ngAPMultiTermDatasource, ngAPNotificationDelegate, ngComponentCommunicatorService, log) {
	    return defineCommandORM('loadMmAcademicPlanCommand', function (deferred, studentId) {
	        if (studentId === void 0) { studentId = 0; }
	        ngComponentCommunicatorService.publish('PLAN_LOADING');
	        $http
	            .get("/academicplan/students/" + studentId + "/course_plan")
	            .then(function (_a) {
	            var data = _a.data;
	            ngComponentCommunicatorService.publish('PLAN_LOADING_SUCCESS');
	            var termsData = ngAPMmDataHelper.constructStudentTermsData(data.data);
	            ngAPMultiTermDatasource.clear().write(termsData);
	            deferred.resolve();
	        })
	            .catch(function () {
	            ngComponentCommunicatorService.publish('PLAN_LOADING_FAILURE');
	            ngAPNotificationDelegate.error("Unable to load student plan");
	            log.issue('failed to load student plan');
	            deferred.reject();
	        });
	    });
	});


/***/ }),
/* 1208 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('setupUserCommand', function ($http, log, defineCommand) {
	    return defineCommand('setupUserCommand', function (deferred) {
	        return $http
	            .post('core/setupusers', {})
	            .then(function (_a) {
	            var data = _a.data;
	            return deferred.resolve(data);
	        })
	            .catch(function (e) {
	            log.issue('unable to setup the user');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1209 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var busy_indicator_srv_1 = __webpack_require__(483);
	var BusyIndicatorController = /** @class */ (function () {
	    function BusyIndicatorController(ngComponentCommunicatorService, ngBusyIndicatorService) {
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngBusyIndicatorService = ngBusyIndicatorService;
	        this.message = '';
	        this.show = false;
	        this.showBusyIndicatorBound = this.showBusyIndicator.bind(this);
	        this.hideBusyIndicatorBound = this.hideBusyIndicator.bind(this);
	    }
	    BusyIndicatorController.prototype.$onInit = function () {
	        this.ngComponentCommunicatorService.subscribe(busy_indicator_srv_1.SHOW_BUSY_INDICATOR_EVENT, this.showBusyIndicatorBound);
	        this.ngComponentCommunicatorService.subscribe(busy_indicator_srv_1.HIDE_BUSY_INDICATOR_EVENT, this.hideBusyIndicatorBound);
	    };
	    BusyIndicatorController.prototype.$onDestroy = function () {
	        this.ngComponentCommunicatorService.release(busy_indicator_srv_1.SHOW_BUSY_INDICATOR_EVENT, this.showBusyIndicatorBound);
	        this.ngComponentCommunicatorService.release(busy_indicator_srv_1.HIDE_BUSY_INDICATOR_EVENT, this.hideBusyIndicatorBound);
	    };
	    BusyIndicatorController.prototype.showBusyIndicator = function () {
	        this.message = this.ngBusyIndicatorService.message;
	        this.show = true;
	    };
	    BusyIndicatorController.prototype.hideBusyIndicator = function () {
	        this.message = this.ngBusyIndicatorService.message;
	        this.show = false;
	    };
	    return BusyIndicatorController;
	}());
	angular.module('capability-ng-academic-planner').component('busyIndicator', {
	    templateUrl: 'capability-ng-academic-planner/src/global/components/busy_indicator/components/busy_indicator.html',
	    controller: BusyIndicatorController
	});


/***/ }),
/* 1210 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('clearCourseInfoCommand', function clearCourseInfoCommandDefinition(defineCommandORM, ngAPCourseInfoModel) {
	    return defineCommandORM('clearCourseInfoCommand', function clearCourseInfoCommand(deferred) {
	        ngAPCourseInfoModel.clear();
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1211 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var ap_id_constants_1 = __webpack_require__(11);
	angular
	    .module('capability-ng-academic-planner')
	    .service('loadCourseInfoCommand', function loadCourseInfoCommandDefinition($http, defineCommandORM, ngAPCourseInfoModel, log) {
	    return defineCommandORM('loadCourseInfoCommand', function loadCourseInfoCommand(deferred, courseNK, termId, programSlotID) {
	        if (termId === void 0) { termId = ap_id_constants_1.INVALID_ID; }
	        $http
	            .get("/reg/course/nk/" + courseNK + "/")
	            .then(function (_a) {
	            var data = _a.data;
	            ngAPCourseInfoModel.clear();
	            if (!_4.isNil(programSlotID)) {
	                ngAPCourseInfoModel.write({ programSlot: programSlotID });
	            }
	            ngAPCourseInfoModel.write(tslib_1.__assign({ termId: termId }, data));
	            deferred.resolve(data);
	        })
	            .catch(function (e) {
	            log.issue('failed to retrieve info for course');
	            deferred.reject(e.data);
	        });
	    });
	});


/***/ }),
/* 1212 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var ap_id_constants_1 = __webpack_require__(11);
	angular
	    .module('capability-ng-academic-planner')
	    .service('loadMmCourseInfoCommand', function loadCourseInfoCommandDefinition($http, defineCommandORM, ngAPCourseInfoModel, log) {
	    return defineCommandORM('loadMmCourseInfoCommand', function loadMmCourseInfoCommand(deferred, courseNK, termId) {
	        if (termId === void 0) { termId = ap_id_constants_1.INVALID_ID; }
	        $http
	            .get("/reg/course/nk/" + courseNK + "/")
	            .then(function (_a) {
	            var data = _a.data;
	            ngAPCourseInfoModel.clear();
	            ngAPCourseInfoModel.write(tslib_1.__assign({ termId: termId }, data));
	            deferred.resolve(data);
	        })
	            .catch(function (e) {
	            log.issue('failed to retrieve info for course');
	            deferred.reject(e.data);
	        });
	    });
	});


/***/ }),
/* 1213 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .factory('saveFavoriteCourseCommand', function saveFavoriteCourseCommandDefinition(log, $http, ngAPCoursesDatasource, ngAPCourseInfoModel, defineCommandORM) {
	    return defineCommandORM('saveFavoriteCourseCommand', function saveFavoriteCourseCommand(deferred, course) {
	        $http
	            .post('favorite/favoriteitem/', {
	            content_type: 'cat.course',
	            object_id: course.id
	        })
	            .then(function (response) {
	            var _a;
	            course.is_favorite = true;
	            course.favorite_id = response.data.id;
	            ngAPCoursesDatasource.put(course);
	            ngAPCourseInfoModel.write({
	                course: (_a = {},
	                    _a[course.id] = course,
	                    _a)
	            });
	            deferred.resolve(course);
	        })
	            .catch(function (e) {
	            log.issue('failed to save course as favorite');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1214 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ap_id_constants_1 = __webpack_require__(11);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('unsaveFavoriteCourseCommand', function unsaveFavoriteCourseCommandDefinition(log, $http, ngAPCoursesDatasource, ngAPCourseInfoModel, defineCommandORM) {
	    return defineCommandORM('unsaveFavoriteCourseCommand', function unsaveFavoriteCourseCommand(deferred, course) {
	        $http
	            .delete("favorite/favoriteitem/" + course.favorite_id)
	            .then(function () {
	            var _a;
	            course.is_favorite = false;
	            course.favorite_id = ap_id_constants_1.INVALID_ID;
	            ngAPCoursesDatasource.put(course);
	            ngAPCourseInfoModel.write({
	                course: (_a = {},
	                    _a[course.id] = course,
	                    _a)
	            });
	            deferred.resolve(course);
	        })
	            .catch(function (e) {
	            log.issue('failed to remove course from favorites');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1215 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var CourseDetailController = /** @class */ (function () {
	    function CourseDetailController($state, $stateParams, ngAPCourseInfoQuery, loadCourseInfoCommand, ngAPUserModeConfig, ngAPNotificationDelegate, phxFocusDelegate, phxAxReturnFocusFactory) {
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	        this.ngAPCourseInfoQuery = ngAPCourseInfoQuery;
	        this.loadCourseInfoCommand = loadCourseInfoCommand;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.ngAPNotificationDelegate = ngAPNotificationDelegate;
	        this.phxFocusDelegate = phxFocusDelegate;
	        this.phxAxReturnFocusFactory = phxAxReturnFocusFactory;
	        this.hideActions = false;
	        this.isFromSmartCat = false;
	    }
	    CourseDetailController.prototype.$onInit = function () {
	        var _this = this;
	        this.__openDrawer = true;
	        this.disableFavoriteOptions = this.ngAPUserModeConfig.isAdvisor();
	        var stateParams = this.$stateParams.courseDetails;
	        this.isFromSmartCat = stateParams.isFromSmartCat || false;
	        if (stateParams.slotType && stateParams.slotType !== 'COURSE') {
	            this.hideActions = true;
	        }
	        this.loadCourseInfoCommand(stateParams.courseNk, stateParams.termId, stateParams.programSlotId).catch(function (e) {
	            _this.closeDetails();
	            _this.ngAPNotificationDelegate.error("Unable to load course details");
	        });
	    };
	    CourseDetailController.prototype.closeDetails = function () {
	        this.__openDrawer = false;
	        this.$state.go('^');
	        this.phxFocusDelegate.focus(this.phxAxReturnFocusFactory.getFocusId());
	    };
	    return CourseDetailController;
	}());
	exports.CourseDetailController = CourseDetailController;
	var APCourseDetails = /** @class */ (function () {
	    function APCourseDetails() {
	        this.controller = CourseDetailController;
	        this.templateUrl = 'capability-ng-academic-planner/src/global/components/course_detail/course_detail.html';
	        this.bindings = {
	            hideActions: '<'
	        };
	        this.transclude = true;
	    }
	    return APCourseDetails;
	}());
	angular.module('capability-ng-academic-planner').component('apCourseDetails', new APCourseDetails());


/***/ }),
/* 1216 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var CourseGroupCourseDetailOpenFacade = /** @class */ (function () {
	    function CourseGroupCourseDetailOpenFacade(routerHelper) {
	        this.routerHelper = routerHelper;
	    }
	    CourseGroupCourseDetailOpenFacade.prototype.isCoursePlanned = function (courseGroup) {
	        return !_4.isEmpty(courseGroup.plannedCourse);
	    };
	    CourseGroupCourseDetailOpenFacade.prototype.showCourseDetailsForCourseGroup = function (courseGroup) {
	        if (!courseGroup.plannedCourse) {
	            return;
	        }
	        var courseNk = courseGroup.plannedCourse._course.nk;
	        var programSlotId = courseGroup.programSlot.id;
	        var slotType = courseGroup.programSlot.slot_type;
	        var termId = courseGroup.termId;
	        var title = courseGroup.plannedCourse._course._title;
	        var courseDetails = {
	            courseNk: courseNk,
	            programSlotId: programSlotId,
	            slotType: slotType,
	            termId: termId,
	            title: title
	        };
	        return this.routerHelper.findStateAndGo('.course_details', { courseDetails: courseDetails });
	    };
	    return CourseGroupCourseDetailOpenFacade;
	}());
	exports.CourseGroupCourseDetailOpenFacade = CourseGroupCourseDetailOpenFacade;
	angular
	    .module('capability-ng-academic-planner')
	    .service('ngCourseGroupCourseDetailOpenFacade', CourseGroupCourseDetailOpenFacade);


/***/ }),
/* 1217 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_id_constants_1 = __webpack_require__(11);
	var MultiCourseDetailController = /** @class */ (function () {
	    function MultiCourseDetailController($state, ngAPCourseInfoQuery, $stateParams, loadMmCourseInfoCommand, phxFocusDelegate, phxAxReturnFocusFactory) {
	        this.$state = $state;
	        this.ngAPCourseInfoQuery = ngAPCourseInfoQuery;
	        this.$stateParams = $stateParams;
	        this.loadMmCourseInfoCommand = loadMmCourseInfoCommand;
	        this.phxFocusDelegate = phxFocusDelegate;
	        this.phxAxReturnFocusFactory = phxAxReturnFocusFactory;
	        this.termId = ap_id_constants_1.INVALID_ID;
	        this.showCourseDetailsMenu = false;
	        this.allowRemoveCourseOption = false;
	        this.isPast = false;
	    }
	    MultiCourseDetailController.prototype.$onInit = function () {
	        this.__openDrawer = true;
	        var stateParams = _4.get(this.$stateParams, 'courseDetailsParams', {
	            courseNk: "" + ap_id_constants_1.INVALID_ID,
	            courseId: ap_id_constants_1.INVALID_ID,
	            termId: ap_id_constants_1.INVALID_ID,
	            slotId: ap_id_constants_1.INVALID_ID,
	            isPast: false,
	            plannedCourseId: ap_id_constants_1.INVALID_ID,
	            showCourseDetailsMenu: false
	        });
	        this.loadMmCourseInfoCommand(stateParams.courseNk);
	        this.termId = stateParams.termId;
	        this.allowRemoveCourseOption = this.termId > 0 && stateParams.status === 'PLANNED';
	        this.isPast = _4.get(stateParams, 'isPast', false);
	        this.showCourseDetailsMenu = stateParams.showCourseDetailsMenu;
	    };
	    MultiCourseDetailController.prototype.closeDetails = function () {
	        this.__openDrawer = false;
	        this.$state.go('^');
	    };
	    return MultiCourseDetailController;
	}());
	exports.MultiCourseDetailController = MultiCourseDetailController;
	var MultiAPCourseDetails = /** @class */ (function () {
	    function MultiAPCourseDetails() {
	        this.controller = MultiCourseDetailController;
	        this.templateUrl = 'capability-ng-academic-planner/src/global/components/course_detail/mm_course_details.html';
	        this.bindings = {};
	        this.transclude = true;
	    }
	    return MultiAPCourseDetails;
	}());
	angular.module('capability-ng-academic-planner').component('multiApCourseDetails', new MultiAPCourseDetails());


/***/ }),
/* 1218 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var ap_id_constants_1 = __webpack_require__(11);
	angular.module('capability-ng-academic-planner').factory('ngAPCourseInfoModel', function () {
	    return new utility_ts_orm_1.Model({
	        termId: ap_id_constants_1.INVALID_ID,
	        course: {},
	        associated_course: undefined,
	        planned_course: {},
	        student_course: {},
	        programSlot: undefined,
	        coreq: {},
	        prereq: {}
	    });
	});


/***/ }),
/* 1219 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var ap_course_builder_1 = __webpack_require__(69);
	var ap_generic_slot_builder_1 = __webpack_require__(35);
	var ap_id_constants_1 = __webpack_require__(11);
	var ap_course_servant_1 = __webpack_require__(25);
	var course_req_servant_1 = __webpack_require__(484);
	var ap_min_grade_servant_1 = __webpack_require__(52);
	var ap_program_slot_servant_1 = __webpack_require__(15);
	var APCourseInfoQuery = /** @class */ (function () {
	    function APCourseInfoQuery(ngAPCourseInfoModel, $state, ngAPPlannedCoursesDatasource, ngAPDegreeMapQueryHelper, ngAPProgramSlotDatasource, appConfigModel, ngAPCoursesDatasource) {
	        this.ngAPCourseInfoModel = ngAPCourseInfoModel;
	        this.$state = $state;
	        this.ngAPPlannedCoursesDatasource = ngAPPlannedCoursesDatasource;
	        this.ngAPDegreeMapQueryHelper = ngAPDegreeMapQueryHelper;
	        this.ngAPProgramSlotDatasource = ngAPProgramSlotDatasource;
	        this.appConfigModel = appConfigModel;
	        this.ngAPCoursesDatasource = ngAPCoursesDatasource;
	        this.isFromSimpleSmartCatSearch = false;
	        utility_ts_orm_1.ORM.registerQuery(this, ngAPCourseInfoModel, ngAPProgramSlotDatasource, ngAPPlannedCoursesDatasource);
	    }
	    APCourseInfoQuery.prototype.isLockedByStatus = function (plannedCourse, programSlot) {
	        var isPgmSlotMet = ap_program_slot_servant_1.APProgramSlotServant.isProgramSlotMET(programSlot);
	        if (isPgmSlotMet) {
	            return true;
	        }
	        if (plannedCourse) {
	            return ap_course_servant_1.APCourseServant.isLockedByStatus(plannedCourse.status);
	        }
	        return false;
	    };
	    APCourseInfoQuery.prototype.getMarkAsMetMenuStatus = function (plannedCourse, programSlot) {
	        if (!programSlot) {
	            return [false, false];
	        }
	        return [
	            this.ngAPDegreeMapQueryHelper.showMarkAsMetMenu(programSlot, plannedCourse),
	            this.ngAPDegreeMapQueryHelper.showMarkAsUnmetMenu(programSlot, plannedCourse)
	        ];
	    };
	    APCourseInfoQuery.prototype.getMenuOptionVisibiltyStatus = function () {
	        var _this = this;
	        var courseDetailsInfo = _4.get(this.$state, 'params.courseDetails', {});
	        var showSmartCatAddToTermOption = true;
	        var showSmartCatRemoveFromTermOption = true;
	        var isFromSmartCatelog = _4.get(courseDetailsInfo, 'isFromSmartCat', false);
	        if (isFromSmartCatelog) {
	            if (this.$state.params.termId > 0) {
	                showSmartCatAddToTermOption = false;
	            }
	            else {
	                showSmartCatRemoveFromTermOption = false;
	                var plannedCourseIds_1 = _4.map(this.ngAPPlannedCoursesDatasource.values(), function (plannedCourse) { return plannedCourse.course; });
	                var plannedCoursesData = _4.filter(this.ngAPCoursesDatasource.values(), function (course) {
	                    return _4.includes(plannedCourseIds_1, course.id);
	                });
	                if (!_4.isEmpty(plannedCoursesData)) {
	                    var isCourseAlreadyPlanned = !_4.isEmpty(_4.find(plannedCoursesData, function (plannedCourse) { return plannedCourse.nk === _this.$state.params.courseDetails.courseNk; }));
	                    if (isCourseAlreadyPlanned) {
	                        showSmartCatAddToTermOption = false;
	                    }
	                }
	            }
	            return { showSmartCatAddToTermOption: showSmartCatAddToTermOption, showSmartCatRemoveFromTermOption: showSmartCatRemoveFromTermOption };
	        }
	        return { showSmartCatAddToTermOption: showSmartCatAddToTermOption, showSmartCatRemoveFromTermOption: showSmartCatRemoveFromTermOption };
	    };
	    APCourseInfoQuery.prototype.showAddToCourseMenu = function (programSlot, isCoursePlanned, plannedCourse) {
	        var isCourseCompleted = _4.includes(['COMPLETED'], _4.get(plannedCourse, 'status', ''));
	        var isMinGradeFeatureEnabled = this.appConfigModel.isFeatureEnabled('academicplan-program_slot_min_grade');
	        var isMinGradeMet = ap_min_grade_servant_1.APMinGradeServant.isMinGradeMet(programSlot, plannedCourse, isMinGradeFeatureEnabled);
	        if (isCourseCompleted && !isMinGradeMet) {
	            return true;
	        }
	        return !isCoursePlanned || !ap_course_servant_1.APCourseServant.isLockedByStatus(plannedCourse.status);
	    };
	    /* tslint:disable:cognitive-complexity */
	    APCourseInfoQuery.prototype.run = function () {
	        var courseInfo = this.ngAPCourseInfoModel.read();
	        var coReqHtml = course_req_servant_1.ReqServant.getReqHtml(courseInfo.coreq, courseInfo.associated_course);
	        var filterTestScores = this.appConfigModel.isFeatureEnabled('cat-hide_test_node_in_prereq');
	        var preReqsForHTML = filterTestScores
	            ? _4.filter(courseInfo.prereq, function (req) { return !course_req_servant_1.ReqServant.isTestTypeRequisite(req); })
	            : courseInfo.prereq;
	        var preReqHtml = course_req_servant_1.ReqServant.getReqHtml(preReqsForHTML, courseInfo.associated_course);
	        var coReqs = _4.toArray(courseInfo.coreq);
	        var preReqs = _4.toArray(courseInfo.prereq);
	        var hasTests = _4.some(preReqs, function (req) { return req.type === 'TEST'; });
	        var course = ap_course_builder_1.APCourse.build(_4.first(_4.toArray(courseInfo.course)));
	        var hasPreReqIssues = _4.some(preReqs, function (req) { return req.is_grade_satisfied !== null && !req.is_grade_satisfied; });
	        var multiSectionLabel = "";
	        var hasMultiSections = false;
	        var determinedPlannedCourse = {};
	        var firstPlannedCourse = _4.head(_4.toArray(courseInfo.planned_course)) || {};
	        this.isFromSimpleSmartCatSearch = _4.get(this.$state, 'params.courseDetails.allowAddToTerm', false);
	        if (courseInfo.termId !== ap_id_constants_1.INVALID_ID) {
	            determinedPlannedCourse = this.ngAPDegreeMapQueryHelper.getPlannedCourseByCourseIdAndTermId(course.id, courseInfo.termId);
	        }
	        // Fallback logic
	        if (!this.isFromSimpleSmartCatSearch && _4.isEmpty(determinedPlannedCourse)) {
	            var existingPlannedCourse = _4.isEmpty(firstPlannedCourse)
	                ? this.ngAPDegreeMapQueryHelper.getRelatedPlannedCourse(course.id)
	                : this.ngAPDegreeMapQueryHelper.getPlannedCoursebyId(firstPlannedCourse.id);
	            if (!_4.isEmpty(existingPlannedCourse)) {
	                determinedPlannedCourse = existingPlannedCourse;
	            }
	        }
	        var programSlot;
	        if (!_4.isEmpty(determinedPlannedCourse)) {
	            hasMultiSections = _4.get(determinedPlannedCourse, '_hasMultiSections');
	            multiSectionLabel = _4.get(determinedPlannedCourse, '_multiSectionLabels', '');
	            programSlot = _4.find(this.ngAPProgramSlotDatasource.metasource().derived(), {
	                id: _4.get(determinedPlannedCourse, 'program_slot', ap_id_constants_1.INVALID_ID)
	            });
	        }
	        else {
	            programSlot = _4.find(this.ngAPProgramSlotDatasource.metasource().derived(), {
	                id: _4.get(courseInfo, 'programSlot', ap_id_constants_1.INVALID_ID)
	            });
	        }
	        var _a = this.getMarkAsMetMenuStatus(determinedPlannedCourse, programSlot), showMarkAsMetMenu = _a[0], showMarkAsUnmetMenu = _a[1];
	        var isLockedByStatus = this.isLockedByStatus(determinedPlannedCourse, programSlot);
	        var _b = this.ngAPDegreeMapQueryHelper._getPlannedFlaggingInfo(determinedPlannedCourse), isCourseFlagged = _b.isCourseFlagged, flagComment = _b.flagComment;
	        var isPlannedSomewhere = _4.isEmpty(determinedPlannedCourse)
	            ? false
	            : determinedPlannedCourse.term !== courseInfo.termId;
	        var isPlanned = !!determinedPlannedCourse;
	        var isMinGradeFeatureEnabled = this.appConfigModel.isFeatureEnabled('academicplan-program_slot_min_grade');
	        var genericSlot = ap_generic_slot_builder_1.APGenericSlotBuilder.build({
	            type: 'COURSE',
	            title: course.title,
	            course: course,
	            status: _4.get(determinedPlannedCourse, 'status', 'DEFAULT'),
	            plannedCourse: determinedPlannedCourse || {},
	            termId: _4.get(determinedPlannedCourse, 'term', ap_id_constants_1.INVALID_ID),
	            isLockedByStatus: isLockedByStatus,
	            isDragEnabled: false,
	            isPlanned: isPlanned,
	            credits: course.credits,
	            showMarkAsMetMenu: showMarkAsMetMenu,
	            showMarkAsUnmetMenu: showMarkAsUnmetMenu,
	            isCourseCompleted: _4.includes(['COMPLETED'], _4.get(determinedPlannedCourse, 'status', '')),
	            shouldShowAddToTermMenu: this.showAddToCourseMenu(programSlot, isPlanned, determinedPlannedCourse),
	            isMinGradeMet: ap_min_grade_servant_1.APMinGradeServant.isMinGradeMet(programSlot, determinedPlannedCourse, isMinGradeFeatureEnabled),
	            isCourseFlagged: isCourseFlagged,
	            flagComment: flagComment,
	            isLockedByAdvisor: _4.get(determinedPlannedCourse, 'is_locked', false),
	            programSlot: programSlot || {},
	            isPlannedSomewhere: isPlannedSomewhere
	        });
	        this._result = tslib_1.__assign({ course: course, coursePlanningSource: this.planningSource, preReqHtml: preReqHtml,
	            coReqHtml: coReqHtml, hasCoReqs: coReqs.length > 0, hasPreReqs: preReqs.length > 0, hasPreReqIssues: hasPreReqIssues,
	            hasTests: hasTests,
	            hasMultiSections: hasMultiSections,
	            multiSectionLabel: multiSectionLabel,
	            genericSlot: genericSlot }, this.getMenuOptionVisibiltyStatus());
	        return this;
	    };
	    Object.defineProperty(APCourseInfoQuery.prototype, "planningSource", {
	        get: function () {
	            var source = 'PLANNER';
	            var courseDetails = _4.get(this.$state, 'params.courseDetails', {});
	            if (_4.get(courseDetails, 'isFromSmartCat', false) || _4.get(courseDetails, 'allowAddToTerm', false)) {
	                source = 'SMART_CATALOG';
	            }
	            return source;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(APCourseInfoQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APCourseInfoQuery;
	}());
	exports.APCourseInfoQuery = APCourseInfoQuery;
	angular.module('capability-ng-academic-planner').service('ngAPCourseInfoQuery', APCourseInfoQuery);


/***/ }),
/* 1220 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var course_flag_content_type_strategy_1 = __webpack_require__(486);
	angular
	    .module('capability-ng-academic-planner')
	    .service('createCourseFlagCommand', function createCourseFlagCommandDefinition($http, defineCommandORM, ngFeedbackSuggestedPlanModel, ngCommentsDatasource, log) {
	    return defineCommandORM('createCourseFlagCommand', function createCourseFlagCommand(deferred, courseId, message) {
	        var url = "/academicplan/suggested_plan/" + ngFeedbackSuggestedPlanModel.read().id + "/comment/";
	        var params = {
	            content_type: course_flag_content_type_strategy_1.CommentContentTypeStrategy['course'],
	            object_id: courseId
	        };
	        if (!_4.isUndefined(message)) {
	            params['message'] = message;
	        }
	        $http
	            .post(url, params)
	            .then(function (_a) {
	            var data = _a.data;
	            ngCommentsDatasource.put(data);
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue('failed to flag the course');
	            deferred.reject(e.data);
	        });
	    });
	});


/***/ }),
/* 1221 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('loadCommentCommand', function loadCommentCommandDefinition($http, defineCommandORM, ngCommentsDatasource, log) {
	    return defineCommandORM('loadCommentCommand', function loadCommentCommand(deferred, url) {
	        $http
	            .get(url)
	            .then(function (_a) {
	            var data = _a.data;
	            ngCommentsDatasource.clear().write(data);
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue('failed to load comments');
	            deferred.reject(e.data);
	        });
	    });
	});


/***/ }),
/* 1222 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('removeCourseFlagCommand', function removeCourseFlagCommandDefinition($http, defineCommandORM, ngFeedbackSuggestedPlanModel, ngCommentsDatasource, log) {
	    return defineCommandORM('removeCourseFlagCommand', function removeCourseFlagCommand(deferred, commentId) {
	        var url = "/academicplan/suggested_plan/" + ngFeedbackSuggestedPlanModel.read().id + "/comment/" + commentId;
	        $http
	            .delete(url)
	            .then(function (_a) {
	            var data = _a.data;
	            ngCommentsDatasource.del(commentId);
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue('failed to remove flag for the course');
	            deferred.reject(e.data);
	        });
	    });
	});


/***/ }),
/* 1223 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .service('updateCourseFlagCommand', function updateCourseFlagCommandDefinition($http, defineCommandORM, ngFeedbackSuggestedPlanModel, ngCommentsDatasource, log) {
	    return defineCommandORM('updateCourseFlagCommand', function updateCourseFlagCommand(deferred, commentId, message) {
	        var url = "/academicplan/suggested_plan/" + ngFeedbackSuggestedPlanModel.read().id + "/comment/" + commentId;
	        var existingFlag = _4.pick(ngCommentsDatasource.get(commentId), [
	            'content_type',
	            'object_id',
	            'recipient',
	            'sender'
	        ]);
	        var params = tslib_1.__assign({ message: message }, existingFlag);
	        $http
	            .put(url, params)
	            .then(function (_a) {
	            var data = _a.data;
	            ngCommentsDatasource.del(commentId);
	            ngCommentsDatasource.put(data);
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue('failed to update flag for the course');
	            deferred.reject(e.data);
	        });
	    });
	});


/***/ }),
/* 1224 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var CommentDialogController = /** @class */ (function () {
	    function CommentDialogController(ngAPNotificationDelegate, $state, $element, phxFocusDelegate, phxAxReturnFocusFactory, createCourseFlagCommand, updateCourseFlagCommand, removeCourseFlagCommand) {
	        this.ngAPNotificationDelegate = ngAPNotificationDelegate;
	        this.$state = $state;
	        this.$element = $element;
	        this.phxFocusDelegate = phxFocusDelegate;
	        this.phxAxReturnFocusFactory = phxAxReturnFocusFactory;
	        this.createCourseFlagCommand = createCourseFlagCommand;
	        this.updateCourseFlagCommand = updateCourseFlagCommand;
	        this.removeCourseFlagCommand = removeCourseFlagCommand;
	        this.messageMaxLength = 280;
	        this.isSaveUpdatesDisabled = false;
	        this.isOpened = true;
	    }
	    CommentDialogController.prototype.initialize = function () {
	        this.title = this.genericSlot.plannedCourse._course.cd + " " + this.genericSlot.plannedCourse._course.title;
	        this.message = _4.get(this.genericSlot, 'flagComment.comment', '');
	        this.disableSaveUpdates();
	    };
	    CommentDialogController.prototype.disableSaveUpdates = function () {
	        this.isSaveUpdatesDisabled =
	            this.message.length === 0 || this.message === _4.get(this.genericSlot, 'flagComment.comment');
	    };
	    CommentDialogController.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    CommentDialogController.prototype.$onInit = function () {
	        this.initialize();
	    };
	    CommentDialogController.prototype.openedChanged = function () {
	        this.$state.__goToPrevious__();
	        this.phxFocusDelegate.focus(this.phxAxReturnFocusFactory.getFocusId());
	    };
	    CommentDialogController.prototype.closeDialog = function () {
	        this.isOpened = false;
	    };
	    CommentDialogController.prototype.removeFlag = function () {
	        var _this = this;
	        this.removeCourseFlagCommand(_4.get(this.genericSlot, 'flagComment.id'))
	            .then(function () {
	            _this.closeDialog();
	            _this.ngAPNotificationDelegate.success("Successfully removed flag from " + _this.title);
	        })
	            .catch(function () {
	            _this.ngAPNotificationDelegate.error("Unable to remove flag from " + _this.title);
	        });
	    };
	    CommentDialogController.prototype.createOrUpdateFlag = function () {
	        var _this = this;
	        var isCourseFlagged = this.genericSlot.isCourseFlagged;
	        var commandForFlagging;
	        if (isCourseFlagged) {
	            // see the params diff
	            commandForFlagging = this.updateCourseFlagCommand(_4.get(this.genericSlot, 'flagComment.id'), this.message);
	        }
	        else {
	            commandForFlagging = this.createCourseFlagCommand(this.genericSlot.plannedCourse._course.id, this.message);
	        }
	        commandForFlagging
	            .then(function () {
	            _this.closeDialog();
	            var successMessage;
	            if (isCourseFlagged) {
	                successMessage = "Successfully updated the " + _this.title + "'s flag";
	            }
	            else {
	                successMessage = "Successfully flagged the course " + _this.title;
	            }
	            _this.ngAPNotificationDelegate.success(successMessage);
	        })
	            .catch(function () {
	            var failureMessage;
	            if (isCourseFlagged) {
	                failureMessage = "Unable to update " + _this.title + "'s flag";
	            }
	            else {
	                failureMessage = "failed to flag the course " + _this.title;
	            }
	            _this.ngAPNotificationDelegate.error(failureMessage);
	        });
	    };
	    return CommentDialogController;
	}());
	angular.module('capability-ng-academic-planner').component('courseFlagDialog', {
	    templateUrl: 'capability-ng-academic-planner/src/global/components/course_flag_dialog/course_flag_dialog.html',
	    bindings: {
	        genericSlot: '<'
	    },
	    controller: CommentDialogController
	});


/***/ }),
/* 1225 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var user_mode_api_strategy_1 = __webpack_require__(28);
	var ap_program_slot_servant_1 = __webpack_require__(15);
	angular.module('capability-ng-academic-planner').factory('removeCourseFromTermAndAddCourseGroupCommand', 
	/* tslint:disable:parameters-max-number */
	function (log, $http, $rootScope, $state, ngAPPlannedCoursesDatasource, ngAPCommandUrlServant, advisorSaveCourseGroupToTermCommand, studentSaveCourseGroupToTermCommand, ngAPProgramSlotDatasource, defineCommandORM) {
	    return defineCommandORM('removeCourseFromTermAndAddCourseGroupCommand', function (deferred, courseToRemove, term, programSlot) {
	        var payload = {
	            course_id: courseToRemove.course,
	            term_id: term
	        };
	        $rootScope.$emit('my.planner.show.saving.message', term);
	        var roleType = user_mode_api_strategy_1.RoleTypeStrategy.evaluate($state);
	        var academicPlanUrl = ngAPCommandUrlServant.get('academicPlan');
	        $http
	            .delete(academicPlanUrl, {
	            data: payload
	        })
	            .then(function () {
	            ngAPPlannedCoursesDatasource.del(courseToRemove.id);
	            var pgmSlot = ngAPProgramSlotDatasource.get(courseToRemove.program_slot);
	            if (pgmSlot && ap_program_slot_servant_1.APProgramSlotServant.isWildcardProgramSlot(pgmSlot)) {
	                pgmSlot.is_course_planned = false;
	                ngAPProgramSlotDatasource.put(pgmSlot);
	            }
	            if (roleType === 'student') {
	                studentSaveCourseGroupToTermCommand(term, programSlot, programSlot.id).then(deferred.resolve);
	            }
	            else if (roleType === 'advisor') {
	                advisorSaveCourseGroupToTermCommand(term, {
	                    program_slot: programSlot.id,
	                    course_group: programSlot.course_group
	                }).then(deferred.resolve);
	            }
	        })
	            .catch(function (e) {
	            log.issue('failed to remove course');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1226 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_program_slot_servant_1 = __webpack_require__(15);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('removeCourseGroupFromTermAndAddCourseCommand', function removeCourseGroupFromTermAndAddCourseCommand(log, $http, ngAPPlannedCourseGroupDatasource, ngAPProgramSlotDatasource, ngAPCoursesDatasource, ngAPPlannedCoursesDatasource, ngAPCommandUrlServant, defineCommandORM) {
	    return defineCommandORM('removeCourseGroupFromTermAndAddCourseCommand', function (deferred, programSlot, courseGroup, courseToPlan, courseNk, source) {
	        if (courseNk === void 0) { courseNk = null; }
	        if (source === void 0) { source = 'PLANNER'; }
	        var academicPlanUrl = ngAPCommandUrlServant.get('academicPlan');
	        var courseGroupUrl = ngAPCommandUrlServant.get('courseGroup');
	        $http
	            .delete(courseGroupUrl + "/" + courseGroup.id)
	            .then(function (response) {
	            ngAPPlannedCourseGroupDatasource.del(courseGroup.id);
	            ap_program_slot_servant_1.APProgramSlotServant.updateCourseGroupPlannedState(ngAPProgramSlotDatasource, courseGroup.program_slot);
	            var slot = programSlot;
	            var isDevReq = !ap_program_slot_servant_1.APProgramSlotServant.isNCRProgramSlot(programSlot) && !!programSlot.is_devreq;
	            var payload = {
	                course_id: courseToPlan.id,
	                term_id: programSlot._term_id,
	                slot_id: _4.isEmpty(slot) || slot.slot < 1 || isDevReq ? null : slot.id,
	                course_nk: courseNk,
	                source: source
	            };
	            $http
	                .post(academicPlanUrl, payload)
	                .then(function (secondResponse) {
	                _4.each(response.data.conflict_course, function (plannedCourse) {
	                    ngAPCoursesDatasource.put(plannedCourse);
	                });
	                ngAPCoursesDatasource.write(secondResponse.data.course);
	                ngAPPlannedCoursesDatasource.clear().write(secondResponse.data.planned_course);
	                deferred.resolve();
	            })
	                .catch(function (error) {
	                log.issue('failed to save course to term');
	                deferred.reject(error.data);
	            });
	        })
	            .catch(function (e) {
	            log.issue('failed to remove course group');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1227 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var CourseGroupButtonController = /** @class */ (function () {
	    function CourseGroupButtonController(removeCourseGroupFromTermCommand, saveCourseGroupToTermCommand, saveCourseToTermCommand, removeCourseGroupFromTermAndAddCourseCommand, removeCourseFromTermAndAddCourseGroupCommand, removeCourseFromTermAndAddCourseCommand, ngComponentCommunicatorService, phxAxTitleAnnouncerDelegate, ngAPNotificationDelegate) {
	        this.removeCourseGroupFromTermCommand = removeCourseGroupFromTermCommand;
	        this.saveCourseGroupToTermCommand = saveCourseGroupToTermCommand;
	        this.saveCourseToTermCommand = saveCourseToTermCommand;
	        this.removeCourseGroupFromTermAndAddCourseCommand = removeCourseGroupFromTermAndAddCourseCommand;
	        this.removeCourseFromTermAndAddCourseGroupCommand = removeCourseFromTermAndAddCourseGroupCommand;
	        this.removeCourseFromTermAndAddCourseCommand = removeCourseFromTermAndAddCourseCommand;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.phxAxTitleAnnouncerDelegate = phxAxTitleAnnouncerDelegate;
	        this.ngAPNotificationDelegate = ngAPNotificationDelegate;
	        this.planningNotificationName = 'planningCourse';
	    }
	    CourseGroupButtonController.prototype.initialize = function () {
	        this.hasPlannedCourse = _4.has(this.parentCourse, 'plannedCourse.id');
	        this.isCourseGroupPlanned = _4.has(this.parentCourse.plannedCourseGroup, 'id');
	        this.buttonType = 'add';
	        this.buttonLabel = this._getButton().buttonLabel;
	        this.showButton =
	            !this.courseSlot.isPlannedSomewhere ||
	                (this.courseSlot.isPlannedSomewhere && !!this.courseSlot.isPlannedInCurrentGroup);
	    };
	    CourseGroupButtonController.prototype.$onInit = function () {
	        this.initialize();
	    };
	    CourseGroupButtonController.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    CourseGroupButtonController.prototype.courseActionButton = function (e) {
	        if (this.buttonType === 'swap') {
	            e.stopPropagation();
	            this.swapCourse();
	        }
	        else if (this.buttonType === 'remove') {
	            this.removeCourse();
	        }
	        else if (this.buttonType === 'add') {
	            this.addCourse();
	        }
	    };
	    CourseGroupButtonController.prototype.showNotification = function (content) {
	        this.ngAPNotificationDelegate.info({
	            content: "<div l-kind=\"hort\" l-align=\"center\" l-width-fixed><hi-indicator theme=\"white\" size='small' class=\"mrm\"></hi-indicator>" + content + " </div>",
	            name: this.planningNotificationName
	        });
	    };
	    CourseGroupButtonController.prototype.hideNotification = function () {
	        this.ngAPNotificationDelegate.dismissAlertByName(this.planningNotificationName);
	    };
	    CourseGroupButtonController.prototype.addCourse = function () {
	        var _this = this;
	        if (this.parentCourse.programSlot) {
	            this.showNotification("Planning the course: " + this.courseSlot.course._title);
	            this.removeCourseGroupFromTermAndAddCourseCommand(this.parentCourse.programSlot, this.parentCourse.programSlot._course_group, this.courseSlot.course).then(function () { return _this.coursePlanned(); });
	        }
	    };
	    CourseGroupButtonController.prototype.coursePlanned = function () {
	        this.ngComponentCommunicatorService.publish('CLOSE_LARGE_COURSE_GROUP_PANEL');
	        this.phxAxTitleAnnouncerDelegate.announceChange(this.courseSlot.course.title + " was planned in " + this.term);
	        this.hideNotification();
	    };
	    CourseGroupButtonController.prototype.saveCourse = function () {
	        var _this = this;
	        this.showNotification("Planning the course: " + this.courseSlot.course._title);
	        this.saveCourseToTermCommand(this.courseSlot.course.id, this.parentCourse.termId, this.parentCourse.programSlot, !!this.parentCourse.programSlot.is_devreq).then(function () { return _this.coursePlanned(); });
	    };
	    CourseGroupButtonController.prototype.swapCourse = function () {
	        var _this = this;
	        if (!this.parentCourse.plannedCourse) {
	            return;
	        }
	        this.showNotification("Swapping the course: " + this.courseSlot.course._title);
	        this.removeCourseFromTermAndAddCourseCommand(this.parentCourse.plannedCourse, this.courseSlot.course, this.parentCourse.programSlot, this.parentCourse.plannedCourse.term, this.parentCourse.plannedCourse.term).then(function () {
	            _this.ngComponentCommunicatorService.publish('CLOSE_LARGE_COURSE_GROUP_PANEL');
	            _this.phxAxTitleAnnouncerDelegate.announceChange(_4.get(_this.parentCourse, 'plannedCourse._course._title', '') + " was swapped with " + _4.get(_this.courseSlot, 'course._title', '') + " in " + _this.term);
	            _this.hideNotification();
	        });
	    };
	    CourseGroupButtonController.prototype.removeCourse = function () {
	        var _this = this;
	        this.showNotification("Un-planning the course: " + _4.get(this.parentCourse, 'plannedCourse._course._title', ''));
	        this.removeCourseFromTermAndAddCourseGroupCommand(this.parentCourse.plannedCourse, this.parentCourse.termId, this.parentCourse.programSlot).then(function () {
	            _this.ngComponentCommunicatorService.publish('CLOSE_LARGE_COURSE_GROUP_PANEL');
	            _this.phxAxTitleAnnouncerDelegate.announceChange(_4.get(_this.parentCourse, 'plannedCourse._course._title') + " removed from " + _this.term);
	            _this.hideNotification();
	        });
	    };
	    CourseGroupButtonController.prototype._getButton = function () {
	        var removeString = 'Un-plan';
	        var addString = 'Plan';
	        var swapString = 'Swap';
	        var isCurrentCoursePlanned = !!this.parentCourse.plannedCourse && this.parentCourse.plannedCourse.course === this.courseSlot.course.id;
	        var buttonLabel = addString;
	        if (isCurrentCoursePlanned && this.hasPlannedCourse) {
	            buttonLabel = removeString;
	            this.buttonType = 'remove';
	        }
	        else if (!isCurrentCoursePlanned && this.hasPlannedCourse) {
	            buttonLabel = swapString;
	            this.buttonType = 'swap';
	        }
	        return {
	            buttonLabel: buttonLabel,
	            buttonType: this.buttonType
	        };
	    };
	    return CourseGroupButtonController;
	}());
	var CourseGroupButton = /** @class */ (function () {
	    function CourseGroupButton() {
	        this.bindings = {
	            courseSlot: '<',
	            parentCourse: '<',
	            term: '<'
	        };
	        this.controller = CourseGroupButtonController;
	        this.templateUrl =
	            'capability-ng-academic-planner/src/global/components/course_group_button/course_group_button.html';
	    }
	    return CourseGroupButton;
	}());
	angular.module('capability-ng-academic-planner').component('courseGroupButton', new CourseGroupButton());


/***/ }),
/* 1228 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_generic_slot_servant_1 = __webpack_require__(18);
	var ap_program_slot_servant_1 = __webpack_require__(15);
	var event_names_1 = __webpack_require__(23);
	var CourseGroupCourseList = /** @class */ (function () {
	    function CourseGroupCourseList($state, $animate, $timeout, ngAPUserModeConfig, showLargeCourseGroupCommand, ngComponentCommunicatorService, routerHelper) {
	        this.$state = $state;
	        this.$animate = $animate;
	        this.$timeout = $timeout;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.showLargeCourseGroupCommand = showLargeCourseGroupCommand;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.routerHelper = routerHelper;
	        this.hasCourses = false;
	        this.showAllCoursesOption = false;
	        this.showCourseTileButton = true;
	        this.isPlannedCourseLocked = false;
	    }
	    CourseGroupCourseList.prototype.$onChanges = function (changes) {
	        this.isSlotPlanned = ap_generic_slot_servant_1.APGenericSlotServant.isGenericSlotPlanned(this.slot);
	        this.isCoursePlanned = this.isSlotPlanned && !!_4.isEmpty(this.slot.plannedCourse);
	        this.allCourseSlotsSize = ap_program_slot_servant_1.APProgramSlotServant.isCourseGroupProgramSlot(this.slot.programSlot)
	            ? this.slot.programSlot.total_courses
	            : 0;
	        // this.showAllCoursesOption = !this.isSlotPlanned && !_4.isEmpty(this.limitTo) && _4.lt(parseInt(this.limitTo, 10), this.allCourseSlotsSize)
	        // Large Course groups only when courses are more than 10.
	        var limitedCourseSlots = _4.take(this.slot.genericSlots, parseInt(this.limitTo, 10));
	        this.filteredCourseSlots = _4.isUndefined(this.limitTo)
	            ? _4.slice(this.slot.genericSlots, this.start, this.end)
	            : limitedCourseSlots;
	        this.hasCourses = !_4.isEmpty(this.filteredCourseSlots);
	        this.isCourseGroupPlanned = ap_generic_slot_servant_1.APGenericSlotServant.isGenericSlotPlanned(this.slot);
	        this.isEditable = _4.isBoolean(this.isEditable) ? this.isEditable : this.isEditable === 'true';
	        this.optimizedSlot = _4.omit(this.slot, ['genericSlots']);
	        this.optimizedSlot['genericSlots'] = _4.take(this.slot.genericSlots, Math.min(this.allCourseSlotsSize, 10));
	        this.isPlannedCourseLocked = _4.get(this.slot, 'isLockedByAdvisor', false);
	        // if it is locked, we won't show the course button
	        this.showCourseTileButton = this.isCourseGroupPlanned && this.isEditable && !this.isPlannedCourseLocked;
	    };
	    CourseGroupCourseList.prototype.emphasizeDropArea = function () {
	        this.ngComponentCommunicatorService.publish(event_names_1.EMPHASIZE_DROP_AREA);
	    };
	    CourseGroupCourseList.prototype.deEmphasizeDropArea = function () {
	        this.ngComponentCommunicatorService.publish(event_names_1.DEEMPHASIZE_DROP_AREA);
	    };
	    CourseGroupCourseList.prototype.viewAllCourses = function () {
	        var _this = this;
	        this.$animate.enabled(false);
	        this.showLargeCourseGroupCommand(this.slot).then(function () {
	            var courseGroupStateName = '^.coursegroup';
	            _this.routerHelper.findStateAndGo(courseGroupStateName, {
	                slotId: _this.slot.programSlot.id,
	                termId: _this.slot.termId
	            });
	        });
	    };
	    return CourseGroupCourseList;
	}());
	exports.CourseGroupCourseList = CourseGroupCourseList;
	angular.module('capability-ng-academic-planner').component('courseGroupCourseList', {
	    templateUrl: 'capability-ng-academic-planner/src/global/components/course_group_course_list/course_group_course_list.html',
	    bindings: {
	        slot: '<',
	        type: '@',
	        limitTo: '@',
	        term: '<',
	        filterKey: '<',
	        isEditable: '<?',
	        start: '<',
	        end: '<',
	        showAllCoursesOption: '<'
	    },
	    controller: CourseGroupCourseList
	});


/***/ }),
/* 1229 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(7);
	var ap_id_constants_1 = __webpack_require__(11);
	var event_names_1 = __webpack_require__(23);
	var CourseGroupMmTile = /** @class */ (function () {
	    function CourseGroupMmTile(ngComponentCommunicatorService) {
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.isGroupExpanded = false;
	        this.groupIconAngle = '0';
	        this.genericSlot = {};
	        this.disableDND = false;
	        this.isPast = false;
	        this.plannedCourseId = ap_id_constants_1.INVALID_ID;
	        this.termId = ap_id_constants_1.INVALID_ID;
	    }
	    CourseGroupMmTile.prototype.$onChanges = function () {
	        this.isEditable = _4.isBoolean(this.isEditable) ? this.isEditable : this.isEditable === 'true';
	        this.isPlannedCourseWithSlots = _4.isBoolean(this.isPlannedCourseWithSlots)
	            ? this.isPlannedCourseWithSlots
	            : this.isPlannedCourseWithSlots === 'true';
	        this.isPlaceholder = _4.isBoolean(this.isPlaceholder) ? this.isPlaceholder : this.isPlaceholder === 'true';
	        this.isFromTerm = _4.isBoolean(this.isFromTerm) ? this.isFromTerm : this.isFromTerm === 'true';
	        this.disableDND = this.isFromTerm;
	        if (this.isPlannedCourseWithSlots) {
	            this.plannedCourseId = _4.get(this.genericSlot, 'course_id', ap_id_constants_1.INVALID_ID);
	        }
	    };
	    CourseGroupMmTile.prototype.emphasizeDropArea = function () {
	        this.ngComponentCommunicatorService.publish(event_names_1.EMPHASIZE_DROP_AREA);
	    };
	    CourseGroupMmTile.prototype.deEmphasizeDropArea = function () {
	        this.ngComponentCommunicatorService.publish(event_names_1.DEEMPHASIZE_DROP_AREA);
	    };
	    CourseGroupMmTile.prototype.toggleGroupExpandCollapse = function () {
	        this.isGroupExpanded = !this.isGroupExpanded;
	        this.groupIconAngle = this.isGroupExpanded ? '90' : '0';
	    };
	    CourseGroupMmTile.prototype.dndData = function (course) {
	        return {
	            slotId: _4.get(course, 'slotId', ap_id_constants_1.INVALID_ID),
	            courseId: _4.get(course, 'id', ap_id_constants_1.INVALID_ID),
	            courseGroupId: _4.get(this.genericSlot, 'courseGroupId', ap_id_constants_1.INVALID_ID),
	            slotType: 'COURSE',
	            isFromTerm: false
	        };
	    };
	    return CourseGroupMmTile;
	}());
	exports.CourseGroupMmTile = CourseGroupMmTile;
	angular.module('capability-ng-academic-planner').component('courseGroupMmTile', {
	    templateUrl: 'capability-ng-academic-planner/src/global/components/course_group_tile/course_group_mm_tile.html',
	    bindings: {
	        genericSlot: '<',
	        isEditable: '<?',
	        isFromTerm: '<',
	        isPlannedCourseWithSlots: '<',
	        isPlaceholder: '<',
	        termId: '<?',
	        isPast: '<?'
	    },
	    controller: CourseGroupMmTile
	});


/***/ }),
/* 1230 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(7);
	var ap_id_constants_1 = __webpack_require__(11);
	var ap_generic_slot_servant_1 = __webpack_require__(18);
	var CourseGroupTile = /** @class */ (function () {
	    function CourseGroupTile(ngAPComponentStateModel) {
	        this.ngAPComponentStateModel = ngAPComponentStateModel;
	        this.isLocked = false;
	        this.UIDAppend = _4.uniqueId();
	    }
	    // TODO: Check the possibility to grab from query
	    CourseGroupTile.prototype.calculateCourseGroupLimit = function () {
	        var MAX_NUMBER_COURSES = 6;
	        var SHOW_ALL_COURSES_LIMIT = 10;
	        this.showAllCoursesOption = this.slot.programSlot.total_courses > SHOW_ALL_COURSES_LIMIT;
	        this.courseStartIndex = 0;
	        this.courseEndIndex = this.showAllCoursesOption ? MAX_NUMBER_COURSES : this.slot.programSlot.total_courses;
	    };
	    CourseGroupTile.prototype.$onChanges = function () {
	        this.badgeType = this.type && !!this.slot.plannedCourse ? this.type : 'placeholder';
	        this.isEditable = _4.isBoolean(this.isEditable) ? this.isEditable : this.isEditable === 'true';
	        this.calculateCourseGroupLimit();
	        this.isLocked = _4.get(this.slot, 'isLockedByAdvisor', false);
	        this.theme = this.themeColor();
	    };
	    CourseGroupTile.prototype.themeColor = function () {
	        return this.slot.disableSlot ? 'gray' : 'primary';
	    };
	    CourseGroupTile.prototype.$onInit = function () {
	        this.id = this.slot.programSlot.id;
	        var noTermAssigned = this.slot.termId === ap_id_constants_1.INVALID_ID;
	        this.isPlanned = ap_generic_slot_servant_1.APGenericSlotServant.isGenericSlotPlanned(this.slot) && noTermAssigned;
	        this.isCourseGroupPlanned = ap_generic_slot_servant_1.APGenericSlotServant.isGenericSlotPlanned(this.slot);
	        this.updateComponentState(this.id, _4.get(this.ngAPComponentStateModel, "courseGroups[" + this.id + "].opened", false));
	        this.calculateCourseGroupLimit();
	        this.theme = this.themeColor();
	    };
	    Object.defineProperty(CourseGroupTile.prototype, "_hasRequisiteProblem", {
	        get: function () {
	            return _4.get(this.slot, 'plannedCourse._hasRequisiteProblem', false);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    CourseGroupTile.prototype.headingClicked = function () {
	        if (this.slot.showMarkAsUnmetMenu || this.slot.disableSlot) {
	            return;
	        }
	        if (!this.isPlanned) {
	            this.updateComponentState(this.id, !this.groupExpanded);
	        }
	    };
	    CourseGroupTile.prototype.updateComponentState = function (id, state) {
	        if (!this.ngAPComponentStateModel.courseGroups[id]) {
	            this.ngAPComponentStateModel.courseGroupClose(id);
	        }
	        else {
	            this.ngAPComponentStateModel.courseGroupToggle(id, this.isCourseGroupPlanned ? false : state);
	        }
	        this.groupExpanded = state;
	    };
	    CourseGroupTile.prototype.getIconPosition = function () {
	        return this.groupExpanded ? '90' : '0';
	    };
	    return CourseGroupTile;
	}());
	exports.CourseGroupTile = CourseGroupTile;
	angular.module('capability-ng-academic-planner').component('courseGroupTile', {
	    templateUrl: 'capability-ng-academic-planner/src/global/components/course_group_tile/course_group_tile.html',
	    bindings: {
	        slot: '<',
	        groupExpanded: '<',
	        term: '<',
	        notifyCollapse: '&',
	        type: '@',
	        isEditable: '<?'
	    },
	    controller: CourseGroupTile,
	    transclude: true
	});


/***/ }),
/* 1231 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('toggleLockCourseCommand', function toggleLockCourseCommand(defineCommandORM, ngAPPlannedCoursesDatasource, $http) {
	    return defineCommandORM('toggleLockCourseCommand', function (deferred, plannedCourseID, isLocked) {
	        if (isLocked === void 0) { isLocked = true; }
	        $http
	            .put("/academicplan/suggested_course/" + plannedCourseID, {
	            is_locked: isLocked
	        })
	            .then(function (response) {
	            var plannedCourse = ngAPPlannedCoursesDatasource.get(response.data.id);
	            if (plannedCourse) {
	                plannedCourse.is_locked = response.data.is_locked;
	                ngAPPlannedCoursesDatasource.put(plannedCourse);
	            }
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1232 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_generic_slot_servant_1 = __webpack_require__(18);
	var CourseLockDialogController = /** @class */ (function () {
	    function CourseLockDialogController(toggleLockCourseCommand, ngAPNotificationDelegate, $state, ngAPTermsQuery, $element, phxFocusDelegate, phxAxReturnFocusFactory) {
	        this.toggleLockCourseCommand = toggleLockCourseCommand;
	        this.ngAPNotificationDelegate = ngAPNotificationDelegate;
	        this.$state = $state;
	        this.ngAPTermsQuery = ngAPTermsQuery;
	        this.$element = $element;
	        this.phxFocusDelegate = phxFocusDelegate;
	        this.phxAxReturnFocusFactory = phxAxReturnFocusFactory;
	        this.isOpened = true;
	    }
	    CourseLockDialogController.prototype.initialize = function () {
	        this.dialogTitle = this.getTitleText();
	        this.dialogBodyText = this.getBodyText();
	    };
	    CourseLockDialogController.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    CourseLockDialogController.prototype.$onInit = function () {
	        this.initialize();
	    };
	    CourseLockDialogController.prototype.getTitleText = function () {
	        var title = _4.capitalize(this.type) + " " + _4.get(this.genericSlot, 'plannedCourse._course._title');
	        if (ap_generic_slot_servant_1.APGenericSlotServant.isCourseGroupSlot(this.genericSlot)) {
	            title = title + " " + (this.type === 'lock' ? 'to' : 'from') + " " + _4.get(this.genericSlot, 'programSlot.desc');
	        }
	        return title;
	    };
	    CourseLockDialogController.prototype.getBodyText = function () {
	        var termName = _4.get(_4.find(this.ngAPTermsQuery.result.plannedTerms, { id: this.genericSlot.termId }), 'name');
	        var removalOfLock = this.type === 'lock' ? "This course will be automatically unlocked at the end of the " + termName + " term." : '';
	        return "This course will be " + this.type + "ed. They will " + (this.type === 'lock' ? 'not' : '') + "\n      be able to move it from the term you assigned it to. " + removalOfLock + "\n      Are you sure you want to " + this.type + " this course?";
	    };
	    CourseLockDialogController.prototype.toggleLock = function () {
	        var _this = this;
	        this.toggleLockCourseCommand(_4.get(this.genericSlot, 'plannedCourse.id'), this.type === 'lock')
	            .then(function () {
	            _this.closeDialog();
	            _this.ngAPNotificationDelegate.success(_4.get(_this.genericSlot, 'plannedCourse._course._title') + " is now " + _this.type + "ed");
	        })
	            .catch(function () {
	            _this.ngAPNotificationDelegate.error("Unable to " + _this.type + " " + _4.get(_this.genericSlot, 'plannedCourse._course._title'));
	        });
	    };
	    CourseLockDialogController.prototype.openedChanged = function () {
	        this.$state.__goToPrevious__();
	        this.phxFocusDelegate.focus(this.phxAxReturnFocusFactory.getFocusId());
	    };
	    CourseLockDialogController.prototype.closeDialog = function () {
	        this.isOpened = false;
	    };
	    return CourseLockDialogController;
	}());
	var CourseLockDialog = /** @class */ (function () {
	    function CourseLockDialog() {
	        this.bindings = {
	            type: '<',
	            genericSlot: '<'
	        };
	        this.controller = CourseLockDialogController;
	        this.templateUrl =
	            'capability-ng-academic-planner/src/global/components/course_lock_dialog/course_lock_dialog.html';
	    }
	    return CourseLockDialog;
	}());
	angular.module('capability-ng-academic-planner').component('courseLockDialog', new CourseLockDialog());


/***/ }),
/* 1233 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_course_servant_1 = __webpack_require__(25);
	var CoursePlaceholderMenuController = /** @class */ (function () {
	    function CoursePlaceholderMenuController(saveCourseGroupToTermCommand, removeCourseGroupFromTermCommand, removeCourseFromTermCommand, removeCourseFromTermAndAddCourseCommand, removeCourseGroupFromTermAndAddCourseGroupCommand, ngAPComponentStateModel, ngComponentCommunicatorService, ngAPTermsQuery, ngAPUserModeConfig, markAsMetFacade, $state, ngAPProgramSlotHelper, ngAPDegreeMapQueryHelper, ngCourseGroupCourseDetailOpenFacade, routerHelper) {
	        this.saveCourseGroupToTermCommand = saveCourseGroupToTermCommand;
	        this.removeCourseGroupFromTermCommand = removeCourseGroupFromTermCommand;
	        this.removeCourseFromTermCommand = removeCourseFromTermCommand;
	        this.removeCourseFromTermAndAddCourseCommand = removeCourseFromTermAndAddCourseCommand;
	        this.removeCourseGroupFromTermAndAddCourseGroupCommand = removeCourseGroupFromTermAndAddCourseGroupCommand;
	        this.ngAPComponentStateModel = ngAPComponentStateModel;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngAPTermsQuery = ngAPTermsQuery;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.markAsMetFacade = markAsMetFacade;
	        this.$state = $state;
	        this.ngAPProgramSlotHelper = ngAPProgramSlotHelper;
	        this.ngAPDegreeMapQueryHelper = ngAPDegreeMapQueryHelper;
	        this.ngCourseGroupCourseDetailOpenFacade = ngCourseGroupCourseDetailOpenFacade;
	        this.routerHelper = routerHelper;
	        this.isPlanned = false;
	        this.showMenu = true;
	        this.showMoveToTermMenu = false;
	        this.removeFromTermMenu = false;
	        this.showAdvisorMenu = false;
	        this.isLocked = false;
	    }
	    CoursePlaceholderMenuController.prototype.initialize = function () {
	        this.showMenu = !_4.isBoolean(this.showMenu) ? true : this.showMenu;
	        var isCoursePlanned = !_4.isEmpty(this.courseGroup.plannedCourse);
	        this.showAdvisorMenu = isCoursePlanned && this.isAdvisor;
	        this.isLocked = _4.get(this.courseGroup, 'isLockedByAdvisor', false);
	        var isLockedByStatus = ap_course_servant_1.APCourseServant.isLockedByStatus(this.courseGroup.status);
	        this.showMoveToTermMenu = !this.isLocked && !isLockedByStatus;
	        var isCourseGroupPlanned = !_4.isEmpty(this.courseGroup.plannedCourseGroup);
	        this.removeFromTermMenu = (isCourseGroupPlanned || isCoursePlanned) && !this.isLocked && !isLockedByStatus;
	        if (this.showMoveToTermMenu && this.isMovePreventedByMarkAsMet()) {
	            this.showMoveToTermMenu = false;
	        }
	    };
	    CoursePlaceholderMenuController.prototype.$onInit = function () {
	        this.isAdvisor = this.ngAPUserModeConfig.isAdvisor();
	        this.menuId = _4.uniqueId();
	        this.initialize();
	    };
	    CoursePlaceholderMenuController.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    CoursePlaceholderMenuController.prototype.isMovePreventedByMarkAsMet = function () {
	        if (!this.ngAPDegreeMapQueryHelper.isMarkAsMetFeatureEnabled()) {
	            return false;
	        }
	        return this.ngAPProgramSlotHelper.isMarkedAsMet(this.courseGroup.programSlot);
	    };
	    CoursePlaceholderMenuController.prototype.openLockUnlockDialog = function () {
	        this.$state.go('.lock_course', {
	            genericSlot: this.courseGroup,
	            type: !this.isLocked ? 'lock' : 'unlock'
	        });
	    };
	    CoursePlaceholderMenuController.prototype.addPlaceholder = function (genericSlot, term) {
	        var _this = this;
	        this.saveCourseGroupToTermCommand({
	            course_group: genericSlot.programSlot.course_group,
	            term: term.id,
	            program_slot: genericSlot.programSlot.id
	        }).then(function (plndCourse) {
	            _this.ngComponentCommunicatorService.publish('CLOSE_LARGE_COURSE_GROUP_PANEL');
	            _this.ngAPComponentStateModel.courseGroupClose(genericSlot.programSlot.id);
	        });
	    };
	    CoursePlaceholderMenuController.prototype.openFlagPopup = function () {
	        this.$state.go('.course_flag_dialog', {
	            genericSlot: this.courseGroup
	        });
	    };
	    CoursePlaceholderMenuController.prototype.showCourseDetails = function (event) {
	        if (!this.courseGroup.plannedCourse) {
	            return;
	        }
	        var courseNk = this.courseGroup.plannedCourse._course.nk;
	        var programSlotId = this.courseGroup.programSlot.id;
	        var slotType = this.courseGroup.programSlot.slot_type;
	        var termId = this.courseGroup.termId;
	        var title = this.courseGroup.plannedCourse._course._title;
	        var courseDetails = {
	            courseNk: courseNk,
	            programSlotId: programSlotId,
	            slotType: slotType,
	            termId: termId,
	            title: title
	        };
	        return this.routerHelper.findStateAndGo('.course_details', { courseDetails: courseDetails });
	    };
	    CoursePlaceholderMenuController.prototype.moveAction = function (genericSlot, term) {
	        var _this = this;
	        if (!_4.isEmpty(genericSlot.plannedCourseGroup)) {
	            this.removeCourseGroupFromTermAndAddCourseGroupCommand(genericSlot.plannedCourseGroup, genericSlot.plannedCourseGroup, term.id).then(function () {
	                _this.ngComponentCommunicatorService.publish('CLOSE_LARGE_COURSE_GROUP_PANEL');
	            });
	        }
	        else {
	            if (!genericSlot.plannedCourse) {
	                return;
	            }
	            this.removeCourseFromTermAndAddCourseCommand({
	                course: genericSlot.plannedCourse.course,
	                id: genericSlot.plannedCourse.id
	            }, {
	                id: genericSlot.plannedCourse.course
	            }, genericSlot.programSlot, genericSlot.plannedCourse.term, term.id).then(function () {
	                _this.ngComponentCommunicatorService.publish('CLOSE_LARGE_COURSE_GROUP_PANEL');
	            });
	        }
	    };
	    CoursePlaceholderMenuController.prototype.removeAction = function (genericSlot) {
	        if (!_4.isEmpty(genericSlot.plannedCourseGroup)) {
	            this.removePlaceholder(genericSlot);
	        }
	        else {
	            this.removeCourse(genericSlot);
	        }
	    };
	    CoursePlaceholderMenuController.prototype.removeCourse = function (genericSlot) {
	        var _this = this;
	        this.removeCourseFromTermCommand(genericSlot.programSlot, genericSlot.plannedCourse).then(function () {
	            _this.ngComponentCommunicatorService.publish('CLOSE_LARGE_COURSE_GROUP_PANEL');
	        });
	    };
	    CoursePlaceholderMenuController.prototype.removePlaceholder = function (genericSlot) {
	        var _this = this;
	        this.removeCourseGroupFromTermCommand(genericSlot.programSlot, genericSlot.plannedCourseGroup.id).then(function () {
	            _this.ngComponentCommunicatorService.publish('CLOSE_LARGE_COURSE_GROUP_PANEL');
	        });
	    };
	    CoursePlaceholderMenuController.prototype.termItemClick = function (term) {
	        this.isPlanned ? this.moveAction(this.courseGroup, term) : this.addPlaceholder(this.courseGroup, term);
	    };
	    return CoursePlaceholderMenuController;
	}());
	var CoursePlaceholderMenu = /** @class */ (function () {
	    function CoursePlaceholderMenu() {
	        this.bindings = {
	            courseGroup: '<',
	            showMenu: '<',
	            slotId: '<',
	            isPlanned: '<'
	        };
	        this.controller = CoursePlaceholderMenuController;
	        this.templateUrl =
	            'capability-ng-academic-planner/src/global/components/course_placeholder_menu/course_placeholder_menu.html';
	    }
	    return CoursePlaceholderMenu;
	}());
	angular.module('capability-ng-academic-planner').component('coursePlaceholderMenu', new CoursePlaceholderMenu());


/***/ }),
/* 1234 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var CourseStatusBadge = /** @class */ (function () {
	    function CourseStatusBadge(phxFeatureConfiguration, ngAPAdvisorText) {
	        this.phxFeatureConfiguration = phxFeatureConfiguration;
	        this.ngAPAdvisorText = ngAPAdvisorText;
	        var advisorLabel = this.ngAPAdvisorText.advisorLabel;
	        var noStyles = '';
	        var defaultTheme = 'transparent';
	        var shape = 'circle';
	        this.badgeTypes = {
	            devrequisite: {
	                icon: 'book',
	                isIcon: true,
	                iconTheme: 'blue',
	                iconSize: 'medium',
	                styles: noStyles,
	                theme: defaultTheme,
	                context: 'Required Developmental Course',
	                shape: shape,
	                title: 'Developmental Course',
	                toolTipMessage: 'Required Developmental Courses'
	            },
	            flag: {
	                icon: 'flag',
	                isIcon: true,
	                iconTheme: 'blue',
	                iconSize: 'medium',
	                styles: noStyles,
	                theme: defaultTheme,
	                context: "Course flagged by " + advisorLabel,
	                shape: shape,
	                title: "Course flagged by " + advisorLabel,
	                toolTipMessage: "Course flagged by " + advisorLabel + ", check comments for more info"
	            },
	            lock: {
	                icon: 'lock',
	                isIcon: true,
	                iconTheme: 'blue',
	                iconSize: 'medium',
	                styles: noStyles,
	                theme: defaultTheme,
	                context: "Course locked by " + advisorLabel,
	                shape: shape,
	                title: "Course locked by " + advisorLabel,
	                toolTipMessage: _4.upperFirst(advisorLabel) + " locked this course. You cannot move/remove course from term"
	            }
	        };
	    }
	    CourseStatusBadge.prototype.intialize = function () {
	        this.type = _4.toLower(this.type);
	        this.showTitle = !!this.showTitle;
	        this.icon = this.badgeTypes[this.type].icon;
	        this.isIcon = this.badgeTypes[this.type].isIcon;
	        this.iconTheme = this.badgeTypes[this.type].iconTheme;
	        this.iconSize = this.badgeTypes[this.type].iconSize;
	        this.styles = this.badgeTypes[this.type].styles;
	        this.statusBadgeTheme = this.theme || this.badgeTypes[this.type].theme;
	        this.context = this.badgeTypes[this.type].context;
	        this.shape = this.badgeTypes[this.type].shape;
	        this.title = this.badgeTypes[this.type].title;
	        this.toolTipMessage = this.badgeTypes[this.type].toolTipMessage;
	        this.isEditable = _4.isBoolean(this.isEditable) ? this.isEditable : this.isEditable === 'true';
	    };
	    CourseStatusBadge.prototype.$onInit = function () {
	        this.intialize();
	    };
	    CourseStatusBadge.prototype.$onChanges = function () {
	        this.intialize();
	    };
	    CourseStatusBadge.prototype.getValue = function (value) {
	        return value;
	    };
	    return CourseStatusBadge;
	}());
	exports.CourseStatusBadge = CourseStatusBadge;
	angular.module('capability-ng-academic-planner').component('courseBadge', {
	    templateUrl: 'capability-ng-academic-planner/src/global/components/course_status_badge/course_status_badge.html',
	    bindings: {
	        type: '@',
	        showTitle: '<',
	        isEditable: '<?',
	        theme: '<?'
	    },
	    controller: CourseStatusBadge
	});


/***/ }),
/* 1235 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var CourseTileComponentController = /** @class */ (function () {
	    function CourseTileComponentController($state, phxFeatureConfiguration, ngAPAdvisorText, phxFocusDelegate) {
	        this.$state = $state;
	        this.phxFeatureConfiguration = phxFeatureConfiguration;
	        this.ngAPAdvisorText = ngAPAdvisorText;
	        this.phxFocusDelegate = phxFocusDelegate;
	        this.courseColor = 'blue';
	        this.hasRequisiteProblem = false;
	    }
	    CourseTileComponentController.prototype.initialize = function () {
	        this.hasRequisiteProblem = this._hasRequisiteProblem;
	        if (_4.get(this.genericSlot, 'plannedCourse._hasRequisiteProblem', false) && this.genericSlot.termId) {
	            this.courseInfoIconTheme = 'red';
	            this.courseInfoIconTitle = 'Course quick information, this course needs attention.';
	        }
	        else {
	            this.courseInfoIconTheme = 'gray';
	            this.courseInfoIconTitle = 'Course quick information';
	        }
	        this.courseTileId = _4.uniqueId();
	        this.statePrefix = this.$state.includes('ap-advisor') ? 'ap-advisor' : 'my';
	        this.advisorLabel = this.ngAPAdvisorText.advisorLabel;
	    };
	    Object.defineProperty(CourseTileComponentController.prototype, "_hasRequisiteProblem", {
	        get: function () {
	            return _4.get(this.genericSlot, 'plannedCourse._hasRequisiteProblem', false);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    CourseTileComponentController.prototype.$onInit = function () {
	        this.initialize();
	    };
	    CourseTileComponentController.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    return CourseTileComponentController;
	}());
	var CourseTileComponent = /** @class */ (function () {
	    function CourseTileComponent() {
	        this.bindings = {
	            genericSlot: '<',
	            changeLookWhenHover: '<',
	            hideInfo: '<',
	            titleCssClass: '@'
	        };
	        this.controller = CourseTileComponentController;
	        this.templateUrl =
	            'capability-ng-academic-planner/src/global/components/course_tile_component/course_tile_component.html';
	    }
	    return CourseTileComponent;
	}());
	angular.module('capability-ng-academic-planner').component('courseTileComponent', new CourseTileComponent());


/***/ }),
/* 1236 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var ap_id_constants_1 = __webpack_require__(11);
	var CourseTileMmComponentController = /** @class */ (function () {
	    function CourseTileMmComponentController($state, phxFeatureConfiguration, ngAPAdvisorText, phxFocusDelegate, removeMmCourseGroupFromTermCommand, saveMmCourseToTermCommand, ngAPNotificationDelegate, loadMmAcademicPlanCommand, removeMmCourseFromTermCommand, routerHelper) {
	        this.$state = $state;
	        this.phxFeatureConfiguration = phxFeatureConfiguration;
	        this.ngAPAdvisorText = ngAPAdvisorText;
	        this.phxFocusDelegate = phxFocusDelegate;
	        this.removeMmCourseGroupFromTermCommand = removeMmCourseGroupFromTermCommand;
	        this.saveMmCourseToTermCommand = saveMmCourseToTermCommand;
	        this.ngAPNotificationDelegate = ngAPNotificationDelegate;
	        this.loadMmAcademicPlanCommand = loadMmAcademicPlanCommand;
	        this.removeMmCourseFromTermCommand = removeMmCourseFromTermCommand;
	        this.routerHelper = routerHelper;
	        this.buttonText = 'Plan';
	        this.isPlaceholderCourse = false;
	        this.isPlannedCourseWithSlots = false;
	        this.isPast = false;
	        this.courseId = ap_id_constants_1.INVALID_ID;
	        this.courseGroupId = ap_id_constants_1.INVALID_ID;
	        this.termId = ap_id_constants_1.INVALID_ID;
	        this.planningNotificationName = 'planorswapcourse';
	    }
	    CourseTileMmComponentController.prototype.initialize = function () {
	        this.statePrefix = this.$state.includes('ap-advisor') ? 'ap-advisor' : 'my';
	        this.advisorLabel = this.ngAPAdvisorText.advisorLabel;
	        this.isEditable = _4.isBoolean(this.isEditable) ? this.isEditable : this.isEditable === 'true';
	        this.isFromTerm = _4.isBoolean(this.isFromTerm) ? this.isFromTerm : this.isFromTerm === 'true';
	        this.isPlaceholderCourse = _4.isBoolean(this.isPlaceholderCourse)
	            ? this.isPlaceholderCourse
	            : this.isPlaceholderCourse === 'true';
	        this.isPlannedCourseWithSlots = _4.isBoolean(this.isPlannedCourseWithSlots)
	            ? this.isPlannedCourseWithSlots
	            : this.isPlannedCourseWithSlots === 'true';
	        if (this.isPlaceholderCourse || this.isPlannedCourseWithSlots) {
	            this.showMenu = false;
	            this.buttonText = this.getButtonText();
	        }
	        else {
	            this.showMenu = this.isEditable;
	        }
	    };
	    CourseTileMmComponentController.prototype.showNotification = function (content) {
	        this.ngAPNotificationDelegate.info({
	            content: "<div l-kind=\"hort\" l-align=\"center\" l-width-fixed><hi-indicator theme=\"white\" size='small' class=\"mrm\"></hi-indicator>" + content + " </div>",
	            name: this.planningNotificationName
	        });
	    };
	    CourseTileMmComponentController.prototype.hideNotification = function () {
	        this.ngAPNotificationDelegate.dismissAlertByName(this.planningNotificationName);
	    };
	    CourseTileMmComponentController.prototype.getButtonText = function () {
	        if (this.isPlannedCourseWithSlots) {
	            return this.courseId === this.course.id ? 'Un plan' : 'Swap';
	        }
	        return 'Plan';
	    };
	    CourseTileMmComponentController.prototype.$onInit = function () {
	        this.initialize();
	    };
	    CourseTileMmComponentController.prototype.getPayload = function () {
	        return {
	            term: this.termId,
	            program_slot: this.course.slotId,
	            course: this.course.id
	        };
	    };
	    CourseTileMmComponentController.prototype.showCourseDetails = function () {
	        if (this._isFromTerm) {
	            this.showCourseDetailsMenu = !(this.isPlaceholderCourse || this.isPlannedCourseWithSlots);
	        }
	        else {
	            this.showCourseDetailsMenu = this.courseGroupId < 0;
	        }
	        var _courseNk = _4.get(this.course, 'nk', ap_id_constants_1.INVALID_ID);
	        var _courseDetailParams = {
	            courseNk: _courseNk,
	            courseId: this._courseId,
	            plannedCourseId: this._plannedCourseId,
	            termId: this.termId,
	            slotId: this.course.slotId,
	            showCourseDetailsMenu: this.showCourseDetailsMenu,
	            isPast: this.isPast,
	            status: this.course.status
	        };
	        this.routerHelper.findStateAndGo('.course_details', { courseDetailsParams: _courseDetailParams });
	    };
	    Object.defineProperty(CourseTileMmComponentController.prototype, "_courseId", {
	        get: function () {
	            return this._isFromTerm ? this.course.course_id || ap_id_constants_1.INVALID_ID : this.course.id;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(CourseTileMmComponentController.prototype, "_plannedCourseId", {
	        get: function () {
	            return this._isFromTerm ? this.course.id || ap_id_constants_1.INVALID_ID : ap_id_constants_1.INVALID_ID;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(CourseTileMmComponentController.prototype, "_isFromTerm", {
	        get: function () {
	            return _4.gt(this.termId, 0);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    CourseTileMmComponentController.prototype.unplanOrSwapCourse = function () {
	        var payload = this.getPayload();
	        if (this.isPlannedCourseWithSlots) {
	            this.courseId === this.course.id ? this.unPlanCourse() : this.swapCourse(payload);
	        }
	        else {
	            // remove coursegrooup(placeholder) from term and add selected course to term.
	            this.removeCourseGroupAndAddCourseToTerm(payload);
	        }
	    };
	    CourseTileMmComponentController.prototype.removeCourseGroupAndAddCourseToTerm = function (payload) {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            var studentId, _a;
	            return tslib_1.__generator(this, function (_b) {
	                switch (_b.label) {
	                    case 0:
	                        _b.trys.push([0, 4, , 5]);
	                        return [4 /*yield*/, this.removeMmCourseGroupFromTermCommand(this.courseGroupId)];
	                    case 1:
	                        studentId = _b.sent();
	                        this.showNotification("Adding a course " + this.course.title + " to term.");
	                        return [4 /*yield*/, this.saveMmCourseToTermCommand(payload)];
	                    case 2:
	                        _b.sent();
	                        this.hideNotification();
	                        this.showNotification("Reloading terms data");
	                        return [4 /*yield*/, this.loadMmAcademicPlanCommand(studentId)];
	                    case 3:
	                        _b.sent();
	                        this.hideNotification();
	                        return [3 /*break*/, 5];
	                    case 4:
	                        _a = _b.sent();
	                        this.hideNotification();
	                        return [3 /*break*/, 5];
	                    case 5: return [2 /*return*/];
	                }
	            });
	        });
	    };
	    CourseTileMmComponentController.prototype.unPlanCourse = function () {
	        var _this = this;
	        this.removeMmCourseFromTermCommand(this.courseGroupId).then(function (studentId) {
	            _this.loadMmAcademicPlanCommand(studentId);
	        });
	    };
	    CourseTileMmComponentController.prototype.swapCourse = function (payload) {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            var studentId, _a;
	            return tslib_1.__generator(this, function (_b) {
	                switch (_b.label) {
	                    case 0:
	                        _b.trys.push([0, 4, , 5]);
	                        this.showNotification('Swapping a course...');
	                        return [4 /*yield*/, this.removeMmCourseFromTermCommand(this.courseGroupId)];
	                    case 1:
	                        studentId = _b.sent();
	                        this.hideNotification();
	                        this.showNotification("Adding a course " + this.course.title + " to term.");
	                        return [4 /*yield*/, this.saveMmCourseToTermCommand(payload)];
	                    case 2:
	                        _b.sent();
	                        this.hideNotification();
	                        this.showNotification("Reloading terms data");
	                        return [4 /*yield*/, this.loadMmAcademicPlanCommand(studentId)];
	                    case 3:
	                        _b.sent();
	                        this.hideNotification();
	                        return [3 /*break*/, 5];
	                    case 4:
	                        _a = _b.sent();
	                        this.hideNotification();
	                        return [3 /*break*/, 5];
	                    case 5: return [2 /*return*/];
	                }
	            });
	        });
	    };
	    CourseTileMmComponentController.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    return CourseTileMmComponentController;
	}());
	var CourseTileMmComponent = /** @class */ (function () {
	    function CourseTileMmComponent() {
	        this.bindings = {
	            course: '<',
	            isFromTerm: '<',
	            isPlaceholderCourse: '<',
	            isPlannedCourseWithSlots: '<',
	            courseId: '<',
	            isPast: '<?',
	            isEditable: '<',
	            courseGroupId: '<?',
	            termId: '<?'
	        };
	        this.controller = CourseTileMmComponentController;
	        this.templateUrl =
	            'capability-ng-academic-planner/src/global/components/course_tile_component/course_tile_mm_component.html';
	    }
	    return CourseTileMmComponent;
	}());
	angular.module('capability-ng-academic-planner').component('courseTileMmComponent', new CourseTileMmComponent());


/***/ }),
/* 1237 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var CourseTileComponentContainerController = /** @class */ (function () {
	    function CourseTileComponentContainerController() {
	        this.changeLookWhenHover = true;
	    }
	    CourseTileComponentContainerController.prototype.initialize = function () {
	        this.changeLookWhenHover = !!this.changeLookWhenHover;
	    };
	    CourseTileComponentContainerController.prototype.$onInit = function () {
	        this.initialize();
	    };
	    CourseTileComponentContainerController.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    return CourseTileComponentContainerController;
	}());
	var CourseTileComponentContainer = /** @class */ (function () {
	    function CourseTileComponentContainer() {
	        this.transclude = true;
	        this.bindings = {
	            slot: '<',
	            changeLookWhenHover: '<'
	        };
	        this.controller = CourseTileComponentContainerController;
	        this.templateUrl =
	            'capability-ng-academic-planner/src/global/components/course_tile_component_container/course_tile_component_container.html';
	    }
	    return CourseTileComponentContainer;
	}());
	angular
	    .module('capability-ng-academic-planner')
	    .component('courseTileComponentContainer', new CourseTileComponentContainer());


/***/ }),
/* 1238 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_id_constants_1 = __webpack_require__(11);
	var CourseTileCourseMenuController = /** @class */ (function () {
	    function CourseTileCourseMenuController(ngAPUserModeConfig, routerHelper, saveMmCourseToTermCommand, ngAPProgramSlotHelper, ngAPMultiTermsQuery, ngAPDegreeMapQueryHelper, loadMmAcademicPlanCommand, removeMmCourseFromTermCommand) {
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.routerHelper = routerHelper;
	        this.saveMmCourseToTermCommand = saveMmCourseToTermCommand;
	        this.ngAPProgramSlotHelper = ngAPProgramSlotHelper;
	        this.ngAPMultiTermsQuery = ngAPMultiTermsQuery;
	        this.ngAPDegreeMapQueryHelper = ngAPDegreeMapQueryHelper;
	        this.loadMmAcademicPlanCommand = loadMmAcademicPlanCommand;
	        this.removeMmCourseFromTermCommand = removeMmCourseFromTermCommand;
	        this.isPlanned = false;
	        this.showMenu = true;
	        this.termId = ap_id_constants_1.INVALID_ID;
	        this.showRemoveTermOption = false;
	        this.showAddToTermOption = true;
	        this.addToTermMenuItemText = 'Add Course to Term';
	        this.popupMenuId = _4.uniqueId();
	    }
	    CourseTileCourseMenuController.prototype.isMovePreventedByMarkAsMet = function () {
	        var programSlot = this.genericSlot.programSlot;
	        if (!this.ngAPDegreeMapQueryHelper.isMarkAsMetFeatureEnabled() || _4.isEmpty(programSlot)) {
	            return false;
	        }
	        return this.ngAPProgramSlotHelper.isMarkedAsMet(this.genericSlot.programSlot);
	    };
	    CourseTileCourseMenuController.prototype.initialize = function () {
	        this.isAdvisor = this.ngAPUserModeConfig.isAdvisor();
	        this.isPlanned = false;
	        this.showMenu = false;
	        this.isFromTerm = _4.isBoolean(this.isFromTerm) ? this.isFromTerm : this.isFromTerm === 'true';
	        this.showRemoveTermOption = this.isFromTerm && this.course.status === 'PLANNED';
	        this.showAddToTermOption = this.isFromTerm ? this.course.status === 'PLANNED' : true;
	        this.addToTermMenuItemText = this.isFromTerm ? 'Move to Term' : 'Add Course to Term';
	    };
	    CourseTileCourseMenuController.prototype.$onInit = function () {
	        this.initialize();
	    };
	    CourseTileCourseMenuController.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    CourseTileCourseMenuController.prototype.onMouseHover = function (event) {
	        this.showMenu = true;
	    };
	    CourseTileCourseMenuController.prototype.removeCourse = function () {
	        var _this = this;
	        this._removeCourseFromTerm().then(function (studentId) {
	            _this.loadMmAcademicPlanCommand(studentId);
	        });
	    };
	    CourseTileCourseMenuController.prototype._removeCourseFromTerm = function () {
	        return this.removeMmCourseFromTermCommand(this.course.id);
	    };
	    CourseTileCourseMenuController.prototype._saveCourseToTerm = function (payload) {
	        return this.saveMmCourseToTermCommand(payload);
	    };
	    CourseTileCourseMenuController.prototype.moveToTerm = function (term) {
	        var _this = this;
	        var _a = this.course, courseId = _a.id, slotId = _a.slotId;
	        var payload = {
	            term: term.id,
	            program_slot: slotId,
	            course: this.isFromTerm ? this.course.course_id : courseId
	        };
	        if (this.isFromTerm) {
	            this._removeCourseFromTerm().then(function (studentId) {
	                _this._saveCourseToTerm(payload).then(function () {
	                    _this.loadMmAcademicPlanCommand(studentId);
	                });
	            });
	        }
	        else {
	            this._saveCourseToTerm(payload).then(function (studentId) {
	                _this.loadMmAcademicPlanCommand(studentId);
	            });
	        }
	    };
	    CourseTileCourseMenuController.prototype.showCourseDetails = function () {
	        var _courseNk = _4.get(this.course, 'nk', ap_id_constants_1.INVALID_ID);
	        var _courseDetailParams = {
	            courseNk: _courseNk,
	            courseId: this._courseId,
	            termId: this.termId,
	            plannedCourseId: this._plannedCourseId,
	            slotId: this.course.slotId,
	            showCourseDetailsMenu: true
	        };
	        this.routerHelper.findStateAndGo('.course_details', { courseDetailsParams: _courseDetailParams });
	    };
	    Object.defineProperty(CourseTileCourseMenuController.prototype, "_courseId", {
	        get: function () {
	            return this.isFromTerm ? this.course.course_id || ap_id_constants_1.INVALID_ID : this.course.id;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(CourseTileCourseMenuController.prototype, "_plannedCourseId", {
	        get: function () {
	            return this.isFromTerm ? this.course.id || ap_id_constants_1.INVALID_ID : ap_id_constants_1.INVALID_ID;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return CourseTileCourseMenuController;
	}());
	var CourseTileCourseMenu = /** @class */ (function () {
	    function CourseTileCourseMenu() {
	        this.bindings = {
	            course: '<',
	            isFromTerm: '<',
	            termId: '<'
	        };
	        this.controller = CourseTileCourseMenuController;
	        this.templateUrl =
	            'capability-ng-academic-planner/src/global/components/course_tile_menu/course_tile_course_menu.html';
	    }
	    return CourseTileCourseMenu;
	}());
	angular.module('capability-ng-academic-planner').component('courseTileCourseMenu', new CourseTileCourseMenu());


/***/ }),
/* 1239 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var CourseTileGroupMenuController = /** @class */ (function () {
	    function CourseTileGroupMenuController(ngAPUserModeConfig, ngAPMultiTermsQuery, loadMmAcademicPlanCommand, saveMmCourseGroupToTermCommand, removeMmCourseFromTermCommand, removeMmCourseGroupFromTermCommand, saveMmCourseToTermCommand) {
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.ngAPMultiTermsQuery = ngAPMultiTermsQuery;
	        this.loadMmAcademicPlanCommand = loadMmAcademicPlanCommand;
	        this.saveMmCourseGroupToTermCommand = saveMmCourseGroupToTermCommand;
	        this.removeMmCourseFromTermCommand = removeMmCourseFromTermCommand;
	        this.removeMmCourseGroupFromTermCommand = removeMmCourseGroupFromTermCommand;
	        this.saveMmCourseToTermCommand = saveMmCourseToTermCommand;
	        this.addToTermMenuItemText = 'Add Course to Term';
	        this.popupMenuId = _4.uniqueId();
	    }
	    CourseTileGroupMenuController.prototype.initialize = function () {
	        this.isAdvisor = this.ngAPUserModeConfig.isAdvisor();
	        this.isFromTerm = _4.isBoolean(this.isFromTerm) ? this.isFromTerm : this.isFromTerm === 'true';
	        this.addToTermMenuItemText = this.isFromTerm ? 'Move to Term' : 'Add to Term';
	    };
	    CourseTileGroupMenuController.prototype.$onInit = function () {
	        this.initialize();
	    };
	    CourseTileGroupMenuController.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    CourseTileGroupMenuController.prototype.removeFromTerm = function () {
	        var _this = this;
	        var _a = this.genericSlot, id = _a.id, type = _a.type;
	        if (_4.toLower(type) === 'course') {
	            this._removeCourseFromTerm(id).then(function (studentId) {
	                _this.loadMmAcademicPlanCommand(studentId);
	            });
	        }
	        else {
	            this._removeCourseGroupFromTerm(id).then(function (studentId) {
	                _this.loadMmAcademicPlanCommand(studentId);
	            });
	        }
	    };
	    CourseTileGroupMenuController.prototype._removeCourseFromTerm = function (id) {
	        return this.removeMmCourseFromTermCommand(id);
	    };
	    CourseTileGroupMenuController.prototype._removeCourseGroupFromTerm = function (id) {
	        return this.removeMmCourseGroupFromTermCommand(id);
	    };
	    CourseTileGroupMenuController.prototype._removeCoursegroupFromTermAndAddCoursegroupToAnotherTerm = function (termData) {
	        var _this = this;
	        var _a = this.genericSlot.id, plannedCourseGroupId = _a === void 0 ? 0 : _a;
	        var payload = {
	            term: _4.get(termData, 'id', 0),
	            program_slot: _4.get(this.genericSlot, 'slot_id', 0),
	            course_group: _4.get(this.genericSlot, 'courseGroupId', 0)
	        };
	        this._removeCourseGroupFromTerm(plannedCourseGroupId).then(function () {
	            _this.saveMmCourseGroupToTermCommand(payload).then(function (studentId) {
	                _this.loadMmAcademicPlanCommand(studentId);
	            });
	        });
	    };
	    CourseTileGroupMenuController.prototype._removeCourseFromTermAndAddCourseToAnotherTerm = function (term) {
	        var _this = this;
	        var plannedCourseId = _4.get(this.genericSlot, 'id', 0);
	        var payload = {
	            term: term.id,
	            course: _4.get(this.genericSlot, 'course_id', 0),
	            program_slot: _4.get(this.genericSlot, 'slot_id', 0)
	        };
	        this._removeCourseFromTerm(plannedCourseId).then(function (studentId) {
	            _this.saveMmCourseToTermCommand(payload).then(function () {
	                _this.loadMmAcademicPlanCommand(studentId);
	            });
	        });
	    };
	    CourseTileGroupMenuController.prototype.moveToTerm = function (term) {
	        var _this = this;
	        var isFromTerm = this.isFromTerm;
	        var _a = this.genericSlot, _b = _a.id, program_slot = _b === void 0 ? 0 : _b, type = _a.type, _c = _a.courseGroupId, courseGroupId = _c === void 0 ? 0 : _c, _d = _a.course_id, courseId = _d === void 0 ? 0 : _d;
	        var payload = {
	            program_slot: program_slot,
	            term: term.id
	        };
	        if (_4.toLower(type) === 'course') {
	            this._removeCourseFromTermAndAddCourseToAnotherTerm(term);
	        }
	        else {
	            payload['course_group'] = courseGroupId;
	            if (!isFromTerm) {
	                this.saveMmCourseGroupToTermCommand(payload).then(function (studentId) {
	                    _this.loadMmAcademicPlanCommand(studentId);
	                });
	            }
	            else {
	                this._removeCoursegroupFromTermAndAddCoursegroupToAnotherTerm(term);
	            }
	        }
	    };
	    return CourseTileGroupMenuController;
	}());
	var CourseTileGroupMenu = /** @class */ (function () {
	    function CourseTileGroupMenu() {
	        this.bindings = {
	            genericSlot: '<',
	            isFromTerm: '<'
	        };
	        this.controller = CourseTileGroupMenuController;
	        this.templateUrl =
	            'capability-ng-academic-planner/src/global/components/course_tile_menu/course_tile_group_menu.html';
	    }
	    return CourseTileGroupMenu;
	}());
	angular.module('capability-ng-academic-planner').component('courseTileGroupMenu', new CourseTileGroupMenu());


/***/ }),
/* 1240 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_generic_slot_servant_1 = __webpack_require__(18);
	var ap_min_grade_servant_1 = __webpack_require__(52);
	var CourseTileMenuController = /** @class */ (function () {
	    function CourseTileMenuController(removeCourseFromTermCommand, saveCourseToTermCommand, removeCourseFromTermAndAddCourseCommand, ngAPTermsQuery, ngAPUserModeConfig, ngComponentCommunicatorService, ngAPComponentStateModel, routerHelper, ngAPMarkAsMetStatusDatasource, markAsMetFacade, phxAxTitleAnnouncerDelegate, ngAPProgramSlotHelper, ngAPDegreeMapQueryHelper, appConfigModel) {
	        this.removeCourseFromTermCommand = removeCourseFromTermCommand;
	        this.saveCourseToTermCommand = saveCourseToTermCommand;
	        this.removeCourseFromTermAndAddCourseCommand = removeCourseFromTermAndAddCourseCommand;
	        this.ngAPTermsQuery = ngAPTermsQuery;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngAPComponentStateModel = ngAPComponentStateModel;
	        this.routerHelper = routerHelper;
	        this.ngAPMarkAsMetStatusDatasource = ngAPMarkAsMetStatusDatasource;
	        this.markAsMetFacade = markAsMetFacade;
	        this.phxAxTitleAnnouncerDelegate = phxAxTitleAnnouncerDelegate;
	        this.ngAPProgramSlotHelper = ngAPProgramSlotHelper;
	        this.ngAPDegreeMapQueryHelper = ngAPDegreeMapQueryHelper;
	        this.appConfigModel = appConfigModel;
	        this.isPlanned = false;
	        this.showMenu = true;
	        this.hasMetRequirements = true;
	        this.courseLock = false;
	        this.showAddToTermMenu = false;
	        this.showFlagCourseMenu = false;
	        this.showRemoveFromTermMenu = false;
	        this.openLockDialog = false;
	        this.lockDialogMode = 'lock';
	        this.addToTermMenuItemText = 'Add Course to Term';
	        this.isSlotInPlannedStatus = false;
	        this.isOpened = false;
	        this.shouldShowAddToTermMenu = false;
	        this.popupMenuId = _4.uniqueId();
	    }
	    CourseTileMenuController.prototype.isMovePreventedByMarkAsMet = function () {
	        var programSlot = this.genericSlot.programSlot;
	        if (!this.ngAPDegreeMapQueryHelper.isMarkAsMetFeatureEnabled() || _4.isEmpty(programSlot)) {
	            return false;
	        }
	        return this.ngAPProgramSlotHelper.isMarkedAsMet(this.genericSlot.programSlot);
	    };
	    CourseTileMenuController.prototype.menuItemText = function () {
	        var programSlot = this.genericSlot.programSlot;
	        var plannedCourse = this.genericSlot.plannedCourse;
	        var isInPastTerm = this.isCourseCompleted && this.genericSlot.isLockedByStatus;
	        var programSlotStatusEmpty = ap_min_grade_servant_1.APMinGradeServant.progSlotEmptyPlannedCourseCompleted(programSlot, plannedCourse);
	        if (programSlotStatusEmpty) {
	            return 'Add Course to Term';
	        }
	        return this.isPlanned && !(isInPastTerm && !this.isMinGradeMet) ? 'Move to Term' : 'Add Course to Term';
	    };
	    CourseTileMenuController.prototype.initialize = function () {
	        this.isAdvisor = this.ngAPUserModeConfig.isAdvisor();
	        this.isPlanned = ap_generic_slot_servant_1.APGenericSlotServant.isGenericSlotPlanned(this.genericSlot);
	        this.showMenu = false;
	        this.hasMetRequirements = !this._hasRequisiteProblem;
	        this.courseLock = _4.get(this.genericSlot, 'isLockedByAdvisor', false);
	        this.showAddToTermMenu = _4.get(this.genericSlot, 'shouldShowAddToTermMenu', false);
	        if (this.showAddToTermMenu && this.isMovePreventedByMarkAsMet()) {
	            this.showAddToTermMenu = false;
	        }
	        this.showRemoveFromTermMenu = this.isPlanned && !this.genericSlot.isLockedByStatus;
	        this.showFlagCourseMenu = this.isPlanned && this.isAdvisor;
	        this.addToTermMenuItemText = this.menuItemText();
	        this.isSlotInPlannedStatus = !_4.includes(['REGISTERED', 'IN_PROGRESS', 'COMPLETED', 'WAITLISTED'], this.genericSlot.status);
	    };
	    Object.defineProperty(CourseTileMenuController.prototype, "isCourseCompleted", {
	        get: function () {
	            return _4.get(this.genericSlot, 'isCourseCompleted', false);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(CourseTileMenuController.prototype, "isMinGradeMet", {
	        get: function () {
	            return _4.get(this.genericSlot, 'isMinGradeMet', false);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    CourseTileMenuController.prototype.$onInit = function () {
	        this.initialize();
	    };
	    Object.defineProperty(CourseTileMenuController.prototype, "lockTooltipText", {
	        get: function () {
	            if (!this.courseLock) {
	                return '';
	            }
	            var termName = _4.get(_4.find(this.ngAPTermsQuery.result.plannedTerms, { id: this.genericSlot.termId }), 'name');
	            return "This course is locked and will be unlocked at the end of the " + termName + " term.";
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(CourseTileMenuController.prototype, "_hasRequisiteProblem", {
	        get: function () {
	            return _4.get(this.genericSlot, 'plannedCourse._hasRequisiteProblem', false);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    CourseTileMenuController.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    CourseTileMenuController.prototype.openFlagPopup = function () {
	        return this.routerHelper.findStateAndGo('.course_flag_dialog', { genericSlot: this.genericSlot });
	    };
	    CourseTileMenuController.prototype.showCourseDetails = function (event) {
	        var courseNk = this.genericSlot.course.nk;
	        var programSlotId = this.getSlot().id;
	        var slotType = this.getSlot().slot_type;
	        var termId = this.genericSlot.termId;
	        var title = this.genericSlot.course._title;
	        var courseDetails = {
	            courseNk: courseNk,
	            programSlotId: programSlotId,
	            slotType: slotType,
	            termId: termId,
	            title: title
	        };
	        return this.routerHelper.findStateAndGo('.course_details', { courseDetails: courseDetails });
	    };
	    CourseTileMenuController.prototype.getSlot = function () {
	        if (_4.isEmpty(this.genericSlot.programSlot)) {
	            return {
	                id: null,
	                slot_type: null
	            };
	        }
	        return {
	            id: this.genericSlot.programSlot['id'] || null,
	            slot_type: this.genericSlot.programSlot['slot_type']
	        };
	    };
	    CourseTileMenuController.prototype.removeCourse = function () {
	        var _this = this;
	        if (!this.isPlanned) {
	            return;
	        }
	        this.removeCourseFromTermCommand(this.genericSlot.programSlot, this.genericSlot.plannedCourse).then(function () {
	            var termTitle = _4.get(_4.find(_this.ngAPTermsQuery.result.plannedTerms, { id: _this.genericSlot.termId }), 'name');
	            _this.phxAxTitleAnnouncerDelegate.announceChange(_4.get(_this.genericSlot, 'plannedCourse._course.title') + " was removed from " + termTitle);
	        });
	    };
	    CourseTileMenuController.prototype.onMouseHover = function (event) {
	        this.showMenu = true;
	        var showLockOption = !_4.isEmpty(this.genericSlot.plannedCourse);
	        if (!showLockOption) {
	            return;
	        }
	        this.showLockCourseOption = this.showMenu && !this.courseLock && this.isSlotInPlannedStatus && this.isAdvisor;
	        this.showUnlockCourseOption = this.showMenu && this.courseLock && this.isSlotInPlannedStatus && this.isAdvisor;
	    };
	    Object.defineProperty(CourseTileMenuController.prototype, "shouldReplanCourse", {
	        get: function () {
	            return this.genericSlot.isCourseCompleted && !this.genericSlot.isMinGradeMet;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    CourseTileMenuController.prototype.moveToTerm = function (term) {
	        var _this = this;
	        if (this.isPlanned && !this.shouldReplanCourse) {
	            this.removeCourseFromTermAndAddCourseCommand(this.genericSlot.plannedCourse, this.genericSlot.course, this.genericSlot.programSlot || null, this.genericSlot.termId, term.id).then(function (response) {
	                _this.phxAxTitleAnnouncerDelegate.announceChange("course " + _this.genericSlot.course.title + " was moved to " + term.name);
	            });
	        }
	        else {
	            var slot = this.getSlot();
	            var is_devreq = this.genericSlot.programSlot.is_devreq || false;
	            this.saveCourseToTermCommand(this.genericSlot.course.id, term.id, slot, is_devreq).then(function (response) {
	                _this.ngComponentCommunicatorService.publish('CLOSE_LARGE_COURSE_GROUP_PANEL');
	                if (_4.isNumber(_this.genericSlot.programSlot.id)) {
	                    _this.ngAPComponentStateModel.courseGroupClose(_this.genericSlot.programSlot.id);
	                }
	                _this.phxAxTitleAnnouncerDelegate.announceChange(_this.genericSlot.title + " added to " + term.name);
	            });
	        }
	    };
	    CourseTileMenuController.prototype.openLockUnlockDialog = function (mode) {
	        return this.routerHelper.findStateAndGo('.lock_course', {
	            genericSlot: this.genericSlot,
	            type: mode
	        });
	    };
	    CourseTileMenuController.prototype.menuOpened = function (event) {
	        this.isOpened = event.detail.value;
	    };
	    return CourseTileMenuController;
	}());
	var CourseTileMenu = /** @class */ (function () {
	    function CourseTileMenu() {
	        this.bindings = {
	            genericSlot: '<',
	            slot: '<'
	        };
	        this.controller = CourseTileMenuController;
	        this.templateUrl = 'capability-ng-academic-planner/src/global/components/course_tile_menu/course_tile_menu.html';
	    }
	    return CourseTileMenu;
	}());
	angular.module('capability-ng-academic-planner').component('courseTileMenu', new CourseTileMenu());


/***/ }),
/* 1241 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_type_1 = __webpack_require__(17);
	var APDegreeTitle = /** @class */ (function () {
	    function APDegreeTitle(ngAPModel, ngAPStudentDetailsQuery, accountModel, ngAPUserModeConfig) {
	        this.ngAPModel = ngAPModel;
	        this.ngAPStudentDetailsQuery = ngAPStudentDetailsQuery;
	        this.accountModel = accountModel;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.showProgramDetailsDialog = false;
	        this.program = _4.head(_4.toArray(this.ngAPModel.read().program));
	    }
	    Object.defineProperty(APDegreeTitle.prototype, "__studentName", {
	        get: function () {
	            var firstName = _4.get(this.ngAPStudentDetailsQuery, 'result.first_name', '');
	            var lastName = _4.get(this.ngAPStudentDetailsQuery, 'result.last_name', '');
	            return firstName + " " + lastName;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    APDegreeTitle.prototype.$onChanges = function () {
	        this.studentName = this.ngAPUserModeConfig.isAdvisor()
	            ? this.__studentName
	            : _4.get(this.accountModel, 'fullname', '');
	        this.studentNk = this.ngAPUserModeConfig.isAdvisor()
	            ? _4.get(this.ngAPStudentDetailsQuery, 'result.nk', '')
	            : _4.get(this.accountModel, 'student_nk', '');
	        this.programTitle = this.program.name + " " + this.program.short_credential;
	        this.creditsTitle = utility_ts_type_1.TypeUtility.NumberUtility.stripTrailingZeroes(this.program.credits) + " Credits";
	    };
	    APDegreeTitle.prototype.showProgramDetails = function () {
	        this.showProgramDetailsDialog = true;
	    };
	    APDegreeTitle.prototype.close = function () {
	        this.showProgramDetailsDialog = false;
	    };
	    return APDegreeTitle;
	}());
	exports.APDegreeTitle = APDegreeTitle;
	var DegreeTitleComponent = /** @class */ (function () {
	    function DegreeTitleComponent() {
	        this.controller = APDegreeTitle;
	        this.bindings = {};
	        this.templateUrl = 'capability-ng-academic-planner/src/global/components/degree_title/degree_title.html';
	    }
	    return DegreeTitleComponent;
	}());
	angular.module('capability-ng-academic-planner').component('degreeTitle', new DegreeTitleComponent());


/***/ }),
/* 1242 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var GoalSetsTitleController = /** @class */ (function () {
	    function GoalSetsTitleController(ngAPGoalSetsQuery, loadGoalsCommand, ngAPGoalsQuery) {
	        this.ngAPGoalSetsQuery = ngAPGoalSetsQuery;
	        this.loadGoalsCommand = loadGoalsCommand;
	        this.ngAPGoalsQuery = ngAPGoalsQuery;
	        this.showGoals = false;
	        this.goalSetTitle = '';
	    }
	    GoalSetsTitleController.prototype.getGoals = function (goal) {
	        var _this = this;
	        this.goalSetTitle = "" + goal.title;
	        this.loadGoalsCommand(goal.id).then(function () {
	            _this.showGoals = true;
	        });
	    };
	    GoalSetsTitleController.prototype.close = function () {
	        this.showGoals = false;
	    };
	    return GoalSetsTitleController;
	}());
	exports.GoalSetsTitleController = GoalSetsTitleController;
	var GoalSetsTitleComponent = /** @class */ (function () {
	    function GoalSetsTitleComponent() {
	        this.controller = GoalSetsTitleController;
	        this.bindings = {};
	        this.templateUrl = 'capability-ng-academic-planner/src/global/components/goal_sets_title/goal_sets_title.html';
	    }
	    return GoalSetsTitleComponent;
	}());
	angular.module('capability-ng-academic-planner').component('goalSetsTitle', new GoalSetsTitleComponent());


/***/ }),
/* 1243 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .factory('loadMarkAsMetListCommand', function (defineCommandORM, $http, ngAPNotificationDelegate, markAsMetUnmetUrl, ngAPMarkAsMetStatusDatasource, log) {
	    return defineCommandORM('loadMarkAsMetListCommand', function (deferred) {
	        $http
	            .get(markAsMetUnmetUrl() + "_programslot_status/")
	            .then(function (_a) {
	            var data = _a.data;
	            ngAPMarkAsMetStatusDatasource.clear().write(data);
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            ngAPNotificationDelegate.error("Unable to load mark as met statuses: " + e.data.detail);
	            log.error(e);
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1244 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .factory('markAsMetSlotCommand', function (defineCommandORM, $http, markAsMetUnmetUrl, ngAPNotificationDelegate, log, ngAPMarkAsMetStatusDatasource, ngMarkAsMetSlotCommandParamStrategy, updateProgramSlotCommand, loadCommentCommand) {
	    return defineCommandORM('markAsMetSlotCommand', function (deferred, slot, comment) {
	        var mamUrl = markAsMetUnmetUrl() + "_programslot_status/";
	        var params = ngMarkAsMetSlotCommandParamStrategy.getParams(slot, comment);
	        var commentUrl = ngMarkAsMetSlotCommandParamStrategy.getCommentUrl();
	        var markAsMetName = 'planningMarkAsMet';
	        ngAPNotificationDelegate.info({
	            content: "<div l-kind=\"hort\" l-align=\"center\" l-width-fixed><hi-indicator theme=\"white\" size='small' class=\"mrm\"></hi-indicator>Marking as met</div>",
	            name: markAsMetName
	        });
	        $http
	            .post(mamUrl, params)
	            .then(function (_a) {
	            var data = _a.data;
	            ngAPMarkAsMetStatusDatasource.put(data);
	            return loadCommentCommand(commentUrl);
	        })
	            .then(function () {
	            return updateProgramSlotCommand(slot.programSlot.id, {
	                status: params.status
	            });
	        })
	            .then(function () {
	            ngAPNotificationDelegate.dismissAlertByName(markAsMetName);
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            ngAPNotificationDelegate.dismissAlertByName(markAsMetName);
	            ngAPNotificationDelegate.error("Unable to mark as met: " + e.data.detail);
	            log.error(e);
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1245 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .factory('setMarkAsMetSlotCommand', function (defineCommandORM, ngMarkAsMetSlotModel) {
	    return defineCommandORM('setMarkAsMetSlotCommand', function (deferred, slot) {
	        ngMarkAsMetSlotModel.clear().write({ currentSlot: slot });
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1246 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ap_program_slot_servant_1 = __webpack_require__(15);
	var MarkAsMetDialog = /** @class */ (function () {
	    function MarkAsMetDialog(ngMarkAsMetDialogQuery, markAsMetSlotCommand, routerHelper, ngAPComponentStateModel) {
	        this.ngMarkAsMetDialogQuery = ngMarkAsMetDialogQuery;
	        this.markAsMetSlotCommand = markAsMetSlotCommand;
	        this.routerHelper = routerHelper;
	        this.ngAPComponentStateModel = ngAPComponentStateModel;
	        this.showDialog = true;
	        this.comment = '';
	    }
	    MarkAsMetDialog.prototype.openedChanged = function ($event) {
	        this.showDialog = $event.detail.value;
	        if (!this.showDialog) {
	            return this.routerHelper.findStateAndGo('^.default');
	        }
	        return false;
	    };
	    MarkAsMetDialog.prototype.markAsMet = function () {
	        var _this = this;
	        var slot = this.ngMarkAsMetDialogQuery.result.genericSlot;
	        if (!slot) {
	            return;
	        }
	        this.markAsMetSlotCommand(slot, this.comment).then(function () {
	            _this.closeDialog();
	            if (ap_program_slot_servant_1.APProgramSlotServant.isCourseProgramSlot(slot.programSlot)) {
	                return;
	            }
	            _this.ngAPComponentStateModel.courseGroupClose(slot.programSlot.id);
	        });
	    };
	    MarkAsMetDialog.prototype.closeDialog = function () {
	        this.showDialog = false;
	    };
	    return MarkAsMetDialog;
	}());
	angular.module('capability-ng-academic-planner').component('markAsMetDialog', {
	    templateUrl: 'capability-ng-academic-planner/src/global/components/mark_as_met/components/dialog/mark_as_met_dialog.html',
	    controller: MarkAsMetDialog
	});


/***/ }),
/* 1247 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var mark_as_met_status_builder_1 = __webpack_require__(487);
	angular.module('capability-ng-academic-planner').factory('ngAPMarkAsMetStatusDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: mark_as_met_status_builder_1.APMarkAsMetStatus,
	        updateMode: 'merge'
	    });
	});


/***/ }),
/* 1248 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MarkAsMetFacade = /** @class */ (function () {
	    function MarkAsMetFacade(routerHelper) {
	        this.routerHelper = routerHelper;
	    }
	    MarkAsMetFacade.prototype.gotoMarkAsMetState = function (genericSlot, stateName) {
	        return this.routerHelper.findStateAndGo(stateName, { genericSlot: genericSlot });
	    };
	    MarkAsMetFacade.prototype.markAsMet = function (genericSlot) {
	        var markAsMetStateName = '.mark_as_met';
	        this.gotoMarkAsMetState(genericSlot, markAsMetStateName);
	    };
	    MarkAsMetFacade.prototype.markAsUnMet = function (genericSlot) {
	        var markAsUnMetStateName = '.mark_as_unmet';
	        this.gotoMarkAsMetState(genericSlot, markAsUnMetStateName);
	    };
	    return MarkAsMetFacade;
	}());
	exports.MarkAsMetFacade = MarkAsMetFacade;
	angular.module('capability-ng-academic-planner').service('markAsMetFacade', MarkAsMetFacade);


/***/ }),
/* 1249 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-academic-planner').factory('ngMarkAsMetSlotModel', function () {
	    return new utility_ts_orm_1.Model({
	        currentSlot: undefined
	    });
	});


/***/ }),
/* 1250 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var MarkAsMetDialogQuery = /** @class */ (function () {
	    function MarkAsMetDialogQuery(ngAPUserModeConfig, ngMarkAsMetSlotModel, ngAPAdvisorText, phxFeatureConfiguration) {
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.ngMarkAsMetSlotModel = ngMarkAsMetSlotModel;
	        this.ngAPAdvisorText = ngAPAdvisorText;
	        this.phxFeatureConfiguration = phxFeatureConfiguration;
	        utility_ts_orm_1.ORMMediator.registerQuery(this, ngMarkAsMetSlotModel);
	    }
	    MarkAsMetDialogQuery.prototype.run = function () {
	        var genericSlot = this.ngMarkAsMetSlotModel.read().currentSlot;
	        if (!genericSlot) {
	            this.__result = {
	                title: '',
	                description: '',
	                reasonText: '',
	                genericSlot: genericSlot
	            };
	            return this;
	        }
	        var title = "Mark as Met: " + _4.get(genericSlot, 'title');
	        this.__result = {
	            title: title,
	            genericSlot: genericSlot,
	            reasonText: "<span class=\"text-bold\">Reason</span> (visible to student). \n            Enter the reason you are marking this requirement as met."
	        };
	        var actionFor = this.ngAPUserModeConfig.isStudent() ? 'you have' : 'student has';
	        this.__result.description = "You are about to mark <span class=\"text-bold\">" + genericSlot.title + "</span> as met. \n            This means " + actionFor + " satisfied this requirement in another way from the options identified in Navigate360. \n            Marking an item as met does not affect " + (this.ngAPUserModeConfig.isStudent() ? 'your' : '') + " actual program progress.";
	        if (this.ngAPUserModeConfig.isStudent()) {
	            this.__result.reasonText = "<span class=\"text-bold\">Reason</span>. Enter the reason you are marking this requirement as met.";
	            var advisorText = this.ngAPAdvisorText.advisorLabel;
	            this.__result.description += "Please <schedule-appointments-link button-text=\"meet with your " + advisorText + "\" aesthetic=\"link\"></schedule-appointments-link> to be sure that you are on track to meet the requirements for your program.";
	        }
	        return this;
	    };
	    Object.defineProperty(MarkAsMetDialogQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return MarkAsMetDialogQuery;
	}());
	exports.MarkAsMetDialogQuery = MarkAsMetDialogQuery;
	angular.module('capability-ng-academic-planner').service('ngMarkAsMetDialogQuery', MarkAsMetDialogQuery);


/***/ }),
/* 1251 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_strategy_1 = __webpack_require__(6);
	var user_mode_api_strategy_1 = __webpack_require__(28);
	var MarkAsMetSlotCommandParamStrategy = /** @class */ (function () {
	    function MarkAsMetSlotCommandParamStrategy(accountModel, $state, ngFeedbackSuggestedPlanModel) {
	        this.accountModel = accountModel;
	        this.$state = $state;
	        this.ngFeedbackSuggestedPlanModel = ngFeedbackSuggestedPlanModel;
	    }
	    MarkAsMetSlotCommandParamStrategy.prototype.getParams = function (slot, comment) {
	        var _this = this;
	        var pgmSlotStatus = 'MET';
	        var params = {
	            program_slot: slot.programSlot.id,
	            status: pgmSlotStatus,
	            comment: {
	                message: comment
	            }
	        };
	        var roleType = user_mode_api_strategy_1.RoleTypeStrategy.evaluate(this.$state);
	        var additionalParams = new utility_ts_strategy_1.Strategy({
	            student: function () { return ({ student: _this.accountModel.student_nk }); },
	            advisor: function () { return ({ suggested_plan: _this.ngFeedbackSuggestedPlanModel.read().id }); }
	        });
	        return _4.merge({}, params, additionalParams.get(roleType)());
	    };
	    MarkAsMetSlotCommandParamStrategy.prototype.getCommentUrl = function () {
	        var roleType = user_mode_api_strategy_1.RoleTypeStrategy.evaluate(this.$state);
	        var additionalParams = new utility_ts_strategy_1.Strategy({
	            student: "/coreuser/comment/",
	            advisor: "/academicplan/suggested_plan/" + this.ngFeedbackSuggestedPlanModel.read().id + "/comment/"
	        });
	        return additionalParams.get(roleType);
	    };
	    return MarkAsMetSlotCommandParamStrategy;
	}());
	exports.MarkAsMetSlotCommandParamStrategy = MarkAsMetSlotCommandParamStrategy;
	angular
	    .module('capability-ng-academic-planner')
	    .service('ngMarkAsMetSlotCommandParamStrategy', MarkAsMetSlotCommandParamStrategy);


/***/ }),
/* 1252 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var plan_feedback_servant_1 = __webpack_require__(13);
	angular.module('capability-ng-academic-planner').factory('markAsMetUnmetUrl', function (ngAPUserModeConfig, ngFeedbackSuggestedPlanModel) {
	    return function () {
	        var isEditMode = !plan_feedback_servant_1.PlanFeedbackServant.isPlanReadOnlyMode(ngFeedbackSuggestedPlanModel.read());
	        var urlEnd = ngAPUserModeConfig.isAdvisor() && isEditMode ? 'suggested' : 'student';
	        return "academicplan/" + urlEnd;
	    };
	});


/***/ }),
/* 1253 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('deleteMarkAsMetEntryCommand', function (defineCommandORM, $http, markAsMetUnmetUrl, ngAPNotificationDelegate, updateProgramSlotCommand, log, ngAPMarkAsMetStatusDatasource) {
	    return defineCommandORM('deleteMarkAsMetEntryCommand', function (deferred, slot) {
	        var statusEntry = _4.first(ngAPMarkAsMetStatusDatasource.query(function (_statusEntry) { return _statusEntry.program_slot === slot.programSlot.id; }));
	        if (!statusEntry) {
	            ngAPNotificationDelegate.error("Unable to mark as unmet");
	            log.error("status entry didn't find in datasource");
	            deferred.reject();
	            return;
	        }
	        var url = markAsMetUnmetUrl() + "_programslot_status/" + statusEntry.id;
	        $http
	            .delete(url)
	            .then(function (_a) {
	            var data = _a.data;
	            ngAPMarkAsMetStatusDatasource.del(statusEntry.id);
	            return updateProgramSlotCommand(slot.programSlot.id, {
	                status: ''
	            });
	        })
	            .then(function () { return deferred.resolve(); })
	            .catch(function (e) {
	            ngAPNotificationDelegate.error("Unable to mark as unmet: " + e.data.detail);
	            log.error(e);
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1254 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MarkAsUnmetDialog = /** @class */ (function () {
	    function MarkAsUnmetDialog(deleteMarkAsMetEntryCommand, routerHelper) {
	        this.deleteMarkAsMetEntryCommand = deleteMarkAsMetEntryCommand;
	        this.routerHelper = routerHelper;
	        this.showDialog = true;
	        this.comment = '';
	    }
	    MarkAsUnmetDialog.prototype.openedChanged = function ($event) {
	        this.showDialog = $event.detail.value;
	        if (!this.showDialog) {
	            this.routerHelper.findStateAndGo('^.default');
	        }
	    };
	    MarkAsUnmetDialog.prototype.markAsUnmet = function () {
	        var _this = this;
	        this.deleteMarkAsMetEntryCommand(this.genericSlot).then(function () { return _this.closeDialog(); });
	    };
	    MarkAsUnmetDialog.prototype.closeDialog = function () {
	        this.showDialog = false;
	    };
	    return MarkAsUnmetDialog;
	}());
	angular.module('capability-ng-academic-planner').component('markAsUnmetDialog', {
	    templateUrl: 'capability-ng-academic-planner/src/global/components/mark_as_unmet/components/mark_as_unmet_dialog/mark_as_unmet_dialog.html',
	    controller: MarkAsUnmetDialog,
	    bindings: {
	        genericSlot: '<'
	    }
	});


/***/ }),
/* 1255 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var NcrController = /** @class */ (function () {
	    function NcrController(saveCourseGroupToTermCommand, removeCourseGroupFromTermCommand, removeCourseGroupFromTermAndAddCourseGroupCommand, markAsMetFacade, ngAPTermsQuery) {
	        this.saveCourseGroupToTermCommand = saveCourseGroupToTermCommand;
	        this.removeCourseGroupFromTermCommand = removeCourseGroupFromTermCommand;
	        this.removeCourseGroupFromTermAndAddCourseGroupCommand = removeCourseGroupFromTermAndAddCourseGroupCommand;
	        this.markAsMetFacade = markAsMetFacade;
	        this.ngAPTermsQuery = ngAPTermsQuery;
	    }
	    NcrController.prototype.$onInit = function () {
	        this.menuId = _4.uniqueId();
	    };
	    NcrController.prototype.addPlaceholder = function (ncr, term) {
	        this.saveCourseGroupToTermCommand({
	            course_group: ncr.programSlot.course_group,
	            term: term.id,
	            program_slot: ncr.programSlot.id
	        });
	    };
	    NcrController.prototype.moveAction = function (ncr, term) {
	        if (!_4.isEmpty(ncr.plannedCourseGroup)) {
	            this.removeCourseGroupFromTermAndAddCourseGroupCommand(ncr.plannedCourseGroup, ncr.plannedCourseGroup, term.id);
	        }
	    };
	    NcrController.prototype.removeAction = function (ncr) {
	        this.removeCourseGroupFromTermCommand(ncr.programSlot, ncr.plannedCourseGroup.id);
	    };
	    NcrController.prototype.termItemClick = function (term) {
	        this.ncr.isPlanned ? this.moveAction(this.ncr, term) : this.addPlaceholder(this.ncr, term);
	    };
	    return NcrController;
	}());
	var NCRMenu = /** @class */ (function () {
	    function NCRMenu() {
	        this.bindings = {
	            ncr: '<'
	        };
	        this.controller = NcrController;
	        this.templateUrl = 'capability-ng-academic-planner/src/global/components/ncr_menu/ncr_menu.html';
	    }
	    return NCRMenu;
	}());
	angular.module('capability-ng-academic-planner').component('ncrMenu', new NCRMenu());


/***/ }),
/* 1256 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(7);
	var ap_id_constants_1 = __webpack_require__(11);
	var NcrTile = /** @class */ (function () {
	    function NcrTile() {
	        this.expanded = false;
	        this.disableSlot = false;
	        this.showIcon = false;
	        this.UIDAppend = _4.uniqueId();
	    }
	    NcrTile.prototype.getIconPosition = function () {
	        return this.expanded ? '90' : '0';
	    };
	    NcrTile.prototype.$onChanges = function () {
	        this.id = this.slot.programSlot.id;
	        var noTermAssigned = this.slot.termId === ap_id_constants_1.INVALID_ID;
	        this.showIcon = !noTermAssigned;
	        this.isEditable = _4.isBoolean(this.isEditable) ? this.isEditable : this.isEditable === 'true';
	        this.programSlotId = this.slot.programSlot.id;
	        this.theme = this.slot.disableSlot ? 'gray' : 'primary';
	    };
	    NcrTile.prototype.toggleExpand = function () {
	        if (this.slot.disableSlot) {
	            return;
	        }
	        this.expanded = !this.expanded;
	    };
	    return NcrTile;
	}());
	exports.NcrTile = NcrTile;
	angular.module('capability-ng-academic-planner').component('ncrTile', {
	    templateUrl: 'capability-ng-academic-planner/src/global/components/ncr_tile/ncr_tile.html',
	    bindings: {
	        slot: '<',
	        term: '<',
	        isEditable: '<?'
	    },
	    transclude: true,
	    controller: NcrTile
	});


/***/ }),
/* 1257 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var APPopupHandler = /** @class */ (function () {
	    function APPopupHandler($state, $element, phxFocusDelegate, phxAxReturnFocusFactory) {
	        this.$state = $state;
	        this.$element = $element;
	        this.phxFocusDelegate = phxFocusDelegate;
	        this.phxAxReturnFocusFactory = phxAxReturnFocusFactory;
	        this.title = '';
	        this.isOpened = true;
	    }
	    APPopupHandler.prototype.openedChanged = function () {
	        this.$state.__goToPrevious__();
	        this.phxFocusDelegate.focus(this.phxAxReturnFocusFactory.getFocusId());
	    };
	    APPopupHandler.prototype.closeDialog = function () {
	        this.isOpened = false;
	    };
	    return APPopupHandler;
	}());
	exports.APPopupHandler = APPopupHandler;
	angular.module('capability-ng-academic-planner').component('popupComponent', {
	    templateUrl: 'capability-ng-academic-planner/src/global/components/popup_component/popup_component.html',
	    bindings: {
	        title: '@'
	    },
	    transclude: {
	        'action-buttons': 'actionButtons'
	    },
	    controller: APPopupHandler
	});


/***/ }),
/* 1258 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var RemoveClassOnLeaveController = /** @class */ (function () {
	    function RemoveClassOnLeaveController($rootScope, $state, $element, $scope, $attrs) {
	        this.$rootScope = $rootScope;
	        this.$state = $state;
	        this.$element = $element;
	        this.$scope = $scope;
	        this.$attrs = $attrs;
	    }
	    return RemoveClassOnLeaveController;
	}());
	exports.RemoveClassOnLeaveController = RemoveClassOnLeaveController;
	function RemoveClassOnLeave() {
	    return {
	        restrict: 'A',
	        controller: RemoveClassOnLeaveController
	    };
	}
	angular.module('capability-ng-academic-planner').directive('removeClassOnLeave', RemoveClassOnLeave);


/***/ }),
/* 1259 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ScheduledCourseTileCircleController = /** @class */ (function () {
	    function ScheduledCourseTileCircleController() {
	    }
	    return ScheduledCourseTileCircleController;
	}());
	var ScheduledCourseTileCircle = /** @class */ (function () {
	    function ScheduledCourseTileCircle() {
	        this.bindings = {
	            course: '=',
	            circleBackgroundColor: '<'
	        };
	        this.controller = ScheduledCourseTileCircleController;
	        this.templateUrl =
	            'capability-ng-academic-planner/src/global/components/scheduled_course_tile_circle/scheduled_course_tile_circle.html';
	    }
	    return ScheduledCourseTileCircle;
	}());
	angular
	    .module('capability-ng-academic-planner')
	    .component('scheduledCourseTileCircle', new ScheduledCourseTileCircle());


/***/ }),
/* 1260 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular.module('capability-ng-academic-planner').factory('loadAdvisorStudentDetailsCommand', function (ngApStudentDetailsModel, $http, defineCommand, log, ngAPNotificationDelegate) {
	    return defineCommand('loadAdvisorStudentDetailsCommand', function (deferred, studentNk) {
	        if (studentNk === void 0) { studentNk = ''; }
	        return $http
	            .get('/cat/student/profile/', {
	            params: {
	                'student-id': studentNk
	            }
	        })
	            .then(function (response) { return ngApStudentDetailsModel.clear().write(response.data.student); })
	            .catch(function (e) {
	            ngAPNotificationDelegate.error("Unable to get student details: " + e.data.detail);
	            log.error(e);
	            deferred.reject(e.data);
	        });
	    });
	});


/***/ }),
/* 1261 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var lodash4_1 = __webpack_require__(1);
	var ApStudentDetailsModel = /** @class */ (function () {
	    function ApStudentDetailsModel() {
	        this.clear();
	    }
	    ApStudentDetailsModel.prototype.read = function () {
	        return this;
	    };
	    ApStudentDetailsModel.prototype.clear = function () {
	        return this;
	    };
	    ApStudentDetailsModel.prototype.write = function (model) {
	        lodash4_1.merge(this, model);
	        return this;
	    };
	    ApStudentDetailsModel.build = function () {
	        return new ApStudentDetailsModel();
	    };
	    return ApStudentDetailsModel;
	}());
	exports.ApStudentDetailsModel = ApStudentDetailsModel;
	angular
	    .module('capability-ng-academic-planner')
	    .factory('ngApStudentDetailsModel', function () { return ApStudentDetailsModel.build(); });


/***/ }),
/* 1262 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var APStudentDetailsQuery = /** @class */ (function () {
	    function APStudentDetailsQuery(QueryMediator, ngApStudentDetailsModel) {
	        this.ngApStudentDetailsModel = ngApStudentDetailsModel;
	        QueryMediator.registerQuery(this, ngApStudentDetailsModel);
	    }
	    APStudentDetailsQuery.prototype.run = function () {
	        this._result = this.ngApStudentDetailsModel.read();
	        return this;
	    };
	    Object.defineProperty(APStudentDetailsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APStudentDetailsQuery;
	}());
	exports.APStudentDetailsQuery = APStudentDetailsQuery;
	angular.module('capability-ng-academic-planner').service('ngAPStudentDetailsQuery', APStudentDetailsQuery);


/***/ }),
/* 1263 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var utility_ts_type_1 = __webpack_require__(17);
	var plan_feedback_servant_1 = __webpack_require__(13);
	var StudentPlanProgress = /** @class */ (function () {
	    function StudentPlanProgress(ngAPStudentDetailsQuery, ngAPTermsQuery, ngAPAdvisorSentFeedbackTermsQuery, ngAPModel, ngAPNotificationDelegate, loadPlanFeedbackCommand, navigateIfPlanBlockedCommand, $element, $state, ngAPAdvisorHeaderDetailsQuery) {
	        this.ngAPStudentDetailsQuery = ngAPStudentDetailsQuery;
	        this.ngAPTermsQuery = ngAPTermsQuery;
	        this.ngAPAdvisorSentFeedbackTermsQuery = ngAPAdvisorSentFeedbackTermsQuery;
	        this.ngAPModel = ngAPModel;
	        this.ngAPNotificationDelegate = ngAPNotificationDelegate;
	        this.loadPlanFeedbackCommand = loadPlanFeedbackCommand;
	        this.navigateIfPlanBlockedCommand = navigateIfPlanBlockedCommand;
	        this.$element = $element;
	        this.$state = $state;
	        this.ngAPAdvisorHeaderDetailsQuery = ngAPAdvisorHeaderDetailsQuery;
	        this.queries = {
	            feedback: this.ngAPAdvisorSentFeedbackTermsQuery
	        };
	        this.models = {
	            program: _4.head(_4.toArray(this.ngAPModel.read().program))
	        };
	    }
	    StudentPlanProgress.prototype.$onInit = function () {
	        this.currentPlan = tslib_1.__spreadArrays(this.ngAPAdvisorSentFeedbackTermsQuery.result.termsAndGenericSlots);
	        this.studentName = this.ngAPStudentDetailsQuery.result.first_name;
	        this.programTitle = this.models.program.name + " " + this.models.program.short_credential;
	        this.creditsTitle = "| " + utility_ts_type_1.TypeUtility.NumberUtility.stripTrailingZeroes(this.models.program.credits) + " Credit(s)";
	        this.showCompletedPopup = plan_feedback_servant_1.PlanFeedbackServant.isPlanReadOnlyMode(this.ngAPAdvisorHeaderDetailsQuery.result);
	    };
	    StudentPlanProgress.prototype.loadUpdatesFromStudent = function () {
	        var _this = this;
	        this.navigateIfPlanBlockedCommand().then(function () {
	            _this.showCompletedPopup = plan_feedback_servant_1.PlanFeedbackServant.isPlanReadOnlyMode(_this.ngAPAdvisorHeaderDetailsQuery.result);
	            if (_this.showCompletedPopup) {
	                return;
	            }
	            _this.loadPlanFeedbackCommand().then(function () {
	                var defaultTimeout = 4000;
	                if (!angular.equals(_this.currentPlan, _this.ngAPAdvisorSentFeedbackTermsQuery.result.termsAndGenericSlots)) {
	                    _this.currentPlan = tslib_1.__spreadArrays(_this.ngAPAdvisorSentFeedbackTermsQuery.result.termsAndGenericSlots);
	                    _this.ngAPNotificationDelegate.success({
	                        content: "Updated student's plan",
	                        timeout: defaultTimeout
	                    });
	                }
	                else {
	                    _this.ngAPNotificationDelegate.info({
	                        content: "No changes to the plan",
	                        timeout: defaultTimeout
	                    });
	                }
	            });
	        });
	    };
	    StudentPlanProgress.prototype.viewHistory = function () {
	        this.$state.go('ap-advisor.changelog');
	    };
	    StudentPlanProgress.prototype.closeModal = function () {
	        this.$state.go('ap-advisor.plan', { reload: true });
	    };
	    StudentPlanProgress.prototype.popupOpenStatusChanged = function ($event) {
	        if (!$event.detail.value) {
	            this.closeModal();
	        }
	    };
	    return StudentPlanProgress;
	}());
	angular.module('capability-ng-academic-planner').component('studentPlanProgress', {
	    templateUrl: 'capability-ng-academic-planner/src/global/components/student_plan_progress/student_plan_progress.html',
	    controller: StudentPlanProgress
	});


/***/ }),
/* 1264 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('deleteStudentValueCommand', function ($http, defineCommand, ngStudentValueModel, log) {
	    return defineCommand('deleteStudentValueCommand', function (deferred, propName) {
	        $http
	            .delete("/core/studentvalue/", {
	            data: {
	                prop_name: [propName]
	            }
	        })
	            .then(function () {
	            ngStudentValueModel.removeKey(propName);
	            deferred.resolve(ngStudentValueModel);
	        })
	            .catch(function (response) {
	            log.issue('failed to delete student value');
	            deferred.reject(response.data);
	        });
	    });
	});


/***/ }),
/* 1265 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('loadStudentValueCommand', function ($http, defineCommand, ngStudentValueModel, log) {
	    return defineCommand('loadStudentValueCommand', function (deferred) {
	        $http
	            .get("/core/studentvalue/")
	            .then(function (response) {
	            ngStudentValueModel.update(response.data);
	            deferred.resolve(ngStudentValueModel);
	        })
	            .catch(function (response) {
	            log.issue('failed to load student value');
	            deferred.reject(response.data);
	        });
	    });
	});


/***/ }),
/* 1266 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var StudentValueModel = /** @class */ (function () {
	    function StudentValueModel() {
	        this.values = {};
	    }
	    StudentValueModel.prototype.getValueByKey = function (key, defaultValue) {
	        if (defaultValue === void 0) { defaultValue = null; }
	        if (_4.has(this.values, key)) {
	            return this.values[key];
	        }
	        return defaultValue;
	    };
	    StudentValueModel.prototype.getBooleanValueByKey = function (key) {
	        return _4.has(this.values, key) && this.values[key].trim().toLowerCase() === 'true';
	    };
	    StudentValueModel.prototype.keys = function () {
	        return _4.keys(this.values);
	    };
	    StudentValueModel.prototype.removeKey = function (key) {
	        if (_4.has(this.values, key)) {
	            delete this.values[key];
	        }
	    };
	    StudentValueModel.prototype.update = function (newValues) {
	        this.values = newValues;
	    };
	    return StudentValueModel;
	}());
	exports.StudentValueModel = StudentValueModel;
	angular.module('capability-ng-academic-planner').service('ngStudentValueModel', StudentValueModel);


/***/ }),
/* 1267 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var APUserModeConfig = /** @class */ (function () {
	    function APUserModeConfig($state) {
	        this.$state = $state;
	    }
	    APUserModeConfig.prototype.isAdvisor = function () {
	        return this.$state.includes('ap-advisor');
	    };
	    APUserModeConfig.prototype.isStudent = function () {
	        return !this.isAdvisor();
	    };
	    return APUserModeConfig;
	}());
	exports.APUserModeConfig = APUserModeConfig;
	angular.module('capability-ng-academic-planner').service('ngAPUserModeConfig', APUserModeConfig);


/***/ }),
/* 1268 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_course_servant_1 = __webpack_require__(25);
	var WildcardMenuController = /** @class */ (function () {
	    function WildcardMenuController(saveCourseGroupToTermCommand, removeCourseGroupFromTermCommand, removeCourseFromTermCommand, removeCourseFromTermAndAddCourseCommand, removeCourseGroupFromTermAndAddCourseGroupCommand, ngAPComponentStateModel, ngComponentCommunicatorService, ngAPTermsQuery, ngAPUserModeConfig, $state, markAsMetFacade, ngCourseGroupCourseDetailOpenFacade, ngAPDegreeMapQueryHelper, ngAPProgramSlotHelper) {
	        this.saveCourseGroupToTermCommand = saveCourseGroupToTermCommand;
	        this.removeCourseGroupFromTermCommand = removeCourseGroupFromTermCommand;
	        this.removeCourseFromTermCommand = removeCourseFromTermCommand;
	        this.removeCourseFromTermAndAddCourseCommand = removeCourseFromTermAndAddCourseCommand;
	        this.removeCourseGroupFromTermAndAddCourseGroupCommand = removeCourseGroupFromTermAndAddCourseGroupCommand;
	        this.ngAPComponentStateModel = ngAPComponentStateModel;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngAPTermsQuery = ngAPTermsQuery;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.$state = $state;
	        this.markAsMetFacade = markAsMetFacade;
	        this.ngCourseGroupCourseDetailOpenFacade = ngCourseGroupCourseDetailOpenFacade;
	        this.ngAPDegreeMapQueryHelper = ngAPDegreeMapQueryHelper;
	        this.ngAPProgramSlotHelper = ngAPProgramSlotHelper;
	        this.showMoveToTermMenu = false;
	        this.showAdvisorMenu = false;
	        this.isLocked = false;
	        this.isLockedByStatus = false;
	    }
	    WildcardMenuController.prototype.initialize = function () {
	        var coursePlanned = !_4.isEmpty(this.wildcard.plannedCourse);
	        this.showAdvisorMenu = coursePlanned && this.isAdvisor;
	        this.isLocked = _4.get(this.wildcard, 'isLockedByAdvisor', false);
	        this.isLockedByStatus = ap_course_servant_1.APCourseServant.isLockedByStatus(this.wildcard.status);
	        this.showMoveToTermMenu = !this.isLocked && !this.isLockedByStatus;
	        if (this.showMoveToTermMenu && this.isMovePreventedByMarkAsMet()) {
	            this.showMoveToTermMenu = false;
	        }
	    };
	    WildcardMenuController.prototype.isMovePreventedByMarkAsMet = function () {
	        if (!this.ngAPDegreeMapQueryHelper.isMarkAsMetFeatureEnabled()) {
	            return false;
	        }
	        return this.ngAPProgramSlotHelper.isMarkedAsMet(this.wildcard.programSlot);
	    };
	    WildcardMenuController.prototype.$onInit = function () {
	        this.isAdvisor = this.ngAPUserModeConfig.isAdvisor();
	        this.menuId = _4.uniqueId();
	        this.initialize();
	    };
	    WildcardMenuController.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    WildcardMenuController.prototype.openLockUnlockDialog = function () {
	        this.$state.go('.lock_course', {
	            genericSlot: this.wildcard,
	            type: !this.isLocked ? 'lock' : 'unlock'
	        });
	    };
	    WildcardMenuController.prototype.addPlaceholder = function (wildcard, term) {
	        var _this = this;
	        this.saveCourseGroupToTermCommand({
	            course_group: wildcard.programSlot.course_group,
	            term: term.id,
	            program_slot: wildcard.programSlot.id
	        }).then(function (plndCourse) {
	            _this.ngComponentCommunicatorService.publish('CLOSE_LARGE_COURSE_GROUP_PANEL');
	            _this.ngAPComponentStateModel.wildcardToggle(wildcard.programSlot.id, false);
	        });
	    };
	    WildcardMenuController.prototype.openFlagPopup = function () {
	        this.$state.go('.course_flag_dialog', {
	            genericSlot: this.wildcard
	        });
	    };
	    WildcardMenuController.prototype.moveAction = function (wildcard, term) {
	        var _this = this;
	        if (!_4.isEmpty(wildcard.plannedCourseGroup)) {
	            this.removeCourseGroupFromTermAndAddCourseGroupCommand(wildcard.plannedCourseGroup, wildcard.plannedCourseGroup, term.id).then(function () {
	                _this.ngComponentCommunicatorService.publish('CLOSE_LARGE_COURSE_GROUP_PANEL');
	            });
	        }
	        else {
	            if (!wildcard.plannedCourse) {
	                return;
	            }
	            this.removeCourseFromTermAndAddCourseCommand({
	                course: wildcard.plannedCourse.course,
	                id: wildcard.plannedCourse.id
	            }, {
	                id: wildcard.plannedCourse.course
	            }, wildcard.programSlot, wildcard.plannedCourse.term, term.id).then(function () {
	                _this.ngComponentCommunicatorService.publish('CLOSE_LARGE_COURSE_GROUP_PANEL');
	            });
	        }
	    };
	    WildcardMenuController.prototype.removeAction = function (wildcard) {
	        if (!_4.isEmpty(wildcard.plannedCourseGroup)) {
	            this.removePlaceholder(wildcard);
	        }
	        else {
	            this.removeCourse(wildcard);
	        }
	    };
	    WildcardMenuController.prototype.removeCourse = function (wildcard) {
	        var _this = this;
	        this.removeCourseFromTermCommand(wildcard.programSlot, wildcard.plannedCourse).then(function () {
	            _this.ngComponentCommunicatorService.publish('CLOSE_LARGE_COURSE_GROUP_PANEL');
	        });
	    };
	    WildcardMenuController.prototype.removePlaceholder = function (wildcard) {
	        var _this = this;
	        this.removeCourseGroupFromTermCommand(wildcard.programSlot, wildcard.plannedCourseGroup.id).then(function () {
	            _this.ngComponentCommunicatorService.publish('CLOSE_LARGE_COURSE_GROUP_PANEL');
	        });
	    };
	    WildcardMenuController.prototype.termItemClick = function (term) {
	        this.wildcard.isPlanned ? this.moveAction(this.wildcard, term) : this.addPlaceholder(this.wildcard, term);
	    };
	    return WildcardMenuController;
	}());
	var WildcardMenu = /** @class */ (function () {
	    function WildcardMenu() {
	        this.bindings = {
	            wildcard: '<'
	        };
	        this.controller = WildcardMenuController;
	        this.templateUrl = 'capability-ng-academic-planner/src/global/components/wildcard_menu/wildcard_menu.html';
	    }
	    return WildcardMenu;
	}());
	angular.module('capability-ng-academic-planner').component('wildcardMenu', new WildcardMenu());


/***/ }),
/* 1269 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(7);
	var ap_course_servant_1 = __webpack_require__(25);
	var WildcardTile = /** @class */ (function () {
	    function WildcardTile(ngAPComponentStateModel, $animate, $timeout, showLargeCourseGroupCommand, clearLargeCourseGroupSearchResultCommand, routerHelper, removeCourseFromTermAndAddCourseGroupCommand, ngComponentCommunicatorService, phxAxTitleAnnouncerDelegate) {
	        this.ngAPComponentStateModel = ngAPComponentStateModel;
	        this.$animate = $animate;
	        this.$timeout = $timeout;
	        this.showLargeCourseGroupCommand = showLargeCourseGroupCommand;
	        this.clearLargeCourseGroupSearchResultCommand = clearLargeCourseGroupSearchResultCommand;
	        this.routerHelper = routerHelper;
	        this.removeCourseFromTermAndAddCourseGroupCommand = removeCourseFromTermAndAddCourseGroupCommand;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.phxAxTitleAnnouncerDelegate = phxAxTitleAnnouncerDelegate;
	        this.expanded = false;
	        this.showUnplanCourseButton = false;
	        this.isLocked = false;
	        this.wildcardButtonText = 'Find a course';
	        this.showSwapFindButton = false;
	    }
	    WildcardTile.prototype.getIconPosition = function () {
	        return this.expanded ? '90' : '0';
	    };
	    WildcardTile.prototype.$onChanges = function () {
	        this.id = this.wildcard.programSlot.id;
	        this.isEditable = _4.isBoolean(this.isEditable) ? this.isEditable : this.isEditable === 'true';
	        this.isLocked = _4.get(this.wildcard, 'isLockedByAdvisor', false);
	        this.showSwapFindButton = !this.isLocked && !ap_course_servant_1.APCourseServant.isLockedByStatus(this.wildcard.status);
	        this.showUnplanCourseButton = this.showSwapFindButton && !!this.wildcard.plannedCourse;
	        this.programSlotId = this.wildcard.programSlot.id;
	        this.theme = this.wildcard.disableSlot ? 'gray' : 'primary';
	        this.badgeType = this.type && !!this.wildcard.plannedCourse ? this.type : 'placeholder';
	        this.updateComponentState(this.programSlotId, _4.get(this.ngAPComponentStateModel, "wildcardToggle[" + this.programSlotId + "].opened", false));
	        this.wildcardButtonText =
	            this.wildcard.isPlanned && !!_4.get(this.wildcard, 'plannedCourse.id', false) ? 'Swap course' : 'Find a course';
	    };
	    Object.defineProperty(WildcardTile.prototype, "_hasRequisiteProblem", {
	        get: function () {
	            return _4.get(this.wildcard, 'plannedCourse._hasRequisiteProblem', false);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    WildcardTile.prototype.unPlanCourse = function () {
	        var _this = this;
	        var plannedCourse = this.wildcard.plannedCourse;
	        this.removeCourseFromTermAndAddCourseGroupCommand(this.wildcard.plannedCourse, this.wildcard.termId, this.wildcard.programSlot).then(function () {
	            _this.ngComponentCommunicatorService.publish('CLOSE_LARGE_COURSE_GROUP_PANEL');
	            _this.phxAxTitleAnnouncerDelegate.announceChange(_4.get(plannedCourse, '_course._title') + " removed from " + _this.wildcard.title);
	        });
	    };
	    WildcardTile.prototype.toggleExpand = function () {
	        if (this.wildcard.disableSlot) {
	            return;
	        }
	        this.updateComponentState(this.programSlotId, !this.expanded);
	    };
	    WildcardTile.prototype.updateComponentState = function (id, state) {
	        this.ngAPComponentStateModel.wildcardToggle(id, state);
	        this.expanded = state;
	    };
	    WildcardTile.prototype.searchForCourse = function () {
	        var _this = this;
	        this.$animate.enabled(false);
	        this.clearLargeCourseGroupSearchResultCommand().then(function () {
	            _this.showLargeCourseGroupCommand(_this.wildcard).then(function () {
	                _this.$timeout(function () {
	                    return _this.routerHelper.findStateAndGo("^.coursegroup", {
	                        slotId: _this.wildcard.programSlot.id,
	                        termId: _this.wildcard.termId
	                    });
	                }, 0);
	            });
	        });
	    };
	    return WildcardTile;
	}());
	exports.WildcardTile = WildcardTile;
	angular.module('capability-ng-academic-planner').component('wildcardTile', {
	    templateUrl: 'capability-ng-academic-planner/src/global/components/wildcard_tile/wildcard_tile.html',
	    bindings: {
	        wildcard: '<',
	        term: '<',
	        type: '@',
	        isEditable: '<?'
	    },
	    controller: WildcardTile,
	    transclude: true
	});


/***/ }),
/* 1270 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var ap_available_term_builder_1 = __webpack_require__(466);
	angular.module('capability-ng-academic-planner').factory('ngAPAvailableTermsDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ap_available_term_builder_1.APAvailableTerm
	    });
	});


/***/ }),
/* 1271 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ap_course_builder_1 = __webpack_require__(69);
	var utility_ng_kernel_1 = __webpack_require__(5);
	var utility_ts_datasource_1 = __webpack_require__(9);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('ngAPCoursesDatasource', function (ngAPSectionTypeDatasource) {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ap_course_builder_1.APCourse,
	        updateMode: 'merge'
	    }).includeMetasource(function (datasource) {
	        return new utility_ts_datasource_1.Metasource(datasource);
	    });
	});


/***/ }),
/* 1272 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var ap_goal_sets_builder_1 = __webpack_require__(468);
	angular.module('capability-ng-academic-planner').factory('ngAPGoalSetstDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ap_goal_sets_builder_1.APGoalSets,
	        updateMode: 'merge'
	    });
	});


/***/ }),
/* 1273 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var ap_goals_builder_1 = __webpack_require__(469);
	angular.module('capability-ng-academic-planner').factory('ngAPGoalsDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ap_goals_builder_1.APGoal
	    });
	});


/***/ }),
/* 1274 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var ap_gradeconfig_builder_1 = __webpack_require__(470);
	angular.module('capability-ng-academic-planner').factory('ngAPGradeConfigsDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ap_gradeconfig_builder_1.APGradeConfig
	    });
	});


/***/ }),
/* 1275 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var ap_mm_favorite_course_builder_1 = __webpack_require__(471);
	angular.module('capability-ng-academic-planner').factory('ngAPMmFavoriteCoursesDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ap_mm_favorite_course_builder_1.APMmFavoriteCourse
	    });
	});


/***/ }),
/* 1276 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var ap_multi_term_builder_1 = __webpack_require__(474);
	angular.module('capability-ng-academic-planner').factory('ngAPMultiTermDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ap_multi_term_builder_1.APMultiTerm,
	        updateMode: 'merge'
	    });
	});


/***/ }),
/* 1277 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var ap_multi_template_slot_builder_1 = __webpack_require__(473);
	angular.module('capability-ng-academic-planner').factory('ngAPMultiTemplateSlotDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ap_multi_template_slot_builder_1.APMmTemplateSlot,
	        updateMode: 'merge'
	    });
	});


/***/ }),
/* 1278 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var ap_multi_template_dev_req_slot_builder_1 = __webpack_require__(472);
	angular.module('capability-ng-academic-planner').factory('ngAPMultiDevReqTemplateSlotDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ap_multi_template_dev_req_slot_builder_1.APMmDevReqTemplateSlot,
	        updateMode: 'merge'
	    });
	});


/***/ }),
/* 1279 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ng_kernel_1 = __webpack_require__(5);
	var utility_ts_datasource_1 = __webpack_require__(9);
	var ap_planned_course_builder_1 = __webpack_require__(475);
	var ap_planned_course_servant_1 = __webpack_require__(41);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('ngAPPlannedCoursesDatasource', function (ngAPCoursesDatasource, ngAPSectionTypeDatasource, ngAPTermsDatasource) {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ap_planned_course_builder_1.APPlannedCourse,
	        updateMode: 'merge'
	    }).includeMetasource(function (datasource) {
	        return new utility_ts_datasource_1.Metasource(datasource)
	            .includeOneToMany('_course', ngAPCoursesDatasource, 'course', function (plannedCourse, course) {
	            course.is_planned = true;
	            course.credits = course.credits || 0;
	            return course;
	        })
	            .includeAttributes(function (plannedCourse) {
	            var course = ngAPCoursesDatasource.get(plannedCourse.course);
	            var sectionTypeKeys = course ? course.section_types : [];
	            var sections = _4.sortBy(_4.uniq(_4.filter(_4.map(sectionTypeKeys, function (key) { return ngAPSectionTypeDatasource.get(key); }), function (sctnType) { return sctnType && sctnType.term === plannedCourse.term; })), ['rank']);
	            return {
	                _section_type_keys: sectionTypeKeys,
	                _section_types: sections,
	                _hasMultiSections: sections.length > 1
	            };
	        })
	            .includeAttribute('_multiSectionLabels', function (plannedCourse) {
	            return ap_planned_course_servant_1.APPlannedCourseServant.multiSectionLabels(plannedCourse);
	        })
	            .includeAttribute('_hasRequisiteProblem', function (plannedCourse) {
	            return ap_planned_course_servant_1.APPlannedCourseServant.hasRequisiteProblem(plannedCourse);
	        })
	            .includeAttribute('_hasCourseOfferedProblem', function (plannedCourse) {
	            return ap_planned_course_servant_1.APPlannedCourseServant.hasCoursesOfferedProblem(plannedCourse);
	        })
	            .includeAttribute('_hasCoReq', function (plannedCourse) {
	            return _4.get(plannedCourse, '_course.coreq.length', 0) > 0;
	        })
	            .includeAttribute('_hasPreReq', function (plannedCourse) {
	            return _4.some(['prereq_outoforder', 'prereq_miss'], function (key) { return plannedCourse[key].length > 0; });
	        })
	            .includeManyToMany('_coreq_miss', ngAPCoursesDatasource, 'coreq_miss')
	            .includeManyToMany('_coreq_outoforder', ngAPCoursesDatasource, 'coreq_outoforder')
	            .includeManyToMany('_prereq_miss', ngAPCoursesDatasource, 'prereq_miss')
	            .includeManyToMany('_prereq_outoforder', ngAPCoursesDatasource, 'prereq_outoforder')
	            .includeAttribute('_coreq', function (plannedCourse) {
	            return _4.compact(_4.map(_4.get(plannedCourse, '_course.coreq', []), function (reqId) { return ngAPCoursesDatasource.get(reqId); }));
	        });
	    });
	});


/***/ }),
/* 1280 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var utility_ts_datasource_1 = __webpack_require__(9);
	var ap_course_group_builder_1 = __webpack_require__(467);
	angular.module('capability-ng-academic-planner').factory('ngAPPlannedCourseGroupDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ap_course_group_builder_1.APCourseGroup,
	        updateMode: 'merge'
	    }).includeMetasource(function (datasource) {
	        return new utility_ts_datasource_1.Metasource(datasource);
	    });
	});


/***/ }),
/* 1281 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var ap_program_info_builder_1 = __webpack_require__(476);
	angular.module('capability-ng-academic-planner').factory('ngAPProgramInfoDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ap_program_info_builder_1.APProgramInfo,
	        updateMode: 'merge'
	    });
	});


/***/ }),
/* 1282 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ng_kernel_1 = __webpack_require__(5);
	var utility_ts_datasource_1 = __webpack_require__(9);
	var ap_program_slot_builder_1 = __webpack_require__(477);
	var ap_program_slot_servant_1 = __webpack_require__(15);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('ngAPProgramSlotDatasource', function (ngAPCoursesDatasource, ngAPPlannedCoursesDatasource, ngAPPlannedCourseGroupDatasource, ngAPGradeConfigsDatasource) {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ap_program_slot_builder_1.APProgramSlotBuilder,
	        updateMode: 'merge'
	    }).includeMetasource(function (datasource) {
	        return new utility_ts_datasource_1.Metasource(datasource)
	            .includeAttributes(function (programSlot) {
	            if (!ap_program_slot_servant_1.APProgramSlotServant.isNCRProgramSlot(programSlot)) {
	                var courseIds = _4.map(programSlot.courses, function (c) { return c['course_id']; });
	                return {
	                    _course_ids: courseIds,
	                    _courses: ngAPCoursesDatasource.cursor(courseIds),
	                    _course_group: _4.find(ngAPPlannedCourseGroupDatasource.read(), { program_slot: programSlot.id })
	                };
	            }
	            else {
	                return {
	                    _course_group: _4.find(ngAPPlannedCourseGroupDatasource.read(), { program_slot: programSlot.id })
	                };
	            }
	            // }
	        })
	            .includeAttribute('_grade_config', function () {
	            return _4.first(ngAPGradeConfigsDatasource.values());
	        })
	            .includeAttribute('_term_id', function (programSlot) {
	            var course;
	            course = _4.find(ngAPPlannedCoursesDatasource.read(), function (plannedCourse) { return plannedCourse.program_slot === programSlot.id; });
	            if (!course) {
	                course = _4.find(ngAPPlannedCourseGroupDatasource.read(), function (plannedCourseGroup) { return plannedCourseGroup.program_slot === programSlot.id; });
	            }
	            return course ? course.term : undefined;
	        });
	    });
	});


/***/ }),
/* 1283 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var ap_section_type_builder_1 = __webpack_require__(478);
	angular.module('capability-ng-academic-planner').factory('ngAPSectionTypeDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ap_section_type_builder_1.APSectionType,
	        updateMode: 'merge'
	    });
	});


/***/ }),
/* 1284 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var ap_term_slot_group_builder_1 = __webpack_require__(480);
	angular.module('capability-ng-academic-planner').factory('ngAPTermSlotGroupDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ap_term_slot_group_builder_1.APTermSlotGroup,
	        updateMode: 'merge'
	    });
	});


/***/ }),
/* 1285 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var ap_term_builder_1 = __webpack_require__(479);
	var ap_term_servant_1 = __webpack_require__(20);
	angular.module('capability-ng-academic-planner').factory('ngAPTermsDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ap_term_builder_1.APTerm,
	        updateMode: 'merge'
	    }).includeMetasource(function (datasource) {
	        return new utility_ng_kernel_1.Metasource(datasource)
	            .includeAttribute('_isTermCompleted', function (term) { return !ap_term_servant_1.APTermServant.isCompleted(term); })
	            .includeAttribute('_disablePickTimes', function (term) { return ap_term_servant_1.APTermServant.isRegistrationButtonDisabled(term); });
	    });
	});


/***/ }),
/* 1286 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ng_kernel_1 = __webpack_require__(5);
	var utility_ts_datasource_1 = __webpack_require__(9);
	var ap_year_slot_group_builder_1 = __webpack_require__(481);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('ngAPYearSlotGroupDatasource', function (ngAPTermSlotGroupDatasource) {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ap_year_slot_group_builder_1.APYearSlotGroup,
	        updateMode: 'merge'
	    }).includeMetasource(function (datasource) {
	        return new utility_ts_datasource_1.Metasource(datasource).includeAttribute('_term_slot_group', function (yearSlot) {
	            var terms = _4.filter(ngAPTermSlotGroupDatasource.read(), { year_slot_group: yearSlot.id });
	            return terms ? terms : [];
	        });
	    });
	});


/***/ }),
/* 1287 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular.module('capability-ng-academic-planner').directive('apAddAttrAfter', [
	    '$timeout',
	    '$parse',
	    function ($timeout, $parse) { return ({
	        restrict: 'A',
	        link: function ($scope, $elem, $attrs) {
	            var notParsedConfig = $attrs['apAddAttrAfter'];
	            if (_4.isEmpty(notParsedConfig)) {
	                return;
	            }
	            var parsedConfig = $parse(notParsedConfig)({});
	            var attributeToAdd = parsedConfig['attribute'] || '';
	            var timeout = _4.toNumber(parsedConfig['timeout']) || 0;
	            $timeout(function () {
	                $elem.attr(attributeToAdd, '');
	            }, timeout);
	        }
	    }); }
	]);


/***/ }),
/* 1288 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var ap_id_constants_1 = __webpack_require__(11);
	var APMmDataHelper = /** @class */ (function () {
	    function APMmDataHelper() {
	    }
	    APMmDataHelper.prototype.constructGenericSlots = function (programSlots) {
	        var _this = this;
	        return _4.map(programSlots, function (slot) {
	            var id = slot.id, slotType = slot.slot_type, slotDesc = slot.slot_desc, courseGroupId = slot.course_group_id, instructions = slot.instructions, title = slot.title;
	            var courses = _this._addSlotIdToCourses(slot.courses, slot.id);
	            return {
	                id: id,
	                title: title,
	                slotType: slotType,
	                slotDesc: slotDesc,
	                courseGroupId: courseGroupId,
	                instructions: instructions,
	                courses: courses
	            };
	        });
	    };
	    APMmDataHelper.prototype._addSlotIdToCourses = function (courses, slotId) {
	        return _4.map(courses, function (course) { return (tslib_1.__assign(tslib_1.__assign({}, course), { slotId: slotId })); });
	    };
	    APMmDataHelper.prototype._plannedCourseSlotCourses = function (plannedCourse) {
	        var slotCourses = [];
	        var slotId = plannedCourse.slot_id || ap_id_constants_1.INVALID_ID;
	        var _slotCourses = _4.get(plannedCourse, 'slot_courses', []);
	        if (_slotCourses.length > 1) {
	            slotCourses = _4.map(_slotCourses, function (slotCourse) {
	                return tslib_1.__assign(tslib_1.__assign({}, slotCourse), { slotId: slotId });
	            });
	        }
	        return slotCourses;
	    };
	    APMmDataHelper.prototype.constructStudentTermsData = function (plannedTerms) {
	        var _this = this;
	        return _4.map(plannedTerms, function (term) {
	            var id = term.id, credits = term.credits, catYear = term.cat_yr, name = term.name, _a = term.rank, rank = _a === void 0 ? 1 : _a, termId = term.term_id, nk = term.nk, plannedcourse_set = term.plannedcourse_set, plannedcoursegroup_set = term.plannedcoursegroup_set;
	            var plannedCourses = _4.map(plannedcourse_set, function (plannedCourse) { return (tslib_1.__assign(tslib_1.__assign({}, plannedCourse), { type: 'COURSE', nk: plannedCourse['course_nk'] || plannedCourse.nk, slotId: plannedCourse.slot_id, status: _4.toUpper(plannedCourse.status || ''), slot_courses: _this._plannedCourseSlotCourses(plannedCourse) })); });
	            var status = _4.toUpper(term.status || 'PLANNED');
	            var displayStatus = "Term Status: " + (term.display_status || 'Term Planned');
	            var creditsRange = _4.get(term, 'credits_range', '');
	            var recommendedCredits = term.recommended_credits;
	            var showCreditsWarning = _4.get(term, 'show_credits_warning', false);
	            var isCompleted = _4.get(term, 'is_completed', false);
	            var plannedCourseGroups = _4.map(plannedcoursegroup_set, function (plannedCourseGroup) { return (tslib_1.__assign(tslib_1.__assign({}, plannedCourseGroup), { status: 'PLANNED', slotDesc: plannedCourseGroup.slot_desc, courseGroupId: plannedCourseGroup.course_group_id, courses: _this._addSlotIdToCourses(plannedCourseGroup.courses, plannedCourseGroup.slot_id), type: 'GROUP' })); });
	            return {
	                id: id,
	                name: name,
	                rank: rank,
	                credits: credits,
	                nk: nk,
	                status: status,
	                displayStatus: displayStatus,
	                creditsRange: creditsRange,
	                recommendedCredits: recommendedCredits,
	                showCreditsWarning: showCreditsWarning,
	                isCompleted: isCompleted,
	                termId: termId,
	                catYear: catYear,
	                plannedCourses: plannedCourses,
	                plannedCourseGroups: plannedCourseGroups
	            };
	        });
	    };
	    return APMmDataHelper;
	}());
	exports.APMmDataHelper = APMmDataHelper;
	angular.module('capability-ng-academic-planner').service('ngAPMmDataHelper', APMmDataHelper);


/***/ }),
/* 1289 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .factory('ngAPNotificationDelegate', function (phxNotificationDelegate) {
	    return phxNotificationDelegate.restrictTo('ap-alerts');
	});


/***/ }),
/* 1290 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_program_slot_servant_1 = __webpack_require__(15);
	var APProgramSlotHelper = /** @class */ (function () {
	    function APProgramSlotHelper(ngAPMarkAsMetStatusDatasource) {
	        this.ngAPMarkAsMetStatusDatasource = ngAPMarkAsMetStatusDatasource;
	    }
	    APProgramSlotHelper.prototype.isMarkedAsMet = function (programSlot) {
	        var metEntry = this.ngAPMarkAsMetStatusDatasource.query(function (slot) { return slot.program_slot === programSlot.id; });
	        return !_4.isEmpty(metEntry) || ap_program_slot_servant_1.APProgramSlotServant.isProgramSlotMET(programSlot);
	    };
	    return APProgramSlotHelper;
	}());
	exports.APProgramSlotHelper = APProgramSlotHelper;
	angular.module('capability-ng-academic-planner').service('ngAPProgramSlotHelper', APProgramSlotHelper);


/***/ }),
/* 1291 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var RouterHelper = /** @class */ (function () {
	    function RouterHelper($state, $timeout, log) {
	        this.$state = $state;
	        this.$timeout = $timeout;
	        this.log = log;
	    }
	    RouterHelper.prototype.isValidState = function (stateName) {
	        return !_4.isNull(this.$state.href(stateName));
	    };
	    RouterHelper.prototype.getStateInHierarchy = function (stateName) {
	        if (this.isValidState(stateName)) {
	            return stateName;
	        }
	        if (!this.$state.current.name || this.$state.current.name.split('.').length === stateName.split('.').length) {
	            return false;
	        }
	        if (_4.startsWith(stateName, '.')) {
	            return this.getStateInHierarchy("^" + stateName);
	        }
	        return this.getStateInHierarchy("^." + stateName);
	    };
	    RouterHelper.prototype.navigateFromRouter = function (deferred, stateName) {
	        var _this = this;
	        if (!stateName || _4.isEmpty(stateName)) {
	            return deferred.resolve();
	        }
	        var TIME_TO_FIX_ANGULAR_STATE_ERROR = 10;
	        // when navigation failed, we show error notification which we don't want here
	        this.log.disable();
	        this.$timeout(function () {
	            _this.log.enable();
	            _this.$state.go(stateName);
	        }, TIME_TO_FIX_ANGULAR_STATE_ERROR);
	        deferred.reject();
	    };
	    RouterHelper.prototype.findStateAndGo = function (stateName, parameters) {
	        var validStateName = this.getStateInHierarchy(stateName);
	        if (!validStateName) {
	            return false;
	        }
	        return this.$state.go(validStateName, parameters);
	    };
	    return RouterHelper;
	}());
	exports.RouterHelper = RouterHelper;
	angular.module('capability-ng-academic-planner').service('routerHelper', RouterHelper);


/***/ }),
/* 1292 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var ap_term_servant_1 = __webpack_require__(20);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('updatePlanDataHelper', function (ngAPCoursesDatasource, ngAPPlannedCoursesDatasource, ngAPProgramSlotDatasource, ngAPTermsDatasource, ngAPTermSlotGroupDatasource, ngAPYearSlotGroupDatasource, ngAPSectionTypeDatasource, ngAPPlannedCourseGroupDatasource, ngFeedbackSuggestedPlanModel, ngAPModel) {
	    return function (response) {
	        var termsWithPriorityRegData = ap_term_servant_1.APTermServant.getTermsWithPriorityRegistrationDatesAssigned(response.data.term, response.data.priority_reg_slot);
	        ngAPTermsDatasource.clear().write(termsWithPriorityRegData);
	        ngAPTermSlotGroupDatasource.clear().write(response.data.term_slot_group);
	        ngAPCoursesDatasource.clear().write(response.data.course);
	        ngAPPlannedCoursesDatasource.clear().write(response.data.planned_course);
	        ngAPPlannedCourseGroupDatasource.clear().write(response.data.planned_course_group);
	        ngAPProgramSlotDatasource.clear().write(response.data.program_slot);
	        ngAPYearSlotGroupDatasource.clear().write(response.data.year_slot_group);
	        if (response.data.suggested_plan) {
	            var previous_status = _4.get(ngFeedbackSuggestedPlanModel.read(), 'previous_status', '');
	            ngFeedbackSuggestedPlanModel.clear().write(tslib_1.__assign(tslib_1.__assign({}, response.data.suggested_plan), { previous_status: previous_status }));
	        }
	        ngAPModel.clear().write({
	            program: response.data.program,
	            planned_term: response.data.planned_term
	        });
	        ngAPSectionTypeDatasource.clear().write(response.data.section_type);
	        utility_ts_orm_1.ORMMediator.run(ngAPTermsDatasource);
	        return;
	    };
	});


/***/ }),
/* 1293 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var APComponentStateModel = /** @class */ (function () {
	    function APComponentStateModel() {
	        this.studentFeedbackTerms = [];
	        this.courseGroups = [];
	        this.wildcards = {};
	    }
	    APComponentStateModel.prototype.clear = function () {
	        this.studentFeedbackTerms = [];
	        this.courseGroups = [];
	        this.wildcards = {};
	        return this;
	    };
	    APComponentStateModel.prototype.courseGroupClose = function (id) {
	        this.courseGroups[id] = { opened: false };
	    };
	    APComponentStateModel.prototype.wildcardToggle = function (id, state) {
	        this.wildcards[id] = { opened: state };
	    };
	    APComponentStateModel.prototype.courseGroupToggle = function (id, state) {
	        this.courseGroups[id] = { opened: state };
	    };
	    return APComponentStateModel;
	}());
	exports.APComponentStateModel = APComponentStateModel;
	angular.module('capability-ng-academic-planner').service('ngAPComponentStateModel', APComponentStateModel);


/***/ }),
/* 1294 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APModel = /** @class */ (function () {
	    function APModel() {
	        this.data = { planned_term: [], program: {} };
	    }
	    APModel.prototype.update = function (data) {
	        this.clear();
	        return this.write(data);
	    };
	    APModel.prototype.write = function (data) {
	        this.data = _4.merge(this.data, data);
	        return this;
	    };
	    APModel.prototype.read = function () {
	        return this.data;
	    };
	    APModel.prototype.clear = function () {
	        this.data = { planned_term: [], program: {} };
	        return this;
	    };
	    APModel.prototype.addPlannedTerm = function (termId) {
	        this.data.planned_term.push(termId);
	        this.data.planned_term = _4.uniq(this.data.planned_term);
	    };
	    APModel.prototype.currentProgram = function () {
	        return _4.head(_4.toArray(this.data.program));
	    };
	    APModel.prototype.removePlannedTerm = function (termId) {
	        this.data.planned_term = _4.uniq(_4.pull(this.data.planned_term, termId));
	    };
	    return APModel;
	}());
	exports.APModel = APModel;
	angular.module('capability-ng-academic-planner').service('ngAPModel', APModel);


/***/ }),
/* 1295 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APAdvisorText = /** @class */ (function () {
	    function APAdvisorText(phxFeatureConfiguration) {
	        this.phxFeatureConfiguration = phxFeatureConfiguration;
	    }
	    Object.defineProperty(APAdvisorText.prototype, "advisorLabel", {
	        get: function () {
	            return _4.get(this.phxFeatureConfiguration.read('student-platform.roles.advisor-title.lowercase'), 'assignContent', 'advisor');
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APAdvisorText;
	}());
	exports.APAdvisorText = APAdvisorText;
	angular.module('capability-ng-academic-planner').service('ngAPAdvisorText', APAdvisorText);


/***/ }),
/* 1296 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var user_mode_api_strategy_1 = __webpack_require__(28);
	var APCommandUrlServant = /** @class */ (function () {
	    function APCommandUrlServant($state) {
	        this.$state = $state;
	        this.API_PREFIX_LOOKUP = {
	            academicPlan: {
	                advisor: "/reg/advisorplan",
	                student: "/reg/academicplan",
	                default: "/reg/academicplan"
	            },
	            courseGroup: {
	                advisor: "/academicplan/suggested_course_group",
	                student: "/academicplan/planned_course_group",
	                default: "/academicplan/planned_course_group"
	            }
	        };
	    }
	    APCommandUrlServant.prototype.get = function (key) {
	        var userType = user_mode_api_strategy_1.RoleTypeStrategy.evaluate(this.$state);
	        return this.API_PREFIX_LOOKUP[key][userType];
	    };
	    return APCommandUrlServant;
	}());
	exports.APCommandUrlServant = APCommandUrlServant;
	angular.module('capability-ng-academic-planner').service('ngAPCommandUrlServant', APCommandUrlServant);


/***/ }),
/* 1297 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var user_mode_api_strategy_1 = __webpack_require__(28);
	var APCourseGroupPayloadServant = /** @class */ (function () {
	    function APCourseGroupPayloadServant($state, ngFeedbackSuggestedPlanModel) {
	        this.$state = $state;
	        this.ngFeedbackSuggestedPlanModel = ngFeedbackSuggestedPlanModel;
	    }
	    APCourseGroupPayloadServant.prototype.payload = function (data) {
	        var userType = user_mode_api_strategy_1.RoleTypeStrategy.evaluate(this.$state);
	        if (userType === 'advisor') {
	            return {
	                term: {
	                    id: data.term
	                },
	                course_group: {
	                    nk: data.course_group
	                },
	                suggested_plan: this.ngFeedbackSuggestedPlanModel.read().id,
	                program_slot: data.program_slot
	            };
	        }
	        else {
	            return {
	                course_group: data.course_group,
	                program_slot: data.program_slot,
	                term: data.term
	            };
	        }
	    };
	    return APCourseGroupPayloadServant;
	}());
	exports.APCourseGroupPayloadServant = APCourseGroupPayloadServant;
	angular.module('capability-ng-academic-planner').service('ngAPCourseGroupPayloadServant', APCourseGroupPayloadServant);


/***/ }),
/* 1298 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	exports.APApiUrlStrategy = new utility_ts_strategy_1.Strategy({});


/***/ }),
/* 1299 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	exports.RemoveCourseFromTermAndAddCourseCommandUrlStrategy = new utility_ts_strategy_1.StrategySafe({
	    advisor: {
	        url: '/reg/advisorplan/'
	    },
	    student: {
	        url: '/reg/academicplan/'
	    }
	});


/***/ }),
/* 1300 */
880,
/* 1301 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_js_enumeration_1 = __webpack_require__(33);
	exports.CourseDevelopmentalEnum = utility_js_enumeration_1.EnumerationBuilder.useDefinitionAsEnum('CourseDevelopmentalEnum', {
	    ID: 'developmental',
	    TITLE: '<span l-kind  l-justify="left"  l-no-wrap><h4>Developmental Courses</h4> <hi-icon theme="white" kind="book"></hi-icon></span>',
	    ELEMENTS: {
	        DESC: {
	            template: '<p class="text text-bold">You should take these courses first to be eligible to take your program courses.</p><p class="text">Developmental courses prepare you for college level coursework. These courses do not count toward your degree requirements and will add time in school.</p>'
	        }
	    }
	});
	angular.module('capability-ng-academic-planner').constant('CourseDevelopmentalEnum', exports.CourseDevelopmentalEnum);


/***/ }),
/* 1302 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_js_enumeration_1 = __webpack_require__(33);
	exports.CourseKeyEnum = utility_js_enumeration_1.EnumerationBuilder.useDefinitionAsEnum('CourseKeyEnum', {
	    ID: 'key',
	    TITLE: '<span class="text text-sz-l ">What do these colors mean?</span>',
	    ELEMENTS: {
	        DESC: {
	            template: '<p class="text text-sz-l ">Each course has a status. Below explains what each color means.</p>' +
	                '<hr class="mvl">' +
	                '{{statusList}}'
	        }
	    }
	});
	angular.module('capability-ng-academic-planner').constant('CourseKeyEnum', exports.CourseKeyEnum);


/***/ }),
/* 1303 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	// TODO :( use a flamethrower (we need good tooltips)
	var utility_js_enumeration_1 = __webpack_require__(33);
	exports.DevelopmentalEnum = utility_js_enumeration_1.EnumerationBuilder.useDefinitionAsValue('DevelopmentalEnum', {
	    ID: 'developmental',
	    TITLE: 'Developmental Courses',
	    ELEMENTS: {
	        DESC: {
	            template: '<p class="text text-bold">You should take these courses first to be eligible to take your program courses.</p><p class="text">Developmental courses prepare you for college level coursework. These courses do not count toward your degree requirements and will add time in school.</p>'
	        },
	        EXPL: { template: 'Each <i class="eab-icon-book blue"></i> represents 1 course needed.' }
	    }
	});
	angular.module('capability-ng-academic-planner').constant('DevelopmentalEnum', exports.DevelopmentalEnum);


/***/ }),
/* 1304 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_js_enumeration_1 = __webpack_require__(33);
	// FIXME: Remove this
	/**
	 * @deprecated use TermStatusStrategy
	 */
	var PICK_TIMES = 'Pick Times';
	var REG_OPEN = 'Registration Open';
	var PRIO_REG = 'Priority Registration';
	var IN_PROG = 'In Progress';
	exports.TermStatusEnum = utility_js_enumeration_1.EnumerationBuilder.useDefinitionAsEnum('TermStatusEnum', {
	    DEFAULT: {},
	    BEFORE_REG_OPEN: {
	        status_title: 'Registration begins {{registration_start_date}}',
	        status_title_plain: 'Registration begins <%= registration_start_date %>',
	        popover_title: 'Registration',
	        popover_content: '<strong class="text-bold">{{registration_time_until}} until registration is open</strong><p class="text maz">Registration begins {{registration_start_date_year}}</p>',
	        status_function: function (reg_s, reg_e, term_s, term_e) {
	            return moment().isBefore(reg_s);
	        },
	        button_title: 'Times not available yet',
	        button_label: PICK_TIMES
	    },
	    REG_OPEN: {
	        status_title: REG_OPEN,
	        status_title_plain: REG_OPEN,
	        popover_title: 'Registration',
	        popover_content: '<strong class="text-bold">Registration open</strong><p class="text maz">Registration begins {{registration_start_date_year}}</p>',
	        status_function: function (reg_s, reg_e, term_s, term_e) {
	            return reg_s.isBefore(moment()) && reg_e.isAfter(moment());
	        },
	        button_title: REG_OPEN,
	        button_label: 'Ready to Register'
	    },
	    PRIORITY_BEFORE_REG_OPEN: {
	        status_title: '<i class="icon eab-icon-rocket mrs" aria-hidden="true"></i>Priority Registration',
	        status_title_plain: PRIO_REG,
	        popover_title: PRIO_REG,
	        popover_content: '<strong class="text-bold">You get to register before other students!</strong><p class="text maz">Registration begins {{registration_start_date_year}}</p>',
	        status_function: function (PRreg_s, PRreg_e) { return PRreg_s.isAfter(moment()); },
	        button_title: 'Times available - Build your schedule',
	        button_label: PICK_TIMES
	    },
	    PRIORITY_REG_OPEN: {
	        status_title: '<i class="icon eab-icon-rocket mrs" aria-hidden="true"></i>Priority Registration Open',
	        status_title_plain: 'Priority Registration Open',
	        popover_title: PRIO_REG,
	        popover_content: '<strong class="text-bold">Priority registration open!</strong><p class="text maz">Registration begins {{registration_start_date_year}}</p>',
	        status_function: function (PRreg_s, PRreg_e) {
	            return PRreg_s.isBefore(moment()) && PRreg_e.isAfter(moment());
	        },
	        button_title: REG_OPEN,
	        button_label: 'Ready to Register'
	    },
	    BEFORE_TERM_START: {
	        status_title: 'Term begins {{term_start_date}}',
	        status_title_plain: 'Term begins <%= term_start_date %>',
	        popover_title: 'Term begins soon',
	        popover_content: '<strong class="text-bold">{{term_time_until}} until your term starts</strong><p class="text maz">{{term_start_date_year}} - {{term_end_date_year}}</p>',
	        status_function: function (reg_s, reg_e, term_s, term_e) {
	            return reg_e.isBefore(moment()) && term_s.isAfter(moment());
	        },
	        button_title: 'View or edit your schedule',
	        button_label: 'View / Edit Schedule'
	    },
	    TERM_IN_PROGRESS: {
	        status_title: IN_PROG,
	        status_title_plain: IN_PROG,
	        popover_title: IN_PROG,
	        popover_content: '<strong class="text-bold">{{term_time_left}} left in this term</strong><p class="text maz">{{term_start_date_year}} - {{term_end_date_year}}</p>',
	        status_function: function (reg_s, reg_e, term_s, term_e) {
	            return term_s.isBefore(moment()) && term_e.isAfter(moment());
	        },
	        button_title: 'View or edit your schedule',
	        button_label: 'View / Edit Schedule'
	    },
	    TERM_COMPLETED: {
	        status_title: 'Completed',
	        status_title_plain: 'Completed',
	        popover_title: 'Completed',
	        popover_content: '<p class="text maz">{{term_start_date_year}} - {{term_end_date_year}}</p>',
	        status_function: function (reg_s, reg_e, term_s, term_e) {
	            return term_e.isBefore(moment());
	        }
	    }
	});
	angular.module('capability-ng-academic-planner').constant('TermStatusEnum', exports.TermStatusEnum);


/***/ }),
/* 1305 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var pi_validation_1 = __webpack_require__(869);
	angular.module('capability-ng-academic-planner').service('ngAPValidator', function () {
	    return new pi_validation_1.Validator();
	});


/***/ }),
/* 1306 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var VerifyAcademicPlanData = /** @class */ (function () {
	    function VerifyAcademicPlanData(ngAPCoursesDatasource, ngAPPlannedCoursesDatasource, ngAPProgramSlotDatasource, ngAPTermsDatasource, ngAPSectionTypeDatasource, ngAPPlannedCourseGroupDatasource, ngAPValidator) {
	        this.ngAPCoursesDatasource = ngAPCoursesDatasource;
	        this.ngAPPlannedCoursesDatasource = ngAPPlannedCoursesDatasource;
	        this.ngAPProgramSlotDatasource = ngAPProgramSlotDatasource;
	        this.ngAPTermsDatasource = ngAPTermsDatasource;
	        this.ngAPSectionTypeDatasource = ngAPSectionTypeDatasource;
	        this.ngAPPlannedCourseGroupDatasource = ngAPPlannedCourseGroupDatasource;
	        this.ngAPValidator = ngAPValidator;
	    }
	    VerifyAcademicPlanData.prototype.verify = function () {
	        var plannedCourseValidationGroupName = 'AcademicPlan API: Planned Course data verification failed';
	        var plannedCourseDataValidator = this.ngAPValidator.validate(this.ngAPPlannedCoursesDatasource.values(), {
	            course: {
	                data: this.ngAPCoursesDatasource.values(),
	                type: 'ONE_TO_ONE',
	                key: 'id'
	            },
	            program_slot: {
	                data: this.ngAPProgramSlotDatasource.values(),
	                type: 'NO_DUPLICATES',
	                key: 'id',
	                whiteListValueSet: new Set([null])
	            },
	            term: {
	                data: this.ngAPTermsDatasource.values(),
	                type: 'ONE_TO_ONE',
	                key: 'id'
	            }
	        }, plannedCourseValidationGroupName);
	        var plannedCourseGroupValidationGroupName = 'AcademicPlan API: Planned Course Group data verification failed';
	        var plannedCourseGroupValidator = this.ngAPValidator.validate(this.ngAPPlannedCourseGroupDatasource.values(), {
	            program_slot: {
	                type: 'ONE_TO_ONE',
	                key: 'id',
	                data: this.ngAPProgramSlotDatasource.values()
	            },
	            term: {
	                type: 'ONE_TO_ONE',
	                key: 'id',
	                data: this.ngAPTermsDatasource.values()
	            }
	        }, plannedCourseGroupValidationGroupName);
	        return Promise.all([plannedCourseDataValidator, plannedCourseGroupValidator]);
	    };
	    return VerifyAcademicPlanData;
	}());
	exports.VerifyAcademicPlanData = VerifyAcademicPlanData;
	angular.module('capability-ng-academic-planner').service('ngAPVerifyAcademicPlanData', VerifyAcademicPlanData);


/***/ }),
/* 1307 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var course_conflict_enum_1 = __webpack_require__(124);
	/**
	 * @phxAcademicPlanner
	 */
	/**
	 * @capability-ng-academic-planner
	 */
	__webpack_require__(1504);
	angular.module('capability-ng-smartcatalog', []);
	exports.ApAppName = 'capability-ng-academic-planner';
	angular
	    .module(exports.ApAppName, [
	    'ngAria',
	    'ui.router',
	    'ui-ng-ax',
	    'ui-ng-modal',
	    'ui-ng-drag-drop',
	    'ui-ng-smooth-scroll',
	    'ui-ng-popover',
	    'ui-ng-component-communicator',
	    'ui-ng-university-text',
	    'ui-ng-sticky',
	    'capability-ng-smartcatalog',
	    'utility-ng-auth-token',
	    'data-ng-custom-text'
	])
	    .factory('CourseConflictEnum', function (Enumeration) {
	    return Enumeration('CourseConflictEnum', course_conflict_enum_1.CourseConflictEnum);
	})
	    .run(function ($state, $injector) {
	    window['$INJ'] = $injector;
	})
	    .config(function (authTokenProvider) {
	    authTokenProvider.configure({
	        authTokenApi: '/ssccampus/token?scheduling_api=None',
	        tokenExpiryTime: 5
	    });
	});
	__webpack_require__(1191);
	exports.default = exports.ApAppName;


/***/ }),
/* 1308 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .service('addMmTermCommand', function addMmTermCommandDefinition($http, defineCommandORM, accountModel, ngAPStudentDetailsQuery, ngAPMultiTermDatasource, ngAPAvailableTermsDatasource, log) {
	    return defineCommandORM('addMmTermCommand', function addMmTermCommand(deferred, termId) {
	        var studentNk = _4.get(accountModel, 'student_nk', 0) || _4.get(ngAPStudentDetailsQuery, 'result.id', 0);
	        $http
	            .post("academicplan/students/" + studentNk + "/student_planned_terms", { term: termId })
	            .then(function (response) {
	            ngAPAvailableTermsDatasource.del(termId);
	            deferred.resolve(studentNk);
	        })
	            .catch(function (e) {
	            log.issue('failed to save term, please try again');
	            deferred.reject(e.data);
	        });
	    });
	});


/***/ }),
/* 1309 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-academic-planner')
	    .service('addTermCommand', function addTermCommandDefinition($http, defineCommand, ngAPCommandUrlServant, ngAPModel, ngFeedbackSuggestedPlanModel, ngAPTermsDatasource, log) {
	    return defineCommand('addTermCommand', function addTermCommand(deferred, termId) {
	        // TODO: Create servant for getting student/advisor term payload
	        var payload = {
	            term_id: _4.parseInt(termId),
	            suggested_plan: ngFeedbackSuggestedPlanModel.read().id
	        };
	        var academicPlanUrl = ngAPCommandUrlServant.get('academicPlan');
	        $http
	            .post(academicPlanUrl + "/term/", payload)
	            .then(function (response) {
	            ngAPModel.addPlannedTerm(_4.parseInt(termId));
	            utility_ts_orm_1.ORM.run(ngAPModel, ngAPTermsDatasource);
	            deferred.resolve(response.data);
	        })
	            .catch(function (e) {
	            log.issue('failed to save term, please try again');
	            deferred.reject(e.data);
	        });
	    });
	});


/***/ }),
/* 1310 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_datasource_1 = __webpack_require__(9);
	var ap_program_slot_servant_1 = __webpack_require__(15);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('advisorSaveCourseGroupToTermCommand', function advisorSaveCourseGroupToTermCommand(log, ngAPCourseGroupPayloadServant, ngAPPlannedCourseGroupDatasource, ngAPTermsDatasource, ngAPCommandUrlServant, ngAPProgramSlotDatasource, $http, defineCommand) {
	    return defineCommand('advisorSaveCourseGroupToTermCommand', function (deferred, term, data) {
	        var courseGroupUrl = ngAPCommandUrlServant.get('courseGroup');
	        var payload = ngAPCourseGroupPayloadServant.payload({
	            course_group: data.course_group,
	            program_slot: data.program_slot,
	            term: term
	        });
	        $http
	            .post(courseGroupUrl, payload)
	            .then(function (response) {
	            _4.map(response.data.suggested_course_groups, function (item) {
	                ngAPPlannedCourseGroupDatasource.write([
	                    {
	                        course_group: item.course_group.nk,
	                        id: item.id,
	                        program_slot: item.program_slot,
	                        term: item.term.id
	                    }
	                ]);
	                ap_program_slot_servant_1.APProgramSlotServant.updateCourseGroupPlannedState(ngAPProgramSlotDatasource, item.program_slot);
	            });
	            deferred.resolve(utility_ts_datasource_1.ORM.run(ngAPPlannedCourseGroupDatasource, ngAPProgramSlotDatasource, ngAPTermsDatasource));
	        })
	            .catch(function (e) {
	            log.issue('failed to save course group');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1311 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .service('bulkLockUnLockCoursesCommand', function bulkLockUnLockCoursesCommand(defineCommandORM, ngAPPlannedCoursesDatasource, $http) {
	    return defineCommandORM('bulkLockUnLockCoursesCommand', function (deferred, courseIds, isLocked) {
	        if (isLocked === void 0) { isLocked = true; }
	        var data = _4.map(courseIds, function (courseId) { return ({
	            id: courseId,
	            is_locked: isLocked
	        }); });
	        $http
	            .put("/academicplan/suggested_courses/", data)
	            .then(function () {
	            _4.each(courseIds, function (courseId) {
	                var plannedCourse = ngAPPlannedCoursesDatasource.get(courseId);
	                if (plannedCourse) {
	                    plannedCourse.is_locked = isLocked;
	                    ngAPPlannedCoursesDatasource.put(plannedCourse);
	                }
	            });
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1312 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-academic-planner')
	    .service('deleteMmTermCommand', function deleteMmTermCommandDefinition($http, defineCommand, accountModel, ngAPStudentDetailsQuery, ngAPMultiTermDatasource, log) {
	    return defineCommand('deleteMmTermCommand', function deleteMmTermCommand(deferred, plannedtermId) {
	        var studentNk = _4.get(accountModel, 'student_nk', 0) || _4.get(ngAPStudentDetailsQuery, 'result.id', 0);
	        $http
	            .delete("academicplan/students/" + studentNk + "/student_planned_terms/" + plannedtermId)
	            .then(function (response) {
	            ngAPMultiTermDatasource.del(plannedtermId);
	            utility_ts_orm_1.ORM.run(ngAPMultiTermDatasource);
	            deferred.resolve(studentNk);
	        })
	            .catch(function (e) {
	            log.issue('failed to delete term, please try again');
	            deferred.reject(e.data);
	        });
	    });
	});


/***/ }),
/* 1313 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-academic-planner')
	    .service('deleteTermCommand', function deleteTermCommandDefinition($http, defineCommand, ngAPModel, ngAPCommandUrlServant, ngAPPlannedCoursesDatasource, ngFeedbackSuggestedPlanModel, ngAPPlannedCourseGroupDatasource, log) {
	    return defineCommand('deleteTermCommand', function deleteTermCommand(deferred, term) {
	        // TODO: Create servant for getting student/advisor term payload
	        var payload = {
	            term_id: term.id,
	            suggested_plan: ngFeedbackSuggestedPlanModel.read().id
	        };
	        var academicPlanUrl = ngAPCommandUrlServant.get('academicPlan');
	        $http
	            .delete(academicPlanUrl + "/term/", {
	            data: payload
	        })
	            .then(function (response) {
	            ngAPModel.removePlannedTerm(term.id);
	            ngAPPlannedCoursesDatasource.clear().write(response.data.planned_course);
	            ngAPPlannedCourseGroupDatasource.clear().write(response.data.planned_course_group);
	            deferred.resolve(utility_ts_orm_1.ORM.run(ngAPPlannedCourseGroupDatasource, ngAPPlannedCoursesDatasource, ngAPModel));
	        })
	            .catch(function (e) {
	            log.issue('failed to delete term, please try again');
	            deferred.reject(e.data);
	        });
	    });
	});


/***/ }),
/* 1314 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular.module('capability-ng-academic-planner').factory('removeCourseFromTermAndAddCourseCommand', 
	/* tslint:disable:parameters-max-number */
	function removeCourseFromTermAndAddCourseCommand(log, $http, $rootScope, ngAPPlannedCourseGroupDatasource, ngAPPlannedCoursesDatasource, ngAPTermsDatasource, ngAPCommandUrlServant, ngAPProgramSlotDatasource, ngAPCoursesDatasource, defineCommandORM, QueryMediator, ngAPNotificationDelegate) {
	    return defineCommandORM('removeCourseFromTermAndAddCourseCommand', function (deferred, courseToRemove, courseToAdd, programSlotToAdd, oldTerm, newTerm, courseNk, source) {
	        if (courseNk === void 0) { courseNk = null; }
	        if (source === void 0) { source = 'PLANNER'; }
	        var payload = {
	            course_id: courseToRemove.course,
	            term_id: oldTerm
	        };
	        var academicPlanUrl = ngAPCommandUrlServant.get('academicPlan');
	        $http
	            .delete(academicPlanUrl, {
	            data: payload
	        })
	            .then(function (response) {
	            ngAPPlannedCoursesDatasource.del(courseToRemove.id);
	            var slot = programSlotToAdd;
	            var savePayload = {
	                course_id: courseToAdd.id,
	                term_id: newTerm,
	                slot_id: _4.isEmpty(slot) || slot.slot < 1 || slot.isDevReq ? null : slot.id,
	                course_nk: courseNk,
	                source: source
	            };
	            $rootScope.$emit('my.planner.show.saving.message', newTerm);
	            $http
	                .post(academicPlanUrl, savePayload)
	                .then(function (secondResponse) {
	                _4.each(response.data.conflict_course, function (crse) {
	                    ngAPCoursesDatasource.put(crse);
	                });
	                ngAPCoursesDatasource.write(secondResponse.data.course);
	                ngAPPlannedCoursesDatasource.clear().write(secondResponse.data.planned_course);
	                deferred.resolve(QueryMediator.runQueries(ngAPPlannedCoursesDatasource, ngAPPlannedCourseGroupDatasource, ngAPProgramSlotDatasource, ngAPTermsDatasource));
	            })
	                .catch(function (error) {
	                ngAPNotificationDelegate.error("failed to save course to term");
	                log.issue('failed to save course to term');
	                deferred.reject(error.data);
	            });
	        })
	            .catch(function (e) {
	            ngAPNotificationDelegate.error("failed to save course to term");
	            log.issue('failed to save course group');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1315 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular.module('capability-ng-academic-planner').service('removeCourseFromTermCommand', 
	/* tslint:disable:parameters-max-number */
	function removeCourseFromTermCommandDefinition($http, defineCommand, ngAPPlannedCoursesDatasource, ngAPTermsDatasource, ngAPProgramSlotDatasource, QueryMediator, ngAPCommandUrlServant, $rootScope, log, ngAPNotificationDelegate) {
	    return defineCommand('removeCourseFromTermCommand', function removeCourseFromTermCommand(deferred, program_slot, course, isTermMove) {
	        var termId = course.term;
	        var payload = {
	            course_id: course.course,
	            term_id: termId
	        };
	        // Emit message to planner on this channel to show saving message.
	        $rootScope.$emit('my.planner.show.saving.message', termId);
	        var academicPlanUrl = ngAPCommandUrlServant.get('academicPlan');
	        $http
	            .delete(academicPlanUrl, {
	            data: payload
	        })
	            .then(function (response) {
	            if (isTermMove !== true) {
	                ngAPPlannedCoursesDatasource.clear().write(response.data.planned_course);
	                deferred.resolve(QueryMediator.runQueries(ngAPPlannedCoursesDatasource, ngAPProgramSlotDatasource, ngAPTermsDatasource));
	            }
	            else {
	                deferred.resolve();
	            }
	        })
	            .catch(function (error) {
	            ngAPNotificationDelegate.error("Failed to remove course from term");
	            log.issue('Failed to remove course from term');
	            deferred.reject(error.data);
	        });
	    });
	});


/***/ }),
/* 1316 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var user_mode_api_strategy_1 = __webpack_require__(28);
	var ap_program_slot_servant_1 = __webpack_require__(15);
	angular.module('capability-ng-academic-planner').factory('removeCourseGroupFromTermAndAddCourseGroupCommand', 
	/* tslint:disable:parameters-max-number */
	function removeCourseGroupFromTermAndAddCourseGroupCommand(log, $http, $rootScope, ngAPPlannedCourseGroupDatasource, $state, ngAPProgramSlotDatasource, ngAPCommandUrlServant, advisorSaveCourseGroupToTermCommand, studentSaveCourseGroupToTermCommand, defineCommand) {
	    return defineCommand('removeCourseGroupFromTermAndAddCourseGroupCommand', function (deferred, courseGroup, newCourseGroup, newTermId) {
	        var courseGroupUrl = ngAPCommandUrlServant.get('courseGroup');
	        var roleType = user_mode_api_strategy_1.RoleTypeStrategy.evaluate($state);
	        $http
	            .delete(courseGroupUrl + "/" + courseGroup.id)
	            .then(function (response) {
	            ngAPPlannedCourseGroupDatasource.del(courseGroup.id);
	            ap_program_slot_servant_1.APProgramSlotServant.updateCourseGroupPlannedState(ngAPProgramSlotDatasource, courseGroup.program_slot);
	            $rootScope.$emit('my.planner.show.saving.message', newCourseGroup.term);
	            if (roleType === 'student') {
	                studentSaveCourseGroupToTermCommand(newTermId, newCourseGroup, newCourseGroup.program_slot);
	            }
	            else if (roleType === 'advisor') {
	                advisorSaveCourseGroupToTermCommand(newTermId, newCourseGroup);
	            }
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue('failed to save course group');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1317 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_datasource_1 = __webpack_require__(9);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('removeCourseGroupFromTermCommand', function removeCourseGroupFromTermCommand(log, $http, ngAPPlannedCourseGroupDatasource, ngAPTermsDatasource, ngAPCommandUrlServant, ngAPProgramSlotDatasource, defineCommand) {
	    return defineCommand('removeCourseGroupFromTermCommand', function (deferred, course, courseGroupId) {
	        var courseGroupUrl = ngAPCommandUrlServant.get('courseGroup');
	        $http
	            .delete(courseGroupUrl + "/" + courseGroupId)
	            .then(function (response) {
	            ngAPPlannedCourseGroupDatasource.del(courseGroupId);
	            deferred.resolve(utility_ts_datasource_1.ORM.run(ngAPPlannedCourseGroupDatasource, ngAPProgramSlotDatasource, ngAPTermsDatasource));
	        })
	            .catch(function (e) {
	            log.issue('failed to save course group');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1318 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .service('removeMmCourseFromTermCommand', function removeMmCourseFromTermCommandDefinition($http, defineCommand, ngAPStudentDetailsQuery, accountModel, log, ngAPNotificationDelegate) {
	    return defineCommand('removeMmCourseFromTermCommand', function removeMmCourseFromTermCommand(deferred, plannedCourseId) {
	        if (plannedCourseId === void 0) { plannedCourseId = 0; }
	        var studentId = _4.get(accountModel, 'student_nk', 0) || _4.get(ngAPStudentDetailsQuery, 'result.id', 0);
	        $http
	            .delete("academicplan/students/" + studentId + "/planned_courses/" + plannedCourseId)
	            .then(function () {
	            deferred.resolve(studentId);
	        })
	            .catch(function (error) {
	            ngAPNotificationDelegate.error("Failed to remove course from term");
	            log.issue('Failed to remove course from term');
	            deferred.reject(error.data);
	        });
	    });
	});


/***/ }),
/* 1319 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .service('removeMmCourseGroupFromTermCommand', function removeMmCourseGroupFromTermCommandDefinition($http, defineCommand, log, ngAPStudentDetailsQuery, accountModel, ngAPNotificationDelegate) {
	    return defineCommand('removeMmCourseGroupFromTermCommand', function removeMmCourseGroupFromTermCommand(deferred, plannedCourseGroupId) {
	        if (plannedCourseGroupId === void 0) { plannedCourseGroupId = 0; }
	        var studentId = _4.get(accountModel, 'student_nk', 0) || _4.get(ngAPStudentDetailsQuery, 'result.id', 0);
	        $http
	            .delete("academicplan/students/" + studentId + "/planned_course_groups/" + plannedCourseGroupId)
	            .then(function () {
	            deferred.resolve(studentId);
	        })
	            .catch(function (error) {
	            ngAPNotificationDelegate.error("Failed to remove course group from term");
	            log.issue('Failed to remove course group from term');
	            deferred.reject(error.data);
	        });
	    });
	});


/***/ }),
/* 1320 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var user_mode_api_strategy_1 = __webpack_require__(28);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('saveCourseGroupToTermCommand', function saveCourseGroupToTermCommand($state, advisorSaveCourseGroupToTermCommand, studentSaveCourseGroupToTermCommand, defineCommand) {
	    return defineCommand('saveCourseGroupToTermCommand', function (deferred, course) {
	        var roleType = user_mode_api_strategy_1.RoleTypeStrategy.evaluate($state);
	        if (roleType === 'student') {
	            studentSaveCourseGroupToTermCommand(course.term, course, course.program_slot).then(deferred.resolve);
	        }
	        else if (roleType === 'advisor') {
	            advisorSaveCourseGroupToTermCommand(course.term, course).then(deferred.resolve);
	        }
	    });
	});


/***/ }),
/* 1321 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular.module('capability-ng-academic-planner').service('saveCourseToTermCommand', 
	/* tslint:disable:parameters-max-number */
	function saveCourseToTermCommandDefinition($http, defineCommand, log, QueryMediator, ngAPPlannedCoursesDatasource, ngAPCoursesDatasource, ngAPTermsDatasource, ngAPSectionTypeDatasource, ngAPCommandUrlServant, $rootScope, ngAPNotificationDelegate) {
	    return defineCommand('saveCourseToTermCommand', function saveCourseToTermCommand(deferred, courseId, termId, slot, isDevReq, course_nk, source) {
	        if (course_nk === void 0) { course_nk = null; }
	        if (source === void 0) { source = 'PLANNER'; }
	        var payload = {
	            course_id: courseId || null,
	            term_id: termId,
	            slot_id: _4.isEmpty(slot) || slot.slot < 1 || isDevReq ? null : slot.id,
	            course_nk: course_nk,
	            source: source
	        };
	        // Emit message to planner on this channel to show saving message.
	        $rootScope.$emit('my.planner.show.saving.message', termId);
	        var academicPlanUrl = ngAPCommandUrlServant.get('academicPlan');
	        $http
	            .post(academicPlanUrl, payload)
	            .then(function (response) {
	            _4.each(response.data.course, function (course) {
	                ngAPCoursesDatasource.put(course);
	            });
	            ngAPPlannedCoursesDatasource.clear().write(response.data.planned_course);
	            _4.each(response.data.conflict_course, function (course) {
	                ngAPCoursesDatasource.put(course);
	            });
	            ngAPSectionTypeDatasource.write(response.data.section_type);
	            QueryMediator.runQueries(ngAPSectionTypeDatasource, ngAPPlannedCoursesDatasource, ngAPTermsDatasource);
	            deferred.resolve(response.data.planned_course);
	        })
	            .catch(function (e) {
	            ngAPNotificationDelegate.error("Unable to create a new draft of suggestions: " + e.data.detail);
	            log.issue('failed to save course to term');
	            deferred.reject(e.data);
	        });
	    });
	});


/***/ }),
/* 1322 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('saveMmCourseGroupToTermCommand', function saveMmCourseGroupToTermCommand($http, accountModel, ngAPStudentDetailsQuery, defineCommand, log, ngAPNotificationDelegate) {
	    return defineCommand('saveMmCourseGroupToTermCommand', function (deferred, payload) {
	        var studentId = _4.get(accountModel, 'student_nk', 0) || _4.get(ngAPStudentDetailsQuery, 'result.id', 0);
	        $http
	            .post("academicplan/students/" + studentId + "/planned_course_groups", payload)
	            .then(function () {
	            deferred.resolve(studentId);
	        })
	            .catch(function (e) {
	            ngAPNotificationDelegate.error("Unable to save coursegroup to term");
	            log.issue('failed to save coursegroup to term');
	            deferred.reject(e.data);
	        });
	    });
	});


/***/ }),
/* 1323 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .service('saveMmCourseToTermCommand', function saveMmCourseToTermCommandDefinition($http, defineCommand, ngAPStudentDetailsQuery, log, accountModel, $rootScope, ngAPNotificationDelegate) {
	    return defineCommand('saveMmCourseToTermCommand', function saveMmCourseToTermCommand(deferred, payload) {
	        // Emit message to planner on this channel to show saving message.
	        $rootScope.$emit('my.planner.show.saving.message', payload.term);
	        var studentId = _4.get(accountModel, 'student_nk', 0) || _4.get(ngAPStudentDetailsQuery, 'result.id', 0);
	        $http
	            .post("academicplan/students/" + studentId + "/planned_courses", payload)
	            .then(function () {
	            deferred.resolve(studentId);
	        })
	            .catch(function (e) {
	            ngAPNotificationDelegate.error("Unable to save course to term");
	            log.issue('failed to save course to term');
	            deferred.reject(e.data);
	        });
	    });
	});


/***/ }),
/* 1324 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_datasource_1 = __webpack_require__(9);
	var ap_program_slot_servant_1 = __webpack_require__(15);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('studentSaveCourseGroupToTermCommand', function studentSaveCourseGroupToTermCommand(log, ngAPCourseGroupPayloadServant, ngAPPlannedCourseGroupDatasource, ngAPTermsDatasource, ngAPCommandUrlServant, ngAPProgramSlotDatasource, $http, defineCommand) {
	    return defineCommand('studentSaveCourseGroupToTermCommand', function (deferred, term, newCourseGroup, programSlot) {
	        var courseGroupUrl = ngAPCommandUrlServant.get('courseGroup');
	        var payload = ngAPCourseGroupPayloadServant.payload({
	            course_group: newCourseGroup.course_group,
	            program_slot: programSlot,
	            term: term
	        });
	        $http
	            .post(courseGroupUrl, payload)
	            .then(function (reponse) {
	            ngAPPlannedCourseGroupDatasource.write([reponse.data]);
	            ap_program_slot_servant_1.APProgramSlotServant.updateCourseGroupPlannedState(ngAPProgramSlotDatasource, reponse.data.program_slot);
	            deferred.resolve(utility_ts_datasource_1.ORM.run(ngAPPlannedCourseGroupDatasource, ngAPProgramSlotDatasource, ngAPTermsDatasource));
	        })
	            .catch(function (e) {
	            log.issue('failed to save course group');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1325 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('updateProgramSlotCommand', function (defineCommandORM, ngAPProgramSlotDatasource) {
	    return defineCommandORM('updateProgramSlotCommand', function (deferred, id, updatingData) {
	        var pgmSlot = ngAPProgramSlotDatasource.get(id);
	        if (!pgmSlot) {
	            deferred.reject('Failed to update slot entry');
	            return;
	        }
	        ngAPProgramSlotDatasource.put(_4.merge({}, pgmSlot, updatingData));
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1326 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_generic_slot_servant_1 = __webpack_require__(18);
	var ap_term_servant_1 = __webpack_require__(20);
	var BulkCoursesLockUnlockController = /** @class */ (function () {
	    function BulkCoursesLockUnlockController(ngAPNotificationDelegate, bulkLockUnLockCoursesCommand, ngAPStudentDetailsQuery) {
	        this.ngAPNotificationDelegate = ngAPNotificationDelegate;
	        this.bulkLockUnLockCoursesCommand = bulkLockUnLockCoursesCommand;
	        this.ngAPStudentDetailsQuery = ngAPStudentDetailsQuery;
	        this.studentName = '';
	        this.openModal = false;
	        this.heading = '';
	        this.isTermLevelLocking = true;
	        this.lockingUnlockingCoursesInfo = [];
	        this.lockUnlockButtonText = 'Lock Course(s)';
	        this.confirmationText = '';
	        this.placeholdersInfo = [];
	        this.showUnlockingPlaceholderText = false;
	    }
	    BulkCoursesLockUnlockController.prototype.$onInit = function () {
	        this.initialize();
	    };
	    BulkCoursesLockUnlockController.prototype.initialize = function () {
	        this.studentName = this.ngAPStudentDetailsQuery.result.first_name;
	        this.lockUnlockButtonText = this.isLocking ? 'Lock Course(s)' : 'Unlock Course(s)';
	        var headingPrependText = this.isLocking ? 'Lock' : 'Unlock';
	        this.confirmationText = "Are you sure you want to " + headingPrependText + " these course(s)?";
	        this.placeholdersInfo = this.getUnlockedPlaceHolderDisplayInfo();
	        this.lockingUnlockingCoursesInfo = this.getLockingUnlockingDisplayInformation().coursesInfo;
	        var hedingAppendText = this.isTermLevelLocking ? _4.head(this.terms).name : this.studentName + "'s Academic Plan";
	        this.heading = headingPrependText + " " + _4.size(this._getLockingUnlockingCourseIds()) + " Planned Course(s) in " + hedingAppendText;
	        this.showUnlockingPlaceholderText = this.isLocking && !_4.isEmpty(this.placeholdersInfo);
	    };
	    BulkCoursesLockUnlockController.prototype.getUnlockedPlaceHolderDisplayInfo = function () {
	        var _this = this;
	        return _4.filter(_4.compact(_4.map(this.terms, function (term) { return ({
	            termName: term.name,
	            placeholderNames: _this.getUnlockedPlaceHolderNames(term)
	        }); })), function (placeholderInfo) { return _4.gt(_4.size(placeholderInfo.placeholderNames), 0); });
	    };
	    BulkCoursesLockUnlockController.prototype.getUnlockedPlaceHolderNames = function (term) {
	        var _this = this;
	        return _4.compact(_4.map(_4.filter(term._genericSlots, function (genericSlot) {
	            return !ap_generic_slot_servant_1.APGenericSlotServant.isCourseSlot(genericSlot) && !_4.get(genericSlot, 'plannedCourse');
	        }), function (slot) { return _this._getPlaceholderTilte(slot); }));
	    };
	    BulkCoursesLockUnlockController.prototype._getPlaceholderTilte = function (slot) {
	        var title = slot.title;
	        if (!ap_generic_slot_servant_1.APGenericSlotServant.isNCRSlot(slot)) {
	            return title + " (Pick a course in order to lock)";
	        }
	        return title + " (These requirements cannot be locked)";
	    };
	    BulkCoursesLockUnlockController.prototype.getLockingUnlockingDisplayInformation = function () {
	        var _this = this;
	        var coursesInfo = _4.filter(_4.compact(_4.map(this.terms, function (term) { return ({
	            termName: term.name,
	            courseNames: _this._getTermLockingUnlockingCoursesInfo(term).courseNames
	        }); })), function (courseInfo) { return _4.gt(_4.size(courseInfo.courseNames), 0); });
	        return {
	            coursesInfo: coursesInfo
	        };
	    };
	    BulkCoursesLockUnlockController.prototype._getTermLockingUnlockingCoursesInfo = function (term) {
	        var lockingUnlockingCourses = this.isLocking
	            ? ap_term_servant_1.APTermServant.getAllUnLockedPlannedCourses(term)
	            : ap_term_servant_1.APTermServant.getAllLockedPlannedCourses(term);
	        var courseNames = _4.map(lockingUnlockingCourses, function (plannedCourse) {
	            return _4.get(plannedCourse, '_course._title', '');
	        });
	        var courseIds = _4.map(lockingUnlockingCourses, function (plannedCourse) { return plannedCourse.id; });
	        return {
	            courseNames: courseNames,
	            courseIds: courseIds
	        };
	    };
	    BulkCoursesLockUnlockController.prototype._getLockingUnlockingCourseIds = function () {
	        var _this = this;
	        return _4.flatMap(this.terms, function (term) { return _this._getTermLockingUnlockingCoursesInfo(term).courseIds; });
	    };
	    BulkCoursesLockUnlockController.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    BulkCoursesLockUnlockController.prototype.accept = function () {
	        var _this = this;
	        var courseIds = this._getLockingUnlockingCourseIds();
	        this.bulkLockUnLockCoursesCommand(courseIds, this.isLocking).then(function () {
	            _this.closeDialog();
	            _this.ngAPNotificationDelegate.success(_this._getGrowlerText());
	        });
	    };
	    BulkCoursesLockUnlockController.prototype.openedChanged = function ($event) {
	        if ($event && $event.detail && !$event.detail.value) {
	            this.closeDialog();
	        }
	    };
	    BulkCoursesLockUnlockController.prototype._getGrowlerText = function () {
	        var coursesCount = _4.size(this._getLockingUnlockingCourseIds());
	        var text = coursesCount + " course(s) " + (this.isLocking ? 'Locked' : 'Unlocked') + ";";
	        var growlerAppendText = this.isTermLevelLocking ? "in the " + _4.head(this.terms).name : "on the plan";
	        return text + " " + growlerAppendText;
	    };
	    BulkCoursesLockUnlockController.prototype.closeDialog = function () {
	        this.openModal = false;
	    };
	    return BulkCoursesLockUnlockController;
	}());
	exports.BulkCoursesLockUnlockController = BulkCoursesLockUnlockController;
	angular.module('capability-ng-academic-planner').component('bulkCoursesLockUnlockModal', {
	    templateUrl: 'capability-ng-academic-planner/src/plan/components/bulk_courses_lock_unlock_modal/bulk_courses_lock_unlock_modal.html',
	    bindings: {
	        terms: '<',
	        openModal: '=',
	        isLocking: '<',
	        isTermLevelLocking: '<?'
	    },
	    controller: BulkCoursesLockUnlockController
	});


/***/ }),
/* 1327 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ap_term_servant_1 = __webpack_require__(20);
	var ConflictReminderController = /** @class */ (function () {
	    function ConflictReminderController($state) {
	        this.$state = $state;
	    }
	    ConflictReminderController.prototype.initialize = function () {
	        var termStatus = this.term._termStatus.value || this.term._termStatus;
	        this.buttonLabel = termStatus.button_label || 'Pick Times';
	        this.coursesMissingRequisites = ap_term_servant_1.APTermServant.coursesMissingRequisites(this.term);
	        this.coursesOffered = this.term._genericSlots.filter(function (course) { return course.plannedCourse && course.plannedCourse.is_course_offered === false; });
	    };
	    ConflictReminderController.prototype.$onInit = function () {
	        this.initialize();
	    };
	    ConflictReminderController.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    ConflictReminderController.prototype.hide = function () {
	        this.showConflictReminder = false;
	    };
	    ConflictReminderController.prototype.continue = function () {
	        this.hide();
	        this.$state.go('my.schedule.registration', {
	            termId: this.term.id
	        }, { reload: true });
	    };
	    return ConflictReminderController;
	}());
	exports.ConflictReminderController = ConflictReminderController;
	var ConflictReminder = /** @class */ (function () {
	    function ConflictReminder() {
	        this.bindings = {
	            term: '<',
	            showConflictReminder: '='
	        };
	        this.controller = ConflictReminderController;
	        this.templateUrl =
	            'capability-ng-academic-planner/src/plan/components/conflict_reminder_popup/conflict_reminder_popup.html';
	    }
	    return ConflictReminder;
	}());
	angular.module('capability-ng-academic-planner').component('conflictReminder', new ConflictReminder());


/***/ }),
/* 1328 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(7);
	var CourseDetail = /** @class */ (function () {
	    function CourseDetail(routerHelper) {
	        this.routerHelper = routerHelper;
	    }
	    CourseDetail.prototype.showCourseDetails = function () {
	        return this.routerHelper.findStateAndGo('.course_details', {
	            courseDetails: {
	                courseNk: this.genericSlot.course.nk,
	                termId: this.genericSlot.termId,
	                title: this.genericSlot.course._title,
	                programSlotId: _4.get(this.genericSlot, 'programSlot.id', null),
	                slotType: !_4.isEmpty(this.genericSlot.programSlot)
	                    ? _4.get(this.genericSlot, 'programSlot.slot_type', null)
	                    : 'COURSE'
	            }
	        });
	    };
	    return CourseDetail;
	}());
	angular.module('capability-ng-academic-planner').component('courseDetailComponent', {
	    templateUrl: 'capability-ng-academic-planner/src/plan/components/course_slot_component/course_detail_component/course_detail_component.html',
	    controller: CourseDetail,
	    bindings: {
	        genericSlot: '<'
	    }
	});


/***/ }),
/* 1329 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(7);
	var event_names_1 = __webpack_require__(23);
	var CourseSlotComponent = /** @class */ (function () {
	    function CourseSlotComponent(ngComponentCommunicatorService, routerHelper) {
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.routerHelper = routerHelper;
	    }
	    CourseSlotComponent.prototype.$onChanges = function () {
	        this.boldTextEnabled = _4.isBoolean(this.boldTextEnabled) ? this.boldTextEnabled : this.boldTextEnabled === 'true';
	        this.isEditable = _4.isBoolean(this.isEditable) ? this.isEditable : this.isEditable === 'true';
	    };
	    CourseSlotComponent.prototype.emphasizeDropArea = function () {
	        this.ngComponentCommunicatorService.publish(event_names_1.EMPHASIZE_DROP_AREA);
	    };
	    CourseSlotComponent.prototype.deEmphasizeDropArea = function () {
	        this.ngComponentCommunicatorService.publish(event_names_1.DEEMPHASIZE_DROP_AREA);
	    };
	    CourseSlotComponent.prototype.showCourseDetails = function () {
	        return this.routerHelper.findStateAndGo('.course_details', {
	            courseDetails: {
	                courseNk: this.genericSlot.course.nk,
	                termId: this.genericSlot.termId,
	                title: this.genericSlot.course._title,
	                programSlotId: _4.get(this.genericSlot, 'programSlot.id', null),
	                slotType: !_4.isEmpty(this.genericSlot.programSlot)
	                    ? _4.get(this.genericSlot, 'programSlot.slot_type', null)
	                    : 'COURSE'
	            }
	        });
	    };
	    return CourseSlotComponent;
	}());
	angular.module('capability-ng-academic-planner').component('courseSlotComponent', {
	    templateUrl: 'capability-ng-academic-planner/src/plan/components/course_slot_component/course_slot_component.html',
	    controller: CourseSlotComponent,
	    transclude: {
	        actions: '?actionsLeftSide'
	    },
	    bindings: {
	        genericSlot: '<',
	        disableDrag: '<',
	        isEditable: '<',
	        boldTextEnabled: '<'
	    }
	});


/***/ }),
/* 1330 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var DegreeMapInstructionsComponent = /** @class */ (function () {
	    function DegreeMapInstructionsComponent(ngAPModel) {
	        this.ngAPModel = ngAPModel;
	        this.expanded = false;
	        this.planInstructions = '';
	        this.planShortInstructions = '';
	        this.planInstructions = this.ngAPModel.currentProgram().plan_instructions || '';
	        this.planShortInstructions = this.ngAPModel.currentProgram().short_plan_instructions || '';
	    }
	    DegreeMapInstructionsComponent.prototype.instructionsToggled = function (event) {
	        this.expanded = event.detail.value;
	    };
	    return DegreeMapInstructionsComponent;
	}());
	angular.module('capability-ng-academic-planner').component('degreeMapInstructionsComponent', {
	    templateUrl: 'capability-ng-academic-planner/src/plan/components/degree_map/components/degree_map_instructions_component/degree_map_instructions_component.html',
	    controller: DegreeMapInstructionsComponent
	});


/***/ }),
/* 1331 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MmDegreeMapInstructionsComponent = /** @class */ (function () {
	    function MmDegreeMapInstructionsComponent(ngAPProgramInfoQuery) {
	        this.ngAPProgramInfoQuery = ngAPProgramInfoQuery;
	        this.expanded = false;
	    }
	    MmDegreeMapInstructionsComponent.prototype.instructionsToggled = function (event) {
	        this.expanded = event.detail.value;
	    };
	    return MmDegreeMapInstructionsComponent;
	}());
	angular.module('capability-ng-academic-planner').component('mmDegreeMapInstructionsComponent', {
	    templateUrl: 'capability-ng-academic-planner/src/plan/components/degree_map/components/degree_map_instructions_component/mm_degree_map_instructions_component.html',
	    controller: MmDegreeMapInstructionsComponent
	});


/***/ }),
/* 1332 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var DegreeMapInstructioncComponentStateModel = /** @class */ (function () {
	    function DegreeMapInstructioncComponentStateModel() {
	        this.componentExpanded = false;
	    }
	    return DegreeMapInstructioncComponentStateModel;
	}());
	exports.DegreeMapInstructioncComponentStateModel = DegreeMapInstructioncComponentStateModel;
	angular
	    .module('capability-ng-academic-planner')
	    .service('ngDegreeMapInstructioncComponentStateModel', DegreeMapInstructioncComponentStateModel);


/***/ }),
/* 1333 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_planned_course_servant_1 = __webpack_require__(41);
	var event_names_1 = __webpack_require__(23);
	var DegreeMapSlotGroupComponentController = /** @class */ (function () {
	    function DegreeMapSlotGroupComponentController(ngComponentCommunicatorService) {
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.groupExpanded = false;
	        this.dropGenericSlots = []; // SGD-10826
	    }
	    DegreeMapSlotGroupComponentController.prototype.shouldOpenCourseGroup = function ($event, groupExpanded) {
	        // current target will be the li tag as we attached the event on it.
	        // target will be the element click happened
	        // we don't want to close the course group when click happened on course tile element
	        var event = $event.currentTarget.querySelector('.course-group-tile-collapse-handler');
	        var clickedOnTrigger = event
	            ? $event.currentTarget.querySelector('.course-group-tile-collapse-handler').contains($event.target)
	            : false;
	        if (groupExpanded && clickedOnTrigger) {
	            return false;
	        }
	        return true;
	    };
	    DegreeMapSlotGroupComponentController.prototype.emphasizeDropArea = function () {
	        this.ngComponentCommunicatorService.publish(event_names_1.EMPHASIZE_DROP_AREA);
	    };
	    DegreeMapSlotGroupComponentController.prototype.deEmphasizeDropArea = function () {
	        this.ngComponentCommunicatorService.publish(event_names_1.DEEMPHASIZE_DROP_AREA);
	    };
	    DegreeMapSlotGroupComponentController.prototype.$onChanges = function () {
	        this.isEditable = _4.isBoolean(this.isEditable) ? this.isEditable : this.isEditable === 'true';
	    };
	    DegreeMapSlotGroupComponentController.prototype.getStatusBadgeForPlannedCourse = function (plannedCourse) {
	        return ap_planned_course_servant_1.APPlannedCourseServant.statusBadge(plannedCourse);
	    };
	    return DegreeMapSlotGroupComponentController;
	}());
	var DegreeMapSlotGroupComponent = /** @class */ (function () {
	    function DegreeMapSlotGroupComponent() {
	        this.bindings = {
	            slots: '=',
	            isEditable: '<?'
	        };
	        this.controller = DegreeMapSlotGroupComponentController;
	        this.templateUrl =
	            'capability-ng-academic-planner/src/plan/components/degree_map/components/degree_map_slot_group_component/degree_map_slot_group_component.html';
	    }
	    return DegreeMapSlotGroupComponent;
	}());
	angular
	    .module('capability-ng-academic-planner')
	    .component('degreeMapSlotGroupComponent', new DegreeMapSlotGroupComponent());


/***/ }),
/* 1334 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_id_constants_1 = __webpack_require__(11);
	var event_names_1 = __webpack_require__(23);
	var MultipleDegreeMapSlotGroupComponentController = /** @class */ (function () {
	    function MultipleDegreeMapSlotGroupComponentController(ngComponentCommunicatorService) {
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.groupExpanded = false;
	        this.isGroupExpanded = false;
	        this.groupIconAngle = '0';
	        this.dropGenericSlots = []; // SGD-10826
	    }
	    MultipleDegreeMapSlotGroupComponentController.prototype.$onChanges = function () {
	        this.isEditable = _4.isBoolean(this.isEditable) ? this.isEditable : this.isEditable === 'true';
	    };
	    MultipleDegreeMapSlotGroupComponentController.prototype.toggleGroupExpandCollapse = function () {
	        this.isGroupExpanded = !this.isGroupExpanded;
	        this.groupIconAngle = this.isGroupExpanded ? '90' : '0';
	    };
	    MultipleDegreeMapSlotGroupComponentController.prototype.dndData = function (data, type) {
	        var courseId;
	        var slotId = ap_id_constants_1.INVALID_ID;
	        if (type === 'DEV_REQ_COURSE') {
	            courseId = _4.get(data, 'id', ap_id_constants_1.INVALID_ID);
	        }
	        else {
	            slotId = _4.get(data, 'id', ap_id_constants_1.INVALID_ID);
	            courseId = _4.get(_4.first(_4.get(data, 'courses', [])), 'id', ap_id_constants_1.INVALID_ID);
	        }
	        var courseGroupId = _4.get(data, 'courseGroupId', ap_id_constants_1.INVALID_ID);
	        return {
	            slotId: slotId,
	            courseId: courseId,
	            courseGroupId: courseGroupId,
	            isFromTerm: false,
	            slotType: type
	        };
	    };
	    MultipleDegreeMapSlotGroupComponentController.prototype.emphasizeDropArea = function () {
	        this.ngComponentCommunicatorService.publish(event_names_1.EMPHASIZE_DROP_AREA);
	    };
	    MultipleDegreeMapSlotGroupComponentController.prototype.deEmphasizeDropArea = function () {
	        this.ngComponentCommunicatorService.publish(event_names_1.DEEMPHASIZE_DROP_AREA);
	    };
	    return MultipleDegreeMapSlotGroupComponentController;
	}());
	var MultipleDegreeMapSlotGroupComponent = /** @class */ (function () {
	    function MultipleDegreeMapSlotGroupComponent() {
	        this.bindings = {
	            slots: '=',
	            isEditable: '<?'
	        };
	        this.controller = MultipleDegreeMapSlotGroupComponentController;
	        this.templateUrl =
	            'capability-ng-academic-planner/src/plan/components/degree_map/components/degree_map_slot_group_component/multiple_degree_map_slot_group_component.html';
	    }
	    return MultipleDegreeMapSlotGroupComponent;
	}());
	angular
	    .module('capability-ng-academic-planner')
	    .component('multipleDegreeMapSlotGroupComponent', new MultipleDegreeMapSlotGroupComponent());


/***/ }),
/* 1335 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_planned_course_servant_1 = __webpack_require__(41);
	var event_names_1 = __webpack_require__(23);
	var APDegreeMap = /** @class */ (function () {
	    function APDegreeMap(ngAPDegreeMapQuery, ngAPAdvisorText, ngComponentCommunicatorService, phxFeatureConfiguration) {
	        this.ngAPDegreeMapQuery = ngAPDegreeMapQuery;
	        this.ngAPAdvisorText = ngAPAdvisorText;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.phxFeatureConfiguration = phxFeatureConfiguration;
	        this.advisorText = 'advisor';
	    }
	    APDegreeMap.prototype.emphasizeDropArea = function () {
	        this.ngComponentCommunicatorService.publish(event_names_1.EMPHASIZE_DROP_AREA);
	    };
	    APDegreeMap.prototype.deEmphasizeDropArea = function () {
	        this.ngComponentCommunicatorService.publish(event_names_1.DEEMPHASIZE_DROP_AREA);
	    };
	    APDegreeMap.prototype.nonGroupedSlotGroup = function () {
	        return this.ngAPDegreeMapQuery.result.nonDevReqCourses;
	    };
	    APDegreeMap.prototype.showProgramSlotAsAccordion = function () {
	        // if we have at least one unique NK in group data
	        return !_4.isEmpty(_4.compact(_4.uniq(_4.map(this.ngAPDegreeMapQuery.result.yearGroups, 'nk'))));
	    };
	    APDegreeMap.prototype.hasDevReqs = function () {
	        return !_4.isEmpty(this.ngAPDegreeMapQuery.result.devReqCourses);
	    };
	    APDegreeMap.prototype.getStatusBadgeForPlannedCourse = function (plannedCourse) {
	        return ap_planned_course_servant_1.APPlannedCourseServant.statusBadge(plannedCourse);
	    };
	    APDegreeMap.prototype.$onChanges = function () {
	        this.advisorText = this.ngAPAdvisorText.advisorLabel;
	        this.isEditable = _4.isBoolean(this.isEditable) ? this.isEditable : this.isEditable === 'true';
	    };
	    return APDegreeMap;
	}());
	exports.APDegreeMap = APDegreeMap;
	var APDegreeMapComponent = /** @class */ (function () {
	    function APDegreeMapComponent() {
	        this.bindings = {
	            slots: '=',
	            isEditable: '<?'
	        };
	        this.controller = APDegreeMap;
	        this.templateUrl = 'capability-ng-academic-planner/src/plan/components/degree_map/degree_map.html';
	    }
	    return APDegreeMapComponent;
	}());
	angular.module('capability-ng-academic-planner').component('apDegreeMap', new APDegreeMapComponent());


/***/ }),
/* 1336 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APMultiDegreeTemplateController = /** @class */ (function () {
	    function APMultiDegreeTemplateController(ngAPAdvisorText, ngAPMultiDegreeTemplateQuery, ngComponentCommunicatorService, phxFeatureConfiguration, ngAPGoalSetsQuery, accountModel, ngAPStudentDetailsQuery, loadMmDegreeMapCommand) {
	        this.ngAPAdvisorText = ngAPAdvisorText;
	        this.ngAPMultiDegreeTemplateQuery = ngAPMultiDegreeTemplateQuery;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.phxFeatureConfiguration = phxFeatureConfiguration;
	        this.ngAPGoalSetsQuery = ngAPGoalSetsQuery;
	        this.accountModel = accountModel;
	        this.ngAPStudentDetailsQuery = ngAPStudentDetailsQuery;
	        this.loadMmDegreeMapCommand = loadMmDegreeMapCommand;
	        this.advisorText = 'advisor';
	        this.showDegreeMapLoadingIndicatorBound = this.showDegreeMapLoadingIndicator.bind(this);
	        this.hideDegreeMapLoadingIndicatorBound = this.hideDegreeMapLoadingIndicator.bind(this);
	    }
	    APMultiDegreeTemplateController.prototype.$onInit = function () {
	        this.ngComponentCommunicatorService.subscribe('DEGREE_MAP_LOADING', this.showDegreeMapLoadingIndicatorBound);
	        this.ngComponentCommunicatorService.subscribe('DEGREE_MAP_LOADING_SUCCESS', this.hideDegreeMapLoadingIndicatorBound);
	        this.ngComponentCommunicatorService.subscribe('DEGREE_MAP_LOADING_FAILURE', this.hideDegreeMapLoadingIndicatorBound);
	    };
	    APMultiDegreeTemplateController.prototype.$onChanges = function () {
	        this.advisorText = this.ngAPAdvisorText.advisorLabel;
	        this.isEditable = _4.isBoolean(this.isEditable) ? this.isEditable : this.isEditable === 'true';
	    };
	    APMultiDegreeTemplateController.prototype.onGoalSetSelectionChangedEvent = function (event) {
	        var goalSetId = _4.get(event, 'detail.value', 0);
	        var studentId = _4.get(this.accountModel, 'student_nk', 0) || _4.get(this.ngAPStudentDetailsQuery, 'result.id', 0);
	        this.loadMmDegreeMapCommand(studentId, goalSetId);
	    };
	    APMultiDegreeTemplateController.prototype.showDegreeMapLoadingIndicator = function () {
	        this.isDegreeMapLoading = true;
	    };
	    APMultiDegreeTemplateController.prototype.hideDegreeMapLoadingIndicator = function () {
	        this.isDegreeMapLoading = false;
	    };
	    return APMultiDegreeTemplateController;
	}());
	exports.APMultiDegreeTemplateController = APMultiDegreeTemplateController;
	var APMultiDegreeTemplateComponent = /** @class */ (function () {
	    function APMultiDegreeTemplateComponent() {
	        this.bindings = {
	            isEditable: '<?'
	        };
	        this.controller = APMultiDegreeTemplateController;
	        this.templateUrl = 'capability-ng-academic-planner/src/plan/components/degree_map/multi_degree_map.html';
	    }
	    return APMultiDegreeTemplateComponent;
	}());
	angular
	    .module('capability-ng-academic-planner')
	    .component('apMultiDegreeTemplate', new APMultiDegreeTemplateComponent());


/***/ }),
/* 1337 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_generic_slot_servant_1 = __webpack_require__(18);
	var ap_program_slot_servant_1 = __webpack_require__(15);
	var termSlotGroupCategorize = function (slot) {
	    if (ap_generic_slot_servant_1.APGenericSlotServant.isCourseGroupSlot(slot)) {
	        slot.max_credits = slot.programSlot.max_credits;
	        slot.min_credits = slot.programSlot.min_credits;
	    }
	    else if (ap_generic_slot_servant_1.APGenericSlotServant.isCourseSlot(slot)) {
	        slot.credits = slot.programSlot._courses[0].credits;
	    }
	    return slot;
	};
	exports.categorizeYearGroup = function (year, nonDevReqGenericSlots) {
	    _4.each(year._term_slot_group, function (term) {
	        var programSlots = _4.filter(nonDevReqGenericSlots, function (nonDevReqs) { return nonDevReqs.programSlot.term_slot_group === term.id; });
	        _4.each(programSlots, termSlotGroupCategorize);
	        term._creditsRange = ap_program_slot_servant_1.APProgramSlotServant.getCreditsRange(programSlots);
	        term._programSlots = programSlots;
	    });
	};
	var APDegreeMapQuery = /** @class */ (function () {
	    function APDegreeMapQuery(QueryMediator, ngAPTermsDatasource, ngAPPlannedCourseGroupDatasource, ngAPCoursesDatasource, ngAPProgramSlotDatasource, ngLargeCourseGroupModel, ngAPDegreeMapQueryHelper, ngAPYearSlotGroupDatasource, ngAPMarkAsMetStatusDatasource, ngAPPlannedCoursesDatasource, ngCommentsDatasource, ngLargeCourseGroupSearchResultModel) {
	        this.ngAPTermsDatasource = ngAPTermsDatasource;
	        this.ngAPPlannedCourseGroupDatasource = ngAPPlannedCourseGroupDatasource;
	        this.ngAPCoursesDatasource = ngAPCoursesDatasource;
	        this.ngAPProgramSlotDatasource = ngAPProgramSlotDatasource;
	        this.ngLargeCourseGroupModel = ngLargeCourseGroupModel;
	        this.ngAPDegreeMapQueryHelper = ngAPDegreeMapQueryHelper;
	        this.ngAPYearSlotGroupDatasource = ngAPYearSlotGroupDatasource;
	        this.ngAPMarkAsMetStatusDatasource = ngAPMarkAsMetStatusDatasource;
	        this.ngAPPlannedCoursesDatasource = ngAPPlannedCoursesDatasource;
	        this.ngCommentsDatasource = ngCommentsDatasource;
	        this.ngLargeCourseGroupSearchResultModel = ngLargeCourseGroupSearchResultModel;
	        QueryMediator.registerQuery(this, ngAPTermsDatasource, ngAPCoursesDatasource, ngAPPlannedCourseGroupDatasource, ngAPProgramSlotDatasource, ngLargeCourseGroupModel, ngLargeCourseGroupSearchResultModel, ngAPMarkAsMetStatusDatasource, ngAPPlannedCoursesDatasource, ngCommentsDatasource);
	    }
	    APDegreeMapQuery.prototype.run = function () {
	        var devReqGenericSlots = this.ngAPDegreeMapQueryHelper.buildDevReqGenericSlots();
	        var nonDevReqGenericSlots = this.ngAPDegreeMapQueryHelper.buildNonDevGenericSlots();
	        var yearSlotGroupWithMeta = this.ngAPYearSlotGroupDatasource.metasource().derived();
	        var yearGroup = _4.toArray(yearSlotGroupWithMeta);
	        _4.each(yearGroup, function (year) {
	            return exports.categorizeYearGroup(year, nonDevReqGenericSlots);
	        });
	        var nonGroupedProgramSlots = _4.filter(nonDevReqGenericSlots, function (nonDevReqs) { return nonDevReqs.programSlot.term_slot_group === null; });
	        if (_4.gt(_4.size(nonGroupedProgramSlots), 0)) {
	            yearGroup.push({
	                id: undefined,
	                nk: '',
	                rank: undefined,
	                name: 'No Associated Term',
	                _term_slot_group: [
	                    {
	                        id: undefined,
	                        name: '',
	                        year_slot_group: undefined,
	                        _programSlots: nonGroupedProgramSlots
	                    }
	                ]
	            });
	        }
	        var isDegreeMapEmpty = _4.isEmpty(devReqGenericSlots) && _4.isEmpty(nonDevReqGenericSlots);
	        this.__result = {
	            hasDevReqCourses: false,
	            hasNonDevReqCourses: !_4.isEmpty(nonDevReqGenericSlots),
	            devReqCourses: devReqGenericSlots,
	            nonDevReqCourses: nonDevReqGenericSlots,
	            slotGroupGroups: {},
	            isDegreeMapEmpty: isDegreeMapEmpty,
	            hasSlotGroups: false,
	            yearGroups: _4.sortBy(yearGroup, function (year) { return year.rank; })
	        };
	        return this;
	    };
	    Object.defineProperty(APDegreeMapQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APDegreeMapQuery;
	}());
	exports.APDegreeMapQuery = APDegreeMapQuery;
	angular.module('capability-ng-academic-planner').service('ngAPDegreeMapQuery', APDegreeMapQuery);


/***/ }),
/* 1338 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var APMultiDegreeTemplateQuery = /** @class */ (function () {
	    function APMultiDegreeTemplateQuery(QueryMediator, ngAPMultiTemplateSlotDatasource, ngAPMultiDevReqTemplateSlotDatasource) {
	        this.ngAPMultiTemplateSlotDatasource = ngAPMultiTemplateSlotDatasource;
	        this.ngAPMultiDevReqTemplateSlotDatasource = ngAPMultiDevReqTemplateSlotDatasource;
	        QueryMediator.registerQuery(this, ngAPMultiTemplateSlotDatasource, ngAPMultiDevReqTemplateSlotDatasource);
	    }
	    APMultiDegreeTemplateQuery.prototype.run = function () {
	        var nonDevReqCourses = this.ngAPMultiTemplateSlotDatasource.values();
	        var devReqCourses = this.ngAPMultiDevReqTemplateSlotDatasource.values();
	        var hasNonDevReqCourses = nonDevReqCourses.length > 0;
	        var hasDevReqCourses = devReqCourses.length > 0;
	        var isDegreeMapEmpty = !hasNonDevReqCourses && !hasDevReqCourses;
	        this.__result = {
	            isDegreeMapEmpty: isDegreeMapEmpty,
	            hasNonDevReqCourses: hasNonDevReqCourses,
	            hasDevReqCourses: hasDevReqCourses,
	            nonDevReqCourses: nonDevReqCourses,
	            devReqCourses: devReqCourses
	        };
	        return this;
	    };
	    Object.defineProperty(APMultiDegreeTemplateQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APMultiDegreeTemplateQuery;
	}());
	exports.APMultiDegreeTemplateQuery = APMultiDegreeTemplateQuery;
	angular.module('capability-ng-academic-planner').service('ngAPMultiDegreeTemplateQuery', APMultiDegreeTemplateQuery);


/***/ }),
/* 1339 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_id_constants_1 = __webpack_require__(11);
	var event_names_1 = __webpack_require__(23);
	var APMmFavoriteCourses = /** @class */ (function () {
	    function APMmFavoriteCourses(ngAPMmFavoriteCoursesQuery, ngComponentCommunicatorService, log) {
	        this.ngAPMmFavoriteCoursesQuery = ngAPMmFavoriteCoursesQuery;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.log = log;
	    }
	    APMmFavoriteCourses.prototype.dndData = function (data) {
	        var courseId = _4.get(data, 'id', ap_id_constants_1.INVALID_ID);
	        return {
	            slotId: ap_id_constants_1.INVALID_ID,
	            courseId: courseId,
	            courseGroupId: ap_id_constants_1.INVALID_ID,
	            isFromTerm: false,
	            slotType: 'COURSE'
	        };
	    };
	    APMmFavoriteCourses.prototype.emphasizeDropArea = function () {
	        this.ngComponentCommunicatorService.publish(event_names_1.EMPHASIZE_DROP_AREA);
	    };
	    APMmFavoriteCourses.prototype.deEmphasizeDropArea = function () {
	        this.ngComponentCommunicatorService.publish(event_names_1.DEEMPHASIZE_DROP_AREA);
	    };
	    APMmFavoriteCourses.prototype.hasFavorites = function () {
	        return !_4.isEmpty(this.ngAPMmFavoriteCoursesQuery.result);
	    };
	    return APMmFavoriteCourses;
	}());
	exports.APMmFavoriteCourses = APMmFavoriteCourses;
	angular.module('capability-ng-academic-planner').component('apMmFavoriteCourses', {
	    templateUrl: 'capability-ng-academic-planner/src/plan/components/favorite/ap_mm_favorite_courses.html',
	    bindings: {},
	    controller: APMmFavoriteCourses
	});


/***/ }),
/* 1340 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var event_names_1 = __webpack_require__(23);
	var APFavoriteCourses = /** @class */ (function () {
	    function APFavoriteCourses(ngAPFavoriteCoursesQuery, ngComponentCommunicatorService, log) {
	        this.ngAPFavoriteCoursesQuery = ngAPFavoriteCoursesQuery;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.log = log;
	        this.queries = {
	            favoriteCourses: ngAPFavoriteCoursesQuery
	        };
	    }
	    APFavoriteCourses.prototype.emphasizeDropArea = function () {
	        this.ngComponentCommunicatorService.publish(event_names_1.EMPHASIZE_DROP_AREA);
	    };
	    APFavoriteCourses.prototype.deEmphasizeDropArea = function () {
	        this.ngComponentCommunicatorService.publish(event_names_1.DEEMPHASIZE_DROP_AREA);
	    };
	    APFavoriteCourses.prototype.hasFavorites = function () {
	        return !_4.isEmpty(this.ngAPFavoriteCoursesQuery.result.courses);
	    };
	    APFavoriteCourses.prototype.temporaryDragOperation_removeCourse = function (courseIndex) {
	        this.queries.favoriteCourses.result.courses.splice(courseIndex, 1);
	    };
	    return APFavoriteCourses;
	}());
	exports.APFavoriteCourses = APFavoriteCourses;
	angular.module('capability-ng-academic-planner').component('apFavoriteCourses', {
	    templateUrl: 'capability-ng-academic-planner/src/plan/components/favorite/favorite.html',
	    bindings: {},
	    controller: APFavoriteCourses
	});


/***/ }),
/* 1341 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .factory('clearLargeCourseGroupSearchResultCommand', function clearLargeCourseGroupSearchResultCommandDefinition(ngLargeCourseGroupSearchResultModel, defineCommandORM) {
	    return defineCommandORM('clearLargeCourseGroupSearchResultCommand', function clearLargeCourseGroupSearchResultCommand(deferred) {
	        ngLargeCourseGroupSearchResultModel.read().ids = [];
	        ngLargeCourseGroupSearchResultModel.clear().write({
	            ids: []
	        });
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1342 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var ap_program_slot_servant_1 = __webpack_require__(15);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('fetchLargeCourseGroupCommand', function ($http, defineCommandORM, ngAPCoursesDatasource, ngAPProgramSlotDatasource, ngLargeCourseGroupSearchResultModel, log) {
	    return defineCommandORM('fetchLargeCourseGroupCommand', function (deferred, slot_id, limit, offset, query) {
	        if (query === void 0) { query = ''; }
	        var slot = ngAPProgramSlotDatasource.get(slot_id);
	        var url = "/academicplan/course/";
	        var course_group_nk;
	        if (slot && ap_program_slot_servant_1.APProgramSlotServant.isCourseGroupProgramSlot(slot)) {
	            course_group_nk = slot.course_group;
	        }
	        $http({
	            url: url,
	            method: 'GET',
	            params: {
	                course_group_nk: course_group_nk,
	                limit: limit,
	                offset: offset,
	                query: query
	            }
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            var programSlotCourses = data.results.map(function (course) { return ({ course_id: course.id }); });
	            ngAPCoursesDatasource.write(data.results);
	            var newIds = tslib_1.__spreadArrays(_4.cloneDeep(ngLargeCourseGroupSearchResultModel.read().ids), _4.map(data.results, function (result) { return result['id']; }));
	            ngLargeCourseGroupSearchResultModel.clear();
	            ngLargeCourseGroupSearchResultModel.read().ids = newIds;
	            ngLargeCourseGroupSearchResultModel.write({
	                ids: newIds,
	                count: data.count,
	                next: data.next,
	                previous: data.previous
	            });
	            var programSlot = ngAPProgramSlotDatasource.get(slot_id);
	            if (programSlot && !ap_program_slot_servant_1.APProgramSlotServant.isNCRProgramSlot(programSlot)) {
	                programSlot.courses = _4.uniqBy(_4.concat(programSlot.courses || [], programSlotCourses), 'course_id');
	                ngAPProgramSlotDatasource.put(programSlot);
	            }
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue('failed to retrieve info for course');
	            deferred.reject(e.data);
	        });
	    });
	});


/***/ }),
/* 1343 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ap_id_constants_1 = __webpack_require__(11);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('hideLargeCourseGroupCommand', function hideLargeCourseGroupCommandDefinition(log, ngLargeCourseGroupModel, defineCommandORM) {
	    return defineCommandORM('hideLargeCourseGroupCommand', function hideLargeCourseGroupCommand(deferred) {
	        ngLargeCourseGroupModel.clear().write({
	            selectedTerm: ap_id_constants_1.INVALID_ID,
	            selectedSlot: {}
	        });
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1344 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .factory('showLargeCourseGroupCommand', function showLargeCourseGroupCommandDefinition(log, ngLargeCourseGroupModel, defineCommandORM) {
	    return defineCommandORM('showLargeCourseGroupCommand', function showLargeCourseGroupCommand(deferred, slot) {
	        ngLargeCourseGroupModel.clear().write({
	            selectedTerm: slot.termId,
	            selectedSlot: slot
	        });
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1345 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_id_constants_1 = __webpack_require__(11);
	var ap_program_slot_servant_1 = __webpack_require__(15);
	var LargeCourseGroup = /** @class */ (function () {
	    function LargeCourseGroup($state, $rootScope, ngComponentCommunicatorService, ngLargeCourseGroupModel, ngLargeCourseGroupSearchResultsQuery, fetchLargeCourseGroupCommand, smoothScroll, $window, appConfigModel, $timeout, routerHelper, clearLargeCourseGroupSearchResultCommand, ngAPProgramSlotDatasource, ngAPPlannedCoursesDatasource, setSelectedPlannerResourceTabCommand) {
	        this.$state = $state;
	        this.$rootScope = $rootScope;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngLargeCourseGroupModel = ngLargeCourseGroupModel;
	        this.ngLargeCourseGroupSearchResultsQuery = ngLargeCourseGroupSearchResultsQuery;
	        this.fetchLargeCourseGroupCommand = fetchLargeCourseGroupCommand;
	        this.smoothScroll = smoothScroll;
	        this.$window = $window;
	        this.appConfigModel = appConfigModel;
	        this.$timeout = $timeout;
	        this.routerHelper = routerHelper;
	        this.clearLargeCourseGroupSearchResultCommand = clearLargeCourseGroupSearchResultCommand;
	        this.ngAPProgramSlotDatasource = ngAPProgramSlotDatasource;
	        this.ngAPPlannedCoursesDatasource = ngAPPlannedCoursesDatasource;
	        this.setSelectedPlannerResourceTabCommand = setSelectedPlannerResourceTabCommand;
	        this.termId = ap_id_constants_1.INVALID_ID;
	        this.courseGroupValue = '';
	        this.coursePlaceholderSelectedCourseRemoved = function () { return ({}); };
	        this.totalCourses = 100;
	        this.showLoading = false;
	        this.DEFAULT_PAGINATION_LIMIT = 100;
	        this.invalidSearchBoxMessage = '';
	        this.hasOneTimeDataFetched = false;
	        this.isWildCard = false;
	        this.isInSwapMode = false;
	        this.isSmartCatalogEnabled = false;
	        this.smartCatTitle = '';
	        this.parentCourse = {
	            plannedCourse: {},
	            programSlot: {}
	        };
	        this.pagination = {
	            offset: 0,
	            limit: this.DEFAULT_PAGINATION_LIMIT
	        };
	        this.queryString = '';
	        this.closeBound = this.close.bind(this);
	    }
	    LargeCourseGroup.prototype.goBack = function () {
	        this.$state.go('^.default');
	    };
	    Object.defineProperty(LargeCourseGroup.prototype, "hasCoursePlanned", {
	        get: function () {
	            var slotId = _4.toNumber(_4.get(this.$state, 'params.slotId', ap_id_constants_1.INVALID_ID));
	            var plannedCourses = this.ngAPPlannedCoursesDatasource.values();
	            var plannedCourseInSlot = _4.find(plannedCourses, function (plannedCourse) { return plannedCourse.program_slot === slotId; });
	            this.parentCourse['plannedCourse'] = plannedCourseInSlot || {};
	            return !_4.isEmpty(plannedCourseInSlot);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(LargeCourseGroup.prototype, "getSlotCourseGroupValue", {
	        get: function () {
	            var courseGroupValue = '';
	            var slot = this.ngAPProgramSlotDatasource.get(_4.get(this.$state, 'params.slotId', ap_id_constants_1.INVALID_ID));
	            this.parentCourse['programSlot'] = slot || {};
	            if (slot) {
	                courseGroupValue = slot.course_group;
	            }
	            return courseGroupValue;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    LargeCourseGroup.prototype.smartSearchCatTitle = function () {
	        var title = _4.get(this.parentCourse, 'programSlot.desc', '');
	        return this.isWildCard ? title : title + " Filters and Results";
	    };
	    LargeCourseGroup.prototype.$onInit = function () {
	        var _this = this;
	        this.courseGroupValue = this.getSlotCourseGroupValue;
	        this.termId = _4.get(this.$state, 'params.termId', ap_id_constants_1.INVALID_ID);
	        this.isInSwapMode = this.hasCoursePlanned;
	        this.isWildCard = this.ngLargeCourseGroupModel.read().selectedSlot.type === 'WILDCARD';
	        this.isSmartCatalogEnabled = this.appConfigModel.isFeatureEnabled('academicplan-smart_catalog');
	        this.smartCatTitle = this.smartSearchCatTitle();
	        var largeCourseGroupQueryResult = this.ngLargeCourseGroupSearchResultsQuery.result;
	        if (largeCourseGroupQueryResult.highlightedTerm !== ap_id_constants_1.INVALID_ID) {
	            this.smoothScroll.scrollTo("term-" + largeCourseGroupQueryResult.highlightedTerm, 30);
	        }
	        // the selectedSlot will always exist in this component on model ngLargeCourseGroupModel
	        if (ap_program_slot_servant_1.APProgramSlotServant.isCourseGroupProgramSlot(this.ngLargeCourseGroupModel.read().selectedSlot.programSlot)) {
	            this.onValueChanged();
	        }
	        this.ngComponentCommunicatorService.subscribe('CLOSE_LARGE_COURSE_GROUP_PANEL', this.closeBound);
	        this.coursePlaceholderSelectedCourseRemoved = this.$rootScope.$on('COURSE-PLACEHOLDER-SELECTED-COURSE-REMOVED', function (event, course) { return _this.$state.go('^.default'); });
	    };
	    LargeCourseGroup.prototype.searchCourseButton = function (event) {
	        var target = event.target || event.__target || event.srcElement;
	        var searchComponent = target.parentElement;
	        var isInputValid = searchComponent.validate();
	        this.invalidSearchBoxMessage = searchComponent.$.input.validationMessage;
	        if (!isInputValid) {
	            return;
	        }
	        this.searchCourseInsideCourseGroup();
	    };
	    LargeCourseGroup.prototype.fetchCourses = function () {
	        var _this = this;
	        this.showLoading = true;
	        this.fetchLargeCourseGroupCommand(_4.get(this.ngLargeCourseGroupModel.read(), 'selectedSlot.programSlot.id', null), this.pagination.limit, this.pagination.offset, this.queryString).then(function () {
	            _this.hasOneTimeDataFetched = true;
	            _this.showLoading = false;
	        });
	    };
	    LargeCourseGroup.prototype.onValueChanged = function ($event) {
	        var _this = this;
	        this.queryString = $event ? _4.get($event, 'detail.value', '') : '';
	        if (!_4.isEmpty(_4.trim(this.queryString)) && _4.lt(this.queryString.length, 3)) {
	            this.clearLargeCourseGroupSearchResultCommand();
	            return;
	        }
	        this.$timeout(function () {
	            _this.clearLargeCourseGroupSearchResultCommand();
	            _this.searchCourseInsideCourseGroup();
	        }, 300);
	    };
	    LargeCourseGroup.prototype.searchCourseInsideCourseGroup = function () {
	        if (_4.isEmpty(_4.trim(this.queryString))) {
	            this.pagination.limit = this.DEFAULT_PAGINATION_LIMIT;
	            this.pagination.offset = 0;
	        }
	        else {
	            this.clearLargeCourseGroupSearchResultCommand();
	            this.pagination.limit = this.DEFAULT_PAGINATION_LIMIT;
	            this.pagination.offset = 0;
	        }
	        this.fetchCourses();
	    };
	    LargeCourseGroup.prototype.showingCoursesLimitText = function () {
	        return "Showing " + (this.pagination.offset + 1) + " - " + Math.min(this.pagination.offset + this.pagination.limit, this.ngLargeCourseGroupSearchResultsQuery.result.totalCourses) + " of " + this.ngLargeCourseGroupSearchResultsQuery.result.totalCourses + " courses.";
	    };
	    LargeCourseGroup.prototype.onNext = function () {
	        this.pagination.offset = this.pagination.offset + this.pagination.limit;
	        this.fetchCourses();
	    };
	    LargeCourseGroup.prototype.onPrevious = function () {
	        this.pagination.offset = this.pagination.offset - this.pagination.limit;
	    };
	    LargeCourseGroup.prototype.$onDestroy = function () {
	        if (_4.isFunction(this.coursePlaceholderSelectedCourseRemoved)) {
	            this.coursePlaceholderSelectedCourseRemoved();
	        }
	        this.ngComponentCommunicatorService.release('CLOSE_LARGE_COURSE_GROUP_PANEL', this.closeBound);
	    };
	    LargeCourseGroup.prototype.close = function () {
	        if (_4.includes(this.$state.current.name, 'coursegroup')) {
	            this.routerHelper.findStateAndGo('^.default');
	            this.setSelectedPlannerResourceTabCommand('MAP');
	        }
	    };
	    return LargeCourseGroup;
	}());
	exports.LargeCourseGroup = LargeCourseGroup;
	angular.module('capability-ng-academic-planner').component('largeCourseGroup', {
	    templateUrl: 'capability-ng-academic-planner/src/plan/components/large_course_group/large_course_group.html',
	    bindings: {
	        isEditable: '<'
	    },
	    controller: LargeCourseGroup
	});


/***/ }),
/* 1346 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var ap_id_constants_1 = __webpack_require__(11);
	angular.module('capability-ng-academic-planner').factory('ngLargeCourseGroupModel', function () {
	    return new utility_ts_orm_1.Model({
	        selectedTerm: ap_id_constants_1.INVALID_ID,
	        selectedSlot: {}
	    });
	});


/***/ }),
/* 1347 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-academic-planner').factory('ngLargeCourseGroupSearchResultModel', function () {
	    return new utility_ts_orm_1.Model({
	        ids: [],
	        count: 0,
	        next: null,
	        previous: null
	    });
	});


/***/ }),
/* 1348 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_id_constants_1 = __webpack_require__(11);
	var ap_generic_slot_servant_1 = __webpack_require__(18);
	var LargeCourseGroupSearchResultsQuery = /** @class */ (function () {
	    function LargeCourseGroupSearchResultsQuery(ngLargeCourseGroupModel, ngLargeCourseGroupSearchResultModel, ngAPProgramSlotDatasource, ngAPTermCourseDataQueryhelper, ngAPDegreeMapQueryHelper, QueryMediator) {
	        this.ngLargeCourseGroupModel = ngLargeCourseGroupModel;
	        this.ngLargeCourseGroupSearchResultModel = ngLargeCourseGroupSearchResultModel;
	        this.ngAPProgramSlotDatasource = ngAPProgramSlotDatasource;
	        this.ngAPTermCourseDataQueryhelper = ngAPTermCourseDataQueryhelper;
	        this.ngAPDegreeMapQueryHelper = ngAPDegreeMapQueryHelper;
	        QueryMediator.registerQuery(this, ngLargeCourseGroupModel, ngLargeCourseGroupSearchResultModel, ngAPProgramSlotDatasource);
	    }
	    LargeCourseGroupSearchResultsQuery.prototype.run = function () {
	        var largeCourseGroupModel = this.ngLargeCourseGroupModel.read();
	        var nonDevReqGenericSlots = this.ngAPDegreeMapQueryHelper.buildNonDevGenericSlots();
	        this.__result = {
	            highlightedTerm: ap_id_constants_1.INVALID_ID,
	            showLargeCourseGroupBackdrop: false,
	            totalCourses: 0,
	            title: '',
	            showPagination: false,
	            largeCourseGroupSearchResults: {
	                genericSlots: []
	            },
	            nextEnabled: false,
	            prevEnabled: false
	        };
	        if (_4.isEmpty(largeCourseGroupModel.selectedSlot)) {
	            return this;
	        }
	        var nonDevReqGenericSlot = _4.first(nonDevReqGenericSlots.filter(function (genericSlot) {
	            return genericSlot.programSlot.id === largeCourseGroupModel.selectedSlot.programSlot.id;
	        }));
	        if (!nonDevReqGenericSlot) {
	            return this;
	        }
	        var groupGenericSlots = this.ngAPDegreeMapQueryHelper.constructGroupGenericSlots(nonDevReqGenericSlot.programSlot);
	        var largeCourseGroupDetails = this.ngAPTermCourseDataQueryhelper.getLargeCourseGroupSearchResult(nonDevReqGenericSlot, groupGenericSlots);
	        var largeCourseGroupSearchResults = largeCourseGroupDetails.largeCourseGroupSearchResults;
	        var largeCourseGroupSearchResultModel = this.ngLargeCourseGroupSearchResultModel.read();
	        this.__result = {
	            highlightedTerm: largeCourseGroupModel.selectedTerm,
	            largeCourseGroupSearchResults: largeCourseGroupSearchResults,
	            showLargeCourseGroupBackdrop: largeCourseGroupModel.selectedTerm !== ap_id_constants_1.INVALID_ID,
	            totalCourses: largeCourseGroupSearchResultModel.count,
	            nextEnabled: !_4.isNull(largeCourseGroupSearchResultModel.next),
	            prevEnabled: !_4.isNull(largeCourseGroupSearchResultModel.previous),
	            showPagination: !_4.isNull(largeCourseGroupSearchResultModel.next) || !_4.isNull(largeCourseGroupSearchResultModel.previous),
	            title: largeCourseGroupModel.selectedSlot.title
	        };
	        if (ap_generic_slot_servant_1.APGenericSlotServant.isWildcardSlot(nonDevReqGenericSlot)) {
	            this.__result.instructions = nonDevReqGenericSlot.instructions;
	        }
	        return this;
	    };
	    Object.defineProperty(LargeCourseGroupSearchResultsQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return LargeCourseGroupSearchResultsQuery;
	}());
	exports.LargeCourseGroupSearchResultsQuery = LargeCourseGroupSearchResultsQuery;
	angular
	    .module('capability-ng-academic-planner')
	    .service('ngLargeCourseGroupSearchResultsQuery', LargeCourseGroupSearchResultsQuery);


/***/ }),
/* 1349 */
/***/ (function(module, exports) {

	angular.module('capability-ng-academic-planner').component('advisorStudentNoPlanConfigured', {
	    templateUrl: 'capability-ng-academic-planner/src/plan/components/no_plan_configured/no_plan_configured.html'
	});


/***/ }),
/* 1350 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APMultiPlanner = /** @class */ (function () {
	    function APMultiPlanner($state, appConfigModel, ngAPGoalSetsQuery, ngAPPlannerResourceTabsQuery, ngAPTermsQuery, ngComponentCommunicatorService, ngAPUserModeConfig, ngAccountIdentityDatastore, ngAPModel, ngAPCustomTextQuery, accountModel, loadGoalSetsCommand, ngAPStudentDetailsQuery, loadAcademicPlanCommand, loadMmAcademicPlanCommand, loadMmDegreeMapCommand, loadMmFavoriteCoursesCommand, loadAlternatePlanListCommand, loadAvailableTermsCommand, loadMarkAsMetListCommand, setSelectedPlannerResourceTabCommand, ngLargeCourseGroupSearchResultsQuery) {
	        this.$state = $state;
	        this.appConfigModel = appConfigModel;
	        this.ngAPGoalSetsQuery = ngAPGoalSetsQuery;
	        this.ngAPPlannerResourceTabsQuery = ngAPPlannerResourceTabsQuery;
	        this.ngAPTermsQuery = ngAPTermsQuery;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.ngAccountIdentityDatastore = ngAccountIdentityDatastore;
	        this.ngAPModel = ngAPModel;
	        this.ngAPCustomTextQuery = ngAPCustomTextQuery;
	        this.accountModel = accountModel;
	        this.loadGoalSetsCommand = loadGoalSetsCommand;
	        this.ngAPStudentDetailsQuery = ngAPStudentDetailsQuery;
	        this.loadAcademicPlanCommand = loadAcademicPlanCommand;
	        this.loadMmAcademicPlanCommand = loadMmAcademicPlanCommand;
	        this.loadMmDegreeMapCommand = loadMmDegreeMapCommand;
	        this.loadMmFavoriteCoursesCommand = loadMmFavoriteCoursesCommand;
	        this.loadAlternatePlanListCommand = loadAlternatePlanListCommand;
	        this.loadAvailableTermsCommand = loadAvailableTermsCommand;
	        this.loadMarkAsMetListCommand = loadMarkAsMetListCommand;
	        this.setSelectedPlannerResourceTabCommand = setSelectedPlannerResourceTabCommand;
	        this.ngLargeCourseGroupSearchResultsQuery = ngLargeCourseGroupSearchResultsQuery;
	        this.shouldShowGoalSets = false;
	        this.degreeAuditLink = '';
	        this.hideLoadingIndicatorBound = this.hideLoadingIndicator.bind(this);
	    }
	    APMultiPlanner.prototype.$onInit = function () {
	        var _this = this;
	        this.ngComponentCommunicatorService.subscribe('DEGREE_MAP_LOADING_FAILURE', this.hideLoadingIndicatorBound);
	        this.ngComponentCommunicatorService.subscribe('DEGREE_MAP_LOADING_SUCCESS', this.hideLoadingIndicatorBound);
	        this.isLoadingData = true;
	        var studentNk = _4.get(this.accountModel, 'student_nk', 0) || _4.get(this.ngAPStudentDetailsQuery, 'result.id', 0);
	        this.loadMmAcademicPlanCommand(studentNk);
	        this.loadMmFavoriteCoursesCommand();
	        this.loadAvailableTermsCommand(studentNk);
	        this.shouldShowGoalSets = this.appConfigModel.isFeatureEnabled('cat-show_student_goal_sets');
	        if (this.shouldShowGoalSets) {
	            this.loadGoalSetsCommand(studentNk).then(function () {
	                var firstStudentGoalSetId = _4.get(_4.first(_this.ngAPGoalSetsQuery.result.goalSets), 'studentGoalSetId', 0);
	                _this.loadMmDegreeMapCommand(studentNk, firstStudentGoalSetId);
	            });
	        }
	    };
	    APMultiPlanner.prototype.$onChanges = function () {
	        this.degreeAuditLink = _4.get(this.ngAPCustomTextQuery.result['AP_DEGREE_AUDIT_URL'], 'text', '');
	    };
	    APMultiPlanner.prototype.hideLoadingIndicator = function () {
	        this.isLoadingData = false;
	    };
	    APMultiPlanner.prototype.switchPlannerResourcesRegion = function (event) {
	        var selectedPlannerResourceRegionKey = _4.toUpper(_4.get(event, 'detail.value.key', 'MAP'));
	        this.setSelectedPlannerResourceTabCommand(selectedPlannerResourceRegionKey);
	    };
	    Object.defineProperty(APMultiPlanner.prototype, "programTitleText", {
	        get: function () {
	            return this.models.program
	                ? this.models.program.name + " " + this.models.program.short_credential
	                : 'Program Title';
	        },
	        enumerable: true,
	        configurable: true
	    });
	    APMultiPlanner.prototype.print = function () {
	        // @ts-ignore
	        this.printDate = "Date Printed: " + moment().format('MMMM DD, YYYY ');
	        window.print();
	    };
	    return APMultiPlanner;
	}());
	exports.APMultiPlanner = APMultiPlanner;
	var APMultiPlannerComponent = /** @class */ (function () {
	    function APMultiPlannerComponent() {
	        this.controller = APMultiPlanner;
	        (this.bindings = {
	            isEditable: '@?'
	        }),
	            (this.templateUrl =
	                'capability-ng-academic-planner/src/plan/components/planner/multi_major/multi_major_planner.html');
	    }
	    return APMultiPlannerComponent;
	}());
	angular.module('capability-ng-academic-planner').component('apMultiPlanner', new APMultiPlannerComponent());


/***/ }),
/* 1351 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_type_1 = __webpack_require__(17);
	var planner_resource_tabs_1 = __webpack_require__(36);
	var APPlanner = /** @class */ (function () {
	    function APPlanner($state, $scope, appConfigModel, ngAPPlannerResourceTabsQuery, ngAPTermsQuery, ngComponentCommunicatorService, ngAPUserModeConfig, ngAccountIdentityDatastore, ngAPModel, ngAPCustomTextQuery, ngAPNotificationDelegate, accountModel, loadGoalSetsCommand, ngAPStudentDetailsQuery, loadAcademicPlanCommand, loadFavoriteCoursesCommand, loadGradeConfigsCommand, loadAlternatePlanListCommand, loadMarkAsMetListCommand, initiateCachedSclSearchConfigCommand, setSelectedPlannerResourceTabCommand, ngLargeCourseGroupSearchResultsQuery, ngCustomContentsServant) {
	        this.$state = $state;
	        this.$scope = $scope;
	        this.appConfigModel = appConfigModel;
	        this.ngAPPlannerResourceTabsQuery = ngAPPlannerResourceTabsQuery;
	        this.ngAPTermsQuery = ngAPTermsQuery;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.ngAccountIdentityDatastore = ngAccountIdentityDatastore;
	        this.ngAPModel = ngAPModel;
	        this.ngAPCustomTextQuery = ngAPCustomTextQuery;
	        this.ngAPNotificationDelegate = ngAPNotificationDelegate;
	        this.accountModel = accountModel;
	        this.loadGoalSetsCommand = loadGoalSetsCommand;
	        this.ngAPStudentDetailsQuery = ngAPStudentDetailsQuery;
	        this.loadAcademicPlanCommand = loadAcademicPlanCommand;
	        this.loadFavoriteCoursesCommand = loadFavoriteCoursesCommand;
	        this.loadGradeConfigsCommand = loadGradeConfigsCommand;
	        this.loadAlternatePlanListCommand = loadAlternatePlanListCommand;
	        this.loadMarkAsMetListCommand = loadMarkAsMetListCommand;
	        this.initiateCachedSclSearchConfigCommand = initiateCachedSclSearchConfigCommand;
	        this.setSelectedPlannerResourceTabCommand = setSelectedPlannerResourceTabCommand;
	        this.ngLargeCourseGroupSearchResultsQuery = ngLargeCourseGroupSearchResultsQuery;
	        this.ngCustomContentsServant = ngCustomContentsServant;
	        this.isExternalregistrationEnabled = false;
	        this.shouldShowGoalSets = false;
	        this.smartSearchOnBound = this.smartSearchOn.bind(this);
	        this.smartSearchOffBound = this.smartSearchOff.bind(this);
	        this.degreeAuditLink = '';
	        this.queries = {
	            terms: {}
	        };
	        this.flags = {
	            showEditGoalPreference: false,
	            plannerTabExpanded: false,
	            smartSearchToggle: false
	        };
	        this.updateModels();
	        this.printDate = "Date Printed: " + moment().format('MMMM DD, YYYY ');
	    }
	    APPlanner.prototype.smartSearchOn = function () {
	        this.flags.smartSearchToggle = true;
	    };
	    APPlanner.prototype.smartSearchOff = function () {
	        this.flags.smartSearchToggle = false;
	    };
	    APPlanner.prototype.gotoChangelog = function () {
	        var changelogRoute = this.$state.includes('ap-advisor') ? 'ap-advisor.changelog' : 'my.planner.changelog';
	        this.$state.go(changelogRoute);
	    };
	    APPlanner.prototype.$onInit = function () {
	        var _this = this;
	        this.ngAPTermsQuery.result.terms = [];
	        this.ngAPTermsQuery.result.plannedTerms = [];
	        var academicPlanApiUrl = _4.get(this.$state, "current.data.academicPlanUrl", '');
	        this.shouldShowGoalSets = this.appConfigModel.isFeatureEnabled('cat-show_student_goal_sets');
	        if (this.shouldShowGoalSets) {
	            // if user is advisor then make sure to get the student id from studentDetails not from accountModel
	            var studentId = this.ngAPUserModeConfig.isAdvisor()
	                ? _4.get(this.ngAPStudentDetailsQuery, 'result.id', 0)
	                : _4.get(this.accountModel, 'student_nk', 0);
	            this.loadGoalSetsCommand(studentId);
	        }
	        this.loadAcademicPlanCommand(academicPlanApiUrl).then(function () {
	            _this.initialize();
	            _this.doOnChanges();
	            // Dont make API call to get alternateplans if no program assigned to student SGD-14527
	            if (_this.ngAPModel.currentProgram().id > 0) {
	                _this.loadAlternatePlanListCommand();
	            }
	            _this.loadFavoriteCoursesCommand();
	            _this.loadMarkAsMetListCommand();
	        });
	        this.ngComponentCommunicatorService.subscribe('SMART_SEARCH_TOGGLE_ON', this.smartSearchOnBound);
	        this.ngComponentCommunicatorService.subscribe('SMART_SEARCH_TOGGLE_OFF', this.smartSearchOffBound);
	        this.initiateCachedSclSearchConfigCommand();
	        this.getScheduleAppointmentLabel();
	    };
	    APPlanner.prototype.switchPlannerResourcesRegion = function (event) {
	        var _this = this;
	        this.ngComponentCommunicatorService.publish('CLOSE_LARGE_COURSE_GROUP_PANEL');
	        var selectedPlannerResourceRegionKey = _4.toUpper(_4.get(event, 'detail.value.key', 'MAP'));
	        if (selectedPlannerResourceRegionKey === 'SCHEDULE_APPOINTMENT') {
	            var url = window.location.origin + "/app/" + this.$state.href('my.appointments');
	            return window.open(url);
	        }
	        var isSmartCatalogEnabled = this.appConfigModel.isFeatureEnabled('academicplan-smart_catalog');
	        if (selectedPlannerResourceRegionKey === 'SEARCH' && isSmartCatalogEnabled) {
	            var notificationName_1 = 'search-loading-notification';
	            this.ngAPNotificationDelegate.info({
	                content: "<div l-no-wrap l-kind=\"hort\" l-align=\"center\" l-width-fixed><hi-indicator theme=\"white\" size='small' class=\"mrm\"></hi-indicator>Loading the Search Screen</div>",
	                name: notificationName_1
	            });
	            return this.initiateCachedSclSearchConfigCommand().finally(function () {
	                return _this.setSelectedPlannerResourceTabCommand(selectedPlannerResourceRegionKey).then(function () {
	                    return _this.ngAPNotificationDelegate.dismissAlertByName(notificationName_1);
	                });
	            });
	        }
	        return this.setSelectedPlannerResourceTabCommand(selectedPlannerResourceRegionKey);
	    };
	    APPlanner.prototype.updateModels = function () {
	        this.models = {
	            program: _4.head(_4.toArray(this.ngAPModel.read().program))
	        };
	    };
	    APPlanner.prototype.initialize = function () {
	        this.updateModels();
	        this.isAdvisor = this.ngAPUserModeConfig.isAdvisor();
	        this.studentName = !this.isAdvisor
	            ? "" + this.ngAccountIdentityDatastore.store.fullname
	            : this.ngAPStudentDetailsQuery.result.first_name + " " + this.ngAPStudentDetailsQuery.result.last_name;
	    };
	    APPlanner.prototype.getScheduleAppointmentLabel = function () {
	        var _this = this;
	        if (this.accountModel.student_nk.startsWith('FAKE')) {
	            return;
	        }
	        this.ngCustomContentsServant.getButtonLabel(planner_resource_tabs_1.PlannerScheduleAppointmentTab.title).then(function (label) {
	            _this.$scope.$apply();
	        });
	    };
	    APPlanner.prototype.$onDestroy = function () {
	        this.ngComponentCommunicatorService.release('SMART_SEARCH_TOGGLE_ON', this.smartSearchOnBound);
	        this.ngComponentCommunicatorService.release('SMART_SEARCH_TOGGLE_OFF', this.smartSearchOffBound);
	    };
	    APPlanner.prototype.$onChanges = function () {
	        this.degreeAuditLink = _4.get(this.ngAPCustomTextQuery.result['AP_DEGREE_AUDIT_URL'], 'text', '');
	        this.doOnChanges();
	    };
	    Object.defineProperty(APPlanner.prototype, "programTitleText", {
	        get: function () {
	            return this.models.program
	                ? this.models.program.name + " " + this.models.program.short_credential
	                : 'Program Title';
	        },
	        enumerable: true,
	        configurable: true
	    });
	    APPlanner.prototype.doOnChanges = function () {
	        this.queries = {
	            terms: this.ngAPTermsQuery
	        };
	        this.isAdvisor = this.ngAPUserModeConfig.isAdvisor();
	        this.isEditable = _4.isBoolean(this.isEditable) ? this.isEditable : this.isEditable === 'true';
	        this.statePrefix = this.isAdvisor ? 'ap-advisor' : 'my.planner';
	        this.flags.showEditGoalPreference =
	            this.isEditable && this.appConfigModel.isFeatureEnabled('academicplan-allow_autoloading_plan');
	        this.programTitle = this.programTitleText;
	        this.creditsTitle = this.models.program
	            ? utility_ts_type_1.TypeUtility.NumberUtility.stripTrailingZeroes(this.models.program.credits) + " Credits"
	            : 'X Credits';
	        this.isExternalregistrationEnabled = !this.appConfigModel.isFeatureEnabled('reg-scheduler');
	    };
	    APPlanner.prototype.gotoEditPreference = function () {
	        this.$state.go(this.statePrefix + '.preview_plan.edit_preference', {}, { reload: true });
	    };
	    APPlanner.prototype.print = function () {
	        // @ts-ignore
	        this.printDate = "Date Printed: " + moment().format('MMMM DD, YYYY ');
	        window.print();
	    };
	    return APPlanner;
	}());
	exports.APPlanner = APPlanner;
	var APPlannerComponent = /** @class */ (function () {
	    function APPlannerComponent() {
	        this.controller = APPlanner;
	        (this.bindings = {
	            isEditable: '@?'
	        }),
	            (this.templateUrl = 'capability-ng-academic-planner/src/plan/components/planner/planner.html');
	    }
	    return APPlannerComponent;
	}());
	angular.module('capability-ng-academic-planner').component('apPlanner', new APPlannerComponent());


/***/ }),
/* 1352 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PlannerAddTermMenu = /** @class */ (function () {
	    function PlannerAddTermMenu(addTermCommand, phxAxTitleAnnouncerDelegate, ngAPTermsQuery, ngAPNotificationDelegate) {
	        this.addTermCommand = addTermCommand;
	        this.phxAxTitleAnnouncerDelegate = phxAxTitleAnnouncerDelegate;
	        this.ngAPTermsQuery = ngAPTermsQuery;
	        this.ngAPNotificationDelegate = ngAPNotificationDelegate;
	    }
	    PlannerAddTermMenu.prototype.addTermMenu = function (term) {
	        var _this = this;
	        if (term) {
	            this.addTermCommand(term.id, term.name).then(function () {
	                _this.phxAxTitleAnnouncerDelegate.announceChange(term.name + " term added");
	                _this.ngAPNotificationDelegate.success(term.name + " term added successfully.");
	            });
	        }
	    };
	    return PlannerAddTermMenu;
	}());
	angular.module('capability-ng-academic-planner').component('plannerAddTermMenu', {
	    controller: PlannerAddTermMenu,
	    templateUrl: 'capability-ng-academic-planner/src/plan/components/planner_add_term_menu/planner_add_term_menu.html'
	});


/***/ }),
/* 1353 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MmPlannerAddTermMenu = /** @class */ (function () {
	    function MmPlannerAddTermMenu(phxAxTitleAnnouncerDelegate, ngAPAvailableTermsQuery, ngAPNotificationDelegate, addMmTermCommand, loadMmAcademicPlanCommand) {
	        this.phxAxTitleAnnouncerDelegate = phxAxTitleAnnouncerDelegate;
	        this.ngAPAvailableTermsQuery = ngAPAvailableTermsQuery;
	        this.ngAPNotificationDelegate = ngAPNotificationDelegate;
	        this.addMmTermCommand = addMmTermCommand;
	        this.loadMmAcademicPlanCommand = loadMmAcademicPlanCommand;
	    }
	    MmPlannerAddTermMenu.prototype.addTermMenu = function (termId, termName) {
	        var _this = this;
	        this.addMmTermCommand(termId).then(function (studentNk) {
	            _this.loadMmAcademicPlanCommand(studentNk);
	            _this.phxAxTitleAnnouncerDelegate.announceChange(termName + " term added");
	            _this.ngAPNotificationDelegate.success(termName + " term added successfully.");
	        });
	    };
	    return MmPlannerAddTermMenu;
	}());
	angular.module('capability-ng-academic-planner').component('mmPlannerAddTermMenu', {
	    controller: MmPlannerAddTermMenu,
	    templateUrl: 'capability-ng-academic-planner/src/plan/components/planner_add_term_menu/planner_mm_add_term_menu.html'
	});


/***/ }),
/* 1354 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var ap_generic_slot_servant_1 = __webpack_require__(18);
	var PlannerCourseDeleteArea = /** @class */ (function () {
	    function PlannerCourseDeleteArea(removeCourseFromTermCommand, removeCourseGroupFromTermCommand, log, phxAxTitleAnnouncerDelegate, appConfigModel, loadMmAcademicPlanCommand, removeMmCourseFromTermCommand, removeMmCourseGroupFromTermCommand) {
	        this.removeCourseFromTermCommand = removeCourseFromTermCommand;
	        this.removeCourseGroupFromTermCommand = removeCourseGroupFromTermCommand;
	        this.log = log;
	        this.phxAxTitleAnnouncerDelegate = phxAxTitleAnnouncerDelegate;
	        this.appConfigModel = appConfigModel;
	        this.loadMmAcademicPlanCommand = loadMmAcademicPlanCommand;
	        this.removeMmCourseFromTermCommand = removeMmCourseFromTermCommand;
	        this.removeMmCourseGroupFromTermCommand = removeMmCourseGroupFromTermCommand;
	        this.dummyPlaceholderList = [];
	    }
	    PlannerCourseDeleteArea.prototype.dropCallback = function (event, index, genericSlot) {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            var isMultiPlanEnabled, slotType, plannedCourseId, err_1;
	            var _this = this;
	            return tslib_1.__generator(this, function (_a) {
	                switch (_a.label) {
	                    case 0:
	                        isMultiPlanEnabled = this.appConfigModel.isFeatureEnabled('cat-multitemplate_planner');
	                        if (!isMultiPlanEnabled) return [3 /*break*/, 1];
	                        slotType = _4.get(genericSlot, 'slotType', 'COURSE');
	                        plannedCourseId = _4.get(genericSlot, 'plannedCourseId', 0);
	                        if (slotType === 'COURSE') {
	                            this.removeMmCourseFromTermCommand(plannedCourseId).then(function (studentId) {
	                                _this.loadMmAcademicPlanCommand(studentId);
	                            });
	                        }
	                        else {
	                            this.removeMmCourseGroupFromTermCommand(plannedCourseId).then(function (studentId) {
	                                _this.loadMmAcademicPlanCommand(studentId);
	                            });
	                        }
	                        return [3 /*break*/, 7];
	                    case 1:
	                        _a.trys.push([1, 6, , 7]);
	                        if (!(!ap_generic_slot_servant_1.APGenericSlotServant.isNCRSlot(genericSlot) && !_4.isEmpty(genericSlot.plannedCourse))) return [3 /*break*/, 3];
	                        return [4 /*yield*/, this.removeCourseFromTermCommand(genericSlot.programSlot, genericSlot.plannedCourse)];
	                    case 2:
	                        _a.sent();
	                        return [3 /*break*/, 5];
	                    case 3:
	                        if (!(!ap_generic_slot_servant_1.APGenericSlotServant.isCourseSlot(genericSlot) && !_4.isEmpty(genericSlot.plannedCourseGroup))) return [3 /*break*/, 5];
	                        return [4 /*yield*/, this.removeCourseGroupFromTermCommand(genericSlot.programSlot, genericSlot.plannedCourseGroup.id)];
	                    case 4:
	                        _a.sent();
	                        _a.label = 5;
	                    case 5:
	                        this.phxAxTitleAnnouncerDelegate.announceChange(genericSlot.title + " was removed");
	                        return [3 /*break*/, 7];
	                    case 6:
	                        err_1 = _a.sent();
	                        this.log.error('Unable to delete your course.');
	                        console.error(err_1);
	                        return [3 /*break*/, 7];
	                    case 7: return [2 /*return*/];
	                }
	            });
	        });
	    };
	    return PlannerCourseDeleteArea;
	}());
	exports.PlannerCourseDeleteArea = PlannerCourseDeleteArea;
	angular.module('capability-ng-academic-planner').component('plannerCourseDeleteArea', {
	    templateUrl: 'capability-ng-academic-planner/src/plan/components/planner_course_delete_area/planner_course_delete_area.html',
	    controller: PlannerCourseDeleteArea,
	    transclude: true
	});


/***/ }),
/* 1355 */
/***/ (function(module, exports) {

	angular.module('capability-ng-academic-planner').component('plannerLegends', {
	    templateUrl: 'capability-ng-academic-planner/src/plan/components/planner_legends/planner_legends.html'
	});


/***/ }),
/* 1356 */
880,
/* 1357 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var planner_resource_tabs_1 = __webpack_require__(36);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('setSelectedPlannerResourceTabCommand', function (defineCommandORM, ngAPSelectedPlannerResourceTab) {
	    return defineCommandORM('setSelectedPlannerResourceTabCommand', function (deferred, selectedTabKey) {
	        var selectedTab = planner_resource_tabs_1.PlannerResourceTabs.find(function (tab) { return tab.key === selectedTabKey; });
	        if (!selectedTab) {
	            deferred.reject();
	            return;
	        }
	        ngAPSelectedPlannerResourceTab.clear().write(selectedTab);
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1358 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var planner_resource_tabs_1 = __webpack_require__(36);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('ngAPSelectedPlannerResourceTab', function () {
	    return new utility_ts_orm_1.Model(planner_resource_tabs_1.PlannerResourceMAPTab);
	});


/***/ }),
/* 1359 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var planner_resource_tabs_1 = __webpack_require__(36);
	var APMultiPlannerResourcesController = /** @class */ (function () {
	    function APMultiPlannerResourcesController(appConfigModel, ngAPDegreeMapQuery, ngAPMultiDegreeTemplateQuery, ngAPPlannerResourceTabsQuery, setSelectedPlannerResourceTabCommand) {
	        this.appConfigModel = appConfigModel;
	        this.ngAPDegreeMapQuery = ngAPDegreeMapQuery;
	        this.ngAPMultiDegreeTemplateQuery = ngAPMultiDegreeTemplateQuery;
	        this.ngAPPlannerResourceTabsQuery = ngAPPlannerResourceTabsQuery;
	        this.setSelectedPlannerResourceTabCommand = setSelectedPlannerResourceTabCommand;
	        this.isSmartCatalogEnabled = false;
	        this.isSearchEnabled = true;
	        this.trackSearchToggle = false;
	    }
	    APMultiPlannerResourcesController.prototype.$onInit = function () {
	        this.isSmartCatalogEnabled = this.appConfigModel.isFeatureEnabled('academicplan-smart_catalog');
	        this.isSearchEnabled = this.appConfigModel.isFeatureEnabled('reg-course_search');
	    };
	    APMultiPlannerResourcesController.prototype.isDegreeMapEmpty = function () {
	        return this.ngAPMultiDegreeTemplateQuery.result.isDegreeMapEmpty;
	    };
	    APMultiPlannerResourcesController.prototype.$onChanges = function () {
	        this.isSmartCatalogEnabled = this.appConfigModel.isFeatureEnabled('academicplan-smart_catalog');
	        this.isSearchEnabled = this.appConfigModel.isFeatureEnabled('reg-course_search');
	        this.isEditable = _4.isBoolean(this.isEditable) ? this.isEditable : this.isEditable === 'true';
	        if (this.isEditable && this.isSearchEnabled && this.isDegreeMapEmpty()) {
	            this.setSelectedPlannerResourceTabCommand(planner_resource_tabs_1.PlannerResourceSearchTab.key);
	            this.trackSearchToggle = true;
	        }
	        else {
	            this.setSelectedPlannerResourceTabCommand(planner_resource_tabs_1.PlannerResourceMAPTab.key);
	        }
	    };
	    return APMultiPlannerResourcesController;
	}());
	exports.APMultiPlannerResourcesController = APMultiPlannerResourcesController;
	var APMultiPlannerResources = /** @class */ (function () {
	    function APMultiPlannerResources() {
	        this.controller = APMultiPlannerResourcesController;
	        this.templateUrl =
	            'capability-ng-academic-planner/src/plan/components/planner_resources/multi_planner_resources.html';
	        this.bindings = {
	            isEditable: '<?'
	        };
	    }
	    return APMultiPlannerResources;
	}());
	angular.module('capability-ng-academic-planner').component('apMultiPlannerResources', new APMultiPlannerResources());


/***/ }),
/* 1360 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var planner_resource_tabs_1 = __webpack_require__(36);
	var APPlannerResourcesController = /** @class */ (function () {
	    function APPlannerResourcesController(appConfigModel, ngAPDegreeMapQuery, ngAPPlannerResourceTabsQuery, setSelectedPlannerResourceTabCommand) {
	        this.appConfigModel = appConfigModel;
	        this.ngAPDegreeMapQuery = ngAPDegreeMapQuery;
	        this.ngAPPlannerResourceTabsQuery = ngAPPlannerResourceTabsQuery;
	        this.setSelectedPlannerResourceTabCommand = setSelectedPlannerResourceTabCommand;
	        this.isSmartCatalogEnabled = false;
	        this.isSearchEnabled = true;
	        this.trackSearchToggle = false;
	        this.shouldShowGoalSets = false;
	    }
	    APPlannerResourcesController.prototype.$onInit = function () {
	        this.isSmartCatalogEnabled = this.appConfigModel.isFeatureEnabled('academicplan-smart_catalog');
	        this.isSearchEnabled = this.appConfigModel.isFeatureEnabled('reg-course_search');
	        this.shouldShowGoalSets = this.appConfigModel.isFeatureEnabled('cat-show_student_goal_sets');
	    };
	    APPlannerResourcesController.prototype.isDegreeMapEmpty = function () {
	        return this.ngAPDegreeMapQuery.result.isDegreeMapEmpty;
	    };
	    APPlannerResourcesController.prototype.$onChanges = function () {
	        this.isSmartCatalogEnabled = this.appConfigModel.isFeatureEnabled('academicplan-smart_catalog');
	        this.isSearchEnabled = this.appConfigModel.isFeatureEnabled('reg-course_search');
	        this.isEditable = _4.isBoolean(this.isEditable) ? this.isEditable : this.isEditable === 'true';
	        if (this.isEditable && (this.isSearchEnabled || this.isSmartCatalogEnabled) && this.isDegreeMapEmpty()) {
	            this.setSelectedPlannerResourceTabCommand(planner_resource_tabs_1.PlannerResourceSearchTab.key);
	            this.trackSearchToggle = true;
	        }
	        else {
	            this.setSelectedPlannerResourceTabCommand(planner_resource_tabs_1.PlannerResourceMAPTab.key);
	        }
	    };
	    return APPlannerResourcesController;
	}());
	exports.APPlannerResourcesController = APPlannerResourcesController;
	var APPlannerResources = /** @class */ (function () {
	    function APPlannerResources() {
	        this.controller = APPlannerResourcesController;
	        this.templateUrl = 'capability-ng-academic-planner/src/plan/components/planner_resources/planner_resources.html';
	        this.bindings = {
	            isEditable: '<?'
	        };
	    }
	    return APPlannerResources;
	}());
	angular.module('capability-ng-academic-planner').component('apPlannerResources', new APPlannerResources());


/***/ }),
/* 1361 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var plan_feedback_servant_1 = __webpack_require__(13);
	var planner_resource_tabs_1 = __webpack_require__(36);
	var APPlannerResourceTabsQuery = /** @class */ (function () {
	    function APPlannerResourceTabsQuery(ngAPSelectedPlannerResourceTab, ngAPUserModeConfig, ngFeedbackSuggestedPlanModel, ngAPCustomTextDatasource, appConfigModel, ngStcCustomContentsModel) {
	        this.ngAPSelectedPlannerResourceTab = ngAPSelectedPlannerResourceTab;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.ngFeedbackSuggestedPlanModel = ngFeedbackSuggestedPlanModel;
	        this.ngAPCustomTextDatasource = ngAPCustomTextDatasource;
	        this.appConfigModel = appConfigModel;
	        this.ngStcCustomContentsModel = ngStcCustomContentsModel;
	        utility_ts_orm_1.ORMMediator.registerQuery(this, ngAPSelectedPlannerResourceTab, ngFeedbackSuggestedPlanModel, ngStcCustomContentsModel);
	    }
	    APPlannerResourceTabsQuery.prototype.updateScheduleAppointmentTab = function (tabs) {
	        var schedulingEnabled = this.appConfigModel.isFeatureEnabled('ssccampus-appointment_scheduling');
	        var isAdvisor = this.ngAPUserModeConfig.isAdvisor();
	        var defaultAppointmentMenu = _4.find(tabs, { key: 'SCHEDULE_APPOINTMENT' });
	        if (!schedulingEnabled || isAdvisor) {
	            return _4.pull(tabs, defaultAppointmentMenu);
	        }
	        defaultAppointmentMenu.title = _4.get(this.ngStcCustomContentsModel.read(), 'student_scheduling.student_scheduler_button_text', defaultAppointmentMenu.title);
	        return tabs;
	    };
	    APPlannerResourceTabsQuery.prototype.run = function () {
	        var _plannerResourceTabs = this._isSearchEnabled
	            ? planner_resource_tabs_1.PlannerResourceTabs
	            : _4.filter(planner_resource_tabs_1.PlannerResourceTabs, function (tab) { return tab.key !== 'SEARCH'; });
	        var advisorInViewMode = plan_feedback_servant_1.PlanFeedbackServant.isPlanReadOnlyMode(this.ngFeedbackSuggestedPlanModel.read());
	        var fullTabListAvailable = !(this.ngAPUserModeConfig.isAdvisor() && advisorInViewMode);
	        var tabs = fullTabListAvailable ? _plannerResourceTabs : [planner_resource_tabs_1.PlannerResourceMAPTab];
	        this.updateScheduleAppointmentTab(tabs);
	        var DEGREE_MAP_TITLE_NK = 'AP_DEGREE_MAP_TITLE';
	        var modifiedMapTitle = _4.get(this.ngAPCustomTextDatasource.get(DEGREE_MAP_TITLE_NK), 'text', planner_resource_tabs_1.PlannerResourceMAPTab.title);
	        var titleChangedTabs = tabs.map(function (tab) {
	            if (tab.key === planner_resource_tabs_1.PlannerResourceMAPTab.key) {
	                tab.title = modifiedMapTitle;
	            }
	            return tab;
	        });
	        var selectedTab = this.ngAPSelectedPlannerResourceTab.read();
	        var activeTabs = titleChangedTabs.map(function (tab) { return (tslib_1.__assign(tslib_1.__assign({}, tab), { active: selectedTab.key === tab.key })); });
	        this.__result = {
	            tabs: activeTabs,
	            selectedTab: selectedTab,
	            isMapActive: selectedTab.key === planner_resource_tabs_1.PlannerResourceMAPTab.key,
	            isSearchActive: selectedTab.key === planner_resource_tabs_1.PlannerResourceSearchTab.key,
	            isFavoritesActive: selectedTab.key === planner_resource_tabs_1.PlannerResourceFavoriteTab.key
	        };
	        return this;
	    };
	    Object.defineProperty(APPlannerResourceTabsQuery.prototype, "_isSearchEnabled", {
	        get: function () {
	            var isSmartCatalogEnabled = this.appConfigModel.isFeatureEnabled('academicplan-smart_catalog');
	            var isSearchEnabled = this.appConfigModel.isFeatureEnabled('reg-course_search');
	            return isSearchEnabled || isSmartCatalogEnabled;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(APPlannerResourceTabsQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APPlannerResourceTabsQuery;
	}());
	exports.APPlannerResourceTabsQuery = APPlannerResourceTabsQuery;
	angular.module('capability-ng-academic-planner').service('ngAPPlannerResourceTabsQuery', APPlannerResourceTabsQuery);


/***/ }),
/* 1362 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ApCourseSearch = /** @class */ (function () {
	    function ApCourseSearch(block) {
	        _4.merge(this, block);
	    }
	    ApCourseSearch.build = function (block) {
	        return new ApCourseSearch(block);
	    };
	    return ApCourseSearch;
	}());
	exports.ApCourseSearch = ApCourseSearch;


/***/ }),
/* 1363 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('apGetCourseSearchClearCommand', function apGetCourseSearchClearCommand(defineCommandORM, ngAPCourseSearchDatasource) {
	    return defineCommandORM('apGetCourseSearchClearCommand', function (deferred) {
	        ngAPCourseSearchDatasource.clear();
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1364 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('apGetCourseSearchCommand', function apGetCourseSearchCommand($http, defineCommandORM, ngAPCourseSearchDatasource, log) {
	    return defineCommandORM('apGetCourseSearchCommand', function (deferred, query, fields) {
	        if (fields === void 0) { fields = 'ALL'; }
	        $http
	            .get("academicplan/course/search", {
	            params: {
	                query: query,
	                fields: fields
	            }
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            ngAPCourseSearchDatasource.clear().write(data);
	            deferred.resolve(data);
	        })
	            .catch(function (e) {
	            log.issue('course search api fetch failed');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1365 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ng_kernel_1 = __webpack_require__(5);
	var ap_course_builder_1 = __webpack_require__(69);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('ngAPCourseSearchDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ap_course_builder_1.APCourse,
	        updateMode: 'merge'
	    }).addHooks({
	        $preWrite: function (db) {
	            _4.forEach(db, function (course, index) {
	                course['__searchRank'] = index;
	            });
	            return db;
	        }
	    });
	});


/***/ }),
/* 1366 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var ap_generic_slot_builder_1 = __webpack_require__(35);
	var ap_id_constants_1 = __webpack_require__(11);
	var ap_course_servant_1 = __webpack_require__(25);
	var ApCourseSearchQuery = /** @class */ (function () {
	    function ApCourseSearchQuery(QueryMediator, ngAPCourseSearchDatasource) {
	        this.ngAPCourseSearchDatasource = ngAPCourseSearchDatasource;
	        QueryMediator.registerQuery(this, ngAPCourseSearchDatasource);
	    }
	    ApCourseSearchQuery.prototype.run = function () {
	        var courses = _4.sortBy(this.ngAPCourseSearchDatasource.values(), '__searchRank');
	        var NO_STATUS = '';
	        var genericSlots = _4.map(courses, function (course) {
	            return ap_generic_slot_builder_1.APGenericSlotBuilder.build({
	                title: course.cd + " " + course.title,
	                type: 'COURSE',
	                termId: ap_id_constants_1.INVALID_ID,
	                course: course,
	                isDragEnabled: true,
	                isPlanned: false,
	                credits: course.credits,
	                isPlannedSomewhere: false,
	                shouldShowAddToTermMenu: true,
	                plannedCourse: {},
	                programSlot: {
	                    id: null,
	                    slot_type: 'COURSE'
	                },
	                status: NO_STATUS,
	                hoverTemplate: ap_course_servant_1.APCourseServant.buildHoverTemplate(course),
	                disableSlot: false
	            });
	        });
	        this.__result = {
	            courses: tslib_1.__spreadArrays(courses),
	            genericSlots: genericSlots
	        };
	        return this;
	    };
	    Object.defineProperty(ApCourseSearchQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return ApCourseSearchQuery;
	}());
	exports.ApCourseSearchQuery = ApCourseSearchQuery;
	angular.module('capability-ng-academic-planner').service('ngApCourseSearchQuery', ApCourseSearchQuery);


/***/ }),
/* 1367 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var event_names_1 = __webpack_require__(23);
	var SearchCourse = /** @class */ (function () {
	    function SearchCourse(ngApCourseSearchQuery, apGetCourseSearchCommand, apGetCourseSearchClearCommand, ngComponentCommunicatorService, ngAPDegreeMapQuery, $element) {
	        this.ngApCourseSearchQuery = ngApCourseSearchQuery;
	        this.apGetCourseSearchCommand = apGetCourseSearchCommand;
	        this.apGetCourseSearchClearCommand = apGetCourseSearchClearCommand;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngAPDegreeMapQuery = ngAPDegreeMapQuery;
	        this.$element = $element;
	        this.resultsText = '';
	        this.showResults = false;
	        this.searchTerm = '';
	        this.searchTermValue = '';
	        this.SearchCategorySuggestionList = [];
	        this.isLoadingResults = false;
	        this.hasDegreeMap = true;
	        this.courseSearchCategory = {
	            ALL: {
	                value: 'all',
	                text: 'All',
	                suggestionText: function (searchQuery) { return "Search for " + searchQuery + " in All"; },
	                resultsTitle: function (searchQuery) { return "'" + searchQuery + "'"; }
	            },
	            TITLE: {
	                value: 'title',
	                text: 'Title',
	                suggestionText: function (searchQuery) { return "Search for " + searchQuery + " by Title"; },
	                resultsTitle: function (searchQuery) { return "'" + searchQuery + "' by Title"; }
	            },
	            DESC: {
	                value: 'desc',
	                text: 'Description',
	                suggestionText: function (searchQuery) { return "Search for " + searchQuery + " by Description"; },
	                resultsTitle: function (searchQuery) { return "'" + searchQuery + "' by Description"; }
	            },
	            CD: {
	                value: 'cd',
	                text: 'Course ID',
	                suggestionText: function (searchQuery) { return "Search for " + searchQuery + " by Course Id"; },
	                resultsTitle: function (searchQuery) { return "'" + searchQuery + "' by Course Id"; }
	            }
	        };
	        this.courseSearchCategoryList = _4.values(this.courseSearchCategory);
	        this.apGetCourseSearchClearCommand();
	        this.hasDegreeMap = !this.isDegreeMapEmpty();
	    }
	    SearchCourse.prototype.emphasizeDropArea = function () {
	        this.ngComponentCommunicatorService.publish(event_names_1.EMPHASIZE_DROP_AREA);
	    };
	    SearchCourse.prototype.deEmphasizeDropArea = function () {
	        this.ngComponentCommunicatorService.publish(event_names_1.DEEMPHASIZE_DROP_AREA);
	    };
	    SearchCourse.prototype.onQueryChange = function (event) {
	        this.searchTermValue = this.searchTerm;
	        this.searchTerm = event.detail.value;
	        this.SearchCategorySuggestionList = this.SearchCategorySuggestionOptions(this.searchTerm);
	    };
	    SearchCourse.prototype.isDegreeMapEmpty = function () {
	        return this.ngAPDegreeMapQuery.result.isDegreeMapEmpty;
	    };
	    SearchCourse.prototype.SearchCategorySuggestionOptions = function (searchQuery) {
	        return this.courseSearchCategoryList.map(function (category) { return ({
	            label: category.suggestionText(searchQuery),
	            value: category.value
	        }); });
	    };
	    SearchCourse.prototype.onSelectSearchQuery = function (event) {
	        var _this = this;
	        this.resetSearchFlags();
	        if (this.isSearchQueryValid) {
	            var searchCaregory_1 = event.detail.value;
	            this.apGetCourseSearchCommand(this.searchTermValue, searchCaregory_1).then(function () {
	                var key = _4.upperCase(searchCaregory_1);
	                _this.resultsText = _this.courseSearchCategory[key].resultsTitle(_this.searchTermValue);
	                _this.isLoadingResults = false;
	                _this.showResults = true;
	                _this.clearSerchKeyword();
	            });
	        }
	        else {
	            this.apGetCourseSearchClearCommand();
	            this.isLoadingResults = false;
	            this.clearSerchKeyword();
	            return;
	        }
	    };
	    SearchCourse.prototype.clearSerchKeyword = function () {
	        var element = this.$element.find("#find-course-type-ahead");
	        var searchElement = _4.first(element);
	        if (searchElement) {
	            searchElement['searchValue'] = '';
	        }
	        this.searchTermValue = '';
	        this.searchTerm = '';
	    };
	    Object.defineProperty(SearchCourse.prototype, "isSearchQueryValid", {
	        get: function () {
	            return this.searchTermValue.length > 2;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    SearchCourse.prototype.resetSearchFlags = function () {
	        this.isLoadingResults = true;
	        this.resultsText = '';
	        this.showResults = false;
	    };
	    return SearchCourse;
	}());
	angular.module('capability-ng-academic-planner').component('searchCourse', {
	    templateUrl: 'capability-ng-academic-planner/src/plan/components/planner_search/search_course.html',
	    bindings: {},
	    controller: SearchCourse
	});


/***/ }),
/* 1368 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PlannerMmTermsController = /** @class */ (function () {
	    function PlannerMmTermsController($state, ngComponentCommunicatorService, ngAPTermsQuery, ngAPUserModeConfig, ngAPPastTermsQuery, ngAPMultiTermsQuery, ngFeedbackSuggestedPlanModel) {
	        this.$state = $state;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngAPTermsQuery = ngAPTermsQuery;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.ngAPPastTermsQuery = ngAPPastTermsQuery;
	        this.ngAPMultiTermsQuery = ngAPMultiTermsQuery;
	        this.ngFeedbackSuggestedPlanModel = ngFeedbackSuggestedPlanModel;
	        this.showPastTerms = false;
	        this.plannedTerms = [];
	        this.showLockUnlockCoursesModal = false;
	        this.isLocking = false;
	        this.showAdvancedOptions = false;
	        this.isPlanLoading = false;
	        this.showPlanLoadingIndicatorBound = this.showPlanLoadingIndicator.bind(this);
	        this.hidePlanLoadingIndicatorBound = this.hidePlanLoadingIndicator.bind(this);
	    }
	    PlannerMmTermsController.prototype.$onInit = function () {
	        this.showPastTerms = false;
	        this.ngComponentCommunicatorService.subscribe('PLAN_LOADING', this.showPlanLoadingIndicatorBound);
	        this.ngComponentCommunicatorService.subscribe('PLAN_LOADING_SUCCESS', this.hidePlanLoadingIndicatorBound);
	    };
	    PlannerMmTermsController.prototype.showPlanLoadingIndicator = function () {
	        this.isPlanLoading = true;
	    };
	    PlannerMmTermsController.prototype.hidePlanLoadingIndicator = function () {
	        this.isPlanLoading = false;
	    };
	    PlannerMmTermsController.prototype.toggleCompletedTerms = function () {
	        this.showPastTerms = !this.showPastTerms;
	    };
	    PlannerMmTermsController.prototype.$onChanges = function () {
	        this.isEditable = _4.isBoolean(this.isEditable) ? this.isEditable : this.isEditable === 'true';
	    };
	    return PlannerMmTermsController;
	}());
	exports.PlannerMmTermsController = PlannerMmTermsController;
	var APPlannerMmTerms = /** @class */ (function () {
	    function APPlannerMmTerms() {
	        this.controller = PlannerMmTermsController;
	        this.templateUrl = 'capability-ng-academic-planner/src/plan/components/planner_terms/planner_mm_terms.html';
	        this.bindings = {
	            isEditable: '<?'
	        };
	    }
	    return APPlannerMmTerms;
	}());
	angular.module('capability-ng-academic-planner').component('apPlannerMmTerms', new APPlannerMmTerms());


/***/ }),
/* 1369 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var plan_feedback_servant_1 = __webpack_require__(13);
	var PlannerTermsController = /** @class */ (function () {
	    function PlannerTermsController($state, ngComponentCommunicatorService, ngAPTermsQuery, ngAPUserModeConfig, ngAPPastTermsQuery, ngFeedbackSuggestedPlanModel) {
	        this.$state = $state;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngAPTermsQuery = ngAPTermsQuery;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.ngAPPastTermsQuery = ngAPPastTermsQuery;
	        this.ngFeedbackSuggestedPlanModel = ngFeedbackSuggestedPlanModel;
	        this.showPastTerms = false;
	        this.plannedTerms = [];
	        this.showLockUnlockCoursesModal = false;
	        this.isLocking = false;
	        this.showAdvancedOptions = false;
	    }
	    PlannerTermsController.prototype.$onInit = function () {
	        this.showPastTerms = false;
	        var isAdvisorViewMode = plan_feedback_servant_1.PlanFeedbackServant.isPlanReadOnlyMode(this.ngFeedbackSuggestedPlanModel.read());
	        this.showAdvancedOptions = !!this.isEditable && this.ngAPUserModeConfig.isAdvisor() && !isAdvisorViewMode;
	    };
	    PlannerTermsController.prototype.unLockAllCourses = function () {
	        this.showLockUnlockCoursesModal = true;
	        this.isLocking = false;
	    };
	    PlannerTermsController.prototype.lockAllCourses = function () {
	        this.showLockUnlockCoursesModal = true;
	        this.isLocking = true;
	    };
	    PlannerTermsController.prototype.toggleCompletedTerms = function () {
	        this.showPastTerms = !this.showPastTerms;
	    };
	    PlannerTermsController.prototype.$onChanges = function () {
	        this.isEditable = _4.isBoolean(this.isEditable) ? this.isEditable : this.isEditable === 'true';
	    };
	    return PlannerTermsController;
	}());
	exports.PlannerTermsController = PlannerTermsController;
	var APPlannerTerms = /** @class */ (function () {
	    function APPlannerTerms() {
	        this.controller = PlannerTermsController;
	        this.templateUrl = 'capability-ng-academic-planner/src/plan/components/planner_terms/planner_terms.html';
	        this.bindings = {
	            isEditable: '<?'
	        };
	    }
	    return APPlannerTerms;
	}());
	angular.module('capability-ng-academic-planner').component('apPlannerTerms', new APPlannerTerms());


/***/ }),
/* 1370 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var SlotStatusBadge = /** @class */ (function () {
	    function SlotStatusBadge(ngAPMarkAsMetStatusDatasource, ngAPSlotStatusBadgeHtmlServant) {
	        this.ngAPMarkAsMetStatusDatasource = ngAPMarkAsMetStatusDatasource;
	        this.ngAPSlotStatusBadgeHtmlServant = ngAPSlotStatusBadgeHtmlServant;
	        this.slotBadgesHtml = [];
	    }
	    SlotStatusBadge.prototype.$onChanges = function () {
	        if (this.genericSlot) {
	            this.slotBadgesHtml = this.ngAPSlotStatusBadgeHtmlServant.getBadges(this.genericSlot);
	        }
	    };
	    return SlotStatusBadge;
	}());
	angular.module('capability-ng-academic-planner').component('slotStatusBadge', {
	    templateUrl: 'capability-ng-academic-planner/src/plan/components/slot_status_badge/slot_status_badge.html',
	    bindings: {
	        genericSlot: '<'
	    },
	    controller: SlotStatusBadge
	});


/***/ }),
/* 1371 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_type_1 = __webpack_require__(17);
	var ap_preview_plan_servant_1 = __webpack_require__(53);
	var StudentPlanComparisonController = /** @class */ (function () {
	    function StudentPlanComparisonController(ngAPStudentDetailsQuery, ngAPTermsQuery, ngAPAdvisorSentFeedbackTermsQuery, ngAPAdvisorCompareQuery, loadPlanFeedbackCommand, ngPlanFeebackCourseGroupsDatasource, ngPlanFeebackCoursesDatasource, ngPlanFeebackTermsDatasource, ngAPModel, $state) {
	        this.ngAPStudentDetailsQuery = ngAPStudentDetailsQuery;
	        this.ngAPTermsQuery = ngAPTermsQuery;
	        this.ngAPAdvisorSentFeedbackTermsQuery = ngAPAdvisorSentFeedbackTermsQuery;
	        this.ngAPAdvisorCompareQuery = ngAPAdvisorCompareQuery;
	        this.loadPlanFeedbackCommand = loadPlanFeedbackCommand;
	        this.ngPlanFeebackCourseGroupsDatasource = ngPlanFeebackCourseGroupsDatasource;
	        this.ngPlanFeebackCoursesDatasource = ngPlanFeebackCoursesDatasource;
	        this.ngPlanFeebackTermsDatasource = ngPlanFeebackTermsDatasource;
	        this.ngAPModel = ngAPModel;
	        this.$state = $state;
	        this.queries = {
	            feedback: this.ngAPAdvisorSentFeedbackTermsQuery,
	            terms: this.ngAPAdvisorCompareQuery
	        };
	        this.models = {
	            program: _4.head(_4.toArray(this.ngAPModel.read().program))
	        };
	    }
	    StudentPlanComparisonController.prototype.viewHistory = function () {
	        this.$state.go('ap-advisor.changelog');
	    };
	    StudentPlanComparisonController.prototype.$onInit = function () {
	        var _this = this;
	        this.loadPlanFeedbackCommand().then(function () {
	            _this.ngAPAdvisorCompareQuery.run();
	            _this.updateLabels();
	        });
	    };
	    StudentPlanComparisonController.prototype.updateLabels = function () {
	        this.studentName = _4.upperFirst(this.ngAPStudentDetailsQuery.result.first_name);
	        this.programTitle = this.models.program.name + " " + this.models.program.short_credential;
	        this.creditsTitle = "| " + utility_ts_type_1.TypeUtility.NumberUtility.stripTrailingZeroes(this.models.program.credits) + " Credits";
	        this.estimatedGraduationTime = ap_preview_plan_servant_1.APPreviewPlanServant.getEstimatedGraduationDateFromTerm(this.ngAPAdvisorCompareQuery.result);
	    };
	    return StudentPlanComparisonController;
	}());
	exports.StudentPlanComparisonController = StudentPlanComparisonController;
	angular.module('capability-ng-academic-planner').component('studentPlanComparison', {
	    controller: StudentPlanComparisonController,
	    templateUrl: 'capability-ng-academic-planner/src/plan/components/student_plan_comparison/student_plan_comparison.html'
	});


/***/ }),
/* 1372 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_generic_slot_servant_1 = __webpack_require__(18);
	var ap_term_servant_1 = __webpack_require__(20);
	var user_mode_api_strategy_1 = __webpack_require__(28);
	var event_names_1 = __webpack_require__(23);
	angular.module('capability-ng-academic-planner');
	var TermBox = /** @class */ (function () {
	    function TermBox(saveCourseToTermCommand, removeCourseFromTermCommand, removeCourseGroupFromTermCommand, removeCourseFromTermAndAddCourseCommand, removeCourseGroupFromTermAndAddCourseGroupCommand, saveCourseGroupToTermCommand, ngAPPlannedCourseGroupQuery, ngAPPlannedCourseQuery, ngAPProgramSlotQuery, ngStudentValueModel, deleteTermCommand, $timeout, $rootScope, $scope, ngAPComponentStateModel, $state, phxAxTitleAnnouncerDelegate, appConfigModel, FEATURE_SCHEDULER_NK, $element, ngComponentCommunicatorService, ngLargeCourseGroupSearchResultsQuery) {
	        this.saveCourseToTermCommand = saveCourseToTermCommand;
	        this.removeCourseFromTermCommand = removeCourseFromTermCommand;
	        this.removeCourseGroupFromTermCommand = removeCourseGroupFromTermCommand;
	        this.removeCourseFromTermAndAddCourseCommand = removeCourseFromTermAndAddCourseCommand;
	        this.removeCourseGroupFromTermAndAddCourseGroupCommand = removeCourseGroupFromTermAndAddCourseGroupCommand;
	        this.saveCourseGroupToTermCommand = saveCourseGroupToTermCommand;
	        this.ngAPPlannedCourseGroupQuery = ngAPPlannedCourseGroupQuery;
	        this.ngAPPlannedCourseQuery = ngAPPlannedCourseQuery;
	        this.ngAPProgramSlotQuery = ngAPProgramSlotQuery;
	        this.ngStudentValueModel = ngStudentValueModel;
	        this.deleteTermCommand = deleteTermCommand;
	        this.$timeout = $timeout;
	        this.$rootScope = $rootScope;
	        this.$scope = $scope;
	        this.ngAPComponentStateModel = ngAPComponentStateModel;
	        this.$state = $state;
	        this.phxAxTitleAnnouncerDelegate = phxAxTitleAnnouncerDelegate;
	        this.appConfigModel = appConfigModel;
	        this.FEATURE_SCHEDULER_NK = FEATURE_SCHEDULER_NK;
	        this.$element = $element;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngLargeCourseGroupSearchResultsQuery = ngLargeCourseGroupSearchResultsQuery;
	        this.draggingGenericSlot = undefined;
	        this.isDropAreaActive = false;
	        this.courseStatusGroups = {};
	        this.flags = {
	            isSaving: false,
	            showBox: true
	        };
	    }
	    TermBox.prototype.$onChanges = function (changes) {
	        this.initialize();
	    };
	    TermBox.prototype.$onInit = function () {
	        this.emphasizeDropAreaBound = this.emphasizeDropArea.bind(this);
	        this.deEmphasizeDropAreaBound = this.deEmphasizeDropArea.bind(this);
	        this.ngComponentCommunicatorService.subscribe(event_names_1.EMPHASIZE_DROP_AREA, this.emphasizeDropAreaBound);
	        this.ngComponentCommunicatorService.subscribe(event_names_1.DEEMPHASIZE_DROP_AREA, this.deEmphasizeDropAreaBound);
	        this.initialize();
	    };
	    TermBox.prototype.toggleDragState = function () {
	        this.$timeout(function () { return angular.element('body').toggleClass('dnd-course-delete'); }, 0);
	    };
	    TermBox.prototype.dragStarted = function (slot) {
	        this.draggingGenericSlot = slot;
	        this.ngComponentCommunicatorService.publish(event_names_1.EMPHASIZE_DROP_AREA);
	        this.toggleDragState();
	    };
	    TermBox.prototype.dragCompleted = function () {
	        this.draggingGenericSlot = undefined;
	        this.ngComponentCommunicatorService.publish(event_names_1.DEEMPHASIZE_DROP_AREA);
	        this.toggleDragState();
	    };
	    TermBox.prototype.emphasizeDropArea = function () {
	        if (!_4.isUndefined(this.draggingGenericSlot) || this.isPast) {
	            return;
	        }
	        this.isDropAreaActive = true;
	    };
	    TermBox.prototype.deEmphasizeDropArea = function () {
	        this.isDropAreaActive = false;
	    };
	    TermBox.prototype.initialize = function () {
	        var _this = this;
	        this.isRegistrationOpen =
	            !this.isPast &&
	                (ap_term_servant_1.APTermServant.isPriorityRegistrationOpen(this.term) || ap_term_servant_1.APTermServant.isRegistrationOpen(this.term));
	        this.$rootScope.$on('my.planner.show.saving.message', function (event, termId) {
	            if (_this.term.id === termId) {
	                _this.flags.isSaving = true;
	                _this.$timeout(function () {
	                    _this.flags.isSaving = false;
	                }, 2000);
	            }
	        });
	        this.hasPlannedCourses = this.isPast || this.term._genericSlots.length > 0;
	        this.showTermButton =
	            this.appConfigModel.isFeatureEnabled(this.FEATURE_SCHEDULER_NK) &&
	                user_mode_api_strategy_1.RoleTypeStrategy.evaluate(this.$state) === 'student';
	        this.isEditable = _4.isBoolean(this.isEditable) ? this.isEditable : this.isEditable === 'true';
	    };
	    TermBox.prototype.insertCallback = function (event, index, genericSlot, external, courseType) {
	        var duplicatePlannedCourse = {};
	        var alreadyPlanned = {};
	        var plannedElement;
	        if (!ap_generic_slot_servant_1.APGenericSlotServant.isNCRSlot(genericSlot) && !_4.isEmpty(genericSlot.plannedCourse)) {
	            var plannedCourseId_1 = _4.get(genericSlot, 'plannedCourse.id');
	            duplicatePlannedCourse = _4.find(this.term._plannedCourses, { id: plannedCourseId_1 });
	            alreadyPlanned = _4.find(this.ngAPPlannedCourseQuery.result, function (plannedCourse) { return plannedCourseId_1; });
	            plannedElement = genericSlot.plannedCourse;
	        }
	        else if (!ap_generic_slot_servant_1.APGenericSlotServant.isCourseSlot(genericSlot) && !_4.isEmpty(genericSlot.plannedCourseGroup)) {
	            // Case planned course group (placeHolder)
	            duplicatePlannedCourse = _4.find(this.term._plannedCourseGroups, {
	                id: _4.get(genericSlot, 'plannedCourseGroup.id')
	            });
	            alreadyPlanned = _4.find(this.ngAPPlannedCourseGroupQuery.result, function (plannedCourse) {
	                return _4.get(genericSlot, 'plannedCourseGroup.id');
	            });
	            plannedElement = _4.get(genericSlot, 'plannedCourseGroup');
	        }
	        if (!_4.isEmpty(alreadyPlanned) && _4.isEmpty(duplicatePlannedCourse)) {
	            this.removeFromPlan(genericSlot, plannedElement, true);
	        }
	        else if (_4.isEmpty(alreadyPlanned)) {
	            this.addToPlan(genericSlot);
	        }
	    };
	    TermBox.prototype.$onDestroy = function () {
	        this.ngComponentCommunicatorService.release(event_names_1.EMPHASIZE_DROP_AREA, this.emphasizeDropAreaBound);
	        this.ngComponentCommunicatorService.release(event_names_1.DEEMPHASIZE_DROP_AREA, this.deEmphasizeDropAreaBound);
	    };
	    TermBox.prototype.addToPlan = function (genericSlot) {
	        var _this = this;
	        var plannedCourse = genericSlot.type !== 'NCR' && genericSlot.plannedCourse;
	        var slot = genericSlot.programSlot;
	        if (_4.isEmpty(plannedCourse)) {
	            if (!ap_generic_slot_servant_1.APGenericSlotServant.isCourseSlot(genericSlot)) {
	                this.saveCourseGroupToTermCommand({
	                    course_group: genericSlot.programSlot.course_group,
	                    term: this.term.id,
	                    program_slot: genericSlot.programSlot.id
	                }).then(function (plndCourse) {
	                    _this.ngComponentCommunicatorService.publish('CLOSE_LARGE_COURSE_GROUP_PANEL');
	                    _this.phxAxTitleAnnouncerDelegate.announceChange("place holder " + genericSlot.title + " added to " + _this.term.name);
	                    _this.ngAPComponentStateModel.courseGroupClose(slot.id);
	                });
	            }
	            else if (ap_generic_slot_servant_1.APGenericSlotServant.isCourseSlot(genericSlot)) {
	                this.saveCourseToTermCommand(genericSlot.course.id, this.term.id, slot, !!genericSlot.programSlot.is_devreq).then(function (plndCourse) {
	                    _this.ngAPComponentStateModel.courseGroupClose(slot.id);
	                    _this.phxAxTitleAnnouncerDelegate.announceChange("course " + genericSlot.title + " added to " + _this.term.name);
	                });
	            }
	        }
	        // When a course is planned from large course group, close the large course group view.
	        if (_4.includes(this.$state.current.name, 'coursegroup')) {
	            this.ngComponentCommunicatorService.publish('CLOSE_LARGE_COURSE_GROUP_PANEL');
	        }
	    };
	    TermBox.prototype.removeFromPlan = function (genericSlot, movedPlannedCourse, isTermMove) {
	        var _this = this;
	        if (!ap_generic_slot_servant_1.APGenericSlotServant.isCourseSlot(genericSlot) && !_4.isEmpty(genericSlot.plannedCourseGroup)) {
	            this.removeCourseGroupFromTermAndAddCourseGroupCommand(genericSlot.programSlot._course_group, genericSlot.programSlot._course_group, this.term.id).then(function () {
	                _this.phxAxTitleAnnouncerDelegate.announceChange("place holder " + genericSlot.title + " moved to " + _this.term.name);
	            });
	        }
	        else if (!ap_generic_slot_servant_1.APGenericSlotServant.isNCRSlot(genericSlot) && genericSlot.plannedCourse) {
	            var plndCourse_1 = genericSlot.plannedCourse;
	            this.removeCourseFromTermAndAddCourseCommand({
	                course: genericSlot.plannedCourse.course,
	                id: genericSlot.plannedCourse.id
	            }, {
	                id: genericSlot.plannedCourse.course
	            }, genericSlot.programSlot, genericSlot.termId, this.term.id).then(function () {
	                _this.phxAxTitleAnnouncerDelegate.announceChange("course " + plndCourse_1._course.title + " moved to " + _this.term.name);
	            });
	        }
	    };
	    TermBox.prototype.hasRegisteredCourses = function () {
	        return !!_4.find(this.term._plannedCourses, function (course) { return !!course.status; });
	    };
	    TermBox.prototype.deleteTerm = function () {
	        this.flags.showBox = false;
	        this.deleteTermCommand(this.term);
	    };
	    return TermBox;
	}());
	exports.TermBox = TermBox;
	var TermBoxComponent = /** @class */ (function () {
	    function TermBoxComponent() {
	        this.bindings = {
	            term: '<',
	            isPast: '<?',
	            isEditable: '<?'
	        };
	        this.controller = TermBox;
	        this.templateUrl = 'capability-ng-academic-planner/src/plan/components/term_box/term_box.html';
	    }
	    return TermBoxComponent;
	}());
	angular.module('capability-ng-academic-planner').component('eabMyPlannerTermBox', new TermBoxComponent());


/***/ }),
/* 1373 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var ap_id_constants_1 = __webpack_require__(11);
	var event_names_1 = __webpack_require__(23);
	angular.module('capability-ng-academic-planner');
	var TermBoxMm = /** @class */ (function () {
	    function TermBoxMm(saveMmCourseToTermCommand, loadMmAcademicPlanCommand, $timeout, saveMmCourseGroupToTermCommand, removeMmCourseFromTermCommand, removeMmCourseGroupFromTermCommand, ngComponentCommunicatorService) {
	        this.saveMmCourseToTermCommand = saveMmCourseToTermCommand;
	        this.loadMmAcademicPlanCommand = loadMmAcademicPlanCommand;
	        this.$timeout = $timeout;
	        this.saveMmCourseGroupToTermCommand = saveMmCourseGroupToTermCommand;
	        this.removeMmCourseFromTermCommand = removeMmCourseFromTermCommand;
	        this.removeMmCourseGroupFromTermCommand = removeMmCourseGroupFromTermCommand;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.isEmptyTerm = true;
	        this.dropList = [];
	        this.draggingGenericSlot = undefined;
	        this.isDropAreaActive = false;
	    }
	    TermBoxMm.prototype.$onInit = function () {
	        this.emphasizeDropAreaBound = this.emphasizeDropArea.bind(this);
	        this.deEmphasizeDropAreaBound = this.deEmphasizeDropArea.bind(this);
	        this.ngComponentCommunicatorService.subscribe(event_names_1.EMPHASIZE_DROP_AREA, this.emphasizeDropAreaBound);
	        this.ngComponentCommunicatorService.subscribe(event_names_1.DEEMPHASIZE_DROP_AREA, this.deEmphasizeDropAreaBound);
	        this.initialize();
	    };
	    TermBoxMm.prototype.$onChanges = function (changes) {
	        this.initialize();
	    };
	    TermBoxMm.prototype.toggleDragState = function () {
	        if (this.isPast) {
	            return;
	        }
	        this.$timeout(function () { return angular.element('body').toggleClass('dnd-course-delete'); }, 0);
	    };
	    TermBoxMm.prototype.dragStarted = function (course) {
	        this.draggingGenericSlot = course;
	        this.ngComponentCommunicatorService.publish(event_names_1.EMPHASIZE_DROP_AREA);
	        this.toggleDragState();
	    };
	    TermBoxMm.prototype.dragCompleted = function () {
	        this.draggingGenericSlot = undefined;
	        this.ngComponentCommunicatorService.publish(event_names_1.DEEMPHASIZE_DROP_AREA);
	        this.toggleDragState();
	    };
	    TermBoxMm.prototype.emphasizeDropArea = function () {
	        if (!_4.isUndefined(this.draggingGenericSlot) || this.isPast) {
	            return;
	        }
	        this.isDropAreaActive = true;
	    };
	    TermBoxMm.prototype.deEmphasizeDropArea = function () {
	        this.isDropAreaActive = false;
	    };
	    TermBoxMm.prototype.dndData = function (_data, slotType) {
	        var slotId = _data.slot_id, _a = _data.courseGroupId, courseGroupId = _a === void 0 ? ap_id_constants_1.INVALID_ID : _a, _b = _data.id, plannedCourseId = _b === void 0 ? ap_id_constants_1.INVALID_ID : _b, _c = _data.course_id, courseId = _c === void 0 ? ap_id_constants_1.INVALID_ID : _c;
	        return {
	            slotId: slotId,
	            plannedCourseId: plannedCourseId,
	            courseId: courseId,
	            isFromTerm: true,
	            slotType: slotType,
	            courseGroupId: courseGroupId
	        };
	    };
	    TermBoxMm.prototype.insertCallback = function (event, index, dndData, external, courseType) {
	        var _this = this;
	        if (_4.get(dndData, 'isFromTerm', false)) {
	            this._isCourseSlot(dndData)
	                ? this._removeCourseAndAddCourseToTerm(dndData)
	                : this._removeCourseGroupAndAddCourseGroupToTerm(dndData);
	        }
	        else {
	            if (this._isCourseSlot(dndData)) {
	                this._addCourseToTerm(dndData).then(function (studentId) {
	                    _this.loadMmAcademicPlanCommand(studentId);
	                });
	            }
	            else if (this._isGroupSlot(dndData)) {
	                this._addCourseGroupToTerm(dndData).then(function (studentId) {
	                    _this.loadMmAcademicPlanCommand(studentId);
	                });
	            }
	        }
	    };
	    TermBoxMm.prototype._isCourseSlot = function (genericSlot) {
	        return (_4.eq(_4.get(genericSlot, 'slotType', ''), 'COURSE') ||
	            _4.eq(_4.get(genericSlot, 'slotType', ''), 'DEV_REQ_COURSE'));
	    };
	    TermBoxMm.prototype._isGroupSlot = function (genericSlot) {
	        return _4.eq(_4.get(genericSlot, 'slotType', ''), 'GROUP');
	    };
	    TermBoxMm.prototype._removeCourseGroupAndAddCourseGroupToTerm = function (data) {
	        var _this = this;
	        var plannedCourseGroupId = _4.get(data, 'plannedCourseId', 0);
	        this._removeCoursegroup(plannedCourseGroupId).then(function (studentId) {
	            _this._addCourseGroupToTerm(data).then(function () {
	                _this.loadMmAcademicPlanCommand(studentId);
	            });
	        });
	    };
	    TermBoxMm.prototype._removeCoursegroup = function (plannedCourseGroupId) {
	        return this.removeMmCourseGroupFromTermCommand(plannedCourseGroupId);
	    };
	    TermBoxMm.prototype._removeCourseAndAddCourseToTerm = function (data) {
	        var _this = this;
	        var plannedCourseId = _4.get(data, 'plannedCourseId', 0);
	        this._removeCourseFromTerm(plannedCourseId).then(function (studentId) {
	            _this._addCourseToTerm(data).then(function () {
	                _this.loadMmAcademicPlanCommand(studentId);
	            });
	        });
	    };
	    TermBoxMm.prototype._removeCourseFromTerm = function (plannedCourseId) {
	        return this.removeMmCourseFromTermCommand(plannedCourseId);
	    };
	    TermBoxMm.prototype._addCourseGroupToTerm = function (data) {
	        return this.saveMmCourseGroupToTermCommand(this._courseGroupPayload(data));
	    };
	    TermBoxMm.prototype._addCourseToTerm = function (data) {
	        return this.saveMmCourseToTermCommand(this._coursePayload(data));
	    };
	    TermBoxMm.prototype.initialize = function () {
	        this.isEmptyTerm = _4.isEmpty(_4.get(this.term, 'statusGroups', []));
	    };
	    TermBoxMm.prototype._basepayload = function (data) {
	        var program_slot = _4.get(data, 'slotId', ap_id_constants_1.INVALID_ID);
	        var term = _4.get(this.term, 'termId', ap_id_constants_1.INVALID_ID);
	        return _4.gt(program_slot, 0)
	            ? {
	                term: term,
	                program_slot: program_slot
	            }
	            : { term: term };
	    };
	    TermBoxMm.prototype._coursePayload = function (data) {
	        return tslib_1.__assign(tslib_1.__assign({}, this._basepayload(data)), { course: _4.get(data, 'courseId', ap_id_constants_1.INVALID_ID) });
	    };
	    TermBoxMm.prototype._courseGroupPayload = function (data) {
	        return tslib_1.__assign(tslib_1.__assign({}, this._basepayload(data)), { course_group: _4.get(data, 'courseGroupId', ap_id_constants_1.INVALID_ID) });
	    };
	    return TermBoxMm;
	}());
	exports.TermBoxMm = TermBoxMm;
	var TermBoxMmComponent = /** @class */ (function () {
	    function TermBoxMmComponent() {
	        this.bindings = {
	            term: '<',
	            isEditable: '<?',
	            isPast: '<?'
	        };
	        this.controller = TermBoxMm;
	        this.templateUrl = 'capability-ng-academic-planner/src/plan/components/term_box/term_box_mm.html';
	    }
	    return TermBoxMmComponent;
	}());
	angular.module('capability-ng-academic-planner').component('eabMyPlannerTermMmBox', new TermBoxMmComponent());


/***/ }),
/* 1374 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ap_term_servant_1 = __webpack_require__(20);
	var TermBoxCountdownTimerController = /** @class */ (function () {
	    function TermBoxCountdownTimerController($interval) {
	        this.$interval = $interval;
	    }
	    TermBoxCountdownTimerController.prototype.changeTime = function (time) {
	        var now = moment();
	        var duration = moment.duration(time.diff(now));
	        this.timeString = "\n        <span class=\"text-bold number\">" + duration.days() + "</span>days &nbsp;|&nbsp;\n        <span class=\"text-bold\">" + duration.hours() + "</span>hours,&nbsp;\n        <span class=\"text-bold\">" + duration.minutes() + "</span>minutes,&nbsp;\n        <span class=\"text-bold\">" + duration.seconds() + "</span>seconds\n        ";
	    };
	    TermBoxCountdownTimerController.prototype.startTimer = function (startTime) {
	        var _this = this;
	        var UPDATE_INTERVAL = 1000;
	        this.timer = this.$interval(function () { return _this.changeTime(startTime); }, UPDATE_INTERVAL);
	    };
	    TermBoxCountdownTimerController.prototype.$onChanges = function () {
	        this.startTime = this.term.priority_registration_start_dt;
	        if (ap_term_servant_1.APTermServant.hasPriorityReg(this.term) && this.startTime) {
	            this.startTimer(this.startTime);
	        }
	    };
	    return TermBoxCountdownTimerController;
	}());
	exports.TermBoxCountdownTimerController = TermBoxCountdownTimerController;
	var TermBoxCountdownTimer = /** @class */ (function () {
	    function TermBoxCountdownTimer() {
	        this.bindings = {
	            term: '<'
	        };
	        this.controller = TermBoxCountdownTimerController;
	        this.templateUrl =
	            'capability-ng-academic-planner/src/plan/components/term_box_countdown_timer/term_box_countdown_timer.html';
	    }
	    return TermBoxCountdownTimer;
	}());
	angular.module('capability-ng-academic-planner').component('termBoxCountdownTimer', new TermBoxCountdownTimer());


/***/ }),
/* 1375 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var term_box_button_1 = __webpack_require__(491);
	var TermBoxMenu = /** @class */ (function (_super) {
	    tslib_1.__extends(TermBoxMenu, _super);
	    function TermBoxMenu($scope, $state, $modal, 
	    // TODO: Once the refactoring is done, remove this and call command directly
	    appConfigModel, ngAPUserModeConfig) {
	        var _this = _super.call(this, $scope, $state, $modal, appConfigModel, ngAPUserModeConfig) || this;
	        _this.$scope = $scope;
	        _this.$state = $state;
	        _this.$modal = $modal;
	        _this.appConfigModel = appConfigModel;
	        _this.ngAPUserModeConfig = ngAPUserModeConfig;
	        _this.deletePopupHidden = true;
	        _this.showLockUnlockCoursesModal = false;
	        _this.regMenuItemText = '';
	        _this.headerMenuItemText = '';
	        _this.showRemoveTerm = false;
	        _this.isAdvisor = false;
	        _this.showLockCoursesOption = false;
	        _this.showUnLockCoursesOption = false;
	        _this.isLocking = true;
	        _this.coursesCount = 0;
	        _this.terms = [];
	        _this.popupMenuId = _4.uniqueId();
	        return _this;
	    }
	    TermBoxMenu.prototype.$onInit = function () {
	        this.initialize();
	    };
	    TermBoxMenu.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    TermBoxMenu.prototype.openDeleteTermPopup = function () {
	        if (this.showRemoveTerm) {
	            this.deletePopupHidden = false;
	        }
	    };
	    TermBoxMenu.prototype.closeDeleteTermPopup = function () {
	        this.deletePopupHidden = true;
	    };
	    TermBoxMenu.prototype.lockAllCourses = function () {
	        // Show the lock confirmation popup
	        this.showLockUnlockCoursesModal = true;
	        this.isLocking = true;
	    };
	    TermBoxMenu.prototype.unLockAllCourses = function () {
	        // Show the lock confirmation popup
	        this.showLockUnlockCoursesModal = true;
	        this.isLocking = false;
	    };
	    TermBoxMenu.prototype.initialize = function () {
	        this.setMenuItemTexts();
	        this.showRemoveTerm = _4.every(this.term._genericSlots, function (genericSlot) {
	            return _4.isEmpty(genericSlot.status);
	        });
	        // we don't want to show 'Remove term' menu item for student if any locked course present
	        if (this.showRemoveTerm && this.ngAPUserModeConfig.isStudent()) {
	            this.showRemoveTerm = !this.term._isLockedByAdvisorCoursePresent;
	        }
	        this.showRegMenu = this.showRegButton();
	        this.isAdvisor = this.ngAPUserModeConfig.isAdvisor();
	        this.showLockCoursesOption = this.isAdvisor && _4.get(this.term, '_showLockAllCourses', false);
	        this.showUnLockCoursesOption = this.isAdvisor && _4.get(this.term, '_showUnLockAllCourses', false);
	        this.terms = [this.term];
	    };
	    TermBoxMenu.prototype.setMenuItemTexts = function () {
	        var termStatus = this.term._termStatus.value || this.term._termStatus;
	        this.regMenuItemText = termStatus.button_label || 'Pick Times';
	        this.headerMenuItemText = _4.template(termStatus.status_title_plain)({
	            registration_start_date: moment(this.term.registration_start_dt).format('MMMM DD'),
	            term_start_date: moment(this.term.term_start_dt).format('MMMM DD')
	        });
	    };
	    return TermBoxMenu;
	}(term_box_button_1.MyPlannerTermBoxButton));
	angular.module('capability-ng-academic-planner').component('termBoxMenu', {
	    templateUrl: 'capability-ng-academic-planner/src/plan/components/term_box_menu/term_box_menu.html',
	    bindings: {
	        term: '<',
	        isPast: '<?'
	    },
	    controller: TermBoxMenu
	});


/***/ }),
/* 1376 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var TermBoxMmMenu = /** @class */ (function () {
	    function TermBoxMmMenu($state, appConfigModel, ngAPUserModeConfig, deleteMmTermCommand) {
	        this.$state = $state;
	        this.appConfigModel = appConfigModel;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.deleteMmTermCommand = deleteMmTermCommand;
	        this.isOpened = false;
	        this.isAdvisor = false;
	        this.popupMenuId = _4.uniqueId();
	    }
	    TermBoxMmMenu.prototype.$onInit = function () {
	        this.initialize();
	    };
	    TermBoxMmMenu.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    TermBoxMmMenu.prototype.deleteTerm = function () {
	        this.isOpened = true;
	    };
	    TermBoxMmMenu.prototype.initialize = function () {
	        this.isAdvisor = this.ngAPUserModeConfig.isAdvisor();
	    };
	    return TermBoxMmMenu;
	}());
	angular.module('capability-ng-academic-planner').component('termBoxMmMenu', {
	    templateUrl: 'capability-ng-academic-planner/src/plan/components/term_box_menu/term_box_mm_menu.html',
	    bindings: {
	        term: '<',
	        isPast: '<?'
	    },
	    controller: TermBoxMmMenu
	});


/***/ }),
/* 1377 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var TermDelete = /** @class */ (function () {
	    function TermDelete(deleteTermCommand, phxFocusDelegate, phxAxReturnFocusFactory, ngAPNotificationDelegate, phxAxTitleAnnouncerDelegate) {
	        this.deleteTermCommand = deleteTermCommand;
	        this.phxFocusDelegate = phxFocusDelegate;
	        this.phxAxReturnFocusFactory = phxAxReturnFocusFactory;
	        this.ngAPNotificationDelegate = ngAPNotificationDelegate;
	        this.phxAxTitleAnnouncerDelegate = phxAxTitleAnnouncerDelegate;
	        this.isOpened = true;
	    }
	    TermDelete.prototype.$onInit = function () {
	        this.isOpened = true;
	    };
	    TermDelete.prototype.accept = function () {
	        var _this = this;
	        this.closeDialog();
	        this.deleteTermCommand(this.term)
	            .then(function () {
	            _this.phxAxTitleAnnouncerDelegate.announceChange(_this.term.name + " term removed");
	            _this.ngAPNotificationDelegate.success(_this.term.name + " term is deleted successfully.");
	        })
	            .catch(function (e) { return _this.ngAPNotificationDelegate.error("Failed to delete " + _this.term.name + " term."); });
	    };
	    TermDelete.prototype.openedChanged = function (event) {
	        if (_4.isFunction(this.popupClosed) && !_4.get(event, 'detail.value', true)) {
	            this.popupClosed();
	        }
	    };
	    TermDelete.prototype.closeDialog = function () {
	        this.isOpened = false;
	    };
	    return TermDelete;
	}());
	exports.TermDelete = TermDelete;
	angular.module('capability-ng-academic-planner').component('termDeleteModal', {
	    templateUrl: 'capability-ng-academic-planner/src/plan/components/term_delete/term_delete.html',
	    bindings: {
	        term: '<',
	        popupClosed: '&'
	    },
	    controller: TermDelete
	});


/***/ }),
/* 1378 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var TermMmDeleteDialog = /** @class */ (function () {
	    function TermMmDeleteDialog(ngAPNotificationDelegate, phxAxTitleAnnouncerDelegate, deleteMmTermCommand, loadAvailableTermsCommand) {
	        this.ngAPNotificationDelegate = ngAPNotificationDelegate;
	        this.phxAxTitleAnnouncerDelegate = phxAxTitleAnnouncerDelegate;
	        this.deleteMmTermCommand = deleteMmTermCommand;
	        this.loadAvailableTermsCommand = loadAvailableTermsCommand;
	        this.isOpened = false;
	    }
	    TermMmDeleteDialog.prototype.closeTermDialog = function () {
	        this.closeDialog();
	    };
	    TermMmDeleteDialog.prototype.deleteTerm = function () {
	        var _this = this;
	        this.closeDialog();
	        var termId = _4.get(this.term, 'id', 0);
	        if (!termId) {
	            this.ngAPNotificationDelegate.error("Failed to delete term.");
	            return;
	        }
	        this.deleteMmTermCommand(termId)
	            .then(function (studentNk) {
	            _this.phxAxTitleAnnouncerDelegate.announceChange(_this.term.name + " term removed");
	            _this.ngAPNotificationDelegate.success(_this.term.name + " term was deleted successfully.");
	            _this.loadAvailableTermsCommand(studentNk);
	        })
	            .catch(function (e) { return _this.ngAPNotificationDelegate.error("Failed to delete " + _this.term.name + " term."); });
	    };
	    TermMmDeleteDialog.prototype.closeDialog = function () {
	        this.isOpened = false;
	    };
	    return TermMmDeleteDialog;
	}());
	exports.TermMmDeleteDialog = TermMmDeleteDialog;
	angular.module('capability-ng-academic-planner').component('termMmDeleteDialog', {
	    templateUrl: 'capability-ng-academic-planner/src/plan/components/term_delete/term_mm_delete_dialog.html',
	    bindings: {
	        term: '<',
	        isOpened: '='
	    },
	    controller: TermMmDeleteDialog
	});


/***/ }),
/* 1379 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var lodash4_1 = __webpack_require__(1);
	var ap_term_servant_1 = __webpack_require__(20);
	var APTermRegistrationStatus = /** @class */ (function () {
	    function APTermRegistrationStatus() {
	    }
	    APTermRegistrationStatus.prototype.initialize = function () {
	        var hasPriorityReg = ap_term_servant_1.APTermServant.hasPriorityReg(this.term);
	        this.isNotDefault = ap_term_servant_1.APTermServant.hasDefaultRegistrationDates(this.term);
	        this.inCountdownPeriod = ap_term_servant_1.APTermServant.inCountdownPeriod(this.term);
	        this.inPriorityPeriod = ap_term_servant_1.APTermServant.inPriorityPeriod(this.term);
	        this.isPriorityReg = hasPriorityReg;
	        this.isStandardReg = !hasPriorityReg;
	        this.showTooltip = this.term._termStatus.show_tooltip;
	        this.statusText = {
	            displayTitle: this.interpolateDates(this.term._termStatus.status_title),
	            tooltipTitle: this.interpolateDates(this.term._termStatus.tooltip_title),
	            toolTipContent: this.interpolateDates(this.term._termStatus.tooltip_content)
	        };
	    };
	    APTermRegistrationStatus.prototype.interpolateDates = function (tmplString) {
	        var defaultDateFormat = 'MMMM DD, YYYY';
	        var monthDay = 'MMMM DD';
	        var preCalculatedTermDateInformation = {
	            priority_registration_start_date: this.term.priority_registration_start_dt
	                ? this.term.priority_registration_start_dt.format(monthDay)
	                : '',
	            priority_registration_end_date: this.term.priority_registration_end_dt
	                ? this.term.priority_registration_end_dt.format(monthDay)
	                : '',
	            priority_registration_start_date_year: this.term.priority_registration_start_dt
	                ? this.term.priority_registration_start_dt.format(defaultDateFormat)
	                : '',
	            priority_registration_end_date_year: this.term.priority_registration_end_dt
	                ? this.term.priority_registration_end_dt.format(defaultDateFormat)
	                : '',
	            registration_start_date: this.term.registration_start_dt.format(monthDay),
	            registration_end_date: this.term.registration_end_dt.format(monthDay),
	            registration_start_date_year: this.term.registration_start_dt.format(defaultDateFormat),
	            registration_end_date_year: this.term.registration_start_dt.format(defaultDateFormat),
	            registration_time_until: this.getHumanTimeDiff(moment(), this.term.registration_start_dt),
	            registration_time_left: this.getHumanTimeDiff(this.term.registration_start_dt, this.term.registration_end_dt),
	            term_start_date: this.term.term_start_dt.format(monthDay),
	            term_end_date: this.term.term_end_dt.format(monthDay),
	            term_start_date_year: this.term.term_start_dt.format(defaultDateFormat),
	            term_end_date_year: this.term.term_end_dt.format(defaultDateFormat),
	            term_time_until: this.getHumanTimeDiff(moment(), this.term.term_start_dt),
	            term_time_left: this.getHumanTimeDiff(this.term.term_start_dt, this.term.term_end_dt)
	        };
	        return lodash4_1.template(tmplString, {
	            interpolate: /{{([\s\S]+?)}}/g
	        })(preCalculatedTermDateInformation);
	    };
	    APTermRegistrationStatus.prototype.getHumanTimeDiff = function (startMoment, endMoment) {
	        return moment.duration(endMoment.diff(startMoment)).humanize();
	    };
	    APTermRegistrationStatus.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    APTermRegistrationStatus.prototype.$onInit = function () {
	        this.initialize();
	    };
	    return APTermRegistrationStatus;
	}());
	exports.APTermRegistrationStatus = APTermRegistrationStatus;
	var APTermRegistrationStatusComponent = /** @class */ (function () {
	    function APTermRegistrationStatusComponent() {
	        this.controller = APTermRegistrationStatus;
	        this.templateUrl =
	            'capability-ng-academic-planner/src/plan/components/term_registration_status/term_registration_status.html';
	        this.bindings = { term: '<' };
	    }
	    return APTermRegistrationStatusComponent;
	}());
	angular
	    .module('capability-ng-academic-planner')
	    .component('termRegistrationStatus', new APTermRegistrationStatusComponent());


/***/ }),
/* 1380 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APAvailableTermsQuery = /** @class */ (function () {
	    function APAvailableTermsQuery(QueryMediator, ngAPAvailableTermsDatasource) {
	        this.ngAPAvailableTermsDatasource = ngAPAvailableTermsDatasource;
	        QueryMediator.registerQuery(this, ngAPAvailableTermsDatasource);
	    }
	    APAvailableTermsQuery.prototype.run = function () {
	        var availableTerms = _4.orderBy(this.ngAPAvailableTermsDatasource.values(), ['rank', 'name']);
	        this.__result = {
	            availableTerms: availableTerms
	        };
	        return this;
	    };
	    Object.defineProperty(APAvailableTermsQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APAvailableTermsQuery;
	}());
	exports.APAvailableTermsQuery = APAvailableTermsQuery;
	angular.module('capability-ng-academic-planner').service('ngAPAvailableTermsQuery', APAvailableTermsQuery);


/***/ }),
/* 1381 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var comment_servant_1 = __webpack_require__(68);
	var ap_id_constants_1 = __webpack_require__(11);
	var ap_generic_slot_builder_1 = __webpack_require__(35);
	var ap_course_servant_1 = __webpack_require__(25);
	var ap_min_grade_servant_1 = __webpack_require__(52);
	var ap_planned_course_servant_1 = __webpack_require__(41);
	var ap_program_slot_servant_1 = __webpack_require__(15);
	var ap_term_servant_1 = __webpack_require__(20);
	var APDegreeMapQueryHelper = /** @class */ (function () {
	    function APDegreeMapQueryHelper(ngAPPlannedCoursesDatasource, ngAPCoursesDatasource, ngAPProgramSlotDatasource, ngAPPlannedCourseGroupDatasource, ngAPTermsDatasource, ngAPMarkAsMetStatusDatasource, appConfigModel, ngCommentsDatasource, ngAPTermCourseDataQueryhelper) {
	        this.ngAPPlannedCoursesDatasource = ngAPPlannedCoursesDatasource;
	        this.ngAPCoursesDatasource = ngAPCoursesDatasource;
	        this.ngAPProgramSlotDatasource = ngAPProgramSlotDatasource;
	        this.ngAPPlannedCourseGroupDatasource = ngAPPlannedCourseGroupDatasource;
	        this.ngAPTermsDatasource = ngAPTermsDatasource;
	        this.ngAPMarkAsMetStatusDatasource = ngAPMarkAsMetStatusDatasource;
	        this.appConfigModel = appConfigModel;
	        this.ngCommentsDatasource = ngCommentsDatasource;
	        this.ngAPTermCourseDataQueryhelper = ngAPTermCourseDataQueryhelper;
	    }
	    APDegreeMapQueryHelper.prototype.getProgramSlots = function () {
	        var allProgramSlotWithMeta = this.getAllProgramSlotsWithMetaInfo();
	        var ProgramSlotsByReq = _4.partition(allProgramSlotWithMeta, 'is_devreq');
	        return {
	            allProgramSlotWithMeta: allProgramSlotWithMeta,
	            devReqProgramSlots: _4.head(ProgramSlotsByReq),
	            nonDevReqProgramSlots: _4.last(ProgramSlotsByReq)
	        };
	    };
	    APDegreeMapQueryHelper.prototype.getAllProgramSlotsWithMetaInfo = function () {
	        return this.ngAPProgramSlotDatasource.metasource().derived();
	    };
	    APDegreeMapQueryHelper.prototype.getPlannedCourseInSlotByCourseId = function (plannedCoursesWithMeta, courseId) {
	        return _4.find(plannedCoursesWithMeta, { course: courseId });
	    };
	    APDegreeMapQueryHelper.prototype.getPlannedCoursesWithMetaInfo = function () {
	        return this.ngAPPlannedCoursesDatasource.metasource().derived();
	    };
	    APDegreeMapQueryHelper.prototype.getRelatedPlannedCourse = function (courseId) {
	        var plannedCoursesWithMeta = this.getPlannedCoursesWithMetaInfo();
	        var pastTermCoursesWithMeta = this.ngAPTermCourseDataQueryhelper.getPastTermCoursesWithMetaInfo();
	        var plannedCourse = this.getPlannedCourseInSlotByCourseId(plannedCoursesWithMeta, courseId);
	        return !_4.isEmpty(plannedCourse) ? plannedCourse : _4.find(pastTermCoursesWithMeta, { course: courseId });
	    };
	    APDegreeMapQueryHelper.prototype.getPlannedCourseByCourseIdAndTermId = function (courseId, termId) {
	        var plannedCoursesWithMeta = this.getPlannedCoursesWithMetaInfo();
	        var pastTermCoursesWithMeta = this.ngAPTermCourseDataQueryhelper.getPastTermCoursesWithMetaInfo();
	        var plannedCourse = _4.find(plannedCoursesWithMeta, { course: courseId, term: termId }); // Should only find one
	        return !_4.isEmpty(plannedCourse)
	            ? plannedCourse
	            : _4.find(pastTermCoursesWithMeta, { course: courseId, term: termId });
	    };
	    APDegreeMapQueryHelper.prototype.getPlannedCoursebyId = function (plannedCourseId) {
	        var plannedCoursesWithMeta = this.getPlannedCoursesWithMetaInfo();
	        var pastTermCoursesWithMeta = this.ngAPTermCourseDataQueryhelper.getPastTermCoursesWithMetaInfo();
	        var plannedCourse = _4.find(plannedCoursesWithMeta, { id: plannedCourseId });
	        return !_4.isEmpty(plannedCourse) ? plannedCourse : _4.find(pastTermCoursesWithMeta, { id: plannedCourseId });
	    };
	    APDegreeMapQueryHelper.prototype.getPlannedCourseInSlotBySlotId = function (slotId) {
	        var plannedCoursesWithMeta = this.getPlannedCoursesWithMetaInfo();
	        var plannedCourse = _4.filter(plannedCoursesWithMeta, { program_slot: slotId });
	        var hasCourseBeenRescheduled = plannedCourse.length > 1;
	        return hasCourseBeenRescheduled
	            ? _4.last(plannedCourse)
	            : _4.find(plannedCoursesWithMeta, { program_slot: slotId });
	    };
	    APDegreeMapQueryHelper.prototype.getDevReqProgramSlots = function () {
	        return _4.sortBy(this.getProgramSlots().devReqProgramSlots, 'slot');
	    };
	    APDegreeMapQueryHelper.prototype.getNonDevReqProgramSlots = function () {
	        return _4.sortBy(this.getProgramSlots().nonDevReqProgramSlots, 'slot');
	    };
	    APDegreeMapQueryHelper.prototype.getPlannedCourses = function () {
	        return this.ngAPPlannedCoursesDatasource.values();
	    };
	    APDegreeMapQueryHelper.prototype.getAllProgramSlots = function () {
	        return this.ngAPProgramSlotDatasource.values();
	    };
	    APDegreeMapQueryHelper.prototype.getRequiredDataForDegreeMap = function () {
	        var courses = this.ngAPCoursesDatasource.values();
	        var allCourses = this.ngAPCoursesDatasource.metasource().derived();
	        var plannedCourses = this.getPlannedCourses();
	        var plannedCoursesWithMeta = this.getPlannedCoursesWithMetaInfo();
	        var allProgramSlots = this.getAllProgramSlots();
	        var allProgramSlotWithMeta = this.getAllProgramSlotsWithMetaInfo();
	        var plannedCourseGroups = this.ngAPTermCourseDataQueryhelper.getPlannedCourseGroups();
	        return {
	            courses: courses,
	            allCourses: allCourses,
	            plannedCourses: plannedCourses,
	            plannedCoursesWithMeta: plannedCoursesWithMeta,
	            allProgramSlots: allProgramSlots,
	            allProgramSlotWithMeta: allProgramSlotWithMeta,
	            plannedCourseGroups: plannedCourseGroups
	        };
	    };
	    APDegreeMapQueryHelper.prototype.buildDevReqGenericSlots = function () {
	        var _this = this;
	        var devReqProgramSlots = this.getDevReqProgramSlots();
	        return _4.map(devReqProgramSlots, function (programSlot) {
	            var type = programSlot.slot_type;
	            var firstCourse = _4.head(programSlot._courses);
	            var relatedPlannedCourse = _this.getPlannedCourseForDegreeMap(_this.getRelatedPlannedCourse(firstCourse.id));
	            var showMarkAsUnmetMenu = _this.showMarkAsUnmetMenu(programSlot, relatedPlannedCourse);
	            var _a = _this._getPlannedFlaggingInfo(relatedPlannedCourse), isCourseFlagged = _a.isCourseFlagged, flagComment = _a.flagComment;
	            var isPlannedSomewhere = !_4.isEmpty(relatedPlannedCourse) && !ap_course_servant_1.APCourseServant.isLockedByStatus(relatedPlannedCourse.status);
	            return ap_generic_slot_builder_1.APGenericSlotBuilder.build({
	                title: firstCourse.cd + " " + firstCourse.title,
	                type: type,
	                termId: _4.get(relatedPlannedCourse, 'term', ap_id_constants_1.INVALID_ID),
	                course: firstCourse,
	                plannedCourse: relatedPlannedCourse,
	                programSlot: programSlot,
	                isCourseFlagged: isCourseFlagged,
	                flagComment: flagComment,
	                status: _4.get(relatedPlannedCourse, 'status', ''),
	                shouldShowAddToTermMenu: !ap_course_servant_1.APCourseServant.isLockedByStatus(_4.get(relatedPlannedCourse, 'status', '')),
	                hoverTemplate: ap_course_servant_1.APCourseServant.buildHoverTemplate(firstCourse),
	                isPlannedSomewhere: isPlannedSomewhere,
	                isLockedByStatus: relatedPlannedCourse && ap_course_servant_1.APCourseServant.isLockedByStatus(relatedPlannedCourse.status),
	                isDragEnabled: _4.isEmpty(relatedPlannedCourse),
	                isPlanned: !_4.isEmpty(relatedPlannedCourse),
	                credits: firstCourse.credits,
	                disableSlot: !!relatedPlannedCourse || showMarkAsUnmetMenu,
	                showMarkAsMetMenu: _this.showMarkAsMetMenu(programSlot, relatedPlannedCourse),
	                showMarkAsUnmetMenu: showMarkAsUnmetMenu
	            });
	        });
	    };
	    APDegreeMapQueryHelper.prototype.getPlannedCourseForCourseSlotInDegreeMap = function (programSlot) {
	        if (ap_program_slot_servant_1.APProgramSlotServant.isProgramSlotMET(programSlot)) {
	            return {};
	        }
	        var firstCourse = _4.head(programSlot._courses);
	        var plannedCourseInSlot = this.getPlannedCourseInSlotBySlotId(programSlot.id);
	        var plannedCourse = !_4.isEmpty(plannedCourseInSlot)
	            ? plannedCourseInSlot
	            : this.getRelatedPlannedCourse(firstCourse.id);
	        return this.getPlannedCourseForDegreeMap(plannedCourse);
	    };
	    APDegreeMapQueryHelper.prototype.buildCourseGenericSlotForDegreeMap = function (programSlot) {
	        var firstCourse = _4.head(programSlot._courses);
	        var plannedCourse = this.getPlannedCourseForCourseSlotInDegreeMap(programSlot);
	        var showMarkAsUnmetMenu = this.showMarkAsUnmetMenu(programSlot, plannedCourse);
	        var isCoursePlanned = !_4.isEmpty(plannedCourse);
	        var _a = this._getPlannedFlaggingInfo(plannedCourse), isCourseFlagged = _a.isCourseFlagged, flagComment = _a.flagComment;
	        var minGradeFeature = this.appConfigModel.isFeatureEnabled('academicplan-program_slot_min_grade');
	        var isMinGradeMet = ap_min_grade_servant_1.APMinGradeServant.isMinGradeMet(programSlot, plannedCourse, minGradeFeature);
	        return ap_generic_slot_builder_1.APGenericSlotBuilder.build({
	            title: firstCourse.cd + " " + firstCourse.title,
	            type: 'COURSE',
	            termId: _4.get(plannedCourse, 'term', ap_id_constants_1.INVALID_ID),
	            course: firstCourse,
	            isCourseFlagged: isCourseFlagged,
	            flagComment: flagComment,
	            plannedCourse: plannedCourse,
	            programSlot: programSlot,
	            status: '',
	            isLockedByStatus: isCoursePlanned ? ap_course_servant_1.APCourseServant.isLockedByStatus(plannedCourse.status) : false,
	            isDragEnabled: !isCoursePlanned || this.showCourseAddToTermMenu(programSlot, isCoursePlanned, plannedCourse),
	            shouldShowAddToTermMenu: this.showCourseAddToTermMenu(programSlot, isCoursePlanned, plannedCourse),
	            isMinGradeMet: isMinGradeMet,
	            isCourseCompleted: this.isCourseCompleted(plannedCourse),
	            isPlanned: isCoursePlanned,
	            credits: 0,
	            hoverTemplate: ap_course_servant_1.APCourseServant.buildHoverTemplate(firstCourse),
	            isLockedByAdvisor: _4.get(plannedCourse, 'is_locked', false),
	            isPlannedSomewhere: isCoursePlanned ? ap_course_servant_1.APCourseServant.isLockedByStatus(plannedCourse.status) : false,
	            disableSlot: isCoursePlanned || showMarkAsUnmetMenu,
	            showMarkAsMetMenu: this.showMarkAsMetMenu(programSlot, plannedCourse),
	            showMarkAsUnmetMenu: showMarkAsUnmetMenu,
	            showGradeBadge: minGradeFeature && _4.get(programSlot, 'min_grade_point', null) !== null
	        });
	    };
	    APDegreeMapQueryHelper.prototype.showCourseAddToTermMenu = function (programSlot, isCoursePlanned, plannedCourse) {
	        var minGradeFeature = this.appConfigModel.isFeatureEnabled('academicplan-program_slot_min_grade');
	        var minGradeMet = ap_min_grade_servant_1.APMinGradeServant.isMinGradeMet(programSlot, plannedCourse, minGradeFeature);
	        var slotStatusEmpty = _4.isEmpty(programSlot.status);
	        if (slotStatusEmpty || (this.isCourseCompleted(plannedCourse) && !minGradeMet)) {
	            return true;
	        }
	        return !isCoursePlanned || !ap_course_servant_1.APCourseServant.isLockedByStatus(plannedCourse.status);
	    };
	    APDegreeMapQueryHelper.prototype.isCourseCompleted = function (plannedCourse) {
	        return _4.includes(['COMPLETED'], _4.get(plannedCourse, 'status', ''));
	    };
	    APDegreeMapQueryHelper.prototype.buildNCRGenericSlotForDegreeMap = function (programSlot) {
	        var title = "" + (!_4.isEmpty(programSlot.desc) ? programSlot.desc : programSlot.course_group);
	        var NCRPlannedCourseGroup = _4.find(this.ngAPPlannedCourseGroupDatasource.values(), {
	            program_slot: programSlot.id
	        });
	        var status = _4.isEmpty(NCRPlannedCourseGroup) ? 'DEFAULT' : 'PLANNED';
	        var isPlanned = !_4.isEmpty(NCRPlannedCourseGroup);
	        var showMarkAsUnmetMenu = this.showMarkAsUnmetMenu(programSlot, undefined, NCRPlannedCourseGroup);
	        return ap_generic_slot_builder_1.APGenericSlotBuilder.build({
	            title: title,
	            type: 'NCR',
	            termId: ap_id_constants_1.INVALID_ID,
	            instructions: programSlot.instructions,
	            status: status,
	            isPlanned: isPlanned,
	            isDragEnabled: !isPlanned,
	            programSlot: programSlot,
	            plannedCourseGroup: NCRPlannedCourseGroup,
	            disableSlot: isPlanned || showMarkAsUnmetMenu,
	            showMarkAsMetMenu: this.showMarkAsMetMenu(programSlot, undefined, NCRPlannedCourseGroup),
	            showMarkAsUnmetMenu: showMarkAsUnmetMenu
	        });
	    };
	    APDegreeMapQueryHelper.prototype.buildWildcardGenericSlotForDegreeMap = function (programSlot) {
	        var plannedCourseInSlot = this.getPlannedCourseInSlotBySlotId(programSlot.id);
	        var title = !!plannedCourseInSlot
	            ? plannedCourseInSlot._course.cd + " " + plannedCourseInSlot._course.title
	            : "" + (!_4.isEmpty(programSlot.desc) ? programSlot.desc : programSlot.course_group);
	        var _plannedCourse = this.getPlannedCourseForDegreeMap(plannedCourseInSlot);
	        var wildcardPlannedCourseGroup = _4.find(this.ngAPPlannedCourseGroupDatasource.values(), {
	            program_slot: programSlot.id
	        });
	        var groupGenericSlots = this.constructGroupGenericSlots(programSlot, plannedCourseInSlot);
	        var wildcardCoursePlanned = !!_plannedCourse;
	        var showMarkAsUnmetMenu = this.showMarkAsUnmetMenu(programSlot, _plannedCourse, wildcardPlannedCourseGroup);
	        var _a = this._getPlannedFlaggingInfo(_plannedCourse), isCourseFlagged = _a.isCourseFlagged, flagComment = _a.flagComment;
	        return ap_generic_slot_builder_1.APGenericSlotBuilder.build({
	            title: title,
	            type: 'WILDCARD',
	            termId: _4.get(_plannedCourse, 'term', _4.get(wildcardPlannedCourseGroup, 'term', ap_id_constants_1.INVALID_ID)),
	            course: wildcardCoursePlanned ? _plannedCourse._course : undefined,
	            plannedCourse: _plannedCourse,
	            instructions: programSlot.instructions,
	            isPlaceHolder: false,
	            plannedCourseGroup: wildcardPlannedCourseGroup,
	            programSlot: programSlot,
	            status: wildcardCoursePlanned && _plannedCourse.status,
	            isCourseFlagged: isCourseFlagged,
	            flagComment: flagComment,
	            genericSlots: [groupGenericSlots[0]],
	            isLockedByStatus: wildcardCoursePlanned ? ap_course_servant_1.APCourseServant.isLockedByStatus(_plannedCourse._course.status) : false,
	            isDragEnabled: !_4.isEmpty(_plannedCourse),
	            isPlanned: !_4.isEmpty(_plannedCourse) || !!wildcardPlannedCourseGroup,
	            credits: wildcardCoursePlanned ? _plannedCourse._course.credits : 0,
	            isPlannedInCurrentGroup: !!_plannedCourse,
	            hoverTemplate: wildcardCoursePlanned ? ap_course_servant_1.APCourseServant.buildHoverTemplate(_plannedCourse._course) : undefined,
	            isLockedByAdvisor: _4.get(_plannedCourse, 'is_locked', false),
	            disableSlot: !!_plannedCourse || !!wildcardPlannedCourseGroup || showMarkAsUnmetMenu,
	            showMarkAsMetMenu: this.showMarkAsMetMenu(programSlot, _plannedCourse, wildcardPlannedCourseGroup),
	            showMarkAsUnmetMenu: showMarkAsUnmetMenu
	        });
	    };
	    APDegreeMapQueryHelper.prototype._getPlannedFlaggingInfo = function (plannedCourse) {
	        var noFlagAdded = {
	            isCourseFlagged: false,
	            flagComment: undefined
	        };
	        if (_4.isEmpty(plannedCourse)) {
	            return noFlagAdded;
	        }
	        var flaggedCourses = _4.keyBy(comment_servant_1.CommentServant.getValidCourseComments(this.ngCommentsDatasource.metasource().derived()), 'object_id');
	        var courseId = _4.get(plannedCourse, '_course.id', -1);
	        var flagInfo = flaggedCourses[courseId];
	        if (_4.isEmpty(flagInfo)) {
	            return noFlagAdded;
	        }
	        var isCourseFlagged = _4.has(flaggedCourses, courseId);
	        var flagCommentHoverTemplate = isCourseFlagged ? comment_servant_1.CommentServant.getHoverTemplate(flagInfo) : undefined;
	        var flagComment = {
	            comment: flagInfo.message,
	            id: flagInfo.id,
	            hoverTemplate: flagCommentHoverTemplate
	        };
	        return {
	            isCourseFlagged: isCourseFlagged,
	            flagComment: flagComment
	        };
	    };
	    APDegreeMapQueryHelper.prototype.isMarkAsMetFeatureEnabled = function () {
	        return this.appConfigModel.isFeatureEnabled('academicplan-mark_as_met');
	    };
	    APDegreeMapQueryHelper.prototype.showMarkAsUnmetMenu = function (programSlot, plannedCourse, plannedCourseGroup) {
	        var markAsMetFeatureEnabled = this.isMarkAsMetFeatureEnabled();
	        if (!markAsMetFeatureEnabled) {
	            return false;
	        }
	        var statusEntry = _4.first(this.ngAPMarkAsMetStatusDatasource.query(function (slot) { return slot.program_slot === programSlot.id; }));
	        if (statusEntry && statusEntry.status === 'MET') {
	            return true;
	        }
	        var courseNotPlanned = !ap_program_slot_servant_1.APProgramSlotServant.isNCRProgramSlot(programSlot) && _4.isEmpty(plannedCourse);
	        if (courseNotPlanned) {
	            return false;
	        }
	        var courseGroupNotPlanned = !ap_program_slot_servant_1.APProgramSlotServant.isCourseProgramSlot(programSlot) && _4.isEmpty(plannedCourseGroup);
	        if (courseGroupNotPlanned) {
	            return false;
	        }
	        return ap_program_slot_servant_1.APProgramSlotServant.isProgramSlotMET(programSlot);
	    };
	    APDegreeMapQueryHelper.prototype.showMarkAsMetMenu = function (programSlot, plannedCourse, plannedCourseGroup) {
	        var markAsMetFeatureEnabled = this.isMarkAsMetFeatureEnabled();
	        var minGradeFeature = this.appConfigModel.isFeatureEnabled('academicplan-program_slot_min_grade');
	        var isDevCourse = ap_program_slot_servant_1.APProgramSlotServant.isCourseProgramSlot(programSlot) && programSlot.is_devreq;
	        var alreadyMarkedAsMet = !_4.isEmpty(this.ngAPMarkAsMetStatusDatasource.query(function (slot) { return slot.program_slot === programSlot.id; })) ||
	            ap_program_slot_servant_1.APProgramSlotServant.isProgramSlotMET(programSlot);
	        var dontShowMarkAsMetMenu = !markAsMetFeatureEnabled || alreadyMarkedAsMet || isDevCourse;
	        if (dontShowMarkAsMetMenu) {
	            return false;
	        }
	        if (plannedCourse && !_4.isEmpty(plannedCourse)) {
	            var isMinGradeMet = ap_min_grade_servant_1.APMinGradeServant.isMinGradeMet(programSlot, plannedCourse, minGradeFeature);
	            if (this.isCourseCompleted(plannedCourse) && !isMinGradeMet) {
	                return true;
	            }
	        }
	        var courseNotPlanned = !ap_program_slot_servant_1.APProgramSlotServant.isNCRProgramSlot(programSlot) && _4.isEmpty(plannedCourse);
	        if (courseNotPlanned) {
	            return _4.isEmpty(plannedCourseGroup);
	        }
	        var courseGroupNotPlanned = !ap_program_slot_servant_1.APProgramSlotServant.isCourseProgramSlot(programSlot) && _4.isEmpty(plannedCourseGroup);
	        if (courseGroupNotPlanned) {
	            return _4.isEmpty(plannedCourse);
	        }
	        return false;
	    };
	    APDegreeMapQueryHelper.prototype.buildCourseGroupGenericSlotForDegreeMap = function (programSlot) {
	        var plannedCourseInSlot = this.getPlannedCourseInSlotBySlotId(programSlot.id);
	        var title = !!plannedCourseInSlot
	            ? _4.get(plannedCourseInSlot, '_course.cd', '') + " " + _4.get(plannedCourseInSlot, '_course.title', '')
	            : "" + programSlot.desc;
	        var _plannedCourse = this.getPlannedCourseForDegreeMap(plannedCourseInSlot);
	        var groupGenericSlots = this.constructGroupGenericSlots(programSlot, plannedCourseInSlot);
	        var plannedCourseGroup = this.ngAPTermCourseDataQueryhelper.getPlannedCourseGroup(programSlot.id);
	        var isPlannedInCurrentGroup = !!_plannedCourse && _4.find(groupGenericSlots, { id: _plannedCourse._course.id });
	        var firstCourse = _4.head(programSlot._courses);
	        var showMarkAsUnmetMenu = this.showMarkAsUnmetMenu(programSlot, _plannedCourse, plannedCourseGroup);
	        var _a = this._getPlannedFlaggingInfo(_plannedCourse), isCourseFlagged = _a.isCourseFlagged, flagComment = _a.flagComment;
	        var minGradeFeature = this.appConfigModel.isFeatureEnabled('academicplan-program_slot_min_grade');
	        var isLockedByStatus = !!_plannedCourse ? ap_course_servant_1.APCourseServant.isLockedByStatus(_plannedCourse.status) : false;
	        return ap_generic_slot_builder_1.APGenericSlotBuilder.build({
	            title: title,
	            type: 'GROUP',
	            termId: _4.get(_plannedCourse, 'term', _4.get(plannedCourseGroup, 'term', ap_id_constants_1.INVALID_ID)),
	            courses: programSlot._courses,
	            plannedCourse: _plannedCourse,
	            isPlaceHolder: false,
	            plannedCourseGroup: plannedCourseGroup,
	            isCourseFlagged: isCourseFlagged,
	            flagComment: flagComment,
	            programSlot: programSlot,
	            instructions: '',
	            status: '',
	            firstCourse: firstCourse,
	            genericSlots: _4.take(groupGenericSlots, Math.min(programSlot.total_courses, 10)),
	            isLockedByStatus: isLockedByStatus,
	            isDragEnabled: !_4.isEmpty(_plannedCourse),
	            isPlanned: !_4.isEmpty(_plannedCourse) || !!plannedCourseGroup,
	            min_credits: programSlot.min_credits,
	            max_credits: programSlot.max_credits,
	            shouldShowAddToTermMenu: isLockedByStatus,
	            isPlannedInCurrentGroup: !!isPlannedInCurrentGroup,
	            hoverTemplate: ap_course_servant_1.APCourseServant.buildHoverTemplate(firstCourse),
	            isLockedByAdvisor: _4.get(_plannedCourse, 'is_locked', false),
	            disableSlot: !_4.isEmpty(_plannedCourse) || !!plannedCourseGroup || showMarkAsUnmetMenu,
	            showMarkAsMetMenu: this.showMarkAsMetMenu(programSlot, _plannedCourse, plannedCourseGroup),
	            showMarkAsUnmetMenu: showMarkAsUnmetMenu,
	            showGradeBadge: minGradeFeature && _4.get(programSlot, 'min_grade_point', null) !== null
	        });
	    };
	    APDegreeMapQueryHelper.prototype.getPlannedCourseStatusForDegreeMap = function (plannedCourse) {
	        var plannedCourseStatus = ''; // this does not include REGISTERED, WAITLISTED, SECTION_PICKED ...
	        if (!plannedCourse) {
	            return plannedCourseStatus;
	        }
	        var term = this.ngAPTermsDatasource.get(plannedCourse.term);
	        var isRegistrationOpenForTerm = term && ap_term_servant_1.APTermServant.isRegistrationOpen(term);
	        if (plannedCourse.status === 'SECTION_PICKED' && !isRegistrationOpenForTerm) {
	            return plannedCourseStatus;
	        }
	        return plannedCourse.status;
	    };
	    APDegreeMapQueryHelper.prototype.getPlannedCourseForDegreeMap = function (plannedCourse) {
	        if (!plannedCourse) {
	            return plannedCourse;
	        }
	        return tslib_1.__assign(tslib_1.__assign({}, plannedCourse), { status: this.getPlannedCourseStatusForDegreeMap(plannedCourse) });
	    };
	    APDegreeMapQueryHelper.prototype.showGroupCourseToTermMenu = function (plannedCourse, programSlot) {
	        if (_4.isEmpty(plannedCourse)) {
	            return true;
	        }
	        var minGradeFeature = this.appConfigModel.isFeatureEnabled('academicplan-program_slot_min_grade');
	        return (this.isCourseCompleted(plannedCourse) &&
	            !ap_min_grade_servant_1.APMinGradeServant.isMinGradeMet(programSlot, plannedCourse, minGradeFeature));
	    };
	    APDegreeMapQueryHelper.prototype.constructGroupGenericSlots = function (programSlot, plannedCourseInSlot, plannedCourse, flaggedCourses) {
	        var _this = this;
	        if (plannedCourseInSlot === void 0) { plannedCourseInSlot = {}; }
	        if (plannedCourse === void 0) { plannedCourse = {}; }
	        if (flaggedCourses === void 0) { flaggedCourses = {}; }
	        var courses;
	        var isCourseGroup = programSlot.slot_type === 'GROUP';
	        if (!isCourseGroup && !_4.isEmpty(plannedCourse)) {
	            courses = _4.compact([plannedCourse._course]);
	        }
	        else {
	            courses = programSlot._courses;
	        }
	        return _4.map(courses, function (course) {
	            var relatedPlannedCourse = {};
	            if (!_4.isEmpty(plannedCourseInSlot) && plannedCourseInSlot.course === course.id) {
	                relatedPlannedCourse = plannedCourseInSlot;
	            }
	            if (_4.isEmpty(relatedPlannedCourse)) {
	                relatedPlannedCourse = _this.getRelatedPlannedCourse(course.id);
	            }
	            var isLockedByAdvisor = _4.get(_4.find(_this.getPlannedCoursesWithMetaInfo(), { course: course.id }), 'is_locked', false);
	            var isCourseFlagged = _4.has(flaggedCourses, course.id);
	            var flagCommentHoverTemplate = isCourseFlagged
	                ? comment_servant_1.CommentServant.getHoverTemplate(flaggedCourses[course.id])
	                : undefined;
	            return ap_generic_slot_builder_1.APGenericSlotBuilder.build({
	                title: course.cd + " " + course.title,
	                type: 'COURSE',
	                isLockedByAdvisor: isLockedByAdvisor,
	                termId: ap_id_constants_1.INVALID_ID,
	                isCourseFlagged: isCourseFlagged,
	                flagComment: {
	                    comment: _4.get(flaggedCourses[course.id], 'message'),
	                    id: _4.get(flaggedCourses[course.id], 'id'),
	                    hoverTemplate: flagCommentHoverTemplate
	                },
	                programSlot: programSlot,
	                course: course,
	                plannedCourse: relatedPlannedCourse,
	                status: '',
	                isDragEnabled: true,
	                isPlanned: !!relatedPlannedCourse,
	                shouldShowAddToTermMenu: _this.showGroupCourseToTermMenu(relatedPlannedCourse, programSlot),
	                credits: course.credits,
	                hoverTemplate: _4.isEmpty(plannedCourse)
	                    ? ap_course_servant_1.APCourseServant.buildHoverTemplate(course)
	                    : ap_planned_course_servant_1.APPlannedCourseServant.buildPlannedCourseHoverTemplate(relatedPlannedCourse, course),
	                isPlannedSomewhere: relatedPlannedCourse && !!relatedPlannedCourse.id,
	                isPlannedInCurrentGroup: plannedCourse.course === course.id,
	                disableSlot: !!relatedPlannedCourse
	            });
	        });
	    };
	    APDegreeMapQueryHelper.prototype.buildNonDevGenericSlots = function () {
	        var _this = this;
	        var nonDevReqProgramSlots = this.getNonDevReqProgramSlots();
	        return _4.map(nonDevReqProgramSlots, function (programSlot) {
	            if (ap_program_slot_servant_1.APProgramSlotServant.isCourseProgramSlot(programSlot)) {
	                return _this.buildCourseGenericSlotForDegreeMap(programSlot);
	            }
	            if (ap_program_slot_servant_1.APProgramSlotServant.isWildcardProgramSlot(programSlot)) {
	                return _this.buildWildcardGenericSlotForDegreeMap(programSlot);
	            }
	            if (ap_program_slot_servant_1.APProgramSlotServant.isCourseGroupProgramSlot(programSlot)) {
	                return _this.buildCourseGroupGenericSlotForDegreeMap(programSlot);
	            }
	            if (ap_program_slot_servant_1.APProgramSlotServant.isNCRProgramSlot(programSlot)) {
	                return _this.buildNCRGenericSlotForDegreeMap(programSlot);
	            }
	            return _this.buildCourseGenericSlotForDegreeMap(programSlot);
	        });
	    };
	    return APDegreeMapQueryHelper;
	}());
	exports.APDegreeMapQueryHelper = APDegreeMapQueryHelper;
	angular.module('capability-ng-academic-planner').service('ngAPDegreeMapQueryHelper', APDegreeMapQueryHelper);


/***/ }),
/* 1382 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_datasource_1 = __webpack_require__(9);
	var ap_generic_slot_builder_1 = __webpack_require__(35);
	var ap_id_constants_1 = __webpack_require__(11);
	var ap_course_servant_1 = __webpack_require__(25);
	var APFavoriteCoursesQuery = /** @class */ (function () {
	    function APFavoriteCoursesQuery(ngAPCoursesDatasource) {
	        this.ngAPCoursesDatasource = ngAPCoursesDatasource;
	        utility_ts_datasource_1.ORMMediator.registerQuery(this, ngAPCoursesDatasource);
	    }
	    APFavoriteCoursesQuery.prototype.run = function () {
	        var apiCourses = this.ngAPCoursesDatasource.query(function (course) { return course.is_favorite; });
	        var courses = this.ngAPCoursesDatasource.metasource().composes(apiCourses);
	        var genericSlots = _4.map(courses, function (course) {
	            return ap_generic_slot_builder_1.APGenericSlotBuilder.build({
	                title: course.cd + " " + course.title,
	                type: 'COURSE',
	                termId: ap_id_constants_1.INVALID_ID,
	                course: course,
	                isDragEnabled: true,
	                credits: course.credits,
	                isPlanned: false,
	                disableSlot: false,
	                isPlannedSomewhere: false,
	                shouldShowAddToTermMenu: true,
	                plannedCourse: {},
	                programSlot: {
	                    id: null,
	                    slot_type: 'COURSE'
	                },
	                status: course.status,
	                hoverTemplate: ap_course_servant_1.APCourseServant.buildHoverTemplate(course)
	            });
	        });
	        this.__result = {
	            courses: courses,
	            count: _4.size(courses),
	            courseNames: _4.map(courses, 'cd'),
	            genericSlots: genericSlots
	        };
	        return this;
	    };
	    Object.defineProperty(APFavoriteCoursesQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APFavoriteCoursesQuery;
	}());
	exports.APFavoriteCoursesQuery = APFavoriteCoursesQuery;
	angular.module('capability-ng-academic-planner').service('ngAPFavoriteCoursesQuery', APFavoriteCoursesQuery);


/***/ }),
/* 1383 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APGoalSetsQuery = /** @class */ (function () {
	    function APGoalSetsQuery(QueryMediator, ngAPGoalSetstDatasource) {
	        this.ngAPGoalSetstDatasource = ngAPGoalSetstDatasource;
	        QueryMediator.registerQuery(this, ngAPGoalSetstDatasource);
	    }
	    APGoalSetsQuery.prototype.getGoalSetsData = function (goalSetsData) {
	        return _4.map(goalSetsData, function (_a) {
	            var goal_set = _a.goal_set, student_goal_set_id = _a.id;
	            var id = goal_set.id, title = goal_set.display_name;
	            return { id: id, title: title, studentGoalSetId: student_goal_set_id };
	        });
	    };
	    APGoalSetsQuery.prototype.run = function () {
	        var goalSetsData = this.ngAPGoalSetstDatasource.values();
	        var goalSets = this.getGoalSetsData(goalSetsData);
	        this.__result = {
	            goalSets: goalSets
	        };
	        return this;
	    };
	    Object.defineProperty(APGoalSetsQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APGoalSetsQuery;
	}());
	exports.APGoalSetsQuery = APGoalSetsQuery;
	angular.module('capability-ng-academic-planner').service('ngAPGoalSetsQuery', APGoalSetsQuery);


/***/ }),
/* 1384 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APGoalsQuery = /** @class */ (function () {
	    function APGoalsQuery(QueryMediator, ngAPGoalsDatasource) {
	        this.ngAPGoalsDatasource = ngAPGoalsDatasource;
	        QueryMediator.registerQuery(this, ngAPGoalsDatasource);
	    }
	    APGoalsQuery.prototype.run = function () {
	        var goalsData = this.ngAPGoalsDatasource.values();
	        var goals = _4.map(goalsData, function (goal) {
	            var id = goal.id, title = goal.display_name, description = goal.description, _a = goal.goal_type_name, goal_type_name = _a === void 0 ? 'Goal Type Name' : _a;
	            return {
	                id: id,
	                title: title,
	                description: description || '',
	                goal_type_name: goal_type_name
	            };
	        });
	        var _goalGroups = _4.groupBy(goals, 'goal_type_name');
	        this.__result = _goalGroups;
	        return this;
	    };
	    Object.defineProperty(APGoalsQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APGoalsQuery;
	}());
	exports.APGoalsQuery = APGoalsQuery;
	angular.module('capability-ng-academic-planner').service('ngAPGoalsQuery', APGoalsQuery);


/***/ }),
/* 1385 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var APMmFavoriteCoursesQuery = /** @class */ (function () {
	    function APMmFavoriteCoursesQuery(QueryMediator, ngAPMmFavoriteCoursesDatasource) {
	        this.ngAPMmFavoriteCoursesDatasource = ngAPMmFavoriteCoursesDatasource;
	        QueryMediator.registerQuery(this, ngAPMmFavoriteCoursesDatasource);
	    }
	    APMmFavoriteCoursesQuery.prototype.run = function () {
	        var favoriteCourses = this.ngAPMmFavoriteCoursesDatasource.values();
	        this.__result = _4.map(favoriteCourses, function (course) {
	            return tslib_1.__assign(tslib_1.__assign({}, course), { title: course.cd + " " + course.title });
	        });
	        return this;
	    };
	    Object.defineProperty(APMmFavoriteCoursesQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APMmFavoriteCoursesQuery;
	}());
	exports.APMmFavoriteCoursesQuery = APMmFavoriteCoursesQuery;
	angular.module('capability-ng-academic-planner').service('ngAPMmFavoriteCoursesQuery', APMmFavoriteCoursesQuery);


/***/ }),
/* 1386 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var utility_ts_datasource_1 = __webpack_require__(9);
	var ap_course_status_strategy_1 = __webpack_require__(121);
	var APMultiTermsQuery = /** @class */ (function () {
	    function APMultiTermsQuery(ngAPMultiTermDatasource) {
	        this.ngAPMultiTermDatasource = ngAPMultiTermDatasource;
	        utility_ts_datasource_1.ORMMediator.registerQuery(this, ngAPMultiTermDatasource);
	    }
	    APMultiTermsQuery.prototype.run = function () {
	        var terms = _4.orderBy(this.ngAPMultiTermDatasource.values(), ['rank', 'name']);
	        _4.each(terms, function (term) {
	            _4.map(term.plannedCourses, function (plannedcourse) {
	                plannedcourse['courses'] = tslib_1.__spreadArrays(plannedcourse.slot_courses);
	            });
	            term['courses'] = tslib_1.__spreadArrays(term.plannedCourses, term.plannedCourseGroups);
	            var coursesGroupedByStatus = _4.groupBy(tslib_1.__spreadArrays(term.plannedCourses, term.plannedCourseGroups), 'status');
	            term['statusGroups'] = _4.map(coursesGroupedByStatus, function (courses, statusGroup) { return ({
	                status: _4.get(ap_course_status_strategy_1.APCourseStatusStrategy.getByKey(statusGroup), 'humanString', 'Planned'),
	                courses: courses
	            }); });
	        });
	        var completedTerms = _4.filter(terms, ['isCompleted', true]);
	        var currentTerms = _4.filter(terms, ['isCompleted', false]);
	        var termsInfo = _4.map(currentTerms, function (term) {
	            return {
	                id: term.termId,
	                name: term.name
	            };
	        });
	        this.__result = {
	            termsInfo: termsInfo,
	            completedTerms: completedTerms,
	            currentTerms: currentTerms,
	            terms: terms
	        };
	        return this;
	    };
	    Object.defineProperty(APMultiTermsQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APMultiTermsQuery;
	}());
	exports.APMultiTermsQuery = APMultiTermsQuery;
	angular.module('capability-ng-academic-planner').service('ngAPMultiTermsQuery', APMultiTermsQuery);


/***/ }),
/* 1387 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var ap_generic_slot_builder_1 = __webpack_require__(35);
	var ap_course_servant_1 = __webpack_require__(25);
	var ap_term_servant_1 = __webpack_require__(20);
	var APPastTermsQuery = /** @class */ (function () {
	    function APPastTermsQuery(QueryMediator, ngAPCoursesTermsRelationship, ngAPTermsDatasource, ngAPPlannedCourseGroupDatasource, ngAPCoursesDatasource, ngAPTermCourseDataQueryhelper, ngAPPlannedCoursesDatasource) {
	        this.ngAPCoursesTermsRelationship = ngAPCoursesTermsRelationship;
	        this.ngAPTermsDatasource = ngAPTermsDatasource;
	        this.ngAPPlannedCourseGroupDatasource = ngAPPlannedCourseGroupDatasource;
	        this.ngAPCoursesDatasource = ngAPCoursesDatasource;
	        this.ngAPTermCourseDataQueryhelper = ngAPTermCourseDataQueryhelper;
	        this.ngAPPlannedCoursesDatasource = ngAPPlannedCoursesDatasource;
	        QueryMediator.registerQuery(this, ngAPTermsDatasource, ngAPCoursesDatasource, ngAPPlannedCourseGroupDatasource);
	    }
	    APPastTermsQuery.prototype.run = function () {
	        var terms = this.ngAPTermsDatasource.read();
	        var pastTerms = _4
	            .chain(terms)
	            .filter(function (term) { return term.is_past_term; })
	            .sortBy("rank")
	            .value();
	        var pastTermCoursesWithMeta = this.ngAPTermCourseDataQueryhelper.getPastTermCoursesWithMetaInfo();
	        _4.each(pastTerms, function (term) {
	            term._genericSlots = [];
	            var coursesInTerm = _4.filter(pastTermCoursesWithMeta, { term: term.id });
	            term._plannedCourses = coursesInTerm;
	            term._genericSlots = _4.map(coursesInTerm, function (pastTermCourse) {
	                // For past term course, we mark all the requirement met
	                var plannedCourse = tslib_1.__assign(tslib_1.__assign({}, pastTermCourse), { coreq_miss: [], coreq_outoforder: [], is_coreq_satisfied: true, is_prereq_course_satisfied: true, is_prereq_grade_satisfied: true, is_prereq_satisfied: true, prereq_miss: [], prereq_outoforder: [], _hasRequisiteProblem: false, _hasPreReq: false, _coreq_miss: [], _coreq_outoforder: [], _prereq_miss: [], _prereq_outoforder: [], _coreq: [] });
	                return ap_generic_slot_builder_1.APGenericSlotBuilder.build({
	                    title: plannedCourse._course.cd + " " + plannedCourse._course.title,
	                    type: 'COURSE',
	                    termId: term.id,
	                    course: plannedCourse._course,
	                    plannedCourse: plannedCourse,
	                    isLockedByAdvisor: plannedCourse.is_locked,
	                    programSlot: {},
	                    status: plannedCourse.status,
	                    isDragEnabled: false,
	                    credits: plannedCourse._course.credits,
	                    isPlanned: true,
	                    isPlannedSomewhere: true,
	                    isLockedByStatus: ap_course_servant_1.APCourseServant.isLockedByStatus(plannedCourse.status),
	                    hoverTemplate: ap_course_servant_1.APCourseServant.buildHoverTemplate(plannedCourse._course)
	                });
	            });
	            term._statusGroups = ap_term_servant_1.APTermServant.sortCourseBucketCategories(term._genericSlots, term);
	            term._creditsRange = _4.sumBy(term._plannedCourses, '_course.credits').toString();
	        });
	        this.__result = {
	            hasPastTerms: !_4.isEmpty(this.ngAPCoursesTermsRelationship.model.mapTermToCourse),
	            pastTermCount: _4.size(pastTerms),
	            terms: pastTerms
	        };
	        return this;
	    };
	    Object.defineProperty(APPastTermsQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APPastTermsQuery;
	}());
	exports.APPastTermsQuery = APPastTermsQuery;
	angular.module('capability-ng-academic-planner').service('ngAPPastTermsQuery', APPastTermsQuery);


/***/ }),
/* 1388 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APPlannedCourseGroupQuery = /** @class */ (function () {
	    function APPlannedCourseGroupQuery(QueryMediator, ngAPPlannedCourseGroupDatasource, ngAPProgramSlotDatasource) {
	        this.ngAPPlannedCourseGroupDatasource = ngAPPlannedCourseGroupDatasource;
	        this.ngAPProgramSlotDatasource = ngAPProgramSlotDatasource;
	        QueryMediator.registerQuery(this, ngAPPlannedCourseGroupDatasource);
	    }
	    APPlannedCourseGroupQuery.prototype.run = function () {
	        var planned_course_group = this.ngAPPlannedCourseGroupDatasource.read();
	        var program_slots = this.ngAPProgramSlotDatasource.read();
	        _4.each(planned_course_group, function (courseGroup) {
	            var programSlotObj = _4.find(program_slots, function (programSlot) {
	                return programSlot.id === courseGroup.program_slot;
	            });
	            if (programSlotObj) {
	                programSlotObj._course_group_id = courseGroup.id;
	                courseGroup._program_slot = programSlotObj;
	            }
	        });
	        this.__result = {
	            planned_course_group: planned_course_group
	        };
	        return this;
	    };
	    Object.defineProperty(APPlannedCourseGroupQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APPlannedCourseGroupQuery;
	}());
	exports.APPlannedCourseGroupQuery = APPlannedCourseGroupQuery;
	angular.module('capability-ng-academic-planner').service('ngAPPlannedCourseGroupQuery', APPlannedCourseGroupQuery);


/***/ }),
/* 1389 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var APPlannedCourseQuery = /** @class */ (function () {
	    function APPlannedCourseQuery(QueryMediator, ngAPPlannedCoursesDatasource) {
	        this.ngAPPlannedCoursesDatasource = ngAPPlannedCoursesDatasource;
	        QueryMediator.registerQuery(this, ngAPPlannedCoursesDatasource);
	    }
	    APPlannedCourseQuery.prototype.run = function () {
	        var planned_courses = this.ngAPPlannedCoursesDatasource.read();
	        this.__result = {
	            planned_courses: planned_courses
	        };
	        return this;
	    };
	    Object.defineProperty(APPlannedCourseQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APPlannedCourseQuery;
	}());
	exports.APPlannedCourseQuery = APPlannedCourseQuery;
	angular.module('capability-ng-academic-planner').service('ngAPPlannedCourseQuery', APPlannedCourseQuery);


/***/ }),
/* 1390 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var lodash4_1 = __webpack_require__(1);
	var APProgramDetailsQuery = /** @class */ (function () {
	    function APProgramDetailsQuery(QueryMediator, ngAPModel) {
	        this.ngAPModel = ngAPModel;
	        QueryMediator.registerQuery(this, ngAPModel);
	    }
	    APProgramDetailsQuery.prototype.run = function () {
	        var programDetails = lodash4_1.find(this.ngAPModel.read().program);
	        this._result = {
	            programName: programDetails.name
	        };
	        return this;
	    };
	    Object.defineProperty(APProgramDetailsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APProgramDetailsQuery;
	}());
	exports.APProgramDetailsQuery = APProgramDetailsQuery;
	angular.module('capability-ng-academic-planner').service('ngAPProgramDetailsQuery', APProgramDetailsQuery);


/***/ }),
/* 1391 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_id_constants_1 = __webpack_require__(11);
	var APProgramInfoQuery = /** @class */ (function () {
	    function APProgramInfoQuery(QueryMediator, ngAPProgramInfoDatasource) {
	        this.ngAPProgramInfoDatasource = ngAPProgramInfoDatasource;
	        QueryMediator.registerQuery(this, ngAPProgramInfoDatasource);
	    }
	    APProgramInfoQuery.prototype.run = function () {
	        var _programInfo = _4.first(this.ngAPProgramInfoDatasource.values());
	        if (!_4.isEmpty(_programInfo)) {
	            var _a = _programInfo.plan_instructions, planInstructions = _a === void 0 ? '' : _a, _b = _programInfo.id, id = _b === void 0 ? ap_id_constants_1.INVALID_ID : _b, _c = _programInfo.short_plan_instructions, planShortInstructions = _c === void 0 ? '' : _c;
	            this.__result = {
	                planInstructions: planInstructions,
	                id: id,
	                planShortInstructions: planShortInstructions
	            };
	        }
	        return this;
	    };
	    Object.defineProperty(APProgramInfoQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APProgramInfoQuery;
	}());
	exports.APProgramInfoQuery = APProgramInfoQuery;
	angular.module('capability-ng-academic-planner').service('ngAPProgramInfoQuery', APProgramInfoQuery);


/***/ }),
/* 1392 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var APProgramSlotQuery = /** @class */ (function () {
	    function APProgramSlotQuery(QueryMediator, ngAPTermsDatasource, ngAPPlannedCourseGroupDatasource, ngAPProgramSlotDatasource, ngAPCoursesDatasource) {
	        this.ngAPTermsDatasource = ngAPTermsDatasource;
	        this.ngAPPlannedCourseGroupDatasource = ngAPPlannedCourseGroupDatasource;
	        this.ngAPProgramSlotDatasource = ngAPProgramSlotDatasource;
	        this.ngAPCoursesDatasource = ngAPCoursesDatasource;
	        QueryMediator.registerQuery(this, ngAPProgramSlotDatasource, ngAPTermsDatasource, ngAPCoursesDatasource, ngAPPlannedCourseGroupDatasource);
	    }
	    APProgramSlotQuery.prototype.run = function () {
	        var program_slots = this.ngAPProgramSlotDatasource.metasource().derived();
	        this.__result = {
	            program_slots: program_slots
	        };
	        return this;
	    };
	    Object.defineProperty(APProgramSlotQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APProgramSlotQuery;
	}());
	exports.APProgramSlotQuery = APProgramSlotQuery;
	angular.module('capability-ng-academic-planner').service('ngAPProgramSlotQuery', APProgramSlotQuery);


/***/ }),
/* 1393 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var ap_program_slot_servant_1 = __webpack_require__(15);
	var ap_term_servant_1 = __webpack_require__(20);
	var APTermCourseDataQueryhelper = /** @class */ (function () {
	    function APTermCourseDataQueryhelper(ngAPPlannedCoursesDatasource, ngAPProgramSlotDatasource, ngAPPlannedCourseGroupDatasource, ngLargeCourseGroupSearchResultModel, ngAPTermsDatasource, ngAPModel) {
	        this.ngAPPlannedCoursesDatasource = ngAPPlannedCoursesDatasource;
	        this.ngAPProgramSlotDatasource = ngAPProgramSlotDatasource;
	        this.ngAPPlannedCourseGroupDatasource = ngAPPlannedCourseGroupDatasource;
	        this.ngLargeCourseGroupSearchResultModel = ngLargeCourseGroupSearchResultModel;
	        this.ngAPTermsDatasource = ngAPTermsDatasource;
	        this.ngAPModel = ngAPModel;
	    }
	    APTermCourseDataQueryhelper.prototype.getRequiredDataForTerms = function () {
	        var pastTermCourses = this.getPastTermCourses();
	        var pastTermCoursesWithMeta = this.getPastTermCoursesWithMetaInfo();
	        var termsWithMeta = this.getTermsWithMetaInfo();
	        var futureTerms = this.getFutureTerms();
	        var plannedTerms = this.getPlannedTerms();
	        var unPlannedTerms = this.getUnPlannedTerms();
	        return {
	            unPlannedTerms: unPlannedTerms,
	            plannedTerms: plannedTerms,
	            futureTerms: futureTerms,
	            pastTermCourses: pastTermCourses,
	            pastTermCoursesWithMeta: pastTermCoursesWithMeta,
	            termsWithMeta: termsWithMeta,
	            plannedCoursesWithMeta: this.ngAPPlannedCoursesDatasource.metasource().derived(),
	            programSlotWithMeta: this.ngAPProgramSlotDatasource.metasource().derived()
	        };
	    };
	    APTermCourseDataQueryhelper.prototype.getPlannedTerms = function () {
	        var futureTerms = this.getFutureTerms();
	        var apModel = this.ngAPModel.read();
	        return _4.filter(futureTerms, function (term) { return _4.includes(apModel.planned_term, term.id); });
	    };
	    APTermCourseDataQueryhelper.prototype.getUnPlannedTerms = function () {
	        var futureTerms = this.getFutureTerms();
	        var apModel = this.ngAPModel.read();
	        return _4.sortBy(_4.filter(futureTerms, function (term) { return !_4.includes(apModel.planned_term, term.id); }), 'rank');
	    };
	    APTermCourseDataQueryhelper.prototype.getFutureTerms = function () {
	        var termsWithMeta = this.getTermsWithMetaInfo();
	        return ap_term_servant_1.APTermServant.getFutureTerms(termsWithMeta);
	    };
	    APTermCourseDataQueryhelper.prototype.getTerms = function () {
	        return this.ngAPTermsDatasource.values();
	    };
	    APTermCourseDataQueryhelper.prototype.getTermsWithMetaInfo = function () {
	        return this.ngAPTermsDatasource.metasource().derived();
	    };
	    APTermCourseDataQueryhelper.prototype.getPlannedCourseGroups = function () {
	        var courseGroupProgramSlotIDs = _4.map(this.ngAPProgramSlotDatasource.values().filter(function (programSlot) { return programSlot.slot_type === 'GROUP'; }), 'id');
	        return this.ngAPPlannedCourseGroupDatasource
	            .values()
	            .filter(function (plannedCourseGroup) { return _4.includes(courseGroupProgramSlotIDs, plannedCourseGroup.program_slot); });
	    };
	    APTermCourseDataQueryhelper.prototype.getPlannedCourseGroupsForTerm = function (termId) {
	        var plannedCourseGroups = this.getPlannedCourseGroups();
	        return _4.filter(plannedCourseGroups, function (plndCourseGroup) { return plndCourseGroup.term === termId; });
	    };
	    APTermCourseDataQueryhelper.prototype.getPlannedWildcardCourseGroupsForTerm = function (termId) {
	        var _this = this;
	        var plannedCourseGroupsForTerm = _4.filter(this.ngAPPlannedCourseGroupDatasource.values(), { term: termId });
	        return plannedCourseGroupsForTerm.filter(function (plannedCourseGroup) {
	            var pgmSlot = _this.ngAPProgramSlotDatasource.get(plannedCourseGroup.program_slot);
	            if (!pgmSlot) {
	                return false;
	            }
	            return ap_program_slot_servant_1.APProgramSlotServant.isWildcardProgramSlot(pgmSlot) && !pgmSlot.is_course_planned;
	        });
	    };
	    APTermCourseDataQueryhelper.prototype.getPlannedNCRsForTerm = function (termId) {
	        var _this = this;
	        var plannedCourseGroupsForTerm = _4.filter(this.ngAPPlannedCourseGroupDatasource.values(), { term: termId });
	        return plannedCourseGroupsForTerm.filter(function (plannedCourseGroup) {
	            var pgmSlot = _this.ngAPProgramSlotDatasource.get(plannedCourseGroup.program_slot);
	            if (!pgmSlot) {
	                return false;
	            }
	            return ap_program_slot_servant_1.APProgramSlotServant.isNCRProgramSlot(pgmSlot);
	        });
	    };
	    APTermCourseDataQueryhelper.prototype.getPastTermCourses = function () {
	        var pastTermIDs = this.getPastTermIDs();
	        return _4.filter(this.ngAPPlannedCoursesDatasource.values(), function (plannedCourse) {
	            return _4.includes(pastTermIDs, plannedCourse.term);
	        });
	    };
	    APTermCourseDataQueryhelper.prototype.getPastTermIDs = function () {
	        return _4.reduce(this.ngAPTermsDatasource.read(), function (ids, term) {
	            if (term.is_past_term) {
	                ids.push(term.id);
	            }
	            return ids;
	        }, []);
	    };
	    APTermCourseDataQueryhelper.prototype.getPastTermCoursesWithMetaInfo = function () {
	        var pastTermIDs = this.getPastTermIDs();
	        return _4.filter(this.ngAPPlannedCoursesDatasource.metasource().derived(), function (plannedCourse) {
	            return _4.includes(pastTermIDs, plannedCourse.term);
	        });
	    };
	    APTermCourseDataQueryhelper.prototype.getPlannedCourseGroup = function (slotId) {
	        var plannedCourseGroups = this.getPlannedCourseGroups();
	        return _4.find(plannedCourseGroups, { program_slot: slotId });
	    };
	    APTermCourseDataQueryhelper.prototype.getLargeCourseGroupSearchResult = function (builtGenericSlot, groupGenericSlots) {
	        builtGenericSlot.genericSlots = groupGenericSlots;
	        var selectedLargeCourseGroup = builtGenericSlot;
	        var largeCourseGroupCourses = _4.keyBy(groupGenericSlots, 'course.id');
	        var largeCourseGroupSearchResults = tslib_1.__assign(tslib_1.__assign({}, builtGenericSlot), { genericSlots: _4.compact(_4.map(this.ngLargeCourseGroupSearchResultModel.read().ids, function (id) { return largeCourseGroupCourses[id]; })) });
	        return { selectedLargeCourseGroup: selectedLargeCourseGroup, largeCourseGroupSearchResults: largeCourseGroupSearchResults };
	    };
	    return APTermCourseDataQueryhelper;
	}());
	exports.APTermCourseDataQueryhelper = APTermCourseDataQueryhelper;
	angular.module('capability-ng-academic-planner').service('ngAPTermCourseDataQueryhelper', APTermCourseDataQueryhelper);


/***/ }),
/* 1394 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_generic_slot_builder_1 = __webpack_require__(35);
	var ap_course_servant_1 = __webpack_require__(25);
	var ap_min_grade_servant_1 = __webpack_require__(52);
	var ap_planned_course_servant_1 = __webpack_require__(41);
	var ap_program_slot_servant_1 = __webpack_require__(15);
	var ap_term_servant_1 = __webpack_require__(20);
	var APTermsQuery = /** @class */ (function () {
	    function APTermsQuery(QueryMediator, ngAPTermsDatasource, ngAPPlannedCoursesDatasource, ngAPPlannedCourseGroupDatasource, ngAPCoursesDatasource, ngAPModel, ngLargeCourseGroupModel, ngLargeCourseGroupSearchResultModel, ngAPTermCourseDataQueryhelper, ngAPDegreeMapQueryHelper, ngCommentsDatasource, appConfigModel) {
	        this.ngAPTermsDatasource = ngAPTermsDatasource;
	        this.ngAPPlannedCoursesDatasource = ngAPPlannedCoursesDatasource;
	        this.ngAPPlannedCourseGroupDatasource = ngAPPlannedCourseGroupDatasource;
	        this.ngAPCoursesDatasource = ngAPCoursesDatasource;
	        this.ngAPModel = ngAPModel;
	        this.ngLargeCourseGroupModel = ngLargeCourseGroupModel;
	        this.ngLargeCourseGroupSearchResultModel = ngLargeCourseGroupSearchResultModel;
	        this.ngAPTermCourseDataQueryhelper = ngAPTermCourseDataQueryhelper;
	        this.ngAPDegreeMapQueryHelper = ngAPDegreeMapQueryHelper;
	        this.ngCommentsDatasource = ngCommentsDatasource;
	        this.appConfigModel = appConfigModel;
	        QueryMediator.registerQuery(this, ngAPCoursesDatasource, ngAPTermsDatasource, ngAPPlannedCoursesDatasource, ngAPPlannedCourseGroupDatasource, ngAPModel, ngLargeCourseGroupModel, ngCommentsDatasource, ngLargeCourseGroupSearchResultModel);
	    }
	    APTermsQuery.prototype.getPlaceholderWildcardGenericSlotsForTerm = function (termId, _programSlotWithMeta) {
	        var wildcardsForTerm = this.ngAPTermCourseDataQueryhelper.getPlannedWildcardCourseGroupsForTerm(termId);
	        var programSlotWithMeta = _4.keyBy(ap_program_slot_servant_1.APProgramSlotServant.getWildCardProgramSlots(_programSlotWithMeta), 'id');
	        return wildcardsForTerm.map(function (wildcard) {
	            var isCourseFlagged = false;
	            var wildcardPgmSlot = programSlotWithMeta[wildcard.program_slot];
	            return ap_generic_slot_builder_1.APGenericSlotBuilder.build({
	                title: "" + (!_4.isEmpty(wildcardPgmSlot.desc) ? wildcardPgmSlot.desc : wildcardPgmSlot.course_group),
	                type: 'WILDCARD',
	                isCourseFlagged: isCourseFlagged,
	                flagComment: undefined,
	                termId: termId,
	                credits: 3,
	                course: undefined,
	                plannedCourse: undefined,
	                isPlaceHolder: false,
	                instructions: wildcardPgmSlot.instructions,
	                isLockedByAdvisor: false,
	                plannedCourseGroup: wildcard,
	                programSlot: wildcardPgmSlot,
	                status: '',
	                isLockedByStatus: false,
	                isDragEnabled: true,
	                genericSlots: [],
	                isPlanned: true,
	                isPlannedInCurrentGroup: false,
	                hoverTemplate: undefined,
	                disableSlot: false
	            });
	        });
	    };
	    APTermsQuery.prototype.buildPlannedCourseGenericSlotForTerm = function (termId, plndCourse, courseProgramSlot) {
	        var _a = this.ngAPDegreeMapQueryHelper._getPlannedFlaggingInfo(plndCourse), isCourseFlagged = _a.isCourseFlagged, flagComment = _a.flagComment;
	        var isCoursePlanned = !_4.isEmpty(plndCourse);
	        var isMinGradeFeatureEnabled = this.appConfigModel.isFeatureEnabled('academicplan-program_slot_min_grade');
	        var isMinGradeMet = ap_min_grade_servant_1.APMinGradeServant.isMinGradeMet(courseProgramSlot, plndCourse, isMinGradeFeatureEnabled);
	        return ap_generic_slot_builder_1.APGenericSlotBuilder.build({
	            type: 'COURSE',
	            title: plndCourse._course.cd + "  " + plndCourse._course.title,
	            termId: termId,
	            isCourseFlagged: isCourseFlagged,
	            flagComment: flagComment,
	            course: plndCourse._course,
	            plannedCourse: plndCourse,
	            programSlot: courseProgramSlot,
	            status: plndCourse.status,
	            isLockedByStatus: ap_course_servant_1.APCourseServant.isLockedByStatus(plndCourse.status),
	            isDragEnabled: !_4.isEmpty(plndCourse),
	            shouldShowAddToTermMenu: this.showAddToTermMenu(isMinGradeMet, isCoursePlanned, plndCourse),
	            isMinGradeMet: isMinGradeMet,
	            isCourseCompleted: this.isCourseCompleted(plndCourse),
	            isPlanned: !_4.isEmpty(plndCourse),
	            credits: plndCourse._course.credits,
	            hoverTemplate: ap_course_servant_1.APCourseServant.buildHoverTemplate(plndCourse._course),
	            courseOfferedProblemMessage: ap_course_servant_1.APCourseServant.courseOfferedProblemMessage(),
	            isLockedByAdvisor: _4.get(plndCourse, 'is_locked', false),
	            disableSlot: false,
	            isPlannedSomewhere: false
	        });
	    };
	    APTermsQuery.prototype.showAddToTermMenu = function (isMinGradeMet, isCoursePlanned, plannedCourse) {
	        if (this.isCourseCompleted(plannedCourse) && !isMinGradeMet) {
	            return true;
	        }
	        return !isCoursePlanned || !ap_course_servant_1.APCourseServant.isLockedByStatus(plannedCourse.status);
	    };
	    APTermsQuery.prototype.isCourseCompleted = function (plannedCourse) {
	        return _4.includes(['COMPLETED'], _4.get(plannedCourse, 'status', ''));
	    };
	    APTermsQuery.prototype.buildPlannedWildcardGenericSlotsForTerm = function (termId, plndCourse, pgmSlot) {
	        var groupGenericSlots = this.ngAPDegreeMapQueryHelper.constructGroupGenericSlots(pgmSlot, {}, plndCourse);
	        var _a = this.ngAPDegreeMapQueryHelper._getPlannedFlaggingInfo(plndCourse), isCourseFlagged = _a.isCourseFlagged, flagComment = _a.flagComment;
	        return ap_generic_slot_builder_1.APGenericSlotBuilder.build({
	            title: _4.get(plndCourse, '_course.cd', '') + "  " + _4.get(plndCourse, '_course.title', ''),
	            type: 'WILDCARD',
	            isCourseFlagged: isCourseFlagged,
	            flagComment: flagComment,
	            termId: termId,
	            disableSlot: false,
	            credits: _4.get(plndCourse, '_course.credits', 0),
	            course: _4.head(pgmSlot._courses),
	            plannedCourse: plndCourse,
	            isPlaceHolder: false,
	            instructions: pgmSlot.instructions,
	            isLockedByAdvisor: _4.get(plndCourse, 'is_locked', false),
	            plannedCourseGroup: {},
	            programSlot: pgmSlot,
	            status: plndCourse.status,
	            isLockedByStatus: ap_course_servant_1.APCourseServant.isLockedByStatus(plndCourse.status),
	            isDragEnabled: ap_course_servant_1.APCourseServant.isDragEnabled(plndCourse.status),
	            genericSlots: [groupGenericSlots[0]],
	            isPlanned: true,
	            isPlannedInCurrentGroup: true,
	            hoverTemplate: ap_planned_course_servant_1.APPlannedCourseServant.buildPlannedCourseHoverTemplate(plndCourse, plndCourse._course)
	        });
	    };
	    APTermsQuery.prototype.buildPlannedCourseGroupGenericSlotForTerm = function (termId, plndCourse, pgmSlot) {
	        var groupGenericSlots = this.ngAPDegreeMapQueryHelper.constructGroupGenericSlots(pgmSlot, {}, plndCourse);
	        var _a = this.ngAPDegreeMapQueryHelper._getPlannedFlaggingInfo(plndCourse), isCourseFlagged = _a.isCourseFlagged, flagComment = _a.flagComment;
	        return ap_generic_slot_builder_1.APGenericSlotBuilder.build({
	            title: plndCourse._course.cd + " " + plndCourse._course.title,
	            type: 'GROUP',
	            isCourseFlagged: isCourseFlagged,
	            instructions: pgmSlot.desc,
	            flagComment: flagComment,
	            termId: termId,
	            courses: pgmSlot._courses,
	            plannedCourse: plndCourse,
	            isPlaceHolder: false,
	            disableSlot: false,
	            isLockedByAdvisor: _4.get(plndCourse, 'is_locked', false),
	            plannedCourseGroup: {},
	            programSlot: pgmSlot,
	            status: plndCourse.status,
	            isLockedByStatus: ap_course_servant_1.APCourseServant.isLockedByStatus(plndCourse.status),
	            isDragEnabled: ap_course_servant_1.APCourseServant.isDragEnabled(plndCourse.status),
	            firstCourse: plndCourse._course,
	            genericSlots: _4.take(groupGenericSlots, Math.min(pgmSlot.total_courses, 10)),
	            isPlanned: true,
	            min_credits: pgmSlot.min_credits,
	            max_credits: pgmSlot.max_credits,
	            isPlannedInCurrentGroup: true,
	            hoverTemplate: ap_planned_course_servant_1.APPlannedCourseServant.buildPlannedCourseHoverTemplate(plndCourse, plndCourse._course)
	        });
	    };
	    APTermsQuery.prototype.getCourseGroupPlaceholderGenericSlotsForTerm = function (termId, plndCourseGroup, placeholderProgramSlot) {
	        var groupGenericSlots = this.ngAPDegreeMapQueryHelper.constructGroupGenericSlots(placeholderProgramSlot);
	        return ap_generic_slot_builder_1.APGenericSlotBuilder.build({
	            title: placeholderProgramSlot.desc + " placeholder",
	            type: 'GROUP',
	            termId: termId,
	            instructions: placeholderProgramSlot.desc,
	            courses: placeholderProgramSlot._courses,
	            isLockedByAdvisor: false,
	            isPlaceHolder: true,
	            isLockedByStatus: false,
	            isDragEnabled: true,
	            isPlanned: true,
	            isPlannedInCurrentGroup: false,
	            plannedCourseGroup: plndCourseGroup,
	            programSlot: placeholderProgramSlot,
	            status: '',
	            disableSlot: false,
	            max_credits: placeholderProgramSlot.max_credits,
	            min_credits: placeholderProgramSlot.min_credits,
	            firstCourse: placeholderProgramSlot._courses[0],
	            genericSlots: _4.take(groupGenericSlots, Math.min(placeholderProgramSlot.total_courses, 10))
	        });
	    };
	    APTermsQuery.prototype.getCourseGenericSlotsForTerm = function (term) {
	        var _this = this;
	        var _programSlotWithMeta = this.ngAPTermCourseDataQueryhelper.getRequiredDataForTerms().programSlotWithMeta;
	        var preReqProgramSlotWithMeta = _4.filter(_programSlotWithMeta, function (prgmSlot) { return prgmSlot.slot < 1; });
	        var programSlotWithMeta = ap_program_slot_servant_1.APProgramSlotServant.getCourseRelatedProgramSlots(_programSlotWithMeta);
	        return _4.map(term._plannedCourses, function (plndCourse) {
	            if (_4.isEmpty(plndCourse.program_slot)) {
	                _4.each(preReqProgramSlotWithMeta, function (slot) {
	                    if (slot.is_devreq && _4.find(slot.courses, { course_id: plndCourse.course })) {
	                        plndCourse.program_slot = slot.id;
	                    }
	                });
	            }
	            var courseProgramSlot = _4.find(programSlotWithMeta, {
	                id: plndCourse.program_slot
	            });
	            if (_4.isUndefined(courseProgramSlot)) {
	                return _this.buildPlannedCourseGenericSlotForTerm(term.id, plndCourse, {});
	            }
	            if (ap_program_slot_servant_1.APProgramSlotServant.isCourseProgramSlot(courseProgramSlot)) {
	                return _this.buildPlannedCourseGenericSlotForTerm(term.id, plndCourse, courseProgramSlot);
	            }
	            else if (ap_program_slot_servant_1.APProgramSlotServant.isWildcardProgramSlot(courseProgramSlot)) {
	                return _this.buildPlannedWildcardGenericSlotsForTerm(term.id, plndCourse, courseProgramSlot);
	            }
	            else {
	                return _this.buildPlannedCourseGroupGenericSlotForTerm(term.id, plndCourse, courseProgramSlot);
	            }
	        });
	    };
	    /* tslint:disable:cognitive-complexity */
	    /* tslint:disable:no-big-function */
	    /* FIX ME : split in to smaller functions*/
	    APTermsQuery.prototype.run = function () {
	        var _this = this;
	        var _a = this.ngAPTermCourseDataQueryhelper.getRequiredDataForTerms(), plannedCoursesWithMeta = _a.plannedCoursesWithMeta, programSlotWithMeta = _a.programSlotWithMeta, termsWithMeta = _a.termsWithMeta, futureTerms = _a.futureTerms, plannedTerms = _a.plannedTerms, unPlannedTerms = _a.unPlannedTerms;
	        var unPlannedTermsDropdownOptions = _4.map(unPlannedTerms, function (term) { return ({
	            text: term.name,
	            value: term.id
	        }); });
	        _4.each(plannedTerms, function (term) {
	            var plannedCoursesTermsByTermIds = _4.groupBy(plannedCoursesWithMeta, 'term');
	            var plannedCoursesForTerm = plannedCoursesTermsByTermIds[term.id];
	            term._plannedCourses = plannedCoursesForTerm;
	            term._plannedCourseGroups = _this.ngAPTermCourseDataQueryhelper.getPlannedCourseGroupsForTerm(term.id);
	            var wildcardGenericSlots = _this.getPlaceholderWildcardGenericSlotsForTerm(term.id, programSlotWithMeta);
	            var NCRsForTerm = _this.ngAPTermCourseDataQueryhelper.getPlannedNCRsForTerm(term.id);
	            var NCRGenericSlots = NCRsForTerm.map(function (ncr) {
	                var NCRPgmSlot = _4.find(programSlotWithMeta, {
	                    id: ncr.program_slot
	                });
	                return ap_generic_slot_builder_1.APGenericSlotBuilder.build({
	                    title: "" + (!_4.isEmpty(NCRPgmSlot.desc) ? NCRPgmSlot.desc : NCRPgmSlot.course_group),
	                    type: 'NCR',
	                    instructions: NCRPgmSlot.instructions,
	                    isDragEnabled: true,
	                    isPlanned: true,
	                    status: 'PLANNED',
	                    termId: term.id,
	                    plannedCourseGroup: ncr,
	                    programSlot: NCRPgmSlot,
	                    disableSlot: false
	                });
	            });
	            term._programSlots = _4.compact(_4.map(plannedCoursesForTerm, function (course) {
	                return _4.find(programSlotWithMeta, function (slot) { return slot.id === course.program_slot; });
	            }));
	            term._genericSlots = [];
	            var courseGenericSlots = _this.getCourseGenericSlotsForTerm(term);
	            var placeholderPgmSlots = _4.keyBy(ap_program_slot_servant_1.APProgramSlotServant.getCourseGroupProgramSlots(programSlotWithMeta), 'id');
	            var placeholderGenericSlots = _4.map(term._plannedCourseGroups, function (plndCourseGroup) {
	                return _this.getCourseGroupPlaceholderGenericSlotsForTerm(term.id, plndCourseGroup, placeholderPgmSlots[plndCourseGroup.program_slot]);
	            });
	            term._genericSlots = _4.concat(courseGenericSlots, placeholderGenericSlots, wildcardGenericSlots);
	            term._genericSlots = term._genericSlots.concat(NCRGenericSlots);
	            term._statusGroups = ap_term_servant_1.APTermServant.sortCourseBucketCategories(term._genericSlots, term);
	            term._hasCoursesWithStatus = ap_term_servant_1.APTermServant.hasCoursesWithStatus(term);
	            term._creditsRange = ap_program_slot_servant_1.APProgramSlotServant.getCreditsRange(term._genericSlots);
	            var plannedCoursesCount = _4.size(ap_term_servant_1.APTermServant.getSectionPickedAndPlannedCourses(term));
	            var lockedPlannedCoursesCount = _4.size(ap_term_servant_1.APTermServant.getAllLockedPlannedCourses(term));
	            term._showUnLockAllCourses = _4.gt(lockedPlannedCoursesCount, 0);
	            term._showLockAllCourses = _4.gt(plannedCoursesCount, lockedPlannedCoursesCount);
	            term._hasCreditCapExceeded = ap_term_servant_1.APTermServant.hasCreditCapExceeded(term);
	            term._isLockedByAdvisorCoursePresent = ap_term_servant_1.APTermServant.hasAdvisorLockedCourseExist(term);
	        });
	        var enableLockAllPlannedCoursesOption = _4.some(plannedTerms, '_showLockAllCourses');
	        var enableUnlockAllPlannedCoursesOption = _4.some(plannedTerms, '_showUnLockAllCourses');
	        this.__result = {
	            terms: termsWithMeta,
	            plannedTerms: plannedTerms,
	            futureTerms: futureTerms,
	            unPlannedTerms: unPlannedTerms,
	            unPlannedTermsDropdownOptions: unPlannedTermsDropdownOptions,
	            hasUnPlannedTerms: _4.gt(_4.size(unPlannedTermsDropdownOptions), 0),
	            enableLockAllPlannedCoursesOption: enableLockAllPlannedCoursesOption,
	            enableUnlockAllPlannedCoursesOption: enableUnlockAllPlannedCoursesOption
	        };
	        return this;
	    };
	    Object.defineProperty(APTermsQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APTermsQuery;
	}());
	exports.APTermsQuery = APTermsQuery;
	angular.module('capability-ng-academic-planner').service('ngAPTermsQuery', APTermsQuery);


/***/ }),
/* 1395 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_datasource_1 = __webpack_require__(9);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('ngAPCoursesTermsRelationship', function (ngAPCoursesDatasource, ngAPTermsDatasource) {
	    return new utility_ts_datasource_1.Relationship(ngAPCoursesDatasource, ngAPTermsDatasource).includeModel({
	        mapTermToCourse: []
	    });
	});


/***/ }),
/* 1396 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(27);
	__webpack_require__(39);


/***/ }),
/* 1397 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('getEstimatedGraduationTimeCommand', function getEstimatedGraduationTimeCommand($http, log, defineCommand) {
	    return defineCommand('getEstimatedGraduationTimeCommand', function (deferred, termCommitment, termPreference) {
	        $http
	            .get("academicplan/graduation_term/", {
	            params: {
	                time_commitment: termCommitment,
	                term_preference: termPreference
	            }
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            deferred.resolve(data.name);
	        })
	            .catch(function (e) {
	            log.issue(); // HACK empty issue to disable default error message popup
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1398 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('loadInTakeSurveyAnswerCommand', function loadInTakeSurveyAnswerCommand($http, defineCommand, QueryMediator, ngIntakeSurveyAnswersDatasource, ngAPIntakeSurveyNKHelper, appConfigModel, log, InTakeSurveyConstants) {
	    return defineCommand('loadInTakeSurveyAnswerCommand', function (deferred) {
	        var nkForIntakeSurvey = ngAPIntakeSurveyNKHelper.intakeSurveyNK;
	        $http
	            .get("poll/" + nkForIntakeSurvey + "/answer")
	            .then(function (_a) {
	            var data = _a.data;
	            ngIntakeSurveyAnswersDatasource.clear().write(data.answer);
	            deferred.resolve(data);
	        })
	            .catch(function (e) {
	            log.issue('loadInTakeSurveyAnswerCommand failed');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1399 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .service('loadInTakeSurveyPollCommand', function loadInTakeSurveyPollCommand($http, defineCommandORM, appConfigModel, InTakeSurveyConstants, ngAPIntakeSurveyNKHelper, log, ngIntakeSurveyQuestionsDatasource, ngIntakeSurveyChoicesDatasource) {
	    return defineCommandORM('loadInTakeSurveyPollCommand', function (deferred) {
	        var nkForIntakeSurvey = ngAPIntakeSurveyNKHelper.intakeSurveyNK;
	        $http
	            .get("poll/" + nkForIntakeSurvey + "/")
	            .then(function (_a) {
	            var data = _a.data;
	            var pollId = Object.keys(data.poll)[0];
	            var activeQuestionIDs = data.poll[pollId].active_questions;
	            var questions = _4.filter(data.question, function (question) {
	                return _4.includes(activeQuestionIDs, question.id);
	            });
	            _4.map(questions, function (question) {
	                var intakeSurveyNKConfigKey = _4.findKey(appConfigModel.model.member_configs, function (appConfigModelValue) { return appConfigModelValue === question.nk; });
	                if (intakeSurveyNKConfigKey) {
	                    question._computedNK = ngAPIntakeSurveyNKHelper.defaultNKforIntakeSurveyConfig(intakeSurveyNKConfigKey);
	                }
	                else {
	                    question._computedNK = question.nk;
	                }
	            });
	            ngIntakeSurveyQuestionsDatasource.clear().write(questions);
	            ngIntakeSurveyChoicesDatasource.clear().write(data.choice);
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue('loadInTakeSurveyPollCommand failed');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1400 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('saveInTakeSurveyAnswerCommand', function saveInTakeSurveyAnswerCommand($http, defineCommand, InTakeSurveyConstants, log, ngAPIntakeSurveyNKHelper, appConfigModel) {
	    return defineCommand('saveInTakeSurveyAnswerCommand', function (deferred, questionID, answerValues) {
	        var nkForIntakeSurvey = ngAPIntakeSurveyNKHelper.intakeSurveyNK;
	        $http
	            .post("poll/" + nkForIntakeSurvey + "/question/" + questionID + "/answer", answerValues)
	            .then(function (_a) {
	            var data = _a.data;
	            deferred.resolve(data);
	        })
	            .catch(function (e) {
	            log.issue('saveInTakeSurveyAnswerCommand failed');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1401 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var poll_servant_1 = __webpack_require__(125);
	angular
	    .module('capability-ng-academic-planner')
	    .service('saveMultipleQuestionAnswerCommand', function saveMultipleQuestionAnswerCommand(defineCommand, saveInTakeSurveyAnswerCommand, log, $q) {
	    return defineCommand('saveMultipleQuestionAnswerCommand', function (deferred, questions) {
	        var mappedQuesAndAns = poll_servant_1.PollServant.getQuestionAndAnswerMappedForApi(questions);
	        $q.all(questions.map(function (question) { return saveInTakeSurveyAnswerCommand(question.id, mappedQuesAndAns[question.id]); }))
	            .then(function () {
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue('saveMultipleQuestionAnswerCommand failed');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1402 */
/***/ (function(module, exports) {

	angular.module('capability-ng-academic-planner').constant('InTakeSurveyConstants', Object.freeze({
	    AP_INTAKE_SURVEY_NK: 'academicplan-intake_survey_nk',
	    AP_INTAKE_SURVEY_COMPLETED: 'AP_INTAKE_SURVEY_COMPLETED'
	}));


/***/ }),
/* 1403 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var ap_intake_survey_answer_builder_1 = __webpack_require__(492);
	angular.module('capability-ng-academic-planner').factory('ngIntakeSurveyAnswersDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ap_intake_survey_answer_builder_1.InTakeSurveyAnswer
	    });
	});


/***/ }),
/* 1404 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var ap_intake_survey_question_choice_builder_1 = __webpack_require__(494);
	angular.module('capability-ng-academic-planner').factory('ngIntakeSurveyChoicesDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ap_intake_survey_question_choice_builder_1.InTakeSurveyQuestionChoice
	    });
	});


/***/ }),
/* 1405 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var ap_intake_survey_builder_1 = __webpack_require__(493);
	angular.module('capability-ng-academic-planner').factory('ngIntakeSurveyQuestionsDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ap_intake_survey_builder_1.InTakeSurveyQuestion
	    });
	});


/***/ }),
/* 1406 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var ap_intake_survey_answer_strategy_1 = __webpack_require__(495);
	var question_type_input_type_strategy_1 = __webpack_require__(126);
	var _4 = __webpack_require__(1);
	var GetIntakeSurveyQuestionsQuery = /** @class */ (function () {
	    function GetIntakeSurveyQuestionsQuery(QueryMediator, ngIntakeSurveyQuestionsDatasource, ngIntakeSurveyChoicesDatasource, ngIntakeSurveyAnswersDatasource, ngAPIntakeSurveyNKHelper) {
	        this.ngIntakeSurveyQuestionsDatasource = ngIntakeSurveyQuestionsDatasource;
	        this.ngIntakeSurveyChoicesDatasource = ngIntakeSurveyChoicesDatasource;
	        this.ngIntakeSurveyAnswersDatasource = ngIntakeSurveyAnswersDatasource;
	        this.ngAPIntakeSurveyNKHelper = ngAPIntakeSurveyNKHelper;
	        QueryMediator.registerQuery(this, ngIntakeSurveyQuestionsDatasource, ngIntakeSurveyChoicesDatasource, ngIntakeSurveyAnswersDatasource);
	    }
	    GetIntakeSurveyQuestionsQuery.prototype.run = function () {
	        var questions = tslib_1.__spreadArrays(this.ngIntakeSurveyQuestionsDatasource.values());
	        var choices = this.ngIntakeSurveyChoicesDatasource.read();
	        var answers = this.ngIntakeSurveyAnswersDatasource.read();
	        var _questions = questions.map(function (question) {
	            question._question_type = question_type_input_type_strategy_1.QuestionTypeInputTypeStrategy[question.question_type];
	            question._answer = ap_intake_survey_answer_strategy_1.ApIntakeSurveyAnswerStrategy[_4.get(question, '_question_type', '')](question, choices, answers);
	            question._choices = _4.filter(choices, function (choice) {
	                return _4.includes(question.active_choices, choice.id);
	            });
	            return question;
	        });
	        var validQuestionNks = [
	            this.ngAPIntakeSurveyNKHelper.intakeSurveyTermPreferenceNK,
	            this.ngAPIntakeSurveyNKHelper.intakeSurveyTimeCommitmentNK
	        ];
	        this.__result = {
	            questions: _questions.filter(function (qstn) { return _4.includes(validQuestionNks, qstn.nk); })
	        };
	        return this;
	    };
	    Object.defineProperty(GetIntakeSurveyQuestionsQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return GetIntakeSurveyQuestionsQuery;
	}());
	exports.GetIntakeSurveyQuestionsQuery = GetIntakeSurveyQuestionsQuery;
	angular
	    .module('capability-ng-academic-planner')
	    .service('ngGetIntakeSurveyQuestionsQuery', GetIntakeSurveyQuestionsQuery);


/***/ }),
/* 1407 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-academic-planner')
	    .service('clearTermPreviewPlanCommand', function clearTermPreviewPlanCommand($http, log, ngPreviewTermPlanModel, defineCommand) {
	    return defineCommand('clearTermPreviewPlanCommand', function (deferred) {
	        ngPreviewTermPlanModel.clear();
	        utility_ts_orm_1.ORM.run();
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1408 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('completedAutoGeneratedPreviewPlanShowingCommand', function ($http, ngPreviewTermPlanConstant, log, defineCommand) {
	    return defineCommand('completedAutoGeneratedPreviewPlanShowingCommand', function (deferred) {
	        var _a;
	        return $http
	            .post("core/studentvalue", (_a = {},
	            _a[ngPreviewTermPlanConstant['AP_PREVIEW_AUTO_GENERATED_TERM_PLAN_SHOWN']] = true,
	            _a))
	            .then(function (_a) {
	            var data = _a.data;
	            return deferred.resolve(data);
	        })
	            .catch(function (e) {
	            log.issue('unable to complete intake survey');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1409 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('createEmptyTermsCommand', function ($http, log, defineCommand) {
	    return defineCommand('createEmptyTermsCommand', function (deferred, time_commitment, term_preference) {
	        return $http
	            .post("academicplan/quickplan/", {
	            time_commitment: time_commitment,
	            term_preference: term_preference,
	            create_empty_terms: true
	        })
	            .catch(function (e) {
	            log.issue('unable to complete intake survey');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1410 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .service('loadTermPreviewPlanCommand', function loadTermPreviewPlanCommand($http, log, ngPreviewTermPlanModel, ngAPVerifyPreviewPlanData, defineCommandORM, ngAPNotificationDelegate) {
	    return defineCommandORM('loadTermPreviewPlanCommand', function (deferred, termCommitment, termPreference, generatePlan) {
	        if (generatePlan === void 0) { generatePlan = true; }
	        $http
	            .post("academicplan/quickplan/", {
	            time_commitment: termCommitment,
	            term_preference: termPreference,
	            generate_plan: generatePlan,
	            choose_planned_course_groups: false
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            ngPreviewTermPlanModel.clear().write(data);
	            if (_4.isEmpty(data.student_planned_terms)) {
	                ngAPNotificationDelegate.error("Unable to generate template as no term data is available");
	            }
	            if (_4.isEmpty(data.planned_courses)) {
	                ngAPNotificationDelegate.error("Unable to generate template as no course data is available");
	            }
	        })
	            .then(function () { return deferred.resolve(); })
	            .catch(function (e) {
	            log.error(e);
	            ngAPNotificationDelegate.error("Unable to load preview.");
	            deferred.reject(e);
	        })
	            .finally(function () { return ngAPVerifyPreviewPlanData.verify(); });
	    });
	});


/***/ }),
/* 1411 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('saveTermPreviewPlanCommand', function ($http, log, defineCommand, ngAPNotificationDelegate) {
	    return defineCommand('saveTermPreviewPlanCommand', function (deferred, termPlan) {
	        // mock/auto_load_term_preview.json
	        return $http
	            .put("academicplan/quickplan/", termPlan)
	            .then(function (_a) {
	            var data = _a.data;
	            ngAPNotificationDelegate.success("Updated your plan with template");
	            deferred.resolve(data);
	        })
	            .catch(function (e) {
	            ngAPNotificationDelegate.error("Failed to update your plan with new template: " + e.data.detail);
	            log.error(e);
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1412 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var CheckboxQuestionComponent = /** @class */ (function () {
	    function CheckboxQuestionComponent() {
	    }
	    CheckboxQuestionComponent.prototype.preferenceCheckedChanged = function (choice, evt) {
	        var isChecked = _4.get(evt, 'detail.value');
	        if (isChecked) {
	            if (_4.find(this.modelForAnswer, { id: choice.id })) {
	                return;
	            }
	            this.modelForAnswer.push(tslib_1.__assign({}, choice));
	        }
	        else {
	            _4.remove(this.modelForAnswer, { id: choice.id });
	        }
	        if (this.callBackWhenChoiceChanged) {
	            this.callBackWhenChoiceChanged();
	        }
	    };
	    CheckboxQuestionComponent.prototype.shouldCheckTermPreference = function (choice) {
	        var choiceIDsOfAnswers = _4.map(this.modelForAnswer, 'id');
	        return _4.includes(choiceIDsOfAnswers, choice.id);
	    };
	    CheckboxQuestionComponent.prototype.shouldShowHelperMessageArea = function () {
	        return this.shouldShowHelperMessage && this.shouldShowHelperMessage();
	    };
	    CheckboxQuestionComponent.prototype.initialize = function () {
	        this.choiceTheme = _4.get(this, 'choiceTheme', 'sky');
	        this.cssClassBetweenChoices = _4.get(this, 'cssClassBetweenChoices', 'prsxx pts pbs');
	        this.questionContainerClass = _4.get(this, 'questionContainerClass', 'text-bold h4');
	    };
	    CheckboxQuestionComponent.prototype.$onInit = function () {
	        this.initialize();
	    };
	    return CheckboxQuestionComponent;
	}());
	angular.module('capability-ng-academic-planner').component('checkboxQuestionComponent', {
	    templateUrl: 'capability-ng-academic-planner/src/preferences/components/preview_plan/components/checkbox_question_component/checkbox_question_component.html',
	    bindings: {
	        questionName: '@',
	        questionChoices: '=',
	        callBackWhenChoiceChanged: '&',
	        modelForAnswer: '=',
	        cssClassBetweenChoices: '@?',
	        choiceTheme: '@?',
	        questionContainerClass: '@?',
	        shouldShowHelperMessage: '&?',
	        themeForHelperMessage: '@?',
	        helperMessage: '@',
	        choiceSelectionDisabled: '<'
	    },
	    controller: CheckboxQuestionComponent
	});


/***/ }),
/* 1413 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PreviewAutoGeneratedTermsController = /** @class */ (function () {
	    function PreviewAutoGeneratedTermsController(ngTermPlanPreviewQuery) {
	        this.ngTermPlanPreviewQuery = ngTermPlanPreviewQuery;
	    }
	    return PreviewAutoGeneratedTermsController;
	}());
	angular.module('capability-ng-academic-planner').component('previewAutoGeneratedTerms', {
	    controller: PreviewAutoGeneratedTermsController,
	    templateUrl: 'capability-ng-academic-planner/src/preferences/components/preview_plan/components/preview_auto_generated_terms/preview_auto_generated_terms.html',
	    bindings: {
	        terms: '<',
	        termCommitment: '<',
	        termPreference: '<'
	    }
	});


/***/ }),
/* 1414 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var lodash4_1 = __webpack_require__(1);
	var ap_preview_plan_servant_1 = __webpack_require__(53);
	var termCommitmentUITextStrategy = {
	    FULL_TIME: 'Full Time',
	    PART_TIME: 'Part Time'
	};
	var PreviewAutoGeneratedTermsHeader = /** @class */ (function () {
	    function PreviewAutoGeneratedTermsHeader(ngAPModel, completedAutoGeneratedPreviewPlanShowingCommand, ngStudentValueModel, ngPreviewTermPlanConstant, $state) {
	        this.ngAPModel = ngAPModel;
	        this.completedAutoGeneratedPreviewPlanShowingCommand = completedAutoGeneratedPreviewPlanShowingCommand;
	        this.ngStudentValueModel = ngStudentValueModel;
	        this.ngPreviewTermPlanConstant = ngPreviewTermPlanConstant;
	        this.$state = $state;
	        this.isAdvisor = false;
	    }
	    PreviewAutoGeneratedTermsHeader.prototype.$onInit = function () {
	        this.initialize();
	    };
	    PreviewAutoGeneratedTermsHeader.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    PreviewAutoGeneratedTermsHeader.prototype.initialize = function () {
	        this.isAdvisor = this.$state.includes('ap-advisor');
	        var program = _4.first(_4.toArray(this.ngAPModel.read().program));
	        var startingDateOfFirstTerm = _4(this.terms).map('term_start_dt').min();
	        var endDateOfLastTerm = _4(this.terms).map('term_end_dt').max();
	        this.pageType = this.$state.current.url === 'auto_generated/' ? 'autoGenerated' : 'editPreferences';
	        this.duration = moment.duration(endDateOfLastTerm.diff(startingDateOfFirstTerm)).humanize();
	        this.programName = program.name;
	        this.programCredits = parseInt(program.credits, 10);
	        var _upperFirst = lodash4_1.flow(lodash4_1.lowerCase, lodash4_1.upperFirst);
	        this.mappedTermCommitmentString = _4.lowerCase(termCommitmentUITextStrategy[this.termCommitment]);
	        this.mappedTermPreferenceString =
	            lodash4_1.initial(this.termPreference)
	                .map(function (preference) { return _upperFirst(preference); })
	                .join(', ') +
	                ' and ' +
	                _upperFirst(lodash4_1.last(this.termPreference));
	        this.estimatedGraduationTime = ap_preview_plan_servant_1.APPreviewPlanServant.getEstimatedGraduationDateFromTerm(this.terms);
	    };
	    PreviewAutoGeneratedTermsHeader.prototype.updateApPreviewShownModel = function () {
	        var _this = this;
	        var currentStudentValue = {};
	        this.ngStudentValueModel
	            .keys()
	            .forEach(function (key) { return (currentStudentValue[key] = _this.ngStudentValueModel.getValueByKey(key)); });
	        currentStudentValue[this.ngPreviewTermPlanConstant['AP_PREVIEW_AUTO_GENERATED_TERM_PLAN_SHOWN']] = 'True';
	        this.ngStudentValueModel.update(currentStudentValue);
	    };
	    PreviewAutoGeneratedTermsHeader.prototype.completedAutoGeneratedPreviewPlanShowing = function () {
	        this.updateApPreviewShownModel();
	        if (this.isAdvisor) {
	            return this.$state.go('ap-advisor.plan');
	        }
	        return this.$state.go('my.planner.default');
	    };
	    PreviewAutoGeneratedTermsHeader.prototype.afterSaving = function () {
	        var _this = this;
	        this.completedAutoGeneratedPreviewPlanShowingCommand().then(function () { return _this.completedAutoGeneratedPreviewPlanShowing(); });
	    };
	    PreviewAutoGeneratedTermsHeader.prototype.createMyOwnPlanClicked = function () {
	        var _this = this;
	        this.completedAutoGeneratedPreviewPlanShowingCommand().then(function () {
	            _this.updateApPreviewShownModel();
	            if (_this.isAdvisor) {
	                return _this.$state.go('ap-advisor.preview_plan.edit_preference');
	            }
	            return _this.$state.go('my.planner.preview_plan.edit_preference', { source: 'autoGenerated' });
	        });
	    };
	    return PreviewAutoGeneratedTermsHeader;
	}());
	angular.module('capability-ng-academic-planner').component('previewAutoGeneratedTermsHeader', {
	    templateUrl: 'capability-ng-academic-planner/src/preferences/components/preview_plan/components/preview_auto_generated_terms_header/preview_auto_generated_terms_header.html',
	    bindings: {
	        terms: '<',
	        estimatedGraduationTime: '<',
	        termCommitment: '<',
	        termPreference: '<'
	    },
	    controller: PreviewAutoGeneratedTermsHeader
	});


/***/ }),
/* 1415 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var lodash4_1 = __webpack_require__(1);
	var PreviewPlanAutoGeneratedFailureController = /** @class */ (function () {
	    function PreviewPlanAutoGeneratedFailureController($timeout, appConfigModel, FEATURE_APPOINTMENTS, $state, ngStudentValueModel, ngPreviewTermPlanConstant, phxFeatureConfiguration, ngAPAdvisorText, completedAutoGeneratedPreviewPlanShowingCommand) {
	        this.$timeout = $timeout;
	        this.appConfigModel = appConfigModel;
	        this.FEATURE_APPOINTMENTS = FEATURE_APPOINTMENTS;
	        this.$state = $state;
	        this.ngStudentValueModel = ngStudentValueModel;
	        this.ngPreviewTermPlanConstant = ngPreviewTermPlanConstant;
	        this.phxFeatureConfiguration = phxFeatureConfiguration;
	        this.ngAPAdvisorText = ngAPAdvisorText;
	        this.completedAutoGeneratedPreviewPlanShowingCommand = completedAutoGeneratedPreviewPlanShowingCommand;
	        this.contactAdvisorButtonHidden = false;
	        this.contactAdvisorButtonHidden = !this.appConfigModel.isFeatureEnabled(FEATURE_APPOINTMENTS);
	        this.contactAdvisorLabel = lodash4_1.lowerCase(this.ngAPAdvisorText.advisorLabel);
	        this.contactAdvisorButtonLabel = 'Contact ' + lodash4_1.startCase(this.contactAdvisorLabel);
	    }
	    PreviewPlanAutoGeneratedFailureController.prototype.reportProblemClicked = function () {
	        var contactFormTrigger = angular.element('app-support button');
	        this.$timeout(function () { return contactFormTrigger.triggerHandler('click'); }, 0);
	    };
	    PreviewPlanAutoGeneratedFailureController.prototype.updateApPreviewShownModel = function () {
	        var _this = this;
	        var currentStudentValue = {};
	        this.ngStudentValueModel
	            .keys()
	            .forEach(function (key) { return (currentStudentValue[key] = _this.ngStudentValueModel.getValueByKey(key)); });
	        currentStudentValue[this.ngPreviewTermPlanConstant['AP_PREVIEW_AUTO_GENERATED_TERM_PLAN_SHOWN']] = 'True';
	        this.ngStudentValueModel.update(currentStudentValue);
	    };
	    PreviewPlanAutoGeneratedFailureController.prototype.goBackButtonClicked = function () {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            return tslib_1.__generator(this, function (_a) {
	                switch (_a.label) {
	                    case 0: return [4 /*yield*/, this.completedAutoGeneratedPreviewPlanShowingCommand()];
	                    case 1:
	                        _a.sent();
	                        this.updateApPreviewShownModel();
	                        this.$state.go('my.planner.default');
	                        return [2 /*return*/];
	                }
	            });
	        });
	    };
	    return PreviewPlanAutoGeneratedFailureController;
	}());
	angular.module('capability-ng-academic-planner').component('previewPlanAutoGeneratedFailure', {
	    templateUrl: 'capability-ng-academic-planner/src/preferences/components/preview_plan/components/preview_plan_auto_generated_failure/preview_plan_auto_generated_failure.html',
	    controller: PreviewPlanAutoGeneratedFailureController
	});


/***/ }),
/* 1416 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PreviewTermBox = /** @class */ (function () {
	    function PreviewTermBox() {
	    }
	    return PreviewTermBox;
	}());
	exports.PreviewTermBox = PreviewTermBox;
	angular.module('capability-ng-academic-planner').component('previewTermBox', {
	    templateUrl: 'capability-ng-academic-planner/src/preferences/components/preview_plan/components/preview_term_box/preview_term_box.html',
	    bindings: {
	        term: '<'
	    },
	    controller: PreviewTermBox
	});


/***/ }),
/* 1417 */
/***/ (function(module, exports) {

	angular.module('capability-ng-academic-planner').component('previewTermDummyBox', {
	    templateUrl: 'capability-ng-academic-planner/src/preferences/components/preview_plan/components/preview_term_dummy_box/preview_term_dummy_box.html'
	});


/***/ }),
/* 1418 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PreviewTermPlanCourseGroupTileController = /** @class */ (function () {
	    function PreviewTermPlanCourseGroupTileController() {
	        var _this = this;
	        this.$onInit = function () { return _this.initialize(); };
	        this.$onChanges = function () { return _this.initialize(); };
	    }
	    PreviewTermPlanCourseGroupTileController.prototype.initialize = function () {
	        this.plannedCourseGrpDesc = _4.get(this.plannedCourseGroup, 'program_slot_obj.desc');
	        this.courseGroupTileId = "preview-term-plan-course-group-tile-" + _4.uniqueId();
	    };
	    return PreviewTermPlanCourseGroupTileController;
	}());
	angular.module('capability-ng-academic-planner').component('previewTermPlanCourseGroupTile', {
	    templateUrl: 'capability-ng-academic-planner/src/preferences/components/preview_plan/components/preview_term_plan_course_group_tile/preview_term_plan_course_group_tile.html',
	    bindings: {
	        plannedCourseGroup: '='
	    },
	    controller: PreviewTermPlanCourseGroupTileController
	});


/***/ }),
/* 1419 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PreviewTermPlanCourseTileComponentController = /** @class */ (function () {
	    function PreviewTermPlanCourseTileComponentController(routerHelper) {
	        var _this = this;
	        this.routerHelper = routerHelper;
	        this.$onInit = function () { return _this.initialize(); };
	        this.$onChanges = function () { return _this.initialize(); };
	    }
	    PreviewTermPlanCourseTileComponentController.prototype.initialize = function () {
	        this.courseTitle = this.plannedCourse.course.cd + ' ' + this.plannedCourse.course.title;
	        this.uniqueId = _4.uniqueId();
	    };
	    PreviewTermPlanCourseTileComponentController.prototype.showCourseDetails = function (event) {
	        this.routerHelper.findStateAndGo('.course_details', {
	            courseDetails: {
	                courseNk: this.plannedCourse.course.nk,
	                termId: this.plannedCourse.term,
	                title: this.courseTitle,
	                programSlotId: this.plannedCourse.program_slot
	            }
	        });
	    };
	    return PreviewTermPlanCourseTileComponentController;
	}());
	var PreviewTermPlanCourseTileComponent = /** @class */ (function () {
	    function PreviewTermPlanCourseTileComponent() {
	        this.bindings = {
	            plannedCourse: '<'
	        };
	        this.controller = PreviewTermPlanCourseTileComponentController;
	        this.templateUrl =
	            'capability-ng-academic-planner/src/preferences/components/preview_plan/components/preview_term_plan_course_tile/preview_term_plan_course_tile.html';
	    }
	    return PreviewTermPlanCourseTileComponent;
	}());
	angular
	    .module('capability-ng-academic-planner')
	    .component('previewTermPlanCourseTileComponent', new PreviewTermPlanCourseTileComponent());


/***/ }),
/* 1420 */
/***/ (function(module, exports) {

	angular.module('capability-ng-academic-planner').component('previewTermPlanEstimatedGraduationTime', {
	    templateUrl: 'capability-ng-academic-planner/src/preferences/components/preview_plan/components/preview_term_plan_estimated_graduation_time/preview_term_plan_estimated_graduation_time.html',
	    bindings: {
	        estimatedGraduationTime: '<',
	        infoPopupContent: '@'
	    }
	});


/***/ }),
/* 1421 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var DevReqLegendController = /** @class */ (function () {
	    function DevReqLegendController() {
	        this.iconId = 'required-developmental-course-info-' + _4.uniqueId();
	    }
	    return DevReqLegendController;
	}());
	angular.module('capability-ng-academic-planner').component('previewTermPlanDevReqLegend', {
	    controller: DevReqLegendController,
	    bindings: {
	        iconTheme: '@'
	    },
	    templateUrl: 'capability-ng-academic-planner/src/preferences/components/preview_plan/components/preview_term_plan_legends/preview_term_plan_dev_req_legend/preview_term_plan_dev_req_legend.html'
	});


/***/ }),
/* 1422 */
/***/ (function(module, exports) {

	angular.module('capability-ng-academic-planner').component('previewTermPlanLegends', {
	    templateUrl: 'capability-ng-academic-planner/src/preferences/components/preview_plan/components/preview_term_plan_legends/preview_term_plan_legends.html'
	});


/***/ }),
/* 1423 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var PreviewTermsPlan = /** @class */ (function () {
	    function PreviewTermsPlan($timeout, appConfigModel, FEATURE_APPOINTMENTS, loadTermPreviewPlanCommand, ngTermPlanPreviewQuery, $state, saveMultipleQuestionAnswerCommand, createEmptyTermsCommand, ngAPUserModeConfig, ngStudentValueModel, completedAutoGeneratedPreviewPlanShowingCommand, ngPreviewTermPlanConstant, ngAPAdvisorText, phxFeatureConfiguration, ngAPIntakeSurveyNKHelper) {
	        this.$timeout = $timeout;
	        this.appConfigModel = appConfigModel;
	        this.FEATURE_APPOINTMENTS = FEATURE_APPOINTMENTS;
	        this.loadTermPreviewPlanCommand = loadTermPreviewPlanCommand;
	        this.ngTermPlanPreviewQuery = ngTermPlanPreviewQuery;
	        this.$state = $state;
	        this.saveMultipleQuestionAnswerCommand = saveMultipleQuestionAnswerCommand;
	        this.createEmptyTermsCommand = createEmptyTermsCommand;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.ngStudentValueModel = ngStudentValueModel;
	        this.completedAutoGeneratedPreviewPlanShowingCommand = completedAutoGeneratedPreviewPlanShowingCommand;
	        this.ngPreviewTermPlanConstant = ngPreviewTermPlanConstant;
	        this.ngAPAdvisorText = ngAPAdvisorText;
	        this.phxFeatureConfiguration = phxFeatureConfiguration;
	        this.ngAPIntakeSurveyNKHelper = ngAPIntakeSurveyNKHelper;
	        this.alertTemplateIssue = false;
	        this.alertSelectMoreTerms = false;
	        this.contactAdvisorButton = false;
	        this.preferenceSavingDisabled = false;
	        this.isAdvisor = false;
	        this.previouslySelectedChoices = [];
	        this.updateStudentAutoGeneratedFlag = false;
	        this.contactAdvisorButton = this.appConfigModel.isFeatureEnabled(FEATURE_APPOINTMENTS);
	        var advisorLabel = this.ngAPAdvisorText.advisorLabel;
	        this.contactAdvisorButtonLabel = "Contact " + advisorLabel;
	        this.terms = [];
	        this.previousUrl = $state.params.source || '';
	        this.saveAndPlanButtonLabel = $state.params.source === 'autoGenerated' ? 'Plan From Scratch' : 'Save Preferences';
	        this.isAdvisor = this.$state.includes('ap-advisor');
	        this.preferenceSavingDisabled = this.isAdvisor;
	        this.updateStudentAutoGeneratedFlag = this.isAdvisor;
	        this.goBackState = this.isAdvisor ? 'ap-advisor.plan' : 'my.planner.default';
	    }
	    PreviewTermsPlan.prototype.$onInit = function () {
	        this.initialize();
	    };
	    PreviewTermsPlan.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    PreviewTermsPlan.prototype.getSelectedChoices = function () {
	        return [this.timeCommitmentQuestion._answer.nk, _4.map(this.termPreferenceQuestion._answer, 'nk')];
	    };
	    PreviewTermsPlan.prototype.shouldDisablePreviewPlanButton = function () {
	        return _4.isEqual(this.previouslySelectedChoices, this.getSelectedChoices());
	    };
	    PreviewTermsPlan.prototype.initialize = function () {
	        this.timeCommitmentQuestion = _4.find(this.questions, {
	            nk: this.ngAPIntakeSurveyNKHelper.intakeSurveyTimeCommitmentNK
	        });
	        this.termPreferenceQuestion = _4.find(this.questions, {
	            nk: this.ngAPIntakeSurveyNKHelper.intakeSurveyTermPreferenceNK
	        });
	    };
	    PreviewTermsPlan.prototype.removeAlert = function (alert) {
	        if (alert === 'templateIssue') {
	            this.alertTemplateIssue = false;
	        }
	        else {
	            this.alertSelectMoreTerms = false;
	        }
	    };
	    PreviewTermsPlan.prototype.reportProblemClicked = function () {
	        var contactFormTrigger = angular.element('app-support button');
	        this.$timeout(function () { return contactFormTrigger.triggerHandler('click'); }, 0);
	    };
	    PreviewTermsPlan.prototype.savePreferenceClicked = function () {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            var _a, termCommitment, termPreference, savePreference, createEmptyTerms;
	            return tslib_1.__generator(this, function (_b) {
	                switch (_b.label) {
	                    case 0:
	                        _a = this.getSelectedChoices(), termCommitment = _a[0], termPreference = _a[1];
	                        savePreference = this.saveMultipleQuestionAnswerCommand([
	                            this.timeCommitmentQuestion,
	                            this.termPreferenceQuestion
	                        ]);
	                        createEmptyTerms = this.createEmptyTermsCommand(termCommitment, termPreference);
	                        return [4 /*yield*/, savePreference];
	                    case 1:
	                        _b.sent();
	                        return [4 /*yield*/, createEmptyTerms];
	                    case 2:
	                        _b.sent();
	                        this.$state.go(this.goBackState);
	                        return [2 /*return*/];
	                }
	            });
	        });
	    };
	    PreviewTermsPlan.prototype.exitClicked = function () {
	        if (!this.isAdvisor) {
	            this.$state.go(this.goBackState);
	            return;
	        }
	        this.afterSaving();
	    };
	    PreviewTermsPlan.prototype.afterSaving = function () {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            var currentStudentValue_1;
	            var _this = this;
	            return tslib_1.__generator(this, function (_a) {
	                switch (_a.label) {
	                    case 0:
	                        if (!!this.preferenceSavingDisabled) return [3 /*break*/, 2];
	                        return [4 /*yield*/, this.saveMultipleQuestionAnswerCommand([this.timeCommitmentQuestion, this.termPreferenceQuestion])];
	                    case 1:
	                        _a.sent();
	                        _a.label = 2;
	                    case 2:
	                        if (!this.updateStudentAutoGeneratedFlag) return [3 /*break*/, 4];
	                        return [4 /*yield*/, this.completedAutoGeneratedPreviewPlanShowingCommand()];
	                    case 3:
	                        _a.sent();
	                        currentStudentValue_1 = {};
	                        this.ngStudentValueModel
	                            .keys()
	                            .forEach(function (key) { return (currentStudentValue_1[key] = _this.ngStudentValueModel.getValueByKey(key)); });
	                        currentStudentValue_1[this.ngPreviewTermPlanConstant['AP_PREVIEW_AUTO_GENERATED_TERM_PLAN_SHOWN']] = 'True';
	                        this.ngStudentValueModel.update(currentStudentValue_1);
	                        _a.label = 4;
	                    case 4:
	                        this.$state.go(this.goBackState);
	                        return [2 /*return*/];
	                }
	            });
	        });
	    };
	    return PreviewTermsPlan;
	}());
	angular.module('capability-ng-academic-planner').component('previewTermsPlan', {
	    templateUrl: 'capability-ng-academic-planner/src/preferences/components/preview_plan/components/preview_terms_plan/preview_terms_plan.html',
	    bindings: {
	        questions: '<'
	    },
	    controller: PreviewTermsPlan
	});


/***/ }),
/* 1424 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var poll_servant_1 = __webpack_require__(125);
	var ap_preview_plan_servant_1 = __webpack_require__(53);
	var PreviewTermsPlanHeader = /** @class */ (function () {
	    function PreviewTermsPlanHeader(loadTermPreviewPlanCommand, clearTermPreviewPlanCommand, ngTermPlanPreviewQuery, log) {
	        this.loadTermPreviewPlanCommand = loadTermPreviewPlanCommand;
	        this.clearTermPreviewPlanCommand = clearTermPreviewPlanCommand;
	        this.ngTermPlanPreviewQuery = ngTermPlanPreviewQuery;
	        this.log = log;
	        this.previouslySelectedChoices = [];
	        this.estimatedGraduationTime = '';
	    }
	    PreviewTermsPlanHeader.prototype.clearEstimatedGraduationTime = function () {
	        this.estimatedGraduationTime = '';
	    };
	    PreviewTermsPlanHeader.prototype.checkSelectionGetPlan = function () {
	        this.alertSelectMoreTerms = this.showCheckboxNoneSelected();
	        if (this.alertSelectMoreTerms) {
	            return;
	        }
	        this.getPreviewPlan();
	    };
	    PreviewTermsPlanHeader.prototype.previewPlanClicked = function () {
	        this.checkSelectionGetPlan();
	    };
	    PreviewTermsPlanHeader.prototype.showCheckboxNoneSelected = function () {
	        return this.termPreferenceQuestion && !poll_servant_1.PollServant.hasEveryQuestionAnswered([this.termPreferenceQuestion]);
	    };
	    PreviewTermsPlanHeader.prototype.getSelectedChoices = function () {
	        return [this.timeCommitmentQuestion._answer.nk, _4.map(this.termPreferenceQuestion._answer, 'nk')];
	    };
	    PreviewTermsPlanHeader.prototype.getPreviewPlan = function () {
	        var _this = this;
	        var _a = this.getSelectedChoices(), termCommitment = _a[0], termPreference = _a[1];
	        this.clearTermPreviewPlanCommand().then(function () {
	            _this.log.disable();
	            _this.loadTermPreviewPlanCommand(termCommitment, termPreference)
	                .then(function () {
	                _this.previouslySelectedChoices = _this.getSelectedChoices();
	                _this.estimatedGraduationTime = ap_preview_plan_servant_1.APPreviewPlanServant.getEstimatedGraduationDateFromTerm(_this.ngTermPlanPreviewQuery.result.terms);
	                if (_this.estimatedGraduationTime) {
	                    _this.alertTemplateIssue = false;
	                }
	                _this.log.enable();
	            })
	                .catch(function (e) {
	                _this.alertTemplateIssue = true;
	                _this.log.enable();
	            });
	        });
	    };
	    return PreviewTermsPlanHeader;
	}());
	angular.module('capability-ng-academic-planner').component('previewTermsPlanHeader', {
	    templateUrl: 'capability-ng-academic-planner/src/preferences/components/preview_plan/components/preview_terms_plan_header/preview_terms_plan_header.html',
	    bindings: {
	        timeCommitmentQuestion: '<',
	        termPreferenceQuestion: '<',
	        alertTemplateIssue: '=',
	        alertSelectMoreTerms: '=',
	        previewPlan: '&',
	        terms: '=',
	        previousScreen: '<'
	    },
	    controller: PreviewTermsPlanHeader
	});


/***/ }),
/* 1425 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var RadioQuestionComponent = /** @class */ (function () {
	    function RadioQuestionComponent() {
	    }
	    RadioQuestionComponent.prototype.questionChoiceClicked = function (choice, $event) {
	        var isChecked = _4.get($event, 'detail.value');
	        if (isChecked) {
	            this.modelForAnswer = tslib_1.__assign({}, choice);
	            if (this.callBackWhenChoiceChanged) {
	                this.callBackWhenChoiceChanged();
	            }
	        }
	    };
	    RadioQuestionComponent.prototype.initialize = function () {
	        this.choiceTheme = _4.get(this, 'choiceTheme', 'sky');
	        this.cssClassBetweenChoices = _4.get(this, 'cssClassBetweenChoices', 'pts pbs');
	        this.questionContainerClass = _4.get(this, 'questionContainerClass', 'text-bold h4');
	    };
	    RadioQuestionComponent.prototype.$onInit = function () {
	        this.initialize();
	    };
	    return RadioQuestionComponent;
	}());
	angular.module('capability-ng-academic-planner').component('radioQuestionComponent', {
	    templateUrl: 'capability-ng-academic-planner/src/preferences/components/preview_plan/components/radio_question_component/radio_question_component.html',
	    bindings: {
	        questionName: '@',
	        questionChoices: '=',
	        callBackWhenChoiceChanged: '&',
	        modelForAnswer: '=',
	        cssClassBetweenChoices: '@?',
	        choiceTheme: '@?',
	        radioName: '@?',
	        questionContainerClass: '@?',
	        choiceSelectionDisabled: '<'
	    },
	    controller: RadioQuestionComponent
	});


/***/ }),
/* 1426 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var lodash4_1 = __webpack_require__(1);
	var SaveGeneratedTermButton = /** @class */ (function () {
	    function SaveGeneratedTermButton(saveTermPreviewPlanCommand, ngPreviewTermPlanModel) {
	        this.saveTermPreviewPlanCommand = saveTermPreviewPlanCommand;
	        this.ngPreviewTermPlanModel = ngPreviewTermPlanModel;
	    }
	    SaveGeneratedTermButton.prototype.savePlan = function () {
	        var _this = this;
	        var currentTermPlanShowing = lodash4_1.pick(this.ngPreviewTermPlanModel.read(), [
	            'planned_course_groups',
	            'planned_courses',
	            'student_planned_terms'
	        ]);
	        this.saveTermPreviewPlanCommand(currentTermPlanShowing).then(function () { return lodash4_1.isFunction(_this.callBackAfterSaving) && _this.callBackAfterSaving(); });
	    };
	    return SaveGeneratedTermButton;
	}());
	angular.module('capability-ng-academic-planner').component('saveGeneratedTermButton', {
	    templateUrl: 'capability-ng-academic-planner/src/preferences/components/preview_plan/components/save_generated_term_button/save_generated_term_button.html',
	    bindings: {
	        terms: '<',
	        callBackAfterSaving: '&',
	        type: '<'
	    },
	    controller: SaveGeneratedTermButton
	});


/***/ }),
/* 1427 */
/***/ (function(module, exports) {

	angular.module('capability-ng-academic-planner').constant('ngPreviewTermPlanConstant', Object.freeze({
	    AP_PREVIEW_AUTO_GENERATED_TERM_PLAN_SHOWN: 'ap_preview_auto_generated_term_plan_shown'
	}));


/***/ }),
/* 1428 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var APIntakeSurveyNKHelper = /** @class */ (function () {
	    function APIntakeSurveyNKHelper(appConfigModel, InTakeSurveyConstants) {
	        this.appConfigModel = appConfigModel;
	        this.InTakeSurveyConstants = InTakeSurveyConstants;
	        this.intakeSurveyNKConfigvalues = {
	            'academicplan-intake_time_commitment_nk': 'AP_TIME_COMMITMENT',
	            'academicplan-intake_term_preference_nk': 'AP_TERM_PREFERENCE',
	            'academicplan-intake_generate_plan_nk': 'AP_GENERATE_PLAN'
	        };
	    }
	    APIntakeSurveyNKHelper.prototype.defaultNKforIntakeSurveyConfig = function (surveyConfigKey) {
	        return _4.get(this.intakeSurveyNKConfigvalues, "" + surveyConfigKey, '');
	    };
	    Object.defineProperty(APIntakeSurveyNKHelper.prototype, "intakeSurveyTimeCommitmentNK", {
	        get: function () {
	            var timeCommitmentNk = this.appConfigModel.getConfigProperty('academicplan-intake_time_commitment_nk');
	            if (_4.isEmpty(timeCommitmentNk)) {
	                timeCommitmentNk = this.defaultNKforIntakeSurveyConfig('academicplan-intake_time_commitment_nk');
	            }
	            return timeCommitmentNk;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(APIntakeSurveyNKHelper.prototype, "intakeSurveyTermPreferenceNK", {
	        get: function () {
	            var termPreferenceNK = this.appConfigModel.getConfigProperty('academicplan-intake_term_preference_nk');
	            if (_4.isEmpty(termPreferenceNK)) {
	                termPreferenceNK = this.defaultNKforIntakeSurveyConfig('academicplan-intake_term_preference_nk');
	            }
	            return termPreferenceNK;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(APIntakeSurveyNKHelper.prototype, "intakeSurveyNK", {
	        get: function () {
	            var intakeSurveyNK = this.appConfigModel.getConfigProperty(this.InTakeSurveyConstants['AP_INTAKE_SURVEY_NK']);
	            if (_4.isEmpty(intakeSurveyNK)) {
	                intakeSurveyNK = 'ACADEMIC_PLAN_INTAKE_SURVEY';
	            }
	            return intakeSurveyNK;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APIntakeSurveyNKHelper;
	}());
	exports.APIntakeSurveyNKHelper = APIntakeSurveyNKHelper;
	angular.module('capability-ng-academic-planner').service('ngAPIntakeSurveyNKHelper', APIntakeSurveyNKHelper);


/***/ }),
/* 1429 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-academic-planner').factory('ngPreviewTermPlanModel', function () {
	    return new utility_ts_orm_1.Model({
	        planned_courses: [],
	        student_planned_terms: [],
	        planned_course_groups: []
	    });
	});


/***/ }),
/* 1430 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var lodash4_1 = __webpack_require__(1);
	var planned_term_builder_1 = __webpack_require__(482);
	var ap_course_servant_1 = __webpack_require__(25);
	var TermPlanPreviewQuery = /** @class */ (function () {
	    function TermPlanPreviewQuery(QueryMediator, ngPreviewTermPlanModel, ngAPTermsDatasource, ngAPProgramSlotDatasource, ngAPCoursesDatasource, appConfigModel) {
	        this.ngPreviewTermPlanModel = ngPreviewTermPlanModel;
	        this.ngAPTermsDatasource = ngAPTermsDatasource;
	        this.ngAPProgramSlotDatasource = ngAPProgramSlotDatasource;
	        this.ngAPCoursesDatasource = ngAPCoursesDatasource;
	        this.appConfigModel = appConfigModel;
	        QueryMediator.registerQuery(this, ngPreviewTermPlanModel);
	    }
	    TermPlanPreviewQuery.prototype.getMappedCourses = function () {
	        var previewTermPlanData = this.ngPreviewTermPlanModel.read();
	        return lodash4_1.chain(previewTermPlanData.planned_courses)
	            .map(function (course) { return (tslib_1.__assign(tslib_1.__assign({}, course), { hoverTemplate: ap_course_servant_1.APCourseServant.buildHoverTemplate(course.course) })); })
	            .value();
	    };
	    TermPlanPreviewQuery.prototype.getMappedCourseGroups = function () {
	        var previewTermPlanData = this.ngPreviewTermPlanModel.read();
	        return lodash4_1.chain(previewTermPlanData.planned_course_groups)
	            .map(function (course_group) { return course_group; })
	            .compact()
	            .value();
	    };
	    TermPlanPreviewQuery.prototype.getCreditsForTerm = function (termCourses, termCourseGroups) {
	        var normalCoursesCreditSum = lodash4_1.sumBy(termCourses, 'course.credits');
	        return {
	            min_credits: lodash4_1.sumBy(termCourseGroups, 'min_credits') + normalCoursesCreditSum,
	            max_credits: lodash4_1.sumBy(termCourseGroups, 'max_credits') + normalCoursesCreditSum
	        };
	    };
	    TermPlanPreviewQuery.prototype.createTermForTermBox = function (term, courses, courseGroups) {
	        var termCourses = lodash4_1.filter(courses, { term: term.id });
	        var termCourseGroups = lodash4_1.filter(courseGroups, { term: term.id });
	        return tslib_1.__assign(tslib_1.__assign({ planned_courses: termCourses, planned_course_groups: termCourseGroups }, term), { credits: this.getCreditsForTerm(termCourses, termCourseGroups) });
	    };
	    TermPlanPreviewQuery.prototype.getProcessedTerms = function (courses, courseGroups) {
	        var _this = this;
	        var previewTermPlanData = tslib_1.__assign({}, this.ngPreviewTermPlanModel.read());
	        previewTermPlanData.student_planned_terms = lodash4_1.map(previewTermPlanData.student_planned_terms, function (plannedTerm) { return new planned_term_builder_1.PlannedTerm(plannedTerm); });
	        var terms = lodash4_1.map(previewTermPlanData.student_planned_terms, 'term');
	        return lodash4_1.chain(terms)
	            .map(function (term) { return _this.createTermForTermBox(term, courses, courseGroups); })
	            .sortBy('rank')
	            .value();
	    };
	    TermPlanPreviewQuery.prototype.run = function () {
	        var courses = this.getMappedCourses();
	        var courseGroups = this.getMappedCourseGroups();
	        var terms = this.getProcessedTerms(courses, courseGroups);
	        var hasDevReqCourses = !!_4.find(courses, { is_devreq: true });
	        var showInfoMessage = !_4.isEmpty(terms) && hasDevReqCourses;
	        var infoMessage = _4.get(this.appConfigModel, 'model.member_configs.autoloader_devreq_warning', '').trim();
	        this.__result = {
	            terms: terms,
	            hasDevReqCourses: hasDevReqCourses,
	            infoMessage: showInfoMessage
	                ? _4.isEmpty(infoMessage)
	                    ? 'This template includes developmental courses based on your placement results.'
	                    : infoMessage
	                : ''
	        };
	        return this;
	    };
	    Object.defineProperty(TermPlanPreviewQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return TermPlanPreviewQuery;
	}());
	exports.TermPlanPreviewQuery = TermPlanPreviewQuery;
	angular.module('capability-ng-academic-planner').service('ngTermPlanPreviewQuery', TermPlanPreviewQuery);


/***/ }),
/* 1431 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var VerifyPreviewPlanData = /** @class */ (function () {
	    function VerifyPreviewPlanData(ngPreviewTermPlanModel, ngAPValidator) {
	        this.ngPreviewTermPlanModel = ngPreviewTermPlanModel;
	        this.ngAPValidator = ngAPValidator;
	    }
	    VerifyPreviewPlanData.prototype.verify = function () {
	        var plannedCourseValidator = this.ngAPValidator.validate(this.ngPreviewTermPlanModel.read().planned_courses, {
	            term: {
	                key: 'term.id',
	                type: 'ONE_TO_ONE',
	                data: this.ngPreviewTermPlanModel.read().student_planned_terms
	            }
	        }, 'Quick Plan API: Planned Course data verification failed');
	        var plannedCourseGroupValidator = this.ngAPValidator.validate(this.ngPreviewTermPlanModel.read().planned_course_groups, {
	            term: {
	                key: 'term.id',
	                type: 'ONE_TO_ONE',
	                data: this.ngPreviewTermPlanModel.read().student_planned_terms
	            }
	        }, 'Quick Plan API: Planned Course Group data verification failed');
	        return Promise.all([plannedCourseValidator, plannedCourseGroupValidator]);
	    };
	    return VerifyPreviewPlanData;
	}());
	exports.VerifyPreviewPlanData = VerifyPreviewPlanData;
	angular.module('capability-ng-academic-planner').service('ngAPVerifyPreviewPlanData', VerifyPreviewPlanData);


/***/ }),
/* 1432 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var plan_feedback_servant_1 = __webpack_require__(13);
	angular
	    .module('capability-ng-academic-planner')
	    .service('navigateIfPlanBlockedCommand', function (loadSuggestedPlanStatusCommand, ngAPAdvisorHeaderDetailsQuery, ngAPNotificationDelegate, defineCommandORM, routerHelper) {
	    return defineCommandORM('navigateIfPlanBlockedCommand', function (deferred) {
	        loadSuggestedPlanStatusCommand().then(function () {
	            var gotoState;
	            var isPlanTurnedBlocked = plan_feedback_servant_1.PlanFeedbackServant.isPlanBlocked(ngAPAdvisorHeaderDetailsQuery.result);
	            if (isPlanTurnedBlocked) {
	                var defaultTimeout = 4000;
	                ngAPNotificationDelegate.info({
	                    content: "Plan got blocked, navigating to retain suggestions",
	                    timeout: defaultTimeout
	                });
	                gotoState = 'ap-advisor.retain_suggestions.blocked_suggestions';
	            }
	            return routerHelper.navigateFromRouter(deferred, gotoState);
	        });
	    });
	});


/***/ }),
/* 1433 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('preventAccessAndRedirectToAp3Command', function (appConfigModel, defineCommandORM, routerHelper, $location) {
	    return defineCommandORM('preventAccessAndRedirectToAp3Command', function (deferred) {
	        // Allow access to Feedback History '/changelog' page
	        var pathIsFeedbackHistory = $location.path().includes('/changelog');
	        if (pathIsFeedbackHistory) {
	            return deferred.resolve();
	        }
	        var ap3FeatureEnabled = appConfigModel.isFeatureEnabled('ap3-academic_planner_v3');
	        // Redirect to AP3 if AP3 feature toggle is ON
	        if (ap3FeatureEnabled) {
	            return routerHelper.navigateFromRouter(deferred, 'my.ap3-restart');
	        }
	        return routerHelper.navigateFromRouter(deferred, 'my.feed');
	    });
	});


/***/ }),
/* 1434 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .service('preventAccessToAdvisorAutoGeneratedPlanCommand', function (defineCommandORM, routerHelper, completedAutoGeneratedPreviewPlanShowingCommand, ngStudentValueModel, ngPreviewTermPlanConstant) {
	    return defineCommandORM('preventAccessToAdvisorAutoGeneratedPlanCommand', function (deferred, terms) {
	        if (!_4.isEmpty(terms)) {
	            return deferred.resolve();
	        }
	        return completedAutoGeneratedPreviewPlanShowingCommand().then(function () {
	            var currentStudentValue = {};
	            ngStudentValueModel
	                .keys()
	                .forEach(function (key) { return (currentStudentValue[key] = ngStudentValueModel.getValueByKey(key)); });
	            currentStudentValue[ngPreviewTermPlanConstant['AP_PREVIEW_AUTO_GENERATED_TERM_PLAN_SHOWN']] = 'True';
	            ngStudentValueModel.update(currentStudentValue);
	            return routerHelper.navigateFromRouter(deferred, 'ap-advisor.plan');
	        });
	    });
	});


/***/ }),
/* 1435 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var plan_feedback_servant_1 = __webpack_require__(13);
	angular
	    .module('capability-ng-academic-planner')
	    .service('preventAccessToPlannerCommand', function (ngPreviewTermPlanConstant, appConfigModel, loadSuggestedPlanStatusCommand, ngStudentValueModel, ngFeedbackSuggestedPlanModel, defineCommandORM, routerHelper) {
	    return defineCommandORM('preventAccessToPlannerCommand', function (deferred) {
	        // using finally here as this api call might fail and throw 400,
	        // which is acceptable
	        loadSuggestedPlanStatusCommand().finally(function () {
	            var suggestedPlan = ngFeedbackSuggestedPlanModel.read();
	            var hasUnresolvedSuggestionsExist = plan_feedback_servant_1.PlanFeedbackServant.isPlanSentToStudent(suggestedPlan) ||
	                plan_feedback_servant_1.PlanFeedbackServant.isPlanCommitedAndBlocked(suggestedPlan);
	            if (hasUnresolvedSuggestionsExist) {
	                return routerHelper.navigateFromRouter(deferred, 'my.planner.suggestions');
	            }
	            var apPlanPreviewShownKey = ngPreviewTermPlanConstant['AP_PREVIEW_AUTO_GENERATED_TERM_PLAN_SHOWN'];
	            var showAutoGeneratedPlan = appConfigModel.isFeatureEnabled('academicplan-allow_autoloading_plan') &&
	                !ngStudentValueModel.getBooleanValueByKey(apPlanPreviewShownKey);
	            if (showAutoGeneratedPlan) {
	                return routerHelper.navigateFromRouter(deferred, 'my.planner.preview_plan.auto_generated');
	            }
	            return routerHelper.navigateFromRouter(deferred);
	        });
	    });
	});


/***/ }),
/* 1436 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_advisor_init_redirect_strategy_1 = __webpack_require__(489);
	angular
	    .module('capability-ng-academic-planner')
	    .service('reRouteAdvisorPlanAccessCommand', function (defineCommandORM, appConfigModel, routerHelper, ngFeedbackSuggestedPlanModel, ngStudentValueModel, ngPreviewTermPlanConstant, completedAutoGeneratedPreviewPlanShowingCommand, dropAndCreateSuggestedPlanCommand, $timeout) {
	    return defineCommandORM('reRouteAdvisorPlanAccessCommand', function (deferred) {
	        var apPlanPreviewShownKey = ngPreviewTermPlanConstant['AP_PREVIEW_AUTO_GENERATED_TERM_PLAN_SHOWN'];
	        var suggestedPlan = ngFeedbackSuggestedPlanModel.read();
	        // SGD-14772
	        var isSuggestedPlanEmptyOrResolved = _4.isNull(suggestedPlan.id) || _4.isEqual(suggestedPlan.status, 'RESOLVED');
	        var studentHasNoPlanSetUp = appConfigModel.isFeatureEnabled('academicplan-allow_autoloading_plan') &&
	            !ngStudentValueModel.getBooleanValueByKey(apPlanPreviewShownKey);
	        var redirectingState = studentHasNoPlanSetUp && isSuggestedPlanEmptyOrResolved
	            ? 'ap-advisor.preview_plan.auto_generated'
	            : ap_advisor_init_redirect_strategy_1.AdvisorInitRedirectStrategy.evaluate(ngFeedbackSuggestedPlanModel.read());
	        var TIME_TO_FIX_ANGULAR_STATE_ERROR = 10;
	        $timeout(function () {
	            if (!routerHelper.isValidState(redirectingState)) {
	                return deferred.reject();
	            }
	            if (!isSuggestedPlanEmptyOrResolved || !studentHasNoPlanSetUp) {
	                // SGD-14772
	                if (!ngStudentValueModel.getBooleanValueByKey(apPlanPreviewShownKey)) {
	                    completedAutoGeneratedPreviewPlanShowingCommand();
	                }
	                return routerHelper.navigateFromRouter(deferred, redirectingState);
	            }
	            // using finally as these API could throw error
	            return dropAndCreateSuggestedPlanCommand().finally(function () {
	                return routerHelper.navigateFromRouter(deferred, redirectingState);
	            });
	        }, TIME_TO_FIX_ANGULAR_STATE_ERROR);
	    });
	});


/***/ }),
/* 1437 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .service('initiateCachedSclSearchConfigCommand', function initiateCachedSclSearchConfigCommandDefinition(defineCommandORM, loadSclSearchConfigCommand, ngCacheSCLSearchConfigCommandModel, $q) {
	    return defineCommandORM('initiateCachedSclSearchConfigCommand', function cachedSclSearchConfigCommand(deferred) {
	        var _a;
	        var existingRequests = ngCacheSCLSearchConfigCommandModel.read().requests;
	        var sclConfig = 'scl-config';
	        if (!_4.has(existingRequests, sclConfig)) {
	            ngCacheSCLSearchConfigCommandModel.write({
	                requests: tslib_1.__assign(tslib_1.__assign({}, existingRequests), (_a = {}, _a[sclConfig] = [loadSclSearchConfigCommand()], _a))
	            });
	        }
	        return $q.all(existingRequests[sclConfig]);
	    });
	});


/***/ }),
/* 1438 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .service('loadSclSearchConfigCommand', function loadSclSearchConfigCommandDefinition($http, defineCommandORM, appConfigModel, $q, ngAPSclOptionsDatasource, log) {
	    return defineCommandORM('loadSclSearchConfigCommand', function loadSclSearchConfigCommand(deferred) {
	        var isSmartCatalogEnabled = appConfigModel.isFeatureEnabled('academicplan-smart_catalog');
	        if (!isSmartCatalogEnabled) {
	            return deferred.resolve();
	        }
	        $http
	            .get("academicplan/course_search_fields/")
	            .then(function (response) {
	            if (!response.data) {
	                return deferred.resolve();
	            }
	            var fieldWithOptions = response.data.fields.filter(function (field) { return _4.includes(['combobox', 'dropdown'], field.render_type) && _4.isString(field.options); });
	            var promises = [];
	            fieldWithOptions.forEach(function (field, index) {
	                if (_4.isString(field.options)) {
	                    promises.push($http.get(field.options.replace("/api/v1/", '')).then(function (res) {
	                        ngAPSclOptionsDatasource.write([
	                            {
	                                id: index,
	                                name: field.name,
	                                options: res.data
	                            }
	                        ]);
	                    }));
	                }
	            });
	            return $q.all(promises).then(deferred.resolve);
	        })
	            .catch(function (e) {
	            log.issue('failed to fetch the course search fields for SCL');
	            deferred.reject(e.data);
	        });
	    });
	});


/***/ }),
/* 1439 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_generic_slot_servant_1 = __webpack_require__(18);
	var CourseDetailsMenuController = /** @class */ (function () {
	    function CourseDetailsMenuController($state, removeCourseFromTermCommand, ngAPPlannedCoursesDatasource, saveCourseToTermCommand, removeCourseFromTermAndAddCourseCommand, ngAPTermsQuery, ngAPUserModeConfig, ngComponentCommunicatorService, ngAPComponentStateModel, routerHelper, phxAxTitleAnnouncerDelegate, unsaveFavoriteCourseCommand, saveFavoriteCourseCommand, ngAPCoursesDatasource, markAsMetFacade, ngAPCourseInfoModel, ngAPCourseInfoQuery) {
	        this.$state = $state;
	        this.removeCourseFromTermCommand = removeCourseFromTermCommand;
	        this.ngAPPlannedCoursesDatasource = ngAPPlannedCoursesDatasource;
	        this.saveCourseToTermCommand = saveCourseToTermCommand;
	        this.removeCourseFromTermAndAddCourseCommand = removeCourseFromTermAndAddCourseCommand;
	        this.ngAPTermsQuery = ngAPTermsQuery;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngAPComponentStateModel = ngAPComponentStateModel;
	        this.routerHelper = routerHelper;
	        this.phxAxTitleAnnouncerDelegate = phxAxTitleAnnouncerDelegate;
	        this.unsaveFavoriteCourseCommand = unsaveFavoriteCourseCommand;
	        this.saveFavoriteCourseCommand = saveFavoriteCourseCommand;
	        this.ngAPCoursesDatasource = ngAPCoursesDatasource;
	        this.markAsMetFacade = markAsMetFacade;
	        this.ngAPCourseInfoModel = ngAPCourseInfoModel;
	        this.ngAPCourseInfoQuery = ngAPCourseInfoQuery;
	        this.isPlanned = false;
	        this.hasMetRequirements = true;
	        this.courseLock = false;
	        this.showAddToTermMenu = false;
	        this.showFlagCourseMenu = false;
	        this.showRemoveFromTermMenu = false;
	        this.openLockDialog = false;
	        this.lockDialogMode = 'lock';
	        this.disableFavorite = false;
	        this.isFromSmartCat = false;
	        this.addToTermMenuItemText = 'Add Course to Term';
	        this.showSmartCatAddToTermOption = true;
	        this.showSmartCatRemoveFromTermOption = true;
	        this.popupMenuId = _4.uniqueId();
	    }
	    CourseDetailsMenuController.prototype.initialize = function () {
	        this.isAdvisor = this.ngAPUserModeConfig.isAdvisor();
	        this.isPlanned = ap_generic_slot_servant_1.APGenericSlotServant.isGenericSlotPlanned(this.genericSlot);
	        this.hasMetRequirements = !this._hasRequisiteProblem;
	        this.courseLock = _4.get(this.genericSlot, 'isLockedByAdvisor', false);
	        this.showAddToTermMenu =
	            this.showSmartCatAddToTermOption && _4.get(this.genericSlot, 'shouldShowAddToTermMenu', false);
	        this.showRemoveFromTermMenu =
	            this.showSmartCatRemoveFromTermOption && this.isPlanned && !this.genericSlot.isLockedByStatus;
	        this.showFlagCourseMenu = this.isPlanned && this.isAdvisor;
	        var isInPastTerm = this.isCourseCompleted && this.genericSlot.isLockedByStatus;
	        this.addToTermMenuItemText =
	            this.isPlanned && !(isInPastTerm && !this.isMinGradeMet) ? 'Move to Term' : 'Add Course to Term';
	    };
	    Object.defineProperty(CourseDetailsMenuController.prototype, "isCourseCompleted", {
	        get: function () {
	            return _4.get(this.genericSlot, 'isCourseCompleted', false);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(CourseDetailsMenuController.prototype, "isMinGradeMet", {
	        get: function () {
	            return _4.get(this.genericSlot, 'isMinGradeMet', false);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    CourseDetailsMenuController.prototype.$onInit = function () {
	        this.initialize();
	    };
	    CourseDetailsMenuController.prototype.$onChanges = function () {
	        this.smartCatOptions();
	        this.initialize();
	    };
	    CourseDetailsMenuController.prototype.smartCatOptions = function () {
	        this.showSmartCatAddToTermOption = this.ngAPCourseInfoQuery.result.showSmartCatAddToTermOption;
	        this.showSmartCatRemoveFromTermOption = this.ngAPCourseInfoQuery.result.showSmartCatRemoveFromTermOption;
	    };
	    // temporary hacking code. need change with hi-menu/hi-drawer combination on tabindex
	    CourseDetailsMenuController.prototype.menuOpenedChanged = function (e) {
	        var menu = document.getElementById("menu-course-tile-" + this.popupMenuId);
	        if (menu) {
	            menu.setAttribute('tabindex', '-1');
	        }
	    };
	    Object.defineProperty(CourseDetailsMenuController.prototype, "lockTooltipText", {
	        get: function () {
	            if (!this.courseLock) {
	                return '';
	            }
	            var termName = _4.get(_4.find(this.ngAPTermsQuery.result.plannedTerms, { id: this.genericSlot.termId }), 'name');
	            return "This course is locked and will be unlocked at the end of the " + termName + " term.";
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(CourseDetailsMenuController.prototype, "_hasRequisiteProblem", {
	        get: function () {
	            return _4.get(this.genericSlot, 'plannedCourse._hasRequisiteProblem', false);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    CourseDetailsMenuController.prototype.onMouseHover = function (event) {
	        this.showLockCourseOption = !this.courseLock && this.isPlanned && this.isAdvisor;
	        this.showUnlockCourseOption = this.courseLock && this.isPlanned && this.isAdvisor;
	    };
	    CourseDetailsMenuController.prototype.openFlagPopup = function () {
	        var courseFlagRoute = this.routerHelper.isValidState(this.$state.current.name + '.course_flag_dialog')
	            ? '.course_flag_dialog'
	            : '^.course_flag_dialog';
	        this.$state.go(courseFlagRoute, {
	            genericSlot: this.genericSlot
	        });
	    };
	    CourseDetailsMenuController.prototype.favoriteCourse = function () {
	        this.toggleFavoriteCourse("saveFavoriteCourseCommand");
	    };
	    CourseDetailsMenuController.prototype.unfavoriteCourse = function () {
	        this.toggleFavoriteCourse("unsaveFavoriteCourseCommand");
	    };
	    CourseDetailsMenuController.prototype.toggleFavoriteCourse = function (command) {
	        var _this = this;
	        var course = this.genericSlot.course;
	        this["" + command](course).then(function (updatedCourse) {
	            var courseInfoToUpdate = _this.ngAPCourseInfoModel.read();
	            courseInfoToUpdate.course["" + updatedCourse.id] = updatedCourse;
	            _this.ngAPCourseInfoModel.write(courseInfoToUpdate);
	        });
	    };
	    CourseDetailsMenuController.prototype.getSlot = function () {
	        return {
	            id: _4.get(this.genericSlot.programSlot, 'id', null) || _4.get(this.$state, 'params.slotId', null)
	        };
	    };
	    CourseDetailsMenuController.prototype.removeCourse = function () {
	        var _this = this;
	        if (!this.isPlanned) {
	            return;
	        }
	        this.removeCourseFromTermCommand(this.genericSlot.programSlot, this.genericSlot.plannedCourse)
	            .then(function () {
	            var termTitle = _4.get(_4.find(_this.ngAPTermsQuery.result.plannedTerms, { id: _this.genericSlot.termId }), 'name');
	            _this.phxAxTitleAnnouncerDelegate.announceChange(_4.get(_this.genericSlot, 'plannedCourse._course.title') + " was removed from " + termTitle);
	        })
	            .then(function () {
	            _this.ngComponentCommunicatorService.publish('CLOSE_LARGE_COURSE_GROUP_PANEL');
	        });
	    };
	    Object.defineProperty(CourseDetailsMenuController.prototype, "shouldReplanCourse", {
	        get: function () {
	            return this.genericSlot.isCourseCompleted && !this.genericSlot.isMinGradeMet;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    CourseDetailsMenuController.prototype.moveToTerm = function (term) {
	        var _this = this;
	        var coursePlanningSource = _4.get(this.ngAPCourseInfoQuery, 'result.coursePlanningSource', 'PLANNER');
	        if (this.isPlanned && !this.shouldReplanCourse) {
	            this.removeCourseFromTermAndAddCourseCommand(this.genericSlot.plannedCourse, this.genericSlot.course, this.genericSlot.programSlot || null, this.genericSlot.termId, term.id).then(function (response) {
	                _this.phxAxTitleAnnouncerDelegate.announceChange("course " + _this.genericSlot.course.title + " was moved to " + term.name);
	            });
	        }
	        else {
	            var slot = this.getSlot();
	            var is_devreq = _4.get(this.genericSlot, 'programSlot.is_devreq', false);
	            this.saveCourseToTermCommand(this.genericSlot.course.id, term.id, slot, is_devreq, null, coursePlanningSource).then(function (response) {
	                _this.ngComponentCommunicatorService.publish('CLOSE_LARGE_COURSE_GROUP_PANEL');
	                if (_4.get(_this.genericSlot, 'programSlot.id', false)) {
	                    _this.ngAPComponentStateModel.courseGroupClose(_this.genericSlot.programSlot.id);
	                }
	                _this.phxAxTitleAnnouncerDelegate.announceChange(_this.genericSlot.title + " added to " + term.name);
	            });
	        }
	    };
	    CourseDetailsMenuController.prototype.openLockUnlockDialog = function (mode) {
	        return this.routerHelper.findStateAndGo('.lock_course', {
	            genericSlot: this.genericSlot,
	            type: mode
	        });
	    };
	    return CourseDetailsMenuController;
	}());
	var CourseDetailsMenu = /** @class */ (function () {
	    function CourseDetailsMenu() {
	        this.bindings = {
	            disableFavorite: '<?',
	            genericSlot: '<',
	            isFromSmartCat: '<'
	        };
	        this.controller = CourseDetailsMenuController;
	        this.templateUrl =
	            'capability-ng-academic-planner/src/smart_catalog/components/course_details_menu/course_details_menu.html';
	    }
	    return CourseDetailsMenu;
	}());
	angular.module('capability-ng-smartcatalog').component('courseDetailsMenu', new CourseDetailsMenu());


/***/ }),
/* 1440 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_id_constants_1 = __webpack_require__(11);
	var MmCourseDetailsMenuController = /** @class */ (function () {
	    function MmCourseDetailsMenuController($state, ngAPUserModeConfig, ngComponentCommunicatorService, phxAxTitleAnnouncerDelegate, ngAPCourseInfoModel, ngAPCourseInfoQuery, ngAPMultiTermsQuery, saveMmCourseToTermCommand, loadMmAcademicPlanCommand, removeMmCourseFromTermCommand, unsaveFavoriteCourseCommand, loadMmFavoriteCoursesCommand, saveFavoriteCourseCommand) {
	        this.$state = $state;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.phxAxTitleAnnouncerDelegate = phxAxTitleAnnouncerDelegate;
	        this.ngAPCourseInfoModel = ngAPCourseInfoModel;
	        this.ngAPCourseInfoQuery = ngAPCourseInfoQuery;
	        this.ngAPMultiTermsQuery = ngAPMultiTermsQuery;
	        this.saveMmCourseToTermCommand = saveMmCourseToTermCommand;
	        this.loadMmAcademicPlanCommand = loadMmAcademicPlanCommand;
	        this.removeMmCourseFromTermCommand = removeMmCourseFromTermCommand;
	        this.unsaveFavoriteCourseCommand = unsaveFavoriteCourseCommand;
	        this.loadMmFavoriteCoursesCommand = loadMmFavoriteCoursesCommand;
	        this.saveFavoriteCourseCommand = saveFavoriteCourseCommand;
	        this.isPlanned = false;
	        this.courseLock = false;
	        this.allowRemoveCourse = false;
	        this.isPast = false;
	        this.stateParams = {
	            courseId: ap_id_constants_1.INVALID_ID,
	            courseNk: "" + ap_id_constants_1.INVALID_ID,
	            slotId: ap_id_constants_1.INVALID_ID,
	            isPast: false,
	            termId: ap_id_constants_1.INVALID_ID,
	            plannedCourseId: ap_id_constants_1.INVALID_ID
	        };
	        this.popupMenuId = _4.uniqueId();
	    }
	    MmCourseDetailsMenuController.prototype.initialize = function () {
	        this.stateParams = this.$state.params.courseDetailsParams;
	        this.isPast = _4.get(this.stateParams, 'isPast', false);
	        this.isAdvisor = this.ngAPUserModeConfig.isAdvisor();
	        this.allowRemoveCourse = this.isFromTerm && !this.isPast && this.isPlannedCourse;
	        this.addToTermMenuItemText = this.isFromTerm ? 'Move to Term' : 'Add Course to Term';
	    };
	    Object.defineProperty(MmCourseDetailsMenuController.prototype, "isPlannedCourse", {
	        get: function () {
	            return this.stateParams.status === 'PLANNED';
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(MmCourseDetailsMenuController.prototype, "showAddToTermOption", {
	        get: function () {
	            return this.isFromTerm ? this.isPlannedCourse : true;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    MmCourseDetailsMenuController.prototype.$onInit = function () {
	        this.initialize();
	    };
	    MmCourseDetailsMenuController.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    MmCourseDetailsMenuController.prototype.onMouseHover = function (event) {
	        this.showLockCourseOption = !this.courseLock && this.isPlanned && this.isAdvisor;
	        this.showUnlockCourseOption = this.courseLock && this.isPlanned && this.isAdvisor;
	    };
	    MmCourseDetailsMenuController.prototype.moveToTerm = function (term) {
	        var _this = this;
	        var payload = {
	            term: term.id,
	            program_slot: this.stateParams.slotId,
	            course: this.stateParams.courseId
	        };
	        if (this.isFromTerm) {
	            this._removeCourseFromTerm().then(function (studentId) {
	                _this._saveCourseToTerm(payload).then(function () {
	                    _this.loadMmAcademicPlanCommand(studentId);
	                });
	            });
	        }
	        else {
	            this._saveCourseToTerm(payload).then(function (studentId) {
	                _this.loadMmAcademicPlanCommand(studentId);
	            });
	        }
	    };
	    Object.defineProperty(MmCourseDetailsMenuController.prototype, "isFromTerm", {
	        get: function () {
	            return _4.gt(this.stateParams.termId, 0);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    MmCourseDetailsMenuController.prototype._saveCourseToTerm = function (payload) {
	        return this.saveMmCourseToTermCommand(payload);
	    };
	    MmCourseDetailsMenuController.prototype._removeCourseFromTerm = function () {
	        return this.removeMmCourseFromTermCommand(this.stateParams.plannedCourseId);
	    };
	    MmCourseDetailsMenuController.prototype.removeCourse = function () {
	        var _this = this;
	        this._removeCourseFromTerm().then(function (studentId) {
	            _this.loadMmAcademicPlanCommand(studentId);
	        });
	    };
	    MmCourseDetailsMenuController.prototype.favoriteCourse = function () {
	        this.toggleFavoriteCourse("saveFavoriteCourseCommand");
	    };
	    MmCourseDetailsMenuController.prototype.unfavoriteCourse = function () {
	        this.toggleFavoriteCourse("unsaveFavoriteCourseCommand");
	    };
	    MmCourseDetailsMenuController.prototype.toggleFavoriteCourse = function (command) {
	        var _this = this;
	        var course = this.genericSlot.course;
	        this["" + command](course).then(function (updatedCourse) {
	            _this.loadMmFavoriteCoursesCommand();
	            var courseInfoToUpdate = _this.ngAPCourseInfoModel.read();
	            courseInfoToUpdate.course["" + updatedCourse.id] = updatedCourse;
	            _this.ngAPCourseInfoModel.write(courseInfoToUpdate);
	        });
	    };
	    return MmCourseDetailsMenuController;
	}());
	var MmCourseDetailsMenu = /** @class */ (function () {
	    function MmCourseDetailsMenu() {
	        this.bindings = {
	            genericSlot: '<'
	        };
	        this.controller = MmCourseDetailsMenuController;
	        this.templateUrl =
	            'capability-ng-academic-planner/src/smart_catalog/components/course_details_menu/mm_course_details_menu.html';
	    }
	    return MmCourseDetailsMenu;
	}());
	angular.module('capability-ng-smartcatalog').component('mmCourseDetailsMenu', new MmCourseDetailsMenu());


/***/ }),
/* 1441 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SclAddToTermDialog = /** @class */ (function () {
	    function SclAddToTermDialog(log, saveCourseToTermCommand, $state, ngAPNotificationDelegate, ngAPTermsQuery, ngComponentCommunicatorService) {
	        this.log = log;
	        this.saveCourseToTermCommand = saveCourseToTermCommand;
	        this.$state = $state;
	        this.ngAPNotificationDelegate = ngAPNotificationDelegate;
	        this.ngAPTermsQuery = ngAPTermsQuery;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.showDialog = false;
	        this.selectedCourseNk = '';
	        this.courseCd = '';
	        this.courseNk = '';
	        this.hasPlannedTerms = false;
	    }
	    SclAddToTermDialog.prototype.$onChanges = function () {
	        this.selectedTerm = { id: -1, name: '', nk: '' };
	        if (!_4.isEmpty(this.ngAPTermsQuery.result.plannedTerms)) {
	            this.selectedTerm = _4.first(this.ngAPTermsQuery.result.plannedTerms);
	        }
	        this.hasPlannedTerms = this._hasPlannedTerms;
	    };
	    SclAddToTermDialog.prototype.openDialog = function () {
	        this.showDialog = true;
	    };
	    SclAddToTermDialog.prototype.closeDialog = function () {
	        this.showDialog = false;
	    };
	    Object.defineProperty(SclAddToTermDialog.prototype, "_hasPlannedTerms", {
	        get: function () {
	            return _4.gt(_4.size(this.ngAPTermsQuery.result.plannedTerms), 0);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    SclAddToTermDialog.prototype.addToTerm = function () {
	        var _this = this;
	        var courseId = null;
	        var slot = { id: _4.get(this.$state, 'params.slotId', null) };
	        var source = 'SMART_CAT';
	        var isDevReq = false;
	        this.saveCourseToTermCommand(courseId, this.selectedTerm.id, slot, isDevReq, this.courseNk, source).then(function () {
	            _this.closeDialog();
	            _this.ngComponentCommunicatorService.publish('CLOSE_LARGE_COURSE_GROUP_PANEL');
	            _this.ngAPNotificationDelegate.success(_this.courseCd + " added to " + _this.selectedTerm.name);
	        });
	    };
	    SclAddToTermDialog.prototype.updateTermSelection = function (evt, term) {
	        var isTermSelected = _4.get(evt, 'detail.value', false);
	        if (isTermSelected) {
	            this.selectedTerm = term;
	        }
	    };
	    SclAddToTermDialog.prototype.revokePopupOpenedChanged = function ($event) {
	        this.hasPlannedTerms = this._hasPlannedTerms;
	        if (!$event.detail.value) {
	            this.showDialog = false;
	        }
	    };
	    return SclAddToTermDialog;
	}());
	exports.SclAddToTermDialog = SclAddToTermDialog;
	angular.module('capability-ng-academic-planner').component('sclAddToTermDialog', {
	    templateUrl: 'capability-ng-academic-planner/src/smart_catalog/components/scl_add_to_term_dialog/scl_add_to_term_dialog.html',
	    bindings: {
	        showDialog: '=',
	        courseCd: '<',
	        courseNk: '<'
	    },
	    controller: SclAddToTermDialog
	});


/***/ }),
/* 1442 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var plan_feedback_servant_1 = __webpack_require__(13);
	var large_course_group_smart_search_configuration_1 = __webpack_require__(514);
	var search_prefab_configuration_1 = __webpack_require__(130);
	var sgd_metadata_1 = __webpack_require__(516);
	var ap_smart_search_servant_1 = __webpack_require__(72);
	var SmartCatalogSearch = /** @class */ (function () {
	    function SmartCatalogSearch($element, $timeout, $state, appConfigModel, ngComponentCommunicatorService, ngAPUserModeConfig, ngFeedbackSuggestedPlanModel) {
	        this.$element = $element;
	        this.$timeout = $timeout;
	        this.$state = $state;
	        this.appConfigModel = appConfigModel;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.ngFeedbackSuggestedPlanModel = ngFeedbackSuggestedPlanModel;
	        this.isSmartCatalogEnabled = false;
	        this.courseGroupValue = '';
	        this.isSwapModeEnabled = false;
	        this.parentCourse = { plannedCourse: {}, programSlot: {} };
	        this.termId = -1;
	        this.courseCd = '';
	        this.selectedCourseNk = '';
	        this.showAddtoTermDialog = false;
	        this.isWildCard = false;
	        this.userMode = 'student';
	        this.courseGroupInfo = {
	            courseGroupValue: '',
	            termId: -1,
	            isInSwapMode: false,
	            parentCourse: { plannedCourse: {}, programSlot: {} },
	            isWildCard: false
	        };
	    }
	    SmartCatalogSearch.prototype.$onInit = function () {
	        this.ngComponentCommunicatorService.publish('SMART_SEARCH_TOGGLE_ON');
	    };
	    SmartCatalogSearch.prototype.$onDestroy = function () {
	        this.ngComponentCommunicatorService.publish('SMART_SEARCH_TOGGLE_OFF');
	    };
	    /* tslint:disable:cognitive-complexity */
	    SmartCatalogSearch.prototype.$onChanges = function () {
	        var _this = this;
	        this.isSmartCatalogEnabled = this.appConfigModel.isFeatureEnabled('academicplan-smart_catalog');
	        var feature = this.$element[0].querySelector('#smartCatalogFeature');
	        var advisorInViewMode = plan_feedback_servant_1.PlanFeedbackServant.isPlanReadOnlyMode(this.ngFeedbackSuggestedPlanModel.read());
	        this.userMode = this.ngAPUserModeConfig.isAdvisor() ? 'advisor' : 'student';
	        var courseDetailsRoute;
	        var courseDetailsState;
	        if (this.ngAPUserModeConfig.isAdvisor()) {
	            courseDetailsRoute = "advisor/plan/" + (advisorInViewMode ? 'view' : 'edit') + "/default/smart_course_details";
	            courseDetailsState = "ap-advisor.plan." + (advisorInViewMode ? 'view' : 'edit') + ".default.smart_course_details";
	        }
	        else {
	            courseDetailsRoute = 'my/planner/plan/default/smart_course_details';
	            courseDetailsState = 'my.planner.plan.default.smart_course_details';
	        }
	        this.courseGroupInfo = {
	            courseGroupValue: this.courseGroupValue,
	            termId: this.termId,
	            isInSwapMode: this.isSwapModeEnabled,
	            parentCourse: this.parentCourse,
	            isWildCard: this.isWildCard
	        };
	        if (!_4.isEmpty(this.courseGroupInfo.courseGroupValue)) {
	            if (this.ngAPUserModeConfig.isAdvisor()) {
	                courseDetailsState = "ap-advisor.plan." + (advisorInViewMode ? 'view' : 'edit') + ".coursegroup.course_details";
	            }
	            else {
	                courseDetailsState = 'my.planner.plan.coursegroup.course_details';
	            }
	        }
	        var upgrade = new sgd_metadata_1.HIPModifier(courseDetailsRoute, courseDetailsState, this.courseGroupInfo);
	        if (feature && feature.invoke) {
	            feature.invoke(this.smartSearchConfiguration).then(function () {
	                var nameSpace = feature['ns'];
	                var searchQueryI = HIP.db.gid.queryOne('search_query', nameSpace);
	                searchQueryI.addEventListener('invoke-ended', function () {
	                    return _this.$element[0].querySelector('hi-grid').removeAttribute('sticky-header');
	                });
	                HIP.db.gid.queryOne('add_to_term', nameSpace).addEventListener('invoke-ended', function (event) {
	                    _this.selectedCourseNk = _4.get(event, 'detail.value.nk', '');
	                    _this.courseCd = _4.get(event, 'detail.value.cd', '');
	                    _this.openDialog();
	                });
	                HIP.db.gid.queryOne('course_details', nameSpace).addEventListener('invoke-ended', function (event) {
	                    var _courseNk = _4.get(event, 'detail.value.nk', '');
	                    var courseDetails = {
	                        courseNk: _courseNk
	                    };
	                    if (_4.includes(courseDetailsState, 'smart_course_details')) {
	                        courseDetails = tslib_1.__assign(tslib_1.__assign({}, courseDetails), { slotType: 'COURSE', allowAddToTerm: true });
	                    }
	                    else {
	                        courseDetails = tslib_1.__assign(tslib_1.__assign({}, courseDetails), { isFromSmartCat: true });
	                    }
	                    var params = {
	                        courseDetails: courseDetails
	                    };
	                    _this.openCourseDetails(courseDetailsState, params);
	                });
	            });
	            upgrade.invoke();
	        }
	        ess.on({ status: 'failure' }, function (e) {
	            console.log(e);
	        });
	    };
	    SmartCatalogSearch.prototype.openDialog = function () {
	        var _this = this;
	        this.$timeout(function () {
	            _this.showAddtoTermDialog = true;
	        }, 0);
	    };
	    SmartCatalogSearch.prototype.openCourseDetails = function (state, params) {
	        var _this = this;
	        this.$timeout(function () {
	            _this.$state.go(state, params);
	        }, 0);
	    };
	    Object.defineProperty(SmartCatalogSearch.prototype, "smartSearchConfiguration", {
	        get: function () {
	            var searchConfiguration = search_prefab_configuration_1.smartCatalogConfiguration(this.userMode);
	            if (ap_smart_search_servant_1.ApSmartSearchServant.isLargeCourseGroupSmartSearch(this.courseGroupInfo)) {
	                searchConfiguration = large_course_group_smart_search_configuration_1.largeCourseGroupSmartSearchConfiguration(this.userMode, this.courseGroupInfo);
	            }
	            return searchConfiguration;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return SmartCatalogSearch;
	}());
	exports.SmartCatalogSearch = SmartCatalogSearch;
	var SmartCatalogSearchComponent = /** @class */ (function () {
	    function SmartCatalogSearchComponent() {
	        this.bindings = {
	            courseGroupValue: '<?',
	            termId: '<?',
	            isSwapModeEnabled: '<?',
	            parentCourse: '<?',
	            isWildCard: '<?'
	        };
	        this.controller = SmartCatalogSearch;
	        this.templateUrl =
	            'capability-ng-academic-planner/src/smart_catalog/components/smart_search/smart_catalog_search.html';
	    }
	    return SmartCatalogSearchComponent;
	}());
	angular.module('capability-ng-smartcatalog').component('smartCatalogSearch', new SmartCatalogSearchComponent());


/***/ }),
/* 1443 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	angular.module('capability-ng-smartcatalog').config(function ($urlRouterProvider) {
	    var isValidState = function (state) {
	        return (state &&
	            (_4.includes(state, 'my.planner.plan.default') ||
	                _4.includes(state, 'ap-advisor.plan.edit.default') ||
	                _4.includes(state, 'ap-advisor.plan.view.default') ||
	                _4.includes(state, 'my.planner.plan.coursegroup') ||
	                _4.includes(state, 'ap-advisor.plan.view.coursegroup') ||
	                _4.includes(state, 'ap-advisor.plan.edit.coursegroup')));
	    };
	    var matchCallback = function ($match, $stateParams, $state) {
	        if (!_4.isEmpty($match.courseNk) && $state.current.name && isValidState($state.current.name)) {
	            if (_4.includes($state.current.name, 'smart_course_details')) {
	                $state.go('^.smart_course_details', { courseDetails: tslib_1.__assign(tslib_1.__assign({}, $match), { allowAddToTerm: true }) });
	            }
	            else if (_4.includes($state.current.name, 'coursegroup')) {
	                if (_4.includes($state.current.name, 'course_details')) {
	                    $state.go('^.course_details', { courseDetails: tslib_1.__assign(tslib_1.__assign({}, $match), { isFromSmartCat: true }) });
	                }
	                else {
	                    $state.go('.course_details', { courseDetails: tslib_1.__assign(tslib_1.__assign({}, $match), { isFromSmartCat: true }) });
	                }
	            }
	            else {
	                $state.go('.smart_course_details', { courseDetails: tslib_1.__assign(tslib_1.__assign({}, $match), { allowAddToTerm: true }) });
	            }
	        }
	    };
	    $urlRouterProvider.when('/my/planner/plan/default/smart_course_details/:courseNk/', matchCallback);
	    $urlRouterProvider.when('/my/planner/plan/default/smart_course_details/:courseNk', matchCallback);
	    $urlRouterProvider.when('/advisor/plan/view/default/smart_course_details/:courseNk/', matchCallback);
	    $urlRouterProvider.when('/advisor/plan/view/default/smart_course_details/:courseNk', matchCallback);
	    $urlRouterProvider.when('/advisor/plan/edit/default/smart_course_details/:courseNk/', matchCallback);
	    $urlRouterProvider.when('/advisor/plan/edit/default/smart_course_details/:courseNk', matchCallback);
	    $urlRouterProvider.when('/my/planner/plan/coursegroup/:termId/:slotId/smart_course_details/:courseNk', matchCallback);
	    $urlRouterProvider.when('/advisor/plan/view/coursegroup/:termId/:slotId/smart_course_details/:courseNk', matchCallback);
	    $urlRouterProvider.when('/advisor/plan/edit/coursegroup/:termId/:slotId/smart_course_details/:courseNk', matchCallback);
	});


/***/ }),
/* 1444 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var ap_scl_options_item_builder_1 = __webpack_require__(513);
	angular.module('capability-ng-academic-planner').factory('ngAPSclOptionsDatasource', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: ap_scl_options_item_builder_1.APSclOptionsItem,
	        updateMode: 'merge',
	        autoId: true
	    });
	});


/***/ }),
/* 1445 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-academic-planner').factory('ngCacheSCLSearchConfigCommandModel', function () {
	    return new utility_ts_orm_1.Model({
	        requests: {}
	    });
	});


/***/ }),
/* 1446 */
880,
/* 1447 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('commitSuggestedPlanCommand', function commitSuggestedPlanCommand($http, log, defineCommand, ngApStudentDetailsModel) {
	    return defineCommand('commitSuggestedPlanCommand', function (deferred, commentMessage, planId) {
	        $http
	            .post("/academicplan/suggested_plan/" + planId + "/commit", {
	            comment: {
	                message: commentMessage,
	                recipient: ngApStudentDetailsModel.read().user_id
	            }
	        })
	            .then(function (response) {
	            deferred.resolve(response);
	        })
	            .catch(function (error) {
	            log.disable();
	            deferred.reject(error);
	            log.enable();
	        });
	    });
	});


/***/ }),
/* 1448 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .service('loadProgramAndTermsDataCommand', function loadProgramAndTermsDataCommand($http, log, defineCommandORM, ngAPTermsDatasource, ngAPModel) {
	    return defineCommandORM('loadProgramAndTermsDataCommand', function (deferred) {
	        $http
	            .get("/academicplan/student_program_and_terms/")
	            .then(function (response) {
	            var _a;
	            ngAPTermsDatasource.write(response.data.term);
	            var program = _4.first(response.data.program);
	            ngAPModel.write({
	                program: (_a = {},
	                    _a[program.id] = program,
	                    _a)
	            });
	            deferred.resolve(response);
	        })
	            .catch(function (error) {
	            log.disable();
	            deferred.reject(error);
	            log.enable();
	        });
	    });
	});


/***/ }),
/* 1449 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('loadBlockedSuggestionsCommand', function loadBlockedSuggestionsCommand($http, log, ngConflictingSuggestionsModel, ngPlanFeebackCourseGroupsDatasource, ngPlanFeebackCoursesDatasource, ngPlanFeebackTermsDatasource, ngFeedbackSuggestedPlanModel, ngPlanFeedbackProgramSlotsDatasource, defineCommandORM) {
	    return defineCommandORM('loadBlockedSuggestionsCommand', function (deferred) {
	        $http
	            .get("/academicplan/suggested_plan/" + ngFeedbackSuggestedPlanModel.read().id + "/diff_with_conflicts/")
	            .then(function (_a) {
	            var data = _a.data;
	            ngPlanFeedbackProgramSlotsDatasource.clear().write(data.feedback_programslot_statuses);
	            ngPlanFeebackCoursesDatasource.clear().write(data.feedback_courses);
	            ngPlanFeebackCourseGroupsDatasource.clear().write(data.feedback_course_groups);
	            ngPlanFeebackTermsDatasource.clear().write(data.feedback_terms);
	            ngConflictingSuggestionsModel.clear().write({
	                conflicting_resolution_ids: data.conflicting_resolution_ids
	            });
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1450 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .service('performActionOnBlockedSuggestionsCommand', function performActionOnBlockedSuggestionsCommand($http, defineCommandORM, ngAPNotificationDelegate) {
	    return defineCommandORM('performActionOnBlockedSuggestionsCommand', function (deferred, suggestedPlanId, resolutionIds, action) {
	        var apiParams = _4.map(resolutionIds, function (resolutionId) { return ({
	            resolution: resolutionId,
	            action: action
	        }); });
	        var applySuggIndicator = 'apply-suggestion-indicator';
	        ngAPNotificationDelegate.info({
	            content: 'Applying acceptable suggestions...',
	            name: applySuggIndicator
	        });
	        $http
	            .post("/academicplan/suggested_plan_resolution/" + suggestedPlanId + "/unblock/", apiParams)
	            .then(function (response) {
	            ngAPNotificationDelegate.dismissAlertByName(applySuggIndicator);
	            ngAPNotificationDelegate.success('Successfully applied acceptable suggestions!');
	            deferred.resolve();
	        })
	            .catch(function (error) {
	            ngAPNotificationDelegate.dismissAlertByName(applySuggIndicator);
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 1451 */
/***/ (function(module, exports) {

	var AdvisorBlockedSuggestion = /** @class */ (function () {
	    function AdvisorBlockedSuggestion($state) {
	        this.$state = $state;
	    }
	    AdvisorBlockedSuggestion.prototype.navigateToBlockedSuggestion = function () {
	        this.$state.go("ap-advisor.retain_suggestions.blocked_suggestions");
	    };
	    return AdvisorBlockedSuggestion;
	}());
	angular.module('capability-ng-academic-planner').component('backToBlockedSuggestions', {
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/blocked_suggestions/components/back_to_blocked_suggestions/back_to_blocked_suggestions.html',
	    controller: AdvisorBlockedSuggestion
	});


/***/ }),
/* 1452 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var BlockedAcceptableSuggestions = /** @class */ (function () {
	    function BlockedAcceptableSuggestions(ngAPAdvisorBlockedSuggestionsQuery) {
	        this.ngAPAdvisorBlockedSuggestionsQuery = ngAPAdvisorBlockedSuggestionsQuery;
	    }
	    return BlockedAcceptableSuggestions;
	}());
	angular.module('capability-ng-academic-planner').component('blockedAcceptableSuggestions', {
	    controller: BlockedAcceptableSuggestions,
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/blocked_suggestions/components/blocked_acceptable_suggestions/blocked_acceptable_suggestions.html'
	});


/***/ }),
/* 1453 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var BlockedConflictingSuggestions = /** @class */ (function () {
	    function BlockedConflictingSuggestions(ngAPAdvisorBlockedSuggestionsQuery) {
	        this.ngAPAdvisorBlockedSuggestionsQuery = ngAPAdvisorBlockedSuggestionsQuery;
	    }
	    return BlockedConflictingSuggestions;
	}());
	angular.module('capability-ng-academic-planner').component('blockedConflictingSuggestions', {
	    controller: BlockedConflictingSuggestions,
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/blocked_suggestions/components/blocked_conflicting_suggestions/blocked_conflicting_suggestions.html'
	});


/***/ }),
/* 1454 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var AdvisorBlockedHeader = /** @class */ (function () {
	    function AdvisorBlockedHeader(ngAPAdvisorHeaderDetailsQuery, ngFeedbackSuggestedPlanModel) {
	        this.ngAPAdvisorHeaderDetailsQuery = ngAPAdvisorHeaderDetailsQuery;
	        this.statusText = '';
	        this.statusText = _4.toLower(ngFeedbackSuggestedPlanModel.read().previous_status || '');
	    }
	    return AdvisorBlockedHeader;
	}());
	angular.module('capability-ng-academic-planner').component('advisorBlockedHeader', {
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/blocked_suggestions/components/blocked_header/blocked_header.html',
	    controller: AdvisorBlockedHeader
	});


/***/ }),
/* 1455 */
/***/ (function(module, exports) {

	angular.module('capability-ng-academic-planner').component('blockedSuggestedPlanLargeCourseGroup', {
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/blocked_suggestions/components/blocked_suggested_plan_large_course_group/blocked_suggested_plan_large_course_group.html'
	});


/***/ }),
/* 1456 */
/***/ (function(module, exports) {

	angular.module('capability-ng-academic-planner').component('blockedSuggestionFixedFooter', {
	    transclude: true,
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/blocked_suggestions/components/blocked_suggestion_fixed_footer/blocked_suggestion_fixed_footer.html'
	});


/***/ }),
/* 1457 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var AdvisorBlockedSuggestions = /** @class */ (function () {
	    function AdvisorBlockedSuggestions(ngAPStudentDetailsQuery, createEmptySuggestedPlanCommand, $state, ngFeedbackSuggestedPlanModel, loadPlanFeedbackCommand, ngAPNotificationDelegate, performActionOnBlockedSuggestionsCommand, ngAPAdvisorBlockedSuggestionsQuery) {
	        this.ngAPStudentDetailsQuery = ngAPStudentDetailsQuery;
	        this.createEmptySuggestedPlanCommand = createEmptySuggestedPlanCommand;
	        this.$state = $state;
	        this.ngFeedbackSuggestedPlanModel = ngFeedbackSuggestedPlanModel;
	        this.loadPlanFeedbackCommand = loadPlanFeedbackCommand;
	        this.ngAPNotificationDelegate = ngAPNotificationDelegate;
	        this.performActionOnBlockedSuggestionsCommand = performActionOnBlockedSuggestionsCommand;
	        this.ngAPAdvisorBlockedSuggestionsQuery = ngAPAdvisorBlockedSuggestionsQuery;
	        this.openDiscardDialog = false;
	    }
	    AdvisorBlockedSuggestions.prototype.sendApplicableSuggestions = function () {
	        var _this = this;
	        var suggestionIds = _4.uniq(_4.map(this.ngAPAdvisorBlockedSuggestionsQuery.result.acceptableSuggestions, 'resolution'));
	        return this.performActionOnBlockedSuggestionsCommand(this.ngFeedbackSuggestedPlanModel.read().id, suggestionIds, 'ACCEPT').then(function () {
	            _this.$state.go('ap-advisor.plan.edit.default', {}, { reload: true });
	        });
	    };
	    AdvisorBlockedSuggestions.prototype.discardPlans = function () {
	        this.openDiscardDialog = true;
	    };
	    return AdvisorBlockedSuggestions;
	}());
	angular.module('capability-ng-academic-planner').component('advisorBlockedSuggestions', {
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/blocked_suggestions/components/blocked_suggestions/blocked_suggestions.html',
	    controller: AdvisorBlockedSuggestions
	});


/***/ }),
/* 1458 */
/***/ (function(module, exports) {

	angular.module('capability-ng-academic-planner').component('blockedSuggestionsListing', {
	    bindings: {
	        suggestionList: '<',
	        iconTheme: '@',
	        icon: '@',
	        suggestionTypeText: '@'
	    },
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/blocked_suggestions/components/blocked_suggestions_listing/blocked_suggestions_listing.html'
	});


/***/ }),
/* 1459 */
/***/ (function(module, exports) {

	angular.module('capability-ng-academic-planner').component('advisorRetainSuggestionsSuggestedPlan', {
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/blocked_suggestions/components/blocked_suggestions_suggested_plan/blocked_suggestions_suggested_plan.html'
	});


/***/ }),
/* 1460 */
/***/ (function(module, exports) {

	var AdvisorBlockedViewSuggestedPlan = /** @class */ (function () {
	    function AdvisorBlockedViewSuggestedPlan($state) {
	        this.$state = $state;
	    }
	    AdvisorBlockedViewSuggestedPlan.prototype.navigateToViewSuggestedPlan = function () {
	        this.$state.go("ap-advisor.retain_suggestions.suggested_plan.default");
	    };
	    return AdvisorBlockedViewSuggestedPlan;
	}());
	angular.module('capability-ng-academic-planner').component('blockedViewSuggestedPlan', {
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/blocked_suggestions/components/blocked_view_suggested_plan/blocked_view_suggested_plan.html',
	    controller: AdvisorBlockedViewSuggestedPlan
	});


/***/ }),
/* 1461 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-academic-planner').factory('ngConflictingSuggestionsModel', function () {
	    return new utility_ts_orm_1.Model({
	        conflicting_resolution_ids: []
	    });
	});


/***/ }),
/* 1462 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var plan_feedback_servant_1 = __webpack_require__(13);
	var AdvisorBlockedSuggestionsQuery = /** @class */ (function () {
	    function AdvisorBlockedSuggestionsQuery(ngConflictingSuggestionsModel, QueryMediator, ngPlanFeebackTermsDatasource, ngPlanFeebackCoursesDatasource, ngPlanFeebackCourseGroupsDatasource, ngPlanFeedbackProgramSlotsDatasource) {
	        this.ngConflictingSuggestionsModel = ngConflictingSuggestionsModel;
	        this.ngPlanFeebackTermsDatasource = ngPlanFeebackTermsDatasource;
	        this.ngPlanFeebackCoursesDatasource = ngPlanFeebackCoursesDatasource;
	        this.ngPlanFeebackCourseGroupsDatasource = ngPlanFeebackCourseGroupsDatasource;
	        this.ngPlanFeedbackProgramSlotsDatasource = ngPlanFeedbackProgramSlotsDatasource;
	        QueryMediator.registerQuery(this, ngConflictingSuggestionsModel);
	    }
	    AdvisorBlockedSuggestionsQuery.prototype.run = function () {
	        var conflictingIds = this.ngConflictingSuggestionsModel.read().conflicting_resolution_ids;
	        var conflictingIdObj = _4.zipObject(conflictingIds, conflictingIds);
	        var partitionSuggestions = function (suggestion) {
	            return suggestion.resolution && conflictingIdObj[suggestion.resolution] === suggestion.resolution;
	        };
	        var feedbackCourses = this.ngPlanFeebackCoursesDatasource
	            .metasource()
	            .derived()
	            .filter(function (feedbackCourse) { return plan_feedback_servant_1.PlanFeedbackServant.isValidFeedback(feedbackCourse); });
	        var _a = _4.partition(feedbackCourses, partitionSuggestions), conflictingCourseSuggestions = _a[0], acceptableCourseSuggestions = _a[1];
	        var feedbackCourseGroups = this.ngPlanFeebackCourseGroupsDatasource
	            .metasource()
	            .derived()
	            .filter(function (feedbackCourse) { return plan_feedback_servant_1.PlanFeedbackServant.isValidFeedback(feedbackCourse); });
	        var _b = _4.partition(feedbackCourseGroups, partitionSuggestions), conflictingCourseGroupsSuggestions = _b[0], acceptableCourseGroupsSuggestions = _b[1];
	        var feedbackProgramSlots = this.ngPlanFeedbackProgramSlotsDatasource
	            .values()
	            .filter(function (feedback) { return plan_feedback_servant_1.PlanFeedbackServant.isValidFeedback(feedback); });
	        var _c = _4.partition(feedbackProgramSlots, partitionSuggestions), conflictingProgramSlotsSuggestions = _c[0], acceptableProgramSlotsSuggestions = _c[1];
	        var conflictingSuggestions = plan_feedback_servant_1.PlanFeedbackServant.getSuggestionsForCourseGroups(conflictingCourseGroupsSuggestions)
	            .concat(plan_feedback_servant_1.PlanFeedbackServant.getSuggestionsForCourses(conflictingCourseSuggestions))
	            .concat(plan_feedback_servant_1.PlanFeedbackServant.getSuggestionsForProgramSlots(conflictingProgramSlotsSuggestions));
	        var acceptableSuggestions = plan_feedback_servant_1.PlanFeedbackServant.getSuggestionsForCourseGroups(acceptableCourseGroupsSuggestions)
	            .concat(plan_feedback_servant_1.PlanFeedbackServant.getSuggestionsForCourses(acceptableCourseSuggestions))
	            .concat(plan_feedback_servant_1.PlanFeedbackServant.getSuggestionsForProgramSlots(acceptableProgramSlotsSuggestions));
	        this.__result = {
	            conflictingSuggestions: conflictingSuggestions,
	            acceptableSuggestions: acceptableSuggestions
	        };
	        return this;
	    };
	    Object.defineProperty(AdvisorBlockedSuggestionsQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return AdvisorBlockedSuggestionsQuery;
	}());
	exports.AdvisorBlockedSuggestionsQuery = AdvisorBlockedSuggestionsQuery;
	angular
	    .module('capability-ng-academic-planner')
	    .service('ngAPAdvisorBlockedSuggestionsQuery', AdvisorBlockedSuggestionsQuery);


/***/ }),
/* 1463 */
880,
/* 1464 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var plan_feedback_servant_1 = __webpack_require__(13);
	angular
	    .module('capability-ng-academic-planner')
	    .service('acceptDeclinePlanFeedbacksCommand', function acceptDeclinePlanFeedbacksCommand($http, defineCommandORM, ngPlanFeebackCoursesDatasource, ngPlanFeedbackProgramSlotsDatasource, ngPlanFeebackCourseGroupsDatasource) {
	    return defineCommandORM('acceptDeclinePlanFeedbacksCommand', function (deferred, suggestedPlanId, feedbacks, action) {
	        var apiParams = _4.map(_4.uniqBy(feedbacks, 'resolution'), function (feedback) { return ({
	            resolution: feedback.resolution,
	            action: action
	        }); });
	        $http
	            .post("/academicplan/suggested_plan_resolution/" + suggestedPlanId + "/resolve_transaction/", apiParams)
	            .then(function (response) {
	            var resolutions = _4.uniq(_4.map(feedbacks, function (feedback) { return feedback.resolution; }));
	            plan_feedback_servant_1.PlanFeedbackServant.updateDataSourcesAfterAcceptDecline(ngPlanFeebackCoursesDatasource, action, resolutions);
	            plan_feedback_servant_1.PlanFeedbackServant.updateDataSourcesAfterAcceptDecline(ngPlanFeebackCourseGroupsDatasource, action, resolutions);
	            plan_feedback_servant_1.PlanFeedbackServant.updateDataSourcesAfterAcceptDecline(ngPlanFeedbackProgramSlotsDatasource, action, resolutions);
	            deferred.resolve();
	        })
	            .catch(function (error) {
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 1465 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('changeSuggestedPlanStatusCommand', function changeSuggestedPlanStatusCommand($http, log, ngFeedbackSuggestedPlanModel, defineCommand) {
	    return defineCommand('changeSuggestedPlanStatusCommand', function (deferred, status) {
	        var suggestedPlanId = ngFeedbackSuggestedPlanModel.read().id;
	        $http
	            .put("/academicplan/suggested_plan/" + suggestedPlanId, {
	            status: status.toUpperCase()
	        })
	            .then(function (response) {
	            deferred.resolve(response);
	        })
	            .catch(function (error) {
	            log.disable();
	            deferred.reject(error);
	            log.enable();
	        });
	    });
	});


/***/ }),
/* 1466 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('deleteSuggestedPlanCommand', function deleteSuggestedPlanCommand($http, log, ngFeedbackSuggestedPlanModel, defineCommand, ngAPNotificationDelegate) {
	    return defineCommand('deleteSuggestedPlanCommand', function (deferred, status) {
	        var suggestedPlanId = ngFeedbackSuggestedPlanModel.read().id;
	        $http
	            .delete("/academicplan/suggested_plan/" + suggestedPlanId)
	            .then(function (response) {
	            ngFeedbackSuggestedPlanModel.clear();
	            deferred.resolve(response);
	        })
	            .catch(function (error) {
	            ngAPNotificationDelegate.error("Unable to delete the draft of suggestions: " + error.data.detail);
	            log.disable();
	            deferred.reject(error);
	            log.enable();
	        });
	    });
	});


/***/ }),
/* 1467 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var plan_feedback_servant_1 = __webpack_require__(13);
	angular
	    .module('capability-ng-academic-planner')
	    .service('dropAndCreateSuggestedPlanCommand', function (createEmptySuggestedPlanCommand, deleteSuggestedPlanCommand, defineCommand, ngFeedbackSuggestedPlanModel) {
	    return defineCommand('dropAndCreateSuggestedPlanCommand', function (deferred) {
	        if (plan_feedback_servant_1.PlanFeedbackServant.isPlanReadOnlyMode(ngFeedbackSuggestedPlanModel.read())) {
	            return createEmptySuggestedPlanCommand();
	        }
	        return deleteSuggestedPlanCommand().finally(function () {
	            return createEmptySuggestedPlanCommand().finally(function () { return deferred.resolve(); });
	        });
	    });
	});


/***/ }),
/* 1468 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	// TODO: Same as loadAcademicPlanCommand Deprecate and delete.
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(7);
	angular
	    .module('capability-ng-academic-planner')
	    .service('loadAdvisorSuggestedPlanCommand', function loadAdvisorSuggestedPlanCommand($http, log, ngFeedbackSuggestedPlanModel, updatePlanDataHelper, defineCommandORM) {
	    return defineCommandORM('loadAdvisorSuggestedPlanCommand', function (deferred, studentNk) {
	        $http
	            .get("reg/advisorplan", {
	            headers: {
	                'student-id': studentNk
	            }
	        })
	            .then(function (response) {
	            var previous_status = _4.get(ngFeedbackSuggestedPlanModel.read(), 'previous_status', '');
	            ngFeedbackSuggestedPlanModel
	                .clear()
	                .write(tslib_1.__assign(tslib_1.__assign({}, response.data.suggested_plan), { previous_status: previous_status }));
	            updatePlanDataHelper(response);
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.disable();
	            deferred.reject(e);
	            log.enable();
	        });
	    });
	});


/***/ }),
/* 1469 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .service('loadPlanFeedbackCommand', function loadPlanFeedbackCommand($http, log, defineCommandORM, ngPlanFeebackCourseGroupsDatasource, ngPlanFeebackCoursesDatasource, ngPlanFeebackTermsDatasource, ngFeedbackSuggestedPlanModel, ngPlanFeedbackProgramSlotsDatasource) {
	    return defineCommandORM('loadPlanFeedbackCommand', function (deferred) {
	        $http
	            .get("/academicplan/suggested_plan/" + ngFeedbackSuggestedPlanModel.read().id + "/diff_from_resolutions")
	            .then(function (response) {
	            var data = response.data;
	            // This needs to be first as feedback course group/feedback course requires this entry to be there
	            ngPlanFeedbackProgramSlotsDatasource.clear().write(data.feedback_programslot_statuses);
	            ngPlanFeebackCoursesDatasource.clear().write(data.feedback_courses);
	            ngPlanFeebackCourseGroupsDatasource.clear().write(data.feedback_course_groups);
	            ngPlanFeebackTermsDatasource.clear().write(data.feedback_terms);
	            ngFeedbackSuggestedPlanModel.write(data.suggested_plan);
	            ngPlanFeedbackProgramSlotsDatasource.clear().write(data.feedback_programslot_statuses);
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1470 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .service('loadSuggestedPlanStatusCommand', function loadSuggestedPlanStatusCommand($http, log, ngFeedbackSuggestedPlanModel, defineCommandORM) {
	    return defineCommandORM('loadSuggestedPlanStatusCommand', function (deferred, filterBy) {
	        var suggestedPlanUrl = filterBy
	            ? "/academicplan/suggested_plan/?status=" + filterBy
	            : "/academicplan/suggested_plan/";
	        $http
	            .get(suggestedPlanUrl)
	            .then(function (response) {
	            var suggestedPlan = _4.last(_4.sortBy(response.data, ['iteration', 'id']));
	            var partialPlan = _4.pick(suggestedPlan, [
	                'created_ts',
	                'id',
	                'status',
	                'committed_by',
	                'from_editing',
	                'previous_status',
	                'edited_by',
	                'edited_ts',
	                'updated_ts'
	            ]);
	            ngFeedbackSuggestedPlanModel.write(partialPlan);
	            deferred.resolve(suggestedPlan);
	        })
	            .catch(function (error) {
	            log.disable();
	            deferred.reject(error);
	            log.enable();
	        });
	    });
	});


/***/ }),
/* 1471 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-academic-planner')
	    .factory('setSelectedLinkedSuggestionCommand', function (defineCommandORM, ngFeedbackSelectedLinkedSuggestionModel) {
	    return defineCommandORM('setSelectedLinkedSuggestionCommand', function (deferred, nks, resolutionIds, type, action) {
	        ngFeedbackSelectedLinkedSuggestionModel.clear().write({
	            nks: nks,
	            type: type,
	            resolutionIds: resolutionIds,
	            action: action
	        });
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1472 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var LinkedSuggestionActionPopup = /** @class */ (function () {
	    function LinkedSuggestionActionPopup($state, $element, phxFocusDelegate, phxAxReturnFocusFactory, ngAPFeedbackLinkedSuggestionsQuery, feedbackAcceptDeclineRevokeHelper) {
	        this.$state = $state;
	        this.$element = $element;
	        this.phxFocusDelegate = phxFocusDelegate;
	        this.phxAxReturnFocusFactory = phxAxReturnFocusFactory;
	        this.ngAPFeedbackLinkedSuggestionsQuery = ngAPFeedbackLinkedSuggestionsQuery;
	        this.feedbackAcceptDeclineRevokeHelper = feedbackAcceptDeclineRevokeHelper;
	        this.isOpened = true;
	    }
	    LinkedSuggestionActionPopup.prototype.openedChanged = function () {
	        this.$state.__goToPrevious__();
	        this.phxFocusDelegate.focus(this.phxAxReturnFocusFactory.getFocusId());
	    };
	    LinkedSuggestionActionPopup.prototype.performActionOnSuggestions = function (action) {
	        var _this = this;
	        this.feedbackAcceptDeclineRevokeHelper(this.ngAPFeedbackLinkedSuggestionsQuery.result.suggestions, action).then(function () {
	            _this.closeModal();
	        });
	    };
	    LinkedSuggestionActionPopup.prototype.acceptAllClicked = function () {
	        this.performActionOnSuggestions('ACCEPT');
	    };
	    LinkedSuggestionActionPopup.prototype.declineAllClicked = function () {
	        this.performActionOnSuggestions('REJECT');
	    };
	    LinkedSuggestionActionPopup.prototype.closeModal = function () {
	        this.isOpened = false;
	    };
	    return LinkedSuggestionActionPopup;
	}());
	angular.module('capability-ng-academic-planner').component('linkedSuggestionActionPopup', {
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/plan_feedback/components/linked_suggestions_action_popup/linked_suggestions_action_popup.html',
	    controller: LinkedSuggestionActionPopup
	});


/***/ }),
/* 1473 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var plan_feedback_highlight_event_name_strategy_1 = __webpack_require__(54);
	var PlanFeedbackAcceptReject = /** @class */ (function () {
	    function PlanFeedbackAcceptReject(ngComponentCommunicatorService, $element, performActionOnFeedbackHelper) {
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.$element = $element;
	        this.performActionOnFeedbackHelper = performActionOnFeedbackHelper;
	    }
	    PlanFeedbackAcceptReject.prototype.performAcceptDecline = function (actionType) {
	        this.performActionOnFeedbackHelper([this.feedback], actionType, [this.feedback.transactionNK], this.feedback.type);
	    };
	    PlanFeedbackAcceptReject.prototype.declineClicked = function () {
	        this.performAcceptDecline('REJECT');
	    };
	    PlanFeedbackAcceptReject.prototype.acceptClicked = function () {
	        this.performAcceptDecline('ACCEPT');
	    };
	    PlanFeedbackAcceptReject.prototype.emphasizeSuggestionTileInTerm = function ($event) {
	        $event.stopPropagation();
	        $event.preventDefault();
	        this.$element.find('.plan-feedback-accept-reject').addClass('ap-plan-feedback-hover-class');
	        if (!plan_feedback_highlight_event_name_strategy_1.ApPlanFeedbackEmphasizeEventNameStrategy.includes(this.feedback.type)) {
	            return;
	        }
	        this.ngComponentCommunicatorService.publish(plan_feedback_highlight_event_name_strategy_1.ApPlanFeedbackEmphasizeEventNameStrategy[this.feedback.type](this.feedback.transactionNK));
	    };
	    PlanFeedbackAcceptReject.prototype.deEmphasizeSuggestionTileInTerm = function ($event) {
	        this.$element.find('.plan-feedback-accept-reject').removeClass('ap-plan-feedback-hover-class');
	        if (!plan_feedback_highlight_event_name_strategy_1.ApPlanFeedbackDeEmphasizeEventNameStrategy.includes(this.feedback.type)) {
	            return;
	        }
	        this.ngComponentCommunicatorService.publish(plan_feedback_highlight_event_name_strategy_1.ApPlanFeedbackDeEmphasizeEventNameStrategy[this.feedback.type](this.feedback.transactionNK));
	    };
	    return PlanFeedbackAcceptReject;
	}());
	angular.module('capability-ng-academic-planner').component('planFeedbackAcceptReject', {
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/plan_feedback/components/plan_feedback_accept_reject/plan_feedback_accept_reject.html',
	    controller: PlanFeedbackAcceptReject,
	    bindings: {
	        feedback: '<'
	    }
	});


/***/ }),
/* 1474 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PlanFeedbackAcceptedAllPopup = /** @class */ (function () {
	    function PlanFeedbackAcceptedAllPopup($state, $element, $timeout, ngAPNotificationDelegate, appConfigModel, changeSuggestedPlanStatusCommand) {
	        this.$state = $state;
	        this.$element = $element;
	        this.$timeout = $timeout;
	        this.ngAPNotificationDelegate = ngAPNotificationDelegate;
	        this.appConfigModel = appConfigModel;
	        this.changeSuggestedPlanStatusCommand = changeSuggestedPlanStatusCommand;
	        this.open = false;
	        this.advisorLabel = 'advisor';
	    }
	    PlanFeedbackAcceptedAllPopup.prototype.$onChanges = function () {
	        this.advisorLabel = _4.get(this.appConfigModel, 'model.member_configs.advisor_label', 'advisor');
	    };
	    PlanFeedbackAcceptedAllPopup.prototype.openedChanged = function (event) {
	        var _this = this;
	        var popupOpened = event.detail.value;
	        if (popupOpened) {
	            return;
	        }
	        this.changeSuggestedPlanStatusCommand('RESOLVED')
	            .then(function () {
	            _this.ngAPNotificationDelegate.success('Successfully applied suggestions to your plan.');
	            _this.$timeout(function () {
	                _this.$state.go('my.planner.plan.default');
	            }, 300);
	        })
	            .catch(function (error) {
	            _this.ngAPNotificationDelegate.error("Unable to apply suggestion to your plan.");
	        });
	    };
	    PlanFeedbackAcceptedAllPopup.prototype.clickedGotoMyPlan = function () {
	        this.open = false;
	    };
	    return PlanFeedbackAcceptedAllPopup;
	}());
	angular.module('capability-ng-academic-planner').component('planFeedbackAcceptedAllPopup', {
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/plan_feedback/components/plan_feedback_accepted_all_popup/plan_feedback_accepted_all_popup.html',
	    controller: PlanFeedbackAcceptedAllPopup,
	    bindings: {
	        open: '<'
	    }
	});


/***/ }),
/* 1475 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var ap_id_constants_1 = __webpack_require__(11);
	angular.module('capability-ng-academic-planner').factory('ngAPCommentsModel', function () {
	    return new utility_ts_orm_1.Model({
	        created_ts: '',
	        id: ap_id_constants_1.INVALID_ID,
	        message: '',
	        recipient: ap_id_constants_1.INVALID_ID,
	        sender: ap_id_constants_1.INVALID_ID,
	        updated_ts: ''
	    });
	});


/***/ }),
/* 1476 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var StudentFeedbackCommentsController = /** @class */ (function () {
	    function StudentFeedbackCommentsController(ngCommentsDatasource, changeSuggestedPlanStatusCommand, $timeout, $state, ngAPNotificationDelegate) {
	        this.ngCommentsDatasource = ngCommentsDatasource;
	        this.changeSuggestedPlanStatusCommand = changeSuggestedPlanStatusCommand;
	        this.$timeout = $timeout;
	        this.$state = $state;
	        this.ngAPNotificationDelegate = ngAPNotificationDelegate;
	        this.showToggle = false;
	        this.openRevokeErrorPopup = false;
	    }
	    StudentFeedbackCommentsController.prototype.$onInit = function () {
	        this.truncate = _4.isBoolean(this.truncate) ? this.truncate : this.truncate === 'true';
	        this.getLatestComment();
	    };
	    StudentFeedbackCommentsController.prototype.getLatestComment = function () {
	        // TODO: Complex code can be simplified.
	        // TODO: create query and move all this outside
	        var allComments = _4.filter(this.ngCommentsDatasource.read(), function (courseFlag) { return _4.isEmpty(courseFlag.content_type) && !_4.isEmpty(courseFlag.message); });
	        this.comment = _4
	            .sortBy(_4.map(_4.toArray(allComments), function (item) {
	            item.unixTimestamp = moment(item.updated_ts).unix();
	            return item;
	        }), 'unixTimestamp')
	            .reverse();
	        this.displayComment = this.comment[0];
	    };
	    StudentFeedbackCommentsController.prototype.acceptAndGotoPlan = function () {
	        var _this = this;
	        this.changeSuggestedPlanStatusCommand('RESOLVED')
	            .then(function () {
	            _this.ngAPNotificationDelegate.success('Successfully read comments.');
	            _this.$state.go('my.planner.plan.default');
	        })
	            .catch(function (error) {
	            if (error.status === 403) {
	                _this.openRevokeErrorPopup = true;
	            }
	            else {
	                _this.ngAPNotificationDelegate.error('Unable to accept comments.');
	            }
	        });
	    };
	    return StudentFeedbackCommentsController;
	}());
	angular.module('capability-ng-academic-planner').component('studentFeedbackComments', {
	    controller: StudentFeedbackCommentsController,
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/plan_feedback/components/plan_feedback_comments/plan_feedback_comments.html',
	    bindings: {
	        truncate: '<',
	        title: '@',
	        termsAndSuggestions: '<',
	        showAccept: '<'
	    }
	});


/***/ }),
/* 1477 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PlanFeedbackGoBackPopup = /** @class */ (function () {
	    function PlanFeedbackGoBackPopup($state) {
	        this.$state = $state;
	        this.open = false;
	    }
	    PlanFeedbackGoBackPopup.prototype.openedChanged = function (event) {
	        var popupOpened = event.detail.value;
	        if (popupOpened) {
	            return;
	        }
	        this.open = false;
	    };
	    PlanFeedbackGoBackPopup.prototype.goBack = function () {
	        this.open = false;
	    };
	    PlanFeedbackGoBackPopup.prototype.goToExplore = function () {
	        this.open = false;
	        this.$state.go('my.feed');
	    };
	    return PlanFeedbackGoBackPopup;
	}());
	angular.module('capability-ng-academic-planner').component('planFeedbackGoBackPopup', {
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/plan_feedback/components/plan_feedback_go_back_popup/plan_feedback_go_back_popup.html',
	    controller: PlanFeedbackGoBackPopup,
	    bindings: {
	        open: '='
	    }
	});


/***/ }),
/* 1478 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PlanFeedbackHeader = /** @class */ (function () {
	    function PlanFeedbackHeader(appConfigModel, $state, ngAPNotificationDelegate, ngAPAdvisorSentFeedbackGraduationTimeQuery, ngAPAdvisorSentFeedbackDiffQuery, ngAPProgramDetailsQuery, ngAPAdvisorHeaderDetailsQuery, ngAPAdvisorBlockedSuggestionsQuery, feedbackAcceptDeclineRevokeHelper, phxFeatureConfiguration, changeSuggestedPlanStatusCommand, ngAPAdvisorText) {
	        this.appConfigModel = appConfigModel;
	        this.$state = $state;
	        this.ngAPNotificationDelegate = ngAPNotificationDelegate;
	        this.ngAPAdvisorSentFeedbackGraduationTimeQuery = ngAPAdvisorSentFeedbackGraduationTimeQuery;
	        this.ngAPAdvisorSentFeedbackDiffQuery = ngAPAdvisorSentFeedbackDiffQuery;
	        this.ngAPProgramDetailsQuery = ngAPProgramDetailsQuery;
	        this.ngAPAdvisorHeaderDetailsQuery = ngAPAdvisorHeaderDetailsQuery;
	        this.ngAPAdvisorBlockedSuggestionsQuery = ngAPAdvisorBlockedSuggestionsQuery;
	        this.feedbackAcceptDeclineRevokeHelper = feedbackAcceptDeclineRevokeHelper;
	        this.phxFeatureConfiguration = phxFeatureConfiguration;
	        this.changeSuggestedPlanStatusCommand = changeSuggestedPlanStatusCommand;
	        this.ngAPAdvisorText = ngAPAdvisorText;
	        this.programName = '';
	        this.noOfSuggestionsString = '';
	        this.showPlannerLeaveConfirmation = false;
	        this.showConflictAlert = false;
	    }
	    PlanFeedbackHeader.prototype.$onInit = function () {
	        this.programName = this.ngAPProgramDetailsQuery.result.programName;
	        this.totalSuggestions = _4.sumBy(this.ngAPAdvisorSentFeedbackDiffQuery.result.termsAndSuggestions, 'suggestions.length');
	        this.commentOnly = this.ngAPAdvisorSentFeedbackDiffQuery.result.hasCommentOnly;
	    };
	    PlanFeedbackHeader.prototype.$onChanges = function () {
	        this.totalSuggestions = _4.sumBy(this.ngAPAdvisorSentFeedbackDiffQuery.result.termsAndSuggestions, 'suggestions.length');
	        this.advisorLabel = this.ngAPAdvisorText.advisorLabel;
	        var plural = this.totalSuggestions > 1 ? 's' : '';
	        this.noOfSuggestionsString = "You have " + this.totalSuggestions + " suggestion" + plural + " from your " + this.advisorLabel + " on " + this.ngAPAdvisorHeaderDetailsQuery.result.submittedDate;
	        this.showConflictAlert = !_4.isEmpty(this.ngAPAdvisorBlockedSuggestionsQuery.result.conflictingSuggestions);
	    };
	    PlanFeedbackHeader.prototype.goToExplore = function () {
	        this.showPlannerLeaveConfirmation = true;
	    };
	    PlanFeedbackHeader.prototype.acceptAllSuggestions = function () {
	        var nonTemplateFeedbacks = _4.flatten(this.ngAPAdvisorSentFeedbackDiffQuery.result.termsAndSuggestions.map(function (_suggestion) { return _suggestion.suggestions; }));
	        var templateFeedbacks = this.ngAPAdvisorSentFeedbackDiffQuery.result.templateSuggestions;
	        this.feedbackAcceptDeclineRevokeHelper(templateFeedbacks.concat(nonTemplateFeedbacks), 'ACCEPT');
	    };
	    PlanFeedbackHeader.prototype.acknowledge = function () {
	        var _this = this;
	        this.changeSuggestedPlanStatusCommand('RESOLVED').then(function () {
	            _this.ngAPNotificationDelegate.success("Successfully acknowledged " + _this.advisorLabel + " suggestions");
	            _this.$state.go('my.planner.plan.default');
	        });
	    };
	    return PlanFeedbackHeader;
	}());
	angular.module('capability-ng-academic-planner').component('planFeedbackHeader', {
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/plan_feedback/components/plan_feedback_header/plan_feedback_header.html',
	    controller: PlanFeedbackHeader
	});


/***/ }),
/* 1479 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PlanFeedbackRevokePopup = /** @class */ (function () {
	    function PlanFeedbackRevokePopup($state) {
	        this.$state = $state;
	    }
	    PlanFeedbackRevokePopup.prototype.clickedGotoMyPlan = function () {
	        this.$state.go('my.planner.plan.default');
	    };
	    return PlanFeedbackRevokePopup;
	}());
	angular.module('capability-ng-academic-planner').component('planFeedbackRevokedPopup', {
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/plan_feedback/components/plan_feedback_revoked_popup/plan_feedback_revoked_popup.html',
	    controller: PlanFeedbackRevokePopup
	});


/***/ }),
/* 1480 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PlanFeedbackSuggestions = /** @class */ (function () {
	    function PlanFeedbackSuggestions(appConfigModel, ngAPAdvisorSentFeedbackDiffQuery, ngAPProgramDetailsQuery, acceptDeclinePlanFeedbacksCommand, ngAPAdvisorHeaderDetailsQuery, feedbackAcceptDeclineRevokeHelper) {
	        this.appConfigModel = appConfigModel;
	        this.ngAPAdvisorSentFeedbackDiffQuery = ngAPAdvisorSentFeedbackDiffQuery;
	        this.ngAPProgramDetailsQuery = ngAPProgramDetailsQuery;
	        this.acceptDeclinePlanFeedbacksCommand = acceptDeclinePlanFeedbacksCommand;
	        this.ngAPAdvisorHeaderDetailsQuery = ngAPAdvisorHeaderDetailsQuery;
	        this.feedbackAcceptDeclineRevokeHelper = feedbackAcceptDeclineRevokeHelper;
	        this.advisorLabel = '';
	        this.advisorLabel = _4.upperFirst(appConfigModel.model.member_configs.advisor_label || 'Advisor');
	    }
	    PlanFeedbackSuggestions.prototype.$onInit = function () {
	        var showAcknowledgement = this.ngAPAdvisorSentFeedbackDiffQuery.result.showAcknowledge;
	        this.commentOnly = !showAcknowledgement && this.ngAPAdvisorSentFeedbackDiffQuery.result.hasCommentOnly;
	    };
	    return PlanFeedbackSuggestions;
	}());
	angular.module('capability-ng-academic-planner').component('planFeedbackSuggestions', {
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/plan_feedback/components/plan_feedback_suggestions/plan_feedback_suggestions.html',
	    controller: PlanFeedbackSuggestions
	});


/***/ }),
/* 1481 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PlanFeedbackTemplateChangesCtrl = /** @class */ (function () {
	    function PlanFeedbackTemplateChangesCtrl(ngAPModel) {
	        this.ngAPModel = ngAPModel;
	    }
	    PlanFeedbackTemplateChangesCtrl.prototype.$onInit = function () {
	        this.pgmName = _4.head(_4.toArray(this.ngAPModel.read().program)).name;
	    };
	    return PlanFeedbackTemplateChangesCtrl;
	}());
	angular.module('capability-ng-academic-planner').component('planFeedbackTemplateChanges', {
	    controller: PlanFeedbackTemplateChangesCtrl,
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/plan_feedback/components/plan_feedback_template_changes/plan_feedback_template_changes.html',
	    bindings: {
	        groupedSuggestions: '<'
	    }
	});


/***/ }),
/* 1482 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PlanFeedbackTemplateChangesContainer = /** @class */ (function () {
	    function PlanFeedbackTemplateChangesContainer(performActionOnFeedbackHelper, ngAPProgramDetailsQuery) {
	        this.performActionOnFeedbackHelper = performActionOnFeedbackHelper;
	        this.ngAPProgramDetailsQuery = ngAPProgramDetailsQuery;
	        this.suggestionHidden = false;
	    }
	    PlanFeedbackTemplateChangesContainer.prototype.acceptAllSuggestions = function () {
	        var nks = this.suggestions.map(function (sgstn) { return sgstn['nk']; });
	        this.performActionOnFeedbackHelper(this.suggestions, 'ACCEPT', nks, 'TEMPLATE');
	    };
	    PlanFeedbackTemplateChangesContainer.prototype.toggleSuggestions = function () {
	        this.suggestionHidden = !this.suggestionHidden;
	    };
	    return PlanFeedbackTemplateChangesContainer;
	}());
	angular.module('capability-ng-academic-planner').component('planFeedbackTemplateChangesContainer', {
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/plan_feedback/components/plan_feedback_template_changes_container/plan_feedback_template_changes_container.html',
	    controller: PlanFeedbackTemplateChangesContainer,
	    bindings: {
	        suggestions: '<'
	    }
	});


/***/ }),
/* 1483 */
/***/ (function(module, exports) {

	angular.module('capability-ng-academic-planner').component('planFeedbackTerm', {
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/plan_feedback/components/plan_feedback_term/plan_feedback_term.html',
	    bindings: {
	        term: '<'
	    }
	});


/***/ }),
/* 1484 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var plan_feedback_highlight_event_name_strategy_1 = __webpack_require__(54);
	var PlanFeedbackTermContainer = /** @class */ (function () {
	    function PlanFeedbackTermContainer(acceptDeclinePlanFeedbacksCommand, ngComponentCommunicatorService, $element, ngAPComponentStateModel, ngFeedbackSuggestedPlanModel, performActionOnFeedbackHelper) {
	        this.acceptDeclinePlanFeedbacksCommand = acceptDeclinePlanFeedbacksCommand;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.$element = $element;
	        this.ngAPComponentStateModel = ngAPComponentStateModel;
	        this.ngFeedbackSuggestedPlanModel = ngFeedbackSuggestedPlanModel;
	        this.performActionOnFeedbackHelper = performActionOnFeedbackHelper;
	        this.suggestionHidden = false;
	    }
	    PlanFeedbackTermContainer.prototype.$onInit = function () {
	        var termId = this.termAndSuggestions.id;
	        if (!this.ngAPComponentStateModel.studentFeedbackTerms[termId]) {
	            this.updateComponentState(termId, false);
	        }
	        this.suggestionHidden = _4.get(this.ngAPComponentStateModel, "studentFeedbackTerms[" + termId + "].opened", false);
	    };
	    PlanFeedbackTermContainer.prototype.updateComponentState = function (termId, state) {
	        if (!this.ngAPComponentStateModel.studentFeedbackTerms[termId]) {
	            this.ngAPComponentStateModel.studentFeedbackTerms[termId] = {
	                opened: state,
	                termId: termId
	            };
	        }
	        else {
	            this.ngAPComponentStateModel.studentFeedbackTerms[termId].opened = state;
	        }
	    };
	    PlanFeedbackTermContainer.prototype.emphasizeSuggestionsTileInTerm = function () {
	        var _this = this;
	        this.$element.find('.plan-feedback-term-container').addClass('ap-plan-feedback-hover-class');
	        this.termAndSuggestions.suggestions.forEach(function (suggestion) {
	            return _this.ngComponentCommunicatorService.publish(plan_feedback_highlight_event_name_strategy_1.ApPlanFeedbackEmphasizeEventNameStrategy[suggestion.type](suggestion.transactionNK));
	        });
	    };
	    PlanFeedbackTermContainer.prototype.deEmphasizeSuggestionsTileInTerm = function () {
	        var _this = this;
	        this.$element.find('.plan-feedback-term-container').removeClass('ap-plan-feedback-hover-class');
	        this.termAndSuggestions.suggestions.forEach(function (suggestion) {
	            return _this.ngComponentCommunicatorService.publish(plan_feedback_highlight_event_name_strategy_1.ApPlanFeedbackDeEmphasizeEventNameStrategy[suggestion.type](suggestion.transactionNK));
	        });
	    };
	    PlanFeedbackTermContainer.prototype.toggleSuggestions = function () {
	        var termId = this.termAndSuggestions.id;
	        this.updateComponentState(termId, !this.suggestionHidden);
	        this.suggestionHidden = _4.get(this.ngAPComponentStateModel, "studentFeedbackTerms[" + termId + "].opened", false);
	    };
	    PlanFeedbackTermContainer.prototype.acceptAllSuggestions = function () {
	        this.performActionOnFeedbackHelper(this.termAndSuggestions.suggestions, 'ACCEPT', [this.termAndSuggestions.nk], 'TERM');
	    };
	    return PlanFeedbackTermContainer;
	}());
	angular.module('capability-ng-academic-planner').component('planFeedbackTermContainer', {
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/plan_feedback/components/plan_feedback_term_container/plan_feedback_term_container.html',
	    controller: PlanFeedbackTermContainer,
	    bindings: {
	        termAndSuggestions: '<'
	    }
	});


/***/ }),
/* 1485 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var plan_feedback_highlight_event_name_strategy_1 = __webpack_require__(54);
	var PlanFeedbackTermCourseGroupTileController = /** @class */ (function () {
	    function PlanFeedbackTermCourseGroupTileController(ngComponentCommunicatorService) {
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.classNameForEmphasizing = ' ap-plan-feedback-hover-class';
	    }
	    PlanFeedbackTermCourseGroupTileController.prototype.emphasizeMe = function () {
	        if (!this.courseGroup.cssClasses.includes(this.classNameForEmphasizing)) {
	            this.courseGroup.cssClasses += this.classNameForEmphasizing;
	        }
	    };
	    PlanFeedbackTermCourseGroupTileController.prototype.deEmphasizeMe = function () {
	        this.courseGroup.cssClasses = this.courseGroup.cssClasses.replace(this.classNameForEmphasizing, '');
	    };
	    PlanFeedbackTermCourseGroupTileController.prototype.$onInit = function () {
	        this.emphasizeMeBound = this.emphasizeMe.bind(this);
	        this.deEmphasizeMeBound = this.deEmphasizeMe.bind(this);
	        this.ngComponentCommunicatorService.subscribe(plan_feedback_highlight_event_name_strategy_1.ApPlanFeedbackEmphasizeEventNameStrategy['COURSE_GROUP'](this.courseGroup.transactionNk), this.emphasizeMeBound);
	        this.ngComponentCommunicatorService.subscribe(plan_feedback_highlight_event_name_strategy_1.ApPlanFeedbackDeEmphasizeEventNameStrategy['COURSE_GROUP'](this.courseGroup.transactionNk), this.deEmphasizeMeBound);
	    };
	    return PlanFeedbackTermCourseGroupTileController;
	}());
	angular.module('capability-ng-academic-planner').component('planFeedbackTermCourseGroupTile', {
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/plan_feedback/components/plan_feedback_term_course_group_tile/plan_feedback_term_course_group_tile.html',
	    bindings: {
	        courseGroup: '<'
	    },
	    controller: PlanFeedbackTermCourseGroupTileController
	});


/***/ }),
/* 1486 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var plan_feedback_highlight_event_name_strategy_1 = __webpack_require__(54);
	var PlanFeedbackTermCourseTileController = /** @class */ (function () {
	    function PlanFeedbackTermCourseTileController(ngComponentCommunicatorService) {
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.classNameForEmphasizing = ' ap-plan-feedback-hover-class';
	    }
	    PlanFeedbackTermCourseTileController.prototype.emphasizeMe = function () {
	        if (!this.course.cssClasses.includes(this.classNameForEmphasizing)) {
	            this.course.cssClasses += this.classNameForEmphasizing;
	        }
	    };
	    PlanFeedbackTermCourseTileController.prototype.deEmphasizeMe = function () {
	        this.course.cssClasses = this.course.cssClasses.replace(this.classNameForEmphasizing, '');
	    };
	    PlanFeedbackTermCourseTileController.prototype.$onInit = function () {
	        this.uniqueId = _4.uniqueId();
	        this.emphasizeMeBound = this.emphasizeMe.bind(this);
	        this.deEmphasizeMeBound = this.deEmphasizeMe.bind(this);
	        this.ngComponentCommunicatorService.subscribe(plan_feedback_highlight_event_name_strategy_1.ApPlanFeedbackEmphasizeEventNameStrategy['COURSE'](this.course.transactionNk), this.emphasizeMeBound);
	        this.ngComponentCommunicatorService.subscribe(plan_feedback_highlight_event_name_strategy_1.ApPlanFeedbackDeEmphasizeEventNameStrategy['COURSE'](this.course.transactionNk), this.deEmphasizeMeBound);
	    };
	    return PlanFeedbackTermCourseTileController;
	}());
	angular.module('capability-ng-academic-planner').component('planFeedbackTermCourseTile', {
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/plan_feedback/components/plan_feedback_term_course_tile/plan_feedback_term_course_tile.html',
	    bindings: {
	        course: '<'
	    },
	    controller: PlanFeedbackTermCourseTileController
	});


/***/ }),
/* 1487 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PlanFeedbackTermProgramSlotTileController = /** @class */ (function () {
	    function PlanFeedbackTermProgramSlotTileController() {
	    }
	    PlanFeedbackTermProgramSlotTileController.prototype.$onInit = function () {
	        this.uniqueId = _4.uniqueId();
	    };
	    PlanFeedbackTermProgramSlotTileController.prototype.$onChanges = function () {
	        this.hasComment = !_4.isEmpty(this.programSlot.comment);
	    };
	    return PlanFeedbackTermProgramSlotTileController;
	}());
	angular.module('capability-ng-academic-planner').component('planFeedbackTermProgramSlotTile', {
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/plan_feedback/components/plan_feedback_term_program_slot_tile/plan_feedback_term_program_slot_tile.html',
	    bindings: {
	        programSlot: '<'
	    },
	    controller: PlanFeedbackTermProgramSlotTileController
	});


/***/ }),
/* 1488 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ng_kernel_1 = __webpack_require__(5);
	var utility_ts_datasource_1 = __webpack_require__(9);
	var plan_feedback_course_builder_1 = __webpack_require__(519);
	var plan_feedback_course_groups_datasource_1 = __webpack_require__(524);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('ngPlanFeebackCoursesDatasource', function (ngPlanFeebackTermsDatasource, ngPlanFeedbackProgramSlotsDatasource, ngAPProgramSlotDatasource) {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: plan_feedback_course_builder_1.PlanFeedbackCourse
	    }).includeMetasource(function (datasource) {
	        return new utility_ts_datasource_1.Metasource(datasource)
	            .includeAttribute('_from_term', function (feedbackCourse) {
	            return plan_feedback_course_groups_datasource_1.fillTermInfo(ngPlanFeebackTermsDatasource, 'from_term', feedbackCourse);
	        })
	            .includeAttribute('_term', function (feedbackCourse) {
	            return plan_feedback_course_groups_datasource_1.fillTermInfo(ngPlanFeebackTermsDatasource, 'term', feedbackCourse);
	        })
	            .includeAttribute('_programSlot', function (feedbackCourse) {
	            return _4.find(ngAPProgramSlotDatasource.metasource().derived(), {
	                id: feedbackCourse['program_slot']
	            });
	        })
	            .includeAttribute('_feedbackProgramSlot', function (feedbackCourse) {
	            return _4.first(ngPlanFeedbackProgramSlotsDatasource.query(function (p) { return p.program_slot === feedbackCourse['program_slot']; }));
	        });
	    });
	});


/***/ }),
/* 1489 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var plan_feedback_program_slot_builder_1 = __webpack_require__(521);
	angular.module('capability-ng-academic-planner').factory('ngPlanFeedbackProgramSlotsDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: plan_feedback_program_slot_builder_1.PlanFeedbackProgramSlot
	    });
	});


/***/ }),
/* 1490 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var plan_feedback_term_builder_1 = __webpack_require__(522);
	angular.module('capability-ng-academic-planner').factory('ngPlanFeebackTermsDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: plan_feedback_term_builder_1.PlanFeedbackTerm
	    });
	});


/***/ }),
/* 1491 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var action_message_string_strategy_1 = __webpack_require__(525);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('feedbackAcceptDeclineRevokeHelper', function feedbackAcceptDeclineRevokeHelper(ngFeedbackSuggestedPlanModel, $state, acceptDeclinePlanFeedbacksCommand, ngAPNotificationDelegate) {
	    return function (feedbacks, actionType) {
	        var actionMessageString = action_message_string_strategy_1.ActionMessageStringStrategy[actionType];
	        return acceptDeclinePlanFeedbacksCommand(ngFeedbackSuggestedPlanModel.read().id, feedbacks, actionType)
	            .then(function () {
	            ngAPNotificationDelegate.success("Successfully " + actionMessageString + " suggestion.");
	        })
	            .catch(function (error) {
	            var hasAdvisorRevokedChanges = error.status === 403;
	            if (hasAdvisorRevokedChanges) {
	                $state.go('my.planner.suggestions.advisor_revoked_changes');
	            }
	            else {
	                ngAPNotificationDelegate.error("Suggestion was unable to be " + actionMessageString + ".");
	            }
	        });
	    };
	});


/***/ }),
/* 1492 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('performActionOnFeedbackHelper', function performActionOnFeedbackHelper($state, feedbackAcceptDeclineRevokeHelper, setSelectedLinkedSuggestionCommand, ngAPFeedbackLinkedSuggestionsQuery) {
	    return function (feedbacks, actionType, selectedNks, feedbackType) {
	        var linkedResolutions = _4.map(_4.filter(_4.uniqBy(feedbacks, 'resolution'), function (feedback) { return _4.isNumber(feedback.resolution); }), 'resolution');
	        return setSelectedLinkedSuggestionCommand(selectedNks, linkedResolutions, feedbackType, actionType).then(function () {
	            var anyLinkedSuggestionExist = !_4.isEmpty(ngAPFeedbackLinkedSuggestionsQuery.result.linkedSuggestions);
	            if (anyLinkedSuggestionExist) {
	                $state.go('my.planner.suggestions.linked_suggestions');
	                return;
	            }
	            return feedbackAcceptDeclineRevokeHelper(feedbacks, actionType);
	        });
	    };
	});


/***/ }),
/* 1493 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-academic-planner').factory('ngFeedbackSelectedLinkedSuggestionModel', function () {
	    return new utility_ts_orm_1.Model({
	        nks: [],
	        type: undefined,
	        resolutionIds: []
	    });
	});


/***/ }),
/* 1494 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-academic-planner')
	    .factory('ngFeedbackSuggestedPlanModel', function () {
	    return new utility_ts_orm_1.Model({
	        id: null,
	        status: '',
	        created_ts: '',
	        updated_ts: '',
	        edited_ts: '',
	        previous_status: null,
	        committed_ts: '',
	        from_editing: false,
	        edited_by: {
	            id: null,
	            first_name: '',
	            last_name: ''
	        },
	        committed_by: {
	            id: null,
	            first_name: '',
	            last_name: ''
	        },
	        is_active: true
	    });
	});


/***/ }),
/* 1495 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PlanFeedback = /** @class */ (function () {
	    function PlanFeedback(ngAPAdvisorSentFeedbackDiffQuery, ngAPAdvisorSentFeedbackTermsQuery, ngAPAdvisorBlockedSuggestionsQuery, appConfigModel) {
	        this.ngAPAdvisorSentFeedbackDiffQuery = ngAPAdvisorSentFeedbackDiffQuery;
	        this.ngAPAdvisorSentFeedbackTermsQuery = ngAPAdvisorSentFeedbackTermsQuery;
	        this.ngAPAdvisorBlockedSuggestionsQuery = ngAPAdvisorBlockedSuggestionsQuery;
	        this.appConfigModel = appConfigModel;
	        this.advisorLabel = 'advisor';
	        this.openDialog = true;
	        this.showConflictAlert = false;
	    }
	    PlanFeedback.prototype.$onInit = function () {
	        this.advisorLabel = _4.get(this.appConfigModel, 'model.member_configs.advisor_label', 'advisor');
	        this.commentOnly =
	            _4.sumBy(this.ngAPAdvisorSentFeedbackDiffQuery.result.termsAndSuggestions, 'suggestions.length') === 0;
	        this.showConflictAlert = !_4.isEmpty(this.ngAPAdvisorBlockedSuggestionsQuery.result.conflictingSuggestions);
	    };
	    PlanFeedback.prototype.closeDialog = function () {
	        this.openDialog = false;
	    };
	    return PlanFeedback;
	}());
	angular.module('capability-ng-academic-planner').component('planFeedback', {
	    templateUrl: 'capability-ng-academic-planner/src/suggestions/components/plan_feedback/plan_feedback.html',
	    controller: PlanFeedback
	});


/***/ }),
/* 1496 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var comment_servant_1 = __webpack_require__(68);
	var ap_generic_slot_servant_1 = __webpack_require__(18);
	var plan_feedback_servant_1 = __webpack_require__(13);
	var ellipsisClass = 'text-ellipsis';
	var formTermSuggestionForCourseGroup = function (courseGroupSlot) { return ({
	    cssClasses: ellipsisClass,
	    id: courseGroupSlot.firstCourse.id,
	    text: courseGroupSlot.title,
	    transactionType: 'NONE',
	    transactionNk: '',
	    screenReaderText: '',
	    slotNk: courseGroupSlot.firstCourse.nk,
	    slotTypeId: courseGroupSlot.firstCourse.id,
	    slotType: 'COURSE_GROUP'
	}); };
	var formTermSuggestionForWildcard = function (wildcardSlot) { return ({
	    cssClasses: ellipsisClass,
	    id: _4.get(wildcardSlot, 'course.id'),
	    text: wildcardSlot.title,
	    transactionType: 'NONE',
	    transactionNk: '',
	    screenReaderText: '',
	    slotTypeId: _4.get(wildcardSlot, 'course.id'),
	    slotType: 'WILDCARD',
	    slotNk: _4.get(wildcardSlot, 'plannedCourseGroup.nk')
	}); };
	var formTermSuggestionForNCR = function (ncrSlot) { return ({
	    cssClasses: ellipsisClass,
	    id: ncrSlot.programSlot.id,
	    text: ncrSlot,
	    transactionType: 'NONE',
	    transactionNk: '',
	    screenReaderText: '',
	    slotTypeId: ncrSlot.programSlot.id,
	    slotType: 'NCR',
	    slotNk: _4.get(ncrSlot, 'plannedCourseGroup.nk')
	}); };
	var formTermSuggestionForCourse = function (courseSlot) { return ({
	    cssClasses: ellipsisClass,
	    id: courseSlot.course.id,
	    text: courseSlot.title,
	    transactionType: 'NONE',
	    transactionNk: courseSlot.course.nk,
	    slotNk: courseSlot.course.nk,
	    screenReaderText: '',
	    slotTypeId: courseSlot.course.id,
	    slotType: 'COURSE'
	}); };
	var formTemplateSuggestionForProgramSlot = function (pgmSlot, comment) { return ({
	    cssClasses: ellipsisClass,
	    id: pgmSlot.id,
	    text: pgmSlot.desc,
	    transactionType: 'NONE',
	    transactionNk: '',
	    screenReaderText: '',
	    slotTypeId: pgmSlot.id,
	    slotNk: '',
	    slotType: 'PROGRAM_SLOT',
	    comment: comment
	}); };
	var formTermSuggestion = function (genericSlot) {
	    if (ap_generic_slot_servant_1.APGenericSlotServant.isCourseGroupSlot(genericSlot)) {
	        return formTermSuggestionForCourseGroup(genericSlot);
	    }
	    if (ap_generic_slot_servant_1.APGenericSlotServant.isWildcardSlot(genericSlot)) {
	        return formTermSuggestionForWildcard(genericSlot);
	    }
	    if (ap_generic_slot_servant_1.APGenericSlotServant.isNCRSlot(genericSlot)) {
	        return formTermSuggestionForNCR(genericSlot);
	    }
	    return formTermSuggestionForCourse(genericSlot);
	};
	var AdvisorCompareQuery = /** @class */ (function () {
	    function AdvisorCompareQuery(ngAPTermsQuery, ngCommentsDatasource, ngAPProgramSlotDatasource) {
	        this.ngAPTermsQuery = ngAPTermsQuery;
	        this.ngCommentsDatasource = ngCommentsDatasource;
	        this.ngAPProgramSlotDatasource = ngAPProgramSlotDatasource;
	        this.__result = [];
	    }
	    AdvisorCompareQuery.prototype.constructTermSuggestions = function (genericSlots) {
	        var suggestions = _4.map(genericSlots, formTermSuggestion);
	        return _4.sortBy(suggestions, 'text');
	    };
	    AdvisorCompareQuery.prototype.constructTerms = function (terms) {
	        var _this = this;
	        return _4.map(terms, function (term) { return ({
	            id: term.id,
	            name: term.name,
	            creditsRange: term._creditsRange,
	            suggestions: _this.constructTermSuggestions(term._genericSlots)
	        }); });
	    };
	    AdvisorCompareQuery.prototype.getTemplateChangesGroupedByTransactionType = function () {
	        var comments = comment_servant_1.CommentServant.groupCommentsBasedOnType(this.ngCommentsDatasource.metasource().derived());
	        var planFeedbackProgramSlots = this.ngAPProgramSlotDatasource
	            .values()
	            .filter(function (pgmSlot) { return _4.includes(['MET', 'UNMET'], pgmSlot.status); });
	        return planFeedbackProgramSlots.reduce(function (groupedSuggestions, suggestion) {
	            if (_4.isEmpty(groupedSuggestions[suggestion.status])) {
	                groupedSuggestions[suggestion.status] = {
	                    statusGroup: plan_feedback_servant_1.TemplateChangesTransactionTypeText[suggestion.status],
	                    suggestions: []
	                };
	            }
	            var comment = _4.get(comments, [suggestion.id] + ".message", '');
	            groupedSuggestions[suggestion.status].suggestions.push(formTemplateSuggestionForProgramSlot(suggestion, comment));
	            return groupedSuggestions;
	        }, {});
	    };
	    AdvisorCompareQuery.prototype.run = function () {
	        this.__result = {
	            termsAndGenericSlots: this.constructTerms(this.ngAPTermsQuery.result.plannedTerms),
	            templateChanges: this.getTemplateChangesGroupedByTransactionType()
	        };
	        var templateChanges = _4.values(this.__result.templateChanges);
	        var totalSuggestions = _4.sumBy(this.__result.termsAndGenericSlots, 'suggestions.length') +
	            _4.sumBy(templateChanges, 'suggestions.length');
	        this.__result.templateSuggestionsExist = !_4.isEmpty(templateChanges);
	        this.__result.totalSuggestions = totalSuggestions;
	        this.__result.suggestionsExist = totalSuggestions > 0;
	        return this;
	    };
	    Object.defineProperty(AdvisorCompareQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return AdvisorCompareQuery;
	}());
	exports.AdvisorCompareQuery = AdvisorCompareQuery;
	angular.module('capability-ng-academic-planner').service('ngAPAdvisorCompareQuery', AdvisorCompareQuery);


/***/ }),
/* 1497 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_strategy_1 = __webpack_require__(6);
	var ap_term_servant_1 = __webpack_require__(20);
	var plan_feedback_servant_1 = __webpack_require__(13);
	var PlanStatusStyleStrategy = new utility_ts_strategy_1.ConditionalStrategy({
	    'plan-editing': function (plan) { return plan_feedback_servant_1.PlanFeedbackServant.isPlanEditing(plan); },
	    'plan-pending': function (plan) { return plan_feedback_servant_1.PlanFeedbackServant.isPlanSentToStudent(plan); },
	    'plan-viewing': function (plan) { return plan_feedback_servant_1.PlanFeedbackServant.isPlanReadOnlyMode(plan); },
	    'clr-orange_40-bkg': function (plan) { return plan_feedback_servant_1.PlanFeedbackServant.isPlanBlocked(plan); }
	});
	var AdvisorHeaderDetailsQuery = /** @class */ (function () {
	    function AdvisorHeaderDetailsQuery(QueryMediator, ngAPTermsDatasource, ngAPModel, ngAPUserModeConfig, ngFeedbackSuggestedPlanModel) {
	        this.ngAPTermsDatasource = ngAPTermsDatasource;
	        this.ngAPModel = ngAPModel;
	        this.ngAPUserModeConfig = ngAPUserModeConfig;
	        this.ngFeedbackSuggestedPlanModel = ngFeedbackSuggestedPlanModel;
	        QueryMediator.registerQuery(this, ngFeedbackSuggestedPlanModel, ngAPTermsDatasource);
	    }
	    AdvisorHeaderDetailsQuery.prototype.lastEditBy = function (details) {
	        return _4.get(details, 'edited_by.first_name', ' ') + "  " + _4.get(details, 'edited_by.last_name', '');
	    };
	    AdvisorHeaderDetailsQuery.prototype.planUpdatedTemplateText = function (details) {
	        if (details.updated_ts) {
	            return this.lastEditBy(details) + " on " + moment(details.updated_ts).format('MMMM DD, YYYY - H:mm A');
	        }
	        return "Never";
	    };
	    AdvisorHeaderDetailsQuery.prototype.planEditedTemplateText = function (details) {
	        if (details.edited_ts) {
	            return "Last Edit By: <strong>" + this.lastEditBy(details) + " on " + moment(details.edited_ts).format('MMMM DD, YYYY - H:mm A') + "</strong>";
	        }
	        return "";
	    };
	    AdvisorHeaderDetailsQuery.prototype.run = function () {
	        var _this = this;
	        var details = this.ngFeedbackSuggestedPlanModel.read();
	        var termsWithMeta = this.ngAPTermsDatasource.metasource().derived();
	        var futureTerms = ap_term_servant_1.APTermServant.getFutureTerms(termsWithMeta);
	        var plannedTerms = _4.filter(futureTerms, function (term) {
	            return _4.includes(_this.ngAPModel.read().planned_term, term.id);
	        });
	        var hasStudentPlan = plannedTerms.length > 0;
	        var hasAdvisorPlan = !_4.isEmpty(details.id);
	        var isAdvisor = this.ngAPUserModeConfig.isAdvisor();
	        var isSuggestedPlanPending = _4.includes(['COMMITTED', 'RESOLVING'], details.status);
	        var isSuggestedPlanInactive = !_4.includes(['COMMITTED', 'EDITING', 'RESOLVING', 'BLOCKED'], details.status);
	        var advisorName = _4.get(details, 'committed_by.first_name', ' ') + "  " + _4.get(details, 'committed_by.last_name', '');
	        var planUpdatedTemplate = "Plan Last Updated By: <strong>" + this.planUpdatedTemplateText(details) + "</strong>";
	        var planEditedTemplate = this.planEditedTemplateText(details);
	        this.__result = {
	            hasAdvisorPlan: hasAdvisorPlan,
	            hasStudentPlan: hasStudentPlan,
	            advisorName: advisorName,
	            submittedDate: moment(details.updated_ts).format('MMM DD, YYYY'),
	            updatedTimeStamp: moment(details.updated_ts).format('MMMM DD, YYYY'),
	            status: details.status,
	            showCommittedLabel: isAdvisor && isSuggestedPlanPending,
	            showCreateSuggestion: isAdvisor && isSuggestedPlanInactive,
	            showRevokeButton: isAdvisor && isSuggestedPlanPending,
	            showPlanLooksGood: isAdvisor && isSuggestedPlanInactive,
	            disableRevoke: hasAdvisorPlan && _4.includes(['RESOLVING'], details.status),
	            planStatusStyle: PlanStatusStyleStrategy.evaluate(details),
	            planEditedTemplate: planEditedTemplate,
	            planUpdatedTemplate: planUpdatedTemplate,
	            planCreatedTemplate: "Created: <strong>" + moment(details.updated_ts).format('MMMM DD, YYYY') + "</strong>"
	        };
	        return this;
	    };
	    Object.defineProperty(AdvisorHeaderDetailsQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return AdvisorHeaderDetailsQuery;
	}());
	exports.AdvisorHeaderDetailsQuery = AdvisorHeaderDetailsQuery;
	angular.module('capability-ng-academic-planner').service('ngAPAdvisorHeaderDetailsQuery', AdvisorHeaderDetailsQuery);


/***/ }),
/* 1498 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var plan_feedback_servant_1 = __webpack_require__(13);
	var plan_feedback_transaction_types_query_strategy_1 = __webpack_require__(43);
	var AdvisorSentFeedbackDiffQuery = /** @class */ (function () {
	    function AdvisorSentFeedbackDiffQuery(QueryMediator, ngFeedbackSuggestedPlanModel, ngPlanFeebackTermsDatasource, ngPlanFeebackCoursesDatasource, ngPlanFeebackCourseGroupsDatasource, ngCommentsDatasource, ngConflictingSuggestionsModel, ngPlanFeedbackProgramSlotsDatasource) {
	        this.ngFeedbackSuggestedPlanModel = ngFeedbackSuggestedPlanModel;
	        this.ngPlanFeebackTermsDatasource = ngPlanFeebackTermsDatasource;
	        this.ngPlanFeebackCoursesDatasource = ngPlanFeebackCoursesDatasource;
	        this.ngPlanFeebackCourseGroupsDatasource = ngPlanFeebackCourseGroupsDatasource;
	        this.ngCommentsDatasource = ngCommentsDatasource;
	        this.ngConflictingSuggestionsModel = ngConflictingSuggestionsModel;
	        this.ngPlanFeedbackProgramSlotsDatasource = ngPlanFeedbackProgramSlotsDatasource;
	        QueryMediator.registerQuery(this, ngFeedbackSuggestedPlanModel, ngPlanFeebackTermsDatasource, ngPlanFeebackCoursesDatasource, ngPlanFeebackCourseGroupsDatasource, ngCommentsDatasource, ngPlanFeedbackProgramSlotsDatasource);
	    }
	    AdvisorSentFeedbackDiffQuery.prototype.getFeedbackCourseGroupedByTerms = function (_conflictingIds) {
	        var feedbackCoursesNotConflicting = _4.filter(this.ngPlanFeebackCoursesDatasource.metasource().derived(), function (feedbackCourse) {
	            return !_4.includes(_conflictingIds, feedbackCourse.resolution);
	        });
	        var feedbackCourses = _4.filter(feedbackCoursesNotConflicting, function (feedbackCourse) {
	            return plan_feedback_servant_1.PlanFeedbackServant.isValidFeedback(feedbackCourse);
	        });
	        return feedbackCourses.reduce(function (feedbackCourseGroupedByTerms, course) {
	            var fieldTerm = plan_feedback_transaction_types_query_strategy_1.PlanFeedbackTermFieldIdentifierStrategy[course.diff].currentTermField;
	            if (!feedbackCourseGroupedByTerms[course[fieldTerm]]) {
	                feedbackCourseGroupedByTerms[course[fieldTerm]] = [];
	            }
	            feedbackCourseGroupedByTerms[course[fieldTerm]].push(course);
	            return feedbackCourseGroupedByTerms;
	        }, {});
	    };
	    AdvisorSentFeedbackDiffQuery.prototype.getfeedbackCourseGroupsGroupedByTerms = function (_conflictingIds) {
	        var feedbackCourseGroupsNotConflicting = _4.filter(this.ngPlanFeebackCourseGroupsDatasource.metasource().derived(), function (feedbackCourse) {
	            return !_4.includes(_conflictingIds, feedbackCourse.resolution);
	        });
	        var feedbackCourseGroups = _4.filter(feedbackCourseGroupsNotConflicting, function (feedbackCourseGroup) {
	            return plan_feedback_servant_1.PlanFeedbackServant.isValidFeedback(feedbackCourseGroup);
	        });
	        return _4.reduce(feedbackCourseGroups, function (feedbackCourseGroupsGroupedByTerms, courseGroup) {
	            var fieldTerm = plan_feedback_transaction_types_query_strategy_1.PlanFeedbackTermFieldIdentifierStrategy[courseGroup.diff].currentTermField;
	            if (!feedbackCourseGroupsGroupedByTerms[courseGroup[fieldTerm]]) {
	                feedbackCourseGroupsGroupedByTerms[courseGroup[fieldTerm]] = [];
	            }
	            feedbackCourseGroupsGroupedByTerms[courseGroup[fieldTerm]].push(courseGroup);
	            return feedbackCourseGroupsGroupedByTerms;
	        }, {});
	    };
	    AdvisorSentFeedbackDiffQuery.prototype.getTermsAndSuggestions = function (_conflictingIds) {
	        var terms = this.ngPlanFeebackTermsDatasource.values();
	        terms = _4.sortBy(terms, function (term) { return moment(term.term.term_start_dt); });
	        var courseGroupedByTerms = this.getFeedbackCourseGroupedByTerms(_conflictingIds);
	        var courseGroupsGroupedByTerms = this.getfeedbackCourseGroupsGroupedByTerms(_conflictingIds);
	        return _4.reduce(terms, function (termAndSuggestions, feedbackTerm) {
	            var termId = feedbackTerm.term.id;
	            if (!_4.isEmpty(courseGroupedByTerms[termId]) || !_4.isEmpty(courseGroupsGroupedByTerms[termId])) {
	                var courseSuggestions = plan_feedback_servant_1.PlanFeedbackServant.getSuggestionsForCourses(courseGroupedByTerms[termId]);
	                var courseGroupSuggestions = plan_feedback_servant_1.PlanFeedbackServant.getSuggestionsForCourseGroups(courseGroupsGroupedByTerms[termId]);
	                termAndSuggestions.push({
	                    id: termId,
	                    nk: feedbackTerm.nk,
	                    term: feedbackTerm.term,
	                    suggestions: courseSuggestions.concat(courseGroupSuggestions)
	                });
	            }
	            return termAndSuggestions;
	        }, []);
	    };
	    AdvisorSentFeedbackDiffQuery.prototype.getTemplateSuggestions = function (_conflictingIds) {
	        var programSlotTransactionsNotConflicting = _4.filter(this.ngPlanFeedbackProgramSlotsDatasource.values(), function (feedbackCourse) {
	            return !_4.includes(_conflictingIds, feedbackCourse.resolution);
	        });
	        var programSlotTransactions = programSlotTransactionsNotConflicting.filter(function (feedback) {
	            return plan_feedback_servant_1.PlanFeedbackServant.isValidFeedback(feedback);
	        });
	        return plan_feedback_servant_1.PlanFeedbackServant.getSuggestionsForProgramSlots(programSlotTransactions);
	    };
	    AdvisorSentFeedbackDiffQuery.prototype.run = function () {
	        var conflictingIds = _4.get(this.ngConflictingSuggestionsModel.read(), 'conflicting_resolution_ids', []);
	        var termsAndSuggestions = this.getTermsAndSuggestions(conflictingIds);
	        var templateSuggestions = this.getTemplateSuggestions(conflictingIds);
	        var totalSuggestions = _4.sumBy(termsAndSuggestions, 'suggestions.length') + templateSuggestions.length;
	        var suggestionsExist = totalSuggestions > 0;
	        var suggestedPlan = this.ngFeedbackSuggestedPlanModel.read();
	        var isStudentPlanConflicting = plan_feedback_servant_1.PlanFeedbackServant.isPlanCommitedAndBlocked(suggestedPlan);
	        var hasCommentOnly = !suggestionsExist;
	        var showAcknowledge = isStudentPlanConflicting && hasCommentOnly;
	        var acceptedAll = !suggestionsExist;
	        this.__result = {
	            termsAndSuggestions: termsAndSuggestions,
	            templateSuggestions: templateSuggestions,
	            totalSuggestions: totalSuggestions,
	            suggestionsExist: suggestionsExist,
	            hasCommentOnly: hasCommentOnly,
	            acceptedAll: acceptedAll,
	            showAcknowledge: showAcknowledge
	        };
	        return this;
	    };
	    Object.defineProperty(AdvisorSentFeedbackDiffQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return AdvisorSentFeedbackDiffQuery;
	}());
	exports.AdvisorSentFeedbackDiffQuery = AdvisorSentFeedbackDiffQuery;
	angular
	    .module('capability-ng-academic-planner')
	    .service('ngAPAdvisorSentFeedbackDiffQuery', AdvisorSentFeedbackDiffQuery);


/***/ }),
/* 1499 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ap_preview_plan_servant_1 = __webpack_require__(53);
	var AdvisorSentFeedbackGraduationTimeQuery = /** @class */ (function () {
	    function AdvisorSentFeedbackGraduationTimeQuery(QueryMediator, ngPlanFeebackTermsDatasource) {
	        this.ngPlanFeebackTermsDatasource = ngPlanFeebackTermsDatasource;
	        QueryMediator.registerQuery(this, ngPlanFeebackTermsDatasource);
	    }
	    AdvisorSentFeedbackGraduationTimeQuery.prototype.run = function () {
	        var terms = _4.map(this.ngPlanFeebackTermsDatasource.read(), 'term');
	        terms = _4.sortBy(terms, function (term) { return moment(term.term_start_dt); });
	        this._result = {
	            graduationTime: ap_preview_plan_servant_1.APPreviewPlanServant.getEstimatedGraduationDateFromTerm(terms)
	        };
	        return this;
	    };
	    Object.defineProperty(AdvisorSentFeedbackGraduationTimeQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return AdvisorSentFeedbackGraduationTimeQuery;
	}());
	exports.AdvisorSentFeedbackGraduationTimeQuery = AdvisorSentFeedbackGraduationTimeQuery;
	angular
	    .module('capability-ng-academic-planner')
	    .service('ngAPAdvisorSentFeedbackGraduationTimeQuery', AdvisorSentFeedbackGraduationTimeQuery);


/***/ }),
/* 1500 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var comment_servant_1 = __webpack_require__(68);
	var plan_feedback_generic_slot_builder_1 = __webpack_require__(131);
	var plan_feedback_servant_1 = __webpack_require__(13);
	var APAdvisorSentFeedbackTermsQuery = /** @class */ (function () {
	    function APAdvisorSentFeedbackTermsQuery(QueryMediator, ngFeedbackSuggestedPlanModel, ngPlanFeebackTermsDatasource, ngPlanFeebackCoursesDatasource, ngPlanFeebackCourseGroupsDatasource, ngAPTermsDatasource, ngCommentsDatasource, ngPlanFeedbackProgramSlotsDatasource) {
	        this.ngFeedbackSuggestedPlanModel = ngFeedbackSuggestedPlanModel;
	        this.ngPlanFeebackTermsDatasource = ngPlanFeebackTermsDatasource;
	        this.ngPlanFeebackCoursesDatasource = ngPlanFeebackCoursesDatasource;
	        this.ngPlanFeebackCourseGroupsDatasource = ngPlanFeebackCourseGroupsDatasource;
	        this.ngAPTermsDatasource = ngAPTermsDatasource;
	        this.ngCommentsDatasource = ngCommentsDatasource;
	        this.ngPlanFeedbackProgramSlotsDatasource = ngPlanFeedbackProgramSlotsDatasource;
	        QueryMediator.registerQuery(this, ngFeedbackSuggestedPlanModel, ngPlanFeebackTermsDatasource, ngAPTermsDatasource, ngPlanFeebackCoursesDatasource, ngPlanFeebackCourseGroupsDatasource, ngCommentsDatasource);
	    }
	    APAdvisorSentFeedbackTermsQuery.prototype.getTemplateChangesGroupedByTransactionType = function () {
	        var planFeedbackProgramSlots = this.ngPlanFeedbackProgramSlotsDatasource
	            .values()
	            .filter(function (feedback) { return plan_feedback_servant_1.PlanFeedbackServant.isValidFeedback(feedback); });
	        return plan_feedback_servant_1.PlanFeedbackServant.getTemplateChangesGroupedByTransactionType(planFeedbackProgramSlots);
	    };
	    APAdvisorSentFeedbackTermsQuery.prototype.run = function () {
	        var _this = this;
	        var feedbackTerms = _4.map(this.ngPlanFeebackTermsDatasource.read(), 'term');
	        feedbackTerms = _4.filter(feedbackTerms, function (term) {
	            var termsDBTerm = _this.ngAPTermsDatasource.get(term.id);
	            return termsDBTerm && !termsDBTerm.is_past_term;
	        });
	        feedbackTerms = _4.sortBy(feedbackTerms, function (term) { return moment(term.term_start_dt); });
	        var flaggedCourses = _4.keyBy(comment_servant_1.CommentServant.getValidCourseComments(this.ngCommentsDatasource.metasource().derived()), 'object_id');
	        var feedbackCourseGroupsWithMeta = this.ngPlanFeebackCourseGroupsDatasource.metasource().derived();
	        var feedbackCourses = this.ngPlanFeebackCoursesDatasource.values();
	        feedbackCourses = _4.map(feedbackCourses, function (course) { return (tslib_1.__assign(tslib_1.__assign({}, course), { flagInfo: flaggedCourses[course.course.id] })); });
	        // There will not be any "MOVE" type suggestions here
	        // as we will convert them to ADD & REMOVE using the function we're calling
	        var _a = plan_feedback_servant_1.PlanFeedbackServant.getCategorizedAndGroupedByTermSuggestions(feedbackCourses), addedCourses = _a.ADD, removedCourses = _a.REMOVE, nonMovedCourses = _a.NONE;
	        var _b = plan_feedback_servant_1.PlanFeedbackServant.getCategorizedAndGroupedByTermSuggestions(feedbackCourseGroupsWithMeta), addedCourseGroups = _b.ADD, removedCourseGroups = _b.REMOVE, nonMovedCourseGroups = _b.NONE;
	        var termsAndGenericSlots = _4.reduce(feedbackTerms, function (termGenericSlots, feedbackTerm) {
	            var suggestions = tslib_1.__spreadArrays(_4.get(removedCourses, feedbackTerm.id, []), _4.get(removedCourseGroups, feedbackTerm.id, []), _4.get(addedCourses, feedbackTerm.id, []), _4.get(addedCourseGroups, feedbackTerm.id, []), _4.get(nonMovedCourses, feedbackTerm.id, []), _4.get(nonMovedCourseGroups, feedbackTerm.id, [])).sort(function (prevSuggestion, currSuggestion) { return prevSuggestion['program_slot'] - currSuggestion['program_slot']; });
	            // gets credits
	            var totalMaxCredits = 0;
	            var totalMinCredits = 0;
	            _4.map(suggestions, function (item) {
	                if (item._programSlot) {
	                    item.min_credits = item._programSlot.min_credits;
	                    totalMinCredits += item.min_credits;
	                    item.max_credits = item._programSlot.max_credits;
	                    totalMaxCredits += item.max_credits;
	                }
	                else if (item.course) {
	                    item.credits = item.course.credits;
	                    totalMaxCredits += item.credits;
	                    totalMinCredits += item.credits;
	                }
	                return item;
	            });
	            var creditsRange = totalMinCredits !== totalMaxCredits ? totalMinCredits + " - " + totalMaxCredits : "" + totalMinCredits;
	            // if there is no suggestion inside the term, we won't show it
	            if (suggestions.length > 0) {
	                termGenericSlots.push({
	                    id: feedbackTerm.id,
	                    name: feedbackTerm.name,
	                    term_start_dt: moment(feedbackTerm.term_start_dt),
	                    term_end_dt: moment(feedbackTerm.term_end_dt),
	                    suggestions: _4.sortBy(suggestions.map(function (suggestion) { return plan_feedback_generic_slot_builder_1.PlanFeedbackGenericSlotBuilder.build(suggestion); }), 'text'),
	                    creditsRange: creditsRange
	                });
	            }
	            return termGenericSlots;
	        }, []);
	        this.__result = {
	            termsAndGenericSlots: termsAndGenericSlots,
	            templateChanges: this.getTemplateChangesGroupedByTransactionType()
	        };
	        var templateChanges = _4.values(this.__result.templateChanges);
	        var totalSuggestions = _4.sumBy(this.__result.termsAndGenericSlots, 'suggestions.length') +
	            _4.sumBy(templateChanges, 'suggestions.length');
	        this.__result.templateSuggestionsExist = !_4.isEmpty(templateChanges);
	        this.__result.totalSuggestions = totalSuggestions;
	        this.__result.suggestionsExist = totalSuggestions > 0;
	        return this;
	    };
	    Object.defineProperty(APAdvisorSentFeedbackTermsQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APAdvisorSentFeedbackTermsQuery;
	}());
	exports.APAdvisorSentFeedbackTermsQuery = APAdvisorSentFeedbackTermsQuery;
	angular
	    .module('capability-ng-academic-planner')
	    .service('ngAPAdvisorSentFeedbackTermsQuery', APAdvisorSentFeedbackTermsQuery);


/***/ }),
/* 1501 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_strategy_1 = __webpack_require__(6);
	var plan_feedback_servant_1 = __webpack_require__(13);
	var plan_feedback_transaction_types_query_strategy_1 = __webpack_require__(43);
	var APFeedbackLinkedSuggestionsQuery = /** @class */ (function () {
	    function APFeedbackLinkedSuggestionsQuery(QueryMediator, ngPlanFeebackTermsDatasource, ngPlanFeebackCoursesDatasource, ngFeedbackSelectedLinkedSuggestionModel, ngPlanFeebackCourseGroupsDatasource, ngPlanFeedbackProgramSlotsDatasource) {
	        this.ngPlanFeebackTermsDatasource = ngPlanFeebackTermsDatasource;
	        this.ngPlanFeebackCoursesDatasource = ngPlanFeebackCoursesDatasource;
	        this.ngFeedbackSelectedLinkedSuggestionModel = ngFeedbackSelectedLinkedSuggestionModel;
	        this.ngPlanFeebackCourseGroupsDatasource = ngPlanFeebackCourseGroupsDatasource;
	        this.ngPlanFeedbackProgramSlotsDatasource = ngPlanFeedbackProgramSlotsDatasource;
	        QueryMediator.registerQuery(this, ngFeedbackSelectedLinkedSuggestionModel);
	    }
	    APFeedbackLinkedSuggestionsQuery.prototype.getHeaderTextForCourse = function (nks) {
	        if (!nks) {
	            return '';
	        }
	        var correspondingCourse = _4.find(this.ngPlanFeebackCoursesDatasource.metasource().derived(), {
	            nk: _4.first(nks)
	        });
	        var termField = plan_feedback_transaction_types_query_strategy_1.PlanFeedbackTermFieldIdentifierStrategy[correspondingCourse.diff].currentTermField;
	        var courseName = _4.get(correspondingCourse, "_" + termField + ".name");
	        return this.getTextAgainstAction() + " " + correspondingCourse.course.cd + " in " + courseName;
	    };
	    APFeedbackLinkedSuggestionsQuery.prototype.getHeaderTextForCourseGroup = function (nks) {
	        if (!nks) {
	            return '';
	        }
	        var correspondingCourseGroup = _4.find(this.ngPlanFeebackCourseGroupsDatasource.metasource().derived(), {
	            nk: _4.first(nks)
	        });
	        var termField = plan_feedback_transaction_types_query_strategy_1.PlanFeedbackTermFieldIdentifierStrategy[correspondingCourseGroup.diff].currentTermField;
	        var courseGroupName = _4.get(correspondingCourseGroup, "_" + termField + ".name");
	        return this.getTextAgainstAction() + " " + correspondingCourseGroup.program_slot_obj.desc + " in " + courseGroupName;
	    };
	    APFeedbackLinkedSuggestionsQuery.prototype.getTextAgainstAction = function (withSuffix) {
	        if (withSuffix === void 0) { withSuffix = false; }
	        return new utility_ts_strategy_1.Strategy({
	            ACCEPT: "Accept" + (withSuffix ? 'ing' : ''),
	            REJECT: "Declin'" + (withSuffix ? 'ing' : 'e'),
	            fallback: 'ACCEPT'
	        }).get(this.ngFeedbackSelectedLinkedSuggestionModel.read().action);
	    };
	    APFeedbackLinkedSuggestionsQuery.prototype.getHeaderTextForTerm = function (nks) {
	        if (!nks) {
	            return '';
	        }
	        var feedbackTerm = _4.find(this.ngPlanFeebackTermsDatasource.read(), { nk: _4.first(nks) });
	        return "You've accepted " + feedbackTerm.term.name;
	    };
	    APFeedbackLinkedSuggestionsQuery.prototype.getHeaderText = function () {
	        var linkedSuggestion = this.ngFeedbackSelectedLinkedSuggestionModel.read();
	        var nks = linkedSuggestion.nks;
	        var type = linkedSuggestion.type;
	        if (type === 'COURSE') {
	            return this.getHeaderTextForCourse(nks);
	        }
	        else if (type === 'COURSE_GROUP') {
	            return this.getHeaderTextForCourseGroup(nks);
	        }
	        else if (type === 'TERM') {
	            // TERM
	            return this.getHeaderTextForTerm(nks);
	        }
	        else {
	            // if(type === 'TEMPLATE')
	            return "You've accepted template changes";
	        }
	    };
	    APFeedbackLinkedSuggestionsQuery.prototype.getSuggestions = function () {
	        var linkedSuggestion = this.ngFeedbackSelectedLinkedSuggestionModel.read();
	        var resolutionIds = linkedSuggestion.resolutionIds;
	        var nks = linkedSuggestion.nks;
	        var isTermType = linkedSuggestion.type === 'TERM';
	        var feedbackTerm = isTermType && nks && !_4.isEmpty(nks)
	            ? _4.find(this.ngPlanFeebackTermsDatasource.read(), { nk: _4.first(nks) })
	            : undefined;
	        var _feedbackCourses = this.ngPlanFeebackCoursesDatasource.metasource().derived();
	        var feedbackCourses = _4.filter(_feedbackCourses, function (feedbackCourse) {
	            return plan_feedback_servant_1.PlanFeedbackServant.isValidFeedback(feedbackCourse) && _4.includes(resolutionIds, feedbackCourse.resolution);
	        });
	        var feedbackLinkedDiffTermCourses = _4.filter(feedbackCourses, function (feedbackCourse) {
	            var termField = plan_feedback_transaction_types_query_strategy_1.PlanFeedbackTermFieldIdentifierStrategy[feedbackCourse.diff].currentTermField;
	            return isTermType && feedbackTerm && feedbackCourse[termField] !== feedbackTerm.term.id;
	        });
	        var _feedbackCourseGroups = this.ngPlanFeebackCourseGroupsDatasource.metasource().derived();
	        var feedbackCourseGroups = _4.filter(_feedbackCourseGroups, function (feedbackCourseGroup) {
	            return plan_feedback_servant_1.PlanFeedbackServant.isValidFeedback(feedbackCourseGroup) &&
	                _4.includes(resolutionIds, feedbackCourseGroup.resolution);
	        });
	        var feedbackLinkedDiffTermCourseGroups = _4.filter(feedbackCourseGroups, function (feedbackCourseGroup) {
	            var termField = plan_feedback_transaction_types_query_strategy_1.PlanFeedbackTermFieldIdentifierStrategy[feedbackCourseGroup.diff].currentTermField;
	            return isTermType && feedbackTerm && feedbackCourseGroup[termField] !== feedbackTerm.term.id;
	        });
	        var feedbackProgramSlots = this.ngPlanFeedbackProgramSlotsDatasource
	            .values()
	            .filter(function (feedbackProgramSlot) {
	            return plan_feedback_servant_1.PlanFeedbackServant.isValidFeedback(feedbackProgramSlot) &&
	                _4.includes(resolutionIds, feedbackProgramSlot.resolution);
	        });
	        return {
	            allSuggestions: plan_feedback_servant_1.PlanFeedbackServant.getSuggestionsForCourses(feedbackCourses).concat(plan_feedback_servant_1.PlanFeedbackServant.getSuggestionsForCourseGroups(feedbackCourseGroups).concat(plan_feedback_servant_1.PlanFeedbackServant.getSuggestionsForProgramSlots(feedbackProgramSlots))),
	            suggestionsOutSideOfTerm: plan_feedback_servant_1.PlanFeedbackServant.getSuggestionsForCourses(feedbackLinkedDiffTermCourses).concat(plan_feedback_servant_1.PlanFeedbackServant.getSuggestionsForCourseGroups(feedbackLinkedDiffTermCourseGroups))
	        };
	    };
	    APFeedbackLinkedSuggestionsQuery.prototype.getMiddleText = function () {
	        var diffTextsForMiddleText = {
	            COURSE_GROUP: 'course group',
	            COURSE: 'course',
	            TERM: 'term',
	            TEMPLATE: 'template changes',
	            PROGRAM_SLOT: 'template changes'
	        };
	        return "By " + _4.toLower(this.getTextAgainstAction(true)) + " this " + diffTextsForMiddleText[this.ngFeedbackSelectedLinkedSuggestionModel.read().type] + " the following courses/course groups/template changes will also be updated: ";
	    };
	    APFeedbackLinkedSuggestionsQuery.prototype.declineDisabled = function (suggestions, type) {
	        return type === 'TERM' || _4.find(suggestions, { isLocked: true });
	    };
	    APFeedbackLinkedSuggestionsQuery.prototype.getLinkedSuggestionsOnly = function (allSuggestions, suggestionsOutSideOfTerm) {
	        if (this.ngFeedbackSelectedLinkedSuggestionModel.read().type === 'TERM') {
	            return suggestionsOutSideOfTerm;
	        }
	        else {
	            var nks_1 = this.ngFeedbackSelectedLinkedSuggestionModel.read().nks;
	            return _4.reject(allSuggestions, function (suggestion) { return _4.includes(nks_1, suggestion.transactionNK); });
	        }
	    };
	    APFeedbackLinkedSuggestionsQuery.prototype.run = function () {
	        var action = this.ngFeedbackSelectedLinkedSuggestionModel.read().action;
	        var suggestions = this.getSuggestions();
	        this.__result = {
	            linkedSuggestions: this.getLinkedSuggestionsOnly(suggestions.allSuggestions, suggestions.suggestionsOutSideOfTerm),
	            headerText: this.getHeaderText(),
	            middleText: this.getMiddleText(),
	            declineDisabled: this.declineDisabled(suggestions.allSuggestions, this.ngFeedbackSelectedLinkedSuggestionModel.read().type) ||
	                action === 'ACCEPT',
	            acceptDisabled: action === 'REJECT',
	            suggestions: suggestions.allSuggestions
	        };
	        return this;
	    };
	    Object.defineProperty(APFeedbackLinkedSuggestionsQuery.prototype, "result", {
	        get: function () {
	            return this.__result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APFeedbackLinkedSuggestionsQuery;
	}());
	exports.APFeedbackLinkedSuggestionsQuery = APFeedbackLinkedSuggestionsQuery;
	angular
	    .module('capability-ng-academic-planner')
	    .service('ngAPFeedbackLinkedSuggestionsQuery', APFeedbackLinkedSuggestionsQuery);


/***/ }),
/* 1502 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var DEFAULT_SUGGESTION_TITLE = 'Suggest Changes';
	var SuggestionCommentDialogController = /** @class */ (function () {
	    function SuggestionCommentDialogController(commitSuggestedPlanCommand, ngAPNotificationDelegate, $state, ngFeedbackSuggestedPlanModel, $element, ngAPAdvisorSentFeedbackDiffQuery) {
	        this.commitSuggestedPlanCommand = commitSuggestedPlanCommand;
	        this.ngAPNotificationDelegate = ngAPNotificationDelegate;
	        this.$state = $state;
	        this.ngFeedbackSuggestedPlanModel = ngFeedbackSuggestedPlanModel;
	        this.$element = $element;
	        this.ngAPAdvisorSentFeedbackDiffQuery = ngAPAdvisorSentFeedbackDiffQuery;
	        this.open = false;
	        this.title = DEFAULT_SUGGESTION_TITLE;
	    }
	    SuggestionCommentDialogController.prototype.$onChanges = function (changes) {
	        this.title = this.title || DEFAULT_SUGGESTION_TITLE;
	        this.open = !!this.open;
	    };
	    SuggestionCommentDialogController.prototype.sendComment = function (comment) {
	        var _this = this;
	        var suggestedPlan = this.ngFeedbackSuggestedPlanModel.read();
	        this.commitSuggestedPlanCommand(comment, suggestedPlan.id)
	            .then(function (response) {
	            _this.ngAPNotificationDelegate.success("Suggestions and comment successfully sent.");
	            _this.closeDialog();
	            _this.$state.go("ap-advisor.plan.view.default", {}, { reload: true });
	        })
	            .catch(function (error) {
	            _this.ngAPNotificationDelegate.error("Unable to send suggestions.");
	        });
	    };
	    SuggestionCommentDialogController.prototype.openedChanged = function () {
	        this.closeDialog();
	    };
	    SuggestionCommentDialogController.prototype.closeDialog = function () {
	        this.open = false;
	    };
	    return SuggestionCommentDialogController;
	}());
	var SuggestionCommentDialogComponent = /** @class */ (function () {
	    function SuggestionCommentDialogComponent() {
	        this.bindings = {
	            open: '=',
	            title: '<'
	        };
	        this.controller = SuggestionCommentDialogController;
	        this.templateUrl =
	            'capability-ng-academic-planner/src/suggestions/components/suggestion_comment_dialog/suggestion_comment_dialog.html';
	    }
	    return SuggestionCommentDialogComponent;
	}());
	angular
	    .module('capability-ng-academic-planner')
	    .component('suggestionCommentDialog', new SuggestionCommentDialogComponent());


/***/ }),
/* 1503 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var APSuggestedPlanQuery = /** @class */ (function () {
	    function APSuggestedPlanQuery() {
	    }
	    APSuggestedPlanQuery.prototype.run = function () {
	        this._result = {
	            plan: []
	        };
	        return this;
	    };
	    Object.defineProperty(APSuggestedPlanQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return APSuggestedPlanQuery;
	}());
	exports.APSuggestedPlanQuery = APSuggestedPlanQuery;
	angular.module('capability-ng-academic-planner').service('ngAPSuggestedPlanQuery', APSuggestedPlanQuery);


/***/ }),
/* 1504 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	// Order of utility-ng-log is important don't sort.
	__webpack_require__(27);
	__webpack_require__(39);
	__webpack_require__(48);
	__webpack_require__(67);
	__webpack_require__(50);
	__webpack_require__(108);
	__webpack_require__(34);
	__webpack_require__(22);
	__webpack_require__(21);
	__webpack_require__(5);
	__webpack_require__(51);
	__webpack_require__(906);
	__webpack_require__(40);
	__webpack_require__(46);
	__webpack_require__(114);
	__webpack_require__(274);
	__webpack_require__(16);
	__webpack_require__(111);
	__webpack_require__(441);
	__webpack_require__(112);
	__webpack_require__(445);
	__webpack_require__(277);
	__webpack_require__(116);
	__webpack_require__(446);
	__webpack_require__(3);
	__webpack_require__(269);


/***/ }),
/* 1505 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-appointments')
	    .factory('alternateAppointmentTimesConfirmationCommand', function (defineCommand, $http, QueryMediator, ngAppointmentsCommandServant, log) {
	    return defineCommand('alternateAppointmentTimesConfirmationCommand', function (deferred) {
	        var alternateAppointmentConfirmCommansParams = ngAppointmentsCommandServant.alternateAppointmentConfirmCommandParams;
	        ngAppointmentsCommandServant
	            .request({
	            url: 'appointment_requests',
	            method: 'POST',
	            data: alternateAppointmentConfirmCommansParams
	        })
	            .then(function (response) {
	            deferred.resolve(response);
	        })
	            .catch(function () {
	            log.error('Unable to create appointment');
	            deferred.reject();
	        });
	    });
	});


/***/ }),
/* 1506 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-appointments')
	    .factory('AppointmentSchedulingTypeSelectedCommand', function (defineCommand, QueryMediator, ngAppointmentsTabsConfiguration, ngAppointmentReasonUsersource, ngConfirmAppointmentModel, ngAppointmentLocationsOrganizersUsersource) {
	    return defineCommand('AppointmentSchedulingTypeSelectedCommand', function (deferred, type) {
	        var selectedType = ngAppointmentReasonUsersource.read().selectedType;
	        if (selectedType.id !== type.id) {
	            ngAppointmentReasonUsersource.set('selectedType', type);
	            ngConfirmAppointmentModel.initializeConfirmAppointmentReminderOptions();
	            ngAppointmentReasonUsersource.set('selectedCategory', {});
	            ngAppointmentReasonUsersource.set('selectedService', {});
	            ngAppointmentLocationsOrganizersUsersource.set('selectedLocation', {});
	            ngAppointmentLocationsOrganizersUsersource.set('selectedCourse', {});
	            ngAppointmentLocationsOrganizersUsersource.set('selectedOrganizers', []);
	            ngAppointmentsTabsConfiguration.stepInComplete('1');
	            ngAppointmentsTabsConfiguration.resetNextSteps('1');
	        }
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1507 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-appointments')
	    .factory('checkinAppointmentCommand', function (defineCommand, log, ngUpcomingAppointmentsDatasource, QueryMediator, ngAppointmentsCommandServant, clearAppointmentsCacheOnServerCommand, authToken, ngStcSchedulingConfigModel) {
	    var processResponse = function (deferred, attendance_id, response) {
	        var previousData = ngUpcomingAppointmentsDatasource.read();
	        _4.set(_4.find(previousData.upcomingAppointments, { attendance_id: attendance_id }), 'can_checkin', false);
	        var newVisit = {
	            can_checkout: true,
	            attendance_id: attendance_id,
	            check_in_time: response.data.visit.check_in_time,
	            id: response.data.visit.id,
	            location: response.data.location.name,
	            queue: response.data.visit.queue,
	            staff: response.data.staff.first_name + " " + response.data.staff.last_name,
	            state: response.data.visit.state,
	            student_services: [_4.get(_4.first(response.data.services), 'name')]
	        };
	        previousData.activeVisits.push(newVisit);
	        ngUpcomingAppointmentsDatasource.update(previousData);
	        clearAppointmentsCacheOnServerCommand();
	        QueryMediator.runQueries(ngUpcomingAppointmentsDatasource);
	        deferred.resolve(response);
	    };
	    return defineCommand('checkinAppointmentCommand', function (deferred, attendance_id) {
	        var data = {
	            attendance_id: attendance_id
	        };
	        if (ngStcSchedulingConfigModel.read().v3_student_scheduler_flag) {
	            authToken
	                .campusTokenRequest({
	                method: 'POST',
	                url: '/api/v3/student_resources/appointment_checkins',
	                data: data
	            })
	                .then(function (response) {
	                processResponse(deferred, attendance_id, response);
	            })
	                .catch(function (err) {
	                log.error('unable to check in appointment');
	                deferred.reject(err);
	            });
	        }
	        else {
	            ngAppointmentsCommandServant
	                .request({
	                url: 'appointment_checkins',
	                method: 'POST',
	                data: data
	            })
	                .then(function (response) {
	                processResponse(deferred, attendance_id, response);
	            })
	                .catch(function (error) {
	                log.error('unable to check in appointment');
	                deferred.reject(error);
	            });
	        }
	    });
	});


/***/ }),
/* 1508 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-appointments')
	    .factory('checkoutAppointmentCommand', function (defineCommand, log, ngAppointmentsCommandServant, QueryMediator, ngUpcomingAppointmentsDatasource, clearAppointmentsCacheOnServerCommand, authToken, ngStcSchedulingConfigModel) {
	    return defineCommand('checkoutAppointmentCommand', function (deferred, visit_id, attendance_id) {
	        var data = {
	            visit_id: visit_id
	        };
	        if (ngStcSchedulingConfigModel.read().v3_student_scheduler_flag) {
	            authToken
	                .campusTokenRequest({
	                method: 'POST',
	                url: '/api/v3/student_resources/checkouts',
	                data: data
	            })
	                .then(function (response) {
	                clearAppointmentsCacheOnServerCommand();
	                deferred.resolve(response);
	            })
	                .catch(function (error) {
	                log.error('unable to checkout appointment');
	                deferred.reject(error);
	            });
	        }
	        else {
	            ngAppointmentsCommandServant
	                .request({
	                url: 'checkouts',
	                method: 'POST',
	                data: data
	            })
	                .then(function (response) {
	                clearAppointmentsCacheOnServerCommand();
	                deferred.resolve(response);
	            })
	                .catch(function (error) {
	                log.error('unable to checkout appointment');
	                deferred.reject(error);
	            });
	        }
	    });
	});


/***/ }),
/* 1509 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-appointments')
	    .factory('appointmentsConfirmCommand', function (defineCommand, QueryMediator) {
	    return defineCommand('appointmentsConfirmCommand', function (deferred) {
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1510 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-appointments')
	    .factory('appointmentsConfirmationCommand', function (defineCommand, $http, QueryMediator, ngAppointmentsCommandServant, ngAppointmentsconfirmServent, clearAppointmentsCacheOnServerCommand, accountModel, appointmentCampaignConstant, log) {
	    return defineCommand('appointmentsConfirmationCommand', function (deferred) {
	        var confirmationCommandParams = appointmentCampaignConstant.campaignInvitationId > 0
	            ? ngAppointmentsconfirmServent.appointmentInvitationConfirmData
	            : ngAppointmentsconfirmServent.appointmentsConformationData;
	        var _url = appointmentCampaignConstant.campaignInvitationId > 0 ? 'appointment_campaign/appointments' : 'appointments';
	        ngAppointmentsCommandServant
	            .request({
	            url: _url,
	            method: 'POST',
	            data: confirmationCommandParams
	        })
	            .then(function (response) {
	            clearAppointmentsCacheOnServerCommand();
	            deferred.resolve(response);
	        }, function () {
	            log.error('Unable to create appointment');
	            deferred.reject();
	        });
	    });
	});


/***/ }),
/* 1511 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-appointments')
	    .factory('AppointmentsCoursesSelectedCommand', function (defineCommand, $http, QueryMediator, ngAppointmentsTabsConfiguration, ngAppointmentAvailableTimesUsersource, ngAppointmentLocationsOrganizersUsersource, log) {
	    return defineCommand('AppointmentsCoursesSelectedCommand', function (deferred, course) {
	        if (ngAppointmentLocationsOrganizersUsersource.read().selectedCourse.id !== course.id) {
	            ngAppointmentsTabsConfiguration.resetNextSteps('1');
	            ngAppointmentLocationsOrganizersUsersource.set('selectedCourse', course);
	            ngAppointmentLocationsOrganizersUsersource.set('selectedOrganizers', []);
	            ngAppointmentAvailableTimesUsersource.set('selectedTime', {});
	            ngAppointmentAvailableTimesUsersource.set('selectedTimeDetails', {});
	        }
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1512 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-appointments')
	    .factory('dropinAppointmentCommand', function (defineCommand, log, QueryMediator, ngAppointmentsCommandServant) {
	    return defineCommand('dropinAppointmentCommand', function (deferred, location_id, service_id, care_unit_id, staff_id, course_id) {
	        var payload = {
	            location_id: location_id,
	            service_id: service_id,
	            care_unit_id: care_unit_id
	        };
	        if (staff_id) {
	            _4.set(payload, 'staff_id', staff_id);
	        }
	        if (course_id) {
	            _4.set(payload, 'course_id', course_id);
	        }
	        ngAppointmentsCommandServant
	            .request({
	            url: 'dropins',
	            method: 'POST',
	            data: payload
	        })
	            .then(function (response) {
	            QueryMediator.runQueries();
	            deferred.resolve(response);
	        })
	            .catch(function (error) {
	            log.error('unable to check in first available appointment');
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 1513 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-appointments')
	    .factory('loadAppointmentsStaffCommand', function (defineCommand, $http, QueryMediator, ngAppointmentsTabsConfiguration, ngAppointmentAvailableTimesUsersource, ngAppointmentLocationsOrganizersUsersource, log) {
	    return defineCommand('loadAppointmentsStaffCommand', function (deferred, location) {
	        if (ngAppointmentLocationsOrganizersUsersource.read().selectedLocation.id !== location.id) {
	            ngAppointmentsTabsConfiguration.resetNextSteps('1');
	            ngAppointmentLocationsOrganizersUsersource.set('selectedLocation', location);
	            ngAppointmentLocationsOrganizersUsersource.set('selectedCourse', {});
	            ngAppointmentLocationsOrganizersUsersource.set('selectedOrganizers', []);
	            ngAppointmentAvailableTimesUsersource.set('selectedTime', {});
	            ngAppointmentAvailableTimesUsersource.set('selectedTimeDetails', {});
	        }
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1514 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-appointments')
	    .factory('AppointmentsServiceCategorySelectedCommand', function (defineCommand, $http, QueryMediator, ngAppointmentsTabsConfiguration, ngAppointmentReasonUsersource, ngAppointmentLocationsOrganizersUsersource, log) {
	    return defineCommand('AppointmentsServiceCategorySelectedCommand', function (deferred, category) {
	        var selectedCategory = ngAppointmentReasonUsersource.read().selectedCategory;
	        if (selectedCategory.id !== category.id) {
	            ngAppointmentReasonUsersource.set('selectedCategory', category);
	            ngAppointmentReasonUsersource.set('selectedService', {});
	            ngAppointmentLocationsOrganizersUsersource.set('selectedLocation', {});
	            ngAppointmentLocationsOrganizersUsersource.set('selectedOrganizers', []);
	            ngAppointmentLocationsOrganizersUsersource.set('selectedCourse', {});
	            ngAppointmentsTabsConfiguration.stepInComplete('1');
	            ngAppointmentsTabsConfiguration.resetNextSteps('1');
	        }
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1515 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-appointments')
	    .factory('AppointmentsServiceSelectedCommand', function (defineCommand, $http, QueryMediator, ngAppointmentReasonUsersource, ngAppointmentLocationsOrganizersUsersource, ngAppointmentsTabsConfiguration) {
	    return defineCommand('AppointmentsServiceSelectedCommand', function (deferred, service) {
	        var selectedService = ngAppointmentReasonUsersource.read().selectedService;
	        if (selectedService.id !== service.id) {
	            ngAppointmentReasonUsersource.set('selectedService', service);
	            ngAppointmentLocationsOrganizersUsersource.set('selectedLocation', {});
	            ngAppointmentLocationsOrganizersUsersource.set('selectedOrganizers', []);
	            ngAppointmentLocationsOrganizersUsersource.set('selectedCourse', {});
	            ngAppointmentsTabsConfiguration.resetNextSteps('1');
	        }
	        ngAppointmentsTabsConfiguration.stepCompleted('1');
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1516 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-appointments')
	    .factory('AppointmentsStaffSelectedCommand', function (defineCommand, $http, QueryMediator, ngAppointmentAvailableTimesUsersource, ngAppointmentsTabsConfiguration, ngAppointmentLocationsOrganizersUsersource) {
	    return defineCommand('AppointmentsStaffSelectedCommand', function (deferred, staff) {
	        ngAppointmentLocationsOrganizersUsersource.selectedOrganizers = staff;
	        ngAppointmentAvailableTimesUsersource.set('selectedTime', {});
	        ngAppointmentAvailableTimesUsersource.set('selectedTimeDetails', {});
	        ngAppointmentsTabsConfiguration.resetNextSteps('2');
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1517 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-appointments')
	    .factory('AppointmentsTimeSelectionChangeCommand', function (defineCommand, $http, QueryMediator, ngAppointmentsAvailableTimesDatasource) {
	    return defineCommand('AppointmentsTimeSelectionChangeCommand', function (deferred, item) {
	        ngAppointmentsAvailableTimesDatasource.setSelectedTime(item);
	        deferred.resolve(QueryMediator.runQueries(ngAppointmentsAvailableTimesDatasource));
	    });
	});


/***/ }),
/* 1518 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-appointments')
	    .factory('cancelAppointmentCommand', function (defineCommand, $http, QueryMediator, ngAppointmentsCommandServant, clearAppointmentsCacheOnServerCommand, log) {
	    return defineCommand('cancelAppointmentCommand', function (deferred, appointment, cancellationForm) {
	        ngAppointmentsCommandServant
	            .request({
	            url: 'appointment_cancellations/cancel',
	            method: 'POST',
	            data: {
	                cancel_reason_id: cancellationForm.cancellation_reason_id,
	                cancel_comment: cancellationForm.comments,
	                calendar_instance_id: appointment.calendar_instance_id,
	                cancel_future: cancellationForm.cancel_all
	            }
	        })
	            .then(function (response) {
	            clearAppointmentsCacheOnServerCommand();
	            deferred.resolve(response);
	        }, function () {
	            log.error('Unable to cancel appointment');
	            deferred.reject();
	        });
	    });
	});


/***/ }),
/* 1519 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-appointments')
	    .factory('clearAllAppointmentsDataSourcesCommand', function (defineCommand, ngAppointmentsAvailableTimesDatasource, ngAppointmentsTabsConfiguration, ngAppointmentsAvailableTimesServant, ngAppointmentReasonTypeDatasource, ngAlternateAppointmentTimesUsersource, ngAppointmentReasonUsersource, appointmentCampaignConstant, ngAppointmentAvailableTimesUsersource, ngConfirmAppointmentModel, QueryMediator, ngAppointmentLocationsOrganizersUsersource, ngAppointmentLocationsOrganizersDatasource) {
	    return defineCommand('clearAllAppointmentsDataSourcesCommand', function (deferred) {
	        ngAppointmentReasonTypeDatasource.clear();
	        ngConfirmAppointmentModel.initializeConfirmAppointmentReminderOptions();
	        appointmentCampaignConstant.isAppointmentCampaign = false;
	        appointmentCampaignConstant.campaignInvitationId = 0;
	        ngAppointmentReasonUsersource.set('selectedCategory', {});
	        ngAppointmentReasonUsersource.set('selectedService', {});
	        ngAppointmentReasonUsersource.set('selectedType', {});
	        ngAlternateAppointmentTimesUsersource.availability = '';
	        ngAlternateAppointmentTimesUsersource.set('selectedLocation', {});
	        ngAppointmentAvailableTimesUsersource.set('selectedTime', {});
	        ngAppointmentLocationsOrganizersUsersource.set('selectedLocation', {});
	        ngAppointmentLocationsOrganizersUsersource.set('selectedCourse', {});
	        ngAppointmentLocationsOrganizersUsersource.set('selectedOrganizers', []);
	        ngAppointmentLocationsOrganizersDatasource.clear();
	        ngAppointmentsAvailableTimesDatasource.clear();
	        ngAppointmentAvailableTimesUsersource.clear();
	        ngAppointmentsAvailableTimesServant.clearWeekOffSet();
	        QueryMediator.runQueries(ngAppointmentReasonTypeDatasource, ngAppointmentsAvailableTimesDatasource);
	        ngAppointmentsTabsConfiguration.resetToDefault();
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1520 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-appointments')
	    .factory('clearAppointmentsCacheOnServerCommand', function (defineCommand, $http, log) {
	    return defineCommand('clearAppointmentsCacheOnServerCommand', function (deferred) {
	        $http({
	            url: 'ssccampus/appointment/cache/',
	            method: 'POST'
	        }).then(function (response) {
	            deferred.resolve(response);
	        }, function () {
	            log.error('Unable to clear appointment cache');
	            deferred.reject();
	        });
	    });
	});


/***/ }),
/* 1521 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-appointments')
	    .factory('loadAppointmentTypeConfigurationServiceCommand', function (defineCommand, $http, QueryMediator, ngAppointmentsCommandServant, ngAppointmentReasonTypeDatasource, log) {
	    return defineCommand('loadAppointmentTypeConfigurationServiceCommand', function (deferred) {
	        ngAppointmentsCommandServant
	            .request({
	            url: 'scheduler_configs',
	            method: 'GET'
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            ngAppointmentReasonTypeDatasource
	                .includeModel({
	                appointment_type_instructions: data.appointment_type_instructions
	            })
	                .write(data.appointment_types);
	            QueryMediator.runQueries(ngAppointmentReasonTypeDatasource);
	            deferred.resolve();
	        })
	            .catch(function () {
	            log.error('Unable to get appointment type configuration');
	            deferred.reject();
	        });
	    });
	});


/***/ }),
/* 1522 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-appointments')
	    .factory('loadAppointmentsAvailableTimesCommand', function (defineCommand, $http, QueryMediator, ngAppointmentsAvailableTimesDatasource, ngAppointmentsCommandServant, ngAppointmentsTabsConfiguration, ngAppointmentReasonUsersource, ngAppointmentLocationsOrganizersUsersource, log, ngAppointmentsAvailableTimesQuery, ngAppointmentAvailableTimesDatasource1, ngAppointmentsAvailableTimesServant) {
	    return defineCommand('loadAppointmentsAvailableTimesCommand', function (deferred, weekOffset, invitationId) {
	        ngAppointmentsCommandServant
	            .request({
	            url: invitationId > 0 ? 'appointment_campaign/scheduler_times' : 'scheduler_times',
	            method: 'GET',
	            params: ngAppointmentsAvailableTimesServant.requestParams(weekOffset, invitationId)
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            var filteredData = _.map(data.days, function (day, key) { return ({
	                id: _4.toNumber(key + 1),
	                allTimes: tslib_1.__spreadArrays(day.morning, day.afternoon)
	            }); });
	            ngAppointmentAvailableTimesDatasource1.clear();
	            ngAppointmentAvailableTimesDatasource1.write(filteredData);
	            ngAppointmentsTabsConfiguration.stepInComplete('3');
	            QueryMediator.runQueries(ngAppointmentAvailableTimesDatasource1);
	            deferred.resolve(ngAppointmentsAvailableTimesQuery.result.availableTimesList);
	        }, function (rejection) {
	            log.error('Unable to get available times');
	            deferred.reject();
	        });
	    });
	});


/***/ }),
/* 1523 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-appointments')
	    .factory('loadAppointmentsLocationsCommand', function (defineCommand, $http, QueryMediator, ngAppointmentsCommandServant, log, ngAppointmentReasonUsersource, ngAppointmentLocationsOrganizersDatasource) {
	    return defineCommand('loadAppointmentsLocationsCommand', function (deferred) {
	        var requestConfig = {
	            url: 'scheduler_locations',
	            method: 'GET',
	            params: ngAppointmentsCommandServant.locationsCommandParams
	        };
	        ngAppointmentsCommandServant
	            .request(requestConfig)
	            .then(function (_a) {
	            var data = _a.data;
	            ngAppointmentLocationsOrganizersDatasource.clear().write(data);
	            deferred.resolve(QueryMediator.runQueries(ngAppointmentLocationsOrganizersDatasource));
	        })
	            .catch(function () {
	            log.error('Unable to get locations and organizers/staff Data.');
	            deferred.reject();
	        });
	    });
	});


/***/ }),
/* 1524 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-appointments')
	    .factory('loadAvailableWalkinTimesCommand', function (defineCommand, $http, QueryMediator, ngAppointmentsCommandServant, log, ngAppointmentsAvailableTimesServant) {
	    return defineCommand('loadAvailableWalkinTimesCommand', function (deferred) {
	        var walkinTimesParams = ngAppointmentsCommandServant.walkIntimesCommandParams;
	        ngAppointmentsCommandServant
	            .request({
	            url: 'dropins',
	            method: 'GET',
	            params: walkinTimesParams
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            deferred.resolve(data);
	        })
	            .catch(function () {
	            log.error('Unable to get available walkin times.');
	            deferred.reject();
	        });
	    });
	});


/***/ }),
/* 1525 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-appointments')
	    .factory('loadCancellationReasonsCommand', function (defineCommand, $http, QueryMediator, ngAppointmentsCommandServant, log, ngCancellationReasonsDatasource) {
	    return defineCommand('loadCancellationReasonsCommand', function (deferred, appointmentId, calendarInstanceId) {
	        ngAppointmentsCommandServant
	            .request({
	            url: 'cancel_reasons',
	            method: 'GET',
	            params: { calendar_instance_id: calendarInstanceId }
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            ngCancellationReasonsDatasource.write(data);
	            deferred.resolve(QueryMediator.runQueries(ngCancellationReasonsDatasource));
	        }, function () {
	            log.error('Unable to load cacellation reasons');
	            deferred.reject();
	        });
	    });
	});


/***/ }),
/* 1526 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-appointments')
	    .factory('loadUpcomingAppointmentsCommand', function (defineCommand, $http, QueryMediator, ngAppointmentsCommandServant, ngCurrentUserAppointmentsServant, ngUpcomingAppointmentsDatasource, log) {
	    return defineCommand('loadUpcomingAppointmentsCommand', function (deferred) {
	        ngAppointmentsCommandServant
	            .request({
	            url: 'current_user',
	            method: 'GET',
	            params: { slim: true }
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            ngUpcomingAppointmentsDatasource.write(ngCurrentUserAppointmentsServant.studentAppointmentSchedulingInfo(data));
	            deferred.resolve(QueryMediator.runQueries(ngUpcomingAppointmentsDatasource));
	        })
	            .catch(function (err) {
	            log.error('Unable to get all appointments');
	            log.user.issue('Unable to load your appointments!');
	            deferred.reject(err);
	        });
	    });
	});


/***/ }),
/* 1527 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-appointments')
	    .factory('prepareAppointmentCampaignRequestCommand', function (defineCommand, QueryMediator, $state, ngUpcomingAppointmentsQuery, ngAppointmentsTabsConfiguration, ngAppointmentReasonTypeDatasource, ngAppointmentLocationsOrganizersDatasource, ngAppointmentLocationsOrganizersUsersource, ngAppointmentReasonUsersource, ngPrepareAppointmentCampaignServant, appointmentCampaignConstant) {
	    return defineCommand('prepareAppointmentCampaignRequestCommand', function (deferred, appointmentCampaignRequest) {
	        var _a = ngPrepareAppointmentCampaignServant.prepareAppointmentCampaignConfigData(appointmentCampaignRequest), appointment_type_instructions = _a.appointment_type_instructions, appointment_types = _a.appointment_types;
	        var location_organizers_data = ngPrepareAppointmentCampaignServant.prepareAppointmentLocationOrganizersData(appointmentCampaignRequest);
	        ngAppointmentReasonTypeDatasource
	            .includeModel({
	            appointment_type_instructions: appointment_type_instructions
	        })
	            .write(appointment_types);
	        ngAppointmentLocationsOrganizersDatasource.write(location_organizers_data);
	        QueryMediator.runQueries(ngAppointmentReasonTypeDatasource, ngAppointmentLocationsOrganizersDatasource);
	        ngPrepareAppointmentCampaignServant.prepareAppointmentWorkflowStepsforCampaignRequest();
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1528 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var AppointmentCheckin = /** @class */ (function () {
	    function AppointmentCheckin(appConfigModel, checkinAppointmentCommand, checkoutAppointmentCommand, ngPopupService, $state, ngUpcomingAppointmentsQuery, log, ngAppointmentSchedulingServant) {
	        this.appConfigModel = appConfigModel;
	        this.checkinAppointmentCommand = checkinAppointmentCommand;
	        this.checkoutAppointmentCommand = checkoutAppointmentCommand;
	        this.ngPopupService = ngPopupService;
	        this.$state = $state;
	        this.ngUpcomingAppointmentsQuery = ngUpcomingAppointmentsQuery;
	        this.log = log;
	        this.ngAppointmentSchedulingServant = ngAppointmentSchedulingServant;
	        this.isDropin = false;
	        this.checkoutId = -1;
	        this.attendanceId = -1;
	    }
	    AppointmentCheckin.prototype.$onInit = function () {
	        this.init();
	    };
	    AppointmentCheckin.prototype.$onChanges = function () {
	        this.init();
	    };
	    AppointmentCheckin.prototype.init = function () {
	        this.isDropin = !_4.isEmpty(this.activeVisit) && _4.isNull(this.activeVisit.attendance_id);
	        this.canCheckin = this.isDropin ? false : _4.get(this.appointment, 'can_checkin', false);
	        this.canCheckout = this.isDropin
	            ? _4.get(this.activeVisit, 'can_checkout', false)
	            : _4.get(this.appointment, 'can_checkout') || _4.get(this.appointment, '_canCheckout', false);
	        this.checkoutId = this.isDropin
	            ? _4.get(this.activeVisit, 'id', -1)
	            : _4.get(this.appointment, '_activeVisit.id') || _4.get(this.appointment, 'active_visit_id', -1);
	        this.attendanceId = _4.get(this.appointment, 'attendance_id', -1);
	        this.showCheckInNotAvailable = !this.canCheckin && !this.canCheckout;
	        this.isMobile = utility_ts_platform_1.PlatformUtility.isMobile();
	    };
	    AppointmentCheckin.prototype.postCheckinCheckout = function () {
	        this.redirectUser();
	    };
	    AppointmentCheckin.prototype.redirectUser = function () {
	        var currentState = _4.get(this.$state, 'current.name', '');
	        if (_4.includes(currentState, 'todos')) {
	            return this.$state.go('my.todos');
	        }
	        return this.$state.go('my.myAppointments.upcoming');
	    };
	    AppointmentCheckin.prototype.checkin = function () {
	        var _this = this;
	        this.ngAppointmentSchedulingServant.getSchedulingConfig().then(function () {
	            _this.checkinAppointmentCommand(_this.attendanceId)
	                .then(function (response) {
	                var message = "You have checked in to see " + response.data.staff.first_name + " " + response.data.staff.last_name + ".  Look out for an email, text, or phone call for next steps.";
	                _this.ngPopupService.show({
	                    title: 'Appointment Check-in',
	                    body: message,
	                    completeButtonText: 'Okay',
	                    acceptOnly: true
	                });
	                _this.postCheckinCheckout();
	            })
	                .catch(function (error) {
	                _this.log.error(error);
	                _this.showErrorModal(error);
	            });
	        });
	    };
	    AppointmentCheckin.prototype.checkout = function () {
	        var _this = this;
	        this.ngAppointmentSchedulingServant.getSchedulingConfig().then(function () {
	            _this.checkoutAppointmentCommand(_this.checkoutId, _this.attendanceId)
	                .then(function (response) {
	                _this.ngPopupService.show({
	                    title: 'Appointment Checkout',
	                    body: 'You have successfully been checked out',
	                    completeButtonText: 'Okay',
	                    acceptOnly: true
	                });
	                _this.postCheckinCheckout();
	            })
	                .catch(function (error) {
	                _this.log.error(error);
	                _this.showErrorModal(error);
	            });
	        });
	    };
	    AppointmentCheckin.prototype.showErrorModal = function (error) {
	        this.log.error(error);
	        this.ngPopupService.show({
	            title: 'Appointment Checkout',
	            body: _.map(_.get(error, 'data.metadata.errors')).join(' '),
	            completeButtonText: 'Okay',
	            acceptOnly: true
	        });
	    };
	    return AppointmentCheckin;
	}());
	exports.AppointmentCheckin = AppointmentCheckin;
	angular
	    .module('capability-ng-appointments')
	    .component('appointmentCheckin', {
	    bindings: {
	        appointment: '<',
	        activeVisit: '<'
	    },
	    templateUrl: 'capability-ng-appointments/src/components/appointment_checkin/appointment_checkin.html',
	    controller: 'appointmentCheckinController'
	})
	    .controller('appointmentCheckinController', AppointmentCheckin);


/***/ }),
/* 1529 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var AppointmentDropin = /** @class */ (function () {
	    function AppointmentDropin(dropinAppointmentCommand, ngAppointmentReasonUsersource, ngPopupService, log, $state, ngAppointmentLocationsOrganizersUsersource) {
	        this.dropinAppointmentCommand = dropinAppointmentCommand;
	        this.ngAppointmentReasonUsersource = ngAppointmentReasonUsersource;
	        this.ngPopupService = ngPopupService;
	        this.log = log;
	        this.$state = $state;
	        this.ngAppointmentLocationsOrganizersUsersource = ngAppointmentLocationsOrganizersUsersource;
	        this.serviceId = 0;
	        this.careUnitId = 0;
	        this.firstAvailable = false;
	        this.staffId = undefined;
	        this.courseId = undefined;
	        this.modalMessage = '';
	    }
	    AppointmentDropin.prototype.$onInit = function () {
	        this.init();
	    };
	    AppointmentDropin.prototype.$onChanges = function () {
	        this.init();
	    };
	    Object.defineProperty(AppointmentDropin.prototype, "canCheckIn", {
	        get: function () {
	            return this.firstAvailable
	                ? this.location.can_dropin_with_first_available
	                : this.organizer.currently_available_for_dropins;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    AppointmentDropin.prototype.init = function () {
	        this.serviceId = _4.get(this.ngAppointmentReasonUsersource.selectedService, 'id');
	        this.staffId = _4.get(this.organizer, 'user_id', undefined);
	        this.careUnitId = _4.get(this.ngAppointmentReasonUsersource.selectedType, 'id');
	        this.modalMessage = this.firstAvailable
	            ? "You have dropped in to see the first available staff member.  Look out for an email, text, or phone call for next steps."
	            : "\n      You have dropped in to see " + this.organizer.name + ".  Look out for an email, text, or phone call for next steps.";
	        this.courseId = _4.get(this.ngAppointmentLocationsOrganizersUsersource.selectedCourse, 'id');
	    };
	    AppointmentDropin.prototype.checkin = function () {
	        var _this = this;
	        this.dropinAppointmentCommand(this.location.location_id, this.serviceId, this.careUnitId, this.staffId, this.courseId)
	            .then(function (response) {
	            _this.ngPopupService.show({
	                title: 'Appointment Drop-in',
	                body: _this.modalMessage,
	                completeButtonText: 'Okay',
	                acceptOnly: true,
	                completeCallback: function () {
	                    _this.$state.go('my.myAppointments.upcoming');
	                }
	            });
	        })
	            .catch(function (error) {
	            _this.log.error(error);
	            _this.ngPopupService.show({
	                title: 'Appointment Drop-in',
	                body: _.first(_.get(error, 'data.metadata.errors')),
	                completeButtonText: 'Okay',
	                acceptOnly: true
	            });
	        });
	    };
	    return AppointmentDropin;
	}());
	exports.AppointmentDropin = AppointmentDropin;
	angular
	    .module('capability-ng-appointments')
	    .component('appointmentDropin', {
	    bindings: {
	        location: '<',
	        organizer: '<',
	        firstAvailable: '<'
	    },
	    templateUrl: 'capability-ng-appointments/src/components/appointment_dropin/appointment_dropin.html',
	    controller: 'appointmentDropinController'
	})
	    .controller('appointmentDropinController', AppointmentDropin);


/***/ }),
/* 1530 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var appointment_scheduling_configuration_1 = __webpack_require__(74);
	angular
	    .module('capability-ng-appointments')
	    .service('ngAppointmentSchedulingConfiguration', appointment_scheduling_configuration_1.AppointmentSchedulingConfiguration);


/***/ }),
/* 1531 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(1505);
	__webpack_require__(1506);
	__webpack_require__(1509);
	__webpack_require__(1510);
	__webpack_require__(1511);
	__webpack_require__(1513);
	__webpack_require__(1514);
	__webpack_require__(1515);
	__webpack_require__(1516);
	__webpack_require__(1517);
	__webpack_require__(1518);
	__webpack_require__(1519);
	__webpack_require__(1520);
	__webpack_require__(1521);
	__webpack_require__(1522);
	__webpack_require__(1523);
	__webpack_require__(1524);
	__webpack_require__(1525);
	__webpack_require__(1526);
	__webpack_require__(1527);
	__webpack_require__(1507);
	__webpack_require__(1508);
	__webpack_require__(1512);
	__webpack_require__(132);
	__webpack_require__(527);
	__webpack_require__(133);
	__webpack_require__(528);
	__webpack_require__(134);
	__webpack_require__(529);
	__webpack_require__(1528);
	__webpack_require__(1529);
	__webpack_require__(135);
	__webpack_require__(530);
	__webpack_require__(136);
	__webpack_require__(73);
	__webpack_require__(531);
	__webpack_require__(74);
	__webpack_require__(1530);
	__webpack_require__(1532);
	__webpack_require__(1533);
	__webpack_require__(137);
	__webpack_require__(1534);
	__webpack_require__(138);
	__webpack_require__(75);
	__webpack_require__(532);
	__webpack_require__(76);
	__webpack_require__(77);
	__webpack_require__(533);
	__webpack_require__(139);
	__webpack_require__(534);
	__webpack_require__(140);
	__webpack_require__(141);
	__webpack_require__(142);
	__webpack_require__(143);
	__webpack_require__(144);
	__webpack_require__(145);
	__webpack_require__(146);
	__webpack_require__(147);
	__webpack_require__(78);
	__webpack_require__(535);
	__webpack_require__(79);
	__webpack_require__(1536);
	__webpack_require__(148);
	__webpack_require__(30);
	__webpack_require__(80);
	__webpack_require__(81);
	__webpack_require__(536);
	__webpack_require__(82);
	__webpack_require__(83);
	__webpack_require__(84);
	__webpack_require__(85);
	__webpack_require__(86);
	__webpack_require__(87);
	__webpack_require__(88);
	__webpack_require__(537);
	__webpack_require__(149);
	__webpack_require__(89);
	__webpack_require__(538);
	__webpack_require__(1537);
	__webpack_require__(1538);
	__webpack_require__(90);
	__webpack_require__(91);
	__webpack_require__(92);
	__webpack_require__(93);
	__webpack_require__(539);
	__webpack_require__(150);
	__webpack_require__(151);
	__webpack_require__(540);
	__webpack_require__(152);
	__webpack_require__(153);
	__webpack_require__(154);
	__webpack_require__(155);
	__webpack_require__(156);
	__webpack_require__(157);
	__webpack_require__(541);
	__webpack_require__(158);
	__webpack_require__(159);


/***/ }),
/* 1532 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	angular.module('capability-ng-appointments').factory('ngAppointmentLocationsOrganizersDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        updateMode: 'merge'
	    });
	});


/***/ }),
/* 1533 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	angular.module('capability-ng-appointments').factory('ngAppointmentReasonTypeDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        updateMode: 'merge'
	    });
	});


/***/ }),
/* 1534 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	angular.module('capability-ng-appointments').factory('ngAppointmentAvailableTimesDatasource1', function () {
	    return new utility_ng_kernel_1.Datasource({
	        updateMode: 'merge'
	    });
	});


/***/ }),
/* 1535 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	__webpack_require__(1539);
	angular
	    .module('capability-ng-appointments', [
	    'ngSanitize',
	    'ngAria',
	    'utility-ng-enumeration',
	    'utility-ng-interface',
	    'ui-ng-delegate',
	    'utility-ng-auth-token',
	    'ui-ng-week-times',
	    'ui-ng-content-tile',
	    'ui-ng-app-content',
	    'ui-ng-content-tabs',
	    'ui-ng-navbar',
	    'ui-ng-popup',
	    'capability-ng-notification-settings'
	])
	    .value('appointmentCampaignConstant', {
	    isAppointmentCampaign: false,
	    campaignInvitationId: 0
	});
	__webpack_require__(1531);
	exports.APPOINTMENTS = 'capability-ng-appointments';
	__webpack_require__(74);
	tslib_1.__exportStar(__webpack_require__(74), exports);
	tslib_1.__exportStar(__webpack_require__(531), exports);
	tslib_1.__exportStar(__webpack_require__(136), exports);
	tslib_1.__exportStar(__webpack_require__(527), exports);
	tslib_1.__exportStar(__webpack_require__(135), exports);
	tslib_1.__exportStar(__webpack_require__(529), exports);
	tslib_1.__exportStar(__webpack_require__(530), exports);
	tslib_1.__exportStar(__webpack_require__(136), exports);
	tslib_1.__exportStar(__webpack_require__(73), exports);
	tslib_1.__exportStar(__webpack_require__(75), exports);
	tslib_1.__exportStar(__webpack_require__(532), exports);
	tslib_1.__exportStar(__webpack_require__(76), exports);
	tslib_1.__exportStar(__webpack_require__(77), exports);
	tslib_1.__exportStar(__webpack_require__(533), exports);
	tslib_1.__exportStar(__webpack_require__(139), exports);
	tslib_1.__exportStar(__webpack_require__(534), exports);
	tslib_1.__exportStar(__webpack_require__(78), exports);
	tslib_1.__exportStar(__webpack_require__(535), exports);
	tslib_1.__exportStar(__webpack_require__(79), exports);
	tslib_1.__exportStar(__webpack_require__(30), exports);
	tslib_1.__exportStar(__webpack_require__(80), exports);
	tslib_1.__exportStar(__webpack_require__(81), exports);
	tslib_1.__exportStar(__webpack_require__(82), exports);
	tslib_1.__exportStar(__webpack_require__(83), exports);
	tslib_1.__exportStar(__webpack_require__(84), exports);
	tslib_1.__exportStar(__webpack_require__(85), exports);
	tslib_1.__exportStar(__webpack_require__(86), exports);
	tslib_1.__exportStar(__webpack_require__(87), exports);
	tslib_1.__exportStar(__webpack_require__(88), exports);
	tslib_1.__exportStar(__webpack_require__(537), exports);
	tslib_1.__exportStar(__webpack_require__(149), exports);
	tslib_1.__exportStar(__webpack_require__(89), exports);
	tslib_1.__exportStar(__webpack_require__(538), exports);
	tslib_1.__exportStar(__webpack_require__(90), exports);
	tslib_1.__exportStar(__webpack_require__(91), exports);
	tslib_1.__exportStar(__webpack_require__(92), exports);
	tslib_1.__exportStar(__webpack_require__(93), exports);
	tslib_1.__exportStar(__webpack_require__(539), exports);
	tslib_1.__exportStar(__webpack_require__(150), exports);
	tslib_1.__exportStar(__webpack_require__(151), exports);
	tslib_1.__exportStar(__webpack_require__(540), exports);
	tslib_1.__exportStar(__webpack_require__(152), exports);
	tslib_1.__exportStar(__webpack_require__(153), exports);
	tslib_1.__exportStar(__webpack_require__(154), exports);
	tslib_1.__exportStar(__webpack_require__(155), exports);
	tslib_1.__exportStar(__webpack_require__(156), exports);
	tslib_1.__exportStar(__webpack_require__(152), exports);
	tslib_1.__exportStar(__webpack_require__(155), exports);
	tslib_1.__exportStar(__webpack_require__(153), exports);
	tslib_1.__exportStar(__webpack_require__(158), exports);
	tslib_1.__exportStar(__webpack_require__(159), exports);
	tslib_1.__exportStar(__webpack_require__(151), exports);
	tslib_1.__exportStar(__webpack_require__(150), exports);
	tslib_1.__exportStar(__webpack_require__(154), exports);
	tslib_1.__exportStar(__webpack_require__(157), exports);
	tslib_1.__exportStar(__webpack_require__(541), exports);
	tslib_1.__exportStar(__webpack_require__(158), exports);
	tslib_1.__exportStar(__webpack_require__(159), exports);


/***/ }),
/* 1536 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	angular.module('capability-ng-appointments').config(
	// tslint:disable-next-line:no-big-function
	function ($stateProvider, ngAppointmentsTabsConfigurationProvider) {
	    'use strict';
	    var appointmentSchedulingV3Redirect = {
	        redirectToV3: function ($state, ngAppointmentSchedulingServant, ngStcSchedulingConfigModel) {
	            return ngAppointmentSchedulingServant.getSchedulingConfig().then(function () {
	                if (ngStcSchedulingConfigModel.read().v3_student_scheduler_flag) {
	                    $state.go('my.appointment-dashboard', { tab_name: 'appointments' });
	                }
	            });
	        }
	    };
	    ngAppointmentsTabsConfigurationProvider.configure();
	    $stateProvider
	        .state('my.myAppointments', {
	        url: 'my_appointments/',
	        templateUrl: 'capability-ng-appointments/src/views/my_appointments/my_appointments.html',
	        data: {
	            viewTitle: 'My Appointments',
	            hasMainMenu: true,
	            ignoredInHistory: true
	        },
	        resolve: tslib_1.__assign({}, appointmentSchedulingV3Redirect)
	    })
	        .state('my.myAppointments.detail', {
	        url: 'details/:id',
	        views: {
	            '@my': {
	                templateUrl: 'capability-ng-appointments/src/views/my_appointments/appointment_details.html'
	            }
	        },
	        data: {
	            ignoredInHistory: false,
	            viewTitle: 'Appointment Detail'
	        }
	    })
	        .state('my.myAppointments.request', {
	        url: 'request/:id',
	        views: {
	            '@my': {
	                templateUrl: 'capability-ng-appointments/src/views/my_appointments/appointment_request.html'
	            }
	        },
	        data: {
	            ignoredInHistory: false,
	            viewTitle: 'Appointment Request'
	        }
	    })
	        .state('my.myAppointments.upcoming', {
	        url: 'upcoming/',
	        data: {
	            hasMainMenu: true,
	            ignoredInHistory: false,
	            viewTitle: 'Upcoming Appointments'
	        },
	        views: {
	            'tab-content@my.myAppointments': {
	                templateUrl: 'capability-ng-appointments/src/views/my_appointments/upcoming_appointments.html',
	                controller: 'ngMyAppointmentsChildrenController',
	                controllerAs: '$ctrl'
	            }
	        }
	    })
	        .state('my.myAppointments.past', {
	        url: 'past/',
	        data: {
	            hasMainMenu: true,
	            ignoredInHistory: false,
	            viewTitle: 'Past Appointments'
	        },
	        views: {
	            'tab-content@my.myAppointments': {
	                templateUrl: 'capability-ng-appointments/src/views/my_appointments/past_appointments.html',
	                controller: 'ngMyAppointmentsChildrenController',
	                controllerAs: '$ctrl'
	            }
	        }
	    })
	        .state('my.myAppointments.active', {
	        url: 'active/',
	        data: {
	            hasMainMenu: true,
	            ignoredInHistory: false,
	            viewTitle: 'Active Appointments'
	        },
	        views: {
	            'tab-content@my.myAppointments': {
	                templateUrl: 'capability-ng-appointments/src/views/my_appointments/active_appointments.html',
	                controller: 'ngMyAppointmentsChildrenController',
	                controllerAs: '$ctrl'
	            }
	        }
	    })
	        .state('my.appointments', {
	        url: 'appointments/',
	        data: {
	            ignoredInHistory: true,
	            viewTitle: 'My Appointments'
	        },
	        templateUrl: 'capability-ng-appointments/src/views/appointments/appointments.html',
	        controller: 'ngAppointmentsController',
	        controllerAs: '$ctrl',
	        resolve: {
	            redirectToV3: function ($state, ngAppointmentSchedulingServant, ngStcSchedulingConfigModel) {
	                return ngAppointmentSchedulingServant.getSchedulingConfig().then(function () {
	                    if (ngStcSchedulingConfigModel.read().v3_student_scheduler_flag) {
	                        $state.go('my.appointment-new', { tabname: 'appointments' });
	                    }
	                });
	            }
	        },
	        onEnter: function ($timeout, appointmentCampaignConstant, ngMyAppointmentsStateService) {
	            ngMyAppointmentsStateService.init();
	            if (!appointmentCampaignConstant.isAppointmentCampaign) {
	                $timeout(function () {
	                    ngMyAppointmentsStateService.go(ngMyAppointmentsStateService.states.reason);
	                });
	            }
	            else {
	                $timeout(function () {
	                    ngMyAppointmentsStateService.go(ngMyAppointmentsStateService.states.availableTimes, {
	                        invitationId: appointmentCampaignConstant.campaignInvitationId
	                    });
	                });
	            }
	        },
	        onExit: function (ngMyAppointmentsStateService) {
	            ngMyAppointmentsStateService.refresh();
	        }
	    })
	        .state('my.appointments.appointment_reason', {
	        url: 'appointment_reason/',
	        templateUrl: 'capability-ng-appointments/src/views/appointment_reason/appointment_reason.html',
	        controller: 'ngAppointmentReasonController',
	        controllerAs: '$ctrl',
	        data: {
	            viewTitle: 'Schedule Appointment | Select Reason'
	        }
	    })
	        .state('my.appointments.location_staff', {
	        url: 'location_staff/',
	        templateUrl: 'capability-ng-appointments/src/views/location_staff/appointments_location_staff.html',
	        controller: 'ngAppointmentsLocationStaffController',
	        controllerAs: '$ctrl',
	        data: {
	            viewTitle: 'Schedule Appointment | Select location & Staff'
	        }
	    })
	        .state('my.appointments.available_times', {
	        url: 'available_times/',
	        templateUrl: 'capability-ng-appointments/src/views/available_times/available_times.html',
	        controller: 'ngAvailableTimesController',
	        controllerAs: '$ctrl',
	        params: {
	            invitationId: 0,
	            returnState: {}
	        },
	        data: {
	            viewTitle: 'Schedule Appointment | Select Available Times'
	        }
	    })
	        .state('my.appointments.walkin_times', {
	        url: 'walkin_times/',
	        templateUrl: 'capability-ng-appointments/src/views/walkin_times/walkin_times.html',
	        controller: 'ngAvailableWalkinTimesController',
	        controllerAs: '$ctrl',
	        resolve: {
	            _checkState: function (ngMyAppointmentsStateService) {
	                ngMyAppointmentsStateService.checkState();
	            }
	        },
	        data: {
	            viewTitle: 'Schedule Appointment | View Drop-In Times'
	        }
	    })
	        .state('my.appointments.alternate_appointment_times', {
	        url: 'alternate_appointment_times/',
	        templateUrl: 'capability-ng-appointments/src/views/alternate_appointment_times/alternate_appointment_times.html',
	        controller: 'AlternateAppointmentTimesController',
	        params: {
	            isNewRequest: true
	        },
	        controllerAs: '$ctrl',
	        resolve: {
	            _checkState: function (ngMyAppointmentsStateService) {
	                ngMyAppointmentsStateService.checkState();
	            }
	        },
	        data: {
	            viewTitle: 'Schedule Appointment | View Alternate Appointment Times'
	        }
	    })
	        .state('my.appointments.alternate_appointment_times_confirm', {
	        url: 'alternate_appointment_times_confirm/',
	        templateUrl: 'capability-ng-appointments/src/views/alternate_appointment_times_confirm/alternate_appointment_times_confirm.html',
	        controller: 'AlternateAppointmentTimesConfirmController',
	        controllerAs: '$ctrl',
	        resolve: {
	            _checkState: function (ngMyAppointmentsStateService) {
	                ngMyAppointmentsStateService.checkState();
	            }
	        },
	        data: {
	            viewTitle: 'Confirm Appointment Time'
	        }
	    })
	        .state('my.appointments.confirm', {
	        url: 'confirm/',
	        templateUrl: 'capability-ng-appointments/src/views/confirm/confirm.html',
	        controller: 'ngAppointmentsConfirmController',
	        controllerAs: '$ctrl',
	        resolve: {
	            navigateContactInfo: function (ngMyAppointmentsStateService, loadContactInfoCommand) {
	                if (ngMyAppointmentsStateService.checkState()) {
	                    return loadContactInfoCommand();
	                }
	            }
	        },
	        data: {
	            viewTitle: 'Confirm Appointment Schedule'
	        }
	    })
	        .state('my.appointments.scheduled', {
	        url: 'scheduled/',
	        templateUrl: 'capability-ng-appointments/src/views/scheduled/scheduled.html',
	        controller: 'ngAppointmentsScheduledController',
	        controllerAs: '$ctrl',
	        data: {
	            viewTitle: 'Appointment Confirmation'
	        }
	    });
	});


/***/ }),
/* 1537 */
880,
/* 1538 */
880,
/* 1539 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	/**
	 * @capability-ng-scheduler
	 */
	__webpack_require__(27);
	__webpack_require__(12);
	__webpack_require__(62);
	__webpack_require__(653);
	__webpack_require__(16);
	__webpack_require__(22);
	__webpack_require__(21);
	__webpack_require__(46);
	__webpack_require__(34);
	__webpack_require__(108);
	__webpack_require__(903);
	__webpack_require__(874);
	__webpack_require__(895);
	__webpack_require__(894);
	__webpack_require__(276);
	__webpack_require__(901);


/***/ }),
/* 1540 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var AuthenticationNetworkFaultConfiguration = /** @class */ (function () {
	    function AuthenticationNetworkFaultConfiguration() {
	        this.configuration = _4.merge({}, {
	            respondTo404: true,
	            respondTo401: true,
	            respondTo403: true
	        });
	        this.configuration = _4.merge({}, {
	            respondTo404: true,
	            respondTo401: true,
	            respondTo403: true
	        });
	    }
	    AuthenticationNetworkFaultConfiguration.prototype.configure = function (config) {
	        if (config) {
	            this.configuration = _4.merge({}, this.configuration, config);
	        }
	        return this.configuration;
	    };
	    AuthenticationNetworkFaultConfiguration.prototype.$get = function () {
	        var _this = this;
	        return {
	            configure: function (config) { return _this.configure(config); }
	        };
	    };
	    return AuthenticationNetworkFaultConfiguration;
	}());
	var authenticationNetworkFaultRun = function ($state, loginConfigModel, ngNetworkFailureConfiguration, loginConfigurationCommand, authenticationNetworkFaultConfiguration) {
	    var IS_API_REQUEST = /api/i;
	    var configuration = authenticationNetworkFaultConfiguration.configure();
	    function handleAuthenticationFormErrorResponse(failureResponse) {
	        if (location.href.indexOf('authentication') !== -1) {
	            var authType_1 = _4.get(loginConfigModel.auth_type, 'loginInterface', '');
	            var explicitErrorReason_1 = _4.get(failureResponse, 'data.detail', '');
	            if (_4.isEmpty(authType_1)) {
	                loginConfigurationCommand().then(function () {
	                    authType_1 = _4.get(loginConfigModel.auth_type, 'loginInterface', 'authentication.remote');
	                    $state.go(authType_1 + ".failure", { explicitErrorReason: explicitErrorReason_1 });
	                });
	            }
	            else {
	                $state.go(authType_1 + ".failure", { explicitErrorReason: explicitErrorReason_1 });
	            }
	        }
	        return failureResponse;
	    }
	    function isSameDomain(failureResponseUrl) {
	        var matches = failureResponseUrl.match(/:\/\/(.[^/]+)/);
	        return matches && _4.isEqual(location.hostname, matches[1]);
	    }
	    if (configuration.respondTo401) {
	        ngNetworkFailureConfiguration.onResponseFailure('401', handleAuthenticationFormErrorResponse);
	    }
	    if (configuration.respondTo403) {
	        ngNetworkFailureConfiguration.onResponseFailure('403', handleAuthenticationFormErrorResponse);
	    }
	    if (configuration.respondTo404) {
	        ngNetworkFailureConfiguration.onResponseFailure('404', function (failureResponse) {
	            if (IS_API_REQUEST.test(failureResponse.config.url) && isSameDomain(failureResponse.config.url)) {
	                sessionStorage.setItem('server_error_response', JSON.stringify(failureResponse));
	                $state.go('support', {
	                    adviceLocation: 'server_error_response'
	                });
	            }
	        });
	    }
	};
	angular
	    .module('capability-ng-authentication')
	    .provider('authenticationNetworkFaultConfiguration', function () { return new AuthenticationNetworkFaultConfiguration(); })
	    .run(authenticationNetworkFaultRun);


/***/ }),
/* 1541 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var loginHelpStateConfig = {
	    url: 'login_help',
	    views: {
	        'loginHelp@authentication': {
	            template: '<login-help-modal is-open="true" on-close="close()"></login-help-modal>',
	            controller: function ($state, $scope) {
	                $scope.close = function () {
	                    $state.go('^');
	                };
	            }
	        }
	    },
	    data: {
	        viewTitle: 'Login Help'
	    }
	};
	var AuthenticationStateConfiguration = /** @class */ (function () {
	    function AuthenticationStateConfiguration($stateProvider) {
	        this.$stateProvider = $stateProvider;
	        this.$get = function () { return ({}); };
	    }
	    AuthenticationStateConfiguration.prototype.state = function (stateConfiguration) {
	        stateConfiguration = stateConfiguration || {};
	        this.$stateProvider
	            .state('authentication', _4.merge({
	            url: '/authentication/',
	            templateUrl: 'capability-ng-authentication/src/views/authentication/authentication.html',
	            controller: 'AuthenticationController as $ctrl',
	            data: {
	                viewTitle: 'Authentication'
	            },
	            resolve: {
	                config: function (loginConfigurationCommand) { return loginConfigurationCommand(); }
	            }
	        }, stateConfiguration['authentication']))
	            .state('authentication.form', _4.merge({
	            url: 'form/',
	            templateUrl: 'capability-ng-authentication/src/views/type_form/type_form.html',
	            controller: 'loginFormController as $ctrl',
	            data: {
	                viewTitle: 'Authentication Form'
	            },
	            onEnter: function (resetAccountCommand) {
	                resetAccountCommand();
	            }
	        }, stateConfiguration['authentication.form']))
	            .state('authentication.remote', _4.merge({
	            url: 'remote/',
	            templateUrl: 'capability-ng-authentication/src/views/type_remote/type_remote.html',
	            controller: 'loginRemoteController as $ctrl',
	            data: {
	                viewTitle: 'Authentication Remote'
	            }
	        }, stateConfiguration['authentication.remote']))
	            .state('authentication.form.login_help', tslib_1.__assign({}, loginHelpStateConfig))
	            .state('authentication.remote.login_help', tslib_1.__assign({}, loginHelpStateConfig))
	            .state('authentication.form.failure', _4.merge({
	            url: 'failure/:explicitErrorReason/',
	            templateUrl: 'capability-ng-authentication/src/views/form_failure/form_failure.html',
	            controller: 'FormFailureController as $ctrl',
	            data: {
	                viewTitle: 'Authentication Failure',
	                defaultErrorMessage: "You have entered an invalid User ID and/or Password. Please try again."
	            }
	        }, stateConfiguration['authentication.form.failure']))
	            .state('authentication.remote.failure', _4.merge({
	            url: 'failure/?eaberror',
	            templateUrl: 'capability-ng-authentication/src/views/form_failure/form_failure.html',
	            controller: 'FormFailureController as $ctrl',
	            data: {
	                viewTitle: 'Authentication Failure',
	                defaultErrorMessage: "Unable to log you in. Please try again."
	            }
	        }, stateConfiguration['authentication.remote.failure']))
	            .state('support', _4.merge({
	            url: '/oops/:adviceLocation/',
	            template: '<support-page></support-page>',
	            data: {
	                viewTitle: 'Oops'
	            }
	        }, stateConfiguration['support']));
	    };
	    AuthenticationStateConfiguration.prototype.myState = function (stateConfiguration) {
	        this.$stateProvider.state('my', _4.merge({
	            url: '/my/',
	            abstract: true,
	            resolve: {
	                _Account: function (loadAccountCommand) { return loadAccountCommand(); }
	            }
	        }, stateConfiguration));
	    };
	    return AuthenticationStateConfiguration;
	}());
	angular
	    .module('capability-ng-authentication')
	    .provider('authenticationStateConfiguration', AuthenticationStateConfiguration);


/***/ }),
/* 1542 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(542);
	__webpack_require__(1540);
	__webpack_require__(1541);
	__webpack_require__(1544);
	__webpack_require__(543);
	__webpack_require__(1546);
	__webpack_require__(1547);
	__webpack_require__(544);
	__webpack_require__(545);


/***/ }),
/* 1543 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var authentication_1 = __webpack_require__(543);
	var type_remote_1 = __webpack_require__(545);
	var type_form_1 = __webpack_require__(544);
	var logout_link_1 = __webpack_require__(542);
	__webpack_require__(1545);
	angular
	    .module('capability-ng-authentication', ['ui.router', 'data-ng-authentication'])
	    .controller('AuthenticationController', authentication_1.AuthenticationController)
	    .controller('loginRemoteController', type_remote_1.LoginRemoteController)
	    .controller('loginFormController', type_form_1.LoginFormController)
	    .component('logoutLink', new logout_link_1.LogoutLinkComponent());
	__webpack_require__(1542);


/***/ }),
/* 1544 */
/***/ (function(module, exports) {

	var RoutingRuleset = /** @class */ (function () {
	    function RoutingRuleset(authenticationConfiguration, ngAuthenticationQueryModel, ngMemberConfigurationDatastore, accountModel, $injector, $state) {
	        this.authenticationConfiguration = authenticationConfiguration;
	        this.ngAuthenticationQueryModel = ngAuthenticationQueryModel;
	        this.ngMemberConfigurationDatastore = ngMemberConfigurationDatastore;
	        this.accountModel = accountModel;
	        this.$injector = $injector;
	        this.$state = $state;
	    }
	    RoutingRuleset.prototype.transitionWhenLoggedOut = function () {
	        var notInAFailedLoginState = !this.$state.is('authentication.remote.failure');
	        if (notInAFailedLoginState && this.ngAuthenticationQueryModel.isAccountLoggedOut()) {
	            var loginConfig = this.ngMemberConfigurationDatastore.read(function (store) { return store; });
	            this.$state.go(loginConfig.auth_type.loginInterface, {}, { location: 'replace' });
	        }
	    };
	    RoutingRuleset.prototype.transitionWhenLoggedIn = function () {
	        var alreadyLoggedInCommand = this.authenticationConfiguration.read().onLoggedInConfirmation;
	        if (this.ngAuthenticationQueryModel.isAccountLoggedIn()) {
	            this.$injector.get(alreadyLoggedInCommand)(this.$state, this.accountModel);
	        }
	    };
	    return RoutingRuleset;
	}());
	angular
	    .module('capability-ng-authentication')
	    .factory('ngRoutingRuleset', function (authenticationConfiguration, ngAuthenticationQueryModel, ngMemberConfigurationDatastore, accountModel, $injector, $state) {
	    return new RoutingRuleset(authenticationConfiguration, ngAuthenticationQueryModel, ngMemberConfigurationDatastore, accountModel, $injector, $state);
	});


/***/ }),
/* 1545 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	__webpack_require__(933);
	__webpack_require__(27);
	__webpack_require__(62);


/***/ }),
/* 1546 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var FormFailureController = /** @class */ (function () {
	    function FormFailureController($state) {
	        this.$state = $state;
	    }
	    FormFailureController.prototype.$onInit = function () {
	        if (!_4.isEmpty(this.$state.params.explicitErrorReason)) {
	            this.errorMessage = this.$state.params.explicitErrorReason;
	        }
	        else if (!_4.isEmpty(this.$state.params.eaberror)) {
	            this.errorMessage = this.$state.params.eaberror;
	        }
	        else {
	            this.errorMessage = _4.get(this.$state.current, 'data.defaultErrorMessage', "Unable to log you in. Please try again.");
	        }
	    };
	    return FormFailureController;
	}());
	angular.module('capability-ng-authentication').controller('FormFailureController', FormFailureController);


/***/ }),
/* 1547 */
/***/ (function(module, exports) {

	var SupportController = /** @class */ (function () {
	    function SupportController($state, accountModel, appConfigModel, ngAuthenticationQueryModel, authenticationConfiguration) {
	        this.$state = $state;
	        this.accountModel = accountModel;
	        this.appConfigModel = appConfigModel;
	        this.ngAuthenticationQueryModel = ngAuthenticationQueryModel;
	        this.authenticationConfiguration = authenticationConfiguration;
	    }
	    SupportController.prototype.$onInit = function () {
	        var adviceLocation = this.$state.params.adviceLocation;
	        var responseFailure = JSON.parse(sessionStorage.getItem(adviceLocation));
	        this.models = {
	            authentication: this.ngAuthenticationQueryModel.read(),
	            configuration: this.authenticationConfiguration.read(),
	            responseFailure: responseFailure
	        };
	        var trackingId = !!this.models.authentication.identity.tracking_id
	            ? this.models.authentication.identity.tracking_id
	            : 'no-user-logged-in';
	        this.links = {
	            feedback: "mailto:feedback@eabse.zendesk.com?subject=User%20Feedback&body=< Please type your feedback here >%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A** Reference# " + trackingId,
	            support: "mailto:support@eabse.zendesk.com?subject=User%20Support&body=< Please type your message here >%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A** Reference# " + trackingId
	        };
	        this.techHelp = this.appConfigModel.model.TECHNICAL_HELP;
	        this.hasTechHelpDetails = !_.isEmpty(this.techHelp.details);
	    };
	    SupportController.prototype.hasServerExplanation = function () {
	        return this.models.responseFailure && this.models.responseFailure.data;
	    };
	    SupportController.prototype.goBack = function () {
	        history.back();
	    };
	    return SupportController;
	}());
	angular.module('capability-ng-authentication').component('supportPage', {
	    templateUrl: 'capability-ng-authentication/src/views/support/support.html',
	    controller: SupportController,
	    controllerAs: '$ctrl',
	    bindings: {
	        techHelpDetails: '<'
	    }
	});


/***/ }),
/* 1548 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-conversations')
	    .factory('deleteConversationThreadCommand', function (accountModel, ngConversationThreadDatastore, ngConversationDatastore, $http, defineCommand) {
	    return defineCommand('deleteConversationThreadCommand', function (deferred, thread) {
	        $http.delete("notification/students/" + accountModel.student_nk + "/messages/" + thread.id).then(function () {
	            ngConversationThreadDatastore.del(thread);
	            if (ngConversationThreadDatastore.size() === 0) {
	                ngConversationDatastore.del(thread.id);
	            }
	            utility_ts_orm_1.ORM.run();
	            deferred.resolve();
	        });
	    });
	});


/***/ }),
/* 1549 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-conversations')
	    .service('loadConversationThreadsCommand', function ($http, defineCommand, accountModel, ngConversationThreadDatastore, log) {
	    return defineCommand('loadConversationThreadsCommand', function (deferred, id) {
	        $http
	            .get("notification/students/" + accountModel.student_nk + "/messages/" + id)
	            .then(function (_a) {
	            var data = _a.data;
	            ngConversationThreadDatastore.clear().write(data);
	            utility_ts_orm_1.ORM.run();
	            deferred.resolve(data);
	        })
	            .catch(function (error) {
	            log.issue('Failed to load conversation threads!');
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 1550 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var conversation_filter_strategy_1 = __webpack_require__(55);
	angular
	    .module('capability-ng-conversations')
	    .service('loadConversationsCommand', function ($http, defineCommand, ngConversationDatastore, accountModel, loadAccountCommand, log) {
	    return defineCommand('loadConversationsCommand', function (deferred, page, filter) {
	        if (page === void 0) { page = 1; }
	        if (filter === void 0) { filter = 'all'; }
	        var filterQuery = '';
	        if (!_4.isEmpty(filter)) {
	            filterQuery = conversation_filter_strategy_1.ConversationFilterStrategy.getByKey(filter).query + "&";
	        }
	        var loadConversations = function () {
	            $http
	                .get("notification/students/" + accountModel.student_nk + "/messages/?" + filterQuery + "page=" + page)
	                .then(function (_a) {
	                var data = _a.data;
	                if (filter !== ngConversationDatastore.model.filter) {
	                    ngConversationDatastore.clear();
	                }
	                ngConversationDatastore.write(data.results);
	                ngConversationDatastore.includeModel({
	                    unreadCount: data.unread,
	                    nextPageURL: data.next,
	                    page: page,
	                    filter: filter
	                });
	                utility_ts_orm_1.ORM.run(ngConversationDatastore);
	                deferred.resolve(data);
	            })
	                .catch(function (error) {
	                log.issue('Failed to load conversations!');
	                deferred.reject(error);
	            });
	        };
	        _4.isEmpty(accountModel.student_nk)
	            ? loadAccountCommand().then(function () { return loadConversations(); })
	            : loadConversations();
	    });
	});


/***/ }),
/* 1551 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-conversations')
	    .factory('updateConversationStatusCommand', function ($http, defineCommand, accountModel) {
	    return defineCommand('updateConversationStatusCommand', function (deferred, ids, status) {
	        $http
	            .patch("notification/students/" + accountModel.student_nk + "/messages/?id__in=" + ids.join(), { status: status })
	            .then(function () { return deferred.resolve(); });
	    });
	});


/***/ }),
/* 1552 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-conversations')
	    .factory('updateConversationThreadStatusCommand', function (accountModel, log, $http, defineCommand) {
	    return defineCommand('updateConversationThreadStatusCommand', function (deferred, thread) {
	        var originalStatus = thread.status;
	        var status = thread.status === 'FLAGGED' ? 'READ' : 'FLAGGED';
	        $http
	            .put("notification/students/" + accountModel.student_nk + "/messages/" + thread.id, {
	            status: status
	        })
	            .then(function () {
	            thread.status = status;
	            deferred.resolve();
	        })
	            .catch(function (error) {
	            thread.status = originalStatus;
	            log.user.error('Something went wrong! Please try again.');
	            deferred.reject();
	        });
	    });
	});


/***/ }),
/* 1553 */
880,
/* 1554 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(546);
	__webpack_require__(547);
	__webpack_require__(1548);
	__webpack_require__(1549);
	__webpack_require__(1550);
	__webpack_require__(1551);
	__webpack_require__(1552);
	__webpack_require__(548);
	__webpack_require__(549);
	__webpack_require__(550);
	__webpack_require__(551);
	__webpack_require__(552);
	__webpack_require__(160);
	__webpack_require__(1553);
	__webpack_require__(1555);
	__webpack_require__(1556);
	__webpack_require__(553);
	__webpack_require__(161);
	__webpack_require__(554);
	__webpack_require__(555);
	__webpack_require__(556);
	__webpack_require__(55);
	__webpack_require__(557);
	__webpack_require__(1558);
	__webpack_require__(558);


/***/ }),
/* 1555 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var conversation_builder_1 = __webpack_require__(546);
	angular
	    .module('capability-ng-conversations')
	    .factory('ngConversationDatastore', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: conversation_builder_1.Conversation,
	        autoId: false
	    }).includeModel({
	        unreadCount: 0,
	        page: 1,
	        filter: ''
	    });
	});


/***/ }),
/* 1556 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var conversation_thread_builder_1 = __webpack_require__(547);
	angular
	    .module('capability-ng-conversations')
	    .factory('ngConversationThreadDatastore', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: conversation_thread_builder_1.ConversationThread,
	        autoId: false
	    });
	});


/***/ }),
/* 1557 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var conversation_card_controller_1 = __webpack_require__(548);
	var conversation_filter_controller_1 = __webpack_require__(549);
	var conversation_list_content_controller_1 = __webpack_require__(550);
	var conversation_thread_card_controller_1 = __webpack_require__(551);
	var conversation_threads_content_controller_1 = __webpack_require__(552);
	var configuration_1 = __webpack_require__(160);
	var conversation_threads_query_1 = __webpack_require__(553);
	var conversations_priority_feed_query_1 = __webpack_require__(161);
	var conversations_query_1 = __webpack_require__(554);
	var routes_1 = __webpack_require__(555);
	var conversation_thread_servant_1 = __webpack_require__(556);
	var conversation_list_controller_1 = __webpack_require__(558);
	angular
	    .module('capability-ng-conversations', [])
	    .component('conversationCard', new conversation_card_controller_1.ConversationCardComponent())
	    .component('conversationListContent', new conversation_list_content_controller_1.ConversationListContentComponent())
	    .component('conversationThreadCard', new conversation_thread_card_controller_1.ConversationThreadCardComponent())
	    .component('conversationThreadsContent', new conversation_threads_content_controller_1.ConversationThreadsContentComponent())
	    .component('conversationFilter', new conversation_filter_controller_1.ConversationFilterComponent())
	    .controller('ConversationListController', conversation_list_controller_1.ConversationListController)
	    .service('ngConversationThreadServant', conversation_thread_servant_1.ConversationThreadServant)
	    .service('ngConversationThreadsQuery', conversation_threads_query_1.ConversationThreadsQuery)
	    .service('ngConversationsQuery', conversations_query_1.ConversationsQuery)
	    .service('ngConversationsCapabilityConfiguration', configuration_1.ConversationsCapabilityConfiguration)
	    .service('ngConversationsPriorityFeedQuery', conversations_priority_feed_query_1.ConversationsPriorityFeedQuery)
	    .config(routes_1.ConversationsRoutes);
	__webpack_require__(1554);
	tslib_1.__exportStar(__webpack_require__(161), exports);
	tslib_1.__exportStar(__webpack_require__(160), exports);
	exports.default = 'capability-ng-conversations';


/***/ }),
/* 1558 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular.module('capability-ng-conversations').factory('ConversationThreadStatusEnum', function (Enumeration) {
	    return Enumeration('ConversationThreadStatusEnum', {
	        READ: 'READ',
	        UNREAD: 'UNREAD',
	        FLAGGED: 'FLAGGED'
	    });
	});


/***/ }),
/* 1559 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var lodash4_1 = __webpack_require__(1);
	var ScheduleLocation = /** @class */ (function () {
	    function ScheduleLocation(scheduleLocation) {
	        lodash4_1.merge(this, scheduleLocation);
	    }
	    ScheduleLocation.build = function (scheduleLocation) {
	        return new ScheduleLocation(scheduleLocation);
	    };
	    return ScheduleLocation;
	}());
	exports.ScheduleLocation = ScheduleLocation;


/***/ }),
/* 1560 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SectionLabel = /** @class */ (function () {
	    function SectionLabel() {
	    }
	    return SectionLabel;
	}());
	exports.SectionLabel = SectionLabel;
	var ScheduleSectionLabels = /** @class */ (function () {
	    function ScheduleSectionLabels(sectionLabels) {
	        _4.merge(this, sectionLabels);
	    }
	    ScheduleSectionLabels.build = function (sectionLabels) {
	        return new ScheduleSectionLabels(sectionLabels);
	    };
	    return ScheduleSectionLabels;
	}());
	exports.ScheduleSectionLabels = ScheduleSectionLabels;


/***/ }),
/* 1561 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var course_builder_1 = __webpack_require__(559);
	var display_data_builder_1 = __webpack_require__(560);
	var my_schedule_course_controller_1 = __webpack_require__(563);
	var my_schedule_course_list_controller_1 = __webpack_require__(564);
	var my_schedule_detail_controller_1 = __webpack_require__(94);
	var my_schedule_list_controller_1 = __webpack_require__(95);
	var section_label_badge_controller_1 = __webpack_require__(1565);
	var my_schedule_detail_fn_1 = __webpack_require__(164);
	var my_schedule_fn_1 = __webpack_require__(568);
	var my_schedule_native_calendar_fn_1 = __webpack_require__(165);
	var schedule_query_1 = __webpack_require__(96);
	var calendar_integration_service_1 = __webpack_require__(166);
	var my_schedule_detail_component_1 = __webpack_require__(565);
	var my_schedule_list_component_1 = __webpack_require__(566);
	var configuration_1 = __webpack_require__(567);
	var routes_1 = __webpack_require__(1573);
	var my_schedule_detail_view_controller_1 = __webpack_require__(167);
	var my_schedule_list_view_controller_1 = __webpack_require__(168);
	angular
	    .module('capability-ng-course-schedule', [])
	    .factory('myScheduleDetailFn', my_schedule_detail_fn_1.MyScheduleDetailFunction.build)
	    .factory('myScheduleHelperFn', my_schedule_fn_1.MyScheduleHelperFunction.build)
	    .factory('myScheduleNativeCalendarFn', my_schedule_native_calendar_fn_1.MyScheduleNativeCalenderFunction)
	    .factory('DisplayDataBuilder', display_data_builder_1.DisplayDataBuilderFunction)
	    .factory('CourseBuilder', function () {
	    return {
	        $get: function (data) { return new course_builder_1.ScheduleCourse(data); }
	    };
	})
	    .service('ngScheduleQuery', schedule_query_1.ScheduleQuery)
	    .service('ngCalendarIntegrationService', calendar_integration_service_1.CalendarIntegrationService)
	    .controller('MyScheduleCourseController', my_schedule_course_controller_1.MyScheduleCourseController)
	    .controller('MyScheduleCourseListController', my_schedule_course_list_controller_1.MyScheduleCourseListController)
	    .controller('MyScheduleListController', my_schedule_list_controller_1.MyScheduleListController)
	    .controller('MyScheduleDetailController', my_schedule_detail_controller_1.MyScheduleDetailController)
	    .controller('SectionLabelBadgeController', section_label_badge_controller_1.SectionLabelBadgeController)
	    .component('scheduleCourse', new my_schedule_course_controller_1.ScheduleCourseComponent())
	    .component('scheduleCourseList', new my_schedule_course_list_controller_1.ScheduleCourseListComponent())
	    .component('myScheduleList', new my_schedule_list_component_1.MyScheduleListComponent())
	    .component('myScheduleDetail', new my_schedule_detail_component_1.MyScheduleDetailComponent())
	    .component('sectionLabelBadge', new section_label_badge_controller_1.SectionLabelBadgeComponent())
	    .controller('MyScheduleDetailViewController', my_schedule_detail_view_controller_1.MyScheduleDetailViewController)
	    .controller('MyScheduleListViewController', my_schedule_list_view_controller_1.MyScheduleListViewController)
	    .service('ngCourseScheduleCapabilityConfiguration', configuration_1.CourseScheduleCapabilityConfiguration)
	    .config(routes_1.ScheduleRoutes);


/***/ }),
/* 1562 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-course-schedule')
	    .factory('addCourseToCalendarCommand', function addCourseToCalendarCommandDefinition(defineCommand, myScheduleNativeCalendarFn, ngCalendarLocalDatabase) {
	    return defineCommand('addCourseToCalendarCommand', function addCourseToCalendarCommand(deferred, courses) {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            var calendarObjects, syncedCourseEvents;
	            return tslib_1.__generator(this, function (_a) {
	                switch (_a.label) {
	                    case 0:
	                        calendarObjects = myScheduleNativeCalendarFn.createCourseCalendarObjects(_4.toArray(courses));
	                        return [4 /*yield*/, ngCalendarLocalDatabase.getAllSyncedCourses(calendarObjects)];
	                    case 1:
	                        syncedCourseEvents = _a.sent();
	                        myScheduleNativeCalendarFn
	                            .deleteAllCoursesFromCalendar(syncedCourseEvents)
	                            .then(function () {
	                            return myScheduleNativeCalendarFn.addAllCoursesToCalendar(calendarObjects);
	                        })
	                            .catch(function (err) { return deferred.reject(err); });
	                        return [2 /*return*/];
	                }
	            });
	        });
	    });
	});


/***/ }),
/* 1563 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-course-schedule')
	    .factory('courseDetailCommand', function courseDetailCommandDefinition($q, $http, ngScheduleQuery, defineCommand) {
	    return defineCommand('courseDetailCommand', function courseDetailCommand(deferred, id) {
	        var courseDetail = ngScheduleQuery.getCourseDetail(id);
	        deferred.resolve(courseDetail);
	    });
	});


/***/ }),
/* 1564 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-course-schedule')
	    .factory('courseListCommand', function courseListCommandDefinition($q, $http, ngScheduleSectionDatastore, ngScheduleTermsDatastore, ngScheduleDatastore, ngScheduleQuery, defineCommand, QueryMediator, ngSchedulePriorityFeedQuery) {
	    return defineCommand('courseListCommand', function courseListCommand(deferred) {
	        $http
	            .get('reg/dashboard/courses/')
	            .then(function (res) {
	            ngScheduleDatastore.write([res.data]);
	            ngScheduleQuery.run();
	            var _a = ngScheduleQuery.model, section = _a.section, term = _a.term;
	            ngScheduleSectionDatastore.write(section);
	            ngScheduleTermsDatastore.write(term);
	            ngSchedulePriorityFeedQuery.run();
	            deferred.resolve(ngScheduleQuery.model);
	        })
	            .catch(function (err) {
	            deferred.reject(err);
	        });
	    });
	});


/***/ }),
/* 1565 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var SectionLabelBadgeController = /** @class */ (function () {
	    function SectionLabelBadgeController() {
	    }
	    return SectionLabelBadgeController;
	}());
	exports.SectionLabelBadgeController = SectionLabelBadgeController;
	var SectionLabelBadgeComponent = /** @class */ (function () {
	    function SectionLabelBadgeComponent() {
	        this.templateUrl = 'capability-ng-course-schedule/src/components/section_label_badge/section_label_badge.html';
	        this.bindings = {
	            section: '<'
	        };
	        this.controller = SectionLabelBadgeController;
	    }
	    return SectionLabelBadgeComponent;
	}());
	exports.SectionLabelBadgeComponent = SectionLabelBadgeComponent;


/***/ }),
/* 1566 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(1561);
	__webpack_require__(559);
	__webpack_require__(560);
	__webpack_require__(1559);
	__webpack_require__(561);
	__webpack_require__(162);
	__webpack_require__(163);
	__webpack_require__(562);
	__webpack_require__(1562);
	__webpack_require__(1563);
	__webpack_require__(1564);
	__webpack_require__(563);
	__webpack_require__(564);
	__webpack_require__(565);
	__webpack_require__(94);
	__webpack_require__(566);
	__webpack_require__(95);
	__webpack_require__(1567);
	__webpack_require__(1568);
	__webpack_require__(1569);
	__webpack_require__(1570);
	__webpack_require__(164);
	__webpack_require__(568);
	__webpack_require__(165);
	__webpack_require__(1572);
	__webpack_require__(569);
	__webpack_require__(96);
	__webpack_require__(166);
	__webpack_require__(1574);
	__webpack_require__(1575);
	__webpack_require__(1576);
	__webpack_require__(167);
	__webpack_require__(168);


/***/ }),
/* 1567 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var CourseScheduleLocalDatabase = /** @class */ (function () {
	    function CourseScheduleLocalDatabase() {
	        this.courses = [];
	        return this;
	    }
	    CourseScheduleLocalDatabase.prototype.addCourse = function (course) {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            return tslib_1.__generator(this, function (_a) {
	                this.courses.push(course);
	                return [2 /*return*/, this.courses];
	            });
	        });
	    };
	    CourseScheduleLocalDatabase.prototype.addCourses = function (courses) {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            return tslib_1.__generator(this, function (_a) {
	                this.courses.concat(_4.toArray(courses));
	                return [2 /*return*/, this.courses];
	            });
	        });
	    };
	    CourseScheduleLocalDatabase.prototype.getCourses = function (argumentArray) {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            return tslib_1.__generator(this, function (_a) {
	                return [2 /*return*/, this.courses.filter(function (item) { return argumentArray.includes(item.nk); })];
	            });
	        });
	    };
	    CourseScheduleLocalDatabase.prototype.excludeCourses = function (argumentArray) {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            var nkArray;
	            return tslib_1.__generator(this, function (_a) {
	                nkArray = _4.map(argumentArray, function (course) { return course.nk; });
	                return [2 /*return*/, this.courses
	                        .filter(function (item) { return nkArray.includes(item.nk); })
	                        .map(function (items) {
	                        var dbNks = _4.map(items, function (course) { return course.nk; });
	                        return _4.filter(argumentArray, function (calObj) { return !dbNks.includes(calObj.nk); });
	                    })];
	            });
	        });
	    };
	    CourseScheduleLocalDatabase.prototype.hasCourse = function (courseNk) {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            var dbCourseCount;
	            return tslib_1.__generator(this, function (_a) {
	                switch (_a.label) {
	                    case 0: return [4 /*yield*/, this.courses
	                            .filter(function (storedCourse) { return courseNk === storedCourse.nk; })
	                            .reduce(function (sum) { return sum + 1; }, 0)];
	                    case 1:
	                        dbCourseCount = _a.sent();
	                        return [2 /*return*/, dbCourseCount > 0];
	                }
	            });
	        });
	    };
	    CourseScheduleLocalDatabase.prototype.hasAllCourses = function (schedule) {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            var argumentNkArray, dbCourseArray, dbNkArray;
	            return tslib_1.__generator(this, function (_a) {
	                switch (_a.label) {
	                    case 0:
	                        argumentNkArray = _4.map(schedule, function (course) { return course.nk; });
	                        return [4 /*yield*/, this.getCourses(argumentNkArray)];
	                    case 1:
	                        dbCourseArray = _a.sent();
	                        dbNkArray = _4.uniq(_4.map(dbCourseArray, function (item) { return item.nk; }));
	                        return [2 /*return*/, dbNkArray.length === argumentNkArray.length];
	                }
	            });
	        });
	    };
	    return CourseScheduleLocalDatabase;
	}());
	exports.CourseScheduleLocalDatabase = CourseScheduleLocalDatabase;


/***/ }),
/* 1568 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_datasource_1 = __webpack_require__(9);
	var schedule_builder_1 = __webpack_require__(561);
	angular.module('lib').factory('ngScheduleDatastore', function () {
	    return new utility_ts_datasource_1.Datasource({
	        builderType: schedule_builder_1.Schedule,
	        autoId: false
	    });
	});


/***/ }),
/* 1569 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_datasource_1 = __webpack_require__(9);
	var schedule_section_builder_1 = __webpack_require__(162);
	angular
	    .module('capability-ng-course-schedule')
	    .factory('ngScheduleSectionDatastore', function () {
	    return new utility_ts_datasource_1.Datasource({
	        builderType: schedule_section_builder_1.ScheduleSection,
	        autoId: false
	    });
	});


/***/ }),
/* 1570 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_datasource_1 = __webpack_require__(9);
	var schedule_terms_builder_1 = __webpack_require__(163);
	angular
	    .module('capability-ng-course-schedule')
	    .factory('ngScheduleTermsDatastore', function () {
	    return new utility_ts_datasource_1.Datasource({
	        builderType: schedule_terms_builder_1.ScheduleTerm,
	        autoId: false
	    });
	});


/***/ }),
/* 1571 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	__webpack_require__(1566);
	tslib_1.__exportStar(__webpack_require__(166), exports);
	tslib_1.__exportStar(__webpack_require__(163), exports);
	tslib_1.__exportStar(__webpack_require__(162), exports);
	tslib_1.__exportStar(__webpack_require__(164), exports);
	tslib_1.__exportStar(__webpack_require__(165), exports);
	tslib_1.__exportStar(__webpack_require__(96), exports);
	tslib_1.__exportStar(__webpack_require__(95), exports);
	tslib_1.__exportStar(__webpack_require__(94), exports);
	tslib_1.__exportStar(__webpack_require__(168), exports);
	tslib_1.__exportStar(__webpack_require__(167), exports);
	tslib_1.__exportStar(__webpack_require__(567), exports);
	exports.CNCS = 'capability-ng-course-schedule';


/***/ }),
/* 1572 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var schedule_priority_feed_query_1 = __webpack_require__(569);
	var schedule_query_1 = __webpack_require__(96);
	angular
	    .module('capability-ng-course-schedule')
	    .service('ngScheduleQuery', schedule_query_1.ScheduleQuery)
	    .service('ngSchedulePriorityFeedQuery', schedule_priority_feed_query_1.SchedulePriorityFeedQuery);


/***/ }),
/* 1573 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	function ScheduleRoutes($stateProvider) {
	    $stateProvider
	        .state('my.courseSchedule', {
	        url: 'course_schedule/',
	        template: utility_ts_platform_1.PlatformUtility.isMobile() ? "<ion-nav-view></ion-nav-view>" : "<ui-view></ui-view>",
	        abstract: true,
	        resolve: {
	            courses: function (ngScheduleQuery, courseListCommand) {
	                if (_4.isEmpty(ngScheduleQuery.result)) {
	                    courseListCommand().then(function () { return false; });
	                }
	            }
	        }
	    })
	        .state('my.courseSchedule.term', {
	        url: 'term/:term',
	        templateUrl: 'capability-ng-course-schedule/src/views/my_schedule_list_view/my_schedule_list_view.html',
	        controller: 'MyScheduleListViewController',
	        controllerAs: '$ctrl',
	        data: {
	            viewTitle: 'Class Schedule',
	            hasMainMenu: true,
	            ignoredInHistory: false
	        },
	        params: {
	            viewType: ''
	        }
	    })
	        .state('my.courseSchedule.detail', {
	        url: 'detail/:id',
	        templateUrl: 'capability-ng-course-schedule/src/views/my_schedule_detail_view/my_schedule_detail_view.html',
	        controller: 'MyScheduleDetailViewController',
	        controllerAs: '$ctrl',
	        data: {
	            viewTitle: 'Class Details',
	            ignoredInHistory: false
	        },
	        resolve: {
	            __course: function (courseDetailCommand, $stateParams) {
	                return courseDetailCommand($stateParams.id).then(function (course) { return course; });
	            }
	        }
	    });
	}
	exports.ScheduleRoutes = ScheduleRoutes;


/***/ }),
/* 1574 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var lodash4_1 = __webpack_require__(1);
	var NumsToDayNamesService = /** @class */ (function () {
	    function NumsToDayNamesService(DayOfTheWeekEnum) {
	        this.DayOfTheWeekEnum = DayOfTheWeekEnum;
	    }
	    NumsToDayNamesService.prototype.numsToDayNames = function (dayNums, name) {
	        var _this = this;
	        return lodash4_1.map(dayNums, function (dayNum) {
	            if (dayNum > 7 || dayNum < 1) {
	                name = 'longname';
	                dayNum = 8;
	            }
	            return _this.DayOfTheWeekEnum.get(dayNum).value[name];
	        });
	    };
	    return NumsToDayNamesService;
	}());
	exports.NumsToDayNamesService = NumsToDayNamesService;
	angular.module('capability-ng-course-schedule').service('ngNumsToDayNamesService', NumsToDayNamesService);


/***/ }),
/* 1575 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var DaysOfTheWeekEnum = {
	    sunday: {
	        serverValue: 1,
	        scheduleValue: 'Sun'
	    },
	    monday: {
	        serverValue: 2,
	        scheduleValue: 'Mon'
	    },
	    tuesday: {
	        serverValue: 3,
	        scheduleValue: 'Tue'
	    },
	    wednesday: {
	        serverValue: 4,
	        scheduleValue: 'Wed'
	    },
	    thursday: {
	        serverValue: 5,
	        scheduleValue: 'Thu'
	    },
	    friday: {
	        serverValue: 6,
	        scheduleValue: 'Fri'
	    },
	    saturday: {
	        serverValue: 7,
	        scheduleValue: 'Sat'
	    },
	    nonCampus: {
	        serverValue: 8,
	        scheduleValue: 'non-campus'
	    }
	};
	angular
	    .module('capability-ng-course-schedule')
	    .constant('daysOfTheWeekEnum', Enumeration('DaysOfTheWeekEnum', DaysOfTheWeekEnum));


/***/ }),
/* 1576 */
880,
/* 1577 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	/**
	 * @phxDeeplink
	 */
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var deeplink_config_1 = __webpack_require__(169);
	var deeplink_state_config_1 = __webpack_require__(170);
	angular
	    .module('capability-ng-deeplink', ['utility-ng-enumeration', 'utility-ng-kernel'])
	    .provider('ngDeeplinkConfig', deeplink_config_1.DeeplinkConfig)
	    .provider('ngDeeplinksStateConfiguration', deeplink_state_config_1.DeeplinksStateConfiguration);
	__webpack_require__(170);
	__webpack_require__(1578);
	__webpack_require__(169);
	tslib_1.__exportStar(__webpack_require__(170), exports);
	tslib_1.__exportStar(__webpack_require__(169), exports);
	exports.default = 'capability-ng-deeplink';


/***/ }),
/* 1578 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	window['$ip'].require('@eab-pip/pi-navigation');
	angular
	    .module('capability-ng-deeplink')
	    .controller('DeeplinkController', function DeeplinkController($state, ngDeeplinkConfig, $stateParams) {
	    var trackingInfo = ngDeeplinkConfig.hasTrackingInfo($stateParams);
	    var stateEnum = ngDeeplinkConfig.getDeeplinkEnum().get($stateParams.page);
	    var defaultState = ngDeeplinkConfig.getDefaultState();
	    ngDeeplinkConfig.setOriginalDeeplink('');
	    if (!_.isEmpty(trackingInfo)) {
	        ngDeeplinkConfig.trackLink(trackingInfo, stateEnum);
	    }
	    if (stateEnum) {
	        var stateRequiredParams = stateEnum.constructRouteParams($stateParams);
	        var stateString = stateEnum.getState($stateParams);
	        var hrefString = stateEnum.getHref();
	        var navigation = window['$ip'].use('@eab-pip/pi-navigation');
	        var hrefWithParams = navigation.uri.write(hrefString, stateRequiredParams);
	        ngDeeplinkConfig.setOriginalDeeplink(window.location.href);
	        if (hrefString) {
	            ngDeeplinkConfig.storeHref(hrefWithParams);
	            location.assign(hrefWithParams);
	        }
	        else if (stateString) {
	            ngDeeplinkConfig.storeState({ state: stateString, stateParams: stateRequiredParams });
	            $state.go(stateString, stateRequiredParams);
	        }
	    }
	    else {
	        $state.go(defaultState);
	    }
	});


/***/ }),
/* 1579 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var configuration_1 = __webpack_require__(570);
	var routes_1 = __webpack_require__(571);
	var my_favorites_category_controller_1 = __webpack_require__(572);
	angular
	    .module('capability-ng-favorites', [
	    'ngSanitize',
	    'utility-ng-enumeration',
	    'utility-ng-interface',
	    'utility-ng-pipeline',
	    'ui-ng-delegate',
	    'ui-ng-calendar-time',
	    'biz-ng-career-details',
	    'capability-ng-major-explorer',
	    'capability-ng-resources'
	])
	    .controller('MyFavoritesCategoryController', my_favorites_category_controller_1.MyFavoritesCategoryController)
	    .service('ngFavoriteCapabilityConfiguration', configuration_1.FavoriteCapabilityConfiguration)
	    .config(routes_1.MyFavoritesRoutes);


/***/ }),
/* 1580 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(7);
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-favorites')
	    .factory('loadFavoritesCommand', function loadFavoritesCommandDefinition($http, defineCommand, ngResourceDatastore, ngResourceInfoDatastore, ngResourceLocationDatastore, ngResourceCategoryDatastore, ngMajorProgramDatastore, ngMajorCredentialDatastore, ngMajorProgramModel) {
	    return defineCommand('loadFavoritesCommand', function (deferred) {
	        $http
	            .get('favorite')
	            .then(function (_a) {
	            var data = _a.data;
	            ngMajorProgramModel.write(data);
	            ngMajorProgramDatastore.clear().write(data.program);
	            ngMajorCredentialDatastore.write(data.program_credential);
	            ngResourceCategoryDatastore.write(_4.get(data, 'resource.resource_category', []));
	            ngResourceDatastore.clear().write(_4.get(data, 'resource.resource', []));
	            ngResourceInfoDatastore.write(_4.get(data, 'resource.resource_detail', []));
	            ngResourceLocationDatastore.write(_4.get(data, 'resource.location'));
	            utility_ts_orm_1.ORM.run();
	            deferred.resolve();
	        })
	            .catch(function (err) {
	            deferred.reject(err);
	        });
	    });
	});


/***/ }),
/* 1581 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(1579);
	__webpack_require__(1580);
	__webpack_require__(571);
	__webpack_require__(572);


/***/ }),
/* 1582 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	__webpack_require__(1581);
	tslib_1.__exportStar(__webpack_require__(570), exports);
	exports.resources = 'capability-ng-favorites';


/***/ }),
/* 1583 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-holds')
	    .factory('loadHoldsCustomTextCommand', function ($http, defineCommand, ngHoldsCustomTextModel, log) {
	    return defineCommand('loadHoldsCustomTextCommand', function (deferred) {
	        return $http({
	            method: 'GET',
	            url: "config/customtext"
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            deferred.resolve();
	            ngHoldsCustomTextModel.write(data);
	        })
	            .catch(function (e) {
	            log.issue('Failed to get custom text');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1584 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-holds')
	    .factory('loadHoldResolutionCommand', function loadHoldResolutionCommandDefinition($q, $http, defineCommand, ngHoldTypeDatastore) {
	    return defineCommand('loadHoldResolutionCommand', function loadHoldResolutionCommand(deferred, studentHoldId) {
	        $http
	            .get('holds/holdtype/' + studentHoldId)
	            .then(function (_a) {
	            var data = _a.data;
	            deferred.resolve(ngHoldTypeDatastore.put(data));
	        })
	            .catch(function (error) {
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 1585 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-holds')
	    .factory('loadHoldsCommand', function loadHoldsCommandDefinition($http, defineCommand, ngHoldDatastore) {
	    return defineCommand('loadHoldsCommand', function loadHoldsCommand(deferred, refresh) {
	        if (refresh === void 0) { refresh = true; }
	        var refreshUrl = refresh ? '/refresh' : '';
	        $http
	            .get("holds/holds" + refreshUrl)
	            .then(function (_a) {
	            var data = _a.data;
	            ngHoldDatastore.clear();
	            ngHoldDatastore.write(data);
	            utility_ts_orm_1.ORM.run();
	            deferred.resolve(ngHoldDatastore);
	        })
	            .catch(function (data) {
	            deferred.reject(data);
	        });
	    });
	});


/***/ }),
/* 1586 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-holds')
	    .factory('loadHoldsListCommand', function loadHoldsListCommandDefinition(defineCommand, loadHoldsCommand, holdsService) {
	    return defineCommand('loadHoldsListCommand', function loadHoldsListCommand(deferred) {
	        var loadHolds = function () {
	            return loadHoldsCommand().then(function (data) {
	                deferred.resolve(data);
	            });
	        };
	        holdsService
	            .init()
	            .then(function () {
	            loadHolds();
	        })
	            .catch(function () {
	            loadHolds();
	        });
	    });
	});


/***/ }),
/* 1587 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-holds')
	    .factory('updateHoldResolutionCommand', function updateHoldResolutionCommandDefinition($q, $http, defineCommand, ngHoldTypeDatastore) {
	    return defineCommand('updateHoldResolutionCommand', function updateHoldResolutionCommand(deferred, studentHoldTypeId) {
	        $http
	            .patch('holds/holdtype/' + studentHoldTypeId, {})
	            .then(function (data) {
	            deferred.resolve(data);
	        })
	            .catch(function (data) {
	            deferred.reject(data);
	        });
	    });
	});


/***/ }),
/* 1588 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(171);
	__webpack_require__(172);
	__webpack_require__(173);
	__webpack_require__(1583);
	__webpack_require__(1584);
	__webpack_require__(1585);
	__webpack_require__(1586);
	__webpack_require__(1587);
	__webpack_require__(174);
	__webpack_require__(175);
	__webpack_require__(176);
	__webpack_require__(177);
	__webpack_require__(1589);
	__webpack_require__(1590);
	__webpack_require__(178);
	__webpack_require__(1591);
	__webpack_require__(1593);
	__webpack_require__(97);
	__webpack_require__(98);
	__webpack_require__(573);
	__webpack_require__(179);
	__webpack_require__(56);
	__webpack_require__(180);
	__webpack_require__(181);
	__webpack_require__(182);
	__webpack_require__(1594);
	__webpack_require__(183);


/***/ }),
/* 1589 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_datasource_1 = __webpack_require__(9);
	var holds_builder_1 = __webpack_require__(171);
	angular.module('lib').factory('ngHoldDatastore', function () {
	    return new utility_ts_datasource_1.Datasource({
	        builderType: holds_builder_1.Hold,
	        autoId: false
	    });
	});


/***/ }),
/* 1590 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_datasource_1 = __webpack_require__(9);
	var holdtype_builder_1 = __webpack_require__(172);
	angular.module('lib').factory('ngHoldTypeDatastore', function () {
	    return new utility_ts_datasource_1.Datasource({
	        builderType: holdtype_builder_1.HoldType,
	        autoId: false
	    });
	});


/***/ }),
/* 1591 */
880,
/* 1592 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var hold_resolution_collection_controller_1 = __webpack_require__(174);
	var holds_detail_content_controller_1 = __webpack_require__(175);
	var holds_list_content_controller_1 = __webpack_require__(176);
	var configuration_1 = __webpack_require__(177);
	var hold_explanation_modal_1 = __webpack_require__(178);
	var routes_1 = __webpack_require__(179);
	var holds_config_servant_1 = __webpack_require__(180);
	var holds_service_1 = __webpack_require__(182);
	var holds_detail_controller_1 = __webpack_require__(183);
	angular
	    .module('capability-ng-holds', [
	    'utility-ng-enumeration',
	    'utility-ng-interface',
	    'utility-ng-pipeline',
	    'utility-ng-network-cache'
	])
	    .service('holdsConfigService', holds_config_servant_1.HoldsConfigService)
	    .service('holdsService', holds_service_1.HoldsService)
	    .component('holdsListContent', new holds_list_content_controller_1.HoldsListContentComponent())
	    .controller('HoldsListContentController', holds_list_content_controller_1.HoldsListContentController)
	    .component('holdsDetailContent', new holds_detail_content_controller_1.HoldsDetailContentComponent())
	    .controller('HoldsDetailContentController', holds_detail_content_controller_1.HoldsDetailContentController)
	    .component('holdResolutionCollection', new hold_resolution_collection_controller_1.HoldResolutionCollectionComponent())
	    .controller('holdResolutionCollectionController', hold_resolution_collection_controller_1.HoldResolutionCollectionController)
	    .component('holdExplainationModal', new hold_explanation_modal_1.HoldModalComponent())
	    .controller('HoldModalController', hold_explanation_modal_1.HoldModalController)
	    .controller('HoldsDetailController', holds_detail_controller_1.HoldsDetailController)
	    .service('ngHoldModalService', hold_explanation_modal_1.HoldModalService)
	    .service('ngHoldCapabilityConfiguration', configuration_1.HoldCapabilityConfiguration)
	    .config(routes_1.MyHoldsRoutes);
	__webpack_require__(1588);
	tslib_1.__exportStar(__webpack_require__(171), exports);
	tslib_1.__exportStar(__webpack_require__(172), exports);
	tslib_1.__exportStar(__webpack_require__(173), exports);
	tslib_1.__exportStar(__webpack_require__(174), exports);
	tslib_1.__exportStar(__webpack_require__(175), exports);
	tslib_1.__exportStar(__webpack_require__(176), exports);
	tslib_1.__exportStar(__webpack_require__(177), exports);
	tslib_1.__exportStar(__webpack_require__(178), exports);
	tslib_1.__exportStar(__webpack_require__(97), exports);
	tslib_1.__exportStar(__webpack_require__(98), exports);
	tslib_1.__exportStar(__webpack_require__(573), exports);
	tslib_1.__exportStar(__webpack_require__(179), exports);
	tslib_1.__exportStar(__webpack_require__(56), exports);
	tslib_1.__exportStar(__webpack_require__(180), exports);
	tslib_1.__exportStar(__webpack_require__(181), exports);
	tslib_1.__exportStar(__webpack_require__(183), exports);
	tslib_1.__exportStar(__webpack_require__(182), exports);
	exports.default = 'capability-ng-holds';


/***/ }),
/* 1593 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-holds').factory('ngHoldsCustomTextModel', function () {
	    return new utility_ts_orm_1.Model([]);
	});


/***/ }),
/* 1594 */
880,
/* 1595 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var major_coursemap_view_content_controller_1 = __webpack_require__(574);
	var major_detail_view_content_controller_1 = __webpack_require__(576);
	var major_dev_courses_view_content_controller_1 = __webpack_require__(577);
	var major_search_view_content_controller_1 = __webpack_require__(578);
	var major_sort_filter_controller_1 = __webpack_require__(579);
	var major_tile_controller_1 = __webpack_require__(580);
	var major_tile_career_controller_1 = __webpack_require__(581);
	var major_tile_careers_list_controller_1 = __webpack_require__(582);
	var survey_begin_view_content_controller_1 = __webpack_require__(583);
	var survey_question_choice_controller_1 = __webpack_require__(584);
	var survey_question_generic_1 = __webpack_require__(585);
	var survey_question_listSelection_controller_1 = __webpack_require__(586);
	var survey_question_metaranking_controller_1 = __webpack_require__(587);
	var survey_question_programs_controller_1 = __webpack_require__(588);
	var survey_question_rank_controller_1 = __webpack_require__(589);
	var survey_step_footer_1 = __webpack_require__(590);
	var survey_step_view_content_controller_1 = __webpack_require__(591);
	var survey_step_service_1 = __webpack_require__(194);
	var survey_about_our_data_modal_1 = __webpack_require__(638);
	var survey_about_program_results_modal_1 = __webpack_require__(639);
	var survey_metaranking_modal_1 = __webpack_require__(640);
	var survey_view_your_interests_modal_1 = __webpack_require__(641);
	var major_credentials_view_content_controller_1 = __webpack_require__(575);
	var configuration_1 = __webpack_require__(184);
	__webpack_require__(625);
	var metaranking_modal_service_1 = __webpack_require__(1599);
	var routes_1 = __webpack_require__(642);
	var major_course_map_controller_1 = __webpack_require__(643);
	var major_detail_controller_1 = __webpack_require__(644);
	var major_placement_scores_controller_1 = __webpack_require__(645);
	var major_survey_begin_controller_1 = __webpack_require__(646);
	var major_survey_step_controller_1 = __webpack_require__(647);
	angular
	    .module('capability-ng-major-explorer', ['major-explorer-data'])
	    .component('surveyBeginContent', new survey_begin_view_content_controller_1.SurveyBeginViewContentComponent())
	    .component('majorCourseMapContent', new major_coursemap_view_content_controller_1.MajorCourseMapViewContentComponent())
	    .component('majorDetailContent', new major_detail_view_content_controller_1.MajorDetailViewContentComponent())
	    .component('majorDevCoursesContent', new major_dev_courses_view_content_controller_1.MajorDevCoursesViewContentComponent())
	    .component('surveyStepFooter', new survey_step_footer_1.SurveyStepFooterComponent())
	    .component('majorTile', new major_tile_controller_1.MajorTileComponent())
	    .component('majorTileCareer', new major_tile_career_controller_1.MajorTileCareerComponent())
	    .component('majorTileCareerList', new major_tile_careers_list_controller_1.MajorTileCareersListComponent())
	    .component('surveyQuestionChoice', new survey_question_choice_controller_1.SurveyQuestionChoiceComponent())
	    .component('surveyQuestionGeneric', new survey_question_generic_1.SurveyQuestionGenericComponent())
	    .component('surveyQuestionListselection', new survey_question_listSelection_controller_1.SurveyQuestionListSelectionComponent())
	    .component('surveyQuestionMetaranking', new survey_question_metaranking_controller_1.SurveyQuestionMetarankingComponent())
	    .component('surveyQuestionRank', new survey_question_rank_controller_1.SurveyQuestionRankComponent())
	    .component('surveyQuestionPrograms', new survey_question_programs_controller_1.SurveyQuestionProgramsComponent())
	    .component('majorSearchContent', new major_search_view_content_controller_1.MajorSearchViewContentComponent())
	    .component('surveyStepContent', new survey_step_view_content_controller_1.SurveyStepViewContentComponent())
	    .component('majorSortFilter', new major_sort_filter_controller_1.MajorSortFilterComponent())
	    .component('surveyAboutDataModal', new survey_about_our_data_modal_1.SurveyAboutDataModalComponent())
	    .component('surveyProgramResultModal', new survey_about_program_results_modal_1.SurveyProgramResultModalComponent())
	    .component('surveyMetarankingModal', new survey_metaranking_modal_1.SurveyMetarankingModalComponent())
	    .component('surveyInterestModal', new survey_view_your_interests_modal_1.SurveyInterestModalComponent())
	    .component('majorCredentialsContent', new major_credentials_view_content_controller_1.MajorCredentialsViewContentComponent())
	    .service('ngSurveyStepService', survey_step_service_1.SurveyStepService)
	    .service('ngMajorExplorerCapabilityConfiguration', configuration_1.MajorExplorerCapabilityConfiguration)
	    .service('ngMetaRankingModalService', metaranking_modal_service_1.MetaRankingModalService)
	    .controller('MajorSurveyBeginController', major_survey_begin_controller_1.MajorSurveyBeginController)
	    .controller('MajorSurveyStepController', major_survey_step_controller_1.MajorSurveyStepController)
	    .controller('MajorDetailController', major_detail_controller_1.MajorDetailController)
	    .controller('MajorCourseMapController', major_course_map_controller_1.MajorCourseMapController)
	    .controller('MajorPlacementscoresController', major_placement_scores_controller_1.MajorPlacementscoresController)
	    .config(routes_1.MyMajorExplorerRoutes);
	__webpack_require__(283);
	__webpack_require__(282);


/***/ }),
/* 1596 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(1595);
	__webpack_require__(574);
	__webpack_require__(575);
	__webpack_require__(576);
	__webpack_require__(577);
	__webpack_require__(578);
	__webpack_require__(579);
	__webpack_require__(580);
	__webpack_require__(581);
	__webpack_require__(582);
	__webpack_require__(282);
	__webpack_require__(583);
	__webpack_require__(283);
	__webpack_require__(584);
	__webpack_require__(585);
	__webpack_require__(586);
	__webpack_require__(587);
	__webpack_require__(588);
	__webpack_require__(589);
	__webpack_require__(590);
	__webpack_require__(591);
	__webpack_require__(184);
	__webpack_require__(185);
	__webpack_require__(186);
	__webpack_require__(187);
	__webpack_require__(188);
	__webpack_require__(189);
	__webpack_require__(190);
	__webpack_require__(57);
	__webpack_require__(592);
	__webpack_require__(593);
	__webpack_require__(594);
	__webpack_require__(595);
	__webpack_require__(596);
	__webpack_require__(597);
	__webpack_require__(598);
	__webpack_require__(599);
	__webpack_require__(600);
	__webpack_require__(601);
	__webpack_require__(602);
	__webpack_require__(603);
	__webpack_require__(604);
	__webpack_require__(605);
	__webpack_require__(606);
	__webpack_require__(607);
	__webpack_require__(608);
	__webpack_require__(609);
	__webpack_require__(610);
	__webpack_require__(611);
	__webpack_require__(612);
	__webpack_require__(613);
	__webpack_require__(614);
	__webpack_require__(615);
	__webpack_require__(616);
	__webpack_require__(617);
	__webpack_require__(618);
	__webpack_require__(619);
	__webpack_require__(620);
	__webpack_require__(621);
	__webpack_require__(622);
	__webpack_require__(99);
	__webpack_require__(623);
	__webpack_require__(624);
	__webpack_require__(625);
	__webpack_require__(626);
	__webpack_require__(627);
	__webpack_require__(284);
	__webpack_require__(628);
	__webpack_require__(629);
	__webpack_require__(630);
	__webpack_require__(631);
	__webpack_require__(191);
	__webpack_require__(632);
	__webpack_require__(192);
	__webpack_require__(193);
	__webpack_require__(633);
	__webpack_require__(194);
	__webpack_require__(634);
	__webpack_require__(635);
	__webpack_require__(636);
	__webpack_require__(637);
	__webpack_require__(1598);
	__webpack_require__(638);
	__webpack_require__(639);
	__webpack_require__(640);
	__webpack_require__(641);
	__webpack_require__(642);
	__webpack_require__(643);
	__webpack_require__(644);
	__webpack_require__(645);
	__webpack_require__(646);
	__webpack_require__(647);


/***/ }),
/* 1597 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	__webpack_require__(1596);
	tslib_1.__exportStar(__webpack_require__(193), exports);
	tslib_1.__exportStar(__webpack_require__(192), exports);
	tslib_1.__exportStar(__webpack_require__(99), exports);
	tslib_1.__exportStar(__webpack_require__(194), exports);
	tslib_1.__exportStar(__webpack_require__(57), exports);
	tslib_1.__exportStar(__webpack_require__(191), exports);
	tslib_1.__exportStar(__webpack_require__(184), exports);
	exports.major_explorer = 'capability-ng-major-explorer';


/***/ }),
/* 1598 */
880,
/* 1599 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MetaRankingModalService = /** @class */ (function () {
	    function MetaRankingModalService() {
	        this._isOpen = false;
	        this._item = [];
	        this._currentIndex = 0;
	    }
	    Object.defineProperty(MetaRankingModalService.prototype, "item", {
	        get: function () {
	            return this._item;
	        },
	        set: function (item) {
	            this._item = item;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(MetaRankingModalService.prototype, "isOpen", {
	        get: function () {
	            return this._isOpen;
	        },
	        set: function (open) {
	            this._isOpen = open;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(MetaRankingModalService.prototype, "currentIndex", {
	        get: function () {
	            return this._currentIndex;
	        },
	        set: function (index) {
	            this._currentIndex = index;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return MetaRankingModalService;
	}());
	exports.MetaRankingModalService = MetaRankingModalService;


/***/ }),
/* 1600 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-notification-settings')
	    .factory('NotificationSettingsBuilder', function (Interface, NotificationSettingsDTD, notificationSettingEnum) {
	    function NotificationSettingsDTO(data) {
	        _4.forEach(data.categories, function (category) {
	            category.preferences = category.nk;
	        });
	        Interface.implement(NotificationSettingsDTD, data, this);
	        _4.forEach(data.categories, function (category) {
	            _4.map(category.preferences, function (value, key) {
	                var preferenceOption = 'DEFAULT_OPT_OUT';
	                switch (key) {
	                    case 'EMAIL': {
	                        preferenceOption = category.email_send;
	                        break;
	                    }
	                    case 'PUSH': {
	                        preferenceOption = category.push_send;
	                        break;
	                    }
	                    case 'TEXT': {
	                        preferenceOption = category.sms_send;
	                        break;
	                    }
	                    default: {
	                        break;
	                    }
	                }
	                category.preferences[key] = {
	                    preferenceType: notificationSettingEnum.get(key),
	                    status: value,
	                    option: preferenceOption
	                };
	            });
	        });
	    }
	    return NotificationSettingsDTO;
	});


/***/ }),
/* 1601 */
/***/ (function(module, exports) {

	angular
	    .module('capability-ng-notification-settings')
	    .factory('PreferenceBuilder', function (Interface, PreferenceDTD) {
	    function PreferenceDTO(data) {
	        Interface.implement(PreferenceDTD, data, this);
	    }
	    return PreferenceDTO;
	});


/***/ }),
/* 1602 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-notification-settings')
	    .factory('loadContactInfoCommand', function loadContactInfoCommandDefinition(defineCommand, contactInformationModel, $http) {
	    return defineCommand('loadContactInfoCommand', function loadContactInfoCommand(deferred) {
	        $http
	            .get('notification/student/channels/')
	            .then(function (_a) {
	            var data = _a.data;
	            contactInformationModel.initialize(data.channels);
	            deferred.resolve(contactInformationModel);
	        })
	            .catch(function () {
	            deferred.reject('failed to load data, please attempt again');
	        });
	    });
	});


/***/ }),
/* 1603 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-notification-settings')
	    .factory('loadNotificationSettingsCommand', function loadNotificationSettingsCommandDefinition(defineCommand, notificationSettingsModel, $http) {
	    return defineCommand('loadNotificationSettingsCommand', function loadNotificationSettingsCommand(deferred) {
	        $http
	            .get('notification/student/preferences/')
	            .then(function (_a) {
	            var data = _a.data;
	            notificationSettingsModel.update(data);
	            deferred.resolve(notificationSettingsModel);
	        })
	            .catch(function () {
	            deferred.reject('failed to load data, please attempt again');
	        });
	    });
	});


/***/ }),
/* 1604 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-notification-settings')
	    .factory('updateAllNotificationSettingsCommand', function updateAllNotificationSettingsCommandDefinition(defineCommand, notificationSettingsModel, updateNotificationSettingsCommand, $http, ngNotifyUserService, $q) {
	    return defineCommand('updateAllNotificationSettingsCommand', function updateAllNotificationSettingsCommand(deferred) {
	        var settingsToUpdate = Array.from(notificationSettingsModel.trackedUpdates.values());
	        var updatePromises = _4.map(settingsToUpdate, function (newPreference) {
	            return updateNotificationSettingsCommand(newPreference.category_nk, newPreference.status, newPreference.preferenceType.key.toUpperCase());
	        });
	        $q.all(updatePromises)
	            .then(function (responses) {
	            if (responses.length > 0) {
	                var successMessage = responses.reduce(function (msg, response) {
	                    return msg + "\n                      " + response.updatedCategory;
	                }, "Updated your preferences for categories:");
	                ngNotifyUserService.notifySuccess(successMessage);
	                notificationSettingsModel.resetTrackedUpdates();
	            }
	            else {
	                var errorMessage = "No preference updates were selected: ";
	                ngNotifyUserService.notifyError(errorMessage);
	            }
	            deferred.resolve();
	        })
	            .catch(function (responses) {
	            var message = responses.reduce(function (msg, response) {
	                return msg + "\n                    " + response.updatePreference;
	            }, "Unable to update your preferences for categories:");
	            ngNotifyUserService.notifyError(message);
	            notificationSettingsModel.resetTrackedUpdates();
	            deferred.reject();
	        });
	    });
	});


/***/ }),
/* 1605 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-notification-settings')
	    .factory('updateConfirmationNumberCommand', function updateConfirmationNumberCommandDefinition(defineCommand, ngConfirmationNumberService, contactInformationModel, $http) {
	    return defineCommand('updateConfirmationNumberCommand', function updateConfirmationNumberCommand(deferred, number) {
	        number = ngConfirmationNumberService.sanitizeConfirmationNumber(number);
	        if (!number) {
	            deferred.reject({
	                detail: 'Not a valid code'
	            });
	            return;
	        }
	        $http
	            .post('notification/student/channels/verify/', {
	            channel: 'phone',
	            code: number
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            deferred.resolve(contactInformationModel.isVerifiedNumberFromServer(data));
	        })
	            .catch(function (_a) {
	            var data = _a.data;
	            deferred.reject(data);
	        });
	    });
	});


/***/ }),
/* 1606 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-notification-settings')
	    .factory('updateNotificationSettingsCommand', function updateNotificationSettingsCommandDefinition(defineCommand, notificationSettingsModel, $http) {
	    return defineCommand('updateNotificationSettingsCommand', function updateNotificationSettingsCommand(deferred, nk, isActive, currentChannel) {
	        $http
	            .post('notification/student/preferences/', {
	            category: nk,
	            is_active: isActive,
	            channel: currentChannel
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            var updatedPreference = notificationSettingsModel.updatePreferenceFromServer(data);
	            deferred.resolve({
	                updatedCategory: _4.get(updatedPreference, 'nk', ''),
	                channel: currentChannel
	            });
	        })
	            .catch(function () {
	            deferred.reject("Failed to save your preference for " + currentChannel);
	        });
	    });
	});


/***/ }),
/* 1607 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-notification-settings')
	    .factory('updatePhoneNumberCommand', function updatePhoneNumberCommandDefinition(defineCommand, contactInformationModel, $http, log) {
	    return defineCommand('updatePhoneNumberCommand', function updatePhoneNumberCommand(deferred, number) {
	        number = contactInformationModel.preparePhoneNumber(number);
	        $http
	            .post('notification/student/channels/', {
	            channel: 'phone',
	            target: number
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            deferred.resolve(contactInformationModel.checkResponseNumber(data));
	        })
	            .catch(function (error) {
	            if (error.data.detail) {
	                window['HIP'].fn.notify({ position: 'top', status: 'warning', message: error.data.detail });
	            }
	            deferred.reject('failed to load data, please attempt again');
	        });
	    });
	});


/***/ }),
/* 1608 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var notificationSetting = {
	    PUSH: 'PUSH',
	    TEXT: 'TEXT',
	    EMAIL: 'EMAIL'
	};
	angular
	    .module('capability-ng-notification-settings')
	    .constant('notificationSetting', Enumeration('notificationSetting', notificationSetting));


/***/ }),
/* 1609 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(1600);
	__webpack_require__(1601);
	__webpack_require__(1602);
	__webpack_require__(1603);
	__webpack_require__(1604);
	__webpack_require__(1605);
	__webpack_require__(1606);
	__webpack_require__(1607);
	__webpack_require__(648);
	__webpack_require__(649);
	__webpack_require__(650);
	__webpack_require__(651);
	__webpack_require__(939);
	__webpack_require__(1608);
	__webpack_require__(652);
	__webpack_require__(654);
	__webpack_require__(655);
	__webpack_require__(656);
	__webpack_require__(657);
	__webpack_require__(1610);
	__webpack_require__(658);
	__webpack_require__(195);
	__webpack_require__(659);
	__webpack_require__(660);
	__webpack_require__(661);
	__webpack_require__(662);


/***/ }),
/* 1610 */
880,
/* 1611 */
/***/ (function(module, exports) {

	angular
	    .module('capability-ng-poll')
	    .factory('completeScheduledPollCommand', function completeScheduledPollCommandDefinition($q, $http, defineCommand) {
	    return defineCommand('completeScheduledPollCommand', function completeScheduledPollCommand(deferred, pollId) {
	        $http
	            .put("/poll/scheduled/" + pollId, {
	            status: 'COMPLETED'
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            deferred.resolve(pollId);
	        })
	            .catch(function (_a) {
	            var data = _a.data;
	            deferred.reject(data);
	        });
	    });
	});


/***/ }),
/* 1612 */
/***/ (function(module, exports) {

	angular
	    .module('capability-ng-poll')
	    .factory('dismissScheduledPollCommand', function dismissScheduledPollCommandDefinition($q, $http, defineCommand) {
	    return defineCommand('dismissScheduledPollCommand', function dismissScheduledPollCommand(deferred, pollId) {
	        $http
	            .put("/poll/scheduled/" + pollId, {
	            status: 'DISMISSED'
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            deferred.resolve(pollId);
	        })
	            .catch(function (_a) {
	            var data = _a.data;
	            deferred.reject(data);
	        });
	    });
	});


/***/ }),
/* 1613 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-poll')
	    .factory('loadPathPollCommand', function loadPathPollCommandDeinition($q, QueryMediator, $http, ngPollDataStore, ngPollStudentDataStore, ngPollAnswerDataStore, ngPollQueryModel, ngPollResultsServant, defineCommand) {
	    return defineCommand('loadPathPollCommand', function loadPathPollCommand(deferred, id) {
	        $q.all({
	            poll: $http.get("poll/" + id + "/definition"),
	            first_quesiton: $http.get("poll/" + id + "/firstquestion/"),
	            poll_student: $http.get("poll/" + id + "/student", { cache: false })
	        })
	            .then(function (_a) {
	            var poll = _a.poll, first_quesiton = _a.first_quesiton, poll_student = _a.poll_student;
	            ngPollDataStore.write(tslib_1.__assign(tslib_1.__assign({}, poll.data), { first_question_id: first_quesiton.data.next_question_id }));
	            ngPollAnswerDataStore.write({ answer: first_quesiton.data.next_question_answers });
	            ngPollStudentDataStore.write(poll_student.data);
	            ngPollDataStore.addBuiltQuestions(ngPollResultsServant.buildQuestions(ngPollDataStore.read(), ngPollAnswerDataStore.read(), ngPollStudentDataStore.read()));
	            ngPollQueryModel.isUpdatedPoll = true;
	            deferred.resolve();
	            utility_ts_orm_1.ORM.run(ngPollDataStore, ngPollAnswerDataStore, ngPollStudentDataStore);
	        })
	            .catch(function (err) {
	            deferred.reject(err);
	        });
	    });
	});


/***/ }),
/* 1614 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-poll')
	    .factory('loadPollResultsCommand', function loadPollResultsCommandDefinition($q, $http, ngPollResultsQueryModel, defineCommand) {
	    return defineCommand('loadPollResultsCommand', function loadPollResultsCommand(deferred) {
	        deferred.resolve(ngPollResultsQueryModel.run());
	    });
	});


/***/ }),
/* 1615 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-poll')
	    .factory('loadPollSummaryCommand', function updatePollStatusCommandDeinition($q, $http, QueryMediator, ngPollDataStore, defineCommand, ngPollStudentDataStore, ngPollAnswerDataStore, ngPollResultsServant, ngPollResultsQueryModel) {
	    return defineCommand('loadPollSummaryCommand', function loadPollSummaryCommand(deferred, poll) {
	        var answeredQuestions = _4
	            .map(poll.answered_questions, function (question) {
	            return question.questionID;
	        })
	            .join(',');
	        $http.get("poll/" + poll.id + "/totalanswers/?question_ids=" + answeredQuestions).then(function (res) {
	            ngPollDataStore.addQuestionXChoice(_4.get(res, 'data.question_x_choice', {}));
	            ngPollResultsQueryModel.run();
	            deferred.resolve();
	            utility_ts_orm_1.ORM.run(ngPollDataStore, ngPollAnswerDataStore, ngPollStudentDataStore);
	        });
	    });
	});


/***/ }),
/* 1616 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-poll')
	    .factory('loadScheduledPollsCommand', function loadScheduledPollsCommandDefinition($q, $http, ngScheduledPollDatastore, defineCommand) {
	    return defineCommand('loadScheduledPollsCommand', function loadScheduledPollsCommand(deferred) {
	        $http
	            .get('/poll/scheduled/')
	            .then(function (_a) {
	            var data = _a.data;
	            ngScheduledPollDatastore.write(data);
	            deferred.resolve(utility_ts_orm_1.ORM.run(ngScheduledPollDatastore));
	        })
	            .catch(function (err) {
	            deferred.reject(err);
	        });
	    });
	});


/***/ }),
/* 1617 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-poll')
	    .factory('updatePollAnswerCommand', function updatePollAnswerCommandDefinition($q, QueryMediator, $http, ngPollAnswerDataStore, ngPollDataStore, ngPollStudentDataStore, ngPollResultsServant, defineCommand) {
	    return defineCommand('updatePollAnswerCommand', function updatePollAnswerCommand(deferred, answerObject) {
	        var url = "poll/" + answerObject.pollId + "/question/" + answerObject.questionID + "/answers";
	        var payload;
	        if (_.isArray(answerObject.response)) {
	            payload = _.map(answerObject.response, function (choice) {
	                return { value: choice.nk };
	            });
	        }
	        else {
	            payload = { value: answerObject.response.nk };
	        }
	        $http
	            .post(url, payload)
	            .then(function (_a) {
	            var data = _a.data;
	            ngPollDataStore.answerQuestion(answerObject);
	            ngPollAnswerDataStore.add({ answer: data.next_question_answers });
	            QueryMediator.runQueries(ngPollAnswerDataStore.updateAnswer(answerObject));
	            deferred.resolve(data.next_question_id);
	            ngPollDataStore.addBuiltQuestions(ngPollResultsServant.buildQuestions(ngPollDataStore.read(), ngPollAnswerDataStore.read(), ngPollStudentDataStore.read()));
	            utility_ts_orm_1.ORM.run(ngPollDataStore, ngPollAnswerDataStore, ngPollStudentDataStore);
	        })
	            .catch(function (err) {
	            deferred.reject(err);
	        });
	    });
	});


/***/ }),
/* 1618 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-poll')
	    .factory('updatePollStatusCommand', function updatePollStatusCommandDeinition($q, $http, QueryMediator, ngPollStudentDataStore, defineCommand) {
	    return defineCommand('updatePollStatusCommand', function updatePollStatusCommand(deferred, poll) {
	        var isAnonymous = poll.is_anonymous ? poll.is_anonymous : false;
	        var status = poll.is_completed;
	        $http
	            .put("poll/" + poll.id + "/student", {
	            is_completed: status,
	            is_anonymous: isAnonymous
	        })
	            .then(function () {
	            deferred.resolve(QueryMediator.runQueries(ngPollStudentDataStore.write({
	                is_completed: status,
	                is_anonymous: isAnonymous
	            })));
	        });
	    });
	});


/***/ }),
/* 1619 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var free_text_poll_1 = __webpack_require__(669);
	var multiple_poll_1 = __webpack_require__(670);
	var poll_container_1 = __webpack_require__(671);
	var poll_results_component_1 = __webpack_require__(672);
	var poll_results_controller_1 = __webpack_require__(673);
	var poll_results_pie_controller_1 = __webpack_require__(674);
	var stand_alone_choice_1 = __webpack_require__(675);
	angular
	    .module('capability-ng-poll')
	    .controller('StandAloneChoicePollController', stand_alone_choice_1.StandAloneChoicePollController)
	    .component('standAloneChoicePoll', new stand_alone_choice_1.StandAloneChoicePoll())
	    .controller('MultiplePollController', multiple_poll_1.MultiplePollController)
	    .component('multiplePoll', new multiple_poll_1.MultiplePollComponent())
	    .controller('FreeTextPollController', free_text_poll_1.FreeTextPollController)
	    .component('freeTextPoll', new free_text_poll_1.FreeTextPollComponent())
	    .controller('PollResultsController', poll_results_controller_1.PollResultsController)
	    .component('pollResults', new poll_results_component_1.PollResultsComponent())
	    .controller('PollResultsPieController', poll_results_pie_controller_1.PollResultsPieController)
	    .component('pollResultsPie', new poll_results_pie_controller_1.PollResultsPieComponent())
	    .component('pollContainer', new poll_container_1.PollContainerComponent());


/***/ }),
/* 1620 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(663);
	__webpack_require__(664);
	__webpack_require__(665);
	__webpack_require__(666);
	__webpack_require__(667);
	__webpack_require__(1611);
	__webpack_require__(1612);
	__webpack_require__(1613);
	__webpack_require__(1614);
	__webpack_require__(1615);
	__webpack_require__(1616);
	__webpack_require__(1617);
	__webpack_require__(1618);
	__webpack_require__(669);
	__webpack_require__(670);
	__webpack_require__(1619);
	__webpack_require__(671);
	__webpack_require__(196);
	__webpack_require__(672);
	__webpack_require__(673);
	__webpack_require__(674);
	__webpack_require__(675);
	__webpack_require__(676);
	__webpack_require__(677);
	__webpack_require__(678);
	__webpack_require__(197);
	__webpack_require__(198);
	__webpack_require__(1621);
	__webpack_require__(680);
	__webpack_require__(199);
	__webpack_require__(200);
	__webpack_require__(201);
	__webpack_require__(202);
	__webpack_require__(203);
	__webpack_require__(204);
	__webpack_require__(1622);
	__webpack_require__(1623);
	__webpack_require__(681);
	__webpack_require__(1624);


/***/ }),
/* 1621 */
880,
/* 1622 */
880,
/* 1623 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular.module('capability-ng-poll').factory('QuestionTypesEnum', function (Enumeration) {
	    return Enumeration('QuestionTypesEnum', {
	        FREE_TEXT: 'free_text',
	        MULTIPLE: 'multiple',
	        CHOICE: 'choice'
	    });
	});


/***/ }),
/* 1624 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var poll_1 = __webpack_require__(681);
	angular.module('capability-ng-poll').controller('PollController', poll_1.PollController);


/***/ }),
/* 1625 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-priority-feed')
	    .service('closeOpenableElementCommand', function (defineCommandORM, ngOpenableElementsDatastore) {
	    return defineCommandORM('closeOpenableElementCommand', function (deferred, element) {
	        ngOpenableElementsDatastore.write({ element: { id: element, isOpen: false } });
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1626 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-priority-feed')
	    .factory('getSelfAlertDataCommand', function ($http, defineCommandORM, getJwtTokenCommand, appConfigModel, ngSelfAlertReasonDatasource, ngSelfAlertCourseDatasource, ngSelfAlertTermModel) {
	    return defineCommandORM('getSelfAlertDataCommand', function (deferred) {
	        var campusUrl = appConfigModel.getConfigProperty("core-campus_url");
	        if (_4.isEmpty(campusUrl)) {
	            deferred.resolve();
	        }
	        else {
	            getJwtTokenCommand().then(function (token) {
	                var config = {
	                    url: campusUrl + '/api/v3/student_resources/alerts/form_options',
	                    method: 'GET',
	                    headers: {
	                        Authorization: token.access_token,
	                        isCampusAPI: true
	                    }
	                };
	                $http(config)
	                    .then(function (_a) {
	                    var data = _a.data;
	                    var alertReasons = data.data.alert_reasons.map(function (reason) { return ({
	                        id: _4.keys(reason)[0],
	                        reason: _4.values(reason)[0]
	                    }); });
	                    ngSelfAlertReasonDatasource.clear().write(alertReasons);
	                    var courses = _4.flatten(_4.values(data.data.enrollments));
	                    var courseList = _4.map(courses, function (course) { return ({
	                        id: _4.keys(course)[0],
	                        courseName: _4.values(course)[0]
	                    }); });
	                    ngSelfAlertCourseDatasource.clear().write(courseList);
	                    var enrolls = [];
	                    for (var key in data.data.enrollments) {
	                        var value = data.data.enrollments[key];
	                        var courseIds = _4.map(value, function (course) { return _4.keys(course)[0]; });
	                        enrolls.push({
	                            term: key,
	                            courseIds: courseIds
	                        });
	                    }
	                    ngSelfAlertTermModel.clear().write({ enrollments: enrolls });
	                    deferred.resolve(data);
	                })
	                    .catch(function (e) {
	                    deferred.reject(e);
	                });
	            });
	        }
	    });
	});


/***/ }),
/* 1627 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-priority-feed')
	    .factory('getSTCConfigsCommand', function ($http, defineCommandORM, appConfigModel, authToken, ngSTCConfigsModel) {
	    return defineCommandORM('getSTCConfigsCommand', function (deferred) {
	        var campusUrl = appConfigModel.getConfigProperty("core-campus_url");
	        if (_4.isEmpty(campusUrl)) {
	            deferred.resolve();
	            return;
	        }
	        authToken
	            .campusTokenRequest({
	            url: '/api/v3/configs'
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            ngSTCConfigsModel.write(data);
	            localStorage.setItem('eab.navigate.alert_name', JSON.stringify(data.alert_label));
	            localStorage.setItem('eab.navigate.self_alerts_title', JSON.stringify(data.self_alert_label));
	            deferred.resolve(data);
	        })
	            .catch(function (err) {
	            deferred.reject(err);
	        });
	    });
	});


/***/ }),
/* 1628 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-priority-feed')
	    .service('initOpenableElementsCommand', function (defineCommandORM, ngOpenableElementsDatastore) {
	    return defineCommandORM('initOpenableElementsCommand', function (deferred) {
	        ngOpenableElementsDatastore.write([
	            {
	                id: 'selfAlertDialog',
	                isOpen: false
	            },
	            {
	                id: 'appSupportDrawer',
	                isOpen: false
	            },
	            {
	                id: 'studentFeedbackDialog',
	                isOpen: false
	            }
	        ]);
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1629 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-priority-feed')
	    .factory('loadKBNameCommand', function ($http, defineCommandORM, getJwtTokenCommand, ngKnowledgeBotModel) {
	    return defineCommandORM('loadKBNameCommand', function (deferred) {
	        getJwtTokenCommand()
	            .then(function (token) {
	            $http.get('core/retrieve_endpoint/?service_key=navai&endpoint_name=products').then(function (response) {
	                var config = {
	                    url: response.data.access_url + '/1',
	                    method: 'GET',
	                    headers: {
	                        Authorization: "Bearer " + token.access_token
	                    }
	                };
	                $http(config).then(function (_a) {
	                    var data = _a.data;
	                    ngKnowledgeBotModel.write({ name: data.name });
	                    deferred.resolve();
	                });
	            });
	        })
	            .catch(function (e) {
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1630 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-priority-feed')
	    .factory('loadPriorityFeedDataCommand', function ($q, defineCommand, getStudyBuddyPriorityFeedCommand, ngPriorityFeedCapabilityConfiguration, loadHoldsListCommand, courseListCommand, loadConversationsCommand, loadAllReminderDateRangeCommand, loadPathTasksCommand, loadActiveSurveysCommand, loadStaffTodoCommand, loadAllReportsCommand, ngReportConfigService) {
	    var dateRange = {
	        start: moment().format('YYYY-MM-DD'),
	        end: moment().add(2, 'w').format('YYYY-MM-DD')
	    };
	    var promiseStub = function () { return $q.defer(); };
	    return defineCommand('loadPriorityFeedDataCommand', function (deferred) {
	        $q.all({
	            studyBuddies: ngPriorityFeedCapabilityConfiguration.config.isStudyGroupEnabled
	                ? getStudyBuddyPriorityFeedCommand()
	                : promiseStub().resolve(),
	            holds: ngPriorityFeedCapabilityConfiguration.config.isHoldEnabled
	                ? loadHoldsListCommand()
	                : promiseStub().resolve(),
	            todos: ngPriorityFeedCapabilityConfiguration.config.isTodosEnabled
	                ? {
	                    todos: loadPathTasksCommand(dateRange),
	                    staffTodos: loadStaffTodoCommand(dateRange)
	                }
	                : promiseStub().resolve(),
	            reminders: ngPriorityFeedCapabilityConfiguration.config.isReminderEnabled
	                ? loadAllReminderDateRangeCommand(dateRange)
	                : promiseStub().resolve(),
	            conversations: ngPriorityFeedCapabilityConfiguration.config.isNotificationsEnabled
	                ? loadConversationsCommand()
	                : promiseStub().resolve()
	        })
	            .then(function () {
	            ngReportConfigService.getReportConfigs().then(function (data) {
	                var reportConfig = data || [];
	                var activeReportConfig = _.filter(reportConfig, { is_active: true });
	                loadAllReportsCommand(activeReportConfig);
	            });
	        })
	            .finally(function () {
	            loadActiveSurveysCommand().finally(function () {
	                deferred.resolve();
	            });
	        });
	    });
	});


/***/ }),
/* 1631 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-priority-feed')
	    .factory('loadPronounsCommand', function ($http, defineCommandORM, getJwtTokenCommand, appConfigModel, ngPronounsModel) {
	    return defineCommandORM('loadPronounsCommand', function (deferred, studentID) {
	        var campusUrl = appConfigModel.getConfigProperty("core-campus_url");
	        if (_4.isEmpty(campusUrl)) {
	            deferred.resolve();
	        }
	        else {
	            getJwtTokenCommand().then(function (token) {
	                var config = {
	                    url: campusUrl + '/api/v3/student_resources/pronouns',
	                    method: 'GET',
	                    headers: {
	                        Authorization: token.access_token,
	                        isCampusAPI: true
	                    },
	                    params: {
	                        primary_user_ids: studentID
	                    }
	                };
	                $http(config)
	                    .then(function (_a) {
	                    var data = _a.data;
	                    ngPronounsModel.write(data.data[0]);
	                    deferred.resolve(data);
	                })
	                    .catch(function (e) {
	                    deferred.reject(e);
	                });
	            });
	        }
	    });
	});


/***/ }),
/* 1632 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-priority-feed')
	    .factory('loadSelfAlertIconDetailsCommand', function ($http, defineCommandORM, ngSelfAlertIconDetailsModel) {
	    return defineCommandORM('loadSelfAlertIconDetailsCommand', function (deferred) {
	        var pullData = new Promise(function (resolve) {
	            return $http({
	                method: 'GET',
	                url: "config/studentmenuitems/"
	            }).then(resolve);
	        });
	        pullData
	            .then(function (_a) {
	            var data = _a.data;
	            var selfAlert = _4.find(data.data, function (menuItem) {
	                return menuItem.nk === 'HAND_RAISE';
	            });
	            ngSelfAlertIconDetailsModel.write({ icon: selfAlert.icon, color: selfAlert.icon_color });
	            localStorage.setItem('eab.navigate.self_alert_icon', JSON.stringify(selfAlert.icon));
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1633 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-priority-feed')
	    .service('openOpenableElementCommand', function (defineCommandORM, ngOpenableElementsDatastore) {
	    return defineCommandORM('openOpenableElementCommand', function (deferred, element) {
	        ngOpenableElementsDatastore.write({ element: { id: element, isOpen: true } });
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1634 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-priority-feed')
	    .service('submitSelfAlertCommand', function submitSelfAlertCommandDefinition($http, defineCommandORM, log, ngSTCConfigsModel, getJwtTokenCommand, appConfigModel) {
	    return defineCommandORM('submitSelfAlertCommand', function submitSelfAlertCommand(deferred, selfAlertFormData) {
	        var campusUrl = appConfigModel.getConfigProperty("core-campus_url");
	        var alertName = ngSTCConfigsModel.read().self_alert_label;
	        if (_4.isEmpty(campusUrl)) {
	            deferred.resolve();
	        }
	        else {
	            getJwtTokenCommand().then(function (token) {
	                var alert_reason = _4.get(selfAlertFormData, 'alert_reason_ids', []);
	                selfAlertFormData.alert_reason_ids = _4.isArray(alert_reason) ? alert_reason : [alert_reason];
	                var enrollment = _4.get(selfAlertFormData, 'enrollment_ids', []);
	                selfAlertFormData.enrollment_ids = _4.isArray(enrollment) ? enrollment : [enrollment];
	                selfAlertFormData.comments = _4.get(selfAlertFormData, 'comments', '');
	                var urlFormatted = "/api/v3/student_resources/alerts";
	                var config = {
	                    url: campusUrl + urlFormatted,
	                    method: 'POST',
	                    data: selfAlertFormData,
	                    headers: {
	                        Authorization: token.access_token,
	                        isCampusAPI: true
	                    }
	                };
	                $http(config)
	                    .then(function (response) {
	                    log.user.success("Success! As a reminder, you can review all your submissions in the <hi-link ui-sref='my.reports'>My Docs</hi-link> section in the app. ");
	                    deferred.resolve();
	                })
	                    .catch(function (e) {
	                    log.user.issue("Your " + alertName + " failed to send. Sorry please try again.");
	                    deferred.reject(e);
	                });
	            });
	        }
	    });
	});


/***/ }),
/* 1635 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-priority-feed')
	    .service('submitStudentFeedbackCommand', function submitStudentFeedbackCommandDefinition($http, defineCommandORM, log) {
	    return defineCommandORM('submitStudentFeedbackCommand', function submitStudentFeedbackCommand(deferred, studentFeedbackFormData) {
	        $http
	            .post("api/v1/core/studentfeedback/", studentFeedbackFormData)
	            .then(function (_a) {
	            var data = _a.data;
	            log.user.success("Your feedback was successfully submitted.");
	            deferred.resolve(data);
	        })
	            .catch(function () {
	            log.user.issue("Your feedback failed to send. Sorry please try again.");
	            deferred.reject('Failed to send feedback, please attempt again');
	        });
	    });
	});


/***/ }),
/* 1636 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var account_avatar_1 = __webpack_require__(685);
	var app_support_1 = __webpack_require__(686);
	var feed_container_1 = __webpack_require__(687);
	var personal_greeting_1 = __webpack_require__(688);
	var quick_add_1 = __webpack_require__(689);
	var self_alert_dialog_1 = __webpack_require__(690);
	var student_feedback_dialog_1 = __webpack_require__(1637);
	angular
	    .module('capability-ng-priority-feed')
	    .controller('AccountAvatarController', account_avatar_1.AccountAvatarController)
	    .component('accountAvatar', new account_avatar_1.AccountAvatarComponent())
	    .controller('AppSupportController', app_support_1.AppSupportController)
	    .component('appSupport', new app_support_1.AppSupportComponent())
	    .controller('FeedContainerController', feed_container_1.FeedContainerController)
	    .component('feedContainer', new feed_container_1.FeedContainerComponent())
	    .controller('PersonalGreetingController', personal_greeting_1.PersonalGreetingController)
	    .component('personalGreeting', new personal_greeting_1.PersonalGreetingComponent())
	    .controller('QuickAddController', quick_add_1.QuickAddController)
	    .component('quickAdd', new quick_add_1.QuickAddComponent())
	    .controller('SelfAlertDialogController', self_alert_dialog_1.SelfAlertDialogController)
	    .component('selfAlertDialog', new self_alert_dialog_1.SelfAlertDialogComponent())
	    .controller('StudentFeedbackDialogController', student_feedback_dialog_1.StudentFeedbackDialogController)
	    .component('studentFeedbackDialog', new student_feedback_dialog_1.StudentFeedbackDialogComponent());


/***/ }),
/* 1637 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var StudentFeedbackDialogController = /** @class */ (function () {
	    function StudentFeedbackDialogController(ngOpenableElementsQuery, closeOpenableElementCommand, submitStudentFeedbackCommand, $element) {
	        this.ngOpenableElementsQuery = ngOpenableElementsQuery;
	        this.closeOpenableElementCommand = closeOpenableElementCommand;
	        this.submitStudentFeedbackCommand = submitStudentFeedbackCommand;
	        this.$element = $element;
	    }
	    StudentFeedbackDialogController.prototype.closeStudentFeedback = function () {
	        return this.closeOpenableElementCommand('studentFeedbackDialog');
	    };
	    StudentFeedbackDialogController.prototype.clearAndCloseDialog = function () {
	        this.$element[0].querySelector('#student-feedback-form')['reset']();
	        this.closeStudentFeedback();
	    };
	    StudentFeedbackDialogController.prototype.onStudentFeedbackFormSubmitted = function ($event) {
	        var _this = this;
	        var studentFeedbackFormData = _4.get($event, 'detail.value', {});
	        this.submitStudentFeedbackCommand(studentFeedbackFormData).then(function () {
	            _this.clearAndCloseDialog();
	        });
	    };
	    return StudentFeedbackDialogController;
	}());
	exports.StudentFeedbackDialogController = StudentFeedbackDialogController;
	var StudentFeedbackDialogComponent = /** @class */ (function () {
	    function StudentFeedbackDialogComponent() {
	        this.controller = StudentFeedbackDialogController;
	        this.templateUrl = 'capability-ng-priority-feed/src/components/student_feedback_dialog/student_feedback_dialog.html';
	        this.controllerAs = '$ctrl';
	    }
	    return StudentFeedbackDialogComponent;
	}());
	exports.StudentFeedbackDialogComponent = StudentFeedbackDialogComponent;


/***/ }),
/* 1638 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(682);
	__webpack_require__(683);
	__webpack_require__(684);
	__webpack_require__(1625);
	__webpack_require__(1626);
	__webpack_require__(1627);
	__webpack_require__(1630);
	__webpack_require__(1631);
	__webpack_require__(1634);
	__webpack_require__(1635);
	__webpack_require__(685);
	__webpack_require__(686);
	__webpack_require__(687);
	__webpack_require__(1629);
	__webpack_require__(1632);
	__webpack_require__(1628);
	__webpack_require__(1633);
	__webpack_require__(688);
	__webpack_require__(1636);
	__webpack_require__(689);
	__webpack_require__(690);
	__webpack_require__(205);
	__webpack_require__(1640);
	__webpack_require__(1641);
	__webpack_require__(1639);
	__webpack_require__(1643);
	__webpack_require__(1644);
	__webpack_require__(1646);
	__webpack_require__(1645);
	__webpack_require__(1647);
	__webpack_require__(691);
	__webpack_require__(693);
	__webpack_require__(1648);
	__webpack_require__(694);
	__webpack_require__(692);
	__webpack_require__(695);
	__webpack_require__(696);
	__webpack_require__(697);
	__webpack_require__(1649);


/***/ }),
/* 1639 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var openable_element_builder_1 = __webpack_require__(682);
	angular
	    .module('capability-ng-priority-feed')
	    .factory('ngOpenableElementsDatastore', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: openable_element_builder_1.OpenableElement,
	        autoId: false
	    });
	});


/***/ }),
/* 1640 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var self_alert_course_builder_1 = __webpack_require__(683);
	angular.module('capability-ng-priority-feed').factory('ngSelfAlertCourseDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: self_alert_course_builder_1.SelfAlertCourse
	    });
	});


/***/ }),
/* 1641 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var self_alert_reason_builder_1 = __webpack_require__(684);
	angular.module('capability-ng-priority-feed').factory('ngSelfAlertReasonDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: self_alert_reason_builder_1.SelfAlertReason
	    });
	});


/***/ }),
/* 1642 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var configuration_1 = __webpack_require__(205);
	var routes_1 = __webpack_require__(696);
	angular
	    .module('capability-ng-priority-feed', [
	    'capability-ng-study-groups',
	    'capability-ng-course-schedule',
	    'capability-ng-holds',
	    'capability-ng-conversations',
	    'capability-ng-todos',
	    'data-ng-personal-reminders',
	    'capability-ng-survey',
	    'ngAria',
	    'ui.router'
	])
	    .service('ngPriorityFeedCapabilityConfiguration', configuration_1.PriorityFeedCapabilityConfiguration)
	    .config(routes_1.PriorityFeedRoutes);
	__webpack_require__(1638);
	tslib_1.__exportStar(__webpack_require__(205), exports);
	tslib_1.__exportStar(__webpack_require__(691), exports);
	tslib_1.__exportStar(__webpack_require__(693), exports);
	tslib_1.__exportStar(__webpack_require__(695), exports);
	tslib_1.__exportStar(__webpack_require__(692), exports);
	tslib_1.__exportStar(__webpack_require__(694), exports);
	exports.PROIORITY_FEED = 'capability-ng-priority-feed';


/***/ }),
/* 1643 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-priority-feed').factory('ngKnowledgeBotModel', function () {
	    return new utility_ts_orm_1.Model({
	        name: 'Knowledge Bot'
	    });
	});


/***/ }),
/* 1644 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-priority-feed').factory('ngPronounsModel', function () {
	    return new utility_ts_orm_1.Model({
	        formatted_pronouns: '',
	        selected_pronouns: '',
	        user_id: ''
	    });
	});


/***/ }),
/* 1645 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-priority-feed').factory('ngSelfAlertIconDetailsModel', function () {
	    return new utility_ts_orm_1.Model({
	        icon: 'waving_hand',
	        color: 'green'
	    });
	});


/***/ }),
/* 1646 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-priority-feed').factory('ngSelfAlertTermModel', function () {
	    return new utility_ts_orm_1.Model({
	        enrollments: []
	    });
	});


/***/ }),
/* 1647 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-priority-feed').factory('ngSTCConfigsModel', function () {
	    return new utility_ts_orm_1.Model({
	        absences_verbiage: 'Number of Absences',
	        allow_users_to_edit_pronouns: false,
	        comments_verbiage: 'Additional Comments',
	        grade_verbiage: 'Current Grade',
	        show_absences: false,
	        show_comments: false,
	        show_grade: false,
	        show_pronouns: false,
	        v3_student_scheduler_flag: false,
	        self_alert_label: 'Hand Raise',
	        alert_label: 'Alert'
	    });
	});


/***/ }),
/* 1648 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var SelfAlertDialogQuery = /** @class */ (function () {
	    function SelfAlertDialogQuery(ngSelfAlertTermModel, ngSelfAlertCourseDatasource, ngSelfAlertReasonDatasource) {
	        this.ngSelfAlertTermModel = ngSelfAlertTermModel;
	        this.ngSelfAlertCourseDatasource = ngSelfAlertCourseDatasource;
	        this.ngSelfAlertReasonDatasource = ngSelfAlertReasonDatasource;
	        utility_ts_orm_1.Query.registerQuery(this, ngSelfAlertTermModel, ngSelfAlertCourseDatasource, ngSelfAlertReasonDatasource);
	    }
	    SelfAlertDialogQuery.prototype.run = function () {
	        var alertReasons = _4.orderBy(this.ngSelfAlertReasonDatasource.values(), ['reason']);
	        var courses = this.ngSelfAlertCourseDatasource.read();
	        // sorting done by STC
	        var enrollments = this.ngSelfAlertTermModel.read().enrollments;
	        var comboboxInput = [];
	        enrollments.forEach(function (el) {
	            comboboxInput.push({ title: "" + el.term, heading: 'true' });
	            el.courseIds.forEach(function (courseId) {
	                comboboxInput.push({ title: "" + courses[courseId].courseName, value: "" + courseId });
	            });
	        });
	        this._result = {
	            reasons: alertReasons,
	            enrollments: comboboxInput
	        };
	        return this;
	    };
	    Object.defineProperty(SelfAlertDialogQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return SelfAlertDialogQuery;
	}());
	exports.SelfAlertDialogQuery = SelfAlertDialogQuery;
	angular.module('capability-ng-priority-feed').service('ngSelfAlertDialogQuery', SelfAlertDialogQuery);


/***/ }),
/* 1649 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var priority_feed_1 = __webpack_require__(697);
	angular.module('capability-ng-priority-feed').controller('PriorityFeedController', priority_feed_1.default);


/***/ }),
/* 1650 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-reports')
	    .factory('loadAllReportsCommand', function ($q, defineCommandORM, getJwtTokenCommand, appConfigModel, accountModel, loadApptSummariesCommand, loadNotesCommand, loadProgressReportsCommand) {
	    var promiseStub = function () { return $q.defer(); };
	    return defineCommandORM('loadAllReportsCommand', function (deferred, activeReportTypes) {
	        var studentNK = _4.get(accountModel, 'student_nk', '');
	        var campusUrl = appConfigModel.getConfigProperty("core-campus_url");
	        if (_4.isEmpty(campusUrl)) {
	            deferred.resolve();
	            return;
	        }
	        getJwtTokenCommand().then(function (token) {
	            var JWTToken = token.access_token;
	            var apptSummariesConfig = _4.find(activeReportTypes, { nk: 'APPOINTMENT_SUMMARIES' });
	            var notesConfig = _4.find(activeReportTypes, { nk: 'NOTES' });
	            var progressReportsConfig = _4.find(activeReportTypes, { nk: 'PROGRESS_REPORTS' });
	            $q.all({
	                apptSummaries: !_4.isEmpty(apptSummariesConfig)
	                    ? loadApptSummariesCommand(apptSummariesConfig, studentNK, campusUrl, JWTToken)
	                    : promiseStub().resolve(),
	                notes: !_4.isEmpty(notesConfig)
	                    ? loadNotesCommand(notesConfig, studentNK, campusUrl, JWTToken)
	                    : promiseStub().resolve(),
	                progressReports: !_4.isEmpty(progressReportsConfig)
	                    ? loadProgressReportsCommand(progressReportsConfig, studentNK, campusUrl, JWTToken)
	                    : promiseStub().resolve()
	            });
	        });
	    });
	});


/***/ }),
/* 1651 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-reports')
	    .factory('loadApptSummariesCommand', function ($http, defineCommandORM, ngApptSummariesDatasource) {
	    return defineCommandORM('loadApptSummariesCommand', function (deferred, reportConfig, studentNK, campusUrl, token) {
	        var config = {
	            url: campusUrl + '/api/v3/students/' + studentNK + '/summary_reports',
	            method: 'GET',
	            headers: {
	                Authorization: token,
	                isCampusAPI: true
	            },
	            params: {
	                date: reportConfig.last_enabled_dt
	            }
	        };
	        $http(config)
	            .then(function (_a) {
	            var data = _a.data;
	            ngApptSummariesDatasource.clear().write(data.data);
	            deferred.resolve(data);
	        })
	            .catch(function (e) {
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1652 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-reports')
	    .factory('loadNotesCommand', function ($http, defineCommandORM, ngNotesDatasource) {
	    return defineCommandORM('loadNotesCommand', function (deferred, reportConfig, studentNK, campusUrl, token) {
	        var config = {
	            url: campusUrl + '/api/v3/students/' + studentNK + '/notes',
	            method: 'GET',
	            headers: {
	                Authorization: token,
	                isCampusAPI: true
	            },
	            params: {
	                date: reportConfig.last_enabled_dt
	            }
	        };
	        $http(config)
	            .then(function (_a) {
	            var data = _a.data;
	            ngNotesDatasource.clear().write(data.data);
	            deferred.resolve(data);
	        })
	            .catch(function (e) {
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1653 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-reports')
	    .factory('loadProgressReportsCommand', function ($http, defineCommandORM, ngProgressReportsDatasource) {
	    return defineCommandORM('loadProgressReportsCommand', function (deferred, reportConfig, studentNK, campusUrl, token) {
	        var config = {
	            url: campusUrl + '/api/v3/students/' + studentNK + '/progress_reports',
	            method: 'GET',
	            headers: {
	                Authorization: token,
	                isCampusAPI: true
	            },
	            params: {
	                date: reportConfig.last_enabled_dt
	            }
	        };
	        $http(config)
	            .then(function (_a) {
	            var data = _a.data;
	            ngProgressReportsDatasource.clear().write(data.data);
	            deferred.resolve(data);
	        })
	            .catch(function (e) {
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1654 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var ngHILTemplate = "\n<hi-button id=\"mobileGoBackBtn\" aria-label=\"Go Back\" aesthetic=\"icon\" ng-click=\"$ctrl.goBack()\" kind=\"state\" layout-icon=\"layout-icon\" size=\"large\">\n  <hi-icon aria-hidden=\"true\" size=\"large\" kind=\"chevron_left\"></hi-icon>\n</hi-button>\n<hi-link ng-on-trigger-ended=\"$ctrl.goBack()\" href=\"#\" id=\"goBackLink\">\n    <hi-icon kind=\"chevron_left\" l-size=\"1\" size=\"small\"></hi-icon>\n    <span class=\"pasx\">Go back</span>\n</hi-link>\n<div class=\"{{$ctrl.containerClass}} clr-white-bkg mtm\" scroll-header>\n  <ai-view id=\"aiView{{$ctrl.uniqueID}}\">\n  </ai-view>\n</div>\n";
	var NgHilController = /** @class */ (function () {
	    function NgHilController($element, $injector, $http, log, accountModel, appConfigModel, NetworkUrlConfiguration) {
	        this.$element = $element;
	        this.$injector = $injector;
	        this.$http = $http;
	        this.log = log;
	        this.accountModel = accountModel;
	        this.appConfigModel = appConfigModel;
	        this.NetworkUrlConfiguration = NetworkUrlConfiguration;
	        this.uri = '';
	        this.containerClass = '';
	        this.uniqueID = _4.uniqueId();
	        this.reportConfig = [];
	        this.reportConfig = JSON.parse(localStorage.getItem('eab.navigate.report_config') || '{}');
	    }
	    NgHilController.prototype.$onInit = function () {
	        this.fetchandInvokeScript(this.uri);
	        this.containerClass = utility_ts_platform_1.PlatformUtility.isMobile() ? "app-content--mobile plm prm" : "app-content--desktop plm prm";
	        this.setComparator();
	        this.newerThanSeven = moment(new Date().getTime() - 7 * 1000 * 3600 * 24).format();
	        this.newerThanThirty = moment(new Date().getTime() - 30 * 1000 * 3600 * 24).format();
	        this.newerThanNinety = moment(new Date().getTime() - 90 * 1000 * 3600 * 24).format();
	    };
	    NgHilController.prototype.goBack = function () {
	        var previousURI = this.goBackURI();
	        window['hosting']['kernel'].processes.history.goBackCommit();
	        window.location.assign(previousURI);
	    };
	    NgHilController.prototype.goBackURI = function () {
	        return window['hosting']['kernel'].processes.history.goBackURI();
	    };
	    NgHilController.prototype.insertConfigurationIntoHIL = function (hil) {
	        var STC_CONFIG_KEY = 'core-campus_url';
	        hil['configuration'] = Object.assign(hil['configuration'] || {}, {
	            'core-campus_url': this.appConfigModel.getConfigProperty(STC_CONFIG_KEY),
	            student_nk: this.accountModel.student_nk,
	            app_url: this.NetworkUrlConfiguration.configure().prependUrl || '',
	            firstName: this.accountModel.firstName
	        });
	        hil['constants'] = tslib_1.__assign(tslib_1.__assign({}, (hil['constants'] || {})), { '@SGDURI': this.NetworkUrlConfiguration.configure().prependUrl || '', '@STCURI': this.appConfigModel.getConfigProperty(STC_CONFIG_KEY) || '', '@student_nk': this.accountModel.student_nk || '', '@appointment_summary_enabled_date': _4.get(_4.filter(this.reportConfig, ['nk', 'APPOINTMENT_SUMMARIES'])[0], 'last_enabled_dt', ''), '@notes_enabled_date': _4.get(_4.filter(this.reportConfig, ['nk', 'NOTES'])[0], 'last_enabled_dt', ''), '@progress_report_enabled_date': _4.get(_4.filter(this.reportConfig, ['nk', 'PROGRESS_REPORTS'])[0], 'last_enabled_dt', '') });
	        return hil;
	    };
	    NgHilController.prototype.fetchandInvokeScript = function (uri) {
	        var _this = this;
	        this.$http.get(uri, { cache: false }).then(function (response) {
	            var updatedHIL = _this.insertConfigurationIntoHIL(response.data);
	            _this.invokeView(updatedHIL);
	        }, function (err) {
	            _this.log.error(err);
	        });
	    };
	    NgHilController.prototype.invokeView = function (script) {
	        var aiView = document.querySelector("#aiView" + this.uniqueID);
	        window.hiReady(function () {
	            if (aiView) {
	                aiView.invoke(script);
	            }
	        });
	    };
	    NgHilController.prototype.hasComparator = function (comparator) {
	        var visitorC = window.HIP.visitor.query({ render_type: comparator, entity: 'comparator' });
	        return _4.isEqual(visitorC.render_type, comparator);
	    };
	    NgHilController.prototype.setComparator = function () {
	        var _this = this;
	        if (_4.includes(this.uri, 'appt_summary.hil') && !this.hasComparator('sgd_reports_appt_summ_comparator')) {
	            window.HIP.visitor.add({
	                entity: 'comparator',
	                render_type: 'sgd_reports_appt_summ_comparator',
	                compare: function (left, right) {
	                    var inSupportedFormat = 'object' === typeof left && 'string' === typeof right;
	                    if (!inSupportedFormat) {
	                        return left == right;
	                    }
	                    switch (right) {
	                        case 'all':
	                            return true;
	                        case 'unread':
	                        case 'flagged':
	                            return left.status === right;
	                        case 'seven':
	                            return left.created_at > _this.newerThanSeven;
	                        case 'thirty':
	                            return left.created_at > _this.newerThanThirty;
	                        case 'ninety':
	                            return left.created_at > _this.newerThanNinety;
	                        case 'old':
	                            return left.created_at < _this.newerThanNinety || left.created_at === _this.newerThanNinety;
	                        default:
	                            return _4.lowerCase(left.care_unit) === right;
	                    }
	                }
	            });
	        }
	        else if (_4.includes(this.uri, 'notes.hil') && !this.hasComparator('sgd_reports_comparator')) {
	            window.HIP.visitor.add({
	                entity: 'comparator',
	                render_type: 'sgd_reports_comparator',
	                compare: function (left, right) {
	                    var inSupportedFormat = 'object' === typeof left && 'string' === typeof right;
	                    if (!inSupportedFormat) {
	                        return left == right;
	                    }
	                    switch (right) {
	                        case 'all':
	                            return true;
	                        case 'unread':
	                        case 'flagged':
	                            return left.status === right;
	                        case 'seven':
	                            return left.created_at > _this.newerThanSeven;
	                        case 'thirty':
	                            return left.created_at > _this.newerThanThirty;
	                        case 'ninety':
	                            return left.created_at > _this.newerThanNinety;
	                        case 'old':
	                            return left.created_at < _this.newerThanNinety || left.created_at === _this.newerThanNinety;
	                        case 'no note reason':
	                            return _4.isEmpty(left.note_reasons);
	                        default:
	                            return _4.map(left.note_reasons, _4.lowerCase).includes(right);
	                    }
	                }
	            });
	        }
	        else if (_4.includes(this.uri, 'progress_report.hil') &&
	            !this.hasComparator('sgd_reports_prog_rprt_comparator')) {
	            window.HIP.visitor.add({
	                entity: 'comparator',
	                render_type: 'sgd_reports_prog_rprt_comparator',
	                compare: function (left, right) {
	                    var inSupportedFormat = 'object' === typeof left && 'string' === typeof right;
	                    if (!inSupportedFormat) {
	                        return left == right;
	                    }
	                    switch (right) {
	                        case 'all':
	                            return true;
	                        case 'unread':
	                        case 'flagged':
	                            return left.status === right;
	                        case 'seven':
	                            return left.created_at > _this.newerThanSeven;
	                        case 'thirty':
	                            return left.created_at > _this.newerThanThirty;
	                        case 'ninety':
	                            return left.created_at > _this.newerThanNinety;
	                        case 'old':
	                            return left.created_at < _this.newerThanNinety || left.created_at === _this.newerThanNinety;
	                        default:
	                            return _4.lowerCase(left.course_name) === right;
	                    }
	                }
	            });
	        }
	        else if (_4.includes(this.uri, 'self_alerts.hil') && !this.hasComparator('sgd_reports_self_alerts_comparator')) {
	            window.HIP.visitor.add({
	                entity: 'comparator',
	                render_type: 'sgd_reports_self_alerts_comparator',
	                compare: function (left, right) {
	                    var inSupportedFormat = 'object' === typeof left && 'string' === typeof right;
	                    if (!inSupportedFormat) {
	                        return left == right;
	                    }
	                    switch (right) {
	                        case 'all':
	                            return true;
	                        case 'seven':
	                            return left.created_at > _this.newerThanSeven;
	                        case 'thirty':
	                            return left.created_at > _this.newerThanThirty;
	                        case 'ninety':
	                            return left.created_at > _this.newerThanNinety;
	                        case 'old':
	                            return left.created_at < _this.newerThanNinety || left.created_at === _this.newerThanNinety;
	                        default:
	                            return true;
	                    }
	                }
	            });
	        }
	    };
	    return NgHilController;
	}());
	var NgHilComponent = /** @class */ (function () {
	    function NgHilComponent() {
	        this.template = ngHILTemplate;
	        this.controllerAs = '$ctrl';
	        this.controller = NgHilController;
	        this.bindings = {
	            uri: '@',
	            title: '@'
	        };
	    }
	    return NgHilComponent;
	}());
	exports.NgHilComponent = NgHilComponent;
	angular.module('capability-ng-reports').component('summaryNgHilComponent', new NgHilComponent());


/***/ }),
/* 1655 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(1654);
	__webpack_require__(1656);
	__webpack_require__(1657);
	__webpack_require__(1658);
	__webpack_require__(1650);
	__webpack_require__(1651);
	__webpack_require__(1652);
	__webpack_require__(1653);
	__webpack_require__(698);
	__webpack_require__(1660);


/***/ }),
/* 1656 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ng_kernel_1 = __webpack_require__(5);
	var ApptSummaryReport = /** @class */ (function () {
	    function ApptSummaryReport(report) {
	        _4.merge(this, {}, report);
	    }
	    ApptSummaryReport.build = function (report) {
	        return new ApptSummaryReport(report);
	    };
	    return ApptSummaryReport;
	}());
	exports.ApptSummaryReport = ApptSummaryReport;
	angular.module('capability-ng-reports').factory('ngApptSummariesDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ApptSummaryReport
	    });
	});


/***/ }),
/* 1657 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ng_kernel_1 = __webpack_require__(5);
	var NoteReport = /** @class */ (function () {
	    function NoteReport(report) {
	        _4.merge(this, {}, report);
	    }
	    NoteReport.build = function (report) {
	        return new NoteReport(report);
	    };
	    return NoteReport;
	}());
	exports.NoteReport = NoteReport;
	angular.module('capability-ng-reports').factory('ngNotesDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: NoteReport
	    });
	});


/***/ }),
/* 1658 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ng_kernel_1 = __webpack_require__(5);
	var ProgressReport = /** @class */ (function () {
	    function ProgressReport(report) {
	        _4.merge(this, {}, report);
	    }
	    ProgressReport.build = function (report) {
	        return new ProgressReport(report);
	    };
	    return ProgressReport;
	}());
	exports.ProgressReport = ProgressReport;
	angular.module('capability-ng-reports').factory('ngProgressReportsDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: ProgressReport
	    });
	});


/***/ }),
/* 1659 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	__webpack_require__(1661);
	angular.module('capability-ng-reports', ['ngSanitize', 'ngAria']);
	__webpack_require__(1655);
	exports.REPORTS = 'capability-ng-reports';
	tslib_1.__exportStar(__webpack_require__(698), exports);


/***/ }),
/* 1660 */
/***/ (function(module, exports) {

	var __assign = (this && this.__assign) || function () {
	    __assign = Object.assign || function(t) {
	        for (var s, i = 1, n = arguments.length; i < n; i++) {
	            s = arguments[i];
	            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
	                t[p] = s[p];
	        }
	        return t;
	    };
	    return __assign.apply(this, arguments);
	};
	angular
	    .module('capability-ng-reports')
	    .config(function ($stateProvider, $urlRouterProvider) {
	    var Routes = {
	        'my.reports': {
	            url: 'reports',
	            fullPath: '/my/reports',
	            template: "<summary-ng-hil-component title=\"Docs\" uri=\"ahp/reports/views/reports.hil\"></summary-ng-hil-component>",
	            data: {
	                viewTitle: 'Docs',
	                ignoredInHistory: false,
	                hasMainMenu: true
	            }
	        },
	        'my.appointmentSummary': {
	            url: 'appointment-summary',
	            fullPath: '/my/appointment-summary',
	            template: "<summary-ng-hil-component title=\"Appointment Summary\" uri=\"ahp/reports/views/appt_summary/appt_summary.hil\"></summary-ng-hil-component>",
	            data: {
	                viewTitle: 'Appointment Summaries',
	                ignoredInHistory: false
	            }
	        },
	        'my.appointmentSummary-details': {
	            url: 'appointment-summary-details/?id',
	            fullPath: '/my/appointment-summary-details/?id',
	            template: "<summary-ng-hil-component uri=\"ahp/reports/views/appt_summary/details.hil\"></summary-ng-hil-component>",
	            data: {
	                viewTitle: 'Appointment Summary Detail',
	                ignoredInHistory: false
	            }
	        },
	        'my.notes': {
	            url: 'notes',
	            fullPath: '/my/notes',
	            template: "<summary-ng-hil-component uri=\"ahp/reports/views/notes/notes.hil\"></summary-ng-hil-component>",
	            data: {
	                viewTitle: 'Notes',
	                ignoredInHistory: false
	            }
	        },
	        'my.notes-details': {
	            url: 'notes-details/?id',
	            fullPath: '/my/notes-details/?id',
	            template: "<summary-ng-hil-component uri=\"ahp/reports/views/notes/details.hil\"></summary-ng-hil-component>",
	            data: {
	                viewTitle: 'Notes Detail',
	                ignoredInHistory: false
	            }
	        },
	        'my.progressReport': {
	            url: 'progress-report',
	            fullPath: '/my/progress-report',
	            template: "<summary-ng-hil-component uri=\"ahp/reports/views/progress_report/progress_report.hil\"></summary-ng-hil-component>",
	            data: {
	                viewTitle: 'Progress Reports',
	                ignoredInHistory: false
	            }
	        },
	        'my.progressReport-details': {
	            url: 'progress-report-details/?id',
	            fullPath: '/my/progress-report-details/?id',
	            template: "<summary-ng-hil-component uri=\"ahp/reports/views/progress_report/details.hil\">\n        </summary-ng-hil-component>\n        ",
	            data: {
	                viewTitle: 'Progress Report Detail',
	                ignoredInHistory: false
	            }
	        },
	        'my.selfAlerts': {
	            url: 'self-alerts',
	            fullPath: '/my/self-alerts',
	            template: "<summary-ng-hil-component uri=\"ahp/reports/views/self_alerts/self_alerts.hil\"></summary-ng-hil-component>",
	            data: {
	                viewTitle: 'Self Alerts',
	                ignoredInHistory: false
	            }
	        },
	        'my.selfAlerts-details': {
	            url: 'self-alerts/?id',
	            fullPath: '/my/self-alerts-details/?id',
	            template: "<summary-ng-hil-component uri=\"ahp/reports/views/self_alerts/details.hil\">\n        </summary-ng-hil-component>\n        ",
	            data: {
	                viewTitle: 'Self Alerts Detail',
	                ignoredInHistory: false
	            }
	        }
	    };
	    var _loop_1 = function (stateName) {
	        $stateProvider.state(stateName, Routes[stateName]);
	        var stateObject = Routes[stateName];
	        var fullURL = stateObject.fullPath;
	        $urlRouterProvider.when(fullURL, function ($match, $stateParams, $state) {
	            if ($match) {
	                $state.go(stateName, __assign({}, $match), { location: false });
	            }
	            else {
	                $state.go(stateName, { location: false });
	            }
	        });
	    };
	    for (var stateName in Routes) {
	        _loop_1(stateName);
	    }
	});


/***/ }),
/* 1661 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	__webpack_require__(12);
	__webpack_require__(27);
	__webpack_require__(39);
	__webpack_require__(50);
	__webpack_require__(62);
	__webpack_require__(34);
	__webpack_require__(22);
	__webpack_require__(21);
	__webpack_require__(5);
	__webpack_require__(51);
	__webpack_require__(46);
	__webpack_require__(48);


/***/ }),
/* 1662 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var resource_detail_builder_1 = __webpack_require__(208);
	var contact_card_1 = __webpack_require__(700);
	var contact_detail_controller_1 = __webpack_require__(701);
	var contact_list_controller_1 = __webpack_require__(702);
	var contact_tile_availability_controller_1 = __webpack_require__(703);
	var resource_detail_content_1 = __webpack_require__(704);
	var resource_detail_item_1 = __webpack_require__(705);
	var contacts_list_query_1 = __webpack_require__(706);
	var contacts_relationship_query_1 = __webpack_require__(211);
	var contacts_search_query_1 = __webpack_require__(707);
	var resource_category_query_1 = __webpack_require__(212);
	var resource_list_query_1 = __webpack_require__(213);
	var resource_search_query_1 = __webpack_require__(708);
	var location_link_builder_servant_1 = __webpack_require__(709);
	var resource_list_servant_1 = __webpack_require__(214);
	var contact_list_service_1 = __webpack_require__(215);
	var contact_search_service_1 = __webpack_require__(710);
	var contact_service_1 = __webpack_require__(216);
	var contact_toggle_service_1 = __webpack_require__(217);
	var resource_search_service_1 = __webpack_require__(711);
	var resource_tab_enum_1 = __webpack_require__(218);
	angular
	    .module('capability-ng-resources', [
	    'ngSanitize',
	    'utility-ng-enumeration',
	    'utility-ng-interface',
	    'utility-ng-pipeline',
	    'ui-ng-delegate',
	    'ui-ng-calendar-time',
	    'utility-ng-auth-token'
	])
	    .component('contactCard', new contact_card_1.ContactCardComponent())
	    .component('resourceDetailContent', new resource_detail_content_1.ResourceDetailContentComponent())
	    .component('resourceDetailItem', new resource_detail_item_1.ResourceDetailItemComponent())
	    .component('contactDetail', new contact_detail_controller_1.ContactDetailComponent())
	    .component('contactList', new contact_list_controller_1.ContactListComponent())
	    .component('contactTileAvailability', new contact_tile_availability_controller_1.ContactTileAvailabilityComponent())
	    .service('ngResourceListQuery', resource_list_query_1.ResourceListQuery)
	    .service('ngResourceCategoryQuery', resource_category_query_1.ResourceCategoryQuery)
	    .service('ngResourceDetailBuilder', resource_detail_builder_1.ResourceDetailBuilder)
	    .service('ngResourceListServant', resource_list_servant_1.ResourceListServant)
	    .factory('ResourceTabEnum', resource_tab_enum_1.ResourceTabEnum)
	    .service('ngContactListService', contact_list_service_1.ContactListService)
	    .service('ngContactSearchService', contact_search_service_1.ContactSearchService)
	    .service('ngResourceSearchService', resource_search_service_1.ResourceSearchService)
	    .service('ngContactsService', contact_service_1.ContactsService)
	    .service('ngContactToggleService', contact_toggle_service_1.ContactToggleService)
	    .service('locationLinkBuilderServant', location_link_builder_servant_1.LocationLinkBuilderServant)
	    .service('ngContactsByRelationQuery', contacts_relationship_query_1.ContactsByRelationQuery)
	    .service('ngContactsListQuery', contacts_list_query_1.ContactsListQuery)
	    .service('ngContactsSearchQuery', contacts_search_query_1.ContactsSearchQuery)
	    .service('ngResourceSearchQuery', resource_search_query_1.ResourceSearchQuery);


/***/ }),
/* 1663 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-resources')
	    .factory('loadContactsCommand', function (defineCommand, authToken, ngContactsDatastore) {
	    return defineCommand('loadContactsCommand', function (deferred, studentId) {
	        authToken
	            .campusTokenRequest({
	            url: "/api/students/" + studentId + "/support_team",
	            method: 'GET'
	        })
	            .then(function (response) {
	            ngContactsDatastore.write(response.team);
	            utility_ts_orm_1.ORM.run();
	            deferred.resolve();
	        })
	            .catch(function (error) {
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 1664 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-resources')
	    .factory('loadResourceCategoriesCommand', function ($http, ngResourceCategoryDatastore, defineCommand) {
	    return defineCommand('loadResourceCategoriesCommand', function (deferred) {
	        $http
	            .get('resource/category/')
	            .then(function (res) {
	            ngResourceCategoryDatastore.write(res.data.resource_category);
	            utility_ts_orm_1.ORM.run();
	            deferred.resolve();
	        })
	            .catch(function (err) {
	            deferred.reject(err);
	        });
	    });
	});


/***/ }),
/* 1665 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-resources')
	    .factory('loadResourceDetailCommand', function ($http, ngResourceDatastore, ngResourceInfoDatastore, ngResourceLocationDatastore, ngResourceCategoryDatastore, defineCommand) {
	    return defineCommand('loadResourceDetailCommand', function (deferred, id) {
	        $http
	            .get('resource/' + id)
	            .then(function (res) {
	            ngResourceCategoryDatastore.write(res.data.resource_category);
	            ngResourceDatastore.write(res.data.resource);
	            ngResourceInfoDatastore.write(res.data.resource_detail);
	            ngResourceLocationDatastore.write(res.data.location);
	            utility_ts_orm_1.ORM.run();
	            deferred.resolve();
	        })
	            .catch(function (err) {
	            deferred.reject(err);
	        });
	    });
	});


/***/ }),
/* 1666 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-resources')
	    .factory('loadResourcesCommand', function ($http, ngResourceDatastore, ngResourceInfoDatastore, ngResourceLocationDatastore, defineCommand) {
	    return defineCommand('loadResourcesCommand', function (deferred) {
	        $http
	            .get('resource/')
	            .then(function (res) {
	            ngResourceDatastore.write(res.data.resource);
	            ngResourceInfoDatastore.write(res.data.resource_detail);
	            ngResourceLocationDatastore.write(res.data.location);
	            utility_ts_orm_1.ORM.run();
	            deferred.resolve();
	        })
	            .catch(function (err) {
	            deferred.reject(err);
	        });
	    });
	});


/***/ }),
/* 1667 */
880,
/* 1668 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(1662);
	__webpack_require__(206);
	__webpack_require__(940);
	__webpack_require__(207);
	__webpack_require__(208);
	__webpack_require__(941);
	__webpack_require__(209);
	__webpack_require__(942);
	__webpack_require__(210);
	__webpack_require__(943);
	__webpack_require__(944);
	__webpack_require__(1663);
	__webpack_require__(1664);
	__webpack_require__(1665);
	__webpack_require__(1666);
	__webpack_require__(945);
	__webpack_require__(700);
	__webpack_require__(701);
	__webpack_require__(702);
	__webpack_require__(703);
	__webpack_require__(704);
	__webpack_require__(705);
	__webpack_require__(1667);
	__webpack_require__(1669);
	__webpack_require__(1670);
	__webpack_require__(1671);
	__webpack_require__(1672);
	__webpack_require__(1673);
	__webpack_require__(946);
	__webpack_require__(947);
	__webpack_require__(1675);
	__webpack_require__(1676);
	__webpack_require__(211);
	__webpack_require__(212);
	__webpack_require__(213);
	__webpack_require__(1677);
	__webpack_require__(709);
	__webpack_require__(214);
	__webpack_require__(215);
	__webpack_require__(216);
	__webpack_require__(217);
	__webpack_require__(948);
	__webpack_require__(218);


/***/ }),
/* 1669 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var contact_builder_1 = __webpack_require__(699);
	angular.module('capability-ng-resources').factory('ngContactsDatastore', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: contact_builder_1.Contact,
	        autoId: false
	    });
	});


/***/ }),
/* 1670 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var resource_category_builder_1 = __webpack_require__(207);
	angular
	    .module('capability-ng-resources')
	    .factory('ngResourceCategoryDatastore', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: resource_category_builder_1.ResourceCategory,
	        autoId: false
	    });
	});


/***/ }),
/* 1671 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var resource_builder_1 = __webpack_require__(206);
	angular.module('capability-ng-resources').factory('ngResourceDatastore', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: resource_builder_1.Resource,
	        autoId: false
	    });
	});


/***/ }),
/* 1672 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var resource_info_builder_1 = __webpack_require__(209);
	angular.module('capability-ng-resources').factory('ngResourceInfoDatastore', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: resource_info_builder_1.ResourceInfo,
	        autoId: false
	    });
	});


/***/ }),
/* 1673 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var resource_location_builder_1 = __webpack_require__(210);
	angular
	    .module('capability-ng-resources')
	    .factory('ngResourceLocationDatastore', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: resource_location_builder_1.ResourceLocation,
	        autoId: false
	    });
	});


/***/ }),
/* 1674 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	__webpack_require__(1668);
	tslib_1.__exportStar(__webpack_require__(699), exports);
	tslib_1.__exportStar(__webpack_require__(206), exports);
	tslib_1.__exportStar(__webpack_require__(207), exports);
	tslib_1.__exportStar(__webpack_require__(209), exports);
	tslib_1.__exportStar(__webpack_require__(210), exports);
	tslib_1.__exportStar(__webpack_require__(214), exports);
	tslib_1.__exportStar(__webpack_require__(208), exports);
	tslib_1.__exportStar(__webpack_require__(212), exports);
	tslib_1.__exportStar(__webpack_require__(213), exports);
	tslib_1.__exportStar(__webpack_require__(216), exports);
	tslib_1.__exportStar(__webpack_require__(217), exports);
	tslib_1.__exportStar(__webpack_require__(215), exports);
	tslib_1.__exportStar(__webpack_require__(710), exports);
	tslib_1.__exportStar(__webpack_require__(711), exports);
	tslib_1.__exportStar(__webpack_require__(211), exports);
	tslib_1.__exportStar(__webpack_require__(706), exports);
	tslib_1.__exportStar(__webpack_require__(707), exports);
	tslib_1.__exportStar(__webpack_require__(708), exports);
	tslib_1.__exportStar(__webpack_require__(218), exports);
	exports.resources = 'capability-ng-resources';


/***/ }),
/* 1675 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-resources').factory('ngContactsSearchModel', function () {
	    return new utility_ts_orm_1.Model({
	        searchTerm: ''
	    });
	});


/***/ }),
/* 1676 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-resources').factory('ngResourceSearchModel', function () {
	    return new utility_ts_orm_1.Model({
	        searchTerm: ''
	    });
	});


/***/ }),
/* 1677 */
880,
/* 1678 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ui_ng_calendar_1 = __webpack_require__(107);
	var AddBusyTimeController = /** @class */ (function () {
	    function AddBusyTimeController(DayOfTheWeekEnum, ngTimeOccurrenceServant, addNewPotentialTimeCommand, createDefaultTimeCommand, ngChangedBusyTimeDatasource, ngPhxCalendarConfiguration, startTimeDatasourceTransactionCommand, endTimeDatasourceTransactionCommand, deleteChangedBusyTimeCommand, saveChangedBusyTimeCommand, timeLockValidatorFactory) {
	        this.DayOfTheWeekEnum = DayOfTheWeekEnum;
	        this.ngTimeOccurrenceServant = ngTimeOccurrenceServant;
	        this.addNewPotentialTimeCommand = addNewPotentialTimeCommand;
	        this.createDefaultTimeCommand = createDefaultTimeCommand;
	        this.ngChangedBusyTimeDatasource = ngChangedBusyTimeDatasource;
	        this.ngPhxCalendarConfiguration = ngPhxCalendarConfiguration;
	        this.startTimeDatasourceTransactionCommand = startTimeDatasourceTransactionCommand;
	        this.endTimeDatasourceTransactionCommand = endTimeDatasourceTransactionCommand;
	        this.deleteChangedBusyTimeCommand = deleteChangedBusyTimeCommand;
	        this.saveChangedBusyTimeCommand = saveChangedBusyTimeCommand;
	        this.timeLockValidatorFactory = timeLockValidatorFactory;
	        this.newTime = {
	            defaultTime: {},
	            potentialTime: {
	                day_of_week: 2,
	                from_tm: null,
	                to_tm: null
	            }
	        };
	        this.inputInnerValidation = false;
	        this.isSavingNewTime = false;
	        this.isValidTime = true;
	        this.errors = {
	            found: []
	        };
	        var defaultRangeLimits = {
	            hourBegin: 6,
	            hourEnd: 23
	        };
	        this.timeRange = {
	            hourBegin: parseInt(ngPhxCalendarConfiguration.hourBegin, 10) || defaultRangeLimits.hourBegin,
	            hourEnd: parseInt(ngPhxCalendarConfiguration.hourEnd, 10) || defaultRangeLimits.hourEnd
	        };
	        this.uniqueId = _4.uniqueId();
	    }
	    AddBusyTimeController.prototype.showAddNewTime = function () {
	        var isSavingNewTime = this.isSavingNewTime;
	        var noNewTime = _4.isEmpty(this.ngTimeOccurrenceServant.getNewTime(this.ngChangedBusyTimeDatasource));
	        var updatingExistingTime = !_4.isEmpty(this.ngTimeOccurrenceServant.getUpdatedTimes(this.ngChangedBusyTimeDatasource));
	        return !isSavingNewTime && noNewTime && !updatingExistingTime;
	    };
	    AddBusyTimeController.prototype.onValueChange = function (event) {
	        this.onTimeChanged({
	            timeParams: {
	                originalTime: undefined,
	                timeProperty: event.target.getAttribute('time-property'),
	                updatedTimeString: event.detail.value
	            }
	        });
	    };
	    AddBusyTimeController.prototype.$onDestroy = function () {
	        this.onCancel();
	    };
	    AddBusyTimeController.prototype.onTimeChanged = function (timeChangeParams) {
	        if (_4.isUndefined(timeChangeParams) && _4.isEmpty(timeChangeParams)) {
	            return;
	        }
	        var militaryTime = moment(timeChangeParams.timeParams.updatedTimeString, 'hh:mm a').format('HH:mm');
	        this.newTime.potentialTime[timeChangeParams.timeParams.timeProperty] = militaryTime;
	        timeChangeParams.timeParams.timeProperty === 'from_tm'
	            ? this.updateNewTime(this.newTime.defaultTime.trackingId, { from_tm: militaryTime })
	            : this.updateNewTime(this.newTime.defaultTime.trackingId, { to_tm: militaryTime });
	    };
	    AddBusyTimeController.prototype.onDayChangedEvent = function (event) {
	        var dayObj = this.DayOfTheWeekEnum.get(event.target.value.substring(2, 0));
	        if (dayObj) {
	            this.onDayChanged(dayObj);
	        }
	    };
	    AddBusyTimeController.prototype.onDayChanged = function (DayObj) {
	        this.newTime.potentialTime['day_of_week'] = DayObj.ordinal;
	        this.updateNewTime(this.newTime.defaultTime.trackingId, { day_of_week: DayObj.ordinal });
	    };
	    AddBusyTimeController.prototype.updateNewTime = function (id, timeObj) {
	        var record = _4.find(this.ngChangedBusyTimeDatasource.read(), { tracking_id: id });
	        if (record) {
	            _4.merge(record, timeObj);
	        }
	    };
	    AddBusyTimeController.prototype.onAdd = function () {
	        var _this = this;
	        this.createDefaultTimeCommand().then(function (newEmptyTime) {
	            _this.saveChangedBusyTimeCommand({
	                tracking_id: newEmptyTime.trackingId,
	                day_of_week: newEmptyTime.day,
	                from_tm: newEmptyTime.from,
	                to_tm: newEmptyTime.to,
	                is_new_time: true
	            });
	            _this.newTime.defaultTime = newEmptyTime;
	            _this.isSavingNewTime = true;
	        });
	    };
	    AddBusyTimeController.prototype.onSave = function () {
	        var _this = this;
	        var newTime = this.ngTimeOccurrenceServant.getNewTime(this.ngChangedBusyTimeDatasource);
	        if (!_4.isEmpty(newTime)) {
	            this.validatePotentialTime(newTime);
	        }
	        if (!_4.isEmpty(newTime) && this.isValidTime) {
	            this.startTimeDatasourceTransactionCommand();
	            this.addNewPotentialTimeCommand(newTime).then(function (addNewResult) {
	                if (_4.isUndefined(addNewResult)) {
	                    _this.displaySpecificError(ui_ng_calendar_1.BusyTimeErrorMessage['isTimeOverlap'].message);
	                }
	                else {
	                    _this.deleteChangedBusyTimeCommand(newTime.tracking_id);
	                    _this.isSavingNewTime = false;
	                    _this.execCb();
	                }
	                _this.endTimeDatasourceTransactionCommand();
	            });
	        }
	    };
	    AddBusyTimeController.prototype.validatePotentialTime = function (newTime) {
	        this.errors.found = this.ngTimeOccurrenceServant.validatePotentialTime(newTime, this.errors, this.timeRange);
	        this.isValidTime = _4.isEmpty(this.errors.found);
	    };
	    AddBusyTimeController.prototype.displaySpecificError = function (errorMsg) {
	        this.errors.found.push(errorMsg);
	        this.isValidTime = false;
	    };
	    AddBusyTimeController.prototype.onCancel = function () {
	        _4.remove(this.errors.found, undefined);
	        this.deleteChangedBusyTimeCommand(this.newTime.defaultTime.trackingId);
	        this.isSavingNewTime = false;
	        this.execCb();
	    };
	    AddBusyTimeController.prototype.execCb = function () {
	        return this.outerCb();
	    };
	    return AddBusyTimeController;
	}());
	exports.AddBusyTimeController = AddBusyTimeController;
	angular
	    .module('capability-ng-scheduler')
	    .controller('addBusyTimeController', AddBusyTimeController)
	    .component('addBusyTime', {
	    bindings: {
	        enums: '<',
	        hourStep: '@',
	        hourBegin: '@',
	        outerCb: '&'
	    },
	    templateUrl: 'capability-ng-scheduler/src/components/add_busy_time/add_busy_time.html',
	    controller: 'addBusyTimeController'
	});


/***/ }),
/* 1679 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var BackToPlanner = /** @class */ (function () {
	    function BackToPlanner($state, ngSearchAndCourseFeatureFacade, appConfigModel, ngBackToPlannerHelper) {
	        this.$state = $state;
	        this.ngSearchAndCourseFeatureFacade = ngSearchAndCourseFeatureFacade;
	        this.appConfigModel = appConfigModel;
	        this.ngBackToPlannerHelper = ngBackToPlannerHelper;
	    }
	    BackToPlanner.prototype.goBackToMyPlan = function () {
	        this.ngBackToPlannerHelper.navigateToPlanner();
	    };
	    return BackToPlanner;
	}());
	angular.module('capability-ng-scheduler').component('backToPlanner', {
	    templateUrl: 'capability-ng-scheduler/src/components/back_to_planner/back_to_planner.html',
	    controller: BackToPlanner
	});


/***/ }),
/* 1680 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	var planner_constants_1 = __webpack_require__(712);
	var BackToPlannerHelper = /** @class */ (function () {
	    function BackToPlannerHelper($state, appConfigModel, ngSchedulerNotificationDelegate) {
	        this.$state = $state;
	        this.appConfigModel = appConfigModel;
	        this.ngSchedulerNotificationDelegate = ngSchedulerNotificationDelegate;
	    }
	    BackToPlannerHelper.prototype.navigateToAP3Planner = function () {
	        window.location.assign('#/my/ap3/student');
	    };
	    BackToPlannerHelper.prototype.navigateToAP1Planner = function () {
	        this.$state.go('my.planner.default', {}, { reload: 'my.planner.default' });
	    };
	    BackToPlannerHelper.prototype.isAP3PlannerEnabled = function () {
	        return this.appConfigModel.isFeatureEnabled(planner_constants_1.PlannerConstants.AP3_FT);
	    };
	    BackToPlannerHelper.prototype.isAP1PlannerEnabled = function () {
	        return this.appConfigModel.isFeatureEnabled(planner_constants_1.PlannerConstants.AP1_FT);
	    };
	    BackToPlannerHelper.prototype.isPlannerDisabled = function () {
	        return !this.isAP3PlannerEnabled() && !this.isAP1PlannerEnabled();
	    };
	    BackToPlannerHelper.prototype.navigateToPlanner = function () {
	        var _this = this;
	        return new utility_ts_strategy_1.FastConditionalStrategy([
	            [function () { return _this.navigateToAP3Planner(); }, function () { return _this.isAP3PlannerEnabled(); }],
	            [function () { return _this.navigateToAP1Planner(); }, function () { return _this.isAP1PlannerEnabled(); }],
	            [
	                function () { return _this.ngSchedulerNotificationDelegate.info('Sorry, Planner disabled/not available'); },
	                function () { return _this.isPlannerDisabled(); }
	            ]
	        ]).evaluate(this, this.isPlannerDisabled)();
	    };
	    return BackToPlannerHelper;
	}());
	exports.BackToPlannerHelper = BackToPlannerHelper;
	angular.module('capability-ng-scheduler').service('ngBackToPlannerHelper', BackToPlannerHelper);


/***/ }),
/* 1681 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var ui_ng_calendar_1 = __webpack_require__(107);
	var BusyTimesController = /** @class */ (function () {
	    function BusyTimesController(DayOfTheWeekEnum, ngUnlockedTimeQuery, ngTimeOccurrenceServant, deleteTimeCommand, updateTimeCommand, ngChangedBusyTimeDatasource, startTimeDatasourceTransactionCommand, endTimeDatasourceTransactionCommand, saveChangedBusyTimeCommand, resetChangedBusyTimeCommand, deleteChangedBusyTimeCommand, ngPhxCalendarConfiguration, timeLockValidatorFactory, ngTimeOccurrenceDataSource, ngTimeOccurrenceEngine, timeOverlapValidatorFactory) {
	        this.DayOfTheWeekEnum = DayOfTheWeekEnum;
	        this.ngUnlockedTimeQuery = ngUnlockedTimeQuery;
	        this.ngTimeOccurrenceServant = ngTimeOccurrenceServant;
	        this.deleteTimeCommand = deleteTimeCommand;
	        this.updateTimeCommand = updateTimeCommand;
	        this.ngChangedBusyTimeDatasource = ngChangedBusyTimeDatasource;
	        this.startTimeDatasourceTransactionCommand = startTimeDatasourceTransactionCommand;
	        this.endTimeDatasourceTransactionCommand = endTimeDatasourceTransactionCommand;
	        this.saveChangedBusyTimeCommand = saveChangedBusyTimeCommand;
	        this.resetChangedBusyTimeCommand = resetChangedBusyTimeCommand;
	        this.deleteChangedBusyTimeCommand = deleteChangedBusyTimeCommand;
	        this.ngPhxCalendarConfiguration = ngPhxCalendarConfiguration;
	        this.timeLockValidatorFactory = timeLockValidatorFactory;
	        this.ngTimeOccurrenceDataSource = ngTimeOccurrenceDataSource;
	        this.ngTimeOccurrenceEngine = ngTimeOccurrenceEngine;
	        this.timeOverlapValidatorFactory = timeOverlapValidatorFactory;
	        this.currentlyEditing = false;
	        this.query = ngUnlockedTimeQuery;
	        this.commands = {
	            startTimeDatasourceTransactionCommand: startTimeDatasourceTransactionCommand,
	            endTimeDatasourceTransactionCommand: endTimeDatasourceTransactionCommand,
	            deleteTimeCommand: deleteTimeCommand,
	            updateTimeCommand: updateTimeCommand
	        };
	        var defaultRangeLimits = {
	            hourBegin: 6,
	            hourEnd: 23
	        };
	        this.timeRange = {
	            hourBegin: parseInt(ngPhxCalendarConfiguration.hourBegin, 10) || defaultRangeLimits.hourBegin,
	            hourEnd: parseInt(ngPhxCalendarConfiguration.hourEnd, 10) || defaultRangeLimits.hourEnd
	        };
	        this.errors = {
	            found: []
	        };
	    }
	    BusyTimesController.prototype.$onDestroy = function () {
	        this.exitEditing();
	    };
	    BusyTimesController.prototype.execCb = function () {
	        return this.outerCb();
	    };
	    BusyTimesController.prototype.editTime = function (timeChangeParams) {
	        var dataToWrite = {
	            tracking_id: timeChangeParams.trackingId,
	            day_of_week: timeChangeParams.day,
	            from_tm: timeChangeParams.from,
	            to_tm: timeChangeParams.to,
	            is_new_time: false,
	            originalTimeObj: timeChangeParams
	        };
	        this.currentlyEditing = true;
	        this.saveChangedBusyTimeCommand(dataToWrite);
	    };
	    BusyTimesController.prototype.showEditButton = function (time) {
	        return (!_4.get(time, '_isCurrentlyEditing', false) &&
	            !this.currentlyEditing &&
	            _4.isEmpty(this.ngTimeOccurrenceServant.getNewTime(this.ngChangedBusyTimeDatasource)));
	    };
	    BusyTimesController.prototype.onTimeChanged = function (timeChangeParams) {
	        var militaryTime = moment(timeChangeParams.timeParams.updatedTimeString, 'hh:mm a').format('HH:mm');
	        var propToUpdate = {};
	        if (timeChangeParams.timeParams.timeProperty === 'from_tm') {
	            propToUpdate = { from_tm: militaryTime };
	        }
	        else {
	            propToUpdate = { to_tm: militaryTime };
	        }
	        this.updateTime(_4.merge(propToUpdate, {
	            tracking_id: timeChangeParams.timeParams.originalTime.trackingId
	        }));
	    };
	    BusyTimesController.prototype.updateTime = function (timeObj) {
	        this.saveChangedBusyTimeCommand(timeObj);
	    };
	    BusyTimesController.prototype.onDayChangedEvent = function (event) {
	        if (!event.target.value) {
	            return;
	        }
	        var originalTimeObj = _4.find(this.query.result.times, { trackingId: event.target.getAttribute('tracking-id') });
	        var timeObj = _4.clone(originalTimeObj);
	        timeObj.day = this.DayOfTheWeekEnum.get(event.target.value.substring(2, 0));
	        if (originalTimeObj.day.key !== timeObj.day.key) {
	            this.onDayChanged(timeObj, originalTimeObj);
	        }
	    };
	    BusyTimesController.prototype.onDayChanged = function (timeObj, originalTimeObj) {
	        var originalDayTimeObj = _4.clone(timeObj);
	        originalDayTimeObj.day = this.DayOfTheWeekEnum.get(originalTimeObj.day.key);
	        this.updateTime({
	            tracking_id: timeObj.trackingId,
	            day_of_week: timeObj.day.ordinal,
	            originalTimeObj: originalTimeObj
	        });
	    };
	    BusyTimesController.prototype.onDeleteRecordPress = function (timeOccurrence) {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            var boundTimeLockValidator;
	            var _this = this;
	            return tslib_1.__generator(this, function (_a) {
	                switch (_a.label) {
	                    case 0:
	                        boundTimeLockValidator = this.timeLockValidatorFactory(timeOccurrence);
	                        return [4 /*yield*/, this.commands.startTimeDatasourceTransactionCommand(boundTimeLockValidator)];
	                    case 1:
	                        _a.sent();
	                        return [4 /*yield*/, this.commands.deleteTimeCommand(timeOccurrence).then(function () {
	                                _this.commands.endTimeDatasourceTransactionCommand();
	                                _this.execCb();
	                                _this.exitEditing();
	                            })];
	                    case 2:
	                        _a.sent();
	                        return [2 /*return*/];
	                }
	            });
	        });
	    };
	    BusyTimesController.prototype.onValueChange = function (event) {
	        var previousTime = _4.find(this.query.result.times, { trackingId: event.target.getAttribute('tracking-id') });
	        if (_4.includes(event.target.getAttribute('time-property'), 'from') &&
	            event.detail.value === previousTime.from.format('h:mm A')) {
	            return;
	        }
	        else if (event.detail.value === previousTime.to.format('h:mm A')) {
	            return;
	        }
	        this.onTimeChanged({
	            timeParams: {
	                originalTime: previousTime,
	                timeProperty: event.target.getAttribute('time-property'),
	                updatedTimeString: event.detail.value
	            }
	        });
	    };
	    BusyTimesController.prototype.hasChangedTimeConflicts = function (time) {
	        var hasConflicts = false;
	        time.to = _4.isString(time.to_tm) ? moment(time.to_tm + ':00', 'HH:mm:ss') : time.to_tm;
	        time.from = _4.isString(time.from_tm) ? moment(time.from_tm + ':00', 'HH:mm:ss') : time.from_tm;
	        time.day = _4.isObject(time.day_of_week) ? time.day_of_week : this.DayOfTheWeekEnum.get(time.day_of_week);
	        var overlappingTimes = this.ngTimeOccurrenceEngine.findOverlappingTimes(time, this.ngTimeOccurrenceDataSource.store);
	        if (!_4.isEmpty(_4.filter(overlappingTimes, function (item) { return item.trackingId !== time.tracking_id; }))) {
	            hasConflicts = true;
	        }
	        return hasConflicts;
	    };
	    BusyTimesController.prototype.saveUpdatedTimes = function () {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            var updatedTimes, boundTimeLockValidator;
	            var _this = this;
	            return tslib_1.__generator(this, function (_a) {
	                switch (_a.label) {
	                    case 0:
	                        updatedTimes = this.ngTimeOccurrenceServant.getUpdatedTimes(this.ngChangedBusyTimeDatasource);
	                        this.validatePotentialTime(updatedTimes);
	                        if (!this.isValidTime) {
	                            return [2 /*return*/];
	                        }
	                        if (this.hasChangedTimeConflicts(updatedTimes)) {
	                            this.errors.found.push(ui_ng_calendar_1.BusyTimeErrorMessage['isTimeOverlap'].message);
	                            return [2 /*return*/];
	                        }
	                        boundTimeLockValidator = this.timeLockValidatorFactory(updatedTimes.originalTimeObj);
	                        return [4 /*yield*/, this.startTimeDatasourceTransactionCommand(boundTimeLockValidator).then(function () {
	                                //Hack id of changed time needs to be from server
	                                updatedTimes.id = updatedTimes.originalTimeObj.id;
	                                _this.updateTimeCommand(updatedTimes.originalTimeObj, updatedTimes).then(function (currentTimeOccurrence) {
	                                    _this.endTimeDatasourceTransactionCommand();
	                                    _this.deleteChangedBusyTimeCommand(updatedTimes.tracking_id);
	                                    _this.exitEditing();
	                                });
	                            })];
	                    case 1:
	                        _a.sent();
	                        return [2 /*return*/];
	                }
	            });
	        });
	    };
	    BusyTimesController.prototype.exitEditing = function () {
	        if (this.currentlyEditing) {
	            this.resetChangedBusyTimeCommand();
	        }
	        this.currentlyEditing = false;
	        this.errors.found = [];
	    };
	    BusyTimesController.prototype.validatePotentialTime = function (updatedTimes) {
	        this.errors.found = this.ngTimeOccurrenceServant.validatePotentialTime(updatedTimes, this.errors, this.timeRange);
	        this.isValidTime = _4.isEmpty(this.errors.found);
	    };
	    return BusyTimesController;
	}());
	angular
	    .module('capability-ng-scheduler')
	    .controller('BusyTimesController', BusyTimesController)
	    .component('busyTimes', {
	    templateUrl: 'capability-ng-scheduler/src/components/busy_times/busy_times.html',
	    bindings: {
	        enums: '<',
	        includeWeekends: '@',
	        microheaders: '@',
	        hourStep: '@',
	        hourBegin: '@',
	        hour: '@',
	        outerCb: '&x',
	        times: '<'
	    },
	    controller: 'BusyTimesController'
	});


/***/ }),
/* 1682 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	var term_course_servant_1 = __webpack_require__(14);
	var CorequisiteDropListController = /** @class */ (function () {
	    function CorequisiteDropListController(ngScheduledSectionServant, ngMultiSectionServant, ngRegisterSectionsDatasource, ngTermCourseServant, ngSectionInfoServant, ngScheduledSectionTileServant, ngScheduledSectionStatusServant, ngSchedulerModel, appConfigModel, ngAllSectionsQuery, ngCrossCourseLinkedSectionServant, ngScheduledSectionsQuery, ngSectionsDatasource) {
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.ngMultiSectionServant = ngMultiSectionServant;
	        this.ngRegisterSectionsDatasource = ngRegisterSectionsDatasource;
	        this.ngTermCourseServant = ngTermCourseServant;
	        this.ngSectionInfoServant = ngSectionInfoServant;
	        this.ngScheduledSectionTileServant = ngScheduledSectionTileServant;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.ngSchedulerModel = ngSchedulerModel;
	        this.appConfigModel = appConfigModel;
	        this.ngAllSectionsQuery = ngAllSectionsQuery;
	        this.ngCrossCourseLinkedSectionServant = ngCrossCourseLinkedSectionServant;
	        this.ngScheduledSectionsQuery = ngScheduledSectionsQuery;
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.hasCoreqsToDropOrWithdraw = false;
	        this.sectionLabel = '';
	        this.showDropList = false;
	        this.showWithdrawList = false;
	        this.crossCourseLinkedSectionIds = [];
	        this.mode = '';
	        this.courseCoreqLinkedSections = [];
	        this.showWithdrawText = false;
	        this.withdrawConfirmationText = '';
	    }
	    CorequisiteDropListController.prototype.initilize = function () {
	        this.section = _4.find(this.ngSectionsDatasource.metasource().derived(), { id: this.sectionId });
	        if (this.section) {
	            this.sectionLabel = this.appConfigModel.model.member_configs['section_label'] || 'Section';
	            this.inProgressEnforcedCoreqs = this.ngScheduledSectionStatusServant.isCoreqEnforcementEnabled()
	                ? this.ngScheduledSectionServant.getInProgressCoreqsRelated(this.section, this.ngAllSectionsQuery.result)
	                : [];
	            this.crossCourseLinkedSectionIds = this.ngCrossCourseLinkedSectionServant.getSectionIdOfLinkedCrossCourses(this.section.id, this.ngScheduledSectionsQuery.result.list);
	            this.crossCourseLinkedSectionIds = _4.uniq(_4.concat(this.crossCourseLinkedSectionIds, this.courseCoreqLinkedSections));
	            this.registeredInProgressLinkedSections = _4.filter(this.ngCrossCourseLinkedSectionServant.getSectionsByIds(this.crossCourseLinkedSectionIds, this.ngSectionsDatasource.metasource().derived()), function (section) {
	                return section.status === scheduled_section_status_enum_1.ScheduledSectionStatus.REGISTERED || section.status === scheduled_section_status_enum_1.ScheduledSectionStatus.IN_PROGRESS;
	            });
	            var sectionsToDropOrWithdraw = [];
	            if (this.mode !== 'multiSection') {
	                sectionsToDropOrWithdraw = _4.concat(this.inProgressEnforcedCoreqs, this.registeredInProgressLinkedSections);
	            }
	            if (this.mode === 'multiSection') {
	                var isMultiSectionCourse = term_course_servant_1.TermCourseServant.isMultiSectionCourse(this.section._course);
	                if (isMultiSectionCourse) {
	                    var siblings = this.ngMultiSectionServant.getScheduledSiblingSections(this.section);
	                    var allSectionsWithMeta = this.ngSectionsDatasource.metasource().derived();
	                    sectionsToDropOrWithdraw = _4.concat(sectionsToDropOrWithdraw, _4.intersectionBy(allSectionsWithMeta, siblings, 'id'));
	                }
	            }
	            this.sectionsToDrop = _4.filter(sectionsToDropOrWithdraw, function (section) { return section.is_droppable; });
	            this.sectionsToWithdraw = _4.filter(sectionsToDropOrWithdraw, function (section) { return section.can_withdraw; });
	            this.showDropList = this.sectionsToDrop.length > 0;
	            this.showWithdrawList =
	                this.sectionsToWithdraw.length > 0 && this.ngScheduledSectionTileServant.isWithdrawEnabled();
	            this.withdrawConfirmationText = _4.get(this.ngSchedulerModel.read(), 'customtext.WITHDRAW_CONFIRMATION.text', '');
	        }
	    };
	    CorequisiteDropListController.prototype.getRegisteredInProgressLinkedSections = function () {
	        return this.registeredInProgressLinkedSections;
	    };
	    CorequisiteDropListController.prototype.getSectionLabel = function (section) {
	        return this.ngSectionInfoServant.getSectionLabel(section);
	    };
	    CorequisiteDropListController.prototype.$onInit = function () {
	        this.initilize();
	    };
	    CorequisiteDropListController.prototype.$onChanges = function () {
	        this.initilize();
	    };
	    return CorequisiteDropListController;
	}());
	angular.module('capability-ng-scheduler').component('corequisiteDropList', {
	    templateUrl: 'capability-ng-scheduler/src/components/corequisite_drop_list/corequisite_drop_list.html',
	    bindings: {
	        sectionId: '<',
	        showWithdrawText: '<',
	        mode: '@'
	    },
	    controller: CorequisiteDropListController
	});


/***/ }),
/* 1683 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('saveCourseAlertsCommand', function (ngCourseAlertsModel, defineCommandORM) {
	    return defineCommandORM('saveCourseAlertsCommand', function (deferred, courseAlerts) {
	        ngCourseAlertsModel.clear().write(courseAlerts);
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1684 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var CourseAlertsController = /** @class */ (function () {
	    function CourseAlertsController(ngComponentCommunicatorService, ngCourseAlertsQuery) {
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngCourseAlertsQuery = ngCourseAlertsQuery;
	        this.isOpened = false;
	    }
	    CourseAlertsController.prototype.$onInit = function () {
	        this.openBound = this.openCourseAlertsDrawer.bind(this);
	        this.ngComponentCommunicatorService.subscribe('OPEN_COURSE_ALERTS_MODAL', this.openBound);
	    };
	    CourseAlertsController.prototype.$onDestroy = function () {
	        this.ngComponentCommunicatorService.release('OPEN_COURSE_ALERTS_MODAL', this.openBound);
	    };
	    CourseAlertsController.prototype.openCourseAlertsDrawer = function () {
	        this.isOpened = true;
	    };
	    CourseAlertsController.prototype.closeCourseAlertsDrawer = function () {
	        this.isOpened = false;
	    };
	    return CourseAlertsController;
	}());
	var CourseAlertsComponent = /** @class */ (function () {
	    function CourseAlertsComponent() {
	        this.bindings = {};
	        this.controller = CourseAlertsController;
	        this.templateUrl = 'capability-ng-scheduler/src/components/course_alerts/course_alerts.html';
	    }
	    return CourseAlertsComponent;
	}());
	angular.module('capability-ng-scheduler').component('courseAlerts', new CourseAlertsComponent());


/***/ }),
/* 1685 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngCourseAlertsModel', function () {
	    return new utility_ts_orm_1.Model({
	        course: undefined
	    });
	});


/***/ }),
/* 1686 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var CourseAlertsQuery = /** @class */ (function () {
	    function CourseAlertsQuery(ngCourseAlertsModel) {
	        this.ngCourseAlertsModel = ngCourseAlertsModel;
	        utility_ts_orm_1.Query.registerQuery(this, ngCourseAlertsModel);
	    }
	    CourseAlertsQuery.prototype.run = function () {
	        this._result = this.ngCourseAlertsModel.read();
	        return this;
	    };
	    Object.defineProperty(CourseAlertsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return CourseAlertsQuery;
	}());
	exports.CourseAlertsQuery = CourseAlertsQuery;
	angular.module('capability-ng-scheduler').service('ngCourseAlertsQuery', CourseAlertsQuery);


/***/ }),
/* 1687 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var CourseMissingRequisitesController = /** @class */ (function () {
	    function CourseMissingRequisitesController() {
	    }
	    CourseMissingRequisitesController.prototype.init = function () {
	        this.course = this.section._course;
	    };
	    CourseMissingRequisitesController.prototype.$onChanges = function () {
	        this.init();
	    };
	    CourseMissingRequisitesController.prototype.$onInit = function () {
	        this.init();
	    };
	    return CourseMissingRequisitesController;
	}());
	angular.module('capability-ng-scheduler').component('courseMissingRequisites', {
	    templateUrl: 'capability-ng-scheduler/src/components/course_missing_requisites/course_missing_requisites.html',
	    bindings: {
	        section: '<'
	    },
	    controller: CourseMissingRequisitesController
	});


/***/ }),
/* 1688 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .service('crnClearSearchCommand', function crnClearSearchCommandDefinition($http, defineCommandORM, ngCRNSearchModel) {
	    'use strict';
	    return defineCommandORM('crnClearSearchCommand', function crnClearSearchCommand(deferred) {
	        ngCRNSearchModel.clear();
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1689 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .service('crnSearchCommand', function crnSearchCommandDefinition($http, defineCommandORM, ngCRNSearchModel, ngLocationsDatasource, ngSectionTimesDatasource, ngSectionsDatasource, ngCampusesDatasource, ngSectionLabelsDatasource, ngTermSectionTypesDatasource, ngSectionAvailabilityDatasource, ngTermCoursesDatasource, ngTermPlannedCoursesDatasource, ngCRNSearchResultsQuery, QueryMediator, log) {
	    'use strict';
	    return defineCommandORM('crnSearchCommand', function crnSearchCommand(deferred, termId, crn) {
	        // reg/sections/term/<term_id>/search?crn=''&is_exact=True/False.
	        $http
	            .get("/reg/sections/term/" + termId + "/search?crn=" + crn)
	            .then(function (response) {
	            var unPlannedCourses = _4.filter(response.data.planned_course, function (course) { return course.id < 0; });
	            var sectionIds = _4.compact(_4.map(response.data.section, function (section) { return section.id; }));
	            var unPlannedCourseIds = _4.map(unPlannedCourses, 'course');
	            var totalMatchCount = _4.get(response.data, 'total_match_count', 0);
	            ngCRNSearchModel.clear().write({ sectionIds: sectionIds, unPlannedCourseIds: unPlannedCourseIds, totalMatchCount: totalMatchCount });
	            ngLocationsDatasource.write(response.data.location);
	            ngSectionLabelsDatasource.write(response.data.section_labels);
	            ngSectionTimesDatasource.write(response.data.section_time);
	            ngCampusesDatasource.write(response.data.campus);
	            ngTermSectionTypesDatasource.write(response.data.section_type);
	            ngSectionAvailabilityDatasource.write(response.data.section_status);
	            ngTermPlannedCoursesDatasource.write(response.data.planned_course);
	            ngTermCoursesDatasource.write(response.data.course);
	            ngSectionsDatasource.write(response.data.section);
	            deferred.resolve(response.data);
	        })
	            .catch(function (e) {
	            log.issue('failed to save term commitment preferences');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1690 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var CRNCourseTileController = /** @class */ (function () {
	    function CRNCourseTileController($state, ngTermScheduleFlags, ngUnscheduledSectionServant, ngPreferencesSelectionModel) {
	        this.$state = $state;
	        this.ngTermScheduleFlags = ngTermScheduleFlags;
	        this.ngUnscheduledSectionServant = ngUnscheduledSectionServant;
	        this.ngPreferencesSelectionModel = ngPreferencesSelectionModel;
	    }
	    CRNCourseTileController.prototype.isCoreqEnforcementEnabled = function () {
	        return this.ngTermScheduleFlags.isCoreqEnforcementEnabled();
	    };
	    return CRNCourseTileController;
	}());
	var CRNCourseTileComponent = /** @class */ (function () {
	    function CRNCourseTileComponent() {
	        this.bindings = {
	            course: '<'
	        };
	        this.controller = CRNCourseTileController;
	        this.templateUrl =
	            'capability-ng-scheduler/src/components/crn_search/components/crn_course_tile/crn_course_tile.html';
	    }
	    return CRNCourseTileComponent;
	}());
	angular.module('capability-ng-scheduler').component('crnCourseTile', new CRNCourseTileComponent());


/***/ }),
/* 1691 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SEARCH_MIN_LENGTH = 2;
	var CRNSearchController = /** @class */ (function () {
	    function CRNSearchController(crnSearchCommand, crnClearSearchCommand, ngCRNSearchResultsQuery, ngScheduledSectionsQuery, ngSectionsDatasource, ngTermCoursesDatasource, $stateParams, $state, ngMultiSectionServant, ngTermCourseServant, ngScheduledSectionServant, ngCRNSearchModel, appConfigModel) {
	        this.crnSearchCommand = crnSearchCommand;
	        this.crnClearSearchCommand = crnClearSearchCommand;
	        this.ngCRNSearchResultsQuery = ngCRNSearchResultsQuery;
	        this.ngScheduledSectionsQuery = ngScheduledSectionsQuery;
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngTermCoursesDatasource = ngTermCoursesDatasource;
	        this.$stateParams = $stateParams;
	        this.$state = $state;
	        this.ngMultiSectionServant = ngMultiSectionServant;
	        this.ngTermCourseServant = ngTermCourseServant;
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.ngCRNSearchModel = ngCRNSearchModel;
	        this.appConfigModel = appConfigModel;
	        this.showAlert = false;
	        this.sectionLabel = 'Section';
	        this.searchValidationError = false;
	        this.ALERT_TYPES = {
	            searchValidationError: {
	                theme: 'error',
	                message: "Minimum 3 characters required.",
	                hideResults: true
	            },
	            noResults: {
	                theme: 'error',
	                message: "Your search returned 0 results. Refine your search for better results.",
	                hideResults: true
	            },
	            serverError: {
	                theme: 'error',
	                message: 'A network error occurred. Please try again.',
	                hideResults: true
	            }
	        };
	    }
	    CRNSearchController.prototype.$onInit = function () {
	        this.termId = this.$stateParams.termId;
	        this.query = {
	            search: this.ngCRNSearchResultsQuery
	        };
	        this.sectionLabel = this.appConfigModel.model.member_configs['section_label'] || 'Section';
	        this.setFocusOnSearchPanel();
	    };
	    CRNSearchController.prototype.setFocusOnSearchPanel = function () {
	        var searchPanelHeading = document.getElementById('crnSearchheading');
	        if (searchPanelHeading) {
	            searchPanelHeading.focus();
	        }
	    };
	    CRNSearchController.prototype.$onDestroy = function () {
	        this.crnClearSearchCommand();
	    };
	    CRNSearchController.prototype.exitSearch = function () {
	        this.gotoRegistration();
	    };
	    CRNSearchController.prototype.closeAlert = function () {
	        this.showAlert = false;
	        this.alertConfig = {
	            theme: '',
	            message: '',
	            hideResults: false
	        };
	    };
	    CRNSearchController.prototype.configAndShowAlert = function (type) {
	        this.alertConfig = this.ALERT_TYPES[type];
	        this.showAlert = true;
	    };
	    CRNSearchController.prototype.search = function (event) {
	        var _this = this;
	        this.searchInputValue = _4.get(event, 'detail.value.crn', '');
	        this.closeAlert();
	        this.crnClearSearchCommand();
	        if (_4.lte(this.searchInputValue.length, SEARCH_MIN_LENGTH)) {
	            return;
	        }
	        else {
	            this.closeAlert();
	        }
	        if (_4.isEmpty(this.searchInputValue)) {
	            this.crnClearSearchCommand();
	            return;
	        }
	        if (!this.showAlert) {
	            this.crnSearchCommand(this.termId, this.searchInputValue)
	                .then(function (data) {
	                if (_4.isEmpty(data.section)) {
	                    _this.configAndShowAlert('noResults');
	                }
	            })
	                .catch(function (error) {
	                if (error.status === 404) {
	                    _this.configAndShowAlert('serverError');
	                }
	            });
	        }
	    };
	    CRNSearchController.prototype.noResultsFound = function () {
	        this.alertConfig = this.ALERT_TYPES.noResults;
	    };
	    CRNSearchController.prototype.gotoRegistration = function () {
	        this.$state.go('my.schedule.registration');
	    };
	    return CRNSearchController;
	}());
	exports.CRNSearchController = CRNSearchController;
	angular.module('capability-ng-scheduler').component('crnSearch', {
	    templateUrl: 'capability-ng-scheduler/src/components/crn_search/crn_search.html',
	    controller: CRNSearchController
	});


/***/ }),
/* 1692 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngCRNSearchModel', function () {
	    return new utility_ts_orm_1.Model({
	        sectionIds: [],
	        unPlannedCourseIds: [],
	        totalMatchCount: 0
	    });
	});


/***/ }),
/* 1693 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_datasource_1 = __webpack_require__(9);
	var _4 = __webpack_require__(1);
	var UN_PLANNED_COURSE_ID = -1;
	var CRNSearchResultsQuery = /** @class */ (function () {
	    function CRNSearchResultsQuery(ngCRNSearchModel, ngSectionsDatasource, ngTermCoursesDatasource) {
	        this.ngCRNSearchModel = ngCRNSearchModel;
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngTermCoursesDatasource = ngTermCoursesDatasource;
	        utility_ts_datasource_1.ORMMediator.registerQuery(this, ngCRNSearchModel);
	    }
	    CRNSearchResultsQuery.prototype.clear = function () {
	        this._result = {
	            courseSections: [],
	            shouldShowRefineSearchWarning: false
	        };
	    };
	    CRNSearchResultsQuery.prototype.run = function () {
	        var _this = this;
	        var sectionIds = this.ngCRNSearchModel.read().sectionIds;
	        var _a = this.ngCRNSearchModel.read(), unPlannedCourseIds = _a.unPlannedCourseIds, totalMatchCount = _a.totalMatchCount;
	        var sectionsInfowithMetaInfo = _4.compact(_4.map(sectionIds, function (sectionId) {
	            var section = _this.ngSectionsDatasource.get(sectionId);
	            if (section) {
	                return _this.ngSectionsDatasource.metasource().compose(section);
	            }
	            else {
	                return;
	            }
	        }));
	        var sectionsGroupedbyCourse = _4.groupBy(sectionsInfowithMetaInfo, 'course');
	        var courseSectionsData = [];
	        for (var key in sectionsGroupedbyCourse) {
	            courseSectionsData.push({
	                course: this.ngTermCoursesDatasource.get(key) || {},
	                sections: sectionsGroupedbyCourse[key]
	            });
	        }
	        var courseSections = _4.map(courseSectionsData, function (courseSection) {
	            courseSection.course['isPlannedCourse'] = !_4.includes(unPlannedCourseIds, _4.get(courseSection, 'course.id', UN_PLANNED_COURSE_ID));
	            return courseSection;
	        });
	        var shouldShowRefineSearchWarning = _4.gt(totalMatchCount, 20);
	        this._result = {
	            courseSections: courseSections,
	            shouldShowRefineSearchWarning: shouldShowRefineSearchWarning
	        };
	        return this;
	    };
	    Object.defineProperty(CRNSearchResultsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return CRNSearchResultsQuery;
	}());
	exports.CRNSearchResultsQuery = CRNSearchResultsQuery;
	angular.module('capability-ng-scheduler').service('ngCRNSearchResultsQuery', CRNSearchResultsQuery);


/***/ }),
/* 1694 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var unscheduled_sections_by_campus_1 = __webpack_require__(787);
	var SearchResultsList = /** @class */ (function (_super) {
	    tslib_1.__extends(SearchResultsList, _super);
	    function SearchResultsList() {
	        return _super !== null && _super.apply(this, arguments) || this;
	    }
	    return SearchResultsList;
	}(unscheduled_sections_by_campus_1.UnscheduledSectionsByCampus));
	exports.SearchResultsList = SearchResultsList;
	angular.module('capability-ng-scheduler').component('searchResultsList', {
	    templateUrl: 'capability-ng-scheduler/src/components/crn_search/search_results_list.html',
	    controller: unscheduled_sections_by_campus_1.UnscheduledSectionsByCampus,
	    bindings: {
	        results: '<',
	        searchKeyword: '<'
	    }
	});


/***/ }),
/* 1695 */
/***/ (function(module, exports) {

	angular.module('capability-ng-scheduler').directive('frameScroll', function frameScroll($timeout) {
	    return {
	        restrict: 'A',
	        scope: {
	            framescrollTarget: '@'
	        },
	        link: function (scope, element, attrs) {
	            var target = document.getElementById(scope.framescrollTarget);
	            scope.scrollToTarget = function scrollToTarget() {
	                $timeout(function () {
	                    if (target) {
	                        target.scrollIntoView({ behavior: 'smooth' });
	                    }
	                }, 100);
	            };
	            element.on('click', scope.scrollToTarget);
	            scope.$on('$destroy', function () {
	                element.off('click', scope.scrollToTarget);
	            });
	        }
	    };
	});


/***/ }),
/* 1696 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var InactiveSectionBannerController = /** @class */ (function () {
	    function InactiveSectionBannerController(ngUnscheduleSectionFacade) {
	        this.ngUnscheduleSectionFacade = ngUnscheduleSectionFacade;
	    }
	    InactiveSectionBannerController.prototype.removeSection = function () {
	        this.ngUnscheduleSectionFacade.unschedule(this.section);
	    };
	    return InactiveSectionBannerController;
	}());
	angular.module('capability-ng-scheduler').component('inactiveSectionBanner', {
	    templateUrl: 'capability-ng-scheduler/src/components/inactive_section_banner/inactive_section_banner.html',
	    controller: InactiveSectionBannerController,
	    bindings: {
	        section: '<'
	    }
	});


/***/ }),
/* 1697 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MeetingTimesController = /** @class */ (function () {
	    function MeetingTimesController(ngSectionDetailsQuery) {
	        this.ngSectionDetailsQuery = ngSectionDetailsQuery;
	        this.isOnline = false;
	        this.hasTimes = false;
	    }
	    MeetingTimesController.prototype.$onChanges = function () {
	        this.hasTimes = this.ngSectionDetailsQuery.result.meeting_times.length > 0;
	        this.isOnline = _4.get(this.ngSectionDetailsQuery, 'result.section._campus.is_online', false);
	    };
	    return MeetingTimesController;
	}());
	exports.MeetingTimesController = MeetingTimesController;
	angular.module('capability-ng-scheduler').component('meetingTimes', {
	    templateUrl: 'capability-ng-scheduler/src/components/meeting_times/meeting_times.html',
	    controller: MeetingTimesController,
	    bindings: {
	        section: '<'
	    }
	});


/***/ }),
/* 1698 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MeetingTimeServant = /** @class */ (function () {
	    function MeetingTimeServant() {
	    }
	    MeetingTimeServant.prototype.hasMultipleMeetingTimes = function (section) {
	        var sectionTimes = _4.get(section, '_section_times', []);
	        var hasMultipleToDate = _4.uniqBy(sectionTimes, 'to_dt').length > 1;
	        var hasMultipleFromDate = _4.uniqBy(sectionTimes, 'from_dt').length > 1;
	        var hasMultipleLocation = _4.uniqBy(sectionTimes, 'location').length > 1;
	        return hasMultipleToDate || hasMultipleFromDate || hasMultipleLocation;
	    };
	    MeetingTimeServant.prototype.getMultipleMeetingTimesCount = function (section) {
	        return _4.get(section, '_section_times', []).length;
	    };
	    MeetingTimeServant.prototype.dateDifferenceInWeeksOrDays = function (startDt, endDt) {
	        var startDate = startDt;
	        var endDate = endDt;
	        var timeDiffTitle = '';
	        var hasValidTimeDiff = !!startDate && !!endDate;
	        if (hasValidTimeDiff) {
	            var startDateObj = moment.isMoment(startDate) ? startDate : moment(startDate);
	            var endDateObj = moment.isMoment(endDate) ? endDate : moment(endDate);
	            endDateObj = endDateObj.add(1, 'day');
	            var timeDiffInWeeks = endDateObj.diff(startDateObj, 'weeks');
	            var timeDiffInDays = endDateObj.diff(startDateObj, 'days');
	            var weekString = timeDiffInWeeks > 1 ? 'Weeks' : 'Week';
	            var dayString = timeDiffInDays > 1 ? 'Days' : 'Day';
	            timeDiffTitle = timeDiffInWeeks ? timeDiffInWeeks + " " + weekString : timeDiffInDays + " " + dayString;
	        }
	        return timeDiffTitle;
	    };
	    return MeetingTimeServant;
	}());
	exports.MeetingTimeServant = MeetingTimeServant;
	angular.module('capability-ng-scheduler').service('ngMeetingTimeServant', MeetingTimeServant);


/***/ }),
/* 1699 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MeetingTimesBannerController = /** @class */ (function () {
	    function MeetingTimesBannerController(ngMeetingTimeServant, getSectionDetailsCommand, ngComponentCommunicatorService) {
	        this.ngMeetingTimeServant = ngMeetingTimeServant;
	        this.getSectionDetailsCommand = getSectionDetailsCommand;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.hasMultipleMeetingTimes = false;
	    }
	    MeetingTimesBannerController.prototype.init = function () {
	        this.hasMultipleMeetingTimes = this.ngMeetingTimeServant.hasMultipleMeetingTimes(this.section);
	        this.multipleMeetingCount = this.ngMeetingTimeServant.getMultipleMeetingTimesCount(this.section);
	    };
	    MeetingTimesBannerController.prototype.$onChanges = function () {
	        this.init();
	    };
	    MeetingTimesBannerController.prototype.openSectionDetail = function () {
	        var _this = this;
	        this.getSectionDetailsCommand(this.section.id).then(function () {
	            return _this.ngComponentCommunicatorService.publish('OPEN_SECTION_DETAIL_MODAL');
	        });
	    };
	    return MeetingTimesBannerController;
	}());
	exports.MeetingTimesBannerController = MeetingTimesBannerController;
	angular.module('capability-ng-scheduler').component('meetingTimesBanner', {
	    templateUrl: 'capability-ng-scheduler/src/components/meeting_times_banner/meeting_times_banner.html',
	    controller: MeetingTimesBannerController,
	    bindings: {
	        section: '<'
	    }
	});


/***/ }),
/* 1700 */
/***/ (function(module, exports) {

	angular.module('capability-ng-scheduler').directive('eabModalDeprecated', function eabModalDeprecated() {
	    'use strict';
	    return {
	        replace: true,
	        transclude: true,
	        templateUrl: 'capability-ng-scheduler/src/components/modal/modal.html',
	        scope: {
	            ignoreModalClose: '@',
	            title: '@'
	        },
	        controller: function ($scope, $rootScope, $timeout, $state) {
	            $scope.$on('phoenix.modal.close', function () {
	                $scope.exit();
	            });
	            $scope.exit = function () {
	                if (!$scope.ignoreModalClose) {
	                    $state.go('^');
	                }
	            };
	        },
	        link: function (scope, element, attrs) {
	            /*
	             * Accessibility Features
	             * */
	            if (scope.ignoreModalClose) {
	                angular.element(element).find('component--modal-underlay').removeAttr('tabindex').removeAttr('role');
	            }
	            setTimeout(function () {
	                angular.element(element).find('.modal').attr('tabindex', -1).focus();
	                scope.$apply();
	            }, 1000);
	        }
	    };
	});


/***/ }),
/* 1701 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PlannedCourseSearchNavigation = /** @class */ (function () {
	    function PlannedCourseSearchNavigation($state, ngSearchAndCourseFeatureFacade) {
	        this.$state = $state;
	        this.ngSearchAndCourseFeatureFacade = ngSearchAndCourseFeatureFacade;
	    }
	    PlannedCourseSearchNavigation.prototype.gotoSearch = function () {
	        var state = 'my.schedule.searchandaddcourses';
	        this.$state.go(state);
	    };
	    return PlannedCourseSearchNavigation;
	}());
	angular.module('capability-ng-scheduler').component('plannedCourseSearchNavigation', {
	    templateUrl: 'capability-ng-scheduler/src/components/planned_course_search_navigation/planned_course_search_navigation.html',
	    controller: PlannedCourseSearchNavigation
	});


/***/ }),
/* 1702 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var RegistrationRTRSvc = /** @class */ (function () {
	    function RegistrationRTRSvc(ngSchedulerModel, ngTermProgramInfoModel, schedulerConfigModel, FEATURE_SCHEDULE_REGISTRATION_URL_CRN, ngSectionsDatasource) {
	        this.ngSchedulerModel = ngSchedulerModel;
	        this.ngTermProgramInfoModel = ngTermProgramInfoModel;
	        this.schedulerConfigModel = schedulerConfigModel;
	        this.FEATURE_SCHEDULE_REGISTRATION_URL_CRN = FEATURE_SCHEDULE_REGISTRATION_URL_CRN;
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.configs = {
	            isRTR: false,
	            termNk: '',
	            SIS_URL: '',
	            crns: [],
	            registrationUrl: ''
	        };
	    }
	    RegistrationRTRSvc.prototype.setSISURL = function (sisUrl) {
	        this.configs.SIS_URL = sisUrl;
	    };
	    RegistrationRTRSvc.prototype.buildUrl = function () {
	        var getCrns = function (crns) {
	            return _4.map(crns, function (crn, index) {
	                var formattedIndex = _4.padStart((index + 1).toString(), 2, '0');
	                return "&crn" + formattedIndex + "=" + crn;
	            });
	        };
	        var crnList = getCrns(this.registrationCrns);
	        return this.configs.SIS_URL + "?term_in=" + this.configs.termNk + crnList.join('');
	    };
	    RegistrationRTRSvc.prototype.init = function (sectionsToRegister) {
	        this.configs.isRTR = this.schedulerConfigModel.isFeatureEnabled(this.FEATURE_SCHEDULE_REGISTRATION_URL_CRN);
	        var schedulerModel = this.ngSchedulerModel.read();
	        this.configs.SIS_URL = !_4.isEmpty(_4.get(schedulerModel, 'customtext.SIS_REGISTRATION_URL.text'))
	            ? schedulerModel.customtext.SIS_REGISTRATION_URL.text
	            : '';
	        if (this.configs.isRTR) {
	            var termInfo = this.ngTermProgramInfoModel.read().term;
	            if (termInfo) {
	                this.configs.termNk = termInfo.nk;
	            }
	            this.configs.registrationUrl = this.buildUrl();
	        }
	        else {
	            this.configs.registrationUrl = this.configs.SIS_URL;
	        }
	        this.updateCRNs(sectionsToRegister);
	        return this.configs.registrationUrl;
	    };
	    RegistrationRTRSvc.prototype.hasCrns = function () {
	        return !_4.isEmpty(this.registrationCrns);
	    };
	    RegistrationRTRSvc.prototype.updateCRNs = function (sectionsToRegister) {
	        var _this = this;
	        var sectionsCd = _4.map(sectionsToRegister, function (regSection) {
	            var section = _this.ngSectionsDatasource.get(regSection.id);
	            return section ? section.cd : '';
	        });
	        this.registrationCrns = _4.filter(sectionsCd, function (sectionCd) { return !_4.isEmpty(sectionCd); });
	    };
	    return RegistrationRTRSvc;
	}());
	exports.RegistrationRTRSvc = RegistrationRTRSvc;
	angular.module('capability-ng-scheduler').service('registrationRTRSvc', RegistrationRTRSvc);


/***/ }),
/* 1703 */
/***/ (function(module, exports) {

	var SchedulerHeader = /** @class */ (function () {
	    function SchedulerHeader() {
	    }
	    return SchedulerHeader;
	}());
	angular.module('capability-ng-scheduler').component('schedulerHeader', {
	    templateUrl: 'capability-ng-scheduler/src/components/scheduler_header/scheduler_header.html',
	    controller: SchedulerHeader
	});


/***/ }),
/* 1704 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var section_action_strategy_1 = __webpack_require__(713);
	var utility_ts_strategy_1 = __webpack_require__(6);
	var SectionActionButtonController = /** @class */ (function () {
	    function SectionActionButtonController($stateParams, getCrossCourseLinkedSectionsCommand, getSectionDetailsCommand, $state, clearCrossCourseLinkedSectionsCommand, getTermPinCommand, ngOpenModalFlag, removeSelectedUnscheduledSectionCommand, loadStudentUnavailabilityCommand, ngUnscheduledSectionServant, ngScheduledSectionServant, ngSectionSwapServant, schedulerConfigModel, FEATURE_SECTION_LABEL_NK, ngScheduleSectionFacade, ngSwapFacade, calendarPreviewRemoveSections, ngTermScheduleFlags, ngComponentCommunicatorService, ngRefreshSeatAvailabilityFacade) {
	        var _this = this;
	        this.$stateParams = $stateParams;
	        this.getCrossCourseLinkedSectionsCommand = getCrossCourseLinkedSectionsCommand;
	        this.getSectionDetailsCommand = getSectionDetailsCommand;
	        this.$state = $state;
	        this.clearCrossCourseLinkedSectionsCommand = clearCrossCourseLinkedSectionsCommand;
	        this.getTermPinCommand = getTermPinCommand;
	        this.ngOpenModalFlag = ngOpenModalFlag;
	        this.removeSelectedUnscheduledSectionCommand = removeSelectedUnscheduledSectionCommand;
	        this.loadStudentUnavailabilityCommand = loadStudentUnavailabilityCommand;
	        this.ngUnscheduledSectionServant = ngUnscheduledSectionServant;
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.ngSectionSwapServant = ngSectionSwapServant;
	        this.schedulerConfigModel = schedulerConfigModel;
	        this.FEATURE_SECTION_LABEL_NK = FEATURE_SECTION_LABEL_NK;
	        this.ngScheduleSectionFacade = ngScheduleSectionFacade;
	        this.ngSwapFacade = ngSwapFacade;
	        this.calendarPreviewRemoveSections = calendarPreviewRemoveSections;
	        this.ngTermScheduleFlags = ngTermScheduleFlags;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngRefreshSeatAvailabilityFacade = ngRefreshSeatAvailabilityFacade;
	        this.uniqId = '';
	        this.sectionTitle = '';
	        this.__menuItemStrategy = new utility_ts_strategy_1.Strategy({
	            refresh_seat_availability: function () { return _this.ngRefreshSeatAvailabilityFacade.refreshSeats(_this.section.id); },
	            view_section_details: function () { return _this.openSectionDetail(); },
	            schedule_section: function () { return _this.addPressed(); },
	            add_to_waitlist: function () { return _this.addToWaitlist(); },
	            swap_section: function () { return _this.swap(); }
	        });
	    }
	    SectionActionButtonController.prototype.$onInit = function () {
	        this.uniqId = _4.uniqueId();
	        this.updateSectionFlags();
	    };
	    SectionActionButtonController.prototype.$onChanges = function () {
	        this.updateSectionFlags();
	    };
	    SectionActionButtonController.prototype.updateSectionFlags = function () {
	        this.canDrag = this.ngUnscheduledSectionServant.canDragSection(this.section);
	        this.canAddToWaitlist = this.ngUnscheduledSectionServant.canAddToWaitlist(this.section);
	        this.showSeparator = this.canDrag || this.canAddToWaitlist;
	        this.isConflictWithTimeOrCampus =
	            this.ngUnscheduledSectionServant.isSectionConflictingWithBusyTimes(this.section) ||
	                this.ngUnscheduledSectionServant.isSectionConflictingWithCampusPreferences(this.section);
	        this.canSwap = this.ngSectionSwapServant.isInSwapMode();
	        this.buildMenuItems();
	        this.sectionLabel = this.schedulerConfigModel.getConfigProperty(this.FEATURE_SECTION_LABEL_NK);
	        this.sectionTitle = _4.get(this.section, '_course.cd', '') + " - " + this.sectionLabel + " " + _4.get(this.section, 'cd', '');
	    };
	    SectionActionButtonController.prototype.isSectionTypeScheduled = function (sectionType) {
	        return this.ngScheduledSectionServant.isSectionTypeScheduled(sectionType);
	    };
	    SectionActionButtonController.prototype.unsetModalFlag = function () {
	        this.ngOpenModalFlag.setFlag(false);
	        this.clearCrossCourseLinkedSectionsCommand();
	    };
	    SectionActionButtonController.prototype.addPressed = function () {
	        var _this = this;
	        this.removeSelectedUnscheduledSectionCommand();
	        this.updateSectionFlags();
	        if (this.isConflictWithTimeOrCampus) {
	            this.loadStudentUnavailabilityCommand(this.$stateParams.termId);
	            this.getSectionDetailsCommand(this.section.id).then(function () {
	                return _this.ngComponentCommunicatorService.publish('OPEN_CONFLICT_PROMPT');
	            });
	        }
	        else {
	            this.scheduleSection();
	        }
	        this.calendarPreviewRemoveSections();
	    };
	    SectionActionButtonController.prototype.addToWaitlist = function () {
	        var _this = this;
	        this.getTermPinCommand(this.$stateParams.termId).then(function () {
	            _this.getSectionDetailsCommand(_this.section.id).then(function () {
	                _this.ngComponentCommunicatorService.publish('OPEN_WAITLIST_PROMPT');
	            });
	        });
	    };
	    SectionActionButtonController.prototype.isFullSection = function () {
	        return this.ngUnscheduledSectionServant.isSectionFull(this.section);
	    };
	    SectionActionButtonController.prototype.isFullSectionAllowedToMove = function () {
	        return this.ngTermScheduleFlags.isFullSectionsSchedulingEnabled() && this.isFullSection();
	    };
	    SectionActionButtonController.prototype.showAddSection = function () {
	        if (this.canDrag && !this.canAddToWaitlist && !this.canSwap) {
	            return true;
	        }
	        return this.isFullSectionAllowedToMove();
	    };
	    SectionActionButtonController.prototype.showAddToWaitlist = function () {
	        if (this.canAddToWaitlist) {
	            return true;
	        }
	        if (this.isFullSectionAllowedToMove()) {
	            return (this.ngTermScheduleFlags.isWaitlistEnabled() &&
	                !this.ngUnscheduledSectionServant.isWaitlisted(this.section) &&
	                this.ngUnscheduledSectionServant.hasWaitlist(this.section) &&
	                !this.ngUnscheduledSectionServant.isWaitlistFull(this.section));
	        }
	        return false;
	    };
	    SectionActionButtonController.prototype.buildMenuItems = function () {
	        this.sectionActionMenuSettings = {
	            subtitle: this.sectionTitle,
	            capHeight: true
	        };
	        this.sectionActionMenuItems = [
	            {
	                value: 'refresh_seat_availability',
	                title: 'Refresh Seat Availability',
	                visible: true
	            },
	            {
	                value: section_action_strategy_1.SectionActionStrategy['VIEW_DETAILS'].action,
	                title: section_action_strategy_1.SectionActionStrategy['VIEW_DETAILS'].title,
	                visible: true
	            },
	            {
	                value: section_action_strategy_1.SectionActionStrategy['ADD_SECTION'].action,
	                title: section_action_strategy_1.SectionActionStrategy['ADD_SECTION'].title,
	                visible: this.showAddSection()
	            },
	            {
	                value: section_action_strategy_1.SectionActionStrategy['ADD_TO_WAITLIST'].action,
	                title: section_action_strategy_1.SectionActionStrategy['ADD_TO_WAITLIST'].title,
	                visible: this.showAddToWaitlist()
	            },
	            {
	                value: section_action_strategy_1.SectionActionStrategy['SWAP_SECTION'].action,
	                title: section_action_strategy_1.SectionActionStrategy['SWAP_SECTION'].title,
	                visible: this.canSwap
	            }
	        ].filter(function (item) { return item.visible; });
	    };
	    SectionActionButtonController.prototype.menuItemSelected = function ($event) {
	        var invokeMenuStrategy = this.__menuItemStrategy.get($event.detail.value);
	        invokeMenuStrategy();
	    };
	    SectionActionButtonController.prototype.swap = function () {
	        this.ngSwapFacade.saveSwapToAndRedirect(this.section);
	    };
	    SectionActionButtonController.prototype.getCrossCourseLinkedSections = function () {
	        if (_4.get(this.section, '_availability.has_linked_section_coreqs', false)) {
	            this.getCrossCourseLinkedSectionsCommand(this.section.id);
	        }
	    };
	    SectionActionButtonController.prototype.openSectionDetail = function () {
	        var _this = this;
	        this.getSectionDetailsCommand(this.section.id).then(function () {
	            return _this.ngComponentCommunicatorService.publish('OPEN_SECTION_DETAIL_MODAL');
	        });
	    };
	    SectionActionButtonController.prototype.scheduleSection = function () {
	        var _this = this;
	        if (this.isConflictWithTimeOrCampus) {
	            this.getSectionDetailsCommand(this.section.id).then(function () {
	                return _this.ngComponentCommunicatorService.publish('OPEN_CONFLICT_PROMPT');
	            });
	        }
	        else {
	            this.completeSectionMovement();
	        }
	    };
	    SectionActionButtonController.prototype.completeSectionMovement = function () {
	        this.ngScheduleSectionFacade.scheduleSection(this.section);
	    };
	    SectionActionButtonController.prototype.sectionLocations = function (section) {
	        var locations = _4.uniq(_4.map(section._section_times, function (sectionTime) { return sectionTime._location; }));
	        return locations;
	    };
	    return SectionActionButtonController;
	}());
	exports.SectionActionButtonController = SectionActionButtonController;
	angular.module('capability-ng-scheduler').component('sectionActionButton', {
	    templateUrl: 'capability-ng-scheduler/src/components/section_action_button/section_action_button.html',
	    controller: SectionActionButtonController,
	    bindings: {
	        section: '<'
	    }
	});


/***/ }),
/* 1705 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var transient_access_cred_constants_1 = __webpack_require__(26);
	var course_scheduler_constants_1 = __webpack_require__(58);
	var SectionActionWaitListPromptCtrl = /** @class */ (function () {
	    function SectionActionWaitListPromptCtrl($state, waitlistSectionCommand, $stateParams, saveTermPinCommand, updateSeatAvailabilityCommand, $timeout, ngCourseSchedulerConstant, ngComponentCommunicatorService, ngSectionDetailsQuery, ngSectionRegistrationAttributesQuery, storeRegistrationAttributeValuesCommand, ngPreventTransientAccessQuery, clearTransientAccessCredCommand, submitRegAttrFormAndGetOutputCommand, removeSectionsRegistrationAttributesCommand, loadSectionRegistrationAttributesCommand, ngSchedulerCustomTextQuery, appConfigModel) {
	        this.$state = $state;
	        this.waitlistSectionCommand = waitlistSectionCommand;
	        this.$stateParams = $stateParams;
	        this.saveTermPinCommand = saveTermPinCommand;
	        this.updateSeatAvailabilityCommand = updateSeatAvailabilityCommand;
	        this.$timeout = $timeout;
	        this.ngCourseSchedulerConstant = ngCourseSchedulerConstant;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngSectionDetailsQuery = ngSectionDetailsQuery;
	        this.ngSectionRegistrationAttributesQuery = ngSectionRegistrationAttributesQuery;
	        this.storeRegistrationAttributeValuesCommand = storeRegistrationAttributeValuesCommand;
	        this.ngPreventTransientAccessQuery = ngPreventTransientAccessQuery;
	        this.clearTransientAccessCredCommand = clearTransientAccessCredCommand;
	        this.submitRegAttrFormAndGetOutputCommand = submitRegAttrFormAndGetOutputCommand;
	        this.removeSectionsRegistrationAttributesCommand = removeSectionsRegistrationAttributesCommand;
	        this.loadSectionRegistrationAttributesCommand = loadSectionRegistrationAttributesCommand;
	        this.ngSchedulerCustomTextQuery = ngSchedulerCustomTextQuery;
	        this.appConfigModel = appConfigModel;
	        this.openPrompt = false;
	        this.isPermissionPinsFeatureEnabled = false;
	        this.sectionPins = {};
	        this.openBound = this.openWaitlistPrompt.bind(this);
	        this.closeBound = this.closeDialog.bind(this);
	        this.addToWaitlistBound = this.addToWaitlist.bind(this);
	    }
	    SectionActionWaitListPromptCtrl.prototype.$onInit = function () {
	        this.isPermissionPinsFeatureEnabled = this.appConfigModel.model.member_features['reg-class_permission'];
	        this.ngComponentCommunicatorService.subscribe('OPEN_WAITLIST_PROMPT', this.openBound);
	        this.ngComponentCommunicatorService.subscribe('CLOSE_WAITLIST_PROMPT', this.closeBound);
	    };
	    SectionActionWaitListPromptCtrl.prototype.$onDestroy = function () {
	        this.ngComponentCommunicatorService.release('OPEN_WAITLIST_PROMPT', this.openBound);
	        this.ngComponentCommunicatorService.release('CLOSE_WAITLIST_PROMPT', this.closeBound);
	    };
	    SectionActionWaitListPromptCtrl.prototype.openWaitlistPrompt = function () {
	        var _this = this;
	        this.updateProperties();
	        this.storeRegistrationAttributeValuesCommand()
	            .then(function () { return _this.loadSectionRegistrationAttributesCommand(_this.section.id); })
	            .then(function () {
	            _this.openPrompt = true;
	            _this.ngComponentCommunicatorService.subscribe(transient_access_cred_constants_1.TransientAccessCredEventNames.NEW_CRED_SAVED, _this.addToWaitlistBound);
	            _this.ngComponentCommunicatorService.subscribe(transient_access_cred_constants_1.TransientAccessCredEventNames.CRED_FORM_ENTRY_CANCELLED, _this.closeBound);
	        });
	    };
	    SectionActionWaitListPromptCtrl.prototype.updateProperties = function () {
	        this.section = this.ngSectionDetailsQuery.result.section;
	    };
	    SectionActionWaitListPromptCtrl.prototype.closeDialog = function () {
	        this.openPrompt = false;
	        this.ngComponentCommunicatorService.release(transient_access_cred_constants_1.TransientAccessCredEventNames.NEW_CRED_SAVED, this.addToWaitlistBound);
	        this.ngComponentCommunicatorService.release(transient_access_cred_constants_1.TransientAccessCredEventNames.CRED_FORM_ENTRY_CANCELLED, this.closeBound);
	    };
	    SectionActionWaitListPromptCtrl.prototype.openedChanged = function ($event) {
	        if ($event && $event.detail && !$event.detail.value) {
	            this.closeDialog();
	        }
	    };
	    SectionActionWaitListPromptCtrl.prototype.onPinValueChanged = function (event) {
	        var pin = event.detail.value;
	        this.sectionPins[this.section.id] = pin;
	    };
	    SectionActionWaitListPromptCtrl.prototype.addToWaitlist = function () {
	        var _this = this;
	        if (this.ngPreventTransientAccessQuery.result.redirectToAuthWorkflow) {
	            return this.submitRegAttrForm().then(function () {
	                return _this.ngComponentCommunicatorService.publish(transient_access_cred_constants_1.TransientAccessCredEventNames.TOGGLE_CRED_STEPS);
	            });
	        }
	        return this.saveTermPinCommand(this.$stateParams.termId).then(function () {
	            _this.performWaitlistAction();
	        });
	    };
	    SectionActionWaitListPromptCtrl.prototype.submitRegAttrForm = function () {
	        var formElement = document.querySelector("#" + course_scheduler_constants_1.CourseSchedulerConstant.waitListConfirmationSectionFormId);
	        return this.submitRegAttrFormAndGetOutputCommand(formElement, course_scheduler_constants_1.CourseSchedulerConstant.waitListConfirmationSectionFormId, [this.section.id]);
	    };
	    SectionActionWaitListPromptCtrl.prototype.performWaitlistAction = function () {
	        var _this = this;
	        this.submitRegAttrForm()
	            .then(function (formOutput) {
	            _this.closeDialog();
	            return _this.waitlistSectionCommand([_this.section.id], _this.sectionPins, formOutput, _this.ngPreventTransientAccessQuery.result.output).then(function () {
	                if (_this.$state.is('my.schedule.registration.unscheduledCourseInfo') ||
	                    _this.$state.is('my.schedule.registration.courseSections')) {
	                    _this.$state.go('^');
	                }
	                return _this.updateSeatAvailabilityCommand([_this.section.id]);
	            });
	        })
	            .catch(function () {
	            // switch step tabs without filling the reg attr and initiate the waitlist action from auth cred form
	            // this catch means the reg attr form output doesn't exist.
	            if (_this.ngPreventTransientAccessQuery.result.workflowEnabled) {
	                _this.ngComponentCommunicatorService.publish(transient_access_cred_constants_1.TransientAccessCredEventNames.TOGGLE_CRED_STEPS);
	            }
	            var formRenderingDelay = 500;
	            _this.$timeout(function () {
	                _this.submitRegAttrForm();
	            }, formRenderingDelay);
	        })
	            .finally(function () {
	            _this.clearTransientAccessCredCommand();
	        });
	    };
	    return SectionActionWaitListPromptCtrl;
	}());
	angular.module('capability-ng-scheduler').component('sectionActionWaitListPrompt', {
	    controller: SectionActionWaitListPromptCtrl,
	    templateUrl: 'capability-ng-scheduler/src/components/section_action_button/section_action_wait_list_prompt/section_action_wait_list_prompt.html'
	});


/***/ }),
/* 1706 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SectionBadgesController = /** @class */ (function () {
	    function SectionBadgesController(ngUnscheduledSectionServant) {
	        this.ngUnscheduledSectionServant = ngUnscheduledSectionServant;
	        this.canAddToWaitlist = false;
	        this.displayInReveal = false;
	        this.badges = [];
	        this.VIEWABLE_THRESHOLD = 8;
	    }
	    SectionBadgesController.prototype.initialize = function () {
	        this.canAddToWaitlist = this.ngUnscheduledSectionServant.canAddToWaitlist(this.section);
	    };
	    SectionBadgesController.prototype.$onInit = function () {
	        this.initialize();
	    };
	    SectionBadgesController.prototype.$onChanges = function () {
	        this.initialize();
	        this.createBadgesArray();
	    };
	    SectionBadgesController.prototype.createBadgesArray = function () {
	        var _this = this;
	        this.badges = [];
	        _4.each(_4.get(this.section, '_section_labels.section_label'), function (label) {
	            _this.badges.push({ value: label.value, desc: label.desc });
	        });
	        if (this.badges.length > this.VIEWABLE_THRESHOLD) {
	            this.displayInReveal = true;
	        }
	    };
	    SectionBadgesController.prototype.normalizeSectionLabel = function (text) {
	        return _4.truncate(_4.startCase(_4.lowerCase(text)), { length: 20 });
	    };
	    return SectionBadgesController;
	}());
	angular.module('capability-ng-scheduler').component('sectionBadges', {
	    templateUrl: 'capability-ng-scheduler/src/components/section_badges/section_badges.html',
	    bindings: {
	        section: '<'
	    },
	    controller: SectionBadgesController
	});


/***/ }),
/* 1707 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SectionConflictPromptCtrl = /** @class */ (function () {
	    function SectionConflictPromptCtrl($state, ngComponentCommunicatorService, ngSectionDetailsQuery, ngSectionInfoServant, ngSwapFacade, ngScheduleSectionFacade) {
	        this.$state = $state;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngSectionDetailsQuery = ngSectionDetailsQuery;
	        this.ngSectionInfoServant = ngSectionInfoServant;
	        this.ngSwapFacade = ngSwapFacade;
	        this.ngScheduleSectionFacade = ngScheduleSectionFacade;
	        this.openPrompt = false;
	        this.isPermissionPinsFeatureEnabled = false;
	        this.sectionPins = {};
	    }
	    SectionConflictPromptCtrl.prototype.$onInit = function () {
	        this.closeBound = this.closePromptFn.bind(this);
	        this.openBound = this.openPromptFn.bind(this);
	        this.ngComponentCommunicatorService.subscribe('OPEN_CONFLICT_PROMPT', this.openBound);
	        this.ngComponentCommunicatorService.subscribe('CLOSE_CONFLICT_PROMPT', this.closeBound);
	    };
	    SectionConflictPromptCtrl.prototype.closePromptFn = function () {
	        this.openPrompt = false;
	    };
	    SectionConflictPromptCtrl.prototype.openPromptFn = function () {
	        this.openPrompt = true;
	        this.updateProperties();
	    };
	    SectionConflictPromptCtrl.prototype.updateProperties = function () {
	        this.section = this.ngSectionDetailsQuery.result.section;
	        this.locationAndTimes = this.ngSectionInfoServant.calculateSectionTimes(this.section);
	    };
	    SectionConflictPromptCtrl.prototype.scheduleConflictSection = function () {
	        var isSwapMode = _4.includes(this.$state.current.name || '', 'swap');
	        if (isSwapMode) {
	            return this.ngSwapFacade.saveSwapToAndRedirect(this.section);
	        }
	        return this.ngScheduleSectionFacade.scheduleSection(this.section);
	    };
	    SectionConflictPromptCtrl.prototype.$onDestroy = function () {
	        this.ngComponentCommunicatorService.release('OPEN_CONFLICT_PROMPT', this.openBound);
	        this.ngComponentCommunicatorService.release('CLOSE_CONFLICT_PROMPT', this.closeBound);
	    };
	    return SectionConflictPromptCtrl;
	}());
	var SectionConflictPrompt = /** @class */ (function () {
	    function SectionConflictPrompt() {
	        this.bindings = {
	            section: '<'
	        };
	        this.controller = SectionConflictPromptCtrl;
	        this.templateUrl = 'capability-ng-scheduler/src/components/section_conflict_prompt/section_conflict_prompt.html';
	    }
	    return SectionConflictPrompt;
	}());
	angular.module('capability-ng-scheduler').component('sectionConflictPrompt', new SectionConflictPrompt());


/***/ }),
/* 1708 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('clearCrossCourseLinkedSectionsCommand', function (ngCrossCourseLinkedSectionsModel, defineCommandORM) {
	    return defineCommandORM('clearCrossCourseLinkedSectionsCommand', function (deferred) {
	        ngCrossCourseLinkedSectionsModel.clear();
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1709 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .factory('getCrossCourseLinkedSectionsCommand', function ($http, ngCrossCourseLinkedSectionsModel, defineCommandORM, ngSectionsDatasource, ngCrossCourseCorequisitesDatasource, ngTermCoursesDatasource) {
	    return defineCommandORM('getCrossCourseLinkedSectionsCommand', function (deferred, sectionId, includeStatus) {
	        $http
	            .get("/reg/linked_section_coreq/section/" + sectionId + "/" + (includeStatus ? '?populate_satisfaction=true' : ''))
	            .then(function (_a) {
	            var data = _a.data;
	            _4.each(data, function (course) {
	                var existingCourse = ngTermCoursesDatasource.get(course.id);
	                if (existingCourse) {
	                    ngTermCoursesDatasource.write([_4.merge(existingCourse, course)]);
	                }
	                else {
	                    ngTermCoursesDatasource.write(data);
	                }
	            });
	            ngCrossCourseCorequisitesDatasource.write([
	                {
	                    id: sectionId,
	                    course_corequisites: data
	                }
	            ]);
	            ngCrossCourseLinkedSectionsModel.clear().write({
	                coreqs: data,
	                coreqs_of_section: sectionId
	            });
	            var sections = _4.reduce(_4.map(data, function (item) { return item.sections; }), function (sum, n) { return sum.concat(n); });
	            _4.each(sections, function (section) {
	                var exists = ngSectionsDatasource.get(section.id);
	                if (!exists) {
	                    ngSectionsDatasource.write([section]);
	                }
	            });
	            deferred.resolve();
	        })
	            .catch(deferred.reject);
	    });
	});


/***/ }),
/* 1710 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var cross_course_corequisite_builder_1 = __webpack_require__(714);
	var utility_ng_kernel_1 = __webpack_require__(5);
	angular.module('capability-ng-scheduler').factory('ngCrossCourseCorequisitesDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: cross_course_corequisite_builder_1.CrossCourseCorequisites
	    });
	});


/***/ }),
/* 1711 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngCrossCourseLinkedSectionsModel', function () {
	    return new utility_ts_orm_1.Model({
	        coreqs: [],
	        coreqs_of_section: -1
	    });
	});


/***/ }),
/* 1712 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var requisite_enum_1 = __webpack_require__(100);
	var _4 = __webpack_require__(1);
	var SectionCorequisiteController = /** @class */ (function () {
	    function SectionCorequisiteController(ngTermCourseServant, ngScheduledSectionsQuery) {
	        this.ngTermCourseServant = ngTermCourseServant;
	        this.ngScheduledSectionsQuery = ngScheduledSectionsQuery;
	        this.hasCoreqs = false;
	        this.hideControls = false;
	    }
	    SectionCorequisiteController.prototype.$onChanges = function () {
	        this.init();
	    };
	    SectionCorequisiteController.prototype.init = function () {
	        this.hasCoreqs = !_4.isEmpty(this.coreqCourses);
	        this.hideControls = !this.ngTermCourseServant.isCourseScheduled(this.course);
	    };
	    SectionCorequisiteController.prototype.$onInit = function () {
	        this.init();
	    };
	    SectionCorequisiteController.prototype.isCoReqCoursePlanned = function (coreqCourse) {
	        return coreqCourse.status === 'SATISFIED';
	    };
	    SectionCorequisiteController.prototype.getButtonType = function (coreq) {
	        var sectionLength = _4.get(coreq, 'length');
	        var sectionCount = _4.get(coreq, 'section_count', sectionLength);
	        return sectionCount === 1 ? requisite_enum_1.SectionRequisites.ONE_TO_ONE : requisite_enum_1.SectionRequisites.ONE_TO_MANY;
	    };
	    SectionCorequisiteController.prototype.getCoreqStatus = function (coreq) {
	        var coreqStatus = _4.get(_4.find(_4.get(this.ngScheduledSectionsQuery, 'result.list', []), { course: coreq.id }), 'status', false);
	        return coreqStatus || coreq.status;
	    };
	    return SectionCorequisiteController;
	}());
	angular.module('capability-ng-scheduler').component('sectionCorequisite', {
	    templateUrl: 'capability-ng-scheduler/src/components/section_corequisite/section_corequisite.html',
	    bindings: {
	        coreqCourses: '<',
	        course: '<'
	    },
	    controller: SectionCorequisiteController
	});


/***/ }),
/* 1713 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('getSectionDetailsCommand', function (ngSectionDetailsModel, defineCommandORM, QueryMediator) {
	    return defineCommandORM('getSectionDetailsCommand', function (deferred, sectionId) {
	        ngSectionDetailsModel.clear().write({ id: sectionId });
	        deferred.resolve(QueryMediator.runQueries(ngSectionDetailsModel));
	    });
	});


/***/ }),
/* 1714 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngSectionDetailsModel', function () {
	    return new utility_ts_orm_1.Model({
	        id: -1
	    });
	});


/***/ }),
/* 1715 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var _4 = __webpack_require__(1);
	var SectionDetailsQuery = /** @class */ (function () {
	    function SectionDetailsQuery(ngSectionDetailsModel, ngSectionsDatasource, ngSectionInfoServant, ngMeetingTimeServant) {
	        this.ngSectionDetailsModel = ngSectionDetailsModel;
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngSectionInfoServant = ngSectionInfoServant;
	        this.ngMeetingTimeServant = ngMeetingTimeServant;
	        utility_ts_orm_1.ORMMediator.registerQuery(this, ngSectionDetailsModel, ngSectionsDatasource);
	    }
	    SectionDetailsQuery.prototype.run = function () {
	        var _this = this;
	        var selectedSection = this.ngSectionDetailsModel.read();
	        var section = _4.find(this.ngSectionsDatasource.metasource().derived(), { id: selectedSection.id });
	        var meeting_times = [];
	        _4.each(_4.get(section, '_section_times'), function (sectionTime) {
	            var fromDate = _4.get(sectionTime, 'from_dt') || _4.get(section, 'class_start_dt', '');
	            var toDate = _4.get(sectionTime, 'to_dt') || _4.get(section, 'class_end_dt', '');
	            var dateRange = _this.ngSectionInfoServant.convertDateToRange(fromDate, toDate);
	            var location = _4.get(sectionTime, '_location.campus_name') + " |\n      " + _4.get(sectionTime, '_location.name');
	            var startTime = sectionTime.from_tm ? moment(sectionTime.from_tm, 'HH:mm:ss').format('h:mm a') : 'TBD';
	            var endTime = sectionTime.to_tm ? moment(sectionTime.to_tm, 'HH:mm:ss').format('h:mm a') : 'TBD';
	            var day = sectionTime.day_of_week === 8
	                ? 'TBD'
	                : sectionTime.day_of_week === 7
	                    ? 'Sat'
	                    : moment().weekday(sectionTime.day_of_week).format('ddd');
	            var duration = _this.ngMeetingTimeServant.dateDifferenceInWeeksOrDays(fromDate, toDate);
	            var meetingTimesOjb = {
	                dateRange: dateRange + ", " + duration,
	                day: day,
	                time: startTime + " - " + endTime,
	                instructor: _4.get(section, 'instructor_name', ''),
	                location: location
	            };
	            meeting_times.push(meetingTimesOjb);
	        });
	        var classDuration = this.ngSectionInfoServant.convertDateToRange(_4.get(section, 'class_start_dt'), _4.get(section, 'class_end_dt')) + ", " + this.ngMeetingTimeServant.dateDifferenceInWeeksOrDays(_4.get(section, 'class_start_dt'), _4.get(section, 'class_end_dt'));
	        this._result = {
	            section: section,
	            meeting_times: meeting_times,
	            classDuration: classDuration
	        };
	        return this;
	    };
	    Object.defineProperty(SectionDetailsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return SectionDetailsQuery;
	}());
	exports.SectionDetailsQuery = SectionDetailsQuery;
	angular.module('capability-ng-scheduler').service('ngSectionDetailsQuery', SectionDetailsQuery);


/***/ }),
/* 1716 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var section_status_servant_1 = __webpack_require__(31);
	var _4 = __webpack_require__(1);
	var term_course_servant_1 = __webpack_require__(14);
	var utility_ts_strategy_1 = __webpack_require__(6);
	var SectionDetail = /** @class */ (function () {
	    function SectionDetail(FEATURE_SECTION_LABEL_NK, schedulerConfigModel, ngComponentCommunicatorService, $stateParams, ngTermCourseServant, ngSectionInfoServant, ngScheduledSectionServant, ngUnscheduledSectionServant, ngSectionSwapServant, ngMeetingTimeServant, ngScheduledSectionStatusServant, ngCourseDetailsCrossCoreqQuery, ngSectionDetailsQuery, removeSelectedUnscheduledSectionCommand, getTermPinCommand, loadStudentUnavailabilityCommand, ngScheduleSectionFacade, ngSwapFacade, ngRefreshSeatAvailabilityFacade) {
	        var _this = this;
	        this.FEATURE_SECTION_LABEL_NK = FEATURE_SECTION_LABEL_NK;
	        this.schedulerConfigModel = schedulerConfigModel;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.$stateParams = $stateParams;
	        this.ngTermCourseServant = ngTermCourseServant;
	        this.ngSectionInfoServant = ngSectionInfoServant;
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.ngUnscheduledSectionServant = ngUnscheduledSectionServant;
	        this.ngSectionSwapServant = ngSectionSwapServant;
	        this.ngMeetingTimeServant = ngMeetingTimeServant;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.ngCourseDetailsCrossCoreqQuery = ngCourseDetailsCrossCoreqQuery;
	        this.ngSectionDetailsQuery = ngSectionDetailsQuery;
	        this.removeSelectedUnscheduledSectionCommand = removeSelectedUnscheduledSectionCommand;
	        this.getTermPinCommand = getTermPinCommand;
	        this.loadStudentUnavailabilityCommand = loadStudentUnavailabilityCommand;
	        this.ngScheduleSectionFacade = ngScheduleSectionFacade;
	        this.ngSwapFacade = ngSwapFacade;
	        this.ngRefreshSeatAvailabilityFacade = ngRefreshSeatAvailabilityFacade;
	        this.isOpened = false;
	        this.showAddToScheduleButton = false;
	        this.canSwap = false;
	        this.canDrag = false;
	        this.hasMultipleMeetingTimes = false;
	        this.isConflictWithTimeOrCampus = false;
	        this.sectionHasStatus = false;
	        this.openWaitListPrompt = false;
	        this.showSectionDetailsMenu = false;
	        this.sectionDetailsHeading = '';
	        this.__menuItemStrategy = new utility_ts_strategy_1.Strategy({
	            refresh_seat_availability: function () { return _this.__onRefreshSeatAvailabilityTriggerEnded(); },
	            waitlist: function () {
	                _this.addToWaitlist();
	                _this.closeModal();
	            },
	            add: function () {
	                _this.addPressed();
	                _this.closeModal();
	            },
	            swap: function () {
	                _this.swap();
	                _this.closeModal();
	            }
	        });
	    }
	    SectionDetail.prototype.initialize = function () {
	        this.query = this.ngSectionDetailsQuery;
	    };
	    SectionDetail.prototype.updateSectionDetail = function () {
	        var _this = this;
	        this.section = _4.get(this.ngSectionDetailsQuery, 'result.section');
	        this.sectionDetailsHeading = this.section._course.cd + " " + this.section._course.title;
	        this.availability = _4.get(this.section, '_availability');
	        this.isConflicting = this.ngUnscheduledSectionServant.isSectionConflicting(this.section);
	        this.sectionLabel = this.schedulerConfigModel.getConfigProperty(this.FEATURE_SECTION_LABEL_NK);
	        this.isMultiSection = term_course_servant_1.TermCourseServant.isMultiSectionCourse(this.section._course);
	        this.conflictingMessages = this.ngSectionInfoServant.getConflictingMessages(this.section);
	        this.otherSectionTypes = _4(this.section._course._section_types)
	            .filter(function (sectionType) { return !_4.isUndefined(sectionType.name) && sectionType.id !== _this.section.section_type; })
	            .map(function (sectionType) { return ({
	            name: sectionType.name,
	            courseNk: _this.section._course.nk
	        }); })
	            .value();
	        this.isConflicting = this.ngUnscheduledSectionServant.isSectionConflicting(this.section);
	        this.conflictingMessages = this.ngSectionInfoServant.getConflictingMessages(this.section);
	        this.canDrag = this.ngUnscheduledSectionServant.canDragSection(this.section);
	        this.canSwap = this.ngSectionSwapServant.isInSwapMode();
	        this.canAddToWaitlist = this.ngUnscheduledSectionServant.canAddToWaitlist(this.section);
	        this.sectionHasStatus = section_status_servant_1.SectionStatusServant.hasStatus(this.section);
	        this.showAddToScheduleButton = !this.canSwap && this.canDrag && !this.canAddToWaitlist && !this.sectionHasStatus;
	        this.isConflictWithTimeOrCampus =
	            this.ngUnscheduledSectionServant.isSectionConflictingWithBusyTimes(this.section) ||
	                this.ngUnscheduledSectionServant.isSectionConflictingWithCampusPreferences(this.section);
	        this.hasMultipleMeetingTimes = this.ngMeetingTimeServant.hasMultipleMeetingTimes(this.section);
	        this.showRefreshSeats =
	            this.ngScheduledSectionStatusServant.isSectionScheduled(this.section) ||
	                this.ngScheduledSectionStatusServant.isStatusWaitlisted(this.section) ||
	                this.ngScheduledSectionStatusServant.isStatusUnscheduled(this.section);
	    };
	    SectionDetail.prototype.$onInit = function () {
	        this.closeBound = this.closeModal.bind(this);
	        this.openBound = this.openSectionDetailModal.bind(this);
	        this.ngComponentCommunicatorService.subscribe('OPEN_SECTION_DETAIL_MODAL', this.openBound);
	        this.ngComponentCommunicatorService.subscribe('CLOSE_SECTION_DETAIL_MODAL', this.closeBound);
	        this.initialize();
	    };
	    SectionDetail.prototype.isSectionTypeScheduled = function (sectionType) {
	        return this.ngScheduledSectionServant.isSectionTypeScheduled(sectionType);
	    };
	    SectionDetail.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    SectionDetail.prototype.openSectionDetailModal = function () {
	        this.isOpened = true;
	        this.updateSectionDetail();
	        this.buildSectionDetailsMenuItems();
	    };
	    SectionDetail.prototype.closeModal = function () {
	        this.isOpened = false;
	    };
	    SectionDetail.prototype.addPressed = function () {
	        this.removeSelectedUnscheduledSectionCommand();
	        if (this.isConflictWithTimeOrCampus) {
	            this.loadStudentUnavailabilityCommand(this.$stateParams.termId);
	            this.openConflictConfirmModal();
	        }
	        else {
	            this.scheduleSection();
	        }
	    };
	    SectionDetail.prototype.addToWaitlist = function () {
	        var _this = this;
	        this.getTermPinCommand(this.$stateParams.termId).then(function () {
	            _this.ngComponentCommunicatorService.publish('OPEN_WAITLIST_PROMPT');
	        });
	    };
	    SectionDetail.prototype.openConflictConfirmModal = function () {
	        this.ngComponentCommunicatorService.publish('OPEN_CONFLICT_PROMPT');
	    };
	    SectionDetail.prototype.swap = function () {
	        this.ngSwapFacade.saveSwapToAndRedirect(this.section);
	    };
	    SectionDetail.prototype.scheduleSection = function () {
	        if (this.isConflictWithTimeOrCampus) {
	            this.openConflictConfirmModal();
	        }
	        else {
	            this.completeSectionMovement();
	        }
	    };
	    SectionDetail.prototype.completeSectionMovement = function () {
	        this.ngScheduleSectionFacade.scheduleSection(this.section);
	    };
	    SectionDetail.prototype.buildSectionDetailsMenuItems = function () {
	        var showWaitlist = this.canAddToWaitlist && !this.isConflicting;
	        var showAddToSchedule = this.showAddToScheduleButton;
	        var showSwap = this.canSwap;
	        this.showSectionDetailsMenu = showWaitlist || showAddToSchedule || showSwap;
	        this.sectionDetailsMenuSettings = {
	            subtitle: this.sectionDetailsHeading,
	            capHeight: true
	        };
	        this.sectionDetailsMenuItems = [
	            {
	                value: 'refresh_seat_availability',
	                title: 'Refresh Seat Availability',
	                visible: this.showRefreshSeats
	            },
	            {
	                title: 'Waitlist this time',
	                value: 'waitlist',
	                visible: showWaitlist
	            },
	            {
	                title: 'Add to Schedule',
	                value: 'add',
	                visible: showAddToSchedule
	            },
	            {
	                title: 'Swap',
	                value: 'swap',
	                visible: showSwap
	            }
	        ].filter(function (item) { return item.visible; });
	    };
	    SectionDetail.prototype.__onMenuItemSelected = function ($event) {
	        var invokeMenuStrategy = this.__menuItemStrategy.get($event.detail.value);
	        invokeMenuStrategy();
	    };
	    SectionDetail.prototype.__onRefreshSeatAvailabilityTriggerEnded = function () {
	        return this.ngRefreshSeatAvailabilityFacade.refreshSeats(this.section.id);
	    };
	    return SectionDetail;
	}());
	var SectionDetailComponent = /** @class */ (function () {
	    function SectionDetailComponent() {
	        this.bindings = {};
	        this.controller = SectionDetail;
	        this.templateUrl = 'capability-ng-scheduler/src/components/section_details/section_details.html';
	    }
	    return SectionDetailComponent;
	}());
	angular.module('capability-ng-scheduler').component('sectionDetails', new SectionDetailComponent());


/***/ }),
/* 1717 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .service('clearSectionFiltersCommand', function clearSectionFiltersCommandDefinition(defineCommandORM, ngSelectedSectionFiltersModel, ngComponentCommunicatorService) {
	    'use strict';
	    return defineCommandORM('clearSectionFiltersCommand', function clearSectionFiltersCommand(deferred) {
	        ngSelectedSectionFiltersModel.clear().write({
	            instructors: [],
	            section_labels: []
	        });
	        ngComponentCommunicatorService.publish('CLEAR_EXISTING_FILTERS');
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1718 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('getSectionFiltersCommand', function ($http, defineCommandORM, ngSectionFiltersModel, log) {
	    return defineCommandORM('getSectionFiltersCommand', function (deferred, termId, courseId, sectionType) {
	        return $http
	            .get("/cat/sections/term/" + termId + "/course/" + courseId + "/section_type/" + sectionType + "/schedule_filter")
	            .then(function (_a) {
	            var data = _a.data;
	            ngSectionFiltersModel.clear().write(data);
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue('Failed to get section filters');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1719 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .service('saveSectionFiltersCommand', function saveSectionFiltersCommandDefinition(defineCommandORM, ngSelectedSectionFiltersModel) {
	    'use strict';
	    return defineCommandORM('saveSectionFiltersCommand', function saveSectionFiltersCommand(deferred, sectionFilters) {
	        ngSelectedSectionFiltersModel.clear();
	        ngSelectedSectionFiltersModel.write(sectionFilters);
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1720 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngSectionFiltersModel', function () {
	    return new utility_ts_orm_1.Model({
	        instructors: [],
	        section_labels: []
	    });
	});


/***/ }),
/* 1721 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngSelectedSectionFiltersModel', function () {
	    return new utility_ts_orm_1.Model({
	        instructors: [],
	        section_labels: []
	    });
	});


/***/ }),
/* 1722 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var _4 = __webpack_require__(1);
	var SectionFiltersQuery = /** @class */ (function () {
	    function SectionFiltersQuery(ngSectionFiltersModel, ngSelectedSectionFiltersModel) {
	        this.ngSectionFiltersModel = ngSectionFiltersModel;
	        this.ngSelectedSectionFiltersModel = ngSelectedSectionFiltersModel;
	        utility_ts_orm_1.ORMMediator.registerQuery(this, ngSectionFiltersModel, ngSelectedSectionFiltersModel);
	    }
	    SectionFiltersQuery.prototype.run = function () {
	        var selectedInstructors = this.ngSelectedSectionFiltersModel.read().instructors;
	        var selectedSectionLabels = this.ngSelectedSectionFiltersModel.read().section_labels;
	        var selectedFiltersCount = selectedInstructors.length + selectedSectionLabels.length;
	        var instructors = _4.map(this.ngSectionFiltersModel.read().instructors, function (instructor) {
	            return {
	                title: instructor,
	                value: instructor
	            };
	        });
	        var section_labels = _4.map(this.ngSectionFiltersModel.read().section_labels, function (sectionLabel) {
	            var checked = !_4.isEmpty(_4.find(selectedSectionLabels, { value: sectionLabel.value }));
	            return {
	                desc: sectionLabel.desc,
	                id: sectionLabel.id,
	                value: sectionLabel.value,
	                checked: checked
	            };
	        });
	        this._result = {
	            instructors: instructors,
	            section_labels: section_labels,
	            selectedInstructors: selectedInstructors,
	            selectedFiltersCount: selectedFiltersCount
	        };
	        return this;
	    };
	    Object.defineProperty(SectionFiltersQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return SectionFiltersQuery;
	}());
	exports.SectionFiltersQuery = SectionFiltersQuery;
	angular.module('capability-ng-scheduler').service('ngSectionFiltersQuery', SectionFiltersQuery);


/***/ }),
/* 1723 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SectionFiltersController = /** @class */ (function () {
	    function SectionFiltersController(ngComponentCommunicatorService, ngSectionFiltersQuery, getSectionFiltersCommand, clearSectionFiltersCommand, $stateParams, saveSectionFiltersCommand, $element) {
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngSectionFiltersQuery = ngSectionFiltersQuery;
	        this.getSectionFiltersCommand = getSectionFiltersCommand;
	        this.clearSectionFiltersCommand = clearSectionFiltersCommand;
	        this.$stateParams = $stateParams;
	        this.saveSectionFiltersCommand = saveSectionFiltersCommand;
	        this.$element = $element;
	        this.showInstructors = false;
	        this.showLabels = false;
	        this.selectedFilters = {
	            instructors: [],
	            section_labels: []
	        };
	    }
	    SectionFiltersController.prototype.$onInit = function () {
	        var _this = this;
	        this.clearExistingFiltersBound = this.clearExistingFilters.bind(this);
	        this.ngComponentCommunicatorService.subscribe('CLEAR_EXISTING_FILTERS', this.clearExistingFiltersBound);
	        this.query = this.ngSectionFiltersQuery;
	        this.getSectionFiltersCommand(this.$stateParams.termId, this.$stateParams.courseId, this.$stateParams.sectionTypeId).then(function () { return _this.update(); });
	        this.scrollToTop();
	    };
	    SectionFiltersController.prototype.$onChanges = function () {
	        this.update();
	    };
	    SectionFiltersController.prototype.update = function () {
	        this.showInstructors = !_4.isEmpty(this.ngSectionFiltersQuery.result.instructors);
	        this.showLabels = !_4.isEmpty(this.ngSectionFiltersQuery.result.section_labels);
	    };
	    SectionFiltersController.prototype.clearExistingFilters = function () {
	        this.clearInputSelections('#instructor_filter_combobox');
	        this.clearInputSelections('#section_filters_drawer hi-checkbox-group');
	    };
	    SectionFiltersController.prototype.clearInputSelections = function (elementSelector) {
	        var elementToClear = this.$element[0].querySelector(elementSelector);
	        if (!_4.isNil(elementToClear) && elementToClear.clear) {
	            elementToClear.clear();
	        }
	    };
	    SectionFiltersController.prototype.scrollToTop = function () {
	        var sectionFilters = this.$element[0].querySelector('#section_filters_drawer');
	        if (!_4.isNil(sectionFilters) && sectionFilters.scroll) {
	            sectionFilters.scroll(0, 0);
	        }
	    };
	    SectionFiltersController.prototype.onFiltersClosed = function () {
	        this.clearUpdatedSectionFilters();
	        this.closeFilters();
	    };
	    SectionFiltersController.prototype.closeFilters = function () {
	        this.isFiltersOpened = false;
	    };
	    SectionFiltersController.prototype.submitFilters = function (event) {
	        var selectedValues = _4.get(event, 'detail.value', []);
	        if (this.showInstructors) {
	            this.saveUpdatedInstructorFilter(_4.get(selectedValues, 'instructor_filter_combobox', []));
	        }
	        if (this.showLabels) {
	            this.saveUpdatedSectionLabelFilter(_4.get(selectedValues, 'label_filter_checkbox_group', []));
	        }
	        this.saveSectionFiltersCommand(this.selectedFilters);
	        this.clearUpdatedSectionFilters();
	        this.closeFilters();
	    };
	    SectionFiltersController.prototype.saveUpdatedInstructorFilter = function (instructorArray) {
	        this.selectedFilters.instructors = instructorArray;
	    };
	    SectionFiltersController.prototype.saveUpdatedSectionLabelFilter = function (selectedIds) {
	        var _this = this;
	        var sectionLabels = this.query.result.section_labels;
	        _4.forEach(selectedIds, function (id) {
	            var label = _4.find(sectionLabels, { id: _4.toInteger(id) });
	            _this.selectedFilters.section_labels.push(label);
	        });
	    };
	    SectionFiltersController.prototype.clearUpdatedSectionFilters = function () {
	        this.selectedFilters = {
	            instructors: [],
	            section_labels: []
	        };
	    };
	    SectionFiltersController.prototype.clearFilters = function () {
	        this.clearSectionFiltersCommand();
	        this.clearUpdatedSectionFilters();
	    };
	    return SectionFiltersController;
	}());
	var SectionFiltersComponent = /** @class */ (function () {
	    function SectionFiltersComponent() {
	        this.bindings = {
	            course: '<',
	            isFiltersOpened: '='
	        };
	        this.controller = SectionFiltersController;
	        this.templateUrl = 'capability-ng-scheduler/src/components/section_filters/section_filters.html';
	    }
	    return SectionFiltersComponent;
	}());
	angular.module('capability-ng-scheduler').component('sectionFilters', new SectionFiltersComponent());


/***/ }),
/* 1724 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var scheduled_section_servant_1 = __webpack_require__(19);
	/**
	 * Trigger all necessary commands to select or unselect sections to register
	 */
	angular
	    .module('capability-ng-scheduler')
	    .service('processSelectedRegisterableSectionCommand', function processSelectedRegisterableSectionCommand(defineCommandORM, $q, ngRegisterSectionsQuery, ngSectionSelectionsQuery, storeRegistrationAttributeValuesCommand, updateSelectedLinkedSectionStatusCommand, ngScheduledSectionServant, ngSectionsDatasource) {
	    'use strict';
	    return defineCommandORM('processSelectedRegisterableSectionCommand', function (deferred, sectionId, isChecked) {
	        var section = ngSectionsDatasource.get(sectionId);
	        if (!section) {
	            deferred.reject('Section not found');
	            return;
	        }
	        var canSectionBeRegistered = ngScheduledSectionServant.canBeRegistered(section);
	        var canSectionBeWaitlisted = ngScheduledSectionServant.canBeWaitlisted(section);
	        var isSectionWaitlisted = scheduled_section_servant_1.ScheduledSectionServant.isSectionWaitListed(section);
	        if (!canSectionBeRegistered || (canSectionBeWaitlisted && !isSectionWaitlisted)) {
	            deferred.resolve();
	            return;
	        }
	        storeRegistrationAttributeValuesCommand().finally(function () {
	            updateSelectedLinkedSectionStatusCommand(sectionId, isChecked)
	                .then(function () {
	                deferred.resolve();
	            })
	                .catch(function (error) {
	                deferred.reject(error);
	            });
	        });
	    });
	});


/***/ }),
/* 1725 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .service('removeSectionSelectionCommand', function removeSectionSelectionCommand(defineCommandORM, updateSectionSelectionsCommand) {
	    'use strict';
	    return defineCommandORM('removeSectionSelectionCommand', function (deferred, sectionId) {
	        if (!sectionId) {
	            deferred.reject('Invalid section id');
	            return;
	        }
	        updateSectionSelectionsCommand(sectionId, false).then(deferred.resolve);
	    });
	});


/***/ }),
/* 1726 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .service('updateSectionSelectionsCommand', function updateSectionSelectionsCommand(defineCommandORM, ngSectionSelectionsModel) {
	    'use strict';
	    return defineCommandORM('updateSectionSelectionsCommand', function (deferred, sectionId, isSelected) {
	        var selectedSectionIds = ngSectionSelectionsModel.read().sectionIds;
	        if (isSelected) {
	            selectedSectionIds.add(sectionId);
	        }
	        else {
	            selectedSectionIds.delete(sectionId);
	        }
	        ngSectionSelectionsModel.write({ sectionIds: selectedSectionIds });
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1727 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	/**
	 * Decide whether to include linked sections in the registration selection
	 */
	angular
	    .module('capability-ng-scheduler')
	    .service('updateSelectedLinkedSectionStatusCommand', function updateSelectedLinkedSectionStatusCommand(defineCommandORM, $q, ngSectionsDatasource, ngCrossCourseLinkedSectionServant, ngScheduledSectionsQuery, updateSelectedSectionStatusCommand) {
	    'use strict';
	    return defineCommandORM('updateSelectedLinkedSectionStatusCommand', function (deferred, selectedSectionId, isSelected) {
	        var section = ngSectionsDatasource.get(selectedSectionId);
	        if (!section) {
	            deferred.resolve();
	            return;
	        }
	        var hasLinkedSections = !_4.isEmpty(_4.get(section, '_linked_sections', []));
	        if (!hasLinkedSections) {
	            updateSelectedSectionStatusCommand(section, isSelected);
	        }
	        var crossCourseLinkedSectionIds = ngCrossCourseLinkedSectionServant.getSectionIdOfLinkedCrossCourses(section.id, ngScheduledSectionsQuery.result.list);
	        // Include itself as well as coreqs
	        crossCourseLinkedSectionIds.push(section.id);
	        var crossCourseLinkedSections = ngScheduledSectionsQuery.result.list.filter(function (section) {
	            return crossCourseLinkedSectionIds.includes(section.id);
	        });
	        var updateLinkedSectionsStatusPromises = crossCourseLinkedSections.map(function (section) {
	            return updateSelectedSectionStatusCommand(section, isSelected);
	        });
	        $q.all(updateLinkedSectionsStatusPromises).then(deferred.resolve);
	    });
	});


/***/ }),
/* 1728 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var term_course_servant_1 = __webpack_require__(14);
	angular
	    .module('capability-ng-scheduler')
	    .service('updateSelectedSectionStatusCommand', function updateSelectedSectionStatusCommand(defineCommandORM, $q, ngRegisterSectionsDatasource, updateSectionSelectionsCommand) {
	    'use strict';
	    return defineCommandORM('updateSelectedSectionStatusCommand', function (deferred, section, isSelected) {
	        var updatedRegistrationSections = _4.map(ngRegisterSectionsDatasource.values(), function (registrationSection) {
	            var isMultiSection = term_course_servant_1.TermCourseServant.isMultiSectionCourse(section._course);
	            // if multi-section we update the selection status for all IRegistrationSections of the same course
	            // if not multi-section we only update the section with the matching id
	            var comparisonCriteria = function (sectionA, sectionB, isMultSection) {
	                return isMultSection
	                    ? _4.isEqual(sectionA.course, sectionB.course) &&
	                        _4.isEqual(sectionA._section_type.session, sectionB._section_type.session)
	                    : _4.isEqual(sectionA.id, sectionB.id);
	            };
	            return comparisonCriteria(registrationSection, section, isMultiSection)
	                ? tslib_1.__assign(tslib_1.__assign({}, registrationSection), { is_selected: isSelected }) : registrationSection;
	        });
	        ngRegisterSectionsDatasource.write(updatedRegistrationSections);
	        var updateSectionSelectionPromises = updatedRegistrationSections.map(function (section) {
	            return updateSectionSelectionsCommand(section.id, section.is_selected);
	        });
	        $q.all(updateSectionSelectionPromises).then(deferred.resolve);
	    });
	});


/***/ }),
/* 1729 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngSectionSelectionsModel', function () {
	    return new utility_ts_orm_1.Model({
	        sectionIds: new Set()
	    });
	});


/***/ }),
/* 1730 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var _4 = __webpack_require__(1);
	var scheduled_section_servant_1 = __webpack_require__(19);
	var SectionSelectionsQuery = /** @class */ (function () {
	    function SectionSelectionsQuery(ngSectionSelectionsModel, ngSectionsDatasource, ngScheduledSectionServant, ngRegisteredSectionServant) {
	        this.ngSectionSelectionsModel = ngSectionSelectionsModel;
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.ngRegisteredSectionServant = ngRegisteredSectionServant;
	        this.registerSelections = [];
	        this.waitlistSelections = [];
	        this.withdrawSelections = [];
	        this.dropSelections = [];
	        utility_ts_orm_1.Query.registerQuery(this, ngSectionSelectionsModel);
	    }
	    SectionSelectionsQuery.prototype.getSelectedSectionsId = function (sectionSet) {
	        var selectedSectionsInfo = this.getSelectedSectionsInfo(sectionSet);
	        var selectedSectionsId = this.getSectionsId(selectedSectionsInfo);
	        return selectedSectionsId;
	    };
	    SectionSelectionsQuery.prototype.getSelectedSectionsInfo = function (sectionSet) {
	        var allSections = this.ngSectionsDatasource.read();
	        return _4.filter(allSections, function (section) { return sectionSet.has(section.id); });
	    };
	    SectionSelectionsQuery.prototype.getSectionsId = function (sections) {
	        return _4.map(sections, 'id');
	    };
	    SectionSelectionsQuery.prototype.clearAllSelection = function () {
	        this.registerSelections = [];
	        this.waitlistSelections = [];
	        this.withdrawSelections = [];
	        this.dropSelections = [];
	    };
	    /**
	     * Waitlisted sections can be registered and/or dropped
	     * @param section
	     */
	    SectionSelectionsQuery.prototype.handleWaitlistedSection = function (section) {
	        var canSectionBeRegistered = this.ngScheduledSectionServant.canBeRegistered(section);
	        var canSectionBeDropped = this.ngRegisteredSectionServant.canBeDropped(section);
	        if (canSectionBeRegistered) {
	            this.registerSelections.push(section);
	        }
	        if (canSectionBeDropped) {
	            this.dropSelections.push(section);
	        }
	    };
	    /**
	     * Scheduled sections can either be registered or waitlisted
	     * @param section
	     */
	    SectionSelectionsQuery.prototype.handleScheduledSection = function (section) {
	        var canSectionBeRegistered = this.ngScheduledSectionServant.canBeRegistered(section);
	        var canSectionBeWaitlisted = this.ngScheduledSectionServant.canBeWaitlisted(section);
	        if (canSectionBeWaitlisted) {
	            this.waitlistSelections.push(section);
	            return;
	        }
	        if (canSectionBeRegistered) {
	            this.registerSelections.push(section);
	        }
	    };
	    /**
	     * Registered section can either be dropped or withdrawn
	     * @param section
	     */
	    SectionSelectionsQuery.prototype.handleRegisteredSection = function (section) {
	        var canSectionBeWithdrawn = this.ngRegisteredSectionServant.canBeWithdrawn(section);
	        var canSectionBeDropped = this.ngRegisteredSectionServant.canBeDropped(section);
	        if (canSectionBeWithdrawn) {
	            this.withdrawSelections.push(section);
	            return;
	        }
	        if (canSectionBeDropped) {
	            this.dropSelections.push(section);
	        }
	    };
	    SectionSelectionsQuery.prototype.processSections = function (selectedSectionIds) {
	        for (var _i = 0, selectedSectionIds_1 = selectedSectionIds; _i < selectedSectionIds_1.length; _i++) {
	            var selectedSectionId = selectedSectionIds_1[_i];
	            var section = this.ngSectionsDatasource.get(selectedSectionId);
	            if (!section)
	                continue;
	            var isScheduledSection = this.ngScheduledSectionServant.isSectionScheduled_(section);
	            var isWaitlistedSection = scheduled_section_servant_1.ScheduledSectionServant.isSectionWaitListed(section);
	            var isRegisteredSection = this.ngScheduledSectionServant.isSectionRegistered(section);
	            if (isWaitlistedSection) {
	                this.handleWaitlistedSection(section);
	                continue;
	            }
	            if (isScheduledSection) {
	                this.handleScheduledSection(section);
	                continue;
	            }
	            if (isRegisteredSection) {
	                this.handleRegisteredSection(section);
	            }
	        }
	    };
	    SectionSelectionsQuery.prototype.run = function () {
	        var selectedSectionIds = Array.from(this.ngSectionSelectionsModel.read().sectionIds);
	        this.clearAllSelection();
	        this.processSections(selectedSectionIds);
	        this._result = {
	            activeSelectionSet: new Set(selectedSectionIds),
	            registerSelections: this.registerSelections,
	            dropSelections: this.dropSelections,
	            withdrawSelections: this.withdrawSelections,
	            waitlistSelections: this.waitlistSelections
	        };
	        return this;
	    };
	    Object.defineProperty(SectionSelectionsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return SectionSelectionsQuery;
	}());
	exports.SectionSelectionsQuery = SectionSelectionsQuery;
	angular.module('capability-ng-scheduler').service('ngSectionSelectionsQuery', SectionSelectionsQuery);


/***/ }),
/* 1731 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	/**
	 * Servant for section selections
	 * Used to determine if a checkbox should be shown for a section
	 */
	var SectionSelectionsServant = /** @class */ (function () {
	    function SectionSelectionsServant(ngScheduledSectionServant, ngScheduledSectionStatusServant, ngRegisteredSectionServant, ngSelectedSectionActionsFacade) {
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.ngRegisteredSectionServant = ngRegisteredSectionServant;
	        this.ngSelectedSectionActionsFacade = ngSelectedSectionActionsFacade;
	    }
	    /**
	     * Section can be selected for registration if it is scheduled or waitlisted
	     * and passes these criterias: canBeRegistered, isEligibleForRegistration
	     * @param section
	     * @returns
	     */
	    SectionSelectionsServant.prototype.canBeSelectedForRegister = function (section) {
	        var isSectionScheduled = this.ngScheduledSectionServant.isSectionScheduled_(section);
	        var canBeRegistered = this.ngScheduledSectionServant.canBeRegistered(section);
	        var isSectionWaitlisted = this.ngScheduledSectionStatusServant.isStatusWaitlisted(section);
	        return (isSectionScheduled || isSectionWaitlisted) && canBeRegistered && !!section._isEligibleForRegistration;
	    };
	    /**
	     * Section can be selected for drop if it is registered or waitlisted
	     * and passes these requirements: canBeDropped, isMultiDropFeatureEnabled
	     * @param section
	     * @returns
	     */
	    SectionSelectionsServant.prototype.canBeSelectedForDrop = function (section) {
	        var isSectionRegistered = this.ngScheduledSectionServant.isSectionRegistered(section);
	        var isSectionWaitlisted = this.ngScheduledSectionStatusServant.isStatusWaitlisted(section);
	        var canBeDropped = this.ngRegisteredSectionServant.canBeDropped(section) &&
	            this.ngSelectedSectionActionsFacade.isMultiDropFeatureEnabled();
	        return (isSectionRegistered || isSectionWaitlisted) && canBeDropped;
	    };
	    /**
	     * Section can be selected for waitlist if it is scheduled
	     * and passes these requirements: canBeWaitlisted, shouldShowMultiWaitlistFeature
	     * @param section
	     * @returns
	     */
	    SectionSelectionsServant.prototype.canBeSelectedForWaitlist = function (section) {
	        var isSectionScheduled = this.ngScheduledSectionServant.isSectionScheduled_(section);
	        var canBeWaitlisted = this.ngScheduledSectionServant.canBeWaitlisted(section) &&
	            this.ngSelectedSectionActionsFacade.shouldShowMultiWaitlistFeature();
	        return isSectionScheduled && canBeWaitlisted;
	    };
	    /**
	     * Section can be selected for withdraw if it is registered
	     * and passes these requirements: canBeWithdrawn
	     * @param section
	     * @returns
	     */
	    SectionSelectionsServant.prototype.canBeSelectedForWithdraw = function (section) {
	        var isSectionRegistered = this.ngScheduledSectionServant.isSectionRegistered(section);
	        var canBeWithdrawn = this.ngRegisteredSectionServant.canBeWithdrawn(section);
	        return isSectionRegistered && canBeWithdrawn;
	    };
	    return SectionSelectionsServant;
	}());
	exports.SectionSelectionsServant = SectionSelectionsServant;
	angular.module('capability-ng-scheduler').service('ngSectionSelectionsServant', SectionSelectionsServant);


/***/ }),
/* 1732 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SectionTimeLengthController = /** @class */ (function () {
	    function SectionTimeLengthController(ngMeetingTimeServant) {
	        this.ngMeetingTimeServant = ngMeetingTimeServant;
	        this.timeDiffTitle = '';
	    }
	    SectionTimeLengthController.prototype.init = function () {
	        this.theme = this.theme || "gray-dark";
	        this.timeDiffTitle = this.ngMeetingTimeServant.dateDifferenceInWeeksOrDays(_4.get(this.section, 'class_start_dt', ''), _4.get(this.section, 'class_end_dt', ''));
	    };
	    SectionTimeLengthController.prototype.$onChanges = function () {
	        this.init();
	    };
	    return SectionTimeLengthController;
	}());
	exports.SectionTimeLengthController = SectionTimeLengthController;
	angular.module('capability-ng-scheduler').component('sectionTimeLength', {
	    templateUrl: 'capability-ng-scheduler/src/components/section_time_length/section_time_length.html',
	    controller: SectionTimeLengthController,
	    bindings: {
	        theme: '@',
	        section: '<',
	        badgeClass: '@'
	    }
	});


/***/ }),
/* 1733 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var SelectedSectionActionsMenuQuery = /** @class */ (function () {
	    function SelectedSectionActionsMenuQuery(ngSchedulerNavigationMenuQuery, ngRegistrationOneClickModel, ngSectionSelectionsModel) {
	        this.ngSchedulerNavigationMenuQuery = ngSchedulerNavigationMenuQuery;
	        this.ngRegistrationOneClickModel = ngRegistrationOneClickModel;
	        this.ngSectionSelectionsModel = ngSectionSelectionsModel;
	        this.multiSectionsActions = ['registerSections', 'waitlistSections'];
	        utility_ts_orm_1.Query.registerQuery(this, ngRegistrationOneClickModel, ngSectionSelectionsModel);
	    }
	    SelectedSectionActionsMenuQuery.prototype.getSelectedSectionActionsMenuItems = function (menuItems) {
	        var filterByValues = this.multiSectionsActions;
	        var multiSectionActionsMenuItems = menuItems.filter(function (menuItem) { return filterByValues.includes(menuItem.value); });
	        return multiSectionActionsMenuItems;
	    };
	    SelectedSectionActionsMenuQuery.prototype.shouldShowSelectedSectionActionsMenu = function (selectedSectionActionsMenuItems) {
	        var multiSectionsActionsMinimumLength = this.multiSectionsActions.length;
	        var shouldShowSelectedSectionActionsMenu = selectedSectionActionsMenuItems.length >= multiSectionsActionsMinimumLength;
	        return shouldShowSelectedSectionActionsMenu;
	    };
	    SelectedSectionActionsMenuQuery.prototype.run = function () {
	        var schedulerNavigationMenuItems = this.ngSchedulerNavigationMenuQuery.result.menuItems;
	        var selectedSectionActionsMenuItems = this.getSelectedSectionActionsMenuItems(schedulerNavigationMenuItems);
	        var shouldShowSelectedSectionActionsMenu = this.shouldShowSelectedSectionActionsMenu(selectedSectionActionsMenuItems);
	        this._result = {
	            menuItems: selectedSectionActionsMenuItems,
	            showMenu: shouldShowSelectedSectionActionsMenu
	        };
	        return this;
	    };
	    Object.defineProperty(SelectedSectionActionsMenuQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return SelectedSectionActionsMenuQuery;
	}());
	exports.SelectedSectionActionsMenuQuery = SelectedSectionActionsMenuQuery;
	angular.module('capability-ng-scheduler').service('ngSelectedSectionActionsMenuQuery', SelectedSectionActionsMenuQuery);


/***/ }),
/* 1734 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_strategy_1 = __webpack_require__(6);
	var MultiSectionActionsMenu = /** @class */ (function () {
	    function MultiSectionActionsMenu(ngSelectedSectionActionsFacade, ngRegistrationFacade, ngSelectedSectionActionsMenuQuery, ngRequestStateQuery) {
	        this.ngSelectedSectionActionsFacade = ngSelectedSectionActionsFacade;
	        this.ngRegistrationFacade = ngRegistrationFacade;
	        this.ngSelectedSectionActionsMenuQuery = ngSelectedSectionActionsMenuQuery;
	        this.ngRequestStateQuery = ngRequestStateQuery;
	        this.menuSettings = {
	            placement: 'bottom',
	            subtitle: 'Registration Actions',
	            capHeight: true
	        };
	        this.menuId = _4.uniqueId('selected-section-actions-menu-');
	    }
	    MultiSectionActionsMenu.prototype.onMenuSelectedEnded = function (event) {
	        var _this = this;
	        var action = event.detail.value;
	        var actionStrategy = new utility_ts_strategy_1.StrategySafe({
	            registerSections: function () { return _this.ngRegistrationFacade.beginRegistration(); },
	            waitlistSections: function () { return _this.ngSelectedSectionActionsFacade.openMultiSectionsActionModal('waitlist'); }
	        });
	        var invokeActionStrategy = actionStrategy.get(action);
	        invokeActionStrategy();
	    };
	    return MultiSectionActionsMenu;
	}());
	angular.module('capability-ng-scheduler').component('selectedSectionActionsMenu', {
	    templateUrl: 'capability-ng-scheduler/src/components/selected_section_actions_menu/selected_section_actions_menu.html',
	    controller: MultiSectionActionsMenu
	});


/***/ }),
/* 1735 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var SelectedSectionActionsModal = /** @class */ (function () {
	    function SelectedSectionActionsModal(ngComponentCommunicatorService, ngSelectedSectionActionsFacade, ngSchedulerActiveTermQuery, ngSectionInfoServant) {
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngSelectedSectionActionsFacade = ngSelectedSectionActionsFacade;
	        this.ngSchedulerActiveTermQuery = ngSchedulerActiveTermQuery;
	        this.ngSectionInfoServant = ngSectionInfoServant;
	        this.opened = false;
	        this.descriptionText = '';
	        this.withdrawConfirmationText = '';
	    }
	    SelectedSectionActionsModal.prototype.$onInit = function () {
	        this.withdrawConfirmationText = this.ngSelectedSectionActionsFacade.getWithdrawText();
	        this.closeBound = this.closeDialog.bind(this);
	        this.openDropModeBound = this.openDropModeDialog.bind(this);
	        this.openWithdrawModeBound = this.openWithdrawModeDialog.bind(this);
	        this.openWaitlistModeBound = this.openWaitlistModeDialog.bind(this);
	        this.ngComponentCommunicatorService.subscribe('OPEN_MULTI_DROP_MODAL', this.openDropModeBound);
	        this.ngComponentCommunicatorService.subscribe('OPEN_MULTI_WITHDRAW_MODAL', this.openWithdrawModeBound);
	        this.ngComponentCommunicatorService.subscribe('OPEN_MULTI_WAITLIST_MODAL', this.openWaitlistModeBound);
	        this.ngComponentCommunicatorService.subscribe('CLOSE_MULTI_SECTION_ACTIONS_MODAL', this.closeBound);
	    };
	    SelectedSectionActionsModal.prototype.openDropModeDialog = function () {
	        var dropText = 'Drop Course(s)';
	        this.mode = 'drop';
	        this.headerText = dropText;
	        this.descriptionText = "Are you sure you want to " + this.mode + " " + this.getSelectionCount() + " course(s) from " + this.ngSchedulerActiveTermQuery.result.name + "?";
	        this.buttonText = dropText;
	        this.openDialog();
	    };
	    SelectedSectionActionsModal.prototype.openWithdrawModeDialog = function () {
	        this.mode = 'withdraw';
	        this.headerText = 'Withdraw Course(s)';
	        this.descriptionText = "Are you sure you want to " + this.mode + " " + this.getSelectionCount() + " course(s) from " + this.ngSchedulerActiveTermQuery.result.name + "?";
	        this.buttonText = 'Withdraw from Course(s)';
	        this.openDialog();
	    };
	    SelectedSectionActionsModal.prototype.openWaitlistModeDialog = function () {
	        var waitlistText = 'Waitlist Course(s)';
	        this.mode = 'waitlist';
	        this.headerText = waitlistText;
	        this.descriptionText = "Are you sure you want to " + this.mode + " " + this.getSelectionCount() + " course(s) in " + this.ngSchedulerActiveTermQuery.result.name + "?";
	        this.buttonText = waitlistText;
	        this.openDialog();
	    };
	    SelectedSectionActionsModal.prototype.openDialog = function () {
	        this.opened = true;
	    };
	    SelectedSectionActionsModal.prototype.closeDialog = function () {
	        this.opened = false;
	    };
	    SelectedSectionActionsModal.prototype.$onDestroy = function () {
	        this.ngComponentCommunicatorService.release('OPEN_MULTI_DROP_MODAL', this.openDropModeBound);
	        this.ngComponentCommunicatorService.release('OPEN_MULTI_WITHDRAW_MODAL', this.openWithdrawModeBound);
	        this.ngComponentCommunicatorService.release('OPEN_MULTI_WAITLIST_MODAL', this.openWaitlistModeDialog);
	        this.ngComponentCommunicatorService.release('CLOSE_MULTI_SECTION_ACTIONS_MODAL', this.closeBound);
	    };
	    SelectedSectionActionsModal.prototype.getSelectionCount = function () {
	        return this.ngSelectedSectionActionsFacade.getSelectionCountByMode(this.mode);
	    };
	    SelectedSectionActionsModal.prototype.getSelectedSectionsInfo = function () {
	        return this.ngSelectedSectionActionsFacade.getSectionsInfoByMode(this.mode);
	    };
	    SelectedSectionActionsModal.prototype.getSectionLabel = function (section) {
	        return this.ngSectionInfoServant.getSectionLabel(section);
	    };
	    SelectedSectionActionsModal.prototype.onSubmitTriggerEnded = function () {
	        this.ngSelectedSectionActionsFacade.invokeMultiSectionsAction(this.mode);
	        this.closeDialog();
	    };
	    return SelectedSectionActionsModal;
	}());
	angular.module('capability-ng-scheduler').component('selectedSectionActionsModal', {
	    templateUrl: 'capability-ng-scheduler/src/components/selected_section_actions_modal/selected_section_actions_modal.html',
	    bindings: {},
	    controller: SelectedSectionActionsModal
	});


/***/ }),
/* 1736 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SystemMessageController = /** @class */ (function () {
	    function SystemMessageController(ngSchedulerModel) {
	        this.ngSchedulerModel = ngSchedulerModel;
	        this.systemCustomTextMessage = '';
	        this.showSystemMessage = false;
	    }
	    SystemMessageController.prototype.$onInit = function () {
	        this.systemCustomTextMessage = _4.get(this.ngSchedulerModel.read(), 'customtext.SCHEDULER_WARNING.text', '');
	        this.showSystemMessage = !_4.isEmpty(this.systemCustomTextMessage);
	    };
	    return SystemMessageController;
	}());
	exports.SystemMessageController = SystemMessageController;
	angular.module('capability-ng-scheduler').component('systemMessage', {
	    controller: SystemMessageController,
	    templateUrl: 'capability-ng-scheduler/src/components/system_message/system_message.html'
	});


/***/ }),
/* 1737 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('getTermPinCommand', function ($http, defineCommandORM, log, ngTermPinModel, ngTermPinServant) {
	    return defineCommandORM('getTermPinCommand', function (deferred, termId) {
	        if (ngTermPinServant.isTermPinFeatureEnabled()) {
	            $http
	                .get("/reg/termpin/term/" + termId + "/")
	                .then(function (response) {
	                var termPinData = { term_pin: response.data.term_pin || '' };
	                ngTermPinModel.clear().write(termPinData);
	                deferred.resolve();
	            })
	                .catch(function () {
	                log.issue('Failed to get the Term PIN');
	                deferred.reject();
	            });
	        }
	        else {
	            deferred.resolve();
	        }
	    });
	});


/***/ }),
/* 1738 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('saveTermPinCommand', function ($http, defineCommandORM, ngTermPinModel, log, ngTermPinServant) {
	    return defineCommandORM('saveTermPinCommand', function (deferred, termId) {
	        var shouldSaveTermPin = ngTermPinServant.isTermPinFeatureEnabled() && ngTermPinServant.shouldUpdateTermPin();
	        if (shouldSaveTermPin) {
	            var _a = ngTermPinModel.read(), isPinUpdated = _a.isPinUpdated, term_pin = _a.term_pin, updatedTermPin = _a.updatedTermPin;
	            var newTermPin = isPinUpdated ? updatedTermPin : term_pin;
	            $http
	                .post("/reg/termpin/term/" + termId + "/", { term_pin: newTermPin })
	                .then(function (response) {
	                deferred.resolve();
	            })
	                .catch(function (e) {
	                log.issue("Failed to save the Term PIN");
	                deferred.reject(e);
	            });
	        }
	        else {
	            deferred.resolve();
	        }
	    });
	});


/***/ }),
/* 1739 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngTermPinModel', function () {
	    return new utility_ts_orm_1.Model({
	        isPinUpdated: false,
	        updatedTermPin: '',
	        term_pin: ''
	    });
	});


/***/ }),
/* 1740 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var TermPinQuery = /** @class */ (function () {
	    function TermPinQuery(QueryMediator, ngTermPinModel) {
	        this.ngTermPinModel = ngTermPinModel;
	        QueryMediator.registerQuery(this, this.ngTermPinModel);
	    }
	    TermPinQuery.prototype.run = function () {
	        var _a = this.ngTermPinModel.read(), term_pin = _a.term_pin, updatedTermPin = _a.updatedTermPin, isPinUpdated = _a.isPinUpdated;
	        var activePin = isPinUpdated ? updatedTermPin : term_pin;
	        this._result = {
	            activePin: activePin
	        };
	        return this;
	    };
	    Object.defineProperty(TermPinQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return TermPinQuery;
	}());
	exports.TermPinQuery = TermPinQuery;
	angular.module('capability-ng-scheduler').service('ngTermPinQuery', TermPinQuery);


/***/ }),
/* 1741 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var TermPinServant = /** @class */ (function () {
	    function TermPinServant(ngTermPinModel, appConfigModel) {
	        this.ngTermPinModel = ngTermPinModel;
	        this.appConfigModel = appConfigModel;
	    }
	    TermPinServant.prototype.isTermPinFeatureEnabled = function () {
	        return this.appConfigModel.model.member_features['reg-term_permission'];
	    };
	    TermPinServant.prototype.hasTermPin = function () {
	        return this.ngTermPinModel.read().term_pin !== '';
	    };
	    TermPinServant.prototype.shouldUpdateTermPin = function () {
	        return this.ngTermPinModel.read().isPinUpdated;
	    };
	    return TermPinServant;
	}());
	exports.TermPinServant = TermPinServant;
	angular.module('capability-ng-scheduler').service('ngTermPinServant', TermPinServant);


/***/ }),
/* 1742 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var TermPin = /** @class */ (function () {
	    function TermPin(ngTermPinQuery, ngTermPinModel, ngTermPinServant, appConfigModel) {
	        this.ngTermPinQuery = ngTermPinQuery;
	        this.ngTermPinModel = ngTermPinModel;
	        this.ngTermPinServant = ngTermPinServant;
	        this.appConfigModel = appConfigModel;
	        this.isTermPinFeatureEnabled = false;
	        this.appointmentFeatureEnabled = false;
	        this.advisorText = '';
	    }
	    TermPin.prototype.$onInit = function () {
	        this.isTermPinFeatureEnabled = this.ngTermPinServant.isTermPinFeatureEnabled();
	        this.appointmentFeatureEnabled = this.appConfigModel.isFeatureEnabled('ssccampus-appointment_scheduling');
	        this.advisorText = " Contact your " + _4.toLower(_4.get(this.appConfigModel, 'model.member_configs.advisor_label', 'advisor'));
	    };
	    TermPin.prototype.onValueChanged = function (event) {
	        this.updateTermPin(event.target.value);
	    };
	    TermPin.prototype.updateTermPin = function (newTermPin) {
	        if (newTermPin === void 0) { newTermPin = ''; }
	        var term_pin = this.ngTermPinModel.read().term_pin;
	        if (!_4.isEqual(term_pin, newTermPin)) {
	            var updatedTermPin = newTermPin;
	            var newTermPinData = {
	                term_pin: term_pin,
	                updatedTermPin: updatedTermPin,
	                isPinUpdated: true
	            };
	            this.ngTermPinModel.clear().write(newTermPinData);
	            this.ngTermPinQuery.run();
	        }
	    };
	    return TermPin;
	}());
	var TermPinComponent = /** @class */ (function () {
	    function TermPinComponent() {
	        this.bindings = {};
	        this.controller = TermPin;
	        this.templateUrl = 'capability-ng-scheduler/src/components/term_pin/term_pin.html';
	    }
	    return TermPinComponent;
	}());
	angular.module('capability-ng-scheduler').component('termPin', new TermPinComponent());


/***/ }),
/* 1743 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .service('saveSelectedTimeSliceToModel', function saveSelectedTimeSliceCommandDefinition(defineCommandORM, ngSelectedTimeSliceModel, log) {
	    'use strict';
	    return defineCommandORM('saveSelectedTimeSliceToModelCommand', function saveSelectedTimeSliceCommand(deferred, timeSlice) {
	        ngSelectedTimeSliceModel.write(timeSlice);
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1744 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngSelectedTimeSliceModel', function () {
	    return new utility_ts_orm_1.Model({
	        timeSliceStartDate: '',
	        timeSliceEndDate: '',
	        endDisplay: '',
	        startDisplay: '',
	        selected: false,
	        startUnix: 0,
	        endUnix: 0,
	        startDayLabel: ''
	    });
	});


/***/ }),
/* 1745 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var TimeSliceQuery = /** @class */ (function () {
	    function TimeSliceQuery(QueryMediator, ngTermProgramInfoModel, ngTimeSliceServant, ngSelectedTimeSliceModel) {
	        this.QueryMediator = QueryMediator;
	        this.ngTermProgramInfoModel = ngTermProgramInfoModel;
	        this.ngTimeSliceServant = ngTimeSliceServant;
	        this.ngSelectedTimeSliceModel = ngSelectedTimeSliceModel;
	        this._result = {
	            slices: []
	        };
	        QueryMediator.registerQuery(this, ngTermProgramInfoModel, ngSelectedTimeSliceModel);
	    }
	    TimeSliceQuery.prototype.run = function () {
	        var termInfo = this.ngTermProgramInfoModel.read();
	        var timeSliceStartDate = moment(_4.get(termInfo, 'term.term_start_dt'));
	        var timeSliceEndDate = moment(_4.get(termInfo, 'term.term_end_dt'));
	        var builtTimeSlices = this.ngTimeSliceServant.buildTimeSlices(timeSliceStartDate, timeSliceEndDate);
	        this._result = {
	            slices: builtTimeSlices
	        };
	        return this;
	    };
	    Object.defineProperty(TimeSliceQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return TimeSliceQuery;
	}());
	exports.TimeSliceQuery = TimeSliceQuery;
	angular.module('capability-ng-scheduler').service('ngTimeSliceQuery', TimeSliceQuery);


/***/ }),
/* 1746 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var TimeSliceServant = /** @class */ (function () {
	    function TimeSliceServant(ngSelectedTimeSliceModel) {
	        this.ngSelectedTimeSliceModel = ngSelectedTimeSliceModel;
	    }
	    TimeSliceServant.prototype.datesFromSessions = function (sessions) {
	        var sortedSessions = _4.sortBy(sessions, function (session) { return session.session_start_dt; });
	        var sessionEndDates = _4.sortBy(_4.compact(_4.map(sessions, 'session_end_dt')));
	        var lastSessionEndDate = _4.last(sessionEndDates);
	        var startDates = _4.compact(_4.map(sortedSessions, 'session_start_dt'));
	        return startDates.concat([lastSessionEndDate]);
	    };
	    TimeSliceServant.prototype.isDateSelected = function (startDate) {
	        var timeSliceStartDate = moment(startDate);
	        var selectedTimeSlice = this.ngSelectedTimeSliceModel.read();
	        var isActive = false;
	        if (selectedTimeSlice.timeSliceStartDate && selectedTimeSlice.timeSliceEndDate) {
	            var hasSameStartDate = timeSliceStartDate.isSame(selectedTimeSlice.timeSliceStartDate);
	            isActive = hasSameStartDate;
	        }
	        return isActive;
	    };
	    TimeSliceServant.prototype.buildTimeSlices = function (startDate, endDate) {
	        var builtTimeSlicesToReturn = [];
	        var currentWeekStartDate = startDate.startOf('week'); // Sunday
	        var timeSliceStartDate;
	        var timeSliceEndDate;
	        var isActive;
	        while (currentWeekStartDate.isSameOrBefore(endDate)) {
	            timeSliceStartDate = moment(currentWeekStartDate);
	            timeSliceEndDate = moment(currentWeekStartDate).day(6);
	            isActive = this.isDateSelected(startDate);
	            builtTimeSlicesToReturn.push({
	                timeSliceStartDate: timeSliceStartDate,
	                timeSliceEndDate: timeSliceEndDate,
	                startDisplay: timeSliceStartDate.format('MMM DD, YYYY'),
	                endDisplay: timeSliceEndDate.format('MMM DD, YYYY'),
	                startUnix: timeSliceStartDate.startOf('day').unix(),
	                endUnix: timeSliceEndDate.endOf('day').unix(),
	                startDayLabel: timeSliceStartDate.format('D'),
	                isActive: isActive
	            });
	            currentWeekStartDate.day(7);
	        }
	        return builtTimeSlicesToReturn;
	    };
	    return TimeSliceServant;
	}());
	exports.TimeSliceServant = TimeSliceServant;
	angular.module('capability-ng-scheduler').service('ngTimeSliceServant', TimeSliceServant);


/***/ }),
/* 1747 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var TimeSliceTilesController = /** @class */ (function () {
	    function TimeSliceTilesController(saveSelectedTimeSliceToModel, ngSectionInfoServant) {
	        this.saveSelectedTimeSliceToModel = saveSelectedTimeSliceToModel;
	        this.ngSectionInfoServant = ngSectionInfoServant;
	        this.visibleSegments = '';
	        this.showLabelWithCount = false;
	        this.selectedDateRangeLabel = '';
	    }
	    TimeSliceTilesController.prototype.init = function () {
	        this.currentlySelectedDate = this.timeSlices[0];
	        this.selectFirstValidTab();
	    };
	    TimeSliceTilesController.prototype.$onInit = function () {
	        this.init();
	    };
	    TimeSliceTilesController.prototype.$onChanges = function () {
	        this.updateSelectedIndex();
	    };
	    TimeSliceTilesController.prototype.updateSelectedIndex = function () {
	        this.currentlySelectedDate = _4.find(this.timeSlices, { isActive: true });
	        this.getDisplayDate();
	    };
	    TimeSliceTilesController.prototype.getDisplayDate = function () {
	        if (!this.currentlySelectedDate) {
	            return;
	        }
	        var sliceStart = this.currentlySelectedDate.timeSliceStartDate;
	        var sliceEnd = this.currentlySelectedDate.timeSliceEndDate;
	        if (sliceStart && sliceEnd) {
	            this.selectedDateRangeLabel = this.ngSectionInfoServant.convertDateToRange(sliceStart.format('YYYY-MM-DD'), sliceEnd.format('YYYY-MM-DD'), 'MMMM DD', 'MMMM DD, YYYY');
	        }
	    };
	    TimeSliceTilesController.prototype.selectFirstValidTab = function () {
	        var firstActiveSlice = this.timeSlices[0];
	        this.saveSelectedTimeSliceToModel(firstActiveSlice);
	    };
	    TimeSliceTilesController.prototype.emptyDate = function (selectedDate) {
	        return selectedDate === '';
	    };
	    TimeSliceTilesController.prototype.setTimeSlice = function (timeSlice) {
	        if (timeSlice) {
	            this.currentlySelectedDate = timeSlice;
	            this.updateSelectedTimeSliceModal(timeSlice);
	        }
	    };
	    TimeSliceTilesController.prototype.prevTimeSlice = function () {
	        var currentIndex = this.findCurrentTimesliceIndex();
	        var prevTimeSlice = this.timeSlices[currentIndex - 1];
	        this.setTimeSlice(prevTimeSlice);
	    };
	    TimeSliceTilesController.prototype.nextTimeSlice = function () {
	        var currentIndex = this.findCurrentTimesliceIndex();
	        var nextTimeSlice = this.timeSlices[currentIndex + 1];
	        this.setTimeSlice(nextTimeSlice);
	    };
	    TimeSliceTilesController.prototype.findCurrentTimesliceIndex = function () {
	        var _this = this;
	        return _4.findIndex(this.timeSlices, _4.find(this.timeSlices, function (slice) { return slice.startUnix === _this.currentlySelectedDate.startUnix; }));
	    };
	    TimeSliceTilesController.prototype.updateSelectedTimeSliceModal = function (timeSlice) {
	        this.saveSelectedTimeSliceToModel(timeSlice);
	    };
	    return TimeSliceTilesController;
	}());
	angular.module('capability-ng-scheduler').component('timeSliceTiles', {
	    templateUrl: 'capability-ng-scheduler/src/components/time_slice_tiles/time_slice_tiles.html',
	    bindings: {
	        timeSlices: '<'
	    },
	    controller: TimeSliceTilesController
	});


/***/ }),
/* 1748 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	var utility_ts_orm_1 = __webpack_require__(3);
	var _4 = __webpack_require__(1);
	var timeline_servant_1 = __webpack_require__(219);
	var timeline_theme_strategy_1 = __webpack_require__(716);
	var TimelineQuery = /** @class */ (function () {
	    function TimelineQuery(ngSectionsDatasource, ngTermSessionsDatasource, ngTermProgramInfoModel, ngSectionInfoServant, ngScheduledSectionStatusServant, ngTimelineServant, ngSectionTypeFilters, ngUnscheduledSectionServant, getCSSClassForString, ngCalendarTimesModel, ngSelectedUnscheduledSectionModel, ngWaitlistStatusDatasource, ngSectionAvailabilityDatasource) {
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngTermSessionsDatasource = ngTermSessionsDatasource;
	        this.ngTermProgramInfoModel = ngTermProgramInfoModel;
	        this.ngSectionInfoServant = ngSectionInfoServant;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.ngTimelineServant = ngTimelineServant;
	        this.ngSectionTypeFilters = ngSectionTypeFilters;
	        this.ngUnscheduledSectionServant = ngUnscheduledSectionServant;
	        this.getCSSClassForString = getCSSClassForString;
	        this.ngCalendarTimesModel = ngCalendarTimesModel;
	        this.ngSelectedUnscheduledSectionModel = ngSelectedUnscheduledSectionModel;
	        this.ngWaitlistStatusDatasource = ngWaitlistStatusDatasource;
	        this.ngSectionAvailabilityDatasource = ngSectionAvailabilityDatasource;
	        utility_ts_orm_1.ORMMediator.registerQuery(this, ngWaitlistStatusDatasource, ngSectionAvailabilityDatasource, ngCalendarTimesModel, ngSectionsDatasource, ngSelectedUnscheduledSectionModel);
	    }
	    Object.defineProperty(TimelineQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    TimelineQuery.prototype.run = function () {
	        var _this = this;
	        var termInfo = this.ngTermProgramInfoModel.read();
	        var sortedSections = _4.sortBy(this.ngSectionsDatasource.query(function (section) {
	            return _4.includes(tslib_1.__spreadArrays(scheduled_section_status_enum_1.ScheduledSectionStatus.getRegisteredSectionStatuses(), scheduled_section_status_enum_1.ScheduledSectionStatus.getScheduledSectionStatuses(), scheduled_section_status_enum_1.ScheduledSectionStatus.getWaitlistedSectionStatuses()), section.status);
	        }), ['course', 'class_start_dt']);
	        var sectionsWithCourses = this.ngSectionsDatasource.metasource().composes(sortedSections);
	        var previewSection = this.ngSelectedUnscheduledSectionModel.read();
	        if (!_4.isEmpty(previewSection._course)) {
	            previewSection.status = 'PREVIEW';
	            sectionsWithCourses.push(previewSection);
	        }
	        // SGD-20093 - Scheduler designed to show sections spans within a particular term and with this ticket
	        // we're enforcing the idea of term start and end date will super cede the section start and end date
	        var timelineStartDate = moment(_4.get(termInfo, 'term.term_start_dt'));
	        var timelineEndDate = moment(_4.get(termInfo, 'term.term_end_dt'));
	        // TIMELINE HEADERS
	        var headers = [];
	        var footer = [];
	        var headerRange = [];
	        while (timelineEndDate.isSameOrAfter(timelineStartDate)) {
	            headerRange.push(timelineStartDate.format('YYYY-MM-DD'));
	            timelineStartDate = timelineStartDate.add(1, 'month');
	            if (timelineStartDate.month() === timelineEndDate.month() &&
	                timelineStartDate.year() === timelineEndDate.year()) {
	                // Reached end of range
	                headerRange.push(timelineEndDate.format('YYYY-MM-DD'));
	                break;
	            }
	        }
	        headers = this.ngTimelineServant.getHeaders(headerRange);
	        footer = this.ngTimelineServant.getFooters(sectionsWithCourses, _4.get(termInfo, 'term.term_start_dt'), _4.get(termInfo, 'term.term_end_dt'));
	        // TIMEBLOCKS
	        var timeblockResults = [];
	        var groupedTimeblocks = [];
	        _4.each(sectionsWithCourses, function (section, index, collection) {
	            var _a = timeline_servant_1.TimelineServant.getTimelineDateRange(termInfo.term, section.class_start_dt, section.class_end_dt), fromDate = _a.fromDate, toDate = _a.toDate;
	            var dateRangeForBodyText = _this.ngSectionInfoServant.convertDateToRange(fromDate, toDate, undefined, 'MMM Do');
	            var isRegistered = _this.ngScheduledSectionStatusServant.isRegisteredOrInprogress(section) ||
	                _this.ngScheduledSectionStatusServant.isCompleted(section);
	            var isShortSection = _this.ngSectionTypeFilters.isSectionDurationShorterThanTerm(section);
	            var isPreview = section.status === 'PREVIEW';
	            var timeblockColor = isPreview ? 'clr-6-bkg' : _this.getCSSClassForString(_4.get(section, '_course.nk'), 'bkg');
	            var isOnline = _this.ngUnscheduledSectionServant.isOnlineSection(section);
	            var blocks = _this.ngTimelineServant.getMultipleMeetingTimes(section, termInfo.term);
	            var timeblock = _this.ngTimelineServant.getTimelineBlock({
	                section: section,
	                isRegistered: isRegistered,
	                timeblockColor: timeblockColor ? timeline_theme_strategy_1.TimelineThemeStrategy.get(timeblockColor) : {},
	                dateRangeForBody: dateRangeForBodyText,
	                isShortSection: isShortSection,
	                isOnline: isOnline,
	                blocks: blocks,
	                timeblockResults: timeblockResults
	            });
	            timeblockResults.push(timeblock);
	        });
	        timeblockResults = this.ngTimelineServant.getUniqueDates(timeblockResults);
	        timeblockResults = this.ngTimelineServant.sortBySectionStartDate(timeblockResults);
	        timeblockResults = this.ngTimelineServant.prependBlockCount(timeblockResults);
	        // END TIMEBLOCKS
	        this._result = {
	            headers: headers,
	            timeblocks: timeblockResults,
	            groups: groupedTimeblocks,
	            footer: footer
	        };
	        return this;
	    };
	    return TimelineQuery;
	}());
	exports.TimelineQuery = TimelineQuery;
	angular.module('capability-ng-scheduler').service('ngTimelineQuery', TimelineQuery);


/***/ }),
/* 1749 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var TimelineController = /** @class */ (function () {
	    function TimelineController(ngTimelineQuery, ngComponentCommunicatorService, getSectionDetailsCommand, saveSelectedTimeSliceToModel) {
	        this.ngTimelineQuery = ngTimelineQuery;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.getSectionDetailsCommand = getSectionDetailsCommand;
	        this.saveSelectedTimeSliceToModel = saveSelectedTimeSliceToModel;
	    }
	    TimelineController.prototype.timeSliceChanged = function () {
	        this.timeSlices = [];
	    };
	    TimelineController.prototype.subHeadingClick = function (event) {
	        this.updateSelectedTimeSlice(event.detail.srcElement.start);
	    };
	    TimelineController.prototype.updateSelectedTimeSlice = function (startUnix) {
	        var timeSlice = _4.find(this.timeSlices, { startUnix: startUnix });
	        this.saveSelectedTimeSliceToModel(timeSlice);
	    };
	    TimelineController.prototype.openSectionDetail = function (timeblock) {
	        var _this = this;
	        this.getSectionDetailsCommand(timeblock.section.id).then(function () {
	            return _this.ngComponentCommunicatorService.publish('OPEN_SECTION_DETAIL_MODAL');
	        });
	    };
	    return TimelineController;
	}());
	angular.module('capability-ng-scheduler').component('timeline', {
	    templateUrl: 'capability-ng-scheduler/src/components/timeline/timeline.html',
	    bindings: {
	        headers: '<',
	        timeblocks: '<',
	        timeblockHighlight: '<',
	        timeblockGroups: '<',
	        timeSlices: '<',
	        footer: '<'
	    },
	    controller: TimelineController
	});


/***/ }),
/* 1750 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var transient_access_cred_constants_1 = __webpack_require__(26);
	var _4 = __webpack_require__(1);
	var section_tile_menu_enum_1 = __webpack_require__(60);
	var WithdrawModalController = /** @class */ (function () {
	    function WithdrawModalController($state, ngSchedulerModel, ngDropCourseFacade, saveTermPinCommand, ngSectionsDatasource, ngPreventTransientAccessQuery, ngComponentCommunicatorService, $stateParams, ngSelectedSectionActionsFacade) {
	        this.$state = $state;
	        this.ngSchedulerModel = ngSchedulerModel;
	        this.ngDropCourseFacade = ngDropCourseFacade;
	        this.saveTermPinCommand = saveTermPinCommand;
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngPreventTransientAccessQuery = ngPreventTransientAccessQuery;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.$stateParams = $stateParams;
	        this.ngSelectedSectionActionsFacade = ngSelectedSectionActionsFacade;
	        this.opened = true;
	        this.sectionId = 0;
	        this.withdrawConfirmationText = '';
	        this.withdrawBound = this.withdraw.bind(this);
	        this.closeDialogBound = this.closeDialog.bind(this);
	        this.releaseSubscribedEvents();
	        this.ngComponentCommunicatorService.subscribe(transient_access_cred_constants_1.TransientAccessCredEventNames.CRED_FORM_ENTRY_CANCELLED, this.closeDialogBound);
	        this.ngComponentCommunicatorService.subscribe(transient_access_cred_constants_1.TransientAccessCredEventNames.NEW_CRED_SAVED, this.withdrawBound);
	    }
	    WithdrawModalController.prototype.releaseSubscribedEvents = function () {
	        this.ngComponentCommunicatorService.release(transient_access_cred_constants_1.TransientAccessCredEventNames.CRED_FORM_ENTRY_CANCELLED, this.closeDialogBound);
	        this.ngComponentCommunicatorService.release(transient_access_cred_constants_1.TransientAccessCredEventNames.NEW_CRED_SAVED, this.withdrawBound);
	    };
	    WithdrawModalController.prototype.closeDialog = function () {
	        this.opened = false;
	        this.releaseSubscribedEvents();
	        this.$state.__goToPrevious__();
	    };
	    WithdrawModalController.prototype.$onInit = function () {
	        this.init();
	    };
	    WithdrawModalController.prototype.init = function () {
	        this.withdrawConfirmationText = this.ngSelectedSectionActionsFacade.getWithdrawText();
	        this.sectionId = parseInt(this.$stateParams.sectionId, 10);
	        this.section = _4.find(this.ngSectionsDatasource.metasource().derived(), { id: this.sectionId });
	    };
	    WithdrawModalController.prototype.withdraw = function () {
	        var _this = this;
	        if (this.ngPreventTransientAccessQuery.result.redirectToAuthWorkflow) {
	            return this.ngComponentCommunicatorService.publish(transient_access_cred_constants_1.TransientAccessCredEventNames.TOGGLE_CRED_STEPS);
	        }
	        var action = {
	            id: section_tile_menu_enum_1.SectionTileMenuEnum.WITHDRAW,
	            text: ''
	        };
	        // Todo added section pin
	        var sectionPins = {};
	        this.saveTermPinCommand(this.$stateParams.termId).then(function () {
	            _this.ngDropCourseFacade.dropCourseAndCoreqs(_this.section, action, sectionPins, _this.ngPreventTransientAccessQuery.result.output);
	        });
	        return this.closeDialog();
	    };
	    return WithdrawModalController;
	}());
	exports.WithdrawModalController = WithdrawModalController;
	angular.module('capability-ng-scheduler').component('withdrawModal', {
	    controller: WithdrawModalController,
	    templateUrl: 'capability-ng-scheduler/src/components/withdraw_modal/withdraw_modal.html'
	});


/***/ }),
/* 1751 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(1679);
	__webpack_require__(712);
	__webpack_require__(1680);
	__webpack_require__(1681);
	__webpack_require__(1678);
	__webpack_require__(1682);
	__webpack_require__(1684);
	__webpack_require__(1683);
	__webpack_require__(1685);
	__webpack_require__(1686);
	__webpack_require__(1687);
	__webpack_require__(1688);
	__webpack_require__(1689);
	__webpack_require__(1690);
	__webpack_require__(1691);
	__webpack_require__(1692);
	__webpack_require__(1693);
	__webpack_require__(1694);
	__webpack_require__(1695);
	__webpack_require__(1696);
	__webpack_require__(1697);
	__webpack_require__(1698);
	__webpack_require__(1699);
	__webpack_require__(1700);
	__webpack_require__(1734);
	__webpack_require__(1733);
	__webpack_require__(1735);
	__webpack_require__(1701);
	__webpack_require__(1702);
	__webpack_require__(1703);
	__webpack_require__(1704);
	__webpack_require__(1705);
	__webpack_require__(713);
	__webpack_require__(1706);
	__webpack_require__(1727);
	__webpack_require__(1724);
	__webpack_require__(1726);
	__webpack_require__(1725);
	__webpack_require__(1728);
	__webpack_require__(1729);
	__webpack_require__(1730);
	__webpack_require__(1731);
	__webpack_require__(1707);
	__webpack_require__(714);
	__webpack_require__(1708);
	__webpack_require__(1709);
	__webpack_require__(1710);
	__webpack_require__(1711);
	__webpack_require__(1712);
	__webpack_require__(715);
	__webpack_require__(1713);
	__webpack_require__(1714);
	__webpack_require__(1715);
	__webpack_require__(1716);
	__webpack_require__(1717);
	__webpack_require__(1718);
	__webpack_require__(1719);
	__webpack_require__(1720);
	__webpack_require__(1721);
	__webpack_require__(1722);
	__webpack_require__(1723);
	__webpack_require__(1732);
	__webpack_require__(949);
	__webpack_require__(950);
	__webpack_require__(951);
	__webpack_require__(952);
	__webpack_require__(1736);
	__webpack_require__(1737);
	__webpack_require__(1738);
	__webpack_require__(1739);
	__webpack_require__(1740);
	__webpack_require__(1741);
	__webpack_require__(1742);
	__webpack_require__(1743);
	__webpack_require__(1744);
	__webpack_require__(1745);
	__webpack_require__(1746);
	__webpack_require__(1747);
	__webpack_require__(1748);
	__webpack_require__(219);
	__webpack_require__(716);
	__webpack_require__(1749);
	__webpack_require__(1750);
	__webpack_require__(717);
	__webpack_require__(718);
	__webpack_require__(719);
	__webpack_require__(1752);
	__webpack_require__(1753);
	__webpack_require__(1754);
	__webpack_require__(720);
	__webpack_require__(1756);
	__webpack_require__(1757);
	__webpack_require__(1758);
	__webpack_require__(1759);
	__webpack_require__(1760);
	__webpack_require__(1761);
	__webpack_require__(1762);
	__webpack_require__(1763);
	__webpack_require__(26);
	__webpack_require__(1764);
	__webpack_require__(1765);
	__webpack_require__(1766);
	__webpack_require__(721);
	__webpack_require__(1767);
	__webpack_require__(1768);
	__webpack_require__(1769);
	__webpack_require__(1770);
	__webpack_require__(1771);
	__webpack_require__(1772);
	__webpack_require__(1773);
	__webpack_require__(1774);
	__webpack_require__(1775);
	__webpack_require__(1776);
	__webpack_require__(220);
	__webpack_require__(1777);
	__webpack_require__(1778);
	__webpack_require__(1779);
	__webpack_require__(1780);
	__webpack_require__(722);
	__webpack_require__(1781);
	__webpack_require__(723);
	__webpack_require__(1782);
	__webpack_require__(724);
	__webpack_require__(725);
	__webpack_require__(1786);
	__webpack_require__(1787);
	__webpack_require__(1785);
	__webpack_require__(1783);
	__webpack_require__(1784);
	__webpack_require__(1788);
	__webpack_require__(1789);
	__webpack_require__(1790);
	__webpack_require__(1791);
	__webpack_require__(726);
	__webpack_require__(727);
	__webpack_require__(1792);
	__webpack_require__(1794);
	__webpack_require__(1795);
	__webpack_require__(1793);
	__webpack_require__(1796);
	__webpack_require__(1797);
	__webpack_require__(728);
	__webpack_require__(1798);
	__webpack_require__(1799);
	__webpack_require__(729);
	__webpack_require__(1800);
	__webpack_require__(730);
	__webpack_require__(1801);
	__webpack_require__(1802);
	__webpack_require__(1803);
	__webpack_require__(1805);
	__webpack_require__(1806);
	__webpack_require__(1804);
	__webpack_require__(1807);
	__webpack_require__(731);
	__webpack_require__(1809);
	__webpack_require__(1808);
	__webpack_require__(1810);
	__webpack_require__(1811);
	__webpack_require__(732);
	__webpack_require__(733);
	__webpack_require__(1812);
	__webpack_require__(1813);
	__webpack_require__(1814);
	__webpack_require__(1815);
	__webpack_require__(1816);
	__webpack_require__(1817);
	__webpack_require__(1818);
	__webpack_require__(1819);
	__webpack_require__(1820);
	__webpack_require__(1821);
	__webpack_require__(1822);
	__webpack_require__(1823);
	__webpack_require__(1824);
	__webpack_require__(1825);
	__webpack_require__(1826);
	__webpack_require__(1827);
	__webpack_require__(1828);
	__webpack_require__(1829);
	__webpack_require__(1830);
	__webpack_require__(1831);
	__webpack_require__(1832);
	__webpack_require__(734);
	__webpack_require__(221);
	__webpack_require__(1833);
	__webpack_require__(1834);
	__webpack_require__(1839);
	__webpack_require__(1840);
	__webpack_require__(1838);
	__webpack_require__(1843);
	__webpack_require__(1842);
	__webpack_require__(1837);
	__webpack_require__(1836);
	__webpack_require__(1845);
	__webpack_require__(1844);
	__webpack_require__(1841);
	__webpack_require__(1846);
	__webpack_require__(1847);
	__webpack_require__(1848);
	__webpack_require__(1849);
	__webpack_require__(1850);
	__webpack_require__(1851);
	__webpack_require__(1852);
	__webpack_require__(1853);
	__webpack_require__(1854);
	__webpack_require__(1855);
	__webpack_require__(1856);
	__webpack_require__(1857);
	__webpack_require__(1858);
	__webpack_require__(735);
	__webpack_require__(1859);
	__webpack_require__(1860);
	__webpack_require__(1861);
	__webpack_require__(1862);
	__webpack_require__(1863);
	__webpack_require__(1864);
	__webpack_require__(1865);
	__webpack_require__(1866);
	__webpack_require__(1867);
	__webpack_require__(1868);
	__webpack_require__(1869);
	__webpack_require__(953);
	__webpack_require__(954);
	__webpack_require__(955);
	__webpack_require__(956);
	__webpack_require__(1870);
	__webpack_require__(1871);
	__webpack_require__(1872);
	__webpack_require__(1873);
	__webpack_require__(1874);
	__webpack_require__(1875);
	__webpack_require__(1876);
	__webpack_require__(1877);
	__webpack_require__(1878);
	__webpack_require__(1879);
	__webpack_require__(1880);
	__webpack_require__(1881);
	__webpack_require__(1882);
	__webpack_require__(1883);
	__webpack_require__(1884);
	__webpack_require__(1885);
	__webpack_require__(1886);
	__webpack_require__(1887);
	__webpack_require__(736);
	__webpack_require__(285);
	__webpack_require__(286);
	__webpack_require__(287);
	__webpack_require__(288);
	__webpack_require__(289);
	__webpack_require__(290);
	__webpack_require__(291);
	__webpack_require__(292);
	__webpack_require__(293);
	__webpack_require__(294);
	__webpack_require__(295);
	__webpack_require__(296);
	__webpack_require__(222);
	__webpack_require__(1888);
	__webpack_require__(737);
	__webpack_require__(738);
	__webpack_require__(739);
	__webpack_require__(740);
	__webpack_require__(1889);
	__webpack_require__(741);
	__webpack_require__(1890);
	__webpack_require__(742);
	__webpack_require__(743);
	__webpack_require__(744);
	__webpack_require__(1891);
	__webpack_require__(745);
	__webpack_require__(746);
	__webpack_require__(747);
	__webpack_require__(748);
	__webpack_require__(749);
	__webpack_require__(750);
	__webpack_require__(757);
	__webpack_require__(751);
	__webpack_require__(223);
	__webpack_require__(752);
	__webpack_require__(753);
	__webpack_require__(224);
	__webpack_require__(754);
	__webpack_require__(755);
	__webpack_require__(1892);
	__webpack_require__(756);
	__webpack_require__(758);
	__webpack_require__(759);
	__webpack_require__(58);
	__webpack_require__(760);
	__webpack_require__(761);
	__webpack_require__(1894);
	__webpack_require__(1893);
	__webpack_require__(762);
	__webpack_require__(763);
	__webpack_require__(764);
	__webpack_require__(1895);
	__webpack_require__(297);
	__webpack_require__(298);
	__webpack_require__(765);
	__webpack_require__(299);
	__webpack_require__(300);
	__webpack_require__(301);
	__webpack_require__(766);
	__webpack_require__(767);
	__webpack_require__(768);
	__webpack_require__(1896);
	__webpack_require__(769);
	__webpack_require__(770);
	__webpack_require__(1897);
	__webpack_require__(225);
	__webpack_require__(226);
	__webpack_require__(771);
	__webpack_require__(772);
	__webpack_require__(773);
	__webpack_require__(774);
	__webpack_require__(19);
	__webpack_require__(1898);
	__webpack_require__(227);
	__webpack_require__(228);
	__webpack_require__(59);
	__webpack_require__(31);
	__webpack_require__(775);
	__webpack_require__(1899);
	__webpack_require__(229);
	__webpack_require__(44);
	__webpack_require__(230);
	__webpack_require__(231);
	__webpack_require__(32);
	__webpack_require__(100);
	__webpack_require__(10);
	__webpack_require__(232);
	__webpack_require__(60);
	__webpack_require__(1900);
	__webpack_require__(1905);
	__webpack_require__(1902);
	__webpack_require__(1906);
	__webpack_require__(1904);
	__webpack_require__(1903);
	__webpack_require__(1901);
	__webpack_require__(1907);
	__webpack_require__(1908);
	__webpack_require__(1909);
	__webpack_require__(1910);
	__webpack_require__(1911);
	__webpack_require__(1913);
	__webpack_require__(1914);
	__webpack_require__(1912);
	__webpack_require__(1915);
	__webpack_require__(1916);
	__webpack_require__(1917);
	__webpack_require__(1918);
	__webpack_require__(1919);
	__webpack_require__(1920);
	__webpack_require__(1921);
	__webpack_require__(1922);
	__webpack_require__(1923);
	__webpack_require__(1924);
	__webpack_require__(1925);
	__webpack_require__(1926);
	__webpack_require__(1932);
	__webpack_require__(1933);
	__webpack_require__(1928);
	__webpack_require__(1930);
	__webpack_require__(1931);
	__webpack_require__(1929);
	__webpack_require__(1927);
	__webpack_require__(1941);
	__webpack_require__(1942);
	__webpack_require__(1944);
	__webpack_require__(1943);
	__webpack_require__(1940);
	__webpack_require__(1934);
	__webpack_require__(1937);
	__webpack_require__(1935);
	__webpack_require__(1936);
	__webpack_require__(1939);
	__webpack_require__(1938);
	__webpack_require__(1945);
	__webpack_require__(776);
	__webpack_require__(1946);
	__webpack_require__(1947);
	__webpack_require__(1948);
	__webpack_require__(1949);
	__webpack_require__(777);
	__webpack_require__(1951);
	__webpack_require__(778);
	__webpack_require__(779);
	__webpack_require__(780);
	__webpack_require__(233);
	__webpack_require__(781);
	__webpack_require__(782);
	__webpack_require__(1952);
	__webpack_require__(1953);
	__webpack_require__(1954);
	__webpack_require__(1955);
	__webpack_require__(1956);
	__webpack_require__(1957);
	__webpack_require__(1958);
	__webpack_require__(1959);
	__webpack_require__(1960);
	__webpack_require__(1961);
	__webpack_require__(1962);
	__webpack_require__(1963);
	__webpack_require__(1964);
	__webpack_require__(783);
	__webpack_require__(784);
	__webpack_require__(785);
	__webpack_require__(786);
	__webpack_require__(1965);
	__webpack_require__(1966);
	__webpack_require__(1967);
	__webpack_require__(1968);
	__webpack_require__(1969);
	__webpack_require__(1970);
	__webpack_require__(1971);
	__webpack_require__(1972);
	__webpack_require__(1973);
	__webpack_require__(1974);
	__webpack_require__(1975);
	__webpack_require__(1976);
	__webpack_require__(1977);
	__webpack_require__(1978);
	__webpack_require__(1979);
	__webpack_require__(1980);
	__webpack_require__(1981);
	__webpack_require__(1982);
	__webpack_require__(14);
	__webpack_require__(1983);
	__webpack_require__(1985);
	__webpack_require__(1984);
	__webpack_require__(1986);
	__webpack_require__(1987);
	__webpack_require__(1988);
	__webpack_require__(1989);
	__webpack_require__(1990);
	__webpack_require__(1991);
	__webpack_require__(1992);
	__webpack_require__(1993);
	__webpack_require__(787);
	__webpack_require__(1994);
	__webpack_require__(1995);
	__webpack_require__(1996);
	__webpack_require__(1997);
	__webpack_require__(788);


/***/ }),
/* 1752 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('ngSchedulerNotificationDelegate', function (phxNotificationDelegate) {
	    return phxNotificationDelegate.restrictTo('reg-alerts');
	});


/***/ }),
/* 1753 */
/***/ (function(module, exports) {

	var HilConnectorByInput = /** @class */ (function () {
	    function HilConnectorByInput($element) {
	        this.$element = $element;
	        this.level = 1;
	    }
	    HilConnectorByInput.prototype.$onInit = function () {
	        var aiView = this.$element[0].querySelector('ai-view');
	        var elInput = this.$element[0]['input'];
	        window['hiReady'](function () {
	            if (aiView) {
	                aiView['invoke'](elInput);
	            }
	        });
	    };
	    return HilConnectorByInput;
	}());
	angular.module('capability-ng-scheduler').component('hilConnectorByInput', {
	    template: "<ai-view level=\"{{$ctrl.level}}\" id=\"hil-connector-by-input\"></ai-view>",
	    bindings: {
	        input: '<',
	        level: '<'
	    },
	    controller: HilConnectorByInput
	});


/***/ }),
/* 1754 */
880,
/* 1755 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	__webpack_require__(1835);
	angular.module('capability-ng-scheduler', [
	    'ui.router',
	    'ui-ng-draggable',
	    'ui-ng-dropdown',
	    'ui-ng-sibling',
	    'ui-ng-modal',
	    'ui-ng-calendar',
	    'ui-ng-calendar-time',
	    'utility-ng-interface',
	    'utility-ng-configuration',
	    'utility-ng-enumeration',
	    'utility-ng-auth-token',
	    'data-ng-authentication',
	    'data-ng-custom-text',
	    'ui-ng-component-communicator',
	    'biz-ng-requisite-tree',
	    'ng-screen-query'
	]);
	__webpack_require__(1751);
	__webpack_require__(720);
	tslib_1.__exportStar(__webpack_require__(719), exports);
	tslib_1.__exportStar(__webpack_require__(717), exports);
	tslib_1.__exportStar(__webpack_require__(730), exports);
	tslib_1.__exportStar(__webpack_require__(732), exports);
	exports.scheduler = 'capability-ng-scheduler';


/***/ }),
/* 1756 */
880,
/* 1757 */
880,
/* 1758 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('clearTransientAccessCredCommand', function (ngTransientAccessCredModel, defineCommandORM) {
	    return defineCommandORM('clearTransientAccessCredCommand', function (deferred) {
	        ngTransientAccessCredModel.clear();
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1759 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('saveTransientAccessCredCommand', function (ngTransientAccessCredModel, defineCommandORM) {
	    return defineCommandORM('saveTransientAccessCredCommand', function (deferred, accessCred) {
	        ngTransientAccessCredModel.write(accessCred);
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1760 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('updateTransientAccessCredWorkflowCommand', function (ngTransientAccessCredWorkflowModel, defineCommandORM) {
	    return defineCommandORM('updateTransientAccessCredWorkflowCommand', function (deferred, workflowUpdate) {
	        ngTransientAccessCredWorkflowModel.write(workflowUpdate);
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1761 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var transient_access_cred_constants_1 = __webpack_require__(26);
	var TransientAccessCredDialog = /** @class */ (function () {
	    function TransientAccessCredDialog(ngComponentCommunicatorService, $element, clearTransientAccessCredCommand) {
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.$element = $element;
	        this.clearTransientAccessCredCommand = clearTransientAccessCredCommand;
	        this.closeDialogBound = this.closeDialog.bind(this);
	        this.openDialogBound = this.openDialog.bind(this);
	    }
	    TransientAccessCredDialog.prototype.$onInit = function () {
	        this.clearAccessCred();
	        this.ngComponentCommunicatorService.subscribe(transient_access_cred_constants_1.TransientAccessCredEventNames.CRED_FORM_ENTRY_CANCELLED, this.closeDialogBound);
	        this.ngComponentCommunicatorService.subscribe(transient_access_cred_constants_1.TransientAccessCredEventNames.NEW_CRED_SAVED, this.closeDialogBound);
	        this.ngComponentCommunicatorService.subscribe(transient_access_cred_constants_1.TransientAccessCredEventNames.OPEN_CRED_DIALOG, this.openDialogBound);
	    };
	    TransientAccessCredDialog.prototype.$onDestroy = function () {
	        this.ngComponentCommunicatorService.release(transient_access_cred_constants_1.TransientAccessCredEventNames.CRED_FORM_ENTRY_CANCELLED, this.closeDialogBound);
	        this.ngComponentCommunicatorService.release(transient_access_cred_constants_1.TransientAccessCredEventNames.NEW_CRED_SAVED, this.closeDialogBound);
	        this.ngComponentCommunicatorService.release(transient_access_cred_constants_1.TransientAccessCredEventNames.OPEN_CRED_DIALOG, this.openDialogBound);
	    };
	    TransientAccessCredDialog.prototype.openDialog = function () {
	        var dialog = this.$element[0].querySelector('hi-dialog');
	        if (!dialog) {
	            return;
	        }
	        var form = dialog.querySelector('hi-form');
	        if (form) {
	            form.reset();
	        }
	        dialog.setAttribute('opened', 'true');
	    };
	    TransientAccessCredDialog.prototype.closeDialog = function () {
	        this.$element[0].querySelector('hi-dialog').removeAttribute('opened');
	    };
	    TransientAccessCredDialog.prototype.clearAccessCred = function () {
	        var _this = this;
	        return this.clearTransientAccessCredCommand().then(function () {
	            return _this.ngComponentCommunicatorService.publish(transient_access_cred_constants_1.TransientAccessCredEventNames.CRED_CLEARED);
	        });
	    };
	    return TransientAccessCredDialog;
	}());
	angular.module('capability-ng-scheduler').component('transientAccessCredDialog', {
	    templateUrl: 'capability-ng-scheduler/src/prevent_transient_access/components/transient_access_cred_dialog/transient_access_cred_dialog.html',
	    controller: TransientAccessCredDialog
	});


/***/ }),
/* 1762 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var transient_access_cred_constants_1 = __webpack_require__(26);
	var TransientAccessCredForm = /** @class */ (function () {
	    function TransientAccessCredForm(ngComponentCommunicatorService, saveTransientAccessCredCommand, clearTransientAccessCredCommand) {
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.saveTransientAccessCredCommand = saveTransientAccessCredCommand;
	        this.clearTransientAccessCredCommand = clearTransientAccessCredCommand;
	    }
	    TransientAccessCredForm.prototype.clearAccessCred = function () {
	        var _this = this;
	        return this.clearTransientAccessCredCommand().then(function () {
	            return _this.ngComponentCommunicatorService.publish(transient_access_cred_constants_1.TransientAccessCredEventNames.CRED_CLEARED);
	        });
	    };
	    TransientAccessCredForm.prototype.onTransientAccessFormSubmitted = function ($event) {
	        var _this = this;
	        this.saveTransientAccessCredCommand($event.detail.value)
	            .then(function () { return _this.ngComponentCommunicatorService.publish(transient_access_cred_constants_1.TransientAccessCredEventNames.NEW_CRED_SAVED); })
	            .catch(function (e) { return _this.clearAccessCred(); });
	    };
	    TransientAccessCredForm.prototype.onClickCancelButton = function () {
	        var _this = this;
	        return this.clearAccessCred().then(function () {
	            return _this.ngComponentCommunicatorService.publish(transient_access_cred_constants_1.TransientAccessCredEventNames.CRED_FORM_ENTRY_CANCELLED);
	        });
	    };
	    return TransientAccessCredForm;
	}());
	angular.module('capability-ng-scheduler').component('transientAccessCredForm', {
	    templateUrl: 'capability-ng-scheduler/src/prevent_transient_access/components/transient_access_cred_form/transient_access_cred_form.html',
	    bindings: {},
	    controller: TransientAccessCredForm
	});


/***/ }),
/* 1763 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var transient_access_cred_constants_1 = __webpack_require__(26);
	var _4 = __webpack_require__(1);
	var TransientAccessCredStepsComponent = /** @class */ (function () {
	    function TransientAccessCredStepsComponent(ngPreventTransientAccessQuery, clearTransientAccessCredCommand, ngComponentCommunicatorService) {
	        this.ngPreventTransientAccessQuery = ngPreventTransientAccessQuery;
	        this.clearTransientAccessCredCommand = clearTransientAccessCredCommand;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.chooseActionSwitchValue = 'choose-action';
	        this.confirmAuthSwitchValue = 'confirm-auth';
	        this.selectedStepValue = this.chooseActionSwitchValue;
	        this.uniqueId = _4.uniqueId();
	        this.commonIdentifier = 'transient-access-cred-';
	        this.stepGroupId = this.commonIdentifier + "steps-" + this.uniqueId;
	        this.toggleStepsBound = this.toggleSteps.bind(this);
	    }
	    TransientAccessCredStepsComponent.prototype.$onInit = function () {
	        this.clearTransientAccessCredCommand();
	        this.ngComponentCommunicatorService.subscribe(transient_access_cred_constants_1.TransientAccessCredEventNames.TOGGLE_CRED_STEPS, this.toggleStepsBound);
	    };
	    TransientAccessCredStepsComponent.prototype.$onDestroy = function () {
	        this.ngComponentCommunicatorService.release(transient_access_cred_constants_1.TransientAccessCredEventNames.TOGGLE_CRED_STEPS, this.toggleStepsBound);
	    };
	    TransientAccessCredStepsComponent.prototype.toggleSteps = function () {
	        var _a;
	        var toggleStepMap = (_a = {},
	            _a[this.confirmAuthSwitchValue] = this.chooseActionSwitchValue,
	            _a[this.chooseActionSwitchValue] = this.confirmAuthSwitchValue,
	            _a);
	        this.selectedStepValue = toggleStepMap[this.selectedStepValue];
	    };
	    TransientAccessCredStepsComponent.prototype.stepSelectionChanged = function ($event) {
	        if (_4.isNil($event.detail.value)) {
	            return;
	        }
	        if (this.selectedStepValue !== $event.detail.value) {
	            this.selectedStepValue = $event.detail.value;
	        }
	    };
	    return TransientAccessCredStepsComponent;
	}());
	exports.TransientAccessCredStepsComponent = TransientAccessCredStepsComponent;
	angular.module('capability-ng-scheduler').component('transientAccessCredStepsComponent', {
	    controller: TransientAccessCredStepsComponent,
	    transclude: true,
	    templateUrl: 'capability-ng-scheduler/src/prevent_transient_access/components/transient_access_cred_steps_component/transient_access_cred_steps_component.html'
	});


/***/ }),
/* 1764 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngTransientAccessCredModel', function () {
	    return new utility_ts_orm_1.Model({
	        username: '',
	        password: ''
	    });
	});


/***/ }),
/* 1765 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngTransientAccessCredWorkflowModel', function () {
	    return new utility_ts_orm_1.Model({
	        enabled: true
	    });
	});


/***/ }),
/* 1766 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var _4 = __webpack_require__(1);
	var PreventTransientAccessQuery = /** @class */ (function () {
	    function PreventTransientAccessQuery(ngTransientAccessCredModel, ngTransientAccessCredWorkflowModel, appConfigModel) {
	        this.ngTransientAccessCredModel = ngTransientAccessCredModel;
	        this.ngTransientAccessCredWorkflowModel = ngTransientAccessCredWorkflowModel;
	        this.appConfigModel = appConfigModel;
	        utility_ts_orm_1.Query.registerQuery(this, ngTransientAccessCredModel, ngTransientAccessCredWorkflowModel);
	    }
	    Object.defineProperty(PreventTransientAccessQuery.prototype, "result", {
	        get: function () {
	            var workflowTempEnabled = this.ngTransientAccessCredWorkflowModel.read().enabled;
	            var preventTransientAccessFeatureEnabled = this.appConfigModel.isFeatureEnabled('reg-scheduler_user_credentials');
	            var preventTransientAccessEnabled = workflowTempEnabled && preventTransientAccessFeatureEnabled;
	            if (preventTransientAccessEnabled) {
	                var studentCred = this.ngTransientAccessCredModel.read();
	                var isEmpty = _4.isEmpty(studentCred.password) || _4.isEmpty(studentCred.username);
	                return {
	                    workflowEnabled: true,
	                    output: {
	                        student_credentials: studentCred
	                    },
	                    redirectToAuthWorkflow: isEmpty
	                };
	            }
	            return {
	                workflowEnabled: false,
	                output: undefined,
	                redirectToAuthWorkflow: false
	            };
	        },
	        enumerable: true,
	        configurable: true
	    });
	    PreventTransientAccessQuery.prototype.run = function () {
	        return this;
	    };
	    return PreventTransientAccessQuery;
	}());
	exports.PreventTransientAccessQuery = PreventTransientAccessQuery;
	angular.module('capability-ng-scheduler').service('ngPreventTransientAccessQuery', PreventTransientAccessQuery);


/***/ }),
/* 1767 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .factory('loadAllRegistrationAttributesForSectionsCommand', function (defineCommandORM, loadSectionRegistrationAttributesCommand, ngSectionsDatasource, $q, log, ngRegistrationAttributesFacade, ngSectionRegistrationAttributesDatasource) {
	    return defineCommandORM('loadAllRegistrationAttributesForSectionsCommand', function (deferred) {
	        var loadRegistrationAttributesFeatureEnabled = ngRegistrationAttributesFacade.isFeatureEnabled();
	        if (!loadRegistrationAttributesFeatureEnabled) {
	            deferred.resolve();
	            return;
	        }
	        var allSectionIds = ngSectionsDatasource
	            .values()
	            .filter(function (section) { return !_4.includes([scheduled_section_status_enum_1.ScheduledSectionStatus.PENDING], section.status); })
	            .filter(function (section) {
	            return _4.includes([
	                scheduled_section_status_enum_1.ScheduledSectionStatus.SECTION_PICKED,
	                scheduled_section_status_enum_1.ScheduledSectionStatus.WAITLISTED,
	                scheduled_section_status_enum_1.ScheduledSectionStatus.WAITLISTDROPFAILED,
	                scheduled_section_status_enum_1.ScheduledSectionStatus.WAITLISTEDCANADD,
	                scheduled_section_status_enum_1.ScheduledSectionStatus.WAITLISTFAILED
	            ], section.status);
	        })
	            .map(function (section) { return section.id; });
	        var sectionIdsForRegAttrLoading = allSectionIds.filter(function (id) {
	            return _4.isEmpty(ngSectionRegistrationAttributesDatasource.get(id));
	        });
	        var loadAllRegistrationAttributesForSections = sectionIdsForRegAttrLoading.map(function (sectionId) {
	            return loadSectionRegistrationAttributesCommand(sectionId);
	        });
	        $q.all(loadAllRegistrationAttributesForSections)
	            .then(function () { return deferred.resolve(); })
	            .catch(function (e) {
	            log.issue("Failed to load the registration attributes for sections");
	            deferred.reject(e);
	        });
	        return;
	    });
	});


/***/ }),
/* 1768 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var registration_attributes_servant_1 = __webpack_require__(220);
	angular
	    .module('capability-ng-scheduler')
	    .factory('loadSectionRegistrationAttributesCommand', function (defineCommandORM, $http, ngRegistrationAttributesFacade, log, ngSectionRegistrationAttributesDatasource) {
	    return defineCommandORM('loadSectionRegistrationAttributesCommand', function (deferred, sectionId) {
	        var sectionRegAttrFeatureEnabled = ngRegistrationAttributesFacade.isFeatureEnabled();
	        if (!sectionRegAttrFeatureEnabled) {
	            deferred.resolve();
	            return;
	        }
	        $http
	            .get("reg/configurable_attribute_options/" + sectionId + "/")
	            .then(function (_a) {
	            var data = _a.data;
	            var attributes = Array.isArray(data)
	                ? data.map(function (attribute) {
	                    var modifiedAttribute = tslib_1.__assign(tslib_1.__assign({}, attribute), { required: true, name: attribute.name + ("" + registration_attributes_servant_1.RegistrationAttributesServant.sectionSeperatorChar + attribute.section) });
	                    if (_4.isArray(attribute.options) && attribute.options.length === 1) {
	                        modifiedAttribute.initial_value = _4.first(attribute.options).value;
	                    }
	                    return modifiedAttribute;
	                })
	                : [];
	            ngSectionRegistrationAttributesDatasource.put({
	                id: sectionId,
	                attributes: attributes
	            });
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue("Failed to load the registration attributes for section(" + sectionId + ")");
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1769 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('removeSectionsRegistrationAttributesCommand', function (defineCommandORM, ngSectionRegistrationAttributesDatasource) {
	    return defineCommandORM('removeSectionsRegistrationAttributesCommand', function (deferred, sectionIds) {
	        if (sectionIds === void 0) { sectionIds = []; }
	        sectionIds.forEach(function (sectionId) {
	            var section = ngSectionRegistrationAttributesDatasource.get(sectionId);
	            if (section) {
	                ngSectionRegistrationAttributesDatasource.del(sectionId);
	            }
	        });
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1770 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var course_scheduler_constants_1 = __webpack_require__(58);
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .factory('storeRegistrationAttributeValuesCommand', function (defineCommand, ngSectionRegistrationAttributesDatasource) {
	    return defineCommand('storeRegistrationAttributeValuesCommand', function (deferred) {
	        var formElement = document.querySelector("#" + course_scheduler_constants_1.CourseSchedulerConstant.scheduledSectionFormId);
	        if (!formElement) {
	            deferred.resolve();
	            return;
	        }
	        var sectionAttributes = ngSectionRegistrationAttributesDatasource.read();
	        _4.forEach(sectionAttributes, function (sectionAttribute) {
	            sectionAttribute.attributes.forEach(function (attribute) {
	                var element = formElement.querySelector("[name='" + attribute.name + "']");
	                if (!element) {
	                    return;
	                }
	                var selectedValues = !_4.isEmpty(element['values']) ? _4.toArray(element['values']) : [];
	                var initialValue = !_4.isEmpty(selectedValues) ? selectedValues : element['value'];
	                attribute.initial_value = initialValue;
	            });
	        });
	        ngSectionRegistrationAttributesDatasource.write(sectionAttributes);
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1771 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var registration_attributes_servant_1 = __webpack_require__(220);
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .factory('submitRegAttrFormAndGetOutputCommand', function (defineCommand, ngSectionRegistrationAttributesFormOutputModel, ngSectionRegistrationAttributesQuery, ngRegistrationAttributesFacade) {
	    return defineCommand('submitRegAttrFormAndGetOutputCommand', function (deferred, formElement, formId, sectionIds) {
	        var regAttributesFeatureEnabled = ngRegistrationAttributesFacade.isFeatureEnabled();
	        if (!regAttributesFeatureEnabled) {
	            deferred.resolve();
	            return;
	        }
	        var prevFormOutput = ngSectionRegistrationAttributesFormOutputModel.read();
	        var selectionRecordExist = prevFormOutput.id === formId;
	        if (!formElement && selectionRecordExist) {
	            deferred.resolve(prevFormOutput.output);
	            return;
	        }
	        ngSectionRegistrationAttributesFormOutputModel.clear();
	        if (!formElement && !selectionRecordExist) {
	            deferred.reject();
	            return;
	        }
	        var isEmptyForm = sectionIds.every(function (sectionId) {
	            return _4.isEmpty(_4.get(ngSectionRegistrationAttributesQuery.result[sectionId], 'attributes.properties'));
	        });
	        if (isEmptyForm) {
	            deferred.resolve({});
	            return;
	        }
	        var formElementOutput = formElement.output;
	        var isFormValid = !_4.isEmpty(formElementOutput);
	        if (!isFormValid || !formElementOutput) {
	            deferred.reject();
	            return;
	        }
	        var formOutput = registration_attributes_servant_1.RegistrationAttributesServant.formRegAttributeApiParamFromFormOutput(formElementOutput);
	        ngSectionRegistrationAttributesFormOutputModel.write({
	            id: formId,
	            output: formOutput
	        });
	        deferred.resolve(formOutput);
	        return;
	    });
	});


/***/ }),
/* 1772 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .factory('waitForRegistraionAttributesToRenderCommand', function (defineCommand, $timeout, ngSectionRegistrationAttributesQuery) {
	    return defineCommand('waitForRegistraionAttributesToRenderCommand', function (deferred) {
	        var formUpdateRenderDelay = 300;
	        var totalNoOfAttributes = _4.sumBy(_4.toArray(ngSectionRegistrationAttributesQuery.result), function (section) { return section.attributes.properties.length; });
	        var timeOutDelay = formUpdateRenderDelay * totalNoOfAttributes;
	        $timeout(function () { return deferred.resolve(); }, timeOutDelay);
	    });
	});


/***/ }),
/* 1773 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var section_registraion_attributes_builder_1 = __webpack_require__(721);
	var utility_ng_kernel_1 = __webpack_require__(5);
	angular
	    .module('capability-ng-scheduler')
	    .factory('ngSectionRegistrationAttributesDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: section_registraion_attributes_builder_1.SectionRegistrationAttributes
	    });
	});


/***/ }),
/* 1774 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var RegistrationAttributesFacade = /** @class */ (function () {
	    function RegistrationAttributesFacade(appConfigModel) {
	        this.appConfigModel = appConfigModel;
	    }
	    RegistrationAttributesFacade.prototype.isFeatureEnabled = function () {
	        return this.appConfigModel.isFeatureEnabled('reg-configurable_attribute') === true;
	    };
	    return RegistrationAttributesFacade;
	}());
	exports.RegistrationAttributesFacade = RegistrationAttributesFacade;
	angular.module('capability-ng-scheduler').service('ngRegistrationAttributesFacade', RegistrationAttributesFacade);


/***/ }),
/* 1775 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	angular.module('capability-ng-scheduler').factory('ngSectionRegistrationAttributesFormOutputModel', function () {
	    return new utility_ng_kernel_1.Model({
	        id: undefined,
	        output: undefined
	    });
	});


/***/ }),
/* 1776 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var utility_ts_orm_1 = __webpack_require__(3);
	var _4 = __webpack_require__(1);
	var SectionRegistrationAttributesQuery = /** @class */ (function () {
	    function SectionRegistrationAttributesQuery(ngSectionRegistrationAttributesDatasource, ngRegisterSectionsDatasource, ngUnscheduledSectionServant, ngSectionsDatasource, ngRegisterSectionFilters, ngSectionDetailsModel, ngRegistrationAttributesFacade, ngCourseSectionSwapModel) {
	        this.ngSectionRegistrationAttributesDatasource = ngSectionRegistrationAttributesDatasource;
	        this.ngRegisterSectionsDatasource = ngRegisterSectionsDatasource;
	        this.ngUnscheduledSectionServant = ngUnscheduledSectionServant;
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngRegisterSectionFilters = ngRegisterSectionFilters;
	        this.ngSectionDetailsModel = ngSectionDetailsModel;
	        this.ngRegistrationAttributesFacade = ngRegistrationAttributesFacade;
	        this.ngCourseSectionSwapModel = ngCourseSectionSwapModel;
	        utility_ts_orm_1.Query.registerQuery(this, ngSectionDetailsModel, ngCourseSectionSwapModel, ngRegisterSectionsDatasource, ngSectionRegistrationAttributesDatasource);
	    }
	    Object.defineProperty(SectionRegistrationAttributesQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    SectionRegistrationAttributesQuery.prototype.getSectionIdsFromSwapMode = function () {
	        var _this = this;
	        return _4
	            .compact(_4.map(this.ngCourseSectionSwapModel.read().swap_to_section_ids, function (item) {
	            return _4.find(_this.ngSectionsDatasource.metasource().derived(), { id: item.id });
	        }))
	            .map(function (section) { return section.id; });
	    };
	    SectionRegistrationAttributesQuery.prototype.run = function () {
	        var sectionRegAttrFeatureEnabled = this.ngRegistrationAttributesFacade.isFeatureEnabled();
	        if (!sectionRegAttrFeatureEnabled) {
	            var emptyList = {};
	            this._result = emptyList;
	            return this;
	        }
	        var selectedSectionIds = this.ngRegisterSectionFilters
	            .getScheduledSelectableSections(this.ngRegisterSectionsDatasource.values())
	            .filter(function (section) { return section.is_selected && section._isEligibleForRegistration; })
	            .map(function (section) { return section.id; });
	        var validSectionIdsForRegAttributes = tslib_1.__spreadArrays(selectedSectionIds);
	        var selectedSectionIdForWaitListing = this.ngSectionDetailsModel.read().id;
	        var selectedSectionForWaitListing = _4.find(this.ngSectionsDatasource.metasource().derived(), {
	            id: selectedSectionIdForWaitListing
	        });
	        if (selectedSectionForWaitListing) {
	            var isSelectedForWaitListingSectionFull = this.ngUnscheduledSectionServant.isSectionFull(selectedSectionForWaitListing);
	            if (isSelectedForWaitListingSectionFull) {
	                validSectionIdsForRegAttributes.push(selectedSectionIdForWaitListing);
	            }
	        }
	        validSectionIdsForRegAttributes = validSectionIdsForRegAttributes.concat(this.getSectionIdsFromSwapMode());
	        var attributes = this.ngSectionRegistrationAttributesDatasource
	            .values()
	            .filter(function (sectionRegAttr) { return validSectionIdsForRegAttributes.includes(sectionRegAttr.id); })
	            .map(function (sectionReg) { return ({
	            id: sectionReg.id,
	            attributes: {
	                properties: sectionReg.attributes
	            }
	        }); });
	        this._result = _4.keyBy(attributes, 'id');
	        return this;
	    };
	    return SectionRegistrationAttributesQuery;
	}());
	exports.SectionRegistrationAttributesQuery = SectionRegistrationAttributesQuery;
	angular
	    .module('capability-ng-scheduler')
	    .service('ngSectionRegistrationAttributesQuery', SectionRegistrationAttributesQuery);


/***/ }),
/* 1777 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('registrationErrorDismissCommand', function (defineCommandORM, $http, log, ngRegistrationActivityDatasource) {
	    return defineCommandORM('registrationErrorDismissCommand', function (deferred, activityId) {
	        $http
	            .delete("reg/activity/" + activityId + "/")
	            .then(function () {
	            var activityToBeDismissed = ngRegistrationActivityDatasource.get(activityId);
	            if (activityToBeDismissed) {
	                ngRegistrationActivityDatasource.del(activityToBeDismissed.id);
	            }
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue('Failed to dismiss the registration activity.');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1778 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var RegistrationErrorDetails = /** @class */ (function () {
	    function RegistrationErrorDetails(registrationErrorDismissCommand, ngRequestActionServant) {
	        this.registrationErrorDismissCommand = registrationErrorDismissCommand;
	        this.ngRequestActionServant = ngRequestActionServant;
	    }
	    RegistrationErrorDetails.prototype.dismissActivity = function (activity) {
	        this.registrationErrorDismissCommand(_4.get(activity, 'id', 0));
	    };
	    return RegistrationErrorDetails;
	}());
	var RegistrationErrorDetailsComponent = /** @class */ (function () {
	    function RegistrationErrorDetailsComponent() {
	        this.bindings = {
	            errors: '<'
	        };
	        this.controller = RegistrationErrorDetails;
	        this.templateUrl =
	            'capability-ng-scheduler/src/registration_errors/components/registration_error_details/registration_error_details.html';
	    }
	    return RegistrationErrorDetailsComponent;
	}());
	angular
	    .module('capability-ng-scheduler')
	    .component('registrationErrorDetails', new RegistrationErrorDetailsComponent());


/***/ }),
/* 1779 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var RegistrationErrors = /** @class */ (function () {
	    function RegistrationErrors(ngRegistrationErrorsQuery, ngRegistrationActivityDatasource) {
	        this.ngRegistrationErrorsQuery = ngRegistrationErrorsQuery;
	        this.ngRegistrationActivityDatasource = ngRegistrationActivityDatasource;
	        this.showRegistrationErrorDetails = false;
	    }
	    RegistrationErrors.prototype.showRegistrationErrors = function () {
	        this.showRegistrationErrorDetails = true;
	    };
	    RegistrationErrors.prototype.errorDetailsPopupOpenedChanged = function ($event) {
	        if (!$event.detail.value) {
	            this.closeRegistrationErrors();
	        }
	    };
	    RegistrationErrors.prototype.closeRegistrationErrors = function () {
	        this.showRegistrationErrorDetails = false;
	    };
	    RegistrationErrors.prototype.errorMessagesExist = function () {
	        if (this.ngRegistrationErrorsQuery.result.hasErrorMessages) {
	            return true;
	        }
	        this.closeRegistrationErrors();
	        return false;
	    };
	    return RegistrationErrors;
	}());
	var RegistrationErrorsComponent = /** @class */ (function () {
	    function RegistrationErrorsComponent() {
	        this.bindings = {};
	        this.controller = RegistrationErrors;
	        this.templateUrl = 'capability-ng-scheduler/src/registration_errors/components/registration_errors.html';
	    }
	    return RegistrationErrorsComponent;
	}());
	angular.module('capability-ng-scheduler').component('registrationErrors', new RegistrationErrorsComponent());


/***/ }),
/* 1780 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var registration_activity_text_strategy_1 = __webpack_require__(722);
	var RegistrationErrorsQuery = /** @class */ (function () {
	    function RegistrationErrorsQuery(QueryMediator, ngRegistrationActivityDatasource) {
	        this.QueryMediator = QueryMediator;
	        this.ngRegistrationActivityDatasource = ngRegistrationActivityDatasource;
	        this._result = {
	            errorMessage: '',
	            hasErrorMessages: false,
	            errorDetails: []
	        };
	        QueryMediator.registerQuery(this, ngRegistrationActivityDatasource);
	    }
	    RegistrationErrorsQuery.prototype._getAppendText = function (action) {
	        var appendText = _4.get(registration_activity_text_strategy_1.RegistrationActivityErrorTextStrategy[_4.toUpper(action)], 'text', '');
	        return appendText;
	    };
	    RegistrationErrorsQuery.prototype._getSectionTitle = function (errDetails) {
	        var sectionName = _4.get(errDetails, 'context.section_name', '');
	        var sectionType = _4.get(errDetails, 'context.section_type', '');
	        if (_4.isEmpty(sectionType)) {
	            return sectionName;
	        }
	        return sectionName + " - " + sectionType;
	    };
	    RegistrationErrorsQuery.prototype.run = function () {
	        var _this = this;
	        var errors = _4.filter(this.ngRegistrationActivityDatasource.values(), {
	            alert_type: 'failure',
	            is_active: true
	        });
	        var errorMessagesCount = _4.size(errors);
	        var hasErrorMessages = _4.gt(errorMessagesCount, 0);
	        var errorMessage = errorMessagesCount + " " + (errorMessagesCount > 1 ? 'requests' : 'request') + " could not be completed";
	        var errorDetails = _4.orderBy(_4.map(errors, function (errDetails) {
	            var message = errDetails.message, alert_type = errDetails.alert_type, id = errDetails.id;
	            var action = _4.get(errDetails, 'context.action', '');
	            var errorTitle = _this._getSectionTitle(errDetails) + " " + _this._getAppendText(action);
	            return {
	                errorTitle: errorTitle,
	                message: message,
	                id: id,
	                alert_type: alert_type,
	                action: action,
	                time: moment(errDetails.created_ts).format('MMM DD, YYYY LT'),
	                timeStamp: moment(errDetails.created_ts).valueOf()
	            };
	        }), ['timeStamp'], ['desc']);
	        this._result = {
	            errorMessage: errorMessage,
	            hasErrorMessages: hasErrorMessages,
	            errorDetails: errorDetails
	        };
	        return this;
	    };
	    Object.defineProperty(RegistrationErrorsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return RegistrationErrorsQuery;
	}());
	exports.RegistrationErrorsQuery = RegistrationErrorsQuery;
	angular.module('capability-ng-scheduler').service('ngRegistrationErrorsQuery', RegistrationErrorsQuery);


/***/ }),
/* 1781 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('clearRegistrationRecieptCommand', function (defineCommandORM, ngRegistrationReceiptModel) {
	    return defineCommandORM('clearRegistrationRecieptCommand', function (deferred) {
	        ngRegistrationReceiptModel.clear();
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1782 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var RegistrationReceipt = /** @class */ (function () {
	    function RegistrationReceipt(clearRegistrationRecieptCommand, ngRegistrationReceiptQuery, ngRequestActionServant) {
	        this.clearRegistrationRecieptCommand = clearRegistrationRecieptCommand;
	        this.ngRegistrationReceiptQuery = ngRegistrationReceiptQuery;
	        this.ngRequestActionServant = ngRequestActionServant;
	    }
	    RegistrationReceipt.prototype.closeRegistrationReceipt = function () {
	        this.clearRegistrationRecieptCommand();
	    };
	    RegistrationReceipt.prototype.$onDestroy = function () {
	        this.closeRegistrationReceipt();
	    };
	    return RegistrationReceipt;
	}());
	angular.module('capability-ng-scheduler').component('registrationReceipt', {
	    templateUrl: 'capability-ng-scheduler/src/registration_receipt/components/registration_receipt/registration_receipt.html',
	    controller: RegistrationReceipt
	});


/***/ }),
/* 1783 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .service('campusPreferencesRequestStateCommand', function campusPreferencesRequestStateCommand(defineCommandORM, ngRequestStateModel) {
	    'use strict';
	    return defineCommandORM('campusPreferencesRequestStateCommand', function (deferred, isRequestPending) {
	        ngRequestStateModel.write({ isCampusPreferencePending: isRequestPending });
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1784 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .service('registrationRequestStateCommand', function registrationRequestStateCommand(defineCommandORM, ngRequestStateModel) {
	    'use strict';
	    return defineCommandORM('registrationRequestStateCommand', function (deferred, isRequestPending) {
	        ngRequestStateModel.write({ isRegistrationPending: isRequestPending });
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1785 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .service('swapRequestStateCommand', function swapRequestStateCommand(defineCommandORM, ngRequestStateModel) {
	    'use strict';
	    return defineCommandORM('swapRequestStateCommand', function (deferred, isRequestPending) {
	        ngRequestStateModel.write({ isSwapPending: isRequestPending });
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1786 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngRequestStateModel', function () {
	    return new utility_ts_orm_1.Model({
	        isSwapPending: false,
	        isRegistrationPending: false,
	        isCampusPreferencePending: false
	    });
	});


/***/ }),
/* 1787 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var RequestStateQuery = /** @class */ (function () {
	    function RequestStateQuery(ngRequestStateModel, ngRegistrationSelectedSectionsModel, ngRegistrationSelectedSectionsQuery) {
	        this.ngRequestStateModel = ngRequestStateModel;
	        this.ngRegistrationSelectedSectionsModel = ngRegistrationSelectedSectionsModel;
	        this.ngRegistrationSelectedSectionsQuery = ngRegistrationSelectedSectionsQuery;
	        utility_ts_orm_1.Query.registerQuery(this, ngRequestStateModel, ngRegistrationSelectedSectionsModel);
	    }
	    RequestStateQuery.prototype.run = function () {
	        this._result = {
	            isSwapPending: this.ngRequestStateModel.read().isSwapPending,
	            isRegistrationPending: this.ngRequestStateModel.read().isRegistrationPending,
	            isCampusPreferencePending: this.ngRequestStateModel.read().isCampusPreferencePending
	        };
	        return this;
	    };
	    Object.defineProperty(RequestStateQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return RequestStateQuery;
	}());
	exports.RequestStateQuery = RequestStateQuery;
	angular.module('capability-ng-scheduler').service('ngRequestStateQuery', RequestStateQuery);


/***/ }),
/* 1788 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('fetchSchedulerAvailableTermsCommand', function (ngSchedulerAvailableTermDatasource, $http, ngStandaloneNavigationModel, defineCommandORM) {
	    return defineCommandORM('fetchSchedulerAvailableTermsCommand', function (deferred) {
	        $http
	            .get("/cat/terms/?current_future=true&sections_gt_zero=true&ordering=term_start_dt")
	            .then(function (_a) {
	            var data = _a.data;
	            var termsData = data.data;
	            ngSchedulerAvailableTermDatasource.clear().write(termsData);
	            var defaultTerm = termsData.find(function (term) { return term.is_standalone_scheduler_default_term; });
	            var standaloneNavModel = ngStandaloneNavigationModel.read();
	            if (!defaultTerm) {
	                var firstCurrentOrFutureTerm = termsData[0];
	                ngStandaloneNavigationModel.write({
	                    userId: standaloneNavModel.userId,
	                    apiCurrentTerm: firstCurrentOrFutureTerm.id
	                });
	                deferred.resolve();
	                return;
	            }
	            ngStandaloneNavigationModel.write({
	                userId: standaloneNavModel.userId,
	                apiCurrentTerm: defaultTerm.id
	            });
	            deferred.resolve();
	            return;
	        });
	    });
	});


/***/ }),
/* 1789 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var SchedulerActiveTerm = /** @class */ (function () {
	    function SchedulerActiveTerm(ngSchedulerActiveTermQuery, ngScheduledSectionsQuery) {
	        this.ngSchedulerActiveTermQuery = ngSchedulerActiveTermQuery;
	        this.ngScheduledSectionsQuery = ngScheduledSectionsQuery;
	    }
	    SchedulerActiveTerm.prototype.creditsScheduled = function () {
	        var creditsScheduled = this.ngScheduledSectionsQuery.result.creditsScheduled;
	        return creditsScheduled ? creditsScheduled : 0;
	    };
	    SchedulerActiveTerm.prototype.creditsRegistered = function () {
	        var creditsRegistered = this.ngScheduledSectionsQuery.result.creditsRegistered;
	        return creditsRegistered ? creditsRegistered : 0;
	    };
	    return SchedulerActiveTerm;
	}());
	angular.module('capability-ng-scheduler').component('schedulerActiveTerm', {
	    templateUrl: 'capability-ng-scheduler/src/scheduler_active_term/components/scheduler_active_term/scheduler_active_term.html',
	    controller: SchedulerActiveTerm
	});


/***/ }),
/* 1790 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var scheduler_available_item_1 = __webpack_require__(726);
	angular.module('capability-ng-scheduler').factory('ngSchedulerAvailableTermDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: scheduler_available_item_1.SchedulerAvailableTerm
	    });
	});


/***/ }),
/* 1791 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var SchedulerActiveTermQuery = /** @class */ (function () {
	    function SchedulerActiveTermQuery(ngTermProgramInfoModel) {
	        this.ngTermProgramInfoModel = ngTermProgramInfoModel;
	        utility_ng_kernel_1.Query.registerQuery(this, ngTermProgramInfoModel);
	    }
	    SchedulerActiveTermQuery.prototype.run = function () {
	        var activeTerm = this.ngTermProgramInfoModel.read().term;
	        if (!activeTerm) {
	            this.queryResult = {};
	            return this;
	        }
	        this.queryResult = {
	            name: activeTerm.name,
	            id: activeTerm.id
	        };
	        return this;
	    };
	    Object.defineProperty(SchedulerActiveTermQuery.prototype, "result", {
	        get: function () {
	            return this.queryResult;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return SchedulerActiveTermQuery;
	}());
	exports.SchedulerActiveTermQuery = SchedulerActiveTermQuery;
	angular.module('capability-ng-scheduler').service('ngSchedulerActiveTermQuery', SchedulerActiveTermQuery);


/***/ }),
/* 1792 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('fetchStudentActivePlanDetailsCommand', function (defineCommandORM, $http, log, ngSchedulerStudentPlanDatasource, ngBackToPlannerHelper) {
	    return defineCommandORM('fetchStudentActivePlanDetailsCommand', function (deferred) {
	        var isAP1Enabled = ngBackToPlannerHelper.isAP1PlannerEnabled();
	        if (isAP1Enabled) {
	            return deferred.resolve();
	        }
	        return $http
	            .get('ap3/studentplans/?is_primary=true')
	            .then(function (_a) {
	            var data = _a.data;
	            ngSchedulerStudentPlanDatasource.clear().write(data.data);
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue('Unable to fetch student plan details');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1793 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('getCourseSearchAuthorizationCommand', function (defineCommandORM, ngAuthorizationServant, ngCourseSearchAuthorizationModel, accountModel) {
	    return defineCommandORM('getCourseSearchAuthorizationCommand', function (deferred) {
	        ngAuthorizationServant
	            .getCSRFToken()
	            .then(function (csrfToken) {
	            var authToken = accountModel.token;
	            var authorization = ngAuthorizationServant.getAuthorization(csrfToken, authToken);
	            ngCourseSearchAuthorizationModel.write({ authorization: authorization });
	            deferred.resolve();
	        })
	            .catch(function (error) { return deferred.reject(error); });
	    });
	});


/***/ }),
/* 1794 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .factory('removePlannedCourseSchedulerCommand', function (defineCommandORM, $http, log, ngSchedulerStudentPlanQuery, ngSearchAndCourseFeatureFacade, ngTermCoursesDatasource, getTermSectionsCommand, getTermCoursesCommand, ngSchedulerActiveTermQuery, ngTermPlannedCoursesDatasource) {
	    return defineCommandORM('removePlannedCourseSchedulerCommand', function (deferred, courseId) {
	        if (!ngSearchAndCourseFeatureFacade.isFeatureEnabled) {
	            log.info('Sorry, remove planned course available only in standalone scheduler!');
	            return deferred.resolve();
	        }
	        var planId = _4.get(ngSchedulerStudentPlanQuery, 'result.id', undefined);
	        if (!planId) {
	            log.issue('Sorry, no plan id available to remove the course from');
	            return deferred.reject();
	        }
	        var termId = _4.get(ngSchedulerActiveTermQuery, 'result.id', undefined);
	        if (!termId) {
	            log.issue('Sorry, no term id available to remove the course from');
	            return deferred.reject();
	        }
	        var plannedCourse = _4.find(ngTermPlannedCoursesDatasource.read(), function (_plannedCourse) { return _plannedCourse.course === courseId; });
	        if (!plannedCourse) {
	            log.issue('Sorry, no plan course available to remove');
	            return deferred.reject();
	        }
	        return $http
	            .delete("ap3/studentplans/" + planId + "/studentplanitems-infer-term/" + plannedCourse.id)
	            .then(function () { return getTermSectionsCommand(termId); })
	            .then(function () { return getTermCoursesCommand(termId); })
	            .finally(function () { return deferred.resolve(); })
	            .catch(function (e) {
	            log.issue('Unable to fetch student plan details');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1795 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .factory('resetCoreqSectionsMetasourceCommand', function (defineCommandORM, ngSectionsDatasource) {
	    return defineCommandORM('resetCoreqSectionsMetasourceCommand', function (deferred, courseId) {
	        if (!courseId) {
	            return;
	        }
	        var matchedSections = _4.filter(ngSectionsDatasource.read(), function (section) {
	            return section.course === courseId ? true : _4.includes(section._course.coreq, courseId);
	        });
	        ngSectionsDatasource.write(matchedSections);
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1796 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ChooseActiveTermMenuController = /** @class */ (function () {
	    function ChooseActiveTermMenuController(ngSchedulerAvailableTermsQuery, ngSchedulerActiveTermQuery, ngSearchAndCourseFeatureFacade, $state) {
	        this.ngSchedulerAvailableTermsQuery = ngSchedulerAvailableTermsQuery;
	        this.ngSchedulerActiveTermQuery = ngSchedulerActiveTermQuery;
	        this.ngSearchAndCourseFeatureFacade = ngSearchAndCourseFeatureFacade;
	        this.$state = $state;
	    }
	    ChooseActiveTermMenuController.prototype.chooseActiveTerm = function (term) {
	        return this.$state.go(this.$state.current, { termId: term.id }, { reload: true });
	    };
	    return ChooseActiveTermMenuController;
	}());
	angular.module('capability-ng-scheduler').component('chooseActiveTermMenu', {
	    templateUrl: 'capability-ng-scheduler/src/search_and_add_courses/components/choose_active_term_menu/choose_active_term_menu.html',
	    controller: ChooseActiveTermMenuController
	});


/***/ }),
/* 1797 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var SchedulerPlannedCourseMenuController = /** @class */ (function () {
	    function SchedulerPlannedCourseMenuController(ngSearchAndCourseFeatureFacade, ngSchedulerActiveTermQuery, removePlannedCourseSchedulerCommand, resetCoreqSectionsMetasourceCommand, ngCourseDetailsFacade, ngTermCourseServant, ngSchedulerNotificationDelegate, ngViewSectionsFacade, ngComponentCommunicatorService, saveCourseAlertsCommand) {
	        this.ngSearchAndCourseFeatureFacade = ngSearchAndCourseFeatureFacade;
	        this.ngSchedulerActiveTermQuery = ngSchedulerActiveTermQuery;
	        this.removePlannedCourseSchedulerCommand = removePlannedCourseSchedulerCommand;
	        this.resetCoreqSectionsMetasourceCommand = resetCoreqSectionsMetasourceCommand;
	        this.ngCourseDetailsFacade = ngCourseDetailsFacade;
	        this.ngTermCourseServant = ngTermCourseServant;
	        this.ngSchedulerNotificationDelegate = ngSchedulerNotificationDelegate;
	        this.ngViewSectionsFacade = ngViewSectionsFacade;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.saveCourseAlertsCommand = saveCourseAlertsCommand;
	        this.showRemoveCoursePopup = false;
	        this.showRemoveCourseMenuItem = true;
	        this.showAlertsMenuItem = false;
	    }
	    SchedulerPlannedCourseMenuController.prototype.$onInit = function () {
	        var hasMissingPrereqs = this.ngTermCourseServant.hasPreRequistes(this.course);
	        var hasMissingCoreqs = this.ngTermCourseServant.hasCoRequistes(this.course);
	        this.hasDevreq = this.ngTermCourseServant.isDevReq(this.course);
	        this.hasMissingReqs = hasMissingPrereqs || hasMissingCoreqs;
	        this.showAlertsMenuItem = this.hasMissingReqs || this.hasDevreq;
	    };
	    SchedulerPlannedCourseMenuController.prototype.$onChanges = function () {
	        var isCourseScheduled = this.ngTermCourseServant.isPartiallyScheduled(this.course);
	        if (!this.ngSearchAndCourseFeatureFacade.isFeatureEnabled) {
	            this.showRemoveCourseMenuItem = false;
	            return;
	        }
	        this.showRemoveCourseMenuItem = !isCourseScheduled;
	    };
	    SchedulerPlannedCourseMenuController.prototype.showSections = function () {
	        return this.ngViewSectionsFacade.showSections(this.course);
	    };
	    SchedulerPlannedCourseMenuController.prototype.openCourseDetail = function () {
	        this.ngCourseDetailsFacade.openCourseDetails(this.course.nk);
	    };
	    SchedulerPlannedCourseMenuController.prototype.openAlertsDrawer = function () {
	        var _this = this;
	        this.saveCourseAlertsCommand({
	            course: this.course,
	            hasDevReq: this.hasDevreq,
	            hasMissingReqs: this.hasMissingReqs
	        }).then(function () {
	            _this.ngComponentCommunicatorService.publish('OPEN_COURSE_ALERTS_MODAL');
	        });
	    };
	    SchedulerPlannedCourseMenuController.prototype.openRemoveCoursePopup = function () {
	        this.showRemoveCoursePopup = true;
	    };
	    SchedulerPlannedCourseMenuController.prototype.removeCourseDialogClosed = function () {
	        this.showRemoveCoursePopup = false;
	    };
	    SchedulerPlannedCourseMenuController.prototype.removeCourse = function () {
	        var _this = this;
	        var notifDelegateName = "remove-course-progress-" + this.course.id;
	        this.ngSchedulerNotificationDelegate.info({
	            content: "Removing of course (" + this.course.cd + " " + this.course.title + ") started",
	            showIcon: true,
	            name: notifDelegateName,
	            iconClass: 'eab-icon-sync'
	        });
	        this.removePlannedCourseSchedulerCommand(this.course.id)
	            .then(function () {
	            _this.resetCoreqSectionsMetasourceCommand(_this.course.id);
	            _this.ngSchedulerNotificationDelegate.dismissAlertByName(notifDelegateName);
	            _this.ngSchedulerNotificationDelegate.success({
	                content: "Successfully removed the course (" + _this.course.cd + " " + _this.course.title + ")",
	                name: notifDelegateName + "-success",
	                timeout: 10000
	            });
	        })
	            .finally(function () {
	            _this.ngSchedulerNotificationDelegate.dismissAlertByName(notifDelegateName);
	            _this.removeCourseDialogClosed();
	        });
	    };
	    return SchedulerPlannedCourseMenuController;
	}());
	angular.module('capability-ng-scheduler').component('schedulerPlannedCourseMenu', {
	    templateUrl: 'capability-ng-scheduler/src/search_and_add_courses/components/scheduler_planned_course_menu/scheduler_planned_course_menu.html',
	    controller: SchedulerPlannedCourseMenuController,
	    bindings: {
	        course: '<'
	    }
	});


/***/ }),
/* 1798 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var course_search_view_template_1 = __webpack_require__(728);
	var courseSearchPrefab = function (courseSearchConfig, networkURLConfig, accountModel, ngCourseSearchAuthorizationQuery) {
	    if (typeof courseSearchConfig.term.id === 'undefined') {
	        return {};
	    }
	    var prependUrl = _4.get(networkURLConfig.read(), 'prependUrl', '');
	    var filterFieldsUrl = prependUrl + '/api/v1/cat/course_search/fields/?application=scheduler';
	    var filterSettingsUrl = prependUrl + ("/api/v1/cat/course_search/?term=" + courseSearchConfig.term.id);
	    var addCourseModifier = {
	        $is: 'series',
	        model: {
	            term: courseSearchConfig.term.id,
	            course: '[value]{ /id }',
	            met_aside_from_term: false,
	            kind: 'Planned Course'
	        }
	    };
	    var authorization = ngCourseSearchAuthorizationQuery.result.authorization;
	    course_search_view_template_1.CourseSearchViewTemplate.runtime.tasks.entity_filters.type.fields.settings.uri = filterFieldsUrl;
	    course_search_view_template_1.CourseSearchViewTemplate.runtime.tasks.entity_filters.type.fields.settings.options.authorization = authorization;
	    course_search_view_template_1.CourseSearchViewTemplate.runtime.tasks.filter_api.settings.uri = filterSettingsUrl;
	    course_search_view_template_1.CourseSearchViewTemplate.runtime.tasks.filter_api.settings.options.authorization = authorization;
	    course_search_view_template_1.CourseSearchViewTemplate.runtime.tasks.add_course_to_term.settings.options.authorization = authorization;
	    course_search_view_template_1.CourseSearchViewTemplate.runtime.tasks.add_course_to_term.settings.uri =
	        prependUrl + ("/api/v1/ap3/studentplans/" + courseSearchConfig.planId + "/studentplanitems-infer-term/");
	    course_search_view_template_1.CourseSearchViewTemplate.runtime.tasks.add_course_to_term.before_modifiers = [];
	    course_search_view_template_1.CourseSearchViewTemplate.runtime.tasks.add_course_to_term.before_modifiers.push(addCourseModifier);
	    return _4.cloneDeep(course_search_view_template_1.CourseSearchViewTemplate);
	};
	var SearchAndAddCourses = /** @class */ (function () {
	    function SearchAndAddCourses($element, ngSchedulerActiveTermQuery, ngSchedulerStudentPlanQuery, ngSearchAndCourseFeatureFacade, ngScreenDeviceQuery, accountModel, NetworkUrlConfiguration, ngCourseSearchAuthorizationQuery) {
	        this.$element = $element;
	        this.ngSchedulerActiveTermQuery = ngSchedulerActiveTermQuery;
	        this.ngSchedulerStudentPlanQuery = ngSchedulerStudentPlanQuery;
	        this.ngSearchAndCourseFeatureFacade = ngSearchAndCourseFeatureFacade;
	        this.ngScreenDeviceQuery = ngScreenDeviceQuery;
	        this.accountModel = accountModel;
	        this.NetworkUrlConfiguration = NetworkUrlConfiguration;
	        this.ngCourseSearchAuthorizationQuery = ngCourseSearchAuthorizationQuery;
	        this.hideBackToPlannedCoursesLink = false;
	    }
	    SearchAndAddCourses.prototype.initializeCourseSearchView = function () {
	        if (!this.ngSearchAndCourseFeatureFacade.isFeatureEnabled) {
	            return;
	        }
	        var aiView = this.$element[0].querySelector('hil-connector-by-input');
	        var term = _4.get(this.ngSchedulerActiveTermQuery, 'result', undefined);
	        var planId = _4.get(this.ngSchedulerStudentPlanQuery, 'result.id', undefined);
	        if (aiView && term && planId) {
	            aiView['input'] = courseSearchPrefab({
	                term: term,
	                planId: planId
	            }, this.NetworkUrlConfiguration, this.accountModel, this.ngCourseSearchAuthorizationQuery);
	        }
	    };
	    SearchAndAddCourses.prototype.$onInit = function () {
	        this.initializeCourseSearchView();
	    };
	    return SearchAndAddCourses;
	}());
	angular.module('capability-ng-scheduler').component('searchAndAddCourses', {
	    templateUrl: 'capability-ng-scheduler/src/search_and_add_courses/components/search_and_add_courses/search_and_add_courses.html',
	    controller: SearchAndAddCourses
	});


/***/ }),
/* 1799 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	/**
	 * renders row template for vi-list in ai-template-entity-filter-table-selections
	 */
	window['$ip'].require('@eab-pip/pi-adt');
	window['$ip'].require('@eab-hip/lit-html');
	var CourseSearchResults = /** @class */ (function () {
	    function CourseSearchResults() {
	        this.id = 'course-search-results';
	    }
	    CourseSearchResults.prototype.render = function (_a) {
	        var _this = this;
	        var bulkActionsTmplFn = _a.bulkActionsTmplFn;
	        return function (_entity, index) {
	            var adt = window['$ip'].use('@eab-pip/pi-adt');
	            var _a = window['$ip'].use('@eab-hip/lit-html'), html = _a.html, nothing = _a.nothing;
	            var entityMutation = adt.mutation('entity');
	            var bulkActionsTmpl = bulkActionsTmplFn(_entity, index);
	            var entity = entityMutation.invoke(_entity);
	            var courseCode = entity.cd;
	            var courseTitle = entity.title;
	            var courseCredits = entity.credits ? entity.credits : 0;
	            var numberOfSections = entity.number_of_sections ? entity.number_of_sections : 0;
	            return html(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject([" ", "\n        <li class=\"pl-5 pr-5\" kind=\"no-dot\" data-index=", ">\n          <section\n            class=\"pt-5 pb-5 bb-1 bdr-solid clr-gray_40-bdr\"\n            l-kind=\"hort\"\n            l-width-fixed\n            l-no-wrap\n            l-align=\"center\"\n            l-justify=\"between\"\n          >\n            ", "\n            <div class=\"pl-4\" l-kind=\"vert\">\n              <span class=\"filtered-result-item\" allow-ellipsis>", " : ", "</span>\n              <span class=\"mt-3\">Credits: ", "</span>\n              <span class=\"mt-3\">Number of Sections: ", "</span>\n            </div>\n          </section>\n        </li>"], [" ", "\n        <li class=\"pl-5 pr-5\" kind=\"no-dot\" data-index=", ">\n          <section\n            class=\"pt-5 pb-5 bb-1 bdr-solid clr-gray_40-bdr\"\n            l-kind=\"hort\"\n            l-width-fixed\n            l-no-wrap\n            l-align=\"center\"\n            l-justify=\"between\"\n          >\n            ", "\n            <div class=\"pl-4\" l-kind=\"vert\">\n              <span class=\"filtered-result-item\" allow-ellipsis>", " : ", "</span>\n              <span class=\"mt-3\">Credits: ", "</span>\n              <span class=\"mt-3\">Number of Sections: ", "</span>\n            </div>\n          </section>\n        </li>"])), _this.__renderStyles(), index, bulkActionsTmpl ? bulkActionsTmpl : nothing, courseCode, courseTitle, courseCredits, numberOfSections);
	        };
	    };
	    CourseSearchResults.prototype.__renderStyles = function () {
	        var html = window['$ip'].use('@eab-hip/lit-html').html;
	        return html(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n      <style>\n        .filtered-result-item {\n          overflow: hidden;\n          display: -webkit-box;\n          -webkit-line-clamp: 1;\n          -webkit-box-orient: vertical;\n          text-overflow: ellipsis;\n          white-space: normal;\n        }\n      </style>\n    "], ["\n      <style>\n        .filtered-result-item {\n          overflow: hidden;\n          display: -webkit-box;\n          -webkit-line-clamp: 1;\n          -webkit-box-orient: vertical;\n          text-overflow: ellipsis;\n          white-space: normal;\n        }\n      </style>\n    "])));
	    };
	    return CourseSearchResults;
	}());
	var view = new CourseSearchResults();
	window['$ip'].include('cached://search_results_list_template', view);
	exports.default = view;
	var templateObject_1, templateObject_2;


/***/ }),
/* 1800 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var scheduler_student_plan_1 = __webpack_require__(727);
	angular.module('capability-ng-scheduler').factory('ngSchedulerStudentPlanDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: scheduler_student_plan_1.SchedulerStudentPlan
	    });
	});


/***/ }),
/* 1801 */
880,
/* 1802 */
880,
/* 1803 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngCourseSearchAuthorizationModel', function () {
	    return new utility_ts_orm_1.Model({
	        authorization: {
	            type: 'csrf',
	            token: ''
	        }
	    });
	});


/***/ }),
/* 1804 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var CourseSearchAuthorizationQuery = /** @class */ (function () {
	    function CourseSearchAuthorizationQuery(ngCourseSearchAuthorizationModel) {
	        this.ngCourseSearchAuthorizationModel = ngCourseSearchAuthorizationModel;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngCourseSearchAuthorizationModel);
	    }
	    CourseSearchAuthorizationQuery.prototype.run = function () {
	        this._result = this.ngCourseSearchAuthorizationModel.read();
	        return this;
	    };
	    Object.defineProperty(CourseSearchAuthorizationQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return CourseSearchAuthorizationQuery;
	}());
	exports.CourseSearchAuthorizationQuery = CourseSearchAuthorizationQuery;
	angular.module('capability-ng-scheduler').service('ngCourseSearchAuthorizationQuery', CourseSearchAuthorizationQuery);


/***/ }),
/* 1805 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var _4 = __webpack_require__(1);
	var SchedulerAvailableTermsQuery = /** @class */ (function () {
	    function SchedulerAvailableTermsQuery(ngSchedulerAvailableTermDatasource) {
	        this.ngSchedulerAvailableTermDatasource = ngSchedulerAvailableTermDatasource;
	        this._result = {
	            terms: [],
	            isEmpty: true
	        };
	        utility_ts_orm_1.Query.registerQuery(this, this.ngSchedulerAvailableTermDatasource);
	    }
	    Object.defineProperty(SchedulerAvailableTermsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    SchedulerAvailableTermsQuery.prototype.run = function () {
	        var terms = this.ngSchedulerAvailableTermDatasource.values();
	        var termsSortedByStartDate = _4.sortBy(terms, 'term_start_dt');
	        this._result = {
	            isEmpty: _4.isEmpty(termsSortedByStartDate),
	            terms: termsSortedByStartDate
	        };
	        return this;
	    };
	    return SchedulerAvailableTermsQuery;
	}());
	exports.SchedulerAvailableTermsQuery = SchedulerAvailableTermsQuery;
	angular.module('capability-ng-scheduler').service('ngSchedulerAvailableTermsQuery', SchedulerAvailableTermsQuery);


/***/ }),
/* 1806 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var _4 = __webpack_require__(1);
	var SchedulerStudentPlanQuery = /** @class */ (function () {
	    function SchedulerStudentPlanQuery(ngSchedulerStudentPlanDatasource) {
	        this.ngSchedulerStudentPlanDatasource = ngSchedulerStudentPlanDatasource;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngSchedulerStudentPlanDatasource);
	    }
	    Object.defineProperty(SchedulerStudentPlanQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    SchedulerStudentPlanQuery.prototype.run = function () {
	        var plans = this.ngSchedulerStudentPlanDatasource.values();
	        this._result = _4.find(plans, { is_primary: true });
	        return this;
	    };
	    return SchedulerStudentPlanQuery;
	}());
	exports.SchedulerStudentPlanQuery = SchedulerStudentPlanQuery;
	angular.module('capability-ng-scheduler').service('ngSchedulerStudentPlanQuery', SchedulerStudentPlanQuery);


/***/ }),
/* 1807 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var AuthorizationServant = /** @class */ (function () {
	    function AuthorizationServant() {
	    }
	    AuthorizationServant.prototype.getAuthorization = function (csrfToken, authToken) {
	        if (!authToken) {
	            return {
	                type: 'csrf',
	                token: csrfToken
	            };
	        }
	        return {
	            type: 'token',
	            token: authToken
	        };
	    };
	    AuthorizationServant.prototype.getCookie = function (key) {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            var io, cookie;
	            return tslib_1.__generator(this, function (_a) {
	                switch (_a.label) {
	                    case 0: return [4 /*yield*/, window['$ip'].require('@eab-pip/pi-io')];
	                    case 1:
	                        io = _a.sent();
	                        return [4 /*yield*/, io.create('cookie').invoke("/" + key)];
	                    case 2:
	                        cookie = _a.sent();
	                        return [2 /*return*/, cookie.data];
	                }
	            });
	        });
	    };
	    AuthorizationServant.prototype.getCSRFToken = function () {
	        return tslib_1.__awaiter(this, void 0, void 0, function () {
	            return tslib_1.__generator(this, function (_a) {
	                switch (_a.label) {
	                    case 0: return [4 /*yield*/, this.getCookie('csrftoken')];
	                    case 1: return [2 /*return*/, _a.sent()];
	                }
	            });
	        });
	    };
	    return AuthorizationServant;
	}());
	exports.AuthorizationServant = AuthorizationServant;
	angular.module('capability-ng-scheduler').service('ngAuthorizationServant', AuthorizationServant);


/***/ }),
/* 1808 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .service('clearStandaloneSchedulerInfoCommand', function (ngStandaloneNavigationModel, defineCommandORM) {
	    return defineCommandORM('navigateToSchedulerCommand', function (deferred) {
	        ngStandaloneNavigationModel.clear();
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1809 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .service('navigateToSchedulerCommand', function (fetchSchedulerAvailableTermsCommand, ngStandaloneNavigationModel, ngSchedulerActiveTermQuery, ngSchedulerRouterHelper, log, accountModel, defineCommandORM) {
	    return defineCommandORM('navigateToSchedulerCommand', function (deferred) {
	        var currentUserID = accountModel.id;
	        if (!_4.isNumber(currentUserID)) {
	            log.error('unable to load scheduler');
	            return deferred.reject('User id not available');
	        }
	        var schedulerState = 'my.schedule.registration';
	        var standaloneNavModel = ngStandaloneNavigationModel.read();
	        var lastAccessedUserId = standaloneNavModel.userId;
	        if (lastAccessedUserId === currentUserID) {
	            return ngSchedulerRouterHelper.navigateFromRouter(deferred, schedulerState, {
	                termId: ngSchedulerActiveTermQuery.result.id
	            }, {
	                location: 'replace'
	            });
	        }
	        ngStandaloneNavigationModel.write({
	            userId: accountModel.id,
	            apiCurrentTerm: standaloneNavModel.apiCurrentTerm
	        });
	        return fetchSchedulerAvailableTermsCommand().then(function () {
	            return ngSchedulerRouterHelper.navigateFromRouter(deferred, schedulerState, {
	                termId: ngStandaloneNavigationModel.read().apiCurrentTerm
	            }, {
	                location: 'replace'
	            });
	        });
	    });
	});


/***/ }),
/* 1810 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SchedulerRouterHelper = /** @class */ (function () {
	    function SchedulerRouterHelper($state, $timeout, log) {
	        this.$state = $state;
	        this.$timeout = $timeout;
	        this.log = log;
	    }
	    SchedulerRouterHelper.prototype.navigateFromRouter = function (deferred, stateName, parameters, options) {
	        var _this = this;
	        if (!stateName || _4.isEmpty(stateName)) {
	            return deferred.resolve();
	        }
	        var TIME_TO_FIX_ANGULAR_STATE_ERROR = 10;
	        // when navigation failed, we show error notification which we don't want here
	        this.log.disable();
	        this.$timeout(function () {
	            _this.log.enable();
	            _this.$state.go(stateName, parameters, options);
	        }, TIME_TO_FIX_ANGULAR_STATE_ERROR);
	        deferred.reject();
	    };
	    return SchedulerRouterHelper;
	}());
	exports.SchedulerRouterHelper = SchedulerRouterHelper;
	angular.module('capability-ng-scheduler').service('ngSchedulerRouterHelper', SchedulerRouterHelper);


/***/ }),
/* 1811 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	angular.module('capability-ng-scheduler').factory('ngStandaloneNavigationModel', function () {
	    return new utility_ng_kernel_1.Model({
	        userId: undefined,
	        apiCurrentTerm: undefined
	    });
	});


/***/ }),
/* 1812 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .service('clearSwapSelectionsCommand', function clearSwapSelectionsCommandDefinition(defineCommandORM, clearSwapToSectionsCommand, ngCourseSectionSwapModel) {
	    return defineCommandORM('clearSwapSelectionsCommand', function clearSwapSelectionsCommand(deferred) {
	        clearSwapToSectionsCommand().then(function () {
	            ngCourseSectionSwapModel.clear();
	            deferred.resolve();
	        });
	    });
	});


/***/ }),
/* 1813 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	angular
	    .module('capability-ng-scheduler')
	    .service('clearSwapToSectionsCommand', function clearSwapToSectionsCommandDefinition(defineCommandORM, updateSwapSectionStatusCommand, ngCourseSectionSwapModel) {
	    return defineCommandORM('clearSwapToSectionsCommand', function clearSwapToSectionsCommand(deferred) {
	        var currentSwap = ngCourseSectionSwapModel.read();
	        var swapToSections = currentSwap.swap_to_section_ids.map(function (section) { return section.id; });
	        updateSwapSectionStatusCommand(swapToSections, scheduled_section_status_enum_1.ScheduledSectionStatus.UNSCHEDULED).then(function () {
	            ngCourseSectionSwapModel.clear().write(tslib_1.__assign(tslib_1.__assign({}, currentSwap), { swap_to_section_ids: [] }));
	            deferred.resolve();
	        });
	    });
	});


/***/ }),
/* 1814 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .service('getSwapCommand', function getSwapCommandDefinition($http, defineCommandORM, log, pusherService, ngCourseSectionSwapModel, $timeout, ngSchedulerModel, ngSwapCallbackServant, updateSwapSectionStatusCommand, ngRegistrationAlertsServant, ngCampusesDatasource, ngLocationsDatasource, ngSectionTimesDatasource, ngSectionLabelsDatasource, ngSectionsDatasource, ngSchedulerNotificationDelegate) {
	    'use strict';
	    return defineCommandORM('getSwapCommand', function getSwapCommand(deferred, termId) {
	        var schedulerModel = ngSchedulerModel.read();
	        var swapCallback = function (data) {
	            if (data.is_swapped) {
	                ngSwapCallbackServant.swapSuccess(data);
	            }
	            else {
	                ngSwapCallbackServant.swapFails(data);
	            }
	        };
	        pusherService.bindToPusherEvent(schedulerModel.channel_name, 'registration_outcome_swap', swapCallback);
	        $http.get('/reg/swap/term/' + termId).then(function (response) {
	            deferred.resolve(response.data);
	            if (response.data && response.data[0]) {
	                var data = response.data[0];
	                ngCampusesDatasource.write(data.campuses);
	                ngLocationsDatasource.write(data.locations);
	                ngSectionLabelsDatasource.write(data.section_labels);
	                ngSectionTimesDatasource.write(data.section_times);
	                ngSectionsDatasource.write(data.sections);
	                updateSwapSectionStatusCommand(data.swap_from_section_ids, 'REGISTERED');
	                updateSwapSectionStatusCommand(data.swap_to_section_ids, 'PENDING');
	            }
	        }, function (response) {
	            log.issue('failed to get pending swaps');
	            if (_4.has(response, 'data.detail')) {
	                ngSchedulerNotificationDelegate.warn(response.data.detail);
	            }
	            deferred.reject(response.data);
	        });
	    });
	});


/***/ }),
/* 1815 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var registration_alert_messages_1 = __webpack_require__(32);
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .service('saveSwapCommand', function saveSwapCommandDefinition($http, defineCommandORM, log, $q, pusherService, ngCourseSectionSwapModel, $timeout, ngSchedulerModel, ngSwapCallbackServant, ngSectionInfoServant, registrationActivityCommand, registrationRecieptCommand, getTermCoursesandScheduledSectionsCommand, ngRegistrationReceiptServant, ngSectionsDatasource, clearTransientAccessCredCommand, ngRegistrationAlertsServant, ngSchedulerNotificationDelegate, swapRequestStateCommand) {
	    'use strict';
	    return defineCommandORM('saveSwapCommand', function saveSwapCommand(deferred, termId, fromData, toData, section_pins, regAttributeForToSections, student_credentials) {
	        if (section_pins === void 0) { section_pins = {}; }
	        // Timeout after 60 seconds
	        var SECONDS_60 = 60000;
	        var timeout = $q.defer();
	        $timeout(function () {
	            swapRequestStateCommand(false);
	            timeout.resolve();
	        }, SECONDS_60);
	        var schedulerModel = ngSchedulerModel.read();
	        var fromCourseSectionTitle = '';
	        var sectionStatusesBeforeSwap = {};
	        _4.each(fromData, function (sectionId) {
	            var sctn = ngSectionsDatasource.get(sectionId);
	            if (sctn) {
	                var sectionLabel = ngSectionInfoServant.getSectionLabel(sctn);
	                var courseLabel = sctn._course.cd + " " + sctn._course.title + " " + sectionLabel;
	                if (_4.isEmpty(fromCourseSectionTitle)) {
	                    fromCourseSectionTitle = courseLabel;
	                }
	                else {
	                    fromCourseSectionTitle = fromCourseSectionTitle + ", " + courseLabel;
	                }
	                sectionStatusesBeforeSwap[sectionId] = sctn.status;
	            }
	        });
	        var swapCallback = function (data) {
	            var sectionIds = tslib_1.__spreadArrays(fromData, toData);
	            registrationActivityCommand(termId)
	                .then(function () {
	                var sectionsReceiptData = _4.filter(ngRegistrationReceiptServant.getReceiptData(sectionIds), 'isActiveRecord');
	                return $q.all([
	                    registrationRecieptCommand(sectionsReceiptData, true),
	                    getTermCoursesandScheduledSectionsCommand(termId)
	                ]);
	            })
	                .finally(function () { return swapRequestStateCommand(false); });
	            if (data.is_swapped) {
	                ngSwapCallbackServant.swapSuccess(data);
	            }
	            else {
	                ngSwapCallbackServant.swapFails(data, sectionStatusesBeforeSwap);
	            }
	        };
	        ngRegistrationAlertsServant.showPendingAlert(registration_alert_messages_1.RegistrationAlertMessages.PENDING_SWAP_TEXT);
	        swapRequestStateCommand(true);
	        pusherService.bindToPusherEvent(schedulerModel.channel_name, 'registration_outcome_swap', swapCallback);
	        $http
	            .post('/reg/swap/term/' + termId, tslib_1.__assign(tslib_1.__assign({ swap_from_section_ids: fromData, swap_to_section_ids: toData, section_pins: section_pins }, regAttributeForToSections), student_credentials))
	            .then(function (response) {
	            return clearTransientAccessCredCommand().then(function () {
	                deferred.resolve(response.data);
	                ngRegistrationAlertsServant.hidePendingAlert();
	                ngRegistrationAlertsServant.createGenericNotification(fromCourseSectionTitle + " successfully swapped", 'success');
	                ngCourseSectionSwapModel.clear();
	            });
	        }, function (response) {
	            clearTransientAccessCredCommand();
	            log.issue('failed to swap sections');
	            if (_4.has(response, 'data.detail')) {
	                ngSchedulerNotificationDelegate.warn(response.data.detail);
	            }
	            deferred.reject(response.data);
	            ngRegistrationAlertsServant.hidePendingAlert();
	            swapRequestStateCommand(false);
	            ngRegistrationAlertsServant.createGenericNotification('Your request for swap failed.  Please try again.', 'error');
	        });
	    });
	});


/***/ }),
/* 1816 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .service('saveSwapFromSectionCommand', function saveSwapFromSectionCommandDefinition($http, defineCommandORM, ngCourseSectionSwapModel, ngMultiSectionServant, log, ngTermSectionTypesDatasource) {
	    'use strict';
	    return defineCommandORM('saveSwapFromSectionCommand', function saveSwapFromSectionCommand(deferred, fromSection) {
	        var selectedSection = {
	            id: fromSection.id,
	            section_type: fromSection.section_type
	        };
	        var from_section = [];
	        var scheduledSiblings = fromSection
	            ? _4.filter(ngMultiSectionServant.getScheduledSiblingSectionsOfSameStatus(fromSection), function (item) { return item.id !== fromSection.id; })
	            : [];
	        var hasRegisteredMultiSections = !_4.isEmpty(scheduledSiblings);
	        var isMultiSection = false;
	        if (hasRegisteredMultiSections) {
	            isMultiSection = true;
	            from_section = _4.compact(_4.map(from_section.concat(scheduledSiblings), function (item) {
	                return {
	                    id: item.id,
	                    section_type: item.section_type
	                };
	            }));
	        }
	        from_section.push(selectedSection);
	        var session = _4.get(_4.find(ngTermSectionTypesDatasource.read(), function (sectionType) { return sectionType.id === fromSection.section_type; }), 'session', '');
	        ngCourseSectionSwapModel.write({
	            session: session,
	            course: fromSection.course,
	            from_section: selectedSection,
	            swap_from_section_ids: from_section,
	            isMultiSection: isMultiSection
	        });
	        deferred.resolve(ngCourseSectionSwapModel.read());
	    });
	});


/***/ }),
/* 1817 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	angular
	    .module('capability-ng-scheduler')
	    .service('saveSwapToSectionCommand', function saveSwapToSectionCommandDefinition($http, defineCommandORM, ngCourseSectionSwapModel, log, updateSwapSectionStatusCommand) {
	    'use strict';
	    return defineCommandORM('saveSwapToSectionCommand', function saveSwapToSectionCommand(deferred, toSection) {
	        var prevToSections = ngCourseSectionSwapModel.read().swap_to_section_ids;
	        var fromSections = ngCourseSectionSwapModel.read().swap_from_section_ids;
	        var isMultiSection = _4.get(toSection, '_course._has_multi_section_types', false);
	        var selectedSection = {
	            id: toSection.id,
	            course: toSection.course,
	            session: _4.get(toSection, '_section_type.session', -1),
	            section_type: toSection.section_type
	        };
	        var to_sections = [];
	        var sectionsToClear;
	        var hasPreviousSection = !_4.isEmpty(prevToSections);
	        var isCourseSame = !_4.isEmpty(_4.find(prevToSections, { course: toSection.course }));
	        var swapingSameSection = _4.find(fromSections, { id: toSection.id });
	        // Prevent same section swap
	        if (swapingSameSection && !isMultiSection) {
	            deferred.reject({ error: 'same_section' });
	            return;
	        }
	        if (isMultiSection && isCourseSame && hasPreviousSection) {
	            // Clear same section type in same session
	            sectionsToClear = _4.filter(prevToSections, {
	                section_type: selectedSection.section_type,
	                session: selectedSection.session
	            });
	            to_sections = _4.filter(prevToSections, function (item) { return item.section_type !== selectedSection.section_type; });
	            to_sections.push(selectedSection);
	        }
	        else {
	            to_sections = [selectedSection];
	            sectionsToClear = prevToSections;
	        }
	        updateSwapSectionStatusCommand(_4.compact(_4.map(sectionsToClear, 'id')), '');
	        updateSwapSectionStatusCommand(_4.compact(_4.map(to_sections, 'id')), scheduled_section_status_enum_1.ScheduledSectionStatus.PENDING);
	        // Reset to sections, because write will only merge
	        ngCourseSectionSwapModel.read().swap_to_section_ids = [];
	        ngCourseSectionSwapModel.write({
	            swap_to_section_ids: to_sections,
	            isMultiSection: isMultiSection
	        });
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1818 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .service('updateSwapFromSectionTypeCommand', function updateSwapFromSectionTypeCommandDefinition($http, defineCommandORM, ngCourseSectionSwapModel, ngSectionsDatasource, ngMultiSectionServant, log, updateSwapSectionStatusCommand, ngTermCourseServant) {
	    'use strict';
	    return defineCommandORM('updateSwapFromSectionTypeCommand', function updateSwapFromSectionTypeCommand(deferred, sectionType) {
	        var previousFromSection = ngCourseSectionSwapModel.read().from_section;
	        var updatedFromSection;
	        updatedFromSection = {
	            id: previousFromSection.id,
	            section_type: sectionType.id
	        };
	        ngCourseSectionSwapModel.write({
	            from_section: updatedFromSection
	        });
	        deferred.resolve(ngCourseSectionSwapModel.read());
	    });
	});


/***/ }),
/* 1819 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .service('updateSwapSectionStatusCommand', function updateSwapSectionStatusCommandDefinition($http, defineCommandORM, ngCourseSectionSwapModel, log, ngSectionsDatasource, ngRegistrationAlertsServant) {
	    'use strict';
	    return defineCommandORM('updateSwapSectionStatusCommand', function updateSwapSectionStatusCommand(deferred, sectionIdstoUpdate, status) {
	        try {
	            var section_1;
	            _4.forEach(sectionIdstoUpdate, function (item) {
	                section_1 = ngSectionsDatasource.get(item);
	                if (section_1) {
	                    section_1.status = typeof status === 'string' ? status : _4.get(status, "" + section_1.id, '');
	                    ngSectionsDatasource.put(section_1);
	                }
	            });
	            deferred.resolve(ngSectionsDatasource.read());
	        }
	        catch (e) {
	            deferred.reject(e);
	        }
	    });
	});


/***/ }),
/* 1820 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var SectionActionButtonController = /** @class */ (function () {
	    function SectionActionButtonController($stateParams, scheduleSectionCommand, $state) {
	        this.$stateParams = $stateParams;
	        this.scheduleSectionCommand = scheduleSectionCommand;
	        this.$state = $state;
	    }
	    SectionActionButtonController.prototype.$onInit = function () {
	        this.canAddToWaitlist = false;
	    };
	    return SectionActionButtonController;
	}());
	exports.SectionActionButtonController = SectionActionButtonController;
	angular.module('capability-ng-scheduler').component('swap_section_button', {
	    templateUrl: 'capability-ng-scheduler/src/components/section_action_button/section_action_button.html',
	    controller: SectionActionButtonController,
	    bindings: {
	        section: '<'
	    }
	});


/***/ }),
/* 1821 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var SectionSwapPreviewController = /** @class */ (function () {
	    function SectionSwapPreviewController(ngSectionSwapPreviewSwapQuery) {
	        this.ngSectionSwapPreviewSwapQuery = ngSectionSwapPreviewSwapQuery;
	    }
	    return SectionSwapPreviewController;
	}());
	exports.SectionSwapPreviewController = SectionSwapPreviewController;
	angular.module('capability-ng-scheduler').component('sectionSwapPreview', {
	    templateUrl: 'capability-ng-scheduler/src/swap/components/section_swap_preview/section_swap_preview.html',
	    controller: SectionSwapPreviewController,
	    bindings: {}
	});


/***/ }),
/* 1822 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var transient_access_cred_constants_1 = __webpack_require__(26);
	var course_scheduler_constants_1 = __webpack_require__(58);
	var _4 = __webpack_require__(1);
	var SwapConfirmationController = /** @class */ (function () {
	    function SwapConfirmationController(ngCourseSectionSwapModel, $stateParams, ngSectionSwapPreviewSwapQuery, saveSwapCommand, $timeout, saveTermPinCommand, ngTermPinServant, $state, ngSectionSwapServant, submitRegAttrFormAndGetOutputCommand, ngCourseSchedulerConstant, removeSectionsRegistrationAttributesCommand, ngPreventTransientAccessQuery, ngComponentCommunicatorService, ngSchedulerCustomTextQuery, ngSectionRegistrationAttributesQuery, removeSectionSelectionCommand, ngRequestStateQuery) {
	        this.ngCourseSectionSwapModel = ngCourseSectionSwapModel;
	        this.$stateParams = $stateParams;
	        this.ngSectionSwapPreviewSwapQuery = ngSectionSwapPreviewSwapQuery;
	        this.saveSwapCommand = saveSwapCommand;
	        this.$timeout = $timeout;
	        this.saveTermPinCommand = saveTermPinCommand;
	        this.ngTermPinServant = ngTermPinServant;
	        this.$state = $state;
	        this.ngSectionSwapServant = ngSectionSwapServant;
	        this.submitRegAttrFormAndGetOutputCommand = submitRegAttrFormAndGetOutputCommand;
	        this.ngCourseSchedulerConstant = ngCourseSchedulerConstant;
	        this.removeSectionsRegistrationAttributesCommand = removeSectionsRegistrationAttributesCommand;
	        this.ngPreventTransientAccessQuery = ngPreventTransientAccessQuery;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngSchedulerCustomTextQuery = ngSchedulerCustomTextQuery;
	        this.ngSectionRegistrationAttributesQuery = ngSectionRegistrationAttributesQuery;
	        this.removeSectionSelectionCommand = removeSectionSelectionCommand;
	        this.ngRequestStateQuery = ngRequestStateQuery;
	        this.heading = '';
	        this.showDialog = false;
	        this.showCourseTitle = false;
	        this.inCourseSwapMode = false;
	        this.sectionPins = {};
	        this.isPermissionPinsFeatureEnabled = false;
	        this.isTermPinFeatureEnabled = false;
	        this.performSwapBound = this.performSwap.bind(this);
	        this.cancelDialogBound = this.cancelDialog.bind(this);
	        this.ngComponentCommunicatorService.subscribe(transient_access_cred_constants_1.TransientAccessCredEventNames.NEW_CRED_SAVED, this.performSwapBound);
	        this.ngComponentCommunicatorService.subscribe(transient_access_cred_constants_1.TransientAccessCredEventNames.CRED_FORM_ENTRY_CANCELLED, this.cancelDialogBound);
	    }
	    SwapConfirmationController.prototype.init = function () {
	        this.inCourseSwapMode = _4.isEqual(_4.get(this.$stateParams, 'swapCourse', 'false'), 'true');
	        this.heading = this.inCourseSwapMode
	            ? 'Confirm Swap'
	            : "Confirm Your New Times for\n      " + (_4.get(_4.head(this.ngSectionSwapPreviewSwapQuery.result.from), '_course.cd') || 'Selected Course');
	        this.showCourseTitle = this.inCourseSwapMode;
	        this.isPermissionPinsFeatureEnabled = this.ngSectionSwapServant.isPermissionPinsFeatureEnabled();
	        this.isTermPinFeatureEnabled = this.ngTermPinServant.isTermPinFeatureEnabled();
	    };
	    SwapConfirmationController.prototype.$onChanges = function () {
	        this.init();
	    };
	    SwapConfirmationController.prototype.$onDestroy = function () {
	        this.ngComponentCommunicatorService.release(transient_access_cred_constants_1.TransientAccessCredEventNames.NEW_CRED_SAVED, this.performSwapBound);
	        this.ngComponentCommunicatorService.release(transient_access_cred_constants_1.TransientAccessCredEventNames.CRED_FORM_ENTRY_CANCELLED, this.cancelDialogBound);
	    };
	    SwapConfirmationController.prototype.submitRegAttrForm = function () {
	        var toSectionIds = this.ngSectionSwapPreviewSwapQuery.result.to.map(function (section) { return section.id; });
	        var formElement = document.querySelector("#" + course_scheduler_constants_1.CourseSchedulerConstant.swapConfirmationRegAttrFormId);
	        return this.submitRegAttrFormAndGetOutputCommand(formElement, course_scheduler_constants_1.CourseSchedulerConstant.swapConfirmationRegAttrFormId, toSectionIds);
	    };
	    SwapConfirmationController.prototype.performSwap = function () {
	        var _this = this;
	        var userAuthRequired = this.ngPreventTransientAccessQuery.result.redirectToAuthWorkflow;
	        if (userAuthRequired) {
	            return this.submitRegAttrForm().then(function () {
	                _this.ngComponentCommunicatorService.publish(transient_access_cred_constants_1.TransientAccessCredEventNames.TOGGLE_CRED_STEPS);
	            });
	        }
	        return this.submitRegAttrForm()
	            .then(function (swapRegAttrs) {
	            _this.saveTermPinCommand(_this.$stateParams.termId).then(function () { return _this.swap(swapRegAttrs); });
	        })
	            .catch(function (e) {
	            // switch step tabs without filling the reg attr and initiate the swap action from auth cred form
	            // this catch means the reg attr form output doesn't exist.
	            if (_this.ngPreventTransientAccessQuery.result.workflowEnabled) {
	                _this.ngComponentCommunicatorService.publish(transient_access_cred_constants_1.TransientAccessCredEventNames.TOGGLE_CRED_STEPS);
	            }
	            var formRenderingDelay = 500;
	            _this.$timeout(function () {
	                _this.submitRegAttrForm();
	            }, formRenderingDelay);
	        });
	    };
	    SwapConfirmationController.prototype.swap = function (swapRegAttrs) {
	        var _this = this;
	        var fromData = _4.compact(this.ngCourseSectionSwapModel.read().swap_from_section_ids.map(function (section) { return section.id; }));
	        var toData = _4.compact(this.ngCourseSectionSwapModel.read().swap_to_section_ids.map(function (section) { return section.id; }));
	        this.saveSwapCommand(this.$stateParams.termId, fromData, toData, this.sectionPins, swapRegAttrs, this.ngPreventTransientAccessQuery.result.output).then(function () {
	            fromData.map(function (sectionId) { return _this.removeSectionSelectionCommand(sectionId); });
	            _this.cancelDialog();
	            _this.$timeout(function () {
	                _this.$state.go('my.schedule.registration');
	            }, 1);
	        });
	    };
	    SwapConfirmationController.prototype.onPinValueChanged = function (event) {
	        var pin = event.detail.value;
	        var toSectionIds = _4.compact(_4.map(this.ngCourseSectionSwapModel.read().swap_to_section_ids, 'id'));
	        this._saveSectionPins(toSectionIds, pin);
	    };
	    SwapConfirmationController.prototype._saveSectionPins = function (sectionIds, pin) {
	        var _this = this;
	        _4.forEach(sectionIds, function (sectionId) {
	            _this.sectionPins[sectionId] = pin;
	        });
	    };
	    SwapConfirmationController.prototype.cancelDialog = function () {
	        var _this = this;
	        var toSectionIds = this.ngCourseSectionSwapModel.read().swap_to_section_ids.map(function (section) { return section.id; });
	        this.removeSectionsRegistrationAttributesCommand(toSectionIds).then(function () { return (_this.showDialog = false); });
	    };
	    return SwapConfirmationController;
	}());
	exports.SwapConfirmationController = SwapConfirmationController;
	angular.module('capability-ng-scheduler').component('swapConfirmationDialog', {
	    templateUrl: 'capability-ng-scheduler/src/swap/components/swap_confirmation_dialog/swap_confirmation_dialog.html',
	    controller: SwapConfirmationController,
	    bindings: {
	        showDialog: '='
	    }
	});


/***/ }),
/* 1823 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SwapFooterController = /** @class */ (function () {
	    function SwapFooterController(ngSectionSwapPreviewSwapQuery, $state, $stateParams, ngCourseSectionSwapModel, updateSwapSectionStatusCommand, getTermPinCommand, ngTermPinServant, $q, clearTransientAccessCredCommand, loadSectionRegistrationAttributesCommand) {
	        this.ngSectionSwapPreviewSwapQuery = ngSectionSwapPreviewSwapQuery;
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	        this.ngCourseSectionSwapModel = ngCourseSectionSwapModel;
	        this.updateSwapSectionStatusCommand = updateSwapSectionStatusCommand;
	        this.getTermPinCommand = getTermPinCommand;
	        this.ngTermPinServant = ngTermPinServant;
	        this.$q = $q;
	        this.clearTransientAccessCredCommand = clearTransientAccessCredCommand;
	        this.loadSectionRegistrationAttributesCommand = loadSectionRegistrationAttributesCommand;
	        this.showSwapDialog = false;
	        this.showSwapErrorDialog = false;
	    }
	    SwapFooterController.prototype.exitSwap = function () {
	        this.$state.go('my.schedule.registration');
	        var toData = _4.compact(_4.map(this.ngCourseSectionSwapModel.read().swap_to_section_ids, 'id'));
	        var fromData = _4.compact(_4.map(this.ngCourseSectionSwapModel.read().swap_from_section_ids, 'id'));
	        this.updateSwapSectionStatusCommand(toData, '');
	        this.ngCourseSectionSwapModel.clear();
	        this.getTermPinCommand(this.$stateParams.termId);
	    };
	    SwapFooterController.prototype.closeSwapErrorDialog = function () {
	        this.showSwapErrorDialog = false;
	    };
	    SwapFooterController.prototype.openSwapDialog = function () {
	        var _this = this;
	        if (this.ngSectionSwapPreviewSwapQuery.result.disableSwap) {
	            this.showSwapErrorDialog = true;
	            return;
	        }
	        var regAttributesForSections = [];
	        this.ngSectionSwapPreviewSwapQuery.result.to.forEach(function (section) {
	            return regAttributesForSections.push(_this.loadSectionRegistrationAttributesCommand(section.id));
	        });
	        this.$q
	            .all(regAttributesForSections.concat([this.clearTransientAccessCredCommand()]))
	            .then(function () { return _this.getTermPinCommand(_this.$stateParams.termId); })
	            .then(function () {
	            _this.showSwapDialog = true;
	        });
	    };
	    return SwapFooterController;
	}());
	exports.SwapFooterController = SwapFooterController;
	angular.module('capability-ng-scheduler').component('swapFooter', {
	    templateUrl: 'capability-ng-scheduler/src/swap/components/swap_footer/swap_footer.html',
	    controller: SwapFooterController,
	    bindings: {}
	});


/***/ }),
/* 1824 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SwapHeaderController = /** @class */ (function () {
	    function SwapHeaderController(ngSectionSwapPreviewSwapQuery, $state, $stateParams, ngCourseSectionSwapModel, ngSectionSwapServant, clearSwapSelectionsCommand, getTermPinCommand, $q, clearTransientAccessCredCommand, loadSectionRegistrationAttributesCommand, ngSchedulerNotificationServant) {
	        this.ngSectionSwapPreviewSwapQuery = ngSectionSwapPreviewSwapQuery;
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	        this.ngCourseSectionSwapModel = ngCourseSectionSwapModel;
	        this.ngSectionSwapServant = ngSectionSwapServant;
	        this.clearSwapSelectionsCommand = clearSwapSelectionsCommand;
	        this.getTermPinCommand = getTermPinCommand;
	        this.$q = $q;
	        this.clearTransientAccessCredCommand = clearTransientAccessCredCommand;
	        this.loadSectionRegistrationAttributesCommand = loadSectionRegistrationAttributesCommand;
	        this.ngSchedulerNotificationServant = ngSchedulerNotificationServant;
	        this.iconTheme = 'white';
	        this.showSwapDialog = false;
	    }
	    SwapHeaderController.prototype.$onInit = function () {
	        this.init();
	    };
	    SwapHeaderController.prototype.init = function () {
	        this.section = _4.find(this.ngSectionSwapPreviewSwapQuery.result.from, {
	            section_type: this.ngCourseSectionSwapModel.read().from_section.section_type
	        });
	        this.hasMultiSection = this.section && !_4.isEmpty(this.section._section_type);
	        this.classTitle = this.section ? this.getHeaderTitle(this.section._course) : "";
	        this.showBackButton = this.ngSectionSwapServant.showSwapBackButton(this.$stateParams.swapCourse);
	        if (this.$stateParams.swapCourse === 'true') {
	            this.swapModeLabel = 'Courses';
	            this.headerLabel = 'Pick a new course to swap ';
	        }
	        else {
	            this.swapModeLabel = 'Times';
	            this.headerLabel = 'Pick a new time for ';
	        }
	    };
	    SwapHeaderController.prototype.getHeaderTitle = function (course) {
	        return course ? course.nk + " " + course.title : "";
	    };
	    SwapHeaderController.prototype.__onExitTriggerEnded = function () {
	        this.exitSwap();
	    };
	    SwapHeaderController.prototype.exitSwap = function () {
	        var _this = this;
	        this.clearSwapSelectionsCommand().then(function () { return _this.$state.go('my.schedule.registration'); });
	    };
	    SwapHeaderController.prototype.changeIconThemeToWhite = function () {
	        this.iconTheme = 'white';
	    };
	    SwapHeaderController.prototype.changeIconThemeToGray = function () {
	        this.iconTheme = 'gray';
	    };
	    SwapHeaderController.prototype.__onSwapTriggerEnded = function () {
	        this.openSwapConfirmationDialog();
	    };
	    SwapHeaderController.prototype.openSwapConfirmationDialog = function () {
	        var _this = this;
	        if (this.ngSectionSwapPreviewSwapQuery.result.disableSwap) {
	            this.ngSchedulerNotificationServant.showErrorNotification('That section is not valid to swap');
	            return;
	        }
	        var regAttributesForSections = [];
	        this.ngSectionSwapPreviewSwapQuery.result.to.forEach(function (section) {
	            return regAttributesForSections.push(_this.loadSectionRegistrationAttributesCommand(section.id));
	        });
	        this.$q
	            .all(regAttributesForSections.concat([this.clearTransientAccessCredCommand()]))
	            .then(function () { return _this.getTermPinCommand(_this.$stateParams.termId); })
	            .then(function () {
	            _this.showSwapDialog = true;
	        });
	    };
	    return SwapHeaderController;
	}());
	exports.SwapHeaderController = SwapHeaderController;
	angular.module('capability-ng-scheduler').component('swapHeader', {
	    templateUrl: 'capability-ng-scheduler/src/swap/components/swap_header/swap_header.html',
	    controller: SwapHeaderController,
	    bindings: {}
	});


/***/ }),
/* 1825 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var swap_strategy_1 = __webpack_require__(221);
	var SwapPreviewBannerController = /** @class */ (function () {
	    function SwapPreviewBannerController(ngSectionSwapServant) {
	        this.ngSectionSwapServant = ngSectionSwapServant;
	        this.isSwap = false;
	        this.showCheck = false;
	    }
	    SwapPreviewBannerController.prototype.$onChanges = function () {
	        this.init();
	    };
	    SwapPreviewBannerController.prototype.init = function () {
	        this.isSwap = !_4.isUndefined(this.section._swap_type) && this.ngSectionSwapServant.isInSwapMode();
	        this.bannerMessage = swap_strategy_1.SwapTypeStrategy[this.section._swap_type];
	        this.showCheck = this.section._swap_type === 'to';
	    };
	    return SwapPreviewBannerController;
	}());
	exports.SwapPreviewBannerController = SwapPreviewBannerController;
	angular.module('capability-ng-scheduler').component('swapPreviewBanner', {
	    templateUrl: 'capability-ng-scheduler/src/swap/components/swap_preview_banner/swap_preview_banner.html',
	    controller: SwapPreviewBannerController,
	    bindings: {
	        section: '<'
	    }
	});


/***/ }),
/* 1826 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var scheduled_section_tile_component_1 = __webpack_require__(224);
	angular.module('capability-ng-scheduler').component('swapPreviewSectionTile', {
	    templateUrl: 'capability-ng-scheduler/src/swap/components/swap_preview_section_tile/swap_preview_section_tile.html',
	    controller: scheduled_section_tile_component_1.ScheduledSectionTile,
	    bindings: {
	        section: '<'
	    }
	});


/***/ }),
/* 1827 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var UnscheduledSectionSwapButtonController = /** @class */ (function () {
	    function UnscheduledSectionSwapButtonController(ngSectionSwapServant, ngSwapFacade) {
	        this.ngSectionSwapServant = ngSectionSwapServant;
	        this.ngSwapFacade = ngSwapFacade;
	    }
	    UnscheduledSectionSwapButtonController.prototype.$onInit = function () {
	        this.init();
	    };
	    UnscheduledSectionSwapButtonController.prototype.init = function () {
	        this.canSwap = this.ngSectionSwapServant.isInSwapMode();
	    };
	    UnscheduledSectionSwapButtonController.prototype.$onChanges = function () {
	        this.init();
	    };
	    UnscheduledSectionSwapButtonController.prototype.swapButtonTriggered = function () {
	        this.ngSwapFacade.saveSwapToAndRedirect(this.section);
	    };
	    return UnscheduledSectionSwapButtonController;
	}());
	exports.UnscheduledSectionSwapButtonController = UnscheduledSectionSwapButtonController;
	angular.module('capability-ng-scheduler').component('unscheduledSectionSwapButton', {
	    templateUrl: 'capability-ng-scheduler/src/swap/components/unscheduled_section_swap_button/unscheduled_section_swap_button.html',
	    controller: UnscheduledSectionSwapButtonController,
	    bindings: {
	        section: '<'
	    }
	});


/***/ }),
/* 1828 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var swap_strategy_1 = __webpack_require__(221);
	var _4 = __webpack_require__(1);
	var SwapFacade = /** @class */ (function () {
	    function SwapFacade(saveSwapToSectionCommand, ngCourseSectionSwapModel, ngSectionSwapServant, $state, $stateParams, ngRegistrationAlertsServant, $timeout) {
	        this.saveSwapToSectionCommand = saveSwapToSectionCommand;
	        this.ngCourseSectionSwapModel = ngCourseSectionSwapModel;
	        this.ngSectionSwapServant = ngSectionSwapServant;
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	        this.ngRegistrationAlertsServant = ngRegistrationAlertsServant;
	        this.$timeout = $timeout;
	    }
	    SwapFacade.prototype.saveSwapToAndRedirect = function (section) {
	        var _this = this;
	        this.saveSwapToSectionCommand(section)
	            .then(function () {
	            _this.$timeout(function () {
	                var swappingToSectionEl = document.querySelector("section-swap-preview #section-" + section.cd);
	                if (swappingToSectionEl) {
	                    swappingToSectionEl.scrollIntoView({ behavior: 'smooth' });
	                }
	            }, 0);
	            var isSwapCourse = _4.isEqual(_4.get(_this.$stateParams, 'swapCourse', 'false'), 'true');
	            var notificationText = "New " + (isSwapCourse ? 'course' : 'section time') + " added to swap";
	            _this.ngRegistrationAlertsServant.createGenericNotification(notificationText, 'success');
	            if (_this.ngCourseSectionSwapModel.read().isMultiSection) {
	                _this.$state.go("my.schedule.registration.swap.sectionTypeList", {
	                    courseId: section.course,
	                    sectionTypeId: section.section_type,
	                    ignoreConflicts: true,
	                    swapCourse: isSwapCourse
	                });
	            }
	        })
	            .catch(function (e) {
	            _this.ngRegistrationAlertsServant.createGenericNotification(swap_strategy_1.SwapErrorStrategy[e.error].text, 'error');
	        });
	    };
	    return SwapFacade;
	}());
	exports.SwapFacade = SwapFacade;
	angular.module('capability-ng-scheduler').service('ngSwapFacade', SwapFacade);


/***/ }),
/* 1829 */
880,
/* 1830 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngCourseSectionSwapModel', function () {
	    return new utility_ts_orm_1.Model({
	        course: -1,
	        isMultiSection: false,
	        session: '',
	        from_section: {
	            id: -1,
	            section_type: -1
	        },
	        swap_from_section_ids: [],
	        swap_to_section_ids: []
	    });
	});


/***/ }),
/* 1831 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var SectionSwapPreviewQuery = /** @class */ (function () {
	    function SectionSwapPreviewQuery(QueryMediator, ngSectionsDatasource, ngMultiSectionServant, ngTermCoursesDatasource, ngCourseSectionSwapModel, ngScheduledSectionsQuery) {
	        this.QueryMediator = QueryMediator;
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngMultiSectionServant = ngMultiSectionServant;
	        this.ngTermCoursesDatasource = ngTermCoursesDatasource;
	        this.ngCourseSectionSwapModel = ngCourseSectionSwapModel;
	        this.ngScheduledSectionsQuery = ngScheduledSectionsQuery;
	        QueryMediator.registerQuery(this, ngSectionsDatasource, ngCourseSectionSwapModel);
	    }
	    SectionSwapPreviewQuery.prototype.clear = function () {
	        this._result = {
	            from: [],
	            to: [],
	            disableSwap: true
	        };
	    };
	    SectionSwapPreviewQuery.prototype.run = function () {
	        var _this = this;
	        var allScheduledSections = this.ngScheduledSectionsQuery.result.list;
	        var fromSections = _4.compact(_4.map(this.ngCourseSectionSwapModel.read().swap_from_section_ids, function (item) {
	            return _4.find(allScheduledSections, { id: item.id });
	        }));
	        var toSections = _4.compact(_4.map(this.ngCourseSectionSwapModel.read().swap_to_section_ids, function (item) {
	            return _4.find(_this.ngSectionsDatasource.metasource().derived(), { id: item.id });
	        }));
	        fromSections = _4.sortBy(fromSections, function (item) { return _4.get(item, '_section_type.cd'); });
	        toSections = _4.sortBy(toSections, function (item) { return _4.get(item, '_section_type.cd'); });
	        var toSectionIds = _4.sortBy(_4.compact(_4.map(toSections, function (section) { return _4.get(section, 'id'); })));
	        var fromSectionIds = _4.sortBy(_4.compact(_4.map(fromSections, function (section) { return _4.get(section, 'id'); })));
	        var isSwaapingSameSections = _4.isEqual(toSectionIds, fromSectionIds);
	        var disableSwap = false;
	        if (this.ngCourseSectionSwapModel.read().isMultiSection && !_4.isEmpty(_4.first(toSections))) {
	            var course = _4.first(toSections)._course;
	            var session_1 = _4.get(_4.first(toSections)._section_type, 'session', '');
	            var requiredSectionTypeIds = _4.map(_4.filter(course._section_types, function (sectionType) {
	                return sectionType.is_active && sectionType.session === session_1 && sectionType.is_required;
	            }), 'id');
	            var toSectionTypeIds = _4.sortBy(_4.compact(_4.map(toSections, function (section) { return _4.get(section, '_section_type.id'); })));
	            disableSwap = !!_4.size(_4.difference(requiredSectionTypeIds, toSectionTypeIds)) || isSwaapingSameSections;
	        }
	        else {
	            disableSwap = toSections.length < 1 || isSwaapingSameSections;
	        }
	        var from = fromSections.map(function (fromSection) { return (tslib_1.__assign(tslib_1.__assign({}, fromSection), { _swap_type: 'from' })); });
	        var to = toSections.map(function (toSection) { return (tslib_1.__assign(tslib_1.__assign({}, toSection), { _swap_type: 'to' })); });
	        this._result = {
	            from: from,
	            to: to,
	            disableSwap: disableSwap
	        };
	        return this;
	    };
	    Object.defineProperty(SectionSwapPreviewQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return SectionSwapPreviewQuery;
	}());
	exports.SectionSwapPreviewQuery = SectionSwapPreviewQuery;
	angular.module('capability-ng-scheduler').service('ngSectionSwapPreviewSwapQuery', SectionSwapPreviewQuery);


/***/ }),
/* 1832 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SwapCallbackServant = /** @class */ (function () {
	    function SwapCallbackServant(updateSwapSectionStatusCommand, ngRegistrationFailureModel, ngTermCoursesDatasource) {
	        this.updateSwapSectionStatusCommand = updateSwapSectionStatusCommand;
	        this.ngRegistrationFailureModel = ngRegistrationFailureModel;
	        this.ngTermCoursesDatasource = ngTermCoursesDatasource;
	    }
	    SwapCallbackServant.prototype.swapSuccess = function (outcomeData) {
	        this.updateSwapSectionStatusCommand(outcomeData.swap_from_section_ids, '');
	        this.updateSwapSectionStatusCommand(outcomeData.swap_to_section_ids, 'REGISTERED');
	    };
	    SwapCallbackServant.prototype.swapFails = function (outcomeData, previousSwapStatus) {
	        if (previousSwapStatus === void 0) { previousSwapStatus = {}; }
	        this.addErrorToModel(outcomeData);
	        this.updateSwapSectionStatusCommand(outcomeData.swap_to_section_ids, '');
	        this.updateSwapSectionStatusCommand(outcomeData.swap_from_section_ids, previousSwapStatus);
	    };
	    SwapCallbackServant.prototype.addErrorToModel = function (outcomeData) {
	        var _this = this;
	        _4.forEach(outcomeData.swap_from_section_ids, function (sectionId) {
	            return _this.ngRegistrationFailureModel.put({
	                type: 'SWAP',
	                id: sectionId,
	                message: outcomeData.message
	            });
	        });
	    };
	    SwapCallbackServant.prototype.getCourseFromSection = function (section) {
	        return this.ngTermCoursesDatasource.get(section.course);
	    };
	    return SwapCallbackServant;
	}());
	exports.SwapCallbackServant = SwapCallbackServant;
	angular.module('capability-ng-scheduler').service('ngSwapCallbackServant', SwapCallbackServant);


/***/ }),
/* 1833 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var CheckTimeWithInstructorUtility = /** @class */ (function () {
	    function CheckTimeWithInstructorUtility() {
	        this.ONLINE = 8;
	    }
	    CheckTimeWithInstructorUtility.prototype.areTimesNotSpecified = function (sectionTimes) {
	        return this.isAnyTimeMissing(sectionTimes);
	    };
	    CheckTimeWithInstructorUtility.prototype.isAnyDayNotSure = function (sectionTimes) {
	        var _this = this;
	        return _4.some(sectionTimes, function (sectionTime) { return sectionTime.day_of_week === _this.ONLINE; });
	    };
	    CheckTimeWithInstructorUtility.prototype.isAnyTimeMissing = function (sectionTimes) {
	        return _4.some(sectionTimes, function (sectionTime) { return _4.isEmpty(sectionTime.from_tm) || _4.isEmpty(sectionTime.to_tm); });
	    };
	    return CheckTimeWithInstructorUtility;
	}());
	exports.CheckTimeWithInstructorUtility = CheckTimeWithInstructorUtility;
	angular.module('capability-ng-scheduler').service('isCheckTimeWithInstructor', CheckTimeWithInstructorUtility);
	angular.module('capability-ng-scheduler').service('ngCheckTimeWithInstructorUtility', CheckTimeWithInstructorUtility);


/***/ }),
/* 1834 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .directive('positionRegistrationAlerts', function positionRegistrationAlerts($document, $window) {
	    'use strict';
	    return {
	        link: function (scope, element, attrs) {
	            var body = $document.find('body');
	            var headerHeight = 120;
	            var debounceTime = 100;
	            // using throttle here instead of bounce -- https://css-tricks.com/the-difference-between-throttling-and-debouncing/
	            angular.element($window).on('scroll', _4.throttle(toggleScrollClass, debounceTime));
	            function toggleScrollClass() {
	                var scrollPstn = body.scrollTop();
	                if (scrollPstn > headerHeight) {
	                    body.addClass('page-scroll-adjust-notifications');
	                }
	                else {
	                    body.removeClass('page-scroll-adjust-notifications');
	                }
	            }
	            scope.$on('$destroy', function () {
	                angular.element($window).off('scroll', _4.throttle(toggleScrollClass, debounceTime));
	            });
	        }
	    };
	});


/***/ }),
/* 1835 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	/**
	 * @capability-ng-scheduler
	 */
	__webpack_require__(12);
	__webpack_require__(62);
	__webpack_require__(16);
	__webpack_require__(22);
	__webpack_require__(21);
	__webpack_require__(870);
	__webpack_require__(46);
	__webpack_require__(111);
	__webpack_require__(442);
	__webpack_require__(444);
	__webpack_require__(107);
	__webpack_require__(440);
	__webpack_require__(67);
	__webpack_require__(34);
	__webpack_require__(108);
	__webpack_require__(274);
	__webpack_require__(117);
	__webpack_require__(269);


/***/ }),
/* 1836 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('getAppointmentScheduleLabelCommand', function (defineCommandORM, ngAppointmentScheduleModel, ngCustomContentsServant) {
	    return defineCommandORM('getAppointmentScheduleLabelCommand', function (deferred) {
	        ngCustomContentsServant
	            .getButtonLabel('Schedule an Appointment')
	            .then(function (label) {
	            ngAppointmentScheduleModel.write({ label: label });
	        })
	            .catch(function () {
	            ngAppointmentScheduleModel.write({ label: 'Appointment Schedule' });
	        })
	            .finally(function () { return deferred.resolve(); });
	    });
	});


/***/ }),
/* 1837 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('toggleQuickScheduleErrorCommand', function (defineCommandORM, ngQuickScheduleModel) {
	    return defineCommandORM('toggleQuickScheduleErrorCommand', function (deferred, showError) {
	        ngQuickScheduleModel.write({ showQuickScheduleError: showError });
	        return deferred.resolve();
	    });
	});


/***/ }),
/* 1838 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var QuickScheduleErrorDialog = /** @class */ (function () {
	    function QuickScheduleErrorDialog(ngQuickScheduleQuery, ngQuickScheduleFacade) {
	        this.ngQuickScheduleQuery = ngQuickScheduleQuery;
	        this.ngQuickScheduleFacade = ngQuickScheduleFacade;
	    }
	    return QuickScheduleErrorDialog;
	}());
	angular.module('capability-ng-scheduler').component('quickScheduleErrorDialog', {
	    templateUrl: 'capability-ng-scheduler/src/views/aside/scheduler_navigation/components/quick_schedule_error_dialog/quick_schedule_error_dialog.html',
	    controller: QuickScheduleErrorDialog
	});


/***/ }),
/* 1839 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var SchedulerNavigationItems = /** @class */ (function () {
	    function SchedulerNavigationItems($state, ngTermCourseQuery, ngCustomContentsServant, appConfigModel, $timeout, ngSearchAndCourseFeatureFacade, ngQuickScheduleFacade) {
	        this.$state = $state;
	        this.ngTermCourseQuery = ngTermCourseQuery;
	        this.ngCustomContentsServant = ngCustomContentsServant;
	        this.appConfigModel = appConfigModel;
	        this.$timeout = $timeout;
	        this.ngSearchAndCourseFeatureFacade = ngSearchAndCourseFeatureFacade;
	        this.ngQuickScheduleFacade = ngQuickScheduleFacade;
	        this.quickScheduleEnabled = false;
	        this.appointmentFeatureEnabled = false;
	        this.navigationItems = [];
	    }
	    SchedulerNavigationItems.prototype.$onInit = function () {
	        this.refreshNavigationItems();
	    };
	    SchedulerNavigationItems.prototype.$onChanges = function () {
	        this.refreshNavigationItems();
	    };
	    SchedulerNavigationItems.prototype.getNaviationItems = function (scheduleLabel) {
	        var _this = this;
	        this.quickScheduleEnabled = this.appConfigModel.isFeatureEnabled('reg-quick_scheduler');
	        this.appointmentFeatureEnabled = this.appConfigModel.isFeatureEnabled('ssccampus-appointment_scheduling');
	        return [
	            {
	                id: 0,
	                title: 'My Planned Courses',
	                icon: 'calender',
	                visible: true,
	                active: this.$state.is('my.schedule.registration'),
	                action: function () { return _this.$state.go('my.schedule.registration'); }
	            },
	            {
	                id: 1,
	                title: 'Search For Sections',
	                icon: 'search',
	                visible: true,
	                active: this.$state.is('my.schedule.registration.search'),
	                action: function () { return _this.$state.go('my.schedule.registration.search'); }
	            },
	            {
	                id: 2,
	                title: 'Search For Courses',
	                icon: 'report',
	                active: this.$state.is('my.schedule.searchandaddcourses'),
	                visible: this.ngSearchAndCourseFeatureFacade.isFeatureEnabled,
	                action: function () { return _this.$state.go('my.schedule.searchandaddcourses'); }
	            },
	            {
	                id: 3,
	                title: 'Transaction History',
	                icon: 'book',
	                visible: true,
	                active: this.$state.is('my.schedule.transactions'),
	                action: function () { return _this.$state.go('my.schedule.transactions'); }
	            },
	            {
	                id: 4,
	                title: scheduleLabel,
	                icon: 'user',
	                visible: this.appointmentFeatureEnabled,
	                external: true,
	                action: function () { return window.open(window.location.origin + "/app/" + _this.$state.href('my.appointments')); }
	            },
	            {
	                id: 5,
	                title: 'Quick Schedule',
	                icon: 'alarm',
	                visible: this.quickScheduleEnabled,
	                active: this.$state.is('my.schedule.quickscheduler'),
	                action: function () { return _this.ngQuickScheduleFacade.quickScheduleAction(); }
	            },
	            {
	                id: 6,
	                title: 'Preferences',
	                icon: 'gear',
	                visible: true,
	                active: this.$state.is('my.schedule.registration.preferences'),
	                action: function () { return _this.$state.go('my.schedule.registration.preferences'); }
	            }
	        ].filter(function (item) { return item.visible; });
	    };
	    SchedulerNavigationItems.prototype.tertiaryMenuClicked = function (e) {
	        this.navigationItems = _4.map(this.navigationItems, function (item) { return (tslib_1.__assign(tslib_1.__assign({}, item), { active: false })); });
	        var menuObject = _4.find(this.navigationItems, { id: _4.get(e, 'detail.value.id', 0) });
	        if (menuObject.action) {
	            menuObject.active = true;
	            menuObject.action();
	        }
	    };
	    SchedulerNavigationItems.prototype.refreshNavigationItems = function () {
	        var _this = this;
	        this.ngCustomContentsServant
	            .getButtonLabel('Schedule an Appointment')
	            .then(function (label) {
	            _this.navigationItems = _this.getNaviationItems(label);
	        })
	            .catch(function () {
	            _this.$timeout(function () {
	                _this.navigationItems = _this.getNaviationItems('Appointment Schedule');
	            });
	        });
	    };
	    return SchedulerNavigationItems;
	}());
	angular.module('capability-ng-scheduler').component('schedulerNavigationItems', {
	    templateUrl: 'capability-ng-scheduler/src/views/aside/scheduler_navigation_items/scheduler_navigation_items.html',
	    controller: SchedulerNavigationItems
	});


/***/ }),
/* 1840 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_strategy_1 = __webpack_require__(6);
	var _4 = __webpack_require__(1);
	var SchedulerNavigationMenu = /** @class */ (function () {
	    function SchedulerNavigationMenu($state, ngComponentCommunicatorService, ngRegistrationFacade, ngRegistrationPinsPermissionFacade, ngSchedulerNavigationMenuQuery, ngPayTuitionFacade, ngSelectedSectionActionsFacade, ngQuickScheduleFacade, $element, $timeout, getAppointmentScheduleLabelCommand, ngRequestStateQuery) {
	        var _this = this;
	        this.$state = $state;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngRegistrationFacade = ngRegistrationFacade;
	        this.ngRegistrationPinsPermissionFacade = ngRegistrationPinsPermissionFacade;
	        this.ngSchedulerNavigationMenuQuery = ngSchedulerNavigationMenuQuery;
	        this.ngPayTuitionFacade = ngPayTuitionFacade;
	        this.ngSelectedSectionActionsFacade = ngSelectedSectionActionsFacade;
	        this.ngQuickScheduleFacade = ngQuickScheduleFacade;
	        this.$element = $element;
	        this.$timeout = $timeout;
	        this.getAppointmentScheduleLabelCommand = getAppointmentScheduleLabelCommand;
	        this.ngRequestStateQuery = ngRequestStateQuery;
	        this.__menuItemStrategy = new utility_ts_strategy_1.Strategy({
	            switchTerm: function (value) { return _this.__onSwitchTerm(value); },
	            myPlannedCourses: function () { return _this.$state.go('my.schedule.registration'); },
	            searchForSections: function () { return _this.$state.go('my.schedule.registration.search'); },
	            searchForCourses: function () { return _this.$state.go('my.schedule.searchandaddcourses'); },
	            transactionHistory: function () { return _this.$state.go('my.schedule.transactions'); },
	            scheduleAppointmentDesktop: function () {
	                return window.open(window.location.origin + "/app/" + _this.$state.href('my.appointments'));
	            },
	            scheduleAppointmentMobile: function () { return _this.$state.go('my.appointment-new'); },
	            quickSchedule: function () { return _this.ngQuickScheduleFacade.quickScheduleAction(); },
	            preferences: function () { return _this.$state.go('my.schedule.registration.preferences'); },
	            sectionPin: function () { return _this.ngRegistrationPinsPermissionFacade.onEnterSectionPinsTriggerEnded(); },
	            termPin: function () { return _this.ngRegistrationPinsPermissionFacade.onEnterTermPinsTriggerEnded(); },
	            payTuition: function () { return _this.ngPayTuitionFacade.onPayTuitionTriggerEnded(); },
	            registrationPortal: function () { return _this.ngRegistrationFacade.onRegisterPortalTriggerEnded(); },
	            registerSections: function () { return _this.ngRegistrationFacade.beginRegistration(); },
	            dropSections: function () { return _this.ngSelectedSectionActionsFacade.openMultiSectionsActionModal('drop'); },
	            withdrawSections: function () { return _this.ngSelectedSectionActionsFacade.openMultiSectionsActionModal('withdraw'); },
	            waitlistSections: function () { return _this.ngSelectedSectionActionsFacade.openMultiSectionsActionModal('waitlist'); }
	        });
	        this.registrationPrecheckUpdatedBound = this.ngRegistrationFacade.registrationPrecheckUpdated;
	        this.saveTermPinAndContinueBound = this.ngRegistrationFacade.saveTermPinAndContinue;
	    }
	    SchedulerNavigationMenu.prototype.$onInit = function () {
	        this.ngComponentCommunicatorService.subscribe('REGISRATION_PRE_CHECK_SUCCESS', this.registrationPrecheckUpdatedBound);
	        this.ngComponentCommunicatorService.subscribe('REGISRATION_PRE_CHECK_FAIL', this.registrationPrecheckUpdatedBound);
	        this.ngComponentCommunicatorService.subscribe('SAVE_TERM_PIN_AND_CONTINUE', this.saveTermPinAndContinueBound);
	        this.getAppointmentScheduleLabelCommand();
	    };
	    SchedulerNavigationMenu.prototype.$onDestroy = function () {
	        this.ngComponentCommunicatorService.release('REGISRATION_PRE_CHECK_SUCCESS', this.registrationPrecheckUpdatedBound);
	        this.ngComponentCommunicatorService.release('REGISRATION_PRE_CHECK_FAIL', this.registrationPrecheckUpdatedBound);
	        this.ngComponentCommunicatorService.release('SAVE_TERM_PIN_AND_CONTINUE', this.saveTermPinAndContinueBound);
	    };
	    // SGD-21826 We should reload the same state only when the user is in Search Course or Search for sections
	    SchedulerNavigationMenu.prototype.__onSwitchTerm = function (termId) {
	        var state = this.$state.current; // Get the current state
	        var stateName = state.name; // Get the name of the current state
	        // Check if the state or stateName is undefined or empty
	        if (!state || _4.isEmpty(state) || !stateName || _4.isEmpty(stateName)) {
	            // If any of the checks fail, redirect to the current state with the new termId and force a reload
	            return this.$state.go(state, { termId: termId }, { reload: true });
	        }
	        // Define the main registration state
	        var regState = 'my.schedule.registration';
	        // Define a substring of the registration state for easier checking
	        var regSubState = regState + ".";
	        // Check if the current state includes the registration substring
	        var isRegSubState = stateName.includes(regSubState);
	        // Define the specific registration search state
	        var regSearchSectionSubState = regSubState + "search";
	        // Check if the current state is exactly the registration search state
	        var isRegSearchSectionSubState = stateName === regSearchSectionSubState;
	        // Determine whether to reload based on the current state
	        var shouldWeReload = isRegSubState ? isRegSearchSectionSubState : true;
	        // Determine the state to redirect to based on whether we should reload
	        var redirectionState = shouldWeReload ? stateName : regState;
	        // Redirect to the determined state with the new termId and force a reload
	        return this.$state.go(redirectionState, { termId: termId }, { reload: true });
	    };
	    SchedulerNavigationMenu.prototype.menuSelectedEnded = function ($event) {
	        var _this = this;
	        this.$timeout(function () {
	            var _a = _4.split($event.detail.value, '-'), selectedAction = _a[0], value = _a[1];
	            var invokeMenuStrategy = _this.__menuItemStrategy.get(selectedAction);
	            invokeMenuStrategy(value);
	        });
	    };
	    SchedulerNavigationMenu.prototype.openMenu = function () {
	        var menu = this.$element[0].querySelector('hi-menu');
	        if (menu) {
	            menu['activate']();
	        }
	    };
	    return SchedulerNavigationMenu;
	}());
	angular.module('capability-ng-scheduler').component('schedulerNavigationMenu', {
	    templateUrl: 'capability-ng-scheduler/src/views/aside/scheduler_navigation/components/scheduler_navigation_menu/scheduler_navigation_menu.html',
	    controller: SchedulerNavigationMenu
	});


/***/ }),
/* 1841 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var QuickScheduleFacade = /** @class */ (function () {
	    function QuickScheduleFacade($state, ngTermCourseQuery, toggleQuickScheduleErrorCommand) {
	        this.$state = $state;
	        this.ngTermCourseQuery = ngTermCourseQuery;
	        this.toggleQuickScheduleErrorCommand = toggleQuickScheduleErrorCommand;
	    }
	    QuickScheduleFacade.prototype.closeQuickScheduleError = function () {
	        this.toggleQuickScheduleErrorCommand(false);
	    };
	    QuickScheduleFacade.prototype.quickScheduleAction = function () {
	        var isPlannedCoursesEmpty = _4.isEmpty(this.ngTermCourseQuery.result.unscheduled);
	        if (isPlannedCoursesEmpty) {
	            var showQuickScheduleError = true;
	            return this.toggleQuickScheduleErrorCommand(showQuickScheduleError);
	        }
	        return this.$state.go('my.schedule.quickscheduler');
	    };
	    return QuickScheduleFacade;
	}());
	exports.QuickScheduleFacade = QuickScheduleFacade;
	angular.module('capability-ng-scheduler').service('ngQuickScheduleFacade', QuickScheduleFacade);


/***/ }),
/* 1842 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngAppointmentScheduleModel', function () {
	    return new utility_ts_orm_1.Model({
	        label: 'Schedule an Appointment'
	    });
	});


/***/ }),
/* 1843 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngQuickScheduleModel', function () {
	    return new utility_ts_orm_1.Model({
	        showQuickScheduleError: false
	    });
	});


/***/ }),
/* 1844 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var QuickScheduleQuery = /** @class */ (function () {
	    function QuickScheduleQuery(ngQuickScheduleModel) {
	        this.ngQuickScheduleModel = ngQuickScheduleModel;
	        utility_ts_orm_1.Query.registerQuery(this, ngQuickScheduleModel);
	    }
	    QuickScheduleQuery.prototype.run = function () {
	        this._result = {
	            showQuickScheduleError: this.ngQuickScheduleModel.read().showQuickScheduleError
	        };
	        return this;
	    };
	    Object.defineProperty(QuickScheduleQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return QuickScheduleQuery;
	}());
	exports.QuickScheduleQuery = QuickScheduleQuery;
	angular.module('capability-ng-scheduler').service('ngQuickScheduleQuery', QuickScheduleQuery);


/***/ }),
/* 1845 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var SchedulerNavigationMenuQuery = /** @class */ (function () {
	    function SchedulerNavigationMenuQuery(ngSearchAndCourseFeatureFacade, ngSchedulerAvailableTermsQuery, appConfigModel, ngRegistrationPinsPermissionQuery, ngTermPinServant, ngPayTuitionQuery, ngRegistrationOneClickModel, ngRegistrationOneClickQuery, ngCustomContentsServant, ngRegisterSectionsDatasource, ngAppointmentScheduleModel, ngSchedulerAvailableTermDatasource, ngScreenDeviceModel, ngSectionSelectionsModel, ngSectionSelectionsQuery, ngScheduledSectionTileServant, ngSelectedSectionActionsFacade) {
	        this.ngSearchAndCourseFeatureFacade = ngSearchAndCourseFeatureFacade;
	        this.ngSchedulerAvailableTermsQuery = ngSchedulerAvailableTermsQuery;
	        this.appConfigModel = appConfigModel;
	        this.ngRegistrationPinsPermissionQuery = ngRegistrationPinsPermissionQuery;
	        this.ngTermPinServant = ngTermPinServant;
	        this.ngPayTuitionQuery = ngPayTuitionQuery;
	        this.ngRegistrationOneClickModel = ngRegistrationOneClickModel;
	        this.ngRegistrationOneClickQuery = ngRegistrationOneClickQuery;
	        this.ngCustomContentsServant = ngCustomContentsServant;
	        this.ngRegisterSectionsDatasource = ngRegisterSectionsDatasource;
	        this.ngAppointmentScheduleModel = ngAppointmentScheduleModel;
	        this.ngSchedulerAvailableTermDatasource = ngSchedulerAvailableTermDatasource;
	        this.ngScreenDeviceModel = ngScreenDeviceModel;
	        this.ngSectionSelectionsModel = ngSectionSelectionsModel;
	        this.ngSectionSelectionsQuery = ngSectionSelectionsQuery;
	        this.ngScheduledSectionTileServant = ngScheduledSectionTileServant;
	        this.ngSelectedSectionActionsFacade = ngSelectedSectionActionsFacade;
	        utility_ts_orm_1.Query.registerQuery(this, ngRegistrationOneClickModel, ngSchedulerAvailableTermDatasource, ngScreenDeviceModel, ngSectionSelectionsModel);
	    }
	    SchedulerNavigationMenuQuery.prototype.getSubmenuItems = function () {
	        var submenuItems = [
	            {
	                title: 'Switch Terms',
	                visible: this.ngSearchAndCourseFeatureFacade.isFeatureEnabled,
	                children: this.ngSchedulerAvailableTermsQuery.result.terms.map(function (term) { return ({
	                    value: "switchTerm-" + term.id,
	                    title: term.name,
	                    visible: true,
	                    external_link_icon: false
	                }); })
	            }
	        ].filter(function (item) { return item.visible; });
	        return submenuItems;
	    };
	    SchedulerNavigationMenuQuery.prototype.getMenuItems = function () {
	        var isScreenDeviceDesktop = _4.isEqual(_4.get(this.ngScreenDeviceModel.read(), 'screen_device', 'desktop'), 'desktop');
	        var menuItems = [
	            {
	                value: 'myPlannedCourses',
	                title: 'My Planned Courses',
	                visible: true,
	                external_link_icon: false
	            },
	            {
	                value: 'searchForSections',
	                title: 'Search for Sections',
	                visible: true,
	                external_link_icon: false
	            },
	            {
	                value: 'searchForCourses',
	                title: 'Search for Courses',
	                visible: this.ngSearchAndCourseFeatureFacade.isFeatureEnabled,
	                external_link_icon: false
	            },
	            {
	                value: 'transactionHistory',
	                title: 'Transaction History',
	                visible: true,
	                external_link_icon: false
	            },
	            {
	                value: 'scheduleAppointmentDesktop',
	                title: this.ngAppointmentScheduleModel.read().label,
	                visible: this.appConfigModel.isFeatureEnabled('ssccampus-appointment_scheduling') && isScreenDeviceDesktop,
	                external_link_icon: false
	            },
	            {
	                value: 'scheduleAppointmentMobile',
	                title: this.ngAppointmentScheduleModel.read().label,
	                visible: this.appConfigModel.isFeatureEnabled('ssccampus-appointment_scheduling') && !isScreenDeviceDesktop,
	                external_link_icon: false
	            },
	            {
	                value: 'quickSchedule',
	                title: 'Quick Scheduler',
	                visible: this.appConfigModel.isFeatureEnabled('reg-quick_scheduler'),
	                external_link_icon: false
	            },
	            {
	                value: 'preferences',
	                title: 'Preferences',
	                visible: true,
	                external_link_icon: false
	            },
	            {
	                value: 'sectionPin',
	                title: "Enter " + this.ngRegistrationPinsPermissionQuery.result.sectionPinText + "(s)",
	                visible: this.appConfigModel.model.member_features['reg-class_permission'],
	                external_link_icon: false
	            },
	            {
	                value: 'termPin',
	                title: 'Enter Term PIN',
	                visible: this.ngTermPinServant.isTermPinFeatureEnabled(),
	                external_link_icon: false
	            },
	            {
	                value: 'payTuition',
	                title: 'Pay Tuition',
	                visible: this.ngPayTuitionQuery.result.showPayTuition,
	                external_link_icon: true
	            },
	            {
	                value: 'registrationPortal',
	                title: 'Registration Portal',
	                visible: !this.ngRegistrationOneClickQuery.result.isOneClickRegistrationEnabled,
	                external_link_icon: true
	            },
	            {
	                value: 'registerSections',
	                title: "Register " + this.ngRegistrationOneClickQuery.result.selectedSectionsText,
	                visible: this.ngRegistrationOneClickQuery.result.isOneClickRegistrationEnabled &&
	                    this.ngRegistrationOneClickQuery.result.showRegisterButton,
	                external_link_icon: false
	            },
	            {
	                value: 'dropSections',
	                title: "Drop (" + this.ngSectionSelectionsQuery.result.dropSelections.length + ")",
	                visible: this.ngSelectedSectionActionsFacade.isMultiDropFeatureEnabled(),
	                external_link_icon: false
	            },
	            {
	                value: 'withdrawSections',
	                title: "Withdraw (" + this.ngSectionSelectionsQuery.result.withdrawSelections.length + ")",
	                visible: this.ngSelectedSectionActionsFacade.isMultiDropFeatureEnabled() &&
	                    this.ngScheduledSectionTileServant.isWithdrawEnabled(),
	                external_link_icon: false
	            },
	            {
	                value: 'waitlistSections',
	                title: "Waitlist (" + this.ngSectionSelectionsQuery.result.waitlistSelections.length + ")",
	                visible: this.ngSelectedSectionActionsFacade.shouldShowMultiWaitlistFeature(),
	                external_link_icon: false
	            }
	        ].filter(function (item) { return item.visible; });
	        return menuItems;
	    };
	    SchedulerNavigationMenuQuery.prototype.run = function () {
	        this._result = {
	            menuItems: this.getMenuItems(),
	            submenuItems: this.getSubmenuItems()
	        };
	        return this;
	    };
	    Object.defineProperty(SchedulerNavigationMenuQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return SchedulerNavigationMenuQuery;
	}());
	exports.SchedulerNavigationMenuQuery = SchedulerNavigationMenuQuery;
	angular.module('capability-ng-scheduler').service('ngSchedulerNavigationMenuQuery', SchedulerNavigationMenuQuery);


/***/ }),
/* 1846 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var TermInfoController = /** @class */ (function () {
	    function TermInfoController(ngRegisterSectionsQuery) {
	        this.ngRegisterSectionsQuery = ngRegisterSectionsQuery;
	    }
	    return TermInfoController;
	}());
	angular.module('capability-ng-scheduler').component('termInfo', {
	    templateUrl: 'capability-ng-scheduler/src/views/aside/term_info/term_info.html',
	    controller: TermInfoController
	});


/***/ }),
/* 1847 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	angular
	    .module('capability-ng-scheduler')
	    .service('clearCalendarSectionTimesCommand', function (defineCommandORM, ngCalendarTimesModel) {
	    return defineCommandORM('clearCalendarSectionTimesCommand', function (deferred) {
	        var calendarSnapshot = ngCalendarTimesModel.read();
	        ngCalendarTimesModel.clear().write(tslib_1.__assign(tslib_1.__assign({}, calendarSnapshot), { section_times: [] }));
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1848 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .service('deleteStudentUnavailabilityCommand', function (defineCommandORM, $http, $state, getUnscheduledSectionsandAvailabilityCommand, $stateParams, QueryMediator, ngCalendarTimesModel) {
	    return defineCommandORM('deleteStudentUnavailabilityCommand', function (deferred, termId, timeId) {
	        if (!termId || !timeId) {
	            deferred.reject();
	            return;
	        }
	        $http
	            .delete("reg/preference/term/" + termId + "/unavailability/" + timeId)
	            .then(function (_a) {
	            var data = _a.data;
	            // Filter out deleted time;
	            var newBusyTimes = _4.filter(ngCalendarTimesModel.read().busy_times, function (time) { return time.id !== timeId; });
	            var calendarSnapshot = ngCalendarTimesModel.read();
	            ngCalendarTimesModel.clear().write(tslib_1.__assign(tslib_1.__assign({}, calendarSnapshot), { busy_times: newBusyTimes }));
	            if ($state.is('my.schedule.registration.courseSections')) {
	                var sectionTypeId = $stateParams.sectionTypeId, courseId = $stateParams.courseId;
	                getUnscheduledSectionsandAvailabilityCommand(termId, courseId, sectionTypeId);
	            }
	            return deferred.resolve(data);
	        })
	            .catch(function (e) {
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1849 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .service('loadStudentUnavailabilityCommand', function loadStudentUnavailabilityCommandDefinition(defineCommandORM, $http, calendarTimeFn, ngCalendarScheduledSectionServant, ngCalendarTimesModel, ngSectionsDatasource, QueryMediator) {
	    return defineCommandORM('loadStudentUnavailabilityCommand', function loadStudentUnavailabilityCommand(deferred, termId) {
	        if (!termId) {
	            deferred.resolve();
	            return;
	        }
	        $http
	            .get("reg/preference/term/" + termId + "/unavailability")
	            .then(function (_a) {
	            var data = _a.data;
	            var times = _4.sortBy(calendarTimeFn.importTimes(data.timeslot), function (time) { return time.day.ordinal; });
	            var unAvailableTimes = ngCalendarScheduledSectionServant.buildUnavailableTimes(times);
	            ngCalendarTimesModel.write({
	                busy_times: unAvailableTimes,
	                loaded_times: true
	            });
	            return deferred.resolve(times);
	        })
	            .catch(deferred.reject);
	    });
	});


/***/ }),
/* 1850 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .service('saveStudentUnavailabilityCommand', function (defineCommandORM, $http, calendarTimeFn, ngCalendarTimesModel, ngCalendarScheduledSectionServant, QueryMediator, $state, getUnscheduledSectionsandAvailabilityCommand, $stateParams) {
	    return defineCommandORM('saveStudentUnavailabilityCommand', function (deferred, termId, time) {
	        time = _4.isArray(time) ? _4.first(time) : time;
	        if (!termId) {
	            deferred.reject();
	            return;
	        }
	        $http
	            .post("reg/preference/term/" + termId + "/unavailability/", {
	            timeslot: time
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            time.id = data.id;
	            var busyTimes = ngCalendarTimesModel.read().busy_times;
	            var newTimes = ngCalendarScheduledSectionServant.buildUnavailableTimes([calendarTimeFn.importTime(time)]);
	            ngCalendarTimesModel.write({
	                busy_times: _4.concat(busyTimes, newTimes)
	            });
	            if ($state.is('my.schedule.registration.courseSections')) {
	                var sectionTypeId = $stateParams.sectionTypeId, courseId = $stateParams.courseId;
	                getUnscheduledSectionsandAvailabilityCommand(termId, courseId, sectionTypeId);
	            }
	            return deferred.resolve(data);
	        })
	            .catch(deferred.reject);
	    });
	});


/***/ }),
/* 1851 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	angular
	    .module('capability-ng-scheduler')
	    .service('updateCalendarSectionTimesCommand', function (defineCommandORM, ngCalendarTimesModel, ngSectionsDatasource, ngCalendarScheduledSectionServant, clearCalendarSectionTimesCommand) {
	    return defineCommandORM('updateCalendarSectionTimesCommand', function (deferred, builtSections) {
	        clearCalendarSectionTimesCommand().then(function () {
	            if (!builtSections) {
	                var sectionsWithStatus = _4.filter(ngSectionsDatasource.read(), function (section) { return section.status !== scheduled_section_status_enum_1.ScheduledSectionStatus.UNSCHEDULED; });
	                builtSections = ngSectionsDatasource.metasource().composes(sectionsWithStatus);
	            }
	            ngCalendarTimesModel.write({
	                section_times: ngCalendarScheduledSectionServant.buildCalendarSections(builtSections),
	                loaded_times: true
	            });
	            deferred.resolve();
	        });
	    });
	});


/***/ }),
/* 1852 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SchedulerCalendar = /** @class */ (function () {
	    function SchedulerCalendar($state, $stateParams, $timeout, ngTermProgramInfoModel, saveStudentUnavailabilityCommand, deleteStudentUnavailabilityCommand, phxFocusDelegate, schedulePreferencesExternal, preferencesBusyTimes, ngOpenModalFlag, ngCalendarTimesQuery, ngCalendarSwapTimesQuery, ngTimelineQuery, ngTermCourseQuery, ngSectionSwapServant, ngSectionInfoServant, ngTimeSliceQuery, calendarPreviewDragEnd, ngScheduledSectionsQuery) {
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	        this.$timeout = $timeout;
	        this.ngTermProgramInfoModel = ngTermProgramInfoModel;
	        this.saveStudentUnavailabilityCommand = saveStudentUnavailabilityCommand;
	        this.deleteStudentUnavailabilityCommand = deleteStudentUnavailabilityCommand;
	        this.phxFocusDelegate = phxFocusDelegate;
	        this.schedulePreferencesExternal = schedulePreferencesExternal;
	        this.preferencesBusyTimes = preferencesBusyTimes;
	        this.ngOpenModalFlag = ngOpenModalFlag;
	        this.ngCalendarTimesQuery = ngCalendarTimesQuery;
	        this.ngCalendarSwapTimesQuery = ngCalendarSwapTimesQuery;
	        this.ngTimelineQuery = ngTimelineQuery;
	        this.ngTermCourseQuery = ngTermCourseQuery;
	        this.ngSectionSwapServant = ngSectionSwapServant;
	        this.ngSectionInfoServant = ngSectionInfoServant;
	        this.ngTimeSliceQuery = ngTimeSliceQuery;
	        this.calendarPreviewDragEnd = calendarPreviewDragEnd;
	        this.ngScheduledSectionsQuery = ngScheduledSectionsQuery;
	        this.isPreferencesModeActive = false;
	        this.showCalendarOutline = false;
	        this.closeCalendarPlaceHolderAlert = true;
	        this.manualShowCalendarPlaceholder = false;
	        this.isInSwapMode = false;
	        this.mode = '';
	    }
	    SchedulerCalendar.prototype.$onInit = function () {
	        this.termAndProgramInfo = this.ngTermProgramInfoModel.read();
	        this.isPreferencesModeActive = _4.includes(_4.get(this.$state, 'current.url', ''), 'preferences');
	        this.termId = this.$stateParams.termId;
	        this.closeCalendarPlaceHolderAlert = false;
	        this.hideCalendarOutline();
	        this.isInSwapMode = this.ngSectionSwapServant.isInSwapMode();
	        this.query = this.mode === 'swap' ? this.ngCalendarSwapTimesQuery : this.ngCalendarTimesQuery;
	        this.timelineQuery = this.ngTimelineQuery;
	        this.timeSliceQuery = this.ngTimeSliceQuery;
	    };
	    SchedulerCalendar.prototype.activateCalendarOutline = function () {
	        this.showCalendarOutline = true;
	    };
	    SchedulerCalendar.prototype.hideCalendarOutline = function () {
	        this.showCalendarOutline = false;
	        this.calendarPreviewDragEnd();
	    };
	    SchedulerCalendar.prototype.enterPreferencesMode = function () {
	        var _this = this;
	        this.schedulePreferencesExternal.openPreferences();
	        this.$timeout(function () { return _this.phxFocusDelegate.focus('preferences-description'); }, 500);
	    };
	    SchedulerCalendar.prototype.getBusyTimesSummary = function () {
	        this.preferencesBusyTimes.getSummary();
	    };
	    SchedulerCalendar.prototype.saveCalendarTime = function (_a) {
	        var _this = this;
	        var transaction = _a.transaction;
	        return this.saveStudentUnavailabilityCommand(this.termId, transaction.save).finally(function () {
	            _this.getBusyTimesSummary();
	        });
	    };
	    SchedulerCalendar.prototype.deleteCalendarTime = function (_a) {
	        var _this = this;
	        var transaction = _a.transaction;
	        return this.deleteStudentUnavailabilityCommand(this.termId, transaction.id).finally(function () {
	            _this.getBusyTimesSummary();
	        });
	    };
	    SchedulerCalendar.prototype.editCalendarTime = function (_a) {
	        var _this = this;
	        var transaction = _a.transaction;
	        return this.deleteStudentUnavailabilityCommand(this.termId, transaction.id).then(function () {
	            return _this.saveCalendarTime({ transaction: transaction });
	        });
	    };
	    SchedulerCalendar.prototype.viewPreferences = function () {
	        this.enterPreferencesMode();
	    };
	    SchedulerCalendar.prototype.allCoursesSelected = function () {
	        return this.ngTermCourseQuery.result.unscheduled.length === 0;
	    };
	    SchedulerCalendar.prototype.shouldShowCalendarPlaceHolderAlert = function () {
	        var _this = this;
	        var validPlaceholderStates = !_4.some(['my.schedule.registration.suggestions', 'my.routeModal.courseDetails'], function (currentState) { return _this.$state.is(currentState); });
	        if (this.manualShowCalendarPlaceholder) {
	            return true;
	        }
	        return (_4.isEmpty(this.ngCalendarTimesQuery.result.times) &&
	            validPlaceholderStates &&
	            !this.closeCalendarPlaceHolderAlert &&
	            !this.ngOpenModalFlag.isModalOpen());
	    };
	    SchedulerCalendar.prototype.showInstructionDialog = function () {
	        this.manualShowCalendarPlaceholder = true;
	    };
	    SchedulerCalendar.prototype.hidePlaceHolder = function () {
	        this.manualShowCalendarPlaceholder = false;
	        this.closeCalendarPlaceHolderAlert = true;
	    };
	    return SchedulerCalendar;
	}());
	var SchedulerCalendarComponent = /** @class */ (function () {
	    function SchedulerCalendarComponent() {
	        this.controller = SchedulerCalendar;
	        this.templateUrl = 'capability-ng-scheduler/src/views/calendar/components/calendar/calendar.html';
	        this.bindings = {
	            mode: '@'
	        };
	    }
	    return SchedulerCalendarComponent;
	}());
	angular.module('capability-ng-scheduler').component('schedulerCalendar', new SchedulerCalendarComponent());


/***/ }),
/* 1853 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var CalendarScheduledSection = /** @class */ (function () {
	    function CalendarScheduledSection(ngScheduledSectionTileServant, ngScheduledSectionServant, ngSectionInfoServant, ngScheduledSectionStatusServant, ngScheduledSectionsQuery, $anchorScroll, $state, ngCourseSectionSwapModel, ngSectionsDatasource, ngCalendarScheduledSectionServant, ngSectionSwapServant, ngTermCourseServant, ngTermCoursesDatasource, ngAllSectionsQuery, saveSwapFromSectionCommand) {
	        this.ngScheduledSectionTileServant = ngScheduledSectionTileServant;
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.ngSectionInfoServant = ngSectionInfoServant;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.ngScheduledSectionsQuery = ngScheduledSectionsQuery;
	        this.$anchorScroll = $anchorScroll;
	        this.$state = $state;
	        this.ngCourseSectionSwapModel = ngCourseSectionSwapModel;
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngCalendarScheduledSectionServant = ngCalendarScheduledSectionServant;
	        this.ngSectionSwapServant = ngSectionSwapServant;
	        this.ngTermCourseServant = ngTermCourseServant;
	        this.ngTermCoursesDatasource = ngTermCoursesDatasource;
	        this.ngAllSectionsQuery = ngAllSectionsQuery;
	        this.saveSwapFromSectionCommand = saveSwapFromSectionCommand;
	    }
	    CalendarScheduledSection.prototype.initialize = function () {
	        var _this = this;
	        this.section = _4.find(this.ngSectionsDatasource.metasource().derived(), function (section) { return section.id === _this.sectionId; });
	        this.locationAndTimes = this.ngSectionInfoServant.calculateSectionTimes(this.section);
	        this.sectionLocation = this.ngSectionInfoServant.getSectionLocationString(this.section);
	        this.canAddFromWaitlist =
	            this.ngScheduledSectionServant.canAddFromWaitlist(this.section) &&
	                _4.isEqual(this.section._isEligibleForRegistration, true);
	        this.isMultiSection = this.ngScheduledSectionServant.isSectionMultiSection(this.section);
	        this.isStatusPending = this.ngScheduledSectionStatusServant.isStatusPending(this.section);
	        this.isWaitlistEnabled = this.ngScheduledSectionTileServant.isWaitlistEnabled();
	        this.showMessageWarning = this.ngCalendarScheduledSectionServant.showWarningIcon(this.section);
	        this.canSwap =
	            this.ngScheduledSectionStatusServant.isStatusRegistered(this.section) &&
	                this.ngSectionSwapServant.isSwapFeatureEnabled() &&
	                this.ngScheduledSectionStatusServant.isDroppable(this.section);
	        this.isRegisteredNotDroppable =
	            this.ngScheduledSectionStatusServant.isStatusRegistered(this.section) &&
	                (!this.ngScheduledSectionStatusServant.isDroppable(this.section) ||
	                    !this.ngScheduledSectionStatusServant.hasDropDates(this.section));
	    };
	    CalendarScheduledSection.prototype.$onInit = function () {
	        this.initialize();
	    };
	    CalendarScheduledSection.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    CalendarScheduledSection.prototype.scrollToTile = function () {
	        this.$anchorScroll("section-" + this.section.cd);
	    };
	    CalendarScheduledSection.prototype.gotoSwap = function () {
	        var _this = this;
	        var section = _4.find(this.ngSectionsDatasource.read(), { id: this.sectionId });
	        this.saveSwapFromSectionCommand(section).then(function () { return _this.ngSectionSwapServant.gotoSwapSectionMode(section); });
	    };
	    return CalendarScheduledSection;
	}());
	var CalendarScheduledSectionComponent = /** @class */ (function () {
	    function CalendarScheduledSectionComponent() {
	        this.bindings = {
	            sectionId: '<'
	        };
	        this.controller = CalendarScheduledSection;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/calendar/components/calendar_scheduled_section/calendar_scheduled_section.html';
	    }
	    return CalendarScheduledSectionComponent;
	}());
	angular
	    .module('capability-ng-scheduler')
	    .component('calendarScheduledSection', new CalendarScheduledSectionComponent());


/***/ }),
/* 1854 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var scheduled_section_menu_1 = __webpack_require__(223);
	var CalendarScheduledSectionButtonComponent = /** @class */ (function () {
	    function CalendarScheduledSectionButtonComponent() {
	        this.bindings = {
	            section: '<'
	        };
	        this.controller = scheduled_section_menu_1.ScheduledSectionMenu;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/calendar/components/calendar_scheduled_section_button/calendar_scheduled_section_button.html';
	    }
	    return CalendarScheduledSectionButtonComponent;
	}());
	angular
	    .module('capability-ng-scheduler')
	    .component('calendarScheduledSectionButton', new CalendarScheduledSectionButtonComponent());


/***/ }),
/* 1855 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngCalendarTimesModel', function () {
	    return new utility_ts_orm_1.Model({
	        busy_times: [],
	        section_times: [],
	        loaded_times: false
	    });
	});


/***/ }),
/* 1856 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var CalendarSwapTimesQuery = /** @class */ (function () {
	    function CalendarSwapTimesQuery(QueryMediator, ngCalendarTimesModel, ngSectionsDatasource, ngCourseSectionSwapModel, ngCalendarScheduledSectionServant, ngWaitlistStatusDatasource, ngSelectedTimeSliceModel, ngSectionAvailabilityDatasource) {
	        this.QueryMediator = QueryMediator;
	        this.ngCalendarTimesModel = ngCalendarTimesModel;
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngCourseSectionSwapModel = ngCourseSectionSwapModel;
	        this.ngCalendarScheduledSectionServant = ngCalendarScheduledSectionServant;
	        this.ngWaitlistStatusDatasource = ngWaitlistStatusDatasource;
	        this.ngSelectedTimeSliceModel = ngSelectedTimeSliceModel;
	        this.ngSectionAvailabilityDatasource = ngSectionAvailabilityDatasource;
	        this._result = {
	            times: [],
	            loadedTimes: false
	        };
	        QueryMediator.registerQuery(this, ngWaitlistStatusDatasource, ngSectionAvailabilityDatasource, ngCalendarTimesModel, ngSelectedTimeSliceModel, ngSectionsDatasource, ngCourseSectionSwapModel);
	    }
	    CalendarSwapTimesQuery.prototype.run = function () {
	        // KEEP FOR FUTURE CALENDAR SWAP LOGIC
	        // const sections = _4.filter(this.ngSectionsDatasource.read(),(section: ISection) => section.status === 'SWAP_FROM');
	        // const builtSections = this.ngCalendarScheduledSectionServant.buildCalendarSections(sections);
	        // console.log(builtSections);
	        var newCalendarSnapshot = this.ngCalendarTimesModel.read();
	        var times = _4.compact(_4.concat(newCalendarSnapshot.busy_times, newCalendarSnapshot.section_times));
	        this._result = {
	            times: times,
	            loadedTimes: newCalendarSnapshot.loaded_times
	        };
	        return this;
	    };
	    Object.defineProperty(CalendarSwapTimesQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return CalendarSwapTimesQuery;
	}());
	exports.CalendarSwapTimesQuery = CalendarSwapTimesQuery;
	angular.module('capability-ng-scheduler').service('ngCalendarSwapTimesQuery', CalendarSwapTimesQuery);


/***/ }),
/* 1857 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var CalendarTimesQuery = /** @class */ (function () {
	    function CalendarTimesQuery(QueryMediator, ngCalendarTimesModel, ngCalendarScheduledSectionServant, ngSectionTypeFilters, ngSelectedTimeSliceModel, ngSectionsDatasource, ngWaitlistStatusDatasource, ngSectionAvailabilityDatasource) {
	        this.QueryMediator = QueryMediator;
	        this.ngCalendarTimesModel = ngCalendarTimesModel;
	        this.ngCalendarScheduledSectionServant = ngCalendarScheduledSectionServant;
	        this.ngSectionTypeFilters = ngSectionTypeFilters;
	        this.ngSelectedTimeSliceModel = ngSelectedTimeSliceModel;
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngWaitlistStatusDatasource = ngWaitlistStatusDatasource;
	        this.ngSectionAvailabilityDatasource = ngSectionAvailabilityDatasource;
	        this._result = {
	            times: [],
	            loadedTimes: false
	        };
	        QueryMediator.registerQuery(this, ngCalendarTimesModel, ngSectionAvailabilityDatasource, ngWaitlistStatusDatasource, ngSelectedTimeSliceModel, ngSectionsDatasource);
	    }
	    CalendarTimesQuery.prototype.run = function () {
	        var newCalendarSnapshot = this.ngCalendarTimesModel.read();
	        var times = _4.compact(_4.concat(newCalendarSnapshot.busy_times, newCalendarSnapshot.section_times));
	        this.ngCalendarScheduledSectionServant.removeInvalidTime(times);
	        times = this.ngSectionTypeFilters.timeSliceFilter(times, this.ngSelectedTimeSliceModel.read());
	        this._result = {
	            times: times,
	            loadedTimes: newCalendarSnapshot.loaded_times
	        };
	        return this;
	    };
	    Object.defineProperty(CalendarTimesQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return CalendarTimesQuery;
	}());
	exports.CalendarTimesQuery = CalendarTimesQuery;
	angular.module('capability-ng-scheduler').service('ngCalendarTimesQuery', CalendarTimesQuery);


/***/ }),
/* 1858 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .factory('sectionsToCalendarFn', function (ngCalendarScheduledSectionServant) {
	    return function (sections) { return ngCalendarScheduledSectionServant.buildCalendarSections(sections); };
	})
	    .factory('unavailableTimesToCalendarFn', function (ngCalendarScheduledSectionServant) {
	    return function (times) { return ngCalendarScheduledSectionServant.buildUnavailableTimes(times); };
	})
	    .factory('calendarPreviewSetOnOver', function (addRawTimesInPreviewModeCommand, deletePreviewTimesCommand, ngCalendarScheduledSectionServant, ngUnscheduledSectionServant) {
	    return function (draggableElements) {
	        var target = draggableElements[1];
	        if (!target.className.includes('drag-area')) {
	            return;
	        }
	        var sectionTileScope = angular.element(_4.first(draggableElements)).scope();
	        var selectedSection = sectionTileScope.section;
	        var sections = ngCalendarScheduledSectionServant.buildCalendarSections([selectedSection]);
	        _4.each(sections, function (section) { return (section.isPreview = true); });
	        var isConflicting = !_4.isEmpty(selectedSection._availability) &&
	            ngUnscheduledSectionServant.isSectionConflicting(selectedSection);
	        deletePreviewTimesCommand().then(function () {
	            addRawTimesInPreviewModeCommand(sections, isConflicting);
	        });
	    };
	})
	    .factory('calendarPreviewSetOnDrag', function (addRawTimesInPreviewModeCommand, saveSelectedUnscheduledSectionCommand, deletePreviewTimesCommand, calendarPreviewDragState, ngCalendarScheduledSectionServant, ngUnscheduledSectionServant) {
	    return function (draggableElements) {
	        calendarPreviewDragState.setDragging();
	        var sectionTileScope = angular.element(_4.first(draggableElements)).scope();
	        var selectedSection = sectionTileScope.section;
	        var sections = ngCalendarScheduledSectionServant.buildCalendarSections([selectedSection]);
	        // Remove invalid times
	        _4.remove(sections, function (section) { return section.day_of_week !== 8 && section.to_tm === '00:00:00'; });
	        saveSelectedUnscheduledSectionCommand(selectedSection);
	        _4.each(sections, function (section) { return (section.isPreview = true); });
	        var isConflicting = !_4.isEmpty(selectedSection._availability) &&
	            ngUnscheduledSectionServant.isSectionConflicting(selectedSection);
	        deletePreviewTimesCommand().then(function () {
	            addRawTimesInPreviewModeCommand(sections, isConflicting);
	        });
	    };
	})
	    .factory('calendarPreviewDragEnd', function (deletePreviewTimesCommand, calendarPreviewDragState, removeSelectedUnscheduledSectionCommand) {
	    return function () {
	        calendarPreviewDragState.unsetDragging();
	        deletePreviewTimesCommand();
	        removeSelectedUnscheduledSectionCommand();
	    };
	})
	    .factory('calendarPreviewSetSections', function (addRawTimesInPreviewModeCommand, deletePreviewTimesCommand, ngCalendarScheduledSectionServant, ngUnscheduledSectionServant, saveSelectedUnscheduledSectionCommand) {
	    return function (sections) {
	        var sectionsCalendarFormat = ngCalendarScheduledSectionServant.buildCalendarSections([sections]);
	        // Remove any invalid times
	        _4.remove(sectionsCalendarFormat, function (section) { return section.day_of_week !== 8 && section.to_tm === '00:00:00'; });
	        _4.each(sectionsCalendarFormat, function (section) { return (section.isPreview = true); });
	        saveSelectedUnscheduledSectionCommand(sections);
	        var isConflicting = !_4.isEmpty(sections._availability) && ngUnscheduledSectionServant.isSectionConflicting(sections);
	        deletePreviewTimesCommand().then(function () {
	            addRawTimesInPreviewModeCommand(sectionsCalendarFormat, isConflicting);
	        });
	    };
	})
	    .factory('calendarPreviewRemoveSections', function (deletePreviewTimesCommand, calendarPreviewDragState, removeSelectedUnscheduledSectionCommand) {
	    return function () {
	        if (!calendarPreviewDragState.isDragging()) {
	            deletePreviewTimesCommand();
	            removeSelectedUnscheduledSectionCommand();
	        }
	    };
	})
	    .factory('calendarPreviewDragState', function () {
	    var isDragging = false;
	    return {
	        setDragging: function (draggingState) { return (isDragging = true); },
	        unsetDragging: function (draggingState) { return (isDragging = false); },
	        isDragging: function () { return isDragging; }
	    };
	});


/***/ }),
/* 1859 */
/***/ (function(module, exports) {

	angular
	    .module('capability-ng-scheduler')
	    .controller('calendarPreferencesSyncController', function ($scope) {
	    $scope.execCb = function () {
	        $scope.callback();
	    };
	})
	    .constant('calendarPreferencesSyncDelegateConfiguration', {
	    uniqueComponent: 'calendarPreferencesSync',
	    vocabulary: {
	        exec: function (scope, element, attrs) {
	            this.execCb();
	        }
	    }
	})
	    .directive('calendarPreferencesSync', function calendarPreferencesSync(DelegateResponder, calendarPreferencesSyncDelegateConfiguration) {
	    return {
	        restrict: 'E',
	        replace: false,
	        controller: 'calendarPreferencesSyncController',
	        scope: {
	            callback: '&'
	        },
	        link: DelegateResponder(calendarPreferencesSyncDelegateConfiguration, function (scope, element, attrs) { return angular.noop; })
	    };
	})
	    .service('calendarPreferencesSyncDelegate', function calendarPreferencesSyncDelegate(DelegateController, calendarPreferencesSyncDelegateConfiguration) {
	    DelegateController(this, calendarPreferencesSyncDelegateConfiguration);
	});


/***/ }),
/* 1860 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .directive('calendarSectionHover', function calendarSectionHover() {
	    'use strict';
	    return {
	        templateUrl: 'capability-ng-scheduler/src/views/components/calendar_section_hover/calendar_section_hover.html',
	        bindToController: true,
	        scope: {
	            courseId: '=',
	            sectionId: '='
	        },
	        controller: 'calendarSectionHoverController as $ctrl'
	    };
	})
	    .controller('calendarSectionHoverController', function ($scope, $attrs, termRegistrationModel, sectionViewCommonControllerConst, sectionViewCommonController) {
	    var course = _4.find(termRegistrationModel.course, { id: parseInt($attrs.courseId, 10) });
	    if (!_4.isUndefined($attrs.sectionId)) {
	        course._selected_section = _4.find(course._sections, { id: parseInt($attrs.sectionId, 10) });
	    }
	    this.hoverActionType = sectionViewCommonControllerConst.UNSCHEDULE_SECTION;
	    sectionViewCommonController.initializeSection(course, this);
	});


/***/ }),
/* 1861 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var CourseDeliveryModeBadge = /** @class */ (function () {
	    function CourseDeliveryModeBadge() {
	    }
	    CourseDeliveryModeBadge.prototype.$onInit = function () {
	        this.initialize();
	    };
	    CourseDeliveryModeBadge.prototype.$onChanges = function (changes) {
	        this.initialize();
	    };
	    CourseDeliveryModeBadge.prototype.initialize = function () {
	        this.description = this.description || '';
	    };
	    return CourseDeliveryModeBadge;
	}());
	exports.CourseDeliveryModeBadge = CourseDeliveryModeBadge;
	angular.module('capability-ng-scheduler').component('courseDeliveryModeBadge', {
	    templateUrl: 'capability-ng-scheduler/src/views/components/course_delivery_mode_badge/course_delivery_mode_badge.html',
	    bindings: {
	        modeName: '@',
	        description: '@',
	        iconClass: '@'
	    },
	    controller: CourseDeliveryModeBadge
	});


/***/ }),
/* 1862 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	/**
	 * Object to array converter thingamabobber
	 */
	var internalizeCampusObject = function internalizeTermObject() {
	    this.campuses = _4.toArray(this.campuses);
	};
	/**
	 * Set campuses to selected, if they are (You like me, you really like me)
	 */
	var setSelectedCampuses = function internalizeTermObject() {
	    var _this = this;
	    _4.each(this.campuses, function (campus) {
	        campus._selected = _4.includes(_this.selected_campuses, campus.id);
	    }, this);
	};
	angular
	    .module('capability-ng-scheduler')
	    .factory('CampusLocationBuilder', function CampusLocationBuilder(Interface) {
	    var DTD = {
	        campus: {
	            type: 'object',
	            typeDef: {
	                id: 'key',
	                is_online: 'boolean',
	                is_global: 'boolean',
	                name: 'string',
	                rank: 'number'
	            },
	            writeToKey: 'campuses'
	        },
	        student_term_campus: {
	            type: 'array',
	            writeToKey: 'selected_campuses'
	        },
	        prefs_first_visit: 'boolean'
	    };
	    function CampusLocationDTO(data) {
	        Interface.implement(DTD, data, this);
	        internalizeCampusObject.call(this);
	        setSelectedCampuses.call(this);
	    }
	    return CampusLocationDTO;
	});


/***/ }),
/* 1863 */
/***/ (function(module, exports) {

	/**
	 * Created by Sina Khelil on 2/20/15.
	 */
	angular
	    .module('capability-ng-scheduler')
	    .factory('CommitmentRangeBuilder', function CommitmentRangeBuilder(Interface) {
	    var DTD = {
	        commitment_value: 'integer',
	        prefs_first_visit: 'boolean'
	    };
	    function CommitmentRangeDTO(data) {
	        Interface.implement(DTD, data, this);
	    }
	    return CommitmentRangeDTO;
	});


/***/ }),
/* 1864 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .service('deleteTermLocationPreferencesCommand', function deleteTermLocationPreferencesCommandDefinition($http, defineCommand, log) {
	    'use strict';
	    return defineCommand('deleteTermLocationPreferencesCommand', function deleteTermLocationPreferencesCommand(deferred, termId, campusId) {
	        $http.delete('/cat/student/term/' + termId + '/campus/' + campusId + '/').then(function (response) {
	            deferred.resolve(response.data);
	        }, function (response) {
	            log.issue('failed to delete term location preferences');
	            deferred.reject(response.data);
	        });
	    });
	});


/***/ }),
/* 1865 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .service('loadTermCommitmentPreferencesCommand', function loadTermCommitmentPreferencesCommandDefinition($http, defineCommand, CommitmentRangeBuilder, log) {
	    'use strict';
	    return defineCommand('loadTermCommitmentPreferencesCommand', function loadTermCommitmentPreferencesCommand(deferred, termId, commitmentType) {
	        $http.get('/reg/preference/term/' + termId + '/commitment/' + commitmentType + '/').then(function (response) {
	            deferred.resolve(new CommitmentRangeBuilder(response.data));
	        }, function (response) {
	            log.issue('failed to load term commitment preferences');
	            deferred.reject(response.data);
	        });
	    });
	});


/***/ }),
/* 1866 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .service('loadTermLocationPreferencesCommand', function loadTermLocationPreferencesCommandDefinition($http, defineCommand, QueryMediator, ngPreferencesSelectionModel, CampusLocationBuilder, log) {
	    'use strict';
	    return defineCommand('loadTermLocationPreferencesCommand', function loadTermLocationPreferencesCommand(deferred, termId) {
	        $http.get('/cat/student/term/' + termId + '/campus/').then(function (response) {
	            var isPreferencesFirstVisit = _4.get(response.data, 'prefs_first_visit', false);
	            ngPreferencesSelectionModel.clear().write(isPreferencesFirstVisit);
	            deferred.resolve(new CampusLocationBuilder(response.data));
	        }, function (response) {
	            log.issue('failed to load term location preferences');
	            deferred.reject(response.data);
	        });
	    });
	});


/***/ }),
/* 1867 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .service('saveTermCommitmentPreferencesCommand', function saveTermCommitmentPreferencesCommandDefinition($http, defineCommand, log) {
	    'use strict';
	    return defineCommand('saveTermCommitmentPreferencesCommand', function saveTermCommitmentPreferencesCommand(deferred, termId, commitment_type, commitment_value) {
	        $http
	            .put('/reg/preference/term/' + termId + '/commitment/' + commitment_type + '/', {
	            commitment_value: commitment_value
	        })
	            .then(function (response) {
	            deferred.resolve(response.data);
	        }, function (response) {
	            log.issue('failed to save term commitment preferences');
	            deferred.reject(response.data);
	        });
	    });
	});


/***/ }),
/* 1868 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .service('saveTermLocationPreferencesCommand', function saveTermLocationPreferencesCommandDefinition($http, defineCommand, log) {
	    'use strict';
	    return defineCommand('saveTermLocationPreferencesCommand', function saveTermLocationPreferencesCommand(deferred, termId, campusId) {
	        $http.post('/cat/student/term/' + termId + '/campus/' + campusId + '/', {}).then(function (response) {
	            deferred.resolve(response.data);
	        }, function (response) {
	            log.issue('failed to save term location preferences');
	            deferred.reject(response.data);
	        });
	    });
	});


/***/ }),
/* 1869 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var CampusLocationController = /** @class */ (function () {
	    function CampusLocationController(saveTermLocationPreferencesCommand, loadTermLocationPreferencesCommand, deleteTermLocationPreferencesCommand, CampusLocationEnum, $q, $element, preferencesSummaryDelegate, ngPreferencesCampusModel, ngSchedulerNotificationDelegate, ngRequestStateQuery, campusPreferencesRequestStateCommand) {
	        this.saveTermLocationPreferencesCommand = saveTermLocationPreferencesCommand;
	        this.loadTermLocationPreferencesCommand = loadTermLocationPreferencesCommand;
	        this.deleteTermLocationPreferencesCommand = deleteTermLocationPreferencesCommand;
	        this.CampusLocationEnum = CampusLocationEnum;
	        this.$q = $q;
	        this.$element = $element;
	        this.preferencesSummaryDelegate = preferencesSummaryDelegate;
	        this.ngPreferencesCampusModel = ngPreferencesCampusModel;
	        this.ngSchedulerNotificationDelegate = ngSchedulerNotificationDelegate;
	        this.ngRequestStateQuery = ngRequestStateQuery;
	        this.campusPreferencesRequestStateCommand = campusPreferencesRequestStateCommand;
	        this.onlineCampuses = [];
	        this.offlineCampuses = [];
	        this.campuses = [];
	        this.displayError = false;
	        this.showOnlineClassesModal = false;
	        this.termId = 0;
	        this.campusName = '';
	    }
	    CampusLocationController.prototype.isRequiredCampus = function (campus) {
	        var isGlobal = _4.get(campus, 'is_global', false);
	        if (isGlobal) {
	            var requiredCampusName = _4.get(campus, 'name', 'This');
	            this.ngSchedulerNotificationDelegate.error(requiredCampusName + " campus cannot be unselected.");
	        }
	        return isGlobal;
	    };
	    CampusLocationController.prototype.__onOpenModalTriggerEnded = function () {
	        this.openOnlineClassesModal();
	    };
	    CampusLocationController.prototype.__onCloseModalTriggerEnded = function () {
	        this.closeOnlineClassesModal();
	    };
	    CampusLocationController.prototype.openOnlineClassesModal = function () {
	        this.showOnlineClassesModal = true;
	    };
	    CampusLocationController.prototype.closeOnlineClassesModal = function () {
	        this.showOnlineClassesModal = false;
	    };
	    CampusLocationController.prototype.__onChangeEvent = function (event, campus) {
	        if (campus.is_global && !event.target.checked) {
	            event.target.checked = this.isRequiredCampus(campus);
	            return;
	        }
	        campus._selected = event.target.value;
	        this.changeCampus(campus);
	        this.isValid();
	    };
	    CampusLocationController.prototype.changeCampus = function (campus) {
	        campus.isUpdated = true;
	        var campusIndex = _4.findIndex(this.campuses, { id: campus.id });
	        this.campuses[campusIndex] = campus;
	    };
	    CampusLocationController.prototype.$onInit = function () {
	        this.init();
	    };
	    CampusLocationController.prototype.isBlended = function () {
	        return _4.isEqual(this.campusName, this.CampusLocationEnum.BLENDED.value.title);
	    };
	    CampusLocationController.prototype.isValid = function () {
	        var campusesPicked = _4.isEmpty(_4.filter(this.campuses, { _selected: true }));
	        this.displayError = campusesPicked;
	        return !campusesPicked;
	    };
	    CampusLocationController.prototype.init = function () {
	        var _this = this;
	        this.loadTermLocationPreferencesCommand(this.termId).then(function (model) {
	            _this.campuses = model.campuses;
	            _this.onlineCampuses = _4.filter(_this.campuses, 'is_online', true);
	            _this.offlineCampuses = _4.sortBy(_4.filter(_this.campuses, { is_online: false }), ['rank', 'name']);
	            _this.isValid();
	            _this.ngPreferencesCampusModel.write(_this.campuses);
	            _this.preferencesSummaryDelegate.setCampusLocation({ campuses: _this.campuses });
	            var isFirstTimePreferences = _4.get(model, 'prefs_first_visit', false);
	            if (isFirstTimePreferences) {
	                _this.isFirstTime();
	            }
	        });
	    };
	    CampusLocationController.prototype.__onSaveTriggerEnded = function () {
	        if (!this.isValid()) {
	            var errorEl = this.$element[0].querySelector('#location-validation-error');
	            return errorEl ? errorEl.scrollIntoView({ behavior: 'smooth', inline: 'start' }) : false;
	        }
	        this.updateCampuses();
	    };
	    CampusLocationController.prototype.campusUpdationFinished = function (data) {
	        var campusIndex = this.campuses.findIndex(function (campus) { return campus['id'] === data.campus; });
	        this.campuses[campusIndex].isUpdated = false;
	    };
	    CampusLocationController.prototype.updateCampuses = function () {
	        var _this = this;
	        this.campusPreferencesRequestStateCommand(true);
	        var updatingCampuses = this.campuses.filter(function (campus) {
	            if (!campus.isUpdated) {
	                return false;
	            }
	            return true;
	        });
	        var updateCampusEntries = updatingCampuses.map(function (campus) {
	            var campusID = campus.id;
	            return campus._selected
	                ? _this.saveTermLocationPreferencesCommand(_this.termId, campus.id).then(_this.campusUpdationFinished.bind(_this))
	                : _this.deleteTermLocationPreferencesCommand(_this.termId, campus.id).then(function () {
	                    return _this.campusUpdationFinished({
	                        campus: campusID
	                    });
	                });
	        });
	        this.$q
	            .all(updateCampusEntries)
	            .then(function () {
	            _this.ngSchedulerNotificationDelegate.success({
	                content: "Your preferences are updated"
	            });
	        })
	            .finally(function () {
	            _this.ngPreferencesCampusModel.write(_this.campuses);
	            _this.preferencesSummaryDelegate.setCampusLocation({ campuses: _this.campuses });
	            _this.campusPreferencesRequestStateCommand(false);
	        });
	    };
	    return CampusLocationController;
	}());
	exports.CampusLocationController = CampusLocationController;
	angular.module('capability-ng-scheduler').component('campusLocation', {
	    templateUrl: 'capability-ng-scheduler/src/views/components/preferences/components/campus_location/campus_location.html',
	    bindings: {
	        termId: '@',
	        isFirstTime: '&'
	    },
	    controller: CampusLocationController
	});


/***/ }),
/* 1870 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PreferencesCampusModel = /** @class */ (function () {
	    function PreferencesCampusModel() {
	        this._campuses = [];
	    }
	    PreferencesCampusModel.prototype.initialize = function () {
	        this.clear();
	    };
	    PreferencesCampusModel.prototype.clear = function () {
	        this._campuses = [];
	        return this;
	    };
	    PreferencesCampusModel.prototype.write = function (source) {
	        this._campuses = _4.merge(this._campuses, source);
	        return this;
	    };
	    PreferencesCampusModel.prototype.read = function () {
	        return this._campuses;
	    };
	    PreferencesCampusModel.prototype.get = function (campusId) {
	        return _4.find(this._campuses, ['id', campusId]);
	    };
	    PreferencesCampusModel.prototype.update = function (source) {
	        return this;
	    };
	    return PreferencesCampusModel;
	}());
	exports.PreferencesCampusModel = PreferencesCampusModel;
	angular.module('capability-ng-scheduler').service('ngPreferencesCampusModel', PreferencesCampusModel);


/***/ }),
/* 1871 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PreferencesCommitmentModel = /** @class */ (function () {
	    function PreferencesCommitmentModel() {
	        this._commitment = { id: '', value: 0 };
	    }
	    PreferencesCommitmentModel.prototype.initialize = function () {
	        this.clear();
	    };
	    PreferencesCommitmentModel.prototype.clear = function () {
	        this._commitment = { id: '', value: 0 };
	        return this;
	    };
	    PreferencesCommitmentModel.prototype.write = function (source) {
	        this._commitment = source;
	        return this;
	    };
	    PreferencesCommitmentModel.prototype.read = function () {
	        return this._commitment;
	    };
	    PreferencesCommitmentModel.prototype.get = function (commitmentId) {
	        return this._commitment;
	    };
	    PreferencesCommitmentModel.prototype.getTotalCommitment = function () {
	        return this._commitment;
	    };
	    PreferencesCommitmentModel.prototype.update = function (source) {
	        return this;
	    };
	    return PreferencesCommitmentModel;
	}());
	exports.PreferencesCommitmentModel = PreferencesCommitmentModel;
	angular.module('capability-ng-scheduler').service('ngPreferencesCommitmentModel', PreferencesCommitmentModel);


/***/ }),
/* 1872 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .controller('schedulePreferencesController', function schedulePreferencesController($scope, $state, $stateParams, $anchorScroll, preferencesUpdateModel, getDayEnums, $location, preferencesBusyTimes, PreferenceTypeEnum, preferencesCampuses) {
	    'use strict';
	    $scope.termId = $stateParams.termId;
	    $scope.isOpened = true;
	    var closePreferences = function () {
	        $scope.isOpened = false;
	        $state.__goToPrevious__();
	    };
	    $scope.__onClosed = function () {
	        closePreferences();
	    };
	    $scope.currentPreference = PreferenceTypeEnum.CAMPUS_LOCATION.value.id;
	    $scope.togglePreference = function (preferenceName) {
	        $scope.currentPreference = _4.isEqual($scope.currentPreference, preferenceName) ? '' : preferenceName;
	    };
	    $scope.includeWeekends = '';
	    $scope.microheaders = '';
	    $scope.enums = getDayEnums();
	    $scope.getBusyTimesSummary = function () {
	        preferencesBusyTimes.getSummary();
	    };
	    var isValidList = [];
	    var notifySubscribers = function () {
	        var errorLocation = '';
	        _4.each(isValidList, function (isValidItem) {
	            $scope.$broadcast(isValidItem.id + 'DisplayError', !isValidItem.status);
	            if (!isValidItem.status && errorLocation === '') {
	                errorLocation = isValidItem.id + '-validation-error';
	            }
	        });
	        if ($location.hash() !== errorLocation && errorLocation !== '') {
	            $location.hash(errorLocation);
	        }
	        else if (errorLocation !== '') {
	            $anchorScroll();
	        }
	    };
	    $scope.$on('isValid', function (e, val) {
	        e.stopPropagation();
	        var foundValue = _4.find(isValidList, function (isValidItem) {
	            return isValidItem.id === val.id;
	        });
	        if (!_4.isUndefined(foundValue)) {
	            foundValue.status = val.status;
	        }
	        else {
	            isValidList.push(val);
	        }
	        notifySubscribers();
	    });
	})
	    .directive('preferencesHasChanged', function (preferencesUpdateModel) {
	    return {
	        restrict: 'A',
	        replace: false,
	        scope: false,
	        link: function (scope, element, attrs) {
	            element.on('mouseup', function () {
	                if (preferencesUpdateModel) {
	                    preferencesUpdateModel.hasUpdated(attrs.preferencesHasChanged);
	                }
	            });
	        }
	    };
	})
	    .factory('preferencesUpdateModel', function () {
	    return {
	        _updated: {
	            availability: false,
	            timeSpent: false,
	            campuses: false
	        },
	        clear: function () {
	            this._updated = {
	                availability: false,
	                timeSpent: false,
	                campuses: false
	            };
	        },
	        hasUpdated: function (key) {
	            this._updated[key] = true;
	        },
	        status: function (key) {
	            return this._updated[key];
	        }
	    };
	})
	    .directive('schedulePreferences', function schedulePreferences(DelegateResponder, schedulePreferencesExternal, PreferenceTypeEnum, calendarPreferencesSyncDelegate, preferencesCampuses, preferencesBusyTimes) {
	    return {
	        restrict: 'E',
	        replace: true,
	        templateUrl: 'capability-ng-scheduler/src/views/components/preferences/preferences.html',
	        controller: 'schedulePreferencesController',
	        link: function (scope, element, attrs) {
	            scope.isSliderOpen = false;
	            scope.isFirstTimePreferences = false;
	            scope.isFirstTimePref = function () {
	                scope.isFirstTimePreferences = true;
	            };
	            var activate = (scope.activate = function () {
	                scope.isSliderOpen = true;
	            });
	            var deactivate = (scope.deactivate = function () {
	                scope.isSliderOpen = false;
	            });
	            scope.currentPreference = PreferenceTypeEnum.CAMPUS_LOCATION.value.id;
	            var togglePreference = (scope.togglePreference = function (preferenceName) {
	                scope.currentPreference = _4.isEqual(scope.currentPreference, preferenceName) ? '' : preferenceName;
	            });
	            var toggle = (scope.toggleSlider = function () {
	                calendarPreferencesSyncDelegate.exec();
	                preferencesCampuses.getSummary();
	                preferencesBusyTimes.getSummary();
	                if (scope.isSliderOpen) {
	                    schedulePreferencesExternal.returnToOpenCourse();
	                }
	                else {
	                    activate();
	                }
	            });
	            scope.$on('$destroy', function (event) {
	                toggle();
	            });
	            toggle();
	            DelegateResponder(scope, attrs, {
	                uniqueComponent: 'scheduler-preferences',
	                vocabulary: {
	                    activate: function () {
	                        activate();
	                    },
	                    deactivate: function () {
	                        deactivate();
	                    },
	                    toggle: function () {
	                        toggle();
	                    },
	                    activate_busytime: function () {
	                        togglePreference('busy_time');
	                    },
	                    activate_campuses: function () {
	                        togglePreference('campus_location');
	                    }
	                }
	            });
	        },
	        scope: {}
	    };
	})
	    .service('schedulePreferencesDelegate', function schedulePreferencesDelegate($rootScope, DelegateController) {
	    DelegateController(this, {
	        uniqueComponent: 'scheduler-preferences',
	        vocabulary: {
	            activate: 'active',
	            deactivate: 'inactive',
	            toggle: 'toggle',
	            activate_campuses: 'activate_campuses',
	            activate_busytime: 'activate_busytime'
	        }
	    });
	})
	    .service('schedulePreferencesExternal', function schedulePreferencesExternal($state, $timeout, schedulePreferencesDelegate) {
	    var _this = this;
	    this.reset = function () {
	        _this.isCourseInfo = false;
	        _this.stateWhenOpeningPrefs = '';
	        _this.params = {};
	        _this.params.courseId = '';
	        _this.params.sectionsFilter = '';
	    };
	    this.reset();
	    this.openPreferences = function () {
	        var isCourseInfo = $state.is('my.schedule.registration.courseSections');
	        if (isCourseInfo) {
	            _this.stateWhenOpeningPrefs = $state.current.name;
	            _this.params.courseId = $state.params.courseId;
	            _this.params.sectionsFilter = $state.params.sectionsFilter;
	            $state.go('my.schedule.registration').then(function () {
	                $timeout(function () {
	                    schedulePreferencesDelegate.toggle();
	                }, 500);
	            });
	        }
	        else {
	            schedulePreferencesDelegate.toggle();
	        }
	    };
	    this.returnToOpenCourse = function (callback) {
	        var isThereAStateToGoBack = _this.stateWhenOpeningPrefs !== '';
	        var areParamsSet = !_4.isEmpty(_this.params.courseId) && !_4.isEmpty(_this.params.sectionsFilter);
	        if (isThereAStateToGoBack && areParamsSet) {
	            $state.go(_this.stateWhenOpeningPrefs, _this.params).then(function () {
	                _this.reset();
	                schedulePreferencesDelegate.deactivate();
	            });
	        }
	        else {
	            schedulePreferencesDelegate.deactivate();
	        }
	    };
	});


/***/ }),
/* 1873 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(7);
	var commonPref = function (scope, prefsObj, type) {
	    if (!_4.isEmpty(prefsObj)) {
	        prefsObj.type = type;
	        scope.setPreferenceValue(prefsObj);
	    }
	};
	angular
	    .module('capability-ng-scheduler')
	    .controller('preferencesSummaryController', function ($scope, $rootScope, preferencesSummarySvc, preferencesBusyTimes, PreferenceTypeEnum) {
	    $scope.models = {
	        preferenceValue: 0,
	        preferenceTypeUnit: PreferenceTypeEnum[$scope.type.toUpperCase()].value.unit,
	        sum: 0,
	        isUpdated: false
	    };
	    $scope.preferenceTypeEnum = PreferenceTypeEnum;
	    $scope.setPreferenceValue = function (prefsObj) {
	        if (_4.isEqual(prefsObj.type, $scope.type)) {
	            $scope.models.preferenceValue = preferencesSummarySvc.update(prefsObj);
	            $scope.models.isUpdated = $scope.models.preferenceValue > 0 || $scope.models.preferenceValue === "All";
	        }
	    };
	    preferencesBusyTimes.getSummary();
	})
	    .constant('preferencesSummaryDelegateConfiguration', {
	    uniqueComponent: 'preferencesSummary',
	    vocabulary: {
	        setCommitment: function (scope, element, attrs, event, prefsObj) {
	            commonPref(scope, prefsObj, 'commitment');
	        },
	        setCampusLocation: function (scope, element, attrs, event, prefsObj) {
	            commonPref(scope, prefsObj, 'campus_location');
	        },
	        setBusyTime: function (scope, element, attrs, event, prefsObj) {
	            commonPref(scope, prefsObj, 'busy_time');
	        }
	    }
	})
	    .directive('preferencesSummary', function preferencesSummary(DelegateResponder, preferencesSummaryDelegateConfiguration) {
	    return {
	        restrict: 'AE',
	        replace: true,
	        templateUrl: 'capability-ng-scheduler/src/views/components/preferences_summary/preferences_summary.html',
	        controller: 'preferencesSummaryController',
	        scope: {
	            type: '@',
	            mode: '@'
	        },
	        link: DelegateResponder(preferencesSummaryDelegateConfiguration, function (scope, element, attrs) {
	            scope.models.preferenceValue = 0;
	        })
	    };
	})
	    .service('preferencesSummaryDelegate', function preferencesSummaryDelegate(DelegateController, preferencesSummaryDelegateConfiguration) {
	    DelegateController(this, preferencesSummaryDelegateConfiguration);
	})
	    .factory('preferencesSummarySvc', function (CommitmentRangesEnum) {
	    var summary = {
	        commitmentRanges: {},
	        commitmentRangesSum: 0,
	        campusesQuantity: 0
	    };
	    var getSummaryValue = {
	        commitment: function (prefsObj) {
	            if (_4.isEmpty(summary.commitmentRanges)) {
	                _4.each(CommitmentRangesEnum, function (range) {
	                    summary.commitmentRanges[range.id] = 0;
	                });
	            }
	            summary.commitmentRanges[prefsObj.id] = parseInt(prefsObj.value, 10);
	            return (summary.commitmentRangesSum = _4.reduce(summary.commitmentRanges, function (sum, value) {
	                return sum + value;
	            }, 0));
	        },
	        campus_location: function (prefsObj) {
	            if (prefsObj.campuses) {
	                var selectedCampuses = _4.filter(prefsObj.campuses, function (campus) { return campus._selected && !campus.is_global; });
	                return prefsObj.campuses.length === selectedCampuses.length ? 'All' : selectedCampuses.length;
	            }
	            else {
	                return 0;
	            }
	        },
	        busy_time: function (prefsObj) {
	            return !_4.isUndefined(prefsObj.busyTimes) ? prefsObj.busyTimes.length : 0;
	        }
	    };
	    summary.update = function (prefsObj) { return getSummaryValue[prefsObj.type](prefsObj); };
	    return summary;
	});


/***/ }),
/* 1874 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SeatsInfo = /** @class */ (function () {
	    function SeatsInfo(ngUnscheduledSectionServant, updateSeatAvailabilityCommand, $timeout, ngTermScheduleFlags, ngSectionSwapServant, updateCalendarSectionTimesCommand, ngScheduledSectionStatusServant) {
	        this.ngUnscheduledSectionServant = ngUnscheduledSectionServant;
	        this.updateSeatAvailabilityCommand = updateSeatAvailabilityCommand;
	        this.$timeout = $timeout;
	        this.ngTermScheduleFlags = ngTermScheduleFlags;
	        this.ngSectionSwapServant = ngSectionSwapServant;
	        this.updateCalendarSectionTimesCommand = updateCalendarSectionTimesCommand;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.canAddToWaitlist = false;
	        this.swapMode = false;
	        this.shouldShowSeatsInfo = false;
	        this.isSeatsRefreshEnabled = true;
	    }
	    SeatsInfo.prototype.initialize = function () {
	        this.seatsText = this.getSeatsText();
	        var lastUpdated = !_4.isUndefined(this.availability) && this.availability.last_refresh_ts
	            ? "Last updated " + moment(this.availability.last_refresh_ts).fromNow()
	            : "";
	        this.popoverText = "" + lastUpdated;
	        // TECH DEBT:
	        // when dragging and not dropping into calendar ph3-tooltip in some way "loses" it's component properties and becomes only HTML.
	        // So it stops working, no more hover behavior, no more tooltip and loses the styles that keep them hidden, so it just appears as a div breaking the layout. phx-tooltip is used instead
	        this.customTooltip = "capability-ng-scheduler/src/views/components/seats_info_component/seats_info_component_tooltip.html";
	        this.isUnlimitedSeating = this.section.is_unlimited_seating;
	        this.swapMode = this.ngSectionSwapServant.isInSwapMode();
	        this.shouldShowSeatsInfo = !this.isSectionRegisteredInprogressCompleted();
	        this.isSeatsRefreshEnabled = this.ngTermScheduleFlags.isOneClickRegistrationEnabled()
	            ? !this.swapMode && !this.isUnlimitedSeating
	            : false;
	        this.canAddToWaitlist = this.ngUnscheduledSectionServant.canAddToWaitlist(this.section);
	    };
	    SeatsInfo.prototype.getSeatsText = function () {
	        var availabeSeats = (!_4.isUndefined(this.section._availability) ? this.section._availability.avail_seats : '') + " Seat" + (this.section.seats_offered > 1 ? 's' : '');
	        if (this.section.is_unlimited_seating) {
	            return 'Unlimited Seating';
	        }
	        // Read notes on SGD-13348
	        if (this.ngScheduledSectionStatusServant.isStatusWaitlisted(this.section) &&
	            this.ngUnscheduledSectionServant.isSectionFull(this.section) &&
	            this.section.seats_offered > 0) {
	            return availabeSeats;
	        }
	        if (this.ngUnscheduledSectionServant.isSectionFull(this.section) && !this.canAddToWaitlist) {
	            return "FULL";
	        }
	        if (this.canAddToWaitlist) {
	            return "Waitlist Available";
	        }
	        return availabeSeats;
	    };
	    SeatsInfo.prototype.$onInit = function () {
	        this.initialize();
	    };
	    SeatsInfo.prototype.$onChanges = function (changes) {
	        this.initialize();
	    };
	    SeatsInfo.prototype.isSectionRegisteredInprogressCompleted = function () {
	        return (this.ngScheduledSectionStatusServant.isRegisteredOrInprogress(this.section) ||
	            this.ngScheduledSectionStatusServant.isCompleted(this.section) ||
	            this.ngScheduledSectionStatusServant.isStatusWithdrawn(this.section));
	    };
	    SeatsInfo.prototype.updateSectionTimesAndEnaleRefreshing = function () {
	        this.disableRefresh = false;
	        this.updateCalendarSectionTimesCommand();
	    };
	    SeatsInfo.prototype.refreshSeats = function () {
	        var CLICK_DELAY = 15000;
	        this.updateSeatAvailabilityCommand([this.section.id]).then(this.updateSectionTimesAndEnaleRefreshing.bind(this));
	        this.disableRefresh = true;
	        this.$timeout(this.updateSectionTimesAndEnaleRefreshing.bind(this), CLICK_DELAY);
	    };
	    return SeatsInfo;
	}());
	var SeatsInfoComponent = /** @class */ (function () {
	    function SeatsInfoComponent() {
	        this.bindings = {
	            section: '<',
	            availability: '<',
	            isScheduled: '<'
	        };
	        this.controller = SeatsInfo;
	        this.templateUrl = 'capability-ng-scheduler/src/views/components/seats_info_component/seats_info_component.html';
	    }
	    return SeatsInfoComponent;
	}());
	angular.module('capability-ng-scheduler').component('seatsInfo', new SeatsInfoComponent());


/***/ }),
/* 1875 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SeatsInfoText = /** @class */ (function () {
	    function SeatsInfoText(ngUnscheduledSectionServant, ngScheduledSectionStatusServant) {
	        this.ngUnscheduledSectionServant = ngUnscheduledSectionServant;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.canAddToWaitlist = false;
	        this.shouldShowSeatsInfo = false;
	    }
	    SeatsInfoText.prototype.initialize = function () {
	        this.seatsText = this.computeSeatsText(this.computeSeatsState());
	        this.shouldShowSeatsInfo = !this.isSectionRegisteredInprogressCompleted();
	        this.canAddToWaitlist = this.ngUnscheduledSectionServant.canAddToWaitlist(this.section);
	    };
	    SeatsInfoText.prototype.computeSeatsState = function () {
	        var isUnlimitedSeating = this.section.is_unlimited_seating;
	        if (isUnlimitedSeating) {
	            return 'unlimited';
	        }
	        var isSectionWaitlisted = this.ngScheduledSectionStatusServant.isStatusWaitlisted(this.section);
	        var isSectionFull = this.ngUnscheduledSectionServant.isSectionFull(this.section);
	        var doesSectionHaveSeats = this.section.seats_offered > 0;
	        if (isSectionWaitlisted && isSectionFull && doesSectionHaveSeats) {
	            return 'available';
	        }
	        var isSectionBlocked = !this.canAddToWaitlist;
	        if (isSectionFull && isSectionBlocked) {
	            return 'full';
	        }
	        var canSectionBeWaitlisted = this.canAddToWaitlist;
	        if (canSectionBeWaitlisted) {
	            return 'waitlist';
	        }
	        return 'available';
	    };
	    SeatsInfoText.prototype.computeSeatsText = function (state) {
	        switch (state) {
	            case 'unlimited':
	                return 'Unlimited Seating';
	            case 'full':
	                return 'FULL';
	            case 'waitlist':
	                return 'Waitlist Available';
	            case 'available':
	            default:
	                return this.getAvailableSeatsText();
	        }
	    };
	    SeatsInfoText.prototype.getAvailableSeatsText = function () {
	        var pluralText = this.section.seats_offered > 1 ? 's' : '';
	        var availableSeats = !_4.isUndefined(this.section._availability) ? this.section._availability.avail_seats : '';
	        return availableSeats + " seat" + pluralText + " available";
	    };
	    SeatsInfoText.prototype.$onInit = function () {
	        this.initialize();
	    };
	    SeatsInfoText.prototype.$onChanges = function (changes) {
	        this.initialize();
	    };
	    SeatsInfoText.prototype.isSectionRegisteredInprogressCompleted = function () {
	        return (this.ngScheduledSectionStatusServant.isRegisteredOrInprogress(this.section) ||
	            this.ngScheduledSectionStatusServant.isCompleted(this.section) ||
	            this.ngScheduledSectionStatusServant.isStatusWithdrawn(this.section));
	    };
	    return SeatsInfoText;
	}());
	angular.module('capability-ng-scheduler').component('seatsInfoText', {
	    bindings: {
	        section: '<',
	        availability: '<',
	        isScheduled: '<'
	    },
	    templateUrl: 'capability-ng-scheduler/src/views/components/seats_info_text/seats_info_text.html',
	    controller: SeatsInfoText
	});


/***/ }),
/* 1876 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SectionTypeBadge = /** @class */ (function () {
	    function SectionTypeBadge(getCSSClassForString) {
	        this.getCSSClassForString = getCSSClassForString;
	    }
	    SectionTypeBadge.prototype.getSectionTypeBadgeClassName = function (courseNk) {
	        var badgeStyleClass = this.getCSSClassForString(courseNk, 'bdr') + " " + this.getCSSClassForString(courseNk, 'bkg') + " bas bdr-solid ";
	        badgeStyleClass += !this.showAsDisabled
	            ? "clr-gray-txt"
	            : " " + this.getCSSClassForString(courseNk) + " " + this.textClass;
	        return badgeStyleClass;
	    };
	    SectionTypeBadge.prototype.$onInit = function () {
	        this.maxChar = this.maxChar || 25;
	        this.textClass = this.textClass || "";
	        this.showAsDisabled = this.showAsDisabled || false;
	        this.sectionTypeBadgeClassName = this.getSectionTypeBadgeClassName(this.courseNk);
	        this.truncatedSectionTypeName = _4.startCase(_4.lowerCase(_4.truncate(_4.get(this.sectionType, 'name', ''), { length: this.maxChar })));
	    };
	    SectionTypeBadge.prototype.$onChanges = function (changes) {
	        if (changes.maxChar && changes.maxChar.currentValue) {
	            this.maxChar = changes.maxChar.currentValue;
	        }
	        if (changes.showAsDisabled && 'currentValue' in changes.showAsDisabled) {
	            this.showAsDisabled = changes.showAsDisabled.currentValue;
	        }
	        if (changes.courseNk && changes.courseNk.currentValue) {
	            this.courseNk = changes.courseNk.currentValue;
	        }
	        if (changes.sectionType && changes.sectionType.currentValue) {
	            this.truncatedSectionTypeName = _4.truncate(_4.get(changes, 'sectionType.currentValue.name', ''), {
	                length: this.maxChar
	            });
	        }
	        if (changes.textClass && changes.textClass.currentValue) {
	            this.textClass = changes.textClass.currentValue;
	        }
	        this.sectionTypeBadgeClassName = this.getSectionTypeBadgeClassName(this.courseNk);
	    };
	    return SectionTypeBadge;
	}());
	var SectionTypeBadgeComponent = /** @class */ (function () {
	    function SectionTypeBadgeComponent() {
	        this.bindings = {
	            sectionType: '<',
	            courseNk: '<',
	            maxChar: '<',
	            textClass: '<',
	            showAsDisabled: '<'
	        };
	        this.controller = SectionTypeBadge;
	        this.templateUrl = 'capability-ng-scheduler/src/views/components/section_type_badge/section_type_badge.html';
	    }
	    return SectionTypeBadgeComponent;
	}());
	angular.module('capability-ng-scheduler').component('sectionTypeBadge', new SectionTypeBadgeComponent());


/***/ }),
/* 1877 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var SetPreferencesReminder = /** @class */ (function () {
	    function SetPreferencesReminder() {
	        this.isVisible = true;
	    }
	    return SetPreferencesReminder;
	}());
	exports.SetPreferencesReminder = SetPreferencesReminder;
	var SetPreferencesReminderComponent = /** @class */ (function () {
	    function SetPreferencesReminderComponent() {
	        this.bindings = {};
	        this.controller = SetPreferencesReminder;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/components/set_preferences_reminder/set_preferences_reminder.html';
	    }
	    return SetPreferencesReminderComponent;
	}());
	angular.module('capability-ng-scheduler').component('setPreferencesReminder', new SetPreferencesReminderComponent());


/***/ }),
/* 1878 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('getCourseDetailsCommand', function ($http, ngCourseDetailsModel, defineCommandORM) {
	    return defineCommandORM('getCourseDetailsCommand', function (deferred, courseNk, sectionId) {
	        $http
	            .get("/reg/course/nk/" + courseNk + "/")
	            .then(function (_a) {
	            var data = _a.data;
	            ngCourseDetailsModel.clear().write({
	                course_detail: data,
	                sectionUsedToFetchCourseDetails: sectionId
	            });
	            deferred.resolve();
	        })
	            .catch(deferred.reject);
	    });
	});


/***/ }),
/* 1879 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .factory('saveCoReqCourseToTermAP1Command', function ($http, defineCommandORM) {
	    return defineCommandORM('saveCoReqCourseToTermAP1Command', function (deferred, courseId, termId, slotId) {
	        /* tslint:disable:no-null-keyword*/
	        var calcSlotId = _4.isUndefined(slotId) || _4.isNull(slotId) || slotId < 1 ? null : slotId;
	        var payload = {
	            course_id: courseId,
	            term_id: termId,
	            slot_id: calcSlotId
	        };
	        return $http
	            .post("/reg/academicplan/", payload)
	            .catch(deferred.reject)
	            .then(function () { return deferred.resolve(); });
	    });
	});


/***/ }),
/* 1880 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('saveCoReqCourseToTermAP3Command', function ($http, defineCommandORM, ngSchedulerStudentPlanQuery) {
	    return defineCommandORM('saveCoReqCourseToTermAP3Command', function (deferred, courseId, termId) {
	        if (!ngSchedulerStudentPlanQuery.result) {
	            return deferred.reject();
	        }
	        var payload = {
	            course: courseId,
	            met_aside_from_term: false,
	            term: termId,
	            kind: 'Planned Course'
	        };
	        return $http
	            .post("/ap3/studentplans/" + ngSchedulerStudentPlanQuery.result.id + "/studentplanitems-infer-term/", payload)
	            .catch(deferred.reject)
	            .then(function () { return deferred.resolve(); });
	    });
	});


/***/ }),
/* 1881 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('saveCoReqCourseToTermCommand', function (defineCommand, saveCoReqCourseToTermAP1Command, saveCoReqCourseToTermAP3Command, ngBackToPlannerHelper) {
	    return defineCommand('saveCoReqCourseToTermCommand', function (deferred, courseId, termId, slotId) {
	        var isAP1Enabled = ngBackToPlannerHelper.isAP1PlannerEnabled();
	        if (isAP1Enabled) {
	            return saveCoReqCourseToTermAP1Command(courseId, termId, slotId).then(deferred.resolve);
	        }
	        return saveCoReqCourseToTermAP3Command(courseId, termId).then(deferred.resolve);
	    });
	});


/***/ }),
/* 1882 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var section_coreq_strategy_1 = __webpack_require__(715);
	var requisite_enum_1 = __webpack_require__(100);
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	var CoRequisiteLink = /** @class */ (function () {
	    function CoRequisiteLink(ngTermProgramInfoModel, getTermCoursesCommand, saveCoReqCourseToTermCommand, ngCourseDetailsFacade, clearCrossCourseLinkedSectionsCommand, resetCoreqSectionsMetasourceCommand, QueryMediator, ngCourseDetailsModel, ngComponentCommunicatorService, ngScheduleSectionFacade, $state, updateSeatAvailabilityCommand, ngCrossCourseLinkedSectionsModel, getCourseSchedulerCommand, getCrossCourseLinkedSectionsCommand, getTermCoursesandScheduledSectionsCommand, ngSectionsDatasource, ngRegistrationAlertsServant, appConfigModel, ngCourseDetailsQuery) {
	        this.ngTermProgramInfoModel = ngTermProgramInfoModel;
	        this.getTermCoursesCommand = getTermCoursesCommand;
	        this.saveCoReqCourseToTermCommand = saveCoReqCourseToTermCommand;
	        this.ngCourseDetailsFacade = ngCourseDetailsFacade;
	        this.clearCrossCourseLinkedSectionsCommand = clearCrossCourseLinkedSectionsCommand;
	        this.resetCoreqSectionsMetasourceCommand = resetCoreqSectionsMetasourceCommand;
	        this.QueryMediator = QueryMediator;
	        this.ngCourseDetailsModel = ngCourseDetailsModel;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngScheduleSectionFacade = ngScheduleSectionFacade;
	        this.$state = $state;
	        this.updateSeatAvailabilityCommand = updateSeatAvailabilityCommand;
	        this.ngCrossCourseLinkedSectionsModel = ngCrossCourseLinkedSectionsModel;
	        this.getCourseSchedulerCommand = getCourseSchedulerCommand;
	        this.getCrossCourseLinkedSectionsCommand = getCrossCourseLinkedSectionsCommand;
	        this.getTermCoursesandScheduledSectionsCommand = getTermCoursesandScheduledSectionsCommand;
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngRegistrationAlertsServant = ngRegistrationAlertsServant;
	        this.appConfigModel = appConfigModel;
	        this.ngCourseDetailsQuery = ngCourseDetailsQuery;
	        this.isPlanned = false;
	        this.isRegistered = false;
	        this.canInteract = true;
	        this.type = '';
	        this.coreqStatus = '';
	    }
	    CoRequisiteLink.prototype.initialize = function () {
	        var termInfo = this.ngTermProgramInfoModel.read();
	        this.term = termInfo.term;
	        this.configureAddCourseButton();
	        this.singleCoreqCrn = !_4.isUndefined(this.coreq.sections) ? this.getCoreqCRN() : '';
	        this.isRegistered = this.coreqStatus === scheduled_section_status_enum_1.ScheduledSectionStatus.REGISTERED;
	        this.canInteract = !this.isPlanned && !this.isRegistered;
	    };
	    CoRequisiteLink.prototype.$onInit = function () {
	        this.initialize();
	    };
	    CoRequisiteLink.prototype.getCoreqCRN = function () {
	        var sectionLabelPrefix = this.appConfigModel.model.member_configs['section_label'];
	        var sectionCount = _4.get(this.coreq, 'sections.length');
	        return sectionCount === 1 ? sectionLabelPrefix + " " + _4.get(_4.first(this.coreq.sections), 'cd') : '';
	    };
	    CoRequisiteLink.prototype.configureAddCourseButton = function () {
	        if (this.coreqStatus === scheduled_section_status_enum_1.ScheduledSectionStatus.CONFLICTING ||
	            this.coreqStatus === scheduled_section_status_enum_1.ScheduledSectionStatus.REGISTERED ||
	            this.coreqStatus === scheduled_section_status_enum_1.ScheduledSectionStatus.SECTION_PICKED) {
	            this.addCourseButtonConfig = section_coreq_strategy_1.SectionAddCoreqButtonStrategy[this.coreqStatus];
	        }
	        else {
	            this.addCourseButtonConfig = section_coreq_strategy_1.SectionAddCoreqButtonStrategy[this.type.toUpperCase()];
	        }
	    };
	    CoRequisiteLink.prototype.$onChanges = function (changes) {
	        this.initialize();
	    };
	    CoRequisiteLink.prototype.openCoReqDetails = function () {
	        this.ngCourseDetailsFacade.openCourseDetails(this.coreq.nk);
	    };
	    CoRequisiteLink.prototype.addButtonPress = function () {
	        if (this.type === 'course') {
	            this.addCourseToTerm();
	        }
	        else if (this.type === requisite_enum_1.SectionRequisites.ONE_TO_ONE) {
	            this.addSectionToTerm();
	        }
	        else if (this.type === requisite_enum_1.SectionRequisites.ONE_TO_MANY) {
	            this.closeCourseDetailModal();
	            this.$state.go("my.schedule.registration.sectionCoreqs.sections", {
	                courseId: this.coreq.id,
	                sectionTypeId: 0
	            });
	        }
	    };
	    CoRequisiteLink.prototype.addSectionToTerm = function () {
	        var _this = this;
	        var section = _4.first(this.coreq.sections);
	        var sectionId = _4.get(section, 'id');
	        this.ngScheduleSectionFacade.scheduleSection(section, false).then(function () {
	            if (!_this.ngCourseDetailsQuery.result) {
	                return;
	            }
	            _this.getCrossCourseLinkedSectionsCommand(_this.ngCourseDetailsQuery.result.sectionUsedToFetchCourseDetails, true);
	        });
	    };
	    CoRequisiteLink.prototype.closeCourseDetailModal = function () {
	        this.ngComponentCommunicatorService.publish('CLOSE_COURSE_DETAIL_MODAL');
	    };
	    CoRequisiteLink.prototype.addCourseToTerm = function () {
	        var _this = this;
	        var slotId = _4.get(this.course, '_planned_course.program_slot');
	        this.saveCoReqCourseToTermCommand(this.coreq.id, this.term.id, slotId).then(function () {
	            _this.ngRegistrationAlertsServant.showAddedCoreqAlerts(_this.coreq);
	            _this.getTermCoursesCommand(_this.term.id).then(function () {
	                _this.resetCoreqSectionsMetasourceCommand(_this.course.id);
	                _this.QueryMediator.runQueries(_this.ngCourseDetailsModel);
	            });
	        });
	    };
	    return CoRequisiteLink;
	}());
	var CoRequisiteLinkComponent = /** @class */ (function () {
	    function CoRequisiteLinkComponent() {
	        this.bindings = {
	            coreq: '<',
	            course: '<',
	            hideControls: '<',
	            isPlanned: '<',
	            coreqStatus: '@',
	            type: '@'
	        };
	        this.controller = CoRequisiteLink;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/course_details/components/co_requisite_link/co_requisite_link.html';
	    }
	    return CoRequisiteLinkComponent;
	}());
	angular.module('capability-ng-scheduler').component('coRequisiteLink', new CoRequisiteLinkComponent());


/***/ }),
/* 1883 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var CourseDetail = /** @class */ (function () {
	    function CourseDetail(ngCourseDetailsQuery, ngScheduledSectionsQuery, $state, saveCoReqCourseToTermCommand, getTermCoursesCommand, clearCrossCourseLinkedSectionsCommand, ngCourseDetailsModel, QueryMediator, ngTermProgramInfoModel, ngCourseDetailsCrossCoreqQuery, ngRegistrationAlertsServant, ngComponentCommunicatorService) {
	        this.ngCourseDetailsQuery = ngCourseDetailsQuery;
	        this.ngScheduledSectionsQuery = ngScheduledSectionsQuery;
	        this.$state = $state;
	        this.saveCoReqCourseToTermCommand = saveCoReqCourseToTermCommand;
	        this.getTermCoursesCommand = getTermCoursesCommand;
	        this.clearCrossCourseLinkedSectionsCommand = clearCrossCourseLinkedSectionsCommand;
	        this.ngCourseDetailsModel = ngCourseDetailsModel;
	        this.QueryMediator = QueryMediator;
	        this.ngTermProgramInfoModel = ngTermProgramInfoModel;
	        this.ngCourseDetailsCrossCoreqQuery = ngCourseDetailsCrossCoreqQuery;
	        this.ngRegistrationAlertsServant = ngRegistrationAlertsServant;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.isOpened = true;
	    }
	    CourseDetail.prototype.initialize = function () {
	        if (_4.isUndefined(this.ngCourseDetailsQuery.result) || !this.ngCourseDetailsQuery.result) {
	            return;
	        }
	        this.termId = _4.get(this.ngTermProgramInfoModel.read(), 'term.id');
	        this.termName = _4.get(this.ngTermProgramInfoModel.read(), 'term.name');
	        this.hasOptionalSections = _4.some(this.ngCourseDetailsQuery.result.course._section_types, function (sType) { return !sType.is_required; });
	    };
	    CourseDetail.prototype.$onInit = function () {
	        this.initialize();
	        this.openBound = this.openCourseDetailModal.bind(this);
	        this.closeBound = this.closeModal.bind(this);
	        this.ngComponentCommunicatorService.subscribe('OPEN_COURSE_DETAIL_MODAL', this.openBound);
	        this.ngComponentCommunicatorService.subscribe('CLOSE_COURSE_DETAIL_MODAL', this.closeBound);
	    };
	    CourseDetail.prototype.$onChanges = function () {
	        this.initialize();
	    };
	    CourseDetail.prototype.getCourseCoReqStatus = function (courseCoRequisite) {
	        var coreqStatus = _4.get(_4.find(_4.get(this.ngScheduledSectionsQuery, 'result.list', []), { course: courseCoRequisite.course }), 'status');
	        return coreqStatus;
	    };
	    CourseDetail.prototype.onOpenChanged = function (e) {
	        if (_4.get(e, 'currentTarget.$.dialogBody')) {
	            e.currentTarget.$.dialogBody.scrollTo(0, 0);
	        }
	    };
	    CourseDetail.prototype.openCourseDetailModal = function () {
	        this.isOpened = true;
	    };
	    CourseDetail.prototype.closeModal = function () {
	        this.isOpened = false;
	        this.clearCrossCourseLinkedSectionsCommand();
	    };
	    CourseDetail.prototype.addToTerm = function (courseId) {
	        var _this = this;
	        if (!this.ngCourseDetailsQuery.result) {
	            return;
	        }
	        var slotId = _4.get(this.ngCourseDetailsQuery, 'result.course._planned_course.program_slot');
	        this.saveCoReqCourseToTermCommand(this.ngCourseDetailsQuery.result.course.id, this.termId, slotId).then(function () {
	            if (_this.ngCourseDetailsQuery.result) {
	                _this.ngRegistrationAlertsServant.showAddedCoreqAlerts(_this.ngCourseDetailsQuery.result.course);
	            }
	            _this.getTermCoursesCommand(_this.termId).then(function () {
	                _this.QueryMediator.runQueries(_this.ngCourseDetailsModel);
	            });
	        });
	    };
	    return CourseDetail;
	}());
	var CourseDetailComponent = /** @class */ (function () {
	    function CourseDetailComponent() {
	        this.bindings = {
	            courseId: '<',
	            isOpened: '<'
	        };
	        this.controller = CourseDetail;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/course_details/components/course_details_component/course_detail_component.html';
	    }
	    return CourseDetailComponent;
	}());
	angular.module('capability-ng-scheduler').component('courseDetails', new CourseDetailComponent());


/***/ }),
/* 1884 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var CourseDetailsFacade = /** @class */ (function () {
	    function CourseDetailsFacade(getCrossCourseLinkedSectionsCommand, getCourseDetailsCommand, $q, ngComponentCommunicatorService, clearCrossCourseLinkedSectionsCommand) {
	        this.getCrossCourseLinkedSectionsCommand = getCrossCourseLinkedSectionsCommand;
	        this.getCourseDetailsCommand = getCourseDetailsCommand;
	        this.$q = $q;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.clearCrossCourseLinkedSectionsCommand = clearCrossCourseLinkedSectionsCommand;
	    }
	    CourseDetailsFacade.prototype.hasLinkedSection = function (section) {
	        if (!section) {
	            return false;
	        }
	        return !_4.isEmpty(section._linked_sections);
	    };
	    CourseDetailsFacade.prototype.openCourseDetails = function (courseNk, section) {
	        var _this = this;
	        return this.clearCrossCourseLinkedSectionsCommand()
	            .then(function () {
	            return _this.$q.all(_this.hasLinkedSection(section) ? [_this.getCrossCourseLinkedSectionsCommand(section.id, true)] : []);
	        })
	            .then(function () { return _this.getCourseDetailsCommand(courseNk, section ? section['id'] : undefined); })
	            .then(function () {
	            _this.ngComponentCommunicatorService.publish('OPEN_COURSE_DETAIL_MODAL');
	        });
	    };
	    return CourseDetailsFacade;
	}());
	exports.CourseDetailsFacade = CourseDetailsFacade;
	angular.module('capability-ng-scheduler').service('ngCourseDetailsFacade', CourseDetailsFacade);


/***/ }),
/* 1885 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngCourseDetailsModel', function () {
	    return new utility_ts_orm_1.Model({
	        course_detail: undefined,
	        sectionUsedToFetchCourseDetails: undefined
	    });
	});


/***/ }),
/* 1886 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var CourseDetailsCrossCoreqQuery = /** @class */ (function () {
	    function CourseDetailsCrossCoreqQuery(QueryMediator, ngCourseDetailsModel, ngCrossCourseCorequisitesDatasource) {
	        this.ngCourseDetailsModel = ngCourseDetailsModel;
	        this.ngCrossCourseCorequisitesDatasource = ngCrossCourseCorequisitesDatasource;
	        QueryMediator.registerQuery(this, ngCourseDetailsModel, ngCrossCourseCorequisitesDatasource);
	    }
	    CourseDetailsCrossCoreqQuery.prototype.run = function () {
	        this._result = this.ngCrossCourseCorequisitesDatasource.read();
	        return this;
	    };
	    Object.defineProperty(CourseDetailsCrossCoreqQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return CourseDetailsCrossCoreqQuery;
	}());
	exports.CourseDetailsCrossCoreqQuery = CourseDetailsCrossCoreqQuery;
	angular.module('capability-ng-scheduler').service('ngCourseDetailsCrossCoreqQuery', CourseDetailsCrossCoreqQuery);


/***/ }),
/* 1887 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var biz_ng_requisite_tree_1 = __webpack_require__(117);
	var _4 = __webpack_require__(1);
	var CourseDetailsQuery = /** @class */ (function () {
	    function CourseDetailsQuery(QueryMediator, ngCourseDetailsModel, ngTermCoursesDatasource, appConfigModel, ngTermCourseQuery) {
	        this.ngCourseDetailsModel = ngCourseDetailsModel;
	        this.ngTermCoursesDatasource = ngTermCoursesDatasource;
	        this.appConfigModel = appConfigModel;
	        this.ngTermCourseQuery = ngTermCourseQuery;
	        QueryMediator.registerQuery(this, ngCourseDetailsModel);
	    }
	    /* tslint:disable:cognitive-complexity */
	    CourseDetailsQuery.prototype.run = function () {
	        var _this = this;
	        var _a = this.ngCourseDetailsModel.read(), course_details = _a.course_detail, sectionUsedToFetchCourseDetails = _a.sectionUsedToFetchCourseDetails;
	        if (!course_details) {
	            this._result = undefined;
	            return this;
	        }
	        var course = _4.first(_4.toArray(course_details.course));
	        if (!course) {
	            this._result = undefined;
	            return this;
	        }
	        var termCourse = this.ngTermCoursesDatasource.get(course.id) || {};
	        // PreRequisite information
	        var filterTestScores = this.appConfigModel.isFeatureEnabled('cat-hide_test_node_in_prereq');
	        var preReqsForHTML = filterTestScores
	            ? _4.filter(course_details.prereq, function (req) { return !biz_ng_requisite_tree_1.RequisiteServant.isTestTypeRequisite(req); })
	            : course_details.prereq;
	        var preReqHtml = biz_ng_requisite_tree_1.RequisiteServant.getRequisiteHtml(preReqsForHTML, course_details.associated_course);
	        var hasTests = biz_ng_requisite_tree_1.RequisiteServant.hasTestPreRequisite(course_details.prereq);
	        var testRequirementText = biz_ng_requisite_tree_1.RequisiteServant.getPreRequisiteTestIssueText(_4.lowerCase(_4.get(this.appConfigModel, 'model.member_configs.advisor_label')));
	        var hasPreRequisiteIssue = biz_ng_requisite_tree_1.RequisiteServant.hasPreRequisiteIssues(course_details.prereq);
	        var preRequirementIssueText = biz_ng_requisite_tree_1.RequisiteServant.getPreRequisiteIssueText();
	        // End PreRequisite information
	        if (_4.get(termCourse, '_section_types')) {
	            termCourse._section_types = _4.uniqBy(termCourse._section_types, 'name');
	        }
	        var mapRequisites = function (requisites, associatedCourses) {
	            return _4.map(requisites, function (req) {
	                if (req.type === 'COURSE' || req.type === 'GRADE') {
	                    var requisite_1 = course_details.associated_course[req.course];
	                    var range = !!req.range ? "(" + req.range + ")" : '';
	                    var title = requisite_1 ? requisite_1.cd + " " + requisite_1.title + " " + range : req.title;
	                    return tslib_1.__assign(tslib_1.__assign({}, req), { title: title, _course: requisite_1, isCoursePlanned: requisite_1 &&
	                            !_4.isUndefined(_4.find(_this.ngTermCourseQuery.result.planned, function (plannedCourse) { return plannedCourse.id === requisite_1.id; })) });
	                }
	                else if (req.type === 'TEST') {
	                    var range = !!req.range ? "(" + req.range + ")" : '';
	                    req.title = req.test + " " + range;
	                    return req;
	                }
	                else {
	                    return req;
	                }
	            });
	        };
	        var coreqs = mapRequisites(course_details.coreq, course_details.associated_course);
	        var prereqs = mapRequisites(course_details.prereq, course_details.associated_course);
	        this._result = {
	            course: _4.assign({}, course, termCourse),
	            coreqs: coreqs,
	            prereqs: prereqs,
	            preReqHtml: preReqHtml,
	            hasTests: hasTests,
	            sectionUsedToFetchCourseDetails: sectionUsedToFetchCourseDetails,
	            hasPreRequisiteIssue: hasPreRequisiteIssue,
	            testRequirementText: testRequirementText,
	            preRequirementIssueText: preRequirementIssueText,
	            hasAllCoRequisitesSatisfied: _4.isEmpty(_4.get(termCourse, '_missing_coreqs', [])),
	            isPlanned: !_4.isUndefined(_4.find(this.ngTermCourseQuery.result.planned, function (plannedCourse) { return plannedCourse.id === course.id; }))
	        };
	        return this;
	    };
	    Object.defineProperty(CourseDetailsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return CourseDetailsQuery;
	}());
	exports.CourseDetailsQuery = CourseDetailsQuery;
	angular.module('capability-ng-scheduler').service('ngCourseDetailsQuery', CourseDetailsQuery);


/***/ }),
/* 1888 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('clearAllRegistrationSectionsCommand', function (ngRegisterSectionsDatasource, defineCommandORM) {
	    return defineCommandORM('clearAllRegistrationSectionsCommand', function (deferred) {
	        ngRegisterSectionsDatasource.clear();
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1889 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var scheduled_section_servant_1 = __webpack_require__(19);
	angular
	    .module('capability-ng-scheduler')
	    .service('markSelectedFlagForScheduledSectionsCommand', function ($q, defineCommandORM, ngRegisterSectionsDatasource, ngScheduledSectionStatusServant, ngSectionsDatasource, ngTermScheduleFlags, updateSectionSelectionsCommand) {
	    return defineCommandORM('markSelectedFlagForScheduledSectionsCommand', function (deferred) {
	        var sectionsWithStatus = ngSectionsDatasource
	            .values()
	            .filter(function (section) { return !ngScheduledSectionStatusServant.isStatusUnscheduled(section); });
	        var allSectionsWithMeta = ngSectionsDatasource.metasource().composes(sectionsWithStatus);
	        var regSections = allSectionsWithMeta.map(function (section) {
	            var isSectionSelected = scheduled_section_servant_1.ScheduledSectionServant.canBeSelected(section, ngTermScheduleFlags);
	            section.is_selected = isSectionSelected;
	            return section;
	        });
	        ngRegisterSectionsDatasource.write(regSections);
	        var updateSectionSelectionPromises = regSections.map(function (section) {
	            return updateSectionSelectionsCommand(section.id, section.is_selected);
	        });
	        $q.all(updateSectionSelectionPromises).then(deferred.resolve);
	    });
	});


/***/ }),
/* 1890 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('removeFromRegisterSectionsCommand', function (ngRegisterSectionsDatasource, defineCommandORM, removeSectionSelectionCommand) {
	    return defineCommandORM('removeFromRegisterSectionsCommand', function (deferred, sectionIds) {
	        sectionIds.forEach(function (id) {
	            ngRegisterSectionsDatasource.del(id);
	            removeSectionSelectionCommand(id);
	        });
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1891 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('updateSeatAvailabilityCommand', function (defineCommandORM, getPusherSeatsAvailableCommand, $q, updateSectionSelectedFlagCommand) {
	    return defineCommandORM('updateSeatAvailabilityCommand', function (deferred, sectionIds) {
	        return getPusherSeatsAvailableCommand(sectionIds)
	            .then(function () {
	            if (sectionIds) {
	                $q.all(sectionIds.map(function (sectionId) { return updateSectionSelectedFlagCommand(sectionId); })).then(deferred.resolve);
	            }
	            deferred.resolve();
	        })
	            .catch(deferred.reject);
	    });
	});


/***/ }),
/* 1892 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var ScheduledSectionsHeaderDialog = /** @class */ (function () {
	    function ScheduledSectionsHeaderDialog($element) {
	        this.$element = $element;
	        this.dialogId = '';
	        this.description = '';
	        this.heading = '';
	        this.content = '';
	        this.showDialog = false;
	    }
	    ScheduledSectionsHeaderDialog.prototype.__onDialogButtonTriggerEnded = function () {
	        this.showDialog = true;
	    };
	    ScheduledSectionsHeaderDialog.prototype.__onDialogCloseEnded = function () {
	        this.showDialog = false;
	    };
	    return ScheduledSectionsHeaderDialog;
	}());
	angular.module('capability-ng-scheduler').component('scheduledSectionsHeaderDialog', {
	    bindings: {
	        dialogId: '@',
	        description: '<',
	        heading: '<',
	        content: '<'
	    },
	    templateUrl: 'capability-ng-scheduler/src/views/course_scheduler/components/scheduled_sections_header_dialog/scheduled_sections_header_dialog.html',
	    controller: ScheduledSectionsHeaderDialog
	});


/***/ }),
/* 1893 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var registration_alert_messages_1 = __webpack_require__(32);
	var RefreshSeatAvailabilityFacade = /** @class */ (function () {
	    function RefreshSeatAvailabilityFacade($timeout, updateSeatAvailabilityCommand, updateCalendarSectionTimesCommand, ngSchedulerNotificationServant) {
	        this.$timeout = $timeout;
	        this.updateSeatAvailabilityCommand = updateSeatAvailabilityCommand;
	        this.updateCalendarSectionTimesCommand = updateCalendarSectionTimesCommand;
	        this.ngSchedulerNotificationServant = ngSchedulerNotificationServant;
	    }
	    RefreshSeatAvailabilityFacade.prototype.refreshSeats = function (sectionId) {
	        var _this = this;
	        var CLICK_DELAY = 15000;
	        this.ngSchedulerNotificationServant.showInfoNotification(registration_alert_messages_1.RegistrationAlertMessages.PENDING_REFRESH_SEATS_TEXT);
	        this.updateSeatAvailabilityCommand([sectionId])
	            .then(function () {
	            _this.ngSchedulerNotificationServant.closeCurrentNotification();
	            _this.ngSchedulerNotificationServant.showSuccessNotification(registration_alert_messages_1.RegistrationAlertMessages.SUCCESSFUL_REFRESH_SEATS_TEXT);
	            _this.updateSectionTimesAndEnaleRefreshing();
	        })
	            .catch(function () {
	            _this.ngSchedulerNotificationServant.showErrorNotification(registration_alert_messages_1.RegistrationAlertMessages.FAILED_REFRESH_SEATS_TEXT);
	        });
	        this.$timeout(this.updateSectionTimesAndEnaleRefreshing.bind(this), CLICK_DELAY);
	    };
	    RefreshSeatAvailabilityFacade.prototype.updateSectionTimesAndEnaleRefreshing = function () {
	        this.updateCalendarSectionTimesCommand();
	    };
	    return RefreshSeatAvailabilityFacade;
	}());
	exports.RefreshSeatAvailabilityFacade = RefreshSeatAvailabilityFacade;
	angular.module('capability-ng-scheduler').service('ngRefreshSeatAvailabilityFacade', RefreshSeatAvailabilityFacade);


/***/ }),
/* 1894 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_strategy_1 = __webpack_require__(6);
	var SelectedSectionActionsFacade = /** @class */ (function () {
	    function SelectedSectionActionsFacade(ngSchedulerModel, appConfigModel, ngSectionSelectionsQuery, ngComponentCommunicatorService, dropCourseSectionsCommand, ngSchedulerActiveTermQuery, ngSchedulerNotificationServant, ngScheduledSectionTileServant, waitlistSectionCommand, ngPreventTransientAccessQuery, updateSeatAvailabilityCommand) {
	        var _this = this;
	        this.ngSchedulerModel = ngSchedulerModel;
	        this.appConfigModel = appConfigModel;
	        this.ngSectionSelectionsQuery = ngSectionSelectionsQuery;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.dropCourseSectionsCommand = dropCourseSectionsCommand;
	        this.ngSchedulerActiveTermQuery = ngSchedulerActiveTermQuery;
	        this.ngSchedulerNotificationServant = ngSchedulerNotificationServant;
	        this.ngScheduledSectionTileServant = ngScheduledSectionTileServant;
	        this.waitlistSectionCommand = waitlistSectionCommand;
	        this.ngPreventTransientAccessQuery = ngPreventTransientAccessQuery;
	        this.updateSeatAvailabilityCommand = updateSeatAvailabilityCommand;
	        this.__actionStrategy = new utility_ts_strategy_1.Strategy({
	            error: function (mode) { return _this.showNoSelectionError(mode); },
	            drop: function () { return _this.ngComponentCommunicatorService.publish('OPEN_MULTI_DROP_MODAL'); },
	            withdraw: function () { return _this.ngComponentCommunicatorService.publish('OPEN_MULTI_WITHDRAW_MODAL'); },
	            waitlist: function () { return _this.ngComponentCommunicatorService.publish('OPEN_MULTI_WAITLIST_MODAL'); }
	        });
	    }
	    SelectedSectionActionsFacade.prototype.isMultiDropFeatureEnabled = function () {
	        return this.appConfigModel.isFeatureEnabled('reg-allow_multi_course_drop');
	    };
	    SelectedSectionActionsFacade.prototype.isMultiWaitlistFeatureEnabled = function () {
	        return this.appConfigModel.isFeatureEnabled('reg-allow_multi_course_waitlist');
	    };
	    SelectedSectionActionsFacade.prototype.shouldShowMultiWaitlistFeature = function () {
	        return this.isMultiWaitlistFeatureEnabled() && this.ngScheduledSectionTileServant.isWaitlistEnabled();
	    };
	    SelectedSectionActionsFacade.prototype.getWithdrawText = function () {
	        var defaultWithdrawText = "\n      <p>\n        Dropping a course after the drop/add period has ended is considered a Withdrawal. You may withdraw\n        from a course after the add/drop period has ended with no grade penalty, however,\n        you may not be eligible for a tuition refund and may still have to pay any outstanding balances owed.\n        You will receive a \"W\" grade for the course on your transcript when you withdraw.\n        If you wish to withdraw from a course, you must do so by the withdraw deadline.\n      </p>\n\n      <p>\n        Withdrawals are counted as an attempt for a course, please refer to your school\u2019s Drop Policy\n        regarding maximum attempts. Students who remain enrolled in courses after the withdrawal\n        deadline has ended will be assigned a final grade in the course.\n      </p>\n    ";
	        var serverText = _4.get(this.ngSchedulerModel.read(), 'customtext.WITHDRAW_CONFIRMATION.text', '');
	        return _4.isEmpty(serverText) ? defaultWithdrawText : serverText;
	    };
	    SelectedSectionActionsFacade.prototype.getSelectionByMode = function (mode) {
	        var _this = this;
	        var selectionStrategy = new utility_ts_strategy_1.Strategy({
	            drop: function () { return _this.ngSectionSelectionsQuery.result.dropSelections; },
	            withdraw: function () { return _this.ngSectionSelectionsQuery.result.withdrawSelections; },
	            waitlist: function () { return _this.ngSectionSelectionsQuery.result.waitlistSelections; },
	            fallback: function () { return []; }
	        });
	        var invokeSelectionStrategy = selectionStrategy.get(mode);
	        return invokeSelectionStrategy();
	    };
	    SelectedSectionActionsFacade.prototype.getSelectionCountByMode = function (mode) {
	        var selection = this.getSelectionByMode(mode);
	        return selection.length;
	    };
	    SelectedSectionActionsFacade.prototype.getSectionsInfoByMode = function (mode) {
	        return this.getSelectionByMode(mode);
	    };
	    SelectedSectionActionsFacade.prototype.openMultiSectionsActionModal = function (mode) {
	        var selectedSections = this.getSelectionByMode(mode);
	        var noSelectionsForMode = _4.isEmpty(selectedSections);
	        if (noSelectionsForMode) {
	            var invokeActionStrategy_1 = this.__actionStrategy.get('error');
	            invokeActionStrategy_1(mode);
	            return;
	        }
	        var invokeActionStrategy = this.__actionStrategy.get(mode);
	        invokeActionStrategy(mode);
	    };
	    SelectedSectionActionsFacade.prototype.showNoSelectionError = function (mode) {
	        var modeCapitalized = _4.capitalize(mode);
	        this.ngSchedulerNotificationServant.showErrorNotification("No Sections to " + modeCapitalized, "Please select a section to " + mode + ".");
	    };
	    SelectedSectionActionsFacade.prototype.invokeMultiSectionsAction = function (mode) {
	        var _this = this;
	        var multiSectionsActionStrategy = new utility_ts_strategy_1.Strategy({
	            drop: function () { return _this.multiSectionsDropOrWithdrawAction('drop'); },
	            withdraw: function () { return _this.multiSectionsDropOrWithdrawAction('withdraw'); },
	            waitlist: function () { return _this.multiSectionsWaitlistAction(); }
	        });
	        var invokeActionStrategy = multiSectionsActionStrategy.get(mode);
	        invokeActionStrategy();
	    };
	    SelectedSectionActionsFacade.prototype.multiSectionsDropOrWithdrawAction = function (mode) {
	        var selectedSectionIds = this.getSelectionByMode(mode).map(function (section) { return section.id; });
	        var termId = _4.get(this.ngSchedulerActiveTermQuery.result, 'id', -1);
	        this.dropCourseSectionsCommand(termId, [], true, -1, {}, selectedSectionIds);
	    };
	    SelectedSectionActionsFacade.prototype.multiSectionsWaitlistAction = function () {
	        var _this = this;
	        var selectedSectionIds = this.getSelectionByMode('waitlist').map(function (section) { return section.id; });
	        var sectionPins = {};
	        var regAttributesForSections = {};
	        var studentCredentials = this.ngPreventTransientAccessQuery.result.output;
	        this.waitlistSectionCommand(selectedSectionIds, sectionPins, regAttributesForSections, studentCredentials).then(function () { return _this.updateSeatAvailabilityCommand(selectedSectionIds); });
	    };
	    return SelectedSectionActionsFacade;
	}());
	exports.SelectedSectionActionsFacade = SelectedSectionActionsFacade;
	angular.module('capability-ng-scheduler').service('ngSelectedSectionActionsFacade', SelectedSectionActionsFacade);


/***/ }),
/* 1895 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	__webpack_require__(285);
	__webpack_require__(286);
	__webpack_require__(287);
	__webpack_require__(288);
	__webpack_require__(289);
	__webpack_require__(290);
	__webpack_require__(291);
	__webpack_require__(292);
	__webpack_require__(293);
	__webpack_require__(294);
	__webpack_require__(295);
	__webpack_require__(296);
	__webpack_require__(222);
	__webpack_require__(737);
	__webpack_require__(738);
	__webpack_require__(739);
	__webpack_require__(740);
	__webpack_require__(741);
	__webpack_require__(723);
	__webpack_require__(742);
	__webpack_require__(743);
	__webpack_require__(744);
	__webpack_require__(745);
	__webpack_require__(746);
	__webpack_require__(747);
	__webpack_require__(748);
	__webpack_require__(749);
	__webpack_require__(750);
	__webpack_require__(757);
	__webpack_require__(751);
	__webpack_require__(223);
	__webpack_require__(752);
	__webpack_require__(753);
	__webpack_require__(224);
	__webpack_require__(754);
	__webpack_require__(755);
	__webpack_require__(756);
	__webpack_require__(758);
	__webpack_require__(759);
	__webpack_require__(761);
	__webpack_require__(762);
	__webpack_require__(763);
	__webpack_require__(764);
	__webpack_require__(297);
	__webpack_require__(298);
	__webpack_require__(765);
	__webpack_require__(299);
	__webpack_require__(300);
	__webpack_require__(301);
	__webpack_require__(760);
	__webpack_require__(766);
	__webpack_require__(724);
	__webpack_require__(767);
	__webpack_require__(768);
	__webpack_require__(769);
	__webpack_require__(725);
	__webpack_require__(770);
	__webpack_require__(225);
	__webpack_require__(226);
	__webpack_require__(771);
	__webpack_require__(772);
	__webpack_require__(773);
	__webpack_require__(774);
	__webpack_require__(19);
	__webpack_require__(227);
	__webpack_require__(228);
	__webpack_require__(775);
	__webpack_require__(229);
	__webpack_require__(44);
	__webpack_require__(230);
	__webpack_require__(231);
	__webpack_require__(32);
	__webpack_require__(100);
	__webpack_require__(10);
	__webpack_require__(232);
	__webpack_require__(60);


/***/ }),
/* 1896 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var AllSectionsQuery = /** @class */ (function () {
	    function AllSectionsQuery(QueryMediator, ngSectionsDatasource) {
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        QueryMediator.registerQuery(this, ngSectionsDatasource);
	    }
	    Object.defineProperty(AllSectionsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    AllSectionsQuery.prototype.run = function () {
	        this._result = this.ngSectionsDatasource.metasource().derived();
	        return this;
	    };
	    return AllSectionsQuery;
	}());
	exports.AllSectionsQuery = AllSectionsQuery;
	angular.module('capability-ng-scheduler').service('ngAllSectionsQuery', AllSectionsQuery);


/***/ }),
/* 1897 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var utility_ts_orm_1 = __webpack_require__(3);
	var _4 = __webpack_require__(1);
	var SchedulerCustomTextQuery = /** @class */ (function () {
	    function SchedulerCustomTextQuery(ngSchedulerModel) {
	        this.ngSchedulerModel = ngSchedulerModel;
	        utility_ts_orm_1.Query.registerQuery(this, ngSchedulerModel);
	    }
	    Object.defineProperty(SchedulerCustomTextQuery.prototype, "result", {
	        get: function () {
	            this._result = _4.reduce(this.ngSchedulerModel.read().customtext, function (prev, customText) {
	                var _a;
	                return (tslib_1.__assign((_a = {}, _a[customText.nk] = customText.text, _a), prev));
	            }, {});
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    SchedulerCustomTextQuery.prototype.run = function () {
	        return this;
	    };
	    return SchedulerCustomTextQuery;
	}());
	exports.SchedulerCustomTextQuery = SchedulerCustomTextQuery;
	angular.module('capability-ng-scheduler').service('ngSchedulerCustomTextQuery', SchedulerCustomTextQuery);


/***/ }),
/* 1898 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var RegisteredSectionServant = /** @class */ (function () {
	    function RegisteredSectionServant(ngScheduledSectionStatusServant, ngScheduledSectionServant, ngScheduledSectionTileServant) {
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.ngScheduledSectionTileServant = ngScheduledSectionTileServant;
	    }
	    RegisteredSectionServant.prototype.canBeWithdrawn = function (section) {
	        var canSectionBeWithdrawn = this.ngScheduledSectionStatusServant.canWithdraw(section) &&
	            this.ngScheduledSectionServant.isSectionRegistered(section) &&
	            this.ngScheduledSectionTileServant.isWithdrawEnabled();
	        return canSectionBeWithdrawn;
	    };
	    RegisteredSectionServant.prototype.canBeDropped = function (section) {
	        var canSectionBeSelectedForDrop = this.canBeWithdrawn(section) ||
	            this.ngScheduledSectionStatusServant.isStatusWaitlisted(section) ||
	            this.ngScheduledSectionStatusServant.isRegisteredOrInprogress(section);
	        return canSectionBeSelectedForDrop;
	    };
	    return RegisteredSectionServant;
	}());
	exports.RegisteredSectionServant = RegisteredSectionServant;
	angular.module('capability-ng-scheduler').service('ngRegisteredSectionServant', RegisteredSectionServant);


/***/ }),
/* 1899 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SchedulerNotificationServant = /** @class */ (function () {
	    function SchedulerNotificationServant() {
	    }
	    SchedulerNotificationServant.prototype.schedulerNotification = function (notifyArgs) {
	        var _this = this;
	        // @TODO - This is a workaround to get the latest notification element so it can be closed
	        return window['HIP']
	            ? window['HIP'].fn.notify(notifyArgs).then(function () {
	                // @TODO - This is a workaround to get the notification element
	                var groupEl = document.querySelector('hi-notification-group');
	                var notificationEl = groupEl ? groupEl.children[0] : null;
	                _this.currentNotification = notificationEl;
	            })
	            : function () { };
	    };
	    SchedulerNotificationServant.prototype.isNotificationMessageEmpty = function (title) {
	        return _4.isEmpty(title);
	    };
	    SchedulerNotificationServant.prototype.closeCurrentNotification = function () {
	        if (this.currentNotification) {
	            this.currentNotification.close();
	        }
	    };
	    SchedulerNotificationServant.prototype.showInfoNotification = function (title, details) {
	        if (this.isNotificationMessageEmpty(title)) {
	            return;
	        }
	        return this.schedulerNotification({
	            status: 'info',
	            title: title,
	            details: details
	        });
	    };
	    SchedulerNotificationServant.prototype.showSuccessNotification = function (title, details) {
	        if (this.isNotificationMessageEmpty(title)) {
	            return;
	        }
	        return this.schedulerNotification({
	            status: 'success',
	            title: title,
	            details: details
	        });
	    };
	    SchedulerNotificationServant.prototype.showErrorNotification = function (title, details) {
	        if (this.isNotificationMessageEmpty(title)) {
	            return;
	        }
	        return this.schedulerNotification({
	            status: 'error',
	            title: title,
	            details: details
	        });
	    };
	    return SchedulerNotificationServant;
	}());
	exports.SchedulerNotificationServant = SchedulerNotificationServant;
	angular.module('capability-ng-scheduler').service('ngSchedulerNotificationServant', SchedulerNotificationServant);


/***/ }),
/* 1900 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular.module('capability-ng-scheduler').factory('getRegistrationCheckCommand', function ($http, defineCommand, log) {
	    return defineCommand('getRegistrationCheckCommand', function (deferred, termId) {
	        $http
	            .get("reg/precheck/term/" + termId + "/")
	            .then(function (resp) {
	            return deferred.resolve(resp.data);
	        })
	            .catch(function (e) {
	            log.issue('Unable to get pre registration check');
	            return deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1901 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .factory('showRegisterButtonAfterPrecheckPassCommand', function (defineCommandORM, ngRegistrationOneClickModel, ngSchedulerModel) {
	    return defineCommandORM('showRegisterButtonAfterPrecheckPassCommand', function (deferred) {
	        ngRegistrationOneClickModel.write({
	            showRegisterButton: _4.get(ngSchedulerModel.read(), 'precheck_pass', false)
	        });
	        return deferred.resolve();
	    });
	});


/***/ }),
/* 1902 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var transient_access_cred_constants_1 = __webpack_require__(26);
	angular
	    .module('capability-ng-scheduler')
	    .factory('toggleRegistrationFriendlyReminderPromptCommand', function (defineCommandORM, ngRegistrationSelectedSectionsModel, ngRegisterSectionsQuery, ngRegistrationSectionFacade, ngComponentCommunicatorService) {
	    return defineCommandORM('toggleRegistrationFriendlyReminderPromptCommand', function (deferred, showPrompt, regBind, closePromptBind) {
	        if (!showPrompt) {
	            ngRegistrationSelectedSectionsModel.write({
	                showRegistrationPrompt: false
	            });
	            ngComponentCommunicatorService.release(transient_access_cred_constants_1.TransientAccessCredEventNames.NEW_CRED_SAVED, regBind);
	            ngComponentCommunicatorService.release(transient_access_cred_constants_1.TransientAccessCredEventNames.CRED_FORM_ENTRY_CANCELLED, closePromptBind);
	            return deferred.resolve();
	        }
	        ngRegistrationSelectedSectionsModel.write({
	            unselectedSections: ngRegistrationSectionFacade.getUnselectedScheduledNonWaitlistedSections(),
	            coReqMissingSections: _4.uniqBy(ngRegisterSectionsQuery.result.coReqMissingSections, 'course'),
	            preReqMissingSections: _4.uniqBy(ngRegisterSectionsQuery.result.preReqMissingSections, 'course'),
	            showRegistrationPrompt: true
	        });
	        ngComponentCommunicatorService.subscribe(transient_access_cred_constants_1.TransientAccessCredEventNames.NEW_CRED_SAVED, regBind);
	        ngComponentCommunicatorService.subscribe(transient_access_cred_constants_1.TransientAccessCredEventNames.CRED_FORM_ENTRY_CANCELLED, closePromptBind);
	        return deferred.resolve();
	    });
	});


/***/ }),
/* 1903 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('toggleSectionPinsDialogCommand', function (defineCommandORM, ngRegistrationPinsPermissionModel) {
	    return defineCommandORM('toggleSectionPinsDialogCommand', function (deferred, showDialog) {
	        ngRegistrationPinsPermissionModel.write({ showSectionsPinsDialog: showDialog });
	        return deferred.resolve();
	    });
	});


/***/ }),
/* 1904 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .factory('updateRegistrationFlagCommand', function (defineCommandORM, ngRegistrationSelectedSectionsModel, ngRegisterSectionsQuery, ngRegistrationSelectedSectionsQuery) {
	    return defineCommandORM('updateRegistrationFlagCommand', function (deferred) {
	        ngRegistrationSelectedSectionsModel.write({
	            disableRegistration: ngRegistrationSelectedSectionsQuery.result.isRegistrationPending ||
	                _4.isEmpty(ngRegisterSectionsQuery.result.selectedSections)
	        });
	        return deferred.resolve();
	    });
	});


/***/ }),
/* 1905 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('updateRegistrationFriendlyReminderFlagsCommand', function (defineCommandORM, ngRegistrationSelectedSectionsModel, ngRegistrationSectionFacade) {
	    return defineCommandORM('updateRegistrationFriendlyReminderFlagsCommand', function (deferred) {
	        var unscheduledOptionalSectionTypes = ngRegistrationSectionFacade.getUnscheduledOptionalSectionTypes();
	        ngRegistrationSelectedSectionsModel.write({
	            isAnyScheduledSectionUnselected: ngRegistrationSectionFacade.isAnyScheduledUnselectedSectionsExist(),
	            hasAnyScheduledSectionMissingRequirements: ngRegistrationSectionFacade.hasAnyScheduledSectionMissingRequirementsExist(),
	            unscheduledOptionalSectionTypes: unscheduledOptionalSectionTypes,
	            hasAnyOptionalSectionNotScheduled: unscheduledOptionalSectionTypes.length > 0
	        });
	        return deferred.resolve();
	    });
	});


/***/ }),
/* 1906 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('updateRegistrationRequestPendingCommand', function (defineCommandORM, ngRegistrationSelectedSectionsModel, ngRequestStateModel) {
	    return defineCommandORM('updateRegistrationRequestPendingCommand', function (deferred, isRequestPending) {
	        ngRegistrationSelectedSectionsModel.write({ isRequestPending: isRequestPending });
	        ngRequestStateModel.write({ isRegistrationPending: isRequestPending });
	        return deferred.resolve();
	    });
	});


/***/ }),
/* 1907 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var EmptyCourseListMessage = /** @class */ (function () {
	    function EmptyCourseListMessage(ngSchedulerModel, $state, ngSectionSwapServant, ngTermCourseQuery, ngBackToPlannerHelper, ngSearchAndCourseFeatureFacade) {
	        this.ngSchedulerModel = ngSchedulerModel;
	        this.$state = $state;
	        this.ngSectionSwapServant = ngSectionSwapServant;
	        this.ngTermCourseQuery = ngTermCourseQuery;
	        this.ngBackToPlannerHelper = ngBackToPlannerHelper;
	        this.ngSearchAndCourseFeatureFacade = ngSearchAndCourseFeatureFacade;
	        this.emptyCourseListCustomTextMessage = '';
	    }
	    EmptyCourseListMessage.prototype.backToPlanner = function () {
	        if (this.ngBackToPlannerHelper.isPlannerDisabled() && this.ngSearchAndCourseFeatureFacade.isFeatureEnabled) {
	            return this.$state.go('my.schedule.searchandaddcourses');
	        }
	        return this.ngBackToPlannerHelper.navigateToPlanner();
	    };
	    EmptyCourseListMessage.prototype.$onInit = function () {
	        this.emptyCourseListCustomTextMessage = _4.get(this.ngSchedulerModel.read(), 'customtext.AP3_EMPTY_COURSE_LIST_MSG.text', '');
	        this.__reflectUpdates();
	    };
	    EmptyCourseListMessage.prototype.$onChanges = function () {
	        this.__reflectUpdates();
	    };
	    EmptyCourseListMessage.prototype.__reflectUpdates = function () {
	        this.displayText = this.getDisplayText();
	    };
	    EmptyCourseListMessage.prototype.getDisplayText = function () {
	        return { header: this.emptyCourseListCustomTextMessage, footer: '' };
	    };
	    return EmptyCourseListMessage;
	}());
	var EmptyCourseListMessageComponent = /** @class */ (function () {
	    function EmptyCourseListMessageComponent() {
	        this.bindings = {
	            waitlistCount: '<',
	            scheduledSectionsCount: '<'
	        };
	        this.controller = EmptyCourseListMessage;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/registration/components/empty_course_list_message/empty_course_list_message.html';
	    }
	    return EmptyCourseListMessageComponent;
	}());
	angular.module('capability-ng-scheduler').component('emptyCourseListMessage', new EmptyCourseListMessageComponent());


/***/ }),
/* 1908 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var RegistrationActions = /** @class */ (function () {
	    function RegistrationActions(ngRegisterSectionsQuery, ngComponentCommunicatorService, registrationRTRSvc, ngRegistrationOneClickQuery, ngPayTuitionQuery, ngPayTuitionFacade, ngRegistrationFacade, ngRegistrationSelectedSectionsQuery) {
	        this.ngRegisterSectionsQuery = ngRegisterSectionsQuery;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.registrationRTRSvc = registrationRTRSvc;
	        this.ngRegistrationOneClickQuery = ngRegistrationOneClickQuery;
	        this.ngPayTuitionQuery = ngPayTuitionQuery;
	        this.ngPayTuitionFacade = ngPayTuitionFacade;
	        this.ngRegistrationFacade = ngRegistrationFacade;
	        this.ngRegistrationSelectedSectionsQuery = ngRegistrationSelectedSectionsQuery;
	        this.showPayTuition = true;
	        this.attachTermPinRegister = false;
	        this.isRequestPending = false;
	        this.registrationPrecheckUpdatedBound = this.ngRegistrationFacade.registrationPrecheckUpdated;
	        this.saveTermPinAndContinueBound = this.ngRegistrationFacade.saveTermPinAndContinue;
	    }
	    RegistrationActions.prototype.$onInit = function () {
	        this.ngComponentCommunicatorService.subscribe('REGISRATION_PRE_CHECK_SUCCESS', this.registrationPrecheckUpdatedBound);
	        this.ngComponentCommunicatorService.subscribe('REGISRATION_PRE_CHECK_FAIL', this.registrationPrecheckUpdatedBound);
	        this.subscribeToTermPINAction();
	    };
	    RegistrationActions.prototype.subscribeToTermPINAction = function () {
	        if (_4.toString(this.attachTermPinRegister).toLowerCase() === 'true') {
	            this.ngComponentCommunicatorService.subscribe('SAVE_TERM_PIN_AND_CONTINUE', this.saveTermPinAndContinueBound);
	        }
	    };
	    RegistrationActions.prototype.$onChanges = function () {
	        this.subscribeToTermPINAction();
	    };
	    RegistrationActions.prototype.$onDestroy = function () {
	        this.ngComponentCommunicatorService.release('REGISRATION_PRE_CHECK_SUCCESS', this.registrationPrecheckUpdatedBound);
	        this.ngComponentCommunicatorService.release('REGISRATION_PRE_CHECK_FAIL', this.registrationPrecheckUpdatedBound);
	        if (_4.toString(this.attachTermPinRegister).toLowerCase() === 'true') {
	            this.ngComponentCommunicatorService.release('SAVE_TERM_PIN_AND_CONTINUE', this.saveTermPinAndContinueBound);
	        }
	    };
	    RegistrationActions.prototype.shouldDisableRegisterAtButton = function () {
	        var registrationUrl = this.registrationRTRSvc.init(this.ngRegisterSectionsQuery.result.scheduledSections);
	        var hasScheduledSelectedSections = this.ngRegisterSectionsQuery.result.selectedSections.length > 0;
	        return (!hasScheduledSelectedSections ||
	            _4.isEmpty(registrationUrl) ||
	            !this.registrationRTRSvc.hasCrns() ||
	            this.isRequestPending);
	    };
	    RegistrationActions.prototype.isRegistrationPortalURLEmpty = function () {
	        var registrationPortalURL = this.registrationRTRSvc.init(this.ngRegisterSectionsQuery.result.scheduledSections);
	        return _4.isEmpty(registrationPortalURL);
	    };
	    RegistrationActions.prototype.selectedCourseIdsWithSessions = function () {
	        var courseIdsWithSessions = {};
	        var coursesScheduledById = _4.groupBy(this.ngRegisterSectionsQuery.result.selectedSections, '_course.id');
	        _4.each(coursesScheduledById, function (sections, courseId) {
	            return (courseIdsWithSessions[courseId] = _4.map(sections, function (section) { return _4.get(section, '_section_type.session'); }));
	        });
	        return courseIdsWithSessions;
	    };
	    RegistrationActions.prototype.isRegistrationPending = function () {
	        return this.isRequestPending;
	    };
	    return RegistrationActions;
	}());
	angular.module('capability-ng-scheduler').component('registrationActions', {
	    templateUrl: 'capability-ng-scheduler/src/views/registration/components/registration_actions/registration_actions_component.html',
	    bindings: {
	        showPayTuition: '<',
	        attachTermPinRegister: '<'
	    },
	    controller: RegistrationActions
	});


/***/ }),
/* 1909 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var RegistrationControls = /** @class */ (function () {
	    function RegistrationControls(ngComponentCommunicatorService, ngRegistrationPinsPermissionQuery, ngRegistrationPinsPermissionFacade, ngPayTuitionQuery) {
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngRegistrationPinsPermissionQuery = ngRegistrationPinsPermissionQuery;
	        this.ngRegistrationPinsPermissionFacade = ngRegistrationPinsPermissionFacade;
	        this.ngPayTuitionQuery = ngPayTuitionQuery;
	        this.showControls = false;
	        this.preRegistrationCheckMessage = '';
	        this.showPayTuition = false;
	        this.hideRegistrationControlsOnMobile = false;
	    }
	    RegistrationControls.prototype.$onInit = function () {
	        this.showControls = true;
	        this.showPayTuition = this.ngPayTuitionQuery.result.showPayTuition;
	        this.registrationPreCheckFailBound = this.registrationPreCheckFail.bind(this);
	        this.registrationPreCheckSuccessBound = this.registrationPreCheckSuccess.bind(this);
	        this.ngComponentCommunicatorService.subscribe('REGISRATION_PRE_CHECK_FAIL', this.registrationPreCheckFailBound);
	        this.ngComponentCommunicatorService.subscribe('REGISRATION_PRE_CHECK_SUCCESS', this.registrationPreCheckSuccessBound);
	    };
	    RegistrationControls.prototype.registrationPreCheckFail = function () {
	        this.toggleControls(true);
	    };
	    RegistrationControls.prototype.registrationPreCheckSuccess = function () {
	        this.toggleControls(false);
	    };
	    RegistrationControls.prototype.toggleControls = function (flag) {
	        this.showControls = !flag;
	    };
	    return RegistrationControls;
	}());
	var RegistrationControlsComponent = /** @class */ (function () {
	    function RegistrationControlsComponent() {
	        this.bindings = {
	            termId: '<'
	        };
	        this.controller = RegistrationControls;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/registration/components/registration_controls/registration_controls.html';
	    }
	    return RegistrationControlsComponent;
	}());
	angular.module('capability-ng-scheduler').component('registrationControls', new RegistrationControlsComponent());


/***/ }),
/* 1910 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var RegistrationFriendlyReminderDialog = /** @class */ (function () {
	    function RegistrationFriendlyReminderDialog(ngRegistrationSelectedSectionsQuery, ngRegistrationFacade) {
	        this.ngRegistrationSelectedSectionsQuery = ngRegistrationSelectedSectionsQuery;
	        this.ngRegistrationFacade = ngRegistrationFacade;
	    }
	    RegistrationFriendlyReminderDialog.prototype.closeFriendlyReminderPrompt = function ($event) {
	        if (!$event.detail.value) {
	            this.ngRegistrationFacade.closeFriendlyReminderPrompt();
	            return;
	        }
	        this.ngRegistrationFacade.openFriendlyReminderPrompt();
	    };
	    return RegistrationFriendlyReminderDialog;
	}());
	angular.module('capability-ng-scheduler').component('registrationFriendlyReminderDialog', {
	    templateUrl: 'capability-ng-scheduler/src/views/registration/components/registration_friendly_reminder_dialog/registration_friendly_reminder_dialog.html',
	    controller: RegistrationFriendlyReminderDialog
	});


/***/ }),
/* 1911 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var RegistrationHeader = /** @class */ (function () {
	    function RegistrationHeader($scope, $state, $stateParams, $window, appConfigModel, ngTermProgramInfoModel, accountModel, ngTermSectionTypesDatasource, ngTermCoursesDatasource, ngCourseDetailsFacade, ngScheduledSectionsQuery, ngSectionInfoServant, ngSearchAndCourseFeatureFacade, ngSectionSwapServant) {
	        this.$scope = $scope;
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	        this.$window = $window;
	        this.appConfigModel = appConfigModel;
	        this.ngTermProgramInfoModel = ngTermProgramInfoModel;
	        this.accountModel = accountModel;
	        this.ngTermSectionTypesDatasource = ngTermSectionTypesDatasource;
	        this.ngTermCoursesDatasource = ngTermCoursesDatasource;
	        this.ngCourseDetailsFacade = ngCourseDetailsFacade;
	        this.ngScheduledSectionsQuery = ngScheduledSectionsQuery;
	        this.ngSectionInfoServant = ngSectionInfoServant;
	        this.ngSearchAndCourseFeatureFacade = ngSearchAndCourseFeatureFacade;
	        this.ngSectionSwapServant = ngSectionSwapServant;
	        this.models = {
	            account: {},
	            selectedCourse: {},
	            sectionTypeName: ''
	        };
	        this.isPreferencesModeActive = false;
	        this.institutionName = '';
	        this.courseNk = '';
	        this.showBreadCrumbs = true;
	        this.termName = '';
	        this.termId = 0;
	        this.openDetailDialog = false;
	        this.isInSwapMode = false;
	        this.showRegistrationControls = false;
	        this.hideRegistrationControlsOnMobile = false;
	    }
	    RegistrationHeader.prototype.$onChanges = function () {
	        this.init();
	    };
	    RegistrationHeader.prototype.$onInit = function () {
	        this.init();
	    };
	    RegistrationHeader.prototype.init = function () {
	        var _this = this;
	        this.termAndProgramInfo = this.ngTermProgramInfoModel.read();
	        this.termName = _4.get(this.termAndProgramInfo, 'term.name', '');
	        this.isPreferencesModeActive = false;
	        this.institutionName = this.appConfigModel.model.member_configs['core-inst_name'];
	        this.courseId = this.$stateParams.courseId;
	        this.courseNk = this.$stateParams.courseNk;
	        this.termId = this.$stateParams.termId;
	        this.models = {
	            account: this.accountModel,
	            selectedCourse: {},
	            sectionTypeName: ''
	        };
	        this.$scope.$watch(function () { return _this.$state.params.courseId; }, function (nv, ov) {
	            _this.updateSelectedCourse();
	        });
	        this.isInSwapMode = this.ngSectionSwapServant.isInSwapMode();
	        this.showRegistrationControls = !this.isInSwapMode;
	    };
	    RegistrationHeader.prototype.openDetail = function () {
	        this.ngCourseDetailsFacade.openCourseDetails(this.courseNk);
	    };
	    RegistrationHeader.prototype.getScheduledCredits = function () {
	        return _4.get(this.ngScheduledSectionsQuery, 'result.creditsScheduled', 0);
	    };
	    RegistrationHeader.prototype.goBackToTermCourses = function () {
	        this.$state.go('my.schedule.registration', {}, { reload: 'my.schedule.registration' });
	    };
	    RegistrationHeader.prototype.updateSelectedCourse = function () {
	        this.courseId = _4.get(this.$state, 'params.courseId');
	        this.models.selectedCourse = _4.isUndefined(this.$state.params.courseId)
	            ? {}
	            : this.ngTermCoursesDatasource.get(parseInt(this.$state.params.courseId, 10));
	        this.showBreadCrumbs = !_4.isEmpty(this.models.selectedCourse);
	        var sectionTypeId = parseInt(this.$state.params.sectionTypeId, 10);
	        var sectionType = this.ngTermSectionTypesDatasource.get(sectionTypeId);
	        this.models.sectionTypeName = sectionType ? sectionType.name : '';
	    };
	    RegistrationHeader.prototype.print = function () {
	        this.$window.print();
	    };
	    return RegistrationHeader;
	}());
	var RegistrationHeaderComponent = /** @class */ (function () {
	    function RegistrationHeaderComponent() {
	        this.controller = RegistrationHeader;
	        this.bindings = {
	            scheduledSections: '<'
	        };
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/registration/components/registration_header/registration_header.html';
	    }
	    return RegistrationHeaderComponent;
	}());
	angular.module('capability-ng-scheduler').component('registrationHeader', new RegistrationHeaderComponent());


/***/ }),
/* 1912 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var MultiSectionPinCheckboxInput = /** @class */ (function () {
	    function MultiSectionPinCheckboxInput(ngSectionInfoServant, ngSchedulerCustomTextQuery, ngRegistrationSectionPinsFacade) {
	        this.ngSectionInfoServant = ngSectionInfoServant;
	        this.ngSchedulerCustomTextQuery = ngSchedulerCustomTextQuery;
	        this.ngRegistrationSectionPinsFacade = ngRegistrationSectionPinsFacade;
	    }
	    MultiSectionPinCheckboxInput.prototype.$onInit = function () {
	        /**
	         * multiSection shares the same PIN, so we can use the first section for Section Pins logic
	         */
	        this.section = this.multiSection[0];
	        this.multiSectionCourse = this.multiSection[0]._course;
	    };
	    return MultiSectionPinCheckboxInput;
	}());
	angular.module('capability-ng-scheduler').component('multiSectionPinCheckboxInput', {
	    bindings: {
	        multiSection: '<',
	        form: '@'
	    },
	    templateUrl: 'capability-ng-scheduler/src/views/registration/components/registration_pins/multi_section_pin_checkbox_input/multi_section_pin_checkbox_input.html',
	    controller: MultiSectionPinCheckboxInput
	});


/***/ }),
/* 1913 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PinSectionCheckbox = /** @class */ (function () {
	    function PinSectionCheckbox(ngSectionInfoServant, ngSchedulerCustomTextQuery, ngRegistrationSectionPinsFacade) {
	        this.ngSectionInfoServant = ngSectionInfoServant;
	        this.ngSchedulerCustomTextQuery = ngSchedulerCustomTextQuery;
	        this.ngRegistrationSectionPinsFacade = ngRegistrationSectionPinsFacade;
	    }
	    return PinSectionCheckbox;
	}());
	angular.module('capability-ng-scheduler').component('pinSectionCheckboxInput', {
	    bindings: {
	        section: '<',
	        form: '@'
	    },
	    templateUrl: 'capability-ng-scheduler/src/views/registration/components/registration_pins/pin_section_checkbox_input/pin_section_checkbox_input.html',
	    controller: PinSectionCheckbox
	});


/***/ }),
/* 1914 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PinScheduledSections = /** @class */ (function () {
	    function PinScheduledSections(ngRegisterSectionsDatasource) {
	        this.ngRegisterSectionsDatasource = ngRegisterSectionsDatasource;
	        this.isActionAllowed = false;
	    }
	    PinScheduledSections.prototype.$onChanges = function () {
	        this.scheduledMultiSectionSessions = this.groupMultiSectionsByCourseId(this.scheduledMultiSections);
	    };
	    PinScheduledSections.prototype.showCheckbox = function (sectionList, sectionIndex) {
	        if (!sectionIndex) {
	            return true;
	        }
	        if (sectionList[sectionIndex]._course.id === sectionList[sectionIndex - 1]._course.id) {
	            return false;
	        }
	        return true;
	    };
	    PinScheduledSections.prototype.groupMultiSectionsByCourseId = function (scheduledMultiSections) {
	        var restructuredData = scheduledMultiSections.reduce(function (multiSectionsHash, curr) {
	            var courseId = curr._course.id;
	            multiSectionsHash[courseId] = multiSectionsHash[courseId] || [];
	            multiSectionsHash[courseId].push(curr);
	            return multiSectionsHash;
	        }, {});
	        return restructuredData;
	    };
	    return PinScheduledSections;
	}());
	var PinScheduledSectionsComponent = /** @class */ (function () {
	    function PinScheduledSectionsComponent() {
	        this.bindings = {
	            scheduledSections: '<',
	            form: '@',
	            scheduledMultiSections: '<'
	        };
	        this.controller = PinScheduledSections;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/registration/components/registration_pins/pins_scheduled_sections/pins_scheduled_sections.html';
	    }
	    return PinScheduledSectionsComponent;
	}());
	angular.module('capability-ng-scheduler').component('pinScheduledSections', new PinScheduledSectionsComponent());


/***/ }),
/* 1915 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var RegistrationPinsQuery = /** @class */ (function () {
	    function RegistrationPinsQuery(QueryMediator, ngRegistrationPinsModel) {
	        this.ngRegistrationPinsModel = ngRegistrationPinsModel;
	        QueryMediator.registerQuery(this, this.ngRegistrationPinsModel);
	    }
	    RegistrationPinsQuery.prototype.shouldDropActionAllowed = function () {
	        var allSections = this.ngRegistrationPinsModel.read()._registration_pins_sections;
	        return _4.some(_4.filter(allSections, { status: 'REGISTERED' }), 'is_selected');
	    };
	    RegistrationPinsQuery.prototype.shouldRegisterActionAllowed = function () {
	        var allSections = this.ngRegistrationPinsModel.read()._registration_pins_sections;
	        return _4.some(_4.filter(allSections, { status: 'SECTION_PICKED' }), 'is_selected');
	    };
	    RegistrationPinsQuery.prototype.run = function () {
	        var disableDropAction = !this.shouldDropActionAllowed();
	        var disableRegisterAction = !this.shouldRegisterActionAllowed();
	        this._result = {
	            disableDropAction: disableDropAction,
	            disableRegisterAction: disableRegisterAction
	        };
	        return this;
	    };
	    Object.defineProperty(RegistrationPinsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return RegistrationPinsQuery;
	}());
	exports.RegistrationPinsQuery = RegistrationPinsQuery;
	angular.module('capability-ng-scheduler').service('ngRegistrationPinsQuery', RegistrationPinsQuery);


/***/ }),
/* 1916 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var transient_access_cred_constants_1 = __webpack_require__(26);
	var _4 = __webpack_require__(1);
	var RegistrationPins = /** @class */ (function () {
	    function RegistrationPins(ngScheduledSectionsQuery, ngRegisterSectionsQuery, ngRegisterSectionsDatasource, ngRegistrationPinsModel, registerScheduledSectionsCommand, $stateParams, $element, ngPreventTransientAccessQuery, dropCourseSectionsCommand, ngRegistrationPinsQuery, ngSchedulerCustomTextQuery, ngComponentCommunicatorService) {
	        this.ngScheduledSectionsQuery = ngScheduledSectionsQuery;
	        this.ngRegisterSectionsQuery = ngRegisterSectionsQuery;
	        this.ngRegisterSectionsDatasource = ngRegisterSectionsDatasource;
	        this.ngRegistrationPinsModel = ngRegistrationPinsModel;
	        this.registerScheduledSectionsCommand = registerScheduledSectionsCommand;
	        this.$stateParams = $stateParams;
	        this.$element = $element;
	        this.ngPreventTransientAccessQuery = ngPreventTransientAccessQuery;
	        this.dropCourseSectionsCommand = dropCourseSectionsCommand;
	        this.ngRegistrationPinsQuery = ngRegistrationPinsQuery;
	        this.ngSchedulerCustomTextQuery = ngSchedulerCustomTextQuery;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.tabName = 'register';
	        this.hasError = false;
	        this.auto_waitlist_sections = [];
	        this.errorMessage = '';
	        this.registerStatusFlags = ['REGISTERED', 'IN_PROGRESS'];
	        this.hasRegisteredSections = false;
	        this.hasScheduledSections = false;
	        this.tabGroupIndex = ['register', 'drop'];
	        this.dropSectionsBound = this.dropSections.bind(this);
	        this.registerSectionsBound = this.registerSections.bind(this);
	        this.closeDialogBound = this.closeDialog.bind(this);
	    }
	    RegistrationPins.prototype.$onInit = function () {
	        var _this = this;
	        this.hasRegisteredSections =
	            this.ngScheduledSectionsQuery.result.registeredSections.length > 0 ||
	                this.ngScheduledSectionsQuery.result.registeredMultiSections.length > 0;
	        this.hasScheduledSections =
	            this.ngScheduledSectionsQuery.result.scheduledSections.length > 0 ||
	                this.ngScheduledSectionsQuery.result.scheduledMultiSections.length > 0;
	        var _a = this.ngScheduledSectionsQuery.result, scheduledSections = _a.scheduledSections, scheduledMultiSections = _a.scheduledMultiSections, registeredSections = _a.registeredSections, registeredMultiSections = _a.registeredMultiSections;
	        var allSections = _4.compact(_4.map(tslib_1.__spreadArrays(scheduledSections, scheduledMultiSections, registeredSections, registeredMultiSections), function (section) { return ({
	            sectionId: section.id,
	            status: _this._sectionStatus(section.status),
	            courseId: section.course,
	            is_selected: false
	        }); }));
	        this.ngRegistrationPinsModel.write({ _registration_pins_sections: allSections });
	        this.ngRegistrationPinsModel.clear();
	        this.ngRegistrationPinsQuery.run();
	        this.ngComponentCommunicatorService.subscribe(transient_access_cred_constants_1.TransientAccessCredEventNames.CRED_FORM_ENTRY_CANCELLED, this.closeDialogBound);
	    };
	    RegistrationPins.prototype._sectionStatus = function (status) {
	        return _4.includes(this.registerStatusFlags, status) ? 'REGISTERED' : status;
	    };
	    RegistrationPins.prototype.showTab = function (event) {
	        this.tabName = this.tabGroupIndex[_4.get(event, 'target.selectedIndex', 0)];
	        this.hasError = false;
	        this.errorMessage = '';
	    };
	    RegistrationPins.prototype.isSelected = function (selectedTabName) {
	        return this.tabName === selectedTabName;
	    };
	    RegistrationPins.prototype.closeDialog = function () {
	        this.open = false;
	        this.ngRegistrationPinsModel.clear();
	        this.ngComponentCommunicatorService.release(transient_access_cred_constants_1.TransientAccessCredEventNames.NEW_CRED_SAVED, this.registerSectionsBound);
	        this.ngComponentCommunicatorService.release(transient_access_cred_constants_1.TransientAccessCredEventNames.CRED_FORM_ENTRY_CANCELLED, this.closeDialogBound);
	    };
	    RegistrationPins.prototype.onDialogCloseEnded = function (event) {
	        this.closeDialog();
	    };
	    RegistrationPins.prototype.isFormInvalid = function () {
	        var formElement = this.$element[0].querySelector('hi-form');
	        formElement.output = undefined;
	        formElement.submit();
	        return _4.isEmpty(formElement.output);
	    };
	    RegistrationPins.prototype.validRegistration = function () {
	        var isFormInvalid = this.isFormInvalid();
	        if (this.ngRegistrationPinsQuery.result.disableRegisterAction || isFormInvalid) {
	            this.hasError = true;
	            this.errorMessage = 'Select a valid section to register or drop.';
	            return false;
	        }
	        this.clearErrorMessage();
	        return true;
	    };
	    RegistrationPins.prototype.registerSections = function () {
	        this.ngComponentCommunicatorService.release(transient_access_cred_constants_1.TransientAccessCredEventNames.NEW_CRED_SAVED, this.registerSectionsBound);
	        if (!this.validRegistration()) {
	            return;
	        }
	        if (this.ngPreventTransientAccessQuery.result.redirectToAuthWorkflow) {
	            this.ngComponentCommunicatorService.subscribe(transient_access_cred_constants_1.TransientAccessCredEventNames.NEW_CRED_SAVED, this.registerSectionsBound);
	            return this.ngComponentCommunicatorService.publish(transient_access_cred_constants_1.TransientAccessCredEventNames.TOGGLE_CRED_STEPS);
	        }
	        var _a = this.ngRegistrationPinsModel.getScheduledSectionsInfo(), sections = _a.sections, section_pins = _a.section_pins;
	        this.registerScheduledSectionsCommand(this.$stateParams.termId, sections, this.auto_waitlist_sections, section_pins, {}, this.ngPreventTransientAccessQuery.result.output);
	        this.closeDialog();
	    };
	    RegistrationPins.prototype.clearErrorMessage = function () {
	        this.hasError = false;
	        this.errorMessage = '';
	    };
	    RegistrationPins.prototype.validDrop = function () {
	        var isFormInvalid = this.isFormInvalid();
	        if (this.ngRegistrationPinsQuery.result.disableDropAction || isFormInvalid) {
	            this.hasError = true;
	            this.errorMessage = 'Select a valid section to register or drop.';
	            return false;
	        }
	        this.clearErrorMessage();
	        return true;
	    };
	    RegistrationPins.prototype.dropSections = function () {
	        if (!this.validDrop()) {
	            return;
	        }
	        var sessionId = -1;
	        if (this.ngPreventTransientAccessQuery.result.redirectToAuthWorkflow) {
	            this.ngComponentCommunicatorService.subscribe(transient_access_cred_constants_1.TransientAccessCredEventNames.NEW_CRED_SAVED, this.dropSectionsBound);
	            return this.ngComponentCommunicatorService.publish(transient_access_cred_constants_1.TransientAccessCredEventNames.TOGGLE_CRED_STEPS);
	        }
	        this.errorMessage = '';
	        var _a = this.ngRegistrationPinsModel.getRegisterSectionsInfo(), section_pins = _a.section_pins, courseIds = _a.courseIds, sections = _a.sections;
	        this.dropCourseSectionsCommand(this.$stateParams.termId, courseIds, false, sessionId, section_pins, sections, this.ngPreventTransientAccessQuery.result.output);
	        this.closeDialog();
	    };
	    RegistrationPins.prototype.alertClosed = function () {
	        this.clearErrorMessage();
	    };
	    RegistrationPins.prototype.getShouldShowControls = function () {
	        var sectionPinStepGroupEl = this.$element[0].querySelector('hi-step-group');
	        if (!sectionPinStepGroupEl) {
	            return true;
	        }
	        var stepValue = sectionPinStepGroupEl.getAttribute('value');
	        var isStepValueChooseAction = stepValue === 'choose-action';
	        return isStepValueChooseAction;
	    };
	    return RegistrationPins;
	}());
	var RegistrationPinsComponent = /** @class */ (function () {
	    function RegistrationPinsComponent() {
	        this.bindings = {
	            open: '='
	        };
	        this.controller = RegistrationPins;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/registration/components/registration_pins/registration_pins_component.html';
	    }
	    return RegistrationPinsComponent;
	}());
	angular.module('capability-ng-scheduler').component('registrationPins', new RegistrationPinsComponent());


/***/ }),
/* 1917 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('hideRegistrationPreCheckAlertCommand', function (defineCommandORM, ngRegistrationPreCheckAlertModel) {
	    return defineCommandORM('hideRegistrationPreCheckAlertCommand', function (deferred) {
	        ngRegistrationPreCheckAlertModel.clear();
	        return deferred.resolve();
	    });
	});


/***/ }),
/* 1918 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	angular
	    .module('capability-ng-scheduler')
	    .factory('setPreRegCheckMessageAlertCommand', function (defineCommandORM, ngRegistrationPreCheckAlertModel) {
	    return defineCommandORM('setPreRegCheckMessageAlertCommand', function (deferred, preRegistrationCheckMessage) {
	        if (preRegistrationCheckMessage === void 0) { preRegistrationCheckMessage = ''; }
	        ngRegistrationPreCheckAlertModel.write(tslib_1.__assign(tslib_1.__assign({}, ngRegistrationPreCheckAlertModel.read()), { preRegistrationCheckMessage: preRegistrationCheckMessage }));
	        return deferred.resolve();
	    });
	});


/***/ }),
/* 1919 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	angular
	    .module('capability-ng-scheduler')
	    .factory('showRegistrationPreCheckAlertCommand', function (defineCommandORM, ngRegistrationPreCheckAlertModel) {
	    return defineCommandORM('showRegistrationPreCheckAlertCommand', function (deferred) {
	        ngRegistrationPreCheckAlertModel.write(tslib_1.__assign(tslib_1.__assign({}, ngRegistrationPreCheckAlertModel.read()), { showAlert: true }));
	        return deferred.resolve();
	    });
	});


/***/ }),
/* 1920 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	angular
	    .module('capability-ng-scheduler')
	    .factory('togglePendingRegistrationPreCheckAlertCommand', function (defineCommandORM, ngRegistrationPreCheckAlertModel) {
	    return defineCommandORM('togglePendingRegistrationPreCheckAlertCommand', function (deferred, pending) {
	        if (pending === void 0) { pending = false; }
	        ngRegistrationPreCheckAlertModel.write(tslib_1.__assign(tslib_1.__assign({}, ngRegistrationPreCheckAlertModel.read()), { showPending: pending }));
	        return deferred.resolve();
	    });
	});


/***/ }),
/* 1921 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	angular
	    .module('capability-ng-scheduler')
	    .factory('toggleRefreshRegistrationPreCheckAlertCommand', function (defineCommandORM, ngRegistrationPreCheckAlertModel) {
	    return defineCommandORM('toggleRefreshRegistrationPreCheckAlertCommand', function (deferred, refresh) {
	        if (refresh === void 0) { refresh = false; }
	        ngRegistrationPreCheckAlertModel.write(tslib_1.__assign(tslib_1.__assign({}, ngRegistrationPreCheckAlertModel.read()), { showRefresh: refresh }));
	        return deferred.resolve();
	    });
	});


/***/ }),
/* 1922 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngRegistrationPreCheckAlertModel', function () {
	    return new utility_ts_orm_1.Model({
	        showAlert: false,
	        showPending: false,
	        showRefresh: false,
	        preRegistrationCheckMessage: ''
	    });
	});


/***/ }),
/* 1923 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var RegistrationPreCheckAlertQuery = /** @class */ (function () {
	    function RegistrationPreCheckAlertQuery(ngRegistrationPreCheckAlertModel) {
	        this.ngRegistrationPreCheckAlertModel = ngRegistrationPreCheckAlertModel;
	        utility_ts_orm_1.Query.registerQuery(this, ngRegistrationPreCheckAlertModel);
	    }
	    RegistrationPreCheckAlertQuery.prototype.run = function () {
	        this._result = this.ngRegistrationPreCheckAlertModel.read();
	        return this;
	    };
	    Object.defineProperty(RegistrationPreCheckAlertQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return RegistrationPreCheckAlertQuery;
	}());
	exports.RegistrationPreCheckAlertQuery = RegistrationPreCheckAlertQuery;
	angular.module('capability-ng-scheduler').service('ngRegistrationPreCheckAlertQuery', RegistrationPreCheckAlertQuery);


/***/ }),
/* 1924 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var Autolinker = __webpack_require__(281);
	var RegistrationPreCheck = /** @class */ (function () {
	    function RegistrationPreCheck(ngTermScheduleFlags, getRegistrationCheckCommand, ngSchedulerModel, pusherService, $timeout, ngRegistrationAlertsServant, showRegistrationPreCheckAlertCommand, hideRegistrationPreCheckAlertCommand, togglePendingRegistrationPreCheckAlertCommand, toggleRefreshRegistrationPreCheckAlertCommand, setPreRegCheckMessageAlertCommand, ngRegistrationPreCheckAlertQuery, ngComponentCommunicatorService) {
	        this.ngTermScheduleFlags = ngTermScheduleFlags;
	        this.getRegistrationCheckCommand = getRegistrationCheckCommand;
	        this.ngSchedulerModel = ngSchedulerModel;
	        this.pusherService = pusherService;
	        this.$timeout = $timeout;
	        this.ngRegistrationAlertsServant = ngRegistrationAlertsServant;
	        this.showRegistrationPreCheckAlertCommand = showRegistrationPreCheckAlertCommand;
	        this.hideRegistrationPreCheckAlertCommand = hideRegistrationPreCheckAlertCommand;
	        this.togglePendingRegistrationPreCheckAlertCommand = togglePendingRegistrationPreCheckAlertCommand;
	        this.toggleRefreshRegistrationPreCheckAlertCommand = toggleRefreshRegistrationPreCheckAlertCommand;
	        this.setPreRegCheckMessageAlertCommand = setPreRegCheckMessageAlertCommand;
	        this.ngRegistrationPreCheckAlertQuery = ngRegistrationPreCheckAlertQuery;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.showPending = false;
	        this.showRefresh = false;
	        this.preRegistrationCheckMessage = '';
	        this.isOneClickRegistrationEnabled = false;
	    }
	    RegistrationPreCheck.prototype.$onInit = function () {
	        var _this = this;
	        this.isOneClickRegistrationEnabled = this.ngTermScheduleFlags.isOneClickRegistrationEnabled();
	        if (this.isOneClickRegistrationEnabled) {
	            this.hideRegistrationPreCheckAlertCommand();
	            this.togglePendingRegistrationPreCheckAlertCommand(true);
	            this.pusherService.waitForSubScription(this.ngSchedulerModel.read().channel_name, function () {
	                _this.hideRegistrationPreCheckAlertCommand();
	                _this.preRegistrationCheck();
	            });
	        }
	        else {
	            this.toggleRefreshPending(false);
	        }
	    };
	    RegistrationPreCheck.prototype.toggleRefreshPending = function (flag) {
	        this.toggleRefreshButton(flag);
	        this.togglePendingRegistrationPreCheckAlertCommand(flag);
	    };
	    RegistrationPreCheck.prototype.stopRefreshPending = function () {
	        this.togglePendingRegistrationPreCheckAlertCommand(false);
	    };
	    RegistrationPreCheck.prototype.toggleRefreshButton = function (flag) {
	        this.toggleRefreshRegistrationPreCheckAlertCommand(flag);
	    };
	    RegistrationPreCheck.prototype.showRegistrationMessage = function (pusherResponse) {
	        var _this = this;
	        this.$timeout(function () {
	            _this.stopRefreshPending();
	            var preRegistrationCheckMessage = !pusherResponse.is_approved
	                ? Autolinker.link(pusherResponse.message, {
	                    newWindow: true,
	                    stripPrefix: true,
	                    truncate: 30,
	                    className: 'text-link'
	                })
	                : "";
	            _this.setPreRegCheckMessageAlertCommand(preRegistrationCheckMessage);
	            _this.toggleRefreshButton(!pusherResponse.is_approved);
	            !pusherResponse.is_approved
	                ? _this.showRegistrationPreCheckAlertCommand()
	                : _this.hideRegistrationPreCheckAlertCommand();
	            if (pusherResponse.is_approved) {
	                _this.emitPreCheckSuccess();
	            }
	            else {
	                _this.emitPreCheckFail();
	            }
	        });
	    };
	    RegistrationPreCheck.prototype.emitPreCheckFail = function () {
	        this.ngSchedulerModel.write({ precheck_pass: false });
	        this.ngComponentCommunicatorService.publish('REGISRATION_PRE_CHECK_FAIL');
	    };
	    RegistrationPreCheck.prototype.emitPreCheckSuccess = function () {
	        this.ngSchedulerModel.write({ precheck_pass: true });
	        this.ngComponentCommunicatorService.publish('REGISRATION_PRE_CHECK_SUCCESS');
	    };
	    RegistrationPreCheck.prototype.preRegistrationCheck = function () {
	        var _this = this;
	        var refreshTimer;
	        var registrationPreCheckCompleted = false;
	        this.toggleRefreshPending(true);
	        this.pusherService.bindToPusherEvent(this.ngSchedulerModel.read().channel_name, 'registration_pre_check', function (pusherResponse) {
	            _this.showRegistrationMessage(pusherResponse);
	            registrationPreCheckCompleted = true;
	            _this.toggleRefreshPending(false);
	            if (refreshTimer) {
	                _this.$timeout.cancel(refreshTimer);
	            }
	        });
	        this.getRegistrationCheckCommand(this.termId)
	            .then(function (rsp) {
	            _this.toggleRefreshPending(!rsp.is_approved);
	            if (rsp.is_approved) {
	                _this.emitPreCheckSuccess();
	            }
	            if (!rsp.is_approved && !registrationPreCheckCompleted) {
	                var REFRESH_TIMEOUT = 15000;
	                refreshTimer = _this.$timeout(function () {
	                    _this.stopRefreshPending();
	                    _this.toggleRefreshButton(true);
	                    _this.ngRegistrationAlertsServant.createGenericNotification('Unable to verify your status for registration, please refresh to try again.', 'warn');
	                }, REFRESH_TIMEOUT);
	            }
	        })
	            .catch(function (e) {
	            _this.ngRegistrationAlertsServant.createGenericNotification('Unable to verify your status for registration, please try again later.', 'error');
	            _this.stopRefreshPending();
	        });
	    };
	    return RegistrationPreCheck;
	}());
	var RegistrationPreCheckComponent = /** @class */ (function () {
	    function RegistrationPreCheckComponent() {
	        this.bindings = {
	            termId: '<'
	        };
	        this.controller = RegistrationPreCheck;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/registration/components/registration_pre_check/registration_pre_check.html';
	    }
	    return RegistrationPreCheckComponent;
	}());
	angular.module('capability-ng-scheduler').component('registrationPreCheck', new RegistrationPreCheckComponent());


/***/ }),
/* 1925 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var RegistrationTermPin = /** @class */ (function () {
	    function RegistrationTermPin($stateParams, ngComponentCommunicatorService, saveTermPinCommand, phxNotificationDelegate, log) {
	        this.$stateParams = $stateParams;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.saveTermPinCommand = saveTermPinCommand;
	        this.phxNotificationDelegate = phxNotificationDelegate;
	        this.log = log;
	        this.buttonText = 'Save';
	        this.open = false;
	        this.shouldContinueAfterTermPinSave = false;
	        this.openTermPinDialogBound = this.openTermPinDialog.bind(this);
	        this.openTermPinDialogBeforeRegistrationBound = this.openTermPinDialogBeforeRegistration.bind(this);
	    }
	    RegistrationTermPin.prototype.$onInit = function () {
	        this.ngComponentCommunicatorService.subscribe('OPEN_TERM_PIN_MODAL', this.openTermPinDialogBound);
	        this.ngComponentCommunicatorService.subscribe('OPEN_TERM_PIN_MODAL_BEFORE_REGISTRATION', this.openTermPinDialogBeforeRegistrationBound);
	        this.initialize();
	    };
	    RegistrationTermPin.prototype.initialize = function () {
	        this.shouldContinueAfterTermPinSave = false;
	        this.buttonText = 'Save';
	    };
	    RegistrationTermPin.prototype.closeDialog = function () {
	        this.initialize();
	        this.open = false;
	    };
	    RegistrationTermPin.prototype.openedChanged = function ($event) {
	        if ($event && $event.detail && !$event.detail.value) {
	            this.closeDialog();
	        }
	    };
	    RegistrationTermPin.prototype.openTermPinDialog = function () {
	        this.initialize();
	        this.open = true;
	    };
	    RegistrationTermPin.prototype.openTermPinDialogBeforeRegistration = function () {
	        this.shouldContinueAfterTermPinSave = true;
	        this.buttonText = 'Continue';
	        this.open = true;
	    };
	    RegistrationTermPin.prototype.saveTermPinAndContinue = function () {
	        var _this = this;
	        if (this.shouldContinueAfterTermPinSave) {
	            this.ngComponentCommunicatorService.publish('SAVE_TERM_PIN_AND_CONTINUE');
	        }
	        else {
	            this.saveTermPinCommand(this.$stateParams.termId)
	                .then(function () {
	                var config = {
	                    content: "Term pin saved.",
	                    showIcon: true,
	                    status: 'success',
	                    dismissButton: true
	                };
	                _this.phxNotificationDelegate.restrictTo('reg-alerts').create(config);
	            })
	                .catch(function (e) {
	                _this.phxNotificationDelegate.restrictTo('reg-alerts').error("Failed to save the Term PIN");
	                _this.log.issue(e);
	            });
	        }
	        this.closeDialog();
	    };
	    return RegistrationTermPin;
	}());
	var RegistrationTermPinComponent = /** @class */ (function () {
	    function RegistrationTermPinComponent() {
	        this.bindings = {};
	        this.controller = RegistrationTermPin;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/registration/components/registration_term_pin/registration_term_pin_component.html';
	    }
	    return RegistrationTermPinComponent;
	}());
	angular.module('capability-ng-scheduler').component('registrationTermPin', new RegistrationTermPinComponent());


/***/ }),
/* 1926 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var term_course_servant_1 = __webpack_require__(14);
	var section_tile_menu_enum_1 = __webpack_require__(60);
	var DropCourseFacade = /** @class */ (function () {
	    function DropCourseFacade(unscheduleCourseSectionsCommand, dropCourseSectionsCommand, ngTermCourseServant, $state, ngSectionsDatasource, ngMultiSectionServant, $stateParams, ngScheduledSectionServant, ngTermSessionsDatasource, $q, ngAllSectionsQuery, ngRegisterSectionsDatasource, ngScheduledSectionsQuery, ngScheduledSectionStatusServant, ngCrossCourseLinkedSectionServant) {
	        this.unscheduleCourseSectionsCommand = unscheduleCourseSectionsCommand;
	        this.dropCourseSectionsCommand = dropCourseSectionsCommand;
	        this.ngTermCourseServant = ngTermCourseServant;
	        this.$state = $state;
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngMultiSectionServant = ngMultiSectionServant;
	        this.$stateParams = $stateParams;
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.ngTermSessionsDatasource = ngTermSessionsDatasource;
	        this.$q = $q;
	        this.ngAllSectionsQuery = ngAllSectionsQuery;
	        this.ngRegisterSectionsDatasource = ngRegisterSectionsDatasource;
	        this.ngScheduledSectionsQuery = ngScheduledSectionsQuery;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.ngCrossCourseLinkedSectionServant = ngCrossCourseLinkedSectionServant;
	    }
	    // TODO: Migrated from course_tile_menu component
	    // Code needs refactor to reduce complexity
	    DropCourseFacade.prototype.dropCourseAndCoreqs = function (section, action, sectionPins, student_credentials) {
	        var _this = this;
	        var deffered = this.$q.defer();
	        var courseCoreqLinkedSections = [];
	        var registeredEnforcedCoreqs = this.ngScheduledSectionServant.getRegisteredCoreqsRelated(section, this.ngAllSectionsQuery.result);
	        // If dropping a course coreq, also drop linked sections as well
	        _4.each(registeredEnforcedCoreqs, function (coreq) {
	            var sectionCoreqs = _this.ngCrossCourseLinkedSectionServant.getSectionIdOfLinkedCrossCourses(coreq.id, _this.ngScheduledSectionsQuery.result.list);
	            courseCoreqLinkedSections = _4.uniq(_4.concat(courseCoreqLinkedSections, sectionCoreqs));
	        });
	        var hasEnforcedRegisteredInProgressCoreqsRelated = this.ngScheduledSectionStatusServant.isCoreqEnforcementEnabled() && _4.size(registeredEnforcedCoreqs) > 0;
	        // Check if has linked sections
	        var crossCourseLinkedSectionIds = this.ngCrossCourseLinkedSectionServant.getSectionIdOfLinkedCrossCourses(section.id, this.ngScheduledSectionsQuery.result.list);
	        crossCourseLinkedSectionIds = _4.uniq(_4.concat(crossCourseLinkedSectionIds, courseCoreqLinkedSections));
	        var registeredInProgressLinkedSections = _4.filter(this.ngCrossCourseLinkedSectionServant.getSectionsByIds(crossCourseLinkedSectionIds, this.ngSectionsDatasource.metasource().derived()), function (coreqSection) {
	            return _this.ngScheduledSectionServant.isSectionRegistered(coreqSection) ||
	                _this.ngScheduledSectionServant.isSectionInProgress(coreqSection);
	        });
	        var isMultiSectionCourse = term_course_servant_1.TermCourseServant.isMultiSectionCourse(section._course);
	        var hasSessions = !_4.isEmpty(this.ngTermSessionsDatasource.read());
	        var shouldDropSpecificSection = hasSessions &&
	            !isMultiSectionCourse &&
	            _4.isEmpty(crossCourseLinkedSectionIds) &&
	            _4.isEmpty(registeredEnforcedCoreqs);
	        if (action.id === section_tile_menu_enum_1.SectionTileMenuEnum.UNSCHEDULE_SECTIONS) {
	            this.unscheduleCourseSectionsCommand(this.$stateParams.termId, section._course.id, _4.get(section._section_type, 'session', -1)).then(function () {
	                _this.resetStateandUpdateSectionAvailabilities();
	            });
	        }
	        else {
	            // NOTE: All other actions call dropCourseSectionsCommand
	            // DROP_SECTIONS, DROP_COURSE, REMOVE_WAITLIST
	            var isWaitlistedSection = action.id === section_tile_menu_enum_1.SectionTileMenuEnum.REMOVE_WAITLIST; // isWaitlist
	            var courseIdsToDrop = [section._course.id];
	            var sectionIdsToDrop = [];
	            var courseIdsOfLinkedSections = _4.uniq(_4.map(registeredInProgressLinkedSections, function (sctn) { return sctn.course; }));
	            if (courseIdsOfLinkedSections.length > 0) {
	                courseIdsToDrop = _4.concat(courseIdsToDrop, courseIdsOfLinkedSections);
	            }
	            if (hasEnforcedRegisteredInProgressCoreqsRelated) {
	                var registeredInProgressCoreqsRelatedIds = _4.map(registeredEnforcedCoreqs, 'course');
	                courseIdsToDrop = _4.concat(courseIdsToDrop, registeredInProgressCoreqsRelatedIds, [section._course.id]);
	                sectionIdsToDrop = _4.map(registeredEnforcedCoreqs, 'id');
	            }
	            if (!_4.isEmpty(registeredInProgressLinkedSections)) {
	                sectionIdsToDrop = _4.map(registeredInProgressLinkedSections, 'id');
	            }
	            if (isMultiSectionCourse) {
	                sectionIdsToDrop = _4.concat(sectionIdsToDrop, _4.map(this.ngMultiSectionServant.getScheduledSiblingSections(section), 'id'));
	            }
	            var sectionIds = shouldDropSpecificSection ? [section.id] : _4.concat([section.id], sectionIdsToDrop);
	            this.dropCourseSectionsCommand(this.$stateParams.termId, _4.uniq(courseIdsToDrop), isWaitlistedSection, _4.get(section._section_type, 'session', -1), sectionPins, _4.uniq(sectionIds), student_credentials).then(function () {
	                _this.resetStateandUpdateSectionAvailabilities();
	                deffered.resolve();
	            });
	        }
	        return deffered.promise;
	    };
	    DropCourseFacade.prototype.resetStateandUpdateSectionAvailabilities = function () {
	        if (this.$state.is('my.schedule.registration.courseSections')) {
	            this.$state.go('^');
	        }
	    };
	    return DropCourseFacade;
	}());
	exports.DropCourseFacade = DropCourseFacade;
	angular.module('capability-ng-scheduler').service('ngDropCourseFacade', DropCourseFacade);


/***/ }),
/* 1927 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PayTuitionFacade = /** @class */ (function () {
	    function PayTuitionFacade($window, ngPayTuitionQuery) {
	        this.$window = $window;
	        this.ngPayTuitionQuery = ngPayTuitionQuery;
	    }
	    PayTuitionFacade.prototype.onPayTuitionTriggerEnded = function () {
	        this.$window.open(this.ngPayTuitionQuery.result.payTuitionURL, '_blank');
	    };
	    return PayTuitionFacade;
	}());
	exports.PayTuitionFacade = PayTuitionFacade;
	angular.module('capability-ng-scheduler').service('ngPayTuitionFacade', PayTuitionFacade);


/***/ }),
/* 1928 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var transient_access_cred_constants_1 = __webpack_require__(26);
	var course_scheduler_constants_1 = __webpack_require__(58);
	var term_course_servant_1 = __webpack_require__(14);
	var _4 = __webpack_require__(1);
	var RegistrationFacade = /** @class */ (function () {
	    function RegistrationFacade(registrationRTRSvc, ngRegisterSectionsQuery, ngRegistrationSelectedSectionsQuery, updateRegistrationFlagCommand, clearTransientAccessCredCommand, ngScheduledSectionStatusServant, $window, updateRegistrationFriendlyReminderFlagsCommand, ngComponentCommunicatorService, submitRegAttrFormAndGetOutputCommand, ngScheduledSectionsQuery, toggleRegistrationFriendlyReminderPromptCommand, ngPreventTransientAccessQuery, ngTermPinServant, getTermPinCommand, saveTermPinCommand, $stateParams, updateRegistrationRequestPendingCommand, ngScheduledSectionServant, registerScheduledSectionsCommand, storeRegistrationAttributeValuesCommand, selectAllRegistrationSectionsCommand, waitForRegistraionAttributesToRenderCommand, showRegisterButtonAfterPrecheckPassCommand, $timeout, ngSchedulerNotificationServant) {
	        this.registrationRTRSvc = registrationRTRSvc;
	        this.ngRegisterSectionsQuery = ngRegisterSectionsQuery;
	        this.ngRegistrationSelectedSectionsQuery = ngRegistrationSelectedSectionsQuery;
	        this.updateRegistrationFlagCommand = updateRegistrationFlagCommand;
	        this.clearTransientAccessCredCommand = clearTransientAccessCredCommand;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.$window = $window;
	        this.updateRegistrationFriendlyReminderFlagsCommand = updateRegistrationFriendlyReminderFlagsCommand;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.submitRegAttrFormAndGetOutputCommand = submitRegAttrFormAndGetOutputCommand;
	        this.ngScheduledSectionsQuery = ngScheduledSectionsQuery;
	        this.toggleRegistrationFriendlyReminderPromptCommand = toggleRegistrationFriendlyReminderPromptCommand;
	        this.ngPreventTransientAccessQuery = ngPreventTransientAccessQuery;
	        this.ngTermPinServant = ngTermPinServant;
	        this.getTermPinCommand = getTermPinCommand;
	        this.saveTermPinCommand = saveTermPinCommand;
	        this.$stateParams = $stateParams;
	        this.updateRegistrationRequestPendingCommand = updateRegistrationRequestPendingCommand;
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.registerScheduledSectionsCommand = registerScheduledSectionsCommand;
	        this.storeRegistrationAttributeValuesCommand = storeRegistrationAttributeValuesCommand;
	        this.selectAllRegistrationSectionsCommand = selectAllRegistrationSectionsCommand;
	        this.waitForRegistraionAttributesToRenderCommand = waitForRegistraionAttributesToRenderCommand;
	        this.showRegisterButtonAfterPrecheckPassCommand = showRegisterButtonAfterPrecheckPassCommand;
	        this.$timeout = $timeout;
	        this.ngSchedulerNotificationServant = ngSchedulerNotificationServant;
	        this.registrationPrecheckUpdated = this.registrationPrecheckUpdated.bind(this);
	        this.saveTermPinAndContinue = this.saveTermPinAndContinue.bind(this);
	    }
	    RegistrationFacade.prototype.beginRegistration = function () {
	        var _this = this;
	        this.reCalculateFlags().then(function () {
	            if (!_this.ngRegistrationSelectedSectionsQuery.result.disableRegistration) {
	                _this.clearTransientAccessCredCommand().then(function () { return _this.registrationChecks(); });
	            }
	            else {
	                _this.ngSchedulerNotificationServant.showErrorNotification('No Sections to Register', 'Please select a section to register.');
	            }
	        });
	    };
	    RegistrationFacade.prototype.reCalculateFlags = function () {
	        return this.updateRegistrationFlagCommand();
	    };
	    RegistrationFacade.prototype.registrationChecks = function () {
	        var _this = this;
	        return this.shouldOpenFriendlyReminder().then(function (shouldOpenPrompt) {
	            var selectedSectionIds = _this.getSelectedSectionIds();
	            var regBind = _this.registrationChecks.bind(_this);
	            _this.ngComponentCommunicatorService.release(transient_access_cred_constants_1.TransientAccessCredEventNames.NEW_CRED_SAVED, regBind);
	            return _this.submitAndGetRegAttributesForm(selectedSectionIds).then(function (regAttributeApiParam) {
	                if (shouldOpenPrompt) {
	                    return _this.openFriendlyReminderPrompt();
	                }
	                if (_this.ngPreventTransientAccessQuery.result.redirectToAuthWorkflow) {
	                    _this.ngComponentCommunicatorService.publish(transient_access_cred_constants_1.TransientAccessCredEventNames.OPEN_CRED_DIALOG);
	                    return _this.ngComponentCommunicatorService.subscribe(transient_access_cred_constants_1.TransientAccessCredEventNames.NEW_CRED_SAVED, regBind);
	                }
	                return _this.registerSections(regAttributeApiParam);
	            });
	        });
	    };
	    RegistrationFacade.prototype.openFriendlyReminderPrompt = function () {
	        var regBind = this.registrationChecks.bind(this);
	        var closePromptBind = this.closeFriendlyReminderPrompt.bind(this);
	        this.toggleRegistrationFriendlyReminderPromptCommand(true, regBind, closePromptBind);
	    };
	    RegistrationFacade.prototype.closeFriendlyReminderPrompt = function () {
	        var regBind = this.registrationChecks.bind(this);
	        var closePromptBind = this.closeFriendlyReminderPrompt.bind(this);
	        this.toggleRegistrationFriendlyReminderPromptCommand(false, regBind, closePromptBind);
	    };
	    RegistrationFacade.prototype.registrationPrecheckUpdated = function () {
	        this.showRegisterButtonAfterPrecheckPassCommand();
	    };
	    RegistrationFacade.prototype.getUnselectedSections = function () {
	        var _this = this;
	        return _4.compact(_4.map(this.getUnselectedScheduledNonWaitlistedSections(), function (unselectedSection) {
	            var section = _4.find(_this.ngScheduledSectionsQuery.result.list, function (sec) { return sec.id === unselectedSection.id; });
	            var isMultiSection = term_course_servant_1.TermCourseServant.isMultiSectionCourse(section._course);
	            var sectionType = isMultiSection ? " - " + _4.truncate(section._section_type.name, { length: 18 }) : '';
	            return _4.merge(section, {
	                id: unselectedSection.id,
	                cd: section.cd,
	                title: section._course.cd + " " + section._course.title + " " + sectionType
	            });
	        }));
	    };
	    RegistrationFacade.prototype.submitAndGetRegAttributesForm = function (sectionIds) {
	        if (sectionIds === void 0) { sectionIds = []; }
	        this.ngComponentCommunicatorService.publish('SUBMIT_SCHEDULED_SECTIONS_FORM');
	        var formElement = document.querySelector("#" + course_scheduler_constants_1.CourseSchedulerConstant.scheduledSectionFormId);
	        return this.submitRegAttrFormAndGetOutputCommand(formElement, course_scheduler_constants_1.CourseSchedulerConstant.scheduledSectionFormId, sectionIds);
	    };
	    RegistrationFacade.prototype.shouldOpenFriendlyReminder = function () {
	        var _this = this;
	        return this.friendlyReminderRecalculateFlags().then(function () {
	            if (_this.ngRegistrationSelectedSectionsQuery.result.showRegistrationPrompt) {
	                return false;
	            }
	            return (_this.ngRegistrationSelectedSectionsQuery.result.isAnyScheduledSectionUnselected ||
	                _this.ngRegistrationSelectedSectionsQuery.result.hasAnyScheduledSectionMissingRequirements ||
	                _this.ngRegistrationSelectedSectionsQuery.result.hasAnyOptionalSectionNotScheduled);
	        });
	    };
	    RegistrationFacade.prototype.friendlyReminderRecalculateFlags = function () {
	        return this.updateRegistrationFriendlyReminderFlagsCommand();
	    };
	    RegistrationFacade.prototype.getUnselectedScheduledNonWaitlistedSections = function () {
	        var _this = this;
	        return _4.filter(this.ngRegisterSectionsQuery.result.unselectedSections, function (section) {
	            return !_this.ngScheduledSectionStatusServant.isStatusWaitlisted(section) && section._isEligibleForRegistration;
	        });
	    };
	    RegistrationFacade.prototype.getSelectedSectionIds = function () {
	        return this.ngRegisterSectionsQuery.result.selectedSections.map(function (section) { return section['id']; });
	    };
	    RegistrationFacade.prototype.registerSections = function (regAttributeApiParams) {
	        var _this = this;
	        this.closeFriendlyReminderPrompt();
	        // open TermPIN model only if feature is enabled and if there is no TermPIN
	        if (this.ngTermPinServant.isTermPinFeatureEnabled()) {
	            this.getTermPinCommand(this.$stateParams.termId).then(function () {
	                // If user alreday has a term PIN, just complete the registration
	                if (_this.ngTermPinServant.hasTermPin()) {
	                    _this.completeRegistration(regAttributeApiParams);
	                }
	                else {
	                    _this.ngComponentCommunicatorService.publish('OPEN_TERM_PIN_MODAL_BEFORE_REGISTRATION');
	                }
	            });
	        }
	        // Complete registration if TermPIN feature is off
	        else {
	            this.completeRegistration(regAttributeApiParams);
	        }
	    };
	    RegistrationFacade.prototype.completeRegistration = function (regAttributeApiParams) {
	        var _this = this;
	        if (regAttributeApiParams === void 0) { regAttributeApiParams = {}; }
	        this.updateRegistrationRequestPendingCommand(true);
	        var autoWaitlistSectionIds = this.ngScheduledSectionServant.getAutoWaitlistSections(this.ngRegisterSectionsQuery.result.selectedSections);
	        var selectedSectionIds = this.getSelectedSectionIds();
	        return this.triggerSectionRegistration(selectedSectionIds, autoWaitlistSectionIds, regAttributeApiParams).then(function () {
	            return _this.closeFriendlyReminderPrompt();
	        });
	    };
	    RegistrationFacade.prototype.triggerSectionRegistration = function (sectionIds, autoWaitlistSectionIds, regAttributeApiParams) {
	        var _this = this;
	        if (regAttributeApiParams === void 0) { regAttributeApiParams = {}; }
	        this.updateRegistrationRequestPendingCommand(true);
	        return this.registerScheduledSectionsCommand(this.$stateParams.termId, sectionIds, autoWaitlistSectionIds, {}, regAttributeApiParams, this.ngPreventTransientAccessQuery.result.output).finally(function () { return _this.updateRegistrationRequestPendingCommand(false); });
	    };
	    RegistrationFacade.prototype.registerSelectedSections = function () {
	        var _this = this;
	        var selectedSectionIds = this.getSelectedSectionIds();
	        if (this.ngPreventTransientAccessQuery.result.redirectToAuthWorkflow) {
	            return this.submitAndGetRegAttributesForm(selectedSectionIds).then(function () {
	                return _this.ngComponentCommunicatorService.publish(transient_access_cred_constants_1.TransientAccessCredEventNames.TOGGLE_CRED_STEPS);
	            });
	        }
	        return this.submitAndGetRegAttributesForm(selectedSectionIds).then(function (regAttributeApiParam) {
	            return _this.registerSections(regAttributeApiParam);
	        });
	    };
	    RegistrationFacade.prototype.registerAllSections = function () {
	        var _this = this;
	        if (this.ngPreventTransientAccessQuery.result.redirectToAuthWorkflow) {
	            return this.prepareForRegisterAllSections()
	                .catch(function (e) {
	                _this.closeFriendlyReminderPrompt();
	                /*
	                  This issue is happening because of the problem with the design of the work flow.
	                  Closing the prompt would set the focus back to it's trigger (Register button).
	                  But before that, as part of the submit process we had ran the validation process.
	                  That will set the focus to first invalid dropdown.
	                  Taking out the focus from the invalid dropdown and setting it to Register button would
	                  clear the validation error shown next to the dropdown.
	                  Re-running the submit process to run the validation and setting the focus back
	                  to the invalid first dropdown
	                */
	                _this.$timeout(function () {
	                    var allSectionIds = _this.getEligibleScheduledSectionIds();
	                    _this.submitAndGetRegAttributesForm(allSectionIds);
	                });
	            })
	                .then(function () { return _this.ngComponentCommunicatorService.publish(transient_access_cred_constants_1.TransientAccessCredEventNames.TOGGLE_CRED_STEPS); });
	        }
	        this.closeFriendlyReminderPrompt();
	        return this.prepareForRegisterAllSections().then(function (regAttributeApiParam) {
	            return _this.triggerSectionRegistration(_this.getEligibleScheduledSectionIds(), [], regAttributeApiParam);
	        });
	    };
	    RegistrationFacade.prototype.prepareForRegisterAllSections = function () {
	        var _this = this;
	        var allSectionIds = this.getEligibleScheduledSectionIds();
	        return this.storeRegistrationAttributeValuesCommand()
	            .then(function () { return _this.selectAllRegistrationSectionsCommand(); })
	            .then(function () { return _this.waitForRegistraionAttributesToRenderCommand(); })
	            .then(function () { return _this.submitAndGetRegAttributesForm(allSectionIds); });
	    };
	    RegistrationFacade.prototype.getEligibleScheduledSectionIds = function () {
	        return this.ngRegisterSectionsQuery.result.scheduledSections
	            .filter(function (section) { return _4.get(section, '_isEligibleForRegistration', true); })
	            .map(function (section) { return section.id; });
	    };
	    RegistrationFacade.prototype.saveTermPinAndContinue = function () {
	        var _this = this;
	        var selectedSectionIds = this.getSelectedSectionIds();
	        this.submitAndGetRegAttributesForm(selectedSectionIds).then(function (regAttributeApiParam) {
	            return _this.saveTermPinCommand(_this.$stateParams.termId).then(function () { return _this.completeRegistration(regAttributeApiParam); });
	        });
	    };
	    RegistrationFacade.prototype.onRegisterPortalTriggerEnded = function () {
	        var registrationUrl = this.registrationRTRSvc.init(this.ngRegisterSectionsQuery.result.scheduledSections);
	        this.$window.open(registrationUrl, '_blank');
	    };
	    return RegistrationFacade;
	}());
	exports.RegistrationFacade = RegistrationFacade;
	angular.module('capability-ng-scheduler').service('ngRegistrationFacade', RegistrationFacade);


/***/ }),
/* 1929 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var RegistrationPinsPermissionFacade = /** @class */ (function () {
	    function RegistrationPinsPermissionFacade($stateParams, ngRegistrationPinsPermissionQuery, toggleSectionPinsDialogCommand, getTermPinCommand, ngComponentCommunicatorService) {
	        this.$stateParams = $stateParams;
	        this.ngRegistrationPinsPermissionQuery = ngRegistrationPinsPermissionQuery;
	        this.toggleSectionPinsDialogCommand = toggleSectionPinsDialogCommand;
	        this.getTermPinCommand = getTermPinCommand;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	    }
	    RegistrationPinsPermissionFacade.prototype.onEnterSectionPinsTriggerEnded = function () {
	        this.toggleSectionPinsDialogCommand(true);
	    };
	    RegistrationPinsPermissionFacade.prototype.onEnterTermPinsTriggerEnded = function () {
	        var _this = this;
	        this.getTermPinCommand(this.$stateParams.termId).then(function () {
	            _this.ngComponentCommunicatorService.publish('OPEN_TERM_PIN_MODAL');
	        });
	    };
	    return RegistrationPinsPermissionFacade;
	}());
	exports.RegistrationPinsPermissionFacade = RegistrationPinsPermissionFacade;
	angular
	    .module('capability-ng-scheduler')
	    .service('ngRegistrationPinsPermissionFacade', RegistrationPinsPermissionFacade);


/***/ }),
/* 1930 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var term_course_servant_1 = __webpack_require__(14);
	var RegistrationSectionFacade = /** @class */ (function () {
	    function RegistrationSectionFacade(ngRegisterSectionsQuery, ngMultiSectionServant, ngScheduledSectionStatusServant, ngTermScheduleFlags) {
	        this.ngRegisterSectionsQuery = ngRegisterSectionsQuery;
	        this.ngMultiSectionServant = ngMultiSectionServant;
	        this.ngScheduledSectionStatusServant = ngScheduledSectionStatusServant;
	        this.ngTermScheduleFlags = ngTermScheduleFlags;
	    }
	    RegistrationSectionFacade.prototype.getUnscheduledOptionalSectionTypes = function () {
	        var _this = this;
	        var coursesScheduled = _4(this.ngRegisterSectionsQuery.result.selectedSections)
	            .map(function (section) { return section['_course']; })
	            .filter(term_course_servant_1.TermCourseServant.isMultiSectionCourse)
	            .uniqBy('id')
	            .value();
	        var courseIdsWithSessions = this.selectedCourseIdsWithSessions();
	        var unScheduledOptionalSectionTypes = _4.flatMap(coursesScheduled, function (course) {
	            return _this.getUnscheduledSectionTypeTemplate(courseIdsWithSessions, course);
	        });
	        return _4.uniq(_4.compact(unScheduledOptionalSectionTypes));
	    };
	    RegistrationSectionFacade.prototype.selectedCourseIdsWithSessions = function () {
	        var courseIdsWithSessions = {};
	        var coursesScheduledById = _4.groupBy(this.ngRegisterSectionsQuery.result.selectedSections, '_course.id');
	        _4.each(coursesScheduledById, function (sections, courseId) {
	            return (courseIdsWithSessions[courseId] = _4.map(sections, function (section) { return _4.get(section, '_section_type.session'); }));
	        });
	        return courseIdsWithSessions;
	    };
	    RegistrationSectionFacade.prototype.getUnscheduledSectionTypeTemplate = function (courseIdsWithSessions, course) {
	        var optionalSectionTypes = this.ngMultiSectionServant.getUnscheduledOptionalSiblingSectionTypes(course, courseIdsWithSessions);
	        return optionalSectionTypes.map(function (sectionType) { return "<strong class=\"font-bold>\">" + course.cd + "</strong> " + course.title + " " + sectionType.name; });
	    };
	    RegistrationSectionFacade.prototype.isAnyScheduledUnselectedSectionsExist = function () {
	        return !_4.isEmpty(this.getUnselectedScheduledNonWaitlistedSections());
	    };
	    RegistrationSectionFacade.prototype.getUnselectedScheduledNonWaitlistedSections = function () {
	        var _this = this;
	        return _4.filter(this.ngRegisterSectionsQuery.result.unselectedSections, function (section) {
	            return !_this.ngScheduledSectionStatusServant.isStatusWaitlisted(section) && section._isEligibleForRegistration;
	        });
	    };
	    RegistrationSectionFacade.prototype.hasAnyScheduledSectionMissingRequirementsExist = function () {
	        if (!this.ngTermScheduleFlags.isRequisiteReminderEnabled()) {
	            return false;
	        }
	        var reqMissing = this.ngRegisterSectionsQuery.result;
	        return !_4.isEmpty(reqMissing.coReqMissingSections) || !_4.isEmpty(reqMissing.preReqMissingSections);
	    };
	    return RegistrationSectionFacade;
	}());
	exports.RegistrationSectionFacade = RegistrationSectionFacade;
	angular.module('capability-ng-scheduler').service('ngRegistrationSectionFacade', RegistrationSectionFacade);


/***/ }),
/* 1931 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var RegistrationSectionPinsFacade = /** @class */ (function () {
	    function RegistrationSectionPinsFacade(ngRegistrationPinsModel, ngRegistrationPinsQuery) {
	        this.ngRegistrationPinsModel = ngRegistrationPinsModel;
	        this.ngRegistrationPinsQuery = ngRegistrationPinsQuery;
	    }
	    RegistrationSectionPinsFacade.prototype.isSectionSelected = function (section) {
	        return this.ngRegistrationPinsModel.isSectionSelected(section.id);
	    };
	    RegistrationSectionPinsFacade.prototype.toggleCheck = function (event, section) {
	        if (!event.target) {
	            return;
	        }
	        this.ngRegistrationPinsModel.toggleSelection(section, _4.get(event.target, 'checked', false));
	        this.ngRegistrationPinsQuery.run();
	    };
	    RegistrationSectionPinsFacade.prototype.onValueChanged = function (event, section) {
	        var registerStatusFlags = ['REGISTERED', 'IN_PROGRESS'];
	        var sectionPin = {
	            section: section,
	            pin: event.detail.value
	        };
	        var sectionIsRegisteredOrInProgress = _4.includes(registerStatusFlags, section.status);
	        if (sectionIsRegisteredOrInProgress) {
	            this.ngRegistrationPinsModel.updateRegisteredSectionPin(sectionPin);
	        }
	        else {
	            this.ngRegistrationPinsModel.updateScheduledSectionPin(sectionPin);
	        }
	    };
	    RegistrationSectionPinsFacade.prototype.pin = function (section) {
	        return this.ngRegistrationPinsModel.getPin(section.id);
	    };
	    return RegistrationSectionPinsFacade;
	}());
	exports.RegistrationSectionPinsFacade = RegistrationSectionPinsFacade;
	angular.module('capability-ng-scheduler').service('ngRegistrationSectionPinsFacade', RegistrationSectionPinsFacade);


/***/ }),
/* 1932 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ScheduleSectionFacade = /** @class */ (function () {
	    function ScheduleSectionFacade(updateSectionSelectedFlagCommand, ngUnscheduledSectionServant, ngRegistrationAlertsServant, $state, $stateParams, scheduleSectionCommand, getCourseSchedulerCommand, ngScheduledSectionsQuery, ngSectionsDatasource, updateSeatAvailabilityCommand, loadStudentUnavailabilityCommand, calendarPreviewRemoveSections, ngMultiSectionServant, getCrossCourseLinkedSectionsCommand, getTermCoursesandScheduledSectionsCommand) {
	        this.updateSectionSelectedFlagCommand = updateSectionSelectedFlagCommand;
	        this.ngUnscheduledSectionServant = ngUnscheduledSectionServant;
	        this.ngRegistrationAlertsServant = ngRegistrationAlertsServant;
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	        this.scheduleSectionCommand = scheduleSectionCommand;
	        this.getCourseSchedulerCommand = getCourseSchedulerCommand;
	        this.ngScheduledSectionsQuery = ngScheduledSectionsQuery;
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.updateSeatAvailabilityCommand = updateSeatAvailabilityCommand;
	        this.loadStudentUnavailabilityCommand = loadStudentUnavailabilityCommand;
	        this.calendarPreviewRemoveSections = calendarPreviewRemoveSections;
	        this.ngMultiSectionServant = ngMultiSectionServant;
	        this.getCrossCourseLinkedSectionsCommand = getCrossCourseLinkedSectionsCommand;
	        this.getTermCoursesandScheduledSectionsCommand = getTermCoursesandScheduledSectionsCommand;
	    }
	    ScheduleSectionFacade.prototype.scheduleSection = function (section, redirectAfterSchedule) {
	        var _this = this;
	        if (redirectAfterSchedule === void 0) { redirectAfterSchedule = true; }
	        var isConflictingSection = this.ngUnscheduledSectionServant.isSectionConflicting(section);
	        var includePopulateSatisfaction = true;
	        return this.getCrossCourseLinkedSectionsCommand(section.id, includePopulateSatisfaction)
	            .then(function () { return _this.scheduleSectionCommand(_this.$state.params.termId, section.id); })
	            .then(function () { return _this.getTermCoursesandScheduledSectionsCommand(_this.$stateParams.termId); })
	            .then(function () { return _this.updateSectionSelectedFlagCommand(section.id); })
	            .then(function () {
	            var _section = _this.ngSectionsDatasource.metasource().compose(section.id);
	            if (_section) {
	                _this.ngRegistrationAlertsServant.showScheduledAlerts([_section]);
	            }
	            if (isConflictingSection && _this.ngUnscheduledSectionServant.isSectionConflictingWithBusyTimes(section)) {
	                _this.loadStudentUnavailabilityCommand(_this.$stateParams.termId);
	            }
	            if (redirectAfterSchedule) {
	                _this.redirectAfterSchedule(section);
	            }
	            // TODO: Fix the issue of showing the scheduled section in the alert as well as it is not showing the non scheduled sections
	            _this.ngRegistrationAlertsServant.showOtherRequiredSectionTypesAlert(section);
	            return _this.updateSeatAvailabilityCommand([section.id]);
	        })
	            .then(function () { return _this.calendarPreviewRemoveSections(); });
	    };
	    ScheduleSectionFacade.prototype.redirectAfterSchedule = function (section) {
	        var allSections = this.ngScheduledSectionsQuery.result.list;
	        var hasRequiredUnscheduledSiblings = this.ngMultiSectionServant.hasUnscheduledRequiredSiblingSections(section, allSections);
	        if (_4.includes(_4.get(this.$state, '__previousRoute__.state.name', ''), 'reschedule') &&
	            hasRequiredUnscheduledSiblings) {
	            var rescheduleUrl = 'my.schedule.registration.reschedule';
	            var rescheduleParams = {
	                courseId: section.course
	            };
	            this.$state.go(rescheduleUrl, rescheduleParams);
	        }
	        else {
	            this.$state.go('my.schedule.registration');
	        }
	    };
	    return ScheduleSectionFacade;
	}());
	exports.ScheduleSectionFacade = ScheduleSectionFacade;
	angular.module('capability-ng-scheduler').service('ngScheduleSectionFacade', ScheduleSectionFacade);


/***/ }),
/* 1933 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var UnscheduleSectionFacade = /** @class */ (function () {
	    function UnscheduleSectionFacade($stateParams, updateSectionSelectedFlagCommand, $state, unscheduleSectionCommand, getCourseSchedulerCommand, ngRegistrationAlertsServant) {
	        this.$stateParams = $stateParams;
	        this.updateSectionSelectedFlagCommand = updateSectionSelectedFlagCommand;
	        this.$state = $state;
	        this.unscheduleSectionCommand = unscheduleSectionCommand;
	        this.getCourseSchedulerCommand = getCourseSchedulerCommand;
	        this.ngRegistrationAlertsServant = ngRegistrationAlertsServant;
	    }
	    UnscheduleSectionFacade.prototype.unschedule = function (section) {
	        var _this = this;
	        this.unscheduleSectionCommand(this.$stateParams.termId, section.id)
	            .then(function () { return _this.getCourseSchedulerCommand(_this.$state.params.termId); })
	            .then(function () { return _this.updateSectionSelectedFlagCommand(section.id); })
	            .then(function () {
	            _this.resetStateandUpdateSectionAvailabilities();
	            _this.ngRegistrationAlertsServant.showUnscheduleSectionSuccessAlert(section.id);
	        })
	            .catch(function () { return _this.ngRegistrationAlertsServant.showUnScheduleFailAlert(section.id); });
	    };
	    UnscheduleSectionFacade.prototype.resetStateandUpdateSectionAvailabilities = function () {
	        if (this.$state.is('my.schedule.registration.courseSections')) {
	            this.$state.go('^');
	        }
	    };
	    return UnscheduleSectionFacade;
	}());
	exports.UnscheduleSectionFacade = UnscheduleSectionFacade;
	angular.module('capability-ng-scheduler').service('ngUnscheduleSectionFacade', UnscheduleSectionFacade);


/***/ }),
/* 1934 */
880,
/* 1935 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngRegistrationNoSelectedSectionsModel', function () {
	    return new utility_ts_orm_1.Model({
	        showRegisterErrorDialog: false
	    });
	});


/***/ }),
/* 1936 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngRegistrationOneClickModel', function () {
	    return new utility_ts_orm_1.Model({
	        showRegisterButton: false
	    });
	});


/***/ }),
/* 1937 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var term_course_servant_1 = __webpack_require__(14);
	var RegistrationPinsModel = /** @class */ (function () {
	    function RegistrationPinsModel(ngTermCourseServant, ngMultiSectionServant) {
	        this.ngTermCourseServant = ngTermCourseServant;
	        this.ngMultiSectionServant = ngMultiSectionServant;
	        this.registerStatusFlags = ['REGISTERED', 'IN_PROGRESS'];
	        this._registration_pins = { registeredSectionPins: {}, scheduledSectionPins: {} };
	    }
	    RegistrationPinsModel.prototype.initialize = function (sections) {
	        this.clear();
	    };
	    RegistrationPinsModel.prototype.clear = function () {
	        this._registration_pins = { registeredSectionPins: {}, scheduledSectionPins: {} };
	        return this;
	    };
	    RegistrationPinsModel.prototype.update = function () {
	        return this;
	    };
	    RegistrationPinsModel.prototype.getPin = function (sectionId) {
	        var allPins = tslib_1.__assign(tslib_1.__assign({}, this._registration_pins.registeredSectionPins), this._registration_pins.scheduledSectionPins);
	        return _4.get(allPins, sectionId, '');
	    };
	    RegistrationPinsModel.prototype._getRegisterSelectedSectionIds = function () {
	        var _this = this;
	        var allSelectedRegisteredSections = _4.compact(_4.map(_4.filter(this._registration_pins_sections, function (section) { return _4.includes(_this.registerStatusFlags, section.status) && section.is_selected; }), function (section) { return section.sectionId; }));
	        return allSelectedRegisteredSections;
	    };
	    RegistrationPinsModel.prototype._getScheduledSelectedSectionIds = function () {
	        var _this = this;
	        var allSelectedScheduledSections = _4.compact(_4.map(_4.filter(this._registration_pins_sections, function (section) { return !_4.includes(_this.registerStatusFlags, section.status) && section.is_selected; }), function (section) { return section.sectionId; }));
	        return allSelectedScheduledSections;
	    };
	    RegistrationPinsModel.prototype._getRegisterSelectedSectionPins = function () {
	        var allPins = tslib_1.__assign(tslib_1.__assign({}, this._registration_pins.registeredSectionPins), this._registration_pins.scheduledSectionPins);
	        return _4.pick(allPins, this._getRegisterSelectedSectionIds());
	    };
	    RegistrationPinsModel.prototype._getScheduledSelectedSectionPins = function () {
	        var allPins = tslib_1.__assign(tslib_1.__assign({}, this._registration_pins.registeredSectionPins), this._registration_pins.scheduledSectionPins);
	        return _4.pick(allPins, this._getScheduledSelectedSectionIds());
	    };
	    RegistrationPinsModel.prototype.hasRegisterSelectedSectionErrors = function () {
	        var registerSelectedSectionPinKeys = _4.compact(_4.map(_4.sortBy(_4.keys(_4.pickBy(this._getRegisterSelectedSectionPins(), function (pin) { return pin !== ''; }))), function (sectionId) { return _4.toNumber(sectionId); }));
	        var registerSelectedSectionIds = _4.sortBy(this._getRegisterSelectedSectionIds());
	        return !_4.isEqual(registerSelectedSectionIds, registerSelectedSectionPinKeys);
	    };
	    RegistrationPinsModel.prototype.hasScheduledSelectedSectionErrors = function () {
	        var scheduledSelectedSectionPinKeys = _4.compact(_4.map(_4.sortBy(_4.keys(_4.pickBy(this._getScheduledSelectedSectionPins(), function (pin) { return pin !== ''; }))), function (sectionId) { return _4.toNumber(sectionId); }));
	        var scheduledSelectedSectionIds = _4.sortBy(this._getScheduledSelectedSectionIds());
	        return !_4.isEqual(scheduledSelectedSectionIds, scheduledSelectedSectionPinKeys);
	    };
	    RegistrationPinsModel.prototype.getCourse = function (sectionId) {
	        var sectionsBySectionIds = _4.find(this._registration_pins_sections, function (section) { return section.sectionId === sectionId; });
	        return sectionsBySectionIds ? sectionsBySectionIds.courseId : undefined;
	    };
	    RegistrationPinsModel.prototype.getRegisterSectionsInfo = function () {
	        var _this = this;
	        var _courseIds = _4.map(this._getRegisterSelectedSectionIds(), function (sectionId) { return _this.getCourse(sectionId); });
	        var courseIds = _4.uniq(_courseIds.filter(function (courseId) { return _4.isEmpty(courseId); }));
	        return {
	            sections: this._getRegisterSelectedSectionIds(),
	            courseIds: courseIds,
	            section_pins: this._getRegisterSelectedSectionPins()
	        };
	    };
	    RegistrationPinsModel.prototype.getScheduledSectionsInfo = function () {
	        return {
	            sections: this._getScheduledSelectedSectionIds(),
	            section_pins: this._getScheduledSelectedSectionPins()
	        };
	    };
	    RegistrationPinsModel.prototype.updateRegisteredSectionPin = function (sectionPin) {
	        this._updateSectionPin(sectionPin, 'registeredSectionPins');
	    };
	    RegistrationPinsModel.prototype.updateScheduledSectionPin = function (sectionPin) {
	        this._updateSectionPin(sectionPin, 'scheduledSectionPins');
	    };
	    RegistrationPinsModel.prototype.read = function () {
	        return {
	            _registration_pins: this._registration_pins,
	            _registration_pins_sections: this._registration_pins_sections
	        };
	    };
	    RegistrationPinsModel.prototype.write = function (model) {
	        if (model._registration_pins_sections) {
	            this._registration_pins_sections = model._registration_pins_sections;
	        }
	        return this;
	    };
	    RegistrationPinsModel.prototype.isSectionSelected = function (sectionId) {
	        return _4.get(_4.find(this._registration_pins_sections, { sectionId: sectionId }), 'is_selected', false);
	    };
	    RegistrationPinsModel.prototype.toggleSelection = function (section, status) {
	        var _this = this;
	        var relatedSectionsIds = _4.compact(_4.map(_4.filter(this.ngMultiSectionServant.getScheduledSiblingSections(section), function (relatedSection) {
	            return _4.isEqual(section.session, relatedSection.session);
	        }), 'id'));
	        if (relatedSectionsIds.length) {
	            _4.forEach(relatedSectionsIds, function (sectionId) {
	                _this._changeSectionSelectionStatus(sectionId, status);
	            });
	        }
	        else {
	            this._changeSectionSelectionStatus(section.id, status);
	        }
	    };
	    RegistrationPinsModel.prototype._updateSectionPin = function (sectionPin, sectionPinType) {
	        var isMultiSection = term_course_servant_1.TermCourseServant.isMultiSectionCourse(sectionPin.section._course);
	        if (isMultiSection) {
	            this._saveRegistrationPins(sectionPinType, sectionPin);
	        }
	        else {
	            this._registration_pins[sectionPinType][sectionPin.section.id] = sectionPin.pin;
	        }
	    };
	    RegistrationPinsModel.prototype._changeSectionSelectionStatus = function (sectionId, status) {
	        _4.find(this._registration_pins_sections, { sectionId: sectionId }).is_selected = status;
	    };
	    RegistrationPinsModel.prototype._saveRegistrationPins = function (sectionType, sectionPin) {
	        var _this = this;
	        var relatedSectionsIds = _4.compact(_4.map(this.ngMultiSectionServant.getScheduledSiblingSections(sectionPin.section), 'id'));
	        _4.forEach(relatedSectionsIds, function (sectionId) {
	            _this._registration_pins[sectionType][sectionId] = sectionPin.pin;
	        });
	    };
	    return RegistrationPinsModel;
	}());
	exports.RegistrationPinsModel = RegistrationPinsModel;
	angular.module('capability-ng-scheduler').service('ngRegistrationPinsModel', RegistrationPinsModel);


/***/ }),
/* 1938 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngRegistrationPinsPermissionModel', function () {
	    return new utility_ts_orm_1.Model({
	        showSectionsPinsDialog: false,
	        sectionPinText: '',
	        isPermissionPinsFeatureEnabled: false,
	        isTermPinFeatureEnabled: false
	    });
	});


/***/ }),
/* 1939 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngRegistrationSelectedSectionsModel', function () {
	    return new utility_ts_orm_1.Model({
	        isRegistrationPending: false,
	        disableRegistration: false,
	        showRegistrationPrompt: false,
	        isAnyScheduledSectionUnselected: false,
	        hasAnyScheduledSectionMissingRequirements: false,
	        hasAnyOptionalSectionNotScheduled: false,
	        unscheduledOptionalSectionTypes: [],
	        unselectedSections: [],
	        coReqMissingSections: [],
	        preReqMissingSections: [],
	        isRequestPending: false
	    });
	});


/***/ }),
/* 1940 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var PayTuitionQuery = /** @class */ (function () {
	    function PayTuitionQuery(ngSchedulerModel) {
	        this.ngSchedulerModel = ngSchedulerModel;
	        utility_ts_orm_1.Query.registerQuery(this, ngSchedulerModel);
	    }
	    PayTuitionQuery.prototype.run = function () {
	        var payTuitionURL = _4.get(this.ngSchedulerModel.read(), 'customtext.PAY_TUITION_URL.text');
	        this._result = {
	            showPayTuition: !_4.isEmpty(payTuitionURL),
	            payTuitionURL: payTuitionURL
	        };
	        return this;
	    };
	    Object.defineProperty(PayTuitionQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return PayTuitionQuery;
	}());
	exports.PayTuitionQuery = PayTuitionQuery;
	angular.module('capability-ng-scheduler').service('ngPayTuitionQuery', PayTuitionQuery);


/***/ }),
/* 1941 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var RegistrationNoSelectedSectionsQuery = /** @class */ (function () {
	    function RegistrationNoSelectedSectionsQuery(ngRegistrationNoSelectedSectionsModel) {
	        this.ngRegistrationNoSelectedSectionsModel = ngRegistrationNoSelectedSectionsModel;
	        utility_ts_orm_1.Query.registerQuery(this, ngRegistrationNoSelectedSectionsModel);
	    }
	    RegistrationNoSelectedSectionsQuery.prototype.run = function () {
	        this._result = {
	            showRegisterErrorDialog: this.ngRegistrationNoSelectedSectionsModel.read().showRegisterErrorDialog
	        };
	        return this;
	    };
	    Object.defineProperty(RegistrationNoSelectedSectionsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return RegistrationNoSelectedSectionsQuery;
	}());
	exports.RegistrationNoSelectedSectionsQuery = RegistrationNoSelectedSectionsQuery;
	angular
	    .module('capability-ng-scheduler')
	    .service('ngRegistrationNoSelectedSectionsQuery', RegistrationNoSelectedSectionsQuery);


/***/ }),
/* 1942 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var RegistrationOneClickQuery = /** @class */ (function () {
	    function RegistrationOneClickQuery(schedulerConfigModel, FEATURE_ONE_CLICK_REGISTRATION_NK, ngSchedulerModel, ngRegisterSectionsQuery, ngRegisterSectionsDatasource) {
	        this.schedulerConfigModel = schedulerConfigModel;
	        this.FEATURE_ONE_CLICK_REGISTRATION_NK = FEATURE_ONE_CLICK_REGISTRATION_NK;
	        this.ngSchedulerModel = ngSchedulerModel;
	        this.ngRegisterSectionsQuery = ngRegisterSectionsQuery;
	        this.ngRegisterSectionsDatasource = ngRegisterSectionsDatasource;
	        this.isOneClickRegistrationEnabled = false;
	        utility_ts_orm_1.Query.registerQuery(this, schedulerConfigModel, ngSchedulerModel, ngRegisterSectionsDatasource);
	    }
	    RegistrationOneClickQuery.prototype.shouldShowRegisterButton = function () {
	        return !this.isOneClickRegistrationEnabled ? true : _4.get(this.ngSchedulerModel.read(), 'precheck_pass', false);
	    };
	    RegistrationOneClickQuery.prototype.run = function () {
	        this.isOneClickRegistrationEnabled = this.schedulerConfigModel.isFeatureEnabled(this.FEATURE_ONE_CLICK_REGISTRATION_NK);
	        this._result = {
	            isOneClickRegistrationEnabled: this.isOneClickRegistrationEnabled,
	            showRegisterButton: this.shouldShowRegisterButton(),
	            selectedSectionsText: "(" + this.ngRegisterSectionsQuery.result.selectedSections.length + ")"
	        };
	        return this;
	    };
	    Object.defineProperty(RegistrationOneClickQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return RegistrationOneClickQuery;
	}());
	exports.RegistrationOneClickQuery = RegistrationOneClickQuery;
	angular.module('capability-ng-scheduler').service('ngRegistrationOneClickQuery', RegistrationOneClickQuery);


/***/ }),
/* 1943 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var RegistrationPinsPermissionQuery = /** @class */ (function () {
	    function RegistrationPinsPermissionQuery(ngRegistrationPinsPermissionModel, ngSchedulerCustomTextQuery, appConfigModel, ngTermPinServant) {
	        this.ngRegistrationPinsPermissionModel = ngRegistrationPinsPermissionModel;
	        this.ngSchedulerCustomTextQuery = ngSchedulerCustomTextQuery;
	        this.appConfigModel = appConfigModel;
	        this.ngTermPinServant = ngTermPinServant;
	        utility_ts_orm_1.Query.registerQuery(this, ngRegistrationPinsPermissionModel);
	    }
	    RegistrationPinsPermissionQuery.prototype.run = function () {
	        this._result = {
	            showSectionsPinsDialog: this.ngRegistrationPinsPermissionModel.read().showSectionsPinsDialog,
	            sectionPinText: this.ngSchedulerCustomTextQuery.result.SECTION_PIN_TEXT,
	            isPermissionPinsFeatureEnabled: this.appConfigModel.model.member_features['reg-class_permission'],
	            isTermPinFeatureEnabled: this.ngTermPinServant.isTermPinFeatureEnabled()
	        };
	        return this;
	    };
	    Object.defineProperty(RegistrationPinsPermissionQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return RegistrationPinsPermissionQuery;
	}());
	exports.RegistrationPinsPermissionQuery = RegistrationPinsPermissionQuery;
	angular.module('capability-ng-scheduler').service('ngRegistrationPinsPermissionQuery', RegistrationPinsPermissionQuery);


/***/ }),
/* 1944 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var RegistrationSelectedSectionsQuery = /** @class */ (function () {
	    function RegistrationSelectedSectionsQuery(ngRegistrationSelectedSectionsModel) {
	        this.ngRegistrationSelectedSectionsModel = ngRegistrationSelectedSectionsModel;
	        utility_ts_orm_1.Query.registerQuery(this, ngRegistrationSelectedSectionsModel);
	    }
	    RegistrationSelectedSectionsQuery.prototype.run = function () {
	        this._result = {
	            isRegistrationPending: this.ngRegistrationSelectedSectionsModel.read().isRegistrationPending,
	            disableRegistration: this.ngRegistrationSelectedSectionsModel.read().disableRegistration,
	            showRegistrationPrompt: this.ngRegistrationSelectedSectionsModel.read().showRegistrationPrompt,
	            isAnyScheduledSectionUnselected: this.ngRegistrationSelectedSectionsModel.read().isAnyScheduledSectionUnselected,
	            hasAnyScheduledSectionMissingRequirements: this.ngRegistrationSelectedSectionsModel.read().hasAnyScheduledSectionMissingRequirements,
	            hasAnyOptionalSectionNotScheduled: this.ngRegistrationSelectedSectionsModel.read().hasAnyOptionalSectionNotScheduled,
	            unscheduledOptionalSectionTypes: this.ngRegistrationSelectedSectionsModel.read().unscheduledOptionalSectionTypes,
	            unselectedSections: this.ngRegistrationSelectedSectionsModel.read().unselectedSections,
	            coReqMissingSections: this.ngRegistrationSelectedSectionsModel.read().coReqMissingSections,
	            preReqMissingSections: this.ngRegistrationSelectedSectionsModel.read().preReqMissingSections,
	            isRequestPending: this.ngRegistrationSelectedSectionsModel.read().isRequestPending
	        };
	        return this;
	    };
	    Object.defineProperty(RegistrationSelectedSectionsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return RegistrationSelectedSectionsQuery;
	}());
	exports.RegistrationSelectedSectionsQuery = RegistrationSelectedSectionsQuery;
	angular
	    .module('capability-ng-scheduler')
	    .service('ngRegistrationSelectedSectionsQuery', RegistrationSelectedSectionsQuery);


/***/ }),
/* 1945 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var Registration = /** @class */ (function () {
	    function Registration($state, $stateParams, $timeout, $window, appConfigModel, ngTermProgramInfoModel, studentAvailabilityDelegate, loadStudentUnavailabilityCommand, ngTermScheduleFlags, accountModel, ngRegisterSectionsQuery, ngTermCourseQuery, ngSchedulerModel, ngSchedulerCustomTextQuery, ngSearchAndCourseFeatureFacade) {
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	        this.$timeout = $timeout;
	        this.$window = $window;
	        this.appConfigModel = appConfigModel;
	        this.ngTermProgramInfoModel = ngTermProgramInfoModel;
	        this.studentAvailabilityDelegate = studentAvailabilityDelegate;
	        this.loadStudentUnavailabilityCommand = loadStudentUnavailabilityCommand;
	        this.ngTermScheduleFlags = ngTermScheduleFlags;
	        this.accountModel = accountModel;
	        this.ngRegisterSectionsQuery = ngRegisterSectionsQuery;
	        this.ngTermCourseQuery = ngTermCourseQuery;
	        this.ngSchedulerModel = ngSchedulerModel;
	        this.ngSchedulerCustomTextQuery = ngSchedulerCustomTextQuery;
	        this.ngSearchAndCourseFeatureFacade = ngSearchAndCourseFeatureFacade;
	        this.sectionLabel = 'Section';
	        this.SISURL = '';
	        this.flags = {
	            isSeatRefreshPusherInitiated: false,
	            isOneClickRegistrationEnabled: this.ngTermScheduleFlags.isOneClickRegistrationEnabled(),
	            isRegisterRequestPending: false
	        };
	        this.models = {
	            account: {},
	            selectedCourse: {},
	            sectionTypeName: ''
	        };
	        this.showTimelineCalendar = true;
	        this.isPreferencesModeActive = false;
	        this.institutionName = '';
	    }
	    Registration.prototype.$onInit = function () {
	        this.init();
	    };
	    Registration.prototype.init = function () {
	        var _this = this;
	        this.sectionLabel = this.appConfigModel.model.member_configs['section_label'] || 'Section';
	        this.SISURL = _4.get(this.ngSchedulerModel.read(), 'customtext.SIS_REGISTRATION_URL.text', '');
	        this.termAndProgramInfo = this.ngTermProgramInfoModel.read();
	        this.isPreferencesModeActive = false;
	        this.institutionName = this.appConfigModel.model.member_configs['core-inst_name'];
	        this.termId = this.$stateParams.termId;
	        this.urls = {
	            registration: '',
	            submit: function () {
	                _this.$window.open(_this.urls.registration);
	            }
	        };
	        this.pins = {
	            required: {}
	        };
	        this.flags = {
	            isSeatRefreshPusherInitiated: false,
	            isOneClickRegistrationEnabled: this.ngTermScheduleFlags.isOneClickRegistrationEnabled(),
	            isRegisterRequestPending: false
	        };
	        this.models = {
	            account: this.accountModel,
	            selectedCourse: {},
	            sectionTypeName: ''
	        };
	        this.$timeout(function () {
	            angular.element('.focused').focus();
	        }, 200);
	        this.refreshSchedule();
	    };
	    Registration.prototype.$onChanges = function () {
	        this.init();
	    };
	    Registration.prototype.print = function () {
	        this.$window.print();
	    };
	    Registration.prototype.allCoursesSelected = function () {
	        return this.ngTermCourseQuery.result.unscheduled.length === 0;
	    };
	    Registration.prototype.showPrintMessage = function () {
	        return (this.allCoursesSelected() &&
	            this.ngRegisterSectionsQuery.result.scheduledSections.length !== 0 &&
	            !this.flags.isOneClickRegistrationEnabled &&
	            !_4.isEmpty(this.ngSchedulerCustomTextQuery.result.SCH_REGISTRATION_PROMPT));
	    };
	    Registration.prototype.goBackToTermCourses = function () {
	        this.$state.go('my.schedule.registration', {}, { reload: 'my.schedule.registration' });
	    };
	    Registration.prototype.refreshSchedule = function () {
	        this.loadStudentUnavailabilityCommand(this.$stateParams.termId);
	        this.studentAvailabilityDelegate.save();
	    };
	    Registration.prototype.togglePrefMode = function () {
	        this.isPreferencesModeActive = !this.isPreferencesModeActive;
	    };
	    Registration.prototype.toggleTimelineCalendar = function () {
	        this.showTimelineCalendar = !this.showTimelineCalendar;
	    };
	    return Registration;
	}());
	angular.module('capability-ng-scheduler').component('schedulerRegistrationContainer', {
	    templateUrl: 'capability-ng-scheduler/src/views/registration/registration_container.html',
	    controller: Registration
	});


/***/ }),
/* 1946 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('registrationActivityCommand', function ($http, defineCommandORM, ngRegistrationActivityDatasource, log) {
	    return defineCommandORM('registrationActivityCommand', function (deferred, termId) {
	        $http({
	            method: 'GET',
	            url: "reg/activity/term/" + termId + "/"
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            ngRegistrationActivityDatasource.clear().write(data);
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue('Failed to get registration errors.');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1947 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var RegistrationTransactions = /** @class */ (function () {
	    function RegistrationTransactions(ngTermProgramInfoModel, $state, $window, ngRegistrationTransactionsQuery, ngRequestActionServant) {
	        this.ngTermProgramInfoModel = ngTermProgramInfoModel;
	        this.$state = $state;
	        this.$window = $window;
	        this.ngRegistrationTransactionsQuery = ngRegistrationTransactionsQuery;
	        this.ngRequestActionServant = ngRequestActionServant;
	        this.termName = '';
	    }
	    RegistrationTransactions.prototype.$onChanges = function () {
	        this.init();
	    };
	    RegistrationTransactions.prototype.init = function () {
	        this.termName = _4.get(this.ngTermProgramInfoModel.read(), 'term.name', '');
	    };
	    RegistrationTransactions.prototype.print = function () {
	        this.$window.print();
	    };
	    RegistrationTransactions.prototype.hasTransactions = function () {
	        return !_4.isEmpty(this.ngRegistrationTransactionsQuery.result.transactions);
	    };
	    RegistrationTransactions.prototype.gotoRegistration = function () {
	        this.$state.go('my.schedule.registration');
	    };
	    return RegistrationTransactions;
	}());
	exports.RegistrationTransactions = RegistrationTransactions;
	var RegistrationTransactionsComponent = /** @class */ (function () {
	    function RegistrationTransactionsComponent() {
	        this.controller = RegistrationTransactions;
	        this.bindings = {};
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/registration_transactions/components/registration_transactions.html';
	    }
	    return RegistrationTransactionsComponent;
	}());
	angular
	    .module('capability-ng-scheduler')
	    .component('registrationTransactions', new RegistrationTransactionsComponent());


/***/ }),
/* 1948 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var registration_activity_builder_1 = __webpack_require__(776);
	angular.module('capability-ng-scheduler').factory('ngRegistrationActivityDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: registration_activity_builder_1.RegistrationActivity
	    });
	});


/***/ }),
/* 1949 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var RegistrationTransactionsQuery = /** @class */ (function () {
	    function RegistrationTransactionsQuery(QueryMediator, ngRegistrationActivityDatasource, ngRegistrationReceiptServant) {
	        this.QueryMediator = QueryMediator;
	        this.ngRegistrationActivityDatasource = ngRegistrationActivityDatasource;
	        this.ngRegistrationReceiptServant = ngRegistrationReceiptServant;
	        this._result = {
	            hasTransactions: false,
	            transactions: []
	        };
	        this._result = {
	            hasTransactions: false,
	            transactions: []
	        };
	        QueryMediator.registerQuery(this, ngRegistrationActivityDatasource);
	    }
	    RegistrationTransactionsQuery.prototype.run = function () {
	        var transactionData = this.ngRegistrationReceiptServant.getReceiptData();
	        var hasTransactions = _4.gt(_4.size(transactionData), 0);
	        var transactionsWithTimeStamp = _4.orderBy(_4.map(transactionData, function (transaction) {
	            return tslib_1.__assign(tslib_1.__assign({}, transaction), { timeStamp: moment(transaction.transactionDate, 'MMM DD, YYYY h:m A').valueOf() });
	        }), ['transactionId'], 'desc');
	        var transactions = _4.reverse(_4.values(_4.groupBy(transactionsWithTimeStamp, 'transactionId')));
	        this._result = { hasTransactions: hasTransactions, transactions: transactions };
	        return this;
	    };
	    Object.defineProperty(RegistrationTransactionsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return RegistrationTransactionsQuery;
	}());
	exports.RegistrationTransactionsQuery = RegistrationTransactionsQuery;
	angular.module('capability-ng-scheduler').service('ngRegistrationTransactionsQuery', RegistrationTransactionsQuery);


/***/ }),
/* 1950 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var request_type_strategy_1 = __webpack_require__(777);
	var RequestActionServant = /** @class */ (function () {
	    function RequestActionServant() {
	    }
	    RequestActionServant.prototype.getRequestType = function (type) {
	        var actionType = _4.toUpper(type);
	        return request_type_strategy_1.TransactionRequestType[actionType];
	    };
	    return RequestActionServant;
	}());
	exports.RequestActionServant = RequestActionServant;


/***/ }),
/* 1951 */
880,
/* 1952 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var campus_builder_1 = __webpack_require__(778);
	var utility_ng_kernel_1 = __webpack_require__(5);
	angular.module('capability-ng-scheduler').factory('ngCampusesDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: campus_builder_1.Campus,
	        writeMode: 'clobber',
	        updateMode: 'merge'
	    });
	});


/***/ }),
/* 1953 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var location_builder_1 = __webpack_require__(779);
	var utility_ng_kernel_1 = __webpack_require__(5);
	var _4 = __webpack_require__(1);
	var LocationMeta = /** @class */ (function () {
	    function LocationMeta() {
	    }
	    return LocationMeta;
	}());
	angular.module('capability-ng-scheduler').factory('ngLocationsDatasource', function (ngCampusesDatasource) {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: location_builder_1.Location,
	        writeMode: 'clobber',
	        updateMode: 'merge'
	    }).includeMetasource(function (datasource) {
	        return new utility_ng_kernel_1.Metasource(datasource).includeAttribute('_campus', function (location) {
	            return _4.get(ngCampusesDatasource.read(), location.campus);
	        });
	    });
	});


/***/ }),
/* 1954 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var section_availability_builder_1 = __webpack_require__(780);
	var utility_ng_kernel_1 = __webpack_require__(5);
	angular.module('capability-ng-scheduler').factory('ngSectionAvailabilityDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: section_availability_builder_1.SectionAvailability,
	        writeMode: 'clobber',
	        updateMode: 'merge'
	    });
	});


/***/ }),
/* 1955 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var section_labels_builder_1 = __webpack_require__(781);
	angular.module('capability-ng-scheduler').factory('ngSectionLabelsDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: section_labels_builder_1.SectionLabel,
	        writeMode: 'clobber',
	        updateMode: 'merge'
	    });
	});


/***/ }),
/* 1956 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var section_time_builder_1 = __webpack_require__(782);
	var _4 = __webpack_require__(1);
	var SectionTimesMeta = /** @class */ (function () {
	    function SectionTimesMeta() {
	    }
	    return SectionTimesMeta;
	}());
	angular.module('capability-ng-scheduler').factory('ngSectionTimesDatasource', function (ngLocationsDatasource) {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: section_time_builder_1.SectionTime,
	        writeMode: 'clobber',
	        updateMode: 'merge'
	    }).includeMetasource(function (datasource) {
	        return new utility_ng_kernel_1.Metasource(datasource).includeAttribute('_location', function (sectionTime) {
	            return _4.find(ngLocationsDatasource.metasource().derived(), { id: sectionTime.location }) || [];
	        });
	    });
	});


/***/ }),
/* 1957 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var term_course_servant_1 = __webpack_require__(14);
	var section_registration_servant_1 = __webpack_require__(59);
	var section_status_servant_1 = __webpack_require__(31);
	var section_builder_1 = __webpack_require__(233);
	var utility_ts_datasource_1 = __webpack_require__(9);
	var utility_ng_kernel_1 = __webpack_require__(5);
	var _4 = __webpack_require__(1);
	angular.module('capability-ng-scheduler').factory('ngSectionsDatasource', function (ngTermCoursesDatasource, ngTermSectionTypesDatasource, ngSectionAvailabilityDatasource, ngLinkedSectionsModel, ngSectionTimesDatasource, ngWaitlistStatusDatasource, ngCampusesDatasource, ngSectionLabelsDatasource, ngTermScheduleFlags) {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: section_builder_1.Section,
	        writeMode: 'clobber',
	        updateMode: 'merge'
	    })
	        .includeMetasource(function (datasource) {
	        return new utility_ts_datasource_1.Metasource(datasource)
	            .includeAttribute('_campus', function (section) {
	            return _4.get(ngCampusesDatasource.read(), section.campus);
	        })
	            .includeAttribute('_section_times', function (section) {
	            return _4.filter(ngSectionTimesDatasource.metasource().derived(), function (time) { return time.section === section.id; });
	        })
	            .includeAttribute('_fullLocationName', function (section) {
	            if (_4.isUndefined(section._campus)) {
	                return '';
	            }
	            var specificLocation = _4.uniq(_4.compact(_4.map(section._section_times, function (sectionTime) { return "" + _4.get(sectionTime, '_location.name'); })));
	            var campus = _4.get(section, '_campus.is_online')
	                ? "Online Campus"
	                : section._campus.name
	                    ? "" + section._campus.name
	                    : 'TBD';
	            return campus + " " + (specificLocation.length > 0 ? '|' : '') + " " + specificLocation.join(' ');
	        })
	            .includeAttribute('_section_labels', function (section) {
	            return _4.get(ngSectionLabelsDatasource.read(), section.id);
	        })
	            .includeAttribute('is_waitlisted', function (section) { return section_status_servant_1.SectionStatusServant.isStatusWaitlisted(section); })
	            .includeAttributes(function (section) {
	            var disableRegistrationEligibilityForMultiSectionLinkedSections = function (_section, allScheduledSections) {
	                var isMultiSection = term_course_servant_1.TermCourseServant.isMultiSectionCourse(_section._course);
	                if (!isMultiSection) {
	                    return _section;
	                }
	                var allRequiredMultiSections = allScheduledSections.filter(function (builtSection) {
	                    return builtSection._course.id === _section.course && _4.get(builtSection, '_section_type.is_required');
	                });
	                var hasAnyNonEligibleSections = _4.some(allRequiredMultiSections, {
	                    _isEligibleForRegistration: false
	                });
	                if (!hasAnyNonEligibleSections) {
	                    return _section;
	                }
	                allRequiredMultiSections.forEach(function (requiredSection) {
	                    requiredSection._isEligibleForRegistration = false;
	                });
	                return _section;
	            };
	            var sectionsWithStatus = datasource.values();
	            var allSectionsWithMeta = datasource.metasource().composes(sectionsWithStatus);
	            var allSectionTypes = ngTermSectionTypesDatasource.values();
	            var linkedSections = ngLinkedSectionsModel.get(section.id);
	            var _availability = ngSectionAvailabilityDatasource.get(section.id);
	            if (_availability) {
	                section._availability = _availability;
	            }
	            if (linkedSections) {
	                section._linked_sections = linkedSections;
	            }
	            var waitListStatus = ngWaitlistStatusDatasource.get(section.id);
	            if (waitListStatus) {
	                section._section_status = waitListStatus;
	            }
	            var sectionType = ngTermSectionTypesDatasource.get(section.section_type);
	            if (sectionType) {
	                section._section_type = sectionType;
	            }
	            section._isEligibleForRegistration = section_registration_servant_1.SectionRegistrationServant.isEligibleForRegistration(section, allSectionsWithMeta, allSectionTypes, ngTermScheduleFlags);
	            var sectionCourse = ngTermCoursesDatasource.get(section.course);
	            if (sectionCourse) {
	                section._course = ngTermCoursesDatasource.metasource().compose(sectionCourse);
	            }
	            disableRegistrationEligibilityForMultiSectionLinkedSections(section, allSectionsWithMeta);
	            return section;
	        });
	    })
	        .addHooks({
	        $prePut: function (section) {
	            var availability = ngSectionAvailabilityDatasource.get(section.id);
	            if (availability) {
	                section._availability = availability;
	            }
	            var linkedSections = ngLinkedSectionsModel.get(section.id);
	            if (linkedSections) {
	                section._linked_sections = linkedSections;
	            }
	            section._section_status = ngWaitlistStatusDatasource.get(section.id);
	            section._section_type = ngTermSectionTypesDatasource.get(section.section_type);
	            section._course = _4.find(ngTermCoursesDatasource.metasource().derived(), { id: section.course });
	            return section;
	        }
	    });
	});


/***/ }),
/* 1958 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var LoadCrossCourseLinkedSectionsFacade = /** @class */ (function () {
	    function LoadCrossCourseLinkedSectionsFacade(getCrossCourseLinkedSectionsCommand) {
	        this.getCrossCourseLinkedSectionsCommand = getCrossCourseLinkedSectionsCommand;
	    }
	    LoadCrossCourseLinkedSectionsFacade.prototype.loadCrossCourseLinkedSections = function (sectionLinkResponse) {
	        var _this = this;
	        var linkedSectionIds = Object.keys(sectionLinkResponse).filter(function (sectionId) { return !_4.isEmpty(sectionLinkResponse[sectionId]); });
	        var includeStatus = true;
	        return linkedSectionIds.map(function (id) {
	            return _this.getCrossCourseLinkedSectionsCommand(id, includeStatus);
	        });
	    };
	    return LoadCrossCourseLinkedSectionsFacade;
	}());
	exports.LoadCrossCourseLinkedSectionsFacade = LoadCrossCourseLinkedSectionsFacade;
	angular
	    .module('capability-ng-scheduler')
	    .service('ngLoadCrossCourseLinkedSectionsFacade', LoadCrossCourseLinkedSectionsFacade);


/***/ }),
/* 1959 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var LinkedSectionsModel = /** @class */ (function () {
	    function LinkedSectionsModel() {
	        this._linked_sections = {};
	    }
	    LinkedSectionsModel.prototype.initialize = function () {
	        this.clear();
	    };
	    LinkedSectionsModel.prototype.clear = function () {
	        this._linked_sections = {};
	        return this;
	    };
	    LinkedSectionsModel.prototype.write = function (source) {
	        this._linked_sections = _4.merge(this._linked_sections, source);
	        return this;
	    };
	    LinkedSectionsModel.prototype.read = function () {
	        return this._linked_sections;
	    };
	    LinkedSectionsModel.prototype.get = function (sectionId) {
	        return this._linked_sections[sectionId];
	    };
	    LinkedSectionsModel.prototype.update = function (source) {
	        this._linked_sections = _4.merge(this._linked_sections, source);
	        return this;
	    };
	    return LinkedSectionsModel;
	}());
	exports.LinkedSectionsModel = LinkedSectionsModel;
	angular.module('capability-ng-scheduler').service('ngLinkedSectionsModel', LinkedSectionsModel);


/***/ }),
/* 1960 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var LinkedSectionsServant = /** @class */ (function () {
	    function LinkedSectionsServant(ngLinkedSectionsModel) {
	        this.ngLinkedSectionsModel = ngLinkedSectionsModel;
	    }
	    LinkedSectionsServant.prototype.areSectionsLinked = function (sectionId1, sectionId2) {
	        return _4.includes(this.ngLinkedSectionsModel.get(sectionId1), sectionId2);
	    };
	    return LinkedSectionsServant;
	}());
	exports.LinkedSectionsServant = LinkedSectionsServant;
	angular.module('capability-ng-scheduler').service('ngLinkedSectionsServant', LinkedSectionsServant);


/***/ }),
/* 1961 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var SectionInfoServant = /** @class */ (function () {
	    function SectionInfoServant(ngCheckTimeWithInstructorUtility, ngUnscheduledSectionsQuery, ngScheduledSectionsQuery, schedulerConfigModel, FEATURE_SECTION_LABEL_NK) {
	        this.ngCheckTimeWithInstructorUtility = ngCheckTimeWithInstructorUtility;
	        this.ngUnscheduledSectionsQuery = ngUnscheduledSectionsQuery;
	        this.ngScheduledSectionsQuery = ngScheduledSectionsQuery;
	        this.schedulerConfigModel = schedulerConfigModel;
	        this.FEATURE_SECTION_LABEL_NK = FEATURE_SECTION_LABEL_NK;
	        var weekdaysShort = tslib_1.__spreadArrays([' '], moment.weekdaysShort());
	        var weekdaysMin = tslib_1.__spreadArrays([' '], moment.weekdaysMin());
	        var weekdays = tslib_1.__spreadArrays([' '], moment.weekdays());
	        moment.locale('en', { weekdaysShort: weekdaysShort, weekdaysMin: weekdaysMin, weekdays: weekdays });
	    }
	    SectionInfoServant.prototype.sectionCourseTime = function (section) {
	        return this.convertDateToRange(section.class_start_dt, section.class_end_dt);
	    };
	    SectionInfoServant.prototype.convertDate = function (dateString) {
	        var date = moment(dateString, 'YYYY-MM-DD');
	        return date.format('MMM Do YYYY');
	    };
	    SectionInfoServant.prototype.convertDateToRange = function (startDate, endDate, startFormat, endFormat) {
	        if (startFormat === void 0) { startFormat = 'MMM Do'; }
	        if (endFormat === void 0) { endFormat = 'MMM Do YYYY'; }
	        var classStart = moment(startDate, 'YYYY-MM-DD');
	        var classEnd = moment(endDate, 'YYYY-MM-DD');
	        var isYearDiff = classStart.year() !== classEnd.year();
	        var formatStart = isYearDiff ? startFormat + " YYYY" : startFormat;
	        var formatEnd = isYearDiff ? endFormat + " YYYY" : endFormat;
	        var start = classStart.format(formatStart);
	        var end = classEnd.format(formatEnd);
	        // Jan 8th - Jul 16th 2016
	        // Dec 23rd 2017 - Jan 31st 2018
	        return start + " - " + end;
	    };
	    SectionInfoServant.prototype.calculateSectionTimes = function (section) {
	        // Group Section times by Campus -- not needed, each section is associated with one campus.
	        // Group Section Times By Location
	        // For Each location - Campus Name | Location name
	        // Format times
	        // if check with instructor = "Check with instructor for times"
	        // if weekday 8  = "Meeting times TBD"
	        // format [from - to] times
	        if (!section || this.ngCheckTimeWithInstructorUtility.areTimesNotSpecified(section._section_times)) {
	            return [
	                {
	                    times: ['Check with instructor for times']
	                }
	            ];
	        }
	        var sectionTimesByLocation = _4.groupBy(section._section_times, 'location');
	        var formattedSectionTimesByLocation = _4.map(sectionTimesByLocation, function (sectionTimes) {
	            var daysAndTimes = _4.map(_4.sortBy(sectionTimes, ['day_of_week']), function (sectionTime) {
	                var startTime = sectionTime.from_tm ? moment(sectionTime.from_tm, 'HH:mm:ss').format('h:mm a') : 'TBD';
	                var endTime = sectionTime.to_tm ? moment(sectionTime.to_tm, 'HH:mm:ss').format('h:mm a') : 'TBD';
	                var dayOfWeek = sectionTime.day_of_week === 8
	                    ? 'TBD'
	                    : sectionTime.day_of_week === 7
	                        ? 'Sat'
	                        : moment().weekday(sectionTime.day_of_week).format('ddd');
	                return {
	                    day: dayOfWeek,
	                    time: startTime + " - " + endTime
	                };
	            });
	            // group all section times by from and to time e.g. we want something that looks like:
	            // Mon Wed 9 - 11
	            // Wed 2 - 3
	            var groupByTimes = _4.groupBy(daysAndTimes, 'time');
	            var times = _4.map(groupByTimes, function (timeGroup, key) {
	                var days = _4.reduce(timeGroup, function (prev, time) { return prev + " " + time.day; }, '');
	                return days + " " + key;
	            });
	            return {
	                times: times
	            };
	        });
	        return formattedSectionTimesByLocation;
	    };
	    SectionInfoServant.prototype.getSectionLocationString = function (section) {
	        var specificLocation = _4.uniq(_4.map(_4.get(section, '_section_times', []), function (sectionTime) { return "" + sectionTime._location.name; }));
	        var campus = this.getSectionCampus(section);
	        return campus + " " + (specificLocation.length > 0 ? '|' : '') + " " + specificLocation.join(' ');
	    };
	    SectionInfoServant.prototype.getSectionCampus = function (section) {
	        if (!_4.get(section, '_campus.name')) {
	            return '';
	        }
	        return section._campus.is_online ? "Online Campus" : section._campus.name ? "" + section._campus.name : 'TBD';
	    };
	    SectionInfoServant.prototype.getConflictingScheduledSections = function (conflictingScheduledSectionIds) {
	        return this.getCourseTitlesFromScheduledSectionIds(conflictingScheduledSectionIds, false);
	    };
	    SectionInfoServant.prototype.getConflictingLinkedSections = function (conflictingLinkedSectionIds) {
	        return this.getCourseTitlesFromScheduledSectionIds(conflictingLinkedSectionIds, true);
	    };
	    SectionInfoServant.prototype.getSectionLabel = function (section) {
	        return this.schedulerConfigModel.getConfigProperty(this.FEATURE_SECTION_LABEL_NK) + " " + section.cd;
	    };
	    SectionInfoServant.prototype.getConflictingMessages = function (section) {
	        var conflictingMessages = [];
	        var sectionId = section.id;
	        if (_4.includes(section._availability.conflicting_selected_section_ids, sectionId)) {
	            return tslib_1.__spreadArrays(conflictingMessages, [
	                {
	                    style: 'error',
	                    message: "Section scheduled"
	                }
	            ]);
	        }
	        if (section._availability.is_conflicting_with_selected_section) {
	            var conflictingCourses = this.getConflictingScheduledSections(section._availability.conflicting_selected_section_ids);
	            conflictingMessages.push({
	                style: 'error',
	                message: "Conflicts with " + conflictingCourses.join(' ')
	            });
	        }
	        if (section._availability.is_conflicting_with_linked_section) {
	            var conflictingCourses = this.getConflictingLinkedSections(section._availability.conflicting_linked_section_ids);
	            conflictingMessages.push({
	                style: 'error',
	                message: "Not offered with " + conflictingCourses.join(' ')
	            });
	        }
	        if (section._availability.is_conflicting_with_student_campus) {
	            conflictingMessages.push({
	                style: 'warning',
	                message: 'Conflicts with your campus preferences'
	            });
	        }
	        if (section._availability.is_conflicting_with_student_time) {
	            conflictingMessages.push({
	                style: 'warning',
	                message: 'Conflicts with your busy times'
	            });
	        }
	        return conflictingMessages;
	    };
	    // Conflicts are always with scheduled sections. Conflicts only arise when a section is picked. Ignore others.
	    SectionInfoServant.prototype.getCourseTitlesFromScheduledSectionIds = function (sectionIds, isLinkedSections) {
	        var _this = this;
	        var sectionsFromSectionIds = _4.compact(_4.map(sectionIds, function (sectionId) {
	            return _4.find(_this.ngScheduledSectionsQuery.result.list, function (section) { return section.id === sectionId; });
	        }));
	        return _4.map(sectionsFromSectionIds, function (section) {
	            return section._course.cd + " " + section._course.title + (isLinkedSections ? " " + _this.getSectionLabel(section) : '');
	        });
	    };
	    return SectionInfoServant;
	}());
	exports.SectionInfoServant = SectionInfoServant;
	angular.module('capability-ng-scheduler').service('ngSectionInfoServant', SectionInfoServant);


/***/ }),
/* 1962 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .service('preferencesBusyTimes', function (preferencesSummaryDelegate, ngTimeOccurrenceDataSource) {
	    this.getSummary = function () {
	        var busyTimes = _4.filter(ngTimeOccurrenceDataSource.store, function (time) { return !time.isLocked; });
	        preferencesSummaryDelegate.setBusyTime({ busyTimes: busyTimes });
	    };
	});


/***/ }),
/* 1963 */
/***/ (function(module, exports) {

	angular
	    .module('capability-ng-scheduler')
	    .service('preferencesCampuses', function (preferencesSummaryDelegate, ngPreferencesCampusModel, ngTimeOccurrenceDataSource) {
	    this.getSummary = function () {
	        var updatedCampuses = ngPreferencesCampusModel.read();
	        preferencesSummaryDelegate.setCampusLocation({ campuses: updatedCampuses });
	    };
	});


/***/ }),
/* 1964 */
/***/ (function(module, exports) {

	angular
	    .module('capability-ng-scheduler')
	    .service('preferencesCommitment', function (preferencesSummaryDelegate, ngPreferencesCommitmentModel) {
	    this.getSummary = function () {
	        var updatedCommitment = ngPreferencesCommitmentModel.read();
	        preferencesSummaryDelegate.setCommitment(updatedCommitment);
	    };
	});


/***/ }),
/* 1965 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .service('loadProgramTermInfoCommand', function ($http, defineCommandORM, log, ngTermProgramInfoModel) {
	    'use strict';
	    return defineCommandORM('loadProgramTermInfoCommand', function (deferred, termId) {
	        $http
	            .get("/reg/term/" + termId + "/", { cache: false })
	            .then(function (_a) {
	            var data = _a.data;
	            ngTermProgramInfoModel.write({
	                term: _4.first(_4.toArray(data.term)),
	                program: _4.first(_4.toArray(data.program))
	            });
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue('failed to load program and term information');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1966 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('getTermCoursesandScheduledSectionsCommand', function (getTermCoursesCommand, defineCommandORM, getTermSectionsCommand, updateCalendarSectionTimesCommand, loadAllRegistrationAttributesForSectionsCommand, log) {
	    return defineCommandORM('getTermCoursesandScheduledSectionsCommand', function (deferred, termId) {
	        getTermCoursesCommand(termId)
	            .then(function () { return getTermSectionsCommand(termId); })
	            .then(function () { return loadAllRegistrationAttributesForSectionsCommand(); })
	            .then(function () { return updateCalendarSectionTimesCommand(); })
	            .then(deferred.resolve)
	            .catch(function (e) {
	            log.issue('Failed to get courses or sections for this term');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1967 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .factory('getTermCoursesCommand', function ($http, defineCommandORM, QueryMediator, ngTermCoursesDatasource, ngTermPlannedCoursesDatasource, ngTermSectionTypesDatasource, ngTermSessionsDatasource, log) {
	    return defineCommandORM('getTermCoursesCommand', function (deferred, termId) {
	        return $http({
	            method: 'GET',
	            url: "reg/planned_courses/term/" + termId + "/"
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            ngTermCoursesDatasource.clear().write(data.course);
	            ngTermSessionsDatasource.clear().write(_4.get(data, 'session', {}));
	            ngTermPlannedCoursesDatasource.clear().write(data.planned_course);
	            ngTermSectionTypesDatasource.clear().write(data.section_type);
	            deferred.resolve(QueryMediator.runQueries(ngTermPlannedCoursesDatasource, ngTermCoursesDatasource, ngTermSectionTypesDatasource, ngTermSessionsDatasource));
	        })
	            .catch(function (e) {
	            log.issue('Failed to get courses for this term');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1968 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .factory('getTermSectionsCommand', function ($http, $q, defineCommandORM, ngCampusesDatasource, ngLocationsDatasource, ngSectionTimesDatasource, ngSectionsDatasource, ngSchedulerModel, ngRegistrationWaitlistPositionModel, ngWaitlistStatusDatasource, ngSectionAvailabilityDatasource, ngLinkedSectionsModel, ngSectionLabelsDatasource, ngSelectedUnscheduledSectionModel, ngCrossCourseCorequisitesDatasource, ngLoadCrossCourseLinkedSectionsFacade, log) {
	    return defineCommandORM('getTermSectionsCommand', function (deferred, termId) {
	        $q.all({
	            schedule: $http({
	                method: 'GET',
	                url: "reg/course_schedule/term/" + termId + "/"
	            })
	        })
	            .then(function (responses) {
	            // Clear all supporting datasources on load.
	            // TODO refactor ngSectionAvailabilityDatasource, ngWaitlistStatusDatasource.  Are they now the same?
	            ngSectionAvailabilityDatasource.clear().write(_4.get(responses, 'schedule.data.section_status', {}));
	            ngSelectedUnscheduledSectionModel.clear();
	            ngCampusesDatasource.write(_4.get(responses, 'schedule.data.campus', {}));
	            ngSectionLabelsDatasource.write(_4.get(responses, 'schedule.data.section_labels'));
	            ngLocationsDatasource.clear().write(_4.get(responses, 'schedule.data.location', {}));
	            ngLinkedSectionsModel.clear().write(_4.get(responses, 'schedule.data.section_link', {}));
	            ngSectionTimesDatasource.clear().write(_4.get(responses, 'schedule.data.section_time', {}));
	            ngWaitlistStatusDatasource.clear().write(_4.get(responses, 'schedule.data.section_status', {}));
	            ngSchedulerModel.write({
	                channel_name: responses.schedule.data.channel_name,
	                in_state_credit_cost: responses.schedule.data.in_state_credit_cost
	            });
	            ngSectionsDatasource.clear().write(_4.get(responses, 'schedule.data.section', {}));
	            ngCrossCourseCorequisitesDatasource.clear();
	            var missingSections = ngLoadCrossCourseLinkedSectionsFacade.loadCrossCourseLinkedSections(ngLinkedSectionsModel.read());
	            var waitlistPositions = _4.get(responses, 'schedule.data.waitlist_position', {});
	            ngRegistrationWaitlistPositionModel.clear();
	            _4.each(waitlistPositions, function (position) {
	                ngRegistrationWaitlistPositionModel.put({
	                    place_in_waitlist: position.place_in_waitlist,
	                    waitlist_position: position.position,
	                    section: position.section
	                });
	            });
	            return $q.all(tslib_1.__spreadArrays(missingSections)).then(function () {
	                deferred.resolve();
	            });
	        })
	            .catch(function (e) {
	            log.issue('Failed to get courses for this term');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 1969 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var CourseIconsController = /** @class */ (function () {
	    function CourseIconsController(ngTermCourseServant) {
	        this.ngTermCourseServant = ngTermCourseServant;
	        this.hasPrereqs = false;
	        this.hasCoreqs = false;
	    }
	    // TODO: Recuce complexity
	    /* tslint:disable:cognitive-complexity */
	    CourseIconsController.prototype.initialize = function () {
	        this.hasMissingPrereqs = this.ngTermCourseServant.hasPreRequistes(this.course);
	        this.hasMissingCoreqs = this.ngTermCourseServant.hasCoRequistes(this.course);
	        this.isDevreq = this.ngTermCourseServant.isDevReq(this.course);
	        this.courseInfoTheme = this.hasMissingCoreqs || this.hasMissingPrereqs ? 'red' : 'gray-dark';
	        this.iconId = _4.uniqueId('icon_');
	        this.showAlert = this.hasMissingPrereqs || this.hasMissingCoreqs;
	        this.hasCoreqs = _4.get(this.course, 'has_coreq', false);
	        this.hasPrereqs = _4.get(this.course, 'has_prereq', false);
	        var missingPreReqs = this.course._missing_prereqs;
	        var missingCoReqs = this.course._missing_coreqs;
	        var needsAttentionTemplate = "<strong class='clr-error-txt text-bold'>Needs Attention</strong>";
	        var cautionTitlePrereqs = this.hasMissingPrereqs ? needsAttentionTemplate : '';
	        var cautionTitleCoreqs = this.hasMissingCoreqs && this.isCoreqEnforcementEnabled
	            ? "<strong class='clr-error-txt text-bold'>Must be taken with (co-requisites): </strong>"
	            : this.hasMissingCoreqs
	                ? needsAttentionTemplate
	                : '';
	        var courseTitleTemplate = function (courses, isEnforcedCoReqs) {
	            if (isEnforcedCoReqs === void 0) { isEnforcedCoReqs = false; }
	            var specialClass = isEnforcedCoReqs ? "clr-primary-txt" : "";
	            return _4.reduce(courses, function (concat, course) {
	                return concat + " <li class=\"" + specialClass + "\"><strong class='text-bold'>" + course.cd + "</strong> " + course.title + "</li>";
	            }, '');
	        };
	        var preReqCourseTemplate = this.hasMissingPrereqs
	            ? "<p class='mtm'> One (or more) of these prerequisites need to be added to an earlier term. Click the course name for more details </p>\n      <ul>" + courseTitleTemplate(missingPreReqs) + "</ul>"
	            : "";
	        var coReqCourseTemplate = this.hasMissingCoreqs
	            ? "<p class='mtm'>One (or more) of these co-requisites need to be added to the same term as this course. Click the course name for more details</p>\n      <ul>" + courseTitleTemplate(missingCoReqs) + "</ul> <hr class='mbl mtm'>"
	            : "";
	        var enforcedCoReqCourseTemplate = this.hasMissingCoreqs
	            ? "<strong class='clr-rust-txt text-bold'>Must be taken with (co-requisites): </strong>\n      <ul>" + courseTitleTemplate(missingCoReqs, this.isCoreqEnforcementEnabled) + "</ul>"
	            : "";
	        this.coursePreReqContent = this.hasMissingPrereqs ? "" + cautionTitlePrereqs + preReqCourseTemplate : "";
	        this.courseCoReqContent = this.hasMissingCoreqs
	            ? "" + (this.isCoreqEnforcementEnabled ? enforcedCoReqCourseTemplate : coReqCourseTemplate)
	            : "";
	        this.courseContent = "" + this.coursePreReqContent + this.courseCoReqContent + "\n                          <p><strong class='text-bold'>Credits</strong> " + this.course.credits + "</p>\n                          <strong class='text-bold'>Course Description</strong>\n                          <p>" + this.course.desc + "</p>";
	    };
	    CourseIconsController.prototype.$onInit = function () {
	        this.initialize();
	    };
	    CourseIconsController.prototype.$onChanges = function (changes) {
	        this.initialize();
	    };
	    return CourseIconsController;
	}());
	var CourseIconsComponent = /** @class */ (function () {
	    function CourseIconsComponent() {
	        this.bindings = {
	            course: '<',
	            isCoreqEnforcementEnabled: '<'
	        };
	        this.controller = CourseIconsController;
	        this.templateUrl = 'capability-ng-scheduler/src/views/term_courses/components/course_icons/course_icons.html';
	    }
	    return CourseIconsComponent;
	}());
	angular.module('capability-ng-scheduler').component('courseIcons', new CourseIconsComponent());


/***/ }),
/* 1970 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var CourseTileController = /** @class */ (function () {
	    function CourseTileController(ngTermScheduleFlags, ngCourseDetailsFacade, ngViewSectionsFacade) {
	        this.ngTermScheduleFlags = ngTermScheduleFlags;
	        this.ngCourseDetailsFacade = ngCourseDetailsFacade;
	        this.ngViewSectionsFacade = ngViewSectionsFacade;
	    }
	    CourseTileController.prototype.showSections = function () {
	        return this.ngViewSectionsFacade.showSections(this.course);
	    };
	    CourseTileController.prototype.isCoreqEnforcementEnabled = function () {
	        return this.ngTermScheduleFlags.isCoreqEnforcementEnabled();
	    };
	    CourseTileController.prototype.openCourseDetail = function () {
	        this.ngCourseDetailsFacade.openCourseDetails(this.course.nk);
	    };
	    return CourseTileController;
	}());
	var CourseTileComponent = /** @class */ (function () {
	    function CourseTileComponent() {
	        this.bindings = {
	            course: '<'
	        };
	        this.controller = CourseTileController;
	        this.templateUrl = 'capability-ng-scheduler/src/views/term_courses/components/course_tile/course_tile.html';
	    }
	    return CourseTileComponent;
	}());
	angular.module('capability-ng-scheduler').component('courseTile', new CourseTileComponent());


/***/ }),
/* 1971 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var MultiSectionCourseTile = /** @class */ (function () {
	    function MultiSectionCourseTile($state, $stateParams, ngScheduledSectionServant, ngCourseDetailsFacade, ngSectionSwapServant, updateSwapFromSectionTypeCommand, ngCourseSectionSwapModel, ngTermSectionTypesDatasource) {
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	        this.ngScheduledSectionServant = ngScheduledSectionServant;
	        this.ngCourseDetailsFacade = ngCourseDetailsFacade;
	        this.ngSectionSwapServant = ngSectionSwapServant;
	        this.updateSwapFromSectionTypeCommand = updateSwapFromSectionTypeCommand;
	        this.ngCourseSectionSwapModel = ngCourseSectionSwapModel;
	        this.ngTermSectionTypesDatasource = ngTermSectionTypesDatasource;
	        this.sectionTypeMetadata = {
	            scheduled: {},
	            scheduledSectionTypes: []
	        };
	        this.showSessionHeader = false;
	        this.isRescheduling = false;
	        this.throttledSectionStatusCheck = _4.throttle(this.checkSectionTypeStatus, 3000, { trailing: false });
	    }
	    MultiSectionCourseTile.prototype.$onInit = function () {
	        this.showSessionHeader = _4.gt(_4.filter(this.course._session_section_types, function (session) { return session.session !== '-1'; }).length, 0);
	        var courseIdFromParams = _4.get(this.$state, '__previousRoute__.params.courseId');
	        this.toggleSectionTypes = _4.isEqual(this.course.id, _4.parseInt(courseIdFromParams));
	    };
	    MultiSectionCourseTile.prototype.isSessionActive = function (sessionId) {
	        if (_4.isEmpty(this.scheduledSectionTypes)) {
	            return true;
	        }
	        if (this.ngSectionSwapServant.isInSwapMode()) {
	            return _4.toString(this.ngCourseSectionSwapModel.read().session) === _4.toString(sessionId);
	        }
	        if (this.areAllsectionsScheduledinSession(sessionId)) {
	            return false;
	        }
	        var isSessionScheduled = _4.includes(_4.map(this.scheduledSectionTypes, 'session'), _4.toNumber(sessionId));
	        return this.isRescheduling ? !isSessionScheduled : isSessionScheduled;
	    };
	    MultiSectionCourseTile.prototype.areAllsectionsScheduledinSession = function (sessionId) {
	        var sectionTypeIdsforSession = _4.sortBy(_4.map(_4.get(_4.first(_4.filter(this.course._session_section_types, function (session) { return session.session === sessionId; })), 'section_types'), 'id'));
	        var allScheduledSectionTypeIds = _4.sortBy(_4.map(this.scheduledSectionTypes, 'id'));
	        var areAllSectionsScheduled = allScheduledSectionTypeIds.length >= sectionTypeIdsforSession.length;
	        var allSectionsForSessionScheduled = sectionTypeIdsforSession.every(function (sectionId) {
	            return allScheduledSectionTypeIds.includes(sectionId);
	        });
	        return areAllSectionsScheduled && allSectionsForSessionScheduled;
	    };
	    MultiSectionCourseTile.prototype.showSession = function (sessionId) {
	        if (this.ngSectionSwapServant.isInSwapCourseMode()) {
	            return true;
	        }
	        if (this.ngSectionSwapServant.isInSwapMode()) {
	            return _4.toString(this.ngCourseSectionSwapModel.read().session) === _4.toString(sessionId);
	        }
	        return true;
	    };
	    MultiSectionCourseTile.prototype.isSessionEnabled = function (sessionId, sectionType) {
	        var scheduledSessions = [];
	        if (_4.isEmpty(this.scheduledSectionTypes)) {
	            return true;
	        }
	        scheduledSessions = _4.keys(_4.groupBy(this.scheduledSectionTypes, 'session'));
	        var isSectionTypeOfSameSessionScheduled = _4.find(this.scheduledSectionTypes, {
	            session: parseInt(sessionId, 10),
	            id: sectionType.id
	        });
	        if (this.isRescheduling) {
	            if (_4.includes(scheduledSessions, sessionId) && isSectionTypeOfSameSessionScheduled) {
	                return false;
	            }
	            return true;
	        }
	        var isSessionSectionTypeEnabled = _4.includes(scheduledSessions, sessionId);
	        if (isSessionSectionTypeEnabled) {
	            var isSessionSectionTypeScheduled = this.isSectionTypeScheduled(sectionType);
	            return !isSessionSectionTypeScheduled;
	        }
	        return isSessionSectionTypeEnabled;
	    };
	    MultiSectionCourseTile.prototype.$onChanges = function () {
	        var _this = this;
	        this.checkSectionTypeStatus();
	        this.scheduledSectionTypes = _4.filter(this.course._section_types, function (sectionType) {
	            return _this.ngScheduledSectionServant.isSectionTypeScheduled(sectionType);
	        });
	    };
	    MultiSectionCourseTile.prototype.getTruncatedString = function (str) {
	        return _4.truncate(str, { length: 25 });
	    };
	    MultiSectionCourseTile.prototype.isSectionTypeScheduled = function (sectionType) {
	        // Throttle this check - expensive to be on a view.
	        this.throttledSectionStatusCheck();
	        return this.sectionTypeMetadata.scheduled[sectionType.id];
	    };
	    MultiSectionCourseTile.prototype.isSectionTypeBadgeScheduled = function (sectionType) {
	        return _4.includes(this.sectionTypeMetadata.scheduledSectionTypes, sectionType.name);
	    };
	    MultiSectionCourseTile.prototype.showCheckMark = function (sectionType) {
	        return this.sectionTypeMetadata.scheduled[sectionType.id];
	    };
	    MultiSectionCourseTile.prototype.getAriaLabel = function (sectionType, course) {
	        return this.isSectionTypeScheduled(sectionType)
	            ? "Scheduled section " + sectionType.name + " for " + course.title + " Course"
	            : "Click to View " + sectionType.name + " Sections for " + course.title + " Course";
	    };
	    MultiSectionCourseTile.prototype.goToSectionGroup = function (sectionType, session) {
	        if (!this.isSessionEnabled(session, sectionType)) {
	            return;
	        }
	        if (this.isSectionTypeScheduled(sectionType)) {
	            return;
	        }
	        if (this.ngSectionSwapServant.isInSwapMode()) {
	            this.$state.go('my.schedule.registration.swap.courseSections', {
	                courseId: sectionType.course,
	                sectionTypeId: sectionType.id,
	                ignoreConflicts: true,
	                swapCourse: this.$stateParams.swapCourse === 'true'
	            });
	            this.updateSwapFromSectionTypeCommand(sectionType);
	        }
	        else {
	            this.$state.go('my.schedule.registration.courseSections', {
	                courseId: sectionType.course,
	                sectionTypeId: sectionType.id
	            });
	        }
	    };
	    MultiSectionCourseTile.prototype.courseTilePressed = function () {
	        this.toggleSectionTypes = !this.toggleSectionTypes;
	    };
	    MultiSectionCourseTile.prototype.openCourseDetail = function () {
	        this.ngCourseDetailsFacade.openCourseDetails(this.course.nk);
	    };
	    MultiSectionCourseTile.prototype.handleExpandToggleKeyDown = function ($event) {
	        if ($event.key === 'Enter' || $event.key === ' ') {
	            this.courseTilePressed();
	        }
	    };
	    MultiSectionCourseTile.prototype.checkSectionTypeStatus = function () {
	        var _this = this;
	        if (this.ngSectionSwapServant.isInSwapMode()) {
	            this.swapCheckSectionTypeStatus();
	            return;
	        }
	        _4.each(this.course._section_types, function (sectionType) {
	            if (_this.ignoreFullStatus) {
	                _this.sectionTypeMetadata.scheduled[sectionType.id] = false;
	            }
	            else {
	                _this.sectionTypeMetadata.scheduled[sectionType.id] =
	                    _this.ngScheduledSectionServant.isSectionTypeScheduled(sectionType);
	            }
	        });
	        var selectedSectionTypeIdsforSession = _4.compact(_4.map(this.sectionTypeMetadata.scheduled, function (value, key) { return value && key; }));
	        var selectedSectionTypeNames = _4.compact(_4.map(_4.values(_4.pick(this.ngTermSectionTypesDatasource.read(), selectedSectionTypeIdsforSession)), 'name'));
	        this.sectionTypeMetadata.scheduledSectionTypes = selectedSectionTypeNames;
	        // each this.course._section_types_by_session
	        //  sessionGroup.disabled = (sessionGroup.id != plannedSessionId)
	        // Above code tells you which section type is planned.
	        // That secition type has session id.
	        // Use that session id to enable that session group and disabled others.
	    };
	    MultiSectionCourseTile.prototype.swapCheckSectionTypeStatus = function () {
	        var _this = this;
	        _4.each(this.course._section_types, function (sectionType) {
	            var isSectionTypeSelectedForSwap = !_4.isEmpty(_4.find(_this.ngCourseSectionSwapModel.read().swap_to_section_ids, { section_type: sectionType.id }));
	            _this.sectionTypeMetadata.scheduled[sectionType.id] = isSectionTypeSelectedForSwap;
	        });
	    };
	    return MultiSectionCourseTile;
	}());
	var MultiSectionCourseTileComponent = /** @class */ (function () {
	    function MultiSectionCourseTileComponent() {
	        this.bindings = {
	            course: '<',
	            ignoreFullStatus: '@',
	            isRescheduling: '<?',
	            opened: '@'
	        };
	        this.controller = MultiSectionCourseTile;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/term_courses/components/multi_section_course_tile/multi_section_course_tile.html';
	    }
	    return MultiSectionCourseTileComponent;
	}());
	angular.module('capability-ng-scheduler').component('multiSectionCourseTile', new MultiSectionCourseTileComponent());


/***/ }),
/* 1972 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var TermCoursesController = /** @class */ (function () {
	    function TermCoursesController(ngTermCourseQuery) {
	        this.ngTermCourseQuery = ngTermCourseQuery;
	    }
	    return TermCoursesController;
	}());
	var TermCoursesComponent = /** @class */ (function () {
	    function TermCoursesComponent() {
	        this.templateUrl = 'capability-ng-scheduler/src/views/term_courses/components/term_courses_list/term_courses_list.html';
	        this.controller = TermCoursesController;
	    }
	    return TermCoursesComponent;
	}());
	angular.module('capability-ng-scheduler').component('termCoursesList', new TermCoursesComponent());


/***/ }),
/* 1973 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var term_course_builder_1 = __webpack_require__(783);
	var _4 = __webpack_require__(1);
	var CoursesMeta = /** @class */ (function () {
	    function CoursesMeta() {
	    }
	    return CoursesMeta;
	}());
	angular.module('capability-ng-scheduler').factory('ngTermCoursesDatasource', function (ngTermSectionTypesDatasource, ngTermPlannedCoursesDatasource, ngSectionTypeFilters) {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: term_course_builder_1.TermCourse,
	        writeMode: 'clobber',
	        updateMode: 'merge'
	    }).includeMetasource(function (datasource) {
	        return new utility_ng_kernel_1.Metasource(datasource)
	            .includeAttribute('_section_types', function (course) {
	            return _4.filter(ngTermSectionTypesDatasource.read(), function (sectionType) { return sectionType.course === course.id; });
	        })
	            .includeAttribute('_section_parts', function (course) {
	            return _4.uniqBy(_4.filter(ngTermSectionTypesDatasource.read(), function (sectionType) { return sectionType.course === course.id; }), 'name');
	        })
	            .includeAttribute('_has_multi_section_types', function (course) {
	            return (_4.size(_4.filter(ngTermSectionTypesDatasource.read(), function (sectionType) { return sectionType.course === course.id; })) >
	                1);
	        })
	            .includeAttribute('_planned_course', function (course) {
	            return _4.find(ngTermPlannedCoursesDatasource.read(), function (plannedCourse) { return plannedCourse.course === course.id; });
	        })
	            .includeAttribute('_session_section_types', function (course) {
	            var sectionTypes = _4.filter(ngTermSectionTypesDatasource.read(), function (sectionType) { return sectionType.course === course.id; });
	            return ngSectionTypeFilters.getSessionSectionTypesForCourse(sectionTypes);
	        })
	            .includeAttribute('_missing_prereqs', function (course) {
	            var courses = datasource.read();
	            var plndCourse = _4.find(ngTermPlannedCoursesDatasource.read(), function (plannedCourse) { return plannedCourse.course === course.id; });
	            var preReqIds = _4.concat(_4.get(plndCourse, 'prereq_miss', []), _4.get(plndCourse, 'prereq_outoforder', []));
	            var preRequisites = _4.compact(_4.map(preReqIds, function (preReqId) { return _4.find(courses, function (c) { return c.id === preReqId; }); }));
	            return preRequisites;
	        })
	            .includeAttribute('_missing_coreqs', function (course) {
	            var plndCourse = _4.find(ngTermPlannedCoursesDatasource.read(), function (plannedCourse) { return plannedCourse.course === course.id; });
	            var courses = datasource.read();
	            var coReqIds = _4.concat(_4.get(plndCourse, 'coreq_miss', []), _4.get(plndCourse, 'coreq_outoforder', []));
	            var coRequisites = _4.compact(_4.map(coReqIds, function (coReqId) { return _4.find(courses, function (c) { return c.id === coReqId; }); }));
	            return coRequisites;
	        })
	            .includeManyToMany('_coreq_courses', datasource, 'coreq');
	    });
	});


/***/ }),
/* 1974 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var term_planned_course_builder_1 = __webpack_require__(785);
	angular.module('capability-ng-scheduler').factory('ngTermPlannedCoursesDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: term_planned_course_builder_1.TermPlannedCourse
	    });
	});


/***/ }),
/* 1975 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var term_course_section_type_builder_1 = __webpack_require__(784);
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .factory('ngTermSectionTypesDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: term_course_section_type_builder_1.TermSectionType
	    });
	})
	    .run(function (ngTermSectionTypesDatasource, schedulerConfigModel) {
	    // When reg-all_section_type_mandatory feature is enabled all sectionTypes are required.
	    ngTermSectionTypesDatasource.$prePut = function (sectionType) {
	        if (_4.isNull(_4.get(sectionType, 'is_required', false))) {
	            sectionType.is_required = false;
	        }
	        if (schedulerConfigModel.isFeatureEnabled('reg-all_section_type_mandatory')) {
	            sectionType.is_required = true;
	        }
	        return sectionType;
	    };
	});


/***/ }),
/* 1976 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var term_session_builder_1 = __webpack_require__(786);
	angular.module('capability-ng-scheduler').factory('ngTermSessionsDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: term_session_builder_1.TermSession
	    });
	});


/***/ }),
/* 1977 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var ViewSectionsFacade = /** @class */ (function () {
	    function ViewSectionsFacade($state, ngSectionSwapServant) {
	        this.$state = $state;
	        this.ngSectionSwapServant = ngSectionSwapServant;
	    }
	    ViewSectionsFacade.prototype.showSections = function (course) {
	        var sectionTypeInCourse = _4.get(course, '_section_types[0].id', 0);
	        var stateParameters = {
	            courseId: course.id,
	            sectionTypeId: sectionTypeInCourse
	        };
	        if (this.ngSectionSwapServant.isInSwapMode()) {
	            return this.$state.go("my.schedule.registration.swap.courseSections", tslib_1.__assign(tslib_1.__assign({}, stateParameters), { ignoreConflicts: true, swapCourse: true }));
	        }
	        return this.$state.go("my.schedule.registration.courseSections", stateParameters);
	    };
	    return ViewSectionsFacade;
	}());
	exports.ViewSectionsFacade = ViewSectionsFacade;
	angular.module('capability-ng-scheduler').service('ngViewSectionsFacade', ViewSectionsFacade);


/***/ }),
/* 1978 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var term_course_servant_1 = __webpack_require__(14);
	var _4 = __webpack_require__(1);
	var CourseFilters = /** @class */ (function () {
	    function CourseFilters(ngTermCourseServant) {
	        this.ngTermCourseServant = ngTermCourseServant;
	    }
	    CourseFilters.prototype.filterPlannedCourses = function (courses, term) {
	        return _4.filter(courses, function (course) {
	            var plannedCourseId = _4.get(course, '_planned_course.id', -1);
	            var planedCourseTerm = _4.get(course, '_planned_course.term', -1);
	            return term_course_servant_1.TermCourseServant.isCoursePlanned(course) && plannedCourseId > 0 && planedCourseTerm === term;
	        });
	    };
	    CourseFilters.prototype.filterScheduledCourses = function (courses) {
	        var _this = this;
	        return _4.filter(courses, function (course) { return _this.ngTermCourseServant.isCourseScheduled(course); });
	    };
	    CourseFilters.prototype.filterUnscheduledCourses = function (courses) {
	        var _this = this;
	        return _4.filter(courses, function (course) { return !_this.ngTermCourseServant.isCourseScheduled(course); });
	    };
	    return CourseFilters;
	}());
	exports.CourseFilters = CourseFilters;
	angular.module('capability-ng-scheduler').service('ngCourseFilters', CourseFilters);


/***/ }),
/* 1979 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SectionTypeFilters = /** @class */ (function () {
	    function SectionTypeFilters(ngTermSessionsDatasource, ngTermProgramInfoModel) {
	        this.ngTermSessionsDatasource = ngTermSessionsDatasource;
	        this.ngTermProgramInfoModel = ngTermProgramInfoModel;
	    }
	    SectionTypeFilters.prototype.activeSectionTypes = function (sectionTypes) {
	        return _4.filter(sectionTypes, function (sectionType) { return sectionType.is_active; });
	    };
	    SectionTypeFilters.prototype.validSectionTypes = function (sectionTypes) {
	        return this.activeSectionTypes(sectionTypes);
	    };
	    SectionTypeFilters.prototype.getSectionTypesForCourse = function (sectionTypes, course) {
	        return _4.sortBy(_4.filter(sectionTypes, function (sectionType) { return sectionType.course === course.id; }), [function (sectionType) { return sectionType.rank; }]);
	    };
	    SectionTypeFilters.prototype.getSessionSectionTypesForCourse = function (sectionTypesForCourse) {
	        var _this = this;
	        var hasSessions = !_4.isEmpty(_4.compact(_4.map(sectionTypesForCourse, function (sectionType) { return sectionType.session; })));
	        if (!hasSessions) {
	            return [
	                {
	                    session: '-1',
	                    timeSliceStartDate: '',
	                    timeSliceEndDate: '',
	                    sessionStartTimeStamp: 0,
	                    section_types: sectionTypesForCourse
	                }
	            ];
	        }
	        var courseSessions = _4.compact(_4.map(_4.groupBy(sectionTypesForCourse, 'session'), function (value, sessionId) {
	            var _a = _this.getSessionDates(sessionId), timeSliceStartDate = _a.timeSliceStartDate, timeSliceEndDate = _a.timeSliceEndDate, sessionStartTimeStamp = _a.sessionStartTimeStamp;
	            return {
	                session: sessionId,
	                sessionStartTimeStamp: sessionStartTimeStamp,
	                timeSliceStartDate: timeSliceStartDate,
	                timeSliceEndDate: timeSliceEndDate,
	                section_types: value
	            };
	        }));
	        return _4.sortBy(courseSessions, 'sessionStartTimeStamp');
	    };
	    SectionTypeFilters.prototype.getSessionDates = function (sessionId) {
	        var DATE_WITH_YEAR_FORMAT = 'MMM Do YYYY';
	        var sessionsData = this.ngTermSessionsDatasource.read();
	        var startDate = _4.get(sessionsData, sessionId + ".session_start_dt", '');
	        var endDate = _4.get(sessionsData, sessionId + ".session_end_dt", '');
	        if (!_4.isEmpty(startDate) && !_4.isEmpty(endDate)) {
	            var sessionStart = moment(startDate, 'YYYY-MM-DD');
	            var sessionStartTimeStamp = sessionStart.valueOf();
	            var sessionEnd = moment(endDate, 'YYYY-MM-DD');
	            var format = sessionStart.year() !== sessionEnd.year() ? DATE_WITH_YEAR_FORMAT : 'MMM Do';
	            var timeSliceStartDate = sessionStart.format(format);
	            var timeSliceEndDate = sessionEnd.format(DATE_WITH_YEAR_FORMAT);
	            return {
	                timeSliceStartDate: timeSliceStartDate,
	                timeSliceEndDate: timeSliceEndDate,
	                sessionStartTimeStamp: sessionStartTimeStamp
	            };
	        }
	        return {
	            timeSliceStartDate: '',
	            timeSliceEndDate: '',
	            sessionStartTimeStamp: 0
	        };
	    };
	    SectionTypeFilters.prototype.isSectionDurationShorterThanTerm = function (section) {
	        var ACCELERATED_THRESHOLD = 75;
	        var termData = this.ngTermProgramInfoModel.read().term;
	        if (!termData) {
	            return false;
	        }
	        var termStart = moment(termData.term_start_dt);
	        var termEnd = moment(termData.term_end_dt);
	        var sectionStart = moment(section.class_start_dt);
	        var sectionEnd = moment(section.class_end_dt);
	        var sectionDays = sectionEnd.diff(sectionStart, 'days');
	        var termDays = termEnd.diff(termStart, 'days');
	        return (sectionDays / termDays) * 100 < ACCELERATED_THRESHOLD;
	    };
	    SectionTypeFilters.prototype.createVirtualWeek = function (start, end) {
	        var week = {};
	        var weekStart = moment(start);
	        for (var i = 1; i < 8; i++) {
	            week[i] = moment(weekStart);
	            weekStart.add(1, 'day');
	        }
	        return week;
	    };
	    SectionTypeFilters.prototype.timeSliceFilter = function (sections, selectedSessionDates) {
	        var _this = this;
	        if (_4.isEmpty(selectedSessionDates.timeSliceStartDate)) {
	            return sections;
	        }
	        var sliceStart = moment(selectedSessionDates.timeSliceStartDate);
	        var sliceEnd = moment(selectedSessionDates.timeSliceEndDate);
	        var sectionsToReturn = [];
	        var virtualWeek = this.createVirtualWeek(sliceStart, sliceEnd);
	        _4.forEach(sections, function (calendarTime) {
	            var fromDate = _4.get(calendarTime, 'from_dt') || _4.get(calendarTime, 'section.class_start_dt');
	            var toDate = _4.get(calendarTime, 'to_dt') || _4.get(calendarTime, 'section.class_end_dt');
	            var isBusyTimeOrNoSectionTime = _4.isEmpty(fromDate) && _4.isEmpty(toDate);
	            var sectionOnline = calendarTime.day_of_week === 8;
	            if (isBusyTimeOrNoSectionTime) {
	                sectionsToReturn.push(calendarTime);
	            }
	            if (!sectionOnline &&
	                virtualWeek[calendarTime.day_of_week].isSameOrBefore(moment(toDate)) &&
	                _this.isSectionInTimeRange(sliceStart, sliceEnd, calendarTime)) {
	                sectionsToReturn.push(calendarTime);
	            }
	            if (sectionOnline && _this.isSectionInTimeRange(sliceStart, sliceEnd, calendarTime)) {
	                sectionsToReturn.push(calendarTime);
	            }
	        });
	        return sectionsToReturn;
	    };
	    SectionTypeFilters.prototype.isSectionInTimeRange = function (sliceStart, sliceEnd, sectionTime) {
	        var sectionStart;
	        var sectionEnd;
	        var sectionIsNotWithinSlice;
	        var sectionIsBetweenSlice;
	        var sectionIntersectsWithSliceStart;
	        var sectionIntersectsWithSliceEnd;
	        var sectionIsLargerThanSlice;
	        var sectionFromDt = _4.get(sectionTime, 'from_dt', '') || _4.get(sectionTime, 'section.class_start_dt', '');
	        var sectionToDt = _4.get(sectionTime, 'to_dt', '') || _4.get(sectionTime, 'section.class_end_dt', '');
	        sectionStart = moment(sectionFromDt).startOf('day');
	        sectionEnd = moment(sectionToDt).endOf('day');
	        sectionIsNotWithinSlice = sliceStart.isSameOrAfter(sectionEnd) || sliceEnd.isSameOrBefore(sectionStart);
	        sectionIsBetweenSlice = sliceStart.isSameOrBefore(sectionStart) && sliceEnd.isSameOrAfter(sectionEnd);
	        sectionIntersectsWithSliceStart = sliceStart.isSameOrAfter(sectionStart) && sliceEnd.isSameOrAfter(sectionEnd);
	        sectionIntersectsWithSliceEnd = sliceStart.isSameOrBefore(sectionStart) && sliceEnd.isSameOrBefore(sectionEnd);
	        sectionIsLargerThanSlice = sliceStart.isSameOrAfter(sectionStart) && sliceEnd.isSameOrBefore(sectionEnd);
	        return (!sectionIsNotWithinSlice &&
	            (sectionIsBetweenSlice ||
	                sectionIntersectsWithSliceStart ||
	                sectionIntersectsWithSliceEnd ||
	                sectionIsLargerThanSlice));
	    };
	    return SectionTypeFilters;
	}());
	exports.SectionTypeFilters = SectionTypeFilters;
	angular.module('capability-ng-scheduler').service('ngSectionTypeFilters', SectionTypeFilters);


/***/ }),
/* 1980 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var PreferencesSelectionModel = /** @class */ (function () {
	    function PreferencesSelectionModel() {
	    }
	    PreferencesSelectionModel.prototype.update = function (source) {
	        return this;
	    };
	    PreferencesSelectionModel.prototype.clear = function () {
	        return this;
	    };
	    PreferencesSelectionModel.prototype.write = function (source) {
	        // receives `prefs_first_visit` flag from backend
	        this._arePreferencesSelected = !source;
	        return this;
	    };
	    PreferencesSelectionModel.prototype.arePreferencesSelected = function () {
	        return this._arePreferencesSelected;
	    };
	    PreferencesSelectionModel.prototype.read = function () {
	        return this._arePreferencesSelected;
	    };
	    return PreferencesSelectionModel;
	}());
	exports.PreferencesSelectionModel = PreferencesSelectionModel;
	angular.module('capability-ng-scheduler').service('ngPreferencesSelectionModel', PreferencesSelectionModel);


/***/ }),
/* 1981 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	angular.module('capability-ng-scheduler').factory('ngTermProgramInfoModel', function () {
	    return new utility_ng_kernel_1.Model({
	        term: undefined,
	        program: undefined
	    });
	});


/***/ }),
/* 1982 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var TermCourseQuery = /** @class */ (function () {
	    function TermCourseQuery(ngSectionTypeFilters, ngTermCoursesDatasource, ngTermPlannedCoursesDatasource, ngTermSectionTypesDatasource, ngSectionsDatasource, ngSectionSwapServant, ngCourseFilters, $stateParams, ngCourseSectionSwapModel, ngTermProgramInfoModel) {
	        this.ngSectionTypeFilters = ngSectionTypeFilters;
	        this.ngTermCoursesDatasource = ngTermCoursesDatasource;
	        this.ngTermPlannedCoursesDatasource = ngTermPlannedCoursesDatasource;
	        this.ngTermSectionTypesDatasource = ngTermSectionTypesDatasource;
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngSectionSwapServant = ngSectionSwapServant;
	        this.ngCourseFilters = ngCourseFilters;
	        this.$stateParams = $stateParams;
	        this.ngCourseSectionSwapModel = ngCourseSectionSwapModel;
	        this.ngTermProgramInfoModel = ngTermProgramInfoModel;
	        utility_ts_orm_1.Query.registerQuery(this, ngTermCoursesDatasource, ngTermPlannedCoursesDatasource, ngCourseSectionSwapModel, ngTermSectionTypesDatasource, ngSectionsDatasource);
	    }
	    Object.defineProperty(TermCourseQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    TermCourseQuery.prototype.run = function () {
	        var termInfo = this.ngTermProgramInfoModel.read().term;
	        if (!termInfo) {
	            this._result = {
	                planned: [],
	                unscheduled: []
	            };
	            return this;
	        }
	        var termPlannedCourses = this.ngCourseFilters.filterPlannedCourses(this.ngTermCoursesDatasource.metasource().derived(), termInfo.id);
	        var unscheduled = this.ngCourseFilters.filterUnscheduledCourses(termPlannedCourses);
	        var swapModel = this.ngCourseSectionSwapModel.read();
	        var swapCourseId = swapModel.course;
	        var invalidCourseID = -1;
	        var hasFromCourseChosen = swapModel.course > invalidCourseID;
	        var removeCourseFromUnscheduled = this.ngSectionSwapServant.isInSwapCourseMode() && hasFromCourseChosen;
	        // While swapping a course, remove that course from the unscheduled courses list .
	        if (removeCourseFromUnscheduled) {
	            _4.remove(unscheduled, function (course) { return _4.isEqual(course.id, swapCourseId); });
	        }
	        this._result = {
	            planned: termPlannedCourses,
	            unscheduled: unscheduled
	        };
	        return this;
	    };
	    return TermCourseQuery;
	}());
	exports.TermCourseQuery = TermCourseQuery;
	angular.module('capability-ng-scheduler').service('ngTermCourseQuery', TermCourseQuery);


/***/ }),
/* 1983 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-scheduler')
	    .factory('getUnscheduledSectionsandAvailabilityCommand', function ($http, $q, defineCommandORM, QueryMediator, ngSectionAvailabilityDatasource, ngCampusesDatasource, ngMultiSectionServant, ngLocationsDatasource, ngSectionsDatasource, ngSectionLabelsDatasource, ngSectionTimesDatasource, ngLinkedSectionsModel, ngCourseSectionSwapModel, getSectionAvailabilityCommand, ngComponentCommunicatorService) {
	    return defineCommandORM('getUnscheduledSectionsandAvailabilityCommand', function (deferred, termId, courseId, sectionTypeId, ignoreConflicts, selectedSwapIds) {
	        if (_4.isEmpty(sectionTypeId)) {
	            sectionTypeId = 0;
	        }
	        var ignoreConflictIds = '';
	        var sectionSwapIdString = '';
	        if (ignoreConflicts) {
	            ignoreConflictIds =
	                '?ignore_conflicting_id=' +
	                    _4.reduce(ignoreConflicts, function (sum, item) { return sum + "&ignore_conflicting_id=" + item; });
	        }
	        if (!_4.isEmpty(selectedSwapIds)) {
	            sectionSwapIdString = ngMultiSectionServant.getSelectedSwapIds(selectedSwapIds);
	        }
	        return getSectionAvailabilityCommand(termId, courseId, sectionTypeId, "" + ignoreConflictIds + sectionSwapIdString).then(function () {
	            return $q
	                .all({
	                sections: $http({
	                    method: 'GET',
	                    url: "cat/sections/term/" + termId + "/course/" + courseId + "/section_type/" + sectionTypeId + "/"
	                })
	            })
	                .then(function (responses) {
	                ngLocationsDatasource.write(responses.sections.data.location);
	                ngSectionLabelsDatasource.write(responses.sections.data.section_labels);
	                var prevRegisteredSections = _4.filter(ngSectionsDatasource.read(), function (section) { return section.status !== scheduled_section_status_enum_1.ScheduledSectionStatus.UNSCHEDULED; });
	                ngCampusesDatasource.write(responses.sections.data.campus);
	                ngSectionTimesDatasource.write(responses.sections.data.section_time);
	                // Sections datasource must be written after SectionTimes, to
	                // have proper data when creating meta props
	                ngSectionsDatasource.write(responses.sections.data.section);
	                ngSectionsDatasource.write(prevRegisteredSections);
	                deferred.resolve();
	                ngComponentCommunicatorService.publish('SECTIONS_LOADED');
	            })
	                .catch(function (error) {
	                ngComponentCommunicatorService.publish('SECTIONS_LOADED');
	                deferred.reject(error);
	            });
	        });
	    });
	});


/***/ }),
/* 1984 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .factory('getSectionAvailabilityCommand', function ($http, defineCommandORM, ngSectionAvailabilityDatasource, ngLinkedSectionsModel, $q, ngLoadCrossCourseLinkedSectionsFacade) {
	    return defineCommandORM('getSectionAvailabilityCommand', function (deferred, termId, courseId, sectionTypeId, urlParams) {
	        if (urlParams === void 0) { urlParams = ''; }
	        $http({
	            method: 'GET',
	            url: "reg/sections/availability/term/" + termId + "/course/" + courseId + "/section_type/" + sectionTypeId + "/" + urlParams
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            var missingSections = ngLoadCrossCourseLinkedSectionsFacade.loadCrossCourseLinkedSections(data.section_link);
	            ngLinkedSectionsModel.write(data.section_link);
	            ngSectionAvailabilityDatasource.write(data.section_status);
	            return $q.all(missingSections).then(function () { return deferred.resolve(); });
	        })
	            .catch(deferred.reject);
	    });
	});


/***/ }),
/* 1985 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .service('loadCampusListCommand', function loadCampusListDefinition($http, defineCommandORM, ngCampusesDatasource) {
	    return defineCommandORM('loadCampusListCommand', function (deferred) {
	        return $http
	            .get("/inst/campus/")
	            .then(function (response) {
	            ngCampusesDatasource.clear().write(response.data);
	            deferred.resolve();
	        })
	            .catch(deferred.resolve);
	    });
	});


/***/ }),
/* 1986 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .service('removeSelectedUnscheduledSectionCommand', function removeSelectedUnscheduledSectionCommandDefinition(defineCommandORM, ngSelectedUnscheduledSectionModel, log) {
	    'use strict';
	    return defineCommandORM('removeSelectedUnscheduledSectionCommand', function removeSelectedUnscheduledSectionCommand(deferred, section) {
	        ngSelectedUnscheduledSectionModel.clear();
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1987 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .service('saveSelectedUnscheduledSectionCommand', function saveSelectedUnscheduledSectionCommandDefinition(defineCommandORM, ngSelectedUnscheduledSectionModel, log) {
	    'use strict';
	    return defineCommandORM('saveSelectedUnscheduledSectionCommand', function saveSelectedUnscheduledSectionCommand(deferred, section) {
	        ngSelectedUnscheduledSectionModel.write(section);
	        deferred.resolve();
	    });
	});


/***/ }),
/* 1988 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var scheduled_section_servant_1 = __webpack_require__(19);
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	angular
	    .module('capability-ng-scheduler')
	    .factory('scheduleSectionCommand', function ($http, defineCommandORM, QueryMediator, ngSectionsDatasource, ngSectionAvailabilityDatasource, ngWaitlistStatusDatasource, ngTermCoursesDatasource, ngRegisterSectionsDatasource, ngTermScheduleFlags, loadSectionRegistrationAttributesCommand, updateSectionSelectionsCommand, removeSectionSelectionCommand, $q) {
	    return defineCommandORM('scheduleSectionCommand', function (deferred, termId, sectionId) {
	        var sectionToSchedule = ngSectionsDatasource.get(sectionId);
	        if (sectionToSchedule) {
	            sectionToSchedule.status = scheduled_section_status_enum_1.ScheduledSectionStatus.PENDING;
	            ngSectionsDatasource.put(sectionToSchedule);
	            QueryMediator.runQueries(ngTermCoursesDatasource);
	        }
	        $http({
	            method: 'PUT',
	            url: "reg/course_schedule/term/" + termId + "/section/" + sectionId + "/"
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            // Update section with status set to  "SECTION_PICKED" and update in sections datasource.
	            var sectionToScheduleAvailability = ngSectionAvailabilityDatasource.get(sectionId);
	            if (sectionToScheduleAvailability) {
	                var id = sectionToScheduleAvailability.id, is_seat_available = sectionToScheduleAvailability.is_seat_available, is_waitlist_allowed = sectionToScheduleAvailability.is_waitlist_allowed, is_waitlist_full = sectionToScheduleAvailability.is_waitlist_full, is_auto_waitlist = sectionToScheduleAvailability.is_auto_waitlist, avail_seats = sectionToScheduleAvailability.avail_seats, last_refresh_ts = sectionToScheduleAvailability.last_refresh_ts, linked_section_coreqs_satisfied = sectionToScheduleAvailability.linked_section_coreqs_satisfied, has_linked_section_coreqs = sectionToScheduleAvailability.has_linked_section_coreqs;
	                ngWaitlistStatusDatasource.put({
	                    id: id,
	                    is_seat_available: is_seat_available,
	                    is_waitlist_allowed: is_waitlist_allowed,
	                    is_waitlist_full: is_waitlist_full,
	                    is_auto_waitlist: is_auto_waitlist,
	                    avail_seats: avail_seats,
	                    last_refresh_ts: last_refresh_ts,
	                    linked_section_coreqs_satisfied: linked_section_coreqs_satisfied,
	                    has_linked_section_coreqs: has_linked_section_coreqs
	                });
	            }
	            if (sectionToSchedule) {
	                sectionToSchedule.status = scheduled_section_status_enum_1.ScheduledSectionStatus.SECTION_PICKED;
	                ngSectionsDatasource.put(sectionToSchedule);
	            }
	            loadSectionRegistrationAttributesCommand(sectionId).then(function () {
	                if (sectionToSchedule) {
	                    var regSection = ngSectionsDatasource.metasource().compose(sectionToSchedule);
	                    var isSelected = scheduled_section_servant_1.ScheduledSectionServant.canBeSelected(regSection, ngTermScheduleFlags);
	                    regSection.is_selected = isSelected;
	                    ngRegisterSectionsDatasource.put(regSection);
	                    updateSectionSelectionsCommand(regSection.id, isSelected);
	                }
	                QueryMediator.runQueries(ngTermCoursesDatasource);
	                deferred.resolve();
	            });
	        })
	            .catch(function (_a) {
	            var data = _a.data;
	            if (sectionToSchedule) {
	                sectionToSchedule.status = scheduled_section_status_enum_1.ScheduledSectionStatus.UNSCHEDULED;
	                ngSectionsDatasource.put(sectionToSchedule);
	                ngRegisterSectionsDatasource.del(sectionToSchedule.id);
	                removeSectionSelectionCommand(sectionToSchedule.id);
	            }
	            QueryMediator.runQueries(ngTermCoursesDatasource);
	            deferred.reject(data);
	        });
	    });
	});


/***/ }),
/* 1989 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var scheduled_section_servant_1 = __webpack_require__(19);
	var section_status_servant_1 = __webpack_require__(31);
	var section_registration_servant_1 = __webpack_require__(59);
	angular
	    .module('capability-ng-scheduler')
	    .service('updateSectionSelectedFlagCommand', function updateSectionSelectedFlagCommandDefinition(defineCommandORM, $q, ngRegisterSectionsDatasource, ngSectionsDatasource, ngTermSectionTypesDatasource, ngTermScheduleFlags, ngCrossCourseLinkedSectionServant, updateSectionSelectionsCommand) {
	    return defineCommandORM('updateSectionSelectedFlagCommand', function updateSectionSelectedFlagCommand(deferred, sectionId) {
	        var section = ngSectionsDatasource.get(sectionId);
	        if (!section) {
	            return deferred.resolve();
	        }
	        var selectedFlagUpdateIds = [sectionId];
	        if (section_status_servant_1.SectionStatusServant.isStatusUnscheduled(section)) {
	            selectedFlagUpdateIds = [];
	        }
	        var crossCourseLinkedSectionIds = ngCrossCourseLinkedSectionServant.getSectionIdOfLinkedCrossCourses(sectionId, ngSectionsDatasource.metasource().derived());
	        var scheduledSiblingSections = section_registration_servant_1.SectionRegistrationServant.getScheduledSiblingSections(section, ngSectionsDatasource.metasource().derived(), ngTermSectionTypesDatasource.values());
	        var scheduledSiblingSectionIds = scheduledSiblingSections.map(function (_section) { return _section.id; });
	        selectedFlagUpdateIds = selectedFlagUpdateIds
	            .concat(crossCourseLinkedSectionIds)
	            .concat(scheduledSiblingSectionIds);
	        var updateSectionSelectionPromises = [];
	        selectedFlagUpdateIds.forEach(function (_sectionId) {
	            var _section = ngSectionsDatasource.get(_sectionId);
	            if (_section) {
	                var regSection = ngSectionsDatasource.metasource().compose(_section);
	                var isSelected = scheduled_section_servant_1.ScheduledSectionServant.isEligibleForSelection(regSection, ngTermScheduleFlags);
	                regSection.is_selected = isSelected;
	                ngRegisterSectionsDatasource.put(regSection);
	                updateSectionSelectionPromises.push(updateSectionSelectionsCommand(regSection.id, isSelected));
	            }
	        });
	        $q.all(updateSectionSelectionPromises).then(deferred.resolve);
	    });
	});


/***/ }),
/* 1990 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-scheduler')
	    .service('viewMoreTimesCommand', function viewMoreTimesCommand(defineCommand, ngUnscheduledSectionsQuery, ngUnscheduledSectionsVisibilityModel) {
	    'use strict';
	    return defineCommand('viewMoreTimesCommand', function (deferred, campus) {
	        ngUnscheduledSectionsVisibilityModel.viewMoreTimes(campus);
	        ngUnscheduledSectionsQuery.run();
	    });
	});


/***/ }),
/* 1991 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var registration_alert_messages_1 = __webpack_require__(32);
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	var _4 = __webpack_require__(1);
	var registration_waitlist_outcome_status_strategy_1 = __webpack_require__(44);
	angular
	    .module('capability-ng-scheduler')
	    .factory('waitlistSectionCommand', function ($http, defineCommandORM, QueryMediator, ngSectionsDatasource, ngTermCoursesDatasource, ngRegistrationAlertsServant, ngWaitlistCallbackServant, ngRegistrationCallbackServant, pusherService, ngSchedulerModel, $stateParams, $timeout, appConfigModel, $q, log, getTermCoursesandScheduledSectionsCommand, ngScheduledSectionsQuery, registrationActivityCommand, registrationRecieptCommand, ngRegistrationReceiptServant, removeFromRegisterSectionsCommand, removeSectionsRegistrationAttributesCommand, ngSchedulerNotificationDelegate) {
	    return defineCommandORM('waitlistSectionCommand', function (deferred, sectionIds, section_pins, regAttributesForSections, student_credentials) {
	        if (section_pins === void 0) { section_pins = {}; }
	        if (regAttributesForSections === void 0) { regAttributesForSections = {}; }
	        var SECONDS_60 = 60000;
	        var timeout = $q.defer();
	        var schedulerModel = ngSchedulerModel.read();
	        var sectionsToWaitlist = sectionIds.map(function (sectionId) {
	            return _4.find(tslib_1.__spreadArrays(ngScheduledSectionsQuery.result.list, _4.toArray(ngSectionsDatasource.read())), function (section) { return section.id === sectionId; });
	        });
	        var showWaitlistMessage = appConfigModel.model.member_features['reg-auto_waitlist_message'];
	        if (showWaitlistMessage) {
	            ngRegistrationAlertsServant.showPendingAlert(registration_alert_messages_1.RegistrationAlertMessages.PENDING_AUTO_WAITLIST_WAITLISTED_TEXT);
	        }
	        else {
	            ngRegistrationAlertsServant.showPendingAlert();
	        }
	        $timeout(function () {
	            timeout.resolve();
	        }, SECONDS_60);
	        // Waitlist Callback
	        var waitlistAddCallback = function (data) {
	            $q.all([
	                registrationActivityCommand($stateParams.termId),
	                removeFromRegisterSectionsCommand(sectionIds),
	                removeSectionsRegistrationAttributesCommand(sectionIds)
	            ]).then(function () {
	                var sectionsReceiptData = ngRegistrationReceiptServant.getReceiptData(sectionsToWaitlist.map(function (section) { return section.id; }));
	                registrationRecieptCommand(sectionsReceiptData, true).then(function () {
	                    ngRegistrationAlertsServant.hidePendingAlert();
	                    sectionIds.forEach(function (sectionId) {
	                        var result = data[sectionId];
	                        var waitlistPusherOutcome = {
	                            id: result.id,
	                            message: _4.get(result, 'message'),
	                            request_type: 'WAITLIST',
	                            success: result.success,
	                            place_in_waitlist: _4.get(result, 'place_in_waitlist', 0),
	                            is_registered: _4.get(result, 'is_registered', false),
	                            is_waitlisted: _4.get(result, 'is_waitlisted', false)
	                        };
	                        var isWaitlistRequestWaitlisted = ngWaitlistCallbackServant.isWaitlistRequestResultByType(waitlistPusherOutcome, registration_waitlist_outcome_status_strategy_1.OUTCOME_STATUS_TYPES.WAITLIST_REQUEST_WAITLISTED);
	                        var isWaitlistRequestRegistered = ngWaitlistCallbackServant.isWaitlistRequestResultByType(waitlistPusherOutcome, registration_waitlist_outcome_status_strategy_1.OUTCOME_STATUS_TYPES.WAITLIST_REQUEST_REGISTERED);
	                        var isWaitlistRequestFailed = ngWaitlistCallbackServant.isWaitlistRequestResultByType(waitlistPusherOutcome, registration_waitlist_outcome_status_strategy_1.OUTCOME_STATUS_TYPES.WAITLIST_REQUEST_FAILED);
	                        if (isWaitlistRequestWaitlisted) {
	                            getTermCoursesandScheduledSectionsCommand($stateParams.termId).then(function () {
	                                return ngWaitlistCallbackServant.waitlistSuccess(waitlistPusherOutcome);
	                            });
	                        }
	                        else if (isWaitlistRequestRegistered) {
	                            getTermCoursesandScheduledSectionsCommand($stateParams.termId).then(function () {
	                                ngRegistrationCallbackServant.setRegisteredStatus(waitlistPusherOutcome);
	                                ngRegistrationCallbackServant.showAutoRegisteredAlert(waitlistPusherOutcome);
	                            });
	                        }
	                        else if (isWaitlistRequestFailed) {
	                            ngWaitlistCallbackServant.waitlistFails(waitlistPusherOutcome);
	                        }
	                    });
	                    // Only resolve after callback;
	                    deferred.resolve(QueryMediator.runQueries(ngSectionsDatasource, ngTermCoursesDatasource));
	                });
	            });
	        };
	        // Setup callback to listen for waitlist pusher response
	        pusherService.bindToPusherEvent(schedulerModel.channel_name, 'registration_outcome_waitlist_add', waitlistAddCallback);
	        sectionsToWaitlist.forEach(function (sectionToWaitlist) {
	            if (sectionToWaitlist) {
	                sectionToWaitlist.status = scheduled_section_status_enum_1.ScheduledSectionStatus.PENDING;
	                ngSectionsDatasource.put(sectionToWaitlist);
	            }
	        });
	        QueryMediator.runQueries(ngSectionsDatasource, ngTermCoursesDatasource);
	        // Call server to initiate a waitlist for these sections
	        $http({
	            method: 'POST',
	            url: "/reg/register/term/" + $stateParams.termId + "/",
	            data: tslib_1.__assign(tslib_1.__assign({ method: 'W', sections: sectionIds, section_pins: section_pins }, regAttributesForSections), student_credentials),
	            cache: false,
	            timeout: timeout.promise
	        }).catch(function (_a) {
	            var data = _a.data;
	            sectionsToWaitlist.forEach(function (sectionToWaitlist) {
	                if (sectionToWaitlist) {
	                    sectionToWaitlist.status = scheduled_section_status_enum_1.ScheduledSectionStatus.UNSCHEDULED;
	                    ngSectionsDatasource.put(sectionToWaitlist);
	                }
	            });
	            QueryMediator.runQueries(ngSectionsDatasource, ngTermCoursesDatasource);
	            log.issue('failed to add to waitlist, please try again');
	            if (_4.has(data, 'detail')) {
	                ngSchedulerNotificationDelegate.warn(data.detail);
	            }
	            deferred.reject(data);
	        });
	    });
	});


/***/ }),
/* 1992 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var term_course_servant_1 = __webpack_require__(14);
	var _4 = __webpack_require__(1);
	var UnscheduledSectionTile = /** @class */ (function () {
	    function UnscheduledSectionTile($state, $stateParams, FEATURE_SECTION_LABEL_NK, schedulerConfigModel, ngUnscheduledSectionServant, ngTermCourseServant, ngSectionInfoServant, ngMeetingTimeServant, ngScreenQueryServant, waitlistSectionCommand, saveTermPinCommand, updateSeatAvailabilityCommand, getCrossCourseLinkedSectionsCommand, clearCrossCourseLinkedSectionsCommand, ngOpenModalFlag, $timeout, ngTermScheduleFlags, ngComponentCommunicatorService, ngSectionRegistrationAttributesQuery) {
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	        this.FEATURE_SECTION_LABEL_NK = FEATURE_SECTION_LABEL_NK;
	        this.schedulerConfigModel = schedulerConfigModel;
	        this.ngUnscheduledSectionServant = ngUnscheduledSectionServant;
	        this.ngTermCourseServant = ngTermCourseServant;
	        this.ngSectionInfoServant = ngSectionInfoServant;
	        this.ngMeetingTimeServant = ngMeetingTimeServant;
	        this.ngScreenQueryServant = ngScreenQueryServant;
	        this.waitlistSectionCommand = waitlistSectionCommand;
	        this.saveTermPinCommand = saveTermPinCommand;
	        this.updateSeatAvailabilityCommand = updateSeatAvailabilityCommand;
	        this.getCrossCourseLinkedSectionsCommand = getCrossCourseLinkedSectionsCommand;
	        this.clearCrossCourseLinkedSectionsCommand = clearCrossCourseLinkedSectionsCommand;
	        this.ngOpenModalFlag = ngOpenModalFlag;
	        this.$timeout = $timeout;
	        this.ngTermScheduleFlags = ngTermScheduleFlags;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.ngSectionRegistrationAttributesQuery = ngSectionRegistrationAttributesQuery;
	        this.conflictingMessageStyle = '';
	        this.sectionTitle = '';
	        this.isSectionFull = false;
	        this.showSectionFullBanner = false;
	        this.previewMode = false;
	        this.hasMultipleMeetingTimes = false;
	        this.showRegAttrs = false;
	        this.dropDownMenuItems = [];
	    }
	    UnscheduledSectionTile.prototype.initialize = function () {
	        // section times from server contain from and to times and indicate day of week through an integer
	        this.locationAndTimes = this.ngSectionInfoServant.calculateSectionTimes(this.section);
	        this.isSwapMode = _4.includes(this.$state.current.name || '', 'swap');
	        this.showActionButton = !this.isSwapMode;
	        this.availability = this.section._availability;
	        this.canAddToWaitlist = this.ngUnscheduledSectionServant.canAddToWaitlist(this.section);
	        this.isMultiSection = term_course_servant_1.TermCourseServant.isMultiSectionCourse(this.section._course);
	        this.sectionLabel = this.schedulerConfigModel.getConfigProperty(this.FEATURE_SECTION_LABEL_NK);
	        this.fullLocationString = this.ngSectionInfoServant.getSectionLocationString(this.section);
	        this.sectionLocation = this.fullLocationString;
	        this.sectionCampus = this.ngSectionInfoServant.getSectionCampus(this.section);
	        this.canDrag =
	            this.ngUnscheduledSectionServant.canDragSection(this.section) &&
	                this.section.status !== 'SECTION_PICKED' &&
	                this.ngScreenQueryServant.isScreenDesktop();
	        this.conflictingMessages = this.ngSectionInfoServant.getConflictingMessages(this.section);
	        // Pick the first message they are inf priority.
	        this.conflictingDisplayMessage = _4.get(this.conflictingMessages[0], 'message');
	        this.conflictingMessageStyle = _4.get(this.conflictingMessages[0], 'style');
	        this.isConflicting = this.ngUnscheduledSectionServant.isSectionConflicting(this.section);
	        this.courseTime = this.ngSectionInfoServant.sectionCourseTime(this.section);
	        this.isSectionFull = this.ngUnscheduledSectionServant.isSectionFull(this.section);
	        this.showSectionFullBanner = this.ngTermScheduleFlags.isFullSectionsSchedulingEnabled() && this.isSectionFull;
	        this.sectionTitle = _4.get(this.section, '_course.cd', '') + " - " + this.sectionLabel + " " + _4.get(this.section, 'cd', '');
	        this.hasMultipleMeetingTimes = this.ngMeetingTimeServant.hasMultipleMeetingTimes(this.section);
	        this.buildDropdownItems();
	    };
	    UnscheduledSectionTile.prototype.$onInit = function () {
	        this.initialize();
	        this.closeSectionModalBound = this.closeSectionDetailModal.bind(this);
	        this.ngComponentCommunicatorService.subscribe('CLOSE_SECTION_DETAIL_MODAL', this.closeSectionModalBound);
	    };
	    UnscheduledSectionTile.prototype.$onChanges = function (changes) {
	        this.initialize();
	    };
	    UnscheduledSectionTile.prototype.buildDropdownItems = function () {
	        this.dropDownMenuItems = [];
	        this.dropDownMenuItems.push({
	            action: 'view_section_details',
	            title: 'Details',
	            enabled: true
	        });
	    };
	    UnscheduledSectionTile.prototype.closeSectionDetailModal = function () {
	        this.clearCrossCourseLinkedSectionsCommand();
	    };
	    UnscheduledSectionTile.prototype.getCrossCourseLinkedSections = function () {
	        if (_4.get(this.section, '_availability.has_linked_section_coreqs', false)) {
	            this.getCrossCourseLinkedSectionsCommand(this.section.id);
	        }
	    };
	    return UnscheduledSectionTile;
	}());
	exports.UnscheduledSectionTile = UnscheduledSectionTile;
	var UnscheduledSectionTileComponent = /** @class */ (function () {
	    function UnscheduledSectionTileComponent() {
	        this.bindings = {
	            section: '<',
	            dragging: '<',
	            previewMode: '@',
	            showRegAttrs: '@?',
	            parentForm: '@?'
	        };
	        this.controller = UnscheduledSectionTile;
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/unscheduled_sections/components/unscheduled_section_tile/unscheduled_section_tile.html';
	    }
	    return UnscheduledSectionTileComponent;
	}());
	angular.module('capability-ng-scheduler').component('unscheduledSectionTile', new UnscheduledSectionTileComponent());


/***/ }),
/* 1993 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var registration_alert_messages_1 = __webpack_require__(32);
	var UnscheduledSections = /** @class */ (function () {
	    function UnscheduledSections($stateParams, $state, ngTermCoursesDatasource, $timeout, ngUnscheduledSectionsQuery, ngSectionFiltersQuery, ngSchedulerModel, ngComponentCommunicatorService, clearSectionFiltersCommand, clearSwapToSectionsCommand, ngTermScheduleFlags, ngSchedulerNotificationServant, ngSectionSwapServant) {
	        this.$stateParams = $stateParams;
	        this.$state = $state;
	        this.ngTermCoursesDatasource = ngTermCoursesDatasource;
	        this.$timeout = $timeout;
	        this.ngUnscheduledSectionsQuery = ngUnscheduledSectionsQuery;
	        this.ngSectionFiltersQuery = ngSectionFiltersQuery;
	        this.ngSchedulerModel = ngSchedulerModel;
	        this.ngComponentCommunicatorService = ngComponentCommunicatorService;
	        this.clearSectionFiltersCommand = clearSectionFiltersCommand;
	        this.clearSwapToSectionsCommand = clearSwapToSectionsCommand;
	        this.ngTermScheduleFlags = ngTermScheduleFlags;
	        this.ngSchedulerNotificationServant = ngSchedulerNotificationServant;
	        this.ngSectionSwapServant = ngSectionSwapServant;
	        this.tabWidgetIndex = ['available', 'conflicting', 'full'];
	        this.isInSwapMode = false;
	        this.showBackToPlannedCoursesLink = true;
	        this.isFiltersOpened = false;
	        this.noTimesAvailableCustomMessage = 'No times available. Times are not yet loaded for this course. Check back soon.';
	        this.showSeatsUpdateMessage = false;
	        this.isUpdating = false;
	        this.isLoadingSections = true;
	        this.sectionsFilter = 'available';
	    }
	    UnscheduledSections.prototype.$onInit = function () {
	        var _this = this;
	        var SMOOTH_TRANSITION_DISMISS = 3000; // 3sec
	        var WAIT_TIME_FOR_CALLBACK = 20000; // 20sec
	        this.noTimesAvailableCustomMessage = _4.get(this.ngSchedulerModel.read(), 'customtext.NO_TIMES_AVAILABLE.text', 'No times available. Times are not yet loaded for this course. Check back soon.');
	        this.course = this.ngTermCoursesDatasource.get(parseInt(this.$stateParams.courseId, 10)) || {};
	        this.isLoadingSections = true;
	        this.ngComponentCommunicatorService.subscribe('SECTIONS_LOADED', function () {
	            _this.isLoadingSections = false;
	        });
	        this.isInSwapMode = this.ngSectionSwapServant.isInSwapMode();
	        if (this.isInSwapMode) {
	            this.showBackToPlannedCoursesLink = this.$stateParams.swapCourse === 'true';
	        }
	        if (this.ngTermScheduleFlags.isOneClickRegistrationEnabled()) {
	            this.showSeatsUpdateMessage = true;
	            this.isUpdating = true;
	            this.ngSchedulerNotificationServant.showInfoNotification(registration_alert_messages_1.RegistrationAlertMessages.PENDING_REFRESH_SECTION_AVAILABILITY_TEXT);
	            var autoDismissTimer_1 = this.$timeout(function () {
	                _this.showSeatsUpdateMessage = false;
	            }, WAIT_TIME_FOR_CALLBACK);
	            this.ngComponentCommunicatorService.subscribe('SEATS_INFO_UPDATED', function () {
	                _this.showRefreshSectionAvailabilitySuccessNotificationOnce();
	                _this.isUpdating = false;
	                _this.updateTimeout = _this.$timeout(function () {
	                    _this.showSeatsUpdateMessage = false;
	                    _this.$timeout.cancel(autoDismissTimer_1);
	                }, SMOOTH_TRANSITION_DISMISS);
	            });
	        }
	    };
	    UnscheduledSections.prototype.showRefreshSectionAvailabilitySuccessNotificationOnce = function () {
	        if (this.isUpdating) {
	            this.ngSchedulerNotificationServant.closeCurrentNotification();
	            this.ngSchedulerNotificationServant.showSuccessNotification(registration_alert_messages_1.RegistrationAlertMessages.SUCCESSFUL_REFRESH_SECTION_AVAILABILITY_TEXT);
	        }
	    };
	    UnscheduledSections.prototype.gotoPlannedCourses = function () {
	        var _this = this;
	        if (!this.isInSwapMode) {
	            return this.$state.go('my.schedule.registration');
	        }
	        return this.clearSwapToSectionsCommand().then(function () {
	            var previousState = _this.ngSectionSwapServant.getPreviousSwapState(_this.$stateParams.swapCourse);
	            _this.$state.go(previousState, {
	                courseId: _this.$stateParams.courseId,
	                sectionTypeId: _this.$stateParams.sectionTypeId,
	                ignoreConflicts: true,
	                swapCourse: _this.$stateParams.swapCourse
	            });
	        });
	    };
	    UnscheduledSections.prototype.dismissUpdateAlert = function () {
	        if (this.updateTimeout) {
	            this.$timeout.cancel(this.updateTimeout);
	        }
	        this.showSeatsUpdateMessage = false;
	    };
	    UnscheduledSections.prototype.gotoConflictingTab = function () {
	        var el = document.getElementById('unscheduled-section-tab-group');
	        if (el) {
	            el.setAttribute('selected-index', '1');
	        }
	    };
	    UnscheduledSections.prototype.toggleTab = function (event) {
	        return (this.sectionsFilter = this.tabWidgetIndex[event.target.selectedIndex]);
	    };
	    UnscheduledSections.prototype.noTimesAvailable = function () {
	        var areNoTimesAvailable = this.ngUnscheduledSectionsQuery.result.full.length === 0 &&
	            this.ngUnscheduledSectionsQuery.result.conflicting.length === 0 &&
	            this.ngUnscheduledSectionsQuery.result.available.length === 0;
	        var noSections = !this.isLoadingSections && areNoTimesAvailable;
	        if (noSections) {
	            this.showSeatsUpdateMessage = false;
	        }
	        return noSections;
	    };
	    UnscheduledSections.prototype.openFilters = function () {
	        this.isFiltersOpened = true;
	    };
	    UnscheduledSections.prototype.clearSectionFilters = function () {
	        this.clearSectionFiltersCommand();
	    };
	    return UnscheduledSections;
	}());
	exports.UnscheduledSections = UnscheduledSections;
	var UnscheduledSectionsComponent = /** @class */ (function () {
	    function UnscheduledSectionsComponent() {
	        this.controller = UnscheduledSections;
	        this.bindings = {};
	        this.templateUrl =
	            'capability-ng-scheduler/src/views/unscheduled_sections/components/unscheduled_sections/unscheduled_sections.html';
	    }
	    return UnscheduledSectionsComponent;
	}());
	angular.module('capability-ng-scheduler').component('unscheduledSections', new UnscheduledSectionsComponent());


/***/ }),
/* 1994 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var scheduled_section_status_enum_1 = __webpack_require__(10);
	var _4 = __webpack_require__(1);
	var UnscheduledSectionFilters = /** @class */ (function () {
	    function UnscheduledSectionFilters(ngUnscheduledSectionServant, ngCourseSectionSwapModel, ngSelectedSectionFiltersModel) {
	        this.ngUnscheduledSectionServant = ngUnscheduledSectionServant;
	        this.ngCourseSectionSwapModel = ngCourseSectionSwapModel;
	        this.ngSelectedSectionFiltersModel = ngSelectedSectionFiltersModel;
	    }
	    UnscheduledSectionFilters.prototype.filterFullSections = function (unscheduledSections) {
	        var _this = this;
	        return _4.filter(unscheduledSections, function (unscheduledSection) {
	            return _this.ngUnscheduledSectionServant.isSectionFull(unscheduledSection);
	        });
	    };
	    UnscheduledSectionFilters.prototype.filterConflictingSections = function (unscheduledSections) {
	        var _this = this;
	        return _4.filter(unscheduledSections, function (unscheduledSection) {
	            return _this.ngUnscheduledSectionServant.isSectionConflicting(unscheduledSection);
	        });
	    };
	    UnscheduledSectionFilters.prototype.filterAvailableSections = function (unscheduledSections) {
	        var _this = this;
	        return _4.filter(unscheduledSections, function (unscheduledSection) {
	            return _this.ngUnscheduledSectionServant.isSectionAvailable(unscheduledSection);
	        });
	    };
	    UnscheduledSectionFilters.prototype.filterOnlineSections = function (unscheduledSections) {
	        var _this = this;
	        return _4.filter(unscheduledSections, function (section) { return _this.ngUnscheduledSectionServant.isOnlineSection(section); });
	    };
	    UnscheduledSectionFilters.prototype.filterSectionsBySectionType = function (unscheduledSections, sectionType) {
	        return _4.filter(unscheduledSections, function (section) { return section.section_type === sectionType; });
	    };
	    UnscheduledSectionFilters.prototype.filterSectionsByCourse = function (unscheduledSections, courseId) {
	        return _4.filter(unscheduledSections, function (section) { return section.course === courseId; });
	    };
	    UnscheduledSectionFilters.prototype.filterRegisteredSections = function (unscheduledSections) {
	        return _4.filter(unscheduledSections, function (section) { return section.status !== scheduled_section_status_enum_1.ScheduledSectionStatus.REGISTERED; });
	    };
	    UnscheduledSectionFilters.prototype.filterSwapSections = function (unscheduledSections) {
	        return _4.filter(unscheduledSections, function (section) { return section.status === scheduled_section_status_enum_1.ScheduledSectionStatus.UNSCHEDULED; });
	    };
	    UnscheduledSectionFilters.prototype.sortSections = function (sortOrder, sections) {
	        // Sort sections by
	        // Conflict status - no conflict first.
	        // length of duration - descending,
	        // Start date - ascending,
	        // day of the week- ascending,
	        // time of day - ascending,
	        // No of seats available - descending,
	        // instructor name
	        var _this = this;
	        return _4.sortBy(sections, [
	            function (section) { return _this.ngUnscheduledSectionServant.isSectionConflicting(section); },
	            function (section) { return sortOrder * moment(section.class_end_dt).diff(moment(section.class_start_dt), 'hours'); },
	            function (section) { return moment(section.class_start_dt).unix(); },
	            function (section) { return _this.earliestTimeOfSectionAsUnix(section); },
	            function (section) { return sortOrder * section._availability.avail_seats; },
	            function (section) { return section.instructor_name; },
	            function (section) { return _4.get(section, '_fullLocationName'); }
	        ]);
	    };
	    UnscheduledSectionFilters.prototype.groupByCampuses = function (unscheduledSections) {
	        var _this = this;
	        // Separate online and non online sections
	        // Group non online sections by campus
	        // Mix online sections group with other campus groups.
	        // Sort section in each group
	        var onlineSections = this.filterOnlineSections(unscheduledSections);
	        var nonOnlineSections = _4.filter(unscheduledSections, function (section) { return !_this.ngUnscheduledSectionServant.isOnlineSection(section); });
	        var REVERSE_DEFAULT_SORTING = -1;
	        var sectionsByCampus = _4.sortBy(_4.map(_4.groupBy(nonOnlineSections, function (section) { return section._campus.name; }), function (group, key) { return ({
	            name: key,
	            sections: group,
	            limitedSections: [],
	            campus_rank: _4.get(_4.first(group), '_campus.rank')
	        }); }), ['campus_rank', 'name']);
	        if (!_4.isEmpty(onlineSections)) {
	            var sortedOnlineSections = this.sortSections(REVERSE_DEFAULT_SORTING, onlineSections);
	            var onlineSectionsGroup = {
	                name: 'Online Classes',
	                sections: sortedOnlineSections,
	                limitedSections: []
	            };
	            sectionsByCampus.push(onlineSectionsGroup);
	        }
	        _4.forEach(sectionsByCampus, function (campusGroup) { return _this.sortSections(REVERSE_DEFAULT_SORTING, campusGroup.sections); });
	        return sectionsByCampus;
	    };
	    UnscheduledSectionFilters.prototype.earliestTimeOfSectionAsUnix = function (section) {
	        var endOfWeek = moment().endOf('week').unix();
	        var sectionTimesSortedByDayOfWeekAndFromTime = _4.map(section._section_times, function (time) {
	            return time.day_of_week === 8 ? endOfWeek : moment(time.from_tm, 'HH:mm:ss').weekday(time.day_of_week).unix();
	        });
	        return _4.size(sectionTimesSortedByDayOfWeekAndFromTime) > 0
	            ? _4.first(sectionTimesSortedByDayOfWeekAndFromTime)
	            : endOfWeek;
	    };
	    UnscheduledSectionFilters.prototype.limitByThreshold = function (campusGroup, visibilityModel) {
	        var campusGroupLimitedByThreshold = _4.map(campusGroup, function (campusGroupItem) {
	            var matchingLimit = visibilityModel.get(campusGroupItem.name);
	            campusGroupItem.limitedSections = _4.take(campusGroupItem.sections, matchingLimit.displayQuantity);
	            return campusGroupItem;
	        });
	        return campusGroupLimitedByThreshold;
	    };
	    UnscheduledSectionFilters.prototype.allSectionsDisplayedByCampus = function (nonLimitedSections, limitedSections) {
	        var sectionsDisplayedByCampus = _4.map(limitedSections, function (limitedSection) {
	            var limitedSectionGroupName = limitedSection.name;
	            var matchingFullSectionGroup = _4.find(nonLimitedSections, ['name', limitedSectionGroupName]);
	            var areAllSectionsDisplayed = _4.isUndefined(matchingFullSectionGroup)
	                ? false
	                : _4.gte(limitedSection.sections, matchingFullSectionGroup.sections);
	            return {
	                campusName: limitedSectionGroupName,
	                allSectionsDisplayed: areAllSectionsDisplayed
	            };
	        });
	        return sectionsDisplayedByCampus;
	    };
	    UnscheduledSectionFilters.prototype._filterSectionLabels = function (sections, selectedSectionLabels) {
	        return _4.filter(sections, function (section) {
	            var intersection = _4.intersectionBy(section._section_labels.section_label, selectedSectionLabels, 'value');
	            return !_4.isEmpty(intersection);
	        });
	    };
	    UnscheduledSectionFilters.prototype.applySectionFilters = function (unscheduledSections) {
	        if (_4.isEmpty(unscheduledSections)) {
	            return unscheduledSections;
	        }
	        var selectedInstructors = _4.get(this.ngSelectedSectionFiltersModel.read(), 'instructors', []);
	        var selectedSectionLabels = _4.get(this.ngSelectedSectionFiltersModel.read(), 'section_labels', {});
	        var foundInstructors = _4.filter(unscheduledSections, function (section) { return _4.indexOf(selectedInstructors, section.instructor_name) > -1; });
	        if (!_4.isEmpty(selectedInstructors)) {
	            unscheduledSections = foundInstructors;
	        }
	        if (!_4.isEmpty(selectedSectionLabels)) {
	            unscheduledSections = this._filterSectionLabels(unscheduledSections, selectedSectionLabels);
	        }
	        return unscheduledSections;
	    };
	    return UnscheduledSectionFilters;
	}());
	exports.UnscheduledSectionFilters = UnscheduledSectionFilters;
	angular.module('capability-ng-scheduler').service('ngUnscheduledSectionFilters', UnscheduledSectionFilters);


/***/ }),
/* 1995 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-scheduler').factory('ngSelectedUnscheduledSectionModel', function () {
	    return new utility_ts_orm_1.Model({
	        id: -1,
	        nk: '',
	        cd: '',
	        session: -1,
	        course: -1,
	        campus: -1,
	        section_type: -1,
	        seats_offered: -1,
	        instructor_name: '',
	        class_start_dt: '',
	        class_end_dt: '',
	        drop_start_dt: '',
	        drop_end_dt: '',
	        withdraw_end_dt: '',
	        can_withdraw: false,
	        is_unlimited_seating: false,
	        is_droppable: false,
	        is_repeatable: false,
	        note: '',
	        has_waitlist: false,
	        _section_times: [],
	        _course: {},
	        _campus: {},
	        _section_type: {},
	        _availability: {},
	        status: '',
	        _linked_sections: [],
	        title: '',
	        _section_labels: {}
	    });
	});


/***/ }),
/* 1996 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var UnscheduledSectionsVisibilityModel = /** @class */ (function () {
	    function UnscheduledSectionsVisibilityModel(ngTermScheduleFlags) {
	        this.ngTermScheduleFlags = ngTermScheduleFlags;
	        this._sections_display_limit_by_campus = [];
	    }
	    UnscheduledSectionsVisibilityModel.prototype.initialize = function () {
	        this.clear();
	        this.defaultDisplayLimit = this.ngTermScheduleFlags.getNumberOfSeatsRequestsPerCourse();
	    };
	    UnscheduledSectionsVisibilityModel.prototype.clear = function () {
	        this._sections_display_limit_by_campus = [];
	        return this;
	    };
	    UnscheduledSectionsVisibilityModel.prototype.write = function (source) {
	        this._sections_display_limit_by_campus = _4.merge(this._sections_display_limit_by_campus, source);
	        return this;
	    };
	    UnscheduledSectionsVisibilityModel.prototype.viewMoreTimes = function (campus) {
	        this.defaultDisplayLimit = this.ngTermScheduleFlags.getNumberOfSeatsRequestsPerCourse();
	        var currentCampusDisplay = this.get(campus.name);
	        var updatedCampusDisplay = {
	            campusName: campus.name,
	            displayQuantity: currentCampusDisplay.displayQuantity + this.defaultDisplayLimit
	        };
	        this.update(updatedCampusDisplay);
	    };
	    UnscheduledSectionsVisibilityModel.prototype.read = function () {
	        return this._sections_display_limit_by_campus;
	    };
	    UnscheduledSectionsVisibilityModel.prototype.get = function (campusName) {
	        var campusLimitObj = _4.find(this._sections_display_limit_by_campus, ['campusName', campusName]);
	        var limitThreshold = 25;
	        if (this.ngTermScheduleFlags.getNumberOfSeatsRequestsPerCourse() !== 0) {
	            limitThreshold = this.ngTermScheduleFlags.getNumberOfSeatsRequestsPerCourse();
	        }
	        if (_4.isUndefined(campusLimitObj)) {
	            return { campusName: campusName, displayQuantity: limitThreshold };
	        }
	        else {
	            return campusLimitObj;
	        }
	    };
	    UnscheduledSectionsVisibilityModel.prototype.update = function (source) {
	        this._sections_display_limit_by_campus = _4.reject(this._sections_display_limit_by_campus, function (limitByCampus) { return limitByCampus.campusName === source.campusName; });
	        this._sections_display_limit_by_campus.push(source);
	        return this;
	    };
	    return UnscheduledSectionsVisibilityModel;
	}());
	exports.UnscheduledSectionsVisibilityModel = UnscheduledSectionsVisibilityModel;
	angular
	    .module('capability-ng-scheduler')
	    .service('ngUnscheduledSectionsVisibilityModel', UnscheduledSectionsVisibilityModel);


/***/ }),
/* 1997 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var UnscheduledSectionsQuery = /** @class */ (function () {
	    function UnscheduledSectionsQuery(QueryMediator, ngUnscheduledSectionFilters, ngSectionAvailabilityDatasource, ngCampusesDatasource, ngSectionsDatasource, ngLocationsDatasource, ngSectionTimesDatasource, ngTermSectionTypesDatasource, ngTermCourseQuery, $stateParams, $state, ngSectionSwapServant, ngUnscheduledSectionsVisibilityModel, ngSelectedSectionFiltersModel) {
	        this.ngUnscheduledSectionFilters = ngUnscheduledSectionFilters;
	        this.ngSectionAvailabilityDatasource = ngSectionAvailabilityDatasource;
	        this.ngCampusesDatasource = ngCampusesDatasource;
	        this.ngSectionsDatasource = ngSectionsDatasource;
	        this.ngLocationsDatasource = ngLocationsDatasource;
	        this.ngSectionTimesDatasource = ngSectionTimesDatasource;
	        this.ngTermSectionTypesDatasource = ngTermSectionTypesDatasource;
	        this.ngTermCourseQuery = ngTermCourseQuery;
	        this.$stateParams = $stateParams;
	        this.$state = $state;
	        this.ngSectionSwapServant = ngSectionSwapServant;
	        this.ngUnscheduledSectionsVisibilityModel = ngUnscheduledSectionsVisibilityModel;
	        this.ngSelectedSectionFiltersModel = ngSelectedSectionFiltersModel;
	        QueryMediator.registerQuery(this, ngSectionAvailabilityDatasource, ngSectionsDatasource, ngLocationsDatasource, ngCampusesDatasource, ngSectionTimesDatasource, ngSelectedSectionFiltersModel);
	    }
	    UnscheduledSectionsQuery.prototype.clear = function () {
	        this._result = {
	            available: [],
	            conflicting: [],
	            full: [],
	            all: [],
	            areAllSectionsDisplayedByCampus: [],
	            sectionsCount: {
	                available: 0,
	                conflicting: 0,
	                full: 0
	            }
	        };
	    };
	    UnscheduledSectionsQuery.prototype.run = function () {
	        var allSections = this.ngSectionsDatasource.metasource().derived();
	        var allSectionsWithSectionAvailability = allSections;
	        if (!this.ngSectionSwapServant.isInSwapMode()) {
	            // Filter courses for rescheduling course
	            var sectionsNotConflictingWithSession = _4.filter(allSectionsWithSectionAvailability, function (section) {
	                return !_4.get(section, '_availability.is_conflicting_with_session', false) &&
	                    !_4.get(section, '_availability.is_withdrawn', false);
	            });
	            allSectionsWithSectionAvailability = sectionsNotConflictingWithSession;
	        }
	        var sectionTypeId = parseInt(this.$stateParams.sectionTypeId, 10);
	        var courseId = parseInt(this.$stateParams.courseId, 10);
	        var allSectionsForSelectedCourse = this.ngUnscheduledSectionFilters.filterSectionsByCourse(_4.compact(allSectionsWithSectionAvailability), courseId);
	        if (this.ngSectionSwapServant.isInSwapMode()) {
	            var allUnregisteredSectionsForSelectedCourse = this.ngUnscheduledSectionFilters.filterRegisteredSections(allSectionsForSelectedCourse);
	            allUnregisteredSectionsForSelectedCourse =
	                this.ngUnscheduledSectionFilters.filterSwapSections(allSectionsForSelectedCourse);
	        }
	        // If sectionTypeId is 0 it had no section type otherwise filter out just the sections of this section type.
	        var allSectionsOfSectionType = sectionTypeId > 0
	            ? this.ngUnscheduledSectionFilters.filterSectionsBySectionType(allSectionsForSelectedCourse, sectionTypeId)
	            : allSectionsForSelectedCourse;
	        allSectionsOfSectionType = this.ngUnscheduledSectionFilters.applySectionFilters(allSectionsOfSectionType);
	        var availableSections = this.ngUnscheduledSectionFilters.filterAvailableSections(allSectionsOfSectionType);
	        var availableNonLimited = this.ngUnscheduledSectionFilters.groupByCampuses(availableSections);
	        var available = this.ngUnscheduledSectionFilters.limitByThreshold(availableNonLimited, this.ngUnscheduledSectionsVisibilityModel);
	        var conflictingSections = this.ngUnscheduledSectionFilters.filterConflictingSections(allSectionsOfSectionType);
	        var conflictingNonLimited = this.ngUnscheduledSectionFilters.groupByCampuses(conflictingSections);
	        var conflicting = this.ngUnscheduledSectionFilters.limitByThreshold(conflictingNonLimited, this.ngUnscheduledSectionsVisibilityModel);
	        var fullSections = this.ngUnscheduledSectionFilters.filterFullSections(allSectionsOfSectionType);
	        var fullNonLimited = this.ngUnscheduledSectionFilters.groupByCampuses(fullSections);
	        var full = this.ngUnscheduledSectionFilters.limitByThreshold(fullNonLimited, this.ngUnscheduledSectionsVisibilityModel);
	        var allSectionsDisplayedByCampusFlags = this.ngUnscheduledSectionFilters.allSectionsDisplayedByCampus(availableNonLimited, available);
	        this._result = {
	            available: available,
	            conflicting: conflicting,
	            full: full,
	            all: allSectionsOfSectionType,
	            areAllSectionsDisplayedByCampus: allSectionsDisplayedByCampusFlags,
	            sectionsCount: {
	                available: availableSections.length,
	                conflicting: conflictingSections.length,
	                full: fullSections.length
	            }
	        };
	        return this;
	    };
	    Object.defineProperty(UnscheduledSectionsQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return UnscheduledSectionsQuery;
	}());
	exports.UnscheduledSectionsQuery = UnscheduledSectionsQuery;
	angular.module('capability-ng-scheduler').service('ngUnscheduledSectionsQuery', UnscheduledSectionsQuery);


/***/ }),
/* 1998 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var main_1 = __webpack_require__(61);
	angular
	    .module('capability-ng-settings')
	    .factory('editPronounsCommand', function (defineCommand, getJwtTokenCommand, $http, appConfigModel, log, ngPronounsModel) {
	    return defineCommand('editPronounsCommand', function (deferred, studentID, pronoun) {
	        var campusUrl = appConfigModel.getConfigProperty("core-campus_url");
	        if (_4.isEmpty(campusUrl)) {
	            deferred.resolve();
	        }
	        else {
	            getJwtTokenCommand().then(function (token) {
	                var config = {
	                    url: campusUrl + '/api/v3/student_resources/pronouns',
	                    method: 'POST',
	                    headers: {
	                        Authorization: token.access_token,
	                        isCampusAPI: true
	                    },
	                    params: {
	                        primary_user_id: studentID,
	                        title: pronoun
	                    }
	                };
	                $http(config)
	                    .then(function (response) {
	                    log.user.success('Pronouns successfully updated!');
	                    var newPronounsData = _4.isEmpty(pronoun)
	                        ? {
	                            formatted_pronouns: '',
	                            selected_pronouns: main_1.NO_PRONOUNS_STRING,
	                            user_id: studentID
	                        }
	                        : {
	                            formatted_pronouns: ' (' + pronoun + ')',
	                            selected_pronouns: pronoun,
	                            user_id: studentID
	                        };
	                    ngPronounsModel.write(newPronounsData);
	                    deferred.resolve(response.data);
	                })
	                    .catch(function (error) {
	                    log.user.issue(error.data.metadata.errors[0]);
	                    deferred.reject(error);
	                });
	            });
	        }
	    });
	});


/***/ }),
/* 1999 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-settings')
	    .factory('getPronounsListCommand', function ($http, defineCommandORM, getJwtTokenCommand, appConfigModel, ngPronounsListDatasource) {
	    return defineCommandORM('getPronounsListCommand', function (deferred) {
	        var campusUrl = appConfigModel.getConfigProperty("core-campus_url");
	        if (_4.isEmpty(campusUrl)) {
	            deferred.resolve();
	        }
	        else {
	            getJwtTokenCommand().then(function (token) {
	                var config = {
	                    url: campusUrl + '/api/v3/student_resources/pronouns',
	                    method: 'GET',
	                    headers: {
	                        Authorization: token.access_token,
	                        isCampusAPI: true
	                    }
	                };
	                $http(config)
	                    .then(function (_a) {
	                    var data = _a.data;
	                    ngPronounsListDatasource.clear().write(data.data);
	                    deferred.resolve(data);
	                })
	                    .catch(function (e) {
	                    deferred.reject(e);
	                });
	            });
	        }
	    });
	});


/***/ }),
/* 2000 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(789);
	__webpack_require__(790);
	__webpack_require__(791);
	__webpack_require__(792);
	__webpack_require__(793);
	__webpack_require__(794);
	__webpack_require__(795);
	__webpack_require__(796);
	__webpack_require__(101);
	__webpack_require__(1998);
	__webpack_require__(1999);
	__webpack_require__(797);
	__webpack_require__(234);
	__webpack_require__(798);
	__webpack_require__(235);
	__webpack_require__(2001);
	__webpack_require__(2003);
	__webpack_require__(799);
	__webpack_require__(236);
	__webpack_require__(237);
	__webpack_require__(238);


/***/ }),
/* 2001 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var _4 = __webpack_require__(1);
	var PronounOption = /** @class */ (function () {
	    function PronounOption(pronoun) {
	        _4.merge(this, {}, pronoun);
	    }
	    PronounOption.build = function (pronoun) {
	        return new PronounOption(pronoun);
	    };
	    return PronounOption;
	}());
	exports.PronounOption = PronounOption;
	angular.module('capability-ng-settings').factory('ngPronounsListDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: PronounOption
	    });
	});


/***/ }),
/* 2002 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var main_1 = __webpack_require__(61);
	var EditPronounsModalController = /** @class */ (function () {
	    function EditPronounsModalController(ngEditPronounsService, ngPronounsQuery, ngPronounsListQuery, editPronounsCommand, accountModel, $state) {
	        this.ngEditPronounsService = ngEditPronounsService;
	        this.ngPronounsQuery = ngPronounsQuery;
	        this.ngPronounsListQuery = ngPronounsListQuery;
	        this.editPronounsCommand = editPronounsCommand;
	        this.accountModel = accountModel;
	        this.$state = $state;
	        this.studentPronouns = main_1.NO_PRONOUNS_STRING;
	        this.showInputBox = false;
	        this.pronounsPattern = '[a-zA-Z]+/[a-zA-Z]+';
	        this.showPronounsInvalidError = false;
	        this.studentPronouns = _4.get(this.ngPronounsQuery.result, 'selected_pronouns');
	    }
	    EditPronounsModalController.prototype.$onInit = function () {
	        this.pronounsList = this.ngPronounsListQuery.result;
	    };
	    EditPronounsModalController.prototype.toggleInputBox = function (event) {
	        this.newStudentPronoun = event.originalEvent.detail.value;
	        this.showInputBox = this.newStudentPronoun === 'custom';
	    };
	    EditPronounsModalController.prototype.validatePronouns = function (event) {
	        this.newStudentPronoun = event.originalEvent.detail.value;
	        if (this.newStudentPronoun && this.newStudentPronoun.length > 0) {
	            this.showPronounsInvalidError =
	                this.newStudentPronoun.indexOf('/') === -1 ||
	                    this.newStudentPronoun.indexOf('/') === this.newStudentPronoun.length - 1 ||
	                    this.newStudentPronoun.indexOf('<') !== -1 ||
	                    this.newStudentPronoun.indexOf('>') !== -1;
	        }
	    };
	    EditPronounsModalController.prototype.isDesktop = function () {
	        return utility_ts_platform_1.PlatformUtility.isDesktop();
	    };
	    EditPronounsModalController.prototype.finishAndExit = function () {
	        this.ngEditPronounsService.toggleOpen(false);
	    };
	    EditPronounsModalController.prototype.updatePronouns = function () {
	        var _this = this;
	        if (this.showPronounsInvalidError) {
	            return;
	        }
	        this.editPronounsCommand(_4.get(this.accountModel, 'student_nk', ''), this.newStudentPronoun)
	            .then(function () {
	            _this.finishAndExit();
	        })
	            .catch(function () {
	            _this.finishAndExit();
	        });
	    };
	    return EditPronounsModalController;
	}());
	exports.EditPronounsModalController = EditPronounsModalController;
	var EditPronounsModalComponent = /** @class */ (function () {
	    function EditPronounsModalComponent() {
	        this.templateUrl = 'capability-ng-settings/src/modals/edit_pronouns.html';
	        this.controller = EditPronounsModalController;
	        this.controllerAs = '$ctrl';
	    }
	    return EditPronounsModalComponent;
	}());
	exports.EditPronounsModalComponent = EditPronounsModalComponent;


/***/ }),
/* 2003 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var main_1 = __webpack_require__(61);
	var defaultPronoun = {
	    value: '',
	    title: main_1.NO_PRONOUNS_STRING
	};
	var PronounsListQuery = /** @class */ (function () {
	    function PronounsListQuery(ngPronounsListDatasource) {
	        this.ngPronounsListDatasource = ngPronounsListDatasource;
	        utility_ts_orm_1.Query.registerQuery(this, ngPronounsListDatasource);
	    }
	    PronounsListQuery.prototype.run = function () {
	        var _this = this;
	        this._result = [
	            {
	                value: '',
	                title: main_1.NO_PRONOUNS_STRING
	            }
	        ];
	        var pronunsList = this.ngPronounsListDatasource.read();
	        _4.map(pronunsList, function (pronoun) {
	            if (pronoun.is_active && !pronoun.is_custom) {
	                _this._result.push({
	                    value: pronoun.title,
	                    title: pronoun.title
	                });
	            }
	        });
	        this._result.push({
	            value: 'custom',
	            title: 'Custom'
	        });
	        return this;
	    };
	    Object.defineProperty(PronounsListQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    PronounsListQuery.prototype.isPronounsCustom = function (pronouns) {
	        if (_4.isEmpty(pronouns)) {
	            return false;
	        }
	        return !_4.includes(_4.map(this._result, 'title'), pronouns);
	    };
	    return PronounsListQuery;
	}());
	exports.PronounsListQuery = PronounsListQuery;
	angular.module('capability-ng-settings').service('ngPronounsListQuery', PronounsListQuery);


/***/ }),
/* 2004 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-student-scheduling')
	    .factory('getHILFileCommand', function (defineCommand, $http, log) {
	    return defineCommand('getHILFileCommand', function (deferred, hilFileURI) {
	        $http.get(hilFileURI).then(function (response) {
	            deferred.resolve(response.data);
	        }, function (err) {
	            log.error("Unable to get hil file at " + hilFileURI);
	            deferred.reject(err);
	        });
	    });
	});


/***/ }),
/* 2005 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	// TODO: Hide go-back link on some pages. CSS?
	var ngHILTemplate = "\n<hi-button id=\"mobileGoBackBtn\" aria-label=\"Go Back\" size=\"large\" aesthetic=\"icon\" ng-click=\"$ctrl.goBack()\" kind=\"state\" layout-icon=\"layout-icon\">\n  <hi-icon aria-hidden=\"true\" size=\"large\" kind=\"chevron_left\"></hi-icon>\n</hi-button>\n<div>\n  <hi-link ng-on-trigger-ended=\"$ctrl.goBack()\" id=\"goBackLink\" class=\"ng-hil-template-nav-link\" href=\"#\">\n    <hi-icon kind=\"chevron_left\" align=\"middle\" size=\"small\"></hi-icon>\n    <span>Go back</span>\n  </hi-link>\n  <hi-link href=\"#/my/appointment-dashboard?tab_name=appointments\" id=\"dashboardLink\" class=\"ng-hil-template-nav-link\"> Dashboard</hi-link>\n</div>\n<ai-view id=\"aiView\">\n</ai-view>\n";
	var NgHilController = /** @class */ (function () {
	    function NgHilController(getHILFileCommand, $element, $state) {
	        this.getHILFileCommand = getHILFileCommand;
	        this.$element = $element;
	        this.$state = $state;
	        this.uri = '';
	    }
	    NgHilController.prototype.$onInit = function () {
	        this.fetchAndInvokeScript(this.uri);
	        if (this.$element[0]) {
	            this.$element[0].setAttribute('state', _4.get(this.$state, 'current.name', ''));
	        }
	    };
	    NgHilController.prototype.goBack = function () {
	        if (window['hosting']) {
	            this.goBackService();
	        }
	        else {
	            window.history.back();
	        }
	    };
	    NgHilController.prototype.goBackService = function () {
	        var historyService = window['hosting']['kernel'].processes.history;
	        var previousURI = historyService.goBackURI();
	        if (previousURI) {
	            historyService.goBackCommit();
	            window.location.assign(previousURI);
	        }
	        else {
	            window.history.back();
	        }
	    };
	    NgHilController.prototype.fetchAndInvokeScript = function (uri) {
	        var _this = this;
	        this.getHILFileCommand(uri).then(function (script) {
	            _this.invokeView(script);
	        });
	    };
	    NgHilController.prototype.invokeView = function (script) {
	        var aiView = this.$element[0].querySelector("#aiView");
	        window.hiReady(function () {
	            if (aiView) {
	                aiView.invoke(script);
	            }
	        });
	    };
	    return NgHilController;
	}());
	var NgHilComponent = /** @class */ (function () {
	    function NgHilComponent() {
	        this.template = ngHILTemplate;
	        this.controllerAs = '$ctrl';
	        this.controller = NgHilController;
	        this.bindings = {
	            uri: '@'
	        };
	    }
	    return NgHilComponent;
	}());
	exports.NgHilComponent = NgHilComponent;
	angular.module('capability-ng-student-scheduling').component('ngHilComponent', new NgHilComponent());


/***/ }),
/* 2006 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var student_scheduling_configuration_1 = __webpack_require__(800);
	angular
	    .module('capability-ng-student-scheduling')
	    .service('ngStudentSchedulingConfiguration', student_scheduling_configuration_1.StudentSchedulingConfiguration);


/***/ }),
/* 2007 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(2004);
	__webpack_require__(2005);
	__webpack_require__(2006);
	__webpack_require__(800);
	__webpack_require__(2009);


/***/ }),
/* 2008 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	__webpack_require__(2010);
	angular.module('capability-ng-student-scheduling', [
	    'ngSanitize',
	    'ngAria',
	    'utility-ng-enumeration',
	    'utility-ng-interface',
	    'utility-ng-configuration',
	    'ui-ng-navbar'
	]);
	__webpack_require__(2007);
	exports.STUDENTSCHEDULING = 'capability-ng-student-scheduling';


/***/ }),
/* 2009 */
/***/ (function(module, exports) {

	var __assign = (this && this.__assign) || function () {
	    __assign = Object.assign || function(t) {
	        for (var s, i = 1, n = arguments.length; i < n; i++) {
	            s = arguments[i];
	            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
	                t[p] = s[p];
	        }
	        return t;
	    };
	    return __assign.apply(this, arguments);
	};
	angular
	    .module('capability-ng-student-scheduling')
	    .config(function ($stateProvider, $urlRouterProvider) {
	    var Routes = {
	        'my.appointment-dashboard': {
	            url: 'appointment-dashboard?tab_name',
	            fullPath: '/my/appointment-dashboard?tab_name',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/dashboard/dashboard.hil\"/>",
	            data: {
	                viewTitle: 'Appointment Dashboard',
	                ignoredInHistory: false,
	                hasMainMenu: true
	            },
	            params: {
	                tab_name: 'appointments'
	            }
	        },
	        'my.appointment-details': {
	            url: 'appointment-details/',
	            fullPath: '/my/appointment-details?id',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/dashboard/details/index.hil\"/>",
	            data: {
	                viewTitle: 'Appointment Details',
	                hasMainMenu: true
	            }
	        },
	        'my.appointment-campaign-details': {
	            url: 'appointment-campaign-details/',
	            fullPath: '/my/appointment-campaign-details?id',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/dashboard/details/campaign.hil\"/>",
	            data: {
	                viewTitle: 'Appointment Invitation Details',
	                hasMainMenu: true
	            }
	        },
	        'my.appointment-cancel': {
	            url: 'appointment-cancel-details?id',
	            fullPath: '/my/appointment-cancel-details?id',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/cancel/cancel.hil\"/>",
	            data: {
	                viewTitle: 'Appointment Cancellation Detail',
	                hasMainMenu: true
	            },
	            params: {
	                id: undefined
	            }
	        },
	        'my.appointment-invitation-results': {
	            url: 'appointment-invitation-results/?invitation_id',
	            fullPath: '/my/appointment-invitation-results',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/invitations/results/index.hil\"/>",
	            data: {
	                viewTitle: 'Appointment Invitation Results',
	                hasMainMenu: true
	            },
	            params: {
	                invitation_id: undefined
	            }
	        },
	        'my.appointment-invitation-claim': {
	            url: 'appointment-invitation-claim/',
	            fullPath: '/my/appointment-invitation-claim',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/invitation_claim/results/index.hil\"/>",
	            data: {
	                viewTitle: 'Claim Appointment Invitation',
	                hasMainMenu: true
	            }
	        },
	        'my.appointment-invitation-claim-confirm': {
	            url: 'appointment-invitation-claim-confirm/',
	            fullPath: '/my/appointment-invitation-claim-confirm',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/invitation_claim/confirm/index.hil\"/>",
	            data: {
	                viewTitle: 'Confirm Appointment Invitation',
	                hasMainMenu: true
	            }
	        },
	        'my.appointment-invitation-claim-success': {
	            url: 'appointment-invitation-claim-success',
	            fullPath: '/my/appointment-invitation-claim-success',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/invitation_claim/success/index.hil\"/>",
	            data: {
	                viewTitle: 'Appointment Invitation Claim Success',
	                hasMainMenu: true
	            }
	        },
	        'my.appointment-new': {
	            url: 'appointment-new/?pal_guid',
	            fullPath: '/my/appointment-new',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/new/index.hil\"/>",
	            data: {
	                viewTitle: 'New Appointment',
	                hasMainMenu: true
	            },
	            params: {
	                pal_guid: undefined
	            }
	        },
	        'my.appointment-results': {
	            url: 'appointment-results/',
	            fullPath: '/my/appointment-results',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/new_results/index.hil\"/>",
	            data: {
	                viewTitle: 'Appointment Results',
	                hasMainMenu: true
	            }
	        },
	        'my.appointment-confirm': {
	            url: 'appointment-confirm/',
	            fullPath: '/my/appointment-confirm',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/confirm/confirm.hil\"/>",
	            data: {
	                viewTitle: 'Review Detail',
	                hasMainMenu: true
	            }
	        },
	        'my.appointment-invitation-confirm': {
	            url: 'appointment-invitation-confirm/',
	            fullPath: '/my/appointment-invitation-confirm',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/invitations/confirm/index.hil\"/>",
	            data: {
	                viewTitle: 'Review Invitation Detail',
	                hasMainMenu: true
	            }
	        },
	        'my.appointment-success': {
	            url: 'appointment-success/',
	            fullPath: '/my/appointment-success',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/confirm/success/index.hil\"/>",
	            data: {
	                viewTitle: 'Appointment Success',
	                hasMainMenu: true
	            }
	        },
	        'my.appointment-request-success': {
	            url: 'appointment-request-success/',
	            fullPath: '/my/appointment-request-success',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/request/success/index.hil\"/>",
	            data: {
	                viewTitle: 'Appointment Request Success',
	                hasMainMenu: true
	            }
	        },
	        'my.appointment-cancel-success': {
	            url: 'appointment-cancel-success/',
	            fullPath: '/my/appointment-cancel-success',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/cancel/success/index.hil\"/>",
	            data: {
	                viewTitle: 'Appointment Cancellation Success',
	                hasMainMenu: true
	            }
	        },
	        'my.appointment-request': {
	            url: 'appointment-request/',
	            fullPath: '/my/appointment-request',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/request/form/index.hil\"/>",
	            data: {
	                viewTitle: 'Appointment Request',
	                hasMainMenu: true
	            }
	        },
	        'my.appointment-request-location': {
	            url: 'appointment-request-location/',
	            fullPath: '/my/appointment-request-location',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/request/results/index.hil\"/>",
	            data: {
	                viewTitle: 'Appointment Request - Location',
	                hasMainMenu: true
	            }
	        },
	        'my.appointment-request-availability': {
	            url: 'appointment-request-availability/',
	            fullPath: '/my/appointment-request-availability',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/request/availability/index.hil\"/>",
	            data: {
	                viewTitle: 'Appointment Request - Availability',
	                hasMainMenu: true
	            }
	        },
	        'my.appointment-drop-ins': {
	            url: 'appointment-drop-ins/',
	            fullPath: '/my/appointment-drop-ins',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/drop_ins/form/index.hil\"/>",
	            data: {
	                viewTitle: 'Request Drop-in Times',
	                hasMainMenu: true
	            }
	        },
	        'my.appointment-drop-ins-results': {
	            url: 'appointment-drop-ins-results/',
	            fullPath: '/my/appointment-drop-ins-results',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/drop_ins/results/index.hil\"/>",
	            data: {
	                viewTitle: 'Available Drop-in Times',
	                hasMainMenu: true
	            }
	        },
	        'my.appointment-drop-ins-success': {
	            url: 'appointment-drop-ins-success/',
	            fullPath: '/my/appointment-drop-ins-success',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/drop_ins/success/index.hil\"/>",
	            data: {
	                viewTitle: 'Drop-in Times Request Success',
	                hasMainMenu: true
	            }
	        },
	        'my.appointment-check-in-success': {
	            url: 'appointment-check-in-success/',
	            fullPath: '/my/appointment-check-in-success',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/check_in/success/index.hil\"/>",
	            data: {
	                viewTitle: 'Virtual Check-in Success',
	                hasMainMenu: true
	            }
	        },
	        'my.appointment-check-out-success': {
	            url: 'appointment-check-out-success/',
	            fullPath: '/my/appointment-check-out-success',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/check_out/success/index.hil\"/>",
	            data: {
	                viewTitle: 'Virtual Check-out Success',
	                hasMainMenu: true
	            }
	        },
	        'my.appointment-feedback': {
	            url: 'appointment-feedback/',
	            fullPath: '/my/appointment-feedback',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/feedback/index.hil\"/>",
	            data: {
	                viewTitle: 'Appointment Feedback',
	                hasMainMenu: true
	            }
	        },
	        'my.pre-appointment-questions': {
	            url: 'pre-appointment-questions/',
	            fullPath: '/my/pre-appointment-questions',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/pre_appointment_questions/index.hil\"/>",
	            data: {
	                viewTitle: 'Pre-Appointment Questions',
	                hasMainMenu: true
	            }
	        },
	        'my.appointment-feedback-success': {
	            url: 'appointment-feedback-success/',
	            fullPath: '/my/appointment-feedback-success',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/feedback/success/index.hil\"/>",
	            data: {
	                viewTitle: 'Appointment Feedback Success',
	                hasMainMenu: true
	            }
	        },
	        'my.pre-appointment-questions-success': {
	            url: 'pre-appointment-questions-success/',
	            fullPath: '/my/pre-appointment-questions-success',
	            template: "<ng-hil-component uri=\"./ahp/student_scheduling/views/appointments/pre-appointment-questions-success/index.hil\"/>",
	            data: {
	                viewTitle: 'Appointment Feedback Success',
	                hasMainMenu: true
	            }
	        }
	    };
	    var _loop_1 = function (stateName) {
	        $stateProvider.state(stateName, Routes[stateName]);
	        var stateObject = Routes[stateName];
	        var fullURL = stateObject.fullPath;
	        $urlRouterProvider.when(fullURL, function ($match, $stateParams, $state) {
	            if ($match) {
	                $state.go(stateName, __assign({}, $match), { location: false });
	            }
	            else {
	                $state.go(stateName, { location: false });
	            }
	        });
	    };
	    for (var stateName in Routes) {
	        _loop_1(stateName);
	    }
	});


/***/ }),
/* 2010 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	__webpack_require__(12);
	__webpack_require__(27);
	__webpack_require__(39);
	__webpack_require__(50);
	__webpack_require__(34);
	__webpack_require__(22);
	__webpack_require__(21);
	__webpack_require__(5);
	__webpack_require__(51);
	__webpack_require__(40);
	__webpack_require__(46);
	__webpack_require__(48);
	__webpack_require__(276);
	__webpack_require__(112);
	__webpack_require__(277);
	__webpack_require__(116);


/***/ }),
/* 2011 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var StudyGroupPriorityFeedCardBuilder = /** @class */ (function () {
	    function StudyGroupPriorityFeedCardBuilder(source) {
	        return _4.merge(this, source);
	    }
	    StudyGroupPriorityFeedCardBuilder.build = function (source) {
	        return new StudyGroupPriorityFeedCardBuilder(source);
	    };
	    return StudyGroupPriorityFeedCardBuilder;
	}());
	exports.StudyGroupPriorityFeedCardBuilder = StudyGroupPriorityFeedCardBuilder;


/***/ }),
/* 2012 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-study-groups')
	    .factory('addUserToStudyGroupCommand', function addUserToStudyGroupCommandDefinition($http, defineCommand, ngStudyGroupSectionsDatasource, log) {
	    return defineCommand('addUserToStudyGroupCommand', function addUserToStudyGroupCommand(deferred, sectionId) {
	        $http
	            .post("study/sections/" + sectionId + "/buddies", {})
	            .then(function (_a) {
	            var data = _a.data;
	            var section = ngStudyGroupSectionsDatasource.get(sectionId);
	            if (section) {
	                section.is_buddy = true;
	                section.study_buddy_count = section.study_buddy_count + 1;
	                ngStudyGroupSectionsDatasource.put(section);
	            }
	            utility_ts_orm_1.ORM.run();
	            deferred.resolve(data);
	        })
	            .catch(function (response) {
	            log.error('Unable to add user to study group');
	            deferred.reject();
	        });
	    });
	});


/***/ }),
/* 2013 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-study-groups')
	    .factory('clearAllSelectedUsersCommand', function clearAllSelectedUsersCommandDefinition(defineCommand, ngStudyGroupMembersDatasource) {
	    return defineCommand('clearAllSelectedUsersCommand', function clearAllSelectedUsersCommand(deferred) {
	        ngStudyGroupMembersDatasource.remap(function (member) {
	            member._isChecked = false;
	            return member;
	        });
	        utility_ts_orm_1.ORM.run(ngStudyGroupMembersDatasource);
	        deferred.resolve();
	    });
	});


/***/ }),
/* 2014 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-study-groups')
	    .factory('deleteUserFromStudyGroupCommand', function deleteUserFromStudyGroupCommandDefinition($http, defineCommand, ngStudyGroupSectionsDatasource, log) {
	    return defineCommand('deleteUserFromStudyGroupCommand', function deleteUserFromStudyGroupCommand(deferred, sectionId) {
	        $http
	            .delete("study/sections/" + sectionId + "/buddies")
	            .then(function (_a) {
	            var data = _a.data;
	            var section = ngStudyGroupSectionsDatasource.get(sectionId);
	            if (section) {
	                section.is_buddy = false;
	                section.study_buddy_count = section.study_buddy_count - 1;
	                ngStudyGroupSectionsDatasource.put(section);
	            }
	            utility_ts_orm_1.ORM.run();
	            deferred.resolve(data);
	        })
	            .catch(function (response) {
	            log.error('Unable to delete user from study group');
	            deferred.reject();
	        });
	    });
	});


/***/ }),
/* 2015 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-study-groups')
	    .factory('dismissStudyBuddyTileCommand', function dismissStudyBuddyTileCommandDefinition($http, defineCommand, log) {
	    return defineCommand('dismissStudyBuddyTileCommand', function dismissStudyBuddyTileCommand(deferred) {
	        $http
	            .put("study/last_joined_message", {})
	            .then(function () {
	            deferred.resolve();
	        })
	            .catch(function () {
	            log.error('Unable to dismiss study buddy tile');
	            deferred.reject();
	        });
	    });
	});


/***/ }),
/* 2016 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-priority-feed')
	    .factory('getStudyBuddyPriorityFeedCommand', function ($q, defineCommand, $http, ngStudygroupsPriorityFeedDatasource) {
	    return defineCommand('getStudyBuddyPriorityFeedCommand', function (deferred) {
	        $http
	            .get('/study/priority_feed/')
	            .then(function (_a) {
	            var data = _a.data;
	            ngStudygroupsPriorityFeedDatasource.clear();
	            if (!_4.isEmpty(data)) {
	                ngStudygroupsPriorityFeedDatasource.write([data]);
	            }
	            deferred.resolve();
	        })
	            .catch(function (response) {
	            return deferred.reject(response.data);
	        });
	    });
	});


/***/ }),
/* 2017 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-study-groups')
	    .factory('loadStudyGroupMembersCommand', function loadStudyGroupMembersCommandDefinition($http, defineCommand, ngStudyGroupMembersDatasource, log) {
	    return defineCommand('loadStudyGroupMembersCommand', function loadStudyGroupMembersCommand(deferred, sectionId) {
	        $http
	            .get("study/sections/" + sectionId + "/buddies")
	            .then(function (_a) {
	            var data = _a.data;
	            ngStudyGroupMembersDatasource.clear().write(data);
	            deferred.resolve(utility_ts_orm_1.ORM.run());
	        })
	            .catch(function (response) {
	            log.error('Unable to get study group members data');
	            deferred.reject();
	        });
	    });
	});


/***/ }),
/* 2018 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-study-groups')
	    .factory('loadStudyGroupsCommand', function loadStudyGroupsCommandDefinition($http, defineCommand, ngStudyGroupCoursesDatasource, ngStudyGroupSectionsDatasource, ngStudyGroupTermsDatasource, log) {
	    return defineCommand('loadStudyGroupsCommand', function loadStudyGroupsCommand(deferred) {
	        $http
	            .get('study/sections')
	            .then(function (_a) {
	            var data = _a.data;
	            ngStudyGroupCoursesDatasource.clear().write(data.course);
	            ngStudyGroupSectionsDatasource.clear().write(data.section);
	            ngStudyGroupTermsDatasource.clear().write(data.term);
	            deferred.resolve(utility_ts_orm_1.ORM.run());
	        })
	            .catch(function (response) {
	            log.error('Unable to get studyGroups data');
	            deferred.reject();
	        });
	    });
	});


/***/ }),
/* 2019 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-study-groups')
	    .factory('selectAllUsersCommand', function selectAllUsersCommandDefinition(defineCommand, ngStudyGroupMembersDatasource) {
	    return defineCommand('selectAllUsersCommand', function selectAllUsersCommand(deferred) {
	        ngStudyGroupMembersDatasource.remap(function (member) {
	            member._isChecked = true;
	            return member;
	        });
	        utility_ts_orm_1.ORM.run(ngStudyGroupMembersDatasource);
	        deferred.resolve();
	    });
	});


/***/ }),
/* 2020 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-study-groups')
	    .factory('selectUserCommand', function selectUserCommandDefinition(defineCommand, ngStudyGroupMembersDatasource) {
	    return defineCommand('selectUserCommand', function selectUserCommand(deferred, userId) {
	        var user = ngStudyGroupMembersDatasource.get(userId);
	        user._isChecked = !user._isChecked;
	        ngStudyGroupMembersDatasource.put(user);
	        utility_ts_orm_1.ORM.run();
	        deferred.resolve();
	    });
	});


/***/ }),
/* 2021 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(801);
	__webpack_require__(2011);
	__webpack_require__(2012);
	__webpack_require__(2013);
	__webpack_require__(2014);
	__webpack_require__(2015);
	__webpack_require__(2016);
	__webpack_require__(2017);
	__webpack_require__(2018);
	__webpack_require__(2019);
	__webpack_require__(2020);
	__webpack_require__(802);
	__webpack_require__(803);
	__webpack_require__(804);
	__webpack_require__(805);
	__webpack_require__(2022);
	__webpack_require__(2023);
	__webpack_require__(2024);
	__webpack_require__(2025);
	__webpack_require__(2026);
	__webpack_require__(2027);
	__webpack_require__(806);
	__webpack_require__(808);
	__webpack_require__(807);
	__webpack_require__(809);
	__webpack_require__(2029);
	__webpack_require__(239);
	__webpack_require__(810);
	__webpack_require__(2030);
	__webpack_require__(2031);
	__webpack_require__(240);
	__webpack_require__(811);
	__webpack_require__(812);
	__webpack_require__(813);


/***/ }),
/* 2022 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-study-groups')
	    .factory('ngStudyGroupCoursesDatasource', function () {
	    return new utility_ts_orm_1.Datasource({
	        updateMode: 'merge'
	    });
	});


/***/ }),
/* 2023 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var study_group_members_builder_1 = __webpack_require__(801);
	angular
	    .module('capability-ng-study-groups')
	    .factory('ngStudyGroupMembersDatasource', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: study_group_members_builder_1.StudyGroupMembersBuilder,
	        updateMode: 'merge',
	        autoId: true
	    });
	});


/***/ }),
/* 2024 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-study-groups')
	    .factory('ngStudyGroupSectionsDatasource', function () {
	    return new utility_ts_orm_1.Datasource({
	        updateMode: 'merge'
	    });
	});


/***/ }),
/* 2025 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-study-groups').factory('ngStudyGroupTermsDatasource', function () {
	    return new utility_ts_orm_1.Datasource({
	        updateMode: 'merge'
	    });
	});


/***/ }),
/* 2026 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('capability-ng-study-groups').factory('ngStudygroupsDatasource', function () {
	    return new utility_ts_orm_1.Datasource({
	        updateMode: 'merge'
	    });
	});


/***/ }),
/* 2027 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('capability-ng-study-groups')
	    .factory('ngStudygroupsPriorityFeedDatasource', function () {
	    return new utility_ts_orm_1.Datasource({
	        updateMode: 'merge',
	        autoId: true
	    });
	});


/***/ }),
/* 2028 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var study_group_buddies_component_1 = __webpack_require__(802);
	var study_group_join_1 = __webpack_require__(803);
	var study_group_section_tile_component_1 = __webpack_require__(804);
	var study_group_terms_component_1 = __webpack_require__(805);
	var study_group_description_modal_1 = __webpack_require__(806);
	var study_group_emailing_modal_1 = __webpack_require__(807);
	var study_group_joining_modal_1 = __webpack_require__(808);
	var study_groups_modal_service_1 = __webpack_require__(809);
	var study_groups_priority_feed_query_1 = __webpack_require__(239);
	var study_groups_query_1 = __webpack_require__(810);
	var study_groups_configuration_1 = __webpack_require__(240);
	var study_groups_routes_1 = __webpack_require__(811);
	var study_group_members_controller_1 = __webpack_require__(812);
	var study_groups_controller_1 = __webpack_require__(813);
	angular
	    .module('capability-ng-study-groups', ['data-ng-custom-text'])
	    .service('ngStudyGroupModalService', study_groups_modal_service_1.StudyGroupModalService)
	    .component('studyGroupJoiningModal', new study_group_joining_modal_1.StudyGroupJoiningModalComponent())
	    .component('studyGroupDescriptionModal', new study_group_description_modal_1.StudyGroupDescriptionModalComponent())
	    .component('studyGroupEmailingModal', new study_group_emailing_modal_1.StudyGroupEmailingModalComponent())
	    .component('studyGroupTerms', new study_group_terms_component_1.StudyGroupTermsComponent())
	    .component('studyGroupSectionTile', new study_group_section_tile_component_1.StudyGroupSectionTileComponent())
	    .component('studyGroupBuddies', new study_group_buddies_component_1.StudyGroupBuddiesComponent())
	    .component('studyGroupJoin', new study_group_join_1.StudyGroupJoinComponent())
	    .controller('StudyGroupsController', study_groups_controller_1.StudyGroupsController)
	    .controller('StudyGroupMembersController', study_group_members_controller_1.StudyGroupMembersController)
	    .service('ngStudyGroupsCapabilityConfiguration', study_groups_configuration_1.StudyGroupsCapabilityConfiguration)
	    .service('ngStudyGroupsQuery', study_groups_query_1.StudyGroupsQuery)
	    .service('ngStudyGroupsPriorityFeedQuery', study_groups_priority_feed_query_1.StudyGroupsPriorityFeedQuery)
	    .config(study_groups_routes_1.MyStudyGroupsRoutes);
	__webpack_require__(2021);
	tslib_1.__exportStar(__webpack_require__(240), exports);
	tslib_1.__exportStar(__webpack_require__(239), exports);
	exports.studyGroups = 'capability-ng-study-groups';


/***/ }),
/* 2029 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	var StudyGroupMembersQuery = /** @class */ (function () {
	    function StudyGroupMembersQuery(ngStudyGroupMembersDatasource, accountModel) {
	        this.ngStudyGroupMembersDatasource = ngStudyGroupMembersDatasource;
	        this.accountModel = accountModel;
	        utility_ts_orm_1.ORM.registerQuery(this, ngStudyGroupMembersDatasource);
	    }
	    StudyGroupMembersQuery.prototype.run = function () {
	        var _this = this;
	        var buddies = _4.toArray(this.ngStudyGroupMembersDatasource.read());
	        _4.remove(buddies, function (buddy) { return buddy.email === _this.accountModel.email; });
	        var selectedBuddiesCount = _4.size(_4.filter(buddies, '_isChecked'));
	        var selectedBuddies = _4.filter(buddies, '_isChecked');
	        var buddiesCount = _4.size(buddies);
	        var isAllUsersSelected = selectedBuddiesCount === buddiesCount;
	        var selectionLabelText = isAllUsersSelected ? 'Clear All' : 'Select All';
	        this._result = {
	            buddies: buddies,
	            selectedBuddiesCount: selectedBuddiesCount,
	            selectedBuddies: selectedBuddies,
	            buddiesCount: buddiesCount,
	            selectionLabelText: selectionLabelText,
	            isAllUsersSelected: isAllUsersSelected
	        };
	        return this;
	    };
	    Object.defineProperty(StudyGroupMembersQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return StudyGroupMembersQuery;
	}());
	exports.StudyGroupMembersQuery = StudyGroupMembersQuery;
	angular.module('capability-ng-study-groups').service('ngStudyGroupMembersQuery', StudyGroupMembersQuery);


/***/ }),
/* 2030 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var StudyGroupsEmailServant = /** @class */ (function () {
	    function StudyGroupsEmailServant(ngStudyGroupMembersQuery) {
	        this.ngStudyGroupMembersQuery = ngStudyGroupMembersQuery;
	    }
	    StudyGroupsEmailServant.prototype.getBuddiesToEmail = function (buddies) {
	        return _4.join(_4.map(_4.filter(buddies, function (buddy) { return buddy._isChecked; }), function (buddy) { return buddy.email; }), ',');
	    };
	    StudyGroupsEmailServant.prototype.getEmailSubject = function (section) {
	        return "Study Buddies: " + section.courseTitle + "-" + section.cd + " Study Buddies";
	    };
	    StudyGroupsEmailServant.prototype.getEmailBody = function (section) {
	        return "Hey! Would you be interested in studying together for " + section.courseTitle + "-" + section.cd + "?";
	    };
	    StudyGroupsEmailServant.prototype.getEmailData = function (section) {
	        var mailTo = this.getBuddiesToEmail(this.ngStudyGroupMembersQuery.result.buddies);
	        var subject = this.getEmailSubject(section);
	        var body = this.getEmailBody(section);
	        return { mailTo: mailTo, subject: subject, body: body };
	    };
	    return StudyGroupsEmailServant;
	}());
	exports.StudyGroupsEmailServant = StudyGroupsEmailServant;
	angular.module('capability-ng-study-groups').service('ngStudyGroupsEmailServant', StudyGroupsEmailServant);


/***/ }),
/* 2031 */
880,
/* 2032 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-survey')
	    .service('loadActiveSurveysCommand', function ($http, defineCommandORM, ngSurveyDatastore, accountModel, log) {
	    return defineCommandORM('loadActiveSurveysCommand', function (deferred, quickPoll) {
	        if (quickPoll === void 0) { quickPoll = false; }
	        var url = "students/" + accountModel.student_id + "/surveys";
	        if (quickPoll) {
	            url += '/?survey__quick_poll=True';
	        }
	        $http
	            .get(url)
	            .then(function (_a) {
	            var data = _a.data.data;
	            ngSurveyDatastore.clear().write(data);
	            deferred.resolve(data);
	        })
	            .catch(function (error) {
	            log.issue('Failed to load active surveys!');
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 2033 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-survey')
	    .service('loadSurveyCommand', function ($http, defineCommandORM, ngSurveyDatastore, accountModel, log) {
	    return defineCommandORM('loadSurveyCommand', function (deferred, surveyID) {
	        $http
	            .get("students/" + accountModel.student_id + "/surveys/" + surveyID)
	            .then(function (_a) {
	            var data = _a.data;
	            ngSurveyDatastore.put(data.data);
	            deferred.resolve(data.data);
	        })
	            .catch(function (error) {
	            log.issue('Failed to load survey!');
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 2034 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-survey')
	    .service('loadSurveyQuestionCommand', function ($http, defineCommandORM, ngSurveyQuestionDatastore, accountModel, log) {
	    return defineCommandORM('loadSurveyQuestionCommand', function (deferred, surveyID, direction) {
	        $http
	            .get("students/" + accountModel.student_id + "/surveys/" + surveyID + "/questions/" + direction)
	            .then(function (_a) {
	            var data = _a.data;
	            ngSurveyQuestionDatastore.clear();
	            if (!_4.isEmpty(data)) {
	                ngSurveyQuestionDatastore.write([data]);
	            }
	            deferred.resolve(data);
	        })
	            .catch(function (error) {
	            log.issue('Failed to load survey questions!');
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 2035 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('capability-ng-survey')
	    .factory('loadSurveyResourcesCommand', function updateTopicOptInsCommandDefinition($q, defineCommandORM, loadResourceDetailCommand, log) {
	    return defineCommandORM('loadSurveyResourcesCommand', function updateTopicOptInsCommand(deferred, resourceIDs) {
	        var resourcePromises = _4.map(resourceIDs, function (id) { return loadResourceDetailCommand(id); });
	        $q.all(resourcePromises)
	            .then(function () {
	            deferred.resolve();
	        })
	            .catch(function (error) {
	            log.issue('Failed to load survey resources!');
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 2036 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	angular
	    .module('capability-ng-survey')
	    .service('saveSurveyQuestionResponseCommand', function ($http, defineCommandORM, accountModel, log) {
	    return defineCommandORM('saveSurveyQuestionResponseCommand', function (deferred, surveyID, questionID, response) {
	        $http
	            .put("students/" + accountModel.student_id + "/surveys/" + surveyID + "/questions/" + questionID, tslib_1.__assign({}, response))
	            .then(function (_a) {
	            var data = _a.data;
	            deferred.resolve(data);
	        })
	            .catch(function (error) {
	            log.issue('Failed to save survey response!');
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 2037 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-survey')
	    .service('updateSurveyCommand', function ($http, defineCommandORM, accountModel, log) {
	    return defineCommandORM('updateSurveyCommand', function (deferred, surveyID, payload) {
	        $http
	            .put("students/" + accountModel.student_id + "/surveys/" + surveyID, payload)
	            .then(function (_a) {
	            var data = _a.data;
	            deferred.resolve(data);
	        })
	            .catch(function (error) {
	            log.issue('Failed to update survey!');
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 2038 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('capability-ng-survey')
	    .service('updateSurveyRecipientTrackingCommand', function ($http, defineCommandORM, accountModel, log) {
	    return defineCommandORM('updateSurveyRecipientTrackingCommand', function (deferred, surveyID, methodType, methodXRecipientID) {
	        $http
	            .put("students/" + accountModel.student_id + "/surveys/" + surveyID + "/" + methodType + "/" + methodXRecipientID, {
	            clicked: true
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            deferred.resolve(data);
	        })
	            .catch(function (error) {
	            log.issue('Failed to update survey tracking info!');
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 2039 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(814);
	__webpack_require__(815);
	__webpack_require__(2032);
	__webpack_require__(2033);
	__webpack_require__(2034);
	__webpack_require__(2035);
	__webpack_require__(2036);
	__webpack_require__(2037);
	__webpack_require__(2038);
	__webpack_require__(816);
	__webpack_require__(817);
	__webpack_require__(818);
	__webpack_require__(819);
	__webpack_require__(2040);
	__webpack_require__(2041);
	__webpack_require__(241);
	__webpack_require__(242);
	__webpack_require__(243);
	__webpack_require__(244);
	__webpack_require__(245);
	__webpack_require__(820);
	__webpack_require__(822);
	__webpack_require__(821);
	__webpack_require__(823);


/***/ }),
/* 2040 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var survey_builder_1 = __webpack_require__(814);
	angular.module('capability-ng-survey').factory('ngSurveyDatastore', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: survey_builder_1.Survey,
	        autoId: false
	    });
	});


/***/ }),
/* 2041 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var survey_question_builder_1 = __webpack_require__(815);
	angular
	    .module('capability-ng-survey')
	    .factory('ngSurveyQuestionDatastore', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: survey_question_builder_1.SurveyQuestion,
	        autoId: true
	    });
	});


/***/ }),
/* 2042 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var survey_intro_content_1 = __webpack_require__(816);
	var survey_question_content_1 = __webpack_require__(817);
	var survey_question_footer_1 = __webpack_require__(818);
	var survey_summary_content_1 = __webpack_require__(819);
	var survey_priority_feed_query_1 = __webpack_require__(241);
	var survey_query_1 = __webpack_require__(242);
	var survey_question_query_1 = __webpack_require__(243);
	var survey_routes_1 = __webpack_require__(820);
	var survey_question_controller_1 = __webpack_require__(822);
	var survey_introduction_controller_1 = __webpack_require__(821);
	var survey_summary_controller_1 = __webpack_require__(823);
	angular
	    .module('capability-ng-survey', [])
	    .service('ngSurveyPriorityFeedQuery', survey_priority_feed_query_1.SurveyPriorityFeedQuery)
	    .service('ngSurveyQuery', survey_query_1.SurveyQuery)
	    .service('ngSurveyQuestionQuery', survey_question_query_1.SurveyQuestionQuery)
	    .controller('SurveyQuestionController', survey_question_controller_1.SurveyQuestionController)
	    .controller('SurveyIntroductionController', survey_introduction_controller_1.SurveyIntroductionController)
	    .controller('SurveySummaryController', survey_summary_controller_1.SurveySummaryController)
	    .component('surveyQuestionFooter', new survey_question_footer_1.SurveyQuestionFooterComponent())
	    .component('surveyIntroductionContent', new survey_intro_content_1.SurveyIntroductionContentComponent())
	    .component('surveyQuestionContent', new survey_question_content_1.SurveyQuestionContentComponent())
	    .component('surveySummaryContent', new survey_summary_content_1.SurveySummaryContentComponent())
	    .config(survey_routes_1.SurveyRoutes);
	__webpack_require__(2039);
	tslib_1.__exportStar(__webpack_require__(241), exports);
	tslib_1.__exportStar(__webpack_require__(242), exports);
	tslib_1.__exportStar(__webpack_require__(243), exports);
	exports.default = 'capability-ng-survey';


/***/ }),
/* 2043 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var StaffTodoDetailsController = /** @class */ (function () {
	    function StaffTodoDetailsController($state, $stateParams, ngStaffTodoListQuery, ngTypeUtility, log, ngPathTaskFormatter, completeStaffTodoCommand, loadStaffTodoItemCommand) {
	        var _this = this;
	        this.$state = $state;
	        this.$stateParams = $stateParams;
	        this.ngStaffTodoListQuery = ngStaffTodoListQuery;
	        this.ngTypeUtility = ngTypeUtility;
	        this.log = log;
	        this.ngPathTaskFormatter = ngPathTaskFormatter;
	        this.completeStaffTodoCommand = completeStaffTodoCommand;
	        this.loadStaffTodoItemCommand = loadStaffTodoItemCommand;
	        if (_4.isEmpty(ngStaffTodoListQuery.result)) {
	            this.loadStaffTodoItemCommand(this.$stateParams.staffTodoID).then(function (response) {
	                _this.staffTodoData = response;
	                _this.loadModel();
	            });
	        }
	        else {
	            this.staffTodoData = _4.head(_4.filter(ngStaffTodoListQuery.result, function (todo) {
	                return todo.id == _this.$stateParams.staffTodoID;
	            }));
	            this.loadModel();
	        }
	    }
	    StaffTodoDetailsController.prototype.updateStaffTodoStatus = function () {
	        var _this = this;
	        this.completeStaffTodoCommand(this.$stateParams.staffTodoID, this.model.isCompleted).then(function (response) {
	            _this.staffTodoData = response.reminder;
	            _this.loadModel();
	        });
	    };
	    StaffTodoDetailsController.prototype.isOverdue = function () {
	        return moment(_4.get(this.staffTodoData, 'due_date', '')).isBefore(moment(), 'day');
	    };
	    StaffTodoDetailsController.prototype.getDateLabel = function () {
	        return this.ngPathTaskFormatter.getStaffTodoText(this.staffTodoData, this.isOverdue(), false);
	    };
	    StaffTodoDetailsController.prototype.loadModel = function () {
	        if (this.staffTodoData) {
	            this.model = {
	                title: _4.get(this.staffTodoData, 'name'),
	                sentBy: _4.get(this.staffTodoData, 'created_by_name'),
	                completedBy: _4.get(this.staffTodoData, 'cleared_by_name'),
	                isCompleted: !_4.isEmpty(_4.get(this.staffTodoData, 'cleared_date')),
	                isOverdue: this.isOverdue(),
	                subtitle: this.getDateLabel(),
	                showDescription: !_4.isEmpty(_4.get(this.staffTodoData, 'description')),
	                description: _4.get(this.staffTodoData, 'description')
	            };
	        }
	        else {
	            this.log.issue("The to-do from staff you're looking for does not exist.");
	        }
	    };
	    return StaffTodoDetailsController;
	}());
	exports.StaffTodoDetailsController = StaffTodoDetailsController;
	var StaffTodoDetailsComponent = /** @class */ (function () {
	    function StaffTodoDetailsComponent() {
	        this.templateUrl = 'capability-ng-todos/src/components/staff_todo_details/staff_todo_details.html';
	        this.controller = StaffTodoDetailsController;
	        this.bindings = {
	            staffTodoId: '<'
	        };
	    }
	    return StaffTodoDetailsComponent;
	}());
	exports.StaffTodoDetailsComponent = StaffTodoDetailsComponent;


/***/ }),
/* 2044 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(824);
	__webpack_require__(825);
	__webpack_require__(826);
	__webpack_require__(827);
	__webpack_require__(828);
	__webpack_require__(829);
	__webpack_require__(830);
	__webpack_require__(831);
	__webpack_require__(832);
	__webpack_require__(833);
	__webpack_require__(834);
	__webpack_require__(835);
	__webpack_require__(836);
	__webpack_require__(837);
	__webpack_require__(838);
	__webpack_require__(839);
	__webpack_require__(840);
	__webpack_require__(841);
	__webpack_require__(842);
	__webpack_require__(246);
	__webpack_require__(102);
	__webpack_require__(103);
	__webpack_require__(957);
	__webpack_require__(958);
	__webpack_require__(2045);
	__webpack_require__(2046);
	__webpack_require__(2047);
	__webpack_require__(2048);
	__webpack_require__(959);
	__webpack_require__(960);
	__webpack_require__(961);
	__webpack_require__(2049);
	__webpack_require__(2050);
	__webpack_require__(962);
	__webpack_require__(2051);
	__webpack_require__(2052);
	__webpack_require__(2053);
	__webpack_require__(2054);
	__webpack_require__(2055);
	__webpack_require__(2056);
	__webpack_require__(2057);
	__webpack_require__(2058);
	__webpack_require__(2059);
	__webpack_require__(2060);
	__webpack_require__(2061);
	__webpack_require__(247);
	__webpack_require__(248);
	__webpack_require__(104);
	__webpack_require__(2062);
	__webpack_require__(963);
	__webpack_require__(249);
	__webpack_require__(843);
	__webpack_require__(844);
	__webpack_require__(2064);
	__webpack_require__(845);
	__webpack_require__(2065);
	__webpack_require__(2066);
	__webpack_require__(2067);
	__webpack_require__(2068);
	__webpack_require__(250);
	__webpack_require__(846);
	__webpack_require__(2069);
	__webpack_require__(251);
	__webpack_require__(252);
	__webpack_require__(253);
	__webpack_require__(254);
	__webpack_require__(847);
	__webpack_require__(255);
	__webpack_require__(256);
	__webpack_require__(257);
	__webpack_require__(258);
	__webpack_require__(2070);
	__webpack_require__(2071);
	__webpack_require__(2072);
	__webpack_require__(2073);
	__webpack_require__(2074);
	__webpack_require__(848);
	__webpack_require__(259);
	__webpack_require__(849);
	__webpack_require__(2076);


/***/ }),
/* 2045 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('data-ng-todos')
	    .factory('clearPathDatastoresCommand', function clearPathDatastoresCommandDefinition(defineCommand, ngPathItemDatastore, ngPathTopicDatastore, ngPathTaskDatastore, ngOverduePathTaskDatastore) {
	    return defineCommand('clearPathDatastoresCommand', function clearPathDatastoresCommand(deferred) {
	        ngPathItemDatastore.clear();
	        ngPathTopicDatastore.clear();
	        ngPathTaskDatastore.clear();
	        ngOverduePathTaskDatastore.clear();
	        utility_ts_orm_1.ORM.run();
	        deferred.resolve();
	    });
	});


/***/ }),
/* 2046 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('data-ng-todos')
	    .factory('getAdaptivePathChangesCommand', function getAdaptivePathChangesCommandDefinition(pathTasksVisibilityModel, ngPathTaskDatastore, defineCommand) {
	    return defineCommand('getAdaptivePathChangesCommand', function getAdaptivePathChangesCommand(deferred) {
	        var totalNoOfChanges = 0;
	        pathTasksVisibilityModel.hasPathVisibilityChanges = false;
	        var otherChangesFromServerNotOnCurrentPath;
	        var findTaskByEventId = function (taskStatusObj) {
	            var tasks = ngPathTaskDatastore.query(function (tsk) {
	                return tsk.event === taskStatusObj.event && tsk.repeated_by === taskStatusObj.repeated_by;
	            });
	            return tasks.length === 0 ? undefined : tasks[0];
	        };
	        var getTaskChanges = function () {
	            var tasksWithDependency = _4.compact(_4.map(pathTasksVisibilityModel.task, function (task) {
	                return findTaskByEventId(task);
	            }));
	            var visibilityChanges = _4.reduce(pathTasksVisibilityModel.task, function (sum, taskStatusObj) {
	                var currentTaskWithDep = _4.find(tasksWithDependency, function (tsk) {
	                    return tsk.event === taskStatusObj.event && tsk.repeated_by === taskStatusObj.repeated_by;
	                });
	                var changeValue = 0;
	                if (currentTaskWithDep && !_4.isEqual(taskStatusObj.show, currentTaskWithDep.show)) {
	                    changeValue = 1;
	                }
	                return changeValue + sum;
	            }, 0);
	            var pathVisibilityChanges = _4.size(pathTasksVisibilityModel.task);
	            otherChangesFromServerNotOnCurrentPath = pathVisibilityChanges - _4.size(tasksWithDependency);
	            return visibilityChanges + otherChangesFromServerNotOnCurrentPath;
	        };
	        totalNoOfChanges = _4.size(pathTasksVisibilityModel.task) > 0 ? getTaskChanges() : 0;
	        deferred.resolve({
	            adaptivePathChanges: totalNoOfChanges,
	            changesThatNeedServerFetch: otherChangesFromServerNotOnCurrentPath
	        });
	    });
	});


/***/ }),
/* 2047 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('data-ng-todos')
	    .factory('loadAllPathStatusCommand', function loadAllPathStatusCommandDefinition($q, TaskStatusEnum, defineCommand, loadPathTasksCommand, clearPathDatastoresCommand, ngTodosContentService, $state, TodoFilterEnum) {
	    return defineCommand('loadAllPathStatusCommand', function loadAllPathStatusCommand(deferred, dateRange) {
	        $q.all({
	            clearPath: clearPathDatastoresCommand(),
	            todos: loadPathTasksCommand(dateRange)
	        })
	            .then(function (_a) {
	            var clearPath = _a.clearPath, todos = _a.todos, todosCompleted = _a.todosCompleted, todosDismissed = _a.todosDismissed, todosOverdue = _a.todosOverdue;
	            var filterBy = $state.params.filterBy || 'all';
	            var activeFilter = _.find(TodoFilterEnum.__keys__, function (filter) { return filter.stateParam === filterBy; });
	            ngTodosContentService.initialize(activeFilter);
	            $q.all({
	                todosCompleted: loadPathTasksCommand(dateRange, TaskStatusEnum.COMPLETED),
	                todosDismissed: loadPathTasksCommand(dateRange, TaskStatusEnum.DISMISSED),
	                todosOverdue: loadPathTasksCommand(dateRange, TaskStatusEnum.OVERDUE)
	            }).finally(function () {
	                deferred.resolve();
	            });
	        })
	            .catch(function () {
	            deferred.reject();
	        });
	    });
	});


/***/ }),
/* 2048 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('data-ng-todos')
	    .factory('loadAllTopicsCommand', function loadAllTopicsCommandDefinition($http, defineCommand, ngPathCurrentTopicDatastore, log) {
	    return defineCommand('loadAllTopicsCommand', function loadAllTopicsCommand(deferred) {
	        $http
	            .get('/item/studenttopic/')
	            .then(function (response) {
	            ngPathCurrentTopicDatastore.clear();
	            ngPathCurrentTopicDatastore.write(response.data.topic);
	            utility_ts_orm_1.ORM.run();
	            deferred.resolve();
	        })
	            .catch(function (e) {
	            log.issue('Failed to retrieve all topics.');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 2049 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('data-ng-todos')
	    .factory('loadPathTaskTopicsCommand', function loadPathTaskTopicsCommandDefinition($http, defineCommand, ngPathCurrentTopicDatastore, ngPathTaskDatastore, log) {
	    return defineCommand('loadPathTaskTopicsCommand', function loadPathTaskTopicsCommand(deferred, eventId, repeatedBy) {
	        var task = _4.find(ngPathTaskDatastore.values(), {
	            event: parseInt(eventId, 10),
	            repeated_by: parseInt(repeatedBy, 10)
	        });
	        var item_id = _4.get(task, 'item', -1);
	        if (item_id !== -1) {
	            $http
	                .get('/item/studenttopic/', {
	                params: {
	                    item_id: item_id
	                }
	            })
	                .then(function (response) {
	                ngPathCurrentTopicDatastore.clear();
	                ngPathCurrentTopicDatastore.write(response.data.topic);
	                utility_ts_orm_1.ORM.run();
	                deferred.resolve(response.data.topic);
	            })
	                .catch(function (e) {
	                log.issue('Failed to retrieve topics for this task');
	                deferred.reject(e);
	            });
	        }
	        else {
	            deferred.reject('Path Model empty');
	        }
	    });
	});


/***/ }),
/* 2050 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('data-ng-todos')
	    .factory('loadPathTasksCommand', function loadPathTasksCommandDefinition($http, defineCommand, ngTodoDateRangeService, ngPathItemDatastore, ngPathTopicDatastore, ngPathTaskDatastore, ngOverduePathTaskDatastore, pathTasksVisibilityModel, TaskStatusEnum) {
	    return defineCommand('loadPathTasksCommand', function loadPathTasksCommand(deferred, formattedDateRange, status) {
	        status = status || TaskStatusEnum.ACTIVE;
	        var data = {
	            status: status.key.toUpperCase()
	        };
	        formattedDateRange = formattedDateRange || ngTodoDateRangeService.getCurrentDateRange();
	        if (formattedDateRange) {
	            data = _.merge(data, {
	                start_dt: formattedDateRange.start,
	                end_dt: formattedDateRange.end
	            });
	        }
	        $http
	            .get('/event/tasks/', {
	            params: data
	        })
	            .then(function (response) {
	            pathTasksVisibilityModel.clear();
	            if (TaskStatusEnum.isOverdue(status)) {
	                ngOverduePathTaskDatastore.write(response.data.task);
	            }
	            else {
	                ngPathTaskDatastore.write(response.data.task);
	            }
	            ngPathItemDatastore.write(response.data.item);
	            ngPathTopicDatastore.write(response.data.topic);
	            utility_ts_orm_1.ORM.run();
	            deferred.resolve(response.data);
	        })
	            .catch(function (response) {
	            deferred.reject(response.data);
	        });
	    });
	});


/***/ }),
/* 2051 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('data-ng-todos')
	    .factory('topicToggleOptedInCommand', function topicToggleOptedInCommandDefinition($http, defineCommand, ngPathCurrentTopicDatastore, log) {
	    return defineCommand('topicToggleOptedInCommand', function topicToggleOptedInCommand(deferred, topic) {
	        $http
	            .put('/item/studenttopic/topic_id/' + topic.id, {
	            has_opted_in: topic.has_opted_in
	        })
	            .then(function (response) {
	            ngPathCurrentTopicDatastore.put(tslib_1.__assign({ id: topic.id, has_opted_in: topic.has_opted_in }, response.data.topic[topic.id]));
	            utility_ts_orm_1.ORM.run();
	            deferred.resolve(response);
	        })
	            .catch(function (e) {
	            log.issue("Unable to update your preference for " + topic.name);
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 2052 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(1);
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('data-ng-todos')
	    .factory('updateTaskStatusAndModelsCommand', function updateTaskStatusAndModelsCommandDefinition(defineCommand, ngPathTaskDatastore, ngOverduePathTaskDatastore, ngPathTaskUpdateService, TaskStatusEnum, ngTodoDateRangeService, pathTasksVisibilityModel, $http, ngTodoRefreshService) {
	    return defineCommand('updateTaskStatusAndModelsCommand', function updateTaskStatusAndModelsCommand(deferred, requestedStatus, task, isAutoComplete, addedToCalendar) {
	        addedToCalendar = addedToCalendar || false;
	        var updateStatusTo = TaskStatusEnum.get(requestedStatus);
	        var updatedStatus;
	        var pathStatus = task.status.toUpperCase();
	        if (_4.isUndefined(updateStatusTo)) {
	            return deferred.resolve(task);
	        }
	        updatedStatus = updateStatusTo.key.toUpperCase();
	        $http
	            .put('event/task/event/' + task.event + '/repeated_by/' + task.repeated_by, {
	            task_status: updatedStatus,
	            calendar_synced: addedToCalendar,
	            is_pending_complete: isAutoComplete,
	            start_dt: ngTodoDateRangeService.getCurrentDateRange().start,
	            end_dt: ngTodoDateRangeService.getCurrentDateRange().end,
	            path_status: pathStatus,
	            cache: false
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            task.status = updatedStatus;
	            task.is_pending_complete = isAutoComplete;
	            deferred.resolve(task);
	            if (!_4.includes(['COMPLETED', 'DISMISSED'], pathStatus)) {
	                pathTasksVisibilityModel.update(data);
	                ngTodoRefreshService.checkForUpdates();
	            }
	            // start datastore updating
	            var status = task.status, show = task.show, is_pending_complete = task.is_pending_complete, is_overdue = task.is_overdue;
	            var id = task.event + "_" + task.repeated_by;
	            ngPathTaskUpdateService.updatePathTask(task, {
	                id: id,
	                status: status,
	                show: show,
	                is_pending_complete: is_pending_complete,
	                is_overdue: is_overdue
	            });
	            var server_task = _4.first(data.task) || {};
	            var updatedPathTask = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, task), server_task), { id: id });
	            ngPathTaskDatastore.put(updatedPathTask);
	            utility_ts_orm_1.ORM.run(ngPathTaskDatastore);
	            utility_ts_orm_1.ORM.run(ngOverduePathTaskDatastore);
	        })
	            .catch(function (reason) {
	            deferred.reject(reason);
	        });
	    });
	});


/***/ }),
/* 2053 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('data-ng-todos')
	    .factory('updateTaskStatusCommand', function updateTaskStatusCommandDefinition(defineCommand, $http, ngTodoDateRangeService, ngPathTaskUpdateService, ngTodoRefreshService, pathTasksVisibilityModel) {
	    return defineCommand('updateTaskStatusCommand', function updateTaskStatusCommand(deferred, task, changeToStatus, isTaskAutoCompletable) {
	        pathTasksVisibilityModel.clear();
	        var pathStatus = task.status.toUpperCase();
	        $http
	            .put('event/task/event/' + task.event + '/repeated_by/' + task.repeated_by, {
	            task_status: changeToStatus.key.toUpperCase(),
	            start_dt: ngTodoDateRangeService.getCurrentDateRange().start,
	            end_dt: ngTodoDateRangeService.getCurrentDateRange().end,
	            path_status: pathStatus,
	            is_pending_complete: isTaskAutoCompletable,
	            cache: false
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            if (!_.contains(['COMPLETED', 'DISMISSED'], pathStatus)) {
	                pathTasksVisibilityModel.update(data);
	                ngTodoRefreshService.checkForUpdates();
	            }
	            var status = task.status, show = task.show, is_pending_complete = task.is_pending_complete, is_overdue = task.is_overdue;
	            var id = task.event + "_" + task.repeated_by;
	            ngPathTaskUpdateService.updatePathTask(task, {
	                id: id,
	                status: status,
	                show: show,
	                is_pending_complete: is_pending_complete,
	                is_overdue: is_overdue
	            });
	            deferred.resolve(task);
	        })
	            .catch(function (reason) {
	            deferred.reject(reason);
	        });
	    });
	});


/***/ }),
/* 2054 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('data-ng-todos')
	    .factory('updateTopicOptInsCommand', function updateTopicOptInsCommandDefinition($q, defineCommand, topicToggleOptedInCommand, log) {
	    return defineCommand('updateTopicOptInsCommand', function updateTopicOptInsCommand(deferred, updatedTopics) {
	        var updateTopicPromises = _4.map(updatedTopics, function (topic) {
	            return topicToggleOptedInCommand(topic);
	        });
	        $q.all(updateTopicPromises)
	            .then(function () {
	            log.user.success("Successfully updated your To-Do topic selections");
	            deferred.resolve();
	        })
	            .catch(function () {
	            deferred.reject();
	        });
	    });
	});


/***/ }),
/* 2055 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var path_topic_builder_1 = __webpack_require__(103);
	angular.module('data-ng-todos').factory('ngPathCurrentTopicDatastore', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: path_topic_builder_1.PathTopic,
	        autoId: false
	    });
	});


/***/ }),
/* 2056 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var path_item_builder_1 = __webpack_require__(246);
	angular.module('data-ng-todos').factory('ngPathItemDatastore', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: path_item_builder_1.PathItem,
	        autoId: false
	    });
	});


/***/ }),
/* 2057 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var path_task_builder_1 = __webpack_require__(102);
	angular.module('data-ng-todos').factory('ngOverduePathTaskDatastore', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: path_task_builder_1.PathTask,
	        mergeStrategy: 'merge',
	        autoId: false
	    });
	});


/***/ }),
/* 2058 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var path_task_builder_1 = __webpack_require__(102);
	angular.module('data-ng-todos').factory('ngPathTaskDatastore', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: path_task_builder_1.PathTask,
	        mergeStrategy: 'merge',
	        autoId: false
	    });
	});


/***/ }),
/* 2059 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var path_topic_builder_1 = __webpack_require__(103);
	angular.module('data-ng-todos').factory('ngPathTopicDatastore', function () {
	    return new utility_ts_orm_1.Datasource({
	        builderType: path_topic_builder_1.PathTopic,
	        autoId: false
	    });
	});


/***/ }),
/* 2060 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular.module('data-ng-todos').config(function ($provide) {
	    $provide.decorator('pathItemContractModifierDecorator', function ($delegate, resourceModel) {
	        $delegate.addExtension('topic', function (data) {
	            if (_4.isUndefined(data.topic) || _4.isEmpty(data.topic)) {
	                return {};
	            }
	            return _4.first(_4.valuesIn(data.topic));
	        });
	        $delegate.addExtension('resource', function (data) {
	            if (_4.isUndefined(data.resource) || _4.isEmpty(data.resource)) {
	                return {};
	            }
	            resourceModel.update({
	                resource: data.resource,
	                location: data.location
	            });
	            var resourcesData = _4.first(_4.values(data.item)).resources;
	            return resourceModel.getResourcesByListOfIds(resourcesData);
	        });
	        return $delegate;
	    });
	});


/***/ }),
/* 2061 */
/***/ (function(module, exports) {

	angular.module('data-ng-todos').decorator('TaskStatusEnum', function ($delegate) {
	    $delegate.ACTIVE.value.stateName = 'upcoming';
	    $delegate.COMPLETED.value.stateName = 'completed';
	    $delegate.DISMISSED.value.stateName = 'hidden';
	    $delegate.OVERDUE.value.stateName = 'overdue';
	    $delegate.REMINDER.value.stateName = 'reminder';
	    return $delegate;
	});


/***/ }),
/* 2062 */
880,
/* 2063 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var path_task_formatter_fn_1 = __webpack_require__(247);
	var task_update_fn_1 = __webpack_require__(248);
	var intake_question_service_1 = __webpack_require__(251);
	var intake_status_service_1 = __webpack_require__(252);
	var my_todos_content_service_1 = __webpack_require__(253);
	var path_color_service_1 = __webpack_require__(254);
	var path_task_update_service_1 = __webpack_require__(847);
	var path_toggle_service_1 = __webpack_require__(255);
	var task_detail_location_service_1 = __webpack_require__(256);
	var todo_date_range_service_1 = __webpack_require__(257);
	var todo_refresh_service_1 = __webpack_require__(258);
	__webpack_require__(27);
	__webpack_require__(21);
	__webpack_require__(22);
	__webpack_require__(34);
	__webpack_require__(40);
	__webpack_require__(51);
	__webpack_require__(857);
	angular
	    .module('data-ng-todos', [
	    'utility-ng-time',
	    'utility-ng-interface',
	    'utility-ng-enumeration',
	    'utility-ng-configuration',
	    'utility-ng-network-cache',
	    'data-ng-path-item'
	])
	    .service('ngPathTaskFormatter', path_task_formatter_fn_1.PathTaskFormatter)
	    .service('pathDetailLocationService', task_detail_location_service_1.PathDetailLocationService)
	    .service('ngPathToggleService', path_toggle_service_1.PathToggleService)
	    .service('pathTitleColorService', path_color_service_1.PathTitleColorService)
	    .service('ngTodoDateRangeService', todo_date_range_service_1.TodoDateRangeService)
	    .service('ngPathTaskUpdateService', path_task_update_service_1.PathTaskUpdateService)
	    .service('ngTodosContentService', my_todos_content_service_1.TodosContentService)
	    .service('ngTodoRefreshService', todo_refresh_service_1.TodoRefreshService)
	    .service('ngIntakeStatusService', intake_status_service_1.IntakeStatusService)
	    .service('ngIntakeService', intake_question_service_1.IntakeService)
	    .service('taskUpdateFn', task_update_fn_1.TaskUpdateFunction);
	module.exports = 'data-ng-todos';


/***/ }),
/* 2064 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var appointment_request_priority_feed_query_1 = __webpack_require__(249);
	var appointments_priority_feed_query_1 = __webpack_require__(843);
	var events_priority_feed_query_1 = __webpack_require__(845);
	var to_do_priority_feed_query_1 = __webpack_require__(250);
	angular
	    .module('data-ng-todos')
	    .service('ngToDoPriorityFeedQuery', to_do_priority_feed_query_1.ToDoPriorityFeedQuery)
	    .service('ngEventPriorityFeedQuery', events_priority_feed_query_1.EventPriorityFeedQuery)
	    .service('ngAppointmentPriorityFeedQuery', appointments_priority_feed_query_1.AppointmentPriorityFeedQuery)
	    .service('ngAppointmentRequestPriorityFeedQuery', appointment_request_priority_feed_query_1.AppointmentRequestPriorityFeedQuery);


/***/ }),
/* 2065 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var MustDoToDoQuery = /** @class */ (function () {
	    function MustDoToDoQuery(ngPathItemDatastore, ngPathTaskDatastore, ngPathTopicDatastore, ngToDoBuilderServant, EventCategoryEnum) {
	        this.ngPathItemDatastore = ngPathItemDatastore;
	        this.ngPathTaskDatastore = ngPathTaskDatastore;
	        this.ngPathTopicDatastore = ngPathTopicDatastore;
	        this.ngToDoBuilderServant = ngToDoBuilderServant;
	        this.EventCategoryEnum = EventCategoryEnum;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngPathItemDatastore, this.ngPathTaskDatastore, this.ngPathTopicDatastore);
	    }
	    MustDoToDoQuery.prototype.run = function () {
	        var _this = this;
	        var mustDoTaskList = this.ngPathTaskDatastore.query(function (task) {
	            return (task.mandatory &&
	                !(_this.EventCategoryEnum.isTip(task.category) || _this.EventCategoryEnum.isPoll(task.category)) &&
	                task.show);
	        });
	        this._result = _.map(mustDoTaskList, function (task) { return _this.ngToDoBuilderServant.buildTodo(task); });
	        return this;
	    };
	    Object.defineProperty(MustDoToDoQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return MustDoToDoQuery;
	}());
	exports.MustDoToDoQuery = MustDoToDoQuery;
	angular.module('data-ng-todos').service('ngMustDoToDoQuery', MustDoToDoQuery);


/***/ }),
/* 2066 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var OverdueToDoQuery = /** @class */ (function () {
	    function OverdueToDoQuery(ngPathItemDatastore, ngOverduePathTaskDatastore, ngPathTopicDatastore, ngToDoBuilderServant, EventCategoryEnum, TaskStatusEnum) {
	        this.ngPathItemDatastore = ngPathItemDatastore;
	        this.ngOverduePathTaskDatastore = ngOverduePathTaskDatastore;
	        this.ngPathTopicDatastore = ngPathTopicDatastore;
	        this.ngToDoBuilderServant = ngToDoBuilderServant;
	        this.EventCategoryEnum = EventCategoryEnum;
	        this.TaskStatusEnum = TaskStatusEnum;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngPathItemDatastore, this.ngOverduePathTaskDatastore, this.ngPathTopicDatastore);
	    }
	    OverdueToDoQuery.prototype.run = function () {
	        var _this = this;
	        var overdueTaskList = this.ngOverduePathTaskDatastore.query(function (task) {
	            return (task.mandatory &&
	                !(_this.EventCategoryEnum.isTip(task.category) || _this.EventCategoryEnum.isPoll(task.category)) &&
	                _this.TaskStatusEnum.isActive(task.status) &&
	                task.show);
	        });
	        this._result = _.map(overdueTaskList, function (task) { return _this.ngToDoBuilderServant.buildTodo(task); });
	        return this;
	    };
	    Object.defineProperty(OverdueToDoQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return OverdueToDoQuery;
	}());
	exports.OverdueToDoQuery = OverdueToDoQuery;
	angular.module('data-ng-todos').service('ngOverdueToDoQuery', OverdueToDoQuery);


/***/ }),
/* 2067 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var ShouldDoToDoQuery = /** @class */ (function () {
	    function ShouldDoToDoQuery(ngPathItemDatastore, ngPathTaskDatastore, ngPathTopicDatastore, ngToDoBuilderServant, EventCategoryEnum, TaskStatusEnum) {
	        this.ngPathItemDatastore = ngPathItemDatastore;
	        this.ngPathTaskDatastore = ngPathTaskDatastore;
	        this.ngPathTopicDatastore = ngPathTopicDatastore;
	        this.ngToDoBuilderServant = ngToDoBuilderServant;
	        this.EventCategoryEnum = EventCategoryEnum;
	        this.TaskStatusEnum = TaskStatusEnum;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngPathItemDatastore, this.ngPathTaskDatastore, this.ngPathTopicDatastore);
	    }
	    ShouldDoToDoQuery.prototype.run = function () {
	        var _this = this;
	        var shouldDosTaskList = this.ngPathTaskDatastore.query(function (task) {
	            return (!task.mandatory &&
	                !(_this.EventCategoryEnum.isTip(task.category) || _this.EventCategoryEnum.isPoll(task.category)) &&
	                task.show &&
	                _this.TaskStatusEnum.isActive(task.status));
	        });
	        this._result = _.map(shouldDosTaskList, function (task) { return _this.ngToDoBuilderServant.buildTodo(task); });
	        return this;
	    };
	    Object.defineProperty(ShouldDoToDoQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return ShouldDoToDoQuery;
	}());
	exports.ShouldDoToDoQuery = ShouldDoToDoQuery;
	angular.module('data-ng-todos').service('ngShouldDoToDoQuery', ShouldDoToDoQuery);


/***/ }),
/* 2068 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var TipToDoQuery = /** @class */ (function () {
	    function TipToDoQuery(ngPathItemDatastore, ngPathTaskDatastore, ngPathTopicDatastore, ngToDoBuilderServant, EventCategoryEnum) {
	        this.ngPathItemDatastore = ngPathItemDatastore;
	        this.ngPathTaskDatastore = ngPathTaskDatastore;
	        this.ngPathTopicDatastore = ngPathTopicDatastore;
	        this.ngToDoBuilderServant = ngToDoBuilderServant;
	        this.EventCategoryEnum = EventCategoryEnum;
	        utility_ts_orm_1.Query.registerQuery(this, this.ngPathItemDatastore, this.ngPathTaskDatastore, this.ngPathTopicDatastore);
	    }
	    TipToDoQuery.prototype.run = function () {
	        var _this = this;
	        var tipTaskList = this.ngPathTaskDatastore.query(function (task) { return _this.EventCategoryEnum.isTip(task.category) && task.show && task.status === 'ACTIVE'; });
	        this._result = _.map(tipTaskList, function (task) { return _this.ngToDoBuilderServant.buildTodo(task); });
	        return this;
	    };
	    Object.defineProperty(TipToDoQuery.prototype, "result", {
	        get: function () {
	            return this._result;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return TipToDoQuery;
	}());
	exports.TipToDoQuery = TipToDoQuery;
	angular.module('data-ng-todos').service('ngTipToDoQuery', TipToDoQuery);


/***/ }),
/* 2069 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_strategy_1 = __webpack_require__(6);
	var TodoFilterServant = /** @class */ (function () {
	    function TodoFilterServant(ngMustDoToDoQuery, ngOverdueToDoQuery, TaskStatusEnum, EventCategoryEnum, ngStaffTodoFilterServant) {
	        this.ngMustDoToDoQuery = ngMustDoToDoQuery;
	        this.ngOverdueToDoQuery = ngOverdueToDoQuery;
	        this.TaskStatusEnum = TaskStatusEnum;
	        this.EventCategoryEnum = EventCategoryEnum;
	        this.ngStaffTodoFilterServant = ngStaffTodoFilterServant;
	        this.strategy = new utility_ts_strategy_1.StrategySafe({
	            allToDo: this.getAllToDo,
	            activeToDosAndEvents: this.activeToDosAndEvents,
	            activeTodosAndEventsForToday: this.activeTodosAndEventsForToday,
	            todosForToday: this.todosForToday,
	            eventsForToday: this.eventsForToday,
	            completedTodos: this.completedTodos,
	            overdueTodos: this.overdueTodos,
	            hiddenTodos: this.hiddenTodos,
	            staffTodos: this.staffTodos
	        });
	    }
	    Object.defineProperty(TodoFilterServant.prototype, "filterStrategy", {
	        get: function () {
	            return this.strategy;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    TodoFilterServant.prototype.getAllToDo = function () {
	        return TodoFilterServant._sortTodosByDate(this.ngMustDoToDoQuery.result);
	    };
	    TodoFilterServant.prototype.activeToDosAndEvents = function () {
	        var _this = this;
	        var todos = _4.filter(this.ngMustDoToDoQuery.result, function (_a) {
	            var task = _a.task;
	            return _this.TaskStatusEnum.isActive(task.status);
	        });
	        var staffTodos = this.ngStaffTodoFilterServant.upcomingStaffTodos();
	        var unSorted = _4.union(todos, staffTodos);
	        return TodoFilterServant._sortTodosByDate(unSorted);
	    };
	    TodoFilterServant.prototype.activeTodosAndEventsForToday = function () {
	        var _this = this;
	        var endofDay = moment().endOf('day');
	        var todos = _4.filter(this.ngMustDoToDoQuery.result, function (_a) {
	            var task = _a.task;
	            return _this.TaskStatusEnum.isActive(task.status) &&
	                (task.start_ts.isBefore(endofDay) || task.end_ts.isBefore(endofDay));
	        });
	        var staffTodos = this.ngStaffTodoFilterServant.staffTodosForToday();
	        var unSorted = _4.union(todos, staffTodos);
	        return TodoFilterServant._sortTodosByDate(unSorted);
	    };
	    TodoFilterServant.prototype.todosForToday = function () {
	        var _this = this;
	        var endofDay = moment().endOf('day');
	        var todos = _4.filter(this.ngMustDoToDoQuery.result, function (_a) {
	            var task = _a.task;
	            return _this.TaskStatusEnum.isActive(task.status) &&
	                (task.start_ts.isBefore(endofDay) || task.end_ts.isBefore(endofDay)) &&
	                !_this.EventCategoryEnum.isDateMarker(task.category);
	        });
	        var staffTodos = this.ngStaffTodoFilterServant.staffTodosForToday();
	        var unSorted = _4.union(todos, staffTodos);
	        return TodoFilterServant._sortTodosByDate(unSorted);
	    };
	    TodoFilterServant.prototype.eventsForToday = function () {
	        var _this = this;
	        var endofDay = moment().endOf('day');
	        var unSorted = _4.filter(this.ngMustDoToDoQuery.result, function (_a) {
	            var task = _a.task;
	            return _this.TaskStatusEnum.isActive(task.status) &&
	                (task.start_ts.isBefore(endofDay) || task.end_ts.isBefore(endofDay)) &&
	                _this.EventCategoryEnum.isDateMarker(task.category);
	        });
	        return TodoFilterServant._sortTodosByDate(unSorted);
	    };
	    TodoFilterServant.prototype.completedTodos = function () {
	        var _this = this;
	        var todos = _4.filter(this.ngMustDoToDoQuery.result, function (_a) {
	            var task = _a.task;
	            return _this.TaskStatusEnum.isCompleted(task.status);
	        });
	        var staffTodos = this.ngStaffTodoFilterServant.completedStaffTodos();
	        var unSorted = _4.union(todos, staffTodos);
	        return TodoFilterServant._sortTodosByDate(unSorted);
	    };
	    TodoFilterServant.prototype.overdueTodos = function () {
	        var todos = this.ngOverdueToDoQuery.result;
	        var staffTodos = this.ngStaffTodoFilterServant.overdueStaffTodos();
	        var unSorted = _4.union(todos, staffTodos);
	        return TodoFilterServant._sortTodosByDate(unSorted);
	    };
	    TodoFilterServant.prototype.hiddenTodos = function () {
	        var _this = this;
	        var unSorted = _4.filter(this.ngMustDoToDoQuery.result, function (_a) {
	            var task = _a.task;
	            return _this.TaskStatusEnum.isDismissed(task.status);
	        });
	        return TodoFilterServant._sortTodosByDate(unSorted);
	    };
	    TodoFilterServant.prototype.staffTodos = function () {
	        var todayStaffTodos = this.ngStaffTodoFilterServant.staffTodosForToday();
	        var upcomingStaffTodos = this.ngStaffTodoFilterServant.upcomingStaffTodos();
	        var unSorted = _4.union(todayStaffTodos, upcomingStaffTodos);
	        return TodoFilterServant._sortTodosByDate(unSorted);
	    };
	    TodoFilterServant._sortTodosByDate = function (unsortedTodos) {
	        return _4.sortBy(unsortedTodos, function (_a) {
	            var task = _a.task;
	            return task.end_ts || task.due_date;
	        }, function (_a) {
	            var task = _a.task;
	            return task.start_ts || task.created_on;
	        });
	    };
	    return TodoFilterServant;
	}());
	exports.TodoFilterServant = TodoFilterServant;
	angular.module('data-ng-todos').service('ngTodoFilterServant', TodoFilterServant);


/***/ }),
/* 2070 */
/***/ (function(module, exports) {

	var PathItemPresenterDetailEnum = {
	    INTAKE: {
	        stateName: 'my.majorexplorer-step',
	        stateParams: {
	            pageIndex: 0
	        },
	        text: 'Launch the Major Explorer'
	    },
	    CAMPUS: false,
	    CHECKBOX: false,
	    CHOICE: false,
	    GENERIC: false,
	    DETAILS: false,
	    INFO: false,
	    INTEREST: false,
	    LISTSELECTION: false,
	    METARANKING: false,
	    PROGRAMS: false,
	    PLACEMENTTEST: false,
	    RANK: false,
	    APPOINTMENT: false,
	    APPOINTMENT_INVITATION: false,
	    ARTICLE: false,
	    TOPIC: false
	};
	angular
	    .module('data-ng-todos')
	    .constant('pathItemPresenterDetailEnum', Enumeration('pathItemPresenterDetailEnum', PathItemPresenterDetailEnum));


/***/ }),
/* 2071 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var pathTaskSecondaryTextEnum = Enumeration('pathTaskSecondaryTextEnum', {
	    // eslint-disable-line new-cap
	    overdue: {
	        secondaryText: 'Overdue on '
	    },
	    completed: {
	        secondaryText: 'Completed on '
	    },
	    dismissed: {
	        secondaryText: 'Hidden on '
	    },
	    active: {
	        secondaryText: 'Due '
	    },
	    date_marker: {
	        secondaryText: ''
	    },
	    auto_complete_pending: {
	        secondaryText: 'PENDING VERIFICATION ON '
	    },
	    auto_complete_active: {
	        secondaryText: ''
	    },
	    auto_completed: {
	        secondaryText: 'VERIFIED ON '
	    }
	});
	angular.module('data-ng-todos').constant('pathTaskSecondaryTextEnum', pathTaskSecondaryTextEnum);


/***/ }),
/* 2072 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular.module('data-ng-todos').constant('PlacementEnum', Enumeration('PlacementEnum', {
	    EI_PLACEMENT_TEST_WHAT_TO_EXPECT: 'EI_PLACEMENT_TEST_WHAT_TO_EXPECT',
	    EI_PLACEMENT_TEST_CONTACT_US: 'EI_PLACEMENT_TEST_CONTACT_US',
	    EI_PLACEMENT_TEST_APPLY_TO_ME: 'EI_PLACEMENT_TEST_APPLY_TO_ME',
	    EI_PLACEMENT_TEST_SIGN_UP: 'EI_PLACEMENT_TEST_SIGN_UP',
	    EI_PLACEMENT_TEST_HEADER: 'EI_PLACEMENT_TEST_HEADER'
	}));


/***/ }),
/* 2073 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular.module('data-ng-todos').factory('TaskStatusEnum', function (Enumeration, ItemPresenterEnum) {
	    return Enumeration('TaskStatusEnum', {
	        ACTIVE: {
	            noTasks: 'Yay! You have no tasks this week.',
	            taskHeader: function (task) {
	                var format;
	                if (task.start_ts && ItemPresenterEnum.APPOINTMENT_REQUEST.key !== task._item.presenter.key) {
	                    format = task.start_ts.year() !== task.end_ts.year() ? 'MMM D, YYYY' : 'MMM D';
	                    return task.start_ts.format(format) + ' - ' + task.end_ts.format(format);
	                }
	                else {
	                    return 'By ' + task.end_ts.format('MMM D');
	                }
	            }
	        },
	        OVERDUE: {
	            noTasks: "You don't have any overdue tasks.",
	            taskHeader: function (task) {
	                var format = task.end_ts.year() !== moment().year() ? 'MMM D, YYYY' : 'MMM D';
	                return 'Overdue on ' + task.end_ts.format(format);
	            }
	        },
	        COMPLETED: {
	            noTasks: "You don't have any completed tasks.",
	            taskHeader: function (task) {
	                return 'Completed on ' + task.status_changed_ts.format('MMM D');
	            }
	        },
	        DISMISSED: {
	            noTasks: "You don't have any dismissed tasks.",
	            taskHeader: function (task) {
	                return 'Dismissed on ' + task.status_changed_ts.format('MMM D');
	            }
	        },
	        REMINDER: {
	            noTasks: "You don't have any personal to-dos.",
	            taskHeader: function (task) {
	                return '';
	            }
	        }
	    });
	});


/***/ }),
/* 2074 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular.module('data-ng-todos').factory('TodoFilterEnum', function () {
	    return Enumeration.useDefinitionAsEnum({
	        ALL_TODO_AND_EVENT: {
	            name: 'All To-Dos and Events',
	            stateParam: 'all',
	            servantMethod: 'activeTodosAndEventsForToday',
	            viewTitle: 'Today',
	            emptyText: "There's nothing to do today. Keep scrolling to see what's coming up in the next week."
	        },
	        TODAY_TODO: {
	            name: "Today's To-Dos",
	            stateParam: 'todostoday',
	            servantMethod: 'todosForToday',
	            viewTitle: 'Today',
	            emptyText: "You have no to-dos today."
	        },
	        TODAY_EVENT: {
	            name: "Today's Events",
	            stateParam: 'eventstoday',
	            servantMethod: 'eventsForToday',
	            viewTitle: 'Today',
	            emptyText: "You have no events today."
	        },
	        COMPLETED_TODO: {
	            name: 'Completed',
	            stateParam: 'completed',
	            servantMethod: 'completedTodos',
	            viewTitle: 'Completed',
	            emptyText: "You haven't completed anything yet... \n Get going!"
	        },
	        OVERDUE_TODO: {
	            name: 'Overdue',
	            stateParam: 'overdue',
	            servantMethod: 'overdueTodos',
	            viewTitle: 'Overdue',
	            emptyText: "You have nothing overdue... \n Good job!"
	        },
	        HIDDEN_TODO: {
	            name: 'Hidden',
	            stateParam: 'hidden',
	            servantMethod: 'hiddenTodos',
	            viewTitle: 'Hidden',
	            emptyText: "You haven't hidden any steps yet."
	        },
	        REMINDER: {
	            name: 'Personal To-Dos',
	            stateParam: 'reminders',
	            servantMethod: 'allReminders',
	            viewTitle: 'Personal To-Dos',
	            emptyText: "You have no personal to-dos."
	        },
	        STAFF_TODO: {
	            name: 'To-Dos from Staff',
	            stateParam: 'stafftodos',
	            servantMethod: 'staffTodos',
	            viewTitle: 'To-Dos from Staffs',
	            emptyText: "You have no to-dos from staff."
	        }
	    });
	});


/***/ }),
/* 2075 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var appointment_info_1 = __webpack_require__(824);
	var appointment_request_info_1 = __webpack_require__(825);
	var carousel_1 = __webpack_require__(826);
	var consider_todo_card_1 = __webpack_require__(827);
	var custom_carousel_1 = __webpack_require__(828);
	var my_path_task_detail_child_controller_1 = __webpack_require__(829);
	var my_path_task_detail_header_1 = __webpack_require__(830);
	var my_todos_content_controller_1 = __webpack_require__(831);
	var path_checkbox_1 = __webpack_require__(832);
	var path_task_card_1 = __webpack_require__(833);
	var staff_todo_details_controller_1 = __webpack_require__(2043);
	var tip_card_1 = __webpack_require__(834);
	var tip_details_controller_1 = __webpack_require__(835);
	var todo_details_1 = __webpack_require__(836);
	var todo_placement_test_1 = __webpack_require__(837);
	var todo_refresh_button_1 = __webpack_require__(838);
	var todo_reminder_details_controller_1 = __webpack_require__(839);
	var todo_task_filter_1 = __webpack_require__(840);
	var topic_container_1 = __webpack_require__(841);
	var topic_tile_1 = __webpack_require__(842);
	var what_is_auto_complete_modal_1 = __webpack_require__(848);
	var path_modal_service_1 = __webpack_require__(259);
	var reminder_date_picker_modal_1 = __webpack_require__(849);
	__webpack_require__(2063);
	angular
	    .module('capability-ng-todos', ['data-ng-todos'])
	    .controller('ConsiderTodoController', consider_todo_card_1.ConsiderTodoCardController)
	    .component('considerTodoCard', new consider_todo_card_1.ConsiderTodoComponent())
	    .controller('TipCardController', tip_card_1.TipCardController)
	    .component('tipCard', new tip_card_1.TipCardComponent())
	    .controller('PathCheckboxController', path_checkbox_1.PathCheckboxController)
	    .component('pathCheckbox', new path_checkbox_1.PathCheckboxComponent())
	    .controller('PathDetailHeaderController', my_path_task_detail_header_1.PathDetailHeaderController)
	    .component('pathDetailHeader', new my_path_task_detail_header_1.PathDetailHeaderComponent())
	    .controller('TodoTaskFilterController', todo_task_filter_1.TodoTaskFilterController)
	    .component('todoTaskFilter', new todo_task_filter_1.TodoTaskFilterComponent())
	    .controller('PathTaskCardController', path_task_card_1.PathTaskCardController)
	    .component('pathTaskCard', new path_task_card_1.PathTaskCardComponent())
	    .controller('PathDetailChildrenController', my_path_task_detail_child_controller_1.PathDetailChildrenController)
	    .component('pathDetailChildren', new my_path_task_detail_child_controller_1.PathDetailChildrenComponent())
	    .controller('TodosContentController', my_todos_content_controller_1.TodosContentController)
	    .component('todosContent', new my_todos_content_controller_1.TodosContentComponent())
	    .service('ngPathModalService', path_modal_service_1.PathModalService)
	    .component('pathAutoCompleteModal', new what_is_auto_complete_modal_1.PathAutoCompleteModalComponent())
	    .controller('PathAutoCompleteModalController', what_is_auto_complete_modal_1.PathAutoCompleteModalController)
	    .component('staffTodoDetails', new staff_todo_details_controller_1.StaffTodoDetailsComponent())
	    .controller('StaffTodoDetailsController', staff_todo_details_controller_1.StaffTodoDetailsController)
	    .component('reminderDatePickerModal', new reminder_date_picker_modal_1.ReminderDatePickerModalComponent())
	    .controller('ReminderDatePickerModalController', reminder_date_picker_modal_1.ReminderDatePickerModalController)
	    .component('carousel', new carousel_1.CarouselComponent())
	    .component('customCarousel', new custom_carousel_1.CustomCarouselComponent())
	    .component('todoRefreshButton', new todo_refresh_button_1.TodoRefreshButtonComponent())
	    .component('todoPlacementTest', new todo_placement_test_1.TodoPlacementTestComponent())
	    .component('todoDetails', new todo_details_1.TodoDetailsComponent())
	    .component('appointmentInfo', new appointment_info_1.AppointmentInfoComponent())
	    .component('appointmentRequestInfo', new appointment_request_info_1.AppointmentRequestInfoComponent())
	    .controller('TodoRefreshButtonController', todo_refresh_button_1.TodoRefreshButtonController)
	    .component('todoReminderDetails', new todo_reminder_details_controller_1.TodoReminderDetailsComponent())
	    .controller('TodoReminderDetailsController', todo_reminder_details_controller_1.TodoReminderDetailsController)
	    .component('tipDetails', new tip_details_controller_1.TipDetailsComponent())
	    .controller('TipDetailsController', tip_details_controller_1.TipDetailsController)
	    .controller('TopicTileController', topic_tile_1.TopicTileController)
	    .component('topic', new topic_tile_1.TopicTileComponent())
	    .component('topicContainer', new topic_container_1.TopicContainerComponent());
	__webpack_require__(2044);
	tslib_1.__exportStar(__webpack_require__(259), exports);
	// Exports from data-ng-todos module
	tslib_1.__exportStar(__webpack_require__(254), exports);
	tslib_1.__exportStar(__webpack_require__(255), exports);
	tslib_1.__exportStar(__webpack_require__(257), exports);
	tslib_1.__exportStar(__webpack_require__(256), exports);
	tslib_1.__exportStar(__webpack_require__(253), exports);
	tslib_1.__exportStar(__webpack_require__(258), exports);
	tslib_1.__exportStar(__webpack_require__(251), exports);
	tslib_1.__exportStar(__webpack_require__(252), exports);
	tslib_1.__exportStar(__webpack_require__(844), exports);
	tslib_1.__exportStar(__webpack_require__(249), exports);
	tslib_1.__exportStar(__webpack_require__(250), exports);
	tslib_1.__exportStar(__webpack_require__(103), exports);
	tslib_1.__exportStar(__webpack_require__(246), exports);
	tslib_1.__exportStar(__webpack_require__(102), exports);
	tslib_1.__exportStar(__webpack_require__(846), exports);
	tslib_1.__exportStar(__webpack_require__(247), exports);
	tslib_1.__exportStar(__webpack_require__(248), exports);
	exports.todos = 'capability-ng-todos';


/***/ }),
/* 2076 */
880,
/* 2077 */
/***/ (function(module, exports, __webpack_require__) {

	var _3 = __webpack_require__(7);
	_3.templateSettings = {
	    interpolate: /{{([\s\S]+?)}}/g
	};
	var __3 = Object.freeze(_3);
	// protect lodash 3 from being hacked
	//
	//
	Object.defineProperty(window, '_', {
	    configurable: false,
	    get: function () {
	        return __3;
	    },
	    set: function () {
	        // never allow set
	    }
	});


/***/ }),
/* 2078 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('data-ng-authentication')
	    .factory('activateUserActivityCommand', function (defineCommand, userActivity, ngAuthenticationQueryModel, ngUserActivityActivationQuery) {
	    return defineCommand('activateUserActivityCommand', function (deferred) {
	        if (!ngAuthenticationQueryModel.isAccountValid()) {
	            deferred.reject('account model is not valid');
	            return;
	        }
	        if (!ngAuthenticationQueryModel.isMemberValid()) {
	            deferred.reject('login config model is not valid');
	            return;
	        }
	        var uaActivationQuery = ngUserActivityActivationQuery.run();
	        try {
	            userActivity.initialize(uaActivationQuery.about);
	            userActivity.registerPerson(uaActivationQuery.personRegistration.id, uaActivationQuery.personRegistration.email, uaActivationQuery.personRegistration.properties);
	        }
	        catch (e) {
	            // ??
	        }
	        deferred.resolve();
	    });
	});


/***/ }),
/* 2079 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var account_token_servant_1 = __webpack_require__(63);
	var _4 = __webpack_require__(1);
	angular
	    .module('data-ng-authentication')
	    .factory('loadAccountCommand', function (defineCommand, $http, ngURLQueryModel, ngAccountIdentityDatastore, ngAccountStatusDatastore, ngAuthenticationQueryModel, synchronizeDeprecatedModelsCommand) {
	    return defineCommand('loadAccountCommand', function (deferred, credentials) {
	        $http
	            .get(ngURLQueryModel.getAccountUrl(), credentials)
	            .then(function (response) {
	            ngAccountIdentityDatastore.update(account_token_servant_1.AccountTokenServant.accumulateAccountProperties(response.data));
	            ngAccountStatusDatastore.update(account_token_servant_1.AccountTokenServant.accumulateAccountProperties(response.data));
	            synchronizeDeprecatedModelsCommand();
	            deferred.resolve(ngAuthenticationQueryModel);
	        })
	            .catch(function (response) {
	            ngAccountIdentityDatastore.initialize();
	            ngAccountStatusDatastore.initialize();
	            return deferred.reject({
	                reason: _4.get(response, 'data.detail', '')
	            });
	        });
	    });
	});


/***/ }),
/* 2080 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('data-ng-authentication')
	    .factory('loginCommand', function (defineCommand, $http, ngURLQueryModel, loadAccountCommand) {
	    return defineCommand('loginCommand', function (deferred, credentials) {
	        $http
	            .post(ngURLQueryModel.getLoginUrl(), credentials)
	            .then(function (response) {
	            return deferred.resolve(loadAccountCommand());
	        })
	            .catch(function (response) {
	            return deferred.reject({
	                reason: response.data.display_message || response.data.detail
	            });
	        });
	    });
	});


/***/ }),
/* 2081 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('data-ng-authentication')
	    .factory('loginConfigurationCommand', function (defineCommand, $http, ngAuthenticationQueryModel, ngURLQueryModel, ngMemberConfigurationDatastore, synchronizeDeprecatedModelsCommand) {
	    return defineCommand('loginConfigurationCommand', function (deferred) {
	        if (ngAuthenticationQueryModel.isMemberValid()) {
	            deferred.resolve(ngMemberConfigurationDatastore.store);
	            return;
	        }
	        $http
	            .get(ngURLQueryModel.getLoginConfigurationUrl())
	            .then(function (response) {
	            var loginConfiguration = response.data.login_config;
	            ngMemberConfigurationDatastore.update(loginConfiguration);
	            synchronizeDeprecatedModelsCommand();
	            if (ngAuthenticationQueryModel.isMemberValid()) {
	                deferred.resolve(response.data.login_config);
	            }
	            else {
	                deferred.reject();
	            }
	        })
	            .catch(function (response) {
	            return deferred.reject({
	                reason: response.data.detail
	            });
	        });
	    });
	})
	    .factory('loginConfigCommand', function (loginConfigurationCommand) { return loginConfigurationCommand; });


/***/ }),
/* 2082 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var auth_type_enum_1 = __webpack_require__(105);
	angular
	    .module('data-ng-authentication')
	    .factory('logoutCommand', function (defineCommand, $http, ngURLQueryModel, accountModel, ngAccountIdentityDatastore, authenticationConfiguration, ngMemberConfigurationDatastore, resetAccountCommand) {
	    return defineCommand('logoutCommand', function (deferred, isMobile) {
	        if (isMobile === void 0) { isMobile = false; }
	        var httpMethod = ngURLQueryModel.getLogoutRequestMethod();
	        var httpUrl = ngURLQueryModel.getLogoutUrl();
	        var responseVar;
	        var isAuthTypeCentralAuth = auth_type_enum_1.AuthTypeEnum.isEqual(ngMemberConfigurationDatastore.store.auth_type, auth_type_enum_1.AuthTypeEnum.get('central'));
	        var isAuthTypeSaml = auth_type_enum_1.AuthTypeEnum.isEqual(ngMemberConfigurationDatastore.store.auth_type, auth_type_enum_1.AuthTypeEnum.get('saml2_v2'));
	        var sgdRedirectUrl = localStorage.getItem('sgdRedirectUrl');
	        if (sgdRedirectUrl) {
	            localStorage.removeItem('sgdRedirectUrl');
	        }
	        var isSSOLogout = function (response) {
	            return ((_4.includes(httpUrl, '/cas/') || _4.includes(httpUrl, '/saml2/')) &&
	                responseVar.data &&
	                responseVar.data.url);
	        };
	        var goToURL = function (url) {
	            if (isMobile) {
	                window.open(url, '_blank', 'hardwareback=yes,toolbarposition=top,clearcache=yes,clearsessioncache=yes,enableViewportScale=yes');
	            }
	            else {
	                location.assign(url);
	            }
	        };
	        var handleSSOLogout = function (response) {
	            if (isSSOLogout(response)) {
	                setTimeout(function () {
	                    goToURL(response.data.url);
	                }, 300);
	            }
	        };
	        if (isAuthTypeCentralAuth || isAuthTypeSaml) {
	            goToURL(ngMemberConfigurationDatastore.store.logout_url);
	            deferred.resolve();
	            return;
	        }
	        $http[httpMethod](httpUrl)
	            .then(function (response) {
	            responseVar = response;
	        })
	            .catch(function (response) {
	            return deferred.reject({
	                reason: response.data.detail
	            });
	        })
	            .finally(function () {
	            if (responseVar && isSSOLogout(responseVar)) {
	                handleSSOLogout(responseVar);
	            }
	            else {
	                resetAccountCommand();
	                ngURLQueryModel.transitionToLogoutState();
	            }
	            accountModel.clear();
	            ngAccountIdentityDatastore.clear();
	            deferred.resolve({
	                logoutUrl: authenticationConfiguration.read().goToStateOnLogout
	            });
	        });
	    });
	});


/***/ }),
/* 2083 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('data-ng-authentication')
	    .factory('resetAccountCommand', function (defineCommand, ngAuthenticationQueryModel, ngAccountStatusDatastore, ngAccountIdentityDatastore) {
	    return defineCommand('resetAccountCommand', function (deferred) {
	        ngAccountIdentityDatastore.initialize();
	        ngAccountStatusDatastore.initialize();
	        deferred.resolve(ngAuthenticationQueryModel);
	    });
	});


/***/ }),
/* 2084 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('data-ng-authentication')
	    .factory('resetMemberConfigurationCommand', function (defineCommand, ngMemberConfigurationDatastore, ngAuthenticationQueryModel) {
	    return defineCommand('resetMemberConfigurationCommand', function (deferred) {
	        ngMemberConfigurationDatastore.initialize();
	        deferred.resolve(ngAuthenticationQueryModel);
	    });
	});


/***/ }),
/* 2085 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('data-ng-authentication')
	    .factory('synchronizeDeprecatedModelsCommand', function (defineCommand, loginConfigModel, accountModel) {
	    return defineCommand('synchronizeDeprecatedModelsCommand', function (deferred) {
	        accountModel.synchronize();
	        loginConfigModel.synchronize();
	        deferred.resolve();
	    });
	});


/***/ }),
/* 2086 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(2078);
	__webpack_require__(2079);
	__webpack_require__(2080);
	__webpack_require__(2081);
	__webpack_require__(2082);
	__webpack_require__(2083);
	__webpack_require__(2084);
	__webpack_require__(2085);
	__webpack_require__(260);
	__webpack_require__(261);
	__webpack_require__(262);
	__webpack_require__(263);
	__webpack_require__(264);
	__webpack_require__(265);
	__webpack_require__(266);
	__webpack_require__(850);
	__webpack_require__(851);
	__webpack_require__(852);
	__webpack_require__(63);
	__webpack_require__(267);
	__webpack_require__(105);
	__webpack_require__(268);


/***/ }),
/* 2087 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	__webpack_require__(22);
	__webpack_require__(21);


/***/ }),
/* 2088 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('data-ng-custom-text')
	    .factory('getScheduleAppointmentLabelCommand', function ($q, defineCommandORM, appConfigModel, ngStcSchedulingConfigModel, ngStcCustomContentsModel, loadStcCustomContentsCommand, getSchedulingConfigCommand) {
	    return defineCommandORM('getScheduleAppointmentLabelCommand', function (deferred, defaultLabel) {
	        var buttonLabel = defaultLabel;
	        var APPOINTMENT_SCHEDULE_FEATURE_TOGGLE = 'model.member_features.ssccampus-appointment_scheduling';
	        var SCHEDULE_BUTTON_TEXT = 'student_scheduling.student_scheduler_button_text';
	        var schedulingFeatureOn = _4.get(appConfigModel, APPOINTMENT_SCHEDULE_FEATURE_TOGGLE, false);
	        var schedulingConfigNotResolved = _4.isUndefined(_4.get(ngStcSchedulingConfigModel.read(), 'v3_student_scheduler_flag'));
	        var promise = $q.resolve();
	        if (schedulingConfigNotResolved && schedulingFeatureOn) {
	            promise = getSchedulingConfigCommand();
	        }
	        promise.then(function () {
	            var v3Enabled = _4.get(ngStcSchedulingConfigModel.read(), 'v3_student_scheduler_flag', false);
	            var shouldGetCustomContents = _4.isUndefined(ngStcCustomContentsModel.read().student_scheduling) && v3Enabled;
	            if (!shouldGetCustomContents) {
	                return deferred.resolve(_4.get(ngStcCustomContentsModel.read(), SCHEDULE_BUTTON_TEXT, defaultLabel));
	            }
	            return loadStcCustomContentsCommand().then(function () {
	                return deferred.resolve(_4.get(ngStcCustomContentsModel.read(), SCHEDULE_BUTTON_TEXT, defaultLabel));
	            });
	        });
	    });
	});


/***/ }),
/* 2089 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('data-ng-custom-text')
	    .factory('getSchedulingConfigCommand', function (defineCommandORM, appConfigModel, ngStcSchedulingConfigModel, loadStcScheduleConfigCommand) {
	    return defineCommandORM('getSchedulingConfigCommand', function (deferred) {
	        var APPOINTMENT_SCHEDULE_FEATURE = 'model.member_features.ssccampus-appointment_scheduling';
	        var shouldLoadConfig = _4.isUndefined(ngStcSchedulingConfigModel.read().v3_student_scheduler_flag) &&
	            _4.get(appConfigModel, APPOINTMENT_SCHEDULE_FEATURE, false);
	        if (shouldLoadConfig) {
	            return loadStcScheduleConfigCommand()
	                .then(function () { return deferred.resolve(); })
	                .catch(function (err) { return deferred.reject(err); });
	        }
	        else {
	            return deferred.resolve();
	        }
	    });
	});


/***/ }),
/* 2090 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('data-ng-custom-text')
	    .factory('loadAllCustomTextCommand', function ($http, defineCommand, ngCustomTextModel, log) {
	    return defineCommand('loadAllCustomTextCommand', function (deferred) {
	        return $http({
	            method: 'GET',
	            url: "config/customtext"
	        })
	            .then(function (_a) {
	            var data = _a.data;
	            deferred.resolve(data);
	            ngCustomTextModel.write(data);
	            var selfAlertIntroText = _4.find(data, function (entry) {
	                return entry.nk === 'SELF_ALERT_INTRO_TEXT';
	            });
	            if (!_4.isEmpty(selfAlertIntroText)) {
	                localStorage.setItem('eab.navigate.self_alert_intro_text', JSON.stringify(selfAlertIntroText.text));
	            }
	        })
	            .catch(function (e) {
	            log.issue('Failed to get custom text');
	            deferred.reject(e);
	        });
	    });
	});


/***/ }),
/* 2091 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('data-ng-custom-text')
	    .factory('loadApptSummaryConfigsCommand', function ($http, defineCommandORM, ngApptSummaryConfigModel, log) {
	    var activePromise = false;
	    return defineCommandORM('loadApptSummaryConfigsCommand', function loadApptSummaryConfigsCommand(deferred) {
	        if (!activePromise) {
	            activePromise = $http
	                .get('/config/featuretoggle/ssccampus-docs_appointment_summaries')
	                .then(function (_a) {
	                var data = _a.data;
	                //modify data to fit STC calls
	                var modifiedData = {
	                    is_active: data.data.enabled,
	                    last_enabled_dt: data.data.last_enabled_dt,
	                    name: data.data.name,
	                    nk: 'APPOINTMENT_SUMMARIES'
	                };
	                ngApptSummaryConfigModel.write(modifiedData);
	                activePromise = false;
	                deferred.resolve(data);
	            })
	                .catch(function (e) {
	                log.issue('Failed to get appt summary config');
	                activePromise = false;
	                deferred.reject(e);
	            });
	            return activePromise;
	        }
	        else {
	            return activePromise;
	        }
	    });
	});


/***/ }),
/* 2092 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('data-ng-custom-text')
	    .factory('loadHandRaiseConfigsCommand', function ($http, defineCommandORM, ngHandRaiseConfigModel, log) {
	    var activePromise = false;
	    return defineCommandORM('loadHandRaiseConfigsCommand', function loadHandRaiseConfigsCommand(deferred) {
	        if (!activePromise) {
	            activePromise = $http
	                .get('/config/featuretoggle/ssccampus-docs_hand_raise_view')
	                .then(function (_a) {
	                var data = _a.data;
	                //modify data to fit STC calls
	                var modifiedData = {
	                    is_active: data.data.enabled,
	                    last_enabled_dt: data.data.last_enabled_dt,
	                    name: data.data.name,
	                    nk: 'SELF_ALERTS'
	                };
	                ngHandRaiseConfigModel.write(modifiedData);
	                activePromise = false;
	                deferred.resolve(data);
	            })
	                .catch(function (e) {
	                log.issue('Failed to get hand raise view config');
	                activePromise = false;
	                deferred.reject(e);
	            });
	            return activePromise;
	        }
	        else {
	            return activePromise;
	        }
	    });
	});


/***/ }),
/* 2093 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('data-ng-custom-text')
	    .factory('loadNotesConfigsCommand', function ($http, defineCommandORM, ngNotesConfigModel, log) {
	    var activePromise = false;
	    return defineCommandORM('loadNotesConfigsCommand', function loadNotesConfigsCommand(deferred) {
	        if (!activePromise) {
	            activePromise = $http
	                .get('/config/featuretoggle/ssccampus-docs_notes')
	                .then(function (_a) {
	                var data = _a.data;
	                //modify data to fit STC calls
	                var modifiedData = {
	                    is_active: data.data.enabled,
	                    last_enabled_dt: data.data.last_enabled_dt,
	                    name: data.data.name,
	                    nk: 'NOTES'
	                };
	                ngNotesConfigModel.write(modifiedData);
	                activePromise = false;
	                deferred.resolve(data);
	            })
	                .catch(function (e) {
	                log.issue('Failed to get notes config');
	                activePromise = false;
	                deferred.reject(e);
	            });
	            return activePromise;
	        }
	        else {
	            return activePromise;
	        }
	    });
	});


/***/ }),
/* 2094 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('data-ng-custom-text')
	    .factory('loadProgressReportsConfigsCommand', function ($http, defineCommandORM, ngProgressReportsConfigModel, log) {
	    var activePromise = false;
	    return defineCommandORM('loadProgressReportsConfigsCommand', function loadProgressReportsConfigsCommand(deferred) {
	        if (!activePromise) {
	            activePromise = $http
	                .get('/config/featuretoggle/ssccampus-docs_progress_reports')
	                .then(function (_a) {
	                var data = _a.data;
	                //modify data to fit STC calls
	                var modifiedData = {
	                    is_active: data.data.enabled,
	                    last_enabled_dt: data.data.last_enabled_dt,
	                    name: data.data.name,
	                    nk: 'PROGRESS_REPORTS'
	                };
	                ngProgressReportsConfigModel.write(modifiedData);
	                activePromise = false;
	                deferred.resolve(data);
	            })
	                .catch(function (e) {
	                log.issue('Failed to get progress reports config');
	                activePromise = false;
	                deferred.reject(e);
	            });
	            return activePromise;
	        }
	        else {
	            return activePromise;
	        }
	    });
	});


/***/ }),
/* 2095 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('data-ng-custom-text')
	    .factory('loadStcCustomContentsCommand', function (defineCommandORM, log, ngStcCustomContentsModel, authToken) {
	    var activePromise = false;
	    return defineCommandORM('loadStcCustomContentsCommand', function (deferred, attendance_id) {
	        if (!activePromise) {
	            activePromise = authToken
	                .campusTokenRequest({
	                url: '/api/v3/custom_contents'
	            })
	                .then(function (response) {
	                ngStcCustomContentsModel.write(response.data);
	                deferred.resolve(response.data);
	                activePromise = false;
	            })
	                .catch(function (err) {
	                log.error('unable to load stc custom contents');
	                deferred.reject(err);
	                activePromise = false;
	            });
	            return activePromise;
	        }
	        else {
	            return activePromise;
	        }
	    });
	});


/***/ }),
/* 2096 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	// Deprecated: this command is no longer needed because v3_student_scheduler_flag will always be true. Next step would be removing this command after all mentions of v3_student_scheduler_flag are removed from SGD.
	angular
	    .module('data-ng-custom-text')
	    .factory('loadStcScheduleConfigCommand', function (defineCommand, ngStcSchedulingConfigModel) {
	    return defineCommand('loadStcScheduleConfigCommand', function (deferred) {
	        ngStcSchedulingConfigModel.write({
	            v3_student_scheduler_flag: true
	        });
	        deferred.resolve();
	    });
	});


/***/ }),
/* 2097 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('data-ng-custom-text').factory('ngApptSummaryConfigModel', function () {
	    return new utility_ts_orm_1.Model({
	        is_active: null,
	        last_enabled_dt: '',
	        name: '',
	        nk: ''
	    });
	});


/***/ }),
/* 2098 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('data-ng-custom-text').factory('ngCustomTextModel', function () {
	    return new utility_ts_orm_1.Model([]);
	});


/***/ }),
/* 2099 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('data-ng-custom-text').factory('ngHandRaiseConfigModel', function () {
	    return new utility_ts_orm_1.Model({
	        is_active: null,
	        last_enabled_dt: '',
	        name: '',
	        nk: ''
	    });
	});


/***/ }),
/* 2100 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('data-ng-custom-text').factory('ngNotesConfigModel', function () {
	    return new utility_ts_orm_1.Model({
	        is_active: null,
	        last_enabled_dt: '',
	        name: '',
	        nk: ''
	    });
	});


/***/ }),
/* 2101 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('data-ng-custom-text').factory('ngProgressReportsConfigModel', function () {
	    return new utility_ts_orm_1.Model({
	        is_active: null,
	        last_enabled_dt: '',
	        name: '',
	        nk: ''
	    });
	});


/***/ }),
/* 2102 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('data-ng-custom-text').factory('ngStcCustomContentsModel', function () {
	    return new utility_ts_orm_1.Model({
	        student_scheduling: undefined
	    });
	});


/***/ }),
/* 2103 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('data-ng-custom-text').factory('ngStcSchedulingConfigModel', function () {
	    return new utility_ts_orm_1.Model({
	        v3_student_scheduler_flag: undefined
	    });
	});


/***/ }),
/* 2104 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var _4 = __webpack_require__(1);
	angular
	    .module('data-ng-personal-reminders')
	    .factory('createReminderCommand', function (defineCommand, $http, reminderConfirmDatasource, reminderListDatastore) {
	    return defineCommand('createReminderCommand', function (deferred, reminderAPIValues) {
	        $http
	            .post("event/todos", reminderAPIValues)
	            .then(function (response) {
	            var reminder = _4.merge(response.data, reminderAPIValues, {
	                due_ts: reminderAPIValues.due_dt + "T" + reminderAPIValues.due_tm
	            });
	            reminderConfirmDatasource.write(reminder);
	            reminderListDatastore.addReminder(reminder);
	            utility_ts_orm_1.ORM.run();
	            deferred.resolve(utility_ts_orm_1.ORM.run(reminderListDatastore));
	            deferred.resolve(response);
	        })
	            .catch(function (error) {
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 2105 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('data-ng-personal-reminders')
	    .factory('deleteReminderCommand', function (defineCommand, $http, reminderConfirmDatasource, reminderListDatastore) {
	    return defineCommand('deleteReminderCommand', function (deferred, reminderID) {
	        $http
	            .delete("event/todos/" + reminderID)
	            .then(function (response) {
	            reminderConfirmDatasource.initialize();
	            reminderListDatastore.deleteReminder(reminderID);
	            utility_ts_orm_1.ORM.run();
	            deferred.resolve(utility_ts_orm_1.ORM.run(reminderListDatastore));
	            deferred.resolve(response);
	        })
	            .catch(function (error) {
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 2106 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var _4 = __webpack_require__(1);
	angular
	    .module('data-ng-personal-reminders')
	    .factory('editReminderCommand', function (defineCommand, $http, reminderConfirmDatasource, reminderListDatastore) {
	    return defineCommand('editReminderCommand', function (deferred, reminderID, reminderAPIValues) {
	        $http
	            .put("event/todos/" + reminderID, reminderAPIValues)
	            .then(function (response) {
	            var oldData = _4.find(reminderListDatastore.read(), function (x) { return x.id === reminderID; });
	            var reminder = _4.merge(oldData, reminderAPIValues, {
	                id: reminderID,
	                due_ts: _4.isEmpty(reminderAPIValues.due_dt)
	                    ? oldData.due_ts
	                    : reminderAPIValues.due_dt + "T" + reminderAPIValues.due_tm
	            });
	            reminderConfirmDatasource.write(reminder);
	            reminderListDatastore.updateReminder(reminder);
	            utility_ts_orm_1.ORM.run();
	            deferred.resolve(utility_ts_orm_1.ORM.run(reminderListDatastore));
	            deferred.resolve(response);
	        })
	            .catch(function (error) {
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 2107 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('data-ng-personal-reminders')
	    .factory('loadAllReminderCommand', function (defineCommand, $http, reminderListDatastore) {
	    return defineCommand('loadAllReminderCommand', function (deferred) {
	        $http
	            .get("event/todos/?status=ACTIVE")
	            .then(function (response) {
	            reminderListDatastore.write(response.data);
	            deferred.resolve(utility_ts_orm_1.ORM.run(reminderListDatastore));
	        })
	            .catch(function (error) {
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 2108 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('data-ng-personal-reminders')
	    .factory('loadAllReminderDateRangeCommand', function (defineCommand, $http, reminderListDatastore) {
	    return defineCommand('loadAllReminderDateRangeCommand', function (deferred, formattedTimeRange) {
	        var data = {
	            end_dt: formattedTimeRange.end,
	            start_dt: formattedTimeRange.start,
	            status: 'ACTIVE'
	        };
	        $http
	            .get("event/todos/", {
	            params: data
	        })
	            .then(function (response) {
	            reminderListDatastore.write(response.data);
	            deferred.resolve(utility_ts_orm_1.ORM.run(reminderListDatastore));
	        })
	            .catch(function (error) {
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 2109 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular
	    .module('data-ng-personal-reminders')
	    .factory('loadReminderCommand', function (defineCommand, $http, reminderConfirmDatasource) {
	    return defineCommand('loadReminderCommand', function (deferred, reminderID) {
	        $http
	            .get("event/todos/" + reminderID)
	            .then(function (response) {
	            reminderConfirmDatasource.write(response.data);
	            deferred.resolve(utility_ts_orm_1.ORM.run(reminderConfirmDatasource));
	            deferred.resolve(response.data);
	        })
	            .catch(function (error) {
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 2110 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ExpandingReminderTextboxController = /** @class */ (function () {
	    function ExpandingReminderTextboxController(personalReminderService, ngTypeUtility) {
	        this.personalReminderService = personalReminderService;
	        this.ngTypeUtility = ngTypeUtility;
	        this.maxTitleLength = 60;
	        this.reminderService = personalReminderService;
	    }
	    ExpandingReminderTextboxController.prototype.approachingLengthLimit = function (titleText) {
	        return _4.isEmpty(titleText) ? false : this.maxTitleLength - titleText.length <= 10;
	    };
	    ExpandingReminderTextboxController.prototype.textSanitizerAndValidator = function (currentTitleText) {
	        this.personalReminderService.textSanitizerAndValidator(currentTitleText, this.maxTitleLength);
	    };
	    return ExpandingReminderTextboxController;
	}());
	exports.ExpandingReminderTextboxController = ExpandingReminderTextboxController;
	angular
	    .module('data-ng-personal-reminders')
	    .controller('ExpandingReminderTextboxController', ExpandingReminderTextboxController);


/***/ }),
/* 2111 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular.module('data-ng-personal-reminders').directive('expandText', function expandText() {
	    return {
	        replace: false,
	        restrict: 'A',
	        scope: false,
	        link: function linkerFn(scope, element, attrs) {
	            var textarea = angular.element(element[0]);
	            textarea.bind('input', function () {
	                textarea.css('height', 'auto');
	                textarea.css('height', +_4.first(textarea).scrollHeight + 'px');
	            });
	        }
	    };
	});


/***/ }),
/* 2112 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	angular.module('data-ng-personal-reminders', ['data-ng-path-item']);
	__webpack_require__(2104);
	__webpack_require__(2105);
	__webpack_require__(2106);
	__webpack_require__(2109);
	__webpack_require__(2107);
	__webpack_require__(2108);
	__webpack_require__(2110);
	__webpack_require__(2111);
	__webpack_require__(858);
	__webpack_require__(859);
	__webpack_require__(863);
	__webpack_require__(864);
	__webpack_require__(2113);
	tslib_1.__exportStar(__webpack_require__(858), exports);
	tslib_1.__exportStar(__webpack_require__(859), exports);
	tslib_1.__exportStar(__webpack_require__(863), exports);
	tslib_1.__exportStar(__webpack_require__(864), exports);
	tslib_1.__exportStar(__webpack_require__(862), exports);
	tslib_1.__exportStar(__webpack_require__(860), exports);
	tslib_1.__exportStar(__webpack_require__(861), exports);


/***/ }),
/* 2113 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var reminder_priority_feed_query_1 = __webpack_require__(861);
	var reminder_query_1 = __webpack_require__(862);
	var reminder_list_query_1 = __webpack_require__(860);
	angular
	    .module('data-ng-personal-reminders')
	    .service('ngReminderPriorityFeedQuery', reminder_priority_feed_query_1.ReminderPriorityFeedQuery)
	    .service('ngReminderQuery', reminder_query_1.ReminderQuery)
	    .service('ngReminderListQuery', reminder_list_query_1.ReminderListQuery);


/***/ }),
/* 2114 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('data-ng-staff-todos')
	    .factory('completeStaffTodoCommand', function (defineCommand, staffTodoListDatastore, getJwtTokenCommand, $http, appConfigModel) {
	    return defineCommand('completeStaffTodoCommand', function (deferred, staffTodoID, isCompleted) {
	        var data = isCompleted ? { complete: 'false' } : { complete: 'true' };
	        var campusUrl = appConfigModel.getConfigProperty("core-campus_url");
	        if (_4.isEmpty(campusUrl)) {
	            deferred.resolve();
	        }
	        else {
	            getJwtTokenCommand().then(function (token) {
	                var config = {
	                    url: campusUrl + '/api/v3/student_resources/reminders/' + staffTodoID,
	                    method: 'PUT',
	                    headers: {
	                        Authorization: token.access_token,
	                        isCampusAPI: true
	                    },
	                    data: data
	                };
	                $http(config)
	                    .then(function (response) {
	                    staffTodoListDatastore.updateStaffTodo(response.data.data.reminder);
	                    deferred.resolve(response.data.data);
	                })
	                    .catch(function (error) {
	                    deferred.reject(error);
	                });
	            });
	        }
	    });
	});


/***/ }),
/* 2115 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('data-ng-staff-todos')
	    .factory('getJwtTokenCommand', function (defineCommand, $http) {
	    return defineCommand('getJwtTokenCommand', function (deferred) {
	        $http
	            .get("api/v1/core/client_jwt")
	            .then(function (response) {
	            deferred.resolve(response.data);
	        })
	            .catch(function (error) {
	            deferred.reject(error);
	        });
	    });
	});


/***/ }),
/* 2116 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	var _4 = __webpack_require__(1);
	angular
	    .module('data-ng-staff-todos')
	    .factory('loadStaffTodoCommand', function (defineCommand, staffTodoListDatastore, getJwtTokenCommand, ngTodoDateRangeService, $http, appConfigModel) {
	    return defineCommand('loadStaffTodoCommand', function (deferred, dateRange) {
	        dateRange = dateRange || ngTodoDateRangeService.getCurrentDateRange();
	        var formattedDateRange = dateRange
	            ? {
	                start_dt: dateRange.start,
	                end_dt: dateRange.end
	            }
	            : {};
	        var campusUrl = appConfigModel.getConfigProperty("core-campus_url");
	        if (_4.isEmpty(campusUrl)) {
	            deferred.resolve();
	        }
	        else {
	            getJwtTokenCommand().then(function (token) {
	                var config = {
	                    url: campusUrl + '/api/v3/student_resources/reminders/',
	                    method: 'GET',
	                    headers: {
	                        Authorization: token.access_token,
	                        isCampusAPI: true
	                    },
	                    params: formattedDateRange
	                };
	                $http(config)
	                    .then(function (response) {
	                    staffTodoListDatastore.write(response.data.data.reminders);
	                    deferred.resolve(utility_ts_orm_1.ORM.run(staffTodoListDatastore));
	                    deferred.resolve(response.data);
	                })
	                    .catch(function (error) {
	                    deferred.reject(error);
	                });
	            });
	        }
	    });
	});


/***/ }),
/* 2117 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	angular
	    .module('data-ng-staff-todos')
	    .factory('loadStaffTodoItemCommand', function (defineCommand, getJwtTokenCommand, $http, appConfigModel) {
	    return defineCommand('loadStaffTodoItemCommand', function (deferred, staffTodoID) {
	        var campusUrl = appConfigModel.getConfigProperty("core-campus_url");
	        if (_4.isEmpty(campusUrl)) {
	            deferred.resolve();
	        }
	        else {
	            getJwtTokenCommand().then(function (token) {
	                var config = {
	                    url: campusUrl + '/api/v3/student_resources/reminders/' + (staffTodoID || ''),
	                    method: 'GET',
	                    headers: {
	                        Authorization: token.access_token,
	                        isCampusAPI: true
	                    }
	                };
	                $http(config)
	                    .then(function (response) {
	                    deferred.resolve(response.data.data.reminder);
	                })
	                    .catch(function (error) {
	                    deferred.reject(error);
	                });
	            });
	        }
	    });
	});


/***/ }),
/* 2118 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	angular.module('data-ng-staff-todos', ['data-ng-path-item']);
	__webpack_require__(2114);
	__webpack_require__(2115);
	__webpack_require__(2116);
	__webpack_require__(2117);
	__webpack_require__(865);
	__webpack_require__(866);
	__webpack_require__(868);
	__webpack_require__(867);
	tslib_1.__exportStar(__webpack_require__(865), exports);
	tslib_1.__exportStar(__webpack_require__(868), exports);
	tslib_1.__exportStar(__webpack_require__(867), exports);
	tslib_1.__exportStar(__webpack_require__(866), exports);


/***/ }),
/* 2119 */
/***/ (function(module, exports) {

	angular.module('hybrid-ng-personal-reminders').component('expandingReminderTextbox', {
	    controller: 'ExpandingReminderTextboxController',
	    templateUrl: 'hybrid-ng-personal-reminders/src/components/expanding_reminder_textbox/expanding_reminder_textbox.html'
	});


/***/ }),
/* 2120 */
/***/ (function(module, exports, __webpack_require__) {

	/**
	 * @phxPersonalReminders
	 */
	angular.module('hybrid-ng-personal-reminders', []);
	__webpack_require__(979);
	__webpack_require__(2119);


/***/ }),
/* 2121 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var common_validation_methods_1 = __webpack_require__(272);
	var NoDuplicationValidation = /** @class */ (function (_super) {
	    tslib_1.__extends(NoDuplicationValidation, _super);
	    function NoDuplicationValidation() {
	        return _super !== null && _super.apply(this, arguments) || this;
	    }
	    NoDuplicationValidation.isNoDuplication = function (validationTargetDataArgs) {
	        return validationTargetDataArgs.type === NoDuplicationValidation.type;
	    };
	    NoDuplicationValidation.validate = function (sourceData, sourceKey, targetDataConfig) {
	        if (NoDuplicationValidation.isWhiteListedValue(sourceData, sourceKey, targetDataConfig)) {
	            return true;
	        }
	        return common_validation_methods_1.CommonValidationMethods.getFilteredData(sourceData, sourceKey, targetDataConfig).length === 1;
	    };
	    NoDuplicationValidation.getErrorDetail = function (sourceData, sourceKey, targetDataConfig) {
	        var conditionChecked = NoDuplicationValidation.getConditionChecked(sourceData, sourceKey, targetDataConfig);
	        var conditionCheckedMessage = "Condition checked was " + JSON.stringify(conditionChecked) + ".";
	        var totalDuplicates = common_validation_methods_1.CommonValidationMethods.getFilteredData(sourceData, sourceKey, targetDataConfig);
	        var totalDuplicatesMessage = "Duplicate entries: " + JSON.stringify(totalDuplicates.slice(1)); //Except the first entry, which is valid
	        var totalDuplicatesFound = totalDuplicates.length - 1; //One entry is the valid one, so that count minus total
	        var totalDuplicatesFoundMessage = "Total duplicates found: " + totalDuplicatesFound + ".";
	        var NoDuplicatesFailedMessage = "No duplicates check failed for " + JSON.stringify(sourceData) + " in " + JSON.stringify(targetDataConfig['data']) + ".";
	        var errorMessage = NoDuplicatesFailedMessage + " " + conditionCheckedMessage + " " + totalDuplicatesFoundMessage + " " + totalDuplicatesMessage;
	        return tslib_1.__assign({ errorMessage: errorMessage, type: NoDuplicationValidation.type }, _super.getErrorDetail.call(this, sourceData, sourceKey, targetDataConfig));
	    };
	    NoDuplicationValidation.type = 'NO_DUPLICATES';
	    return NoDuplicationValidation;
	}(common_validation_methods_1.CommonValidationMethods));
	exports.NoDuplicationValidation = NoDuplicationValidation;


/***/ }),
/* 2122 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var common_validation_methods_1 = __webpack_require__(272);
	var OneToManyValidation = /** @class */ (function (_super) {
	    tslib_1.__extends(OneToManyValidation, _super);
	    function OneToManyValidation() {
	        return _super !== null && _super.apply(this, arguments) || this;
	    }
	    OneToManyValidation.isOneToMany = function (validationTargetDataArgs) {
	        return validationTargetDataArgs.type === OneToManyValidation.type;
	    };
	    OneToManyValidation.validate = function (sourceData, sourceKey, targetDataConfig) {
	        if (OneToManyValidation.isWhiteListedValue(sourceData, sourceKey, targetDataConfig)) {
	            return true;
	        }
	        return OneToManyValidation.getFilteredData(sourceData, sourceKey, targetDataConfig).length >= 1;
	    };
	    OneToManyValidation.getErrorDetail = function (sourceData, sourceKey, targetDataConfig) {
	        var conditionChecked = OneToManyValidation.getConditionChecked(sourceData, sourceKey, targetDataConfig);
	        var errorMessage = "One to many relationship check failed for " + JSON.stringify(sourceData) + " in " + JSON.stringify(targetDataConfig['data']) + ". Condition checked was " + JSON.stringify(conditionChecked);
	        return tslib_1.__assign({ errorMessage: errorMessage, type: OneToManyValidation.type }, _super.getErrorDetail.call(this, sourceData, sourceKey, targetDataConfig));
	    };
	    OneToManyValidation.type = 'ONE_TO_MANY';
	    return OneToManyValidation;
	}(common_validation_methods_1.CommonValidationMethods));
	exports.OneToManyValidation = OneToManyValidation;


/***/ }),
/* 2123 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var common_validation_methods_1 = __webpack_require__(272);
	var OneToOneValidation = /** @class */ (function (_super) {
	    tslib_1.__extends(OneToOneValidation, _super);
	    function OneToOneValidation() {
	        return _super !== null && _super.apply(this, arguments) || this;
	    }
	    OneToOneValidation.isOneToOne = function (validationTargetDataArgs) {
	        return validationTargetDataArgs.type === OneToOneValidation.type;
	    };
	    OneToOneValidation.validate = function (sourceData, sourceKey, targetDataConfig) {
	        if (OneToOneValidation.isWhiteListedValue(sourceData, sourceKey, targetDataConfig)) {
	            return true;
	        }
	        return OneToOneValidation.getFilteredData(sourceData, sourceKey, targetDataConfig).length === 1;
	    };
	    OneToOneValidation.getErrorDetail = function (sourceData, sourceKey, targetDataConfig) {
	        var conditionChecked = OneToOneValidation.getConditionChecked(sourceData, sourceKey, targetDataConfig);
	        var errorMessage = "One to one relationship check failed for " + JSON.stringify(sourceData) + " in " + JSON.stringify(targetDataConfig['data']) + ". Condition checked was " + JSON.stringify(conditionChecked);
	        return tslib_1.__assign({ errorMessage: errorMessage, type: OneToOneValidation.type }, _super.getErrorDetail.call(this, sourceData, sourceKey, targetDataConfig));
	    };
	    OneToOneValidation.type = 'ONE_TO_ONE';
	    return OneToOneValidation;
	}(common_validation_methods_1.CommonValidationMethods));
	exports.OneToOneValidation = OneToOneValidation;


/***/ }),
/* 2124 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var duplicate_validation_1 = __webpack_require__(2121);
	var one_to_one_validation_1 = __webpack_require__(2123);
	var one_to_many_validation_1 = __webpack_require__(2122);
	var Validations = /** @class */ (function () {
	    function Validations() {
	    }
	    Validations.prototype.validate = function (sourceData, sourceKey, targetTypeDetails) {
	        var validTypes = Object.keys(Validations.validationMethodStrategy);
	        if (!validTypes.includes(targetTypeDetails.type)) {
	            console.warn("Unknown 'type' passed to validate the data, acceptable 'type' value should be either of this: " + validTypes);
	            return false;
	        }
	        return Validations.validationMethodStrategy[targetTypeDetails.type](sourceData, sourceKey, targetTypeDetails);
	    };
	    Validations.prototype.getErrorDetails = function (sourceData, sourceKey, targetDataConfig) {
	        var validTypes = Object.keys(Validations.validationMethodStrategy);
	        if (!validTypes.includes(targetDataConfig.type)) {
	            console.warn("Unknown 'type' passed to get the error details, acceptable 'type' value should be either of this: " + validTypes);
	            return {};
	        }
	        return Validations.validationErrorDetailStrategy[targetDataConfig.type](sourceData, sourceKey, targetDataConfig);
	    };
	    Validations.validationMethodStrategy = {
	        ONE_TO_MANY: one_to_many_validation_1.OneToManyValidation.validate,
	        ONE_TO_ONE: one_to_one_validation_1.OneToOneValidation.validate,
	        NO_DUPLICATES: duplicate_validation_1.NoDuplicationValidation.validate
	    };
	    Validations.validationErrorDetailStrategy = {
	        ONE_TO_MANY: one_to_many_validation_1.OneToManyValidation.getErrorDetail,
	        ONE_TO_ONE: one_to_one_validation_1.OneToOneValidation.getErrorDetail,
	        NO_DUPLICATES: duplicate_validation_1.NoDuplicationValidation.getErrorDetail
	    };
	    return Validations;
	}());
	exports.Validations = Validations;


/***/ }),
/* 2125 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('ng-screen-query')
	    .factory('updateScreenDeviceCommand', function (defineCommandORM, ngScreenDeviceModel) {
	    return defineCommandORM('updateScreenDeviceCommand', function (deferred, screenDevice) {
	        ngScreenDeviceModel.write({
	            screen_device: screenDevice
	        });
	        return deferred.resolve();
	    });
	});


/***/ }),
/* 2126 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_orm_1 = __webpack_require__(3);
	angular.module('ng-screen-query').factory('ngScreenDeviceModel', function (ngScreenQueryServant) {
	    return new utility_ts_orm_1.Model({
	        screen_device: ngScreenQueryServant.isScreenDesktop() ? 'desktop' : 'mobile'
	    });
	});


/***/ }),
/* 2127 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var AppContentComponent = /** @class */ (function () {
	    function AppContentComponent() {
	        this.templateUrl = 'ui-ng-app-content/src/components/app_content/app_content.html';
	        this.controller = AppContentController;
	        this.transclude = true;
	        this.bindings = {
	            hideNavBar: '<',
	            hasFooter: '<',
	            noPadding: '<',
	            stickyNavBar: '<',
	            refresher: '<'
	        };
	    }
	    return AppContentComponent;
	}());
	exports.AppContentComponent = AppContentComponent;
	var AppContentController = /** @class */ (function () {
	    function AppContentController() {
	    }
	    Object.defineProperty(AppContentController.prototype, "classes", {
	        get: function () {
	            var activeClasses = utility_ts_platform_1.PlatformUtility.isMobile() ? this.mobileClasses() : this.desktopClasses();
	            return activeClasses.join(' ');
	        },
	        enumerable: true,
	        configurable: true
	    });
	    AppContentController.prototype.rootClass = function () {
	        return utility_ts_platform_1.PlatformUtility.isMobile() ? "app-content--mobile" : "app-content--desktop";
	    };
	    AppContentController.prototype.mobileClasses = function () {
	        var classes = [this.rootClass()];
	        if (this.hideNavBar) {
	            classes.push('hide-nav-bar');
	        }
	        if (this.hasFooter) {
	            classes.push('has-footer');
	        }
	        if (!this.noPadding) {
	            classes.push('plm prm');
	        }
	        if (_4.isEmpty(this.refresher)) {
	            classes.push(this.refresher);
	        }
	        return classes;
	    };
	    AppContentController.prototype.desktopClasses = function () {
	        var classes = [this.rootClass()];
	        if (!this.noPadding) {
	            classes.push('plm prm');
	        }
	        return classes;
	    };
	    AppContentController.prototype.isScrollableNavigation = function () {
	        return utility_ts_platform_1.PlatformUtility.isMobile() && !this.stickyNavBar;
	    };
	    return AppContentController;
	}());
	exports.AppContentController = AppContentController;


/***/ }),
/* 2128 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var phxBrowserDetectController = /** @class */ (function () {
	    function phxBrowserDetectController($attrs, ngBrowserDetectDelegate) {
	        this.$attrs = $attrs;
	        this.ngBrowserDetectDelegate = ngBrowserDetectDelegate;
	        this.showMessage = false;
	    }
	    phxBrowserDetectController.prototype.$onInit = function () {
	        this._configuredBrowsers = this.ngBrowserDetectDelegate.allConfiguredBrowsers();
	        this._incompatableBrowsers = _.intersection(this._configuredBrowsers, Object.keys(this.$attrs.$attr));
	        this._showMessage();
	    };
	    phxBrowserDetectController.prototype._showMessage = function () {
	        var _this = this;
	        this.showMessage = _.some(this._incompatableBrowsers, function (browserName) {
	            return _this.ngBrowserDetectDelegate.isBrowser(browserName);
	        });
	    };
	    return phxBrowserDetectController;
	}());
	exports.phxBrowserDetectController = phxBrowserDetectController;
	var phxBrowserDetectDelegate = /** @class */ (function () {
	    function phxBrowserDetectDelegate() {
	        this._userAgent = window.navigator.userAgent;
	        this._result = false;
	    }
	    phxBrowserDetectDelegate.prototype.isBrowser = function (browserName) {
	        switch (browserName) {
	            case 'chrome':
	                this._result = /chrome|crios|crmo/i.test(this._userAgent) ? true : false;
	                break;
	            case 'firefox':
	                this._result = /firefox|iceweasel|fxios/i.test(this._userAgent) ? true : false;
	                break;
	            case 'safari':
	                this._result =
	                    /^((?!chrome|android).)*safari/i.test(navigator.userAgent) &&
	                        !/chrome|crios|crmo|firefox|iceweasel|fxios/i.test(navigator.userAgent)
	                        ? true
	                        : false;
	                break;
	            case 'msie':
	                this._result = /msie|trident/i.test(this._userAgent) ? true : false;
	                break;
	            case 'msedge':
	                this._result = /chrome.+? edge/i.test(this._userAgent) ? true : false;
	                break;
	            case 'opera':
	                this._result = /opera/i.test(this._userAgent) || /opr|opios/i.test(this._userAgent) ? true : false;
	                break;
	            default:
	                this._result = this._result;
	        }
	        return this._result;
	    };
	    phxBrowserDetectDelegate.prototype.allConfiguredBrowsers = function () {
	        return ['chrome', 'firefox', 'safari', 'opera', 'msie', 'msedge'];
	    };
	    phxBrowserDetectDelegate.prototype.getBrowserName = function () {
	        if (/chrome|crios|crmo/i.test(this._userAgent)) {
	            return 'Chrome';
	        }
	        else if (/firefox|iceweasel|fxios/i.test(this._userAgent)) {
	            return 'Firefox';
	        }
	        else if (/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
	            return 'Safari';
	        }
	        else if (/msie|trident/i.test(this._userAgent)) {
	            return 'Internet Explorer';
	        }
	        else if (/chrome.+? edge/i.test(this._userAgent)) {
	            return 'Edge';
	        }
	        else if (/opera/i.test(this._userAgent) || /opr|opios/i.test(this._userAgent)) {
	            return 'Opera';
	        }
	        else {
	            return '';
	        }
	    };
	    return phxBrowserDetectDelegate;
	}());
	exports.phxBrowserDetectDelegate = phxBrowserDetectDelegate;
	angular
	    .module('ui-ng-browser-detect', [])
	    .controller('ngphxBrowserDetectController', phxBrowserDetectController)
	    .service('ngBrowserDetectDelegate', phxBrowserDetectDelegate)
	    .component('phxBrowserDetect', {
	    transclude: true,
	    templateUrl: 'ui-ng-browser-detect/src/templates/phx-browser-detect.html',
	    controller: 'ngphxBrowserDetectController',
	    controllerAs: '$ctrl'
	});


/***/ }),
/* 2129 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var TimeOccurrenceDatatype = {
	    day_of_week: {
	        required: true,
	        type: 'ordinal',
	        typeDef: 'DayOfTheWeekEnum',
	        defaultValue: '',
	        writeToKey: 'day'
	    },
	    from_tm: {
	        required: true,
	        type: 'clock',
	        writeToKey: 'from',
	        rules: {
	            defaultsToNow: false
	        }
	    },
	    to_tm: {
	        required: true,
	        type: 'clock',
	        writeToKey: 'to',
	        rules: {
	            defaultsToNow: false
	        }
	    },
	    repeats_every: {
	        type: 'integer',
	        defaultValue: 1
	    },
	    id: 'key',
	    trackingId: 'auto-id',
	    beginMinutes: 'integer',
	    endMinutes: 'integer',
	    bkgColorClass: 'string',
	    content: 'string',
	    appId: '*',
	    group: 'string',
	    type: 'string',
	    isLocked: 'boolean',
	    isWarning: 'boolean',
	    isPreview: 'boolean',
	    isWaitlisted: 'boolean',
	    isRegistered: 'boolean',
	    isSwapFrom: 'boolean',
	    isSwapTo: 'boolean',
	    icons: {
	        type: 'array',
	        typeDef: 'string'
	    },
	    hover: 'object'
	};
	angular
	    .module('ui-ng-calendar')
	    .constant('TimeOccurrenceDTD', TimeOccurrenceDatatype)
	    .factory('TimeOccurrenceBuilder', function (Interface, TimeOccurrenceDTD) {
	    return function TimeOccurrenceDTO(obj) {
	        // TECHDEBT: Whats the best way here to make this a class?
	        var DTO = {};
	        DTO = Interface.implement(TimeOccurrenceDTD, obj, DTO);
	        DTO.fromMinutes = DTO.from.hour() * 60 + DTO.from.minute();
	        DTO.toMinutes = DTO.to.hour() * 60 + DTO.to.minute();
	        DTO.fromInput = DTO.from.format('HH:mm:ss');
	        DTO.toInput = DTO.to.format('HH:mm:ss');
	        return DTO;
	    };
	});


/***/ }),
/* 2130 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	// Given built TimeOccurrence data, add it to data source.
	function addBuiltTimeCommandDefinition(defineCommand, ngTimeOccurrenceDataSource, QueryMediator) {
	    return defineCommand('addBuiltTimeCommand', function addBuiltTimeCommand(deferred, timeOccurrence, index) {
	        ngTimeOccurrenceDataSource.addTime(timeOccurrence, index);
	        QueryMediator.runQueries(ngTimeOccurrenceDataSource);
	        deferred.resolve(timeOccurrence);
	    });
	}
	angular.module('ui-ng-calendar').factory('addBuiltTimeCommand', addBuiltTimeCommandDefinition);


/***/ }),
/* 2131 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	// Given an array of existing TimeOccurrence blocks, add a new empty TimeOccurrence to the array.
	function addNewPotentialTimeCommandDefinition(defineCommand, ngTimeOccurrenceDataSource, ngOrderedTimeQueryModel, ngUnlockedTimeQuery, ngTimeOccurrenceEngine, addBuiltTimeCommand, ngBlendedTimesQueryModel) {
	    return defineCommand('addNewPotentialTimeCommand', function addNewPotentialTimeCommand(deferred, potentialTimeBlock) {
	        var emptyTimeCheck = ngTimeOccurrenceEngine.createNewHourTimeOccurrence(ngTimeOccurrenceDataSource.store, potentialTimeBlock);
	        if (!!emptyTimeCheck) {
	            addBuiltTimeCommand(emptyTimeCheck).then(function () {
	                ngOrderedTimeQueryModel.run();
	                ngUnlockedTimeQuery.run();
	                ngBlendedTimesQueryModel.run();
	                deferred.resolve(ngTimeOccurrenceDataSource);
	            });
	        }
	        else {
	            deferred.resolve(undefined);
	        }
	    });
	}
	angular.module('ui-ng-calendar').factory('addNewPotentialTimeCommand', addNewPotentialTimeCommandDefinition);


/***/ }),
/* 2132 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	// Given an array of existing TimeOccurrence blocks, add a new empty TimeOccurrence to the array.
	function addNewTimeCommandDefinition(defineCommand, ngTimeOccurrenceDataSource, ngTimeOccurrenceEngine, addBuiltTimeCommand, QueryMediator) {
	    return defineCommand('addNewTimeCommand', function addNewTimeCommand(deferred) {
	        var emptyHourTimeOccurrence = ngTimeOccurrenceEngine.findEmptyHourInTimes(ngTimeOccurrenceDataSource.store);
	        if (!!emptyHourTimeOccurrence) {
	            addBuiltTimeCommand(emptyHourTimeOccurrence).then(function () {
	                QueryMediator.runQueries(ngTimeOccurrenceDataSource);
	            });
	        }
	        deferred.resolve(ngTimeOccurrenceDataSource);
	    });
	}
	angular.module('ui-ng-calendar').factory('addNewTimeCommand', addNewTimeCommandDefinition);


/***/ }),
/* 2133 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	// Given raw TimeOccurrence data, make a new TimeOccurrence and add it to data source.
	function addRawTimeCommandDefinition(defineCommand, ngTimeOccurrenceDataSource, ngOrderedTimeQueryModel, addBuiltTimeCommand, QueryMediator) {
	    return defineCommand('addRawTimeCommand', function addRawTimeCommand(deferred, rawTimeOccurrenceData) {
	        var TimeOccurrence = ngTimeOccurrenceDataSource.buildTime(rawTimeOccurrenceData);
	        addBuiltTimeCommand(TimeOccurrence).then(function (builtTime) {
	            QueryMediator.runQueries(ngTimeOccurrenceDataSource);
	            ngOrderedTimeQueryModel.run();
	            deferred.resolve(builtTime);
	        });
	    });
	}
	angular.module('ui-ng-calendar').factory('addRawTimeCommand', addRawTimeCommandDefinition);


/***/ }),
/* 2134 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	// Given an array of raw TimeOccurrence data, make new TimeOccurrences and add it to data source.
	function addRawTimesCommandDefinition(defineCommand, addRawTimeCommand, ngTimeOccurrenceDataSource, QueryMediator) {
	    return defineCommand('addRawTimesCommand', function addRawTimesCommand(deferred, rawTimeOccurrencesData) {
	        var builtTimes = [];
	        _.map(rawTimeOccurrencesData, function (rawTimeOccurrenceData) {
	            addRawTimeCommand(rawTimeOccurrenceData).then(function (builtTime) {
	                QueryMediator.runQueries(ngTimeOccurrenceDataSource);
	                builtTimes.push(builtTime);
	            });
	        });
	        deferred.resolve(builtTimes);
	    });
	}
	angular.module('ui-ng-calendar').factory('addRawTimesCommand', addRawTimesCommandDefinition);


/***/ }),
/* 2135 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	// Given an array of raw TimeOccurrence data, make new TimeOccurrences and add it to data source.
	function addRawTimesInPreviewModeCommandDefinition(defineCommand, ngTimeOccurrenceDataSource, addBuiltTimeCommand, updateTimeCommand, QueryMediator) {
	    return defineCommand('addRawTimesInPreviewModeCommand', function addRawTimesInPreviewModeCommand(deferred, rawTimeOccurrencesData, isWarning) {
	        var builtTimes = [];
	        _.map(rawTimeOccurrencesData, function (rawTimeOccurrenceData) {
	            var TimeOccurrence = ngTimeOccurrenceDataSource.buildTime(rawTimeOccurrenceData);
	            addBuiltTimeCommand(TimeOccurrence).then(function (builtTime) {
	                QueryMediator.runQueries(ngTimeOccurrenceDataSource);
	                var propObj = { isPreview: true };
	                if (isWarning === true) {
	                    propObj.isWarning = true;
	                }
	                updateTimeCommand(builtTime, propObj).then(function (previewedTime) {
	                    builtTimes.push(previewedTime);
	                });
	            });
	        });
	        deferred.resolve(builtTimes);
	    });
	}
	angular.module('ui-ng-calendar').factory('addRawTimesInPreviewModeCommand', addRawTimesInPreviewModeCommandDefinition);


/***/ }),
/* 2136 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	// put docstring here
	function copyTimeOccurrenceToCellCommandDefinition(defineCommand, ngTimeOccurrenceServant, ngWeekCalendarCellServant, addBuiltTimeCommand, TimeOccurrenceBuilder, QueryMediator, ngTimeOccurrenceDataSource) {
	    return defineCommand('copyTimeOccurrenceToCellCommand', function copyTimeOccurrenceToCellCommand(deferred, cell, currentTimeOccurrence, originalTimeOccurrence, deletedTimeOccurrence) {
	        var builtTime;
	        var rawTime = ngWeekCalendarCellServant.createTimeOccurrenceFromCellAndExistingTime(cell, currentTimeOccurrence, originalTimeOccurrence, deletedTimeOccurrence);
	        builtTime = new TimeOccurrenceBuilder(rawTime);
	        addBuiltTimeCommand(builtTime).then(function () {
	            QueryMediator.runQueries(ngTimeOccurrenceDataSource);
	            deferred.resolve(builtTime);
	        });
	    });
	}
	angular.module('ui-ng-calendar').factory('copyTimeOccurrenceToCellCommand', copyTimeOccurrenceToCellCommandDefinition);


/***/ }),
/* 2137 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	// Given an existing TimeOccurrence object, and another TimeOccurrence object, take a property from the second and apply
	// it to the first. An example of this is if you want to resize a TimeOccurrence object to match a from/to tm of another.
	function copyTimePropCommandDefinition(defineCommand, ngTimeOccurrenceDataSource, updateTimeCommand, QueryMediator) {
	    return defineCommand('copyTimePropCommand', function copyTimePropCommand(deferred, propHash, property, timeWhosePropertyToCopy, timeToUpdate) {
	        var newTimeOccurrenceRawData = ngTimeOccurrenceDataSource.serializeTime(timeWhosePropertyToCopy);
	        propHash[property] = newTimeOccurrenceRawData[property];
	        updateTimeCommand(timeToUpdate, propHash).then(function (builtTime) {
	            QueryMediator.runQueries(ngTimeOccurrenceDataSource);
	            deferred.resolve(builtTime);
	        });
	    });
	}
	angular.module('ui-ng-calendar').factory('copyTimePropCommand', copyTimePropCommandDefinition);


/***/ }),
/* 2138 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	// Given an array of existing TimeOccurrence blocks, add a new empty TimeOccurrence to the array.
	function createDefaultTimeCommandDefinition(defineCommand, ngTimeOccurrenceDataSource, ngTimeOccurrenceEngine, QueryMediator) {
	    return defineCommand('createDefaultTimeCommand', function createDefaultTimeCommand(deferred) {
	        var newDefaultTimeOccurrence = ngTimeOccurrenceEngine.createDefaultTimeOccurrence();
	        QueryMediator.runQueries(ngTimeOccurrenceDataSource);
	        deferred.resolve(newDefaultTimeOccurrence);
	    });
	}
	angular.module('ui-ng-calendar').factory('createDefaultTimeCommand', createDefaultTimeCommandDefinition);


/***/ }),
/* 2139 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	function deleteAllTimesCommandDefinition(defineCommand, ngTimeOccurrenceDataSource, QueryMediator) {
	    return defineCommand('deleteAllTimesCommand', function deleteAllTimesCommand(deferred) {
	        _.remove(ngTimeOccurrenceDataSource.store, undefined);
	        QueryMediator.runQueries(ngTimeOccurrenceDataSource);
	        deferred.resolve();
	    });
	}
	angular.module('ui-ng-calendar').factory('deleteAllTimesCommand', deleteAllTimesCommandDefinition);


/***/ }),
/* 2140 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	function deleteChangedBusyTimeCommand(defineCommand, ngChangedBusyTimeDatasource, ngTimeOccurrenceDataSource, defineCommandORM, QueryMediator) {
	    return defineCommandORM('deleteChangedBusyTimeCommand', function deleteChangedBusyTimeCommand(deferred, trackingId) {
	        var keyToDelete = parseInt(_4.findKey(ngChangedBusyTimeDatasource.read(), function (item) { return item.tracking_id === trackingId; }));
	        if (keyToDelete) {
	            ngChangedBusyTimeDatasource.del(keyToDelete);
	        }
	        QueryMediator.runQueries(ngTimeOccurrenceDataSource);
	        deferred.resolve(ngChangedBusyTimeDatasource);
	    });
	}
	angular.module('ui-ng-calendar').factory('deleteChangedBusyTimeCommand', deleteChangedBusyTimeCommand);


/***/ }),
/* 2141 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	function deletePreviewTimesCommandDefinition(defineCommand, ngTimeOccurrenceDataSource, QueryMediator) {
	    return defineCommand('deletePreviewTimesCommand', function deletePreviewTimesCommand(deferred) {
	        _.remove(ngTimeOccurrenceDataSource.store, function (timeBlock) { return timeBlock.isPreview; });
	        QueryMediator.runQueries(ngTimeOccurrenceDataSource);
	        deferred.resolve();
	    });
	}
	angular.module('ui-ng-calendar').factory('deletePreviewTimesCommand', deletePreviewTimesCommandDefinition);


/***/ }),
/* 2142 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	function deleteTimeCommandDefinition(defineCommand, ngTimeOccurrenceDataSource, QueryMediator) {
	    return defineCommand('deleteTimeCommand', function deleteTimeCommand(deferred, timeOccurrence) {
	        ngTimeOccurrenceDataSource.deleteTime(timeOccurrence);
	        QueryMediator.runQueries(ngTimeOccurrenceDataSource);
	        deferred.resolve(ngTimeOccurrenceDataSource);
	    });
	}
	angular.module('ui-ng-calendar').factory('deleteTimeCommand', deleteTimeCommandDefinition);


/***/ }),
/* 2143 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	function endTimeDatasourceTransactionCommandDefinition(defineCommand, externalActionCommand, executeCommandInSerial, ngTimeOccurrenceDataSource, QueryMediator) {
	    return defineCommand('endTimeDatasourceTransactionCommand', function endTimeDatasourceTransactionCommand(deferred, validators) {
	        ngTimeOccurrenceDataSource.endTransaction(validators);
	        executeCommandInSerial(externalActionCommand);
	        QueryMediator.runQueries(ngTimeOccurrenceDataSource);
	        deferred.resolve();
	    });
	}
	angular
	    .module('ui-ng-calendar')
	    .factory('endTimeDatasourceTransactionCommand', endTimeDatasourceTransactionCommandDefinition);


/***/ }),
/* 2144 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var transaction_types_1 = __webpack_require__(881);
	function externalActionCommandDefinition(defineCommand, ngPhxCalendarConfiguration, ngTimeOccurrenceDataSource, ngOrderedTimeQueryModel) {
	    return defineCommand('externalActionCommand', function externalActionCommand(deferred) {
	        // TODO alias type id = number | string
	        var assignId = function (saveResponse, trackingId) {
	            if (!saveResponse || !trackingId) {
	                return;
	            }
	            saveResponse.then(function (response) {
	                var workingTime = _.find(ngTimeOccurrenceDataSource.store, function (timeSlot) { return parseInt(timeSlot.trackingId, 10) === parseInt(trackingId, 10); });
	                if (_.isUndefined(workingTime)) {
	                    workingTime = _.last(ngTimeOccurrenceDataSource.store);
	                }
	                workingTime.id = response.id;
	                deferred.resolve();
	            });
	        };
	        var transactionType;
	        if (ngTimeOccurrenceDataSource.store.length > ngTimeOccurrenceDataSource.memento.length) {
	            transactionType = transaction_types_1.TransactionTypeEnum.SAVE;
	        }
	        else if (ngTimeOccurrenceDataSource.store.length < ngTimeOccurrenceDataSource.memento.length) {
	            transactionType = transaction_types_1.TransactionTypeEnum.DELETE;
	        }
	        else {
	            transactionType = transaction_types_1.TransactionTypeEnum.EDIT;
	        }
	        var createExternalActionTimeSlotForTimeOccurrence = function (timeOccurrence) {
	            return {
	                id: timeOccurrence.id,
	                trackingId: timeOccurrence.trackingId,
	                save: {
	                    day_of_week: timeOccurrence.day.value.ordinal,
	                    from_tm: timeOccurrence.fromInput,
	                    to_tm: timeOccurrence.toInput
	                }
	            };
	        };
	        var transactionMade = {
	            type: transactionType,
	            toAdd: _.map(_.difference(ngTimeOccurrenceDataSource.store, ngTimeOccurrenceDataSource.memento), createExternalActionTimeSlotForTimeOccurrence),
	            toDelete: _.map(_.difference(ngTimeOccurrenceDataSource.memento, ngTimeOccurrenceDataSource.store), createExternalActionTimeSlotForTimeOccurrence)
	        };
	        if (transactionMade.type === transaction_types_1.TransactionTypeEnum.SAVE || transactionMade.type === transaction_types_1.TransactionTypeEnum.DELETE) {
	            _.each(transactionMade.toAdd, function (time) {
	                assignId(ngPhxCalendarConfiguration.save({ transaction: time }), time.trackingId);
	            });
	            _.each(transactionMade.toDelete, function (time) {
	                ngPhxCalendarConfiguration.delete({ transaction: time });
	                deferred.resolve();
	            });
	        }
	        else if (transactionMade.type === transaction_types_1.TransactionTypeEnum.EDIT) {
	            var transactionsToMake = _.zipWith(transactionMade.toDelete, transactionMade.toAdd, _.merge);
	            _.each(transactionsToMake, function (time) {
	                // NOTE duplicate code on 63
	                assignId(ngPhxCalendarConfiguration.edit({ transaction: time }), time.trackingId);
	            });
	            // TODO how else do we resolve/reject if this fails?
	            if (_.isEmpty(transactionsToMake)) {
	                deferred.resolve();
	            }
	        }
	    });
	}
	angular.module('ui-ng-calendar').factory('externalActionCommand', externalActionCommandDefinition);


/***/ }),
/* 2145 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	function loadTimesCommandCommandDefinition(defineCommand, ngTimeOccurrenceDataSource, QueryMediator, addRawTimesCommand) {
	    return defineCommand('loadTimesCommandCommand', function loadTimesCommand(deferred, rawTimeOccurrenceData) {
	        addRawTimesCommand(rawTimeOccurrenceData).then(function () {
	            QueryMediator.runQueries(ngTimeOccurrenceDataSource);
	            deferred.resolve(ngTimeOccurrenceDataSource);
	        });
	    });
	}
	angular.module('ui-ng-calendar').factory('loadTimesCommand', loadTimesCommandCommandDefinition);


/***/ }),
/* 2146 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	// Given an array of existing TimeOccurrence blocks, add a new empty TimeOccurrence to the array.
	function resetChangedBusyTimeCommand(defineCommand, ngChangedBusyTimeDatasource, ngTimeOccurrenceDataSource, defineCommandORM, addRawTimeCommand, QueryMediator) {
	    return defineCommandORM('resetChangedBusyTimeCommand', function resetChangedBusyTimeCommand(deferred) {
	        var original = _4.find(ngChangedBusyTimeDatasource.read(), function (item) { return item.is_new_time === false; });
	        //Revert day of week to reflect in day picker
	        original.originalTimeObj.day_of_week = original.originalTimeObj.day.ordinal;
	        ngTimeOccurrenceDataSource.deleteTime(original.originalTimeObj);
	        ngChangedBusyTimeDatasource.del(original.id);
	        addRawTimeCommand(original.originalTimeObj);
	        QueryMediator.runQueries(ngTimeOccurrenceDataSource);
	        deferred.resolve(ngChangedBusyTimeDatasource);
	    });
	}
	angular.module('ui-ng-calendar').factory('resetChangedBusyTimeCommand', resetChangedBusyTimeCommand);


/***/ }),
/* 2147 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	function resetTimesStoreCommandDefinition(defineCommand, ngTimeOccurrenceDataSource) {
	    return defineCommand('resetTimesStoreCommand', function resetTimesStoreCommand(deferred) {
	        _.remove(ngTimeOccurrenceDataSource.store, undefined);
	        deferred.resolve();
	    });
	}
	angular.module('ui-ng-calendar').factory('resetTimesStoreCommand', resetTimesStoreCommandDefinition);


/***/ }),
/* 2148 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	function saveChangedBusyTimeCommand(defineCommand, ngChangedBusyTimeDatasource, ngTimeOccurrenceDataSource, defineCommandORM) {
	    return defineCommandORM('saveChangedBusyTimeCommand', function saveChangedBusyTimeCommand(deferred, time) {
	        var changedBusyTime = _4.find(ngChangedBusyTimeDatasource.read(), { tracking_id: time.tracking_id });
	        var originalTime = _4.find(ngTimeOccurrenceDataSource.read(), { trackingId: time.tracking_id });
	        if (originalTime) {
	            _4.merge(originalTime, time);
	        }
	        if (changedBusyTime) {
	            _4.merge(changedBusyTime, time);
	        }
	        else {
	            ngChangedBusyTimeDatasource.write([time]);
	        }
	        deferred.resolve(ngChangedBusyTimeDatasource);
	    });
	}
	angular.module('ui-ng-calendar').factory('saveChangedBusyTimeCommand', saveChangedBusyTimeCommand);


/***/ }),
/* 2149 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	function startTimeDatasourceTransactionCommandDefinition(defineCommand, ngTimeOccurrenceDataSource) {
	    return defineCommand('startTimeDatasourceTransactionCommand', function startTimeDatasourceTransactionCommand(deferred, validators) {
	        ngTimeOccurrenceDataSource.startTransaction(validators);
	        deferred.resolve();
	    });
	}
	angular
	    .module('ui-ng-calendar')
	    .factory('startTimeDatasourceTransactionCommand', startTimeDatasourceTransactionCommandDefinition);


/***/ }),
/* 2150 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	function updateTimeCommandDefinition($q, defineCommand, ngTimeOccurrenceDataSource, ngTimeOccurrenceServant, QueryMediator, addBuiltTimeCommand, deleteTimeCommand) {
	    return defineCommand('updateTimeCommand', function updateTimeCommand(deferred, oldTimeBlock, propertyHash) {
	        var updatedTimeOccurrenceRawData = ngTimeOccurrenceServant.copyTimeOccurrenceWithProperties(oldTimeBlock, propertyHash);
	        var oldTimeIndex = _.findIndex(ngTimeOccurrenceDataSource.store, function (timeBlock) {
	            return timeBlock.trackingId === oldTimeBlock.trackingId;
	        });
	        var addRawTimePromise = addBuiltTimeCommand(updatedTimeOccurrenceRawData, oldTimeIndex);
	        var deleteTimePromise = deleteTimeCommand(oldTimeBlock);
	        $q.all([addRawTimePromise, deleteTimePromise]).then(function (promiseObjects) {
	            QueryMediator.runQueries(ngTimeOccurrenceDataSource);
	            deferred.resolve(promiseObjects[0]);
	        });
	    });
	}
	angular.module('ui-ng-calendar').factory('updateTimeCommand', updateTimeCommandDefinition);


/***/ }),
/* 2151 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ng_kernel_1 = __webpack_require__(5);
	var changed_busy_time_builder_1 = __webpack_require__(273);
	angular.module('ui-ng-calendar').factory('ngChangedBusyTimeDatasource', function () {
	    return new utility_ng_kernel_1.Datasource({
	        builderType: changed_busy_time_builder_1.ChangedBusyTime,
	        writeMode: 'clobber',
	        updateMode: 'merge'
	    });
	});


/***/ }),
/* 2152 */
880,
/* 2153 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular.module('ui-ng-calendar').factory('getCSSClassForString', function getCSSClassForString() {
	    var MEMOIZED_COLOR_NKS = {};
	    var cssCounter = 1;
	    return function (name, colorLocation) {
	        if (cssCounter > 10) {
	            cssCounter = 1;
	        }
	        if (!MEMOIZED_COLOR_NKS[name]) {
	            MEMOIZED_COLOR_NKS[name] = "clr-" + cssCounter;
	            cssCounter++;
	        }
	        return MEMOIZED_COLOR_NKS[name] + "-" + (_.isString(colorLocation) ? colorLocation : 'bkg');
	    };
	});


/***/ }),
/* 2154 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular.module('ui-ng-calendar').factory('getDayEnums', function getDayEnums(DayOfTheWeekEnum) {
	    return function (includeWeekends, microheaders) {
	        var filterDayColumns = function filterDayColumns(days, filteredIncludeWeekends, useMicroname) {
	            return _.map(_.filter(days, function (day) {
	                return (filteredIncludeWeekends === 'false' && (day.key === 'su' || day.key === 'sa')) || day.key === 'online'
	                    ? false
	                    : true;
	            }), function (day) {
	                if (useMicroname === 'true') {
	                    return {
	                        id: day.id,
	                        name: day.value.microname
	                    };
	                }
	                return {
	                    id: day.id,
	                    name: day.value.shortname
	                };
	            });
	        };
	        return {
	            dayOfTheWeek: DayOfTheWeekEnum,
	            days: filterDayColumns(_.toArray(DayOfTheWeekEnum.iterator()), includeWeekends, microheaders),
	            allDays: _.filter(DayOfTheWeekEnum.iterator(), function (day) {
	                return !DayOfTheWeekEnum.isEqual(day, DayOfTheWeekEnum.ONLINE);
	            })
	        };
	    };
	});


/***/ }),
/* 2155 */
/***/ (function(module, exports) {

	angular.module('ui-ng-calendar').directive('disableAnimate', function ($animate) {
	    return {
	        link: function (scope, element) {
	            $animate.enabled(element, false);
	        }
	    };
	});


/***/ }),
/* 2156 */
/***/ (function(module, exports) {

	/**
	 * these directives are used in place of the ng-* directives because
	 * the latter result in a $rootScope.digest call which is too
	 * expensive in applications
	 * instead these directives run the digest cycle on the $scope of the
	 * calendar (including week and list view)
	 */
	angular
	    .module('ui-ng-calendar')
	    .directive('isolateDigestMouseover', function ($parse) {
	    return {
	        link: function (scope, element, attr) {
	            var fn = $parse(attr['isolateDigestMouseover']);
	            element.bind('mouseover', function (event) {
	                fn(scope, { $event: event });
	                scope.$parent.$digest();
	            });
	        }
	    };
	})
	    .directive('isolateDigestMousedown', function ($parse) {
	    return {
	        link: function (scope, element, attr) {
	            var fn = $parse(attr['isolateDigestMousedown']);
	            element.bind('mousedown', function (event) {
	                fn(scope, { $event: event });
	                scope.$parent.$digest();
	            });
	        }
	    };
	})
	    .directive('isolateDigestMouseup', function ($parse) {
	    return {
	        link: function (scope, element, attr) {
	            var fn = $parse(attr['isolateDigestMouseup']);
	            element.bind('mouseup', function (event) {
	                fn(scope, { $event: event });
	                scope.$parent.$digest();
	            });
	        }
	    };
	});


/***/ }),
/* 2157 */
880,
/* 2158 */
880,
/* 2159 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('ui-ng-calendar')
	    .factory('reconcileOverlappingTimesCorrectorFactory', function (ngTimeOccurrenceEngine) {
	    return function (overlappingTimes, currentTimeOccurrence, originalTimeOccurrence) {
	        return function reconcileOverlappingTimesCorrector(store) {
	            var timeGroups = _.partition(overlappingTimes, function (time) { return !time.isLocked; });
	            var mergeableTimes = _.first(timeGroups);
	            var mergedTime = _.reduce(mergeableTimes, function (acc, time) {
	                return ngTimeOccurrenceEngine.createMergedTime(acc, time);
	            });
	            var lockedTimes = _.last(timeGroups);
	            var splitTimes = ngTimeOccurrenceEngine.createSplitTimes(mergedTime, lockedTimes);
	            _.each(splitTimes, function (time) {
	                store.push(time);
	            });
	            _.remove(store, originalTimeOccurrence);
	            _.each(mergeableTimes, function (mergeableTime) {
	                _.remove(store, mergeableTime);
	            });
	            return store;
	        };
	    };
	});


/***/ }),
/* 2160 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular.module('ui-ng-calendar').factory('removeTimeOccurrenceCorrectorFactory', function () {
	    return function (originalTimeOccurrence) {
	        return function removeTimeOccurrenceCorrector(store) {
	            _.remove(store, originalTimeOccurrence);
	            return store;
	        };
	    };
	});


/***/ }),
/* 2161 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('ui-ng-calendar')
	    .factory('timeConfigValidator', function (ngTimeOccurrenceServant) {
	    return function timeConfigValidator(store) {
	        var areTimeOccurrencesValid = _.map(store, function (timeOccurrence) {
	            return ngTimeOccurrenceServant.isTimeOccurrenceValid(timeOccurrence) || timeOccurrence.isLocked;
	        });
	        return {
	            isValid: _.all(areTimeOccurrencesValid)
	        };
	    };
	});


/***/ }),
/* 2162 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('ui-ng-calendar')
	    .factory('timeEndValidatorFactory', function (ngTimeOccurrenceDataSource, ngTimeOccurrenceEngine, ngTimeOccurrenceServant, ngPhxCalendarConfiguration, timeLowerBoundCorrector) {
	    return function (store) {
	        return {
	            isValid: true,
	            corrector: timeLowerBoundCorrector
	        };
	    };
	});


/***/ }),
/* 2163 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular.module('ui-ng-calendar').factory('timeLockValidatorFactory', function () {
	    return function (originalTimeOccurrence) {
	        return function timeLockValidator(store) {
	            return {
	                isValid: !originalTimeOccurrence.isLocked
	            };
	        };
	    };
	});


/***/ }),
/* 2164 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('ui-ng-calendar')
	    .factory('timeOverlapValidatorFactory', function (ngTimeOccurrenceDataSource, ngTimeOccurrenceEngine, removeTimeOccurrenceCorrectorFactory, reconcileOverlappingTimesCorrectorFactory) {
	    return function (originalTimeOccurrence, currentTimeOccurrence) {
	        return function (store) {
	            // check if dragging time conflicts with other existing times, revert if it does
	            var dataStoreWithoutOriginal = _.filter(store, function (occurrence) {
	                return occurrence.trackingId !== originalTimeOccurrence.trackingId;
	            });
	            // the following is a hack and should be fixed
	            var dataStoreWithOutCorrected = _.filter(dataStoreWithoutOriginal, function (occurrence) {
	                return occurrence.trackingId !== (parseInt(currentTimeOccurrence.trackingId, 10) + 1).toString();
	            });
	            var dataStoreWithoutCurrent = _.filter(store, function (occurrence) {
	                return occurrence.trackingId !== currentTimeOccurrence.trackingId;
	            });
	            // check that it doesn't overlap with OTHERS in the store (we CAN overlap with self)
	            var doesCurrentTimeOverlapWithAnyInFilteredStore = ngTimeOccurrenceEngine.doesTimeOverlapWithTimes(currentTimeOccurrence, dataStoreWithOutCorrected);
	            // to prevent just clicking on time and doing anything; if it's fully overlapping
	            var isCurrentTimeSameTimeAsOriginal = ngTimeOccurrenceEngine.areTimesFullyOverlapping(currentTimeOccurrence, originalTimeOccurrence);
	            var isCurrentTimeWithinTimeInFilteredStore = _.some(_.map(dataStoreWithoutCurrent, function (timeOccurrence) {
	                return ngTimeOccurrenceEngine.isTimeWithinTime(currentTimeOccurrence, timeOccurrence);
	            }));
	            var isValid = !doesCurrentTimeOverlapWithAnyInFilteredStore && !isCurrentTimeSameTimeAsOriginal;
	            if (isValid) {
	                return {
	                    isValid: isValid,
	                    corrector: removeTimeOccurrenceCorrectorFactory(originalTimeOccurrence)
	                };
	            }
	            else if (!isCurrentTimeSameTimeAsOriginal && !isCurrentTimeWithinTimeInFilteredStore) {
	                // revert if current time is same as original
	                var overlappingTimes = ngTimeOccurrenceEngine.findOverlappingTimes(currentTimeOccurrence, dataStoreWithoutOriginal);
	                return {
	                    isValid: true,
	                    corrector: reconcileOverlappingTimesCorrectorFactory(overlappingTimes, currentTimeOccurrence, originalTimeOccurrence)
	                };
	            }
	            else {
	                return {
	                    isValid: isValid
	                };
	            }
	        };
	    };
	});


/***/ }),
/* 2165 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular
	    .module('ui-ng-calendar')
	    .factory('timeStartValidatorFactory', function (ngTimeOccurrenceDataSource, ngTimeOccurrenceEngine, ngTimeOccurrenceServant, ngPhxCalendarConfiguration, timeUpperBoundCorrector) {
	    return function (store) {
	        return {
	            isValid: true,
	            corrector: timeUpperBoundCorrector
	        };
	    };
	});


/***/ }),
/* 2166 */
/***/ (function(module, exports) {

	angular
	    .module('ui-ng-calendar')
	    .controller('phxCalendarColorKeyFullController', function () {
	    return;
	})
	    .component('phxCalendarColorKeyFull', {
	    templateUrl: 'ui-ng-calendar/src/views/calendar_color_key_full/calendar_color_key_full.html',
	    controller: 'phxCalendarColorKeyFullController'
	});


/***/ }),
/* 2167 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var busy_time_strategy_1 = __webpack_require__(45);
	var ListCalendarViewController = /** @class */ (function () {
	    function ListCalendarViewController(DayOfTheWeekEnum, ngUnlockedTimeQuery, ngTimeOccurrenceServant, deleteTimeCommand, updateTimeCommand, ngChangedBusyTimeDatasource, startTimeDatasourceTransactionCommand, endTimeDatasourceTransactionCommand, saveChangedBusyTimeCommand, phxNotificationDelegate, resetChangedBusyTimeCommand, deleteChangedBusyTimeCommand, ngPhxCalendarConfiguration, timeLockValidatorFactory, ngTimeOccurrenceDataSource, ngTimeOccurrenceEngine, timeOverlapValidatorFactory) {
	        this.DayOfTheWeekEnum = DayOfTheWeekEnum;
	        this.ngUnlockedTimeQuery = ngUnlockedTimeQuery;
	        this.ngTimeOccurrenceServant = ngTimeOccurrenceServant;
	        this.updateTimeCommand = updateTimeCommand;
	        this.ngChangedBusyTimeDatasource = ngChangedBusyTimeDatasource;
	        this.startTimeDatasourceTransactionCommand = startTimeDatasourceTransactionCommand;
	        this.endTimeDatasourceTransactionCommand = endTimeDatasourceTransactionCommand;
	        this.saveChangedBusyTimeCommand = saveChangedBusyTimeCommand;
	        this.phxNotificationDelegate = phxNotificationDelegate;
	        this.resetChangedBusyTimeCommand = resetChangedBusyTimeCommand;
	        this.deleteChangedBusyTimeCommand = deleteChangedBusyTimeCommand;
	        this.ngPhxCalendarConfiguration = ngPhxCalendarConfiguration;
	        this.timeLockValidatorFactory = timeLockValidatorFactory;
	        this.ngTimeOccurrenceDataSource = ngTimeOccurrenceDataSource;
	        this.ngTimeOccurrenceEngine = ngTimeOccurrenceEngine;
	        this.timeOverlapValidatorFactory = timeOverlapValidatorFactory;
	        this.currentlyEditing = false;
	        this.notificationRestrictTo = '';
	        this.query = ngUnlockedTimeQuery;
	        this.commands = {
	            startTimeDatasourceTransactionCommand: startTimeDatasourceTransactionCommand,
	            endTimeDatasourceTransactionCommand: endTimeDatasourceTransactionCommand,
	            deleteTimeCommand: deleteTimeCommand,
	            updateTimeCommand: updateTimeCommand
	        };
	        var defaultRangeLimits = {
	            hourBegin: 8,
	            hourEnd: 22
	        };
	        this.timeRange = {
	            hourBegin: parseInt(ngPhxCalendarConfiguration.hourBegin, 10) || defaultRangeLimits.hourBegin,
	            hourEnd: parseInt(ngPhxCalendarConfiguration.hourEnd, 10) || defaultRangeLimits.hourEnd
	        };
	        this.errors = {
	            found: []
	        };
	    }
	    ListCalendarViewController.prototype.$onChanges = function (changes) {
	        this.notificationDelegate = this.phxNotificationDelegate.restrictTo(changes.notificationRestrictTo.currentValue);
	    };
	    ListCalendarViewController.prototype.execCb = function () {
	        return this.outerCb();
	    };
	    ListCalendarViewController.prototype.editTime = function (timeChangeParams) {
	        var dataToWrite = {
	            tracking_id: timeChangeParams.trackingId,
	            day_of_week: timeChangeParams.day,
	            from_tm: timeChangeParams.from,
	            to_tm: timeChangeParams.to,
	            is_new_time: false,
	            originalTimeObj: timeChangeParams
	        };
	        this.currentlyEditing = true;
	        this.saveChangedBusyTimeCommand(dataToWrite);
	    };
	    ListCalendarViewController.prototype.showEditButton = function (time) {
	        return (!_4.get(time, '_isCurrentlyEditing', false) &&
	            !this.currentlyEditing &&
	            _4.isEmpty(this.ngTimeOccurrenceServant.getNewTime(this.ngChangedBusyTimeDatasource)));
	    };
	    ListCalendarViewController.prototype.onTimeChanged = function (timeChangeParams) {
	        var militaryTime = moment(timeChangeParams.timeParams.updatedTimeString, 'hh:mm a').format('HH:mm');
	        var propToUpdate = {};
	        if (timeChangeParams.timeParams.timeProperty === 'from_tm') {
	            propToUpdate = { from_tm: militaryTime };
	        }
	        else {
	            propToUpdate = { to_tm: militaryTime };
	        }
	        this.updateTime(_4.merge(propToUpdate, {
	            tracking_id: timeChangeParams.timeParams.originalTime.trackingId
	        }));
	    };
	    ListCalendarViewController.prototype.updateTime = function (timeObj) {
	        this.saveChangedBusyTimeCommand(timeObj);
	    };
	    ListCalendarViewController.prototype.onDayChangedEvent = function (event) {
	        if (!event.target.value) {
	            return;
	        }
	        var timeObj = _4.clone(_4.find(this.query.result.times, { trackingId: event.target.getAttribute('tracking-id') }));
	        timeObj.day = this.DayOfTheWeekEnum.get(event.target.value.substring(2, 0));
	        var originalTimeObj = _4.find(this.query.result.times, { trackingId: event.target.getAttribute('tracking-id') });
	        if (originalTimeObj.day.key !== timeObj.day.key) {
	            this.onDayChanged(timeObj, originalTimeObj);
	        }
	    };
	    ListCalendarViewController.prototype.onDayChanged = function (timeObj, originalTimeObj) {
	        var originalDayTimeObj = _4.clone(timeObj);
	        originalDayTimeObj.day = this.DayOfTheWeekEnum.get(originalTimeObj.day.key);
	        this.updateTime({
	            tracking_id: timeObj.trackingId,
	            day_of_week: timeObj.day.ordinal,
	            originalTimeObj: originalTimeObj
	        });
	    };
	    ListCalendarViewController.prototype.onDeleteRecordPress = function (timeOccurrence) {
	        var _this = this;
	        var boundTimeLockValidator = this.timeLockValidatorFactory(timeOccurrence);
	        this.commands.startTimeDatasourceTransactionCommand(boundTimeLockValidator);
	        this.commands.deleteTimeCommand(timeOccurrence).then(function () {
	            _this.commands.endTimeDatasourceTransactionCommand();
	            _this.execCb();
	            _this.exitEditing();
	        });
	    };
	    ListCalendarViewController.prototype.onValueChange = function (event) {
	        var previousTime = _4.find(this.query.result.times, { trackingId: event.target.getAttribute('tracking-id') });
	        if (_4.includes(event.target.getAttribute('time-property'), 'from') &&
	            event.detail.value === previousTime.from.format('h:mm A')) {
	            return;
	        }
	        else if (event.detail.value === previousTime.to.format('h:mm A')) {
	            return;
	        }
	        this.onTimeChanged({
	            timeParams: {
	                originalTime: previousTime,
	                timeProperty: event.target.getAttribute('time-property'),
	                updatedTimeString: event.detail.value
	            }
	        });
	    };
	    ListCalendarViewController.prototype.hasChangedTimeConflicts = function (time) {
	        var hasConflicts = false;
	        time.to = _4.isString(time.to_tm) ? moment(time.to_tm + ':00', 'HH:mm:ss') : time.to_tm;
	        time.from = _4.isString(time.from_tm) ? moment(time.from_tm + ':00', 'HH:mm:ss') : time.from_tm;
	        time.day = _4.isObject(time.day_of_week) ? time.day_of_week : this.DayOfTheWeekEnum.get(time.day_of_week);
	        var overlappingTimes = this.ngTimeOccurrenceEngine.findOverlappingTimes(time, this.ngTimeOccurrenceDataSource.store);
	        if (!_4.isEmpty(_4.filter(overlappingTimes, function (item) { return item.trackingId !== time.tracking_id; }))) {
	            hasConflicts = true;
	        }
	        return hasConflicts;
	    };
	    ListCalendarViewController.prototype.createErrorAlert = function () {
	        var _this = this;
	        _4.each(this.errors.found, function (errorMsg) {
	            _this.notificationDelegate.error({
	                content: errorMsg,
	                showIcon: true,
	                name: 'PendingAlert',
	                dismissOnTimeout: true,
	                dismissButton: true,
	                timeout: 5000,
	                iconClass: 'eab-icon-sync'
	            });
	        });
	    };
	    ListCalendarViewController.prototype.saveUpdatedTimes = function () {
	        var _this = this;
	        var updatedTimes = this.ngTimeOccurrenceServant.getUpdatedTimes(this.ngChangedBusyTimeDatasource);
	        this.validatePotentialTime(updatedTimes);
	        if (!this.isValidTime) {
	            return;
	        }
	        if (this.hasChangedTimeConflicts(updatedTimes)) {
	            this.errors.found.push(busy_time_strategy_1.BusyTimeErrorMessage['isTimeOverlap'].message);
	            this.createErrorAlert();
	            return;
	        }
	        var boundTimeLockValidator = this.timeLockValidatorFactory(updatedTimes.originalTimeObj);
	        this.startTimeDatasourceTransactionCommand(boundTimeLockValidator).then(function () {
	            //Hack id of changed time needs to be from server
	            updatedTimes.id = updatedTimes.originalTimeObj.id;
	            _this.updateTimeCommand(updatedTimes.originalTimeObj, updatedTimes).then(function (currentTimeOccurrence) {
	                _this.endTimeDatasourceTransactionCommand();
	                _this.deleteChangedBusyTimeCommand(updatedTimes.tracking_id);
	                _this.exitEditing();
	            });
	        });
	    };
	    ListCalendarViewController.prototype.exitEditing = function () {
	        this.currentlyEditing = false;
	        this.errors.found = [];
	        this.resetChangedBusyTimeCommand();
	    };
	    ListCalendarViewController.prototype.validatePotentialTime = function (updatedTimes) {
	        this.errors.found = this.ngTimeOccurrenceServant.validatePotentialTime(updatedTimes, this.errors, this.timeRange);
	        this.isValidTime = _4.isEmpty(this.errors.found);
	        this.createErrorAlert();
	    };
	    return ListCalendarViewController;
	}());
	angular
	    .module('ui-ng-calendar')
	    .controller('phxListCalendarViewController', ListCalendarViewController)
	    .component('phxListCalendarView', {
	    bindings: {
	        enums: '<',
	        includeWeekends: '@',
	        microheaders: '@',
	        hourStep: '@',
	        hourBegin: '@',
	        hour: '@',
	        notificationRestrictTo: '@',
	        outerCb: '&x',
	        times: '<'
	    },
	    templateUrl: 'ui-ng-calendar/src/views/list_calendar_view/list_calendar_view.html',
	    controller: 'phxListCalendarViewController'
	});


/***/ }),
/* 2168 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ContentTabViewComponent = /** @class */ (function () {
	    function ContentTabViewComponent() {
	        this.templateUrl = 'ui-ng-content-tabs/src/content_tab_view/content_tab_view.html';
	        this.controller = ContentTabViewController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            tabEnum: '<'
	        };
	    }
	    return ContentTabViewComponent;
	}());
	exports.ContentTabViewComponent = ContentTabViewComponent;
	var ContentTabViewController = /** @class */ (function () {
	    function ContentTabViewController($state) {
	        this.$state = $state;
	    }
	    ContentTabViewController.prototype.$onInit = function () {
	        this.tabs = _4.sortBy(_4.toArray(this.tabEnum.__ordinals__), 'tabOrder');
	        var hasActiveTab = _4.find(this.tabs, function (i) { return i.isActive(); });
	        if (!hasActiveTab) {
	            var firstTab = _4.first(this.tabs);
	            this.activeTabState = firstTab.state;
	            this.$state.go(firstTab.state);
	        }
	        else {
	            this.activeTabState = hasActiveTab.state;
	        }
	    };
	    ContentTabViewController.prototype.goToTab = function ($event) {
	        var newState = _4.get($event.target, 'value');
	        this.$state.go(newState);
	        this.activeTabState = newState;
	    };
	    return ContentTabViewController;
	}());
	exports.ContentTabViewController = ContentTabViewController;


/***/ }),
/* 2169 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var ContentTileController = /** @class */ (function () {
	    function ContentTileController($state) {
	        this.$state = $state;
	        this.isShown = true;
	    }
	    ContentTileController.prototype.$onInit = function () {
	        this.isActive = this.isActive || true;
	        this.isOverdue = this.isOverdue || false;
	        this.overdueText = _4.get(this.text, 'overdueText', 'Overdue:');
	        this.isMobile = utility_ts_platform_1.PlatformUtility.isMobile();
	        this.isConfigured = !_4.isEmpty(this.text) && !_4.isEmpty(this.icon);
	    };
	    ContentTileController.prototype.$onChanges = function () {
	        this.isConfigured = !_4.isEmpty(this.text) && !_4.isEmpty(this.icon);
	    };
	    ContentTileController.prototype.getIconTheme = function () {
	        return this.isOverdue ? 'red' : _4.get(this.icon, 'theme', 'blue');
	    };
	    ContentTileController.prototype.changeState = function () {
	        if (_4.isFunction(this.action)) {
	            _4.result(this, 'action');
	        }
	        else {
	            this.$state.go(_4.get(this.action, 'state'), _4.get(this.action, 'params'));
	        }
	    };
	    ContentTileController.prototype.goToStateOnMobileOnly = function () {
	        if (this.isMobile) {
	            this.changeState();
	        }
	    };
	    return ContentTileController;
	}());
	exports.ContentTileController = ContentTileController;
	var ContentTileComponent = /** @class */ (function () {
	    function ContentTileComponent() {
	        this.templateUrl = 'ui-ng-content-tile/src/components/content_tile/content-tile.html';
	        this.controller = ContentTileController;
	        this.controllerAs = '$ctrl';
	        this.transclude = {
	            contentSlot: '?contentTileBody'
	        };
	        this.bindings = {
	            icon: '<?',
	            text: '<?',
	            isActive: '<?',
	            isOverdue: '<?',
	            action: '<?',
	            isShown: '<?',
	            backgroundColor: '<?',
	            navLinkText: '<?'
	        };
	    }
	    return ContentTileComponent;
	}());
	exports.ContentTileComponent = ContentTileComponent;


/***/ }),
/* 2170 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var DatePickerDefinition = /** @class */ (function () {
	    function DatePickerDefinition() {
	        this.bindings = {
	            timings: '<',
	            selectedDay: '<',
	            selectedTime: '<',
	            showTimeMenu: '<',
	            defaultDatePicker: '<',
	            onSelect: '&',
	            onNextweekSelection: '&',
	            onPreviousweekSelection: '&',
	            thirdSize: '<'
	        };
	        this.templateUrl = 'ui-ng-mobile-date-picker/src/components/date_picker.html';
	        this.controller = 'datePickerController';
	    }
	    return DatePickerDefinition;
	}());
	var DatePicker = /** @class */ (function () {
	    function DatePicker(ngDatePickerSchedulingServant, ngDatePickerDefaultServant) {
	        this.ngDatePickerSchedulingServant = ngDatePickerSchedulingServant;
	        this.ngDatePickerDefaultServant = ngDatePickerDefaultServant;
	    }
	    DatePicker.prototype.$onInit = function () {
	        this.defaultDatePicker = _4.isUndefined(this.defaultDatePicker) ? true : this.defaultDatePicker;
	        this.showTimeMenu = _4.isUndefined(this.showTimeMenu) ? true : this.showTimeMenu;
	        this.servant = !this.defaultDatePicker ? this.ngDatePickerSchedulingServant : this.ngDatePickerDefaultServant;
	        this.timingArray = this.servant.constructDates(this.timings);
	        this.week = this.servant.getWeek(this.servant.getWeekStartDate(this.timingArray), this);
	        this.thirdSize = !_4.isUndefined(this.thirdSize);
	        this.servant.initialize(this);
	        if (_4.isEmpty(this.selectedDay)) {
	            this.resetSelectedDay();
	        }
	    };
	    DatePicker.prototype.selectDayOfWeek = function (day) {
	        this.selectedDay = day;
	        this.resetTimeSelection();
	        this.servant.selectionChange(this.selectedDay, this.selectedTime);
	    };
	    DatePicker.prototype.selectTime = function (time) {
	        time.selected = !time.selected;
	        _4.forEach(_4.filter(this.timingArray, { selected: true }), function (currentTime) {
	            currentTime.selected = currentTime !== time ? false : currentTime.selected;
	        });
	        this.selectedTime = _4.first(_4.filter(this.timingArray, { selected: true }));
	        this.servant.selectionChange(this.selectedDay, this.selectedTime);
	    };
	    DatePicker.prototype.hasAvailableTimes = function (day) {
	        return _4.size(this.servant.getAvailableTimes(this.timingArray, day)) > 0 || this.defaultDatePicker;
	    };
	    DatePicker.prototype.isPreviousWeekEnabled = function () {
	        return !_4.first(this.week).date.isBefore(moment());
	    };
	    DatePicker.prototype.hasNoSelectedTime = function () {
	        return _4.isEmpty(this.selectedTime);
	    };
	    DatePicker.prototype.hasSelectedTime = function (time) {
	        return this.servant.hasSelectedTime(time, this.selectedTime);
	    };
	    DatePicker.prototype.hasSelectedDay = function () {
	        return !_4.isEmpty(this.selectedDay) && !_4.isUndefined(this.selectedDay.day_week);
	    };
	    DatePicker.prototype.resetOnSelectionChange = function (preserveSelections) {
	        if (!preserveSelections) {
	            this.resetSelectedDay();
	            this.resetTimeSelection();
	        }
	    };
	    DatePicker.prototype.resetSelectedDay = function () {
	        this.selectedDay = {};
	        this.selectedTime = {};
	    };
	    DatePicker.prototype.resetTimeSelection = function () {
	        if (!_4.isEmpty(this.selectedTime)) {
	            _4.first(_4.filter(this.timingArray, { selected: true })).selected = false;
	            this.selectedTime = {};
	        }
	        this.servant.selectionChange(this.selectedDay, this.selectedTime);
	    };
	    return DatePicker;
	}());
	exports.DatePicker = DatePicker;
	angular
	    .module('ui-ng-mobile-date-picker')
	    .controller('datePickerController', DatePicker)
	    .component('datePicker', new DatePickerDefinition());


/***/ }),
/* 2171 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	angular.module('ui-ng-mobile-date-picker', ['ui-ng-delegate']);
	__webpack_require__(2170);
	__webpack_require__(275);
	__webpack_require__(2172);
	__webpack_require__(2173);


/***/ }),
/* 2172 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var date_picker_base_servant_1 = __webpack_require__(275);
	var DatePickerDefaultServant = /** @class */ (function (_super) {
	    tslib_1.__extends(DatePickerDefaultServant, _super);
	    function DatePickerDefaultServant(ngDatePickerBaseServant) {
	        return _super.call(this) || this;
	    }
	    DatePickerDefaultServant.prototype.constructDates = function (dates) {
	        return [];
	    };
	    DatePickerDefaultServant.prototype.initialize = function (datePicker) {
	        var updatedSelectTime = {};
	        this._initializeDefaultAvailableTimes(datePicker);
	        var _a = datePicker.selectedDay, displayDate = _a.displayDate, month = _a.month, year = _a.year;
	        var time = datePicker.selectedTime.time;
	        updatedSelectTime = _.find(datePicker.timingArray, { time: time });
	        if (!_.isEmpty(datePicker.selectedDay)) {
	            var limitLoop = 0;
	            while (_.isEmpty(_.find(datePicker.week, { displayDate: displayDate, month: month, year: year })) || limitLoop === 10) {
	                this.nextWeek(datePicker, true);
	                limitLoop++;
	            }
	        }
	        if (!_.isEmpty(updatedSelectTime)) {
	            updatedSelectTime.selected = true;
	            datePicker.selectedTime = updatedSelectTime;
	        }
	        this._onSelect = datePicker.onSelect;
	    };
	    DatePickerDefaultServant.prototype.selectionChange = function (selectedDay, selectedTime) {
	        this._onSelect({ selectedDay: selectedDay, selectedTime: selectedTime });
	    };
	    DatePickerDefaultServant.prototype.nextWeek = function (datePicker, preserveSelections) {
	        datePicker.resetOnSelectionChange(preserveSelections);
	        datePicker.week = this.getWeek(datePicker.current_week_lastdate, datePicker);
	        datePicker.isPreviousWeekEnabled();
	    };
	    DatePickerDefaultServant.prototype.previousWeek = function (datePicker) {
	        datePicker.resetOnSelectionChange();
	        var start_of_week = datePicker.previous_week_firstdate;
	        datePicker.week = this.getWeek(start_of_week, datePicker);
	        datePicker.isPreviousWeekEnabled();
	    };
	    DatePickerDefaultServant.prototype.hasSelectedTime = function (time, selectedTime) {
	        return false;
	    };
	    DatePickerDefaultServant.prototype.getAvailableTimes = function (timingArray, selectedDay) {
	        if (!_.isEmpty(selectedDay)) {
	            _.forEach(timingArray, function (time) {
	                time.date = selectedDay.date;
	                time.day = selectedDay.day;
	                time.day_week = selectedDay.day_week;
	            });
	        }
	        return timingArray;
	    };
	    DatePickerDefaultServant.prototype.getWeekStartDate = function (timingArray) {
	        return moment().startOf('week');
	    };
	    DatePickerDefaultServant.prototype._initializeDefaultAvailableTimes = function (datePicker) {
	        var _this = this;
	        var STARTTIME = '08:00';
	        var INTERVAL = 15;
	        var PERIOD = 'm';
	        var periodsInADay = moment.duration(1, 'day').as(PERIOD) / INTERVAL;
	        var startTime = moment(STARTTIME, 'hh:mm');
	        datePicker.timingArray = [];
	        _.times(periodsInADay, function (key) {
	            startTime.add(key === 0 ? 0 : INTERVAL, PERIOD);
	            datePicker.timingArray.push(_this.buildTimeObject(startTime, true));
	        });
	    };
	    return DatePickerDefaultServant;
	}(date_picker_base_servant_1.DatePickerBaseServant));
	exports.DatePickerDefaultServant = DatePickerDefaultServant;
	angular.module('ui-ng-mobile-date-picker').service('ngDatePickerDefaultServant', DatePickerDefaultServant);


/***/ }),
/* 2173 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var date_picker_base_servant_1 = __webpack_require__(275);
	var _4 = __webpack_require__(1);
	var DatePickerSchedulingServant = /** @class */ (function (_super) {
	    tslib_1.__extends(DatePickerSchedulingServant, _super);
	    function DatePickerSchedulingServant(ngDatePickerBaseServant) {
	        return _super.call(this) || this;
	    }
	    DatePickerSchedulingServant.prototype.constructDates = function (dates) {
	        var _this = this;
	        var tempObj = [];
	        _4.forEach(dates, function (date) {
	            tempObj.push(_this.buildTimeObject(moment(date, 'YYYY-MM-DDThh:mm:ss:A')));
	        });
	        return tempObj;
	    };
	    DatePickerSchedulingServant.prototype.initialize = function (datePicker) {
	        var updatedSelectTime = {};
	        if (!_4.isEmpty(datePicker.selectedTime)) {
	            var selectedDateMoment = datePicker.selectedTime.date.add(0, 'days');
	            datePicker.selectedDay = this.buildWeekDayObject(selectedDateMoment, selectedDateMoment.day(), true);
	            updatedSelectTime = _4.find(datePicker.timingArray, { date: datePicker.selectedTime.date });
	        }
	        if (!_4.isEmpty(updatedSelectTime)) {
	            updatedSelectTime.selected = true;
	            datePicker.selectedTime = updatedSelectTime;
	        }
	        this._onSelect = datePicker.onSelect;
	    };
	    DatePickerSchedulingServant.prototype.selectionChange = function (selectedDay, selectedTime) {
	        this._onSelect({ item: selectedTime });
	    };
	    DatePickerSchedulingServant.prototype.nextWeek = function (datePicker, preserveSelections) {
	        var _this = this;
	        datePicker.onNextweekSelection().then(function (times) {
	            datePicker.resetOnSelectionChange();
	            datePicker.timingArray = _this.constructDates(times);
	            var start_of_week = _4.size(datePicker.timingArray) === 0
	                ? datePicker.current_week_lastdate
	                : moment(_4.first(datePicker.timingArray).date).startOf('week');
	            datePicker.week = _this.getWeek(start_of_week, datePicker);
	            datePicker.isPreviousWeekEnabled();
	        });
	    };
	    DatePickerSchedulingServant.prototype.previousWeek = function (datePicker) {
	        var _this = this;
	        datePicker.onPreviousweekSelection().then(function (times) {
	            datePicker.resetOnSelectionChange();
	            datePicker.timingArray = _this.constructDates(times);
	            var start_of_week = _4.size(datePicker.timingArray) === 0
	                ? datePicker.previous_week_firstdate
	                : moment(_4.first(datePicker.timingArray).date).startOf('week');
	            datePicker.week = _this.getWeek(start_of_week, datePicker);
	            datePicker.isPreviousWeekEnabled();
	        });
	    };
	    DatePickerSchedulingServant.prototype.hasSelectedTime = function (time, selectedTime) {
	        return !!time && !!selectedTime && moment(time.date).isSame(moment(selectedTime.date));
	    };
	    DatePickerSchedulingServant.prototype.getAvailableTimes = function (timingArray, selectedDay) {
	        return _4.filter(timingArray, { day_week: selectedDay.day_week });
	    };
	    DatePickerSchedulingServant.prototype.getWeekStartDate = function (timingArray) {
	        return _4.size(timingArray) > 0 ? moment(_4.first(timingArray).date).startOf('week') : moment().startOf('week');
	    };
	    return DatePickerSchedulingServant;
	}(date_picker_base_servant_1.DatePickerBaseServant));
	exports.DatePickerSchedulingServant = DatePickerSchedulingServant;
	angular.module('ui-ng-mobile-date-picker').service('ngDatePickerSchedulingServant', DatePickerSchedulingServant);


/***/ }),
/* 2174 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var AppNavBarComponent = /** @class */ (function () {
	    function AppNavBarComponent() {
	        this.templateUrl = 'ui-ng-navbar/src/app_nav_bar/app_nav_bar.html';
	        this.controller = AppNavBarController;
	        this.transclude = {
	            rightButtonSlot: '?appNavRightButton',
	            leftButtonSlot: '?appNavLeftButton'
	        };
	        this.bindings = {
	            title: '@',
	            allowBack: '<',
	            onBack: '&?'
	        };
	    }
	    return AppNavBarComponent;
	}());
	exports.AppNavBarComponent = AppNavBarComponent;
	var AppNavBarController = /** @class */ (function () {
	    function AppNavBarController(ngNavigationHistoryStack, appConfigModel, ngNavigationBarAlertService, phxAxTitleAnnouncerDelegate) {
	        this.ngNavigationHistoryStack = ngNavigationHistoryStack;
	        this.appConfigModel = appConfigModel;
	        this.ngNavigationBarAlertService = ngNavigationBarAlertService;
	        this.phxAxTitleAnnouncerDelegate = phxAxTitleAnnouncerDelegate;
	        this.backButtonTheme = this.appConfigModel.navIconTheme() || 'primary';
	    }
	    AppNavBarController.prototype.$onInit = function () {
	        this.phxAxTitleAnnouncerDelegate.updateTitle(this.title);
	    };
	    AppNavBarController.prototype.goBack = function () {
	        if (_4.isFunction(this.onBack)) {
	            this.onBack();
	        }
	        else {
	            var previousURI = this.goBackURI();
	            window['hosting']['kernel'].processes.history.goBackCommit();
	            window.location.assign(previousURI);
	        }
	    };
	    AppNavBarController.prototype.goBackURI = function () {
	        return window['hosting']['kernel'].processes.history.goBackURI();
	    };
	    Object.defineProperty(AppNavBarController.prototype, "backgroundClassString", {
	        get: function () {
	            if (this.ngNavigationBarAlertService.alertStatus) {
	                return "clr-red_30-bkg clr-white-txt";
	            }
	            return "university-primary-bkg";
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(AppNavBarController.prototype, "textClassString", {
	        get: function () {
	            if (this.ngNavigationBarAlertService.alertStatus) {
	                return "clr-white-txt";
	            }
	            return "university-primary-text";
	        },
	        enumerable: true,
	        configurable: true
	    });
	    AppNavBarController.prototype.showBackButton = function () {
	        return _4.isFunction(this.onBack) || (this.allowBack && !this.ngNavigationHistoryStack.isNavigationHistoryEmpty);
	    };
	    AppNavBarController.prototype.isMobile = function () {
	        return utility_ts_platform_1.PlatformUtility.isMobile();
	    };
	    AppNavBarController.prototype.isTitleEmpty = function () {
	        return !_4.isEmpty(this.title);
	    };
	    return AppNavBarController;
	}());
	exports.AppNavBarController = AppNavBarController;


/***/ }),
/* 2175 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var popover_1 = __webpack_require__(898);
	var popup_1 = __webpack_require__(899);
	var popup_container_1 = __webpack_require__(900);
	angular
	    .module('ui-ng-popup')
	    .component('popupContainer', new popup_container_1.PopupContainerComponent())
	    .component('uiNgPopup', new popup_1.PopupComponent())
	    .component('popOver', new popover_1.PopoverComponent());


/***/ }),
/* 2176 */
/***/ (function(module, exports, __webpack_require__) {

	__webpack_require__(2175);
	__webpack_require__(898);
	__webpack_require__(899);
	__webpack_require__(900);
	__webpack_require__(902);
	__webpack_require__(2177);
	__webpack_require__(2178);


/***/ }),
/* 2177 */
880,
/* 2178 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var popup_config_service_1 = __webpack_require__(902);
	angular.module('ui-ng-popup').service('ngPopupService', popup_config_service_1.PopupConfigService);


/***/ }),
/* 2179 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var refresh_button_1 = __webpack_require__(2180);
	/**
	 * @phxResourceCard
	 */
	angular
	    .module('ui-ng-refresh-button', [])
	    .controller('RefreshButtonController', refresh_button_1.RefreshButtonController)
	    .component('refreshButton', new refresh_button_1.RefreshButtonComponent());


/***/ }),
/* 2180 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var RefreshButtonComponent = /** @class */ (function () {
	    function RefreshButtonComponent() {
	        this.templateUrl = 'ui-ng-refresh-button/src/refresh_button/refresh_button.html';
	        this.controller = RefreshButtonController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            action: '&',
	            isRefreshing: '<',
	            announceText: '@',
	            labelText: '@'
	        };
	    }
	    return RefreshButtonComponent;
	}());
	exports.RefreshButtonComponent = RefreshButtonComponent;
	var RefreshButtonController = /** @class */ (function () {
	    function RefreshButtonController() {
	    }
	    RefreshButtonController.prototype.getIconType = function () {
	        return this.isRefreshing ? 'sync' : 'refresh';
	    };
	    RefreshButtonController.prototype.refreshAction = function () {
	        if (this.action) {
	            this.action();
	        }
	        if (this.announceText) {
	            HIP.fn.announce(this.announceText);
	        }
	    };
	    return RefreshButtonController;
	}());
	exports.RefreshButtonController = RefreshButtonController;


/***/ }),
/* 2181 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var simple_resource_card_controller_1 = __webpack_require__(2182);
	/**
	 * @phxResourceCard
	 */
	angular
	    .module('ui-ng-resource-card', [])
	    .controller('SimpleResourceCardController', simple_resource_card_controller_1.SimpleResourceCardController)
	    .component('simpleResourceCard', new simple_resource_card_controller_1.SimpleResourceCardComponent());


/***/ }),
/* 2182 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var SimpleResourceCardComponent = /** @class */ (function () {
	    function SimpleResourceCardComponent() {
	        this.templateUrl = 'ui-ng-resource-card/src/simple_resource_card/simple_resource_card.html';
	        this.controller = 'SimpleResourceCardController';
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            resource: '<',
	            parentCallbackHook: '&?',
	            favoriteCallback: '&',
	            hideCampus: '@'
	        };
	    }
	    return SimpleResourceCardComponent;
	}());
	exports.SimpleResourceCardComponent = SimpleResourceCardComponent;
	var SimpleResourceCardController = /** @class */ (function () {
	    function SimpleResourceCardController($state, log, unfavoriteResourceCommand, favoriteResourceCommand) {
	        this.$state = $state;
	        this.log = log;
	        this.unfavoriteResourceCommand = unfavoriteResourceCommand;
	        this.favoriteResourceCommand = favoriteResourceCommand;
	        this.isProcessingFavorite = false;
	        this.cardCssClass =
	            _4.isString(this.cardCssClass) && this.cardCssClass.length > 0 ? this.cardCssClass : 'mobile-card';
	        if (!_4.isFunction(this.favoriteCallback)) {
	            this.favoriteCallback = function () { };
	        }
	    }
	    SimpleResourceCardController.prototype.goToDetailView = function () {
	        if (_4.isFunction(this.parentCallbackHook)) {
	            this.parentCallbackHook();
	        }
	        else {
	            this.$state.go('my.resourcesDetail', {
	                id: this.resource.id
	            });
	        }
	    };
	    SimpleResourceCardController.prototype.getTruncatedDescription = function () {
	        return this.resource.description.length > 80
	            ? this.resource.description.substr(0, 80) + '...'
	            : this.resource.description;
	    };
	    SimpleResourceCardController.prototype.toggleFavorite = function (event) {
	        event.preventDefault();
	        if (!this.isProcessingFavorite) {
	            this.isProcessingFavorite = true;
	            this.resource.favorite_id ? this.unFavoriteResource() : this.favoriteResource();
	        }
	    };
	    SimpleResourceCardController.prototype.unFavoriteResource = function () {
	        var _this = this;
	        this.unfavoriteResourceCommand(this.resource)
	            .then(function (res) { return _this.favoriteSuccessCallback(res); })
	            .catch(function () {
	            _this.log.user.error('Unable to unfavorite that.');
	            _this.isProcessingFavorite = false;
	        });
	    };
	    SimpleResourceCardController.prototype.favoriteResource = function () {
	        var _this = this;
	        this.favoriteResourceCommand(this.resource)
	            .then(function (res) { return _this.favoriteSuccessCallback(res); })
	            .catch(function () {
	            _this.log.user.error('Unable to favorite that.');
	            _this.isProcessingFavorite = false;
	        });
	    };
	    SimpleResourceCardController.prototype.favoriteSuccessCallback = function (res) {
	        _4.assign(this.resource, res);
	        this.favoriteCallback();
	        this.isProcessingFavorite = false;
	    };
	    SimpleResourceCardController.prototype.displayCampus = function () {
	        return !!(this.hideCampus !== 'true' &&
	            !_4.isEmpty(this.resource.location) &&
	            !_4.isEmpty(this.resource.location.campus_name));
	    };
	    return SimpleResourceCardController;
	}());
	exports.SimpleResourceCardController = SimpleResourceCardController;


/***/ }),
/* 2183 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var phxRouteModalController = /** @class */ (function () {
	    function phxRouteModalController($state) {
	        this.$state = $state;
	    }
	    return phxRouteModalController;
	}());
	exports.phxRouteModalController = phxRouteModalController;
	var RouteModalController = /** @class */ (function () {
	    function RouteModalController($state, $timeout, phxFocusDelegate) {
	        var _this = this;
	        this.$state = $state;
	        this.$timeout = $timeout;
	        this.phxFocusDelegate = phxFocusDelegate;
	        this.$timeout(function () {
	            _this.phxFocusDelegate.focus('routeModal');
	        }, 1000);
	    }
	    return RouteModalController;
	}());
	exports.RouteModalController = RouteModalController;
	angular
	    .module('ui-ng-route-modal', [])
	    .controller('ngphxRouteModalController', phxRouteModalController)
	    .component('phxRouteModal', {
	    template: '<ui-view name="routeModal"/>',
	    controller: 'ngphxRouteModalController',
	    controllerAs: '$ctrl'
	});
	angular.module('ui-ng-route-modal').config(function ($stateProvider) {
	    $stateProvider
	        .state('my.routeModal', {
	        url: 'modal/',
	        views: {
	            'routeModal@my': {
	                templateUrl: 'ui-ng-route-modal/src/templates/ui-router-modal.html',
	                controller: RouteModalController,
	                controllerAs: '$ctrl'
	            }
	        },
	        abstract: true
	    })
	        .state('advisor.student.routeModal', {
	        url: 'modal/',
	        views: {
	            'routeModal@advisor.student': {
	                templateUrl: 'ui-ng-route-modal/src/templates/ui-router-modal.html',
	                controller: RouteModalController,
	                controllerAs: '$ctrl'
	            }
	        },
	        abstract: true
	    });
	});


/***/ }),
/* 2184 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var ScheduleAppointmentCardComponent = /** @class */ (function () {
	    function ScheduleAppointmentCardComponent() {
	        this.templateUrl = 'ui-ng-schedule-appointment-card/src/components/schedule_appointment_card.html';
	        this.controller = 'ScheduleAppointmentCardController';
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            buttonText: '@',
	            showPrefixText: '@'
	        };
	    }
	    return ScheduleAppointmentCardComponent;
	}());
	exports.ScheduleAppointmentCardComponent = ScheduleAppointmentCardComponent;
	var ScheduleAppointmentCardController = /** @class */ (function () {
	    function ScheduleAppointmentCardController($state, appConfigModel, FEATURE_APPOINTMENTS, ngCustomContentsServant) {
	        var _this = this;
	        this.$state = $state;
	        this.appConfigModel = appConfigModel;
	        this.FEATURE_APPOINTMENTS = FEATURE_APPOINTMENTS;
	        this.ngCustomContentsServant = ngCustomContentsServant;
	        this.scheduleAppointmentLabel = 'Schedule an Appointment';
	        var appointmentLabel = !_4.isEmpty(this.appConfigModel.getConfigProperty('advisor_label'))
	            ? this.appConfigModel.getConfigProperty('advisor_label')
	            : this.appConfigModel.getConfigProperty('cat-advisor_label');
	        this.buttonText = this.buttonText || 'Schedule an Appointment';
	        this.isAppointmentsFeatureEnabled = appConfigModel.isFeatureEnabled(FEATURE_APPOINTMENTS);
	        this.ngCustomContentsServant.getButtonLabel(this.scheduleAppointmentLabel).then(function (label) {
	            _this.scheduleAppointmentLabel = label;
	            _this.appointmentCardConfig = {
	                icon: {
	                    type: 'user',
	                    theme: 'magenta'
	                },
	                text: {
	                    title: 'Any questions?',
	                    subTitle: _this.scheduleAppointmentLabel
	                },
	                action: {
	                    state: 'my.appointments',
	                    params: {}
	                }
	            };
	        });
	    }
	    ScheduleAppointmentCardController.prototype.isFixed = function () {
	        return !(_4.isEmpty(this.showPrefixText) || this.showPrefixText === 'true');
	    };
	    ScheduleAppointmentCardController.prototype.gotoAppointment = function () {
	        this.$state.go('my.appointments');
	    };
	    return ScheduleAppointmentCardController;
	}());
	exports.ScheduleAppointmentCardController = ScheduleAppointmentCardController;


/***/ }),
/* 2185 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var schedule_appointment_card_1 = __webpack_require__(2184);
	/**
	 * @phxScheduleAppointmentCard
	 */
	angular
	    .module('ui-ng-schedule-appointment-card', [])
	    .controller('ScheduleAppointmentCardController', schedule_appointment_card_1.ScheduleAppointmentCardController)
	    .component('scheduleAppointmentCard', new schedule_appointment_card_1.ScheduleAppointmentCardComponent());


/***/ }),
/* 2186 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var search_input_box_controller_1 = __webpack_require__(2187);
	angular
	    .module('ui-ng-search-box', [])
	    .controller('SearchBoxController', search_input_box_controller_1.SearchBoxController)
	    .component('searchInputBox', new search_input_box_controller_1.SearchBoxComponent());


/***/ }),
/* 2187 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var utility_ts_platform_1 = __webpack_require__(8);
	var SearchBoxComponent = /** @class */ (function () {
	    function SearchBoxComponent() {
	        this.templateUrl = 'ui-ng-search-box/src/search_input_box/search_input_box.html';
	        this.controller = SearchBoxController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            searchTerm: '<',
	            changeCallback: '&',
	            placeholderText: '@',
	            shouldAutoFocus: '<?',
	            shouldAutoSearch: '<?'
	        };
	    }
	    return SearchBoxComponent;
	}());
	exports.SearchBoxComponent = SearchBoxComponent;
	var SearchBoxController = /** @class */ (function () {
	    function SearchBoxController($element, $timeout) {
	        this.$element = $element;
	        this.$timeout = $timeout;
	        this.shouldAutoFocus = true;
	        this.shouldAutoSearch = false;
	        this.hideValidation = true;
	    }
	    SearchBoxController.prototype.clearInput = function () {
	        this.searchTerm = '';
	        this.updateSearch();
	    };
	    SearchBoxController.prototype.setSearchTerm = function (evt) {
	        this.searchTerm = evt.originalEvent.detail.value;
	        if (this.shouldAutoSearch) {
	            this.updateSearch();
	        }
	        if (!this.hideValidation) {
	            this.hideValidation = true;
	        }
	    };
	    SearchBoxController.prototype.updateSearch = function () {
	        this.hideValidation = false;
	        var searchInputEle = this.$element.find('.search-input')[0];
	        searchInputEle.validate();
	        this._changeCallback(this.searchTerm);
	    };
	    SearchBoxController.prototype.$onInit = function () {
	        this._changeCallback = _4.isFunction(this.changeCallback) ? this.changeCallback() : angular.noop;
	        this.clearInput();
	        this.placeholderText = this.placeholderText ? this.placeholderText : 'Enter search term';
	        if (this.shouldAutoFocus) {
	            var searchInputEle = this.$element.find('.search-input')[0];
	            searchInputEle.setAttribute('auto-focus-input', '');
	        }
	    };
	    SearchBoxController.prototype.isMobile = function () {
	        return utility_ts_platform_1.PlatformUtility.isMobile();
	    };
	    return SearchBoxController;
	}());
	exports.SearchBoxController = SearchBoxController;


/***/ }),
/* 2188 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var utility_ts_platform_1 = __webpack_require__(8);
	var ChannelBuilderComponentController = /** @class */ (function () {
	    function ChannelBuilderComponentController() {
	        this.isMobile = true;
	        this.isMobile = utility_ts_platform_1.PlatformUtility.isMobile();
	    }
	    ChannelBuilderComponentController.prototype.openChannel = function () {
	        //handle spaces in urls
	        var link = encodeURI(this.detail.metadata.link[utility_ts_platform_1.PlatformUtility.getPlatform()]);
	        if (utility_ts_platform_1.PlatformUtility.isMobile() && link.indexOf('http') !== -1) {
	            window.open(link, '_blank');
	        }
	        else {
	            if (utility_ts_platform_1.PlatformUtility.isAndroid()) {
	                window.open(link, '_system');
	            }
	            else {
	                window.open(link);
	            }
	        }
	    };
	    return ChannelBuilderComponentController;
	}());
	var ChannelBuilderComponent = /** @class */ (function () {
	    function ChannelBuilderComponent() {
	        this.templateUrl = 'ui-ng-sgd-components/src/components/channel_component/channel_builder_component.html';
	        this.controller = ChannelBuilderComponentController;
	        this.controllerAs = '$ctrl';
	        this.bindings = {
	            detail: '<'
	        };
	    }
	    return ChannelBuilderComponent;
	}());
	exports.ChannelBuilderComponent = ChannelBuilderComponent;


/***/ }),
/* 2189 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	// TODO: refactor to use utility-ts-strategy
	var ChannelBuilderServant = /** @class */ (function () {
	    function ChannelBuilderServant() {
	    }
	    ChannelBuilderServant.build = function (channel, contact_display_value, contact_value) {
	        return this[channel](contact_display_value, contact_value);
	    };
	    ChannelBuilderServant.WEB = function (contact_display_value, contact_value) {
	        return this.URL(contact_display_value, contact_value);
	    };
	    ChannelBuilderServant.URL = function (contact_display_value, contact_value) {
	        var desktopActionable = true;
	        var icon = 'link';
	        var urls = this.__constructURL(contact_value);
	        var description = this.__setDescription(urls.prettyAddress, contact_display_value);
	        var link = {
	            desktop: urls.linkingAddress,
	            android: urls.linkingAddress,
	            ios: urls.linkingAddress
	        };
	        return { description: description, link: link, desktopActionable: desktopActionable, icon: icon };
	    };
	    ChannelBuilderServant.LOCATION = function (contact_display_value, contact_value) {
	        var icon = 'map_marker';
	        var description = this.__setDescription(contact_value, contact_display_value);
	        // TODO: figure out how the server handles long/lat and revisit this code
	        // let addressAppend;
	        // if (!_.isEmpty(processingResolution.source.address)) {
	        //   addressAppend = processingResolution.source.address;
	        // } else if (processingResolution.source.longitude !== 0 && processingResolution.source.latitude !== 0) {
	        //   addressAppend = processingResolution.source.latitude + ',' + processingResolution.source.longitude;
	        // }
	        var link = {
	            desktop: 'https://maps.google.com/?q=' + contact_value,
	            android: 'geo://maps.google.com/?q=' + contact_value,
	            ios: 'maps://maps.apple.com/?q=' + contact_value
	        };
	        var desktopActionable = true;
	        return { description: description, link: link, desktopActionable: desktopActionable, icon: icon };
	    };
	    ChannelBuilderServant.PHONE = function (contact_display_value, contact_value) {
	        return this.__simpleResolutionConstruction('tel://', contact_display_value, contact_value, 'telephone');
	    };
	    ChannelBuilderServant.EMAIL = function (contact_display_value, contact_value) {
	        return this.__simpleResolutionConstruction('mailto:', contact_display_value, contact_value, 'envelope');
	    };
	    // function methods we use to clean up the meat of the methods
	    ChannelBuilderServant.__constructURL = function (url) {
	        var urlPrefixExpression = new RegExp('://');
	        var prettyAddress = url;
	        var urlContainsPrefix = urlPrefixExpression.exec(prettyAddress);
	        var linkingAddress = '';
	        if (_4.isNull(urlContainsPrefix)) {
	            linkingAddress = 'http://' + prettyAddress;
	        }
	        else {
	            linkingAddress = prettyAddress;
	            // regex has the starting index stored, but we add 3 since the expression is 3 characters long
	            prettyAddress = prettyAddress.slice(urlContainsPrefix.index + 3, prettyAddress.length);
	        }
	        /* tslint:disable-next-line */
	        return { prettyAddress: prettyAddress, linkingAddress: linkingAddress };
	    };
	    ChannelBuilderServant.__simpleResolutionConstruction = function (prefix, contact_display_value, contact_value, icon) {
	        var description = this.__setDescription(contact_value, contact_display_value);
	        var link = {
	            desktop: prefix + contact_value,
	            android: prefix + contact_value,
	            ios: prefix + contact_value
	        };
	        var desktopActionable = false;
	        return { description: description, link: link, desktopActionable: desktopActionable, icon: icon };
	    };
	    ChannelBuilderServant.__setDescription = function (value, displayValue) {
	        return _4.isEmpty(displayValue) ? value : displayValue;
	    };
	    return ChannelBuilderServant;
	}());
	exports.ChannelBuilderServant = ChannelBuilderServant;


/***/ }),
/* 2190 */
/***/ (function(module, exports) {



/***/ }),
/* 2191 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var channel_builder_component_controller_1 = __webpack_require__(2188);
	angular.module('ui-ng-sgd-components', []).component('channelBuilderComponent', new channel_builder_component_controller_1.ChannelBuilderComponent());
	__webpack_require__(2190);


/***/ }),
/* 2192 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var UniversityBrandingSettings = /** @class */ (function () {
	    function UniversityBrandingSettings() {
	        this.brandColorSettings = {};
	        this.brandConfig = {};
	        //
	        // .university-primary-bkg-10 {
	        //   background-color: {{tint.tint_10}};
	        // }
	        //
	        this.styleTemplate = "\n    .university-primary-bkg {\n      background: {{primary}};\n      color: {{text}};\n    }\n    .university-primary-txt {\n      color: {{primary}};\n    }\n    .university-primary-bdr {\n      border-color: {{primary}};\n    }\n    .university-primary-bkg-10 {\n      background-color: var(--hi-color--university-10);\n    }\n    .university-secondary-bkg {\n      background: {{secondary}};\n    }\n    .university-secondary-txt {\n      color: {{secondary}};\n    }\n    .university-secondary-bdr {\n      border-color: {{secondary}};\n    }";
	    }
	    UniversityBrandingSettings.prototype.setBrandingDefaultColor = function (newBrandingColorSet) {
	        this.brandColorSettings = newBrandingColorSet;
	    };
	    UniversityBrandingSettings.prototype.getBrandingDefaultColor = function () {
	        return this.brandColorSettings;
	    };
	    UniversityBrandingSettings.prototype.getBrandingConfiguration = function () {
	        return this.brandConfig;
	    };
	    UniversityBrandingSettings.prototype.updateBrandConfiguration = function (defaultConfig, newConfig) {
	        this.brandConfig = _.merge(defaultConfig, newConfig);
	        return this.brandConfig;
	    };
	    UniversityBrandingSettings.prototype.addBrandingStyle = function (additionalStyle) {
	        this.styleTemplate += additionalStyle;
	    };
	    UniversityBrandingSettings.prototype.getBrandingTemplate = function () {
	        return this.styleTemplate;
	    };
	    UniversityBrandingSettings.prototype.$get = function () {
	        return this;
	    };
	    return UniversityBrandingSettings;
	}());
	exports.UniversityBrandingSettings = UniversityBrandingSettings;
	angular.module('ui-ng-university-branding').provider('universityBrandingSettings', UniversityBrandingSettings);


/***/ }),
/* 2193 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var TouchEventFunctionService = /** @class */ (function () {
	    function TouchEventFunctionService() {
	        this.bindTouchEvent = function (url, ele) { };
	    }
	    TouchEventFunctionService.prototype.setTouchEventFunction = function (func) {
	        this.bindTouchEvent = func;
	    };
	    Object.defineProperty(TouchEventFunctionService.prototype, "touchEventFunction", {
	        get: function () {
	            return this.bindTouchEvent;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    return TouchEventFunctionService;
	}());
	exports.TouchEventFunctionService = TouchEventFunctionService;
	angular.module('ui-ng-university-text').service('ngTouchEventFunctionService', TouchEventFunctionService);


/***/ }),
/* 2194 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var Interface = __webpack_require__(24);
	__webpack_require__(12);
	__webpack_require__(1066);
	__webpack_require__(1067);
	__webpack_require__(1068);
	__webpack_require__(1069);
	__webpack_require__(1070);
	__webpack_require__(1071);
	__webpack_require__(1072);
	__webpack_require__(1064);
	__webpack_require__(1065);
	__webpack_require__(1063);
	exports.default = Interface;


/***/ }),
/* 2195 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var Progression = /** @class */ (function () {
	    function Progression(source, auxiliary) {
	        if (auxiliary === void 0) { auxiliary = {}; }
	        this._activeReflow = undefined;
	        this._auxiliary = auxiliary;
	        this._reflows = [];
	        this.source = source;
	        this.index = this.peekFirstIndex();
	    }
	    /** @return true if item is an object */
	    Progression.isInvalidItem = function (item) {
	        return item === Progression.invalidItem();
	    };
	    /** @return true if index is OUT_OF_BOUNDS */
	    Progression.isOutOfBounds = function (index) {
	        return index === Progression.outOfBoundsIndex();
	    };
	    Progression.invalidItem = function () {
	        return undefined;
	    };
	    Progression.outOfBoundsIndex = function () {
	        return -1;
	    };
	    Progression.create = function (source) {
	        return new Progression(source);
	    };
	    Object.defineProperty(Progression.prototype, "auxiliary", {
	        get: function () {
	            return this._auxiliary;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(Progression.prototype, "source", {
	        /** @return the source object the Progression iterates over */
	        get: function () {
	            return this._source;
	        },
	        /** assign the source object the Progression iterates over */
	        set: function (externalSource) {
	            if (_.isArray(externalSource)) {
	                this._source = externalSource;
	            }
	            else if (_.isPlainObject(externalSource)) {
	                this._source = externalSource;
	            }
	            else if (_.isNumber(externalSource)) {
	                this._source = _.times(externalSource);
	            }
	            else {
	                this._source = [];
	            }
	            this._ordering = _.keys(this._source);
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(Progression.prototype, "index", {
	        /** @return {Number} current valid index */
	        get: function () {
	            return this._index;
	        },
	        /**
	         * @param requestedIndex index to change to
	         */
	        set: function (requestedIndex) {
	            if (!_.isNumber(requestedIndex)) {
	                return;
	            }
	            if (!!this._activeReflow) {
	                requestedIndex = this._activeReflow.rulesReflowIndex(this, requestedIndex);
	            }
	            if (requestedIndex < this.peekFirstIndex()) {
	                this._index = this.peekFirstIndex();
	            }
	            else if (requestedIndex > this.peekLastIndex()) {
	                this._index = this.peekLastIndex();
	            }
	            else {
	                this._index = requestedIndex;
	            }
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(Progression.prototype, "ordering", {
	        get: function () {
	            return this._ordering;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    /** @return true if source has values */
	    Progression.prototype.isValid = function () {
	        return this._ordering.length > 0;
	    };
	    /** @return the item at the current index */
	    Progression.prototype.current = function () {
	        return this.queryItem(this.index);
	    };
	    /** @return the item at the previous index and advance the index (or first, if the index is too low) */
	    Progression.prototype.previous = function () {
	        return this.seekItem(this.peekPreviousIndex());
	    };
	    /** @return true, if a previous item exists */
	    Progression.prototype.hasPrevious = function () {
	        return this.peekPreviousIndex() >= this.peekFirstIndex();
	    };
	    /** @return the item at the previous index (or OUT_OF_BOUNDS, if too low) */
	    Progression.prototype.peekPrevious = function () {
	        return this.peekItem(this.peekPreviousIndex());
	    };
	    /**
	     * search from current index until condition returns true
	     * @param condition a function called (index, item), if true, then we have found our item
	     * @return the first previous index satisfying the condition
	     */
	    Progression.prototype.scanPreviousIndex = function (condition) {
	        return this.scanIndex(condition, -1);
	    };
	    /** @return {Number} the previous index */
	    Progression.prototype.peekPreviousIndex = function () {
	        return this.queryPreviousIndex(this.index);
	    };
	    /** @return the item at the next index and advance the index (or last, if the index is too high) */
	    Progression.prototype.next = function () {
	        return this.seekItem(this.peekNextIndex());
	    };
	    /** @return {Boolean} true, if next item exists */
	    Progression.prototype.hasNext = function () {
	        return this.peekNextIndex() <= this.peekLastIndex();
	    };
	    /** @return the item at the next index (or OUT_OF_BOUNDS, if too high) */
	    Progression.prototype.peekNext = function () {
	        return this.peekItem(this.peekNextIndex());
	    };
	    /**
	     * search from current index until condition returns true
	     * @param condition a function called (index, item), if true, then we have found our item
	     * @return the first next index satisfying the condition
	     */
	    Progression.prototype.scanNextIndex = function (condition) {
	        return this.scanIndex(condition, 1);
	    };
	    /** @return the next index */
	    Progression.prototype.peekNextIndex = function () {
	        return this.queryNextIndex(this.index);
	    };
	    /** @return the first item and advance the index to the first index */
	    Progression.prototype.first = function () {
	        return this.seekItem(this.peekFirstIndex());
	    };
	    /** @return {Boolean} true, if index is at the first index */
	    Progression.prototype.isFirst = function () {
	        return this.index === this.peekFirstIndex();
	    };
	    /** @return true, if index is after first index */
	    Progression.prototype.isAfterFirst = function () {
	        return this.index > this.peekFirstIndex();
	    };
	    /** @return true, if index is before first index */
	    Progression.prototype.isBeforeFirst = function () {
	        return this.index < this.peekFirstIndex();
	    };
	    /** @alias Progression#first */
	    Progression.prototype.peekFirst = function () {
	        return this.peekItem(this.peekFirstIndex());
	    };
	    /** @return {Number} the first index (or -1 if Progression is empty) */
	    Progression.prototype.peekFirstIndex = function () {
	        return this.queryFirstIndex();
	    };
	    /** @return the last item and advance the index to the last index */
	    Progression.prototype.last = function () {
	        return this.seekItem(this.peekLastIndex());
	    };
	    /** @return true, if index is at the last index */
	    Progression.prototype.isLast = function () {
	        return this.index === this.peekLastIndex();
	    };
	    /** @return true, if index is after last index (if true, then the Progression is in error) */
	    Progression.prototype.isAfterLast = function () {
	        return this.index > this.peekLastIndex();
	    };
	    /** @return true, if index is before last index */
	    Progression.prototype.isBeforeLast = function () {
	        return this.index < this.peekLastIndex();
	    };
	    /** @alias Progression#last */
	    Progression.prototype.peekLast = function () {
	        return this.peekItem(this.peekLastIndex());
	    };
	    /** @return {Boolean} the last index (or -1 if Progression is empty) */
	    Progression.prototype.peekLastIndex = function () {
	        return this.queryLastIndex();
	    };
	    Object.defineProperty(Progression.prototype, "length", {
	        /** @return {Number} the length of the progression */
	        get: function () {
	            return this._ordering.length;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    /** @alias Progression#length */
	    Progression.prototype.size = function () {
	        return this.length;
	    };
	    /**
	     * search from current index until condition returns true
	     * @param condition a function called (index, item), if true, then we have found our item
	     * @param progressionIncrement to move along the progression
	     * @return the first index satisfying the condition
	     */
	    Progression.prototype.scanIndex = function (condition, progressionIncrement) {
	        progressionIncrement = _.isUndefined(progressionIncrement) ? 1 : progressionIncrement;
	        var scanIndex = progressionIncrement > 0 ? this.peekNextIndex() : this.peekPreviousIndex();
	        while (this.isIndexBounded(scanIndex)) {
	            if (condition.call(this, scanIndex, this.peekItem(scanIndex))) {
	                return scanIndex;
	            }
	            scanIndex += progressionIncrement;
	        }
	        return Progression.outOfBoundsIndex();
	    };
	    /** @return item at the current index (or bounded to first or last if the index provided is out of bounds) and change the current index */
	    Progression.prototype.seekItem = function (index) {
	        this.index = index;
	        return this.queryItem(this.index);
	    };
	    /** @return item at the current index or undefined, if the index is out of bounds */
	    Progression.prototype.peekItem = function (index) {
	        return this.queryItem(index);
	    };
	    /** @return true, if index is inside of first/last index */
	    Progression.prototype.isIndexBounded = function (index) {
	        return index >= this.queryFirstIndex() && index <= this.queryLastIndex();
	    };
	    /**
	     * lookup item at index
	     * @access protected
	     * @return the source object for the current index or undefined if no source or index out of bounds
	     */
	    Progression.prototype.queryItem = function (index) {
	        return this.isValid() && this.isIndexBounded(index)
	            ? this.source[this._ordering[index]]
	            : Progression.invalidItem();
	    };
	    /**
	     * lookup item by key
	     * @return the source object for the index corresponding to given key or undefined if no source or index out of bounds
	     */
	    Progression.prototype.queryItemByKey = function (key) {
	        return this.queryItem(this.queryIndexByKey(key));
	    };
	    /**
	     * lookup index by original key
	     * @return the index of the source object for the index corresponding to given key or -1 if no source or index out of bounds
	     */
	    Progression.prototype.queryIndexByKey = function (key) {
	        return _.indexOf(this.ordering, key);
	    };
	    /**
	     * @access protected
	     * @return first index
	     */
	    Progression.prototype.queryFirstIndex = function () {
	        return this.length > 0 ? 0 : Progression.outOfBoundsIndex();
	    };
	    /**
	     * @access protected
	     * @return last index
	     */
	    Progression.prototype.queryLastIndex = function () {
	        return this.length - 1;
	    };
	    /**
	     * @access protected
	     * @return next index from Progression#index
	     */
	    Progression.prototype.queryNextIndex = function (index) {
	        return index + 1;
	    };
	    /**
	     * @access protected
	     * @return previous index from Progression#index
	     */
	    Progression.prototype.queryPreviousIndex = function (index) {
	        return index - 1;
	    };
	    /**
	     * assign the current reflow ruleset
	     * @param reflowName the name of the reflow
	     * @return the current progression
	     */
	    Progression.prototype.reflowWith = function (reflowName) {
	        if (_.isString(reflowName)) {
	            this._activeReflow = this._reflows[reflowName];
	        }
	        else if (reflowName instanceof Reflow) {
	            this._activeReflow = reflowName;
	        }
	        else if (_.isUndefined(reflowName)) {
	            this._activeReflow = undefined;
	        }
	        return this;
	    };
	    /**
	     * create a new reflow and assign it as the current reflow
	     * @param reflowName the name of the reflow
	     * @return a new reflow
	     */
	    Progression.prototype.reflow = function (reflowName) {
	        var reflow = (this._activeReflow = new Reflow());
	        if (_.isString(reflowName)) {
	            this._reflows[reflowName] = reflow;
	        }
	        return reflow;
	    };
	    /**
	     * @return {String} source of progression
	     */
	    Progression.prototype.toString = function () {
	        return [JSON.stringify(this._source), this.index, JSON.stringify(this.current())].join(' | ');
	    };
	    return Progression;
	}());
	exports.Progression = Progression;
	var Reflow = /** @class */ (function () {
	    function Reflow() {
	        this._rules = [];
	    }
	    /** @return {Number} the new index after a reflow */
	    Reflow.prototype.rulesReflowIndex = function (progression, requestedIndex) {
	        var rules = this._rules;
	        var requestedItem = progression.queryItem(requestedIndex);
	        var i = rules.length;
	        var value;
	        // NOTE we reverse iterate so we can use push, in the reflow method, and decrement i, for performance
	        while (i--) {
	            value = rules[i].call(progression, requestedIndex, requestedItem);
	            if (Progression.isOutOfBounds(value)) {
	                return progression.index;
	            }
	            // NOTE undefined means the reflow did not have an opinion about this index
	            else if (!_.isUndefined(value)) {
	                return value;
	            }
	        }
	        return requestedIndex;
	    };
	    /**
	     * add a reflow rule at a specific index (assignment index)
	     * @param {Number} index the index to control flow at
	     * @param {Function} orderFn the function to control order with
	     * @note allows index to be out of bounds because the progression may grow
	     */
	    Reflow.prototype.ruleAt = function (index, orderFn) {
	        var _this = this;
	        return this.rule(function (requestedIndex) {
	            if (requestedIndex === index) {
	                return orderFn.call(_this, requestedIndex);
	            }
	        });
	    };
	    /**
	     * add a reflow rule with precendence above all previous reflow rules
	     * @param {Function} orderFn the function to control order with
	     */
	    Reflow.prototype.rule = function (orderFn) {
	        this._rules.push(orderFn);
	        return this;
	    };
	    return Reflow;
	}());
	exports.Reflow = Reflow;


/***/ }),
/* 2196 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var Enumeration = window['Enumeration'];
	exports.DayOfTheWeekEnum = Enumeration('DayOfTheWeekEnum', {
	    SU: {
	        microname: 'Su',
	        shortname: 'Sun',
	        longname: 'Sunday',
	        ordinal: 1
	    },
	    MO: {
	        microname: 'M',
	        shortname: 'Mon',
	        longname: 'Monday',
	        ordinal: 2
	    },
	    TU: {
	        microname: 'Tu',
	        shortname: 'Tue',
	        longname: 'Tuesday',
	        ordinal: 3
	    },
	    WE: {
	        microname: 'W',
	        shortname: 'Wed',
	        longname: 'Wednesday',
	        ordinal: 4
	    },
	    TH: {
	        microname: 'Th',
	        shortname: 'Thu',
	        longname: 'Thursday',
	        ordinal: 5
	    },
	    FR: {
	        microname: 'F',
	        shortname: 'Fri',
	        longname: 'Friday',
	        ordinal: 6
	    },
	    SA: {
	        microname: 'Sa',
	        shortname: 'Sat',
	        longname: 'Saturday',
	        ordinal: 7
	    },
	    ONLINE: {
	        microname: 'O',
	        shortname: 'On',
	        longname: 'Online',
	        ordinal: 8
	    }
	});


/***/ }),
/* 2197 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var Enumeration = window['Enumeration'];
	exports.TimeWindowEnum = Enumeration('TimeWindowEnum', {
	    DAY: {
	        moment: 'day',
	        heading: function () {
	            return '';
	        }
	    },
	    WEEK: {
	        moment: 'week',
	        heading: function () {
	            return '';
	        }
	    },
	    MONTH: {
	        moment: 'month',
	        heading: function () {
	            return '';
	        }
	    },
	    QUARTER: {
	        moment: 'quarter',
	        heading: function () {
	            return '';
	        }
	    },
	    YEAR: {
	        moment: 'year',
	        heading: function () {
	            return '';
	        }
	    }
	});


/***/ }),
/* 2198 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var TimeUtilityService = /** @class */ (function () {
	    function TimeUtilityService() {
	        this.todayStart = moment().startOf('day').unix();
	    }
	    TimeUtilityService.prototype.getDateRange = function (currentDate, timeWindow) {
	        return {
	            start: moment(currentDate).startOf(timeWindow.key),
	            end: moment(currentDate).endOf(timeWindow.key)
	        };
	    };
	    TimeUtilityService.prototype.diffDateRange = function (diff, timeWindow, format) {
	        var now = moment().add(diff, timeWindow.key);
	        if (format) {
	            return this.formattedDateRange(now, timeWindow, format);
	        }
	        return this.getDateRange(now, timeWindow);
	    };
	    TimeUtilityService.prototype.findQuarter = function (date) {
	        var startOfYear = moment(date).startOf('year');
	        var start = moment(startOfYear);
	        var end = moment(start).add(3, 'months').subtract(1, 'seconds');
	        var quarter = {
	            start: start,
	            end: end
	        };
	        // Initial quarter start/end dates...
	        for (var i = 0; i < 4; i++) {
	            if (moment(date).isBetween(start, end)) {
	                quarter = {
	                    start: start,
	                    end: end
	                };
	                break;
	            }
	            start = moment(start).add(3, 'months');
	            end = moment(end).add(3, 'months').endOf('month');
	        }
	        return quarter;
	    };
	    TimeUtilityService.prototype.formatDateRange = function (range, format) {
	        return {
	            start: range.start.format(format),
	            end: range.end.format(format)
	        };
	    };
	    TimeUtilityService.prototype.formattedDateRange = function (currentDate, timeWindow, format) {
	        var range = this.getDateRange(currentDate, timeWindow);
	        return {
	            start: range.start.format(format),
	            end: range.end.format(format)
	        };
	    };
	    TimeUtilityService.prototype.today9AM = function (unixTime) {
	        return moment.unix(unixTime).startOf('day').add(540, 'minute').unix();
	    };
	    TimeUtilityService.prototype.dayDiff = function (unixTime) {
	        return moment.unix(unixTime).startOf('day').diff(moment.unix(this.todayStart), 'days');
	    };
	    TimeUtilityService.prototype.isOverdue = function (unixTime) {
	        return unixTime < moment().unix();
	    };
	    TimeUtilityService.prototype.isToday = function (unixTime) {
	        return this.dayDiff(unixTime) === 0;
	    };
	    TimeUtilityService.prototype.isTomorrow = function (unixTime) {
	        return this.dayDiff(unixTime) === 1;
	    };
	    TimeUtilityService.prototype.isThisWeek = function (unixTime) {
	        return moment.unix(unixTime).week() === moment().week() && this.isSameWeekYear(unixTime);
	    };
	    TimeUtilityService.prototype.isNextWeek = function (unixTime) {
	        return moment.unix(unixTime).week() === moment().week() + 1 && this.isSameWeekYear(unixTime);
	    };
	    TimeUtilityService.prototype.isSameWeekYear = function (unixTime) {
	        return moment.unix(unixTime).weekYear() === moment().weekYear();
	    };
	    TimeUtilityService.prototype.firstDayOfTheWeek = function (unixTime) {
	        return moment.unix(unixTime).startOf('week').unix();
	    };
	    TimeUtilityService.prototype.lastDayOfTheWeek = function (unixTime) {
	        return moment.unix(unixTime).endOf('week').unix();
	    };
	    TimeUtilityService.prototype.formattedFirstDayOfTheWeek = function (unixTime) {
	        return moment.unix(unixTime).startOf('week').format('MMM DD');
	    };
	    TimeUtilityService.prototype.formattedLastDayOfTheWeek = function (unixTime) {
	        return moment.unix(unixTime).endOf('week').format('MMM DD');
	    };
	    TimeUtilityService.prototype.formattedWeek = function (unixTime) {
	        var regularWeekString = this.formattedFirstDayOfTheWeek(unixTime) + ' - ' + this.formattedLastDayOfTheWeek(unixTime);
	        return this.isSameWeekYear(unixTime)
	            ? regularWeekString
	            : regularWeekString + ' ' + moment.unix(unixTime).weekYear();
	    };
	    TimeUtilityService.prototype.formattedMonthDay = function (unixTime) {
	        return moment.unix(unixTime).format('ddd, M/D');
	    };
	    TimeUtilityService.prototype.formattedTime = function (unixTime) {
	        return moment.unix(unixTime).format('h:mm a');
	    };
	    // UTC formats
	    TimeUtilityService.prototype.formattedUtcShortMonthDay = function (utcTime) {
	        return moment.utc(utcTime).format('MMM D');
	    };
	    TimeUtilityService.prototype.formattedUtcShortWeekdayShortMonthDay = function (utcTime) {
	        return moment.utc(utcTime).format('ddd, MMM D');
	    };
	    return TimeUtilityService;
	}());
	exports.TimeUtilityService = TimeUtilityService;
	exports.TimeUtility = new TimeUtilityService();


/***/ }),
/* 2199 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	tslib_1.__exportStar(__webpack_require__(2196), exports);
	tslib_1.__exportStar(__webpack_require__(2197), exports);
	tslib_1.__exportStar(__webpack_require__(2198), exports);


/***/ }),
/* 2200 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var utility_ts_orm_1 = __webpack_require__(3);
	var CommandConfigurationProvider = /** @class */ (function () {
	    function CommandConfigurationProvider(CommandDatasource) {
	        this.CommandDatasource = CommandDatasource;
	    }
	    CommandConfigurationProvider.prototype.delay = function (name, delay, settings) {
	        this.CommandDatasource.delay[name] = delay;
	        if (!_.isUndefined(settings)) {
	            this.CommandDatasource.delaySettings[name] = settings;
	        }
	        return this;
	    };
	    CommandConfigurationProvider.prototype.on = function (event, fn) {
	        this.CommandDatasource.interceptors[this.convertOldEventNames(event.toLowerCase())].push(fn);
	        return this;
	    };
	    CommandConfigurationProvider.prototype.convertOldEventNames = function (event) {
	        if (event === 'success') {
	            return 'then';
	        }
	        else if (event === 'error') {
	            return 'catch';
	        }
	        else {
	            return event;
	        }
	    };
	    CommandConfigurationProvider.prototype.command = function (filterByCommandName) {
	        var _this = this;
	        return {
	            on: function (event, fn) {
	                _this.on(event, function (commandName, rtn) {
	                    var args = [];
	                    for (var _i = 2; _i < arguments.length; _i++) {
	                        args[_i - 2] = arguments[_i];
	                    }
	                    if (commandName === filterByCommandName) {
	                        fn.apply(void 0, tslib_1.__spreadArrays([commandName, rtn], args));
	                    }
	                });
	            }
	        };
	    };
	    CommandConfigurationProvider.prototype.$get = function () {
	        return this;
	    };
	    return CommandConfigurationProvider;
	}());
	exports.CommandConfigurationProvider = CommandConfigurationProvider;
	var DefineCommandProvider = /** @class */ (function () {
	    function DefineCommandProvider(CommandDatasource, commandConfigurationProvider) {
	        this.CommandDatasource = CommandDatasource;
	        this.commandConfigurationProvider = commandConfigurationProvider;
	    }
	    DefineCommandProvider.prototype.configure = function (c) {
	        var _this = this;
	        c = c || {};
	        _.each(c.delay, function (delayedTime, delayedKey) {
	            _this.commandConfigurationProvider.delay(delayedKey, delayedTime);
	        });
	        return this;
	    };
	    DefineCommandProvider.prototype.delay = function (name, delay) {
	        this.commandConfigurationProvider.delay(name, delay);
	        return this;
	    };
	    DefineCommandProvider.prototype.on = function (event, fn) {
	        this.commandConfigurationProvider.on(event, fn);
	        return this;
	    };
	    DefineCommandProvider.prototype.$get = function ($q) {
	        var self = this;
	        var pDebounce = function (fn, wait, opts) {
	            if (!Number.isFinite(wait)) {
	                throw new TypeError('Expected `wait` to be a finite number');
	            }
	            opts = opts || {};
	            var leadingVal;
	            var timer;
	            var resolveList = [];
	            return function () {
	                var args = arguments;
	                return $q(function (resolve) {
	                    var runImmediately = opts.leading && !timer;
	                    clearTimeout(timer);
	                    timer = window.setTimeout(function () {
	                        timer = undefined;
	                        var res = opts.leading ? leadingVal : fn.apply(self, args);
	                        for (var _i = 0, resolveList_1 = resolveList; _i < resolveList_1.length; _i++) {
	                            resolve = resolveList_1[_i];
	                            resolve(res);
	                        }
	                        resolveList = [];
	                    }, wait);
	                    if (runImmediately) {
	                        leadingVal = fn.apply(self, args);
	                        resolve(leadingVal);
	                    }
	                    else {
	                        resolveList.push(resolve);
	                    }
	                });
	            };
	        };
	        var registerResponseHandler = function (name, originalArguments, deferred, eventName) {
	            return function (rtn) {
	                _.each(self.CommandDatasource.interceptors[eventName], function (fn) {
	                    fn(name, rtn, originalArguments);
	                });
	                return deferred.promise;
	            };
	        };
	        return function defineCommand(name, commandFn, commandFeatures) {
	            if (commandFeatures === void 0) { commandFeatures = {
	                runORM: false
	            }; }
	            var commandExecutor = function commandExecutor() {
	                var args = [];
	                for (var _i = 0; _i < arguments.length; _i++) {
	                    args[_i] = arguments[_i];
	                }
	                var deferred = $q.defer();
	                var hasInterceptors = _.reduce(self.CommandDatasource.interceptors, function (total, interceptor) {
	                    return total + interceptor.length;
	                }, 0) > 0;
	                var value = commandFn.apply(void 0, tslib_1.__spreadArrays([deferred], args));
	                if (value !== undefined && !_.isFunction(value.resolve)) {
	                    deferred.resolve(value);
	                }
	                var returnPromiseChain = commandFeatures.runORM
	                    ? deferred.promise.then(function (res) {
	                        utility_ts_orm_1.ORM.run();
	                        return res;
	                    })
	                    : deferred.promise;
	                if (hasInterceptors) {
	                    return returnPromiseChain
	                        .then(registerResponseHandler(name, args, deferred, 'then'))
	                        .catch(registerResponseHandler(name, args, deferred, 'catch'))
	                        .finally(registerResponseHandler(name, args, deferred, 'finally'));
	                }
	                return returnPromiseChain;
	            };
	            return self.CommandDatasource.delay[name] === undefined
	                ? commandExecutor
	                : pDebounce(commandExecutor, self.CommandDatasource.delay[name], self.CommandDatasource.delaySettings[name] || {
	                    leading: false
	                });
	        };
	    };
	    return DefineCommandProvider;
	}());
	exports.DefineCommandProvider = DefineCommandProvider;
	angular
	    .module('utility-ng-kernel')
	    .constant('CommandDatasource', {
	    delay: {},
	    delaySettings: {},
	    interceptors: {
	        finally: [],
	        catch: [],
	        then: []
	    }
	})
	    .provider('commandConfiguration', CommandConfigurationProvider)
	    .provider('defineCommand', DefineCommandProvider)
	    .factory('defineCommandORM', function (defineCommand) {
	    return function () {
	        var args = [];
	        for (var _i = 0; _i < arguments.length; _i++) {
	            args[_i] = arguments[_i];
	        }
	        return defineCommand.apply(void 0, tslib_1.__spreadArrays(args, [{
	                runORM: true
	            }]));
	    };
	});


/***/ }),
/* 2201 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var orm_1 = __webpack_require__(47);
	var NO_RETURN_VALUE = '__no-promise-value__';
	/**
	 * register a command, returning a new function which executes the command and handles updating all registered elements in the ORM
	 * @param action the action definition of the command
	 * @param sources optional sources which should be considered to have updated inside the Command (this is automatic)
	 */
	exports.registerCommand = function (action) {
	    var sources = [];
	    for (var _i = 1; _i < arguments.length; _i++) {
	        sources[_i - 1] = arguments[_i];
	    }
	    return function () {
	        var args = [];
	        for (var _i = 0; _i < arguments.length; _i++) {
	            args[_i] = arguments[_i];
	        }
	        return action.apply(void 0, args).then(function (_rtn) {
	            var queries = orm_1.ORM.run.apply(orm_1.ORM, sources);
	            return _rtn === NO_RETURN_VALUE ? queries : _rtn;
	        });
	    };
	};
	/**
	 * abstracts creating a Promise and failing the Promise if Error's are returned
	 * @param resolveResult the value or function providing a value to return to the Promise
	 */
	exports.safeResolve = function (resolveResult) {
	    return new Promise(function (resolve, reject) {
	        var isResolveResultFn = function (fn) {
	            return typeof resolveResult === 'function';
	        };
	        var value = isResolveResultFn(resolveResult) ? resolveResult() : resolveResult;
	        if (value instanceof Error) {
	            reject(value);
	        }
	        else {
	            resolve(value);
	        }
	    });
	};
	/**
	 * If a Command does not return a value or you want a Command to return all Queries updated, then invoke this method on return of your _action_ to the Command
	 */
	exports.requestQueries = function () {
	    return NO_RETURN_VALUE;
	};


/***/ }),
/* 2202 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var db_utilities_1 = __webpack_require__(907);
	var metasource_1 = __webpack_require__(908);
	var orm_1 = __webpack_require__(47);
	var _4 = __webpack_require__(1);
	var Datasource = /** @class */ (function () {
	    function Datasource(options) {
	        if (options === void 0) { options = Datasource.DEFAULT_DATASOURCE_OPTIONS; }
	        this.configure(options);
	        this.clear();
	    }
	    Datasource.prototype.configure = function (options) {
	        this._options = _4.merge({}, Datasource.DEFAULT_DATASOURCE_OPTIONS, this._options, options);
	        this.accessMode = this._options.accessMode;
	        this.mergeStrategy = this._options.mergeStrategy || this._options.updateMode;
	        this.writeGuard = this._options.writeGuard || this._options.writeMode;
	        return this;
	    };
	    /**
	     * add hooks to hijack operations on a Datasource to synchronize Usersource and Model objects with the Datasource
	     * @param hooks a set of functions starting with `$pre` and `$post`
	     */
	    Datasource.prototype.addHooks = function (hooks) {
	        var _this = this;
	        _4.each(hooks, function (hook, methodName) {
	            _this[methodName] = hook;
	        });
	        return this;
	    };
	    /**
	     * add a Metasource object to this Datasource
	     * @param inclusion a function allowing you to create your own Metasource, usually unnecessary
	     */
	    Datasource.prototype.includeMetasource = function (inclusion) {
	        this.__metasource = inclusion(this);
	        return this;
	    };
	    /**
	     * add a Metasource object to this Datasource
	     * @param inclusion a function allowing you to create your own Metasource, usually unnecessary
	     */
	    Datasource.prototype.createMetasource = function () {
	        this.__metasource = new metasource_1.Metasource(this);
	        return this.__metasource;
	    };
	    Object.defineProperty(Datasource.prototype, "__metasource__", {
	        /**
	         * @deprecated use `metasource()`
	         */
	        get: function () {
	            return this.__metasource;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Datasource.prototype.metasource = function () {
	        return this.__metasource;
	    };
	    Object.defineProperty(Datasource.prototype, "writeMode", {
	        get: function () {
	            return this._options.writeGuard;
	        },
	        set: function (writeMode) {
	            this._options.writeGuard = this.__isWriteGuard(writeMode) ? writeMode : 'overwrite';
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Datasource.prototype.__isWriteGuard = function (writeMode) {
	        return writeMode !== 'clobber';
	    };
	    Object.defineProperty(Datasource.prototype, "accessMode", {
	        get: function () {
	            return this._options.accessMode;
	        },
	        set: function (accessMode) {
	            this._options.accessMode = accessMode;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(Datasource.prototype, "updateMode", {
	        get: function () {
	            return this._options.mergeStrategy;
	        },
	        set: function (updateMode) {
	            this._options.mergeStrategy = updateMode;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(Datasource.prototype, "mergeStrategy", {
	        get: function () {
	            return this._options.mergeStrategy;
	        },
	        set: function (mergeStrategy) {
	            this._options.mergeStrategy = mergeStrategy;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(Datasource.prototype, "writeGuard", {
	        get: function () {
	            return this._options.writeGuard;
	        },
	        set: function (writeGuard) {
	            this._options.writeGuard = writeGuard;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    /**
	     * Append a `model` to the Datasource
	     */
	    Datasource.prototype.includeModel = function (model) {
	        this.__model = _4.merge({}, this.__model, model);
	        return this;
	    };
	    Object.defineProperty(Datasource.prototype, "model", {
	        get: function () {
	            return this.__model;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    /**
	     * remove all empty elements
	     */
	    Datasource.prototype.pack = function () {
	        this._db = _4.pickBy(this._db, function (o) { return o !== undefined; });
	        return this;
	    };
	    /**
	     * @return the number of elements
	     */
	    Datasource.prototype.size = function () {
	        return _4.size(this._db);
	    };
	    /**
	     * all elements in datasource that are in the intersectionSet
	     * @param intersectionSet IIndexable's or id's to match against Datasource entities
	     * @param iterator a mapping function
	     */
	    Datasource.prototype.cursor = function (intersectionSet, iterator) {
	        var _this = this;
	        return _4.map(_4.compact(_4.map(intersectionSet, function (o) { return db_utilities_1.getElement(_this._db, o); })), iterator);
	    };
	    /**
	     * all elements in datasource that are not in the intersectionSet
	     * @param intersectionSet IIndexable's or id's to match against Datasource entities
	     * @param iterator a mapping function
	     */
	    Datasource.prototype.difference = function (intersectionSet, iterator) {
	        var _this = this;
	        var filteredList = _4.filter(intersectionSet, function (o) { return !db_utilities_1.getElement(_this._db, o); });
	        var compactList = _4.compact(filteredList);
	        var iteratorRanList = _4.map(compactList, iterator);
	        return iteratorRanList;
	        // return _4.map(_4.compact(_4.filter<any, any>(intersectionSet, (o: t_key | T) => {
	        //   return !getElement(this._db, o) as any;
	        // })) as T[], iterator);
	    };
	    /**
	     *
	     * @param qry
	     * @param iterator
	     */
	    Datasource.prototype.query = function (qry, iterator) {
	        if (qry === void 0) { qry = function (_0) { return true; }; }
	        return _4.map(_4.filter(this._db, qry), iterator);
	    };
	    /**
	     * useful for mapping to a new structure for the view or logging
	     * @param fn map the entire cache to a new form
	     */
	    Datasource.prototype.report = function (fn) {
	        return fn(this._db);
	    };
	    /**
	     * the object returned will replace the existing store within the datasource. Use this to remove multiple and add multiple elements
	     * @param fn output a new set of elements from the existing set
	     */
	    Datasource.prototype.rewrite = function (fn) {
	        var newSet = fn(this.read());
	        this.clear().write(newSet);
	        return this;
	    };
	    /**
	     * map a partial element to final form for each element in this datasource
	     * @param fn update each element
	     */
	    Datasource.prototype.remap = function (fn) {
	        var _this = this;
	        _4.each(this._db, function (u) {
	            var remapped = fn(u);
	            _this._db[remapped.id] = remapped;
	        });
	        return this;
	    };
	    /**
	     * respond to every element or change the properties of elements
	     */
	    Datasource.prototype.each = function (fn) {
	        _4.each(this._db, fn);
	        return this;
	    };
	    /**
	     * true if all elements exist in the datasource
	     * @param lookup a set of id or value objects
	     */
	    Datasource.prototype.contains = function (lookup) {
	        var _this = this;
	        return _4.every(lookup, function (v) { return _this.__exists(_this.__key(v)); });
	    };
	    /**
	     *
	     * @param k
	     */
	    Datasource.prototype.exists = function (k) {
	        return this.__exists(k);
	    };
	    Datasource.prototype.__exists = function (k) {
	        var lookup = k.hasOwnProperty('id') ? k['id'] : k;
	        return typeof this._db[lookup] !== 'undefined';
	    };
	    Datasource.prototype.__key = function (t) {
	        return (t.hasOwnProperty('id') ? t['id'] : t);
	    };
	    /**
	     * clear and refill with
	     */
	    Datasource.prototype.replace = function (db) {
	        return this.clear().write(db);
	    };
	    /**
	     * Write elements and convert with respect to access/update/write modes
	     */
	    Datasource.prototype.write = function (db) {
	        return this.__exec('Write', db);
	    };
	    Datasource.prototype.__write = function (db) {
	        var _this = this;
	        var _writeRecord = {};
	        if (this.accessMode === 'read') {
	            return _writeRecord;
	        }
	        _4.each(db, function (e) {
	            var o = _this.put(e);
	            _writeRecord[o.id] = o;
	        });
	        return _writeRecord;
	    };
	    /**
	     * insert an element with respect to access/update/write modes
	     * @param t
	     */
	    Datasource.prototype.put = function (t) {
	        return this.__exec('Put', t);
	    };
	    Datasource.prototype.__put = function (t) {
	        if (this.accessMode === 'read') {
	            return t;
	        }
	        var tId = parseInt(t.id, 10);
	        if (!!this._options.autoId && (_4.isNaN(tId) || !_4.isNumber(tId))) {
	            var _id = void 0;
	            do {
	                _id = _4.uniqueId();
	            } while (!!this._db[_id]);
	            t.id = parseInt(_id, 10);
	        }
	        var existing = this._db[t.id];
	        if (this._options.mergeStrategy === 'merge' && !!existing) {
	            return (this._db[t.id] = this.__merge(existing, t));
	        }
	        var _o = this.__build(t);
	        if (this.writeGuard === 'preserve' && this._db.hasOwnProperty(_o.id)) {
	            return _o;
	        }
	        this._db[_o.id] = _o;
	        orm_1.ORM.mark(this);
	        return _o;
	    };
	    Datasource.prototype.__build = function (t) {
	        var options = this._options;
	        var BuilderClass = options.builderType;
	        return options.builderType && !(t instanceof BuilderClass) ? options.builderType.build(t) : t;
	    };
	    Datasource.prototype.__merge = function (cached, newType) {
	        var options = this._options;
	        var BuilderClass = options.builderType;
	        return options.builderType && typeof options.builderType.merge === 'function'
	            ? options.builderType.merge(cached, newType)
	            : _4.merge(cached, newType);
	    };
	    /**
	     *
	     * @param keyOrT
	     */
	    Datasource.prototype.del = function (keyOrT) {
	        return this.__exec('Del', keyOrT);
	    };
	    Datasource.prototype.__del = function (kOrV) {
	        var id = typeof kOrV === 'string' || typeof kOrV === 'number' ? kOrV : (kOrV.id + '');
	        delete this._db[id];
	        orm_1.ORM.mark(this);
	        return id;
	    };
	    /**
	     *
	     */
	    Datasource.prototype.clear = function () {
	        return this.__exec('Clear', undefined);
	    };
	    Datasource.prototype.__clear = function () {
	        this._db = {};
	        orm_1.ORM.mark(this);
	        return this;
	    };
	    /**
	     *
	     */
	    Datasource.prototype.read = function () {
	        return this.__exec('Read', undefined);
	    };
	    Datasource.prototype.__read = function () {
	        return this._db;
	    };
	    Datasource.prototype.import = function (state) {
	        this.__model = state.model;
	        this.write(state.db);
	        return this;
	    };
	    Datasource.prototype.export = function () {
	        return {
	            model: this.__model,
	            db: this._db
	        };
	    };
	    /**
	     * return all elements as an array
	     */
	    Datasource.prototype.values = function () {
	        return this.__exec('Values');
	    };
	    Datasource.prototype.__values = function () {
	        return db_utilities_1.safeCompact(_4.compact(_4.toArray(this._db)));
	    };
	    /**
	     *
	     * @param k
	     */
	    Datasource.prototype.get = function (k) {
	        return this.__exec('Get', k);
	    };
	    Datasource.prototype.__get = function (k) {
	        return this._db[k];
	    };
	    Datasource.prototype.__exec = function (cmd) {
	        var param = [];
	        for (var _i = 1; _i < arguments.length; _i++) {
	            param[_i - 1] = arguments[_i];
	        }
	        var cmdOp = cmd.toLowerCase();
	        var $pre = "$pre" + cmd;
	        var $post = "$post" + cmd;
	        if (typeof this[$pre] === 'function') {
	            this[$pre].apply(this, param);
	        }
	        var rtn = this["__" + cmdOp].apply(this, param);
	        if (typeof this[$post] === 'function') {
	            this[$post].apply(this, param);
	        }
	        return rtn;
	    };
	    /**
	     * @deprecated use #values
	     */
	    Datasource.prototype.getAll = function () {
	        var _this = this;
	        console.error("DEPRECATED: Datasource#getAll");
	        return _4.map(this._db, function (_0, id) { return _this.get(id); });
	    };
	    /**
	     * amend each object.
	     * the id field is constant.
	     * @param fn update each element
	     * @deprecated
	     */
	    Datasource.prototype.map = function (fn) {
	        console.error("DEPRECATED: Datasource#map");
	        return this.remap(fn);
	    };
	    /**
	     * @deprecated use `rewrite` so that what you return replaces the Datasource or `remap` so time is not wasted with `put`
	     * @param fn
	     */
	    Datasource.prototype.refresh = function (fn) {
	        console.error("DEPRECATED: Datasource#refresh");
	        this.rewrite(fn);
	        return this._db;
	    };
	    /**
	     * @deprecated
	     */
	    Datasource.prototype.intersection = function (lookup) {
	        console.error("DEPRECATED: Datasource#intersection");
	        return this.__cursor(lookup, function (cache, id) { return (!!cache[id] ? id : undefined); });
	    };
	    /**
	     * @deprecated
	     */
	    Datasource.prototype.__cursor = function (set, fn) {
	        var _this = this;
	        return _4.compact(_4.map(set, function (o) { return fn(_this._db, _this.__key(o)); }));
	    };
	    Datasource.DEFAULT_DATASOURCE_OPTIONS = {
	        builderType: undefined,
	        autoId: true,
	        accessMode: 'read-write',
	        mergeStrategy: 'assign',
	        updateMode: 'assign',
	        writeGuard: 'overwrite',
	        writeMode: 'clobber'
	    };
	    return Datasource;
	}());
	exports.Datasource = Datasource;


/***/ }),
/* 2203 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var orm_1 = __webpack_require__(47);
	var _4 = __webpack_require__(7);
	var Model = /** @class */ (function () {
	    function Model(_db) {
	        var _this = this;
	        this._db = _db;
	        this.__initialDB = _4.cloneDeep(this._db);
	        _4.each(_4.keys(this._db), function (property) {
	            Object.defineProperty(_this, property, {
	                get: function () {
	                    return this._db[property];
	                }
	            });
	        });
	    }
	    Model.prototype.write = function (model) {
	        _4.merge(this._db, model);
	        orm_1.ORM.mark(this);
	        return this;
	    };
	    Model.prototype.clear = function () {
	        this._db = _4.cloneDeep(this.__initialDB);
	        orm_1.ORM.mark(this);
	        return this;
	    };
	    Model.prototype.replace = function (model) {
	        return this.clear().write(model);
	    };
	    Model.prototype.read = function () {
	        return this._db;
	    };
	    Model.prototype.import = function (state) {
	        this._db = _4.merge({}, this.__initialDB, state.db);
	        orm_1.ORM.mark(this);
	        return this;
	    };
	    Model.prototype.export = function () {
	        return {
	            db: this._db
	        };
	    };
	    /**
	     * create a model with defined properties
	     * @param preferences properties belonging to the usersource
	     */
	    Model.build = function (db) {
	        return new Model(db);
	    };
	    return Model;
	}());
	exports.Model = Model;


/***/ }),
/* 2204 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(7);
	var Relationship = /** @class */ (function () {
	    function Relationship(__d1, __d2) {
	        this.__d1 = __d1;
	        this.__d2 = __d2;
	        /**
	         *
	         * @pre d1 has a property with an array of id's. d2 has the id reference
	         * @param d1Key array of id keys mapped to d2
	         */
	        this.everyOneToMany = this.everyManyToMany; // the lodash each supports one or many
	        /**
	         *
	         * @pre d1 has a property with an array of id's. d2 has the id reference
	         * @param d1Key array of id keys mapped to d2
	         */
	        this.filterOneToMany = this.filterManyToMany; // the lodash each supports one or many
	    }
	    Object.defineProperty(Relationship.prototype, "d1", {
	        get: function () {
	            return this.__d1;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Object.defineProperty(Relationship.prototype, "d2", {
	        get: function () {
	            return this.__d2;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    Relationship.prototype.includeModel = function (model) {
	        this.__model = _4.merge({}, this.__model, model);
	        return this;
	    };
	    Object.defineProperty(Relationship.prototype, "model", {
	        get: function () {
	            return this.__model;
	        },
	        enumerable: true,
	        configurable: true
	    });
	    /**
	     * erase any key which does not exist
	     * @pre d1 has a property with an array of id's. d2 has the id reference
	     * @post d1 ...
	     * @param d1Key array of id keys mapped to d2
	     */
	    Relationship.prototype.packManyToMany = function (d1Key) {
	        var _this = this;
	        this.__d1.each(function (element) {
	            if (element[d1Key]) {
	                element["_" + d1Key] = _4.filter(element[d1Key], function (id) {
	                    return _this.__d2.exists(id);
	                });
	            }
	        });
	        return this;
	    };
	    Relationship.prototype.packOneToMany = function (d1Key) {
	        var _this = this;
	        this.__d1.each(function (element) {
	            if (element[d1Key]) {
	                if (!_this.__d2.exists(element[d1Key])) {
	                    element["_" + d1Key] = undefined;
	                }
	            }
	        });
	        return this;
	    };
	    /**
	     * @pre d1 has a property with an array of id's. d2 has the id reference
	     * @post d1 has a new property with an underscore prefix of the objects, that exist
	     * @param d1Key array of id keys mapped to d2
	     */
	    Relationship.prototype.mapManyToMany = function (d1Key, iterator) {
	        var _this = this;
	        if (iterator === void 0) { iterator = function (_0, v2) { return v2; }; }
	        this.__d1.each(function (element) {
	            if (element[d1Key]) {
	                var v1 = element[d1Key];
	                element["_" + d1Key] = _4.compact(_4.map(_4.compact(_4.map(v1, function (id) {
	                    return _this.__d2.get(id);
	                })), function (v2) {
	                    return iterator(element, v2);
	                }));
	            }
	        });
	        return this;
	    };
	    /**
	     *
	     * @pre d1 has a property with an array of id's. d2 has the id reference
	     * @param d1Key array of id keys mapped to d2
	     */
	    Relationship.prototype.mapOneToMany = function (d1Key, iterator) {
	        var _this = this;
	        if (iterator === void 0) { iterator = function (_0, v2) { return v2; }; }
	        this.__d1.each(function (element) {
	            var v1 = element[d1Key];
	            var v2 = _this.__d2.get(v1);
	            if (v1 && v2) {
	                element["_" + d1Key] = iterator(element, v2);
	            }
	        });
	        return this;
	    };
	    /**
	     * call `iterator ` for every d1 key which maps to a d2 key that exists
	     * @pre d1 has a property with an array of id's. d2 has the id reference
	     * @param d1Key array of id keys mapped to d2
	     * @param iterator
	     */
	    Relationship.prototype.everyManyToMany = function (d1Key, iterator) {
	        var _this = this;
	        this.__d1.each(function (v1) {
	            _4.each(v1[d1Key], function (id) {
	                var v2 = _this.__d2.get(id);
	                if (v1 && v2) {
	                    iterator(v1, v2);
	                }
	            });
	        });
	        return this;
	    };
	    /**
	     * call `iterator ` for every d1 key which maps to a d2 key that exists
	     * @pre d1 has a property with an array of id's. d2 has the id reference
	     * @param d1Key array of id keys mapped to d2
	     * @param iterator chooses which elements are passed
	     */
	    Relationship.prototype.filterManyToMany = function (d1Key, iterator) {
	        var _this = this;
	        if (iterator === void 0) { iterator = function (_0, _1) { return true; }; }
	        var filteredList = [];
	        this.__d1.each(function (v1) {
	            _4.each(v1[d1Key], function (id) {
	                var v2 = _this.__d2.get(id);
	                if (v1 && v2 && iterator(v1, v2)) {
	                    filteredList.push({
	                        v1: v1,
	                        v2: v2
	                    });
	                }
	            });
	        });
	        return filteredList;
	    };
	    /**
	     *
	     * @param junction an array of objects with d1 and d2 keys
	     * @param d1Key the key in the ruleset which holds an id for d1
	     * @param d2Key the key in the ruleset which holds an id for d2
	     * @param iterator if both id's exist, then invoke
	     */
	    Relationship.prototype.everyManyToManyJunction = function (junction, d1Key, d2Key, iterator) {
	        var _this = this;
	        _4.each(junction, function (rule) {
	            var v1 = _this.__d1.get(rule[d1Key]);
	            var v2 = _this.__d2.get(rule[d2Key]);
	            if (v1 && v2) {
	                iterator(v1, v2);
	            }
	        });
	        return this;
	    };
	    return Relationship;
	}());
	exports.Relationship = Relationship;


/***/ }),
/* 2205 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var orm_1 = __webpack_require__(47);
	var _4 = __webpack_require__(7);
	var Usersource = /** @class */ (function () {
	    function Usersource(_preferences) {
	        var _this = this;
	        this._preferences = _preferences;
	        this.__initialPreferences = _4.clone(this._preferences);
	        _4.each(_4.keys(this._preferences), function (property) {
	            Object.defineProperty(_this, property, {
	                get: function () {
	                    return this.get(property);
	                },
	                set: function (value) {
	                    return this.set(property, value);
	                }
	            });
	        });
	    }
	    /**
	     * @param property an existing property
	     */
	    Usersource.prototype.get = function (property) {
	        return this._preferences[property];
	    };
	    /**
	     * @note this will force the ORM to run; for performance consider `#update` unless you need to map a property to a bindable component attribute
	     * @param property an existing property
	     * @param value a new value of the same type
	     */
	    Usersource.prototype.set = function (property, value) {
	        this._preferences[property] = value;
	        return this.__updateORM();
	    };
	    Usersource.prototype.clear = function () {
	        this._preferences = this.__initialPreferences;
	        return this.__updateORM();
	    };
	    Usersource.prototype.update = function (preferences) {
	        _4.merge(this._preferences, preferences);
	        return this.__updateORM();
	    };
	    Usersource.prototype.import = function (state) {
	        this._preferences = state.db;
	        return this.__updateORM();
	    };
	    Usersource.prototype.export = function () {
	        return {
	            db: this._preferences
	        };
	    };
	    /**
	     * get source
	     */
	    Usersource.prototype.read = function () {
	        return this._preferences;
	    };
	    Usersource.prototype.__updateORM = function () {
	        orm_1.ORM.run(this);
	        return this;
	    };
	    /**
	     * create a usersource with defined properties
	     * @param preferences properties belonging to the usersource
	     */
	    Usersource.build = function (preferences) {
	        return new Usersource(preferences);
	    };
	    return Usersource;
	}());
	exports.Usersource = Usersource;


/***/ }),
/* 2206 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var _4 = __webpack_require__(1);
	var PlatformUtility = /** @class */ (function () {
	    function PlatformUtility() {
	    }
	    PlatformUtility.getPlatform = function () {
	        if (_4.isUndefined(window.ionic)) {
	            return 'desktop';
	        }
	        return window.ionic.Platform.isAndroid() ? 'android' : 'ios';
	    };
	    PlatformUtility.isIOS = function () {
	        return this.getPlatform() === 'ios';
	    };
	    PlatformUtility.isAndroid = function () {
	        return this.getPlatform() === 'android';
	    };
	    PlatformUtility.isDesktop = function () {
	        return this.getPlatform() === 'desktop';
	    };
	    PlatformUtility.isMobile = function () {
	        return this.isAndroid() || this.isIOS();
	    };
	    return PlatformUtility;
	}());
	exports.PlatformUtility = PlatformUtility;


/***/ }),
/* 2207 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(7);
	/**
	 * ConditionalState
	 *
	 * @description represents logic around transitioning from one state (algorithm selection) to another
	 */
	var ConditionalState = /** @class */ (function () {
	    function ConditionalState(__rules) {
	        var _this = this;
	        this.__rules = __rules;
	        this.transition = _4.curry(function (executionContext, currentStateKey, newStateKey) {
	            var currentState = _this.__rules[currentStateKey];
	            var newState = currentState[newStateKey];
	            if (typeof newState === 'boolean') {
	                return newState ? newStateKey : currentStateKey;
	            }
	            var willTransition = typeof newState.condition === 'boolean' ? newState.condition : newState.condition(executionContext);
	            if (willTransition && typeof newState.onEnter === 'function') {
	                newState.onEnter(executionContext);
	            }
	            return willTransition ? newStateKey : currentStateKey;
	        });
	    }
	    return ConditionalState;
	}());
	exports.ConditionalState = ConditionalState;
	var ConditionalStateSafe = /** @class */ (function (_super) {
	    tslib_1.__extends(ConditionalStateSafe, _super);
	    function ConditionalStateSafe() {
	        return _super !== null && _super.apply(this, arguments) || this;
	    }
	    return ConditionalStateSafe;
	}(ConditionalState));
	exports.ConditionalStateSafe = ConditionalStateSafe;


/***/ }),
/* 2208 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(7);
	/**
	 * ConditionalStrategy
	 *
	 * @description represents logic around a set of data (context) which reduces to a single algorithm selection
	 */
	var ConditionalStrategy = /** @class */ (function () {
	    function ConditionalStrategy(__rules) {
	        this.__rules = __rules;
	    }
	    ConditionalStrategy.prototype.evaluate = function (executionContext, defaultValue) {
	        return (_4.findKey(this.__rules, function (condition) {
	            return condition(executionContext);
	        }) || defaultValue);
	    };
	    return ConditionalStrategy;
	}());
	exports.ConditionalStrategy = ConditionalStrategy;
	var ConditionalStrategySafe = /** @class */ (function (_super) {
	    tslib_1.__extends(ConditionalStrategySafe, _super);
	    function ConditionalStrategySafe() {
	        return _super !== null && _super.apply(this, arguments) || this;
	    }
	    return ConditionalStrategySafe;
	}(ConditionalStrategy));
	exports.ConditionalStrategySafe = ConditionalStrategySafe;


/***/ }),
/* 2209 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(7);
	/**
	 * ConditionalSwitch
	 *
	 * @description represents complex, generic logic; replaces `if-else if-else` because it
	 */
	var ConditionalSwitch = /** @class */ (function () {
	    function ConditionalSwitch(__rules, __fallback) {
	        this.__rules = __rules;
	        this.__fallback = __fallback;
	    }
	    ConditionalSwitch.prototype.evaluate = function (executionContext) {
	        var rule = _4.find(this.__rules, function (_rule) {
	            return _rule.condition(executionContext);
	        });
	        return rule ? rule.value(executionContext) : this.__fallback.value(executionContext);
	    };
	    return ConditionalSwitch;
	}());
	exports.ConditionalSwitch = ConditionalSwitch;
	var ConditionalSwitchSafe = /** @class */ (function (_super) {
	    tslib_1.__extends(ConditionalSwitchSafe, _super);
	    function ConditionalSwitchSafe() {
	        return _super !== null && _super.apply(this, arguments) || this;
	    }
	    return ConditionalSwitchSafe;
	}(ConditionalSwitch));
	exports.ConditionalSwitchSafe = ConditionalSwitchSafe;


/***/ }),
/* 2210 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	/**
	 * FastConditionalStrategy
	 *
	 * @description represents logic around a set of data (context) which reduces to a single algorithm selection
	 */
	var FastConditionalStrategy = /** @class */ (function () {
	    function FastConditionalStrategy(__rules) {
	        this.__rules = __rules;
	    }
	    FastConditionalStrategy.prototype.evaluate = function (executionContext, fallback) {
	        for (var _i = 0, _a = this.__rules; _i < _a.length; _i++) {
	            var _b = _a[_i], algorithm = _b[0], condition = _b[1];
	            if (condition(executionContext)) {
	                return algorithm;
	            }
	        }
	        return fallback;
	    };
	    return FastConditionalStrategy;
	}());
	exports.FastConditionalStrategy = FastConditionalStrategy;


/***/ }),
/* 2211 */
/***/ (function(module, exports, __webpack_require__) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	var tslib_1 = __webpack_require__(4);
	var _4 = __webpack_require__(7);
	var StrategyExecutionContext = /** @class */ (function () {
	    function StrategyExecutionContext(_algorithm) {
	        this._algorithm = _algorithm;
	        this._pipeline = [];
	    }
	    StrategyExecutionContext.prototype.map = function (fn) {
	        this._pipeline.push(fn);
	        return this;
	    };
	    StrategyExecutionContext.prototype.value = function (value) {
	        var _this = this;
	        return _4.reduce(this._pipeline, function (res, fn) {
	            return fn(_this._algorithm, res);
	        }, value);
	    };
	    return StrategyExecutionContext;
	}());
	exports.StrategyExecutionContext = StrategyExecutionContext;
	/**
	 * Strategy
	 *
	 * @description represents a set of algorithms to choose at run-time
	 */
	var Strategy = /** @class */ (function () {
	    function Strategy(keys) {
	        var _this = this;
	        this.__db = {};
	        Strategy._hideProperty(this, '__db');
	        Strategy._hideProperty(this, '__fallback');
	        _4.each(keys, function (value, key) {
	            if (key.toLowerCase() === 'fallback') {
	                _this.fallback(value);
	            }
	            else {
	                _this.__insert(key, value);
	            }
	        });
	    }
	    Strategy.prototype.size = function () {
	        return _4.size(this.__db);
	    };
	    Strategy.prototype.includes = function (token) {
	        if (typeof token === 'string') {
	            return this.__db.hasOwnProperty(token);
	        }
	        else if (typeof token === 'number') {
	            return !!Strategy._getByUnsafe(this.__db, token);
	        }
	        else {
	            return false;
	        }
	    };
	    Strategy.prototype.get = function (token) {
	        return this._getBy(token).value;
	    };
	    Strategy.prototype.getByKey = function (token) {
	        return this._getBy(token).value;
	    };
	    Strategy.prototype.getByOrdinal = function (token) {
	        return this._getBy(token).value;
	    };
	    Strategy.prototype.getByValue = function (token) {
	        return this._getBy(token).value;
	    };
	    Strategy.prototype.getKeyByValue = function (token) {
	        return this._getBy(token).key;
	    };
	    Strategy.prototype.getOrdinalByValue = function (token) {
	        return this._getBy(token).ordinal;
	    };
	    Strategy.prototype._getBy = function (token) {
	        return Strategy._getByUnsafe(this.__db, token) || this.__fallback;
	    };
	    Strategy._getByUnsafe = function (db, token) {
	        if (typeof token === 'number') {
	            return _4.find(db, function (_a) {
	                var ordinal = _a.ordinal;
	                return ordinal === token;
	            });
	        }
	        else if (typeof token === 'string') {
	            return _4.find(db, function (_a) {
	                var key = _a.key;
	                return key === token;
	            });
	        }
	        else if (!token) {
	            return undefined;
	        }
	        else {
	            return _4.find(db, function (_a) {
	                var value = _a.value;
	                return _4.isEqual(token, value);
	            });
	        }
	    };
	    Strategy.prototype.isEqual = function (first, second) {
	        var unsafeSecond = Strategy._getByUnsafe(this.__db, second);
	        var unsafeFirst = Strategy._getByUnsafe(this.__db, first);
	        return !!unsafeFirst && !!unsafeSecond && _4.isEqual(unsafeFirst, unsafeSecond);
	    };
	    Strategy.prototype.executionContext = function (token) {
	        return new StrategyExecutionContext(this._getBy(token).value);
	    };
	    Strategy.prototype.insert = function (key, value) {
	        return this.__insert(key, value);
	    };
	    Strategy.prototype.__insert = function (key, value) {
	        var ordinal = this.size();
	        this.__db[key] = {
	            ordinal: ordinal,
	            value: value,
	            key: key
	        };
	        this[key] = value;
	        return this;
	    };
	    Strategy.prototype.replace = function (key, value) {
	        this.remove(key);
	        this.insert(key, value);
	        return this;
	    };
	    Strategy.prototype.move = function (oldKey, newKey) {
	        if (!!this.__db[newKey]) {
	            return this;
	        }
	        this.__db[newKey] = this.__db[oldKey];
	        this[newKey] = this[oldKey];
	        delete this.__db[oldKey];
	        delete this[oldKey];
	        return this;
	    };
	    Strategy.prototype.remove = function (key) {
	        delete this.__db[key];
	        delete this[key];
	        return this;
	    };
	    Strategy.prototype.clear = function () {
	        var _this = this;
	        _4.each(this, function (value, key) {
	            _this.remove(key);
	        });
	        delete this.__fallback;
	        this.__db = {};
	        return this;
	    };
	    Strategy.prototype.fallback = function (strategy) {
	        var value = typeof strategy === 'string' ? this.__db[strategy].value : strategy;
	        this.__fallback = {
	            ordinal: Number.MIN_VALUE,
	            key: 'fallback',
	            value: value
	        };
	        return this;
	    };
	    Strategy._hideProperty = function (object, key) {
	        var descriptor = Object.getOwnPropertyDescriptor(object, key);
	        if (!!descriptor) {
	            descriptor.enumerable = false;
	            Object.defineProperty(object, key, descriptor);
	        }
	    };
	    Strategy.prototype.map = function (func) {
	        return _4.map(this.__db, function (element) {
	            return func(element.value, element.key);
	        });
	    };
	    return Strategy;
	}());
	exports.Strategy = Strategy;
	var StrategySafe = /** @class */ (function (_super) {
	    tslib_1.__extends(StrategySafe, _super);
	    function StrategySafe(keys) {
	        return _super.call(this, keys) || this;
	    }
	    StrategySafe.prototype.insert = function (key, value) {
	        throw new Error('rules are frozen');
	    };
	    StrategySafe.prototype.remove = function (key) {
	        throw new Error('rules are frozen');
	    };
	    StrategySafe.prototype.clear = function () {
	        throw new Error('rules are frozen');
	    };
	    return StrategySafe;
	}(Strategy));
	exports.StrategySafe = StrategySafe;


/***/ }),
/* 2212 */
/***/ (function(module, exports) {

	"use strict";
	Object.defineProperty(exports, "__esModule", { value: true });
	/**
	 * convert strings (from attributes) to data types
	 * @param value a string to convert to a known type
	 */
	exports.stringToType = function (value) {
	    var firstLetter = _.first(value);
	    var conversions = {
	        undefined: undefined,
	        false: false,
	        true: true,
	        null: null,
	        NaN: NaN
	    };
	    var v;
	    if (firstLetter === '{') {
	        return JSON.parse(value);
	    }
	    else if (firstLetter === '[') {
	        return JSON.parse(value);
	    }
	    else if ((v = +value) === v) {
	        return v;
	    }
	    for (var key in conversions) {
	        if (value === key) {
	            return conversions[key];
	        }
	    }
	    return value;
	};


/***/ })
/******/ ])));
//# sourceMappingURL=vendor-scripts.js.map